From 5bd66978b3b5d173d7359c96df2a736594fb534d Mon Sep 17 00:00:00 2001 From: esimov Date: Thu, 4 Jul 2024 11:21:31 +0300 Subject: [PATCH] Using Gio as GUI library --- go.mod | 30 +- go.sum | 61 +- gui/window.go | 84 + main.go | 44 +- ui/handlers.go | 10 +- ui/panels.go | 94 +- vendor/github.com/fogleman/gg/.gitignore | 2 - vendor/github.com/fogleman/gg/LICENSE.md | 19 - vendor/github.com/fogleman/gg/README.md | 216 - vendor/github.com/fogleman/gg/bezier.go | 59 - vendor/github.com/fogleman/gg/context.go | 824 - vendor/github.com/fogleman/gg/gradient.go | 202 - vendor/github.com/fogleman/gg/matrix.go | 88 - vendor/github.com/fogleman/gg/path.go | 140 - vendor/github.com/fogleman/gg/pattern.go | 123 - vendor/github.com/fogleman/gg/point.go | 25 - vendor/github.com/fogleman/gg/util.go | 117 - vendor/github.com/fogleman/gg/wrap.go | 58 - vendor/github.com/go-gl/gl/LICENSE | 21 - .../go-gl/gl/v2.1/gl/conversions.go | 109 - vendor/github.com/go-gl/gl/v2.1/gl/debug.go | 31 - vendor/github.com/go-gl/gl/v2.1/gl/package.go | 31094 ---------------- .../github.com/go-gl/gl/v2.1/gl/procaddr.go | 65 - vendor/github.com/go-gl/glfw/AUTHORS | 10 - vendor/github.com/go-gl/glfw/LICENSE | 27 - .../go-gl/glfw/v3.1/glfw/GLFW_C_REVISION.txt | 1 - .../github.com/go-gl/glfw/v3.1/glfw/build.go | 52 - .../go-gl/glfw/v3.1/glfw/cocoainit_darwin.go | 9 - .../glfw/v3.1/glfw/cocoamonitor_darwin.go | 9 - .../glfw/v3.1/glfw/cocoawindow_darwin.go | 9 - .../go-gl/glfw/v3.1/glfw/context.go | 77 - .../github.com/go-gl/glfw/v3.1/glfw/error.c | 9 - .../github.com/go-gl/glfw/v3.1/glfw/error.go | 199 - .../github.com/go-gl/glfw/v3.1/glfw/glfw.go | 75 - .../go-gl/glfw/v3.1/glfw/glfw/COPYING.txt | 22 - .../glfw/v3.1/glfw/glfw/deps/EGL/eglext.h | 565 - .../go-gl/glfw/v3.1/glfw/glfw/deps/GL/glext.h | 11626 ------ .../glfw/v3.1/glfw/glfw/deps/GL/glxext.h | 906 - .../glfw/v3.1/glfw/glfw/deps/GL/wglext.h | 840 - .../v3.1/glfw/glfw/deps/KHR/khrplatform.h | 282 - .../go-gl/glfw/v3.1/glfw/glfw/deps/getopt.c | 230 - .../go-gl/glfw/v3.1/glfw/glfw/deps/getopt.h | 57 - .../go-gl/glfw/v3.1/glfw/glfw/deps/glad.c | 753 - .../glfw/v3.1/glfw/glfw/deps/glad/glad.h | 1930 - .../go-gl/glfw/v3.1/glfw/glfw/deps/linmath.h | 571 - .../glfw/v3.1/glfw/glfw/deps/tinycthread.c | 594 - .../glfw/v3.1/glfw/glfw/deps/tinycthread.h | 440 - .../glfw/v3.1/glfw/glfw/include/GLFW/glfw3.h | 3358 -- .../v3.1/glfw/glfw/include/GLFW/glfw3native.h | 356 - .../glfw/v3.1/glfw/glfw/src/cocoa_init.m | 270 - .../glfw/v3.1/glfw/glfw/src/cocoa_monitor.m | 415 - .../glfw/v3.1/glfw/glfw/src/cocoa_platform.h | 122 - .../glfw/v3.1/glfw/glfw/src/cocoa_window.m | 1324 - .../go-gl/glfw/v3.1/glfw/glfw/src/context.c | 640 - .../glfw/v3.1/glfw/glfw/src/egl_context.c | 679 - .../glfw/v3.1/glfw/glfw/src/egl_context.h | 146 - .../glfw/v3.1/glfw/glfw/src/glx_context.c | 578 - .../glfw/v3.1/glfw/glfw/src/glx_context.h | 135 - .../go-gl/glfw/v3.1/glfw/glfw/src/init.c | 194 - .../go-gl/glfw/v3.1/glfw/glfw/src/input.c | 614 - .../go-gl/glfw/v3.1/glfw/glfw/src/internal.h | 878 - .../glfw/v3.1/glfw/glfw/src/iokit_joystick.h | 68 - .../glfw/v3.1/glfw/glfw/src/iokit_joystick.m | 507 - .../glfw/v3.1/glfw/glfw/src/linux_joystick.c | 324 - .../glfw/v3.1/glfw/glfw/src/linux_joystick.h | 63 - .../go-gl/glfw/v3.1/glfw/glfw/src/mach_time.c | 71 - .../go-gl/glfw/v3.1/glfw/glfw/src/mir_init.c | 107 - .../glfw/v3.1/glfw/glfw/src/mir_monitor.c | 170 - .../glfw/v3.1/glfw/glfw/src/mir_platform.h | 114 - .../glfw/v3.1/glfw/glfw/src/mir_window.c | 801 - .../go-gl/glfw/v3.1/glfw/glfw/src/monitor.c | 446 - .../glfw/v3.1/glfw/glfw/src/nsgl_context.h | 62 - .../glfw/v3.1/glfw/glfw/src/nsgl_context.m | 308 - .../glfw/v3.1/glfw/glfw/src/posix_time.c | 97 - .../glfw/v3.1/glfw/glfw/src/posix_time.h | 49 - .../go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.c | 66 - .../go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.h | 49 - .../glfw/v3.1/glfw/glfw/src/wgl_context.c | 677 - .../glfw/v3.1/glfw/glfw/src/wgl_context.h | 107 - .../glfw/v3.1/glfw/glfw/src/win32_init.c | 391 - .../glfw/v3.1/glfw/glfw/src/win32_monitor.c | 357 - .../glfw/v3.1/glfw/glfw/src/win32_platform.h | 245 - .../glfw/v3.1/glfw/glfw/src/win32_time.c | 86 - .../go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.c | 69 - .../go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.h | 48 - .../glfw/v3.1/glfw/glfw/src/win32_window.c | 1312 - .../go-gl/glfw/v3.1/glfw/glfw/src/window.c | 707 - .../glfw/v3.1/glfw/glfw/src/winmm_joystick.c | 177 - .../glfw/v3.1/glfw/glfw/src/winmm_joystick.h | 47 - .../go-gl/glfw/v3.1/glfw/glfw/src/wl_init.c | 637 - .../glfw/v3.1/glfw/glfw/src/wl_monitor.c | 250 - .../glfw/v3.1/glfw/glfw/src/wl_platform.h | 141 - .../go-gl/glfw/v3.1/glfw/glfw/src/wl_window.c | 531 - .../go-gl/glfw/v3.1/glfw/glfw/src/x11_init.c | 830 - .../glfw/v3.1/glfw/glfw/src/x11_monitor.c | 491 - .../glfw/v3.1/glfw/glfw/src/x11_platform.h | 268 - .../glfw/v3.1/glfw/glfw/src/x11_window.c | 2038 - .../glfw/v3.1/glfw/glfw/src/xkb_unicode.c | 889 - .../glfw/v3.1/glfw/glfw/src/xkb_unicode.h | 33 - .../go-gl/glfw/v3.1/glfw/glfw_context.c | 1 - .../go-gl/glfw/v3.1/glfw/glfw_egl_context.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_glx_context.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_init.c | 1 - .../go-gl/glfw/v3.1/glfw/glfw_input.c | 2 - .../glfw/v3.1/glfw/glfw_linux_joystick.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_mach_time.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_monitor.c | 2 - .../go-gl/glfw/v3.1/glfw/glfw_posix_time.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_posix_tls.c | 3 - .../go-gl/glfw/v3.1/glfw/glfw_wgl_context.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_win32_init.c | 29 - .../go-gl/glfw/v3.1/glfw/glfw_win32_monitor.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_win32_time.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_win32_tls.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_win32_window.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_window.c | 1 - .../glfw/v3.1/glfw/glfw_winmm_joystick.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_wl_init.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_wl_monitor.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_wl_window.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_x11_init.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_x11_monitor.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_x11_window.c | 4 - .../go-gl/glfw/v3.1/glfw/glfw_xkb_unicode.c | 4 - .../github.com/go-gl/glfw/v3.1/glfw/input.c | 73 - .../github.com/go-gl/glfw/v3.1/glfw/input.go | 649 - .../glfw/v3.1/glfw/iokitjoystick_darwin.go | 9 - .../github.com/go-gl/glfw/v3.1/glfw/monitor.c | 25 - .../go-gl/glfw/v3.1/glfw/monitor.go | 207 - .../go-gl/glfw/v3.1/glfw/native_darwin.go | 30 - .../go-gl/glfw/v3.1/glfw/native_linbsd.go | 27 - .../go-gl/glfw/v3.1/glfw/native_windows.go | 19 - .../glfw/v3.1/glfw/nsglcontext_darwin.go | 9 - .../github.com/go-gl/glfw/v3.1/glfw/time.go | 27 - .../github.com/go-gl/glfw/v3.1/glfw/util.go | 37 - .../github.com/go-gl/glfw/v3.1/glfw/window.c | 57 - .../github.com/go-gl/glfw/v3.1/glfw/window.go | 657 - .../go-gl/glfw/v3.2/glfw/GLFW_C_REVISION.txt | 1 - .../github.com/go-gl/glfw/v3.2/glfw/build.go | 43 - .../github.com/go-gl/glfw/v3.2/glfw/c_glfw.go | 11 - .../go-gl/glfw/v3.2/glfw/c_glfw_darwin.go | 13 - .../go-gl/glfw/v3.2/glfw/c_glfw_linbsd.go | 28 - .../go-gl/glfw/v3.2/glfw/c_glfw_windows.go | 13 - .../go-gl/glfw/v3.2/glfw/context.go | 77 - .../github.com/go-gl/glfw/v3.2/glfw/error.c | 9 - .../github.com/go-gl/glfw/v3.2/glfw/error.go | 199 - .../github.com/go-gl/glfw/v3.2/glfw/glfw.go | 76 - .../go-gl/glfw/v3.2/glfw/glfw/COPYING.txt | 22 - .../v3.2/glfw/glfw/deps/KHR/khrplatform.h | 282 - .../go-gl/glfw/v3.2/glfw/glfw/deps/getopt.c | 230 - .../go-gl/glfw/v3.2/glfw/glfw/deps/getopt.h | 57 - .../go-gl/glfw/v3.2/glfw/glfw/deps/glad.c | 1555 - .../glfw/v3.2/glfw/glfw/deps/glad/glad.h | 3520 -- .../go-gl/glfw/v3.2/glfw/glfw/deps/linmath.h | 574 - .../glfw/glfw/deps/mingw/_mingw_dxhelper.h | 117 - .../glfw/v3.2/glfw/glfw/deps/mingw/dinput.h | 2467 -- .../glfw/v3.2/glfw/glfw/deps/mingw/xinput.h | 239 - .../glfw/v3.2/glfw/glfw/deps/tinycthread.c | 594 - .../glfw/v3.2/glfw/glfw/deps/tinycthread.h | 441 - .../v3.2/glfw/glfw/deps/vulkan/vk_platform.h | 120 - .../glfw/v3.2/glfw/glfw/deps/vulkan/vulkan.h | 3835 -- .../glfw/v3.2/glfw/glfw/include/GLFW/glfw3.h | 4248 --- .../v3.2/glfw/glfw/include/GLFW/glfw3native.h | 456 - .../glfw/v3.2/glfw/glfw/src/cocoa_init.m | 398 - .../glfw/v3.2/glfw/glfw/src/cocoa_joystick.h | 60 - .../glfw/v3.2/glfw/glfw/src/cocoa_joystick.m | 511 - .../glfw/v3.2/glfw/glfw/src/cocoa_monitor.m | 413 - .../glfw/v3.2/glfw/glfw/src/cocoa_platform.h | 150 - .../glfw/v3.2/glfw/glfw/src/cocoa_time.c | 60 - .../glfw/v3.2/glfw/glfw/src/cocoa_window.m | 1653 - .../go-gl/glfw/v3.2/glfw/glfw/src/context.c | 720 - .../glfw/v3.2/glfw/glfw/src/egl_context.c | 746 - .../glfw/v3.2/glfw/glfw/src/egl_context.h | 213 - .../glfw/v3.2/glfw/glfw/src/glx_context.c | 677 - .../glfw/v3.2/glfw/glfw/src/glx_context.h | 182 - .../go-gl/glfw/v3.2/glfw/glfw/src/init.c | 200 - .../go-gl/glfw/v3.2/glfw/glfw/src/input.c | 659 - .../go-gl/glfw/v3.2/glfw/glfw/src/internal.h | 1055 - .../glfw/v3.2/glfw/glfw/src/linux_joystick.c | 341 - .../glfw/v3.2/glfw/glfw/src/linux_joystick.h | 68 - .../go-gl/glfw/v3.2/glfw/glfw/src/mir_init.c | 238 - .../glfw/v3.2/glfw/glfw/src/mir_monitor.c | 182 - .../glfw/v3.2/glfw/glfw/src/mir_platform.h | 130 - .../glfw/v3.2/glfw/glfw/src/mir_window.c | 848 - .../go-gl/glfw/v3.2/glfw/glfw/src/monitor.c | 477 - .../glfw/v3.2/glfw/glfw/src/nsgl_context.h | 60 - .../glfw/v3.2/glfw/glfw/src/nsgl_context.m | 308 - .../glfw/v3.2/glfw/glfw/src/posix_time.c | 85 - .../glfw/v3.2/glfw/glfw/src/posix_time.h | 48 - .../go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.c | 68 - .../go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.h | 49 - .../go-gl/glfw/v3.2/glfw/glfw/src/vulkan.c | 302 - .../glfw/v3.2/glfw/glfw/src/wgl_context.c | 718 - .../glfw/v3.2/glfw/glfw/src/wgl_context.h | 157 - .../glfw/v3.2/glfw/glfw/src/win32_init.c | 473 - .../glfw/v3.2/glfw/glfw/src/win32_joystick.c | 763 - .../glfw/v3.2/glfw/glfw/src/win32_joystick.h | 64 - .../glfw/v3.2/glfw/glfw/src/win32_monitor.c | 401 - .../glfw/v3.2/glfw/glfw/src/win32_platform.h | 350 - .../glfw/v3.2/glfw/glfw/src/win32_time.c | 74 - .../go-gl/glfw/v3.2/glfw/glfw/src/win32_tls.c | 69 - .../glfw/v3.2/glfw/glfw/src/win32_window.c | 1724 - .../go-gl/glfw/v3.2/glfw/glfw/src/window.c | 904 - .../go-gl/glfw/v3.2/glfw/glfw/src/wl_init.c | 658 - .../glfw/v3.2/glfw/glfw/src/wl_monitor.c | 269 - .../glfw/v3.2/glfw/glfw/src/wl_platform.h | 179 - .../go-gl/glfw/v3.2/glfw/glfw/src/wl_window.c | 1050 - .../go-gl/glfw/v3.2/glfw/glfw/src/x11_init.c | 833 - .../glfw/v3.2/glfw/glfw/src/x11_monitor.c | 491 - .../glfw/v3.2/glfw/glfw/src/x11_platform.h | 296 - .../glfw/v3.2/glfw/glfw/src/x11_window.c | 2475 -- .../glfw/v3.2/glfw/glfw/src/xkb_unicode.c | 889 - .../glfw/v3.2/glfw/glfw/src/xkb_unicode.h | 33 - .../github.com/go-gl/glfw/v3.2/glfw/input.c | 81 - .../github.com/go-gl/glfw/v3.2/glfw/input.go | 696 - .../github.com/go-gl/glfw/v3.2/glfw/monitor.c | 25 - .../go-gl/glfw/v3.2/glfw/monitor.go | 208 - .../go-gl/glfw/v3.2/glfw/native_darwin.go | 39 - .../go-gl/glfw/v3.2/glfw/native_linbsd.go | 50 - .../go-gl/glfw/v3.2/glfw/native_windows.go | 35 - .../github.com/go-gl/glfw/v3.2/glfw/time.go | 41 - .../github.com/go-gl/glfw/v3.2/glfw/util.go | 37 - .../github.com/go-gl/glfw/v3.2/glfw/vulkan.go | 14 - .../github.com/go-gl/glfw/v3.2/glfw/window.c | 57 - .../github.com/go-gl/glfw/v3.2/glfw/window.go | 830 - vendor/github.com/golang/freetype/AUTHORS | 20 - .../github.com/golang/freetype/CONTRIBUTORS | 38 - vendor/github.com/golang/freetype/LICENSE | 12 - .../github.com/golang/freetype/raster/geom.go | 245 - .../golang/freetype/raster/paint.go | 287 - .../golang/freetype/raster/raster.go | 601 - .../golang/freetype/raster/stroke.go | 483 - .../golang/freetype/testdata/COPYING | 42 - .../golang/freetype/truetype/face.go | 507 - .../golang/freetype/truetype/glyph.go | 522 - .../golang/freetype/truetype/hint.go | 1770 - .../golang/freetype/truetype/opcodes.go | 289 - .../golang/freetype/truetype/truetype.go | 653 - vendor/github.com/google/gxui/.travis.yml | 13 - vendor/github.com/google/gxui/LICENSE | 27 - vendor/github.com/google/gxui/README.md | 71 - vendor/github.com/google/gxui/VERSION | 1 - vendor/github.com/google/gxui/adapter_base.go | 35 - vendor/github.com/google/gxui/adapter_item.go | 9 - vendor/github.com/google/gxui/alignment.go | 29 - vendor/github.com/google/gxui/brush.go | 18 - .../github.com/google/gxui/bubble_overlay.go | 15 - vendor/github.com/google/gxui/button.go | 22 - vendor/github.com/google/gxui/canvas.go | 26 - .../github.com/google/gxui/channeled_event.go | 50 - vendor/github.com/google/gxui/code_editor.go | 26 - .../google/gxui/code_syntax_layer.go | 138 - vendor/github.com/google/gxui/color.go | 79 - vendor/github.com/google/gxui/container.go | 85 - vendor/github.com/google/gxui/control.go | 192 - vendor/github.com/google/gxui/control_list.go | 16 - vendor/github.com/google/gxui/debug.go | 78 - .../github.com/google/gxui/default_adapter.go | 146 - vendor/github.com/google/gxui/direction.go | 47 - vendor/github.com/google/gxui/driver.go | 47 - .../google/gxui/drivers/gl/blitter.go | 306 - .../google/gxui/drivers/gl/canvas.go | 203 - .../google/gxui/drivers/gl/check_error.go | 28 - .../google/gxui/drivers/gl/context.go | 143 - .../google/gxui/drivers/gl/debug.go | 36 - .../google/gxui/drivers/gl/debug_js.go | 15 - .../google/gxui/drivers/gl/draw_mode.go | 44 - .../google/gxui/drivers/gl/driver.go | 230 - .../github.com/google/gxui/drivers/gl/font.go | 178 - .../google/gxui/drivers/gl/glyph_page.go | 128 - .../google/gxui/drivers/gl/glyph_table.go | 35 - .../google/gxui/drivers/gl/index_buffer.go | 79 - .../gxui/drivers/gl/keyboard_translate.go | 249 - .../google/gxui/drivers/gl/mouse_translate.go | 36 - .../drivers/gl/platform/linux_constants.go | 9 - .../gxui/drivers/gl/platform/osx_constants.go | 9 - .../drivers/gl/platform/windows_constants.go | 9 - .../google/gxui/drivers/gl/polygon.go | 217 - .../google/gxui/drivers/gl/primitive_type.go | 57 - .../google/gxui/drivers/gl/refcounted.go | 76 - .../google/gxui/drivers/gl/resolution.go | 47 - .../gxui/drivers/gl/shader_attribute.go | 26 - .../gxui/drivers/gl/shader_data_type.go | 97 - .../google/gxui/drivers/gl/shader_program.go | 129 - .../google/gxui/drivers/gl/shader_uniform.go | 83 - .../google/gxui/drivers/gl/shape.go | 52 - .../google/gxui/drivers/gl/stats.go | 149 - .../google/gxui/drivers/gl/texture.go | 100 - .../google/gxui/drivers/gl/triangulate.go | 126 - .../google/gxui/drivers/gl/vertex_buffer.go | 30 - .../google/gxui/drivers/gl/vertex_stream.go | 83 - .../google/gxui/drivers/gl/viewport.go | 461 - .../github.com/google/gxui/drop_down_list.go | 23 - vendor/github.com/google/gxui/event.go | 19 - vendor/github.com/google/gxui/event_base.go | 195 - .../google/gxui/filtered_list_adapter.go | 72 - .../google/gxui/focus_controller.go | 126 - vendor/github.com/google/gxui/focusable.go | 33 - vendor/github.com/google/gxui/font.go | 26 - vendor/github.com/google/gxui/go.mod | 3 - .../google/gxui/gxfont/droid_sans_mono.go | 4726 --- .../github.com/google/gxui/gxfont/gxfont.go | 37 - .../github.com/google/gxui/gxfont/mkfont.go | 100 - .../google/gxui/gxfont/roboto_regular.go | 5424 --- vendor/github.com/google/gxui/image.go | 43 - .../google/gxui/interval/int_data.go | 76 - .../github.com/google/gxui/interval/list.go | 223 - vendor/github.com/google/gxui/interval/u64.go | 137 - .../google/gxui/keyboard_controller.go | 59 - .../github.com/google/gxui/keyboard_event.go | 10 - vendor/github.com/google/gxui/keyboard_key.go | 119 - .../google/gxui/keyboard_modifier.go | 31 - .../github.com/google/gxui/keystroke_event.go | 10 - vendor/github.com/google/gxui/label.go | 21 - .../github.com/google/gxui/linear_layout.go | 67 - vendor/github.com/google/gxui/list.go | 64 - .../github.com/google/gxui/math/constants.go | 26 - .../google/gxui/math/line_intersect.go | 32 - vendor/github.com/google/gxui/math/mat2.go | 107 - vendor/github.com/google/gxui/math/mat3.go | 133 - vendor/github.com/google/gxui/math/math.go | 163 - vendor/github.com/google/gxui/math/point.go | 96 - vendor/github.com/google/gxui/math/rect.go | 163 - vendor/github.com/google/gxui/math/size.go | 95 - vendor/github.com/google/gxui/math/spacing.go | 45 - vendor/github.com/google/gxui/math/vec2.go | 86 - vendor/github.com/google/gxui/math/vec3.go | 93 - vendor/github.com/google/gxui/math/vec4.go | 70 - .../google/gxui/mixins/base/container.go | 50 - .../google/gxui/mixins/base/control.go | 48 - .../google/gxui/mixins/bubble_overlay.go | 173 - .../github.com/google/gxui/mixins/button.go | 116 - .../google/gxui/mixins/code_editor.go | 234 - .../google/gxui/mixins/code_editor_line.go | 150 - .../gxui/mixins/code_suggestion_adapter.go | 26 - .../gxui/mixins/default_textbox_line.go | 155 - .../google/gxui/mixins/drop_down_list.go | 217 - vendor/github.com/google/gxui/mixins/image.go | 157 - vendor/github.com/google/gxui/mixins/label.go | 136 - .../google/gxui/mixins/linear_layout.go | 40 - vendor/github.com/google/gxui/mixins/list.go | 525 - .../google/gxui/mixins/outer/attachable.go | 17 - .../google/gxui/mixins/outer/draw.go | 13 - .../google/gxui/mixins/outer/isvisibiler.go | 9 - .../google/gxui/mixins/outer/layout.go | 13 - .../gxui/mixins/outer/layout_children.go | 9 - .../google/gxui/mixins/outer/paint_childer.go | 13 - .../google/gxui/mixins/outer/painter.go | 13 - .../google/gxui/mixins/outer/parenter.go | 13 - .../google/gxui/mixins/outer/redrawer.go | 9 - .../google/gxui/mixins/outer/relayouter.go | 9 - .../google/gxui/mixins/outer/sized.go | 14 - .../google/gxui/mixins/panel_holder.go | 229 - .../google/gxui/mixins/parts/attachable.go | 63 - .../mixins/parts/background_border_painter.go | 63 - .../google/gxui/mixins/parts/container.go | 143 - .../google/gxui/mixins/parts/draw_paint.go | 73 - .../google/gxui/mixins/parts/focusable.go | 65 - .../gxui/mixins/parts/input_event_handler.go | 247 - .../google/gxui/mixins/parts/layoutable.go | 79 - .../google/gxui/mixins/parts/linear_layout.go | 167 - .../google/gxui/mixins/parts/paddable.go | 34 - .../gxui/mixins/parts/paint_children.go | 41 - .../google/gxui/mixins/parts/parentable.go | 28 - .../google/gxui/mixins/parts/utils.go | 16 - .../google/gxui/mixins/parts/visible.go | 37 - .../google/gxui/mixins/progress_bar.go | 82 - .../google/gxui/mixins/scroll_bar.go | 242 - .../google/gxui/mixins/scroll_layout.go | 154 - .../google/gxui/mixins/splitter_bar.go | 92 - .../google/gxui/mixins/splitter_layout.go | 156 - .../google/gxui/mixins/table_layout.go | 123 - .../github.com/google/gxui/mixins/textbox.go | 476 - vendor/github.com/google/gxui/mixins/tree.go | 165 - .../gxui/mixins/tree_to_list_adapter.go | 154 - .../google/gxui/mixins/tree_to_list_node.go | 238 - .../github.com/google/gxui/mixins/window.go | 383 - vendor/github.com/google/gxui/mouse_button.go | 13 - .../google/gxui/mouse_controller.go | 143 - vendor/github.com/google/gxui/mouse_event.go | 19 - vendor/github.com/google/gxui/mouse_state.go | 11 - vendor/github.com/google/gxui/orientation.go | 39 - vendor/github.com/google/gxui/panel_holder.go | 17 - vendor/github.com/google/gxui/pen.go | 18 - vendor/github.com/google/gxui/polygon.go | 16 - vendor/github.com/google/gxui/progress_bar.go | 18 - .../google/gxui/samples/flags/flags.go | 29 - vendor/github.com/google/gxui/scroll_bar.go | 19 - .../github.com/google/gxui/scroll_layout.go | 18 - vendor/github.com/google/gxui/simple_event.go | 15 - vendor/github.com/google/gxui/size_mode.go | 20 - .../github.com/google/gxui/splitter_layout.go | 14 - vendor/github.com/google/gxui/table_layout.go | 12 - .../github.com/google/gxui/text_selection.go | 53 - .../google/gxui/text_selection_list.go | 79 - vendor/github.com/google/gxui/textbox.go | 39 - .../google/gxui/textbox_controller.go | 617 - vendor/github.com/google/gxui/texture.go | 19 - vendor/github.com/google/gxui/theme.go | 30 - .../gxui/themes/basic/bubble_overlay.go | 27 - .../google/gxui/themes/basic/button.go | 75 - .../google/gxui/themes/basic/code_editor.go | 45 - .../google/gxui/themes/basic/colors.go | 11 - .../gxui/themes/basic/drop_down_list.go | 49 - .../google/gxui/themes/basic/image.go | 16 - .../google/gxui/themes/basic/label.go | 18 - .../google/gxui/themes/basic/linear_layout.go | 16 - .../google/gxui/themes/basic/list.go | 44 - .../google/gxui/themes/basic/panel_holder.go | 37 - .../google/gxui/themes/basic/panel_tab.go | 68 - .../google/gxui/themes/basic/progress_bar.go | 104 - .../google/gxui/themes/basic/scroll_bar.go | 41 - .../google/gxui/themes/basic/scroll_layout.go | 16 - .../gxui/themes/basic/splitter_layout.go | 49 - .../google/gxui/themes/basic/style.go | 23 - .../google/gxui/themes/basic/table_layout.go | 12 - .../google/gxui/themes/basic/textbox.go | 49 - .../google/gxui/themes/basic/theme.go | 130 - .../google/gxui/themes/basic/tree.go | 114 - .../google/gxui/themes/basic/window.go | 21 - .../google/gxui/themes/dark/theme.go | 70 - .../google/gxui/themes/light/theme.go | 70 - .../google/gxui/tooltip_controller.go | 110 - vendor/github.com/google/gxui/tree.go | 93 - vendor/github.com/google/gxui/utils.go | 238 - vendor/github.com/google/gxui/viewport.go | 109 - .../github.com/google/gxui/while_attached.go | 64 - vendor/github.com/google/gxui/window.go | 90 - vendor/github.com/gopherjs/gopherjs/LICENSE | 24 - vendor/github.com/gopherjs/gopherjs/js/js.go | 168 - vendor/github.com/goxjs/gl/.travis.yml | 23 - vendor/github.com/goxjs/gl/LICENSE | 27 - vendor/github.com/goxjs/gl/README.md | 48 - vendor/github.com/goxjs/gl/consts.go | 348 - vendor/github.com/goxjs/gl/doc.go | 40 - vendor/github.com/goxjs/gl/gl_opengl.go | 1206 - vendor/github.com/goxjs/gl/gl_opengles.go | 705 - vendor/github.com/goxjs/gl/gl_webgl.go | 697 - vendor/github.com/goxjs/gl/types_opengl.go | 56 - vendor/github.com/goxjs/gl/types_opengles.go | 107 - vendor/github.com/goxjs/gl/types_webgl.go | 52 - vendor/github.com/goxjs/glfw/.travis.yml | 20 - vendor/github.com/goxjs/glfw/README.md | 31 - vendor/github.com/goxjs/glfw/browser.go | 917 - vendor/github.com/goxjs/glfw/context_webgl.go | 56 - vendor/github.com/goxjs/glfw/desktop.go | 520 - vendor/github.com/goxjs/glfw/glfw.go | 27 - vendor/github.com/goxjs/glfw/hint_glfw.go | 32 - vendor/github.com/goxjs/glfw/hint_js.go | 25 - vendor/github.com/jroimartin/gocui/.gitignore | 1 - vendor/github.com/jroimartin/gocui/AUTHORS | 30 - vendor/github.com/jroimartin/gocui/LICENSE | 23 - vendor/github.com/jroimartin/gocui/README.md | 105 - .../github.com/jroimartin/gocui/attribute.go | 32 - vendor/github.com/jroimartin/gocui/doc.go | 118 - vendor/github.com/jroimartin/gocui/edit.go | 344 - vendor/github.com/jroimartin/gocui/escape.go | 229 - vendor/github.com/jroimartin/gocui/gui.go | 636 - .../github.com/jroimartin/gocui/keybinding.go | 137 - vendor/github.com/jroimartin/gocui/view.go | 479 - .../github.com/mattn/go-runewidth/.travis.yml | 8 - vendor/github.com/mattn/go-runewidth/LICENSE | 21 - .../github.com/mattn/go-runewidth/README.mkd | 27 - .../mattn/go-runewidth/runewidth.go | 1226 - .../mattn/go-runewidth/runewidth_js.go | 8 - .../mattn/go-runewidth/runewidth_posix.go | 77 - .../mattn/go-runewidth/runewidth_windows.go | 25 - vendor/github.com/nsf/termbox-go/AUTHORS | 4 - vendor/github.com/nsf/termbox-go/LICENSE | 19 - vendor/github.com/nsf/termbox-go/README.md | 38 - vendor/github.com/nsf/termbox-go/api.go | 489 - .../github.com/nsf/termbox-go/api_common.go | 187 - .../github.com/nsf/termbox-go/api_windows.go | 239 - .../nsf/termbox-go/collect_terminfo.py | 110 - vendor/github.com/nsf/termbox-go/escwait.go | 11 - .../nsf/termbox-go/escwait_darwin.go | 9 - vendor/github.com/nsf/termbox-go/syscalls.go | 39 - .../nsf/termbox-go/syscalls_darwin.go | 41 - .../nsf/termbox-go/syscalls_darwin_amd64.go | 40 - .../nsf/termbox-go/syscalls_dragonfly.go | 39 - .../nsf/termbox-go/syscalls_freebsd.go | 39 - .../nsf/termbox-go/syscalls_linux.go | 33 - .../nsf/termbox-go/syscalls_netbsd.go | 39 - .../nsf/termbox-go/syscalls_openbsd.go | 39 - .../nsf/termbox-go/syscalls_windows.go | 61 - vendor/github.com/nsf/termbox-go/termbox.go | 529 - .../nsf/termbox-go/termbox_common.go | 59 - .../nsf/termbox-go/termbox_windows.go | 889 - vendor/github.com/nsf/termbox-go/terminfo.go | 226 - .../nsf/termbox-go/terminfo_builtin.go | 64 - vendor/golang.org/x/image/AUTHORS | 3 - vendor/golang.org/x/image/CONTRIBUTORS | 3 - vendor/golang.org/x/image/LICENSE | 27 - vendor/golang.org/x/image/PATENTS | 22 - vendor/golang.org/x/image/draw/draw.go | 43 - vendor/golang.org/x/image/draw/gen.go | 1404 - vendor/golang.org/x/image/draw/go1_8.go | 49 - vendor/golang.org/x/image/draw/go1_9.go | 57 - vendor/golang.org/x/image/draw/impl.go | 6670 ---- vendor/golang.org/x/image/draw/scale.go | 527 - .../x/image/font/basicfont/basicfont.go | 126 - .../golang.org/x/image/font/basicfont/data.go | 1456 - .../golang.org/x/image/font/basicfont/gen.go | 115 - vendor/golang.org/x/image/font/font.go | 359 - .../x/image/font/plan9font/plan9font.go | 610 - vendor/golang.org/x/image/math/f64/f64.go | 37 - vendor/golang.org/x/image/math/fixed/fixed.go | 410 - vendor/honnef.co/go/js/dom/LICENSE | 20 - vendor/honnef.co/go/js/dom/README.md | 11 - vendor/honnef.co/go/js/dom/dom.go | 3082 -- vendor/honnef.co/go/js/dom/events.go | 338 - 511 files changed, 211 insertions(+), 181893 deletions(-) create mode 100644 gui/window.go delete mode 100644 vendor/github.com/fogleman/gg/.gitignore delete mode 100644 vendor/github.com/fogleman/gg/LICENSE.md delete mode 100644 vendor/github.com/fogleman/gg/README.md delete mode 100644 vendor/github.com/fogleman/gg/bezier.go delete mode 100644 vendor/github.com/fogleman/gg/context.go delete mode 100644 vendor/github.com/fogleman/gg/gradient.go delete mode 100644 vendor/github.com/fogleman/gg/matrix.go delete mode 100644 vendor/github.com/fogleman/gg/path.go delete mode 100644 vendor/github.com/fogleman/gg/pattern.go delete mode 100644 vendor/github.com/fogleman/gg/point.go delete mode 100644 vendor/github.com/fogleman/gg/util.go delete mode 100644 vendor/github.com/fogleman/gg/wrap.go delete mode 100644 vendor/github.com/go-gl/gl/LICENSE delete mode 100644 vendor/github.com/go-gl/gl/v2.1/gl/conversions.go delete mode 100644 vendor/github.com/go-gl/gl/v2.1/gl/debug.go delete mode 100644 vendor/github.com/go-gl/gl/v2.1/gl/package.go delete mode 100644 vendor/github.com/go-gl/gl/v2.1/gl/procaddr.go delete mode 100644 vendor/github.com/go-gl/glfw/AUTHORS delete mode 100644 vendor/github.com/go-gl/glfw/LICENSE delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/GLFW_C_REVISION.txt delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/build.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/cocoainit_darwin.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/cocoamonitor_darwin.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/cocoawindow_darwin.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/context.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/error.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/error.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/COPYING.txt delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/EGL/eglext.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/glext.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/glxext.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/wglext.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/KHR/khrplatform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/getopt.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/getopt.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/glad.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/glad/glad.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/linmath.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/tinycthread.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/tinycthread.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/include/GLFW/glfw3.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/include/GLFW/glfw3native.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_init.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_monitor.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_window.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/egl_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/egl_context.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/glx_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/glx_context.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/input.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/internal.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/iokit_joystick.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/iokit_joystick.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/linux_joystick.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/linux_joystick.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mach_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/nsgl_context.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/nsgl_context.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_time.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wgl_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wgl_context.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/winmm_joystick.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/winmm_joystick.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/xkb_unicode.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/xkb_unicode.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_egl_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_glx_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_input.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_linux_joystick.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_mach_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_posix_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_posix_tls.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wgl_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_tls.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_winmm_joystick.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_xkb_unicode.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/input.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/input.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/iokitjoystick_darwin.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/monitor.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/native_darwin.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/native_linbsd.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/native_windows.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/nsglcontext_darwin.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/time.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/util.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.1/glfw/window.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/GLFW_C_REVISION.txt delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/build.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_darwin.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_linbsd.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_windows.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/context.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/error.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/error.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/COPYING.txt delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/KHR/khrplatform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/getopt.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/getopt.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad/glad.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/linmath.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/_mingw_dxhelper.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/dinput.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/xinput.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/tinycthread.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/tinycthread.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan/vk_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan/vulkan.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW/glfw3.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW/glfw3native.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_init.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_joystick.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_joystick.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_monitor.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_window.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/egl_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/egl_context.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/glx_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/glx_context.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/input.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/internal.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/nsgl_context.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/nsgl_context.m delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_time.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/vulkan.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wgl_context.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wgl_context.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_joystick.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_joystick.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_time.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_tls.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_init.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_platform.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/xkb_unicode.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/xkb_unicode.h delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/input.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/input.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/monitor.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/monitor.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/native_linbsd.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/native_windows.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/time.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/util.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/vulkan.go delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/window.c delete mode 100644 vendor/github.com/go-gl/glfw/v3.2/glfw/window.go delete mode 100644 vendor/github.com/golang/freetype/AUTHORS delete mode 100644 vendor/github.com/golang/freetype/CONTRIBUTORS delete mode 100644 vendor/github.com/golang/freetype/LICENSE delete mode 100644 vendor/github.com/golang/freetype/raster/geom.go delete mode 100644 vendor/github.com/golang/freetype/raster/paint.go delete mode 100644 vendor/github.com/golang/freetype/raster/raster.go delete mode 100644 vendor/github.com/golang/freetype/raster/stroke.go delete mode 100644 vendor/github.com/golang/freetype/testdata/COPYING delete mode 100644 vendor/github.com/golang/freetype/truetype/face.go delete mode 100644 vendor/github.com/golang/freetype/truetype/glyph.go delete mode 100644 vendor/github.com/golang/freetype/truetype/hint.go delete mode 100644 vendor/github.com/golang/freetype/truetype/opcodes.go delete mode 100644 vendor/github.com/golang/freetype/truetype/truetype.go delete mode 100644 vendor/github.com/google/gxui/.travis.yml delete mode 100644 vendor/github.com/google/gxui/LICENSE delete mode 100644 vendor/github.com/google/gxui/README.md delete mode 100644 vendor/github.com/google/gxui/VERSION delete mode 100644 vendor/github.com/google/gxui/adapter_base.go delete mode 100644 vendor/github.com/google/gxui/adapter_item.go delete mode 100644 vendor/github.com/google/gxui/alignment.go delete mode 100644 vendor/github.com/google/gxui/brush.go delete mode 100644 vendor/github.com/google/gxui/bubble_overlay.go delete mode 100644 vendor/github.com/google/gxui/button.go delete mode 100644 vendor/github.com/google/gxui/canvas.go delete mode 100644 vendor/github.com/google/gxui/channeled_event.go delete mode 100644 vendor/github.com/google/gxui/code_editor.go delete mode 100644 vendor/github.com/google/gxui/code_syntax_layer.go delete mode 100644 vendor/github.com/google/gxui/color.go delete mode 100644 vendor/github.com/google/gxui/container.go delete mode 100644 vendor/github.com/google/gxui/control.go delete mode 100644 vendor/github.com/google/gxui/control_list.go delete mode 100644 vendor/github.com/google/gxui/debug.go delete mode 100644 vendor/github.com/google/gxui/default_adapter.go delete mode 100644 vendor/github.com/google/gxui/direction.go delete mode 100644 vendor/github.com/google/gxui/driver.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/blitter.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/canvas.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/check_error.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/context.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/debug.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/debug_js.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/draw_mode.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/driver.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/font.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/glyph_page.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/glyph_table.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/index_buffer.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/keyboard_translate.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/mouse_translate.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/platform/linux_constants.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/platform/osx_constants.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/platform/windows_constants.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/polygon.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/primitive_type.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/refcounted.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/resolution.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/shader_attribute.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/shader_data_type.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/shader_program.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/shader_uniform.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/shape.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/stats.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/texture.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/triangulate.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/vertex_buffer.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/vertex_stream.go delete mode 100644 vendor/github.com/google/gxui/drivers/gl/viewport.go delete mode 100644 vendor/github.com/google/gxui/drop_down_list.go delete mode 100644 vendor/github.com/google/gxui/event.go delete mode 100644 vendor/github.com/google/gxui/event_base.go delete mode 100644 vendor/github.com/google/gxui/filtered_list_adapter.go delete mode 100644 vendor/github.com/google/gxui/focus_controller.go delete mode 100644 vendor/github.com/google/gxui/focusable.go delete mode 100644 vendor/github.com/google/gxui/font.go delete mode 100644 vendor/github.com/google/gxui/go.mod delete mode 100644 vendor/github.com/google/gxui/gxfont/droid_sans_mono.go delete mode 100644 vendor/github.com/google/gxui/gxfont/gxfont.go delete mode 100644 vendor/github.com/google/gxui/gxfont/mkfont.go delete mode 100644 vendor/github.com/google/gxui/gxfont/roboto_regular.go delete mode 100644 vendor/github.com/google/gxui/image.go delete mode 100644 vendor/github.com/google/gxui/interval/int_data.go delete mode 100644 vendor/github.com/google/gxui/interval/list.go delete mode 100644 vendor/github.com/google/gxui/interval/u64.go delete mode 100644 vendor/github.com/google/gxui/keyboard_controller.go delete mode 100644 vendor/github.com/google/gxui/keyboard_event.go delete mode 100644 vendor/github.com/google/gxui/keyboard_key.go delete mode 100644 vendor/github.com/google/gxui/keyboard_modifier.go delete mode 100644 vendor/github.com/google/gxui/keystroke_event.go delete mode 100644 vendor/github.com/google/gxui/label.go delete mode 100644 vendor/github.com/google/gxui/linear_layout.go delete mode 100644 vendor/github.com/google/gxui/list.go delete mode 100644 vendor/github.com/google/gxui/math/constants.go delete mode 100644 vendor/github.com/google/gxui/math/line_intersect.go delete mode 100644 vendor/github.com/google/gxui/math/mat2.go delete mode 100644 vendor/github.com/google/gxui/math/mat3.go delete mode 100644 vendor/github.com/google/gxui/math/math.go delete mode 100644 vendor/github.com/google/gxui/math/point.go delete mode 100644 vendor/github.com/google/gxui/math/rect.go delete mode 100644 vendor/github.com/google/gxui/math/size.go delete mode 100644 vendor/github.com/google/gxui/math/spacing.go delete mode 100644 vendor/github.com/google/gxui/math/vec2.go delete mode 100644 vendor/github.com/google/gxui/math/vec3.go delete mode 100644 vendor/github.com/google/gxui/math/vec4.go delete mode 100644 vendor/github.com/google/gxui/mixins/base/container.go delete mode 100644 vendor/github.com/google/gxui/mixins/base/control.go delete mode 100644 vendor/github.com/google/gxui/mixins/bubble_overlay.go delete mode 100644 vendor/github.com/google/gxui/mixins/button.go delete mode 100644 vendor/github.com/google/gxui/mixins/code_editor.go delete mode 100644 vendor/github.com/google/gxui/mixins/code_editor_line.go delete mode 100644 vendor/github.com/google/gxui/mixins/code_suggestion_adapter.go delete mode 100644 vendor/github.com/google/gxui/mixins/default_textbox_line.go delete mode 100644 vendor/github.com/google/gxui/mixins/drop_down_list.go delete mode 100644 vendor/github.com/google/gxui/mixins/image.go delete mode 100644 vendor/github.com/google/gxui/mixins/label.go delete mode 100644 vendor/github.com/google/gxui/mixins/linear_layout.go delete mode 100644 vendor/github.com/google/gxui/mixins/list.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/attachable.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/draw.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/isvisibiler.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/layout.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/layout_children.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/paint_childer.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/painter.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/parenter.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/redrawer.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/relayouter.go delete mode 100644 vendor/github.com/google/gxui/mixins/outer/sized.go delete mode 100644 vendor/github.com/google/gxui/mixins/panel_holder.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/attachable.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/background_border_painter.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/container.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/draw_paint.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/focusable.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/input_event_handler.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/layoutable.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/linear_layout.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/paddable.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/paint_children.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/parentable.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/utils.go delete mode 100644 vendor/github.com/google/gxui/mixins/parts/visible.go delete mode 100644 vendor/github.com/google/gxui/mixins/progress_bar.go delete mode 100644 vendor/github.com/google/gxui/mixins/scroll_bar.go delete mode 100644 vendor/github.com/google/gxui/mixins/scroll_layout.go delete mode 100644 vendor/github.com/google/gxui/mixins/splitter_bar.go delete mode 100644 vendor/github.com/google/gxui/mixins/splitter_layout.go delete mode 100644 vendor/github.com/google/gxui/mixins/table_layout.go delete mode 100644 vendor/github.com/google/gxui/mixins/textbox.go delete mode 100644 vendor/github.com/google/gxui/mixins/tree.go delete mode 100644 vendor/github.com/google/gxui/mixins/tree_to_list_adapter.go delete mode 100644 vendor/github.com/google/gxui/mixins/tree_to_list_node.go delete mode 100644 vendor/github.com/google/gxui/mixins/window.go delete mode 100644 vendor/github.com/google/gxui/mouse_button.go delete mode 100644 vendor/github.com/google/gxui/mouse_controller.go delete mode 100644 vendor/github.com/google/gxui/mouse_event.go delete mode 100644 vendor/github.com/google/gxui/mouse_state.go delete mode 100644 vendor/github.com/google/gxui/orientation.go delete mode 100644 vendor/github.com/google/gxui/panel_holder.go delete mode 100644 vendor/github.com/google/gxui/pen.go delete mode 100644 vendor/github.com/google/gxui/polygon.go delete mode 100644 vendor/github.com/google/gxui/progress_bar.go delete mode 100644 vendor/github.com/google/gxui/samples/flags/flags.go delete mode 100644 vendor/github.com/google/gxui/scroll_bar.go delete mode 100644 vendor/github.com/google/gxui/scroll_layout.go delete mode 100644 vendor/github.com/google/gxui/simple_event.go delete mode 100644 vendor/github.com/google/gxui/size_mode.go delete mode 100644 vendor/github.com/google/gxui/splitter_layout.go delete mode 100644 vendor/github.com/google/gxui/table_layout.go delete mode 100644 vendor/github.com/google/gxui/text_selection.go delete mode 100644 vendor/github.com/google/gxui/text_selection_list.go delete mode 100644 vendor/github.com/google/gxui/textbox.go delete mode 100644 vendor/github.com/google/gxui/textbox_controller.go delete mode 100644 vendor/github.com/google/gxui/texture.go delete mode 100644 vendor/github.com/google/gxui/theme.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/bubble_overlay.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/button.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/code_editor.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/colors.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/drop_down_list.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/image.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/label.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/linear_layout.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/list.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/panel_holder.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/panel_tab.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/progress_bar.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/scroll_bar.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/scroll_layout.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/splitter_layout.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/style.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/table_layout.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/textbox.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/theme.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/tree.go delete mode 100644 vendor/github.com/google/gxui/themes/basic/window.go delete mode 100644 vendor/github.com/google/gxui/themes/dark/theme.go delete mode 100644 vendor/github.com/google/gxui/themes/light/theme.go delete mode 100644 vendor/github.com/google/gxui/tooltip_controller.go delete mode 100644 vendor/github.com/google/gxui/tree.go delete mode 100644 vendor/github.com/google/gxui/utils.go delete mode 100644 vendor/github.com/google/gxui/viewport.go delete mode 100644 vendor/github.com/google/gxui/while_attached.go delete mode 100644 vendor/github.com/google/gxui/window.go delete mode 100644 vendor/github.com/gopherjs/gopherjs/LICENSE delete mode 100644 vendor/github.com/gopherjs/gopherjs/js/js.go delete mode 100644 vendor/github.com/goxjs/gl/.travis.yml delete mode 100644 vendor/github.com/goxjs/gl/LICENSE delete mode 100644 vendor/github.com/goxjs/gl/README.md delete mode 100644 vendor/github.com/goxjs/gl/consts.go delete mode 100644 vendor/github.com/goxjs/gl/doc.go delete mode 100644 vendor/github.com/goxjs/gl/gl_opengl.go delete mode 100644 vendor/github.com/goxjs/gl/gl_opengles.go delete mode 100644 vendor/github.com/goxjs/gl/gl_webgl.go delete mode 100644 vendor/github.com/goxjs/gl/types_opengl.go delete mode 100644 vendor/github.com/goxjs/gl/types_opengles.go delete mode 100644 vendor/github.com/goxjs/gl/types_webgl.go delete mode 100644 vendor/github.com/goxjs/glfw/.travis.yml delete mode 100644 vendor/github.com/goxjs/glfw/README.md delete mode 100644 vendor/github.com/goxjs/glfw/browser.go delete mode 100644 vendor/github.com/goxjs/glfw/context_webgl.go delete mode 100644 vendor/github.com/goxjs/glfw/desktop.go delete mode 100644 vendor/github.com/goxjs/glfw/glfw.go delete mode 100644 vendor/github.com/goxjs/glfw/hint_glfw.go delete mode 100644 vendor/github.com/goxjs/glfw/hint_js.go delete mode 100644 vendor/github.com/jroimartin/gocui/.gitignore delete mode 100644 vendor/github.com/jroimartin/gocui/AUTHORS delete mode 100644 vendor/github.com/jroimartin/gocui/LICENSE delete mode 100644 vendor/github.com/jroimartin/gocui/README.md delete mode 100644 vendor/github.com/jroimartin/gocui/attribute.go delete mode 100644 vendor/github.com/jroimartin/gocui/doc.go delete mode 100644 vendor/github.com/jroimartin/gocui/edit.go delete mode 100644 vendor/github.com/jroimartin/gocui/escape.go delete mode 100644 vendor/github.com/jroimartin/gocui/gui.go delete mode 100644 vendor/github.com/jroimartin/gocui/keybinding.go delete mode 100644 vendor/github.com/jroimartin/gocui/view.go delete mode 100644 vendor/github.com/mattn/go-runewidth/.travis.yml delete mode 100644 vendor/github.com/mattn/go-runewidth/LICENSE delete mode 100644 vendor/github.com/mattn/go-runewidth/README.mkd delete mode 100644 vendor/github.com/mattn/go-runewidth/runewidth.go delete mode 100644 vendor/github.com/mattn/go-runewidth/runewidth_js.go delete mode 100644 vendor/github.com/mattn/go-runewidth/runewidth_posix.go delete mode 100644 vendor/github.com/mattn/go-runewidth/runewidth_windows.go delete mode 100644 vendor/github.com/nsf/termbox-go/AUTHORS delete mode 100644 vendor/github.com/nsf/termbox-go/LICENSE delete mode 100644 vendor/github.com/nsf/termbox-go/README.md delete mode 100644 vendor/github.com/nsf/termbox-go/api.go delete mode 100644 vendor/github.com/nsf/termbox-go/api_common.go delete mode 100644 vendor/github.com/nsf/termbox-go/api_windows.go delete mode 100644 vendor/github.com/nsf/termbox-go/collect_terminfo.py delete mode 100644 vendor/github.com/nsf/termbox-go/escwait.go delete mode 100644 vendor/github.com/nsf/termbox-go/escwait_darwin.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls_darwin.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls_darwin_amd64.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls_dragonfly.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls_freebsd.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls_linux.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls_netbsd.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls_openbsd.go delete mode 100644 vendor/github.com/nsf/termbox-go/syscalls_windows.go delete mode 100644 vendor/github.com/nsf/termbox-go/termbox.go delete mode 100644 vendor/github.com/nsf/termbox-go/termbox_common.go delete mode 100644 vendor/github.com/nsf/termbox-go/termbox_windows.go delete mode 100644 vendor/github.com/nsf/termbox-go/terminfo.go delete mode 100644 vendor/github.com/nsf/termbox-go/terminfo_builtin.go delete mode 100644 vendor/golang.org/x/image/AUTHORS delete mode 100644 vendor/golang.org/x/image/CONTRIBUTORS delete mode 100644 vendor/golang.org/x/image/LICENSE delete mode 100644 vendor/golang.org/x/image/PATENTS delete mode 100644 vendor/golang.org/x/image/draw/draw.go delete mode 100644 vendor/golang.org/x/image/draw/gen.go delete mode 100644 vendor/golang.org/x/image/draw/go1_8.go delete mode 100644 vendor/golang.org/x/image/draw/go1_9.go delete mode 100644 vendor/golang.org/x/image/draw/impl.go delete mode 100644 vendor/golang.org/x/image/draw/scale.go delete mode 100644 vendor/golang.org/x/image/font/basicfont/basicfont.go delete mode 100644 vendor/golang.org/x/image/font/basicfont/data.go delete mode 100644 vendor/golang.org/x/image/font/basicfont/gen.go delete mode 100644 vendor/golang.org/x/image/font/font.go delete mode 100644 vendor/golang.org/x/image/font/plan9font/plan9font.go delete mode 100644 vendor/golang.org/x/image/math/f64/f64.go delete mode 100644 vendor/golang.org/x/image/math/fixed/fixed.go delete mode 100644 vendor/honnef.co/go/js/dom/LICENSE delete mode 100644 vendor/honnef.co/go/js/dom/README.md delete mode 100644 vendor/honnef.co/go/js/dom/dom.go delete mode 100644 vendor/honnef.co/go/js/dom/events.go diff --git a/go.mod b/go.mod index afe946a..cc736be 100644 --- a/go.mod +++ b/go.mod @@ -1,21 +1,23 @@ module github.com/esimov/diagram +go 1.22 + require ( + gioui.org v0.7.0 github.com/fogleman/gg v1.0.1-0.20180308184255-c97f757e6f0e - github.com/go-gl/gl v0.0.0-20180304232605-eafa86a81d97 - github.com/go-gl/glfw v0.0.0-20170814180746-513e4f2bf85c - github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 - github.com/google/gxui v0.0.0-20151028112939-f85e0a97b3a4 - github.com/gopherjs/gopherjs v0.0.0-20180314020201-768621c88e58 - github.com/goxjs/gl v0.0.0-20171128034433-dc8f4a9a3c9c - github.com/goxjs/glfw v0.0.0-20171018044755-7dec05603e06 github.com/jroimartin/gocui v0.3.1-0.20170827195011-4f518eddb04b - github.com/mattn/go-runewidth v0.0.3-0.20180304235428-a9d6d1e4dc51 - github.com/nsf/termbox-go v0.0.0-20180303152453-e2050e41c884 - golang.org/x/image v0.0.0-20180314180248-f3a9b89b59de - honnef.co/go/js/dom v0.0.0-20180307180539-662b7b8f3412 ) -go 1.13 - -replace github.com/google/gxui => ./vendor/github.com/google/gxui/ +require ( + gioui.org/cpu v0.0.0-20210817075930-8d6a761490d2 // indirect + gioui.org/shader v1.0.8 // indirect + github.com/go-text/typesetting v0.1.1 // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect + github.com/mattn/go-runewidth v0.0.3-0.20180304235428-a9d6d1e4dc51 // indirect + github.com/nsf/termbox-go v0.0.0-20180303152453-e2050e41c884 // indirect + golang.org/x/exp v0.0.0-20221012211006-4de253d81b95 // indirect + golang.org/x/exp/shiny v0.0.0-20220827204233-334a2380cb91 // indirect + golang.org/x/image v0.5.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.9.0 // indirect +) diff --git a/go.sum b/go.sum index 96271d7..c6fa1d3 100644 --- a/go.sum +++ b/go.sum @@ -1,24 +1,57 @@ +eliasnaur.com/font v0.0.0-20230308162249-dd43949cb42d h1:ARo7NCVvN2NdhLlJE9xAbKweuI9L6UgfTbYb0YwPacY= +eliasnaur.com/font v0.0.0-20230308162249-dd43949cb42d/go.mod h1:OYVuxibdk9OSLX8vAqydtRPP87PyTFcT9uH3MlEGBQA= +gioui.org v0.7.0 h1:5I+7Uu2yjTu7W5p7HWQrgsDPO3vex+8T1DsvCLGBfuI= +gioui.org v0.7.0/go.mod h1:19wZxaNP+eHN4H2YdZwEfbkAAgoYB5rcIbDHo4BqUl4= +gioui.org/cpu v0.0.0-20210808092351-bfe733dd3334/go.mod h1:A8M0Cn5o+vY5LTMlnRoK3O5kG+rH0kWfJjeKd9QpBmQ= +gioui.org/cpu v0.0.0-20210817075930-8d6a761490d2 h1:AGDDxsJE1RpcXTAxPG2B4jrwVUJGFDjINIPi1jtO6pc= +gioui.org/cpu v0.0.0-20210817075930-8d6a761490d2/go.mod h1:A8M0Cn5o+vY5LTMlnRoK3O5kG+rH0kWfJjeKd9QpBmQ= +gioui.org/shader v1.0.8 h1:6ks0o/A+b0ne7RzEqRZK5f4Gboz2CfG+mVliciy6+qA= +gioui.org/shader v1.0.8/go.mod h1:mWdiME581d/kV7/iEhLmUgUK5iZ09XR5XpduXzbePVM= github.com/fogleman/gg v1.0.1-0.20180308184255-c97f757e6f0e h1:Uxa5iXmaagOoIOkp9/OjjfFfSljeMMImZsOyfycUTQE= github.com/fogleman/gg v1.0.1-0.20180308184255-c97f757e6f0e/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= -github.com/go-gl/gl v0.0.0-20180304232605-eafa86a81d97 h1:On2uwhieavUE0HwIBON6O04M9nxOA7swLzkj2RtUkpU= -github.com/go-gl/gl v0.0.0-20180304232605-eafa86a81d97/go.mod h1:482civXOzJJCPzJ4ZOX/pwvXBWSnzD4OKMdH4ClKGbk= -github.com/go-gl/glfw v0.0.0-20170814180746-513e4f2bf85c h1:1zCo3Fa2xy/b0b4A3U9M000k1V3JPJhLaCki4eaLfhQ= -github.com/go-gl/glfw v0.0.0-20170814180746-513e4f2bf85c/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-text/typesetting v0.1.1 h1:bGAesCuo85nXnEN5LmFMVGAGpGkCPtHrZLi//qD7EJo= +github.com/go-text/typesetting v0.1.1/go.mod h1:d22AnmeKq/on0HNv73UFriMKc4Ez6EqZAofLhAzpSzI= +github.com/go-text/typesetting-utils v0.0.0-20231211103740-d9332ae51f04 h1:zBx+p/W2aQYtNuyZNcTfinWvXBQwYtDfme051PR/lAY= +github.com/go-text/typesetting-utils v0.0.0-20231211103740-d9332ae51f04/go.mod h1:DDxDdQEnB70R8owOx3LVpEFvpMK9eeH1o2r0yZhFI9o= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= -github.com/google/gxui v0.0.0-20151028112939-f85e0a97b3a4 h1:OL2d27ueTKnlQJoqLW2fc9pWYulFnJYLWzomGV7HqZo= -github.com/google/gxui v0.0.0-20151028112939-f85e0a97b3a4/go.mod h1:Pw1H1OjSNHiqeuxAduB1BKYXIwFtsyrY47nEqSgEiCM= -github.com/gopherjs/gopherjs v0.0.0-20180314020201-768621c88e58/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/goxjs/gl v0.0.0-20171128034433-dc8f4a9a3c9c h1:naEGFd9BJuTM/1m2lP07Bl9O7O6Jqe+bUplBfAwdygg= -github.com/goxjs/gl v0.0.0-20171128034433-dc8f4a9a3c9c/go.mod h1:dy/f2gjY09hwVfIyATps4G2ai7/hLwLkc5TrPqONuXY= -github.com/goxjs/glfw v0.0.0-20171018044755-7dec05603e06 h1:6jKIS84Kj8pXaqte+73xLvaT+OGt0+fs+TbFczltZP0= -github.com/goxjs/glfw v0.0.0-20171018044755-7dec05603e06/go.mod h1:oS8P8gVOT4ywTcjV6wZlOU4GuVFQ8F5328KY3MJ79CY= github.com/jroimartin/gocui v0.3.1-0.20170827195011-4f518eddb04b h1:oXDIgfbS+8ScemPBkP9aedVduRryQvoz6U7mlfh4zhs= github.com/jroimartin/gocui v0.3.1-0.20170827195011-4f518eddb04b/go.mod h1:7i7bbj99OgFHzo7kB2zPb8pXLqMBSQegY7azfqXMkyY= github.com/mattn/go-runewidth v0.0.3-0.20180304235428-a9d6d1e4dc51 h1:73DyaxlfqHF9FQireGHkut6r7OuuA0jTVjS9N0vwktI= github.com/mattn/go-runewidth v0.0.3-0.20180304235428-a9d6d1e4dc51/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/nsf/termbox-go v0.0.0-20180303152453-e2050e41c884 h1:fcs71SMqqDhUD+PbpIv9xf3EH9F9s6HfiLwr6jKm1VA= github.com/nsf/termbox-go v0.0.0-20180303152453-e2050e41c884/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -golang.org/x/image v0.0.0-20180314180248-f3a9b89b59de h1:moc8EjTGZXlnKJcoDZDWCDV1Vn3Zt/MZDpIRmIs7qt0= -golang.org/x/image v0.0.0-20180314180248-f3a9b89b59de/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= -honnef.co/go/js/dom v0.0.0-20180307180539-662b7b8f3412/go.mod h1:sUMDUKNB2ZcVjt92UnLy3cdGs+wDAcrPdV3JP6sVgA4= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/exp v0.0.0-20221012211006-4de253d81b95 h1:sBdrWpxhGDdTAYNqbgBLAR+ULAPPhfgncLr1X0lyWtg= +golang.org/x/exp v0.0.0-20221012211006-4de253d81b95/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= +golang.org/x/exp/shiny v0.0.0-20220827204233-334a2380cb91 h1:ryT6Nf0R83ZgD8WnFFdfI8wCeyqgdXWN4+CkFVNPAT0= +golang.org/x/exp/shiny v0.0.0-20220827204233-334a2380cb91/go.mod h1:VjAR7z0ngyATZTELrBSkxOOHhhlnVUxDye4mcjx5h/8= +golang.org/x/image v0.5.0 h1:5JMiNunQeQw++mMOz48/ISeNu3Iweh/JaZU8ZLqHRrI= +golang.org/x/image v0.5.0/go.mod h1:FVC7BI/5Ym8R25iw5OLsgshdUBbT1h5jZTpA+mvAdZ4= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/gui/window.go b/gui/window.go new file mode 100644 index 0000000..534ab00 --- /dev/null +++ b/gui/window.go @@ -0,0 +1,84 @@ +package gui + +import ( + "fmt" + "image" + "image/color" + + "gioui.org/app" + "gioui.org/io/key" + "gioui.org/layout" + "gioui.org/op" + "gioui.org/op/clip" + "gioui.org/op/paint" + "gioui.org/unit" + "gioui.org/widget" +) + +type GUI struct { + image paint.ImageOp + title string +} + +func NewGUI(img image.Image, title string) *GUI { + return &GUI{ + image: paint.NewImageOp(img), + title: title, + } +} + +func (ui *GUI) Draw() error { + w := new(app.Window) + w.Option(app.Size( + unit.Dp(ui.image.Size().X), + unit.Dp(ui.image.Size().Y), + ), app.Title(ui.title)) + + if err := ui.Run(w); err != nil { + return fmt.Errorf("GUI rendering error: %w", err) + } + + return nil +} + +func (ui *GUI) Run(w *app.Window) error { + var ops op.Ops + + for { + switch e := w.Event().(type) { + case app.FrameEvent: + gtx := app.NewContext(&ops, e) + ui.drawDiagram(gtx) + + e.Frame(gtx.Ops) + case app.DestroyEvent: + return e.Err + case key.Event: + switch e.Name { + case key.NameEscape: + return nil + } + } + } +} + +func (ui *GUI) drawDiagram(gtx layout.Context) { + layout.Stack{}.Layout(gtx, + layout.Stacked(func(gtx layout.Context) layout.Dimensions { + paint.FillShape(gtx.Ops, color.NRGBA{R: 0xFF, G: 0xFF, B: 0xFF, A: 0xff}, + clip.Rect{Max: gtx.Constraints.Max}.Op(), + ) + + return layout.UniformInset(unit.Dp(0)).Layout(gtx, + func(gtx layout.Context) layout.Dimensions { + widget.Image{ + Src: ui.image, + Scale: 1 / float32(unit.Dp(1)), + Fit: widget.Contain, + }.Layout(gtx) + + return layout.Dimensions{Size: gtx.Constraints.Max} + }) + }), + ) +} diff --git a/main.go b/main.go index d4b0d90..c738a9f 100644 --- a/main.go +++ b/main.go @@ -6,20 +6,16 @@ package main import ( "flag" "fmt" - "go/build" "image" - "image/draw" "log" "math/rand" "os" "time" "github.com/esimov/diagram/canvas" + "github.com/esimov/diagram/gui" "github.com/esimov/diagram/io" "github.com/esimov/diagram/ui" - "github.com/google/gxui" - "github.com/google/gxui/drivers/gl" - "github.com/google/gxui/samples/flags" ) const HelpBanner = ` @@ -31,10 +27,11 @@ const HelpBanner = ` CLI app to convert ASCII arts into hand drawn diagrams. ` + // Version indicates the current build version. var version string -var defaultFontFile = build.Default.GOPATH + "/src/github.com/esimov/diagram" + "/font/gloriahallelujah.ttf" +var defaultFontFile = "font/gloriahallelujah.ttf" var ( source = flag.String("in", "", "Source") @@ -44,7 +41,7 @@ var ( ) func main() { - rand.Seed(time.Now().UTC().UnixNano()) + rand.NewSource(time.Now().UnixNano()) flag.Usage = func() { fmt.Fprintf(os.Stderr, fmt.Sprintf(HelpBanner, version)) @@ -60,30 +57,21 @@ func main() { if err != nil { log.Fatal("Error on converting the ascii art to hand drawn diagrams!") } else if *preview { - gl.StartDriver(func(driver gxui.Driver) { - f, err := os.Open(*destination) - if err != nil { - log.Fatalf("Failed to open image '%s': %v\n", *destination, err) - } - source, _, err := image.Decode(f) - if err != nil { - log.Fatalf("Failed to read image '%s': %v\n", *destination, err) - } - theme := flags.CreateTheme(driver) - img := theme.CreateImage() + f, err := os.Open(*destination) + if err != nil { + log.Fatalf("Failed to open image '%s': %v\n", *destination, err) + } - window := theme.CreateWindow(source.Bounds().Max.X, source.Bounds().Max.Y, "Diagram preview") - window.SetScale(flags.DefaultScaleFactor) - window.AddChild(img) + source, _, err := image.Decode(f) + if err != nil { + log.Fatalf("Failed to read image '%s': %v\n", *destination, err) + } - // Copy the image to a RGBA format before handing to a gxui.Texture - rgba := image.NewRGBA(source.Bounds()) - draw.Draw(rgba, source.Bounds(), source, image.ZP, draw.Src) - texture := driver.CreateTexture(rgba, 1) - img.SetTexture(texture) + gui := gui.NewGUI(source, "ASCII diagram preview") - window.OnClose(driver.Terminate) - }) + if err := gui.Draw(); err != nil { + log.Fatalf("diagram GUI draw error: %v", err) + } } } else { ui.InitApp(*fontPath) diff --git a/ui/handlers.go b/ui/handlers.go index b921a32..9937c24 100644 --- a/ui/handlers.go +++ b/ui/handlers.go @@ -28,16 +28,16 @@ type handlers []handler var keyHandlers = &handlers{ {mainViews, gocui.KeyTab, "Tab", "Next Panel", onNextPanel}, {mainViews, 0xFF, "Shift+Tab", "Previous Panel", nil}, - {nil, gocui.KeyPgup, "PgUp", "Jump to the top", nil}, - {nil, gocui.KeyPgdn, "PgDown", "Jump to the bottom", nil}, - {nil, gocui.KeyHome, "Home", "Jump to the start", nil}, - {nil, gocui.KeyEnd, "End", "Jump to the end", nil}, + {nil, gocui.KeyPgup, "PgUp", "Jump to the first line", nil}, + {nil, gocui.KeyPgdn, "PgDown", "Jump to the last line", nil}, + {nil, gocui.KeyHome, "Home", "Jump to the line start", nil}, + {nil, gocui.KeyEnd, "End", "Jump to the line end", nil}, *getDeleteHandler(), {nil, gocui.KeyCtrlX, "Ctrl+x", "Clear editor content", nil}, {nil, gocui.KeyCtrlZ, "Ctrl+z", "Restore editor content", nil}, {nil, gocui.KeyCtrlS, "Ctrl+s", "Save diagram", onSaveDiagram}, {nil, gocui.KeyCtrlD, "Ctrl+d", "Draw diagram", onDrawDiagram}, - {nil, gocui.KeyCtrlC, "Ctrl+c", "Quit", onQuit}, + {nil, gocui.KeyCtrlQ, "Ctrl+q", "Quit", onQuit}, } // getDeleteHandler defines and returns a delete view handler diff --git a/ui/panels.go b/ui/panels.go index 2dac24d..9796ff2 100644 --- a/ui/panels.go +++ b/ui/panels.go @@ -3,7 +3,6 @@ package ui import ( "fmt" "image" - "image/draw" "log" "math" "os" @@ -13,11 +12,9 @@ import ( "time" "github.com/esimov/diagram/canvas" + "github.com/esimov/diagram/gui" "github.com/esimov/diagram/io" "github.com/esimov/diagram/version" - "github.com/google/gxui" - "github.com/google/gxui/drivers/gl" - "github.com/google/gxui/samples/flags" "github.com/jroimartin/gocui" ) @@ -55,7 +52,7 @@ const ( // Main views var panelViews = map[string]panelProperties{ LOGO_PANEL: { - title: "Diagram", + title: " Diagram ", text: version.DrawLogo(), x1: 0.0, y1: 0.0, @@ -65,7 +62,7 @@ var panelViews = map[string]panelProperties{ cursor: false, }, SAVED_DIAGRAMS_PANEL: { - title: "Saved Diagrams", + title: " Saved Diagrams ", text: "", x1: 0.0, y1: 0.25, @@ -75,7 +72,7 @@ var panelViews = map[string]panelProperties{ cursor: false, }, LOG_PANEL: { - title: "Console", + title: " Console ", text: "", x1: 0.0, y1: 0.90, @@ -85,7 +82,7 @@ var panelViews = map[string]panelProperties{ cursor: false, }, DIAGRAM_PANEL: { - title: "Editor", + title: " Editor ", text: string(io.ReadFile("sample.txt")), x1: 0.4, y1: 0.0, @@ -95,7 +92,7 @@ var panelViews = map[string]panelProperties{ cursor: true, }, PROGRESS_PANEL: { - title: "Progress", + title: " Progress ", text: "", x1: 0.0, y1: 0.7, @@ -120,7 +117,7 @@ var modalViews = map[string]panelProperties{ }, PROGRESS_MODAL: { title: "", - text: "\tGenerating...", + text: " Generating...", editable: false, }, } @@ -216,7 +213,7 @@ func (ui *UI) toggleHelp(g *gocui.Gui, content string) error { } return ui.closeModal(ui.currentModal) } - v, err := ui.openModal(HELP_PANEL, 40, panelHeight, true) + v, err := ui.openModal(HELP_PANEL, 45, panelHeight, true) if err != nil { return err } @@ -438,12 +435,14 @@ func (ui *UI) drawDiagram(name string) error { return err } } + if currentFile == "" { output = "output.png" } else { output = strings.TrimSuffix(currentFile, ".txt") output = output + ".png" } + // Show progress ui.showProgressModal(PROGRESS_MODAL) @@ -451,6 +450,7 @@ func (ui *UI) drawDiagram(name string) error { if err != nil { log.Fatal(err) } + filePath := cwd + "/output/" // Create output directory in case it does not exists. @@ -463,7 +463,7 @@ func (ui *UI) drawDiagram(name string) error { if err == nil { ui.log(fmt.Sprintf("Successfully converted the ascii diagram into %s!", output), false) } else { - ui.log(fmt.Sprintf("Error on saving the ascii diagram: %v", err), true) + ui.log(fmt.Sprintf("Error saving the ascii diagram: %v", err), true) } // Close progress modal after 1 second @@ -473,47 +473,36 @@ func (ui *UI) drawDiagram(name string) error { if err := ui.closeModal(PROGRESS_MODAL); err != nil { return err } - defer func() { - if err == nil { - gl.StartDriver(func(driver gxui.Driver) { - diagram := filePath + output - f, err := os.Open(diagram) - if err != nil { - log.Fatalf("Failed to open image '%s': %v\n", diagram, err) - } - source, _, err := image.Decode(f) - if err != nil { - log.Fatalf("Failed to read image '%s': %v\n", diagram, err) - } - theme := flags.CreateTheme(driver) - img := theme.CreateImage() - - dx, dy := source.Bounds().Max.X, source.Bounds().Max.Y - - // Use MinGUIWindow size in case the generated diagram is less then MinGUIWindow. - if dx < MinGUIWindow { - dx = MinGUIWindow - } - if dy < MinGUIWindow { - dy = MinGUIWindow - } - window := theme.CreateWindow(dx, dy, "Diagram preview") - window.SetScale(flags.DefaultScaleFactor) - window.AddChild(img) - - // Copy the image to a RGBA format before handing to a gxui.Texture - rgba := image.NewRGBA(source.Bounds()) - draw.Draw(rgba, source.Bounds(), source, image.ZP, draw.Src) - texture := driver.CreateTexture(rgba, 1) - img.SetTexture(texture) - - window.OnClose(driver.Terminate) - }) - } - }() + return nil }) }) + + defer func() error { + if err == nil { + diagram := filePath + output + f, err := os.Open(diagram) + if err != nil { + return fmt.Errorf("failed opening the image '%s': %w", diagram, err) + } + + source, _, err := image.Decode(f) + if err != nil { + return fmt.Errorf("failed to decode the image '%s': %w", diagram, err) + } + + gui := gui.NewGUI(source, "ASCII diagram preview") + go func() error { + if err := gui.Draw(); err != nil { + return fmt.Errorf("error drawing the diagram: %w", err) + } + return nil + }() + } + + return nil + }() + return nil } @@ -524,10 +513,12 @@ func (ui *UI) showSaveModal(name string) error { if err := ui.closeModal(ui.currentModal); err != nil { return err } + modal, err := ui.openModal(name, 40, 4, false) if err != nil { return err } + if ui.modalTimer != nil { ui.modalTimer.Stop() } @@ -538,6 +529,7 @@ func (ui *UI) showSaveModal(name string) error { ui.gui.DeleteKeybinding("", gocui.MouseLeft, gocui.ModNone) ui.gui.DeleteKeybinding("", gocui.MouseRelease, gocui.ModNone) + ui.gui.DeleteKeybinding("", gocui.KeyCtrlH, gocui.ModNone) // Close event handler onClose := func(*gocui.Gui, *gocui.View) error { @@ -575,7 +567,7 @@ func (ui *UI) showSaveModal(name string) error { } ui.log(fmt.Sprintf("The file has been saved as: %s", file), false) } else { - ui.log("File name should contain only letters, numbers and underscores!", true) + ui.log("Wrong file name! The file name should contain only letters, numbers and underscores!", true) } if err := ui.closeOpenedModals(modalElements); err != nil { diff --git a/vendor/github.com/fogleman/gg/.gitignore b/vendor/github.com/fogleman/gg/.gitignore deleted file mode 100644 index 2fa80d6..0000000 --- a/vendor/github.com/fogleman/gg/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.png - diff --git a/vendor/github.com/fogleman/gg/LICENSE.md b/vendor/github.com/fogleman/gg/LICENSE.md deleted file mode 100644 index d7b4099..0000000 --- a/vendor/github.com/fogleman/gg/LICENSE.md +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (C) 2016 Michael Fogleman - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/github.com/fogleman/gg/README.md b/vendor/github.com/fogleman/gg/README.md deleted file mode 100644 index 0417f94..0000000 --- a/vendor/github.com/fogleman/gg/README.md +++ /dev/null @@ -1,216 +0,0 @@ -# Go Graphics - -`gg` is a library for rendering 2D graphics in pure Go. - -![Stars](http://i.imgur.com/CylQIJt.png) - -## Installation - - go get -u github.com/fogleman/gg - -Alternatively, you may use gopkg.in to grab a specific major-version: - - go get -u gopkg.in/fogleman/gg.v1 - -## Documentation - -https://godoc.org/github.com/fogleman/gg - -## Hello, Circle! - -Look how easy! - -```go -package main - -import "github.com/fogleman/gg" - -func main() { - dc := gg.NewContext(1000, 1000) - dc.DrawCircle(500, 500, 400) - dc.SetRGB(0, 0, 0) - dc.Fill() - dc.SavePNG("out.png") -} -``` - -## Examples - -There are [lots of examples](https://github.com/fogleman/gg/tree/master/examples) included. They're mostly for testing the code, but they're good for learning, too. - -![Examples](http://i.imgur.com/tMFoyzu.png) - -## Creating Contexts - -There are a few ways of creating a context. - -```go -NewContext(width, height int) *Context -NewContextForImage(im image.Image) *Context -NewContextForRGBA(im *image.RGBA) *Context -``` - -## Drawing Functions - -Ever used a graphics library that didn't have functions for drawing rectangles -or circles? What a pain! - -```go -DrawPoint(x, y, r float64) -DrawLine(x1, y1, x2, y2 float64) -DrawRectangle(x, y, w, h float64) -DrawRoundedRectangle(x, y, w, h, r float64) -DrawCircle(x, y, r float64) -DrawArc(x, y, r, angle1, angle2 float64) -DrawEllipse(x, y, rx, ry float64) -DrawEllipticalArc(x, y, rx, ry, angle1, angle2 float64) -DrawRegularPolygon(n int, x, y, r, rotation float64) -DrawImage(im image.Image, x, y int) -DrawImageAnchored(im image.Image, x, y int, ax, ay float64) -SetPixel(x, y int) - -MoveTo(x, y float64) -LineTo(x, y float64) -QuadraticTo(x1, y1, x2, y2 float64) -CubicTo(x1, y1, x2, y2, x3, y3 float64) -ClosePath() -ClearPath() -NewSubPath() - -Clear() -Stroke() -Fill() -StrokePreserve() -FillPreserve() -``` - -It is often desired to center an image at a point. Use `DrawImageAnchored` with `ax` and `ay` set to 0.5 to do this. Use 0 to left or top align. Use 1 to right or bottom align. `DrawStringAnchored` does the same for text, so you don't need to call `MeasureString` yourself. - -## Text Functions - -It will even do word wrap for you! - -```go -DrawString(s string, x, y float64) -DrawStringAnchored(s string, x, y, ax, ay float64) -DrawStringWrapped(s string, x, y, ax, ay, width, lineSpacing float64, align Align) -MeasureString(s string) (w, h float64) -WordWrap(s string, w float64) []string -SetFontFace(fontFace font.Face) -LoadFontFace(path string, points float64) error -``` - -## Color Functions - -Colors can be set in several different ways for your convenience. - -```go -SetRGB(r, g, b float64) -SetRGBA(r, g, b, a float64) -SetRGB255(r, g, b int) -SetRGBA255(r, g, b, a int) -SetColor(c color.Color) -SetHexColor(x string) -``` - -## Stroke & Fill Options - -```go -SetLineWidth(lineWidth float64) -SetLineCap(lineCap LineCap) -SetLineJoin(lineJoin LineJoin) -SetDash(dashes ...float64) -SetFillRule(fillRule FillRule) -``` - -## Gradients & Patterns - -`gg` supports linear and radial gradients and surface patterns. You can also implement your own patterns. - -```go -SetFillStyle(pattern Pattern) -SetStrokeStyle(pattern Pattern) -NewSolidPattern(color color.Color) -NewLinearGradient(x0, y0, x1, y1 float64) -NewRadialGradient(x0, y0, r0, x1, y1, r1 float64) -NewSurfacePattern(im image.Image, op RepeatOp) -``` - -## Transformation Functions - -```go -Identity() -Translate(x, y float64) -Scale(x, y float64) -Rotate(angle float64) -Shear(x, y float64) -ScaleAbout(sx, sy, x, y float64) -RotateAbout(angle, x, y float64) -ShearAbout(sx, sy, x, y float64) -TransformPoint(x, y float64) (tx, ty float64) -InvertY() -``` - -It is often desired to rotate or scale about a point that is not the origin. The functions `RotateAbout`, `ScaleAbout`, `ShearAbout` are provided as a convenience. - -`InvertY` is provided in case Y should increase from bottom to top vs. the default top to bottom. - -## Stack Functions - -Save and restore the state of the context. These can be nested. - -```go -Push() -Pop() -``` - -## Clipping Functions - -Use clipping regions to restrict drawing operations to an area that you -defined using paths. - -```go -Clip() -ClipPreserve() -ResetClip() -``` - -## Helper Functions - -Sometimes you just don't want to write these yourself. - -```go -Radians(degrees float64) float64 -Degrees(radians float64) float64 -LoadImage(path string) (image.Image, error) -LoadPNG(path string) (image.Image, error) -SavePNG(path string, im image.Image) error -``` - -![Separator](http://i.imgur.com/fsUvnPB.png) - -## Another Example - -See the output of this example below. - -```go -package main - -import "github.com/fogleman/gg" - -func main() { - const S = 1024 - dc := gg.NewContext(S, S) - dc.SetRGBA(0, 0, 0, 0.1) - for i := 0; i < 360; i += 15 { - dc.Push() - dc.RotateAbout(gg.Radians(float64(i)), S/2, S/2) - dc.DrawEllipse(S/2, S/2, S*7/16, S/8) - dc.Fill() - dc.Pop() - } - dc.SavePNG("out.png") -} -``` - -![Ellipses](http://i.imgur.com/J9CBZef.png) diff --git a/vendor/github.com/fogleman/gg/bezier.go b/vendor/github.com/fogleman/gg/bezier.go deleted file mode 100644 index f2cd7ab..0000000 --- a/vendor/github.com/fogleman/gg/bezier.go +++ /dev/null @@ -1,59 +0,0 @@ -package gg - -import "math" - -func quadratic(x0, y0, x1, y1, x2, y2, t float64) (x, y float64) { - u := 1 - t - a := u * u - b := 2 * u * t - c := t * t - x = a*x0 + b*x1 + c*x2 - y = a*y0 + b*y1 + c*y2 - return -} - -func QuadraticBezier(x0, y0, x1, y1, x2, y2 float64) []Point { - l := (math.Hypot(x1-x0, y1-y0) + - math.Hypot(x2-x1, y2-y1)) - n := int(l + 0.5) - if n < 4 { - n = 4 - } - d := float64(n) - 1 - result := make([]Point, n) - for i := 0; i < n; i++ { - t := float64(i) / d - x, y := quadratic(x0, y0, x1, y1, x2, y2, t) - result[i] = Point{x, y} - } - return result -} - -func cubic(x0, y0, x1, y1, x2, y2, x3, y3, t float64) (x, y float64) { - u := 1 - t - a := u * u * u - b := 3 * u * u * t - c := 3 * u * t * t - d := t * t * t - x = a*x0 + b*x1 + c*x2 + d*x3 - y = a*y0 + b*y1 + c*y2 + d*y3 - return -} - -func CubicBezier(x0, y0, x1, y1, x2, y2, x3, y3 float64) []Point { - l := (math.Hypot(x1-x0, y1-y0) + - math.Hypot(x2-x1, y2-y1) + - math.Hypot(x3-x2, y3-y2)) - n := int(l + 0.5) - if n < 4 { - n = 4 - } - d := float64(n) - 1 - result := make([]Point, n) - for i := 0; i < n; i++ { - t := float64(i) / d - x, y := cubic(x0, y0, x1, y1, x2, y2, x3, y3, t) - result[i] = Point{x, y} - } - return result -} diff --git a/vendor/github.com/fogleman/gg/context.go b/vendor/github.com/fogleman/gg/context.go deleted file mode 100644 index 3d973b8..0000000 --- a/vendor/github.com/fogleman/gg/context.go +++ /dev/null @@ -1,824 +0,0 @@ -// Package gg provides a simple API for rendering 2D graphics in pure Go. -package gg - -import ( - "errors" - "image" - "image/color" - "image/png" - "io" - "math" - - "github.com/golang/freetype/raster" - "golang.org/x/image/draw" - "golang.org/x/image/font" - "golang.org/x/image/font/basicfont" - "golang.org/x/image/math/f64" -) - -type LineCap int - -const ( - LineCapRound LineCap = iota - LineCapButt - LineCapSquare -) - -type LineJoin int - -const ( - LineJoinRound LineJoin = iota - LineJoinBevel -) - -type FillRule int - -const ( - FillRuleWinding FillRule = iota - FillRuleEvenOdd -) - -type Align int - -const ( - AlignLeft Align = iota - AlignCenter - AlignRight -) - -var ( - defaultFillStyle = NewSolidPattern(color.White) - defaultStrokeStyle = NewSolidPattern(color.Black) -) - -type Context struct { - width int - height int - im *image.RGBA - mask *image.Alpha - color color.Color - fillPattern Pattern - strokePattern Pattern - strokePath raster.Path - fillPath raster.Path - start Point - current Point - hasCurrent bool - dashes []float64 - lineWidth float64 - lineCap LineCap - lineJoin LineJoin - fillRule FillRule - fontFace font.Face - fontHeight float64 - matrix Matrix - stack []*Context -} - -// NewContext creates a new image.RGBA with the specified width and height -// and prepares a context for rendering onto that image. -func NewContext(width, height int) *Context { - return NewContextForRGBA(image.NewRGBA(image.Rect(0, 0, width, height))) -} - -// NewContextForImage copies the specified image into a new image.RGBA -// and prepares a context for rendering onto that image. -func NewContextForImage(im image.Image) *Context { - return NewContextForRGBA(imageToRGBA(im)) -} - -// NewContextForRGBA prepares a context for rendering onto the specified image. -// No copy is made. -func NewContextForRGBA(im *image.RGBA) *Context { - return &Context{ - width: im.Bounds().Size().X, - height: im.Bounds().Size().Y, - im: im, - color: color.Transparent, - fillPattern: defaultFillStyle, - strokePattern: defaultStrokeStyle, - lineWidth: 1, - fillRule: FillRuleWinding, - fontFace: basicfont.Face7x13, - fontHeight: 13, - matrix: Identity(), - } -} - -// Image returns the image that has been drawn by this context. -func (dc *Context) Image() image.Image { - return dc.im -} - -// Width returns the width of the image in pixels. -func (dc *Context) Width() int { - return dc.width -} - -// Height returns the height of the image in pixels. -func (dc *Context) Height() int { - return dc.height -} - -// SavePNG encodes the image as a PNG and writes it to disk. -func (dc *Context) SavePNG(path string) error { - return SavePNG(path, dc.im) -} - -// EncodePNG encodes the image as a PNG and writes it to the provided io.Writer. -func (dc *Context) EncodePNG(w io.Writer) error { - return png.Encode(w, dc.im) -} - -// SetDash sets the current dash pattern to use. Call with zero arguments to -// disable dashes. The values specify the lengths of each dash, with -// alternating on and off lengths. -func (dc *Context) SetDash(dashes ...float64) { - dc.dashes = dashes -} - -func (dc *Context) SetLineWidth(lineWidth float64) { - dc.lineWidth = lineWidth -} - -func (dc *Context) SetLineCap(lineCap LineCap) { - dc.lineCap = lineCap -} - -func (dc *Context) SetLineCapRound() { - dc.lineCap = LineCapRound -} - -func (dc *Context) SetLineCapButt() { - dc.lineCap = LineCapButt -} - -func (dc *Context) SetLineCapSquare() { - dc.lineCap = LineCapSquare -} - -func (dc *Context) SetLineJoin(lineJoin LineJoin) { - dc.lineJoin = lineJoin -} - -func (dc *Context) SetLineJoinRound() { - dc.lineJoin = LineJoinRound -} - -func (dc *Context) SetLineJoinBevel() { - dc.lineJoin = LineJoinBevel -} - -func (dc *Context) SetFillRule(fillRule FillRule) { - dc.fillRule = fillRule -} - -func (dc *Context) SetFillRuleWinding() { - dc.fillRule = FillRuleWinding -} - -func (dc *Context) SetFillRuleEvenOdd() { - dc.fillRule = FillRuleEvenOdd -} - -// Color Setters - -func (dc *Context) setFillAndStrokeColor(c color.Color) { - dc.color = c - dc.fillPattern = NewSolidPattern(c) - dc.strokePattern = NewSolidPattern(c) -} - -// SetFillStyle sets current fill style -func (dc *Context) SetFillStyle(pattern Pattern) { - // if pattern is SolidPattern, also change dc.color(for dc.Clear, dc.drawString) - if fillStyle, ok := pattern.(*solidPattern); ok { - dc.color = fillStyle.color - } - dc.fillPattern = pattern -} - -// SetStrokeStyle sets current stroke style -func (dc *Context) SetStrokeStyle(pattern Pattern) { - dc.strokePattern = pattern -} - -// SetColor sets the current color(for both fill and stroke). -func (dc *Context) SetColor(c color.Color) { - dc.setFillAndStrokeColor(c) -} - -// SetHexColor sets the current color using a hex string. The leading pound -// sign (#) is optional. Both 3- and 6-digit variations are supported. 8 digits -// may be provided to set the alpha value as well. -func (dc *Context) SetHexColor(x string) { - r, g, b, a := parseHexColor(x) - dc.SetRGBA255(r, g, b, a) -} - -// SetRGBA255 sets the current color. r, g, b, a values should be between 0 and -// 255, inclusive. -func (dc *Context) SetRGBA255(r, g, b, a int) { - dc.color = color.NRGBA{uint8(r), uint8(g), uint8(b), uint8(a)} - dc.setFillAndStrokeColor(dc.color) -} - -// SetRGB255 sets the current color. r, g, b values should be between 0 and 255, -// inclusive. Alpha will be set to 255 (fully opaque). -func (dc *Context) SetRGB255(r, g, b int) { - dc.SetRGBA255(r, g, b, 255) -} - -// SetRGBA sets the current color. r, g, b, a values should be between 0 and 1, -// inclusive. -func (dc *Context) SetRGBA(r, g, b, a float64) { - dc.color = color.NRGBA{ - uint8(r * 255), - uint8(g * 255), - uint8(b * 255), - uint8(a * 255), - } - dc.setFillAndStrokeColor(dc.color) -} - -// SetRGB sets the current color. r, g, b values should be between 0 and 1, -// inclusive. Alpha will be set to 1 (fully opaque). -func (dc *Context) SetRGB(r, g, b float64) { - dc.SetRGBA(r, g, b, 1) -} - -// Path Manipulation - -// MoveTo starts a new subpath within the current path starting at the -// specified point. -func (dc *Context) MoveTo(x, y float64) { - if dc.hasCurrent { - dc.fillPath.Add1(dc.start.Fixed()) - } - x, y = dc.TransformPoint(x, y) - p := Point{x, y} - dc.strokePath.Start(p.Fixed()) - dc.fillPath.Start(p.Fixed()) - dc.start = p - dc.current = p - dc.hasCurrent = true -} - -// LineTo adds a line segment to the current path starting at the current -// point. If there is no current point, it is equivalent to MoveTo(x, y) -func (dc *Context) LineTo(x, y float64) { - if !dc.hasCurrent { - dc.MoveTo(x, y) - } else { - x, y = dc.TransformPoint(x, y) - p := Point{x, y} - dc.strokePath.Add1(p.Fixed()) - dc.fillPath.Add1(p.Fixed()) - dc.current = p - } -} - -// QuadraticTo adds a quadratic bezier curve to the current path starting at -// the current point. If there is no current point, it first performs -// MoveTo(x1, y1) -func (dc *Context) QuadraticTo(x1, y1, x2, y2 float64) { - if !dc.hasCurrent { - dc.MoveTo(x1, y1) - } - x1, y1 = dc.TransformPoint(x1, y1) - x2, y2 = dc.TransformPoint(x2, y2) - p1 := Point{x1, y1} - p2 := Point{x2, y2} - dc.strokePath.Add2(p1.Fixed(), p2.Fixed()) - dc.fillPath.Add2(p1.Fixed(), p2.Fixed()) - dc.current = p2 -} - -// CubicTo adds a cubic bezier curve to the current path starting at the -// current point. If there is no current point, it first performs -// MoveTo(x1, y1). Because freetype/raster does not support cubic beziers, -// this is emulated with many small line segments. -func (dc *Context) CubicTo(x1, y1, x2, y2, x3, y3 float64) { - if !dc.hasCurrent { - dc.MoveTo(x1, y1) - } - x0, y0 := dc.current.X, dc.current.Y - x1, y1 = dc.TransformPoint(x1, y1) - x2, y2 = dc.TransformPoint(x2, y2) - x3, y3 = dc.TransformPoint(x3, y3) - points := CubicBezier(x0, y0, x1, y1, x2, y2, x3, y3) - previous := dc.current.Fixed() - for _, p := range points[1:] { - f := p.Fixed() - if f == previous { - // TODO: this fixes some rendering issues but not all - continue - } - previous = f - dc.strokePath.Add1(f) - dc.fillPath.Add1(f) - dc.current = p - } -} - -// ClosePath adds a line segment from the current point to the beginning -// of the current subpath. If there is no current point, this is a no-op. -func (dc *Context) ClosePath() { - if dc.hasCurrent { - dc.strokePath.Add1(dc.start.Fixed()) - dc.fillPath.Add1(dc.start.Fixed()) - dc.current = dc.start - } -} - -// ClearPath clears the current path. There is no current point after this -// operation. -func (dc *Context) ClearPath() { - dc.strokePath.Clear() - dc.fillPath.Clear() - dc.hasCurrent = false -} - -// NewSubPath starts a new subpath within the current path. There is no current -// point after this operation. -func (dc *Context) NewSubPath() { - if dc.hasCurrent { - dc.fillPath.Add1(dc.start.Fixed()) - } - dc.hasCurrent = false -} - -// Path Drawing - -func (dc *Context) capper() raster.Capper { - switch dc.lineCap { - case LineCapButt: - return raster.ButtCapper - case LineCapRound: - return raster.RoundCapper - case LineCapSquare: - return raster.SquareCapper - } - return nil -} - -func (dc *Context) joiner() raster.Joiner { - switch dc.lineJoin { - case LineJoinBevel: - return raster.BevelJoiner - case LineJoinRound: - return raster.RoundJoiner - } - return nil -} - -func (dc *Context) stroke(painter raster.Painter) { - path := dc.strokePath - if len(dc.dashes) > 0 { - path = dashed(path, dc.dashes) - } else { - // TODO: this is a temporary workaround to remove tiny segments - // that result in rendering issues - path = rasterPath(flattenPath(path)) - } - r := raster.NewRasterizer(dc.width, dc.height) - r.UseNonZeroWinding = true - r.AddStroke(path, fix(dc.lineWidth), dc.capper(), dc.joiner()) - r.Rasterize(painter) -} - -func (dc *Context) fill(painter raster.Painter) { - path := dc.fillPath - if dc.hasCurrent { - path = make(raster.Path, len(dc.fillPath)) - copy(path, dc.fillPath) - path.Add1(dc.start.Fixed()) - } - r := raster.NewRasterizer(dc.width, dc.height) - r.UseNonZeroWinding = dc.fillRule == FillRuleWinding - r.AddPath(path) - r.Rasterize(painter) -} - -// StrokePreserve strokes the current path with the current color, line width, -// line cap, line join and dash settings. The path is preserved after this -// operation. -func (dc *Context) StrokePreserve() { - painter := newPatternPainter(dc.im, dc.mask, dc.strokePattern) - dc.stroke(painter) -} - -// Stroke strokes the current path with the current color, line width, -// line cap, line join and dash settings. The path is cleared after this -// operation. -func (dc *Context) Stroke() { - dc.StrokePreserve() - dc.ClearPath() -} - -// FillPreserve fills the current path with the current color. Open subpaths -// are implicity closed. The path is preserved after this operation. -func (dc *Context) FillPreserve() { - painter := newPatternPainter(dc.im, dc.mask, dc.fillPattern) - dc.fill(painter) -} - -// Fill fills the current path with the current color. Open subpaths -// are implicity closed. The path is cleared after this operation. -func (dc *Context) Fill() { - dc.FillPreserve() - dc.ClearPath() -} - -// ClipPreserve updates the clipping region by intersecting the current -// clipping region with the current path as it would be filled by dc.Fill(). -// The path is preserved after this operation. -func (dc *Context) ClipPreserve() { - clip := image.NewAlpha(image.Rect(0, 0, dc.width, dc.height)) - painter := raster.NewAlphaOverPainter(clip) - dc.fill(painter) - if dc.mask == nil { - dc.mask = clip - } else { - mask := image.NewAlpha(image.Rect(0, 0, dc.width, dc.height)) - draw.DrawMask(mask, mask.Bounds(), clip, image.ZP, dc.mask, image.ZP, draw.Over) - dc.mask = mask - } -} - -// SetMask allows you to directly set the *image.Alpha to be used as a clipping -// mask. It must be the same size as the context, else an error is returned -// and the mask is unchanged. -func (dc *Context) SetMask(mask *image.Alpha) error { - if mask.Bounds().Size() != dc.im.Bounds().Size() { - return errors.New("mask size must match context size") - } - dc.mask = mask - return nil -} - -// AsMask returns an *image.Alpha representing the alpha channel of this -// context. This can be useful for advanced clipping operations where you first -// render the mask geometry and then use it as a mask. -func (dc *Context) AsMask() *image.Alpha { - mask := image.NewAlpha(dc.im.Bounds()) - draw.Draw(mask, dc.im.Bounds(), dc.im, image.ZP, draw.Src) - return mask -} - -// Clip updates the clipping region by intersecting the current -// clipping region with the current path as it would be filled by dc.Fill(). -// The path is cleared after this operation. -func (dc *Context) Clip() { - dc.ClipPreserve() - dc.ClearPath() -} - -// ResetClip clears the clipping region. -func (dc *Context) ResetClip() { - dc.mask = nil -} - -// Convenient Drawing Functions - -// Clear fills the entire image with the current color. -func (dc *Context) Clear() { - src := image.NewUniform(dc.color) - draw.Draw(dc.im, dc.im.Bounds(), src, image.ZP, draw.Src) -} - -// SetPixel sets the color of the specified pixel using the current color. -func (dc *Context) SetPixel(x, y int) { - dc.im.Set(x, y, dc.color) -} - -// DrawPoint is like DrawCircle but ensures that a circle of the specified -// size is drawn regardless of the current transformation matrix. The position -// is still transformed, but not the shape of the point. -func (dc *Context) DrawPoint(x, y, r float64) { - dc.Push() - tx, ty := dc.TransformPoint(x, y) - dc.Identity() - dc.DrawCircle(tx, ty, r) - dc.Pop() -} - -func (dc *Context) DrawLine(x1, y1, x2, y2 float64) { - dc.MoveTo(x1, y1) - dc.LineTo(x2, y2) -} - -func (dc *Context) DrawRectangle(x, y, w, h float64) { - dc.NewSubPath() - dc.MoveTo(x, y) - dc.LineTo(x+w, y) - dc.LineTo(x+w, y+h) - dc.LineTo(x, y+h) - dc.ClosePath() -} - -func (dc *Context) DrawRoundedRectangle(x, y, w, h, r float64) { - x0, x1, x2, x3 := x, x+r, x+w-r, x+w - y0, y1, y2, y3 := y, y+r, y+h-r, y+h - dc.NewSubPath() - dc.MoveTo(x1, y0) - dc.LineTo(x2, y0) - dc.DrawArc(x2, y1, r, Radians(270), Radians(360)) - dc.LineTo(x3, y2) - dc.DrawArc(x2, y2, r, Radians(0), Radians(90)) - dc.LineTo(x1, y3) - dc.DrawArc(x1, y2, r, Radians(90), Radians(180)) - dc.LineTo(x0, y1) - dc.DrawArc(x1, y1, r, Radians(180), Radians(270)) - dc.ClosePath() -} - -func (dc *Context) DrawEllipticalArc(x, y, rx, ry, angle1, angle2 float64) { - const n = 16 - for i := 0; i < n; i++ { - p1 := float64(i+0) / n - p2 := float64(i+1) / n - a1 := angle1 + (angle2-angle1)*p1 - a2 := angle1 + (angle2-angle1)*p2 - x0 := x + rx*math.Cos(a1) - y0 := y + ry*math.Sin(a1) - x1 := x + rx*math.Cos(a1+(a2-a1)/2) - y1 := y + ry*math.Sin(a1+(a2-a1)/2) - x2 := x + rx*math.Cos(a2) - y2 := y + ry*math.Sin(a2) - cx := 2*x1 - x0/2 - x2/2 - cy := 2*y1 - y0/2 - y2/2 - if i == 0 { - if dc.hasCurrent { - dc.LineTo(x0, y0) - } else { - dc.MoveTo(x0, y0) - } - } - dc.QuadraticTo(cx, cy, x2, y2) - } -} - -func (dc *Context) DrawEllipse(x, y, rx, ry float64) { - dc.NewSubPath() - dc.DrawEllipticalArc(x, y, rx, ry, 0, 2*math.Pi) - dc.ClosePath() -} - -func (dc *Context) DrawArc(x, y, r, angle1, angle2 float64) { - dc.DrawEllipticalArc(x, y, r, r, angle1, angle2) -} - -func (dc *Context) DrawCircle(x, y, r float64) { - dc.NewSubPath() - dc.DrawEllipticalArc(x, y, r, r, 0, 2*math.Pi) - dc.ClosePath() -} - -func (dc *Context) DrawRegularPolygon(n int, x, y, r, rotation float64) { - angle := 2 * math.Pi / float64(n) - rotation -= math.Pi / 2 - if n%2 == 0 { - rotation += angle / 2 - } - dc.NewSubPath() - for i := 0; i < n; i++ { - a := rotation + angle*float64(i) - dc.LineTo(x+r*math.Cos(a), y+r*math.Sin(a)) - } - dc.ClosePath() -} - -// DrawImage draws the specified image at the specified point. -func (dc *Context) DrawImage(im image.Image, x, y int) { - dc.DrawImageAnchored(im, x, y, 0, 0) -} - -// DrawImageAnchored draws the specified image at the specified anchor point. -// The anchor point is x - w * ax, y - h * ay, where w, h is the size of the -// image. Use ax=0.5, ay=0.5 to center the image at the specified point. -func (dc *Context) DrawImageAnchored(im image.Image, x, y int, ax, ay float64) { - s := im.Bounds().Size() - x -= int(ax * float64(s.X)) - y -= int(ay * float64(s.Y)) - transformer := draw.BiLinear - fx, fy := float64(x), float64(y) - m := dc.matrix.Translate(fx, fy) - s2d := f64.Aff3{m.XX, m.XY, m.X0, m.YX, m.YY, m.Y0} - if dc.mask == nil { - transformer.Transform(dc.im, s2d, im, im.Bounds(), draw.Over, nil) - } else { - transformer.Transform(dc.im, s2d, im, im.Bounds(), draw.Over, &draw.Options{ - DstMask: dc.mask, - DstMaskP: image.ZP, - }) - } -} - -// Text Functions - -func (dc *Context) SetFontFace(fontFace font.Face) { - dc.fontFace = fontFace - dc.fontHeight = float64(fontFace.Metrics().Height) / 64 -} - -func (dc *Context) LoadFontFace(path string, points float64) error { - face, err := LoadFontFace(path, points) - if err == nil { - dc.fontFace = face - dc.fontHeight = points * 72 / 96 - } - return err -} - -func (dc *Context) FontHeight() float64 { - return dc.fontHeight -} - -func (dc *Context) drawString(im *image.RGBA, s string, x, y float64) { - d := &font.Drawer{ - Dst: im, - Src: image.NewUniform(dc.color), - Face: dc.fontFace, - Dot: fixp(x, y), - } - // based on Drawer.DrawString() in golang.org/x/image/font/font.go - prevC := rune(-1) - for _, c := range s { - if prevC >= 0 { - d.Dot.X += d.Face.Kern(prevC, c) - } - dr, mask, maskp, advance, ok := d.Face.Glyph(d.Dot, c) - if !ok { - // TODO: is falling back on the U+FFFD glyph the responsibility of - // the Drawer or the Face? - // TODO: set prevC = '\ufffd'? - continue - } - sr := dr.Sub(dr.Min) - transformer := draw.BiLinear - fx, fy := float64(dr.Min.X), float64(dr.Min.Y) - m := dc.matrix.Translate(fx, fy) - s2d := f64.Aff3{m.XX, m.XY, m.X0, m.YX, m.YY, m.Y0} - transformer.Transform(d.Dst, s2d, d.Src, sr, draw.Over, &draw.Options{ - SrcMask: mask, - SrcMaskP: maskp, - }) - d.Dot.X += advance - prevC = c - } -} - -// DrawString draws the specified text at the specified point. -func (dc *Context) DrawString(s string, x, y float64) { - dc.DrawStringAnchored(s, x, y, 0, 0) -} - -// DrawStringAnchored draws the specified text at the specified anchor point. -// The anchor point is x - w * ax, y - h * ay, where w, h is the size of the -// text. Use ax=0.5, ay=0.5 to center the text at the specified point. -func (dc *Context) DrawStringAnchored(s string, x, y, ax, ay float64) { - w, h := dc.MeasureString(s) - x -= ax * w - y += ay * h - if dc.mask == nil { - dc.drawString(dc.im, s, x, y) - } else { - im := image.NewRGBA(image.Rect(0, 0, dc.width, dc.height)) - dc.drawString(im, s, x, y) - draw.DrawMask(dc.im, dc.im.Bounds(), im, image.ZP, dc.mask, image.ZP, draw.Over) - } -} - -// DrawStringWrapped word-wraps the specified string to the given max width -// and then draws it at the specified anchor point using the given line -// spacing and text alignment. -func (dc *Context) DrawStringWrapped(s string, x, y, ax, ay, width, lineSpacing float64, align Align) { - lines := dc.WordWrap(s, width) - h := float64(len(lines)) * dc.fontHeight * lineSpacing - h -= (lineSpacing - 1) * dc.fontHeight - x -= ax * width - y -= ay * h - switch align { - case AlignLeft: - ax = 0 - case AlignCenter: - ax = 0.5 - x += width / 2 - case AlignRight: - ax = 1 - x += width - } - ay = 1 - for _, line := range lines { - dc.DrawStringAnchored(line, x, y, ax, ay) - y += dc.fontHeight * lineSpacing - } -} - -// MeasureString returns the rendered width and height of the specified text -// given the current font face. -func (dc *Context) MeasureString(s string) (w, h float64) { - d := &font.Drawer{ - Face: dc.fontFace, - } - a := d.MeasureString(s) - return float64(a >> 6), dc.fontHeight -} - -// WordWrap wraps the specified string to the given max width and current -// font face. -func (dc *Context) WordWrap(s string, w float64) []string { - return wordWrap(dc, s, w) -} - -// Transformation Matrix Operations - -// Identity resets the current transformation matrix to the identity matrix. -// This results in no translating, scaling, rotating, or shearing. -func (dc *Context) Identity() { - dc.matrix = Identity() -} - -// Translate updates the current matrix with a translation. -func (dc *Context) Translate(x, y float64) { - dc.matrix = dc.matrix.Translate(x, y) -} - -// Scale updates the current matrix with a scaling factor. -// Scaling occurs about the origin. -func (dc *Context) Scale(x, y float64) { - dc.matrix = dc.matrix.Scale(x, y) -} - -// ScaleAbout updates the current matrix with a scaling factor. -// Scaling occurs about the specified point. -func (dc *Context) ScaleAbout(sx, sy, x, y float64) { - dc.Translate(x, y) - dc.Scale(sx, sy) - dc.Translate(-x, -y) -} - -// Rotate updates the current matrix with a clockwise rotation. -// Rotation occurs about the origin. Angle is specified in radians. -func (dc *Context) Rotate(angle float64) { - dc.matrix = dc.matrix.Rotate(angle) -} - -// RotateAbout updates the current matrix with a clockwise rotation. -// Rotation occurs about the specified point. Angle is specified in radians. -func (dc *Context) RotateAbout(angle, x, y float64) { - dc.Translate(x, y) - dc.Rotate(angle) - dc.Translate(-x, -y) -} - -// Shear updates the current matrix with a shearing angle. -// Shearing occurs about the origin. -func (dc *Context) Shear(x, y float64) { - dc.matrix = dc.matrix.Shear(x, y) -} - -// ShearAbout updates the current matrix with a shearing angle. -// Shearing occurs about the specified point. -func (dc *Context) ShearAbout(sx, sy, x, y float64) { - dc.Translate(x, y) - dc.Shear(sx, sy) - dc.Translate(-x, -y) -} - -// TransformPoint multiplies the specified point by the current matrix, -// returning a transformed position. -func (dc *Context) TransformPoint(x, y float64) (tx, ty float64) { - return dc.matrix.TransformPoint(x, y) -} - -// InvertY flips the Y axis so that Y grows from bottom to top and Y=0 is at -// the bottom of the image. -func (dc *Context) InvertY() { - dc.Translate(0, float64(dc.height)) - dc.Scale(1, -1) -} - -// Stack - -// Push saves the current state of the context for later retrieval. These -// can be nested. -func (dc *Context) Push() { - x := *dc - dc.stack = append(dc.stack, &x) -} - -// Pop restores the last saved context state from the stack. -func (dc *Context) Pop() { - before := *dc - s := dc.stack - x, s := s[len(s)-1], s[:len(s)-1] - *dc = *x - dc.mask = before.mask - dc.strokePath = before.strokePath - dc.fillPath = before.fillPath - dc.start = before.start - dc.current = before.current - dc.hasCurrent = before.hasCurrent -} diff --git a/vendor/github.com/fogleman/gg/gradient.go b/vendor/github.com/fogleman/gg/gradient.go deleted file mode 100644 index a9cad59..0000000 --- a/vendor/github.com/fogleman/gg/gradient.go +++ /dev/null @@ -1,202 +0,0 @@ -package gg - -import ( - "image/color" - "math" - "sort" -) - -type stop struct { - pos float64 - color color.Color -} - -type stops []stop - -// Len satisfies the Sort interface. -func (s stops) Len() int { - return len(s) -} - -// Less satisfies the Sort interface. -func (s stops) Less(i, j int) bool { - return s[i].pos < s[j].pos -} - -// Swap satisfies the Sort interface. -func (s stops) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -type Gradient interface { - Pattern - AddColorStop(offset float64, color color.Color) -} - -// Linear Gradient -type linearGradient struct { - x0, y0, x1, y1 float64 - stops stops -} - -func (g *linearGradient) ColorAt(x, y int) color.Color { - if len(g.stops) == 0 { - return color.Transparent - } - - fx, fy := float64(x), float64(y) - x0, y0, x1, y1 := g.x0, g.y0, g.x1, g.y1 - dx, dy := x1-x0, y1-y0 - - // Horizontal - if dy == 0 && dx != 0 { - return getColor((fx-x0)/dx, g.stops) - } - - // Vertical - if dx == 0 && dy != 0 { - return getColor((fy-y0)/dy, g.stops) - } - - // Dot product - s0 := dx*(fx-x0) + dy*(fy-y0) - if s0 < 0 { - return g.stops[0].color - } - // Calculate distance to (x0,y0) alone (x0,y0)->(x1,y1) - mag := math.Hypot(dx, dy) - u := ((fx-x0)*-dy + (fy-y0)*dx) / (mag * mag) - x2, y2 := x0+u*-dy, y0+u*dx - d := math.Hypot(fx-x2, fy-y2) / mag - return getColor(d, g.stops) -} - -func (g *linearGradient) AddColorStop(offset float64, color color.Color) { - g.stops = append(g.stops, stop{pos: offset, color: color}) - sort.Sort(g.stops) -} - -func NewLinearGradient(x0, y0, x1, y1 float64) Gradient { - g := &linearGradient{ - x0: x0, y0: y0, - x1: x1, y1: y1, - } - return g -} - -// Radial Gradient -type circle struct { - x, y, r float64 -} - -type radialGradient struct { - c0, c1, cd circle - a, inva float64 - mindr float64 - stops stops -} - -func dot3(x0, y0, z0, x1, y1, z1 float64) float64 { - return x0*x1 + y0*y1 + z0*z1 -} - -func (g *radialGradient) ColorAt(x, y int) color.Color { - if len(g.stops) == 0 { - return color.Transparent - } - - // copy from pixman's pixman-radial-gradient.c - - dx, dy := float64(x)+0.5-g.c0.x, float64(y)+0.5-g.c0.y - b := dot3(dx, dy, g.c0.r, g.cd.x, g.cd.y, g.cd.r) - c := dot3(dx, dy, -g.c0.r, dx, dy, g.c0.r) - - if g.a == 0 { - if b == 0 { - return color.Transparent - } - t := 0.5 * c / b - if t*g.cd.r >= g.mindr { - return getColor(t, g.stops) - } - return color.Transparent - } - - discr := dot3(b, g.a, 0, b, -c, 0) - if discr >= 0 { - sqrtdiscr := math.Sqrt(discr) - t0 := (b + sqrtdiscr) * g.inva - t1 := (b - sqrtdiscr) * g.inva - - if t0*g.cd.r >= g.mindr { - return getColor(t0, g.stops) - } else if t1*g.cd.r >= g.mindr { - return getColor(t1, g.stops) - } - } - - return color.Transparent -} - -func (g *radialGradient) AddColorStop(offset float64, color color.Color) { - g.stops = append(g.stops, stop{pos: offset, color: color}) - sort.Sort(g.stops) -} - -func NewRadialGradient(x0, y0, r0, x1, y1, r1 float64) Gradient { - c0 := circle{x0, y0, r0} - c1 := circle{x1, y1, r1} - cd := circle{x1 - x0, y1 - y0, r1 - r0} - a := dot3(cd.x, cd.y, -cd.r, cd.x, cd.y, cd.r) - var inva float64 - if a != 0 { - inva = 1.0 / a - } - mindr := -c0.r - g := &radialGradient{ - c0: c0, - c1: c1, - cd: cd, - a: a, - inva: inva, - mindr: mindr, - } - return g -} - -func getColor(pos float64, stops stops) color.Color { - if pos <= 0.0 || len(stops) == 1 { - return stops[0].color - } - - last := stops[len(stops)-1] - - if pos >= last.pos { - return last.color - } - - for i, stop := range stops[1:] { - if pos < stop.pos { - pos = (pos - stops[i].pos) / (stop.pos - stops[i].pos) - return colorLerp(stops[i].color, stop.color, pos) - } - } - - return last.color -} - -func colorLerp(c0, c1 color.Color, t float64) color.Color { - r0, g0, b0, a0 := c0.RGBA() - r1, g1, b1, a1 := c1.RGBA() - - return color.RGBA{ - lerp(r0, r1, t), - lerp(g0, g1, t), - lerp(b0, b1, t), - lerp(a0, a1, t), - } -} - -func lerp(a, b uint32, t float64) uint8 { - return uint8(int32(float64(a)*(1.0-t)+float64(b)*t) >> 8) -} diff --git a/vendor/github.com/fogleman/gg/matrix.go b/vendor/github.com/fogleman/gg/matrix.go deleted file mode 100644 index 7d5b312..0000000 --- a/vendor/github.com/fogleman/gg/matrix.go +++ /dev/null @@ -1,88 +0,0 @@ -package gg - -import "math" - -type Matrix struct { - XX, YX, XY, YY, X0, Y0 float64 -} - -func Identity() Matrix { - return Matrix{ - 1, 0, - 0, 1, - 0, 0, - } -} - -func Translate(x, y float64) Matrix { - return Matrix{ - 1, 0, - 0, 1, - x, y, - } -} - -func Scale(x, y float64) Matrix { - return Matrix{ - x, 0, - 0, y, - 0, 0, - } -} - -func Rotate(angle float64) Matrix { - c := math.Cos(angle) - s := math.Sin(angle) - return Matrix{ - c, s, - -s, c, - 0, 0, - } -} - -func Shear(x, y float64) Matrix { - return Matrix{ - 1, y, - x, 1, - 0, 0, - } -} - -func (a Matrix) Multiply(b Matrix) Matrix { - return Matrix{ - a.XX*b.XX + a.YX*b.XY, - a.XX*b.YX + a.YX*b.YY, - a.XY*b.XX + a.YY*b.XY, - a.XY*b.YX + a.YY*b.YY, - a.X0*b.XX + a.Y0*b.XY + b.X0, - a.X0*b.YX + a.Y0*b.YY + b.Y0, - } -} - -func (a Matrix) TransformVector(x, y float64) (tx, ty float64) { - tx = a.XX*x + a.XY*y - ty = a.YX*x + a.YY*y - return -} - -func (a Matrix) TransformPoint(x, y float64) (tx, ty float64) { - tx = a.XX*x + a.XY*y + a.X0 - ty = a.YX*x + a.YY*y + a.Y0 - return -} - -func (a Matrix) Translate(x, y float64) Matrix { - return Translate(x, y).Multiply(a) -} - -func (a Matrix) Scale(x, y float64) Matrix { - return Scale(x, y).Multiply(a) -} - -func (a Matrix) Rotate(angle float64) Matrix { - return Rotate(angle).Multiply(a) -} - -func (a Matrix) Shear(x, y float64) Matrix { - return Shear(x, y).Multiply(a) -} diff --git a/vendor/github.com/fogleman/gg/path.go b/vendor/github.com/fogleman/gg/path.go deleted file mode 100644 index 74785b6..0000000 --- a/vendor/github.com/fogleman/gg/path.go +++ /dev/null @@ -1,140 +0,0 @@ -package gg - -import ( - "github.com/golang/freetype/raster" - "golang.org/x/image/math/fixed" -) - -func flattenPath(p raster.Path) [][]Point { - var result [][]Point - var path []Point - var cx, cy float64 - for i := 0; i < len(p); { - switch p[i] { - case 0: - if len(path) > 0 { - result = append(result, path) - path = nil - } - x := unfix(p[i+1]) - y := unfix(p[i+2]) - path = append(path, Point{x, y}) - cx, cy = x, y - i += 4 - case 1: - x := unfix(p[i+1]) - y := unfix(p[i+2]) - path = append(path, Point{x, y}) - cx, cy = x, y - i += 4 - case 2: - x1 := unfix(p[i+1]) - y1 := unfix(p[i+2]) - x2 := unfix(p[i+3]) - y2 := unfix(p[i+4]) - points := QuadraticBezier(cx, cy, x1, y1, x2, y2) - path = append(path, points...) - cx, cy = x2, y2 - i += 6 - case 3: - x1 := unfix(p[i+1]) - y1 := unfix(p[i+2]) - x2 := unfix(p[i+3]) - y2 := unfix(p[i+4]) - x3 := unfix(p[i+5]) - y3 := unfix(p[i+6]) - points := CubicBezier(cx, cy, x1, y1, x2, y2, x3, y3) - path = append(path, points...) - cx, cy = x3, y3 - i += 8 - default: - panic("bad path") - } - } - if len(path) > 0 { - result = append(result, path) - } - return result -} - -func dashPath(paths [][]Point, dashes []float64) [][]Point { - var result [][]Point - if len(dashes) == 0 { - return paths - } - if len(dashes) == 1 { - dashes = append(dashes, dashes[0]) - } - for _, path := range paths { - if len(path) < 2 { - continue - } - previous := path[0] - pathIndex := 1 - dashIndex := 0 - segmentLength := 0.0 - var segment []Point - segment = append(segment, previous) - for pathIndex < len(path) { - dashLength := dashes[dashIndex] - point := path[pathIndex] - d := previous.Distance(point) - maxd := dashLength - segmentLength - if d > maxd { - t := maxd / d - p := previous.Interpolate(point, t) - segment = append(segment, p) - if dashIndex%2 == 0 && len(segment) > 1 { - result = append(result, segment) - } - segment = nil - segment = append(segment, p) - segmentLength = 0 - previous = p - dashIndex = (dashIndex + 1) % len(dashes) - } else { - segment = append(segment, point) - previous = point - segmentLength += d - pathIndex++ - } - } - if dashIndex%2 == 0 && len(segment) > 1 { - result = append(result, segment) - } - } - return result -} - -func rasterPath(paths [][]Point) raster.Path { - var result raster.Path - for _, path := range paths { - var previous fixed.Point26_6 - for i, point := range path { - f := point.Fixed() - if i == 0 { - result.Start(f) - } else { - dx := f.X - previous.X - dy := f.Y - previous.Y - if dx < 0 { - dx = -dx - } - if dy < 0 { - dy = -dy - } - if dx+dy > 8 { - // TODO: this is a hack for cases where two points are - // too close - causes rendering issues with joins / caps - result.Add1(f) - } - } - previous = f - } - } - return result -} - -func dashed(path raster.Path, dashes []float64) raster.Path { - return rasterPath(dashPath(flattenPath(path), dashes)) -} diff --git a/vendor/github.com/fogleman/gg/pattern.go b/vendor/github.com/fogleman/gg/pattern.go deleted file mode 100644 index 6b396ec..0000000 --- a/vendor/github.com/fogleman/gg/pattern.go +++ /dev/null @@ -1,123 +0,0 @@ -package gg - -import ( - "image" - "image/color" - - "github.com/golang/freetype/raster" -) - -type RepeatOp int - -const ( - RepeatBoth RepeatOp = iota - RepeatX - RepeatY - RepeatNone -) - -type Pattern interface { - ColorAt(x, y int) color.Color -} - -// Solid Pattern -type solidPattern struct { - color color.Color -} - -func (p *solidPattern) ColorAt(x, y int) color.Color { - return p.color -} - -func NewSolidPattern(color color.Color) Pattern { - return &solidPattern{color: color} -} - -// Surface Pattern -type surfacePattern struct { - im image.Image - op RepeatOp -} - -func (p *surfacePattern) ColorAt(x, y int) color.Color { - b := p.im.Bounds() - switch p.op { - case RepeatX: - if y >= b.Dy() { - return color.Transparent - } - case RepeatY: - if x >= b.Dx() { - return color.Transparent - } - case RepeatNone: - if x >= b.Dx() || y >= b.Dy() { - return color.Transparent - } - } - x = x%b.Dx() + b.Min.X - y = y%b.Dy() + b.Min.Y - return p.im.At(x, y) -} - -func NewSurfacePattern(im image.Image, op RepeatOp) Pattern { - return &surfacePattern{im: im, op: op} -} - -type patternPainter struct { - im *image.RGBA - mask *image.Alpha - p Pattern -} - -// Paint satisfies the Painter interface. -func (r *patternPainter) Paint(ss []raster.Span, done bool) { - b := r.im.Bounds() - for _, s := range ss { - if s.Y < b.Min.Y { - continue - } - if s.Y >= b.Max.Y { - return - } - if s.X0 < b.Min.X { - s.X0 = b.Min.X - } - if s.X1 > b.Max.X { - s.X1 = b.Max.X - } - if s.X0 >= s.X1 { - continue - } - const m = 1<<16 - 1 - y := s.Y - r.im.Rect.Min.Y - x0 := s.X0 - r.im.Rect.Min.X - // RGBAPainter.Paint() in $GOPATH/src/github.com/golang/freetype/raster/paint.go - i0 := (s.Y-r.im.Rect.Min.Y)*r.im.Stride + (s.X0-r.im.Rect.Min.X)*4 - i1 := i0 + (s.X1-s.X0)*4 - for i, x := i0, x0; i < i1; i, x = i+4, x+1 { - ma := s.Alpha - if r.mask != nil { - ma = ma * uint32(r.mask.AlphaAt(x, y).A) / 255 - if ma == 0 { - continue - } - } - c := r.p.ColorAt(x, y) - cr, cg, cb, ca := c.RGBA() - dr := uint32(r.im.Pix[i+0]) - dg := uint32(r.im.Pix[i+1]) - db := uint32(r.im.Pix[i+2]) - da := uint32(r.im.Pix[i+3]) - a := (m - (ca * ma / m)) * 0x101 - r.im.Pix[i+0] = uint8((dr*a + cr*ma) / m >> 8) - r.im.Pix[i+1] = uint8((dg*a + cg*ma) / m >> 8) - r.im.Pix[i+2] = uint8((db*a + cb*ma) / m >> 8) - r.im.Pix[i+3] = uint8((da*a + ca*ma) / m >> 8) - } - } -} - -func newPatternPainter(im *image.RGBA, mask *image.Alpha, p Pattern) *patternPainter { - return &patternPainter{im, mask, p} -} diff --git a/vendor/github.com/fogleman/gg/point.go b/vendor/github.com/fogleman/gg/point.go deleted file mode 100644 index d258653..0000000 --- a/vendor/github.com/fogleman/gg/point.go +++ /dev/null @@ -1,25 +0,0 @@ -package gg - -import ( - "math" - - "golang.org/x/image/math/fixed" -) - -type Point struct { - X, Y float64 -} - -func (a Point) Fixed() fixed.Point26_6 { - return fixp(a.X, a.Y) -} - -func (a Point) Distance(b Point) float64 { - return math.Hypot(a.X-b.X, a.Y-b.Y) -} - -func (a Point) Interpolate(b Point, t float64) Point { - x := a.X + (b.X-a.X)*t - y := a.Y + (b.Y-a.Y)*t - return Point{x, y} -} diff --git a/vendor/github.com/fogleman/gg/util.go b/vendor/github.com/fogleman/gg/util.go deleted file mode 100644 index a530fcb..0000000 --- a/vendor/github.com/fogleman/gg/util.go +++ /dev/null @@ -1,117 +0,0 @@ -package gg - -import ( - "fmt" - "image" - "image/draw" - _ "image/jpeg" - "image/png" - "io/ioutil" - "math" - "os" - "strings" - - "github.com/golang/freetype/truetype" - - "golang.org/x/image/font" - "golang.org/x/image/math/fixed" -) - -func Radians(degrees float64) float64 { - return degrees * math.Pi / 180 -} - -func Degrees(radians float64) float64 { - return radians * 180 / math.Pi -} - -func LoadImage(path string) (image.Image, error) { - file, err := os.Open(path) - if err != nil { - return nil, err - } - defer file.Close() - im, _, err := image.Decode(file) - return im, err -} - -func LoadPNG(path string) (image.Image, error) { - file, err := os.Open(path) - if err != nil { - return nil, err - } - defer file.Close() - return png.Decode(file) -} - -func SavePNG(path string, im image.Image) error { - file, err := os.Create(path) - if err != nil { - return err - } - defer file.Close() - return png.Encode(file, im) -} - -func imageToRGBA(src image.Image) *image.RGBA { - dst := image.NewRGBA(src.Bounds()) - draw.Draw(dst, dst.Rect, src, image.ZP, draw.Src) - return dst -} - -func parseHexColor(x string) (r, g, b, a int) { - x = strings.TrimPrefix(x, "#") - a = 255 - if len(x) == 3 { - format := "%1x%1x%1x" - fmt.Sscanf(x, format, &r, &g, &b) - r |= r << 4 - g |= g << 4 - b |= b << 4 - } - if len(x) == 6 { - format := "%02x%02x%02x" - fmt.Sscanf(x, format, &r, &g, &b) - } - if len(x) == 8 { - format := "%02x%02x%02x%02x" - fmt.Sscanf(x, format, &r, &g, &b, &a) - } - return -} - -func fixp(x, y float64) fixed.Point26_6 { - return fixed.Point26_6{fix(x), fix(y)} -} - -func fix(x float64) fixed.Int26_6 { - return fixed.Int26_6(x * 64) -} - -func unfix(x fixed.Int26_6) float64 { - const shift, mask = 6, 1<<6 - 1 - if x >= 0 { - return float64(x>>shift) + float64(x&mask)/64 - } - x = -x - if x >= 0 { - return -(float64(x>>shift) + float64(x&mask)/64) - } - return 0 -} - -func LoadFontFace(path string, points float64) (font.Face, error) { - fontBytes, err := ioutil.ReadFile(path) - if err != nil { - return nil, err - } - f, err := truetype.Parse(fontBytes) - if err != nil { - return nil, err - } - face := truetype.NewFace(f, &truetype.Options{ - Size: points, - // Hinting: font.HintingFull, - }) - return face, nil -} diff --git a/vendor/github.com/fogleman/gg/wrap.go b/vendor/github.com/fogleman/gg/wrap.go deleted file mode 100644 index 3dfe6e1..0000000 --- a/vendor/github.com/fogleman/gg/wrap.go +++ /dev/null @@ -1,58 +0,0 @@ -package gg - -import ( - "strings" - "unicode" -) - -type measureStringer interface { - MeasureString(s string) (w, h float64) -} - -func splitOnSpace(x string) []string { - var result []string - pi := 0 - ps := false - for i, c := range x { - s := unicode.IsSpace(c) - if s != ps && i > 0 { - result = append(result, x[pi:i]) - pi = i - } - ps = s - } - result = append(result, x[pi:]) - return result -} - -func wordWrap(m measureStringer, s string, width float64) []string { - var result []string - for _, line := range strings.Split(s, "\n") { - fields := splitOnSpace(line) - if len(fields)%2 == 1 { - fields = append(fields, "") - } - x := "" - for i := 0; i < len(fields); i += 2 { - w, _ := m.MeasureString(x + fields[i]) - if w > width { - if x == "" { - result = append(result, fields[i]) - x = "" - continue - } else { - result = append(result, x) - x = "" - } - } - x += fields[i] + fields[i+1] - } - if x != "" { - result = append(result, x) - } - } - for i, line := range result { - result[i] = strings.TrimSpace(line) - } - return result -} diff --git a/vendor/github.com/go-gl/gl/LICENSE b/vendor/github.com/go-gl/gl/LICENSE deleted file mode 100644 index bac95ec..0000000 --- a/vendor/github.com/go-gl/gl/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Eric Woroshow - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/vendor/github.com/go-gl/gl/v2.1/gl/conversions.go b/vendor/github.com/go-gl/gl/v2.1/gl/conversions.go deleted file mode 100644 index 866fcd4..0000000 --- a/vendor/github.com/go-gl/gl/v2.1/gl/conversions.go +++ /dev/null @@ -1,109 +0,0 @@ -// Glow automatically generated OpenGL binding: http://github.com/go-gl/glow - -package gl - -import ( - "fmt" - "reflect" - "strings" - "unsafe" -) - -// #include -import "C" - -// Ptr takes a slice or pointer (to a singular scalar value or the first -// element of an array or slice) and returns its GL-compatible address. -// -// For example: -// -// var data []uint8 -// ... -// gl.TexImage2D(gl.TEXTURE_2D, ..., gl.UNSIGNED_BYTE, gl.Ptr(&data[0])) -func Ptr(data interface{}) unsafe.Pointer { - if data == nil { - return unsafe.Pointer(nil) - } - var addr unsafe.Pointer - v := reflect.ValueOf(data) - switch v.Type().Kind() { - case reflect.Ptr: - e := v.Elem() - switch e.Kind() { - case - reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, - reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, - reflect.Float32, reflect.Float64: - addr = unsafe.Pointer(e.UnsafeAddr()) - default: - panic(fmt.Errorf("unsupported pointer to type %s; must be a slice or pointer to a singular scalar value or the first element of an array or slice", e.Kind())) - } - case reflect.Uintptr: - addr = unsafe.Pointer(v.Pointer()) - case reflect.Slice: - addr = unsafe.Pointer(v.Index(0).UnsafeAddr()) - default: - panic(fmt.Errorf("unsupported type %s; must be a slice or pointer to a singular scalar value or the first element of an array or slice", v.Type())) - } - return addr -} - -// PtrOffset takes a pointer offset and returns a GL-compatible pointer. -// Useful for functions such as glVertexAttribPointer that take pointer -// parameters indicating an offset rather than an absolute memory address. -func PtrOffset(offset int) unsafe.Pointer { - return unsafe.Pointer(uintptr(offset)) -} - -// Str takes a null-terminated Go string and returns its GL-compatible address. -// This function reaches into Go string storage in an unsafe way so the caller -// must ensure the string is not garbage collected. -func Str(str string) *uint8 { - if !strings.HasSuffix(str, "\x00") { - panic("str argument missing null terminator: " + str) - } - header := (*reflect.StringHeader)(unsafe.Pointer(&str)) - return (*uint8)(unsafe.Pointer(header.Data)) -} - -// GoStr takes a null-terminated string returned by OpenGL and constructs a -// corresponding Go string. -func GoStr(cstr *uint8) string { - return C.GoString((*C.char)(unsafe.Pointer(cstr))) -} - -// Strs takes a list of Go strings (with or without null-termination) and -// returns their C counterpart. -// -// The returned free function must be called once you are done using the strings -// in order to free the memory. -// -// If no strings are provided as a parameter this function will panic. -func Strs(strs ...string) (cstrs **uint8, free func()) { - if len(strs) == 0 { - panic("Strs: expected at least 1 string") - } - - // Allocate a contiguous array large enough to hold all the strings' contents. - n := 0 - for i := range strs { - n += len(strs[i]) - } - data := C.malloc(C.size_t(n)) - - // Copy all the strings into data. - dataSlice := *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{ - Data: uintptr(data), - Len: n, - Cap: n, - })) - css := make([]*uint8, len(strs)) // Populated with pointers to each string. - offset := 0 - for i := range strs { - copy(dataSlice[offset:offset+len(strs[i])], strs[i][:]) // Copy strs[i] into proper data location. - css[i] = (*uint8)(unsafe.Pointer(&dataSlice[offset])) // Set a pointer to it. - offset += len(strs[i]) - } - - return (**uint8)(&css[0]), func() { C.free(data) } -} diff --git a/vendor/github.com/go-gl/gl/v2.1/gl/debug.go b/vendor/github.com/go-gl/gl/v2.1/gl/debug.go deleted file mode 100644 index 37f7b66..0000000 --- a/vendor/github.com/go-gl/gl/v2.1/gl/debug.go +++ /dev/null @@ -1,31 +0,0 @@ -// Glow automatically generated OpenGL binding: http://github.com/go-gl/glow - -package gl - -import "C" -import "unsafe" - -type DebugProc func( - source uint32, - gltype uint32, - id uint32, - severity uint32, - length int32, - message string, - userParam unsafe.Pointer) - -var userDebugCallback DebugProc - -//export glowDebugCallback_gl21 -func glowDebugCallback_gl21( - source uint32, - gltype uint32, - id uint32, - severity uint32, - length int32, - message *uint8, - userParam unsafe.Pointer) { - if userDebugCallback != nil { - userDebugCallback(source, gltype, id, severity, length, GoStr(message), userParam) - } -} diff --git a/vendor/github.com/go-gl/gl/v2.1/gl/package.go b/vendor/github.com/go-gl/gl/v2.1/gl/package.go deleted file mode 100644 index 2ed9355..0000000 --- a/vendor/github.com/go-gl/gl/v2.1/gl/package.go +++ /dev/null @@ -1,31094 +0,0 @@ -// Copyright (c) 2010 Khronos Group. -// This material may be distributed subject to the terms and conditions -// set forth in the Open Publication License, v 1.0, 8 June 1999. -// http://opencontent.org/openpub/. -// -// Copyright (c) 1991-2006 Silicon Graphics, Inc. -// This document is licensed under the SGI Free Software B License. -// For details, see http://oss.sgi.com/projects/FreeB. - -// Package gl implements Go bindings to OpenGL. -// -// This package was automatically generated using Glow: -// http://github.com/go-gl/glow -// -// Generated based on the OpenGL XML specification: -// SVN revision 27695 -package gl - -// #cgo darwin LDFLAGS: -framework OpenGL -// #cgo linux freebsd LDFLAGS: -lGL -// #cgo windows LDFLAGS: -lopengl32 -// #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -// #ifndef WIN32_LEAN_AND_MEAN -// #define WIN32_LEAN_AND_MEAN 1 -// #endif -// #include -// #endif -// #ifndef APIENTRY -// #define APIENTRY -// #endif -// #ifndef APIENTRYP -// #define APIENTRYP APIENTRY * -// #endif -// #ifndef GLAPI -// #define GLAPI extern -// #endif -// #include -// #ifndef GLEXT_64_TYPES_DEFINED -// /* This code block is duplicated in glxext.h, so must be protected */ -// #define GLEXT_64_TYPES_DEFINED -// /* Define int32_t, int64_t, and uint64_t types for UST/MSC */ -// /* (as used in the GL_EXT_timer_query extension). */ -// #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -// #include -// #elif defined(__sun__) || defined(__digital__) -// #include -// #if defined(__STDC__) -// #if defined(__arch64__) || defined(_LP64) -// typedef long int int64_t; -// typedef unsigned long int uint64_t; -// #else -// typedef long long int int64_t; -// typedef unsigned long long int uint64_t; -// #endif /* __arch64__ */ -// #endif /* __STDC__ */ -// #elif defined( __VMS ) || defined(__sgi) -// #include -// #elif defined(__SCO__) || defined(__USLC__) -// #include -// #elif defined(__UNIXOS2__) || defined(__SOL64__) -// typedef long int int32_t; -// typedef long long int int64_t; -// typedef unsigned long long int uint64_t; -// #elif defined(_WIN32) && defined(__GNUC__) -// #include -// #elif defined(_WIN32) -// typedef __int32 int32_t; -// typedef __int64 int64_t; -// typedef unsigned __int64 uint64_t; -// #else -// /* Fallback if nothing above works */ -// #include -// #endif -// #endif -// typedef unsigned int GLenum; -// typedef unsigned char GLboolean; -// typedef unsigned int GLbitfield; -// typedef void GLvoid; -// typedef signed char GLbyte; -// typedef short GLshort; -// typedef int GLint; -// typedef int GLclampx; -// typedef unsigned char GLubyte; -// typedef unsigned short GLushort; -// typedef unsigned int GLuint; -// typedef int GLsizei; -// typedef float GLfloat; -// typedef float GLclampf; -// typedef double GLdouble; -// typedef double GLclampd; -// typedef char GLchar; -// typedef char GLcharARB; -// #ifdef __APPLE__ -// typedef void *GLhandleARB; -// #else -// typedef unsigned int GLhandleARB; -// #endif -// typedef GLint GLfixed; -// typedef ptrdiff_t GLintptr; -// typedef ptrdiff_t GLsizeiptr; -// typedef int64_t GLint64; -// typedef uint64_t GLuint64; -// typedef ptrdiff_t GLintptrARB; -// typedef ptrdiff_t GLsizeiptrARB; -// typedef int64_t GLint64EXT; -// typedef uint64_t GLuint64EXT; -// typedef struct __GLsync *GLsync; -// struct _cl_context; -// struct _cl_event; -// typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -// typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -// typedef void (APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -// typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); -// typedef unsigned short GLhalfNV; -// typedef GLintptr GLvdpauSurfaceNV; -// extern void glowDebugCallback_gl21(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam); -// static void APIENTRY glowCDebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam) { -// glowDebugCallback_gl21(source, type, id, severity, length, message, userParam); -// } -// typedef void (APIENTRYP GPACCUM)(GLenum op, GLfloat value); -// typedef void (APIENTRYP GPACCUMXOES)(GLenum op, GLfixed value); -// typedef void (APIENTRYP GPACTIVEPROGRAMEXT)(GLuint program); -// typedef void (APIENTRYP GPACTIVESHADERPROGRAM)(GLuint pipeline, GLuint program); -// typedef void (APIENTRYP GPACTIVESHADERPROGRAMEXT)(GLuint pipeline, GLuint program); -// typedef void (APIENTRYP GPACTIVESTENCILFACEEXT)(GLenum face); -// typedef void (APIENTRYP GPACTIVETEXTURE)(GLenum texture); -// typedef void (APIENTRYP GPACTIVETEXTUREARB)(GLenum texture); -// typedef void (APIENTRYP GPACTIVEVARYINGNV)(GLuint program, const GLchar * name); -// typedef void (APIENTRYP GPALPHAFRAGMENTOP1ATI)(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -// typedef void (APIENTRYP GPALPHAFRAGMENTOP2ATI)(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -// typedef void (APIENTRYP GPALPHAFRAGMENTOP3ATI)(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); -// typedef void (APIENTRYP GPALPHAFUNC)(GLenum func, GLfloat ref); -// typedef void (APIENTRYP GPALPHAFUNCXOES)(GLenum func, GLfixed ref); -// typedef void (APIENTRYP GPAPPLYTEXTUREEXT)(GLenum mode); -// typedef GLboolean (APIENTRYP GPAREPROGRAMSRESIDENTNV)(GLsizei n, const GLuint * programs, GLboolean * residences); -// typedef GLboolean (APIENTRYP GPARETEXTURESRESIDENT)(GLsizei n, const GLuint * textures, GLboolean * residences); -// typedef GLboolean (APIENTRYP GPARETEXTURESRESIDENTEXT)(GLsizei n, const GLuint * textures, GLboolean * residences); -// typedef void (APIENTRYP GPARRAYELEMENT)(GLint i); -// typedef void (APIENTRYP GPARRAYELEMENTEXT)(GLint i); -// typedef void (APIENTRYP GPARRAYOBJECTATI)(GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -// typedef void (APIENTRYP GPASYNCMARKERSGIX)(GLuint marker); -// typedef void (APIENTRYP GPATTACHOBJECTARB)(GLhandleARB containerObj, GLhandleARB obj); -// typedef void (APIENTRYP GPATTACHSHADER)(GLuint program, GLuint shader); -// typedef void (APIENTRYP GPBEGIN)(GLenum mode); -// typedef void (APIENTRYP GPBEGINCONDITIONALRENDERNV)(GLuint id, GLenum mode); -// typedef void (APIENTRYP GPBEGINCONDITIONALRENDERNVX)(GLuint id); -// typedef void (APIENTRYP GPBEGINFRAGMENTSHADERATI)(); -// typedef void (APIENTRYP GPBEGINOCCLUSIONQUERYNV)(GLuint id); -// typedef void (APIENTRYP GPBEGINPERFMONITORAMD)(GLuint monitor); -// typedef void (APIENTRYP GPBEGINPERFQUERYINTEL)(GLuint queryHandle); -// typedef void (APIENTRYP GPBEGINQUERY)(GLenum target, GLuint id); -// typedef void (APIENTRYP GPBEGINQUERYARB)(GLenum target, GLuint id); -// typedef void (APIENTRYP GPBEGINQUERYINDEXED)(GLenum target, GLuint index, GLuint id); -// typedef void (APIENTRYP GPBEGINTRANSFORMFEEDBACKEXT)(GLenum primitiveMode); -// typedef void (APIENTRYP GPBEGINTRANSFORMFEEDBACKNV)(GLenum primitiveMode); -// typedef void (APIENTRYP GPBEGINVERTEXSHADEREXT)(); -// typedef void (APIENTRYP GPBEGINVIDEOCAPTURENV)(GLuint video_capture_slot); -// typedef void (APIENTRYP GPBINDATTRIBLOCATION)(GLuint program, GLuint index, const GLchar * name); -// typedef void (APIENTRYP GPBINDATTRIBLOCATIONARB)(GLhandleARB programObj, GLuint index, const GLcharARB * name); -// typedef void (APIENTRYP GPBINDBUFFER)(GLenum target, GLuint buffer); -// typedef void (APIENTRYP GPBINDBUFFERARB)(GLenum target, GLuint buffer); -// typedef void (APIENTRYP GPBINDBUFFERBASEEXT)(GLenum target, GLuint index, GLuint buffer); -// typedef void (APIENTRYP GPBINDBUFFERBASENV)(GLenum target, GLuint index, GLuint buffer); -// typedef void (APIENTRYP GPBINDBUFFEROFFSETEXT)(GLenum target, GLuint index, GLuint buffer, GLintptr offset); -// typedef void (APIENTRYP GPBINDBUFFEROFFSETNV)(GLenum target, GLuint index, GLuint buffer, GLintptr offset); -// typedef void (APIENTRYP GPBINDBUFFERRANGEEXT)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -// typedef void (APIENTRYP GPBINDBUFFERRANGENV)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -// typedef void (APIENTRYP GPBINDBUFFERSBASE)(GLenum target, GLuint first, GLsizei count, const GLuint * buffers); -// typedef void (APIENTRYP GPBINDBUFFERSRANGE)(GLenum target, GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizeiptr * sizes); -// typedef void (APIENTRYP GPBINDFRAGDATALOCATIONEXT)(GLuint program, GLuint color, const GLchar * name); -// typedef void (APIENTRYP GPBINDFRAGDATALOCATIONINDEXED)(GLuint program, GLuint colorNumber, GLuint index, const GLchar * name); -// typedef void (APIENTRYP GPBINDFRAGMENTSHADERATI)(GLuint id); -// typedef void (APIENTRYP GPBINDFRAMEBUFFER)(GLenum target, GLuint framebuffer); -// typedef void (APIENTRYP GPBINDFRAMEBUFFEREXT)(GLenum target, GLuint framebuffer); -// typedef void (APIENTRYP GPBINDIMAGETEXTURE)(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); -// typedef void (APIENTRYP GPBINDIMAGETEXTUREEXT)(GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); -// typedef void (APIENTRYP GPBINDIMAGETEXTURES)(GLuint first, GLsizei count, const GLuint * textures); -// typedef GLuint (APIENTRYP GPBINDLIGHTPARAMETEREXT)(GLenum light, GLenum value); -// typedef GLuint (APIENTRYP GPBINDMATERIALPARAMETEREXT)(GLenum face, GLenum value); -// typedef void (APIENTRYP GPBINDMULTITEXTUREEXT)(GLenum texunit, GLenum target, GLuint texture); -// typedef GLuint (APIENTRYP GPBINDPARAMETEREXT)(GLenum value); -// typedef void (APIENTRYP GPBINDPROGRAMARB)(GLenum target, GLuint program); -// typedef void (APIENTRYP GPBINDPROGRAMNV)(GLenum target, GLuint id); -// typedef void (APIENTRYP GPBINDPROGRAMPIPELINE)(GLuint pipeline); -// typedef void (APIENTRYP GPBINDPROGRAMPIPELINEEXT)(GLuint pipeline); -// typedef void (APIENTRYP GPBINDRENDERBUFFER)(GLenum target, GLuint renderbuffer); -// typedef void (APIENTRYP GPBINDRENDERBUFFEREXT)(GLenum target, GLuint renderbuffer); -// typedef void (APIENTRYP GPBINDSAMPLER)(GLuint unit, GLuint sampler); -// typedef void (APIENTRYP GPBINDSAMPLERS)(GLuint first, GLsizei count, const GLuint * samplers); -// typedef GLuint (APIENTRYP GPBINDTEXGENPARAMETEREXT)(GLenum unit, GLenum coord, GLenum value); -// typedef void (APIENTRYP GPBINDTEXTURE)(GLenum target, GLuint texture); -// typedef void (APIENTRYP GPBINDTEXTUREEXT)(GLenum target, GLuint texture); -// typedef void (APIENTRYP GPBINDTEXTUREUNIT)(GLuint unit, GLuint texture); -// typedef GLuint (APIENTRYP GPBINDTEXTUREUNITPARAMETEREXT)(GLenum unit, GLenum value); -// typedef void (APIENTRYP GPBINDTEXTURES)(GLuint first, GLsizei count, const GLuint * textures); -// typedef void (APIENTRYP GPBINDTRANSFORMFEEDBACK)(GLenum target, GLuint id); -// typedef void (APIENTRYP GPBINDTRANSFORMFEEDBACKNV)(GLenum target, GLuint id); -// typedef void (APIENTRYP GPBINDVERTEXARRAY)(GLuint array); -// typedef void (APIENTRYP GPBINDVERTEXARRAYAPPLE)(GLuint array); -// typedef void (APIENTRYP GPBINDVERTEXBUFFER)(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -// typedef void (APIENTRYP GPBINDVERTEXBUFFERS)(GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizei * strides); -// typedef void (APIENTRYP GPBINDVERTEXSHADEREXT)(GLuint id); -// typedef void (APIENTRYP GPBINDVIDEOCAPTURESTREAMBUFFERNV)(GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset); -// typedef void (APIENTRYP GPBINDVIDEOCAPTURESTREAMTEXTURENV)(GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture); -// typedef void (APIENTRYP GPBINORMAL3BEXT)(GLbyte bx, GLbyte by, GLbyte bz); -// typedef void (APIENTRYP GPBINORMAL3BVEXT)(const GLbyte * v); -// typedef void (APIENTRYP GPBINORMAL3DEXT)(GLdouble bx, GLdouble by, GLdouble bz); -// typedef void (APIENTRYP GPBINORMAL3DVEXT)(const GLdouble * v); -// typedef void (APIENTRYP GPBINORMAL3FEXT)(GLfloat bx, GLfloat by, GLfloat bz); -// typedef void (APIENTRYP GPBINORMAL3FVEXT)(const GLfloat * v); -// typedef void (APIENTRYP GPBINORMAL3IEXT)(GLint bx, GLint by, GLint bz); -// typedef void (APIENTRYP GPBINORMAL3IVEXT)(const GLint * v); -// typedef void (APIENTRYP GPBINORMAL3SEXT)(GLshort bx, GLshort by, GLshort bz); -// typedef void (APIENTRYP GPBINORMAL3SVEXT)(const GLshort * v); -// typedef void (APIENTRYP GPBINORMALPOINTEREXT)(GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPBITMAP)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap); -// typedef void (APIENTRYP GPBITMAPXOES)(GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte * bitmap); -// typedef void (APIENTRYP GPBLENDBARRIERKHR)(); -// typedef void (APIENTRYP GPBLENDBARRIERNV)(); -// typedef void (APIENTRYP GPBLENDCOLOR)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -// typedef void (APIENTRYP GPBLENDCOLOREXT)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -// typedef void (APIENTRYP GPBLENDCOLORXOES)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -// typedef void (APIENTRYP GPBLENDEQUATION)(GLenum mode); -// typedef void (APIENTRYP GPBLENDEQUATIONEXT)(GLenum mode); -// typedef void (APIENTRYP GPBLENDEQUATIONINDEXEDAMD)(GLuint buf, GLenum mode); -// typedef void (APIENTRYP GPBLENDEQUATIONSEPARATE)(GLenum modeRGB, GLenum modeAlpha); -// typedef void (APIENTRYP GPBLENDEQUATIONSEPARATEEXT)(GLenum modeRGB, GLenum modeAlpha); -// typedef void (APIENTRYP GPBLENDEQUATIONSEPARATEINDEXEDAMD)(GLuint buf, GLenum modeRGB, GLenum modeAlpha); -// typedef void (APIENTRYP GPBLENDEQUATIONSEPARATEIARB)(GLuint buf, GLenum modeRGB, GLenum modeAlpha); -// typedef void (APIENTRYP GPBLENDEQUATIONIARB)(GLuint buf, GLenum mode); -// typedef void (APIENTRYP GPBLENDFUNC)(GLenum sfactor, GLenum dfactor); -// typedef void (APIENTRYP GPBLENDFUNCINDEXEDAMD)(GLuint buf, GLenum src, GLenum dst); -// typedef void (APIENTRYP GPBLENDFUNCSEPARATE)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -// typedef void (APIENTRYP GPBLENDFUNCSEPARATEEXT)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -// typedef void (APIENTRYP GPBLENDFUNCSEPARATEINGR)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -// typedef void (APIENTRYP GPBLENDFUNCSEPARATEINDEXEDAMD)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -// typedef void (APIENTRYP GPBLENDFUNCSEPARATEIARB)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -// typedef void (APIENTRYP GPBLENDFUNCIARB)(GLuint buf, GLenum src, GLenum dst); -// typedef void (APIENTRYP GPBLENDPARAMETERINV)(GLenum pname, GLint value); -// typedef void (APIENTRYP GPBLITFRAMEBUFFER)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -// typedef void (APIENTRYP GPBLITFRAMEBUFFEREXT)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -// typedef void (APIENTRYP GPBLITNAMEDFRAMEBUFFER)(GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -// typedef void (APIENTRYP GPBUFFERADDRESSRANGENV)(GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); -// typedef void (APIENTRYP GPBUFFERDATA)(GLenum target, GLsizeiptr size, const void * data, GLenum usage); -// typedef void (APIENTRYP GPBUFFERDATAARB)(GLenum target, GLsizeiptrARB size, const void * data, GLenum usage); -// typedef void (APIENTRYP GPBUFFERPAGECOMMITMENTARB)(GLenum target, GLintptr offset, GLsizei size, GLboolean commit); -// typedef void (APIENTRYP GPBUFFERPARAMETERIAPPLE)(GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPBUFFERSTORAGE)(GLenum target, GLsizeiptr size, const void * data, GLbitfield flags); -// typedef void (APIENTRYP GPBUFFERSUBDATA)(GLenum target, GLintptr offset, GLsizeiptr size, const void * data); -// typedef void (APIENTRYP GPBUFFERSUBDATAARB)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void * data); -// typedef void (APIENTRYP GPCALLLIST)(GLuint list); -// typedef void (APIENTRYP GPCALLLISTS)(GLsizei n, GLenum type, const void * lists); -// typedef GLenum (APIENTRYP GPCHECKFRAMEBUFFERSTATUS)(GLenum target); -// typedef GLenum (APIENTRYP GPCHECKFRAMEBUFFERSTATUSEXT)(GLenum target); -// typedef GLenum (APIENTRYP GPCHECKNAMEDFRAMEBUFFERSTATUS)(GLuint framebuffer, GLenum target); -// typedef GLenum (APIENTRYP GPCHECKNAMEDFRAMEBUFFERSTATUSEXT)(GLuint framebuffer, GLenum target); -// typedef void (APIENTRYP GPCLAMPCOLORARB)(GLenum target, GLenum clamp); -// typedef void (APIENTRYP GPCLEAR)(GLbitfield mask); -// typedef void (APIENTRYP GPCLEARACCUM)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -// typedef void (APIENTRYP GPCLEARACCUMXOES)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -// typedef void (APIENTRYP GPCLEARBUFFERDATA)(GLenum target, GLenum internalformat, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCLEARBUFFERSUBDATA)(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCLEARCOLOR)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -// typedef void (APIENTRYP GPCLEARCOLORIIEXT)(GLint red, GLint green, GLint blue, GLint alpha); -// typedef void (APIENTRYP GPCLEARCOLORIUIEXT)(GLuint red, GLuint green, GLuint blue, GLuint alpha); -// typedef void (APIENTRYP GPCLEARCOLORXOES)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -// typedef void (APIENTRYP GPCLEARDEPTH)(GLdouble depth); -// typedef void (APIENTRYP GPCLEARDEPTHDNV)(GLdouble depth); -// typedef void (APIENTRYP GPCLEARDEPTHF)(GLfloat d); -// typedef void (APIENTRYP GPCLEARDEPTHFOES)(GLclampf depth); -// typedef void (APIENTRYP GPCLEARDEPTHXOES)(GLfixed depth); -// typedef void (APIENTRYP GPCLEARINDEX)(GLfloat c); -// typedef void (APIENTRYP GPCLEARNAMEDBUFFERDATA)(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCLEARNAMEDBUFFERDATAEXT)(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCLEARNAMEDBUFFERSUBDATA)(GLuint buffer, GLenum internalformat, GLintptr offset, GLsizei size, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCLEARNAMEDBUFFERSUBDATAEXT)(GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCLEARNAMEDFRAMEBUFFERFI)(GLuint framebuffer, GLenum buffer, const GLfloat depth, GLint stencil); -// typedef void (APIENTRYP GPCLEARNAMEDFRAMEBUFFERFV)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat * value); -// typedef void (APIENTRYP GPCLEARNAMEDFRAMEBUFFERIV)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint * value); -// typedef void (APIENTRYP GPCLEARNAMEDFRAMEBUFFERUIV)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint * value); -// typedef void (APIENTRYP GPCLEARSTENCIL)(GLint s); -// typedef void (APIENTRYP GPCLEARTEXIMAGE)(GLuint texture, GLint level, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCLEARTEXSUBIMAGE)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCLIENTACTIVETEXTURE)(GLenum texture); -// typedef void (APIENTRYP GPCLIENTACTIVETEXTUREARB)(GLenum texture); -// typedef void (APIENTRYP GPCLIENTACTIVEVERTEXSTREAMATI)(GLenum stream); -// typedef void (APIENTRYP GPCLIENTATTRIBDEFAULTEXT)(GLbitfield mask); -// typedef GLenum (APIENTRYP GPCLIENTWAITSYNC)(GLsync sync, GLbitfield flags, GLuint64 timeout); -// typedef void (APIENTRYP GPCLIPCONTROL)(GLenum origin, GLenum depth); -// typedef void (APIENTRYP GPCLIPPLANE)(GLenum plane, const GLdouble * equation); -// typedef void (APIENTRYP GPCLIPPLANEFOES)(GLenum plane, const GLfloat * equation); -// typedef void (APIENTRYP GPCLIPPLANEXOES)(GLenum plane, const GLfixed * equation); -// typedef void (APIENTRYP GPCOLOR3B)(GLbyte red, GLbyte green, GLbyte blue); -// typedef void (APIENTRYP GPCOLOR3BV)(const GLbyte * v); -// typedef void (APIENTRYP GPCOLOR3D)(GLdouble red, GLdouble green, GLdouble blue); -// typedef void (APIENTRYP GPCOLOR3DV)(const GLdouble * v); -// typedef void (APIENTRYP GPCOLOR3F)(GLfloat red, GLfloat green, GLfloat blue); -// typedef void (APIENTRYP GPCOLOR3FVERTEX3FSUN)(GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPCOLOR3FVERTEX3FVSUN)(const GLfloat * c, const GLfloat * v); -// typedef void (APIENTRYP GPCOLOR3FV)(const GLfloat * v); -// typedef void (APIENTRYP GPCOLOR3HNV)(GLhalfNV red, GLhalfNV green, GLhalfNV blue); -// typedef void (APIENTRYP GPCOLOR3HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPCOLOR3I)(GLint red, GLint green, GLint blue); -// typedef void (APIENTRYP GPCOLOR3IV)(const GLint * v); -// typedef void (APIENTRYP GPCOLOR3S)(GLshort red, GLshort green, GLshort blue); -// typedef void (APIENTRYP GPCOLOR3SV)(const GLshort * v); -// typedef void (APIENTRYP GPCOLOR3UB)(GLubyte red, GLubyte green, GLubyte blue); -// typedef void (APIENTRYP GPCOLOR3UBV)(const GLubyte * v); -// typedef void (APIENTRYP GPCOLOR3UI)(GLuint red, GLuint green, GLuint blue); -// typedef void (APIENTRYP GPCOLOR3UIV)(const GLuint * v); -// typedef void (APIENTRYP GPCOLOR3US)(GLushort red, GLushort green, GLushort blue); -// typedef void (APIENTRYP GPCOLOR3USV)(const GLushort * v); -// typedef void (APIENTRYP GPCOLOR3XOES)(GLfixed red, GLfixed green, GLfixed blue); -// typedef void (APIENTRYP GPCOLOR3XVOES)(const GLfixed * components); -// typedef void (APIENTRYP GPCOLOR4B)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); -// typedef void (APIENTRYP GPCOLOR4BV)(const GLbyte * v); -// typedef void (APIENTRYP GPCOLOR4D)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); -// typedef void (APIENTRYP GPCOLOR4DV)(const GLdouble * v); -// typedef void (APIENTRYP GPCOLOR4F)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -// typedef void (APIENTRYP GPCOLOR4FNORMAL3FVERTEX3FSUN)(GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPCOLOR4FNORMAL3FVERTEX3FVSUN)(const GLfloat * c, const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPCOLOR4FV)(const GLfloat * v); -// typedef void (APIENTRYP GPCOLOR4HNV)(GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); -// typedef void (APIENTRYP GPCOLOR4HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPCOLOR4I)(GLint red, GLint green, GLint blue, GLint alpha); -// typedef void (APIENTRYP GPCOLOR4IV)(const GLint * v); -// typedef void (APIENTRYP GPCOLOR4S)(GLshort red, GLshort green, GLshort blue, GLshort alpha); -// typedef void (APIENTRYP GPCOLOR4SV)(const GLshort * v); -// typedef void (APIENTRYP GPCOLOR4UB)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); -// typedef void (APIENTRYP GPCOLOR4UBVERTEX2FSUN)(GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPCOLOR4UBVERTEX2FVSUN)(const GLubyte * c, const GLfloat * v); -// typedef void (APIENTRYP GPCOLOR4UBVERTEX3FSUN)(GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPCOLOR4UBVERTEX3FVSUN)(const GLubyte * c, const GLfloat * v); -// typedef void (APIENTRYP GPCOLOR4UBV)(const GLubyte * v); -// typedef void (APIENTRYP GPCOLOR4UI)(GLuint red, GLuint green, GLuint blue, GLuint alpha); -// typedef void (APIENTRYP GPCOLOR4UIV)(const GLuint * v); -// typedef void (APIENTRYP GPCOLOR4US)(GLushort red, GLushort green, GLushort blue, GLushort alpha); -// typedef void (APIENTRYP GPCOLOR4USV)(const GLushort * v); -// typedef void (APIENTRYP GPCOLOR4XOES)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -// typedef void (APIENTRYP GPCOLOR4XVOES)(const GLfixed * components); -// typedef void (APIENTRYP GPCOLORFORMATNV)(GLint size, GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPCOLORFRAGMENTOP1ATI)(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -// typedef void (APIENTRYP GPCOLORFRAGMENTOP2ATI)(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -// typedef void (APIENTRYP GPCOLORFRAGMENTOP3ATI)(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); -// typedef void (APIENTRYP GPCOLORMASK)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -// typedef void (APIENTRYP GPCOLORMASKINDEXEDEXT)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -// typedef void (APIENTRYP GPCOLORMATERIAL)(GLenum face, GLenum mode); -// typedef void (APIENTRYP GPCOLORPOINTER)(GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPCOLORPOINTEREXT)(GLint size, GLenum type, GLsizei stride, GLsizei count, const void * pointer); -// typedef void (APIENTRYP GPCOLORPOINTERLISTIBM)(GLint size, GLenum type, GLint stride, const void ** pointer, GLint ptrstride); -// typedef void (APIENTRYP GPCOLORPOINTERVINTEL)(GLint size, GLenum type, const void ** pointer); -// typedef void (APIENTRYP GPCOLORSUBTABLEEXT)(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void * data); -// typedef void (APIENTRYP GPCOLORTABLEEXT)(GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void * table); -// typedef void (APIENTRYP GPCOLORTABLEPARAMETERFVSGI)(GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPCOLORTABLEPARAMETERIVSGI)(GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPCOLORTABLESGI)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void * table); -// typedef void (APIENTRYP GPCOMBINERINPUTNV)(GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -// typedef void (APIENTRYP GPCOMBINEROUTPUTNV)(GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); -// typedef void (APIENTRYP GPCOMBINERPARAMETERFNV)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPCOMBINERPARAMETERFVNV)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPCOMBINERPARAMETERINV)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPCOMBINERPARAMETERIVNV)(GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPCOMBINERSTAGEPARAMETERFVNV)(GLenum stage, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPCOMPILESHADER)(GLuint shader); -// typedef void (APIENTRYP GPCOMPILESHADERARB)(GLhandleARB shaderObj); -// typedef void (APIENTRYP GPCOMPILESHADERINCLUDEARB)(GLuint shader, GLsizei count, const GLchar *const* path, const GLint * length); -// typedef void (APIENTRYP GPCOMPRESSEDMULTITEXIMAGE1DEXT)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDMULTITEXIMAGE2DEXT)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDMULTITEXIMAGE3DEXT)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDMULTITEXSUBIMAGE1DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDMULTITEXSUBIMAGE2DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDMULTITEXSUBIMAGE3DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDTEXIMAGE1D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXIMAGE1DARB)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXIMAGE2D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXIMAGE2DARB)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXIMAGE3D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXIMAGE3DARB)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXSUBIMAGE1D)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXSUBIMAGE1DARB)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXSUBIMAGE2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXSUBIMAGE2DARB)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXSUBIMAGE3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXSUBIMAGE3DARB)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTUREIMAGE1DEXT)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTUREIMAGE2DEXT)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTUREIMAGE3DEXT)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTURESUBIMAGE1D)(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTURESUBIMAGE1DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTURESUBIMAGE2D)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTURESUBIMAGE2DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTURESUBIMAGE3D)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data); -// typedef void (APIENTRYP GPCOMPRESSEDTEXTURESUBIMAGE3DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * bits); -// typedef void (APIENTRYP GPCONVOLUTIONFILTER1DEXT)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void * image); -// typedef void (APIENTRYP GPCONVOLUTIONFILTER2DEXT)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * image); -// typedef void (APIENTRYP GPCONVOLUTIONPARAMETERFEXT)(GLenum target, GLenum pname, GLfloat params); -// typedef void (APIENTRYP GPCONVOLUTIONPARAMETERFVEXT)(GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPCONVOLUTIONPARAMETERIEXT)(GLenum target, GLenum pname, GLint params); -// typedef void (APIENTRYP GPCONVOLUTIONPARAMETERIVEXT)(GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPCONVOLUTIONPARAMETERXOES)(GLenum target, GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPCONVOLUTIONPARAMETERXVOES)(GLenum target, GLenum pname, const GLfixed * params); -// typedef void (APIENTRYP GPCOPYBUFFERSUBDATA)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -// typedef void (APIENTRYP GPCOPYCOLORSUBTABLEEXT)(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -// typedef void (APIENTRYP GPCOPYCOLORTABLESGI)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -// typedef void (APIENTRYP GPCOPYCONVOLUTIONFILTER1DEXT)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -// typedef void (APIENTRYP GPCOPYCONVOLUTIONFILTER2DEXT)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYIMAGESUBDATA)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -// typedef void (APIENTRYP GPCOPYIMAGESUBDATANV)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -// typedef void (APIENTRYP GPCOPYMULTITEXIMAGE1DEXT)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -// typedef void (APIENTRYP GPCOPYMULTITEXIMAGE2DEXT)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -// typedef void (APIENTRYP GPCOPYMULTITEXSUBIMAGE1DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -// typedef void (APIENTRYP GPCOPYMULTITEXSUBIMAGE2DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYMULTITEXSUBIMAGE3DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYNAMEDBUFFERSUBDATA)(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizei size); -// typedef void (APIENTRYP GPCOPYPATHNV)(GLuint resultPath, GLuint srcPath); -// typedef void (APIENTRYP GPCOPYPIXELS)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); -// typedef void (APIENTRYP GPCOPYTEXIMAGE1D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -// typedef void (APIENTRYP GPCOPYTEXIMAGE1DEXT)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -// typedef void (APIENTRYP GPCOPYTEXIMAGE2D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -// typedef void (APIENTRYP GPCOPYTEXIMAGE2DEXT)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -// typedef void (APIENTRYP GPCOPYTEXSUBIMAGE1D)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -// typedef void (APIENTRYP GPCOPYTEXSUBIMAGE1DEXT)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -// typedef void (APIENTRYP GPCOPYTEXSUBIMAGE2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYTEXSUBIMAGE2DEXT)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYTEXSUBIMAGE3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYTEXSUBIMAGE3DEXT)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYTEXTUREIMAGE1DEXT)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -// typedef void (APIENTRYP GPCOPYTEXTUREIMAGE2DEXT)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -// typedef void (APIENTRYP GPCOPYTEXTURESUBIMAGE1D)(GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -// typedef void (APIENTRYP GPCOPYTEXTURESUBIMAGE1DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -// typedef void (APIENTRYP GPCOPYTEXTURESUBIMAGE2D)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYTEXTURESUBIMAGE2DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYTEXTURESUBIMAGE3D)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOPYTEXTURESUBIMAGE3DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPCOVERFILLPATHINSTANCEDNV)(GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat * transformValues); -// typedef void (APIENTRYP GPCOVERFILLPATHNV)(GLuint path, GLenum coverMode); -// typedef void (APIENTRYP GPCOVERSTROKEPATHINSTANCEDNV)(GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat * transformValues); -// typedef void (APIENTRYP GPCOVERSTROKEPATHNV)(GLuint path, GLenum coverMode); -// typedef void (APIENTRYP GPCREATEBUFFERS)(GLsizei n, GLuint * buffers); -// typedef void (APIENTRYP GPCREATEFRAMEBUFFERS)(GLsizei n, GLuint * framebuffers); -// typedef void (APIENTRYP GPCREATEPERFQUERYINTEL)(GLuint queryId, GLuint * queryHandle); -// typedef GLuint (APIENTRYP GPCREATEPROGRAM)(); -// typedef GLhandleARB (APIENTRYP GPCREATEPROGRAMOBJECTARB)(); -// typedef void (APIENTRYP GPCREATEPROGRAMPIPELINES)(GLsizei n, GLuint * pipelines); -// typedef void (APIENTRYP GPCREATEQUERIES)(GLenum target, GLsizei n, GLuint * ids); -// typedef void (APIENTRYP GPCREATERENDERBUFFERS)(GLsizei n, GLuint * renderbuffers); -// typedef void (APIENTRYP GPCREATESAMPLERS)(GLsizei n, GLuint * samplers); -// typedef GLuint (APIENTRYP GPCREATESHADER)(GLenum type); -// typedef GLhandleARB (APIENTRYP GPCREATESHADEROBJECTARB)(GLenum shaderType); -// typedef GLuint (APIENTRYP GPCREATESHADERPROGRAMEXT)(GLenum type, const GLchar * string); -// typedef GLuint (APIENTRYP GPCREATESHADERPROGRAMV)(GLenum type, GLsizei count, const GLchar *const* strings); -// typedef GLuint (APIENTRYP GPCREATESHADERPROGRAMVEXT)(GLenum type, GLsizei count, const GLchar ** strings); -// typedef GLsync (APIENTRYP GPCREATESYNCFROMCLEVENTARB)(struct _cl_context * context, struct _cl_event * event, GLbitfield flags); -// typedef void (APIENTRYP GPCREATETEXTURES)(GLenum target, GLsizei n, GLuint * textures); -// typedef void (APIENTRYP GPCREATETRANSFORMFEEDBACKS)(GLsizei n, GLuint * ids); -// typedef void (APIENTRYP GPCREATEVERTEXARRAYS)(GLsizei n, GLuint * arrays); -// typedef void (APIENTRYP GPCULLFACE)(GLenum mode); -// typedef void (APIENTRYP GPCULLPARAMETERDVEXT)(GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPCULLPARAMETERFVEXT)(GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPCURRENTPALETTEMATRIXARB)(GLint index); -// typedef void (APIENTRYP GPDEBUGMESSAGECALLBACK)(GLDEBUGPROC callback, const void * userParam); -// typedef void (APIENTRYP GPDEBUGMESSAGECALLBACKAMD)(GLDEBUGPROCAMD callback, void * userParam); -// typedef void (APIENTRYP GPDEBUGMESSAGECALLBACKARB)(GLDEBUGPROCARB callback, const void * userParam); -// typedef void (APIENTRYP GPDEBUGMESSAGECALLBACKKHR)(GLDEBUGPROCKHR callback, const void * userParam); -// typedef void (APIENTRYP GPDEBUGMESSAGECONTROL)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled); -// typedef void (APIENTRYP GPDEBUGMESSAGECONTROLARB)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled); -// typedef void (APIENTRYP GPDEBUGMESSAGECONTROLKHR)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled); -// typedef void (APIENTRYP GPDEBUGMESSAGEENABLEAMD)(GLenum category, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled); -// typedef void (APIENTRYP GPDEBUGMESSAGEINSERT)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf); -// typedef void (APIENTRYP GPDEBUGMESSAGEINSERTAMD)(GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar * buf); -// typedef void (APIENTRYP GPDEBUGMESSAGEINSERTARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf); -// typedef void (APIENTRYP GPDEBUGMESSAGEINSERTKHR)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf); -// typedef void (APIENTRYP GPDEFORMSGIX)(GLbitfield mask); -// typedef void (APIENTRYP GPDEFORMATIONMAP3DSGIX)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble * points); -// typedef void (APIENTRYP GPDEFORMATIONMAP3FSGIX)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat * points); -// typedef void (APIENTRYP GPDELETEASYNCMARKERSSGIX)(GLuint marker, GLsizei range); -// typedef void (APIENTRYP GPDELETEBUFFERS)(GLsizei n, const GLuint * buffers); -// typedef void (APIENTRYP GPDELETEBUFFERSARB)(GLsizei n, const GLuint * buffers); -// typedef void (APIENTRYP GPDELETEFENCESAPPLE)(GLsizei n, const GLuint * fences); -// typedef void (APIENTRYP GPDELETEFENCESNV)(GLsizei n, const GLuint * fences); -// typedef void (APIENTRYP GPDELETEFRAGMENTSHADERATI)(GLuint id); -// typedef void (APIENTRYP GPDELETEFRAMEBUFFERS)(GLsizei n, const GLuint * framebuffers); -// typedef void (APIENTRYP GPDELETEFRAMEBUFFERSEXT)(GLsizei n, const GLuint * framebuffers); -// typedef void (APIENTRYP GPDELETELISTS)(GLuint list, GLsizei range); -// typedef void (APIENTRYP GPDELETENAMEDSTRINGARB)(GLint namelen, const GLchar * name); -// typedef void (APIENTRYP GPDELETENAMESAMD)(GLenum identifier, GLuint num, const GLuint * names); -// typedef void (APIENTRYP GPDELETEOBJECTARB)(GLhandleARB obj); -// typedef void (APIENTRYP GPDELETEOCCLUSIONQUERIESNV)(GLsizei n, const GLuint * ids); -// typedef void (APIENTRYP GPDELETEPATHSNV)(GLuint path, GLsizei range); -// typedef void (APIENTRYP GPDELETEPERFMONITORSAMD)(GLsizei n, GLuint * monitors); -// typedef void (APIENTRYP GPDELETEPERFQUERYINTEL)(GLuint queryHandle); -// typedef void (APIENTRYP GPDELETEPROGRAM)(GLuint program); -// typedef void (APIENTRYP GPDELETEPROGRAMPIPELINES)(GLsizei n, const GLuint * pipelines); -// typedef void (APIENTRYP GPDELETEPROGRAMPIPELINESEXT)(GLsizei n, const GLuint * pipelines); -// typedef void (APIENTRYP GPDELETEPROGRAMSARB)(GLsizei n, const GLuint * programs); -// typedef void (APIENTRYP GPDELETEPROGRAMSNV)(GLsizei n, const GLuint * programs); -// typedef void (APIENTRYP GPDELETEQUERIES)(GLsizei n, const GLuint * ids); -// typedef void (APIENTRYP GPDELETEQUERIESARB)(GLsizei n, const GLuint * ids); -// typedef void (APIENTRYP GPDELETERENDERBUFFERS)(GLsizei n, const GLuint * renderbuffers); -// typedef void (APIENTRYP GPDELETERENDERBUFFERSEXT)(GLsizei n, const GLuint * renderbuffers); -// typedef void (APIENTRYP GPDELETESAMPLERS)(GLsizei count, const GLuint * samplers); -// typedef void (APIENTRYP GPDELETESHADER)(GLuint shader); -// typedef void (APIENTRYP GPDELETESYNC)(GLsync sync); -// typedef void (APIENTRYP GPDELETETEXTURES)(GLsizei n, const GLuint * textures); -// typedef void (APIENTRYP GPDELETETEXTURESEXT)(GLsizei n, const GLuint * textures); -// typedef void (APIENTRYP GPDELETETRANSFORMFEEDBACKS)(GLsizei n, const GLuint * ids); -// typedef void (APIENTRYP GPDELETETRANSFORMFEEDBACKSNV)(GLsizei n, const GLuint * ids); -// typedef void (APIENTRYP GPDELETEVERTEXARRAYS)(GLsizei n, const GLuint * arrays); -// typedef void (APIENTRYP GPDELETEVERTEXARRAYSAPPLE)(GLsizei n, const GLuint * arrays); -// typedef void (APIENTRYP GPDELETEVERTEXSHADEREXT)(GLuint id); -// typedef void (APIENTRYP GPDEPTHBOUNDSEXT)(GLclampd zmin, GLclampd zmax); -// typedef void (APIENTRYP GPDEPTHBOUNDSDNV)(GLdouble zmin, GLdouble zmax); -// typedef void (APIENTRYP GPDEPTHFUNC)(GLenum func); -// typedef void (APIENTRYP GPDEPTHMASK)(GLboolean flag); -// typedef void (APIENTRYP GPDEPTHRANGE)(GLdouble xnear, GLdouble xfar); -// typedef void (APIENTRYP GPDEPTHRANGEARRAYV)(GLuint first, GLsizei count, const GLdouble * v); -// typedef void (APIENTRYP GPDEPTHRANGEINDEXED)(GLuint index, GLdouble n, GLdouble f); -// typedef void (APIENTRYP GPDEPTHRANGEDNV)(GLdouble zNear, GLdouble zFar); -// typedef void (APIENTRYP GPDEPTHRANGEF)(GLfloat n, GLfloat f); -// typedef void (APIENTRYP GPDEPTHRANGEFOES)(GLclampf n, GLclampf f); -// typedef void (APIENTRYP GPDEPTHRANGEXOES)(GLfixed n, GLfixed f); -// typedef void (APIENTRYP GPDETACHOBJECTARB)(GLhandleARB containerObj, GLhandleARB attachedObj); -// typedef void (APIENTRYP GPDETACHSHADER)(GLuint program, GLuint shader); -// typedef void (APIENTRYP GPDETAILTEXFUNCSGIS)(GLenum target, GLsizei n, const GLfloat * points); -// typedef void (APIENTRYP GPDISABLE)(GLenum cap); -// typedef void (APIENTRYP GPDISABLECLIENTSTATE)(GLenum array); -// typedef void (APIENTRYP GPDISABLECLIENTSTATEINDEXEDEXT)(GLenum array, GLuint index); -// typedef void (APIENTRYP GPDISABLECLIENTSTATEIEXT)(GLenum array, GLuint index); -// typedef void (APIENTRYP GPDISABLEINDEXEDEXT)(GLenum target, GLuint index); -// typedef void (APIENTRYP GPDISABLEVARIANTCLIENTSTATEEXT)(GLuint id); -// typedef void (APIENTRYP GPDISABLEVERTEXARRAYATTRIB)(GLuint vaobj, GLuint index); -// typedef void (APIENTRYP GPDISABLEVERTEXARRAYATTRIBEXT)(GLuint vaobj, GLuint index); -// typedef void (APIENTRYP GPDISABLEVERTEXARRAYEXT)(GLuint vaobj, GLenum array); -// typedef void (APIENTRYP GPDISABLEVERTEXATTRIBAPPLE)(GLuint index, GLenum pname); -// typedef void (APIENTRYP GPDISABLEVERTEXATTRIBARRAY)(GLuint index); -// typedef void (APIENTRYP GPDISABLEVERTEXATTRIBARRAYARB)(GLuint index); -// typedef void (APIENTRYP GPDISPATCHCOMPUTE)(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); -// typedef void (APIENTRYP GPDISPATCHCOMPUTEGROUPSIZEARB)(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); -// typedef void (APIENTRYP GPDISPATCHCOMPUTEINDIRECT)(GLintptr indirect); -// typedef void (APIENTRYP GPDRAWARRAYS)(GLenum mode, GLint first, GLsizei count); -// typedef void (APIENTRYP GPDRAWARRAYSEXT)(GLenum mode, GLint first, GLsizei count); -// typedef void (APIENTRYP GPDRAWARRAYSINDIRECT)(GLenum mode, const void * indirect); -// typedef void (APIENTRYP GPDRAWARRAYSINSTANCEDARB)(GLenum mode, GLint first, GLsizei count, GLsizei primcount); -// typedef void (APIENTRYP GPDRAWARRAYSINSTANCEDBASEINSTANCE)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); -// typedef void (APIENTRYP GPDRAWARRAYSINSTANCEDEXT)(GLenum mode, GLint start, GLsizei count, GLsizei primcount); -// typedef void (APIENTRYP GPDRAWBUFFER)(GLenum buf); -// typedef void (APIENTRYP GPDRAWBUFFERS)(GLsizei n, const GLenum * bufs); -// typedef void (APIENTRYP GPDRAWBUFFERSARB)(GLsizei n, const GLenum * bufs); -// typedef void (APIENTRYP GPDRAWBUFFERSATI)(GLsizei n, const GLenum * bufs); -// typedef void (APIENTRYP GPDRAWELEMENTARRAYAPPLE)(GLenum mode, GLint first, GLsizei count); -// typedef void (APIENTRYP GPDRAWELEMENTARRAYATI)(GLenum mode, GLsizei count); -// typedef void (APIENTRYP GPDRAWELEMENTS)(GLenum mode, GLsizei count, GLenum type, const void * indices); -// typedef void (APIENTRYP GPDRAWELEMENTSBASEVERTEX)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLint basevertex); -// typedef void (APIENTRYP GPDRAWELEMENTSINDIRECT)(GLenum mode, GLenum type, const void * indirect); -// typedef void (APIENTRYP GPDRAWELEMENTSINSTANCEDARB)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount); -// typedef void (APIENTRYP GPDRAWELEMENTSINSTANCEDBASEINSTANCE)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLuint baseinstance); -// typedef void (APIENTRYP GPDRAWELEMENTSINSTANCEDBASEVERTEX)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLint basevertex); -// typedef void (APIENTRYP GPDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); -// typedef void (APIENTRYP GPDRAWELEMENTSINSTANCEDEXT)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount); -// typedef void (APIENTRYP GPDRAWMESHARRAYSSUN)(GLenum mode, GLint first, GLsizei count, GLsizei width); -// typedef void (APIENTRYP GPDRAWPIXELS)(GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPDRAWRANGEELEMENTARRAYAPPLE)(GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); -// typedef void (APIENTRYP GPDRAWRANGEELEMENTARRAYATI)(GLenum mode, GLuint start, GLuint end, GLsizei count); -// typedef void (APIENTRYP GPDRAWRANGEELEMENTS)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices); -// typedef void (APIENTRYP GPDRAWRANGEELEMENTSBASEVERTEX)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices, GLint basevertex); -// typedef void (APIENTRYP GPDRAWRANGEELEMENTSEXT)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices); -// typedef void (APIENTRYP GPDRAWTEXTURENV)(GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); -// typedef void (APIENTRYP GPDRAWTRANSFORMFEEDBACK)(GLenum mode, GLuint id); -// typedef void (APIENTRYP GPDRAWTRANSFORMFEEDBACKINSTANCED)(GLenum mode, GLuint id, GLsizei instancecount); -// typedef void (APIENTRYP GPDRAWTRANSFORMFEEDBACKNV)(GLenum mode, GLuint id); -// typedef void (APIENTRYP GPDRAWTRANSFORMFEEDBACKSTREAM)(GLenum mode, GLuint id, GLuint stream); -// typedef void (APIENTRYP GPDRAWTRANSFORMFEEDBACKSTREAMINSTANCED)(GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); -// typedef void (APIENTRYP GPEDGEFLAG)(GLboolean flag); -// typedef void (APIENTRYP GPEDGEFLAGFORMATNV)(GLsizei stride); -// typedef void (APIENTRYP GPEDGEFLAGPOINTER)(GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPEDGEFLAGPOINTEREXT)(GLsizei stride, GLsizei count, const GLboolean * pointer); -// typedef void (APIENTRYP GPEDGEFLAGPOINTERLISTIBM)(GLint stride, const GLboolean ** pointer, GLint ptrstride); -// typedef void (APIENTRYP GPEDGEFLAGV)(const GLboolean * flag); -// typedef void (APIENTRYP GPELEMENTPOINTERAPPLE)(GLenum type, const void * pointer); -// typedef void (APIENTRYP GPELEMENTPOINTERATI)(GLenum type, const void * pointer); -// typedef void (APIENTRYP GPENABLE)(GLenum cap); -// typedef void (APIENTRYP GPENABLECLIENTSTATE)(GLenum array); -// typedef void (APIENTRYP GPENABLECLIENTSTATEINDEXEDEXT)(GLenum array, GLuint index); -// typedef void (APIENTRYP GPENABLECLIENTSTATEIEXT)(GLenum array, GLuint index); -// typedef void (APIENTRYP GPENABLEINDEXEDEXT)(GLenum target, GLuint index); -// typedef void (APIENTRYP GPENABLEVARIANTCLIENTSTATEEXT)(GLuint id); -// typedef void (APIENTRYP GPENABLEVERTEXARRAYATTRIB)(GLuint vaobj, GLuint index); -// typedef void (APIENTRYP GPENABLEVERTEXARRAYATTRIBEXT)(GLuint vaobj, GLuint index); -// typedef void (APIENTRYP GPENABLEVERTEXARRAYEXT)(GLuint vaobj, GLenum array); -// typedef void (APIENTRYP GPENABLEVERTEXATTRIBAPPLE)(GLuint index, GLenum pname); -// typedef void (APIENTRYP GPENABLEVERTEXATTRIBARRAY)(GLuint index); -// typedef void (APIENTRYP GPENABLEVERTEXATTRIBARRAYARB)(GLuint index); -// typedef void (APIENTRYP GPEND)(); -// typedef void (APIENTRYP GPENDCONDITIONALRENDERNV)(); -// typedef void (APIENTRYP GPENDCONDITIONALRENDERNVX)(); -// typedef void (APIENTRYP GPENDFRAGMENTSHADERATI)(); -// typedef void (APIENTRYP GPENDLIST)(); -// typedef void (APIENTRYP GPENDOCCLUSIONQUERYNV)(); -// typedef void (APIENTRYP GPENDPERFMONITORAMD)(GLuint monitor); -// typedef void (APIENTRYP GPENDPERFQUERYINTEL)(GLuint queryHandle); -// typedef void (APIENTRYP GPENDQUERY)(GLenum target); -// typedef void (APIENTRYP GPENDQUERYARB)(GLenum target); -// typedef void (APIENTRYP GPENDQUERYINDEXED)(GLenum target, GLuint index); -// typedef void (APIENTRYP GPENDTRANSFORMFEEDBACKEXT)(); -// typedef void (APIENTRYP GPENDTRANSFORMFEEDBACKNV)(); -// typedef void (APIENTRYP GPENDVERTEXSHADEREXT)(); -// typedef void (APIENTRYP GPENDVIDEOCAPTURENV)(GLuint video_capture_slot); -// typedef void (APIENTRYP GPEVALCOORD1D)(GLdouble u); -// typedef void (APIENTRYP GPEVALCOORD1DV)(const GLdouble * u); -// typedef void (APIENTRYP GPEVALCOORD1F)(GLfloat u); -// typedef void (APIENTRYP GPEVALCOORD1FV)(const GLfloat * u); -// typedef void (APIENTRYP GPEVALCOORD1XOES)(GLfixed u); -// typedef void (APIENTRYP GPEVALCOORD1XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPEVALCOORD2D)(GLdouble u, GLdouble v); -// typedef void (APIENTRYP GPEVALCOORD2DV)(const GLdouble * u); -// typedef void (APIENTRYP GPEVALCOORD2F)(GLfloat u, GLfloat v); -// typedef void (APIENTRYP GPEVALCOORD2FV)(const GLfloat * u); -// typedef void (APIENTRYP GPEVALCOORD2XOES)(GLfixed u, GLfixed v); -// typedef void (APIENTRYP GPEVALCOORD2XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPEVALMAPSNV)(GLenum target, GLenum mode); -// typedef void (APIENTRYP GPEVALMESH1)(GLenum mode, GLint i1, GLint i2); -// typedef void (APIENTRYP GPEVALMESH2)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); -// typedef void (APIENTRYP GPEVALPOINT1)(GLint i); -// typedef void (APIENTRYP GPEVALPOINT2)(GLint i, GLint j); -// typedef void (APIENTRYP GPEXECUTEPROGRAMNV)(GLenum target, GLuint id, const GLfloat * params); -// typedef void (APIENTRYP GPEXTRACTCOMPONENTEXT)(GLuint res, GLuint src, GLuint num); -// typedef void (APIENTRYP GPFEEDBACKBUFFER)(GLsizei size, GLenum type, GLfloat * buffer); -// typedef void (APIENTRYP GPFEEDBACKBUFFERXOES)(GLsizei n, GLenum type, const GLfixed * buffer); -// typedef GLsync (APIENTRYP GPFENCESYNC)(GLenum condition, GLbitfield flags); -// typedef void (APIENTRYP GPFINALCOMBINERINPUTNV)(GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -// typedef void (APIENTRYP GPFINISH)(); -// typedef GLint (APIENTRYP GPFINISHASYNCSGIX)(GLuint * markerp); -// typedef void (APIENTRYP GPFINISHFENCEAPPLE)(GLuint fence); -// typedef void (APIENTRYP GPFINISHFENCENV)(GLuint fence); -// typedef void (APIENTRYP GPFINISHOBJECTAPPLE)(GLenum object, GLint name); -// typedef void (APIENTRYP GPFINISHTEXTURESUNX)(); -// typedef void (APIENTRYP GPFLUSH)(); -// typedef void (APIENTRYP GPFLUSHMAPPEDBUFFERRANGE)(GLenum target, GLintptr offset, GLsizeiptr length); -// typedef void (APIENTRYP GPFLUSHMAPPEDBUFFERRANGEAPPLE)(GLenum target, GLintptr offset, GLsizeiptr size); -// typedef void (APIENTRYP GPFLUSHMAPPEDNAMEDBUFFERRANGE)(GLuint buffer, GLintptr offset, GLsizei length); -// typedef void (APIENTRYP GPFLUSHMAPPEDNAMEDBUFFERRANGEEXT)(GLuint buffer, GLintptr offset, GLsizeiptr length); -// typedef void (APIENTRYP GPFLUSHPIXELDATARANGENV)(GLenum target); -// typedef void (APIENTRYP GPFLUSHRASTERSGIX)(); -// typedef void (APIENTRYP GPFLUSHSTATICDATAIBM)(GLenum target); -// typedef void (APIENTRYP GPFLUSHVERTEXARRAYRANGEAPPLE)(GLsizei length, void * pointer); -// typedef void (APIENTRYP GPFLUSHVERTEXARRAYRANGENV)(); -// typedef void (APIENTRYP GPFOGCOORDFORMATNV)(GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPFOGCOORDPOINTER)(GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPFOGCOORDPOINTEREXT)(GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPFOGCOORDPOINTERLISTIBM)(GLenum type, GLint stride, const void ** pointer, GLint ptrstride); -// typedef void (APIENTRYP GPFOGCOORDD)(GLdouble coord); -// typedef void (APIENTRYP GPFOGCOORDDEXT)(GLdouble coord); -// typedef void (APIENTRYP GPFOGCOORDDV)(const GLdouble * coord); -// typedef void (APIENTRYP GPFOGCOORDDVEXT)(const GLdouble * coord); -// typedef void (APIENTRYP GPFOGCOORDF)(GLfloat coord); -// typedef void (APIENTRYP GPFOGCOORDFEXT)(GLfloat coord); -// typedef void (APIENTRYP GPFOGCOORDFV)(const GLfloat * coord); -// typedef void (APIENTRYP GPFOGCOORDFVEXT)(const GLfloat * coord); -// typedef void (APIENTRYP GPFOGCOORDHNV)(GLhalfNV fog); -// typedef void (APIENTRYP GPFOGCOORDHVNV)(const GLhalfNV * fog); -// typedef void (APIENTRYP GPFOGFUNCSGIS)(GLsizei n, const GLfloat * points); -// typedef void (APIENTRYP GPFOGF)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPFOGFV)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPFOGI)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPFOGIV)(GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPFOGXOES)(GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPFOGXVOES)(GLenum pname, const GLfixed * param); -// typedef void (APIENTRYP GPFRAGMENTCOLORMATERIALSGIX)(GLenum face, GLenum mode); -// typedef void (APIENTRYP GPFRAGMENTLIGHTMODELFSGIX)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPFRAGMENTLIGHTMODELFVSGIX)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPFRAGMENTLIGHTMODELISGIX)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPFRAGMENTLIGHTMODELIVSGIX)(GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPFRAGMENTLIGHTFSGIX)(GLenum light, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPFRAGMENTLIGHTFVSGIX)(GLenum light, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPFRAGMENTLIGHTISGIX)(GLenum light, GLenum pname, GLint param); -// typedef void (APIENTRYP GPFRAGMENTLIGHTIVSGIX)(GLenum light, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPFRAGMENTMATERIALFSGIX)(GLenum face, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPFRAGMENTMATERIALFVSGIX)(GLenum face, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPFRAGMENTMATERIALISGIX)(GLenum face, GLenum pname, GLint param); -// typedef void (APIENTRYP GPFRAGMENTMATERIALIVSGIX)(GLenum face, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPFRAMETERMINATORGREMEDY)(); -// typedef void (APIENTRYP GPFRAMEZOOMSGIX)(GLint factor); -// typedef void (APIENTRYP GPFRAMEBUFFERDRAWBUFFEREXT)(GLuint framebuffer, GLenum mode); -// typedef void (APIENTRYP GPFRAMEBUFFERDRAWBUFFERSEXT)(GLuint framebuffer, GLsizei n, const GLenum * bufs); -// typedef void (APIENTRYP GPFRAMEBUFFERPARAMETERI)(GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPFRAMEBUFFERREADBUFFEREXT)(GLuint framebuffer, GLenum mode); -// typedef void (APIENTRYP GPFRAMEBUFFERRENDERBUFFER)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -// typedef void (APIENTRYP GPFRAMEBUFFERRENDERBUFFEREXT)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURE1D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURE1DEXT)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURE2D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURE2DEXT)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURE3D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURE3DEXT)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTUREARB)(GLenum target, GLenum attachment, GLuint texture, GLint level); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTUREEXT)(GLenum target, GLenum attachment, GLuint texture, GLint level); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTUREFACEARB)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTUREFACEEXT)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURELAYER)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURELAYERARB)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -// typedef void (APIENTRYP GPFRAMEBUFFERTEXTURELAYEREXT)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -// typedef void (APIENTRYP GPFREEOBJECTBUFFERATI)(GLuint buffer); -// typedef void (APIENTRYP GPFRONTFACE)(GLenum mode); -// typedef void (APIENTRYP GPFRUSTUM)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -// typedef void (APIENTRYP GPFRUSTUMFOES)(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -// typedef void (APIENTRYP GPFRUSTUMXOES)(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -// typedef GLuint (APIENTRYP GPGENASYNCMARKERSSGIX)(GLsizei range); -// typedef void (APIENTRYP GPGENBUFFERS)(GLsizei n, GLuint * buffers); -// typedef void (APIENTRYP GPGENBUFFERSARB)(GLsizei n, GLuint * buffers); -// typedef void (APIENTRYP GPGENFENCESAPPLE)(GLsizei n, GLuint * fences); -// typedef void (APIENTRYP GPGENFENCESNV)(GLsizei n, GLuint * fences); -// typedef GLuint (APIENTRYP GPGENFRAGMENTSHADERSATI)(GLuint range); -// typedef void (APIENTRYP GPGENFRAMEBUFFERS)(GLsizei n, GLuint * framebuffers); -// typedef void (APIENTRYP GPGENFRAMEBUFFERSEXT)(GLsizei n, GLuint * framebuffers); -// typedef GLuint (APIENTRYP GPGENLISTS)(GLsizei range); -// typedef void (APIENTRYP GPGENNAMESAMD)(GLenum identifier, GLuint num, GLuint * names); -// typedef void (APIENTRYP GPGENOCCLUSIONQUERIESNV)(GLsizei n, GLuint * ids); -// typedef GLuint (APIENTRYP GPGENPATHSNV)(GLsizei range); -// typedef void (APIENTRYP GPGENPERFMONITORSAMD)(GLsizei n, GLuint * monitors); -// typedef void (APIENTRYP GPGENPROGRAMPIPELINES)(GLsizei n, GLuint * pipelines); -// typedef void (APIENTRYP GPGENPROGRAMPIPELINESEXT)(GLsizei n, GLuint * pipelines); -// typedef void (APIENTRYP GPGENPROGRAMSARB)(GLsizei n, GLuint * programs); -// typedef void (APIENTRYP GPGENPROGRAMSNV)(GLsizei n, GLuint * programs); -// typedef void (APIENTRYP GPGENQUERIES)(GLsizei n, GLuint * ids); -// typedef void (APIENTRYP GPGENQUERIESARB)(GLsizei n, GLuint * ids); -// typedef void (APIENTRYP GPGENRENDERBUFFERS)(GLsizei n, GLuint * renderbuffers); -// typedef void (APIENTRYP GPGENRENDERBUFFERSEXT)(GLsizei n, GLuint * renderbuffers); -// typedef void (APIENTRYP GPGENSAMPLERS)(GLsizei count, GLuint * samplers); -// typedef GLuint (APIENTRYP GPGENSYMBOLSEXT)(GLenum datatype, GLenum storagetype, GLenum range, GLuint components); -// typedef void (APIENTRYP GPGENTEXTURES)(GLsizei n, GLuint * textures); -// typedef void (APIENTRYP GPGENTEXTURESEXT)(GLsizei n, GLuint * textures); -// typedef void (APIENTRYP GPGENTRANSFORMFEEDBACKS)(GLsizei n, GLuint * ids); -// typedef void (APIENTRYP GPGENTRANSFORMFEEDBACKSNV)(GLsizei n, GLuint * ids); -// typedef void (APIENTRYP GPGENVERTEXARRAYS)(GLsizei n, GLuint * arrays); -// typedef void (APIENTRYP GPGENVERTEXARRAYSAPPLE)(GLsizei n, GLuint * arrays); -// typedef GLuint (APIENTRYP GPGENVERTEXSHADERSEXT)(GLuint range); -// typedef void (APIENTRYP GPGENERATEMIPMAP)(GLenum target); -// typedef void (APIENTRYP GPGENERATEMIPMAPEXT)(GLenum target); -// typedef void (APIENTRYP GPGENERATEMULTITEXMIPMAPEXT)(GLenum texunit, GLenum target); -// typedef void (APIENTRYP GPGENERATETEXTUREMIPMAP)(GLuint texture); -// typedef void (APIENTRYP GPGENERATETEXTUREMIPMAPEXT)(GLuint texture, GLenum target); -// typedef void (APIENTRYP GPGETACTIVEATOMICCOUNTERBUFFERIV)(GLuint program, GLuint bufferIndex, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETACTIVEATTRIB)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name); -// typedef void (APIENTRYP GPGETACTIVEATTRIBARB)(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name); -// typedef void (APIENTRYP GPGETACTIVESUBROUTINENAME)(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei * length, GLchar * name); -// typedef void (APIENTRYP GPGETACTIVESUBROUTINEUNIFORMNAME)(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei * length, GLchar * name); -// typedef void (APIENTRYP GPGETACTIVESUBROUTINEUNIFORMIV)(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint * values); -// typedef void (APIENTRYP GPGETACTIVEUNIFORM)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name); -// typedef void (APIENTRYP GPGETACTIVEUNIFORMARB)(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name); -// typedef void (APIENTRYP GPGETACTIVEUNIFORMBLOCKNAME)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName); -// typedef void (APIENTRYP GPGETACTIVEUNIFORMBLOCKIV)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETACTIVEUNIFORMNAME)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformName); -// typedef void (APIENTRYP GPGETACTIVEUNIFORMSIV)(GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETACTIVEVARYINGNV)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name); -// typedef void (APIENTRYP GPGETARRAYOBJECTFVATI)(GLenum array, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETARRAYOBJECTIVATI)(GLenum array, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETATTACHEDOBJECTSARB)(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj); -// typedef void (APIENTRYP GPGETATTACHEDSHADERS)(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders); -// typedef GLint (APIENTRYP GPGETATTRIBLOCATION)(GLuint program, const GLchar * name); -// typedef GLint (APIENTRYP GPGETATTRIBLOCATIONARB)(GLhandleARB programObj, const GLcharARB * name); -// typedef void (APIENTRYP GPGETBOOLEANINDEXEDVEXT)(GLenum target, GLuint index, GLboolean * data); -// typedef void (APIENTRYP GPGETBOOLEANV)(GLenum pname, GLboolean * data); -// typedef void (APIENTRYP GPGETBUFFERPARAMETERIV)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETBUFFERPARAMETERIVARB)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETBUFFERPARAMETERUI64VNV)(GLenum target, GLenum pname, GLuint64EXT * params); -// typedef void (APIENTRYP GPGETBUFFERPOINTERV)(GLenum target, GLenum pname, void ** params); -// typedef void (APIENTRYP GPGETBUFFERPOINTERVARB)(GLenum target, GLenum pname, void ** params); -// typedef void (APIENTRYP GPGETBUFFERSUBDATA)(GLenum target, GLintptr offset, GLsizeiptr size, void * data); -// typedef void (APIENTRYP GPGETBUFFERSUBDATAARB)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data); -// typedef void (APIENTRYP GPGETCLIPPLANE)(GLenum plane, GLdouble * equation); -// typedef void (APIENTRYP GPGETCLIPPLANEFOES)(GLenum plane, GLfloat * equation); -// typedef void (APIENTRYP GPGETCLIPPLANEXOES)(GLenum plane, GLfixed * equation); -// typedef void (APIENTRYP GPGETCOLORTABLEEXT)(GLenum target, GLenum format, GLenum type, void * data); -// typedef void (APIENTRYP GPGETCOLORTABLEPARAMETERFVEXT)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETCOLORTABLEPARAMETERFVSGI)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETCOLORTABLEPARAMETERIVEXT)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETCOLORTABLEPARAMETERIVSGI)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETCOLORTABLESGI)(GLenum target, GLenum format, GLenum type, void * table); -// typedef void (APIENTRYP GPGETCOMBINERINPUTPARAMETERFVNV)(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETCOMBINERINPUTPARAMETERIVNV)(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETCOMBINEROUTPUTPARAMETERFVNV)(GLenum stage, GLenum portion, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETCOMBINEROUTPUTPARAMETERIVNV)(GLenum stage, GLenum portion, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETCOMBINERSTAGEPARAMETERFVNV)(GLenum stage, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETCOMPRESSEDMULTITEXIMAGEEXT)(GLenum texunit, GLenum target, GLint lod, void * img); -// typedef void (APIENTRYP GPGETCOMPRESSEDTEXIMAGE)(GLenum target, GLint level, void * img); -// typedef void (APIENTRYP GPGETCOMPRESSEDTEXIMAGEARB)(GLenum target, GLint level, void * img); -// typedef void (APIENTRYP GPGETCOMPRESSEDTEXTUREIMAGE)(GLuint texture, GLint level, GLsizei bufSize, void * pixels); -// typedef void (APIENTRYP GPGETCOMPRESSEDTEXTUREIMAGEEXT)(GLuint texture, GLenum target, GLint lod, void * img); -// typedef void (APIENTRYP GPGETCOMPRESSEDTEXTURESUBIMAGE)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void * pixels); -// typedef void (APIENTRYP GPGETCONVOLUTIONFILTEREXT)(GLenum target, GLenum format, GLenum type, void * image); -// typedef void (APIENTRYP GPGETCONVOLUTIONPARAMETERFVEXT)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETCONVOLUTIONPARAMETERIVEXT)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETCONVOLUTIONPARAMETERXVOES)(GLenum target, GLenum pname, GLfixed * params); -// typedef GLuint (APIENTRYP GPGETDEBUGMESSAGELOG)(GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog); -// typedef GLuint (APIENTRYP GPGETDEBUGMESSAGELOGAMD)(GLuint count, GLsizei bufsize, GLenum * categories, GLuint * severities, GLuint * ids, GLsizei * lengths, GLchar * message); -// typedef GLuint (APIENTRYP GPGETDEBUGMESSAGELOGARB)(GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog); -// typedef GLuint (APIENTRYP GPGETDEBUGMESSAGELOGKHR)(GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog); -// typedef void (APIENTRYP GPGETDETAILTEXFUNCSGIS)(GLenum target, GLfloat * points); -// typedef void (APIENTRYP GPGETDOUBLEINDEXEDVEXT)(GLenum target, GLuint index, GLdouble * data); -// typedef void (APIENTRYP GPGETDOUBLEI_V)(GLenum target, GLuint index, GLdouble * data); -// typedef void (APIENTRYP GPGETDOUBLEI_VEXT)(GLenum pname, GLuint index, GLdouble * params); -// typedef void (APIENTRYP GPGETDOUBLEV)(GLenum pname, GLdouble * data); -// typedef GLenum (APIENTRYP GPGETERROR)(); -// typedef void (APIENTRYP GPGETFENCEIVNV)(GLuint fence, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETFINALCOMBINERINPUTPARAMETERFVNV)(GLenum variable, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETFINALCOMBINERINPUTPARAMETERIVNV)(GLenum variable, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETFIRSTPERFQUERYIDINTEL)(GLuint * queryId); -// typedef void (APIENTRYP GPGETFIXEDVOES)(GLenum pname, GLfixed * params); -// typedef void (APIENTRYP GPGETFLOATINDEXEDVEXT)(GLenum target, GLuint index, GLfloat * data); -// typedef void (APIENTRYP GPGETFLOATI_V)(GLenum target, GLuint index, GLfloat * data); -// typedef void (APIENTRYP GPGETFLOATI_VEXT)(GLenum pname, GLuint index, GLfloat * params); -// typedef void (APIENTRYP GPGETFLOATV)(GLenum pname, GLfloat * data); -// typedef void (APIENTRYP GPGETFOGFUNCSGIS)(GLfloat * points); -// typedef GLint (APIENTRYP GPGETFRAGDATAINDEX)(GLuint program, const GLchar * name); -// typedef GLint (APIENTRYP GPGETFRAGDATALOCATIONEXT)(GLuint program, const GLchar * name); -// typedef void (APIENTRYP GPGETFRAGMENTLIGHTFVSGIX)(GLenum light, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETFRAGMENTLIGHTIVSGIX)(GLenum light, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETFRAGMENTMATERIALFVSGIX)(GLenum face, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETFRAGMENTMATERIALIVSGIX)(GLenum face, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETFRAMEBUFFERATTACHMENTPARAMETERIV)(GLenum target, GLenum attachment, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETFRAMEBUFFERATTACHMENTPARAMETERIVEXT)(GLenum target, GLenum attachment, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETFRAMEBUFFERPARAMETERIV)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETFRAMEBUFFERPARAMETERIVEXT)(GLuint framebuffer, GLenum pname, GLint * params); -// typedef GLenum (APIENTRYP GPGETGRAPHICSRESETSTATUS)(); -// typedef GLenum (APIENTRYP GPGETGRAPHICSRESETSTATUSARB)(); -// typedef GLenum (APIENTRYP GPGETGRAPHICSRESETSTATUSKHR)(); -// typedef GLhandleARB (APIENTRYP GPGETHANDLEARB)(GLenum pname); -// typedef void (APIENTRYP GPGETHISTOGRAMEXT)(GLenum target, GLboolean reset, GLenum format, GLenum type, void * values); -// typedef void (APIENTRYP GPGETHISTOGRAMPARAMETERFVEXT)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETHISTOGRAMPARAMETERIVEXT)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETHISTOGRAMPARAMETERXVOES)(GLenum target, GLenum pname, GLfixed * params); -// typedef GLuint64 (APIENTRYP GPGETIMAGEHANDLEARB)(GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); -// typedef GLuint64 (APIENTRYP GPGETIMAGEHANDLENV)(GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); -// typedef void (APIENTRYP GPGETIMAGETRANSFORMPARAMETERFVHP)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETIMAGETRANSFORMPARAMETERIVHP)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETINFOLOGARB)(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog); -// typedef GLint (APIENTRYP GPGETINSTRUMENTSSGIX)(); -// typedef void (APIENTRYP GPGETINTEGER64V)(GLenum pname, GLint64 * data); -// typedef void (APIENTRYP GPGETINTEGERINDEXEDVEXT)(GLenum target, GLuint index, GLint * data); -// typedef void (APIENTRYP GPGETINTEGERUI64I_VNV)(GLenum value, GLuint index, GLuint64EXT * result); -// typedef void (APIENTRYP GPGETINTEGERUI64VNV)(GLenum value, GLuint64EXT * result); -// typedef void (APIENTRYP GPGETINTEGERV)(GLenum pname, GLint * data); -// typedef void (APIENTRYP GPGETINTERNALFORMATI64V)(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 * params); -// typedef void (APIENTRYP GPGETINTERNALFORMATIV)(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint * params); -// typedef void (APIENTRYP GPGETINVARIANTBOOLEANVEXT)(GLuint id, GLenum value, GLboolean * data); -// typedef void (APIENTRYP GPGETINVARIANTFLOATVEXT)(GLuint id, GLenum value, GLfloat * data); -// typedef void (APIENTRYP GPGETINVARIANTINTEGERVEXT)(GLuint id, GLenum value, GLint * data); -// typedef void (APIENTRYP GPGETLIGHTFV)(GLenum light, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETLIGHTIV)(GLenum light, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETLIGHTXOES)(GLenum light, GLenum pname, GLfixed * params); -// typedef void (APIENTRYP GPGETLIGHTXVOES)(GLenum light, GLenum pname, GLfixed * params); -// typedef void (APIENTRYP GPGETLISTPARAMETERFVSGIX)(GLuint list, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETLISTPARAMETERIVSGIX)(GLuint list, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETLOCALCONSTANTBOOLEANVEXT)(GLuint id, GLenum value, GLboolean * data); -// typedef void (APIENTRYP GPGETLOCALCONSTANTFLOATVEXT)(GLuint id, GLenum value, GLfloat * data); -// typedef void (APIENTRYP GPGETLOCALCONSTANTINTEGERVEXT)(GLuint id, GLenum value, GLint * data); -// typedef void (APIENTRYP GPGETMAPATTRIBPARAMETERFVNV)(GLenum target, GLuint index, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETMAPATTRIBPARAMETERIVNV)(GLenum target, GLuint index, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMAPCONTROLPOINTSNV)(GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void * points); -// typedef void (APIENTRYP GPGETMAPPARAMETERFVNV)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETMAPPARAMETERIVNV)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMAPDV)(GLenum target, GLenum query, GLdouble * v); -// typedef void (APIENTRYP GPGETMAPFV)(GLenum target, GLenum query, GLfloat * v); -// typedef void (APIENTRYP GPGETMAPIV)(GLenum target, GLenum query, GLint * v); -// typedef void (APIENTRYP GPGETMAPXVOES)(GLenum target, GLenum query, GLfixed * v); -// typedef void (APIENTRYP GPGETMATERIALFV)(GLenum face, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETMATERIALIV)(GLenum face, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMATERIALXOES)(GLenum face, GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPGETMATERIALXVOES)(GLenum face, GLenum pname, GLfixed * params); -// typedef void (APIENTRYP GPGETMINMAXEXT)(GLenum target, GLboolean reset, GLenum format, GLenum type, void * values); -// typedef void (APIENTRYP GPGETMINMAXPARAMETERFVEXT)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETMINMAXPARAMETERIVEXT)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMULTITEXENVFVEXT)(GLenum texunit, GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETMULTITEXENVIVEXT)(GLenum texunit, GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMULTITEXGENDVEXT)(GLenum texunit, GLenum coord, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETMULTITEXGENFVEXT)(GLenum texunit, GLenum coord, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETMULTITEXGENIVEXT)(GLenum texunit, GLenum coord, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMULTITEXIMAGEEXT)(GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void * pixels); -// typedef void (APIENTRYP GPGETMULTITEXLEVELPARAMETERFVEXT)(GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETMULTITEXLEVELPARAMETERIVEXT)(GLenum texunit, GLenum target, GLint level, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMULTITEXPARAMETERIIVEXT)(GLenum texunit, GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMULTITEXPARAMETERIUIVEXT)(GLenum texunit, GLenum target, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETMULTITEXPARAMETERFVEXT)(GLenum texunit, GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETMULTITEXPARAMETERIVEXT)(GLenum texunit, GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETMULTISAMPLEFV)(GLenum pname, GLuint index, GLfloat * val); -// typedef void (APIENTRYP GPGETMULTISAMPLEFVNV)(GLenum pname, GLuint index, GLfloat * val); -// typedef void (APIENTRYP GPGETNAMEDBUFFERPARAMETERI64V)(GLuint buffer, GLenum pname, GLint64 * params); -// typedef void (APIENTRYP GPGETNAMEDBUFFERPARAMETERIV)(GLuint buffer, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDBUFFERPARAMETERIVEXT)(GLuint buffer, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDBUFFERPARAMETERUI64VNV)(GLuint buffer, GLenum pname, GLuint64EXT * params); -// typedef void (APIENTRYP GPGETNAMEDBUFFERPOINTERV)(GLuint buffer, GLenum pname, void ** params); -// typedef void (APIENTRYP GPGETNAMEDBUFFERPOINTERVEXT)(GLuint buffer, GLenum pname, void ** params); -// typedef void (APIENTRYP GPGETNAMEDBUFFERSUBDATA)(GLuint buffer, GLintptr offset, GLsizei size, void * data); -// typedef void (APIENTRYP GPGETNAMEDBUFFERSUBDATAEXT)(GLuint buffer, GLintptr offset, GLsizeiptr size, void * data); -// typedef void (APIENTRYP GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIV)(GLuint framebuffer, GLenum attachment, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXT)(GLuint framebuffer, GLenum attachment, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDFRAMEBUFFERPARAMETERIV)(GLuint framebuffer, GLenum pname, GLint * param); -// typedef void (APIENTRYP GPGETNAMEDFRAMEBUFFERPARAMETERIVEXT)(GLuint framebuffer, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDPROGRAMLOCALPARAMETERIIVEXT)(GLuint program, GLenum target, GLuint index, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDPROGRAMLOCALPARAMETERIUIVEXT)(GLuint program, GLenum target, GLuint index, GLuint * params); -// typedef void (APIENTRYP GPGETNAMEDPROGRAMLOCALPARAMETERDVEXT)(GLuint program, GLenum target, GLuint index, GLdouble * params); -// typedef void (APIENTRYP GPGETNAMEDPROGRAMLOCALPARAMETERFVEXT)(GLuint program, GLenum target, GLuint index, GLfloat * params); -// typedef void (APIENTRYP GPGETNAMEDPROGRAMSTRINGEXT)(GLuint program, GLenum target, GLenum pname, void * string); -// typedef void (APIENTRYP GPGETNAMEDPROGRAMIVEXT)(GLuint program, GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDRENDERBUFFERPARAMETERIV)(GLuint renderbuffer, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDRENDERBUFFERPARAMETERIVEXT)(GLuint renderbuffer, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNAMEDSTRINGARB)(GLint namelen, const GLchar * name, GLsizei bufSize, GLint * stringlen, GLchar * string); -// typedef void (APIENTRYP GPGETNAMEDSTRINGIVARB)(GLint namelen, const GLchar * name, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETNEXTPERFQUERYIDINTEL)(GLuint queryId, GLuint * nextQueryId); -// typedef void (APIENTRYP GPGETOBJECTBUFFERFVATI)(GLuint buffer, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETOBJECTBUFFERIVATI)(GLuint buffer, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETOBJECTLABEL)(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei * length, GLchar * label); -// typedef void (APIENTRYP GPGETOBJECTLABELEXT)(GLenum type, GLuint object, GLsizei bufSize, GLsizei * length, GLchar * label); -// typedef void (APIENTRYP GPGETOBJECTLABELKHR)(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei * length, GLchar * label); -// typedef void (APIENTRYP GPGETOBJECTPARAMETERFVARB)(GLhandleARB obj, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETOBJECTPARAMETERIVAPPLE)(GLenum objectType, GLuint name, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETOBJECTPARAMETERIVARB)(GLhandleARB obj, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETOBJECTPTRLABEL)(const void * ptr, GLsizei bufSize, GLsizei * length, GLchar * label); -// typedef void (APIENTRYP GPGETOBJECTPTRLABELKHR)(const void * ptr, GLsizei bufSize, GLsizei * length, GLchar * label); -// typedef void (APIENTRYP GPGETOCCLUSIONQUERYIVNV)(GLuint id, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETOCCLUSIONQUERYUIVNV)(GLuint id, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETPATHCOLORGENFVNV)(GLenum color, GLenum pname, GLfloat * value); -// typedef void (APIENTRYP GPGETPATHCOLORGENIVNV)(GLenum color, GLenum pname, GLint * value); -// typedef void (APIENTRYP GPGETPATHCOMMANDSNV)(GLuint path, GLubyte * commands); -// typedef void (APIENTRYP GPGETPATHCOORDSNV)(GLuint path, GLfloat * coords); -// typedef void (APIENTRYP GPGETPATHDASHARRAYNV)(GLuint path, GLfloat * dashArray); -// typedef GLfloat (APIENTRYP GPGETPATHLENGTHNV)(GLuint path, GLsizei startSegment, GLsizei numSegments); -// typedef void (APIENTRYP GPGETPATHMETRICRANGENV)(GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat * metrics); -// typedef void (APIENTRYP GPGETPATHMETRICSNV)(GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLsizei stride, GLfloat * metrics); -// typedef void (APIENTRYP GPGETPATHPARAMETERFVNV)(GLuint path, GLenum pname, GLfloat * value); -// typedef void (APIENTRYP GPGETPATHPARAMETERIVNV)(GLuint path, GLenum pname, GLint * value); -// typedef void (APIENTRYP GPGETPATHSPACINGNV)(GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat * returnedSpacing); -// typedef void (APIENTRYP GPGETPATHTEXGENFVNV)(GLenum texCoordSet, GLenum pname, GLfloat * value); -// typedef void (APIENTRYP GPGETPATHTEXGENIVNV)(GLenum texCoordSet, GLenum pname, GLint * value); -// typedef void (APIENTRYP GPGETPERFCOUNTERINFOINTEL)(GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar * counterName, GLuint counterDescLength, GLchar * counterDesc, GLuint * counterOffset, GLuint * counterDataSize, GLuint * counterTypeEnum, GLuint * counterDataTypeEnum, GLuint64 * rawCounterMaxValue); -// typedef void (APIENTRYP GPGETPERFMONITORCOUNTERDATAAMD)(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint * data, GLint * bytesWritten); -// typedef void (APIENTRYP GPGETPERFMONITORCOUNTERINFOAMD)(GLuint group, GLuint counter, GLenum pname, void * data); -// typedef void (APIENTRYP GPGETPERFMONITORCOUNTERSTRINGAMD)(GLuint group, GLuint counter, GLsizei bufSize, GLsizei * length, GLchar * counterString); -// typedef void (APIENTRYP GPGETPERFMONITORCOUNTERSAMD)(GLuint group, GLint * numCounters, GLint * maxActiveCounters, GLsizei counterSize, GLuint * counters); -// typedef void (APIENTRYP GPGETPERFMONITORGROUPSTRINGAMD)(GLuint group, GLsizei bufSize, GLsizei * length, GLchar * groupString); -// typedef void (APIENTRYP GPGETPERFMONITORGROUPSAMD)(GLint * numGroups, GLsizei groupsSize, GLuint * groups); -// typedef void (APIENTRYP GPGETPERFQUERYDATAINTEL)(GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid * data, GLuint * bytesWritten); -// typedef void (APIENTRYP GPGETPERFQUERYIDBYNAMEINTEL)(GLchar * queryName, GLuint * queryId); -// typedef void (APIENTRYP GPGETPERFQUERYINFOINTEL)(GLuint queryId, GLuint queryNameLength, GLchar * queryName, GLuint * dataSize, GLuint * noCounters, GLuint * noInstances, GLuint * capsMask); -// typedef void (APIENTRYP GPGETPIXELMAPFV)(GLenum map, GLfloat * values); -// typedef void (APIENTRYP GPGETPIXELMAPUIV)(GLenum map, GLuint * values); -// typedef void (APIENTRYP GPGETPIXELMAPUSV)(GLenum map, GLushort * values); -// typedef void (APIENTRYP GPGETPIXELMAPXV)(GLenum map, GLint size, GLfixed * values); -// typedef void (APIENTRYP GPGETPIXELTEXGENPARAMETERFVSGIS)(GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETPIXELTEXGENPARAMETERIVSGIS)(GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETPIXELTRANSFORMPARAMETERFVEXT)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETPIXELTRANSFORMPARAMETERIVEXT)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETPOINTERINDEXEDVEXT)(GLenum target, GLuint index, void ** data); -// typedef void (APIENTRYP GPGETPOINTERI_VEXT)(GLenum pname, GLuint index, void ** params); -// typedef void (APIENTRYP GPGETPOINTERV)(GLenum pname, void ** params); -// typedef void (APIENTRYP GPGETPOINTERVEXT)(GLenum pname, void ** params); -// typedef void (APIENTRYP GPGETPOINTERVKHR)(GLenum pname, void ** params); -// typedef void (APIENTRYP GPGETPOLYGONSTIPPLE)(GLubyte * mask); -// typedef void (APIENTRYP GPGETPROGRAMBINARY)(GLuint program, GLsizei bufSize, GLsizei * length, GLenum * binaryFormat, void * binary); -// typedef void (APIENTRYP GPGETPROGRAMENVPARAMETERIIVNV)(GLenum target, GLuint index, GLint * params); -// typedef void (APIENTRYP GPGETPROGRAMENVPARAMETERIUIVNV)(GLenum target, GLuint index, GLuint * params); -// typedef void (APIENTRYP GPGETPROGRAMENVPARAMETERDVARB)(GLenum target, GLuint index, GLdouble * params); -// typedef void (APIENTRYP GPGETPROGRAMENVPARAMETERFVARB)(GLenum target, GLuint index, GLfloat * params); -// typedef void (APIENTRYP GPGETPROGRAMINFOLOG)(GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog); -// typedef void (APIENTRYP GPGETPROGRAMINTERFACEIV)(GLuint program, GLenum programInterface, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETPROGRAMLOCALPARAMETERIIVNV)(GLenum target, GLuint index, GLint * params); -// typedef void (APIENTRYP GPGETPROGRAMLOCALPARAMETERIUIVNV)(GLenum target, GLuint index, GLuint * params); -// typedef void (APIENTRYP GPGETPROGRAMLOCALPARAMETERDVARB)(GLenum target, GLuint index, GLdouble * params); -// typedef void (APIENTRYP GPGETPROGRAMLOCALPARAMETERFVARB)(GLenum target, GLuint index, GLfloat * params); -// typedef void (APIENTRYP GPGETPROGRAMNAMEDPARAMETERDVNV)(GLuint id, GLsizei len, const GLubyte * name, GLdouble * params); -// typedef void (APIENTRYP GPGETPROGRAMNAMEDPARAMETERFVNV)(GLuint id, GLsizei len, const GLubyte * name, GLfloat * params); -// typedef void (APIENTRYP GPGETPROGRAMPARAMETERDVNV)(GLenum target, GLuint index, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETPROGRAMPARAMETERFVNV)(GLenum target, GLuint index, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETPROGRAMPIPELINEINFOLOG)(GLuint pipeline, GLsizei bufSize, GLsizei * length, GLchar * infoLog); -// typedef void (APIENTRYP GPGETPROGRAMPIPELINEINFOLOGEXT)(GLuint pipeline, GLsizei bufSize, GLsizei * length, GLchar * infoLog); -// typedef void (APIENTRYP GPGETPROGRAMPIPELINEIV)(GLuint pipeline, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETPROGRAMPIPELINEIVEXT)(GLuint pipeline, GLenum pname, GLint * params); -// typedef GLuint (APIENTRYP GPGETPROGRAMRESOURCEINDEX)(GLuint program, GLenum programInterface, const GLchar * name); -// typedef GLint (APIENTRYP GPGETPROGRAMRESOURCELOCATION)(GLuint program, GLenum programInterface, const GLchar * name); -// typedef GLint (APIENTRYP GPGETPROGRAMRESOURCELOCATIONINDEX)(GLuint program, GLenum programInterface, const GLchar * name); -// typedef void (APIENTRYP GPGETPROGRAMRESOURCENAME)(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei * length, GLchar * name); -// typedef void (APIENTRYP GPGETPROGRAMRESOURCEFVNV)(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum * props, GLsizei bufSize, GLsizei * length, GLfloat * params); -// typedef void (APIENTRYP GPGETPROGRAMRESOURCEIV)(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum * props, GLsizei bufSize, GLsizei * length, GLint * params); -// typedef void (APIENTRYP GPGETPROGRAMSTAGEIV)(GLuint program, GLenum shadertype, GLenum pname, GLint * values); -// typedef void (APIENTRYP GPGETPROGRAMSTRINGARB)(GLenum target, GLenum pname, void * string); -// typedef void (APIENTRYP GPGETPROGRAMSTRINGNV)(GLuint id, GLenum pname, GLubyte * program); -// typedef void (APIENTRYP GPGETPROGRAMSUBROUTINEPARAMETERUIVNV)(GLenum target, GLuint index, GLuint * param); -// typedef void (APIENTRYP GPGETPROGRAMIV)(GLuint program, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETPROGRAMIVARB)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETPROGRAMIVNV)(GLuint id, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETQUERYINDEXEDIV)(GLenum target, GLuint index, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETQUERYOBJECTI64V)(GLuint id, GLenum pname, GLint64 * params); -// typedef void (APIENTRYP GPGETQUERYOBJECTI64VEXT)(GLuint id, GLenum pname, GLint64 * params); -// typedef void (APIENTRYP GPGETQUERYOBJECTIV)(GLuint id, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETQUERYOBJECTIVARB)(GLuint id, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETQUERYOBJECTUI64V)(GLuint id, GLenum pname, GLuint64 * params); -// typedef void (APIENTRYP GPGETQUERYOBJECTUI64VEXT)(GLuint id, GLenum pname, GLuint64 * params); -// typedef void (APIENTRYP GPGETQUERYOBJECTUIV)(GLuint id, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETQUERYOBJECTUIVARB)(GLuint id, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETQUERYIV)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETQUERYIVARB)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETRENDERBUFFERPARAMETERIV)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETRENDERBUFFERPARAMETERIVEXT)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETSAMPLERPARAMETERIIV)(GLuint sampler, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETSAMPLERPARAMETERIUIV)(GLuint sampler, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETSAMPLERPARAMETERFV)(GLuint sampler, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETSAMPLERPARAMETERIV)(GLuint sampler, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETSEPARABLEFILTEREXT)(GLenum target, GLenum format, GLenum type, void * row, void * column, void * span); -// typedef void (APIENTRYP GPGETSHADERINFOLOG)(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog); -// typedef void (APIENTRYP GPGETSHADERPRECISIONFORMAT)(GLenum shadertype, GLenum precisiontype, GLint * range, GLint * precision); -// typedef void (APIENTRYP GPGETSHADERSOURCE)(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * source); -// typedef void (APIENTRYP GPGETSHADERSOURCEARB)(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * source); -// typedef void (APIENTRYP GPGETSHADERIV)(GLuint shader, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETSHARPENTEXFUNCSGIS)(GLenum target, GLfloat * points); -// typedef const GLubyte * (APIENTRYP GPGETSTRING)(GLenum name); -// typedef GLuint (APIENTRYP GPGETSUBROUTINEINDEX)(GLuint program, GLenum shadertype, const GLchar * name); -// typedef GLint (APIENTRYP GPGETSUBROUTINEUNIFORMLOCATION)(GLuint program, GLenum shadertype, const GLchar * name); -// typedef void (APIENTRYP GPGETSYNCIV)(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values); -// typedef void (APIENTRYP GPGETTEXBUMPPARAMETERFVATI)(GLenum pname, GLfloat * param); -// typedef void (APIENTRYP GPGETTEXBUMPPARAMETERIVATI)(GLenum pname, GLint * param); -// typedef void (APIENTRYP GPGETTEXENVFV)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETTEXENVIV)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXENVXVOES)(GLenum target, GLenum pname, GLfixed * params); -// typedef void (APIENTRYP GPGETTEXFILTERFUNCSGIS)(GLenum target, GLenum filter, GLfloat * weights); -// typedef void (APIENTRYP GPGETTEXGENDV)(GLenum coord, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETTEXGENFV)(GLenum coord, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETTEXGENIV)(GLenum coord, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXGENXVOES)(GLenum coord, GLenum pname, GLfixed * params); -// typedef void (APIENTRYP GPGETTEXIMAGE)(GLenum target, GLint level, GLenum format, GLenum type, void * pixels); -// typedef void (APIENTRYP GPGETTEXLEVELPARAMETERFV)(GLenum target, GLint level, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETTEXLEVELPARAMETERIV)(GLenum target, GLint level, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXLEVELPARAMETERXVOES)(GLenum target, GLint level, GLenum pname, GLfixed * params); -// typedef void (APIENTRYP GPGETTEXPARAMETERIIVEXT)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXPARAMETERIUIVEXT)(GLenum target, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETTEXPARAMETERPOINTERVAPPLE)(GLenum target, GLenum pname, void ** params); -// typedef void (APIENTRYP GPGETTEXPARAMETERFV)(GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETTEXPARAMETERIV)(GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXPARAMETERXVOES)(GLenum target, GLenum pname, GLfixed * params); -// typedef GLuint64 (APIENTRYP GPGETTEXTUREHANDLEARB)(GLuint texture); -// typedef GLuint64 (APIENTRYP GPGETTEXTUREHANDLENV)(GLuint texture); -// typedef void (APIENTRYP GPGETTEXTUREIMAGE)(GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void * pixels); -// typedef void (APIENTRYP GPGETTEXTUREIMAGEEXT)(GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void * pixels); -// typedef void (APIENTRYP GPGETTEXTURELEVELPARAMETERFV)(GLuint texture, GLint level, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETTEXTURELEVELPARAMETERFVEXT)(GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETTEXTURELEVELPARAMETERIV)(GLuint texture, GLint level, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXTURELEVELPARAMETERIVEXT)(GLuint texture, GLenum target, GLint level, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXTUREPARAMETERIIV)(GLuint texture, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXTUREPARAMETERIIVEXT)(GLuint texture, GLenum target, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXTUREPARAMETERIUIV)(GLuint texture, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETTEXTUREPARAMETERIUIVEXT)(GLuint texture, GLenum target, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETTEXTUREPARAMETERFV)(GLuint texture, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETTEXTUREPARAMETERFVEXT)(GLuint texture, GLenum target, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETTEXTUREPARAMETERIV)(GLuint texture, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTEXTUREPARAMETERIVEXT)(GLuint texture, GLenum target, GLenum pname, GLint * params); -// typedef GLuint64 (APIENTRYP GPGETTEXTURESAMPLERHANDLEARB)(GLuint texture, GLuint sampler); -// typedef GLuint64 (APIENTRYP GPGETTEXTURESAMPLERHANDLENV)(GLuint texture, GLuint sampler); -// typedef void (APIENTRYP GPGETTEXTURESUBIMAGE)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void * pixels); -// typedef void (APIENTRYP GPGETTRACKMATRIXIVNV)(GLenum target, GLuint address, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETTRANSFORMFEEDBACKVARYINGEXT)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name); -// typedef void (APIENTRYP GPGETTRANSFORMFEEDBACKVARYINGNV)(GLuint program, GLuint index, GLint * location); -// typedef void (APIENTRYP GPGETTRANSFORMFEEDBACKI64_V)(GLuint xfb, GLenum pname, GLuint index, GLint64 * param); -// typedef void (APIENTRYP GPGETTRANSFORMFEEDBACKI_V)(GLuint xfb, GLenum pname, GLuint index, GLint * param); -// typedef void (APIENTRYP GPGETTRANSFORMFEEDBACKIV)(GLuint xfb, GLenum pname, GLint * param); -// typedef GLuint (APIENTRYP GPGETUNIFORMBLOCKINDEX)(GLuint program, const GLchar * uniformBlockName); -// typedef GLint (APIENTRYP GPGETUNIFORMBUFFERSIZEEXT)(GLuint program, GLint location); -// typedef void (APIENTRYP GPGETUNIFORMINDICES)(GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint * uniformIndices); -// typedef GLint (APIENTRYP GPGETUNIFORMLOCATION)(GLuint program, const GLchar * name); -// typedef GLint (APIENTRYP GPGETUNIFORMLOCATIONARB)(GLhandleARB programObj, const GLcharARB * name); -// typedef GLintptr (APIENTRYP GPGETUNIFORMOFFSETEXT)(GLuint program, GLint location); -// typedef void (APIENTRYP GPGETUNIFORMSUBROUTINEUIV)(GLenum shadertype, GLint location, GLuint * params); -// typedef void (APIENTRYP GPGETUNIFORMDV)(GLuint program, GLint location, GLdouble * params); -// typedef void (APIENTRYP GPGETUNIFORMFV)(GLuint program, GLint location, GLfloat * params); -// typedef void (APIENTRYP GPGETUNIFORMFVARB)(GLhandleARB programObj, GLint location, GLfloat * params); -// typedef void (APIENTRYP GPGETUNIFORMI64VNV)(GLuint program, GLint location, GLint64EXT * params); -// typedef void (APIENTRYP GPGETUNIFORMIV)(GLuint program, GLint location, GLint * params); -// typedef void (APIENTRYP GPGETUNIFORMIVARB)(GLhandleARB programObj, GLint location, GLint * params); -// typedef void (APIENTRYP GPGETUNIFORMUI64VNV)(GLuint program, GLint location, GLuint64EXT * params); -// typedef void (APIENTRYP GPGETUNIFORMUIVEXT)(GLuint program, GLint location, GLuint * params); -// typedef void (APIENTRYP GPGETVARIANTARRAYOBJECTFVATI)(GLuint id, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETVARIANTARRAYOBJECTIVATI)(GLuint id, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVARIANTBOOLEANVEXT)(GLuint id, GLenum value, GLboolean * data); -// typedef void (APIENTRYP GPGETVARIANTFLOATVEXT)(GLuint id, GLenum value, GLfloat * data); -// typedef void (APIENTRYP GPGETVARIANTINTEGERVEXT)(GLuint id, GLenum value, GLint * data); -// typedef void (APIENTRYP GPGETVARIANTPOINTERVEXT)(GLuint id, GLenum value, void ** data); -// typedef GLint (APIENTRYP GPGETVARYINGLOCATIONNV)(GLuint program, const GLchar * name); -// typedef void (APIENTRYP GPGETVERTEXARRAYINDEXED64IV)(GLuint vaobj, GLuint index, GLenum pname, GLint64 * param); -// typedef void (APIENTRYP GPGETVERTEXARRAYINDEXEDIV)(GLuint vaobj, GLuint index, GLenum pname, GLint * param); -// typedef void (APIENTRYP GPGETVERTEXARRAYINTEGERI_VEXT)(GLuint vaobj, GLuint index, GLenum pname, GLint * param); -// typedef void (APIENTRYP GPGETVERTEXARRAYINTEGERVEXT)(GLuint vaobj, GLenum pname, GLint * param); -// typedef void (APIENTRYP GPGETVERTEXARRAYPOINTERI_VEXT)(GLuint vaobj, GLuint index, GLenum pname, void ** param); -// typedef void (APIENTRYP GPGETVERTEXARRAYPOINTERVEXT)(GLuint vaobj, GLenum pname, void ** param); -// typedef void (APIENTRYP GPGETVERTEXARRAYIV)(GLuint vaobj, GLenum pname, GLint * param); -// typedef void (APIENTRYP GPGETVERTEXATTRIBARRAYOBJECTFVATI)(GLuint index, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBARRAYOBJECTIVATI)(GLuint index, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBIIVEXT)(GLuint index, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBIUIVEXT)(GLuint index, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBLDV)(GLuint index, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBLDVEXT)(GLuint index, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBLI64VNV)(GLuint index, GLenum pname, GLint64EXT * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBLUI64VARB)(GLuint index, GLenum pname, GLuint64EXT * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBLUI64VNV)(GLuint index, GLenum pname, GLuint64EXT * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBPOINTERV)(GLuint index, GLenum pname, void ** pointer); -// typedef void (APIENTRYP GPGETVERTEXATTRIBPOINTERVARB)(GLuint index, GLenum pname, void ** pointer); -// typedef void (APIENTRYP GPGETVERTEXATTRIBPOINTERVNV)(GLuint index, GLenum pname, void ** pointer); -// typedef void (APIENTRYP GPGETVERTEXATTRIBDV)(GLuint index, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBDVARB)(GLuint index, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBDVNV)(GLuint index, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBFV)(GLuint index, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBFVARB)(GLuint index, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBFVNV)(GLuint index, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBIV)(GLuint index, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBIVARB)(GLuint index, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVERTEXATTRIBIVNV)(GLuint index, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVIDEOCAPTURESTREAMDVNV)(GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble * params); -// typedef void (APIENTRYP GPGETVIDEOCAPTURESTREAMFVNV)(GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat * params); -// typedef void (APIENTRYP GPGETVIDEOCAPTURESTREAMIVNV)(GLuint video_capture_slot, GLuint stream, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVIDEOCAPTUREIVNV)(GLuint video_capture_slot, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVIDEOI64VNV)(GLuint video_slot, GLenum pname, GLint64EXT * params); -// typedef void (APIENTRYP GPGETVIDEOIVNV)(GLuint video_slot, GLenum pname, GLint * params); -// typedef void (APIENTRYP GPGETVIDEOUI64VNV)(GLuint video_slot, GLenum pname, GLuint64EXT * params); -// typedef void (APIENTRYP GPGETVIDEOUIVNV)(GLuint video_slot, GLenum pname, GLuint * params); -// typedef void (APIENTRYP GPGETNCOMPRESSEDTEXIMAGEARB)(GLenum target, GLint lod, GLsizei bufSize, void * img); -// typedef void (APIENTRYP GPGETNTEXIMAGEARB)(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void * img); -// typedef void (APIENTRYP GPGETNUNIFORMDVARB)(GLuint program, GLint location, GLsizei bufSize, GLdouble * params); -// typedef void (APIENTRYP GPGETNUNIFORMFV)(GLuint program, GLint location, GLsizei bufSize, GLfloat * params); -// typedef void (APIENTRYP GPGETNUNIFORMFVARB)(GLuint program, GLint location, GLsizei bufSize, GLfloat * params); -// typedef void (APIENTRYP GPGETNUNIFORMFVKHR)(GLuint program, GLint location, GLsizei bufSize, GLfloat * params); -// typedef void (APIENTRYP GPGETNUNIFORMIV)(GLuint program, GLint location, GLsizei bufSize, GLint * params); -// typedef void (APIENTRYP GPGETNUNIFORMIVARB)(GLuint program, GLint location, GLsizei bufSize, GLint * params); -// typedef void (APIENTRYP GPGETNUNIFORMIVKHR)(GLuint program, GLint location, GLsizei bufSize, GLint * params); -// typedef void (APIENTRYP GPGETNUNIFORMUIV)(GLuint program, GLint location, GLsizei bufSize, GLuint * params); -// typedef void (APIENTRYP GPGETNUNIFORMUIVARB)(GLuint program, GLint location, GLsizei bufSize, GLuint * params); -// typedef void (APIENTRYP GPGETNUNIFORMUIVKHR)(GLuint program, GLint location, GLsizei bufSize, GLuint * params); -// typedef void (APIENTRYP GPGLOBALALPHAFACTORBSUN)(GLbyte factor); -// typedef void (APIENTRYP GPGLOBALALPHAFACTORDSUN)(GLdouble factor); -// typedef void (APIENTRYP GPGLOBALALPHAFACTORFSUN)(GLfloat factor); -// typedef void (APIENTRYP GPGLOBALALPHAFACTORISUN)(GLint factor); -// typedef void (APIENTRYP GPGLOBALALPHAFACTORSSUN)(GLshort factor); -// typedef void (APIENTRYP GPGLOBALALPHAFACTORUBSUN)(GLubyte factor); -// typedef void (APIENTRYP GPGLOBALALPHAFACTORUISUN)(GLuint factor); -// typedef void (APIENTRYP GPGLOBALALPHAFACTORUSSUN)(GLushort factor); -// typedef void (APIENTRYP GPHINT)(GLenum target, GLenum mode); -// typedef void (APIENTRYP GPHINTPGI)(GLenum target, GLint mode); -// typedef void (APIENTRYP GPHISTOGRAMEXT)(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -// typedef void (APIENTRYP GPIGLOOINTERFACESGIX)(GLenum pname, const void * params); -// typedef void (APIENTRYP GPIMAGETRANSFORMPARAMETERFHP)(GLenum target, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPIMAGETRANSFORMPARAMETERFVHP)(GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPIMAGETRANSFORMPARAMETERIHP)(GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPIMAGETRANSFORMPARAMETERIVHP)(GLenum target, GLenum pname, const GLint * params); -// typedef GLsync (APIENTRYP GPIMPORTSYNCEXT)(GLenum external_sync_type, GLintptr external_sync, GLbitfield flags); -// typedef void (APIENTRYP GPINDEXFORMATNV)(GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPINDEXFUNCEXT)(GLenum func, GLclampf ref); -// typedef void (APIENTRYP GPINDEXMASK)(GLuint mask); -// typedef void (APIENTRYP GPINDEXMATERIALEXT)(GLenum face, GLenum mode); -// typedef void (APIENTRYP GPINDEXPOINTER)(GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPINDEXPOINTEREXT)(GLenum type, GLsizei stride, GLsizei count, const void * pointer); -// typedef void (APIENTRYP GPINDEXPOINTERLISTIBM)(GLenum type, GLint stride, const void ** pointer, GLint ptrstride); -// typedef void (APIENTRYP GPINDEXD)(GLdouble c); -// typedef void (APIENTRYP GPINDEXDV)(const GLdouble * c); -// typedef void (APIENTRYP GPINDEXF)(GLfloat c); -// typedef void (APIENTRYP GPINDEXFV)(const GLfloat * c); -// typedef void (APIENTRYP GPINDEXI)(GLint c); -// typedef void (APIENTRYP GPINDEXIV)(const GLint * c); -// typedef void (APIENTRYP GPINDEXS)(GLshort c); -// typedef void (APIENTRYP GPINDEXSV)(const GLshort * c); -// typedef void (APIENTRYP GPINDEXUB)(GLubyte c); -// typedef void (APIENTRYP GPINDEXUBV)(const GLubyte * c); -// typedef void (APIENTRYP GPINDEXXOES)(GLfixed component); -// typedef void (APIENTRYP GPINDEXXVOES)(const GLfixed * component); -// typedef void (APIENTRYP GPINITNAMES)(); -// typedef void (APIENTRYP GPINSERTCOMPONENTEXT)(GLuint res, GLuint src, GLuint num); -// typedef void (APIENTRYP GPINSERTEVENTMARKEREXT)(GLsizei length, const GLchar * marker); -// typedef void (APIENTRYP GPINSTRUMENTSBUFFERSGIX)(GLsizei size, GLint * buffer); -// typedef void (APIENTRYP GPINTERLEAVEDARRAYS)(GLenum format, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPINTERPOLATEPATHSNV)(GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); -// typedef void (APIENTRYP GPINVALIDATEBUFFERDATA)(GLuint buffer); -// typedef void (APIENTRYP GPINVALIDATEBUFFERSUBDATA)(GLuint buffer, GLintptr offset, GLsizeiptr length); -// typedef void (APIENTRYP GPINVALIDATEFRAMEBUFFER)(GLenum target, GLsizei numAttachments, const GLenum * attachments); -// typedef void (APIENTRYP GPINVALIDATENAMEDFRAMEBUFFERDATA)(GLuint framebuffer, GLsizei numAttachments, const GLenum * attachments); -// typedef void (APIENTRYP GPINVALIDATENAMEDFRAMEBUFFERSUBDATA)(GLuint framebuffer, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPINVALIDATESUBFRAMEBUFFER)(GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPINVALIDATETEXIMAGE)(GLuint texture, GLint level); -// typedef void (APIENTRYP GPINVALIDATETEXSUBIMAGE)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); -// typedef GLboolean (APIENTRYP GPISASYNCMARKERSGIX)(GLuint marker); -// typedef GLboolean (APIENTRYP GPISBUFFER)(GLuint buffer); -// typedef GLboolean (APIENTRYP GPISBUFFERARB)(GLuint buffer); -// typedef GLboolean (APIENTRYP GPISBUFFERRESIDENTNV)(GLenum target); -// typedef GLboolean (APIENTRYP GPISENABLED)(GLenum cap); -// typedef GLboolean (APIENTRYP GPISENABLEDINDEXEDEXT)(GLenum target, GLuint index); -// typedef GLboolean (APIENTRYP GPISFENCEAPPLE)(GLuint fence); -// typedef GLboolean (APIENTRYP GPISFENCENV)(GLuint fence); -// typedef GLboolean (APIENTRYP GPISFRAMEBUFFER)(GLuint framebuffer); -// typedef GLboolean (APIENTRYP GPISFRAMEBUFFEREXT)(GLuint framebuffer); -// typedef GLboolean (APIENTRYP GPISIMAGEHANDLERESIDENTARB)(GLuint64 handle); -// typedef GLboolean (APIENTRYP GPISIMAGEHANDLERESIDENTNV)(GLuint64 handle); -// typedef GLboolean (APIENTRYP GPISLIST)(GLuint list); -// typedef GLboolean (APIENTRYP GPISNAMEAMD)(GLenum identifier, GLuint name); -// typedef GLboolean (APIENTRYP GPISNAMEDBUFFERRESIDENTNV)(GLuint buffer); -// typedef GLboolean (APIENTRYP GPISNAMEDSTRINGARB)(GLint namelen, const GLchar * name); -// typedef GLboolean (APIENTRYP GPISOBJECTBUFFERATI)(GLuint buffer); -// typedef GLboolean (APIENTRYP GPISOCCLUSIONQUERYNV)(GLuint id); -// typedef GLboolean (APIENTRYP GPISPATHNV)(GLuint path); -// typedef GLboolean (APIENTRYP GPISPOINTINFILLPATHNV)(GLuint path, GLuint mask, GLfloat x, GLfloat y); -// typedef GLboolean (APIENTRYP GPISPOINTINSTROKEPATHNV)(GLuint path, GLfloat x, GLfloat y); -// typedef GLboolean (APIENTRYP GPISPROGRAM)(GLuint program); -// typedef GLboolean (APIENTRYP GPISPROGRAMARB)(GLuint program); -// typedef GLboolean (APIENTRYP GPISPROGRAMNV)(GLuint id); -// typedef GLboolean (APIENTRYP GPISPROGRAMPIPELINE)(GLuint pipeline); -// typedef GLboolean (APIENTRYP GPISPROGRAMPIPELINEEXT)(GLuint pipeline); -// typedef GLboolean (APIENTRYP GPISQUERY)(GLuint id); -// typedef GLboolean (APIENTRYP GPISQUERYARB)(GLuint id); -// typedef GLboolean (APIENTRYP GPISRENDERBUFFER)(GLuint renderbuffer); -// typedef GLboolean (APIENTRYP GPISRENDERBUFFEREXT)(GLuint renderbuffer); -// typedef GLboolean (APIENTRYP GPISSAMPLER)(GLuint sampler); -// typedef GLboolean (APIENTRYP GPISSHADER)(GLuint shader); -// typedef GLboolean (APIENTRYP GPISSYNC)(GLsync sync); -// typedef GLboolean (APIENTRYP GPISTEXTURE)(GLuint texture); -// typedef GLboolean (APIENTRYP GPISTEXTUREEXT)(GLuint texture); -// typedef GLboolean (APIENTRYP GPISTEXTUREHANDLERESIDENTARB)(GLuint64 handle); -// typedef GLboolean (APIENTRYP GPISTEXTUREHANDLERESIDENTNV)(GLuint64 handle); -// typedef GLboolean (APIENTRYP GPISTRANSFORMFEEDBACK)(GLuint id); -// typedef GLboolean (APIENTRYP GPISTRANSFORMFEEDBACKNV)(GLuint id); -// typedef GLboolean (APIENTRYP GPISVARIANTENABLEDEXT)(GLuint id, GLenum cap); -// typedef GLboolean (APIENTRYP GPISVERTEXARRAY)(GLuint array); -// typedef GLboolean (APIENTRYP GPISVERTEXARRAYAPPLE)(GLuint array); -// typedef GLboolean (APIENTRYP GPISVERTEXATTRIBENABLEDAPPLE)(GLuint index, GLenum pname); -// typedef void (APIENTRYP GPLABELOBJECTEXT)(GLenum type, GLuint object, GLsizei length, const GLchar * label); -// typedef void (APIENTRYP GPLIGHTENVISGIX)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPLIGHTMODELF)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPLIGHTMODELFV)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPLIGHTMODELI)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPLIGHTMODELIV)(GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPLIGHTMODELXOES)(GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPLIGHTMODELXVOES)(GLenum pname, const GLfixed * param); -// typedef void (APIENTRYP GPLIGHTF)(GLenum light, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPLIGHTFV)(GLenum light, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPLIGHTI)(GLenum light, GLenum pname, GLint param); -// typedef void (APIENTRYP GPLIGHTIV)(GLenum light, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPLIGHTXOES)(GLenum light, GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPLIGHTXVOES)(GLenum light, GLenum pname, const GLfixed * params); -// typedef void (APIENTRYP GPLINESTIPPLE)(GLint factor, GLushort pattern); -// typedef void (APIENTRYP GPLINEWIDTH)(GLfloat width); -// typedef void (APIENTRYP GPLINEWIDTHXOES)(GLfixed width); -// typedef void (APIENTRYP GPLINKPROGRAM)(GLuint program); -// typedef void (APIENTRYP GPLINKPROGRAMARB)(GLhandleARB programObj); -// typedef void (APIENTRYP GPLISTBASE)(GLuint base); -// typedef void (APIENTRYP GPLISTPARAMETERFSGIX)(GLuint list, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPLISTPARAMETERFVSGIX)(GLuint list, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPLISTPARAMETERISGIX)(GLuint list, GLenum pname, GLint param); -// typedef void (APIENTRYP GPLISTPARAMETERIVSGIX)(GLuint list, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPLOADIDENTITY)(); -// typedef void (APIENTRYP GPLOADIDENTITYDEFORMATIONMAPSGIX)(GLbitfield mask); -// typedef void (APIENTRYP GPLOADMATRIXD)(const GLdouble * m); -// typedef void (APIENTRYP GPLOADMATRIXF)(const GLfloat * m); -// typedef void (APIENTRYP GPLOADMATRIXXOES)(const GLfixed * m); -// typedef void (APIENTRYP GPLOADNAME)(GLuint name); -// typedef void (APIENTRYP GPLOADPROGRAMNV)(GLenum target, GLuint id, GLsizei len, const GLubyte * program); -// typedef void (APIENTRYP GPLOADTRANSPOSEMATRIXD)(const GLdouble * m); -// typedef void (APIENTRYP GPLOADTRANSPOSEMATRIXDARB)(const GLdouble * m); -// typedef void (APIENTRYP GPLOADTRANSPOSEMATRIXF)(const GLfloat * m); -// typedef void (APIENTRYP GPLOADTRANSPOSEMATRIXFARB)(const GLfloat * m); -// typedef void (APIENTRYP GPLOADTRANSPOSEMATRIXXOES)(const GLfixed * m); -// typedef void (APIENTRYP GPLOCKARRAYSEXT)(GLint first, GLsizei count); -// typedef void (APIENTRYP GPLOGICOP)(GLenum opcode); -// typedef void (APIENTRYP GPMAKEBUFFERNONRESIDENTNV)(GLenum target); -// typedef void (APIENTRYP GPMAKEBUFFERRESIDENTNV)(GLenum target, GLenum access); -// typedef void (APIENTRYP GPMAKEIMAGEHANDLENONRESIDENTARB)(GLuint64 handle); -// typedef void (APIENTRYP GPMAKEIMAGEHANDLENONRESIDENTNV)(GLuint64 handle); -// typedef void (APIENTRYP GPMAKEIMAGEHANDLERESIDENTARB)(GLuint64 handle, GLenum access); -// typedef void (APIENTRYP GPMAKEIMAGEHANDLERESIDENTNV)(GLuint64 handle, GLenum access); -// typedef void (APIENTRYP GPMAKENAMEDBUFFERNONRESIDENTNV)(GLuint buffer); -// typedef void (APIENTRYP GPMAKENAMEDBUFFERRESIDENTNV)(GLuint buffer, GLenum access); -// typedef void (APIENTRYP GPMAKETEXTUREHANDLENONRESIDENTARB)(GLuint64 handle); -// typedef void (APIENTRYP GPMAKETEXTUREHANDLENONRESIDENTNV)(GLuint64 handle); -// typedef void (APIENTRYP GPMAKETEXTUREHANDLERESIDENTARB)(GLuint64 handle); -// typedef void (APIENTRYP GPMAKETEXTUREHANDLERESIDENTNV)(GLuint64 handle); -// typedef void (APIENTRYP GPMAP1D)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points); -// typedef void (APIENTRYP GPMAP1F)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points); -// typedef void (APIENTRYP GPMAP1XOES)(GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points); -// typedef void (APIENTRYP GPMAP2D)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points); -// typedef void (APIENTRYP GPMAP2F)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points); -// typedef void (APIENTRYP GPMAP2XOES)(GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points); -// typedef void * (APIENTRYP GPMAPBUFFER)(GLenum target, GLenum access); -// typedef void * (APIENTRYP GPMAPBUFFERARB)(GLenum target, GLenum access); -// typedef void * (APIENTRYP GPMAPBUFFERRANGE)(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -// typedef void (APIENTRYP GPMAPCONTROLPOINTSNV)(GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void * points); -// typedef void (APIENTRYP GPMAPGRID1D)(GLint un, GLdouble u1, GLdouble u2); -// typedef void (APIENTRYP GPMAPGRID1F)(GLint un, GLfloat u1, GLfloat u2); -// typedef void (APIENTRYP GPMAPGRID1XOES)(GLint n, GLfixed u1, GLfixed u2); -// typedef void (APIENTRYP GPMAPGRID2D)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); -// typedef void (APIENTRYP GPMAPGRID2F)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); -// typedef void (APIENTRYP GPMAPGRID2XOES)(GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2); -// typedef void * (APIENTRYP GPMAPNAMEDBUFFER)(GLuint buffer, GLenum access); -// typedef void * (APIENTRYP GPMAPNAMEDBUFFEREXT)(GLuint buffer, GLenum access); -// typedef void * (APIENTRYP GPMAPNAMEDBUFFERRANGE)(GLuint buffer, GLintptr offset, GLsizei length, GLbitfield access); -// typedef void * (APIENTRYP GPMAPNAMEDBUFFERRANGEEXT)(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); -// typedef void * (APIENTRYP GPMAPOBJECTBUFFERATI)(GLuint buffer); -// typedef void (APIENTRYP GPMAPPARAMETERFVNV)(GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPMAPPARAMETERIVNV)(GLenum target, GLenum pname, const GLint * params); -// typedef void * (APIENTRYP GPMAPTEXTURE2DINTEL)(GLuint texture, GLint level, GLbitfield access, GLint * stride, GLenum * layout); -// typedef void (APIENTRYP GPMAPVERTEXATTRIB1DAPPLE)(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points); -// typedef void (APIENTRYP GPMAPVERTEXATTRIB1FAPPLE)(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points); -// typedef void (APIENTRYP GPMAPVERTEXATTRIB2DAPPLE)(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points); -// typedef void (APIENTRYP GPMAPVERTEXATTRIB2FAPPLE)(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points); -// typedef void (APIENTRYP GPMATERIALF)(GLenum face, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPMATERIALFV)(GLenum face, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPMATERIALI)(GLenum face, GLenum pname, GLint param); -// typedef void (APIENTRYP GPMATERIALIV)(GLenum face, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPMATERIALXOES)(GLenum face, GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPMATERIALXVOES)(GLenum face, GLenum pname, const GLfixed * param); -// typedef void (APIENTRYP GPMATRIXFRUSTUMEXT)(GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -// typedef void (APIENTRYP GPMATRIXINDEXPOINTERARB)(GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPMATRIXINDEXUBVARB)(GLint size, const GLubyte * indices); -// typedef void (APIENTRYP GPMATRIXINDEXUIVARB)(GLint size, const GLuint * indices); -// typedef void (APIENTRYP GPMATRIXINDEXUSVARB)(GLint size, const GLushort * indices); -// typedef void (APIENTRYP GPMATRIXLOAD3X2FNV)(GLenum matrixMode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXLOAD3X3FNV)(GLenum matrixMode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXLOADIDENTITYEXT)(GLenum mode); -// typedef void (APIENTRYP GPMATRIXLOADTRANSPOSE3X3FNV)(GLenum matrixMode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXLOADTRANSPOSEDEXT)(GLenum mode, const GLdouble * m); -// typedef void (APIENTRYP GPMATRIXLOADTRANSPOSEFEXT)(GLenum mode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXLOADDEXT)(GLenum mode, const GLdouble * m); -// typedef void (APIENTRYP GPMATRIXLOADFEXT)(GLenum mode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXMODE)(GLenum mode); -// typedef void (APIENTRYP GPMATRIXMULT3X2FNV)(GLenum matrixMode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXMULT3X3FNV)(GLenum matrixMode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXMULTTRANSPOSE3X3FNV)(GLenum matrixMode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXMULTTRANSPOSEDEXT)(GLenum mode, const GLdouble * m); -// typedef void (APIENTRYP GPMATRIXMULTTRANSPOSEFEXT)(GLenum mode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXMULTDEXT)(GLenum mode, const GLdouble * m); -// typedef void (APIENTRYP GPMATRIXMULTFEXT)(GLenum mode, const GLfloat * m); -// typedef void (APIENTRYP GPMATRIXORTHOEXT)(GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -// typedef void (APIENTRYP GPMATRIXPOPEXT)(GLenum mode); -// typedef void (APIENTRYP GPMATRIXPUSHEXT)(GLenum mode); -// typedef void (APIENTRYP GPMATRIXROTATEDEXT)(GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPMATRIXROTATEFEXT)(GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPMATRIXSCALEDEXT)(GLenum mode, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPMATRIXSCALEFEXT)(GLenum mode, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPMATRIXTRANSLATEDEXT)(GLenum mode, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPMATRIXTRANSLATEFEXT)(GLenum mode, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPMEMORYBARRIER)(GLbitfield barriers); -// typedef void (APIENTRYP GPMEMORYBARRIERBYREGION)(GLbitfield barriers); -// typedef void (APIENTRYP GPMEMORYBARRIEREXT)(GLbitfield barriers); -// typedef void (APIENTRYP GPMINSAMPLESHADINGARB)(GLfloat value); -// typedef void (APIENTRYP GPMINMAXEXT)(GLenum target, GLenum internalformat, GLboolean sink); -// typedef void (APIENTRYP GPMULTMATRIXD)(const GLdouble * m); -// typedef void (APIENTRYP GPMULTMATRIXF)(const GLfloat * m); -// typedef void (APIENTRYP GPMULTMATRIXXOES)(const GLfixed * m); -// typedef void (APIENTRYP GPMULTTRANSPOSEMATRIXD)(const GLdouble * m); -// typedef void (APIENTRYP GPMULTTRANSPOSEMATRIXDARB)(const GLdouble * m); -// typedef void (APIENTRYP GPMULTTRANSPOSEMATRIXF)(const GLfloat * m); -// typedef void (APIENTRYP GPMULTTRANSPOSEMATRIXFARB)(const GLfloat * m); -// typedef void (APIENTRYP GPMULTTRANSPOSEMATRIXXOES)(const GLfixed * m); -// typedef void (APIENTRYP GPMULTIDRAWARRAYS)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei drawcount); -// typedef void (APIENTRYP GPMULTIDRAWARRAYSEXT)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount); -// typedef void (APIENTRYP GPMULTIDRAWARRAYSINDIRECT)(GLenum mode, const void * indirect, GLsizei drawcount, GLsizei stride); -// typedef void (APIENTRYP GPMULTIDRAWARRAYSINDIRECTAMD)(GLenum mode, const void * indirect, GLsizei primcount, GLsizei stride); -// typedef void (APIENTRYP GPMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNV)(GLenum mode, const void * indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); -// typedef void (APIENTRYP GPMULTIDRAWARRAYSINDIRECTBINDLESSNV)(GLenum mode, const void * indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); -// typedef void (APIENTRYP GPMULTIDRAWARRAYSINDIRECTCOUNTARB)(GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTARRAYAPPLE)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTS)(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei drawcount); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTSBASEVERTEX)(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei drawcount, const GLint * basevertex); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTSEXT)(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei primcount); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTSINDIRECT)(GLenum mode, GLenum type, const void * indirect, GLsizei drawcount, GLsizei stride); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTSINDIRECTAMD)(GLenum mode, GLenum type, const void * indirect, GLsizei primcount, GLsizei stride); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNV)(GLenum mode, GLenum type, const void * indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTSINDIRECTBINDLESSNV)(GLenum mode, GLenum type, const void * indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); -// typedef void (APIENTRYP GPMULTIDRAWELEMENTSINDIRECTCOUNTARB)(GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -// typedef void (APIENTRYP GPMULTIDRAWRANGEELEMENTARRAYAPPLE)(GLenum mode, GLuint start, GLuint end, const GLint * first, const GLsizei * count, GLsizei primcount); -// typedef void (APIENTRYP GPMULTIMODEDRAWARRAYSIBM)(const GLenum * mode, const GLint * first, const GLsizei * count, GLsizei primcount, GLint modestride); -// typedef void (APIENTRYP GPMULTIMODEDRAWELEMENTSIBM)(const GLenum * mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei primcount, GLint modestride); -// typedef void (APIENTRYP GPMULTITEXBUFFEREXT)(GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); -// typedef void (APIENTRYP GPMULTITEXCOORD1BOES)(GLenum texture, GLbyte s); -// typedef void (APIENTRYP GPMULTITEXCOORD1BVOES)(GLenum texture, const GLbyte * coords); -// typedef void (APIENTRYP GPMULTITEXCOORD1D)(GLenum target, GLdouble s); -// typedef void (APIENTRYP GPMULTITEXCOORD1DARB)(GLenum target, GLdouble s); -// typedef void (APIENTRYP GPMULTITEXCOORD1DV)(GLenum target, const GLdouble * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1DVARB)(GLenum target, const GLdouble * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1F)(GLenum target, GLfloat s); -// typedef void (APIENTRYP GPMULTITEXCOORD1FARB)(GLenum target, GLfloat s); -// typedef void (APIENTRYP GPMULTITEXCOORD1FV)(GLenum target, const GLfloat * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1FVARB)(GLenum target, const GLfloat * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1HNV)(GLenum target, GLhalfNV s); -// typedef void (APIENTRYP GPMULTITEXCOORD1HVNV)(GLenum target, const GLhalfNV * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1I)(GLenum target, GLint s); -// typedef void (APIENTRYP GPMULTITEXCOORD1IARB)(GLenum target, GLint s); -// typedef void (APIENTRYP GPMULTITEXCOORD1IV)(GLenum target, const GLint * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1IVARB)(GLenum target, const GLint * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1S)(GLenum target, GLshort s); -// typedef void (APIENTRYP GPMULTITEXCOORD1SARB)(GLenum target, GLshort s); -// typedef void (APIENTRYP GPMULTITEXCOORD1SV)(GLenum target, const GLshort * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1SVARB)(GLenum target, const GLshort * v); -// typedef void (APIENTRYP GPMULTITEXCOORD1XOES)(GLenum texture, GLfixed s); -// typedef void (APIENTRYP GPMULTITEXCOORD1XVOES)(GLenum texture, const GLfixed * coords); -// typedef void (APIENTRYP GPMULTITEXCOORD2BOES)(GLenum texture, GLbyte s, GLbyte t); -// typedef void (APIENTRYP GPMULTITEXCOORD2BVOES)(GLenum texture, const GLbyte * coords); -// typedef void (APIENTRYP GPMULTITEXCOORD2D)(GLenum target, GLdouble s, GLdouble t); -// typedef void (APIENTRYP GPMULTITEXCOORD2DARB)(GLenum target, GLdouble s, GLdouble t); -// typedef void (APIENTRYP GPMULTITEXCOORD2DV)(GLenum target, const GLdouble * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2DVARB)(GLenum target, const GLdouble * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2F)(GLenum target, GLfloat s, GLfloat t); -// typedef void (APIENTRYP GPMULTITEXCOORD2FARB)(GLenum target, GLfloat s, GLfloat t); -// typedef void (APIENTRYP GPMULTITEXCOORD2FV)(GLenum target, const GLfloat * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2FVARB)(GLenum target, const GLfloat * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2HNV)(GLenum target, GLhalfNV s, GLhalfNV t); -// typedef void (APIENTRYP GPMULTITEXCOORD2HVNV)(GLenum target, const GLhalfNV * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2I)(GLenum target, GLint s, GLint t); -// typedef void (APIENTRYP GPMULTITEXCOORD2IARB)(GLenum target, GLint s, GLint t); -// typedef void (APIENTRYP GPMULTITEXCOORD2IV)(GLenum target, const GLint * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2IVARB)(GLenum target, const GLint * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2S)(GLenum target, GLshort s, GLshort t); -// typedef void (APIENTRYP GPMULTITEXCOORD2SARB)(GLenum target, GLshort s, GLshort t); -// typedef void (APIENTRYP GPMULTITEXCOORD2SV)(GLenum target, const GLshort * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2SVARB)(GLenum target, const GLshort * v); -// typedef void (APIENTRYP GPMULTITEXCOORD2XOES)(GLenum texture, GLfixed s, GLfixed t); -// typedef void (APIENTRYP GPMULTITEXCOORD2XVOES)(GLenum texture, const GLfixed * coords); -// typedef void (APIENTRYP GPMULTITEXCOORD3BOES)(GLenum texture, GLbyte s, GLbyte t, GLbyte r); -// typedef void (APIENTRYP GPMULTITEXCOORD3BVOES)(GLenum texture, const GLbyte * coords); -// typedef void (APIENTRYP GPMULTITEXCOORD3D)(GLenum target, GLdouble s, GLdouble t, GLdouble r); -// typedef void (APIENTRYP GPMULTITEXCOORD3DARB)(GLenum target, GLdouble s, GLdouble t, GLdouble r); -// typedef void (APIENTRYP GPMULTITEXCOORD3DV)(GLenum target, const GLdouble * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3DVARB)(GLenum target, const GLdouble * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3F)(GLenum target, GLfloat s, GLfloat t, GLfloat r); -// typedef void (APIENTRYP GPMULTITEXCOORD3FARB)(GLenum target, GLfloat s, GLfloat t, GLfloat r); -// typedef void (APIENTRYP GPMULTITEXCOORD3FV)(GLenum target, const GLfloat * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3FVARB)(GLenum target, const GLfloat * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3HNV)(GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); -// typedef void (APIENTRYP GPMULTITEXCOORD3HVNV)(GLenum target, const GLhalfNV * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3I)(GLenum target, GLint s, GLint t, GLint r); -// typedef void (APIENTRYP GPMULTITEXCOORD3IARB)(GLenum target, GLint s, GLint t, GLint r); -// typedef void (APIENTRYP GPMULTITEXCOORD3IV)(GLenum target, const GLint * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3IVARB)(GLenum target, const GLint * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3S)(GLenum target, GLshort s, GLshort t, GLshort r); -// typedef void (APIENTRYP GPMULTITEXCOORD3SARB)(GLenum target, GLshort s, GLshort t, GLshort r); -// typedef void (APIENTRYP GPMULTITEXCOORD3SV)(GLenum target, const GLshort * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3SVARB)(GLenum target, const GLshort * v); -// typedef void (APIENTRYP GPMULTITEXCOORD3XOES)(GLenum texture, GLfixed s, GLfixed t, GLfixed r); -// typedef void (APIENTRYP GPMULTITEXCOORD3XVOES)(GLenum texture, const GLfixed * coords); -// typedef void (APIENTRYP GPMULTITEXCOORD4BOES)(GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q); -// typedef void (APIENTRYP GPMULTITEXCOORD4BVOES)(GLenum texture, const GLbyte * coords); -// typedef void (APIENTRYP GPMULTITEXCOORD4D)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -// typedef void (APIENTRYP GPMULTITEXCOORD4DARB)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -// typedef void (APIENTRYP GPMULTITEXCOORD4DV)(GLenum target, const GLdouble * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4DVARB)(GLenum target, const GLdouble * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4F)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -// typedef void (APIENTRYP GPMULTITEXCOORD4FARB)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -// typedef void (APIENTRYP GPMULTITEXCOORD4FV)(GLenum target, const GLfloat * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4FVARB)(GLenum target, const GLfloat * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4HNV)(GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -// typedef void (APIENTRYP GPMULTITEXCOORD4HVNV)(GLenum target, const GLhalfNV * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4I)(GLenum target, GLint s, GLint t, GLint r, GLint q); -// typedef void (APIENTRYP GPMULTITEXCOORD4IARB)(GLenum target, GLint s, GLint t, GLint r, GLint q); -// typedef void (APIENTRYP GPMULTITEXCOORD4IV)(GLenum target, const GLint * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4IVARB)(GLenum target, const GLint * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4S)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -// typedef void (APIENTRYP GPMULTITEXCOORD4SARB)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -// typedef void (APIENTRYP GPMULTITEXCOORD4SV)(GLenum target, const GLshort * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4SVARB)(GLenum target, const GLshort * v); -// typedef void (APIENTRYP GPMULTITEXCOORD4XOES)(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q); -// typedef void (APIENTRYP GPMULTITEXCOORD4XVOES)(GLenum texture, const GLfixed * coords); -// typedef void (APIENTRYP GPMULTITEXCOORDPOINTEREXT)(GLenum texunit, GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPMULTITEXENVFEXT)(GLenum texunit, GLenum target, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPMULTITEXENVFVEXT)(GLenum texunit, GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPMULTITEXENVIEXT)(GLenum texunit, GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPMULTITEXENVIVEXT)(GLenum texunit, GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPMULTITEXGENDEXT)(GLenum texunit, GLenum coord, GLenum pname, GLdouble param); -// typedef void (APIENTRYP GPMULTITEXGENDVEXT)(GLenum texunit, GLenum coord, GLenum pname, const GLdouble * params); -// typedef void (APIENTRYP GPMULTITEXGENFEXT)(GLenum texunit, GLenum coord, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPMULTITEXGENFVEXT)(GLenum texunit, GLenum coord, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPMULTITEXGENIEXT)(GLenum texunit, GLenum coord, GLenum pname, GLint param); -// typedef void (APIENTRYP GPMULTITEXGENIVEXT)(GLenum texunit, GLenum coord, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPMULTITEXIMAGE1DEXT)(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPMULTITEXIMAGE2DEXT)(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPMULTITEXIMAGE3DEXT)(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPMULTITEXPARAMETERIIVEXT)(GLenum texunit, GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPMULTITEXPARAMETERIUIVEXT)(GLenum texunit, GLenum target, GLenum pname, const GLuint * params); -// typedef void (APIENTRYP GPMULTITEXPARAMETERFEXT)(GLenum texunit, GLenum target, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPMULTITEXPARAMETERFVEXT)(GLenum texunit, GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPMULTITEXPARAMETERIEXT)(GLenum texunit, GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPMULTITEXPARAMETERIVEXT)(GLenum texunit, GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPMULTITEXRENDERBUFFEREXT)(GLenum texunit, GLenum target, GLuint renderbuffer); -// typedef void (APIENTRYP GPMULTITEXSUBIMAGE1DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPMULTITEXSUBIMAGE2DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPMULTITEXSUBIMAGE3DEXT)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPNAMEDBUFFERDATA)(GLuint buffer, GLsizei size, const void * data, GLenum usage); -// typedef void (APIENTRYP GPNAMEDBUFFERDATAEXT)(GLuint buffer, GLsizeiptr size, const void * data, GLenum usage); -// typedef void (APIENTRYP GPNAMEDBUFFERPAGECOMMITMENTARB)(GLuint buffer, GLintptr offset, GLsizei size, GLboolean commit); -// typedef void (APIENTRYP GPNAMEDBUFFERPAGECOMMITMENTEXT)(GLuint buffer, GLintptr offset, GLsizei size, GLboolean commit); -// typedef void (APIENTRYP GPNAMEDBUFFERSTORAGE)(GLuint buffer, GLsizei size, const void * data, GLbitfield flags); -// typedef void (APIENTRYP GPNAMEDBUFFERSTORAGEEXT)(GLuint buffer, GLsizeiptr size, const void * data, GLbitfield flags); -// typedef void (APIENTRYP GPNAMEDBUFFERSUBDATA)(GLuint buffer, GLintptr offset, GLsizei size, const void * data); -// typedef void (APIENTRYP GPNAMEDBUFFERSUBDATAEXT)(GLuint buffer, GLintptr offset, GLsizeiptr size, const void * data); -// typedef void (APIENTRYP GPNAMEDCOPYBUFFERSUBDATAEXT)(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERDRAWBUFFER)(GLuint framebuffer, GLenum buf); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERDRAWBUFFERS)(GLuint framebuffer, GLsizei n, const GLenum * bufs); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERPARAMETERI)(GLuint framebuffer, GLenum pname, GLint param); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERPARAMETERIEXT)(GLuint framebuffer, GLenum pname, GLint param); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERREADBUFFER)(GLuint framebuffer, GLenum src); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERRENDERBUFFER)(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERRENDERBUFFEREXT)(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERTEXTURE)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERTEXTURE1DEXT)(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERTEXTURE2DEXT)(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERTEXTURE3DEXT)(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERTEXTUREEXT)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERTEXTUREFACEEXT)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERTEXTURELAYER)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -// typedef void (APIENTRYP GPNAMEDFRAMEBUFFERTEXTURELAYEREXT)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETER4DEXT)(GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETER4DVEXT)(GLuint program, GLenum target, GLuint index, const GLdouble * params); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETER4FEXT)(GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETER4FVEXT)(GLuint program, GLenum target, GLuint index, const GLfloat * params); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETERI4IEXT)(GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETERI4IVEXT)(GLuint program, GLenum target, GLuint index, const GLint * params); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETERI4UIEXT)(GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETERI4UIVEXT)(GLuint program, GLenum target, GLuint index, const GLuint * params); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETERS4FVEXT)(GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat * params); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETERSI4IVEXT)(GLuint program, GLenum target, GLuint index, GLsizei count, const GLint * params); -// typedef void (APIENTRYP GPNAMEDPROGRAMLOCALPARAMETERSI4UIVEXT)(GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint * params); -// typedef void (APIENTRYP GPNAMEDPROGRAMSTRINGEXT)(GLuint program, GLenum target, GLenum format, GLsizei len, const void * string); -// typedef void (APIENTRYP GPNAMEDRENDERBUFFERSTORAGE)(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPNAMEDRENDERBUFFERSTORAGEEXT)(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLE)(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXT)(GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXT)(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPNAMEDSTRINGARB)(GLenum type, GLint namelen, const GLchar * name, GLint stringlen, const GLchar * string); -// typedef void (APIENTRYP GPNEWLIST)(GLuint list, GLenum mode); -// typedef GLuint (APIENTRYP GPNEWOBJECTBUFFERATI)(GLsizei size, const void * pointer, GLenum usage); -// typedef void (APIENTRYP GPNORMAL3B)(GLbyte nx, GLbyte ny, GLbyte nz); -// typedef void (APIENTRYP GPNORMAL3BV)(const GLbyte * v); -// typedef void (APIENTRYP GPNORMAL3D)(GLdouble nx, GLdouble ny, GLdouble nz); -// typedef void (APIENTRYP GPNORMAL3DV)(const GLdouble * v); -// typedef void (APIENTRYP GPNORMAL3F)(GLfloat nx, GLfloat ny, GLfloat nz); -// typedef void (APIENTRYP GPNORMAL3FVERTEX3FSUN)(GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPNORMAL3FVERTEX3FVSUN)(const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPNORMAL3FV)(const GLfloat * v); -// typedef void (APIENTRYP GPNORMAL3HNV)(GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); -// typedef void (APIENTRYP GPNORMAL3HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPNORMAL3I)(GLint nx, GLint ny, GLint nz); -// typedef void (APIENTRYP GPNORMAL3IV)(const GLint * v); -// typedef void (APIENTRYP GPNORMAL3S)(GLshort nx, GLshort ny, GLshort nz); -// typedef void (APIENTRYP GPNORMAL3SV)(const GLshort * v); -// typedef void (APIENTRYP GPNORMAL3XOES)(GLfixed nx, GLfixed ny, GLfixed nz); -// typedef void (APIENTRYP GPNORMAL3XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPNORMALFORMATNV)(GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPNORMALPOINTER)(GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPNORMALPOINTEREXT)(GLenum type, GLsizei stride, GLsizei count, const void * pointer); -// typedef void (APIENTRYP GPNORMALPOINTERLISTIBM)(GLenum type, GLint stride, const void ** pointer, GLint ptrstride); -// typedef void (APIENTRYP GPNORMALPOINTERVINTEL)(GLenum type, const void ** pointer); -// typedef void (APIENTRYP GPNORMALSTREAM3BATI)(GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); -// typedef void (APIENTRYP GPNORMALSTREAM3BVATI)(GLenum stream, const GLbyte * coords); -// typedef void (APIENTRYP GPNORMALSTREAM3DATI)(GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); -// typedef void (APIENTRYP GPNORMALSTREAM3DVATI)(GLenum stream, const GLdouble * coords); -// typedef void (APIENTRYP GPNORMALSTREAM3FATI)(GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); -// typedef void (APIENTRYP GPNORMALSTREAM3FVATI)(GLenum stream, const GLfloat * coords); -// typedef void (APIENTRYP GPNORMALSTREAM3IATI)(GLenum stream, GLint nx, GLint ny, GLint nz); -// typedef void (APIENTRYP GPNORMALSTREAM3IVATI)(GLenum stream, const GLint * coords); -// typedef void (APIENTRYP GPNORMALSTREAM3SATI)(GLenum stream, GLshort nx, GLshort ny, GLshort nz); -// typedef void (APIENTRYP GPNORMALSTREAM3SVATI)(GLenum stream, const GLshort * coords); -// typedef void (APIENTRYP GPOBJECTLABEL)(GLenum identifier, GLuint name, GLsizei length, const GLchar * label); -// typedef void (APIENTRYP GPOBJECTLABELKHR)(GLenum identifier, GLuint name, GLsizei length, const GLchar * label); -// typedef void (APIENTRYP GPOBJECTPTRLABEL)(const void * ptr, GLsizei length, const GLchar * label); -// typedef void (APIENTRYP GPOBJECTPTRLABELKHR)(const void * ptr, GLsizei length, const GLchar * label); -// typedef GLenum (APIENTRYP GPOBJECTPURGEABLEAPPLE)(GLenum objectType, GLuint name, GLenum option); -// typedef GLenum (APIENTRYP GPOBJECTUNPURGEABLEAPPLE)(GLenum objectType, GLuint name, GLenum option); -// typedef void (APIENTRYP GPORTHO)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -// typedef void (APIENTRYP GPORTHOFOES)(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -// typedef void (APIENTRYP GPORTHOXOES)(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -// typedef void (APIENTRYP GPPNTRIANGLESFATI)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPNTRIANGLESIATI)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPPASSTEXCOORDATI)(GLuint dst, GLuint coord, GLenum swizzle); -// typedef void (APIENTRYP GPPASSTHROUGH)(GLfloat token); -// typedef void (APIENTRYP GPPASSTHROUGHXOES)(GLfixed token); -// typedef void (APIENTRYP GPPATCHPARAMETERFV)(GLenum pname, const GLfloat * values); -// typedef void (APIENTRYP GPPATCHPARAMETERI)(GLenum pname, GLint value); -// typedef void (APIENTRYP GPPATHCOLORGENNV)(GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat * coeffs); -// typedef void (APIENTRYP GPPATHCOMMANDSNV)(GLuint path, GLsizei numCommands, const GLubyte * commands, GLsizei numCoords, GLenum coordType, const void * coords); -// typedef void (APIENTRYP GPPATHCOORDSNV)(GLuint path, GLsizei numCoords, GLenum coordType, const void * coords); -// typedef void (APIENTRYP GPPATHCOVERDEPTHFUNCNV)(GLenum func); -// typedef void (APIENTRYP GPPATHDASHARRAYNV)(GLuint path, GLsizei dashCount, const GLfloat * dashArray); -// typedef void (APIENTRYP GPPATHFOGGENNV)(GLenum genMode); -// typedef GLenum (APIENTRYP GPPATHGLYPHINDEXARRAYNV)(GLuint firstPathName, GLenum fontTarget, const void * fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -// typedef GLenum (APIENTRYP GPPATHGLYPHINDEXRANGENV)(GLenum fontTarget, const void * fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint * baseAndCount); -// typedef void (APIENTRYP GPPATHGLYPHRANGENV)(GLuint firstPathName, GLenum fontTarget, const void * fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -// typedef void (APIENTRYP GPPATHGLYPHSNV)(GLuint firstPathName, GLenum fontTarget, const void * fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void * charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -// typedef GLenum (APIENTRYP GPPATHMEMORYGLYPHINDEXARRAYNV)(GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void * fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -// typedef void (APIENTRYP GPPATHPARAMETERFNV)(GLuint path, GLenum pname, GLfloat value); -// typedef void (APIENTRYP GPPATHPARAMETERFVNV)(GLuint path, GLenum pname, const GLfloat * value); -// typedef void (APIENTRYP GPPATHPARAMETERINV)(GLuint path, GLenum pname, GLint value); -// typedef void (APIENTRYP GPPATHPARAMETERIVNV)(GLuint path, GLenum pname, const GLint * value); -// typedef void (APIENTRYP GPPATHSTENCILDEPTHOFFSETNV)(GLfloat factor, GLfloat units); -// typedef void (APIENTRYP GPPATHSTENCILFUNCNV)(GLenum func, GLint ref, GLuint mask); -// typedef void (APIENTRYP GPPATHSTRINGNV)(GLuint path, GLenum format, GLsizei length, const void * pathString); -// typedef void (APIENTRYP GPPATHSUBCOMMANDSNV)(GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte * commands, GLsizei numCoords, GLenum coordType, const void * coords); -// typedef void (APIENTRYP GPPATHSUBCOORDSNV)(GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void * coords); -// typedef void (APIENTRYP GPPATHTEXGENNV)(GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat * coeffs); -// typedef void (APIENTRYP GPPAUSETRANSFORMFEEDBACK)(); -// typedef void (APIENTRYP GPPAUSETRANSFORMFEEDBACKNV)(); -// typedef void (APIENTRYP GPPIXELDATARANGENV)(GLenum target, GLsizei length, const void * pointer); -// typedef void (APIENTRYP GPPIXELMAPFV)(GLenum map, GLsizei mapsize, const GLfloat * values); -// typedef void (APIENTRYP GPPIXELMAPUIV)(GLenum map, GLsizei mapsize, const GLuint * values); -// typedef void (APIENTRYP GPPIXELMAPUSV)(GLenum map, GLsizei mapsize, const GLushort * values); -// typedef void (APIENTRYP GPPIXELMAPX)(GLenum map, GLint size, const GLfixed * values); -// typedef void (APIENTRYP GPPIXELSTOREF)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPIXELSTOREI)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPPIXELSTOREX)(GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPPIXELTEXGENPARAMETERFSGIS)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPIXELTEXGENPARAMETERFVSGIS)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPPIXELTEXGENPARAMETERISGIS)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPPIXELTEXGENPARAMETERIVSGIS)(GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPPIXELTEXGENSGIX)(GLenum mode); -// typedef void (APIENTRYP GPPIXELTRANSFERF)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPIXELTRANSFERI)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPPIXELTRANSFERXOES)(GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPPIXELTRANSFORMPARAMETERFEXT)(GLenum target, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPIXELTRANSFORMPARAMETERFVEXT)(GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPPIXELTRANSFORMPARAMETERIEXT)(GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPPIXELTRANSFORMPARAMETERIVEXT)(GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPPIXELZOOM)(GLfloat xfactor, GLfloat yfactor); -// typedef void (APIENTRYP GPPIXELZOOMXOES)(GLfixed xfactor, GLfixed yfactor); -// typedef GLboolean (APIENTRYP GPPOINTALONGPATHNV)(GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat * x, GLfloat * y, GLfloat * tangentX, GLfloat * tangentY); -// typedef void (APIENTRYP GPPOINTPARAMETERF)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPOINTPARAMETERFARB)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPOINTPARAMETERFEXT)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPOINTPARAMETERFSGIS)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPPOINTPARAMETERFV)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPPOINTPARAMETERFVARB)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPPOINTPARAMETERFVEXT)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPPOINTPARAMETERFVSGIS)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPPOINTPARAMETERI)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPPOINTPARAMETERINV)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPPOINTPARAMETERIV)(GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPPOINTPARAMETERIVNV)(GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPPOINTPARAMETERXOES)(GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPPOINTPARAMETERXVOES)(GLenum pname, const GLfixed * params); -// typedef void (APIENTRYP GPPOINTSIZE)(GLfloat size); -// typedef void (APIENTRYP GPPOINTSIZEXOES)(GLfixed size); -// typedef GLint (APIENTRYP GPPOLLASYNCSGIX)(GLuint * markerp); -// typedef GLint (APIENTRYP GPPOLLINSTRUMENTSSGIX)(GLint * marker_p); -// typedef void (APIENTRYP GPPOLYGONMODE)(GLenum face, GLenum mode); -// typedef void (APIENTRYP GPPOLYGONOFFSET)(GLfloat factor, GLfloat units); -// typedef void (APIENTRYP GPPOLYGONOFFSETEXT)(GLfloat factor, GLfloat bias); -// typedef void (APIENTRYP GPPOLYGONOFFSETXOES)(GLfixed factor, GLfixed units); -// typedef void (APIENTRYP GPPOLYGONSTIPPLE)(const GLubyte * mask); -// typedef void (APIENTRYP GPPOPATTRIB)(); -// typedef void (APIENTRYP GPPOPCLIENTATTRIB)(); -// typedef void (APIENTRYP GPPOPDEBUGGROUP)(); -// typedef void (APIENTRYP GPPOPDEBUGGROUPKHR)(); -// typedef void (APIENTRYP GPPOPGROUPMARKEREXT)(); -// typedef void (APIENTRYP GPPOPMATRIX)(); -// typedef void (APIENTRYP GPPOPNAME)(); -// typedef void (APIENTRYP GPPRESENTFRAMEDUALFILLNV)(GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3); -// typedef void (APIENTRYP GPPRESENTFRAMEKEYEDNV)(GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); -// typedef void (APIENTRYP GPPRIMITIVERESTARTINDEXNV)(GLuint index); -// typedef void (APIENTRYP GPPRIMITIVERESTARTNV)(); -// typedef void (APIENTRYP GPPRIORITIZETEXTURES)(GLsizei n, const GLuint * textures, const GLfloat * priorities); -// typedef void (APIENTRYP GPPRIORITIZETEXTURESEXT)(GLsizei n, const GLuint * textures, const GLclampf * priorities); -// typedef void (APIENTRYP GPPRIORITIZETEXTURESXOES)(GLsizei n, const GLuint * textures, const GLfixed * priorities); -// typedef void (APIENTRYP GPPROGRAMBINARY)(GLuint program, GLenum binaryFormat, const void * binary, GLsizei length); -// typedef void (APIENTRYP GPPROGRAMBUFFERPARAMETERSIIVNV)(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint * params); -// typedef void (APIENTRYP GPPROGRAMBUFFERPARAMETERSIUIVNV)(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint * params); -// typedef void (APIENTRYP GPPROGRAMBUFFERPARAMETERSFVNV)(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat * params); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETER4DARB)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETER4DVARB)(GLenum target, GLuint index, const GLdouble * params); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETER4FARB)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETER4FVARB)(GLenum target, GLuint index, const GLfloat * params); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETERI4INV)(GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETERI4IVNV)(GLenum target, GLuint index, const GLint * params); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETERI4UINV)(GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETERI4UIVNV)(GLenum target, GLuint index, const GLuint * params); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETERS4FVEXT)(GLenum target, GLuint index, GLsizei count, const GLfloat * params); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETERSI4IVNV)(GLenum target, GLuint index, GLsizei count, const GLint * params); -// typedef void (APIENTRYP GPPROGRAMENVPARAMETERSI4UIVNV)(GLenum target, GLuint index, GLsizei count, const GLuint * params); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETER4DARB)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETER4DVARB)(GLenum target, GLuint index, const GLdouble * params); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETER4FARB)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETER4FVARB)(GLenum target, GLuint index, const GLfloat * params); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETERI4INV)(GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETERI4IVNV)(GLenum target, GLuint index, const GLint * params); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETERI4UINV)(GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETERI4UIVNV)(GLenum target, GLuint index, const GLuint * params); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETERS4FVEXT)(GLenum target, GLuint index, GLsizei count, const GLfloat * params); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETERSI4IVNV)(GLenum target, GLuint index, GLsizei count, const GLint * params); -// typedef void (APIENTRYP GPPROGRAMLOCALPARAMETERSI4UIVNV)(GLenum target, GLuint index, GLsizei count, const GLuint * params); -// typedef void (APIENTRYP GPPROGRAMNAMEDPARAMETER4DNV)(GLuint id, GLsizei len, const GLubyte * name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPPROGRAMNAMEDPARAMETER4DVNV)(GLuint id, GLsizei len, const GLubyte * name, const GLdouble * v); -// typedef void (APIENTRYP GPPROGRAMNAMEDPARAMETER4FNV)(GLuint id, GLsizei len, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPPROGRAMNAMEDPARAMETER4FVNV)(GLuint id, GLsizei len, const GLubyte * name, const GLfloat * v); -// typedef void (APIENTRYP GPPROGRAMPARAMETER4DNV)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPPROGRAMPARAMETER4DVNV)(GLenum target, GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPPROGRAMPARAMETER4FNV)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPPROGRAMPARAMETER4FVNV)(GLenum target, GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPPROGRAMPARAMETERI)(GLuint program, GLenum pname, GLint value); -// typedef void (APIENTRYP GPPROGRAMPARAMETERIARB)(GLuint program, GLenum pname, GLint value); -// typedef void (APIENTRYP GPPROGRAMPARAMETERIEXT)(GLuint program, GLenum pname, GLint value); -// typedef void (APIENTRYP GPPROGRAMPARAMETERS4DVNV)(GLenum target, GLuint index, GLsizei count, const GLdouble * v); -// typedef void (APIENTRYP GPPROGRAMPARAMETERS4FVNV)(GLenum target, GLuint index, GLsizei count, const GLfloat * v); -// typedef void (APIENTRYP GPPROGRAMPATHFRAGMENTINPUTGENNV)(GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat * coeffs); -// typedef void (APIENTRYP GPPROGRAMSTRINGARB)(GLenum target, GLenum format, GLsizei len, const void * string); -// typedef void (APIENTRYP GPPROGRAMSUBROUTINEPARAMETERSUIVNV)(GLenum target, GLsizei count, const GLuint * params); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1D)(GLuint program, GLint location, GLdouble v0); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1DEXT)(GLuint program, GLint location, GLdouble x); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1DV)(GLuint program, GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1DVEXT)(GLuint program, GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1F)(GLuint program, GLint location, GLfloat v0); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1FEXT)(GLuint program, GLint location, GLfloat v0); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1FV)(GLuint program, GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1FVEXT)(GLuint program, GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1I)(GLuint program, GLint location, GLint v0); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1I64NV)(GLuint program, GLint location, GLint64EXT x); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1I64VNV)(GLuint program, GLint location, GLsizei count, const GLint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1IEXT)(GLuint program, GLint location, GLint v0); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1IV)(GLuint program, GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1IVEXT)(GLuint program, GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1UI)(GLuint program, GLint location, GLuint v0); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1UI64NV)(GLuint program, GLint location, GLuint64EXT x); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1UI64VNV)(GLuint program, GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1UIEXT)(GLuint program, GLint location, GLuint v0); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1UIV)(GLuint program, GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM1UIVEXT)(GLuint program, GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2D)(GLuint program, GLint location, GLdouble v0, GLdouble v1); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2DEXT)(GLuint program, GLint location, GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2DV)(GLuint program, GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2DVEXT)(GLuint program, GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2F)(GLuint program, GLint location, GLfloat v0, GLfloat v1); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2FEXT)(GLuint program, GLint location, GLfloat v0, GLfloat v1); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2FV)(GLuint program, GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2FVEXT)(GLuint program, GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2I)(GLuint program, GLint location, GLint v0, GLint v1); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2I64NV)(GLuint program, GLint location, GLint64EXT x, GLint64EXT y); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2I64VNV)(GLuint program, GLint location, GLsizei count, const GLint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2IEXT)(GLuint program, GLint location, GLint v0, GLint v1); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2IV)(GLuint program, GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2IVEXT)(GLuint program, GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2UI)(GLuint program, GLint location, GLuint v0, GLuint v1); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2UI64NV)(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2UI64VNV)(GLuint program, GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2UIEXT)(GLuint program, GLint location, GLuint v0, GLuint v1); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2UIV)(GLuint program, GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM2UIVEXT)(GLuint program, GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3D)(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3DEXT)(GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3DV)(GLuint program, GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3DVEXT)(GLuint program, GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3F)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3FEXT)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3FV)(GLuint program, GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3FVEXT)(GLuint program, GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3I)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3I64NV)(GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3I64VNV)(GLuint program, GLint location, GLsizei count, const GLint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3IEXT)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3IV)(GLuint program, GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3IVEXT)(GLuint program, GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3UI)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3UI64NV)(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3UI64VNV)(GLuint program, GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3UIEXT)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3UIV)(GLuint program, GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM3UIVEXT)(GLuint program, GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4D)(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4DEXT)(GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4DV)(GLuint program, GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4DVEXT)(GLuint program, GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4F)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4FEXT)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4FV)(GLuint program, GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4FVEXT)(GLuint program, GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4I)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4I64NV)(GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4I64VNV)(GLuint program, GLint location, GLsizei count, const GLint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4IEXT)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4IV)(GLuint program, GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4IVEXT)(GLuint program, GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4UI)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4UI64NV)(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4UI64VNV)(GLuint program, GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4UIEXT)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4UIV)(GLuint program, GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORM4UIVEXT)(GLuint program, GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMHANDLEUI64ARB)(GLuint program, GLint location, GLuint64 value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMHANDLEUI64NV)(GLuint program, GLint location, GLuint64 value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMHANDLEUI64VARB)(GLuint program, GLint location, GLsizei count, const GLuint64 * values); -// typedef void (APIENTRYP GPPROGRAMUNIFORMHANDLEUI64VNV)(GLuint program, GLint location, GLsizei count, const GLuint64 * values); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2X3DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2X3DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2X3FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2X3FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2X4DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2X4DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2X4FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX2X4FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3X2DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3X2DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3X2FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3X2FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3X4DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3X4DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3X4FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX3X4FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4X2DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4X2DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4X2FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4X2FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4X3DV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4X3DVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4X3FV)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMMATRIX4X3FVEXT)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMUI64NV)(GLuint program, GLint location, GLuint64EXT value); -// typedef void (APIENTRYP GPPROGRAMUNIFORMUI64VNV)(GLuint program, GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPPROGRAMVERTEXLIMITNV)(GLenum target, GLint limit); -// typedef void (APIENTRYP GPPROVOKINGVERTEX)(GLenum mode); -// typedef void (APIENTRYP GPPROVOKINGVERTEXEXT)(GLenum mode); -// typedef void (APIENTRYP GPPUSHATTRIB)(GLbitfield mask); -// typedef void (APIENTRYP GPPUSHCLIENTATTRIB)(GLbitfield mask); -// typedef void (APIENTRYP GPPUSHCLIENTATTRIBDEFAULTEXT)(GLbitfield mask); -// typedef void (APIENTRYP GPPUSHDEBUGGROUP)(GLenum source, GLuint id, GLsizei length, const GLchar * message); -// typedef void (APIENTRYP GPPUSHDEBUGGROUPKHR)(GLenum source, GLuint id, GLsizei length, const GLchar * message); -// typedef void (APIENTRYP GPPUSHGROUPMARKEREXT)(GLsizei length, const GLchar * marker); -// typedef void (APIENTRYP GPPUSHMATRIX)(); -// typedef void (APIENTRYP GPPUSHNAME)(GLuint name); -// typedef void (APIENTRYP GPQUERYCOUNTER)(GLuint id, GLenum target); -// typedef GLbitfield (APIENTRYP GPQUERYMATRIXXOES)(GLfixed * mantissa, GLint * exponent); -// typedef void (APIENTRYP GPQUERYOBJECTPARAMETERUIAMD)(GLenum target, GLuint id, GLenum pname, GLuint param); -// typedef void (APIENTRYP GPRASTERPOS2D)(GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPRASTERPOS2DV)(const GLdouble * v); -// typedef void (APIENTRYP GPRASTERPOS2F)(GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPRASTERPOS2FV)(const GLfloat * v); -// typedef void (APIENTRYP GPRASTERPOS2I)(GLint x, GLint y); -// typedef void (APIENTRYP GPRASTERPOS2IV)(const GLint * v); -// typedef void (APIENTRYP GPRASTERPOS2S)(GLshort x, GLshort y); -// typedef void (APIENTRYP GPRASTERPOS2SV)(const GLshort * v); -// typedef void (APIENTRYP GPRASTERPOS2XOES)(GLfixed x, GLfixed y); -// typedef void (APIENTRYP GPRASTERPOS2XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPRASTERPOS3D)(GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPRASTERPOS3DV)(const GLdouble * v); -// typedef void (APIENTRYP GPRASTERPOS3F)(GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPRASTERPOS3FV)(const GLfloat * v); -// typedef void (APIENTRYP GPRASTERPOS3I)(GLint x, GLint y, GLint z); -// typedef void (APIENTRYP GPRASTERPOS3IV)(const GLint * v); -// typedef void (APIENTRYP GPRASTERPOS3S)(GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPRASTERPOS3SV)(const GLshort * v); -// typedef void (APIENTRYP GPRASTERPOS3XOES)(GLfixed x, GLfixed y, GLfixed z); -// typedef void (APIENTRYP GPRASTERPOS3XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPRASTERPOS4D)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPRASTERPOS4DV)(const GLdouble * v); -// typedef void (APIENTRYP GPRASTERPOS4F)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPRASTERPOS4FV)(const GLfloat * v); -// typedef void (APIENTRYP GPRASTERPOS4I)(GLint x, GLint y, GLint z, GLint w); -// typedef void (APIENTRYP GPRASTERPOS4IV)(const GLint * v); -// typedef void (APIENTRYP GPRASTERPOS4S)(GLshort x, GLshort y, GLshort z, GLshort w); -// typedef void (APIENTRYP GPRASTERPOS4SV)(const GLshort * v); -// typedef void (APIENTRYP GPRASTERPOS4XOES)(GLfixed x, GLfixed y, GLfixed z, GLfixed w); -// typedef void (APIENTRYP GPRASTERPOS4XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPREADBUFFER)(GLenum src); -// typedef void (APIENTRYP GPREADINSTRUMENTSSGIX)(GLint marker); -// typedef void (APIENTRYP GPREADPIXELS)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void * pixels); -// typedef void (APIENTRYP GPREADNPIXELS)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data); -// typedef void (APIENTRYP GPREADNPIXELSARB)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data); -// typedef void (APIENTRYP GPREADNPIXELSKHR)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data); -// typedef void (APIENTRYP GPRECTD)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); -// typedef void (APIENTRYP GPRECTDV)(const GLdouble * v1, const GLdouble * v2); -// typedef void (APIENTRYP GPRECTF)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); -// typedef void (APIENTRYP GPRECTFV)(const GLfloat * v1, const GLfloat * v2); -// typedef void (APIENTRYP GPRECTI)(GLint x1, GLint y1, GLint x2, GLint y2); -// typedef void (APIENTRYP GPRECTIV)(const GLint * v1, const GLint * v2); -// typedef void (APIENTRYP GPRECTS)(GLshort x1, GLshort y1, GLshort x2, GLshort y2); -// typedef void (APIENTRYP GPRECTSV)(const GLshort * v1, const GLshort * v2); -// typedef void (APIENTRYP GPRECTXOES)(GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2); -// typedef void (APIENTRYP GPRECTXVOES)(const GLfixed * v1, const GLfixed * v2); -// typedef void (APIENTRYP GPREFERENCEPLANESGIX)(const GLdouble * equation); -// typedef void (APIENTRYP GPRELEASESHADERCOMPILER)(); -// typedef GLint (APIENTRYP GPRENDERMODE)(GLenum mode); -// typedef void (APIENTRYP GPRENDERBUFFERSTORAGE)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPRENDERBUFFERSTORAGEEXT)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPRENDERBUFFERSTORAGEMULTISAMPLE)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENV)(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPRENDERBUFFERSTORAGEMULTISAMPLEEXT)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPREPLACEMENTCODEPOINTERSUN)(GLenum type, GLsizei stride, const void ** pointer); -// typedef void (APIENTRYP GPREPLACEMENTCODEUBSUN)(GLubyte code); -// typedef void (APIENTRYP GPREPLACEMENTCODEUBVSUN)(const GLubyte * code); -// typedef void (APIENTRYP GPREPLACEMENTCODEUICOLOR3FVERTEX3FSUN)(GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPREPLACEMENTCODEUICOLOR3FVERTEX3FVSUN)(const GLuint * rc, const GLfloat * c, const GLfloat * v); -// typedef void (APIENTRYP GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUN)(GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUN)(const GLuint * rc, const GLfloat * c, const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPREPLACEMENTCODEUICOLOR4UBVERTEX3FSUN)(GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUN)(const GLuint * rc, const GLubyte * c, const GLfloat * v); -// typedef void (APIENTRYP GPREPLACEMENTCODEUINORMAL3FVERTEX3FSUN)(GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPREPLACEMENTCODEUINORMAL3FVERTEX3FVSUN)(const GLuint * rc, const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPREPLACEMENTCODEUISUN)(GLuint code); -// typedef void (APIENTRYP GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN)(GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN)(const GLuint * rc, const GLfloat * tc, const GLfloat * c, const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUN)(GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUN)(const GLuint * rc, const GLfloat * tc, const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUN)(GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUN)(const GLuint * rc, const GLfloat * tc, const GLfloat * v); -// typedef void (APIENTRYP GPREPLACEMENTCODEUIVERTEX3FSUN)(GLuint rc, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPREPLACEMENTCODEUIVERTEX3FVSUN)(const GLuint * rc, const GLfloat * v); -// typedef void (APIENTRYP GPREPLACEMENTCODEUIVSUN)(const GLuint * code); -// typedef void (APIENTRYP GPREPLACEMENTCODEUSSUN)(GLushort code); -// typedef void (APIENTRYP GPREPLACEMENTCODEUSVSUN)(const GLushort * code); -// typedef void (APIENTRYP GPREQUESTRESIDENTPROGRAMSNV)(GLsizei n, const GLuint * programs); -// typedef void (APIENTRYP GPRESETHISTOGRAMEXT)(GLenum target); -// typedef void (APIENTRYP GPRESETMINMAXEXT)(GLenum target); -// typedef void (APIENTRYP GPRESIZEBUFFERSMESA)(); -// typedef void (APIENTRYP GPRESUMETRANSFORMFEEDBACK)(); -// typedef void (APIENTRYP GPRESUMETRANSFORMFEEDBACKNV)(); -// typedef void (APIENTRYP GPROTATED)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPROTATEF)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPROTATEXOES)(GLfixed angle, GLfixed x, GLfixed y, GLfixed z); -// typedef void (APIENTRYP GPSAMPLECOVERAGE)(GLfloat value, GLboolean invert); -// typedef void (APIENTRYP GPSAMPLECOVERAGEARB)(GLfloat value, GLboolean invert); -// typedef void (APIENTRYP GPSAMPLECOVERAGEOES)(GLfixed value, GLboolean invert); -// typedef void (APIENTRYP GPSAMPLECOVERAGEXOES)(GLclampx value, GLboolean invert); -// typedef void (APIENTRYP GPSAMPLEMAPATI)(GLuint dst, GLuint interp, GLenum swizzle); -// typedef void (APIENTRYP GPSAMPLEMASKEXT)(GLclampf value, GLboolean invert); -// typedef void (APIENTRYP GPSAMPLEMASKINDEXEDNV)(GLuint index, GLbitfield mask); -// typedef void (APIENTRYP GPSAMPLEMASKSGIS)(GLclampf value, GLboolean invert); -// typedef void (APIENTRYP GPSAMPLEMASKI)(GLuint maskNumber, GLbitfield mask); -// typedef void (APIENTRYP GPSAMPLEPATTERNEXT)(GLenum pattern); -// typedef void (APIENTRYP GPSAMPLEPATTERNSGIS)(GLenum pattern); -// typedef void (APIENTRYP GPSAMPLERPARAMETERIIV)(GLuint sampler, GLenum pname, const GLint * param); -// typedef void (APIENTRYP GPSAMPLERPARAMETERIUIV)(GLuint sampler, GLenum pname, const GLuint * param); -// typedef void (APIENTRYP GPSAMPLERPARAMETERF)(GLuint sampler, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPSAMPLERPARAMETERFV)(GLuint sampler, GLenum pname, const GLfloat * param); -// typedef void (APIENTRYP GPSAMPLERPARAMETERI)(GLuint sampler, GLenum pname, GLint param); -// typedef void (APIENTRYP GPSAMPLERPARAMETERIV)(GLuint sampler, GLenum pname, const GLint * param); -// typedef void (APIENTRYP GPSCALED)(GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPSCALEF)(GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPSCALEXOES)(GLfixed x, GLfixed y, GLfixed z); -// typedef void (APIENTRYP GPSCISSOR)(GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPSCISSORARRAYV)(GLuint first, GLsizei count, const GLint * v); -// typedef void (APIENTRYP GPSCISSORINDEXED)(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPSCISSORINDEXEDV)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3B)(GLbyte red, GLbyte green, GLbyte blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3BEXT)(GLbyte red, GLbyte green, GLbyte blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3BV)(const GLbyte * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3BVEXT)(const GLbyte * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3D)(GLdouble red, GLdouble green, GLdouble blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3DEXT)(GLdouble red, GLdouble green, GLdouble blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3DV)(const GLdouble * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3DVEXT)(const GLdouble * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3F)(GLfloat red, GLfloat green, GLfloat blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3FEXT)(GLfloat red, GLfloat green, GLfloat blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3FV)(const GLfloat * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3FVEXT)(const GLfloat * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3HNV)(GLhalfNV red, GLhalfNV green, GLhalfNV blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3I)(GLint red, GLint green, GLint blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3IEXT)(GLint red, GLint green, GLint blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3IV)(const GLint * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3IVEXT)(const GLint * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3S)(GLshort red, GLshort green, GLshort blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3SEXT)(GLshort red, GLshort green, GLshort blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3SV)(const GLshort * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3SVEXT)(const GLshort * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3UB)(GLubyte red, GLubyte green, GLubyte blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3UBEXT)(GLubyte red, GLubyte green, GLubyte blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3UBV)(const GLubyte * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3UBVEXT)(const GLubyte * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3UI)(GLuint red, GLuint green, GLuint blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3UIEXT)(GLuint red, GLuint green, GLuint blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3UIV)(const GLuint * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3UIVEXT)(const GLuint * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3US)(GLushort red, GLushort green, GLushort blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3USEXT)(GLushort red, GLushort green, GLushort blue); -// typedef void (APIENTRYP GPSECONDARYCOLOR3USV)(const GLushort * v); -// typedef void (APIENTRYP GPSECONDARYCOLOR3USVEXT)(const GLushort * v); -// typedef void (APIENTRYP GPSECONDARYCOLORFORMATNV)(GLint size, GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPSECONDARYCOLORPOINTER)(GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPSECONDARYCOLORPOINTEREXT)(GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPSECONDARYCOLORPOINTERLISTIBM)(GLint size, GLenum type, GLint stride, const void ** pointer, GLint ptrstride); -// typedef void (APIENTRYP GPSELECTBUFFER)(GLsizei size, GLuint * buffer); -// typedef void (APIENTRYP GPSELECTPERFMONITORCOUNTERSAMD)(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint * counterList); -// typedef void (APIENTRYP GPSEPARABLEFILTER2DEXT)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * row, const void * column); -// typedef void (APIENTRYP GPSETFENCEAPPLE)(GLuint fence); -// typedef void (APIENTRYP GPSETFENCENV)(GLuint fence, GLenum condition); -// typedef void (APIENTRYP GPSETFRAGMENTSHADERCONSTANTATI)(GLuint dst, const GLfloat * value); -// typedef void (APIENTRYP GPSETINVARIANTEXT)(GLuint id, GLenum type, const void * addr); -// typedef void (APIENTRYP GPSETLOCALCONSTANTEXT)(GLuint id, GLenum type, const void * addr); -// typedef void (APIENTRYP GPSETMULTISAMPLEFVAMD)(GLenum pname, GLuint index, const GLfloat * val); -// typedef void (APIENTRYP GPSHADEMODEL)(GLenum mode); -// typedef void (APIENTRYP GPSHADERBINARY)(GLsizei count, const GLuint * shaders, GLenum binaryformat, const void * binary, GLsizei length); -// typedef void (APIENTRYP GPSHADEROP1EXT)(GLenum op, GLuint res, GLuint arg1); -// typedef void (APIENTRYP GPSHADEROP2EXT)(GLenum op, GLuint res, GLuint arg1, GLuint arg2); -// typedef void (APIENTRYP GPSHADEROP3EXT)(GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); -// typedef void (APIENTRYP GPSHADERSOURCE)(GLuint shader, GLsizei count, const GLchar *const* string, const GLint * length); -// typedef void (APIENTRYP GPSHADERSOURCEARB)(GLhandleARB shaderObj, GLsizei count, const GLcharARB ** string, const GLint * length); -// typedef void (APIENTRYP GPSHADERSTORAGEBLOCKBINDING)(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); -// typedef void (APIENTRYP GPSHARPENTEXFUNCSGIS)(GLenum target, GLsizei n, const GLfloat * points); -// typedef void (APIENTRYP GPSPRITEPARAMETERFSGIX)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPSPRITEPARAMETERFVSGIX)(GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPSPRITEPARAMETERISGIX)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPSPRITEPARAMETERIVSGIX)(GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPSTARTINSTRUMENTSSGIX)(); -// typedef void (APIENTRYP GPSTENCILCLEARTAGEXT)(GLsizei stencilTagBits, GLuint stencilClearTag); -// typedef void (APIENTRYP GPSTENCILFILLPATHINSTANCEDNV)(GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat * transformValues); -// typedef void (APIENTRYP GPSTENCILFILLPATHNV)(GLuint path, GLenum fillMode, GLuint mask); -// typedef void (APIENTRYP GPSTENCILFUNC)(GLenum func, GLint ref, GLuint mask); -// typedef void (APIENTRYP GPSTENCILFUNCSEPARATE)(GLenum face, GLenum func, GLint ref, GLuint mask); -// typedef void (APIENTRYP GPSTENCILFUNCSEPARATEATI)(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); -// typedef void (APIENTRYP GPSTENCILMASK)(GLuint mask); -// typedef void (APIENTRYP GPSTENCILMASKSEPARATE)(GLenum face, GLuint mask); -// typedef void (APIENTRYP GPSTENCILOP)(GLenum fail, GLenum zfail, GLenum zpass); -// typedef void (APIENTRYP GPSTENCILOPSEPARATE)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -// typedef void (APIENTRYP GPSTENCILOPSEPARATEATI)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -// typedef void (APIENTRYP GPSTENCILOPVALUEAMD)(GLenum face, GLuint value); -// typedef void (APIENTRYP GPSTENCILSTROKEPATHINSTANCEDNV)(GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat * transformValues); -// typedef void (APIENTRYP GPSTENCILSTROKEPATHNV)(GLuint path, GLint reference, GLuint mask); -// typedef void (APIENTRYP GPSTENCILTHENCOVERFILLPATHINSTANCEDNV)(GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat * transformValues); -// typedef void (APIENTRYP GPSTENCILTHENCOVERFILLPATHNV)(GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); -// typedef void (APIENTRYP GPSTENCILTHENCOVERSTROKEPATHINSTANCEDNV)(GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat * transformValues); -// typedef void (APIENTRYP GPSTENCILTHENCOVERSTROKEPATHNV)(GLuint path, GLint reference, GLuint mask, GLenum coverMode); -// typedef void (APIENTRYP GPSTOPINSTRUMENTSSGIX)(GLint marker); -// typedef void (APIENTRYP GPSTRINGMARKERGREMEDY)(GLsizei len, const void * string); -// typedef void (APIENTRYP GPSWIZZLEEXT)(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -// typedef void (APIENTRYP GPSYNCTEXTUREINTEL)(GLuint texture); -// typedef void (APIENTRYP GPTAGSAMPLEBUFFERSGIX)(); -// typedef void (APIENTRYP GPTANGENT3BEXT)(GLbyte tx, GLbyte ty, GLbyte tz); -// typedef void (APIENTRYP GPTANGENT3BVEXT)(const GLbyte * v); -// typedef void (APIENTRYP GPTANGENT3DEXT)(GLdouble tx, GLdouble ty, GLdouble tz); -// typedef void (APIENTRYP GPTANGENT3DVEXT)(const GLdouble * v); -// typedef void (APIENTRYP GPTANGENT3FEXT)(GLfloat tx, GLfloat ty, GLfloat tz); -// typedef void (APIENTRYP GPTANGENT3FVEXT)(const GLfloat * v); -// typedef void (APIENTRYP GPTANGENT3IEXT)(GLint tx, GLint ty, GLint tz); -// typedef void (APIENTRYP GPTANGENT3IVEXT)(const GLint * v); -// typedef void (APIENTRYP GPTANGENT3SEXT)(GLshort tx, GLshort ty, GLshort tz); -// typedef void (APIENTRYP GPTANGENT3SVEXT)(const GLshort * v); -// typedef void (APIENTRYP GPTANGENTPOINTEREXT)(GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPTBUFFERMASK3DFX)(GLuint mask); -// typedef void (APIENTRYP GPTESSELLATIONFACTORAMD)(GLfloat factor); -// typedef void (APIENTRYP GPTESSELLATIONMODEAMD)(GLenum mode); -// typedef GLboolean (APIENTRYP GPTESTFENCEAPPLE)(GLuint fence); -// typedef GLboolean (APIENTRYP GPTESTFENCENV)(GLuint fence); -// typedef GLboolean (APIENTRYP GPTESTOBJECTAPPLE)(GLenum object, GLuint name); -// typedef void (APIENTRYP GPTEXBUFFERARB)(GLenum target, GLenum internalformat, GLuint buffer); -// typedef void (APIENTRYP GPTEXBUFFEREXT)(GLenum target, GLenum internalformat, GLuint buffer); -// typedef void (APIENTRYP GPTEXBUFFERRANGE)(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -// typedef void (APIENTRYP GPTEXBUMPPARAMETERFVATI)(GLenum pname, const GLfloat * param); -// typedef void (APIENTRYP GPTEXBUMPPARAMETERIVATI)(GLenum pname, const GLint * param); -// typedef void (APIENTRYP GPTEXCOORD1BOES)(GLbyte s); -// typedef void (APIENTRYP GPTEXCOORD1BVOES)(const GLbyte * coords); -// typedef void (APIENTRYP GPTEXCOORD1D)(GLdouble s); -// typedef void (APIENTRYP GPTEXCOORD1DV)(const GLdouble * v); -// typedef void (APIENTRYP GPTEXCOORD1F)(GLfloat s); -// typedef void (APIENTRYP GPTEXCOORD1FV)(const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD1HNV)(GLhalfNV s); -// typedef void (APIENTRYP GPTEXCOORD1HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPTEXCOORD1I)(GLint s); -// typedef void (APIENTRYP GPTEXCOORD1IV)(const GLint * v); -// typedef void (APIENTRYP GPTEXCOORD1S)(GLshort s); -// typedef void (APIENTRYP GPTEXCOORD1SV)(const GLshort * v); -// typedef void (APIENTRYP GPTEXCOORD1XOES)(GLfixed s); -// typedef void (APIENTRYP GPTEXCOORD1XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPTEXCOORD2BOES)(GLbyte s, GLbyte t); -// typedef void (APIENTRYP GPTEXCOORD2BVOES)(const GLbyte * coords); -// typedef void (APIENTRYP GPTEXCOORD2D)(GLdouble s, GLdouble t); -// typedef void (APIENTRYP GPTEXCOORD2DV)(const GLdouble * v); -// typedef void (APIENTRYP GPTEXCOORD2F)(GLfloat s, GLfloat t); -// typedef void (APIENTRYP GPTEXCOORD2FCOLOR3FVERTEX3FSUN)(GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPTEXCOORD2FCOLOR3FVERTEX3FVSUN)(const GLfloat * tc, const GLfloat * c, const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN)(GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN)(const GLfloat * tc, const GLfloat * c, const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD2FCOLOR4UBVERTEX3FSUN)(GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPTEXCOORD2FCOLOR4UBVERTEX3FVSUN)(const GLfloat * tc, const GLubyte * c, const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD2FNORMAL3FVERTEX3FSUN)(GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPTEXCOORD2FNORMAL3FVERTEX3FVSUN)(const GLfloat * tc, const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD2FVERTEX3FSUN)(GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPTEXCOORD2FVERTEX3FVSUN)(const GLfloat * tc, const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD2FV)(const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD2HNV)(GLhalfNV s, GLhalfNV t); -// typedef void (APIENTRYP GPTEXCOORD2HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPTEXCOORD2I)(GLint s, GLint t); -// typedef void (APIENTRYP GPTEXCOORD2IV)(const GLint * v); -// typedef void (APIENTRYP GPTEXCOORD2S)(GLshort s, GLshort t); -// typedef void (APIENTRYP GPTEXCOORD2SV)(const GLshort * v); -// typedef void (APIENTRYP GPTEXCOORD2XOES)(GLfixed s, GLfixed t); -// typedef void (APIENTRYP GPTEXCOORD2XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPTEXCOORD3BOES)(GLbyte s, GLbyte t, GLbyte r); -// typedef void (APIENTRYP GPTEXCOORD3BVOES)(const GLbyte * coords); -// typedef void (APIENTRYP GPTEXCOORD3D)(GLdouble s, GLdouble t, GLdouble r); -// typedef void (APIENTRYP GPTEXCOORD3DV)(const GLdouble * v); -// typedef void (APIENTRYP GPTEXCOORD3F)(GLfloat s, GLfloat t, GLfloat r); -// typedef void (APIENTRYP GPTEXCOORD3FV)(const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD3HNV)(GLhalfNV s, GLhalfNV t, GLhalfNV r); -// typedef void (APIENTRYP GPTEXCOORD3HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPTEXCOORD3I)(GLint s, GLint t, GLint r); -// typedef void (APIENTRYP GPTEXCOORD3IV)(const GLint * v); -// typedef void (APIENTRYP GPTEXCOORD3S)(GLshort s, GLshort t, GLshort r); -// typedef void (APIENTRYP GPTEXCOORD3SV)(const GLshort * v); -// typedef void (APIENTRYP GPTEXCOORD3XOES)(GLfixed s, GLfixed t, GLfixed r); -// typedef void (APIENTRYP GPTEXCOORD3XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPTEXCOORD4BOES)(GLbyte s, GLbyte t, GLbyte r, GLbyte q); -// typedef void (APIENTRYP GPTEXCOORD4BVOES)(const GLbyte * coords); -// typedef void (APIENTRYP GPTEXCOORD4D)(GLdouble s, GLdouble t, GLdouble r, GLdouble q); -// typedef void (APIENTRYP GPTEXCOORD4DV)(const GLdouble * v); -// typedef void (APIENTRYP GPTEXCOORD4F)(GLfloat s, GLfloat t, GLfloat r, GLfloat q); -// typedef void (APIENTRYP GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUN)(GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUN)(const GLfloat * tc, const GLfloat * c, const GLfloat * n, const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD4FVERTEX4FSUN)(GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPTEXCOORD4FVERTEX4FVSUN)(const GLfloat * tc, const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD4FV)(const GLfloat * v); -// typedef void (APIENTRYP GPTEXCOORD4HNV)(GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -// typedef void (APIENTRYP GPTEXCOORD4HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPTEXCOORD4I)(GLint s, GLint t, GLint r, GLint q); -// typedef void (APIENTRYP GPTEXCOORD4IV)(const GLint * v); -// typedef void (APIENTRYP GPTEXCOORD4S)(GLshort s, GLshort t, GLshort r, GLshort q); -// typedef void (APIENTRYP GPTEXCOORD4SV)(const GLshort * v); -// typedef void (APIENTRYP GPTEXCOORD4XOES)(GLfixed s, GLfixed t, GLfixed r, GLfixed q); -// typedef void (APIENTRYP GPTEXCOORD4XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPTEXCOORDFORMATNV)(GLint size, GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPTEXCOORDPOINTER)(GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPTEXCOORDPOINTEREXT)(GLint size, GLenum type, GLsizei stride, GLsizei count, const void * pointer); -// typedef void (APIENTRYP GPTEXCOORDPOINTERLISTIBM)(GLint size, GLenum type, GLint stride, const void ** pointer, GLint ptrstride); -// typedef void (APIENTRYP GPTEXCOORDPOINTERVINTEL)(GLint size, GLenum type, const void ** pointer); -// typedef void (APIENTRYP GPTEXENVF)(GLenum target, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPTEXENVFV)(GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPTEXENVI)(GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPTEXENVIV)(GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPTEXENVXOES)(GLenum target, GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPTEXENVXVOES)(GLenum target, GLenum pname, const GLfixed * params); -// typedef void (APIENTRYP GPTEXFILTERFUNCSGIS)(GLenum target, GLenum filter, GLsizei n, const GLfloat * weights); -// typedef void (APIENTRYP GPTEXGEND)(GLenum coord, GLenum pname, GLdouble param); -// typedef void (APIENTRYP GPTEXGENDV)(GLenum coord, GLenum pname, const GLdouble * params); -// typedef void (APIENTRYP GPTEXGENF)(GLenum coord, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPTEXGENFV)(GLenum coord, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPTEXGENI)(GLenum coord, GLenum pname, GLint param); -// typedef void (APIENTRYP GPTEXGENIV)(GLenum coord, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPTEXGENXOES)(GLenum coord, GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPTEXGENXVOES)(GLenum coord, GLenum pname, const GLfixed * params); -// typedef void (APIENTRYP GPTEXIMAGE1D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXIMAGE2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXIMAGE2DMULTISAMPLE)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -// typedef void (APIENTRYP GPTEXIMAGE2DMULTISAMPLECOVERAGENV)(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -// typedef void (APIENTRYP GPTEXIMAGE3D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXIMAGE3DEXT)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXIMAGE3DMULTISAMPLE)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -// typedef void (APIENTRYP GPTEXIMAGE3DMULTISAMPLECOVERAGENV)(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -// typedef void (APIENTRYP GPTEXIMAGE4DSGIS)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXPAGECOMMITMENTARB)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident); -// typedef void (APIENTRYP GPTEXPARAMETERIIVEXT)(GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPTEXPARAMETERIUIVEXT)(GLenum target, GLenum pname, const GLuint * params); -// typedef void (APIENTRYP GPTEXPARAMETERF)(GLenum target, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPTEXPARAMETERFV)(GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPTEXPARAMETERI)(GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPTEXPARAMETERIV)(GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPTEXPARAMETERXOES)(GLenum target, GLenum pname, GLfixed param); -// typedef void (APIENTRYP GPTEXPARAMETERXVOES)(GLenum target, GLenum pname, const GLfixed * params); -// typedef void (APIENTRYP GPTEXRENDERBUFFERNV)(GLenum target, GLuint renderbuffer); -// typedef void (APIENTRYP GPTEXSTORAGE1D)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -// typedef void (APIENTRYP GPTEXSTORAGE2D)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPTEXSTORAGE2DMULTISAMPLE)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -// typedef void (APIENTRYP GPTEXSTORAGE3D)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -// typedef void (APIENTRYP GPTEXSTORAGE3DMULTISAMPLE)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -// typedef void (APIENTRYP GPTEXSTORAGESPARSEAMD)(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); -// typedef void (APIENTRYP GPTEXSUBIMAGE1D)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXSUBIMAGE1DEXT)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXSUBIMAGE2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXSUBIMAGE2DEXT)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXSUBIMAGE3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXSUBIMAGE3DEXT)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXSUBIMAGE4DSGIS)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTUREBARRIER)(); -// typedef void (APIENTRYP GPTEXTUREBARRIERNV)(); -// typedef void (APIENTRYP GPTEXTUREBUFFER)(GLuint texture, GLenum internalformat, GLuint buffer); -// typedef void (APIENTRYP GPTEXTUREBUFFEREXT)(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); -// typedef void (APIENTRYP GPTEXTUREBUFFERRANGE)(GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizei size); -// typedef void (APIENTRYP GPTEXTUREBUFFERRANGEEXT)(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -// typedef void (APIENTRYP GPTEXTURECOLORMASKSGIS)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -// typedef void (APIENTRYP GPTEXTUREIMAGE1DEXT)(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTUREIMAGE2DEXT)(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTUREIMAGE2DMULTISAMPLECOVERAGENV)(GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -// typedef void (APIENTRYP GPTEXTUREIMAGE2DMULTISAMPLENV)(GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -// typedef void (APIENTRYP GPTEXTUREIMAGE3DEXT)(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTUREIMAGE3DMULTISAMPLECOVERAGENV)(GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -// typedef void (APIENTRYP GPTEXTUREIMAGE3DMULTISAMPLENV)(GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -// typedef void (APIENTRYP GPTEXTURELIGHTEXT)(GLenum pname); -// typedef void (APIENTRYP GPTEXTUREMATERIALEXT)(GLenum face, GLenum mode); -// typedef void (APIENTRYP GPTEXTURENORMALEXT)(GLenum mode); -// typedef void (APIENTRYP GPTEXTUREPAGECOMMITMENTEXT)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident); -// typedef void (APIENTRYP GPTEXTUREPARAMETERIIV)(GLuint texture, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPTEXTUREPARAMETERIIVEXT)(GLuint texture, GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPTEXTUREPARAMETERIUIV)(GLuint texture, GLenum pname, const GLuint * params); -// typedef void (APIENTRYP GPTEXTUREPARAMETERIUIVEXT)(GLuint texture, GLenum target, GLenum pname, const GLuint * params); -// typedef void (APIENTRYP GPTEXTUREPARAMETERF)(GLuint texture, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPTEXTUREPARAMETERFEXT)(GLuint texture, GLenum target, GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPTEXTUREPARAMETERFV)(GLuint texture, GLenum pname, const GLfloat * param); -// typedef void (APIENTRYP GPTEXTUREPARAMETERFVEXT)(GLuint texture, GLenum target, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPTEXTUREPARAMETERI)(GLuint texture, GLenum pname, GLint param); -// typedef void (APIENTRYP GPTEXTUREPARAMETERIEXT)(GLuint texture, GLenum target, GLenum pname, GLint param); -// typedef void (APIENTRYP GPTEXTUREPARAMETERIV)(GLuint texture, GLenum pname, const GLint * param); -// typedef void (APIENTRYP GPTEXTUREPARAMETERIVEXT)(GLuint texture, GLenum target, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPTEXTURERANGEAPPLE)(GLenum target, GLsizei length, const void * pointer); -// typedef void (APIENTRYP GPTEXTURERENDERBUFFEREXT)(GLuint texture, GLenum target, GLuint renderbuffer); -// typedef void (APIENTRYP GPTEXTURESTORAGE1D)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); -// typedef void (APIENTRYP GPTEXTURESTORAGE1DEXT)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -// typedef void (APIENTRYP GPTEXTURESTORAGE2D)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPTEXTURESTORAGE2DEXT)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPTEXTURESTORAGE2DMULTISAMPLE)(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -// typedef void (APIENTRYP GPTEXTURESTORAGE2DMULTISAMPLEEXT)(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -// typedef void (APIENTRYP GPTEXTURESTORAGE3D)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -// typedef void (APIENTRYP GPTEXTURESTORAGE3DEXT)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -// typedef void (APIENTRYP GPTEXTURESTORAGE3DMULTISAMPLE)(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -// typedef void (APIENTRYP GPTEXTURESTORAGE3DMULTISAMPLEEXT)(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -// typedef void (APIENTRYP GPTEXTURESTORAGESPARSEAMD)(GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); -// typedef void (APIENTRYP GPTEXTURESUBIMAGE1D)(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTURESUBIMAGE1DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTURESUBIMAGE2D)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTURESUBIMAGE2DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTURESUBIMAGE3D)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTURESUBIMAGE3DEXT)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels); -// typedef void (APIENTRYP GPTEXTUREVIEW)(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); -// typedef void (APIENTRYP GPTRACKMATRIXNV)(GLenum target, GLuint address, GLenum matrix, GLenum transform); -// typedef void (APIENTRYP GPTRANSFORMFEEDBACKATTRIBSNV)(GLsizei count, const GLint * attribs, GLenum bufferMode); -// typedef void (APIENTRYP GPTRANSFORMFEEDBACKBUFFERBASE)(GLuint xfb, GLuint index, GLuint buffer); -// typedef void (APIENTRYP GPTRANSFORMFEEDBACKBUFFERRANGE)(GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizei size); -// typedef void (APIENTRYP GPTRANSFORMFEEDBACKSTREAMATTRIBSNV)(GLsizei count, const GLint * attribs, GLsizei nbuffers, const GLint * bufstreams, GLenum bufferMode); -// typedef void (APIENTRYP GPTRANSFORMFEEDBACKVARYINGSEXT)(GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode); -// typedef void (APIENTRYP GPTRANSFORMFEEDBACKVARYINGSNV)(GLuint program, GLsizei count, const GLint * locations, GLenum bufferMode); -// typedef void (APIENTRYP GPTRANSFORMPATHNV)(GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat * transformValues); -// typedef void (APIENTRYP GPTRANSLATED)(GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPTRANSLATEF)(GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPTRANSLATEXOES)(GLfixed x, GLfixed y, GLfixed z); -// typedef void (APIENTRYP GPUNIFORM1D)(GLint location, GLdouble x); -// typedef void (APIENTRYP GPUNIFORM1DV)(GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORM1F)(GLint location, GLfloat v0); -// typedef void (APIENTRYP GPUNIFORM1FARB)(GLint location, GLfloat v0); -// typedef void (APIENTRYP GPUNIFORM1FV)(GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORM1FVARB)(GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORM1I)(GLint location, GLint v0); -// typedef void (APIENTRYP GPUNIFORM1I64NV)(GLint location, GLint64EXT x); -// typedef void (APIENTRYP GPUNIFORM1I64VNV)(GLint location, GLsizei count, const GLint64EXT * value); -// typedef void (APIENTRYP GPUNIFORM1IARB)(GLint location, GLint v0); -// typedef void (APIENTRYP GPUNIFORM1IV)(GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPUNIFORM1IVARB)(GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPUNIFORM1UI64NV)(GLint location, GLuint64EXT x); -// typedef void (APIENTRYP GPUNIFORM1UI64VNV)(GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPUNIFORM1UIEXT)(GLint location, GLuint v0); -// typedef void (APIENTRYP GPUNIFORM1UIVEXT)(GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPUNIFORM2D)(GLint location, GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPUNIFORM2DV)(GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORM2F)(GLint location, GLfloat v0, GLfloat v1); -// typedef void (APIENTRYP GPUNIFORM2FARB)(GLint location, GLfloat v0, GLfloat v1); -// typedef void (APIENTRYP GPUNIFORM2FV)(GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORM2FVARB)(GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORM2I)(GLint location, GLint v0, GLint v1); -// typedef void (APIENTRYP GPUNIFORM2I64NV)(GLint location, GLint64EXT x, GLint64EXT y); -// typedef void (APIENTRYP GPUNIFORM2I64VNV)(GLint location, GLsizei count, const GLint64EXT * value); -// typedef void (APIENTRYP GPUNIFORM2IARB)(GLint location, GLint v0, GLint v1); -// typedef void (APIENTRYP GPUNIFORM2IV)(GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPUNIFORM2IVARB)(GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPUNIFORM2UI64NV)(GLint location, GLuint64EXT x, GLuint64EXT y); -// typedef void (APIENTRYP GPUNIFORM2UI64VNV)(GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPUNIFORM2UIEXT)(GLint location, GLuint v0, GLuint v1); -// typedef void (APIENTRYP GPUNIFORM2UIVEXT)(GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPUNIFORM3D)(GLint location, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPUNIFORM3DV)(GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORM3F)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -// typedef void (APIENTRYP GPUNIFORM3FARB)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -// typedef void (APIENTRYP GPUNIFORM3FV)(GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORM3FVARB)(GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORM3I)(GLint location, GLint v0, GLint v1, GLint v2); -// typedef void (APIENTRYP GPUNIFORM3I64NV)(GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -// typedef void (APIENTRYP GPUNIFORM3I64VNV)(GLint location, GLsizei count, const GLint64EXT * value); -// typedef void (APIENTRYP GPUNIFORM3IARB)(GLint location, GLint v0, GLint v1, GLint v2); -// typedef void (APIENTRYP GPUNIFORM3IV)(GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPUNIFORM3IVARB)(GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPUNIFORM3UI64NV)(GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -// typedef void (APIENTRYP GPUNIFORM3UI64VNV)(GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPUNIFORM3UIEXT)(GLint location, GLuint v0, GLuint v1, GLuint v2); -// typedef void (APIENTRYP GPUNIFORM3UIVEXT)(GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPUNIFORM4D)(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPUNIFORM4DV)(GLint location, GLsizei count, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORM4F)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -// typedef void (APIENTRYP GPUNIFORM4FARB)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -// typedef void (APIENTRYP GPUNIFORM4FV)(GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORM4FVARB)(GLint location, GLsizei count, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORM4I)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -// typedef void (APIENTRYP GPUNIFORM4I64NV)(GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -// typedef void (APIENTRYP GPUNIFORM4I64VNV)(GLint location, GLsizei count, const GLint64EXT * value); -// typedef void (APIENTRYP GPUNIFORM4IARB)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -// typedef void (APIENTRYP GPUNIFORM4IV)(GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPUNIFORM4IVARB)(GLint location, GLsizei count, const GLint * value); -// typedef void (APIENTRYP GPUNIFORM4UI64NV)(GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -// typedef void (APIENTRYP GPUNIFORM4UI64VNV)(GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPUNIFORM4UIEXT)(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -// typedef void (APIENTRYP GPUNIFORM4UIVEXT)(GLint location, GLsizei count, const GLuint * value); -// typedef void (APIENTRYP GPUNIFORMBLOCKBINDING)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); -// typedef void (APIENTRYP GPUNIFORMBUFFEREXT)(GLuint program, GLint location, GLuint buffer); -// typedef void (APIENTRYP GPUNIFORMHANDLEUI64ARB)(GLint location, GLuint64 value); -// typedef void (APIENTRYP GPUNIFORMHANDLEUI64NV)(GLint location, GLuint64 value); -// typedef void (APIENTRYP GPUNIFORMHANDLEUI64VARB)(GLint location, GLsizei count, const GLuint64 * value); -// typedef void (APIENTRYP GPUNIFORMHANDLEUI64VNV)(GLint location, GLsizei count, const GLuint64 * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX2DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX2FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX2FVARB)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX2X3DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX2X3FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX2X4DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX2X4FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX3DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX3FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX3FVARB)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX3X2DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX3X2FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX3X4DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX3X4FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX4DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX4FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX4FVARB)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX4X2DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX4X2FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX4X3DV)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value); -// typedef void (APIENTRYP GPUNIFORMMATRIX4X3FV)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -// typedef void (APIENTRYP GPUNIFORMSUBROUTINESUIV)(GLenum shadertype, GLsizei count, const GLuint * indices); -// typedef void (APIENTRYP GPUNIFORMUI64NV)(GLint location, GLuint64EXT value); -// typedef void (APIENTRYP GPUNIFORMUI64VNV)(GLint location, GLsizei count, const GLuint64EXT * value); -// typedef void (APIENTRYP GPUNLOCKARRAYSEXT)(); -// typedef GLboolean (APIENTRYP GPUNMAPBUFFER)(GLenum target); -// typedef GLboolean (APIENTRYP GPUNMAPBUFFERARB)(GLenum target); -// typedef GLboolean (APIENTRYP GPUNMAPNAMEDBUFFER)(GLuint buffer); -// typedef GLboolean (APIENTRYP GPUNMAPNAMEDBUFFEREXT)(GLuint buffer); -// typedef void (APIENTRYP GPUNMAPOBJECTBUFFERATI)(GLuint buffer); -// typedef void (APIENTRYP GPUNMAPTEXTURE2DINTEL)(GLuint texture, GLint level); -// typedef void (APIENTRYP GPUPDATEOBJECTBUFFERATI)(GLuint buffer, GLuint offset, GLsizei size, const void * pointer, GLenum preserve); -// typedef void (APIENTRYP GPUSEPROGRAM)(GLuint program); -// typedef void (APIENTRYP GPUSEPROGRAMOBJECTARB)(GLhandleARB programObj); -// typedef void (APIENTRYP GPUSEPROGRAMSTAGES)(GLuint pipeline, GLbitfield stages, GLuint program); -// typedef void (APIENTRYP GPUSEPROGRAMSTAGESEXT)(GLuint pipeline, GLbitfield stages, GLuint program); -// typedef void (APIENTRYP GPUSESHADERPROGRAMEXT)(GLenum type, GLuint program); -// typedef void (APIENTRYP GPVDPAUFININV)(); -// typedef void (APIENTRYP GPVDPAUGETSURFACEIVNV)(GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values); -// typedef void (APIENTRYP GPVDPAUINITNV)(const void * vdpDevice, const void * getProcAddress); -// typedef GLboolean (APIENTRYP GPVDPAUISSURFACENV)(GLvdpauSurfaceNV surface); -// typedef void (APIENTRYP GPVDPAUMAPSURFACESNV)(GLsizei numSurfaces, const GLvdpauSurfaceNV * surfaces); -// typedef GLvdpauSurfaceNV (APIENTRYP GPVDPAUREGISTEROUTPUTSURFACENV)(const void * vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint * textureNames); -// typedef GLvdpauSurfaceNV (APIENTRYP GPVDPAUREGISTERVIDEOSURFACENV)(const void * vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint * textureNames); -// typedef void (APIENTRYP GPVDPAUSURFACEACCESSNV)(GLvdpauSurfaceNV surface, GLenum access); -// typedef void (APIENTRYP GPVDPAUUNMAPSURFACESNV)(GLsizei numSurface, const GLvdpauSurfaceNV * surfaces); -// typedef void (APIENTRYP GPVDPAUUNREGISTERSURFACENV)(GLvdpauSurfaceNV surface); -// typedef void (APIENTRYP GPVALIDATEPROGRAM)(GLuint program); -// typedef void (APIENTRYP GPVALIDATEPROGRAMARB)(GLhandleARB programObj); -// typedef void (APIENTRYP GPVALIDATEPROGRAMPIPELINE)(GLuint pipeline); -// typedef void (APIENTRYP GPVALIDATEPROGRAMPIPELINEEXT)(GLuint pipeline); -// typedef void (APIENTRYP GPVARIANTARRAYOBJECTATI)(GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -// typedef void (APIENTRYP GPVARIANTPOINTEREXT)(GLuint id, GLenum type, GLuint stride, const void * addr); -// typedef void (APIENTRYP GPVARIANTBVEXT)(GLuint id, const GLbyte * addr); -// typedef void (APIENTRYP GPVARIANTDVEXT)(GLuint id, const GLdouble * addr); -// typedef void (APIENTRYP GPVARIANTFVEXT)(GLuint id, const GLfloat * addr); -// typedef void (APIENTRYP GPVARIANTIVEXT)(GLuint id, const GLint * addr); -// typedef void (APIENTRYP GPVARIANTSVEXT)(GLuint id, const GLshort * addr); -// typedef void (APIENTRYP GPVARIANTUBVEXT)(GLuint id, const GLubyte * addr); -// typedef void (APIENTRYP GPVARIANTUIVEXT)(GLuint id, const GLuint * addr); -// typedef void (APIENTRYP GPVARIANTUSVEXT)(GLuint id, const GLushort * addr); -// typedef void (APIENTRYP GPVERTEX2BOES)(GLbyte x, GLbyte y); -// typedef void (APIENTRYP GPVERTEX2BVOES)(const GLbyte * coords); -// typedef void (APIENTRYP GPVERTEX2D)(GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPVERTEX2DV)(const GLdouble * v); -// typedef void (APIENTRYP GPVERTEX2F)(GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPVERTEX2FV)(const GLfloat * v); -// typedef void (APIENTRYP GPVERTEX2HNV)(GLhalfNV x, GLhalfNV y); -// typedef void (APIENTRYP GPVERTEX2HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEX2I)(GLint x, GLint y); -// typedef void (APIENTRYP GPVERTEX2IV)(const GLint * v); -// typedef void (APIENTRYP GPVERTEX2S)(GLshort x, GLshort y); -// typedef void (APIENTRYP GPVERTEX2SV)(const GLshort * v); -// typedef void (APIENTRYP GPVERTEX2XOES)(GLfixed x); -// typedef void (APIENTRYP GPVERTEX2XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPVERTEX3BOES)(GLbyte x, GLbyte y, GLbyte z); -// typedef void (APIENTRYP GPVERTEX3BVOES)(const GLbyte * coords); -// typedef void (APIENTRYP GPVERTEX3D)(GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPVERTEX3DV)(const GLdouble * v); -// typedef void (APIENTRYP GPVERTEX3F)(GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPVERTEX3FV)(const GLfloat * v); -// typedef void (APIENTRYP GPVERTEX3HNV)(GLhalfNV x, GLhalfNV y, GLhalfNV z); -// typedef void (APIENTRYP GPVERTEX3HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEX3I)(GLint x, GLint y, GLint z); -// typedef void (APIENTRYP GPVERTEX3IV)(const GLint * v); -// typedef void (APIENTRYP GPVERTEX3S)(GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPVERTEX3SV)(const GLshort * v); -// typedef void (APIENTRYP GPVERTEX3XOES)(GLfixed x, GLfixed y); -// typedef void (APIENTRYP GPVERTEX3XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPVERTEX4BOES)(GLbyte x, GLbyte y, GLbyte z, GLbyte w); -// typedef void (APIENTRYP GPVERTEX4BVOES)(const GLbyte * coords); -// typedef void (APIENTRYP GPVERTEX4D)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPVERTEX4DV)(const GLdouble * v); -// typedef void (APIENTRYP GPVERTEX4F)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPVERTEX4FV)(const GLfloat * v); -// typedef void (APIENTRYP GPVERTEX4HNV)(GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -// typedef void (APIENTRYP GPVERTEX4HVNV)(const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEX4I)(GLint x, GLint y, GLint z, GLint w); -// typedef void (APIENTRYP GPVERTEX4IV)(const GLint * v); -// typedef void (APIENTRYP GPVERTEX4S)(GLshort x, GLshort y, GLshort z, GLshort w); -// typedef void (APIENTRYP GPVERTEX4SV)(const GLshort * v); -// typedef void (APIENTRYP GPVERTEX4XOES)(GLfixed x, GLfixed y, GLfixed z); -// typedef void (APIENTRYP GPVERTEX4XVOES)(const GLfixed * coords); -// typedef void (APIENTRYP GPVERTEXARRAYATTRIBBINDING)(GLuint vaobj, GLuint attribindex, GLuint bindingindex); -// typedef void (APIENTRYP GPVERTEXARRAYATTRIBFORMAT)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXARRAYATTRIBIFORMAT)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXARRAYATTRIBLFORMAT)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXARRAYBINDVERTEXBUFFEREXT)(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -// typedef void (APIENTRYP GPVERTEXARRAYBINDINGDIVISOR)(GLuint vaobj, GLuint bindingindex, GLuint divisor); -// typedef void (APIENTRYP GPVERTEXARRAYCOLOROFFSETEXT)(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYEDGEFLAGOFFSETEXT)(GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYELEMENTBUFFER)(GLuint vaobj, GLuint buffer); -// typedef void (APIENTRYP GPVERTEXARRAYFOGCOORDOFFSETEXT)(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYINDEXOFFSETEXT)(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYMULTITEXCOORDOFFSETEXT)(GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYNORMALOFFSETEXT)(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYPARAMETERIAPPLE)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPVERTEXARRAYRANGEAPPLE)(GLsizei length, void * pointer); -// typedef void (APIENTRYP GPVERTEXARRAYRANGENV)(GLsizei length, const void * pointer); -// typedef void (APIENTRYP GPVERTEXARRAYSECONDARYCOLOROFFSETEXT)(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYTEXCOORDOFFSETEXT)(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXATTRIBBINDINGEXT)(GLuint vaobj, GLuint attribindex, GLuint bindingindex); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXATTRIBDIVISOREXT)(GLuint vaobj, GLuint index, GLuint divisor); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXATTRIBFORMATEXT)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXATTRIBIFORMATEXT)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXATTRIBIOFFSETEXT)(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXATTRIBLFORMATEXT)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXATTRIBLOFFSETEXT)(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXATTRIBOFFSETEXT)(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXBINDINGDIVISOREXT)(GLuint vaobj, GLuint bindingindex, GLuint divisor); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXBUFFER)(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXBUFFERS)(GLuint vaobj, GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizei * strides); -// typedef void (APIENTRYP GPVERTEXARRAYVERTEXOFFSETEXT)(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -// typedef void (APIENTRYP GPVERTEXATTRIB1D)(GLuint index, GLdouble x); -// typedef void (APIENTRYP GPVERTEXATTRIB1DARB)(GLuint index, GLdouble x); -// typedef void (APIENTRYP GPVERTEXATTRIB1DNV)(GLuint index, GLdouble x); -// typedef void (APIENTRYP GPVERTEXATTRIB1DV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1DVARB)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1DVNV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1F)(GLuint index, GLfloat x); -// typedef void (APIENTRYP GPVERTEXATTRIB1FARB)(GLuint index, GLfloat x); -// typedef void (APIENTRYP GPVERTEXATTRIB1FNV)(GLuint index, GLfloat x); -// typedef void (APIENTRYP GPVERTEXATTRIB1FV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1FVARB)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1FVNV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1HNV)(GLuint index, GLhalfNV x); -// typedef void (APIENTRYP GPVERTEXATTRIB1HVNV)(GLuint index, const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1S)(GLuint index, GLshort x); -// typedef void (APIENTRYP GPVERTEXATTRIB1SARB)(GLuint index, GLshort x); -// typedef void (APIENTRYP GPVERTEXATTRIB1SNV)(GLuint index, GLshort x); -// typedef void (APIENTRYP GPVERTEXATTRIB1SV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1SVARB)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB1SVNV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2D)(GLuint index, GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPVERTEXATTRIB2DARB)(GLuint index, GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPVERTEXATTRIB2DNV)(GLuint index, GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPVERTEXATTRIB2DV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2DVARB)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2DVNV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2F)(GLuint index, GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPVERTEXATTRIB2FARB)(GLuint index, GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPVERTEXATTRIB2FNV)(GLuint index, GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPVERTEXATTRIB2FV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2FVARB)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2FVNV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2HNV)(GLuint index, GLhalfNV x, GLhalfNV y); -// typedef void (APIENTRYP GPVERTEXATTRIB2HVNV)(GLuint index, const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2S)(GLuint index, GLshort x, GLshort y); -// typedef void (APIENTRYP GPVERTEXATTRIB2SARB)(GLuint index, GLshort x, GLshort y); -// typedef void (APIENTRYP GPVERTEXATTRIB2SNV)(GLuint index, GLshort x, GLshort y); -// typedef void (APIENTRYP GPVERTEXATTRIB2SV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2SVARB)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB2SVNV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3D)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPVERTEXATTRIB3DARB)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPVERTEXATTRIB3DNV)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPVERTEXATTRIB3DV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3DVARB)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3DVNV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3F)(GLuint index, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPVERTEXATTRIB3FARB)(GLuint index, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPVERTEXATTRIB3FNV)(GLuint index, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPVERTEXATTRIB3FV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3FVARB)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3FVNV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3HNV)(GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); -// typedef void (APIENTRYP GPVERTEXATTRIB3HVNV)(GLuint index, const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3S)(GLuint index, GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPVERTEXATTRIB3SARB)(GLuint index, GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPVERTEXATTRIB3SNV)(GLuint index, GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPVERTEXATTRIB3SV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3SVARB)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB3SVNV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NBV)(GLuint index, const GLbyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NBVARB)(GLuint index, const GLbyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NIV)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NIVARB)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NSV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NSVARB)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NUB)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -// typedef void (APIENTRYP GPVERTEXATTRIB4NUBARB)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -// typedef void (APIENTRYP GPVERTEXATTRIB4NUBV)(GLuint index, const GLubyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NUBVARB)(GLuint index, const GLubyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NUIV)(GLuint index, const GLuint * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NUIVARB)(GLuint index, const GLuint * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NUSV)(GLuint index, const GLushort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4NUSVARB)(GLuint index, const GLushort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4BV)(GLuint index, const GLbyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4BVARB)(GLuint index, const GLbyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4D)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPVERTEXATTRIB4DARB)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPVERTEXATTRIB4DNV)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPVERTEXATTRIB4DV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4DVARB)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4DVNV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4F)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPVERTEXATTRIB4FARB)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPVERTEXATTRIB4FNV)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPVERTEXATTRIB4FV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4FVARB)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4FVNV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4HNV)(GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -// typedef void (APIENTRYP GPVERTEXATTRIB4HVNV)(GLuint index, const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4IV)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4IVARB)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4S)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -// typedef void (APIENTRYP GPVERTEXATTRIB4SARB)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -// typedef void (APIENTRYP GPVERTEXATTRIB4SNV)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -// typedef void (APIENTRYP GPVERTEXATTRIB4SV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4SVARB)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4SVNV)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4UBNV)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -// typedef void (APIENTRYP GPVERTEXATTRIB4UBV)(GLuint index, const GLubyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4UBVARB)(GLuint index, const GLubyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4UBVNV)(GLuint index, const GLubyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4UIV)(GLuint index, const GLuint * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4UIVARB)(GLuint index, const GLuint * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4USV)(GLuint index, const GLushort * v); -// typedef void (APIENTRYP GPVERTEXATTRIB4USVARB)(GLuint index, const GLushort * v); -// typedef void (APIENTRYP GPVERTEXATTRIBARRAYOBJECTATI)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); -// typedef void (APIENTRYP GPVERTEXATTRIBBINDING)(GLuint attribindex, GLuint bindingindex); -// typedef void (APIENTRYP GPVERTEXATTRIBDIVISORARB)(GLuint index, GLuint divisor); -// typedef void (APIENTRYP GPVERTEXATTRIBFORMAT)(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXATTRIBFORMATNV)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); -// typedef void (APIENTRYP GPVERTEXATTRIBI1IEXT)(GLuint index, GLint x); -// typedef void (APIENTRYP GPVERTEXATTRIBI1IVEXT)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI1UIEXT)(GLuint index, GLuint x); -// typedef void (APIENTRYP GPVERTEXATTRIBI1UIVEXT)(GLuint index, const GLuint * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI2IEXT)(GLuint index, GLint x, GLint y); -// typedef void (APIENTRYP GPVERTEXATTRIBI2IVEXT)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI2UIEXT)(GLuint index, GLuint x, GLuint y); -// typedef void (APIENTRYP GPVERTEXATTRIBI2UIVEXT)(GLuint index, const GLuint * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI3IEXT)(GLuint index, GLint x, GLint y, GLint z); -// typedef void (APIENTRYP GPVERTEXATTRIBI3IVEXT)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI3UIEXT)(GLuint index, GLuint x, GLuint y, GLuint z); -// typedef void (APIENTRYP GPVERTEXATTRIBI3UIVEXT)(GLuint index, const GLuint * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI4BVEXT)(GLuint index, const GLbyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI4IEXT)(GLuint index, GLint x, GLint y, GLint z, GLint w); -// typedef void (APIENTRYP GPVERTEXATTRIBI4IVEXT)(GLuint index, const GLint * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI4SVEXT)(GLuint index, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI4UBVEXT)(GLuint index, const GLubyte * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI4UIEXT)(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -// typedef void (APIENTRYP GPVERTEXATTRIBI4UIVEXT)(GLuint index, const GLuint * v); -// typedef void (APIENTRYP GPVERTEXATTRIBI4USVEXT)(GLuint index, const GLushort * v); -// typedef void (APIENTRYP GPVERTEXATTRIBIFORMAT)(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXATTRIBIFORMATNV)(GLuint index, GLint size, GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPVERTEXATTRIBIPOINTEREXT)(GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPVERTEXATTRIBL1D)(GLuint index, GLdouble x); -// typedef void (APIENTRYP GPVERTEXATTRIBL1DEXT)(GLuint index, GLdouble x); -// typedef void (APIENTRYP GPVERTEXATTRIBL1DV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL1DVEXT)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL1I64NV)(GLuint index, GLint64EXT x); -// typedef void (APIENTRYP GPVERTEXATTRIBL1I64VNV)(GLuint index, const GLint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL1UI64ARB)(GLuint index, GLuint64EXT x); -// typedef void (APIENTRYP GPVERTEXATTRIBL1UI64NV)(GLuint index, GLuint64EXT x); -// typedef void (APIENTRYP GPVERTEXATTRIBL1UI64VARB)(GLuint index, const GLuint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL1UI64VNV)(GLuint index, const GLuint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL2D)(GLuint index, GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPVERTEXATTRIBL2DEXT)(GLuint index, GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPVERTEXATTRIBL2DV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL2DVEXT)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL2I64NV)(GLuint index, GLint64EXT x, GLint64EXT y); -// typedef void (APIENTRYP GPVERTEXATTRIBL2I64VNV)(GLuint index, const GLint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL2UI64NV)(GLuint index, GLuint64EXT x, GLuint64EXT y); -// typedef void (APIENTRYP GPVERTEXATTRIBL2UI64VNV)(GLuint index, const GLuint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL3D)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPVERTEXATTRIBL3DEXT)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPVERTEXATTRIBL3DV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL3DVEXT)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL3I64NV)(GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); -// typedef void (APIENTRYP GPVERTEXATTRIBL3I64VNV)(GLuint index, const GLint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL3UI64NV)(GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -// typedef void (APIENTRYP GPVERTEXATTRIBL3UI64VNV)(GLuint index, const GLuint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL4D)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPVERTEXATTRIBL4DEXT)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPVERTEXATTRIBL4DV)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL4DVEXT)(GLuint index, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL4I64NV)(GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -// typedef void (APIENTRYP GPVERTEXATTRIBL4I64VNV)(GLuint index, const GLint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBL4UI64NV)(GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -// typedef void (APIENTRYP GPVERTEXATTRIBL4UI64VNV)(GLuint index, const GLuint64EXT * v); -// typedef void (APIENTRYP GPVERTEXATTRIBLFORMAT)(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -// typedef void (APIENTRYP GPVERTEXATTRIBLFORMATNV)(GLuint index, GLint size, GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPVERTEXATTRIBLPOINTER)(GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPVERTEXATTRIBLPOINTEREXT)(GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPVERTEXATTRIBP1UI)(GLuint index, GLenum type, GLboolean normalized, GLuint value); -// typedef void (APIENTRYP GPVERTEXATTRIBP1UIV)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value); -// typedef void (APIENTRYP GPVERTEXATTRIBP2UI)(GLuint index, GLenum type, GLboolean normalized, GLuint value); -// typedef void (APIENTRYP GPVERTEXATTRIBP2UIV)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value); -// typedef void (APIENTRYP GPVERTEXATTRIBP3UI)(GLuint index, GLenum type, GLboolean normalized, GLuint value); -// typedef void (APIENTRYP GPVERTEXATTRIBP3UIV)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value); -// typedef void (APIENTRYP GPVERTEXATTRIBP4UI)(GLuint index, GLenum type, GLboolean normalized, GLuint value); -// typedef void (APIENTRYP GPVERTEXATTRIBP4UIV)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value); -// typedef void (APIENTRYP GPVERTEXATTRIBPARAMETERIAMD)(GLuint index, GLenum pname, GLint param); -// typedef void (APIENTRYP GPVERTEXATTRIBPOINTER)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPVERTEXATTRIBPOINTERARB)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPVERTEXATTRIBPOINTERNV)(GLuint index, GLint fsize, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPVERTEXATTRIBS1DVNV)(GLuint index, GLsizei count, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS1FVNV)(GLuint index, GLsizei count, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS1HVNV)(GLuint index, GLsizei n, const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS1SVNV)(GLuint index, GLsizei count, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS2DVNV)(GLuint index, GLsizei count, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS2FVNV)(GLuint index, GLsizei count, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS2HVNV)(GLuint index, GLsizei n, const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS2SVNV)(GLuint index, GLsizei count, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS3DVNV)(GLuint index, GLsizei count, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS3FVNV)(GLuint index, GLsizei count, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS3HVNV)(GLuint index, GLsizei n, const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS3SVNV)(GLuint index, GLsizei count, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS4DVNV)(GLuint index, GLsizei count, const GLdouble * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS4FVNV)(GLuint index, GLsizei count, const GLfloat * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS4HVNV)(GLuint index, GLsizei n, const GLhalfNV * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS4SVNV)(GLuint index, GLsizei count, const GLshort * v); -// typedef void (APIENTRYP GPVERTEXATTRIBS4UBVNV)(GLuint index, GLsizei count, const GLubyte * v); -// typedef void (APIENTRYP GPVERTEXBINDINGDIVISOR)(GLuint bindingindex, GLuint divisor); -// typedef void (APIENTRYP GPVERTEXBLENDARB)(GLint count); -// typedef void (APIENTRYP GPVERTEXBLENDENVFATI)(GLenum pname, GLfloat param); -// typedef void (APIENTRYP GPVERTEXBLENDENVIATI)(GLenum pname, GLint param); -// typedef void (APIENTRYP GPVERTEXFORMATNV)(GLint size, GLenum type, GLsizei stride); -// typedef void (APIENTRYP GPVERTEXPOINTER)(GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPVERTEXPOINTEREXT)(GLint size, GLenum type, GLsizei stride, GLsizei count, const void * pointer); -// typedef void (APIENTRYP GPVERTEXPOINTERLISTIBM)(GLint size, GLenum type, GLint stride, const void ** pointer, GLint ptrstride); -// typedef void (APIENTRYP GPVERTEXPOINTERVINTEL)(GLint size, GLenum type, const void ** pointer); -// typedef void (APIENTRYP GPVERTEXSTREAM1DATI)(GLenum stream, GLdouble x); -// typedef void (APIENTRYP GPVERTEXSTREAM1DVATI)(GLenum stream, const GLdouble * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM1FATI)(GLenum stream, GLfloat x); -// typedef void (APIENTRYP GPVERTEXSTREAM1FVATI)(GLenum stream, const GLfloat * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM1IATI)(GLenum stream, GLint x); -// typedef void (APIENTRYP GPVERTEXSTREAM1IVATI)(GLenum stream, const GLint * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM1SATI)(GLenum stream, GLshort x); -// typedef void (APIENTRYP GPVERTEXSTREAM1SVATI)(GLenum stream, const GLshort * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM2DATI)(GLenum stream, GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPVERTEXSTREAM2DVATI)(GLenum stream, const GLdouble * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM2FATI)(GLenum stream, GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPVERTEXSTREAM2FVATI)(GLenum stream, const GLfloat * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM2IATI)(GLenum stream, GLint x, GLint y); -// typedef void (APIENTRYP GPVERTEXSTREAM2IVATI)(GLenum stream, const GLint * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM2SATI)(GLenum stream, GLshort x, GLshort y); -// typedef void (APIENTRYP GPVERTEXSTREAM2SVATI)(GLenum stream, const GLshort * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM3DATI)(GLenum stream, GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPVERTEXSTREAM3DVATI)(GLenum stream, const GLdouble * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM3FATI)(GLenum stream, GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPVERTEXSTREAM3FVATI)(GLenum stream, const GLfloat * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM3IATI)(GLenum stream, GLint x, GLint y, GLint z); -// typedef void (APIENTRYP GPVERTEXSTREAM3IVATI)(GLenum stream, const GLint * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM3SATI)(GLenum stream, GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPVERTEXSTREAM3SVATI)(GLenum stream, const GLshort * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM4DATI)(GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPVERTEXSTREAM4DVATI)(GLenum stream, const GLdouble * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM4FATI)(GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPVERTEXSTREAM4FVATI)(GLenum stream, const GLfloat * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM4IATI)(GLenum stream, GLint x, GLint y, GLint z, GLint w); -// typedef void (APIENTRYP GPVERTEXSTREAM4IVATI)(GLenum stream, const GLint * coords); -// typedef void (APIENTRYP GPVERTEXSTREAM4SATI)(GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); -// typedef void (APIENTRYP GPVERTEXSTREAM4SVATI)(GLenum stream, const GLshort * coords); -// typedef void (APIENTRYP GPVERTEXWEIGHTPOINTEREXT)(GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPVERTEXWEIGHTFEXT)(GLfloat weight); -// typedef void (APIENTRYP GPVERTEXWEIGHTFVEXT)(const GLfloat * weight); -// typedef void (APIENTRYP GPVERTEXWEIGHTHNV)(GLhalfNV weight); -// typedef void (APIENTRYP GPVERTEXWEIGHTHVNV)(const GLhalfNV * weight); -// typedef GLenum (APIENTRYP GPVIDEOCAPTURENV)(GLuint video_capture_slot, GLuint * sequence_num, GLuint64EXT * capture_time); -// typedef void (APIENTRYP GPVIDEOCAPTURESTREAMPARAMETERDVNV)(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble * params); -// typedef void (APIENTRYP GPVIDEOCAPTURESTREAMPARAMETERFVNV)(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat * params); -// typedef void (APIENTRYP GPVIDEOCAPTURESTREAMPARAMETERIVNV)(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint * params); -// typedef void (APIENTRYP GPVIEWPORT)(GLint x, GLint y, GLsizei width, GLsizei height); -// typedef void (APIENTRYP GPVIEWPORTARRAYV)(GLuint first, GLsizei count, const GLfloat * v); -// typedef void (APIENTRYP GPVIEWPORTINDEXEDF)(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -// typedef void (APIENTRYP GPVIEWPORTINDEXEDFV)(GLuint index, const GLfloat * v); -// typedef void (APIENTRYP GPWAITSYNC)(GLsync sync, GLbitfield flags, GLuint64 timeout); -// typedef void (APIENTRYP GPWEIGHTPATHSNV)(GLuint resultPath, GLsizei numPaths, const GLuint * paths, const GLfloat * weights); -// typedef void (APIENTRYP GPWEIGHTPOINTERARB)(GLint size, GLenum type, GLsizei stride, const void * pointer); -// typedef void (APIENTRYP GPWEIGHTBVARB)(GLint size, const GLbyte * weights); -// typedef void (APIENTRYP GPWEIGHTDVARB)(GLint size, const GLdouble * weights); -// typedef void (APIENTRYP GPWEIGHTFVARB)(GLint size, const GLfloat * weights); -// typedef void (APIENTRYP GPWEIGHTIVARB)(GLint size, const GLint * weights); -// typedef void (APIENTRYP GPWEIGHTSVARB)(GLint size, const GLshort * weights); -// typedef void (APIENTRYP GPWEIGHTUBVARB)(GLint size, const GLubyte * weights); -// typedef void (APIENTRYP GPWEIGHTUIVARB)(GLint size, const GLuint * weights); -// typedef void (APIENTRYP GPWEIGHTUSVARB)(GLint size, const GLushort * weights); -// typedef void (APIENTRYP GPWINDOWPOS2D)(GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPWINDOWPOS2DARB)(GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPWINDOWPOS2DMESA)(GLdouble x, GLdouble y); -// typedef void (APIENTRYP GPWINDOWPOS2DV)(const GLdouble * v); -// typedef void (APIENTRYP GPWINDOWPOS2DVARB)(const GLdouble * v); -// typedef void (APIENTRYP GPWINDOWPOS2DVMESA)(const GLdouble * v); -// typedef void (APIENTRYP GPWINDOWPOS2F)(GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPWINDOWPOS2FARB)(GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPWINDOWPOS2FMESA)(GLfloat x, GLfloat y); -// typedef void (APIENTRYP GPWINDOWPOS2FV)(const GLfloat * v); -// typedef void (APIENTRYP GPWINDOWPOS2FVARB)(const GLfloat * v); -// typedef void (APIENTRYP GPWINDOWPOS2FVMESA)(const GLfloat * v); -// typedef void (APIENTRYP GPWINDOWPOS2I)(GLint x, GLint y); -// typedef void (APIENTRYP GPWINDOWPOS2IARB)(GLint x, GLint y); -// typedef void (APIENTRYP GPWINDOWPOS2IMESA)(GLint x, GLint y); -// typedef void (APIENTRYP GPWINDOWPOS2IV)(const GLint * v); -// typedef void (APIENTRYP GPWINDOWPOS2IVARB)(const GLint * v); -// typedef void (APIENTRYP GPWINDOWPOS2IVMESA)(const GLint * v); -// typedef void (APIENTRYP GPWINDOWPOS2S)(GLshort x, GLshort y); -// typedef void (APIENTRYP GPWINDOWPOS2SARB)(GLshort x, GLshort y); -// typedef void (APIENTRYP GPWINDOWPOS2SMESA)(GLshort x, GLshort y); -// typedef void (APIENTRYP GPWINDOWPOS2SV)(const GLshort * v); -// typedef void (APIENTRYP GPWINDOWPOS2SVARB)(const GLshort * v); -// typedef void (APIENTRYP GPWINDOWPOS2SVMESA)(const GLshort * v); -// typedef void (APIENTRYP GPWINDOWPOS3D)(GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPWINDOWPOS3DARB)(GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPWINDOWPOS3DMESA)(GLdouble x, GLdouble y, GLdouble z); -// typedef void (APIENTRYP GPWINDOWPOS3DV)(const GLdouble * v); -// typedef void (APIENTRYP GPWINDOWPOS3DVARB)(const GLdouble * v); -// typedef void (APIENTRYP GPWINDOWPOS3DVMESA)(const GLdouble * v); -// typedef void (APIENTRYP GPWINDOWPOS3F)(GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPWINDOWPOS3FARB)(GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPWINDOWPOS3FMESA)(GLfloat x, GLfloat y, GLfloat z); -// typedef void (APIENTRYP GPWINDOWPOS3FV)(const GLfloat * v); -// typedef void (APIENTRYP GPWINDOWPOS3FVARB)(const GLfloat * v); -// typedef void (APIENTRYP GPWINDOWPOS3FVMESA)(const GLfloat * v); -// typedef void (APIENTRYP GPWINDOWPOS3I)(GLint x, GLint y, GLint z); -// typedef void (APIENTRYP GPWINDOWPOS3IARB)(GLint x, GLint y, GLint z); -// typedef void (APIENTRYP GPWINDOWPOS3IMESA)(GLint x, GLint y, GLint z); -// typedef void (APIENTRYP GPWINDOWPOS3IV)(const GLint * v); -// typedef void (APIENTRYP GPWINDOWPOS3IVARB)(const GLint * v); -// typedef void (APIENTRYP GPWINDOWPOS3IVMESA)(const GLint * v); -// typedef void (APIENTRYP GPWINDOWPOS3S)(GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPWINDOWPOS3SARB)(GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPWINDOWPOS3SMESA)(GLshort x, GLshort y, GLshort z); -// typedef void (APIENTRYP GPWINDOWPOS3SV)(const GLshort * v); -// typedef void (APIENTRYP GPWINDOWPOS3SVARB)(const GLshort * v); -// typedef void (APIENTRYP GPWINDOWPOS3SVMESA)(const GLshort * v); -// typedef void (APIENTRYP GPWINDOWPOS4DMESA)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); -// typedef void (APIENTRYP GPWINDOWPOS4DVMESA)(const GLdouble * v); -// typedef void (APIENTRYP GPWINDOWPOS4FMESA)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); -// typedef void (APIENTRYP GPWINDOWPOS4FVMESA)(const GLfloat * v); -// typedef void (APIENTRYP GPWINDOWPOS4IMESA)(GLint x, GLint y, GLint z, GLint w); -// typedef void (APIENTRYP GPWINDOWPOS4IVMESA)(const GLint * v); -// typedef void (APIENTRYP GPWINDOWPOS4SMESA)(GLshort x, GLshort y, GLshort z, GLshort w); -// typedef void (APIENTRYP GPWINDOWPOS4SVMESA)(const GLshort * v); -// typedef void (APIENTRYP GPWRITEMASKEXT)(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -// static void glowAccum(GPACCUM fnptr, GLenum op, GLfloat value) { -// (*fnptr)(op, value); -// } -// static void glowAccumxOES(GPACCUMXOES fnptr, GLenum op, GLfixed value) { -// (*fnptr)(op, value); -// } -// static void glowActiveProgramEXT(GPACTIVEPROGRAMEXT fnptr, GLuint program) { -// (*fnptr)(program); -// } -// static void glowActiveShaderProgram(GPACTIVESHADERPROGRAM fnptr, GLuint pipeline, GLuint program) { -// (*fnptr)(pipeline, program); -// } -// static void glowActiveShaderProgramEXT(GPACTIVESHADERPROGRAMEXT fnptr, GLuint pipeline, GLuint program) { -// (*fnptr)(pipeline, program); -// } -// static void glowActiveStencilFaceEXT(GPACTIVESTENCILFACEEXT fnptr, GLenum face) { -// (*fnptr)(face); -// } -// static void glowActiveTexture(GPACTIVETEXTURE fnptr, GLenum texture) { -// (*fnptr)(texture); -// } -// static void glowActiveTextureARB(GPACTIVETEXTUREARB fnptr, GLenum texture) { -// (*fnptr)(texture); -// } -// static void glowActiveVaryingNV(GPACTIVEVARYINGNV fnptr, GLuint program, const GLchar * name) { -// (*fnptr)(program, name); -// } -// static void glowAlphaFragmentOp1ATI(GPALPHAFRAGMENTOP1ATI fnptr, GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod) { -// (*fnptr)(op, dst, dstMod, arg1, arg1Rep, arg1Mod); -// } -// static void glowAlphaFragmentOp2ATI(GPALPHAFRAGMENTOP2ATI fnptr, GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod) { -// (*fnptr)(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); -// } -// static void glowAlphaFragmentOp3ATI(GPALPHAFRAGMENTOP3ATI fnptr, GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod) { -// (*fnptr)(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); -// } -// static void glowAlphaFunc(GPALPHAFUNC fnptr, GLenum func, GLfloat ref) { -// (*fnptr)(func, ref); -// } -// static void glowAlphaFuncxOES(GPALPHAFUNCXOES fnptr, GLenum func, GLfixed ref) { -// (*fnptr)(func, ref); -// } -// static void glowApplyTextureEXT(GPAPPLYTEXTUREEXT fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static GLboolean glowAreProgramsResidentNV(GPAREPROGRAMSRESIDENTNV fnptr, GLsizei n, const GLuint * programs, GLboolean * residences) { -// return (*fnptr)(n, programs, residences); -// } -// static GLboolean glowAreTexturesResident(GPARETEXTURESRESIDENT fnptr, GLsizei n, const GLuint * textures, GLboolean * residences) { -// return (*fnptr)(n, textures, residences); -// } -// static GLboolean glowAreTexturesResidentEXT(GPARETEXTURESRESIDENTEXT fnptr, GLsizei n, const GLuint * textures, GLboolean * residences) { -// return (*fnptr)(n, textures, residences); -// } -// static void glowArrayElement(GPARRAYELEMENT fnptr, GLint i) { -// (*fnptr)(i); -// } -// static void glowArrayElementEXT(GPARRAYELEMENTEXT fnptr, GLint i) { -// (*fnptr)(i); -// } -// static void glowArrayObjectATI(GPARRAYOBJECTATI fnptr, GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset) { -// (*fnptr)(array, size, type, stride, buffer, offset); -// } -// static void glowAsyncMarkerSGIX(GPASYNCMARKERSGIX fnptr, GLuint marker) { -// (*fnptr)(marker); -// } -// static void glowAttachObjectARB(GPATTACHOBJECTARB fnptr, GLhandleARB containerObj, GLhandleARB obj) { -// (*fnptr)(containerObj, obj); -// } -// static void glowAttachShader(GPATTACHSHADER fnptr, GLuint program, GLuint shader) { -// (*fnptr)(program, shader); -// } -// static void glowBegin(GPBEGIN fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowBeginConditionalRenderNV(GPBEGINCONDITIONALRENDERNV fnptr, GLuint id, GLenum mode) { -// (*fnptr)(id, mode); -// } -// static void glowBeginConditionalRenderNVX(GPBEGINCONDITIONALRENDERNVX fnptr, GLuint id) { -// (*fnptr)(id); -// } -// static void glowBeginFragmentShaderATI(GPBEGINFRAGMENTSHADERATI fnptr) { -// (*fnptr)(); -// } -// static void glowBeginOcclusionQueryNV(GPBEGINOCCLUSIONQUERYNV fnptr, GLuint id) { -// (*fnptr)(id); -// } -// static void glowBeginPerfMonitorAMD(GPBEGINPERFMONITORAMD fnptr, GLuint monitor) { -// (*fnptr)(monitor); -// } -// static void glowBeginPerfQueryINTEL(GPBEGINPERFQUERYINTEL fnptr, GLuint queryHandle) { -// (*fnptr)(queryHandle); -// } -// static void glowBeginQuery(GPBEGINQUERY fnptr, GLenum target, GLuint id) { -// (*fnptr)(target, id); -// } -// static void glowBeginQueryARB(GPBEGINQUERYARB fnptr, GLenum target, GLuint id) { -// (*fnptr)(target, id); -// } -// static void glowBeginQueryIndexed(GPBEGINQUERYINDEXED fnptr, GLenum target, GLuint index, GLuint id) { -// (*fnptr)(target, index, id); -// } -// static void glowBeginTransformFeedbackEXT(GPBEGINTRANSFORMFEEDBACKEXT fnptr, GLenum primitiveMode) { -// (*fnptr)(primitiveMode); -// } -// static void glowBeginTransformFeedbackNV(GPBEGINTRANSFORMFEEDBACKNV fnptr, GLenum primitiveMode) { -// (*fnptr)(primitiveMode); -// } -// static void glowBeginVertexShaderEXT(GPBEGINVERTEXSHADEREXT fnptr) { -// (*fnptr)(); -// } -// static void glowBeginVideoCaptureNV(GPBEGINVIDEOCAPTURENV fnptr, GLuint video_capture_slot) { -// (*fnptr)(video_capture_slot); -// } -// static void glowBindAttribLocation(GPBINDATTRIBLOCATION fnptr, GLuint program, GLuint index, const GLchar * name) { -// (*fnptr)(program, index, name); -// } -// static void glowBindAttribLocationARB(GPBINDATTRIBLOCATIONARB fnptr, GLhandleARB programObj, GLuint index, const GLcharARB * name) { -// (*fnptr)(programObj, index, name); -// } -// static void glowBindBuffer(GPBINDBUFFER fnptr, GLenum target, GLuint buffer) { -// (*fnptr)(target, buffer); -// } -// static void glowBindBufferARB(GPBINDBUFFERARB fnptr, GLenum target, GLuint buffer) { -// (*fnptr)(target, buffer); -// } -// static void glowBindBufferBaseEXT(GPBINDBUFFERBASEEXT fnptr, GLenum target, GLuint index, GLuint buffer) { -// (*fnptr)(target, index, buffer); -// } -// static void glowBindBufferBaseNV(GPBINDBUFFERBASENV fnptr, GLenum target, GLuint index, GLuint buffer) { -// (*fnptr)(target, index, buffer); -// } -// static void glowBindBufferOffsetEXT(GPBINDBUFFEROFFSETEXT fnptr, GLenum target, GLuint index, GLuint buffer, GLintptr offset) { -// (*fnptr)(target, index, buffer, offset); -// } -// static void glowBindBufferOffsetNV(GPBINDBUFFEROFFSETNV fnptr, GLenum target, GLuint index, GLuint buffer, GLintptr offset) { -// (*fnptr)(target, index, buffer, offset); -// } -// static void glowBindBufferRangeEXT(GPBINDBUFFERRANGEEXT fnptr, GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) { -// (*fnptr)(target, index, buffer, offset, size); -// } -// static void glowBindBufferRangeNV(GPBINDBUFFERRANGENV fnptr, GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) { -// (*fnptr)(target, index, buffer, offset, size); -// } -// static void glowBindBuffersBase(GPBINDBUFFERSBASE fnptr, GLenum target, GLuint first, GLsizei count, const GLuint * buffers) { -// (*fnptr)(target, first, count, buffers); -// } -// static void glowBindBuffersRange(GPBINDBUFFERSRANGE fnptr, GLenum target, GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizeiptr * sizes) { -// (*fnptr)(target, first, count, buffers, offsets, sizes); -// } -// static void glowBindFragDataLocationEXT(GPBINDFRAGDATALOCATIONEXT fnptr, GLuint program, GLuint color, const GLchar * name) { -// (*fnptr)(program, color, name); -// } -// static void glowBindFragDataLocationIndexed(GPBINDFRAGDATALOCATIONINDEXED fnptr, GLuint program, GLuint colorNumber, GLuint index, const GLchar * name) { -// (*fnptr)(program, colorNumber, index, name); -// } -// static void glowBindFragmentShaderATI(GPBINDFRAGMENTSHADERATI fnptr, GLuint id) { -// (*fnptr)(id); -// } -// static void glowBindFramebuffer(GPBINDFRAMEBUFFER fnptr, GLenum target, GLuint framebuffer) { -// (*fnptr)(target, framebuffer); -// } -// static void glowBindFramebufferEXT(GPBINDFRAMEBUFFEREXT fnptr, GLenum target, GLuint framebuffer) { -// (*fnptr)(target, framebuffer); -// } -// static void glowBindImageTexture(GPBINDIMAGETEXTURE fnptr, GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format) { -// (*fnptr)(unit, texture, level, layered, layer, access, format); -// } -// static void glowBindImageTextureEXT(GPBINDIMAGETEXTUREEXT fnptr, GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format) { -// (*fnptr)(index, texture, level, layered, layer, access, format); -// } -// static void glowBindImageTextures(GPBINDIMAGETEXTURES fnptr, GLuint first, GLsizei count, const GLuint * textures) { -// (*fnptr)(first, count, textures); -// } -// static GLuint glowBindLightParameterEXT(GPBINDLIGHTPARAMETEREXT fnptr, GLenum light, GLenum value) { -// return (*fnptr)(light, value); -// } -// static GLuint glowBindMaterialParameterEXT(GPBINDMATERIALPARAMETEREXT fnptr, GLenum face, GLenum value) { -// return (*fnptr)(face, value); -// } -// static void glowBindMultiTextureEXT(GPBINDMULTITEXTUREEXT fnptr, GLenum texunit, GLenum target, GLuint texture) { -// (*fnptr)(texunit, target, texture); -// } -// static GLuint glowBindParameterEXT(GPBINDPARAMETEREXT fnptr, GLenum value) { -// return (*fnptr)(value); -// } -// static void glowBindProgramARB(GPBINDPROGRAMARB fnptr, GLenum target, GLuint program) { -// (*fnptr)(target, program); -// } -// static void glowBindProgramNV(GPBINDPROGRAMNV fnptr, GLenum target, GLuint id) { -// (*fnptr)(target, id); -// } -// static void glowBindProgramPipeline(GPBINDPROGRAMPIPELINE fnptr, GLuint pipeline) { -// (*fnptr)(pipeline); -// } -// static void glowBindProgramPipelineEXT(GPBINDPROGRAMPIPELINEEXT fnptr, GLuint pipeline) { -// (*fnptr)(pipeline); -// } -// static void glowBindRenderbuffer(GPBINDRENDERBUFFER fnptr, GLenum target, GLuint renderbuffer) { -// (*fnptr)(target, renderbuffer); -// } -// static void glowBindRenderbufferEXT(GPBINDRENDERBUFFEREXT fnptr, GLenum target, GLuint renderbuffer) { -// (*fnptr)(target, renderbuffer); -// } -// static void glowBindSampler(GPBINDSAMPLER fnptr, GLuint unit, GLuint sampler) { -// (*fnptr)(unit, sampler); -// } -// static void glowBindSamplers(GPBINDSAMPLERS fnptr, GLuint first, GLsizei count, const GLuint * samplers) { -// (*fnptr)(first, count, samplers); -// } -// static GLuint glowBindTexGenParameterEXT(GPBINDTEXGENPARAMETEREXT fnptr, GLenum unit, GLenum coord, GLenum value) { -// return (*fnptr)(unit, coord, value); -// } -// static void glowBindTexture(GPBINDTEXTURE fnptr, GLenum target, GLuint texture) { -// (*fnptr)(target, texture); -// } -// static void glowBindTextureEXT(GPBINDTEXTUREEXT fnptr, GLenum target, GLuint texture) { -// (*fnptr)(target, texture); -// } -// static void glowBindTextureUnit(GPBINDTEXTUREUNIT fnptr, GLuint unit, GLuint texture) { -// (*fnptr)(unit, texture); -// } -// static GLuint glowBindTextureUnitParameterEXT(GPBINDTEXTUREUNITPARAMETEREXT fnptr, GLenum unit, GLenum value) { -// return (*fnptr)(unit, value); -// } -// static void glowBindTextures(GPBINDTEXTURES fnptr, GLuint first, GLsizei count, const GLuint * textures) { -// (*fnptr)(first, count, textures); -// } -// static void glowBindTransformFeedback(GPBINDTRANSFORMFEEDBACK fnptr, GLenum target, GLuint id) { -// (*fnptr)(target, id); -// } -// static void glowBindTransformFeedbackNV(GPBINDTRANSFORMFEEDBACKNV fnptr, GLenum target, GLuint id) { -// (*fnptr)(target, id); -// } -// static void glowBindVertexArray(GPBINDVERTEXARRAY fnptr, GLuint array) { -// (*fnptr)(array); -// } -// static void glowBindVertexArrayAPPLE(GPBINDVERTEXARRAYAPPLE fnptr, GLuint array) { -// (*fnptr)(array); -// } -// static void glowBindVertexBuffer(GPBINDVERTEXBUFFER fnptr, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride) { -// (*fnptr)(bindingindex, buffer, offset, stride); -// } -// static void glowBindVertexBuffers(GPBINDVERTEXBUFFERS fnptr, GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizei * strides) { -// (*fnptr)(first, count, buffers, offsets, strides); -// } -// static void glowBindVertexShaderEXT(GPBINDVERTEXSHADEREXT fnptr, GLuint id) { -// (*fnptr)(id); -// } -// static void glowBindVideoCaptureStreamBufferNV(GPBINDVIDEOCAPTURESTREAMBUFFERNV fnptr, GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset) { -// (*fnptr)(video_capture_slot, stream, frame_region, offset); -// } -// static void glowBindVideoCaptureStreamTextureNV(GPBINDVIDEOCAPTURESTREAMTEXTURENV fnptr, GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture) { -// (*fnptr)(video_capture_slot, stream, frame_region, target, texture); -// } -// static void glowBinormal3bEXT(GPBINORMAL3BEXT fnptr, GLbyte bx, GLbyte by, GLbyte bz) { -// (*fnptr)(bx, by, bz); -// } -// static void glowBinormal3bvEXT(GPBINORMAL3BVEXT fnptr, const GLbyte * v) { -// (*fnptr)(v); -// } -// static void glowBinormal3dEXT(GPBINORMAL3DEXT fnptr, GLdouble bx, GLdouble by, GLdouble bz) { -// (*fnptr)(bx, by, bz); -// } -// static void glowBinormal3dvEXT(GPBINORMAL3DVEXT fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowBinormal3fEXT(GPBINORMAL3FEXT fnptr, GLfloat bx, GLfloat by, GLfloat bz) { -// (*fnptr)(bx, by, bz); -// } -// static void glowBinormal3fvEXT(GPBINORMAL3FVEXT fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowBinormal3iEXT(GPBINORMAL3IEXT fnptr, GLint bx, GLint by, GLint bz) { -// (*fnptr)(bx, by, bz); -// } -// static void glowBinormal3ivEXT(GPBINORMAL3IVEXT fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowBinormal3sEXT(GPBINORMAL3SEXT fnptr, GLshort bx, GLshort by, GLshort bz) { -// (*fnptr)(bx, by, bz); -// } -// static void glowBinormal3svEXT(GPBINORMAL3SVEXT fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowBinormalPointerEXT(GPBINORMALPOINTEREXT fnptr, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(type, stride, pointer); -// } -// static void glowBitmap(GPBITMAP fnptr, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap) { -// (*fnptr)(width, height, xorig, yorig, xmove, ymove, bitmap); -// } -// static void glowBitmapxOES(GPBITMAPXOES fnptr, GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte * bitmap) { -// (*fnptr)(width, height, xorig, yorig, xmove, ymove, bitmap); -// } -// static void glowBlendBarrierKHR(GPBLENDBARRIERKHR fnptr) { -// (*fnptr)(); -// } -// static void glowBlendBarrierNV(GPBLENDBARRIERNV fnptr) { -// (*fnptr)(); -// } -// static void glowBlendColor(GPBLENDCOLOR fnptr, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowBlendColorEXT(GPBLENDCOLOREXT fnptr, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowBlendColorxOES(GPBLENDCOLORXOES fnptr, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowBlendEquation(GPBLENDEQUATION fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowBlendEquationEXT(GPBLENDEQUATIONEXT fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowBlendEquationIndexedAMD(GPBLENDEQUATIONINDEXEDAMD fnptr, GLuint buf, GLenum mode) { -// (*fnptr)(buf, mode); -// } -// static void glowBlendEquationSeparate(GPBLENDEQUATIONSEPARATE fnptr, GLenum modeRGB, GLenum modeAlpha) { -// (*fnptr)(modeRGB, modeAlpha); -// } -// static void glowBlendEquationSeparateEXT(GPBLENDEQUATIONSEPARATEEXT fnptr, GLenum modeRGB, GLenum modeAlpha) { -// (*fnptr)(modeRGB, modeAlpha); -// } -// static void glowBlendEquationSeparateIndexedAMD(GPBLENDEQUATIONSEPARATEINDEXEDAMD fnptr, GLuint buf, GLenum modeRGB, GLenum modeAlpha) { -// (*fnptr)(buf, modeRGB, modeAlpha); -// } -// static void glowBlendEquationSeparateiARB(GPBLENDEQUATIONSEPARATEIARB fnptr, GLuint buf, GLenum modeRGB, GLenum modeAlpha) { -// (*fnptr)(buf, modeRGB, modeAlpha); -// } -// static void glowBlendEquationiARB(GPBLENDEQUATIONIARB fnptr, GLuint buf, GLenum mode) { -// (*fnptr)(buf, mode); -// } -// static void glowBlendFunc(GPBLENDFUNC fnptr, GLenum sfactor, GLenum dfactor) { -// (*fnptr)(sfactor, dfactor); -// } -// static void glowBlendFuncIndexedAMD(GPBLENDFUNCINDEXEDAMD fnptr, GLuint buf, GLenum src, GLenum dst) { -// (*fnptr)(buf, src, dst); -// } -// static void glowBlendFuncSeparate(GPBLENDFUNCSEPARATE fnptr, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) { -// (*fnptr)(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); -// } -// static void glowBlendFuncSeparateEXT(GPBLENDFUNCSEPARATEEXT fnptr, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) { -// (*fnptr)(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); -// } -// static void glowBlendFuncSeparateINGR(GPBLENDFUNCSEPARATEINGR fnptr, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) { -// (*fnptr)(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); -// } -// static void glowBlendFuncSeparateIndexedAMD(GPBLENDFUNCSEPARATEINDEXEDAMD fnptr, GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { -// (*fnptr)(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); -// } -// static void glowBlendFuncSeparateiARB(GPBLENDFUNCSEPARATEIARB fnptr, GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { -// (*fnptr)(buf, srcRGB, dstRGB, srcAlpha, dstAlpha); -// } -// static void glowBlendFunciARB(GPBLENDFUNCIARB fnptr, GLuint buf, GLenum src, GLenum dst) { -// (*fnptr)(buf, src, dst); -// } -// static void glowBlendParameteriNV(GPBLENDPARAMETERINV fnptr, GLenum pname, GLint value) { -// (*fnptr)(pname, value); -// } -// static void glowBlitFramebuffer(GPBLITFRAMEBUFFER fnptr, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { -// (*fnptr)(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); -// } -// static void glowBlitFramebufferEXT(GPBLITFRAMEBUFFEREXT fnptr, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { -// (*fnptr)(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); -// } -// static void glowBlitNamedFramebuffer(GPBLITNAMEDFRAMEBUFFER fnptr, GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { -// (*fnptr)(readFramebuffer, drawFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); -// } -// static void glowBufferAddressRangeNV(GPBUFFERADDRESSRANGENV fnptr, GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length) { -// (*fnptr)(pname, index, address, length); -// } -// static void glowBufferData(GPBUFFERDATA fnptr, GLenum target, GLsizeiptr size, const void * data, GLenum usage) { -// (*fnptr)(target, size, data, usage); -// } -// static void glowBufferDataARB(GPBUFFERDATAARB fnptr, GLenum target, GLsizeiptrARB size, const void * data, GLenum usage) { -// (*fnptr)(target, size, data, usage); -// } -// static void glowBufferPageCommitmentARB(GPBUFFERPAGECOMMITMENTARB fnptr, GLenum target, GLintptr offset, GLsizei size, GLboolean commit) { -// (*fnptr)(target, offset, size, commit); -// } -// static void glowBufferParameteriAPPLE(GPBUFFERPARAMETERIAPPLE fnptr, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(target, pname, param); -// } -// static void glowBufferStorage(GPBUFFERSTORAGE fnptr, GLenum target, GLsizeiptr size, const void * data, GLbitfield flags) { -// (*fnptr)(target, size, data, flags); -// } -// static void glowBufferSubData(GPBUFFERSUBDATA fnptr, GLenum target, GLintptr offset, GLsizeiptr size, const void * data) { -// (*fnptr)(target, offset, size, data); -// } -// static void glowBufferSubDataARB(GPBUFFERSUBDATAARB fnptr, GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void * data) { -// (*fnptr)(target, offset, size, data); -// } -// static void glowCallList(GPCALLLIST fnptr, GLuint list) { -// (*fnptr)(list); -// } -// static void glowCallLists(GPCALLLISTS fnptr, GLsizei n, GLenum type, const void * lists) { -// (*fnptr)(n, type, lists); -// } -// static GLenum glowCheckFramebufferStatus(GPCHECKFRAMEBUFFERSTATUS fnptr, GLenum target) { -// return (*fnptr)(target); -// } -// static GLenum glowCheckFramebufferStatusEXT(GPCHECKFRAMEBUFFERSTATUSEXT fnptr, GLenum target) { -// return (*fnptr)(target); -// } -// static GLenum glowCheckNamedFramebufferStatus(GPCHECKNAMEDFRAMEBUFFERSTATUS fnptr, GLuint framebuffer, GLenum target) { -// return (*fnptr)(framebuffer, target); -// } -// static GLenum glowCheckNamedFramebufferStatusEXT(GPCHECKNAMEDFRAMEBUFFERSTATUSEXT fnptr, GLuint framebuffer, GLenum target) { -// return (*fnptr)(framebuffer, target); -// } -// static void glowClampColorARB(GPCLAMPCOLORARB fnptr, GLenum target, GLenum clamp) { -// (*fnptr)(target, clamp); -// } -// static void glowClear(GPCLEAR fnptr, GLbitfield mask) { -// (*fnptr)(mask); -// } -// static void glowClearAccum(GPCLEARACCUM fnptr, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowClearAccumxOES(GPCLEARACCUMXOES fnptr, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowClearBufferData(GPCLEARBUFFERDATA fnptr, GLenum target, GLenum internalformat, GLenum format, GLenum type, const void * data) { -// (*fnptr)(target, internalformat, format, type, data); -// } -// static void glowClearBufferSubData(GPCLEARBUFFERSUBDATA fnptr, GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void * data) { -// (*fnptr)(target, internalformat, offset, size, format, type, data); -// } -// static void glowClearColor(GPCLEARCOLOR fnptr, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowClearColorIiEXT(GPCLEARCOLORIIEXT fnptr, GLint red, GLint green, GLint blue, GLint alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowClearColorIuiEXT(GPCLEARCOLORIUIEXT fnptr, GLuint red, GLuint green, GLuint blue, GLuint alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowClearColorxOES(GPCLEARCOLORXOES fnptr, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowClearDepth(GPCLEARDEPTH fnptr, GLdouble depth) { -// (*fnptr)(depth); -// } -// static void glowClearDepthdNV(GPCLEARDEPTHDNV fnptr, GLdouble depth) { -// (*fnptr)(depth); -// } -// static void glowClearDepthf(GPCLEARDEPTHF fnptr, GLfloat d) { -// (*fnptr)(d); -// } -// static void glowClearDepthfOES(GPCLEARDEPTHFOES fnptr, GLclampf depth) { -// (*fnptr)(depth); -// } -// static void glowClearDepthxOES(GPCLEARDEPTHXOES fnptr, GLfixed depth) { -// (*fnptr)(depth); -// } -// static void glowClearIndex(GPCLEARINDEX fnptr, GLfloat c) { -// (*fnptr)(c); -// } -// static void glowClearNamedBufferData(GPCLEARNAMEDBUFFERDATA fnptr, GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void * data) { -// (*fnptr)(buffer, internalformat, format, type, data); -// } -// static void glowClearNamedBufferDataEXT(GPCLEARNAMEDBUFFERDATAEXT fnptr, GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void * data) { -// (*fnptr)(buffer, internalformat, format, type, data); -// } -// static void glowClearNamedBufferSubData(GPCLEARNAMEDBUFFERSUBDATA fnptr, GLuint buffer, GLenum internalformat, GLintptr offset, GLsizei size, GLenum format, GLenum type, const void * data) { -// (*fnptr)(buffer, internalformat, offset, size, format, type, data); -// } -// static void glowClearNamedBufferSubDataEXT(GPCLEARNAMEDBUFFERSUBDATAEXT fnptr, GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void * data) { -// (*fnptr)(buffer, internalformat, offset, size, format, type, data); -// } -// static void glowClearNamedFramebufferfi(GPCLEARNAMEDFRAMEBUFFERFI fnptr, GLuint framebuffer, GLenum buffer, const GLfloat depth, GLint stencil) { -// (*fnptr)(framebuffer, buffer, depth, stencil); -// } -// static void glowClearNamedFramebufferfv(GPCLEARNAMEDFRAMEBUFFERFV fnptr, GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat * value) { -// (*fnptr)(framebuffer, buffer, drawbuffer, value); -// } -// static void glowClearNamedFramebufferiv(GPCLEARNAMEDFRAMEBUFFERIV fnptr, GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint * value) { -// (*fnptr)(framebuffer, buffer, drawbuffer, value); -// } -// static void glowClearNamedFramebufferuiv(GPCLEARNAMEDFRAMEBUFFERUIV fnptr, GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint * value) { -// (*fnptr)(framebuffer, buffer, drawbuffer, value); -// } -// static void glowClearStencil(GPCLEARSTENCIL fnptr, GLint s) { -// (*fnptr)(s); -// } -// static void glowClearTexImage(GPCLEARTEXIMAGE fnptr, GLuint texture, GLint level, GLenum format, GLenum type, const void * data) { -// (*fnptr)(texture, level, format, type, data); -// } -// static void glowClearTexSubImage(GPCLEARTEXSUBIMAGE fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * data) { -// (*fnptr)(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data); -// } -// static void glowClientActiveTexture(GPCLIENTACTIVETEXTURE fnptr, GLenum texture) { -// (*fnptr)(texture); -// } -// static void glowClientActiveTextureARB(GPCLIENTACTIVETEXTUREARB fnptr, GLenum texture) { -// (*fnptr)(texture); -// } -// static void glowClientActiveVertexStreamATI(GPCLIENTACTIVEVERTEXSTREAMATI fnptr, GLenum stream) { -// (*fnptr)(stream); -// } -// static void glowClientAttribDefaultEXT(GPCLIENTATTRIBDEFAULTEXT fnptr, GLbitfield mask) { -// (*fnptr)(mask); -// } -// static GLenum glowClientWaitSync(GPCLIENTWAITSYNC fnptr, GLsync sync, GLbitfield flags, GLuint64 timeout) { -// return (*fnptr)(sync, flags, timeout); -// } -// static void glowClipControl(GPCLIPCONTROL fnptr, GLenum origin, GLenum depth) { -// (*fnptr)(origin, depth); -// } -// static void glowClipPlane(GPCLIPPLANE fnptr, GLenum plane, const GLdouble * equation) { -// (*fnptr)(plane, equation); -// } -// static void glowClipPlanefOES(GPCLIPPLANEFOES fnptr, GLenum plane, const GLfloat * equation) { -// (*fnptr)(plane, equation); -// } -// static void glowClipPlanexOES(GPCLIPPLANEXOES fnptr, GLenum plane, const GLfixed * equation) { -// (*fnptr)(plane, equation); -// } -// static void glowColor3b(GPCOLOR3B fnptr, GLbyte red, GLbyte green, GLbyte blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3bv(GPCOLOR3BV fnptr, const GLbyte * v) { -// (*fnptr)(v); -// } -// static void glowColor3d(GPCOLOR3D fnptr, GLdouble red, GLdouble green, GLdouble blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3dv(GPCOLOR3DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowColor3f(GPCOLOR3F fnptr, GLfloat red, GLfloat green, GLfloat blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3fVertex3fSUN(GPCOLOR3FVERTEX3FSUN fnptr, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(r, g, b, x, y, z); -// } -// static void glowColor3fVertex3fvSUN(GPCOLOR3FVERTEX3FVSUN fnptr, const GLfloat * c, const GLfloat * v) { -// (*fnptr)(c, v); -// } -// static void glowColor3fv(GPCOLOR3FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowColor3hNV(GPCOLOR3HNV fnptr, GLhalfNV red, GLhalfNV green, GLhalfNV blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3hvNV(GPCOLOR3HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowColor3i(GPCOLOR3I fnptr, GLint red, GLint green, GLint blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3iv(GPCOLOR3IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowColor3s(GPCOLOR3S fnptr, GLshort red, GLshort green, GLshort blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3sv(GPCOLOR3SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowColor3ub(GPCOLOR3UB fnptr, GLubyte red, GLubyte green, GLubyte blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3ubv(GPCOLOR3UBV fnptr, const GLubyte * v) { -// (*fnptr)(v); -// } -// static void glowColor3ui(GPCOLOR3UI fnptr, GLuint red, GLuint green, GLuint blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3uiv(GPCOLOR3UIV fnptr, const GLuint * v) { -// (*fnptr)(v); -// } -// static void glowColor3us(GPCOLOR3US fnptr, GLushort red, GLushort green, GLushort blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3usv(GPCOLOR3USV fnptr, const GLushort * v) { -// (*fnptr)(v); -// } -// static void glowColor3xOES(GPCOLOR3XOES fnptr, GLfixed red, GLfixed green, GLfixed blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowColor3xvOES(GPCOLOR3XVOES fnptr, const GLfixed * components) { -// (*fnptr)(components); -// } -// static void glowColor4b(GPCOLOR4B fnptr, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4bv(GPCOLOR4BV fnptr, const GLbyte * v) { -// (*fnptr)(v); -// } -// static void glowColor4d(GPCOLOR4D fnptr, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4dv(GPCOLOR4DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowColor4f(GPCOLOR4F fnptr, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4fNormal3fVertex3fSUN(GPCOLOR4FNORMAL3FVERTEX3FSUN fnptr, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(r, g, b, a, nx, ny, nz, x, y, z); -// } -// static void glowColor4fNormal3fVertex3fvSUN(GPCOLOR4FNORMAL3FVERTEX3FVSUN fnptr, const GLfloat * c, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(c, n, v); -// } -// static void glowColor4fv(GPCOLOR4FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowColor4hNV(GPCOLOR4HNV fnptr, GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4hvNV(GPCOLOR4HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowColor4i(GPCOLOR4I fnptr, GLint red, GLint green, GLint blue, GLint alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4iv(GPCOLOR4IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowColor4s(GPCOLOR4S fnptr, GLshort red, GLshort green, GLshort blue, GLshort alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4sv(GPCOLOR4SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowColor4ub(GPCOLOR4UB fnptr, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4ubVertex2fSUN(GPCOLOR4UBVERTEX2FSUN fnptr, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y) { -// (*fnptr)(r, g, b, a, x, y); -// } -// static void glowColor4ubVertex2fvSUN(GPCOLOR4UBVERTEX2FVSUN fnptr, const GLubyte * c, const GLfloat * v) { -// (*fnptr)(c, v); -// } -// static void glowColor4ubVertex3fSUN(GPCOLOR4UBVERTEX3FSUN fnptr, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(r, g, b, a, x, y, z); -// } -// static void glowColor4ubVertex3fvSUN(GPCOLOR4UBVERTEX3FVSUN fnptr, const GLubyte * c, const GLfloat * v) { -// (*fnptr)(c, v); -// } -// static void glowColor4ubv(GPCOLOR4UBV fnptr, const GLubyte * v) { -// (*fnptr)(v); -// } -// static void glowColor4ui(GPCOLOR4UI fnptr, GLuint red, GLuint green, GLuint blue, GLuint alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4uiv(GPCOLOR4UIV fnptr, const GLuint * v) { -// (*fnptr)(v); -// } -// static void glowColor4us(GPCOLOR4US fnptr, GLushort red, GLushort green, GLushort blue, GLushort alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4usv(GPCOLOR4USV fnptr, const GLushort * v) { -// (*fnptr)(v); -// } -// static void glowColor4xOES(GPCOLOR4XOES fnptr, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColor4xvOES(GPCOLOR4XVOES fnptr, const GLfixed * components) { -// (*fnptr)(components); -// } -// static void glowColorFormatNV(GPCOLORFORMATNV fnptr, GLint size, GLenum type, GLsizei stride) { -// (*fnptr)(size, type, stride); -// } -// static void glowColorFragmentOp1ATI(GPCOLORFRAGMENTOP1ATI fnptr, GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod) { -// (*fnptr)(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod); -// } -// static void glowColorFragmentOp2ATI(GPCOLORFRAGMENTOP2ATI fnptr, GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod) { -// (*fnptr)(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); -// } -// static void glowColorFragmentOp3ATI(GPCOLORFRAGMENTOP3ATI fnptr, GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod) { -// (*fnptr)(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); -// } -// static void glowColorMask(GPCOLORMASK fnptr, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowColorMaskIndexedEXT(GPCOLORMASKINDEXEDEXT fnptr, GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a) { -// (*fnptr)(index, r, g, b, a); -// } -// static void glowColorMaterial(GPCOLORMATERIAL fnptr, GLenum face, GLenum mode) { -// (*fnptr)(face, mode); -// } -// static void glowColorPointer(GPCOLORPOINTER fnptr, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(size, type, stride, pointer); -// } -// static void glowColorPointerEXT(GPCOLORPOINTEREXT fnptr, GLint size, GLenum type, GLsizei stride, GLsizei count, const void * pointer) { -// (*fnptr)(size, type, stride, count, pointer); -// } -// static void glowColorPointerListIBM(GPCOLORPOINTERLISTIBM fnptr, GLint size, GLenum type, GLint stride, const void ** pointer, GLint ptrstride) { -// (*fnptr)(size, type, stride, pointer, ptrstride); -// } -// static void glowColorPointervINTEL(GPCOLORPOINTERVINTEL fnptr, GLint size, GLenum type, const void ** pointer) { -// (*fnptr)(size, type, pointer); -// } -// static void glowColorSubTableEXT(GPCOLORSUBTABLEEXT fnptr, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void * data) { -// (*fnptr)(target, start, count, format, type, data); -// } -// static void glowColorTableEXT(GPCOLORTABLEEXT fnptr, GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void * table) { -// (*fnptr)(target, internalFormat, width, format, type, table); -// } -// static void glowColorTableParameterfvSGI(GPCOLORTABLEPARAMETERFVSGI fnptr, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowColorTableParameterivSGI(GPCOLORTABLEPARAMETERIVSGI fnptr, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowColorTableSGI(GPCOLORTABLESGI fnptr, GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void * table) { -// (*fnptr)(target, internalformat, width, format, type, table); -// } -// static void glowCombinerInputNV(GPCOMBINERINPUTNV fnptr, GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage) { -// (*fnptr)(stage, portion, variable, input, mapping, componentUsage); -// } -// static void glowCombinerOutputNV(GPCOMBINEROUTPUTNV fnptr, GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum) { -// (*fnptr)(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum); -// } -// static void glowCombinerParameterfNV(GPCOMBINERPARAMETERFNV fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowCombinerParameterfvNV(GPCOMBINERPARAMETERFVNV fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowCombinerParameteriNV(GPCOMBINERPARAMETERINV fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowCombinerParameterivNV(GPCOMBINERPARAMETERIVNV fnptr, GLenum pname, const GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowCombinerStageParameterfvNV(GPCOMBINERSTAGEPARAMETERFVNV fnptr, GLenum stage, GLenum pname, const GLfloat * params) { -// (*fnptr)(stage, pname, params); -// } -// static void glowCompileShader(GPCOMPILESHADER fnptr, GLuint shader) { -// (*fnptr)(shader); -// } -// static void glowCompileShaderARB(GPCOMPILESHADERARB fnptr, GLhandleARB shaderObj) { -// (*fnptr)(shaderObj); -// } -// static void glowCompileShaderIncludeARB(GPCOMPILESHADERINCLUDEARB fnptr, GLuint shader, GLsizei count, const GLchar *const* path, const GLint * length) { -// (*fnptr)(shader, count, path, length); -// } -// static void glowCompressedMultiTexImage1DEXT(GPCOMPRESSEDMULTITEXIMAGE1DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * bits) { -// (*fnptr)(texunit, target, level, internalformat, width, border, imageSize, bits); -// } -// static void glowCompressedMultiTexImage2DEXT(GPCOMPRESSEDMULTITEXIMAGE2DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * bits) { -// (*fnptr)(texunit, target, level, internalformat, width, height, border, imageSize, bits); -// } -// static void glowCompressedMultiTexImage3DEXT(GPCOMPRESSEDMULTITEXIMAGE3DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * bits) { -// (*fnptr)(texunit, target, level, internalformat, width, height, depth, border, imageSize, bits); -// } -// static void glowCompressedMultiTexSubImage1DEXT(GPCOMPRESSEDMULTITEXSUBIMAGE1DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * bits) { -// (*fnptr)(texunit, target, level, xoffset, width, format, imageSize, bits); -// } -// static void glowCompressedMultiTexSubImage2DEXT(GPCOMPRESSEDMULTITEXSUBIMAGE2DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * bits) { -// (*fnptr)(texunit, target, level, xoffset, yoffset, width, height, format, imageSize, bits); -// } -// static void glowCompressedMultiTexSubImage3DEXT(GPCOMPRESSEDMULTITEXSUBIMAGE3DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * bits) { -// (*fnptr)(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits); -// } -// static void glowCompressedTexImage1D(GPCOMPRESSEDTEXIMAGE1D fnptr, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, internalformat, width, border, imageSize, data); -// } -// static void glowCompressedTexImage1DARB(GPCOMPRESSEDTEXIMAGE1DARB fnptr, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, internalformat, width, border, imageSize, data); -// } -// static void glowCompressedTexImage2D(GPCOMPRESSEDTEXIMAGE2D fnptr, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, internalformat, width, height, border, imageSize, data); -// } -// static void glowCompressedTexImage2DARB(GPCOMPRESSEDTEXIMAGE2DARB fnptr, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, internalformat, width, height, border, imageSize, data); -// } -// static void glowCompressedTexImage3D(GPCOMPRESSEDTEXIMAGE3D fnptr, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, internalformat, width, height, depth, border, imageSize, data); -// } -// static void glowCompressedTexImage3DARB(GPCOMPRESSEDTEXIMAGE3DARB fnptr, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, internalformat, width, height, depth, border, imageSize, data); -// } -// static void glowCompressedTexSubImage1D(GPCOMPRESSEDTEXSUBIMAGE1D fnptr, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, xoffset, width, format, imageSize, data); -// } -// static void glowCompressedTexSubImage1DARB(GPCOMPRESSEDTEXSUBIMAGE1DARB fnptr, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, xoffset, width, format, imageSize, data); -// } -// static void glowCompressedTexSubImage2D(GPCOMPRESSEDTEXSUBIMAGE2D fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, xoffset, yoffset, width, height, format, imageSize, data); -// } -// static void glowCompressedTexSubImage2DARB(GPCOMPRESSEDTEXSUBIMAGE2DARB fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, xoffset, yoffset, width, height, format, imageSize, data); -// } -// static void glowCompressedTexSubImage3D(GPCOMPRESSEDTEXSUBIMAGE3D fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); -// } -// static void glowCompressedTexSubImage3DARB(GPCOMPRESSEDTEXSUBIMAGE3DARB fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); -// } -// static void glowCompressedTextureImage1DEXT(GPCOMPRESSEDTEXTUREIMAGE1DEXT fnptr, GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * bits) { -// (*fnptr)(texture, target, level, internalformat, width, border, imageSize, bits); -// } -// static void glowCompressedTextureImage2DEXT(GPCOMPRESSEDTEXTUREIMAGE2DEXT fnptr, GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * bits) { -// (*fnptr)(texture, target, level, internalformat, width, height, border, imageSize, bits); -// } -// static void glowCompressedTextureImage3DEXT(GPCOMPRESSEDTEXTUREIMAGE3DEXT fnptr, GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * bits) { -// (*fnptr)(texture, target, level, internalformat, width, height, depth, border, imageSize, bits); -// } -// static void glowCompressedTextureSubImage1D(GPCOMPRESSEDTEXTURESUBIMAGE1D fnptr, GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(texture, level, xoffset, width, format, imageSize, data); -// } -// static void glowCompressedTextureSubImage1DEXT(GPCOMPRESSEDTEXTURESUBIMAGE1DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * bits) { -// (*fnptr)(texture, target, level, xoffset, width, format, imageSize, bits); -// } -// static void glowCompressedTextureSubImage2D(GPCOMPRESSEDTEXTURESUBIMAGE2D fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(texture, level, xoffset, yoffset, width, height, format, imageSize, data); -// } -// static void glowCompressedTextureSubImage2DEXT(GPCOMPRESSEDTEXTURESUBIMAGE2DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * bits) { -// (*fnptr)(texture, target, level, xoffset, yoffset, width, height, format, imageSize, bits); -// } -// static void glowCompressedTextureSubImage3D(GPCOMPRESSEDTEXTURESUBIMAGE3D fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data) { -// (*fnptr)(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); -// } -// static void glowCompressedTextureSubImage3DEXT(GPCOMPRESSEDTEXTURESUBIMAGE3DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * bits) { -// (*fnptr)(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits); -// } -// static void glowConvolutionFilter1DEXT(GPCONVOLUTIONFILTER1DEXT fnptr, GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void * image) { -// (*fnptr)(target, internalformat, width, format, type, image); -// } -// static void glowConvolutionFilter2DEXT(GPCONVOLUTIONFILTER2DEXT fnptr, GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * image) { -// (*fnptr)(target, internalformat, width, height, format, type, image); -// } -// static void glowConvolutionParameterfEXT(GPCONVOLUTIONPARAMETERFEXT fnptr, GLenum target, GLenum pname, GLfloat params) { -// (*fnptr)(target, pname, params); -// } -// static void glowConvolutionParameterfvEXT(GPCONVOLUTIONPARAMETERFVEXT fnptr, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowConvolutionParameteriEXT(GPCONVOLUTIONPARAMETERIEXT fnptr, GLenum target, GLenum pname, GLint params) { -// (*fnptr)(target, pname, params); -// } -// static void glowConvolutionParameterivEXT(GPCONVOLUTIONPARAMETERIVEXT fnptr, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowConvolutionParameterxOES(GPCONVOLUTIONPARAMETERXOES fnptr, GLenum target, GLenum pname, GLfixed param) { -// (*fnptr)(target, pname, param); -// } -// static void glowConvolutionParameterxvOES(GPCONVOLUTIONPARAMETERXVOES fnptr, GLenum target, GLenum pname, const GLfixed * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowCopyBufferSubData(GPCOPYBUFFERSUBDATA fnptr, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) { -// (*fnptr)(readTarget, writeTarget, readOffset, writeOffset, size); -// } -// static void glowCopyColorSubTableEXT(GPCOPYCOLORSUBTABLEEXT fnptr, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width) { -// (*fnptr)(target, start, x, y, width); -// } -// static void glowCopyColorTableSGI(GPCOPYCOLORTABLESGI fnptr, GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width) { -// (*fnptr)(target, internalformat, x, y, width); -// } -// static void glowCopyConvolutionFilter1DEXT(GPCOPYCONVOLUTIONFILTER1DEXT fnptr, GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width) { -// (*fnptr)(target, internalformat, x, y, width); -// } -// static void glowCopyConvolutionFilter2DEXT(GPCOPYCONVOLUTIONFILTER2DEXT fnptr, GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(target, internalformat, x, y, width, height); -// } -// static void glowCopyImageSubData(GPCOPYIMAGESUBDATA fnptr, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth) { -// (*fnptr)(srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth); -// } -// static void glowCopyImageSubDataNV(GPCOPYIMAGESUBDATANV fnptr, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth) { -// (*fnptr)(srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth); -// } -// static void glowCopyMultiTexImage1DEXT(GPCOPYMULTITEXIMAGE1DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) { -// (*fnptr)(texunit, target, level, internalformat, x, y, width, border); -// } -// static void glowCopyMultiTexImage2DEXT(GPCOPYMULTITEXIMAGE2DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) { -// (*fnptr)(texunit, target, level, internalformat, x, y, width, height, border); -// } -// static void glowCopyMultiTexSubImage1DEXT(GPCOPYMULTITEXSUBIMAGE1DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) { -// (*fnptr)(texunit, target, level, xoffset, x, y, width); -// } -// static void glowCopyMultiTexSubImage2DEXT(GPCOPYMULTITEXSUBIMAGE2DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(texunit, target, level, xoffset, yoffset, x, y, width, height); -// } -// static void glowCopyMultiTexSubImage3DEXT(GPCOPYMULTITEXSUBIMAGE3DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(texunit, target, level, xoffset, yoffset, zoffset, x, y, width, height); -// } -// static void glowCopyNamedBufferSubData(GPCOPYNAMEDBUFFERSUBDATA fnptr, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizei size) { -// (*fnptr)(readBuffer, writeBuffer, readOffset, writeOffset, size); -// } -// static void glowCopyPathNV(GPCOPYPATHNV fnptr, GLuint resultPath, GLuint srcPath) { -// (*fnptr)(resultPath, srcPath); -// } -// static void glowCopyPixels(GPCOPYPIXELS fnptr, GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) { -// (*fnptr)(x, y, width, height, type); -// } -// static void glowCopyTexImage1D(GPCOPYTEXIMAGE1D fnptr, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) { -// (*fnptr)(target, level, internalformat, x, y, width, border); -// } -// static void glowCopyTexImage1DEXT(GPCOPYTEXIMAGE1DEXT fnptr, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) { -// (*fnptr)(target, level, internalformat, x, y, width, border); -// } -// static void glowCopyTexImage2D(GPCOPYTEXIMAGE2D fnptr, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) { -// (*fnptr)(target, level, internalformat, x, y, width, height, border); -// } -// static void glowCopyTexImage2DEXT(GPCOPYTEXIMAGE2DEXT fnptr, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) { -// (*fnptr)(target, level, internalformat, x, y, width, height, border); -// } -// static void glowCopyTexSubImage1D(GPCOPYTEXSUBIMAGE1D fnptr, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) { -// (*fnptr)(target, level, xoffset, x, y, width); -// } -// static void glowCopyTexSubImage1DEXT(GPCOPYTEXSUBIMAGE1DEXT fnptr, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) { -// (*fnptr)(target, level, xoffset, x, y, width); -// } -// static void glowCopyTexSubImage2D(GPCOPYTEXSUBIMAGE2D fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(target, level, xoffset, yoffset, x, y, width, height); -// } -// static void glowCopyTexSubImage2DEXT(GPCOPYTEXSUBIMAGE2DEXT fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(target, level, xoffset, yoffset, x, y, width, height); -// } -// static void glowCopyTexSubImage3D(GPCOPYTEXSUBIMAGE3D fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(target, level, xoffset, yoffset, zoffset, x, y, width, height); -// } -// static void glowCopyTexSubImage3DEXT(GPCOPYTEXSUBIMAGE3DEXT fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(target, level, xoffset, yoffset, zoffset, x, y, width, height); -// } -// static void glowCopyTextureImage1DEXT(GPCOPYTEXTUREIMAGE1DEXT fnptr, GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) { -// (*fnptr)(texture, target, level, internalformat, x, y, width, border); -// } -// static void glowCopyTextureImage2DEXT(GPCOPYTEXTUREIMAGE2DEXT fnptr, GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) { -// (*fnptr)(texture, target, level, internalformat, x, y, width, height, border); -// } -// static void glowCopyTextureSubImage1D(GPCOPYTEXTURESUBIMAGE1D fnptr, GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) { -// (*fnptr)(texture, level, xoffset, x, y, width); -// } -// static void glowCopyTextureSubImage1DEXT(GPCOPYTEXTURESUBIMAGE1DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) { -// (*fnptr)(texture, target, level, xoffset, x, y, width); -// } -// static void glowCopyTextureSubImage2D(GPCOPYTEXTURESUBIMAGE2D fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(texture, level, xoffset, yoffset, x, y, width, height); -// } -// static void glowCopyTextureSubImage2DEXT(GPCOPYTEXTURESUBIMAGE2DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(texture, target, level, xoffset, yoffset, x, y, width, height); -// } -// static void glowCopyTextureSubImage3D(GPCOPYTEXTURESUBIMAGE3D fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(texture, level, xoffset, yoffset, zoffset, x, y, width, height); -// } -// static void glowCopyTextureSubImage3DEXT(GPCOPYTEXTURESUBIMAGE3DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(texture, target, level, xoffset, yoffset, zoffset, x, y, width, height); -// } -// static void glowCoverFillPathInstancedNV(GPCOVERFILLPATHINSTANCEDNV fnptr, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat * transformValues) { -// (*fnptr)(numPaths, pathNameType, paths, pathBase, coverMode, transformType, transformValues); -// } -// static void glowCoverFillPathNV(GPCOVERFILLPATHNV fnptr, GLuint path, GLenum coverMode) { -// (*fnptr)(path, coverMode); -// } -// static void glowCoverStrokePathInstancedNV(GPCOVERSTROKEPATHINSTANCEDNV fnptr, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat * transformValues) { -// (*fnptr)(numPaths, pathNameType, paths, pathBase, coverMode, transformType, transformValues); -// } -// static void glowCoverStrokePathNV(GPCOVERSTROKEPATHNV fnptr, GLuint path, GLenum coverMode) { -// (*fnptr)(path, coverMode); -// } -// static void glowCreateBuffers(GPCREATEBUFFERS fnptr, GLsizei n, GLuint * buffers) { -// (*fnptr)(n, buffers); -// } -// static void glowCreateFramebuffers(GPCREATEFRAMEBUFFERS fnptr, GLsizei n, GLuint * framebuffers) { -// (*fnptr)(n, framebuffers); -// } -// static void glowCreatePerfQueryINTEL(GPCREATEPERFQUERYINTEL fnptr, GLuint queryId, GLuint * queryHandle) { -// (*fnptr)(queryId, queryHandle); -// } -// static GLuint glowCreateProgram(GPCREATEPROGRAM fnptr) { -// return (*fnptr)(); -// } -// static GLhandleARB glowCreateProgramObjectARB(GPCREATEPROGRAMOBJECTARB fnptr) { -// return (*fnptr)(); -// } -// static void glowCreateProgramPipelines(GPCREATEPROGRAMPIPELINES fnptr, GLsizei n, GLuint * pipelines) { -// (*fnptr)(n, pipelines); -// } -// static void glowCreateQueries(GPCREATEQUERIES fnptr, GLenum target, GLsizei n, GLuint * ids) { -// (*fnptr)(target, n, ids); -// } -// static void glowCreateRenderbuffers(GPCREATERENDERBUFFERS fnptr, GLsizei n, GLuint * renderbuffers) { -// (*fnptr)(n, renderbuffers); -// } -// static void glowCreateSamplers(GPCREATESAMPLERS fnptr, GLsizei n, GLuint * samplers) { -// (*fnptr)(n, samplers); -// } -// static GLuint glowCreateShader(GPCREATESHADER fnptr, GLenum type) { -// return (*fnptr)(type); -// } -// static GLhandleARB glowCreateShaderObjectARB(GPCREATESHADEROBJECTARB fnptr, GLenum shaderType) { -// return (*fnptr)(shaderType); -// } -// static GLuint glowCreateShaderProgramEXT(GPCREATESHADERPROGRAMEXT fnptr, GLenum type, const GLchar * string) { -// return (*fnptr)(type, string); -// } -// static GLuint glowCreateShaderProgramv(GPCREATESHADERPROGRAMV fnptr, GLenum type, GLsizei count, const GLchar *const* strings) { -// return (*fnptr)(type, count, strings); -// } -// static GLuint glowCreateShaderProgramvEXT(GPCREATESHADERPROGRAMVEXT fnptr, GLenum type, GLsizei count, const GLchar ** strings) { -// return (*fnptr)(type, count, strings); -// } -// static GLsync glowCreateSyncFromCLeventARB(GPCREATESYNCFROMCLEVENTARB fnptr, struct _cl_context * context, struct _cl_event * event, GLbitfield flags) { -// return (*fnptr)(context, event, flags); -// } -// static void glowCreateTextures(GPCREATETEXTURES fnptr, GLenum target, GLsizei n, GLuint * textures) { -// (*fnptr)(target, n, textures); -// } -// static void glowCreateTransformFeedbacks(GPCREATETRANSFORMFEEDBACKS fnptr, GLsizei n, GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowCreateVertexArrays(GPCREATEVERTEXARRAYS fnptr, GLsizei n, GLuint * arrays) { -// (*fnptr)(n, arrays); -// } -// static void glowCullFace(GPCULLFACE fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowCullParameterdvEXT(GPCULLPARAMETERDVEXT fnptr, GLenum pname, GLdouble * params) { -// (*fnptr)(pname, params); -// } -// static void glowCullParameterfvEXT(GPCULLPARAMETERFVEXT fnptr, GLenum pname, GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowCurrentPaletteMatrixARB(GPCURRENTPALETTEMATRIXARB fnptr, GLint index) { -// (*fnptr)(index); -// } -// static void glowDebugMessageCallback(GPDEBUGMESSAGECALLBACK fnptr, GLDEBUGPROC callback, const void * userParam) { -// (*fnptr)(glowCDebugCallback, userParam); -// } -// static void glowDebugMessageCallbackAMD(GPDEBUGMESSAGECALLBACKAMD fnptr, GLDEBUGPROCAMD callback, void * userParam) { -// (*fnptr)(callback, userParam); -// } -// static void glowDebugMessageCallbackARB(GPDEBUGMESSAGECALLBACKARB fnptr, GLDEBUGPROCARB callback, const void * userParam) { -// (*fnptr)(glowCDebugCallback, userParam); -// } -// static void glowDebugMessageCallbackKHR(GPDEBUGMESSAGECALLBACKKHR fnptr, GLDEBUGPROCKHR callback, const void * userParam) { -// (*fnptr)(glowCDebugCallback, userParam); -// } -// static void glowDebugMessageControl(GPDEBUGMESSAGECONTROL fnptr, GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled) { -// (*fnptr)(source, type, severity, count, ids, enabled); -// } -// static void glowDebugMessageControlARB(GPDEBUGMESSAGECONTROLARB fnptr, GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled) { -// (*fnptr)(source, type, severity, count, ids, enabled); -// } -// static void glowDebugMessageControlKHR(GPDEBUGMESSAGECONTROLKHR fnptr, GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled) { -// (*fnptr)(source, type, severity, count, ids, enabled); -// } -// static void glowDebugMessageEnableAMD(GPDEBUGMESSAGEENABLEAMD fnptr, GLenum category, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled) { -// (*fnptr)(category, severity, count, ids, enabled); -// } -// static void glowDebugMessageInsert(GPDEBUGMESSAGEINSERT fnptr, GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf) { -// (*fnptr)(source, type, id, severity, length, buf); -// } -// static void glowDebugMessageInsertAMD(GPDEBUGMESSAGEINSERTAMD fnptr, GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar * buf) { -// (*fnptr)(category, severity, id, length, buf); -// } -// static void glowDebugMessageInsertARB(GPDEBUGMESSAGEINSERTARB fnptr, GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf) { -// (*fnptr)(source, type, id, severity, length, buf); -// } -// static void glowDebugMessageInsertKHR(GPDEBUGMESSAGEINSERTKHR fnptr, GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf) { -// (*fnptr)(source, type, id, severity, length, buf); -// } -// static void glowDeformSGIX(GPDEFORMSGIX fnptr, GLbitfield mask) { -// (*fnptr)(mask); -// } -// static void glowDeformationMap3dSGIX(GPDEFORMATIONMAP3DSGIX fnptr, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble * points) { -// (*fnptr)(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points); -// } -// static void glowDeformationMap3fSGIX(GPDEFORMATIONMAP3FSGIX fnptr, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat * points) { -// (*fnptr)(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points); -// } -// static void glowDeleteAsyncMarkersSGIX(GPDELETEASYNCMARKERSSGIX fnptr, GLuint marker, GLsizei range) { -// (*fnptr)(marker, range); -// } -// static void glowDeleteBuffers(GPDELETEBUFFERS fnptr, GLsizei n, const GLuint * buffers) { -// (*fnptr)(n, buffers); -// } -// static void glowDeleteBuffersARB(GPDELETEBUFFERSARB fnptr, GLsizei n, const GLuint * buffers) { -// (*fnptr)(n, buffers); -// } -// static void glowDeleteFencesAPPLE(GPDELETEFENCESAPPLE fnptr, GLsizei n, const GLuint * fences) { -// (*fnptr)(n, fences); -// } -// static void glowDeleteFencesNV(GPDELETEFENCESNV fnptr, GLsizei n, const GLuint * fences) { -// (*fnptr)(n, fences); -// } -// static void glowDeleteFragmentShaderATI(GPDELETEFRAGMENTSHADERATI fnptr, GLuint id) { -// (*fnptr)(id); -// } -// static void glowDeleteFramebuffers(GPDELETEFRAMEBUFFERS fnptr, GLsizei n, const GLuint * framebuffers) { -// (*fnptr)(n, framebuffers); -// } -// static void glowDeleteFramebuffersEXT(GPDELETEFRAMEBUFFERSEXT fnptr, GLsizei n, const GLuint * framebuffers) { -// (*fnptr)(n, framebuffers); -// } -// static void glowDeleteLists(GPDELETELISTS fnptr, GLuint list, GLsizei range) { -// (*fnptr)(list, range); -// } -// static void glowDeleteNamedStringARB(GPDELETENAMEDSTRINGARB fnptr, GLint namelen, const GLchar * name) { -// (*fnptr)(namelen, name); -// } -// static void glowDeleteNamesAMD(GPDELETENAMESAMD fnptr, GLenum identifier, GLuint num, const GLuint * names) { -// (*fnptr)(identifier, num, names); -// } -// static void glowDeleteObjectARB(GPDELETEOBJECTARB fnptr, GLhandleARB obj) { -// (*fnptr)(obj); -// } -// static void glowDeleteOcclusionQueriesNV(GPDELETEOCCLUSIONQUERIESNV fnptr, GLsizei n, const GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowDeletePathsNV(GPDELETEPATHSNV fnptr, GLuint path, GLsizei range) { -// (*fnptr)(path, range); -// } -// static void glowDeletePerfMonitorsAMD(GPDELETEPERFMONITORSAMD fnptr, GLsizei n, GLuint * monitors) { -// (*fnptr)(n, monitors); -// } -// static void glowDeletePerfQueryINTEL(GPDELETEPERFQUERYINTEL fnptr, GLuint queryHandle) { -// (*fnptr)(queryHandle); -// } -// static void glowDeleteProgram(GPDELETEPROGRAM fnptr, GLuint program) { -// (*fnptr)(program); -// } -// static void glowDeleteProgramPipelines(GPDELETEPROGRAMPIPELINES fnptr, GLsizei n, const GLuint * pipelines) { -// (*fnptr)(n, pipelines); -// } -// static void glowDeleteProgramPipelinesEXT(GPDELETEPROGRAMPIPELINESEXT fnptr, GLsizei n, const GLuint * pipelines) { -// (*fnptr)(n, pipelines); -// } -// static void glowDeleteProgramsARB(GPDELETEPROGRAMSARB fnptr, GLsizei n, const GLuint * programs) { -// (*fnptr)(n, programs); -// } -// static void glowDeleteProgramsNV(GPDELETEPROGRAMSNV fnptr, GLsizei n, const GLuint * programs) { -// (*fnptr)(n, programs); -// } -// static void glowDeleteQueries(GPDELETEQUERIES fnptr, GLsizei n, const GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowDeleteQueriesARB(GPDELETEQUERIESARB fnptr, GLsizei n, const GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowDeleteRenderbuffers(GPDELETERENDERBUFFERS fnptr, GLsizei n, const GLuint * renderbuffers) { -// (*fnptr)(n, renderbuffers); -// } -// static void glowDeleteRenderbuffersEXT(GPDELETERENDERBUFFERSEXT fnptr, GLsizei n, const GLuint * renderbuffers) { -// (*fnptr)(n, renderbuffers); -// } -// static void glowDeleteSamplers(GPDELETESAMPLERS fnptr, GLsizei count, const GLuint * samplers) { -// (*fnptr)(count, samplers); -// } -// static void glowDeleteShader(GPDELETESHADER fnptr, GLuint shader) { -// (*fnptr)(shader); -// } -// static void glowDeleteSync(GPDELETESYNC fnptr, GLsync sync) { -// (*fnptr)(sync); -// } -// static void glowDeleteTextures(GPDELETETEXTURES fnptr, GLsizei n, const GLuint * textures) { -// (*fnptr)(n, textures); -// } -// static void glowDeleteTexturesEXT(GPDELETETEXTURESEXT fnptr, GLsizei n, const GLuint * textures) { -// (*fnptr)(n, textures); -// } -// static void glowDeleteTransformFeedbacks(GPDELETETRANSFORMFEEDBACKS fnptr, GLsizei n, const GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowDeleteTransformFeedbacksNV(GPDELETETRANSFORMFEEDBACKSNV fnptr, GLsizei n, const GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowDeleteVertexArrays(GPDELETEVERTEXARRAYS fnptr, GLsizei n, const GLuint * arrays) { -// (*fnptr)(n, arrays); -// } -// static void glowDeleteVertexArraysAPPLE(GPDELETEVERTEXARRAYSAPPLE fnptr, GLsizei n, const GLuint * arrays) { -// (*fnptr)(n, arrays); -// } -// static void glowDeleteVertexShaderEXT(GPDELETEVERTEXSHADEREXT fnptr, GLuint id) { -// (*fnptr)(id); -// } -// static void glowDepthBoundsEXT(GPDEPTHBOUNDSEXT fnptr, GLclampd zmin, GLclampd zmax) { -// (*fnptr)(zmin, zmax); -// } -// static void glowDepthBoundsdNV(GPDEPTHBOUNDSDNV fnptr, GLdouble zmin, GLdouble zmax) { -// (*fnptr)(zmin, zmax); -// } -// static void glowDepthFunc(GPDEPTHFUNC fnptr, GLenum func) { -// (*fnptr)(func); -// } -// static void glowDepthMask(GPDEPTHMASK fnptr, GLboolean flag) { -// (*fnptr)(flag); -// } -// static void glowDepthRange(GPDEPTHRANGE fnptr, GLdouble xnear, GLdouble xfar) { -// (*fnptr)(xnear, xfar); -// } -// static void glowDepthRangeArrayv(GPDEPTHRANGEARRAYV fnptr, GLuint first, GLsizei count, const GLdouble * v) { -// (*fnptr)(first, count, v); -// } -// static void glowDepthRangeIndexed(GPDEPTHRANGEINDEXED fnptr, GLuint index, GLdouble n, GLdouble f) { -// (*fnptr)(index, n, f); -// } -// static void glowDepthRangedNV(GPDEPTHRANGEDNV fnptr, GLdouble zNear, GLdouble zFar) { -// (*fnptr)(zNear, zFar); -// } -// static void glowDepthRangef(GPDEPTHRANGEF fnptr, GLfloat n, GLfloat f) { -// (*fnptr)(n, f); -// } -// static void glowDepthRangefOES(GPDEPTHRANGEFOES fnptr, GLclampf n, GLclampf f) { -// (*fnptr)(n, f); -// } -// static void glowDepthRangexOES(GPDEPTHRANGEXOES fnptr, GLfixed n, GLfixed f) { -// (*fnptr)(n, f); -// } -// static void glowDetachObjectARB(GPDETACHOBJECTARB fnptr, GLhandleARB containerObj, GLhandleARB attachedObj) { -// (*fnptr)(containerObj, attachedObj); -// } -// static void glowDetachShader(GPDETACHSHADER fnptr, GLuint program, GLuint shader) { -// (*fnptr)(program, shader); -// } -// static void glowDetailTexFuncSGIS(GPDETAILTEXFUNCSGIS fnptr, GLenum target, GLsizei n, const GLfloat * points) { -// (*fnptr)(target, n, points); -// } -// static void glowDisable(GPDISABLE fnptr, GLenum cap) { -// (*fnptr)(cap); -// } -// static void glowDisableClientState(GPDISABLECLIENTSTATE fnptr, GLenum array) { -// (*fnptr)(array); -// } -// static void glowDisableClientStateIndexedEXT(GPDISABLECLIENTSTATEINDEXEDEXT fnptr, GLenum array, GLuint index) { -// (*fnptr)(array, index); -// } -// static void glowDisableClientStateiEXT(GPDISABLECLIENTSTATEIEXT fnptr, GLenum array, GLuint index) { -// (*fnptr)(array, index); -// } -// static void glowDisableIndexedEXT(GPDISABLEINDEXEDEXT fnptr, GLenum target, GLuint index) { -// (*fnptr)(target, index); -// } -// static void glowDisableVariantClientStateEXT(GPDISABLEVARIANTCLIENTSTATEEXT fnptr, GLuint id) { -// (*fnptr)(id); -// } -// static void glowDisableVertexArrayAttrib(GPDISABLEVERTEXARRAYATTRIB fnptr, GLuint vaobj, GLuint index) { -// (*fnptr)(vaobj, index); -// } -// static void glowDisableVertexArrayAttribEXT(GPDISABLEVERTEXARRAYATTRIBEXT fnptr, GLuint vaobj, GLuint index) { -// (*fnptr)(vaobj, index); -// } -// static void glowDisableVertexArrayEXT(GPDISABLEVERTEXARRAYEXT fnptr, GLuint vaobj, GLenum array) { -// (*fnptr)(vaobj, array); -// } -// static void glowDisableVertexAttribAPPLE(GPDISABLEVERTEXATTRIBAPPLE fnptr, GLuint index, GLenum pname) { -// (*fnptr)(index, pname); -// } -// static void glowDisableVertexAttribArray(GPDISABLEVERTEXATTRIBARRAY fnptr, GLuint index) { -// (*fnptr)(index); -// } -// static void glowDisableVertexAttribArrayARB(GPDISABLEVERTEXATTRIBARRAYARB fnptr, GLuint index) { -// (*fnptr)(index); -// } -// static void glowDispatchCompute(GPDISPATCHCOMPUTE fnptr, GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z) { -// (*fnptr)(num_groups_x, num_groups_y, num_groups_z); -// } -// static void glowDispatchComputeGroupSizeARB(GPDISPATCHCOMPUTEGROUPSIZEARB fnptr, GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z) { -// (*fnptr)(num_groups_x, num_groups_y, num_groups_z, group_size_x, group_size_y, group_size_z); -// } -// static void glowDispatchComputeIndirect(GPDISPATCHCOMPUTEINDIRECT fnptr, GLintptr indirect) { -// (*fnptr)(indirect); -// } -// static void glowDrawArrays(GPDRAWARRAYS fnptr, GLenum mode, GLint first, GLsizei count) { -// (*fnptr)(mode, first, count); -// } -// static void glowDrawArraysEXT(GPDRAWARRAYSEXT fnptr, GLenum mode, GLint first, GLsizei count) { -// (*fnptr)(mode, first, count); -// } -// static void glowDrawArraysIndirect(GPDRAWARRAYSINDIRECT fnptr, GLenum mode, const void * indirect) { -// (*fnptr)(mode, indirect); -// } -// static void glowDrawArraysInstancedARB(GPDRAWARRAYSINSTANCEDARB fnptr, GLenum mode, GLint first, GLsizei count, GLsizei primcount) { -// (*fnptr)(mode, first, count, primcount); -// } -// static void glowDrawArraysInstancedBaseInstance(GPDRAWARRAYSINSTANCEDBASEINSTANCE fnptr, GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance) { -// (*fnptr)(mode, first, count, instancecount, baseinstance); -// } -// static void glowDrawArraysInstancedEXT(GPDRAWARRAYSINSTANCEDEXT fnptr, GLenum mode, GLint start, GLsizei count, GLsizei primcount) { -// (*fnptr)(mode, start, count, primcount); -// } -// static void glowDrawBuffer(GPDRAWBUFFER fnptr, GLenum buf) { -// (*fnptr)(buf); -// } -// static void glowDrawBuffers(GPDRAWBUFFERS fnptr, GLsizei n, const GLenum * bufs) { -// (*fnptr)(n, bufs); -// } -// static void glowDrawBuffersARB(GPDRAWBUFFERSARB fnptr, GLsizei n, const GLenum * bufs) { -// (*fnptr)(n, bufs); -// } -// static void glowDrawBuffersATI(GPDRAWBUFFERSATI fnptr, GLsizei n, const GLenum * bufs) { -// (*fnptr)(n, bufs); -// } -// static void glowDrawElementArrayAPPLE(GPDRAWELEMENTARRAYAPPLE fnptr, GLenum mode, GLint first, GLsizei count) { -// (*fnptr)(mode, first, count); -// } -// static void glowDrawElementArrayATI(GPDRAWELEMENTARRAYATI fnptr, GLenum mode, GLsizei count) { -// (*fnptr)(mode, count); -// } -// static void glowDrawElements(GPDRAWELEMENTS fnptr, GLenum mode, GLsizei count, GLenum type, const void * indices) { -// (*fnptr)(mode, count, type, indices); -// } -// static void glowDrawElementsBaseVertex(GPDRAWELEMENTSBASEVERTEX fnptr, GLenum mode, GLsizei count, GLenum type, const void * indices, GLint basevertex) { -// (*fnptr)(mode, count, type, indices, basevertex); -// } -// static void glowDrawElementsIndirect(GPDRAWELEMENTSINDIRECT fnptr, GLenum mode, GLenum type, const void * indirect) { -// (*fnptr)(mode, type, indirect); -// } -// static void glowDrawElementsInstancedARB(GPDRAWELEMENTSINSTANCEDARB fnptr, GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount) { -// (*fnptr)(mode, count, type, indices, primcount); -// } -// static void glowDrawElementsInstancedBaseInstance(GPDRAWELEMENTSINSTANCEDBASEINSTANCE fnptr, GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLuint baseinstance) { -// (*fnptr)(mode, count, type, indices, instancecount, baseinstance); -// } -// static void glowDrawElementsInstancedBaseVertex(GPDRAWELEMENTSINSTANCEDBASEVERTEX fnptr, GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLint basevertex) { -// (*fnptr)(mode, count, type, indices, instancecount, basevertex); -// } -// static void glowDrawElementsInstancedBaseVertexBaseInstance(GPDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE fnptr, GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance) { -// (*fnptr)(mode, count, type, indices, instancecount, basevertex, baseinstance); -// } -// static void glowDrawElementsInstancedEXT(GPDRAWELEMENTSINSTANCEDEXT fnptr, GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount) { -// (*fnptr)(mode, count, type, indices, primcount); -// } -// static void glowDrawMeshArraysSUN(GPDRAWMESHARRAYSSUN fnptr, GLenum mode, GLint first, GLsizei count, GLsizei width) { -// (*fnptr)(mode, first, count, width); -// } -// static void glowDrawPixels(GPDRAWPIXELS fnptr, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(width, height, format, type, pixels); -// } -// static void glowDrawRangeElementArrayAPPLE(GPDRAWRANGEELEMENTARRAYAPPLE fnptr, GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count) { -// (*fnptr)(mode, start, end, first, count); -// } -// static void glowDrawRangeElementArrayATI(GPDRAWRANGEELEMENTARRAYATI fnptr, GLenum mode, GLuint start, GLuint end, GLsizei count) { -// (*fnptr)(mode, start, end, count); -// } -// static void glowDrawRangeElements(GPDRAWRANGEELEMENTS fnptr, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices) { -// (*fnptr)(mode, start, end, count, type, indices); -// } -// static void glowDrawRangeElementsBaseVertex(GPDRAWRANGEELEMENTSBASEVERTEX fnptr, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices, GLint basevertex) { -// (*fnptr)(mode, start, end, count, type, indices, basevertex); -// } -// static void glowDrawRangeElementsEXT(GPDRAWRANGEELEMENTSEXT fnptr, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices) { -// (*fnptr)(mode, start, end, count, type, indices); -// } -// static void glowDrawTextureNV(GPDRAWTEXTURENV fnptr, GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1) { -// (*fnptr)(texture, sampler, x0, y0, x1, y1, z, s0, t0, s1, t1); -// } -// static void glowDrawTransformFeedback(GPDRAWTRANSFORMFEEDBACK fnptr, GLenum mode, GLuint id) { -// (*fnptr)(mode, id); -// } -// static void glowDrawTransformFeedbackInstanced(GPDRAWTRANSFORMFEEDBACKINSTANCED fnptr, GLenum mode, GLuint id, GLsizei instancecount) { -// (*fnptr)(mode, id, instancecount); -// } -// static void glowDrawTransformFeedbackNV(GPDRAWTRANSFORMFEEDBACKNV fnptr, GLenum mode, GLuint id) { -// (*fnptr)(mode, id); -// } -// static void glowDrawTransformFeedbackStream(GPDRAWTRANSFORMFEEDBACKSTREAM fnptr, GLenum mode, GLuint id, GLuint stream) { -// (*fnptr)(mode, id, stream); -// } -// static void glowDrawTransformFeedbackStreamInstanced(GPDRAWTRANSFORMFEEDBACKSTREAMINSTANCED fnptr, GLenum mode, GLuint id, GLuint stream, GLsizei instancecount) { -// (*fnptr)(mode, id, stream, instancecount); -// } -// static void glowEdgeFlag(GPEDGEFLAG fnptr, GLboolean flag) { -// (*fnptr)(flag); -// } -// static void glowEdgeFlagFormatNV(GPEDGEFLAGFORMATNV fnptr, GLsizei stride) { -// (*fnptr)(stride); -// } -// static void glowEdgeFlagPointer(GPEDGEFLAGPOINTER fnptr, GLsizei stride, const void * pointer) { -// (*fnptr)(stride, pointer); -// } -// static void glowEdgeFlagPointerEXT(GPEDGEFLAGPOINTEREXT fnptr, GLsizei stride, GLsizei count, const GLboolean * pointer) { -// (*fnptr)(stride, count, pointer); -// } -// static void glowEdgeFlagPointerListIBM(GPEDGEFLAGPOINTERLISTIBM fnptr, GLint stride, const GLboolean ** pointer, GLint ptrstride) { -// (*fnptr)(stride, pointer, ptrstride); -// } -// static void glowEdgeFlagv(GPEDGEFLAGV fnptr, const GLboolean * flag) { -// (*fnptr)(flag); -// } -// static void glowElementPointerAPPLE(GPELEMENTPOINTERAPPLE fnptr, GLenum type, const void * pointer) { -// (*fnptr)(type, pointer); -// } -// static void glowElementPointerATI(GPELEMENTPOINTERATI fnptr, GLenum type, const void * pointer) { -// (*fnptr)(type, pointer); -// } -// static void glowEnable(GPENABLE fnptr, GLenum cap) { -// (*fnptr)(cap); -// } -// static void glowEnableClientState(GPENABLECLIENTSTATE fnptr, GLenum array) { -// (*fnptr)(array); -// } -// static void glowEnableClientStateIndexedEXT(GPENABLECLIENTSTATEINDEXEDEXT fnptr, GLenum array, GLuint index) { -// (*fnptr)(array, index); -// } -// static void glowEnableClientStateiEXT(GPENABLECLIENTSTATEIEXT fnptr, GLenum array, GLuint index) { -// (*fnptr)(array, index); -// } -// static void glowEnableIndexedEXT(GPENABLEINDEXEDEXT fnptr, GLenum target, GLuint index) { -// (*fnptr)(target, index); -// } -// static void glowEnableVariantClientStateEXT(GPENABLEVARIANTCLIENTSTATEEXT fnptr, GLuint id) { -// (*fnptr)(id); -// } -// static void glowEnableVertexArrayAttrib(GPENABLEVERTEXARRAYATTRIB fnptr, GLuint vaobj, GLuint index) { -// (*fnptr)(vaobj, index); -// } -// static void glowEnableVertexArrayAttribEXT(GPENABLEVERTEXARRAYATTRIBEXT fnptr, GLuint vaobj, GLuint index) { -// (*fnptr)(vaobj, index); -// } -// static void glowEnableVertexArrayEXT(GPENABLEVERTEXARRAYEXT fnptr, GLuint vaobj, GLenum array) { -// (*fnptr)(vaobj, array); -// } -// static void glowEnableVertexAttribAPPLE(GPENABLEVERTEXATTRIBAPPLE fnptr, GLuint index, GLenum pname) { -// (*fnptr)(index, pname); -// } -// static void glowEnableVertexAttribArray(GPENABLEVERTEXATTRIBARRAY fnptr, GLuint index) { -// (*fnptr)(index); -// } -// static void glowEnableVertexAttribArrayARB(GPENABLEVERTEXATTRIBARRAYARB fnptr, GLuint index) { -// (*fnptr)(index); -// } -// static void glowEnd(GPEND fnptr) { -// (*fnptr)(); -// } -// static void glowEndConditionalRenderNV(GPENDCONDITIONALRENDERNV fnptr) { -// (*fnptr)(); -// } -// static void glowEndConditionalRenderNVX(GPENDCONDITIONALRENDERNVX fnptr) { -// (*fnptr)(); -// } -// static void glowEndFragmentShaderATI(GPENDFRAGMENTSHADERATI fnptr) { -// (*fnptr)(); -// } -// static void glowEndList(GPENDLIST fnptr) { -// (*fnptr)(); -// } -// static void glowEndOcclusionQueryNV(GPENDOCCLUSIONQUERYNV fnptr) { -// (*fnptr)(); -// } -// static void glowEndPerfMonitorAMD(GPENDPERFMONITORAMD fnptr, GLuint monitor) { -// (*fnptr)(monitor); -// } -// static void glowEndPerfQueryINTEL(GPENDPERFQUERYINTEL fnptr, GLuint queryHandle) { -// (*fnptr)(queryHandle); -// } -// static void glowEndQuery(GPENDQUERY fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowEndQueryARB(GPENDQUERYARB fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowEndQueryIndexed(GPENDQUERYINDEXED fnptr, GLenum target, GLuint index) { -// (*fnptr)(target, index); -// } -// static void glowEndTransformFeedbackEXT(GPENDTRANSFORMFEEDBACKEXT fnptr) { -// (*fnptr)(); -// } -// static void glowEndTransformFeedbackNV(GPENDTRANSFORMFEEDBACKNV fnptr) { -// (*fnptr)(); -// } -// static void glowEndVertexShaderEXT(GPENDVERTEXSHADEREXT fnptr) { -// (*fnptr)(); -// } -// static void glowEndVideoCaptureNV(GPENDVIDEOCAPTURENV fnptr, GLuint video_capture_slot) { -// (*fnptr)(video_capture_slot); -// } -// static void glowEvalCoord1d(GPEVALCOORD1D fnptr, GLdouble u) { -// (*fnptr)(u); -// } -// static void glowEvalCoord1dv(GPEVALCOORD1DV fnptr, const GLdouble * u) { -// (*fnptr)(u); -// } -// static void glowEvalCoord1f(GPEVALCOORD1F fnptr, GLfloat u) { -// (*fnptr)(u); -// } -// static void glowEvalCoord1fv(GPEVALCOORD1FV fnptr, const GLfloat * u) { -// (*fnptr)(u); -// } -// static void glowEvalCoord1xOES(GPEVALCOORD1XOES fnptr, GLfixed u) { -// (*fnptr)(u); -// } -// static void glowEvalCoord1xvOES(GPEVALCOORD1XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowEvalCoord2d(GPEVALCOORD2D fnptr, GLdouble u, GLdouble v) { -// (*fnptr)(u, v); -// } -// static void glowEvalCoord2dv(GPEVALCOORD2DV fnptr, const GLdouble * u) { -// (*fnptr)(u); -// } -// static void glowEvalCoord2f(GPEVALCOORD2F fnptr, GLfloat u, GLfloat v) { -// (*fnptr)(u, v); -// } -// static void glowEvalCoord2fv(GPEVALCOORD2FV fnptr, const GLfloat * u) { -// (*fnptr)(u); -// } -// static void glowEvalCoord2xOES(GPEVALCOORD2XOES fnptr, GLfixed u, GLfixed v) { -// (*fnptr)(u, v); -// } -// static void glowEvalCoord2xvOES(GPEVALCOORD2XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowEvalMapsNV(GPEVALMAPSNV fnptr, GLenum target, GLenum mode) { -// (*fnptr)(target, mode); -// } -// static void glowEvalMesh1(GPEVALMESH1 fnptr, GLenum mode, GLint i1, GLint i2) { -// (*fnptr)(mode, i1, i2); -// } -// static void glowEvalMesh2(GPEVALMESH2 fnptr, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2) { -// (*fnptr)(mode, i1, i2, j1, j2); -// } -// static void glowEvalPoint1(GPEVALPOINT1 fnptr, GLint i) { -// (*fnptr)(i); -// } -// static void glowEvalPoint2(GPEVALPOINT2 fnptr, GLint i, GLint j) { -// (*fnptr)(i, j); -// } -// static void glowExecuteProgramNV(GPEXECUTEPROGRAMNV fnptr, GLenum target, GLuint id, const GLfloat * params) { -// (*fnptr)(target, id, params); -// } -// static void glowExtractComponentEXT(GPEXTRACTCOMPONENTEXT fnptr, GLuint res, GLuint src, GLuint num) { -// (*fnptr)(res, src, num); -// } -// static void glowFeedbackBuffer(GPFEEDBACKBUFFER fnptr, GLsizei size, GLenum type, GLfloat * buffer) { -// (*fnptr)(size, type, buffer); -// } -// static void glowFeedbackBufferxOES(GPFEEDBACKBUFFERXOES fnptr, GLsizei n, GLenum type, const GLfixed * buffer) { -// (*fnptr)(n, type, buffer); -// } -// static GLsync glowFenceSync(GPFENCESYNC fnptr, GLenum condition, GLbitfield flags) { -// return (*fnptr)(condition, flags); -// } -// static void glowFinalCombinerInputNV(GPFINALCOMBINERINPUTNV fnptr, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage) { -// (*fnptr)(variable, input, mapping, componentUsage); -// } -// static void glowFinish(GPFINISH fnptr) { -// (*fnptr)(); -// } -// static GLint glowFinishAsyncSGIX(GPFINISHASYNCSGIX fnptr, GLuint * markerp) { -// return (*fnptr)(markerp); -// } -// static void glowFinishFenceAPPLE(GPFINISHFENCEAPPLE fnptr, GLuint fence) { -// (*fnptr)(fence); -// } -// static void glowFinishFenceNV(GPFINISHFENCENV fnptr, GLuint fence) { -// (*fnptr)(fence); -// } -// static void glowFinishObjectAPPLE(GPFINISHOBJECTAPPLE fnptr, GLenum object, GLint name) { -// (*fnptr)(object, name); -// } -// static void glowFinishTextureSUNX(GPFINISHTEXTURESUNX fnptr) { -// (*fnptr)(); -// } -// static void glowFlush(GPFLUSH fnptr) { -// (*fnptr)(); -// } -// static void glowFlushMappedBufferRange(GPFLUSHMAPPEDBUFFERRANGE fnptr, GLenum target, GLintptr offset, GLsizeiptr length) { -// (*fnptr)(target, offset, length); -// } -// static void glowFlushMappedBufferRangeAPPLE(GPFLUSHMAPPEDBUFFERRANGEAPPLE fnptr, GLenum target, GLintptr offset, GLsizeiptr size) { -// (*fnptr)(target, offset, size); -// } -// static void glowFlushMappedNamedBufferRange(GPFLUSHMAPPEDNAMEDBUFFERRANGE fnptr, GLuint buffer, GLintptr offset, GLsizei length) { -// (*fnptr)(buffer, offset, length); -// } -// static void glowFlushMappedNamedBufferRangeEXT(GPFLUSHMAPPEDNAMEDBUFFERRANGEEXT fnptr, GLuint buffer, GLintptr offset, GLsizeiptr length) { -// (*fnptr)(buffer, offset, length); -// } -// static void glowFlushPixelDataRangeNV(GPFLUSHPIXELDATARANGENV fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowFlushRasterSGIX(GPFLUSHRASTERSGIX fnptr) { -// (*fnptr)(); -// } -// static void glowFlushStaticDataIBM(GPFLUSHSTATICDATAIBM fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowFlushVertexArrayRangeAPPLE(GPFLUSHVERTEXARRAYRANGEAPPLE fnptr, GLsizei length, void * pointer) { -// (*fnptr)(length, pointer); -// } -// static void glowFlushVertexArrayRangeNV(GPFLUSHVERTEXARRAYRANGENV fnptr) { -// (*fnptr)(); -// } -// static void glowFogCoordFormatNV(GPFOGCOORDFORMATNV fnptr, GLenum type, GLsizei stride) { -// (*fnptr)(type, stride); -// } -// static void glowFogCoordPointer(GPFOGCOORDPOINTER fnptr, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(type, stride, pointer); -// } -// static void glowFogCoordPointerEXT(GPFOGCOORDPOINTEREXT fnptr, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(type, stride, pointer); -// } -// static void glowFogCoordPointerListIBM(GPFOGCOORDPOINTERLISTIBM fnptr, GLenum type, GLint stride, const void ** pointer, GLint ptrstride) { -// (*fnptr)(type, stride, pointer, ptrstride); -// } -// static void glowFogCoordd(GPFOGCOORDD fnptr, GLdouble coord) { -// (*fnptr)(coord); -// } -// static void glowFogCoorddEXT(GPFOGCOORDDEXT fnptr, GLdouble coord) { -// (*fnptr)(coord); -// } -// static void glowFogCoorddv(GPFOGCOORDDV fnptr, const GLdouble * coord) { -// (*fnptr)(coord); -// } -// static void glowFogCoorddvEXT(GPFOGCOORDDVEXT fnptr, const GLdouble * coord) { -// (*fnptr)(coord); -// } -// static void glowFogCoordf(GPFOGCOORDF fnptr, GLfloat coord) { -// (*fnptr)(coord); -// } -// static void glowFogCoordfEXT(GPFOGCOORDFEXT fnptr, GLfloat coord) { -// (*fnptr)(coord); -// } -// static void glowFogCoordfv(GPFOGCOORDFV fnptr, const GLfloat * coord) { -// (*fnptr)(coord); -// } -// static void glowFogCoordfvEXT(GPFOGCOORDFVEXT fnptr, const GLfloat * coord) { -// (*fnptr)(coord); -// } -// static void glowFogCoordhNV(GPFOGCOORDHNV fnptr, GLhalfNV fog) { -// (*fnptr)(fog); -// } -// static void glowFogCoordhvNV(GPFOGCOORDHVNV fnptr, const GLhalfNV * fog) { -// (*fnptr)(fog); -// } -// static void glowFogFuncSGIS(GPFOGFUNCSGIS fnptr, GLsizei n, const GLfloat * points) { -// (*fnptr)(n, points); -// } -// static void glowFogf(GPFOGF fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowFogfv(GPFOGFV fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowFogi(GPFOGI fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowFogiv(GPFOGIV fnptr, GLenum pname, const GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowFogxOES(GPFOGXOES fnptr, GLenum pname, GLfixed param) { -// (*fnptr)(pname, param); -// } -// static void glowFogxvOES(GPFOGXVOES fnptr, GLenum pname, const GLfixed * param) { -// (*fnptr)(pname, param); -// } -// static void glowFragmentColorMaterialSGIX(GPFRAGMENTCOLORMATERIALSGIX fnptr, GLenum face, GLenum mode) { -// (*fnptr)(face, mode); -// } -// static void glowFragmentLightModelfSGIX(GPFRAGMENTLIGHTMODELFSGIX fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowFragmentLightModelfvSGIX(GPFRAGMENTLIGHTMODELFVSGIX fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowFragmentLightModeliSGIX(GPFRAGMENTLIGHTMODELISGIX fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowFragmentLightModelivSGIX(GPFRAGMENTLIGHTMODELIVSGIX fnptr, GLenum pname, const GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowFragmentLightfSGIX(GPFRAGMENTLIGHTFSGIX fnptr, GLenum light, GLenum pname, GLfloat param) { -// (*fnptr)(light, pname, param); -// } -// static void glowFragmentLightfvSGIX(GPFRAGMENTLIGHTFVSGIX fnptr, GLenum light, GLenum pname, const GLfloat * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowFragmentLightiSGIX(GPFRAGMENTLIGHTISGIX fnptr, GLenum light, GLenum pname, GLint param) { -// (*fnptr)(light, pname, param); -// } -// static void glowFragmentLightivSGIX(GPFRAGMENTLIGHTIVSGIX fnptr, GLenum light, GLenum pname, const GLint * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowFragmentMaterialfSGIX(GPFRAGMENTMATERIALFSGIX fnptr, GLenum face, GLenum pname, GLfloat param) { -// (*fnptr)(face, pname, param); -// } -// static void glowFragmentMaterialfvSGIX(GPFRAGMENTMATERIALFVSGIX fnptr, GLenum face, GLenum pname, const GLfloat * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowFragmentMaterialiSGIX(GPFRAGMENTMATERIALISGIX fnptr, GLenum face, GLenum pname, GLint param) { -// (*fnptr)(face, pname, param); -// } -// static void glowFragmentMaterialivSGIX(GPFRAGMENTMATERIALIVSGIX fnptr, GLenum face, GLenum pname, const GLint * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowFrameTerminatorGREMEDY(GPFRAMETERMINATORGREMEDY fnptr) { -// (*fnptr)(); -// } -// static void glowFrameZoomSGIX(GPFRAMEZOOMSGIX fnptr, GLint factor) { -// (*fnptr)(factor); -// } -// static void glowFramebufferDrawBufferEXT(GPFRAMEBUFFERDRAWBUFFEREXT fnptr, GLuint framebuffer, GLenum mode) { -// (*fnptr)(framebuffer, mode); -// } -// static void glowFramebufferDrawBuffersEXT(GPFRAMEBUFFERDRAWBUFFERSEXT fnptr, GLuint framebuffer, GLsizei n, const GLenum * bufs) { -// (*fnptr)(framebuffer, n, bufs); -// } -// static void glowFramebufferParameteri(GPFRAMEBUFFERPARAMETERI fnptr, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(target, pname, param); -// } -// static void glowFramebufferReadBufferEXT(GPFRAMEBUFFERREADBUFFEREXT fnptr, GLuint framebuffer, GLenum mode) { -// (*fnptr)(framebuffer, mode); -// } -// static void glowFramebufferRenderbuffer(GPFRAMEBUFFERRENDERBUFFER fnptr, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) { -// (*fnptr)(target, attachment, renderbuffertarget, renderbuffer); -// } -// static void glowFramebufferRenderbufferEXT(GPFRAMEBUFFERRENDERBUFFEREXT fnptr, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) { -// (*fnptr)(target, attachment, renderbuffertarget, renderbuffer); -// } -// static void glowFramebufferTexture1D(GPFRAMEBUFFERTEXTURE1D fnptr, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) { -// (*fnptr)(target, attachment, textarget, texture, level); -// } -// static void glowFramebufferTexture1DEXT(GPFRAMEBUFFERTEXTURE1DEXT fnptr, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) { -// (*fnptr)(target, attachment, textarget, texture, level); -// } -// static void glowFramebufferTexture2D(GPFRAMEBUFFERTEXTURE2D fnptr, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) { -// (*fnptr)(target, attachment, textarget, texture, level); -// } -// static void glowFramebufferTexture2DEXT(GPFRAMEBUFFERTEXTURE2DEXT fnptr, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) { -// (*fnptr)(target, attachment, textarget, texture, level); -// } -// static void glowFramebufferTexture3D(GPFRAMEBUFFERTEXTURE3D fnptr, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) { -// (*fnptr)(target, attachment, textarget, texture, level, zoffset); -// } -// static void glowFramebufferTexture3DEXT(GPFRAMEBUFFERTEXTURE3DEXT fnptr, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) { -// (*fnptr)(target, attachment, textarget, texture, level, zoffset); -// } -// static void glowFramebufferTextureARB(GPFRAMEBUFFERTEXTUREARB fnptr, GLenum target, GLenum attachment, GLuint texture, GLint level) { -// (*fnptr)(target, attachment, texture, level); -// } -// static void glowFramebufferTextureEXT(GPFRAMEBUFFERTEXTUREEXT fnptr, GLenum target, GLenum attachment, GLuint texture, GLint level) { -// (*fnptr)(target, attachment, texture, level); -// } -// static void glowFramebufferTextureFaceARB(GPFRAMEBUFFERTEXTUREFACEARB fnptr, GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face) { -// (*fnptr)(target, attachment, texture, level, face); -// } -// static void glowFramebufferTextureFaceEXT(GPFRAMEBUFFERTEXTUREFACEEXT fnptr, GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face) { -// (*fnptr)(target, attachment, texture, level, face); -// } -// static void glowFramebufferTextureLayer(GPFRAMEBUFFERTEXTURELAYER fnptr, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) { -// (*fnptr)(target, attachment, texture, level, layer); -// } -// static void glowFramebufferTextureLayerARB(GPFRAMEBUFFERTEXTURELAYERARB fnptr, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) { -// (*fnptr)(target, attachment, texture, level, layer); -// } -// static void glowFramebufferTextureLayerEXT(GPFRAMEBUFFERTEXTURELAYEREXT fnptr, GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) { -// (*fnptr)(target, attachment, texture, level, layer); -// } -// static void glowFreeObjectBufferATI(GPFREEOBJECTBUFFERATI fnptr, GLuint buffer) { -// (*fnptr)(buffer); -// } -// static void glowFrontFace(GPFRONTFACE fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowFrustum(GPFRUSTUM fnptr, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) { -// (*fnptr)(left, right, bottom, top, zNear, zFar); -// } -// static void glowFrustumfOES(GPFRUSTUMFOES fnptr, GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f) { -// (*fnptr)(l, r, b, t, n, f); -// } -// static void glowFrustumxOES(GPFRUSTUMXOES fnptr, GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f) { -// (*fnptr)(l, r, b, t, n, f); -// } -// static GLuint glowGenAsyncMarkersSGIX(GPGENASYNCMARKERSSGIX fnptr, GLsizei range) { -// return (*fnptr)(range); -// } -// static void glowGenBuffers(GPGENBUFFERS fnptr, GLsizei n, GLuint * buffers) { -// (*fnptr)(n, buffers); -// } -// static void glowGenBuffersARB(GPGENBUFFERSARB fnptr, GLsizei n, GLuint * buffers) { -// (*fnptr)(n, buffers); -// } -// static void glowGenFencesAPPLE(GPGENFENCESAPPLE fnptr, GLsizei n, GLuint * fences) { -// (*fnptr)(n, fences); -// } -// static void glowGenFencesNV(GPGENFENCESNV fnptr, GLsizei n, GLuint * fences) { -// (*fnptr)(n, fences); -// } -// static GLuint glowGenFragmentShadersATI(GPGENFRAGMENTSHADERSATI fnptr, GLuint range) { -// return (*fnptr)(range); -// } -// static void glowGenFramebuffers(GPGENFRAMEBUFFERS fnptr, GLsizei n, GLuint * framebuffers) { -// (*fnptr)(n, framebuffers); -// } -// static void glowGenFramebuffersEXT(GPGENFRAMEBUFFERSEXT fnptr, GLsizei n, GLuint * framebuffers) { -// (*fnptr)(n, framebuffers); -// } -// static GLuint glowGenLists(GPGENLISTS fnptr, GLsizei range) { -// return (*fnptr)(range); -// } -// static void glowGenNamesAMD(GPGENNAMESAMD fnptr, GLenum identifier, GLuint num, GLuint * names) { -// (*fnptr)(identifier, num, names); -// } -// static void glowGenOcclusionQueriesNV(GPGENOCCLUSIONQUERIESNV fnptr, GLsizei n, GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static GLuint glowGenPathsNV(GPGENPATHSNV fnptr, GLsizei range) { -// return (*fnptr)(range); -// } -// static void glowGenPerfMonitorsAMD(GPGENPERFMONITORSAMD fnptr, GLsizei n, GLuint * monitors) { -// (*fnptr)(n, monitors); -// } -// static void glowGenProgramPipelines(GPGENPROGRAMPIPELINES fnptr, GLsizei n, GLuint * pipelines) { -// (*fnptr)(n, pipelines); -// } -// static void glowGenProgramPipelinesEXT(GPGENPROGRAMPIPELINESEXT fnptr, GLsizei n, GLuint * pipelines) { -// (*fnptr)(n, pipelines); -// } -// static void glowGenProgramsARB(GPGENPROGRAMSARB fnptr, GLsizei n, GLuint * programs) { -// (*fnptr)(n, programs); -// } -// static void glowGenProgramsNV(GPGENPROGRAMSNV fnptr, GLsizei n, GLuint * programs) { -// (*fnptr)(n, programs); -// } -// static void glowGenQueries(GPGENQUERIES fnptr, GLsizei n, GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowGenQueriesARB(GPGENQUERIESARB fnptr, GLsizei n, GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowGenRenderbuffers(GPGENRENDERBUFFERS fnptr, GLsizei n, GLuint * renderbuffers) { -// (*fnptr)(n, renderbuffers); -// } -// static void glowGenRenderbuffersEXT(GPGENRENDERBUFFERSEXT fnptr, GLsizei n, GLuint * renderbuffers) { -// (*fnptr)(n, renderbuffers); -// } -// static void glowGenSamplers(GPGENSAMPLERS fnptr, GLsizei count, GLuint * samplers) { -// (*fnptr)(count, samplers); -// } -// static GLuint glowGenSymbolsEXT(GPGENSYMBOLSEXT fnptr, GLenum datatype, GLenum storagetype, GLenum range, GLuint components) { -// return (*fnptr)(datatype, storagetype, range, components); -// } -// static void glowGenTextures(GPGENTEXTURES fnptr, GLsizei n, GLuint * textures) { -// (*fnptr)(n, textures); -// } -// static void glowGenTexturesEXT(GPGENTEXTURESEXT fnptr, GLsizei n, GLuint * textures) { -// (*fnptr)(n, textures); -// } -// static void glowGenTransformFeedbacks(GPGENTRANSFORMFEEDBACKS fnptr, GLsizei n, GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowGenTransformFeedbacksNV(GPGENTRANSFORMFEEDBACKSNV fnptr, GLsizei n, GLuint * ids) { -// (*fnptr)(n, ids); -// } -// static void glowGenVertexArrays(GPGENVERTEXARRAYS fnptr, GLsizei n, GLuint * arrays) { -// (*fnptr)(n, arrays); -// } -// static void glowGenVertexArraysAPPLE(GPGENVERTEXARRAYSAPPLE fnptr, GLsizei n, GLuint * arrays) { -// (*fnptr)(n, arrays); -// } -// static GLuint glowGenVertexShadersEXT(GPGENVERTEXSHADERSEXT fnptr, GLuint range) { -// return (*fnptr)(range); -// } -// static void glowGenerateMipmap(GPGENERATEMIPMAP fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowGenerateMipmapEXT(GPGENERATEMIPMAPEXT fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowGenerateMultiTexMipmapEXT(GPGENERATEMULTITEXMIPMAPEXT fnptr, GLenum texunit, GLenum target) { -// (*fnptr)(texunit, target); -// } -// static void glowGenerateTextureMipmap(GPGENERATETEXTUREMIPMAP fnptr, GLuint texture) { -// (*fnptr)(texture); -// } -// static void glowGenerateTextureMipmapEXT(GPGENERATETEXTUREMIPMAPEXT fnptr, GLuint texture, GLenum target) { -// (*fnptr)(texture, target); -// } -// static void glowGetActiveAtomicCounterBufferiv(GPGETACTIVEATOMICCOUNTERBUFFERIV fnptr, GLuint program, GLuint bufferIndex, GLenum pname, GLint * params) { -// (*fnptr)(program, bufferIndex, pname, params); -// } -// static void glowGetActiveAttrib(GPGETACTIVEATTRIB fnptr, GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name) { -// (*fnptr)(program, index, bufSize, length, size, type, name); -// } -// static void glowGetActiveAttribARB(GPGETACTIVEATTRIBARB fnptr, GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name) { -// (*fnptr)(programObj, index, maxLength, length, size, type, name); -// } -// static void glowGetActiveSubroutineName(GPGETACTIVESUBROUTINENAME fnptr, GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei * length, GLchar * name) { -// (*fnptr)(program, shadertype, index, bufsize, length, name); -// } -// static void glowGetActiveSubroutineUniformName(GPGETACTIVESUBROUTINEUNIFORMNAME fnptr, GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei * length, GLchar * name) { -// (*fnptr)(program, shadertype, index, bufsize, length, name); -// } -// static void glowGetActiveSubroutineUniformiv(GPGETACTIVESUBROUTINEUNIFORMIV fnptr, GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint * values) { -// (*fnptr)(program, shadertype, index, pname, values); -// } -// static void glowGetActiveUniform(GPGETACTIVEUNIFORM fnptr, GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name) { -// (*fnptr)(program, index, bufSize, length, size, type, name); -// } -// static void glowGetActiveUniformARB(GPGETACTIVEUNIFORMARB fnptr, GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name) { -// (*fnptr)(programObj, index, maxLength, length, size, type, name); -// } -// static void glowGetActiveUniformBlockName(GPGETACTIVEUNIFORMBLOCKNAME fnptr, GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName) { -// (*fnptr)(program, uniformBlockIndex, bufSize, length, uniformBlockName); -// } -// static void glowGetActiveUniformBlockiv(GPGETACTIVEUNIFORMBLOCKIV fnptr, GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params) { -// (*fnptr)(program, uniformBlockIndex, pname, params); -// } -// static void glowGetActiveUniformName(GPGETACTIVEUNIFORMNAME fnptr, GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformName) { -// (*fnptr)(program, uniformIndex, bufSize, length, uniformName); -// } -// static void glowGetActiveUniformsiv(GPGETACTIVEUNIFORMSIV fnptr, GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params) { -// (*fnptr)(program, uniformCount, uniformIndices, pname, params); -// } -// static void glowGetActiveVaryingNV(GPGETACTIVEVARYINGNV fnptr, GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name) { -// (*fnptr)(program, index, bufSize, length, size, type, name); -// } -// static void glowGetArrayObjectfvATI(GPGETARRAYOBJECTFVATI fnptr, GLenum array, GLenum pname, GLfloat * params) { -// (*fnptr)(array, pname, params); -// } -// static void glowGetArrayObjectivATI(GPGETARRAYOBJECTIVATI fnptr, GLenum array, GLenum pname, GLint * params) { -// (*fnptr)(array, pname, params); -// } -// static void glowGetAttachedObjectsARB(GPGETATTACHEDOBJECTSARB fnptr, GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj) { -// (*fnptr)(containerObj, maxCount, count, obj); -// } -// static void glowGetAttachedShaders(GPGETATTACHEDSHADERS fnptr, GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders) { -// (*fnptr)(program, maxCount, count, shaders); -// } -// static GLint glowGetAttribLocation(GPGETATTRIBLOCATION fnptr, GLuint program, const GLchar * name) { -// return (*fnptr)(program, name); -// } -// static GLint glowGetAttribLocationARB(GPGETATTRIBLOCATIONARB fnptr, GLhandleARB programObj, const GLcharARB * name) { -// return (*fnptr)(programObj, name); -// } -// static void glowGetBooleanIndexedvEXT(GPGETBOOLEANINDEXEDVEXT fnptr, GLenum target, GLuint index, GLboolean * data) { -// (*fnptr)(target, index, data); -// } -// static void glowGetBooleanv(GPGETBOOLEANV fnptr, GLenum pname, GLboolean * data) { -// (*fnptr)(pname, data); -// } -// static void glowGetBufferParameteriv(GPGETBUFFERPARAMETERIV fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetBufferParameterivARB(GPGETBUFFERPARAMETERIVARB fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetBufferParameterui64vNV(GPGETBUFFERPARAMETERUI64VNV fnptr, GLenum target, GLenum pname, GLuint64EXT * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetBufferPointerv(GPGETBUFFERPOINTERV fnptr, GLenum target, GLenum pname, void ** params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetBufferPointervARB(GPGETBUFFERPOINTERVARB fnptr, GLenum target, GLenum pname, void ** params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetBufferSubData(GPGETBUFFERSUBDATA fnptr, GLenum target, GLintptr offset, GLsizeiptr size, void * data) { -// (*fnptr)(target, offset, size, data); -// } -// static void glowGetBufferSubDataARB(GPGETBUFFERSUBDATAARB fnptr, GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data) { -// (*fnptr)(target, offset, size, data); -// } -// static void glowGetClipPlane(GPGETCLIPPLANE fnptr, GLenum plane, GLdouble * equation) { -// (*fnptr)(plane, equation); -// } -// static void glowGetClipPlanefOES(GPGETCLIPPLANEFOES fnptr, GLenum plane, GLfloat * equation) { -// (*fnptr)(plane, equation); -// } -// static void glowGetClipPlanexOES(GPGETCLIPPLANEXOES fnptr, GLenum plane, GLfixed * equation) { -// (*fnptr)(plane, equation); -// } -// static void glowGetColorTableEXT(GPGETCOLORTABLEEXT fnptr, GLenum target, GLenum format, GLenum type, void * data) { -// (*fnptr)(target, format, type, data); -// } -// static void glowGetColorTableParameterfvEXT(GPGETCOLORTABLEPARAMETERFVEXT fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetColorTableParameterfvSGI(GPGETCOLORTABLEPARAMETERFVSGI fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetColorTableParameterivEXT(GPGETCOLORTABLEPARAMETERIVEXT fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetColorTableParameterivSGI(GPGETCOLORTABLEPARAMETERIVSGI fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetColorTableSGI(GPGETCOLORTABLESGI fnptr, GLenum target, GLenum format, GLenum type, void * table) { -// (*fnptr)(target, format, type, table); -// } -// static void glowGetCombinerInputParameterfvNV(GPGETCOMBINERINPUTPARAMETERFVNV fnptr, GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params) { -// (*fnptr)(stage, portion, variable, pname, params); -// } -// static void glowGetCombinerInputParameterivNV(GPGETCOMBINERINPUTPARAMETERIVNV fnptr, GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params) { -// (*fnptr)(stage, portion, variable, pname, params); -// } -// static void glowGetCombinerOutputParameterfvNV(GPGETCOMBINEROUTPUTPARAMETERFVNV fnptr, GLenum stage, GLenum portion, GLenum pname, GLfloat * params) { -// (*fnptr)(stage, portion, pname, params); -// } -// static void glowGetCombinerOutputParameterivNV(GPGETCOMBINEROUTPUTPARAMETERIVNV fnptr, GLenum stage, GLenum portion, GLenum pname, GLint * params) { -// (*fnptr)(stage, portion, pname, params); -// } -// static void glowGetCombinerStageParameterfvNV(GPGETCOMBINERSTAGEPARAMETERFVNV fnptr, GLenum stage, GLenum pname, GLfloat * params) { -// (*fnptr)(stage, pname, params); -// } -// static void glowGetCompressedMultiTexImageEXT(GPGETCOMPRESSEDMULTITEXIMAGEEXT fnptr, GLenum texunit, GLenum target, GLint lod, void * img) { -// (*fnptr)(texunit, target, lod, img); -// } -// static void glowGetCompressedTexImage(GPGETCOMPRESSEDTEXIMAGE fnptr, GLenum target, GLint level, void * img) { -// (*fnptr)(target, level, img); -// } -// static void glowGetCompressedTexImageARB(GPGETCOMPRESSEDTEXIMAGEARB fnptr, GLenum target, GLint level, void * img) { -// (*fnptr)(target, level, img); -// } -// static void glowGetCompressedTextureImage(GPGETCOMPRESSEDTEXTUREIMAGE fnptr, GLuint texture, GLint level, GLsizei bufSize, void * pixels) { -// (*fnptr)(texture, level, bufSize, pixels); -// } -// static void glowGetCompressedTextureImageEXT(GPGETCOMPRESSEDTEXTUREIMAGEEXT fnptr, GLuint texture, GLenum target, GLint lod, void * img) { -// (*fnptr)(texture, target, lod, img); -// } -// static void glowGetCompressedTextureSubImage(GPGETCOMPRESSEDTEXTURESUBIMAGE fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void * pixels) { -// (*fnptr)(texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels); -// } -// static void glowGetConvolutionFilterEXT(GPGETCONVOLUTIONFILTEREXT fnptr, GLenum target, GLenum format, GLenum type, void * image) { -// (*fnptr)(target, format, type, image); -// } -// static void glowGetConvolutionParameterfvEXT(GPGETCONVOLUTIONPARAMETERFVEXT fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetConvolutionParameterivEXT(GPGETCONVOLUTIONPARAMETERIVEXT fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetConvolutionParameterxvOES(GPGETCONVOLUTIONPARAMETERXVOES fnptr, GLenum target, GLenum pname, GLfixed * params) { -// (*fnptr)(target, pname, params); -// } -// static GLuint glowGetDebugMessageLog(GPGETDEBUGMESSAGELOG fnptr, GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog) { -// return (*fnptr)(count, bufSize, sources, types, ids, severities, lengths, messageLog); -// } -// static GLuint glowGetDebugMessageLogAMD(GPGETDEBUGMESSAGELOGAMD fnptr, GLuint count, GLsizei bufsize, GLenum * categories, GLuint * severities, GLuint * ids, GLsizei * lengths, GLchar * message) { -// return (*fnptr)(count, bufsize, categories, severities, ids, lengths, message); -// } -// static GLuint glowGetDebugMessageLogARB(GPGETDEBUGMESSAGELOGARB fnptr, GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog) { -// return (*fnptr)(count, bufSize, sources, types, ids, severities, lengths, messageLog); -// } -// static GLuint glowGetDebugMessageLogKHR(GPGETDEBUGMESSAGELOGKHR fnptr, GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog) { -// return (*fnptr)(count, bufSize, sources, types, ids, severities, lengths, messageLog); -// } -// static void glowGetDetailTexFuncSGIS(GPGETDETAILTEXFUNCSGIS fnptr, GLenum target, GLfloat * points) { -// (*fnptr)(target, points); -// } -// static void glowGetDoubleIndexedvEXT(GPGETDOUBLEINDEXEDVEXT fnptr, GLenum target, GLuint index, GLdouble * data) { -// (*fnptr)(target, index, data); -// } -// static void glowGetDoublei_v(GPGETDOUBLEI_V fnptr, GLenum target, GLuint index, GLdouble * data) { -// (*fnptr)(target, index, data); -// } -// static void glowGetDoublei_vEXT(GPGETDOUBLEI_VEXT fnptr, GLenum pname, GLuint index, GLdouble * params) { -// (*fnptr)(pname, index, params); -// } -// static void glowGetDoublev(GPGETDOUBLEV fnptr, GLenum pname, GLdouble * data) { -// (*fnptr)(pname, data); -// } -// static GLenum glowGetError(GPGETERROR fnptr) { -// return (*fnptr)(); -// } -// static void glowGetFenceivNV(GPGETFENCEIVNV fnptr, GLuint fence, GLenum pname, GLint * params) { -// (*fnptr)(fence, pname, params); -// } -// static void glowGetFinalCombinerInputParameterfvNV(GPGETFINALCOMBINERINPUTPARAMETERFVNV fnptr, GLenum variable, GLenum pname, GLfloat * params) { -// (*fnptr)(variable, pname, params); -// } -// static void glowGetFinalCombinerInputParameterivNV(GPGETFINALCOMBINERINPUTPARAMETERIVNV fnptr, GLenum variable, GLenum pname, GLint * params) { -// (*fnptr)(variable, pname, params); -// } -// static void glowGetFirstPerfQueryIdINTEL(GPGETFIRSTPERFQUERYIDINTEL fnptr, GLuint * queryId) { -// (*fnptr)(queryId); -// } -// static void glowGetFixedvOES(GPGETFIXEDVOES fnptr, GLenum pname, GLfixed * params) { -// (*fnptr)(pname, params); -// } -// static void glowGetFloatIndexedvEXT(GPGETFLOATINDEXEDVEXT fnptr, GLenum target, GLuint index, GLfloat * data) { -// (*fnptr)(target, index, data); -// } -// static void glowGetFloati_v(GPGETFLOATI_V fnptr, GLenum target, GLuint index, GLfloat * data) { -// (*fnptr)(target, index, data); -// } -// static void glowGetFloati_vEXT(GPGETFLOATI_VEXT fnptr, GLenum pname, GLuint index, GLfloat * params) { -// (*fnptr)(pname, index, params); -// } -// static void glowGetFloatv(GPGETFLOATV fnptr, GLenum pname, GLfloat * data) { -// (*fnptr)(pname, data); -// } -// static void glowGetFogFuncSGIS(GPGETFOGFUNCSGIS fnptr, GLfloat * points) { -// (*fnptr)(points); -// } -// static GLint glowGetFragDataIndex(GPGETFRAGDATAINDEX fnptr, GLuint program, const GLchar * name) { -// return (*fnptr)(program, name); -// } -// static GLint glowGetFragDataLocationEXT(GPGETFRAGDATALOCATIONEXT fnptr, GLuint program, const GLchar * name) { -// return (*fnptr)(program, name); -// } -// static void glowGetFragmentLightfvSGIX(GPGETFRAGMENTLIGHTFVSGIX fnptr, GLenum light, GLenum pname, GLfloat * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowGetFragmentLightivSGIX(GPGETFRAGMENTLIGHTIVSGIX fnptr, GLenum light, GLenum pname, GLint * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowGetFragmentMaterialfvSGIX(GPGETFRAGMENTMATERIALFVSGIX fnptr, GLenum face, GLenum pname, GLfloat * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowGetFragmentMaterialivSGIX(GPGETFRAGMENTMATERIALIVSGIX fnptr, GLenum face, GLenum pname, GLint * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowGetFramebufferAttachmentParameteriv(GPGETFRAMEBUFFERATTACHMENTPARAMETERIV fnptr, GLenum target, GLenum attachment, GLenum pname, GLint * params) { -// (*fnptr)(target, attachment, pname, params); -// } -// static void glowGetFramebufferAttachmentParameterivEXT(GPGETFRAMEBUFFERATTACHMENTPARAMETERIVEXT fnptr, GLenum target, GLenum attachment, GLenum pname, GLint * params) { -// (*fnptr)(target, attachment, pname, params); -// } -// static void glowGetFramebufferParameteriv(GPGETFRAMEBUFFERPARAMETERIV fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetFramebufferParameterivEXT(GPGETFRAMEBUFFERPARAMETERIVEXT fnptr, GLuint framebuffer, GLenum pname, GLint * params) { -// (*fnptr)(framebuffer, pname, params); -// } -// static GLenum glowGetGraphicsResetStatus(GPGETGRAPHICSRESETSTATUS fnptr) { -// return (*fnptr)(); -// } -// static GLenum glowGetGraphicsResetStatusARB(GPGETGRAPHICSRESETSTATUSARB fnptr) { -// return (*fnptr)(); -// } -// static GLenum glowGetGraphicsResetStatusKHR(GPGETGRAPHICSRESETSTATUSKHR fnptr) { -// return (*fnptr)(); -// } -// static GLhandleARB glowGetHandleARB(GPGETHANDLEARB fnptr, GLenum pname) { -// return (*fnptr)(pname); -// } -// static void glowGetHistogramEXT(GPGETHISTOGRAMEXT fnptr, GLenum target, GLboolean reset, GLenum format, GLenum type, void * values) { -// (*fnptr)(target, reset, format, type, values); -// } -// static void glowGetHistogramParameterfvEXT(GPGETHISTOGRAMPARAMETERFVEXT fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetHistogramParameterivEXT(GPGETHISTOGRAMPARAMETERIVEXT fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetHistogramParameterxvOES(GPGETHISTOGRAMPARAMETERXVOES fnptr, GLenum target, GLenum pname, GLfixed * params) { -// (*fnptr)(target, pname, params); -// } -// static GLuint64 glowGetImageHandleARB(GPGETIMAGEHANDLEARB fnptr, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format) { -// return (*fnptr)(texture, level, layered, layer, format); -// } -// static GLuint64 glowGetImageHandleNV(GPGETIMAGEHANDLENV fnptr, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format) { -// return (*fnptr)(texture, level, layered, layer, format); -// } -// static void glowGetImageTransformParameterfvHP(GPGETIMAGETRANSFORMPARAMETERFVHP fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetImageTransformParameterivHP(GPGETIMAGETRANSFORMPARAMETERIVHP fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetInfoLogARB(GPGETINFOLOGARB fnptr, GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog) { -// (*fnptr)(obj, maxLength, length, infoLog); -// } -// static GLint glowGetInstrumentsSGIX(GPGETINSTRUMENTSSGIX fnptr) { -// return (*fnptr)(); -// } -// static void glowGetInteger64v(GPGETINTEGER64V fnptr, GLenum pname, GLint64 * data) { -// (*fnptr)(pname, data); -// } -// static void glowGetIntegerIndexedvEXT(GPGETINTEGERINDEXEDVEXT fnptr, GLenum target, GLuint index, GLint * data) { -// (*fnptr)(target, index, data); -// } -// static void glowGetIntegerui64i_vNV(GPGETINTEGERUI64I_VNV fnptr, GLenum value, GLuint index, GLuint64EXT * result) { -// (*fnptr)(value, index, result); -// } -// static void glowGetIntegerui64vNV(GPGETINTEGERUI64VNV fnptr, GLenum value, GLuint64EXT * result) { -// (*fnptr)(value, result); -// } -// static void glowGetIntegerv(GPGETINTEGERV fnptr, GLenum pname, GLint * data) { -// (*fnptr)(pname, data); -// } -// static void glowGetInternalformati64v(GPGETINTERNALFORMATI64V fnptr, GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 * params) { -// (*fnptr)(target, internalformat, pname, bufSize, params); -// } -// static void glowGetInternalformativ(GPGETINTERNALFORMATIV fnptr, GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint * params) { -// (*fnptr)(target, internalformat, pname, bufSize, params); -// } -// static void glowGetInvariantBooleanvEXT(GPGETINVARIANTBOOLEANVEXT fnptr, GLuint id, GLenum value, GLboolean * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetInvariantFloatvEXT(GPGETINVARIANTFLOATVEXT fnptr, GLuint id, GLenum value, GLfloat * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetInvariantIntegervEXT(GPGETINVARIANTINTEGERVEXT fnptr, GLuint id, GLenum value, GLint * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetLightfv(GPGETLIGHTFV fnptr, GLenum light, GLenum pname, GLfloat * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowGetLightiv(GPGETLIGHTIV fnptr, GLenum light, GLenum pname, GLint * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowGetLightxOES(GPGETLIGHTXOES fnptr, GLenum light, GLenum pname, GLfixed * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowGetLightxvOES(GPGETLIGHTXVOES fnptr, GLenum light, GLenum pname, GLfixed * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowGetListParameterfvSGIX(GPGETLISTPARAMETERFVSGIX fnptr, GLuint list, GLenum pname, GLfloat * params) { -// (*fnptr)(list, pname, params); -// } -// static void glowGetListParameterivSGIX(GPGETLISTPARAMETERIVSGIX fnptr, GLuint list, GLenum pname, GLint * params) { -// (*fnptr)(list, pname, params); -// } -// static void glowGetLocalConstantBooleanvEXT(GPGETLOCALCONSTANTBOOLEANVEXT fnptr, GLuint id, GLenum value, GLboolean * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetLocalConstantFloatvEXT(GPGETLOCALCONSTANTFLOATVEXT fnptr, GLuint id, GLenum value, GLfloat * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetLocalConstantIntegervEXT(GPGETLOCALCONSTANTINTEGERVEXT fnptr, GLuint id, GLenum value, GLint * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetMapAttribParameterfvNV(GPGETMAPATTRIBPARAMETERFVNV fnptr, GLenum target, GLuint index, GLenum pname, GLfloat * params) { -// (*fnptr)(target, index, pname, params); -// } -// static void glowGetMapAttribParameterivNV(GPGETMAPATTRIBPARAMETERIVNV fnptr, GLenum target, GLuint index, GLenum pname, GLint * params) { -// (*fnptr)(target, index, pname, params); -// } -// static void glowGetMapControlPointsNV(GPGETMAPCONTROLPOINTSNV fnptr, GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void * points) { -// (*fnptr)(target, index, type, ustride, vstride, packed, points); -// } -// static void glowGetMapParameterfvNV(GPGETMAPPARAMETERFVNV fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetMapParameterivNV(GPGETMAPPARAMETERIVNV fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetMapdv(GPGETMAPDV fnptr, GLenum target, GLenum query, GLdouble * v) { -// (*fnptr)(target, query, v); -// } -// static void glowGetMapfv(GPGETMAPFV fnptr, GLenum target, GLenum query, GLfloat * v) { -// (*fnptr)(target, query, v); -// } -// static void glowGetMapiv(GPGETMAPIV fnptr, GLenum target, GLenum query, GLint * v) { -// (*fnptr)(target, query, v); -// } -// static void glowGetMapxvOES(GPGETMAPXVOES fnptr, GLenum target, GLenum query, GLfixed * v) { -// (*fnptr)(target, query, v); -// } -// static void glowGetMaterialfv(GPGETMATERIALFV fnptr, GLenum face, GLenum pname, GLfloat * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowGetMaterialiv(GPGETMATERIALIV fnptr, GLenum face, GLenum pname, GLint * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowGetMaterialxOES(GPGETMATERIALXOES fnptr, GLenum face, GLenum pname, GLfixed param) { -// (*fnptr)(face, pname, param); -// } -// static void glowGetMaterialxvOES(GPGETMATERIALXVOES fnptr, GLenum face, GLenum pname, GLfixed * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowGetMinmaxEXT(GPGETMINMAXEXT fnptr, GLenum target, GLboolean reset, GLenum format, GLenum type, void * values) { -// (*fnptr)(target, reset, format, type, values); -// } -// static void glowGetMinmaxParameterfvEXT(GPGETMINMAXPARAMETERFVEXT fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetMinmaxParameterivEXT(GPGETMINMAXPARAMETERIVEXT fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetMultiTexEnvfvEXT(GPGETMULTITEXENVFVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowGetMultiTexEnvivEXT(GPGETMULTITEXENVIVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowGetMultiTexGendvEXT(GPGETMULTITEXGENDVEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, GLdouble * params) { -// (*fnptr)(texunit, coord, pname, params); -// } -// static void glowGetMultiTexGenfvEXT(GPGETMULTITEXGENFVEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, GLfloat * params) { -// (*fnptr)(texunit, coord, pname, params); -// } -// static void glowGetMultiTexGenivEXT(GPGETMULTITEXGENIVEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, GLint * params) { -// (*fnptr)(texunit, coord, pname, params); -// } -// static void glowGetMultiTexImageEXT(GPGETMULTITEXIMAGEEXT fnptr, GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void * pixels) { -// (*fnptr)(texunit, target, level, format, type, pixels); -// } -// static void glowGetMultiTexLevelParameterfvEXT(GPGETMULTITEXLEVELPARAMETERFVEXT fnptr, GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat * params) { -// (*fnptr)(texunit, target, level, pname, params); -// } -// static void glowGetMultiTexLevelParameterivEXT(GPGETMULTITEXLEVELPARAMETERIVEXT fnptr, GLenum texunit, GLenum target, GLint level, GLenum pname, GLint * params) { -// (*fnptr)(texunit, target, level, pname, params); -// } -// static void glowGetMultiTexParameterIivEXT(GPGETMULTITEXPARAMETERIIVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowGetMultiTexParameterIuivEXT(GPGETMULTITEXPARAMETERIUIVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLuint * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowGetMultiTexParameterfvEXT(GPGETMULTITEXPARAMETERFVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowGetMultiTexParameterivEXT(GPGETMULTITEXPARAMETERIVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowGetMultisamplefv(GPGETMULTISAMPLEFV fnptr, GLenum pname, GLuint index, GLfloat * val) { -// (*fnptr)(pname, index, val); -// } -// static void glowGetMultisamplefvNV(GPGETMULTISAMPLEFVNV fnptr, GLenum pname, GLuint index, GLfloat * val) { -// (*fnptr)(pname, index, val); -// } -// static void glowGetNamedBufferParameteri64v(GPGETNAMEDBUFFERPARAMETERI64V fnptr, GLuint buffer, GLenum pname, GLint64 * params) { -// (*fnptr)(buffer, pname, params); -// } -// static void glowGetNamedBufferParameteriv(GPGETNAMEDBUFFERPARAMETERIV fnptr, GLuint buffer, GLenum pname, GLint * params) { -// (*fnptr)(buffer, pname, params); -// } -// static void glowGetNamedBufferParameterivEXT(GPGETNAMEDBUFFERPARAMETERIVEXT fnptr, GLuint buffer, GLenum pname, GLint * params) { -// (*fnptr)(buffer, pname, params); -// } -// static void glowGetNamedBufferParameterui64vNV(GPGETNAMEDBUFFERPARAMETERUI64VNV fnptr, GLuint buffer, GLenum pname, GLuint64EXT * params) { -// (*fnptr)(buffer, pname, params); -// } -// static void glowGetNamedBufferPointerv(GPGETNAMEDBUFFERPOINTERV fnptr, GLuint buffer, GLenum pname, void ** params) { -// (*fnptr)(buffer, pname, params); -// } -// static void glowGetNamedBufferPointervEXT(GPGETNAMEDBUFFERPOINTERVEXT fnptr, GLuint buffer, GLenum pname, void ** params) { -// (*fnptr)(buffer, pname, params); -// } -// static void glowGetNamedBufferSubData(GPGETNAMEDBUFFERSUBDATA fnptr, GLuint buffer, GLintptr offset, GLsizei size, void * data) { -// (*fnptr)(buffer, offset, size, data); -// } -// static void glowGetNamedBufferSubDataEXT(GPGETNAMEDBUFFERSUBDATAEXT fnptr, GLuint buffer, GLintptr offset, GLsizeiptr size, void * data) { -// (*fnptr)(buffer, offset, size, data); -// } -// static void glowGetNamedFramebufferAttachmentParameteriv(GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIV fnptr, GLuint framebuffer, GLenum attachment, GLenum pname, GLint * params) { -// (*fnptr)(framebuffer, attachment, pname, params); -// } -// static void glowGetNamedFramebufferAttachmentParameterivEXT(GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXT fnptr, GLuint framebuffer, GLenum attachment, GLenum pname, GLint * params) { -// (*fnptr)(framebuffer, attachment, pname, params); -// } -// static void glowGetNamedFramebufferParameteriv(GPGETNAMEDFRAMEBUFFERPARAMETERIV fnptr, GLuint framebuffer, GLenum pname, GLint * param) { -// (*fnptr)(framebuffer, pname, param); -// } -// static void glowGetNamedFramebufferParameterivEXT(GPGETNAMEDFRAMEBUFFERPARAMETERIVEXT fnptr, GLuint framebuffer, GLenum pname, GLint * params) { -// (*fnptr)(framebuffer, pname, params); -// } -// static void glowGetNamedProgramLocalParameterIivEXT(GPGETNAMEDPROGRAMLOCALPARAMETERIIVEXT fnptr, GLuint program, GLenum target, GLuint index, GLint * params) { -// (*fnptr)(program, target, index, params); -// } -// static void glowGetNamedProgramLocalParameterIuivEXT(GPGETNAMEDPROGRAMLOCALPARAMETERIUIVEXT fnptr, GLuint program, GLenum target, GLuint index, GLuint * params) { -// (*fnptr)(program, target, index, params); -// } -// static void glowGetNamedProgramLocalParameterdvEXT(GPGETNAMEDPROGRAMLOCALPARAMETERDVEXT fnptr, GLuint program, GLenum target, GLuint index, GLdouble * params) { -// (*fnptr)(program, target, index, params); -// } -// static void glowGetNamedProgramLocalParameterfvEXT(GPGETNAMEDPROGRAMLOCALPARAMETERFVEXT fnptr, GLuint program, GLenum target, GLuint index, GLfloat * params) { -// (*fnptr)(program, target, index, params); -// } -// static void glowGetNamedProgramStringEXT(GPGETNAMEDPROGRAMSTRINGEXT fnptr, GLuint program, GLenum target, GLenum pname, void * string) { -// (*fnptr)(program, target, pname, string); -// } -// static void glowGetNamedProgramivEXT(GPGETNAMEDPROGRAMIVEXT fnptr, GLuint program, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(program, target, pname, params); -// } -// static void glowGetNamedRenderbufferParameteriv(GPGETNAMEDRENDERBUFFERPARAMETERIV fnptr, GLuint renderbuffer, GLenum pname, GLint * params) { -// (*fnptr)(renderbuffer, pname, params); -// } -// static void glowGetNamedRenderbufferParameterivEXT(GPGETNAMEDRENDERBUFFERPARAMETERIVEXT fnptr, GLuint renderbuffer, GLenum pname, GLint * params) { -// (*fnptr)(renderbuffer, pname, params); -// } -// static void glowGetNamedStringARB(GPGETNAMEDSTRINGARB fnptr, GLint namelen, const GLchar * name, GLsizei bufSize, GLint * stringlen, GLchar * string) { -// (*fnptr)(namelen, name, bufSize, stringlen, string); -// } -// static void glowGetNamedStringivARB(GPGETNAMEDSTRINGIVARB fnptr, GLint namelen, const GLchar * name, GLenum pname, GLint * params) { -// (*fnptr)(namelen, name, pname, params); -// } -// static void glowGetNextPerfQueryIdINTEL(GPGETNEXTPERFQUERYIDINTEL fnptr, GLuint queryId, GLuint * nextQueryId) { -// (*fnptr)(queryId, nextQueryId); -// } -// static void glowGetObjectBufferfvATI(GPGETOBJECTBUFFERFVATI fnptr, GLuint buffer, GLenum pname, GLfloat * params) { -// (*fnptr)(buffer, pname, params); -// } -// static void glowGetObjectBufferivATI(GPGETOBJECTBUFFERIVATI fnptr, GLuint buffer, GLenum pname, GLint * params) { -// (*fnptr)(buffer, pname, params); -// } -// static void glowGetObjectLabel(GPGETOBJECTLABEL fnptr, GLenum identifier, GLuint name, GLsizei bufSize, GLsizei * length, GLchar * label) { -// (*fnptr)(identifier, name, bufSize, length, label); -// } -// static void glowGetObjectLabelEXT(GPGETOBJECTLABELEXT fnptr, GLenum type, GLuint object, GLsizei bufSize, GLsizei * length, GLchar * label) { -// (*fnptr)(type, object, bufSize, length, label); -// } -// static void glowGetObjectLabelKHR(GPGETOBJECTLABELKHR fnptr, GLenum identifier, GLuint name, GLsizei bufSize, GLsizei * length, GLchar * label) { -// (*fnptr)(identifier, name, bufSize, length, label); -// } -// static void glowGetObjectParameterfvARB(GPGETOBJECTPARAMETERFVARB fnptr, GLhandleARB obj, GLenum pname, GLfloat * params) { -// (*fnptr)(obj, pname, params); -// } -// static void glowGetObjectParameterivAPPLE(GPGETOBJECTPARAMETERIVAPPLE fnptr, GLenum objectType, GLuint name, GLenum pname, GLint * params) { -// (*fnptr)(objectType, name, pname, params); -// } -// static void glowGetObjectParameterivARB(GPGETOBJECTPARAMETERIVARB fnptr, GLhandleARB obj, GLenum pname, GLint * params) { -// (*fnptr)(obj, pname, params); -// } -// static void glowGetObjectPtrLabel(GPGETOBJECTPTRLABEL fnptr, const void * ptr, GLsizei bufSize, GLsizei * length, GLchar * label) { -// (*fnptr)(ptr, bufSize, length, label); -// } -// static void glowGetObjectPtrLabelKHR(GPGETOBJECTPTRLABELKHR fnptr, const void * ptr, GLsizei bufSize, GLsizei * length, GLchar * label) { -// (*fnptr)(ptr, bufSize, length, label); -// } -// static void glowGetOcclusionQueryivNV(GPGETOCCLUSIONQUERYIVNV fnptr, GLuint id, GLenum pname, GLint * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetOcclusionQueryuivNV(GPGETOCCLUSIONQUERYUIVNV fnptr, GLuint id, GLenum pname, GLuint * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetPathColorGenfvNV(GPGETPATHCOLORGENFVNV fnptr, GLenum color, GLenum pname, GLfloat * value) { -// (*fnptr)(color, pname, value); -// } -// static void glowGetPathColorGenivNV(GPGETPATHCOLORGENIVNV fnptr, GLenum color, GLenum pname, GLint * value) { -// (*fnptr)(color, pname, value); -// } -// static void glowGetPathCommandsNV(GPGETPATHCOMMANDSNV fnptr, GLuint path, GLubyte * commands) { -// (*fnptr)(path, commands); -// } -// static void glowGetPathCoordsNV(GPGETPATHCOORDSNV fnptr, GLuint path, GLfloat * coords) { -// (*fnptr)(path, coords); -// } -// static void glowGetPathDashArrayNV(GPGETPATHDASHARRAYNV fnptr, GLuint path, GLfloat * dashArray) { -// (*fnptr)(path, dashArray); -// } -// static GLfloat glowGetPathLengthNV(GPGETPATHLENGTHNV fnptr, GLuint path, GLsizei startSegment, GLsizei numSegments) { -// return (*fnptr)(path, startSegment, numSegments); -// } -// static void glowGetPathMetricRangeNV(GPGETPATHMETRICRANGENV fnptr, GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat * metrics) { -// (*fnptr)(metricQueryMask, firstPathName, numPaths, stride, metrics); -// } -// static void glowGetPathMetricsNV(GPGETPATHMETRICSNV fnptr, GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLsizei stride, GLfloat * metrics) { -// (*fnptr)(metricQueryMask, numPaths, pathNameType, paths, pathBase, stride, metrics); -// } -// static void glowGetPathParameterfvNV(GPGETPATHPARAMETERFVNV fnptr, GLuint path, GLenum pname, GLfloat * value) { -// (*fnptr)(path, pname, value); -// } -// static void glowGetPathParameterivNV(GPGETPATHPARAMETERIVNV fnptr, GLuint path, GLenum pname, GLint * value) { -// (*fnptr)(path, pname, value); -// } -// static void glowGetPathSpacingNV(GPGETPATHSPACINGNV fnptr, GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat * returnedSpacing) { -// (*fnptr)(pathListMode, numPaths, pathNameType, paths, pathBase, advanceScale, kerningScale, transformType, returnedSpacing); -// } -// static void glowGetPathTexGenfvNV(GPGETPATHTEXGENFVNV fnptr, GLenum texCoordSet, GLenum pname, GLfloat * value) { -// (*fnptr)(texCoordSet, pname, value); -// } -// static void glowGetPathTexGenivNV(GPGETPATHTEXGENIVNV fnptr, GLenum texCoordSet, GLenum pname, GLint * value) { -// (*fnptr)(texCoordSet, pname, value); -// } -// static void glowGetPerfCounterInfoINTEL(GPGETPERFCOUNTERINFOINTEL fnptr, GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar * counterName, GLuint counterDescLength, GLchar * counterDesc, GLuint * counterOffset, GLuint * counterDataSize, GLuint * counterTypeEnum, GLuint * counterDataTypeEnum, GLuint64 * rawCounterMaxValue) { -// (*fnptr)(queryId, counterId, counterNameLength, counterName, counterDescLength, counterDesc, counterOffset, counterDataSize, counterTypeEnum, counterDataTypeEnum, rawCounterMaxValue); -// } -// static void glowGetPerfMonitorCounterDataAMD(GPGETPERFMONITORCOUNTERDATAAMD fnptr, GLuint monitor, GLenum pname, GLsizei dataSize, GLuint * data, GLint * bytesWritten) { -// (*fnptr)(monitor, pname, dataSize, data, bytesWritten); -// } -// static void glowGetPerfMonitorCounterInfoAMD(GPGETPERFMONITORCOUNTERINFOAMD fnptr, GLuint group, GLuint counter, GLenum pname, void * data) { -// (*fnptr)(group, counter, pname, data); -// } -// static void glowGetPerfMonitorCounterStringAMD(GPGETPERFMONITORCOUNTERSTRINGAMD fnptr, GLuint group, GLuint counter, GLsizei bufSize, GLsizei * length, GLchar * counterString) { -// (*fnptr)(group, counter, bufSize, length, counterString); -// } -// static void glowGetPerfMonitorCountersAMD(GPGETPERFMONITORCOUNTERSAMD fnptr, GLuint group, GLint * numCounters, GLint * maxActiveCounters, GLsizei counterSize, GLuint * counters) { -// (*fnptr)(group, numCounters, maxActiveCounters, counterSize, counters); -// } -// static void glowGetPerfMonitorGroupStringAMD(GPGETPERFMONITORGROUPSTRINGAMD fnptr, GLuint group, GLsizei bufSize, GLsizei * length, GLchar * groupString) { -// (*fnptr)(group, bufSize, length, groupString); -// } -// static void glowGetPerfMonitorGroupsAMD(GPGETPERFMONITORGROUPSAMD fnptr, GLint * numGroups, GLsizei groupsSize, GLuint * groups) { -// (*fnptr)(numGroups, groupsSize, groups); -// } -// static void glowGetPerfQueryDataINTEL(GPGETPERFQUERYDATAINTEL fnptr, GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid * data, GLuint * bytesWritten) { -// (*fnptr)(queryHandle, flags, dataSize, data, bytesWritten); -// } -// static void glowGetPerfQueryIdByNameINTEL(GPGETPERFQUERYIDBYNAMEINTEL fnptr, GLchar * queryName, GLuint * queryId) { -// (*fnptr)(queryName, queryId); -// } -// static void glowGetPerfQueryInfoINTEL(GPGETPERFQUERYINFOINTEL fnptr, GLuint queryId, GLuint queryNameLength, GLchar * queryName, GLuint * dataSize, GLuint * noCounters, GLuint * noInstances, GLuint * capsMask) { -// (*fnptr)(queryId, queryNameLength, queryName, dataSize, noCounters, noInstances, capsMask); -// } -// static void glowGetPixelMapfv(GPGETPIXELMAPFV fnptr, GLenum map, GLfloat * values) { -// (*fnptr)(map, values); -// } -// static void glowGetPixelMapuiv(GPGETPIXELMAPUIV fnptr, GLenum map, GLuint * values) { -// (*fnptr)(map, values); -// } -// static void glowGetPixelMapusv(GPGETPIXELMAPUSV fnptr, GLenum map, GLushort * values) { -// (*fnptr)(map, values); -// } -// static void glowGetPixelMapxv(GPGETPIXELMAPXV fnptr, GLenum map, GLint size, GLfixed * values) { -// (*fnptr)(map, size, values); -// } -// static void glowGetPixelTexGenParameterfvSGIS(GPGETPIXELTEXGENPARAMETERFVSGIS fnptr, GLenum pname, GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowGetPixelTexGenParameterivSGIS(GPGETPIXELTEXGENPARAMETERIVSGIS fnptr, GLenum pname, GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowGetPixelTransformParameterfvEXT(GPGETPIXELTRANSFORMPARAMETERFVEXT fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetPixelTransformParameterivEXT(GPGETPIXELTRANSFORMPARAMETERIVEXT fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetPointerIndexedvEXT(GPGETPOINTERINDEXEDVEXT fnptr, GLenum target, GLuint index, void ** data) { -// (*fnptr)(target, index, data); -// } -// static void glowGetPointeri_vEXT(GPGETPOINTERI_VEXT fnptr, GLenum pname, GLuint index, void ** params) { -// (*fnptr)(pname, index, params); -// } -// static void glowGetPointerv(GPGETPOINTERV fnptr, GLenum pname, void ** params) { -// (*fnptr)(pname, params); -// } -// static void glowGetPointervEXT(GPGETPOINTERVEXT fnptr, GLenum pname, void ** params) { -// (*fnptr)(pname, params); -// } -// static void glowGetPointervKHR(GPGETPOINTERVKHR fnptr, GLenum pname, void ** params) { -// (*fnptr)(pname, params); -// } -// static void glowGetPolygonStipple(GPGETPOLYGONSTIPPLE fnptr, GLubyte * mask) { -// (*fnptr)(mask); -// } -// static void glowGetProgramBinary(GPGETPROGRAMBINARY fnptr, GLuint program, GLsizei bufSize, GLsizei * length, GLenum * binaryFormat, void * binary) { -// (*fnptr)(program, bufSize, length, binaryFormat, binary); -// } -// static void glowGetProgramEnvParameterIivNV(GPGETPROGRAMENVPARAMETERIIVNV fnptr, GLenum target, GLuint index, GLint * params) { -// (*fnptr)(target, index, params); -// } -// static void glowGetProgramEnvParameterIuivNV(GPGETPROGRAMENVPARAMETERIUIVNV fnptr, GLenum target, GLuint index, GLuint * params) { -// (*fnptr)(target, index, params); -// } -// static void glowGetProgramEnvParameterdvARB(GPGETPROGRAMENVPARAMETERDVARB fnptr, GLenum target, GLuint index, GLdouble * params) { -// (*fnptr)(target, index, params); -// } -// static void glowGetProgramEnvParameterfvARB(GPGETPROGRAMENVPARAMETERFVARB fnptr, GLenum target, GLuint index, GLfloat * params) { -// (*fnptr)(target, index, params); -// } -// static void glowGetProgramInfoLog(GPGETPROGRAMINFOLOG fnptr, GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog) { -// (*fnptr)(program, bufSize, length, infoLog); -// } -// static void glowGetProgramInterfaceiv(GPGETPROGRAMINTERFACEIV fnptr, GLuint program, GLenum programInterface, GLenum pname, GLint * params) { -// (*fnptr)(program, programInterface, pname, params); -// } -// static void glowGetProgramLocalParameterIivNV(GPGETPROGRAMLOCALPARAMETERIIVNV fnptr, GLenum target, GLuint index, GLint * params) { -// (*fnptr)(target, index, params); -// } -// static void glowGetProgramLocalParameterIuivNV(GPGETPROGRAMLOCALPARAMETERIUIVNV fnptr, GLenum target, GLuint index, GLuint * params) { -// (*fnptr)(target, index, params); -// } -// static void glowGetProgramLocalParameterdvARB(GPGETPROGRAMLOCALPARAMETERDVARB fnptr, GLenum target, GLuint index, GLdouble * params) { -// (*fnptr)(target, index, params); -// } -// static void glowGetProgramLocalParameterfvARB(GPGETPROGRAMLOCALPARAMETERFVARB fnptr, GLenum target, GLuint index, GLfloat * params) { -// (*fnptr)(target, index, params); -// } -// static void glowGetProgramNamedParameterdvNV(GPGETPROGRAMNAMEDPARAMETERDVNV fnptr, GLuint id, GLsizei len, const GLubyte * name, GLdouble * params) { -// (*fnptr)(id, len, name, params); -// } -// static void glowGetProgramNamedParameterfvNV(GPGETPROGRAMNAMEDPARAMETERFVNV fnptr, GLuint id, GLsizei len, const GLubyte * name, GLfloat * params) { -// (*fnptr)(id, len, name, params); -// } -// static void glowGetProgramParameterdvNV(GPGETPROGRAMPARAMETERDVNV fnptr, GLenum target, GLuint index, GLenum pname, GLdouble * params) { -// (*fnptr)(target, index, pname, params); -// } -// static void glowGetProgramParameterfvNV(GPGETPROGRAMPARAMETERFVNV fnptr, GLenum target, GLuint index, GLenum pname, GLfloat * params) { -// (*fnptr)(target, index, pname, params); -// } -// static void glowGetProgramPipelineInfoLog(GPGETPROGRAMPIPELINEINFOLOG fnptr, GLuint pipeline, GLsizei bufSize, GLsizei * length, GLchar * infoLog) { -// (*fnptr)(pipeline, bufSize, length, infoLog); -// } -// static void glowGetProgramPipelineInfoLogEXT(GPGETPROGRAMPIPELINEINFOLOGEXT fnptr, GLuint pipeline, GLsizei bufSize, GLsizei * length, GLchar * infoLog) { -// (*fnptr)(pipeline, bufSize, length, infoLog); -// } -// static void glowGetProgramPipelineiv(GPGETPROGRAMPIPELINEIV fnptr, GLuint pipeline, GLenum pname, GLint * params) { -// (*fnptr)(pipeline, pname, params); -// } -// static void glowGetProgramPipelineivEXT(GPGETPROGRAMPIPELINEIVEXT fnptr, GLuint pipeline, GLenum pname, GLint * params) { -// (*fnptr)(pipeline, pname, params); -// } -// static GLuint glowGetProgramResourceIndex(GPGETPROGRAMRESOURCEINDEX fnptr, GLuint program, GLenum programInterface, const GLchar * name) { -// return (*fnptr)(program, programInterface, name); -// } -// static GLint glowGetProgramResourceLocation(GPGETPROGRAMRESOURCELOCATION fnptr, GLuint program, GLenum programInterface, const GLchar * name) { -// return (*fnptr)(program, programInterface, name); -// } -// static GLint glowGetProgramResourceLocationIndex(GPGETPROGRAMRESOURCELOCATIONINDEX fnptr, GLuint program, GLenum programInterface, const GLchar * name) { -// return (*fnptr)(program, programInterface, name); -// } -// static void glowGetProgramResourceName(GPGETPROGRAMRESOURCENAME fnptr, GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei * length, GLchar * name) { -// (*fnptr)(program, programInterface, index, bufSize, length, name); -// } -// static void glowGetProgramResourcefvNV(GPGETPROGRAMRESOURCEFVNV fnptr, GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum * props, GLsizei bufSize, GLsizei * length, GLfloat * params) { -// (*fnptr)(program, programInterface, index, propCount, props, bufSize, length, params); -// } -// static void glowGetProgramResourceiv(GPGETPROGRAMRESOURCEIV fnptr, GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum * props, GLsizei bufSize, GLsizei * length, GLint * params) { -// (*fnptr)(program, programInterface, index, propCount, props, bufSize, length, params); -// } -// static void glowGetProgramStageiv(GPGETPROGRAMSTAGEIV fnptr, GLuint program, GLenum shadertype, GLenum pname, GLint * values) { -// (*fnptr)(program, shadertype, pname, values); -// } -// static void glowGetProgramStringARB(GPGETPROGRAMSTRINGARB fnptr, GLenum target, GLenum pname, void * string) { -// (*fnptr)(target, pname, string); -// } -// static void glowGetProgramStringNV(GPGETPROGRAMSTRINGNV fnptr, GLuint id, GLenum pname, GLubyte * program) { -// (*fnptr)(id, pname, program); -// } -// static void glowGetProgramSubroutineParameteruivNV(GPGETPROGRAMSUBROUTINEPARAMETERUIVNV fnptr, GLenum target, GLuint index, GLuint * param) { -// (*fnptr)(target, index, param); -// } -// static void glowGetProgramiv(GPGETPROGRAMIV fnptr, GLuint program, GLenum pname, GLint * params) { -// (*fnptr)(program, pname, params); -// } -// static void glowGetProgramivARB(GPGETPROGRAMIVARB fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetProgramivNV(GPGETPROGRAMIVNV fnptr, GLuint id, GLenum pname, GLint * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryIndexediv(GPGETQUERYINDEXEDIV fnptr, GLenum target, GLuint index, GLenum pname, GLint * params) { -// (*fnptr)(target, index, pname, params); -// } -// static void glowGetQueryObjecti64v(GPGETQUERYOBJECTI64V fnptr, GLuint id, GLenum pname, GLint64 * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryObjecti64vEXT(GPGETQUERYOBJECTI64VEXT fnptr, GLuint id, GLenum pname, GLint64 * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryObjectiv(GPGETQUERYOBJECTIV fnptr, GLuint id, GLenum pname, GLint * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryObjectivARB(GPGETQUERYOBJECTIVARB fnptr, GLuint id, GLenum pname, GLint * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryObjectui64v(GPGETQUERYOBJECTUI64V fnptr, GLuint id, GLenum pname, GLuint64 * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryObjectui64vEXT(GPGETQUERYOBJECTUI64VEXT fnptr, GLuint id, GLenum pname, GLuint64 * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryObjectuiv(GPGETQUERYOBJECTUIV fnptr, GLuint id, GLenum pname, GLuint * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryObjectuivARB(GPGETQUERYOBJECTUIVARB fnptr, GLuint id, GLenum pname, GLuint * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetQueryiv(GPGETQUERYIV fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetQueryivARB(GPGETQUERYIVARB fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetRenderbufferParameteriv(GPGETRENDERBUFFERPARAMETERIV fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetRenderbufferParameterivEXT(GPGETRENDERBUFFERPARAMETERIVEXT fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetSamplerParameterIiv(GPGETSAMPLERPARAMETERIIV fnptr, GLuint sampler, GLenum pname, GLint * params) { -// (*fnptr)(sampler, pname, params); -// } -// static void glowGetSamplerParameterIuiv(GPGETSAMPLERPARAMETERIUIV fnptr, GLuint sampler, GLenum pname, GLuint * params) { -// (*fnptr)(sampler, pname, params); -// } -// static void glowGetSamplerParameterfv(GPGETSAMPLERPARAMETERFV fnptr, GLuint sampler, GLenum pname, GLfloat * params) { -// (*fnptr)(sampler, pname, params); -// } -// static void glowGetSamplerParameteriv(GPGETSAMPLERPARAMETERIV fnptr, GLuint sampler, GLenum pname, GLint * params) { -// (*fnptr)(sampler, pname, params); -// } -// static void glowGetSeparableFilterEXT(GPGETSEPARABLEFILTEREXT fnptr, GLenum target, GLenum format, GLenum type, void * row, void * column, void * span) { -// (*fnptr)(target, format, type, row, column, span); -// } -// static void glowGetShaderInfoLog(GPGETSHADERINFOLOG fnptr, GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog) { -// (*fnptr)(shader, bufSize, length, infoLog); -// } -// static void glowGetShaderPrecisionFormat(GPGETSHADERPRECISIONFORMAT fnptr, GLenum shadertype, GLenum precisiontype, GLint * range, GLint * precision) { -// (*fnptr)(shadertype, precisiontype, range, precision); -// } -// static void glowGetShaderSource(GPGETSHADERSOURCE fnptr, GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * source) { -// (*fnptr)(shader, bufSize, length, source); -// } -// static void glowGetShaderSourceARB(GPGETSHADERSOURCEARB fnptr, GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * source) { -// (*fnptr)(obj, maxLength, length, source); -// } -// static void glowGetShaderiv(GPGETSHADERIV fnptr, GLuint shader, GLenum pname, GLint * params) { -// (*fnptr)(shader, pname, params); -// } -// static void glowGetSharpenTexFuncSGIS(GPGETSHARPENTEXFUNCSGIS fnptr, GLenum target, GLfloat * points) { -// (*fnptr)(target, points); -// } -// static const GLubyte * glowGetString(GPGETSTRING fnptr, GLenum name) { -// return (*fnptr)(name); -// } -// static GLuint glowGetSubroutineIndex(GPGETSUBROUTINEINDEX fnptr, GLuint program, GLenum shadertype, const GLchar * name) { -// return (*fnptr)(program, shadertype, name); -// } -// static GLint glowGetSubroutineUniformLocation(GPGETSUBROUTINEUNIFORMLOCATION fnptr, GLuint program, GLenum shadertype, const GLchar * name) { -// return (*fnptr)(program, shadertype, name); -// } -// static void glowGetSynciv(GPGETSYNCIV fnptr, GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values) { -// (*fnptr)(sync, pname, bufSize, length, values); -// } -// static void glowGetTexBumpParameterfvATI(GPGETTEXBUMPPARAMETERFVATI fnptr, GLenum pname, GLfloat * param) { -// (*fnptr)(pname, param); -// } -// static void glowGetTexBumpParameterivATI(GPGETTEXBUMPPARAMETERIVATI fnptr, GLenum pname, GLint * param) { -// (*fnptr)(pname, param); -// } -// static void glowGetTexEnvfv(GPGETTEXENVFV fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetTexEnviv(GPGETTEXENVIV fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetTexEnvxvOES(GPGETTEXENVXVOES fnptr, GLenum target, GLenum pname, GLfixed * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetTexFilterFuncSGIS(GPGETTEXFILTERFUNCSGIS fnptr, GLenum target, GLenum filter, GLfloat * weights) { -// (*fnptr)(target, filter, weights); -// } -// static void glowGetTexGendv(GPGETTEXGENDV fnptr, GLenum coord, GLenum pname, GLdouble * params) { -// (*fnptr)(coord, pname, params); -// } -// static void glowGetTexGenfv(GPGETTEXGENFV fnptr, GLenum coord, GLenum pname, GLfloat * params) { -// (*fnptr)(coord, pname, params); -// } -// static void glowGetTexGeniv(GPGETTEXGENIV fnptr, GLenum coord, GLenum pname, GLint * params) { -// (*fnptr)(coord, pname, params); -// } -// static void glowGetTexGenxvOES(GPGETTEXGENXVOES fnptr, GLenum coord, GLenum pname, GLfixed * params) { -// (*fnptr)(coord, pname, params); -// } -// static void glowGetTexImage(GPGETTEXIMAGE fnptr, GLenum target, GLint level, GLenum format, GLenum type, void * pixels) { -// (*fnptr)(target, level, format, type, pixels); -// } -// static void glowGetTexLevelParameterfv(GPGETTEXLEVELPARAMETERFV fnptr, GLenum target, GLint level, GLenum pname, GLfloat * params) { -// (*fnptr)(target, level, pname, params); -// } -// static void glowGetTexLevelParameteriv(GPGETTEXLEVELPARAMETERIV fnptr, GLenum target, GLint level, GLenum pname, GLint * params) { -// (*fnptr)(target, level, pname, params); -// } -// static void glowGetTexLevelParameterxvOES(GPGETTEXLEVELPARAMETERXVOES fnptr, GLenum target, GLint level, GLenum pname, GLfixed * params) { -// (*fnptr)(target, level, pname, params); -// } -// static void glowGetTexParameterIivEXT(GPGETTEXPARAMETERIIVEXT fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetTexParameterIuivEXT(GPGETTEXPARAMETERIUIVEXT fnptr, GLenum target, GLenum pname, GLuint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetTexParameterPointervAPPLE(GPGETTEXPARAMETERPOINTERVAPPLE fnptr, GLenum target, GLenum pname, void ** params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetTexParameterfv(GPGETTEXPARAMETERFV fnptr, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetTexParameteriv(GPGETTEXPARAMETERIV fnptr, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowGetTexParameterxvOES(GPGETTEXPARAMETERXVOES fnptr, GLenum target, GLenum pname, GLfixed * params) { -// (*fnptr)(target, pname, params); -// } -// static GLuint64 glowGetTextureHandleARB(GPGETTEXTUREHANDLEARB fnptr, GLuint texture) { -// return (*fnptr)(texture); -// } -// static GLuint64 glowGetTextureHandleNV(GPGETTEXTUREHANDLENV fnptr, GLuint texture) { -// return (*fnptr)(texture); -// } -// static void glowGetTextureImage(GPGETTEXTUREIMAGE fnptr, GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void * pixels) { -// (*fnptr)(texture, level, format, type, bufSize, pixels); -// } -// static void glowGetTextureImageEXT(GPGETTEXTUREIMAGEEXT fnptr, GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void * pixels) { -// (*fnptr)(texture, target, level, format, type, pixels); -// } -// static void glowGetTextureLevelParameterfv(GPGETTEXTURELEVELPARAMETERFV fnptr, GLuint texture, GLint level, GLenum pname, GLfloat * params) { -// (*fnptr)(texture, level, pname, params); -// } -// static void glowGetTextureLevelParameterfvEXT(GPGETTEXTURELEVELPARAMETERFVEXT fnptr, GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat * params) { -// (*fnptr)(texture, target, level, pname, params); -// } -// static void glowGetTextureLevelParameteriv(GPGETTEXTURELEVELPARAMETERIV fnptr, GLuint texture, GLint level, GLenum pname, GLint * params) { -// (*fnptr)(texture, level, pname, params); -// } -// static void glowGetTextureLevelParameterivEXT(GPGETTEXTURELEVELPARAMETERIVEXT fnptr, GLuint texture, GLenum target, GLint level, GLenum pname, GLint * params) { -// (*fnptr)(texture, target, level, pname, params); -// } -// static void glowGetTextureParameterIiv(GPGETTEXTUREPARAMETERIIV fnptr, GLuint texture, GLenum pname, GLint * params) { -// (*fnptr)(texture, pname, params); -// } -// static void glowGetTextureParameterIivEXT(GPGETTEXTUREPARAMETERIIVEXT fnptr, GLuint texture, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(texture, target, pname, params); -// } -// static void glowGetTextureParameterIuiv(GPGETTEXTUREPARAMETERIUIV fnptr, GLuint texture, GLenum pname, GLuint * params) { -// (*fnptr)(texture, pname, params); -// } -// static void glowGetTextureParameterIuivEXT(GPGETTEXTUREPARAMETERIUIVEXT fnptr, GLuint texture, GLenum target, GLenum pname, GLuint * params) { -// (*fnptr)(texture, target, pname, params); -// } -// static void glowGetTextureParameterfv(GPGETTEXTUREPARAMETERFV fnptr, GLuint texture, GLenum pname, GLfloat * params) { -// (*fnptr)(texture, pname, params); -// } -// static void glowGetTextureParameterfvEXT(GPGETTEXTUREPARAMETERFVEXT fnptr, GLuint texture, GLenum target, GLenum pname, GLfloat * params) { -// (*fnptr)(texture, target, pname, params); -// } -// static void glowGetTextureParameteriv(GPGETTEXTUREPARAMETERIV fnptr, GLuint texture, GLenum pname, GLint * params) { -// (*fnptr)(texture, pname, params); -// } -// static void glowGetTextureParameterivEXT(GPGETTEXTUREPARAMETERIVEXT fnptr, GLuint texture, GLenum target, GLenum pname, GLint * params) { -// (*fnptr)(texture, target, pname, params); -// } -// static GLuint64 glowGetTextureSamplerHandleARB(GPGETTEXTURESAMPLERHANDLEARB fnptr, GLuint texture, GLuint sampler) { -// return (*fnptr)(texture, sampler); -// } -// static GLuint64 glowGetTextureSamplerHandleNV(GPGETTEXTURESAMPLERHANDLENV fnptr, GLuint texture, GLuint sampler) { -// return (*fnptr)(texture, sampler); -// } -// static void glowGetTextureSubImage(GPGETTEXTURESUBIMAGE fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void * pixels) { -// (*fnptr)(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize, pixels); -// } -// static void glowGetTrackMatrixivNV(GPGETTRACKMATRIXIVNV fnptr, GLenum target, GLuint address, GLenum pname, GLint * params) { -// (*fnptr)(target, address, pname, params); -// } -// static void glowGetTransformFeedbackVaryingEXT(GPGETTRANSFORMFEEDBACKVARYINGEXT fnptr, GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name) { -// (*fnptr)(program, index, bufSize, length, size, type, name); -// } -// static void glowGetTransformFeedbackVaryingNV(GPGETTRANSFORMFEEDBACKVARYINGNV fnptr, GLuint program, GLuint index, GLint * location) { -// (*fnptr)(program, index, location); -// } -// static void glowGetTransformFeedbacki64_v(GPGETTRANSFORMFEEDBACKI64_V fnptr, GLuint xfb, GLenum pname, GLuint index, GLint64 * param) { -// (*fnptr)(xfb, pname, index, param); -// } -// static void glowGetTransformFeedbacki_v(GPGETTRANSFORMFEEDBACKI_V fnptr, GLuint xfb, GLenum pname, GLuint index, GLint * param) { -// (*fnptr)(xfb, pname, index, param); -// } -// static void glowGetTransformFeedbackiv(GPGETTRANSFORMFEEDBACKIV fnptr, GLuint xfb, GLenum pname, GLint * param) { -// (*fnptr)(xfb, pname, param); -// } -// static GLuint glowGetUniformBlockIndex(GPGETUNIFORMBLOCKINDEX fnptr, GLuint program, const GLchar * uniformBlockName) { -// return (*fnptr)(program, uniformBlockName); -// } -// static GLint glowGetUniformBufferSizeEXT(GPGETUNIFORMBUFFERSIZEEXT fnptr, GLuint program, GLint location) { -// return (*fnptr)(program, location); -// } -// static void glowGetUniformIndices(GPGETUNIFORMINDICES fnptr, GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint * uniformIndices) { -// (*fnptr)(program, uniformCount, uniformNames, uniformIndices); -// } -// static GLint glowGetUniformLocation(GPGETUNIFORMLOCATION fnptr, GLuint program, const GLchar * name) { -// return (*fnptr)(program, name); -// } -// static GLint glowGetUniformLocationARB(GPGETUNIFORMLOCATIONARB fnptr, GLhandleARB programObj, const GLcharARB * name) { -// return (*fnptr)(programObj, name); -// } -// static GLintptr glowGetUniformOffsetEXT(GPGETUNIFORMOFFSETEXT fnptr, GLuint program, GLint location) { -// return (*fnptr)(program, location); -// } -// static void glowGetUniformSubroutineuiv(GPGETUNIFORMSUBROUTINEUIV fnptr, GLenum shadertype, GLint location, GLuint * params) { -// (*fnptr)(shadertype, location, params); -// } -// static void glowGetUniformdv(GPGETUNIFORMDV fnptr, GLuint program, GLint location, GLdouble * params) { -// (*fnptr)(program, location, params); -// } -// static void glowGetUniformfv(GPGETUNIFORMFV fnptr, GLuint program, GLint location, GLfloat * params) { -// (*fnptr)(program, location, params); -// } -// static void glowGetUniformfvARB(GPGETUNIFORMFVARB fnptr, GLhandleARB programObj, GLint location, GLfloat * params) { -// (*fnptr)(programObj, location, params); -// } -// static void glowGetUniformi64vNV(GPGETUNIFORMI64VNV fnptr, GLuint program, GLint location, GLint64EXT * params) { -// (*fnptr)(program, location, params); -// } -// static void glowGetUniformiv(GPGETUNIFORMIV fnptr, GLuint program, GLint location, GLint * params) { -// (*fnptr)(program, location, params); -// } -// static void glowGetUniformivARB(GPGETUNIFORMIVARB fnptr, GLhandleARB programObj, GLint location, GLint * params) { -// (*fnptr)(programObj, location, params); -// } -// static void glowGetUniformui64vNV(GPGETUNIFORMUI64VNV fnptr, GLuint program, GLint location, GLuint64EXT * params) { -// (*fnptr)(program, location, params); -// } -// static void glowGetUniformuivEXT(GPGETUNIFORMUIVEXT fnptr, GLuint program, GLint location, GLuint * params) { -// (*fnptr)(program, location, params); -// } -// static void glowGetVariantArrayObjectfvATI(GPGETVARIANTARRAYOBJECTFVATI fnptr, GLuint id, GLenum pname, GLfloat * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetVariantArrayObjectivATI(GPGETVARIANTARRAYOBJECTIVATI fnptr, GLuint id, GLenum pname, GLint * params) { -// (*fnptr)(id, pname, params); -// } -// static void glowGetVariantBooleanvEXT(GPGETVARIANTBOOLEANVEXT fnptr, GLuint id, GLenum value, GLboolean * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetVariantFloatvEXT(GPGETVARIANTFLOATVEXT fnptr, GLuint id, GLenum value, GLfloat * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetVariantIntegervEXT(GPGETVARIANTINTEGERVEXT fnptr, GLuint id, GLenum value, GLint * data) { -// (*fnptr)(id, value, data); -// } -// static void glowGetVariantPointervEXT(GPGETVARIANTPOINTERVEXT fnptr, GLuint id, GLenum value, void ** data) { -// (*fnptr)(id, value, data); -// } -// static GLint glowGetVaryingLocationNV(GPGETVARYINGLOCATIONNV fnptr, GLuint program, const GLchar * name) { -// return (*fnptr)(program, name); -// } -// static void glowGetVertexArrayIndexed64iv(GPGETVERTEXARRAYINDEXED64IV fnptr, GLuint vaobj, GLuint index, GLenum pname, GLint64 * param) { -// (*fnptr)(vaobj, index, pname, param); -// } -// static void glowGetVertexArrayIndexediv(GPGETVERTEXARRAYINDEXEDIV fnptr, GLuint vaobj, GLuint index, GLenum pname, GLint * param) { -// (*fnptr)(vaobj, index, pname, param); -// } -// static void glowGetVertexArrayIntegeri_vEXT(GPGETVERTEXARRAYINTEGERI_VEXT fnptr, GLuint vaobj, GLuint index, GLenum pname, GLint * param) { -// (*fnptr)(vaobj, index, pname, param); -// } -// static void glowGetVertexArrayIntegervEXT(GPGETVERTEXARRAYINTEGERVEXT fnptr, GLuint vaobj, GLenum pname, GLint * param) { -// (*fnptr)(vaobj, pname, param); -// } -// static void glowGetVertexArrayPointeri_vEXT(GPGETVERTEXARRAYPOINTERI_VEXT fnptr, GLuint vaobj, GLuint index, GLenum pname, void ** param) { -// (*fnptr)(vaobj, index, pname, param); -// } -// static void glowGetVertexArrayPointervEXT(GPGETVERTEXARRAYPOINTERVEXT fnptr, GLuint vaobj, GLenum pname, void ** param) { -// (*fnptr)(vaobj, pname, param); -// } -// static void glowGetVertexArrayiv(GPGETVERTEXARRAYIV fnptr, GLuint vaobj, GLenum pname, GLint * param) { -// (*fnptr)(vaobj, pname, param); -// } -// static void glowGetVertexAttribArrayObjectfvATI(GPGETVERTEXATTRIBARRAYOBJECTFVATI fnptr, GLuint index, GLenum pname, GLfloat * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribArrayObjectivATI(GPGETVERTEXATTRIBARRAYOBJECTIVATI fnptr, GLuint index, GLenum pname, GLint * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribIivEXT(GPGETVERTEXATTRIBIIVEXT fnptr, GLuint index, GLenum pname, GLint * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribIuivEXT(GPGETVERTEXATTRIBIUIVEXT fnptr, GLuint index, GLenum pname, GLuint * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribLdv(GPGETVERTEXATTRIBLDV fnptr, GLuint index, GLenum pname, GLdouble * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribLdvEXT(GPGETVERTEXATTRIBLDVEXT fnptr, GLuint index, GLenum pname, GLdouble * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribLi64vNV(GPGETVERTEXATTRIBLI64VNV fnptr, GLuint index, GLenum pname, GLint64EXT * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribLui64vARB(GPGETVERTEXATTRIBLUI64VARB fnptr, GLuint index, GLenum pname, GLuint64EXT * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribLui64vNV(GPGETVERTEXATTRIBLUI64VNV fnptr, GLuint index, GLenum pname, GLuint64EXT * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribPointerv(GPGETVERTEXATTRIBPOINTERV fnptr, GLuint index, GLenum pname, void ** pointer) { -// (*fnptr)(index, pname, pointer); -// } -// static void glowGetVertexAttribPointervARB(GPGETVERTEXATTRIBPOINTERVARB fnptr, GLuint index, GLenum pname, void ** pointer) { -// (*fnptr)(index, pname, pointer); -// } -// static void glowGetVertexAttribPointervNV(GPGETVERTEXATTRIBPOINTERVNV fnptr, GLuint index, GLenum pname, void ** pointer) { -// (*fnptr)(index, pname, pointer); -// } -// static void glowGetVertexAttribdv(GPGETVERTEXATTRIBDV fnptr, GLuint index, GLenum pname, GLdouble * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribdvARB(GPGETVERTEXATTRIBDVARB fnptr, GLuint index, GLenum pname, GLdouble * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribdvNV(GPGETVERTEXATTRIBDVNV fnptr, GLuint index, GLenum pname, GLdouble * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribfv(GPGETVERTEXATTRIBFV fnptr, GLuint index, GLenum pname, GLfloat * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribfvARB(GPGETVERTEXATTRIBFVARB fnptr, GLuint index, GLenum pname, GLfloat * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribfvNV(GPGETVERTEXATTRIBFVNV fnptr, GLuint index, GLenum pname, GLfloat * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribiv(GPGETVERTEXATTRIBIV fnptr, GLuint index, GLenum pname, GLint * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribivARB(GPGETVERTEXATTRIBIVARB fnptr, GLuint index, GLenum pname, GLint * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVertexAttribivNV(GPGETVERTEXATTRIBIVNV fnptr, GLuint index, GLenum pname, GLint * params) { -// (*fnptr)(index, pname, params); -// } -// static void glowGetVideoCaptureStreamdvNV(GPGETVIDEOCAPTURESTREAMDVNV fnptr, GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble * params) { -// (*fnptr)(video_capture_slot, stream, pname, params); -// } -// static void glowGetVideoCaptureStreamfvNV(GPGETVIDEOCAPTURESTREAMFVNV fnptr, GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat * params) { -// (*fnptr)(video_capture_slot, stream, pname, params); -// } -// static void glowGetVideoCaptureStreamivNV(GPGETVIDEOCAPTURESTREAMIVNV fnptr, GLuint video_capture_slot, GLuint stream, GLenum pname, GLint * params) { -// (*fnptr)(video_capture_slot, stream, pname, params); -// } -// static void glowGetVideoCaptureivNV(GPGETVIDEOCAPTUREIVNV fnptr, GLuint video_capture_slot, GLenum pname, GLint * params) { -// (*fnptr)(video_capture_slot, pname, params); -// } -// static void glowGetVideoi64vNV(GPGETVIDEOI64VNV fnptr, GLuint video_slot, GLenum pname, GLint64EXT * params) { -// (*fnptr)(video_slot, pname, params); -// } -// static void glowGetVideoivNV(GPGETVIDEOIVNV fnptr, GLuint video_slot, GLenum pname, GLint * params) { -// (*fnptr)(video_slot, pname, params); -// } -// static void glowGetVideoui64vNV(GPGETVIDEOUI64VNV fnptr, GLuint video_slot, GLenum pname, GLuint64EXT * params) { -// (*fnptr)(video_slot, pname, params); -// } -// static void glowGetVideouivNV(GPGETVIDEOUIVNV fnptr, GLuint video_slot, GLenum pname, GLuint * params) { -// (*fnptr)(video_slot, pname, params); -// } -// static void glowGetnCompressedTexImageARB(GPGETNCOMPRESSEDTEXIMAGEARB fnptr, GLenum target, GLint lod, GLsizei bufSize, void * img) { -// (*fnptr)(target, lod, bufSize, img); -// } -// static void glowGetnTexImageARB(GPGETNTEXIMAGEARB fnptr, GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void * img) { -// (*fnptr)(target, level, format, type, bufSize, img); -// } -// static void glowGetnUniformdvARB(GPGETNUNIFORMDVARB fnptr, GLuint program, GLint location, GLsizei bufSize, GLdouble * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformfv(GPGETNUNIFORMFV fnptr, GLuint program, GLint location, GLsizei bufSize, GLfloat * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformfvARB(GPGETNUNIFORMFVARB fnptr, GLuint program, GLint location, GLsizei bufSize, GLfloat * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformfvKHR(GPGETNUNIFORMFVKHR fnptr, GLuint program, GLint location, GLsizei bufSize, GLfloat * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformiv(GPGETNUNIFORMIV fnptr, GLuint program, GLint location, GLsizei bufSize, GLint * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformivARB(GPGETNUNIFORMIVARB fnptr, GLuint program, GLint location, GLsizei bufSize, GLint * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformivKHR(GPGETNUNIFORMIVKHR fnptr, GLuint program, GLint location, GLsizei bufSize, GLint * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformuiv(GPGETNUNIFORMUIV fnptr, GLuint program, GLint location, GLsizei bufSize, GLuint * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformuivARB(GPGETNUNIFORMUIVARB fnptr, GLuint program, GLint location, GLsizei bufSize, GLuint * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGetnUniformuivKHR(GPGETNUNIFORMUIVKHR fnptr, GLuint program, GLint location, GLsizei bufSize, GLuint * params) { -// (*fnptr)(program, location, bufSize, params); -// } -// static void glowGlobalAlphaFactorbSUN(GPGLOBALALPHAFACTORBSUN fnptr, GLbyte factor) { -// (*fnptr)(factor); -// } -// static void glowGlobalAlphaFactordSUN(GPGLOBALALPHAFACTORDSUN fnptr, GLdouble factor) { -// (*fnptr)(factor); -// } -// static void glowGlobalAlphaFactorfSUN(GPGLOBALALPHAFACTORFSUN fnptr, GLfloat factor) { -// (*fnptr)(factor); -// } -// static void glowGlobalAlphaFactoriSUN(GPGLOBALALPHAFACTORISUN fnptr, GLint factor) { -// (*fnptr)(factor); -// } -// static void glowGlobalAlphaFactorsSUN(GPGLOBALALPHAFACTORSSUN fnptr, GLshort factor) { -// (*fnptr)(factor); -// } -// static void glowGlobalAlphaFactorubSUN(GPGLOBALALPHAFACTORUBSUN fnptr, GLubyte factor) { -// (*fnptr)(factor); -// } -// static void glowGlobalAlphaFactoruiSUN(GPGLOBALALPHAFACTORUISUN fnptr, GLuint factor) { -// (*fnptr)(factor); -// } -// static void glowGlobalAlphaFactorusSUN(GPGLOBALALPHAFACTORUSSUN fnptr, GLushort factor) { -// (*fnptr)(factor); -// } -// static void glowHint(GPHINT fnptr, GLenum target, GLenum mode) { -// (*fnptr)(target, mode); -// } -// static void glowHintPGI(GPHINTPGI fnptr, GLenum target, GLint mode) { -// (*fnptr)(target, mode); -// } -// static void glowHistogramEXT(GPHISTOGRAMEXT fnptr, GLenum target, GLsizei width, GLenum internalformat, GLboolean sink) { -// (*fnptr)(target, width, internalformat, sink); -// } -// static void glowIglooInterfaceSGIX(GPIGLOOINTERFACESGIX fnptr, GLenum pname, const void * params) { -// (*fnptr)(pname, params); -// } -// static void glowImageTransformParameterfHP(GPIMAGETRANSFORMPARAMETERFHP fnptr, GLenum target, GLenum pname, GLfloat param) { -// (*fnptr)(target, pname, param); -// } -// static void glowImageTransformParameterfvHP(GPIMAGETRANSFORMPARAMETERFVHP fnptr, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowImageTransformParameteriHP(GPIMAGETRANSFORMPARAMETERIHP fnptr, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(target, pname, param); -// } -// static void glowImageTransformParameterivHP(GPIMAGETRANSFORMPARAMETERIVHP fnptr, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static GLsync glowImportSyncEXT(GPIMPORTSYNCEXT fnptr, GLenum external_sync_type, GLintptr external_sync, GLbitfield flags) { -// return (*fnptr)(external_sync_type, external_sync, flags); -// } -// static void glowIndexFormatNV(GPINDEXFORMATNV fnptr, GLenum type, GLsizei stride) { -// (*fnptr)(type, stride); -// } -// static void glowIndexFuncEXT(GPINDEXFUNCEXT fnptr, GLenum func, GLclampf ref) { -// (*fnptr)(func, ref); -// } -// static void glowIndexMask(GPINDEXMASK fnptr, GLuint mask) { -// (*fnptr)(mask); -// } -// static void glowIndexMaterialEXT(GPINDEXMATERIALEXT fnptr, GLenum face, GLenum mode) { -// (*fnptr)(face, mode); -// } -// static void glowIndexPointer(GPINDEXPOINTER fnptr, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(type, stride, pointer); -// } -// static void glowIndexPointerEXT(GPINDEXPOINTEREXT fnptr, GLenum type, GLsizei stride, GLsizei count, const void * pointer) { -// (*fnptr)(type, stride, count, pointer); -// } -// static void glowIndexPointerListIBM(GPINDEXPOINTERLISTIBM fnptr, GLenum type, GLint stride, const void ** pointer, GLint ptrstride) { -// (*fnptr)(type, stride, pointer, ptrstride); -// } -// static void glowIndexd(GPINDEXD fnptr, GLdouble c) { -// (*fnptr)(c); -// } -// static void glowIndexdv(GPINDEXDV fnptr, const GLdouble * c) { -// (*fnptr)(c); -// } -// static void glowIndexf(GPINDEXF fnptr, GLfloat c) { -// (*fnptr)(c); -// } -// static void glowIndexfv(GPINDEXFV fnptr, const GLfloat * c) { -// (*fnptr)(c); -// } -// static void glowIndexi(GPINDEXI fnptr, GLint c) { -// (*fnptr)(c); -// } -// static void glowIndexiv(GPINDEXIV fnptr, const GLint * c) { -// (*fnptr)(c); -// } -// static void glowIndexs(GPINDEXS fnptr, GLshort c) { -// (*fnptr)(c); -// } -// static void glowIndexsv(GPINDEXSV fnptr, const GLshort * c) { -// (*fnptr)(c); -// } -// static void glowIndexub(GPINDEXUB fnptr, GLubyte c) { -// (*fnptr)(c); -// } -// static void glowIndexubv(GPINDEXUBV fnptr, const GLubyte * c) { -// (*fnptr)(c); -// } -// static void glowIndexxOES(GPINDEXXOES fnptr, GLfixed component) { -// (*fnptr)(component); -// } -// static void glowIndexxvOES(GPINDEXXVOES fnptr, const GLfixed * component) { -// (*fnptr)(component); -// } -// static void glowInitNames(GPINITNAMES fnptr) { -// (*fnptr)(); -// } -// static void glowInsertComponentEXT(GPINSERTCOMPONENTEXT fnptr, GLuint res, GLuint src, GLuint num) { -// (*fnptr)(res, src, num); -// } -// static void glowInsertEventMarkerEXT(GPINSERTEVENTMARKEREXT fnptr, GLsizei length, const GLchar * marker) { -// (*fnptr)(length, marker); -// } -// static void glowInstrumentsBufferSGIX(GPINSTRUMENTSBUFFERSGIX fnptr, GLsizei size, GLint * buffer) { -// (*fnptr)(size, buffer); -// } -// static void glowInterleavedArrays(GPINTERLEAVEDARRAYS fnptr, GLenum format, GLsizei stride, const void * pointer) { -// (*fnptr)(format, stride, pointer); -// } -// static void glowInterpolatePathsNV(GPINTERPOLATEPATHSNV fnptr, GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight) { -// (*fnptr)(resultPath, pathA, pathB, weight); -// } -// static void glowInvalidateBufferData(GPINVALIDATEBUFFERDATA fnptr, GLuint buffer) { -// (*fnptr)(buffer); -// } -// static void glowInvalidateBufferSubData(GPINVALIDATEBUFFERSUBDATA fnptr, GLuint buffer, GLintptr offset, GLsizeiptr length) { -// (*fnptr)(buffer, offset, length); -// } -// static void glowInvalidateFramebuffer(GPINVALIDATEFRAMEBUFFER fnptr, GLenum target, GLsizei numAttachments, const GLenum * attachments) { -// (*fnptr)(target, numAttachments, attachments); -// } -// static void glowInvalidateNamedFramebufferData(GPINVALIDATENAMEDFRAMEBUFFERDATA fnptr, GLuint framebuffer, GLsizei numAttachments, const GLenum * attachments) { -// (*fnptr)(framebuffer, numAttachments, attachments); -// } -// static void glowInvalidateNamedFramebufferSubData(GPINVALIDATENAMEDFRAMEBUFFERSUBDATA fnptr, GLuint framebuffer, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(framebuffer, numAttachments, attachments, x, y, width, height); -// } -// static void glowInvalidateSubFramebuffer(GPINVALIDATESUBFRAMEBUFFER fnptr, GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(target, numAttachments, attachments, x, y, width, height); -// } -// static void glowInvalidateTexImage(GPINVALIDATETEXIMAGE fnptr, GLuint texture, GLint level) { -// (*fnptr)(texture, level); -// } -// static void glowInvalidateTexSubImage(GPINVALIDATETEXSUBIMAGE fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth) { -// (*fnptr)(texture, level, xoffset, yoffset, zoffset, width, height, depth); -// } -// static GLboolean glowIsAsyncMarkerSGIX(GPISASYNCMARKERSGIX fnptr, GLuint marker) { -// return (*fnptr)(marker); -// } -// static GLboolean glowIsBuffer(GPISBUFFER fnptr, GLuint buffer) { -// return (*fnptr)(buffer); -// } -// static GLboolean glowIsBufferARB(GPISBUFFERARB fnptr, GLuint buffer) { -// return (*fnptr)(buffer); -// } -// static GLboolean glowIsBufferResidentNV(GPISBUFFERRESIDENTNV fnptr, GLenum target) { -// return (*fnptr)(target); -// } -// static GLboolean glowIsEnabled(GPISENABLED fnptr, GLenum cap) { -// return (*fnptr)(cap); -// } -// static GLboolean glowIsEnabledIndexedEXT(GPISENABLEDINDEXEDEXT fnptr, GLenum target, GLuint index) { -// return (*fnptr)(target, index); -// } -// static GLboolean glowIsFenceAPPLE(GPISFENCEAPPLE fnptr, GLuint fence) { -// return (*fnptr)(fence); -// } -// static GLboolean glowIsFenceNV(GPISFENCENV fnptr, GLuint fence) { -// return (*fnptr)(fence); -// } -// static GLboolean glowIsFramebuffer(GPISFRAMEBUFFER fnptr, GLuint framebuffer) { -// return (*fnptr)(framebuffer); -// } -// static GLboolean glowIsFramebufferEXT(GPISFRAMEBUFFEREXT fnptr, GLuint framebuffer) { -// return (*fnptr)(framebuffer); -// } -// static GLboolean glowIsImageHandleResidentARB(GPISIMAGEHANDLERESIDENTARB fnptr, GLuint64 handle) { -// return (*fnptr)(handle); -// } -// static GLboolean glowIsImageHandleResidentNV(GPISIMAGEHANDLERESIDENTNV fnptr, GLuint64 handle) { -// return (*fnptr)(handle); -// } -// static GLboolean glowIsList(GPISLIST fnptr, GLuint list) { -// return (*fnptr)(list); -// } -// static GLboolean glowIsNameAMD(GPISNAMEAMD fnptr, GLenum identifier, GLuint name) { -// return (*fnptr)(identifier, name); -// } -// static GLboolean glowIsNamedBufferResidentNV(GPISNAMEDBUFFERRESIDENTNV fnptr, GLuint buffer) { -// return (*fnptr)(buffer); -// } -// static GLboolean glowIsNamedStringARB(GPISNAMEDSTRINGARB fnptr, GLint namelen, const GLchar * name) { -// return (*fnptr)(namelen, name); -// } -// static GLboolean glowIsObjectBufferATI(GPISOBJECTBUFFERATI fnptr, GLuint buffer) { -// return (*fnptr)(buffer); -// } -// static GLboolean glowIsOcclusionQueryNV(GPISOCCLUSIONQUERYNV fnptr, GLuint id) { -// return (*fnptr)(id); -// } -// static GLboolean glowIsPathNV(GPISPATHNV fnptr, GLuint path) { -// return (*fnptr)(path); -// } -// static GLboolean glowIsPointInFillPathNV(GPISPOINTINFILLPATHNV fnptr, GLuint path, GLuint mask, GLfloat x, GLfloat y) { -// return (*fnptr)(path, mask, x, y); -// } -// static GLboolean glowIsPointInStrokePathNV(GPISPOINTINSTROKEPATHNV fnptr, GLuint path, GLfloat x, GLfloat y) { -// return (*fnptr)(path, x, y); -// } -// static GLboolean glowIsProgram(GPISPROGRAM fnptr, GLuint program) { -// return (*fnptr)(program); -// } -// static GLboolean glowIsProgramARB(GPISPROGRAMARB fnptr, GLuint program) { -// return (*fnptr)(program); -// } -// static GLboolean glowIsProgramNV(GPISPROGRAMNV fnptr, GLuint id) { -// return (*fnptr)(id); -// } -// static GLboolean glowIsProgramPipeline(GPISPROGRAMPIPELINE fnptr, GLuint pipeline) { -// return (*fnptr)(pipeline); -// } -// static GLboolean glowIsProgramPipelineEXT(GPISPROGRAMPIPELINEEXT fnptr, GLuint pipeline) { -// return (*fnptr)(pipeline); -// } -// static GLboolean glowIsQuery(GPISQUERY fnptr, GLuint id) { -// return (*fnptr)(id); -// } -// static GLboolean glowIsQueryARB(GPISQUERYARB fnptr, GLuint id) { -// return (*fnptr)(id); -// } -// static GLboolean glowIsRenderbuffer(GPISRENDERBUFFER fnptr, GLuint renderbuffer) { -// return (*fnptr)(renderbuffer); -// } -// static GLboolean glowIsRenderbufferEXT(GPISRENDERBUFFEREXT fnptr, GLuint renderbuffer) { -// return (*fnptr)(renderbuffer); -// } -// static GLboolean glowIsSampler(GPISSAMPLER fnptr, GLuint sampler) { -// return (*fnptr)(sampler); -// } -// static GLboolean glowIsShader(GPISSHADER fnptr, GLuint shader) { -// return (*fnptr)(shader); -// } -// static GLboolean glowIsSync(GPISSYNC fnptr, GLsync sync) { -// return (*fnptr)(sync); -// } -// static GLboolean glowIsTexture(GPISTEXTURE fnptr, GLuint texture) { -// return (*fnptr)(texture); -// } -// static GLboolean glowIsTextureEXT(GPISTEXTUREEXT fnptr, GLuint texture) { -// return (*fnptr)(texture); -// } -// static GLboolean glowIsTextureHandleResidentARB(GPISTEXTUREHANDLERESIDENTARB fnptr, GLuint64 handle) { -// return (*fnptr)(handle); -// } -// static GLboolean glowIsTextureHandleResidentNV(GPISTEXTUREHANDLERESIDENTNV fnptr, GLuint64 handle) { -// return (*fnptr)(handle); -// } -// static GLboolean glowIsTransformFeedback(GPISTRANSFORMFEEDBACK fnptr, GLuint id) { -// return (*fnptr)(id); -// } -// static GLboolean glowIsTransformFeedbackNV(GPISTRANSFORMFEEDBACKNV fnptr, GLuint id) { -// return (*fnptr)(id); -// } -// static GLboolean glowIsVariantEnabledEXT(GPISVARIANTENABLEDEXT fnptr, GLuint id, GLenum cap) { -// return (*fnptr)(id, cap); -// } -// static GLboolean glowIsVertexArray(GPISVERTEXARRAY fnptr, GLuint array) { -// return (*fnptr)(array); -// } -// static GLboolean glowIsVertexArrayAPPLE(GPISVERTEXARRAYAPPLE fnptr, GLuint array) { -// return (*fnptr)(array); -// } -// static GLboolean glowIsVertexAttribEnabledAPPLE(GPISVERTEXATTRIBENABLEDAPPLE fnptr, GLuint index, GLenum pname) { -// return (*fnptr)(index, pname); -// } -// static void glowLabelObjectEXT(GPLABELOBJECTEXT fnptr, GLenum type, GLuint object, GLsizei length, const GLchar * label) { -// (*fnptr)(type, object, length, label); -// } -// static void glowLightEnviSGIX(GPLIGHTENVISGIX fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowLightModelf(GPLIGHTMODELF fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowLightModelfv(GPLIGHTMODELFV fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowLightModeli(GPLIGHTMODELI fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowLightModeliv(GPLIGHTMODELIV fnptr, GLenum pname, const GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowLightModelxOES(GPLIGHTMODELXOES fnptr, GLenum pname, GLfixed param) { -// (*fnptr)(pname, param); -// } -// static void glowLightModelxvOES(GPLIGHTMODELXVOES fnptr, GLenum pname, const GLfixed * param) { -// (*fnptr)(pname, param); -// } -// static void glowLightf(GPLIGHTF fnptr, GLenum light, GLenum pname, GLfloat param) { -// (*fnptr)(light, pname, param); -// } -// static void glowLightfv(GPLIGHTFV fnptr, GLenum light, GLenum pname, const GLfloat * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowLighti(GPLIGHTI fnptr, GLenum light, GLenum pname, GLint param) { -// (*fnptr)(light, pname, param); -// } -// static void glowLightiv(GPLIGHTIV fnptr, GLenum light, GLenum pname, const GLint * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowLightxOES(GPLIGHTXOES fnptr, GLenum light, GLenum pname, GLfixed param) { -// (*fnptr)(light, pname, param); -// } -// static void glowLightxvOES(GPLIGHTXVOES fnptr, GLenum light, GLenum pname, const GLfixed * params) { -// (*fnptr)(light, pname, params); -// } -// static void glowLineStipple(GPLINESTIPPLE fnptr, GLint factor, GLushort pattern) { -// (*fnptr)(factor, pattern); -// } -// static void glowLineWidth(GPLINEWIDTH fnptr, GLfloat width) { -// (*fnptr)(width); -// } -// static void glowLineWidthxOES(GPLINEWIDTHXOES fnptr, GLfixed width) { -// (*fnptr)(width); -// } -// static void glowLinkProgram(GPLINKPROGRAM fnptr, GLuint program) { -// (*fnptr)(program); -// } -// static void glowLinkProgramARB(GPLINKPROGRAMARB fnptr, GLhandleARB programObj) { -// (*fnptr)(programObj); -// } -// static void glowListBase(GPLISTBASE fnptr, GLuint base) { -// (*fnptr)(base); -// } -// static void glowListParameterfSGIX(GPLISTPARAMETERFSGIX fnptr, GLuint list, GLenum pname, GLfloat param) { -// (*fnptr)(list, pname, param); -// } -// static void glowListParameterfvSGIX(GPLISTPARAMETERFVSGIX fnptr, GLuint list, GLenum pname, const GLfloat * params) { -// (*fnptr)(list, pname, params); -// } -// static void glowListParameteriSGIX(GPLISTPARAMETERISGIX fnptr, GLuint list, GLenum pname, GLint param) { -// (*fnptr)(list, pname, param); -// } -// static void glowListParameterivSGIX(GPLISTPARAMETERIVSGIX fnptr, GLuint list, GLenum pname, const GLint * params) { -// (*fnptr)(list, pname, params); -// } -// static void glowLoadIdentity(GPLOADIDENTITY fnptr) { -// (*fnptr)(); -// } -// static void glowLoadIdentityDeformationMapSGIX(GPLOADIDENTITYDEFORMATIONMAPSGIX fnptr, GLbitfield mask) { -// (*fnptr)(mask); -// } -// static void glowLoadMatrixd(GPLOADMATRIXD fnptr, const GLdouble * m) { -// (*fnptr)(m); -// } -// static void glowLoadMatrixf(GPLOADMATRIXF fnptr, const GLfloat * m) { -// (*fnptr)(m); -// } -// static void glowLoadMatrixxOES(GPLOADMATRIXXOES fnptr, const GLfixed * m) { -// (*fnptr)(m); -// } -// static void glowLoadName(GPLOADNAME fnptr, GLuint name) { -// (*fnptr)(name); -// } -// static void glowLoadProgramNV(GPLOADPROGRAMNV fnptr, GLenum target, GLuint id, GLsizei len, const GLubyte * program) { -// (*fnptr)(target, id, len, program); -// } -// static void glowLoadTransposeMatrixd(GPLOADTRANSPOSEMATRIXD fnptr, const GLdouble * m) { -// (*fnptr)(m); -// } -// static void glowLoadTransposeMatrixdARB(GPLOADTRANSPOSEMATRIXDARB fnptr, const GLdouble * m) { -// (*fnptr)(m); -// } -// static void glowLoadTransposeMatrixf(GPLOADTRANSPOSEMATRIXF fnptr, const GLfloat * m) { -// (*fnptr)(m); -// } -// static void glowLoadTransposeMatrixfARB(GPLOADTRANSPOSEMATRIXFARB fnptr, const GLfloat * m) { -// (*fnptr)(m); -// } -// static void glowLoadTransposeMatrixxOES(GPLOADTRANSPOSEMATRIXXOES fnptr, const GLfixed * m) { -// (*fnptr)(m); -// } -// static void glowLockArraysEXT(GPLOCKARRAYSEXT fnptr, GLint first, GLsizei count) { -// (*fnptr)(first, count); -// } -// static void glowLogicOp(GPLOGICOP fnptr, GLenum opcode) { -// (*fnptr)(opcode); -// } -// static void glowMakeBufferNonResidentNV(GPMAKEBUFFERNONRESIDENTNV fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowMakeBufferResidentNV(GPMAKEBUFFERRESIDENTNV fnptr, GLenum target, GLenum access) { -// (*fnptr)(target, access); -// } -// static void glowMakeImageHandleNonResidentARB(GPMAKEIMAGEHANDLENONRESIDENTARB fnptr, GLuint64 handle) { -// (*fnptr)(handle); -// } -// static void glowMakeImageHandleNonResidentNV(GPMAKEIMAGEHANDLENONRESIDENTNV fnptr, GLuint64 handle) { -// (*fnptr)(handle); -// } -// static void glowMakeImageHandleResidentARB(GPMAKEIMAGEHANDLERESIDENTARB fnptr, GLuint64 handle, GLenum access) { -// (*fnptr)(handle, access); -// } -// static void glowMakeImageHandleResidentNV(GPMAKEIMAGEHANDLERESIDENTNV fnptr, GLuint64 handle, GLenum access) { -// (*fnptr)(handle, access); -// } -// static void glowMakeNamedBufferNonResidentNV(GPMAKENAMEDBUFFERNONRESIDENTNV fnptr, GLuint buffer) { -// (*fnptr)(buffer); -// } -// static void glowMakeNamedBufferResidentNV(GPMAKENAMEDBUFFERRESIDENTNV fnptr, GLuint buffer, GLenum access) { -// (*fnptr)(buffer, access); -// } -// static void glowMakeTextureHandleNonResidentARB(GPMAKETEXTUREHANDLENONRESIDENTARB fnptr, GLuint64 handle) { -// (*fnptr)(handle); -// } -// static void glowMakeTextureHandleNonResidentNV(GPMAKETEXTUREHANDLENONRESIDENTNV fnptr, GLuint64 handle) { -// (*fnptr)(handle); -// } -// static void glowMakeTextureHandleResidentARB(GPMAKETEXTUREHANDLERESIDENTARB fnptr, GLuint64 handle) { -// (*fnptr)(handle); -// } -// static void glowMakeTextureHandleResidentNV(GPMAKETEXTUREHANDLERESIDENTNV fnptr, GLuint64 handle) { -// (*fnptr)(handle); -// } -// static void glowMap1d(GPMAP1D fnptr, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points) { -// (*fnptr)(target, u1, u2, stride, order, points); -// } -// static void glowMap1f(GPMAP1F fnptr, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points) { -// (*fnptr)(target, u1, u2, stride, order, points); -// } -// static void glowMap1xOES(GPMAP1XOES fnptr, GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points) { -// (*fnptr)(target, u1, u2, stride, order, points); -// } -// static void glowMap2d(GPMAP2D fnptr, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points) { -// (*fnptr)(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); -// } -// static void glowMap2f(GPMAP2F fnptr, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points) { -// (*fnptr)(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); -// } -// static void glowMap2xOES(GPMAP2XOES fnptr, GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points) { -// (*fnptr)(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); -// } -// static void * glowMapBuffer(GPMAPBUFFER fnptr, GLenum target, GLenum access) { -// return (*fnptr)(target, access); -// } -// static void * glowMapBufferARB(GPMAPBUFFERARB fnptr, GLenum target, GLenum access) { -// return (*fnptr)(target, access); -// } -// static void * glowMapBufferRange(GPMAPBUFFERRANGE fnptr, GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) { -// return (*fnptr)(target, offset, length, access); -// } -// static void glowMapControlPointsNV(GPMAPCONTROLPOINTSNV fnptr, GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void * points) { -// (*fnptr)(target, index, type, ustride, vstride, uorder, vorder, packed, points); -// } -// static void glowMapGrid1d(GPMAPGRID1D fnptr, GLint un, GLdouble u1, GLdouble u2) { -// (*fnptr)(un, u1, u2); -// } -// static void glowMapGrid1f(GPMAPGRID1F fnptr, GLint un, GLfloat u1, GLfloat u2) { -// (*fnptr)(un, u1, u2); -// } -// static void glowMapGrid1xOES(GPMAPGRID1XOES fnptr, GLint n, GLfixed u1, GLfixed u2) { -// (*fnptr)(n, u1, u2); -// } -// static void glowMapGrid2d(GPMAPGRID2D fnptr, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2) { -// (*fnptr)(un, u1, u2, vn, v1, v2); -// } -// static void glowMapGrid2f(GPMAPGRID2F fnptr, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2) { -// (*fnptr)(un, u1, u2, vn, v1, v2); -// } -// static void glowMapGrid2xOES(GPMAPGRID2XOES fnptr, GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2) { -// (*fnptr)(n, u1, u2, v1, v2); -// } -// static void * glowMapNamedBuffer(GPMAPNAMEDBUFFER fnptr, GLuint buffer, GLenum access) { -// return (*fnptr)(buffer, access); -// } -// static void * glowMapNamedBufferEXT(GPMAPNAMEDBUFFEREXT fnptr, GLuint buffer, GLenum access) { -// return (*fnptr)(buffer, access); -// } -// static void * glowMapNamedBufferRange(GPMAPNAMEDBUFFERRANGE fnptr, GLuint buffer, GLintptr offset, GLsizei length, GLbitfield access) { -// return (*fnptr)(buffer, offset, length, access); -// } -// static void * glowMapNamedBufferRangeEXT(GPMAPNAMEDBUFFERRANGEEXT fnptr, GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access) { -// return (*fnptr)(buffer, offset, length, access); -// } -// static void * glowMapObjectBufferATI(GPMAPOBJECTBUFFERATI fnptr, GLuint buffer) { -// return (*fnptr)(buffer); -// } -// static void glowMapParameterfvNV(GPMAPPARAMETERFVNV fnptr, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowMapParameterivNV(GPMAPPARAMETERIVNV fnptr, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void * glowMapTexture2DINTEL(GPMAPTEXTURE2DINTEL fnptr, GLuint texture, GLint level, GLbitfield access, GLint * stride, GLenum * layout) { -// return (*fnptr)(texture, level, access, stride, layout); -// } -// static void glowMapVertexAttrib1dAPPLE(GPMAPVERTEXATTRIB1DAPPLE fnptr, GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points) { -// (*fnptr)(index, size, u1, u2, stride, order, points); -// } -// static void glowMapVertexAttrib1fAPPLE(GPMAPVERTEXATTRIB1FAPPLE fnptr, GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points) { -// (*fnptr)(index, size, u1, u2, stride, order, points); -// } -// static void glowMapVertexAttrib2dAPPLE(GPMAPVERTEXATTRIB2DAPPLE fnptr, GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points) { -// (*fnptr)(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); -// } -// static void glowMapVertexAttrib2fAPPLE(GPMAPVERTEXATTRIB2FAPPLE fnptr, GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points) { -// (*fnptr)(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); -// } -// static void glowMaterialf(GPMATERIALF fnptr, GLenum face, GLenum pname, GLfloat param) { -// (*fnptr)(face, pname, param); -// } -// static void glowMaterialfv(GPMATERIALFV fnptr, GLenum face, GLenum pname, const GLfloat * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowMateriali(GPMATERIALI fnptr, GLenum face, GLenum pname, GLint param) { -// (*fnptr)(face, pname, param); -// } -// static void glowMaterialiv(GPMATERIALIV fnptr, GLenum face, GLenum pname, const GLint * params) { -// (*fnptr)(face, pname, params); -// } -// static void glowMaterialxOES(GPMATERIALXOES fnptr, GLenum face, GLenum pname, GLfixed param) { -// (*fnptr)(face, pname, param); -// } -// static void glowMaterialxvOES(GPMATERIALXVOES fnptr, GLenum face, GLenum pname, const GLfixed * param) { -// (*fnptr)(face, pname, param); -// } -// static void glowMatrixFrustumEXT(GPMATRIXFRUSTUMEXT fnptr, GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) { -// (*fnptr)(mode, left, right, bottom, top, zNear, zFar); -// } -// static void glowMatrixIndexPointerARB(GPMATRIXINDEXPOINTERARB fnptr, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(size, type, stride, pointer); -// } -// static void glowMatrixIndexubvARB(GPMATRIXINDEXUBVARB fnptr, GLint size, const GLubyte * indices) { -// (*fnptr)(size, indices); -// } -// static void glowMatrixIndexuivARB(GPMATRIXINDEXUIVARB fnptr, GLint size, const GLuint * indices) { -// (*fnptr)(size, indices); -// } -// static void glowMatrixIndexusvARB(GPMATRIXINDEXUSVARB fnptr, GLint size, const GLushort * indices) { -// (*fnptr)(size, indices); -// } -// static void glowMatrixLoad3x2fNV(GPMATRIXLOAD3X2FNV fnptr, GLenum matrixMode, const GLfloat * m) { -// (*fnptr)(matrixMode, m); -// } -// static void glowMatrixLoad3x3fNV(GPMATRIXLOAD3X3FNV fnptr, GLenum matrixMode, const GLfloat * m) { -// (*fnptr)(matrixMode, m); -// } -// static void glowMatrixLoadIdentityEXT(GPMATRIXLOADIDENTITYEXT fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowMatrixLoadTranspose3x3fNV(GPMATRIXLOADTRANSPOSE3X3FNV fnptr, GLenum matrixMode, const GLfloat * m) { -// (*fnptr)(matrixMode, m); -// } -// static void glowMatrixLoadTransposedEXT(GPMATRIXLOADTRANSPOSEDEXT fnptr, GLenum mode, const GLdouble * m) { -// (*fnptr)(mode, m); -// } -// static void glowMatrixLoadTransposefEXT(GPMATRIXLOADTRANSPOSEFEXT fnptr, GLenum mode, const GLfloat * m) { -// (*fnptr)(mode, m); -// } -// static void glowMatrixLoaddEXT(GPMATRIXLOADDEXT fnptr, GLenum mode, const GLdouble * m) { -// (*fnptr)(mode, m); -// } -// static void glowMatrixLoadfEXT(GPMATRIXLOADFEXT fnptr, GLenum mode, const GLfloat * m) { -// (*fnptr)(mode, m); -// } -// static void glowMatrixMode(GPMATRIXMODE fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowMatrixMult3x2fNV(GPMATRIXMULT3X2FNV fnptr, GLenum matrixMode, const GLfloat * m) { -// (*fnptr)(matrixMode, m); -// } -// static void glowMatrixMult3x3fNV(GPMATRIXMULT3X3FNV fnptr, GLenum matrixMode, const GLfloat * m) { -// (*fnptr)(matrixMode, m); -// } -// static void glowMatrixMultTranspose3x3fNV(GPMATRIXMULTTRANSPOSE3X3FNV fnptr, GLenum matrixMode, const GLfloat * m) { -// (*fnptr)(matrixMode, m); -// } -// static void glowMatrixMultTransposedEXT(GPMATRIXMULTTRANSPOSEDEXT fnptr, GLenum mode, const GLdouble * m) { -// (*fnptr)(mode, m); -// } -// static void glowMatrixMultTransposefEXT(GPMATRIXMULTTRANSPOSEFEXT fnptr, GLenum mode, const GLfloat * m) { -// (*fnptr)(mode, m); -// } -// static void glowMatrixMultdEXT(GPMATRIXMULTDEXT fnptr, GLenum mode, const GLdouble * m) { -// (*fnptr)(mode, m); -// } -// static void glowMatrixMultfEXT(GPMATRIXMULTFEXT fnptr, GLenum mode, const GLfloat * m) { -// (*fnptr)(mode, m); -// } -// static void glowMatrixOrthoEXT(GPMATRIXORTHOEXT fnptr, GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) { -// (*fnptr)(mode, left, right, bottom, top, zNear, zFar); -// } -// static void glowMatrixPopEXT(GPMATRIXPOPEXT fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowMatrixPushEXT(GPMATRIXPUSHEXT fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowMatrixRotatedEXT(GPMATRIXROTATEDEXT fnptr, GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(mode, angle, x, y, z); -// } -// static void glowMatrixRotatefEXT(GPMATRIXROTATEFEXT fnptr, GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(mode, angle, x, y, z); -// } -// static void glowMatrixScaledEXT(GPMATRIXSCALEDEXT fnptr, GLenum mode, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(mode, x, y, z); -// } -// static void glowMatrixScalefEXT(GPMATRIXSCALEFEXT fnptr, GLenum mode, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(mode, x, y, z); -// } -// static void glowMatrixTranslatedEXT(GPMATRIXTRANSLATEDEXT fnptr, GLenum mode, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(mode, x, y, z); -// } -// static void glowMatrixTranslatefEXT(GPMATRIXTRANSLATEFEXT fnptr, GLenum mode, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(mode, x, y, z); -// } -// static void glowMemoryBarrier(GPMEMORYBARRIER fnptr, GLbitfield barriers) { -// (*fnptr)(barriers); -// } -// static void glowMemoryBarrierByRegion(GPMEMORYBARRIERBYREGION fnptr, GLbitfield barriers) { -// (*fnptr)(barriers); -// } -// static void glowMemoryBarrierEXT(GPMEMORYBARRIEREXT fnptr, GLbitfield barriers) { -// (*fnptr)(barriers); -// } -// static void glowMinSampleShadingARB(GPMINSAMPLESHADINGARB fnptr, GLfloat value) { -// (*fnptr)(value); -// } -// static void glowMinmaxEXT(GPMINMAXEXT fnptr, GLenum target, GLenum internalformat, GLboolean sink) { -// (*fnptr)(target, internalformat, sink); -// } -// static void glowMultMatrixd(GPMULTMATRIXD fnptr, const GLdouble * m) { -// (*fnptr)(m); -// } -// static void glowMultMatrixf(GPMULTMATRIXF fnptr, const GLfloat * m) { -// (*fnptr)(m); -// } -// static void glowMultMatrixxOES(GPMULTMATRIXXOES fnptr, const GLfixed * m) { -// (*fnptr)(m); -// } -// static void glowMultTransposeMatrixd(GPMULTTRANSPOSEMATRIXD fnptr, const GLdouble * m) { -// (*fnptr)(m); -// } -// static void glowMultTransposeMatrixdARB(GPMULTTRANSPOSEMATRIXDARB fnptr, const GLdouble * m) { -// (*fnptr)(m); -// } -// static void glowMultTransposeMatrixf(GPMULTTRANSPOSEMATRIXF fnptr, const GLfloat * m) { -// (*fnptr)(m); -// } -// static void glowMultTransposeMatrixfARB(GPMULTTRANSPOSEMATRIXFARB fnptr, const GLfloat * m) { -// (*fnptr)(m); -// } -// static void glowMultTransposeMatrixxOES(GPMULTTRANSPOSEMATRIXXOES fnptr, const GLfixed * m) { -// (*fnptr)(m); -// } -// static void glowMultiDrawArrays(GPMULTIDRAWARRAYS fnptr, GLenum mode, const GLint * first, const GLsizei * count, GLsizei drawcount) { -// (*fnptr)(mode, first, count, drawcount); -// } -// static void glowMultiDrawArraysEXT(GPMULTIDRAWARRAYSEXT fnptr, GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount) { -// (*fnptr)(mode, first, count, primcount); -// } -// static void glowMultiDrawArraysIndirect(GPMULTIDRAWARRAYSINDIRECT fnptr, GLenum mode, const void * indirect, GLsizei drawcount, GLsizei stride) { -// (*fnptr)(mode, indirect, drawcount, stride); -// } -// static void glowMultiDrawArraysIndirectAMD(GPMULTIDRAWARRAYSINDIRECTAMD fnptr, GLenum mode, const void * indirect, GLsizei primcount, GLsizei stride) { -// (*fnptr)(mode, indirect, primcount, stride); -// } -// static void glowMultiDrawArraysIndirectBindlessCountNV(GPMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNV fnptr, GLenum mode, const void * indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount) { -// (*fnptr)(mode, indirect, drawCount, maxDrawCount, stride, vertexBufferCount); -// } -// static void glowMultiDrawArraysIndirectBindlessNV(GPMULTIDRAWARRAYSINDIRECTBINDLESSNV fnptr, GLenum mode, const void * indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount) { -// (*fnptr)(mode, indirect, drawCount, stride, vertexBufferCount); -// } -// static void glowMultiDrawArraysIndirectCountARB(GPMULTIDRAWARRAYSINDIRECTCOUNTARB fnptr, GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride) { -// (*fnptr)(mode, indirect, drawcount, maxdrawcount, stride); -// } -// static void glowMultiDrawElementArrayAPPLE(GPMULTIDRAWELEMENTARRAYAPPLE fnptr, GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount) { -// (*fnptr)(mode, first, count, primcount); -// } -// static void glowMultiDrawElements(GPMULTIDRAWELEMENTS fnptr, GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei drawcount) { -// (*fnptr)(mode, count, type, indices, drawcount); -// } -// static void glowMultiDrawElementsBaseVertex(GPMULTIDRAWELEMENTSBASEVERTEX fnptr, GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei drawcount, const GLint * basevertex) { -// (*fnptr)(mode, count, type, indices, drawcount, basevertex); -// } -// static void glowMultiDrawElementsEXT(GPMULTIDRAWELEMENTSEXT fnptr, GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei primcount) { -// (*fnptr)(mode, count, type, indices, primcount); -// } -// static void glowMultiDrawElementsIndirect(GPMULTIDRAWELEMENTSINDIRECT fnptr, GLenum mode, GLenum type, const void * indirect, GLsizei drawcount, GLsizei stride) { -// (*fnptr)(mode, type, indirect, drawcount, stride); -// } -// static void glowMultiDrawElementsIndirectAMD(GPMULTIDRAWELEMENTSINDIRECTAMD fnptr, GLenum mode, GLenum type, const void * indirect, GLsizei primcount, GLsizei stride) { -// (*fnptr)(mode, type, indirect, primcount, stride); -// } -// static void glowMultiDrawElementsIndirectBindlessCountNV(GPMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNV fnptr, GLenum mode, GLenum type, const void * indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount) { -// (*fnptr)(mode, type, indirect, drawCount, maxDrawCount, stride, vertexBufferCount); -// } -// static void glowMultiDrawElementsIndirectBindlessNV(GPMULTIDRAWELEMENTSINDIRECTBINDLESSNV fnptr, GLenum mode, GLenum type, const void * indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount) { -// (*fnptr)(mode, type, indirect, drawCount, stride, vertexBufferCount); -// } -// static void glowMultiDrawElementsIndirectCountARB(GPMULTIDRAWELEMENTSINDIRECTCOUNTARB fnptr, GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride) { -// (*fnptr)(mode, type, indirect, drawcount, maxdrawcount, stride); -// } -// static void glowMultiDrawRangeElementArrayAPPLE(GPMULTIDRAWRANGEELEMENTARRAYAPPLE fnptr, GLenum mode, GLuint start, GLuint end, const GLint * first, const GLsizei * count, GLsizei primcount) { -// (*fnptr)(mode, start, end, first, count, primcount); -// } -// static void glowMultiModeDrawArraysIBM(GPMULTIMODEDRAWARRAYSIBM fnptr, const GLenum * mode, const GLint * first, const GLsizei * count, GLsizei primcount, GLint modestride) { -// (*fnptr)(mode, first, count, primcount, modestride); -// } -// static void glowMultiModeDrawElementsIBM(GPMULTIMODEDRAWELEMENTSIBM fnptr, const GLenum * mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei primcount, GLint modestride) { -// (*fnptr)(mode, count, type, indices, primcount, modestride); -// } -// static void glowMultiTexBufferEXT(GPMULTITEXBUFFEREXT fnptr, GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer) { -// (*fnptr)(texunit, target, internalformat, buffer); -// } -// static void glowMultiTexCoord1bOES(GPMULTITEXCOORD1BOES fnptr, GLenum texture, GLbyte s) { -// (*fnptr)(texture, s); -// } -// static void glowMultiTexCoord1bvOES(GPMULTITEXCOORD1BVOES fnptr, GLenum texture, const GLbyte * coords) { -// (*fnptr)(texture, coords); -// } -// static void glowMultiTexCoord1d(GPMULTITEXCOORD1D fnptr, GLenum target, GLdouble s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1dARB(GPMULTITEXCOORD1DARB fnptr, GLenum target, GLdouble s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1dv(GPMULTITEXCOORD1DV fnptr, GLenum target, const GLdouble * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1dvARB(GPMULTITEXCOORD1DVARB fnptr, GLenum target, const GLdouble * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1f(GPMULTITEXCOORD1F fnptr, GLenum target, GLfloat s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1fARB(GPMULTITEXCOORD1FARB fnptr, GLenum target, GLfloat s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1fv(GPMULTITEXCOORD1FV fnptr, GLenum target, const GLfloat * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1fvARB(GPMULTITEXCOORD1FVARB fnptr, GLenum target, const GLfloat * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1hNV(GPMULTITEXCOORD1HNV fnptr, GLenum target, GLhalfNV s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1hvNV(GPMULTITEXCOORD1HVNV fnptr, GLenum target, const GLhalfNV * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1i(GPMULTITEXCOORD1I fnptr, GLenum target, GLint s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1iARB(GPMULTITEXCOORD1IARB fnptr, GLenum target, GLint s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1iv(GPMULTITEXCOORD1IV fnptr, GLenum target, const GLint * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1ivARB(GPMULTITEXCOORD1IVARB fnptr, GLenum target, const GLint * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1s(GPMULTITEXCOORD1S fnptr, GLenum target, GLshort s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1sARB(GPMULTITEXCOORD1SARB fnptr, GLenum target, GLshort s) { -// (*fnptr)(target, s); -// } -// static void glowMultiTexCoord1sv(GPMULTITEXCOORD1SV fnptr, GLenum target, const GLshort * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1svARB(GPMULTITEXCOORD1SVARB fnptr, GLenum target, const GLshort * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord1xOES(GPMULTITEXCOORD1XOES fnptr, GLenum texture, GLfixed s) { -// (*fnptr)(texture, s); -// } -// static void glowMultiTexCoord1xvOES(GPMULTITEXCOORD1XVOES fnptr, GLenum texture, const GLfixed * coords) { -// (*fnptr)(texture, coords); -// } -// static void glowMultiTexCoord2bOES(GPMULTITEXCOORD2BOES fnptr, GLenum texture, GLbyte s, GLbyte t) { -// (*fnptr)(texture, s, t); -// } -// static void glowMultiTexCoord2bvOES(GPMULTITEXCOORD2BVOES fnptr, GLenum texture, const GLbyte * coords) { -// (*fnptr)(texture, coords); -// } -// static void glowMultiTexCoord2d(GPMULTITEXCOORD2D fnptr, GLenum target, GLdouble s, GLdouble t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2dARB(GPMULTITEXCOORD2DARB fnptr, GLenum target, GLdouble s, GLdouble t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2dv(GPMULTITEXCOORD2DV fnptr, GLenum target, const GLdouble * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2dvARB(GPMULTITEXCOORD2DVARB fnptr, GLenum target, const GLdouble * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2f(GPMULTITEXCOORD2F fnptr, GLenum target, GLfloat s, GLfloat t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2fARB(GPMULTITEXCOORD2FARB fnptr, GLenum target, GLfloat s, GLfloat t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2fv(GPMULTITEXCOORD2FV fnptr, GLenum target, const GLfloat * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2fvARB(GPMULTITEXCOORD2FVARB fnptr, GLenum target, const GLfloat * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2hNV(GPMULTITEXCOORD2HNV fnptr, GLenum target, GLhalfNV s, GLhalfNV t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2hvNV(GPMULTITEXCOORD2HVNV fnptr, GLenum target, const GLhalfNV * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2i(GPMULTITEXCOORD2I fnptr, GLenum target, GLint s, GLint t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2iARB(GPMULTITEXCOORD2IARB fnptr, GLenum target, GLint s, GLint t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2iv(GPMULTITEXCOORD2IV fnptr, GLenum target, const GLint * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2ivARB(GPMULTITEXCOORD2IVARB fnptr, GLenum target, const GLint * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2s(GPMULTITEXCOORD2S fnptr, GLenum target, GLshort s, GLshort t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2sARB(GPMULTITEXCOORD2SARB fnptr, GLenum target, GLshort s, GLshort t) { -// (*fnptr)(target, s, t); -// } -// static void glowMultiTexCoord2sv(GPMULTITEXCOORD2SV fnptr, GLenum target, const GLshort * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2svARB(GPMULTITEXCOORD2SVARB fnptr, GLenum target, const GLshort * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord2xOES(GPMULTITEXCOORD2XOES fnptr, GLenum texture, GLfixed s, GLfixed t) { -// (*fnptr)(texture, s, t); -// } -// static void glowMultiTexCoord2xvOES(GPMULTITEXCOORD2XVOES fnptr, GLenum texture, const GLfixed * coords) { -// (*fnptr)(texture, coords); -// } -// static void glowMultiTexCoord3bOES(GPMULTITEXCOORD3BOES fnptr, GLenum texture, GLbyte s, GLbyte t, GLbyte r) { -// (*fnptr)(texture, s, t, r); -// } -// static void glowMultiTexCoord3bvOES(GPMULTITEXCOORD3BVOES fnptr, GLenum texture, const GLbyte * coords) { -// (*fnptr)(texture, coords); -// } -// static void glowMultiTexCoord3d(GPMULTITEXCOORD3D fnptr, GLenum target, GLdouble s, GLdouble t, GLdouble r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3dARB(GPMULTITEXCOORD3DARB fnptr, GLenum target, GLdouble s, GLdouble t, GLdouble r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3dv(GPMULTITEXCOORD3DV fnptr, GLenum target, const GLdouble * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3dvARB(GPMULTITEXCOORD3DVARB fnptr, GLenum target, const GLdouble * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3f(GPMULTITEXCOORD3F fnptr, GLenum target, GLfloat s, GLfloat t, GLfloat r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3fARB(GPMULTITEXCOORD3FARB fnptr, GLenum target, GLfloat s, GLfloat t, GLfloat r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3fv(GPMULTITEXCOORD3FV fnptr, GLenum target, const GLfloat * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3fvARB(GPMULTITEXCOORD3FVARB fnptr, GLenum target, const GLfloat * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3hNV(GPMULTITEXCOORD3HNV fnptr, GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3hvNV(GPMULTITEXCOORD3HVNV fnptr, GLenum target, const GLhalfNV * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3i(GPMULTITEXCOORD3I fnptr, GLenum target, GLint s, GLint t, GLint r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3iARB(GPMULTITEXCOORD3IARB fnptr, GLenum target, GLint s, GLint t, GLint r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3iv(GPMULTITEXCOORD3IV fnptr, GLenum target, const GLint * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3ivARB(GPMULTITEXCOORD3IVARB fnptr, GLenum target, const GLint * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3s(GPMULTITEXCOORD3S fnptr, GLenum target, GLshort s, GLshort t, GLshort r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3sARB(GPMULTITEXCOORD3SARB fnptr, GLenum target, GLshort s, GLshort t, GLshort r) { -// (*fnptr)(target, s, t, r); -// } -// static void glowMultiTexCoord3sv(GPMULTITEXCOORD3SV fnptr, GLenum target, const GLshort * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3svARB(GPMULTITEXCOORD3SVARB fnptr, GLenum target, const GLshort * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord3xOES(GPMULTITEXCOORD3XOES fnptr, GLenum texture, GLfixed s, GLfixed t, GLfixed r) { -// (*fnptr)(texture, s, t, r); -// } -// static void glowMultiTexCoord3xvOES(GPMULTITEXCOORD3XVOES fnptr, GLenum texture, const GLfixed * coords) { -// (*fnptr)(texture, coords); -// } -// static void glowMultiTexCoord4bOES(GPMULTITEXCOORD4BOES fnptr, GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q) { -// (*fnptr)(texture, s, t, r, q); -// } -// static void glowMultiTexCoord4bvOES(GPMULTITEXCOORD4BVOES fnptr, GLenum texture, const GLbyte * coords) { -// (*fnptr)(texture, coords); -// } -// static void glowMultiTexCoord4d(GPMULTITEXCOORD4D fnptr, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4dARB(GPMULTITEXCOORD4DARB fnptr, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4dv(GPMULTITEXCOORD4DV fnptr, GLenum target, const GLdouble * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4dvARB(GPMULTITEXCOORD4DVARB fnptr, GLenum target, const GLdouble * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4f(GPMULTITEXCOORD4F fnptr, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4fARB(GPMULTITEXCOORD4FARB fnptr, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4fv(GPMULTITEXCOORD4FV fnptr, GLenum target, const GLfloat * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4fvARB(GPMULTITEXCOORD4FVARB fnptr, GLenum target, const GLfloat * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4hNV(GPMULTITEXCOORD4HNV fnptr, GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4hvNV(GPMULTITEXCOORD4HVNV fnptr, GLenum target, const GLhalfNV * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4i(GPMULTITEXCOORD4I fnptr, GLenum target, GLint s, GLint t, GLint r, GLint q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4iARB(GPMULTITEXCOORD4IARB fnptr, GLenum target, GLint s, GLint t, GLint r, GLint q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4iv(GPMULTITEXCOORD4IV fnptr, GLenum target, const GLint * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4ivARB(GPMULTITEXCOORD4IVARB fnptr, GLenum target, const GLint * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4s(GPMULTITEXCOORD4S fnptr, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4sARB(GPMULTITEXCOORD4SARB fnptr, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q) { -// (*fnptr)(target, s, t, r, q); -// } -// static void glowMultiTexCoord4sv(GPMULTITEXCOORD4SV fnptr, GLenum target, const GLshort * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4svARB(GPMULTITEXCOORD4SVARB fnptr, GLenum target, const GLshort * v) { -// (*fnptr)(target, v); -// } -// static void glowMultiTexCoord4xOES(GPMULTITEXCOORD4XOES fnptr, GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q) { -// (*fnptr)(texture, s, t, r, q); -// } -// static void glowMultiTexCoord4xvOES(GPMULTITEXCOORD4XVOES fnptr, GLenum texture, const GLfixed * coords) { -// (*fnptr)(texture, coords); -// } -// static void glowMultiTexCoordPointerEXT(GPMULTITEXCOORDPOINTEREXT fnptr, GLenum texunit, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(texunit, size, type, stride, pointer); -// } -// static void glowMultiTexEnvfEXT(GPMULTITEXENVFEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLfloat param) { -// (*fnptr)(texunit, target, pname, param); -// } -// static void glowMultiTexEnvfvEXT(GPMULTITEXENVFVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowMultiTexEnviEXT(GPMULTITEXENVIEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(texunit, target, pname, param); -// } -// static void glowMultiTexEnvivEXT(GPMULTITEXENVIVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowMultiTexGendEXT(GPMULTITEXGENDEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, GLdouble param) { -// (*fnptr)(texunit, coord, pname, param); -// } -// static void glowMultiTexGendvEXT(GPMULTITEXGENDVEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, const GLdouble * params) { -// (*fnptr)(texunit, coord, pname, params); -// } -// static void glowMultiTexGenfEXT(GPMULTITEXGENFEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, GLfloat param) { -// (*fnptr)(texunit, coord, pname, param); -// } -// static void glowMultiTexGenfvEXT(GPMULTITEXGENFVEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, const GLfloat * params) { -// (*fnptr)(texunit, coord, pname, params); -// } -// static void glowMultiTexGeniEXT(GPMULTITEXGENIEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, GLint param) { -// (*fnptr)(texunit, coord, pname, param); -// } -// static void glowMultiTexGenivEXT(GPMULTITEXGENIVEXT fnptr, GLenum texunit, GLenum coord, GLenum pname, const GLint * params) { -// (*fnptr)(texunit, coord, pname, params); -// } -// static void glowMultiTexImage1DEXT(GPMULTITEXIMAGE1DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texunit, target, level, internalformat, width, border, format, type, pixels); -// } -// static void glowMultiTexImage2DEXT(GPMULTITEXIMAGE2DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texunit, target, level, internalformat, width, height, border, format, type, pixels); -// } -// static void glowMultiTexImage3DEXT(GPMULTITEXIMAGE3DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texunit, target, level, internalformat, width, height, depth, border, format, type, pixels); -// } -// static void glowMultiTexParameterIivEXT(GPMULTITEXPARAMETERIIVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowMultiTexParameterIuivEXT(GPMULTITEXPARAMETERIUIVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, const GLuint * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowMultiTexParameterfEXT(GPMULTITEXPARAMETERFEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLfloat param) { -// (*fnptr)(texunit, target, pname, param); -// } -// static void glowMultiTexParameterfvEXT(GPMULTITEXPARAMETERFVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowMultiTexParameteriEXT(GPMULTITEXPARAMETERIEXT fnptr, GLenum texunit, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(texunit, target, pname, param); -// } -// static void glowMultiTexParameterivEXT(GPMULTITEXPARAMETERIVEXT fnptr, GLenum texunit, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(texunit, target, pname, params); -// } -// static void glowMultiTexRenderbufferEXT(GPMULTITEXRENDERBUFFEREXT fnptr, GLenum texunit, GLenum target, GLuint renderbuffer) { -// (*fnptr)(texunit, target, renderbuffer); -// } -// static void glowMultiTexSubImage1DEXT(GPMULTITEXSUBIMAGE1DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texunit, target, level, xoffset, width, format, type, pixels); -// } -// static void glowMultiTexSubImage2DEXT(GPMULTITEXSUBIMAGE2DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texunit, target, level, xoffset, yoffset, width, height, format, type, pixels); -// } -// static void glowMultiTexSubImage3DEXT(GPMULTITEXSUBIMAGE3DEXT fnptr, GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); -// } -// static void glowNamedBufferData(GPNAMEDBUFFERDATA fnptr, GLuint buffer, GLsizei size, const void * data, GLenum usage) { -// (*fnptr)(buffer, size, data, usage); -// } -// static void glowNamedBufferDataEXT(GPNAMEDBUFFERDATAEXT fnptr, GLuint buffer, GLsizeiptr size, const void * data, GLenum usage) { -// (*fnptr)(buffer, size, data, usage); -// } -// static void glowNamedBufferPageCommitmentARB(GPNAMEDBUFFERPAGECOMMITMENTARB fnptr, GLuint buffer, GLintptr offset, GLsizei size, GLboolean commit) { -// (*fnptr)(buffer, offset, size, commit); -// } -// static void glowNamedBufferPageCommitmentEXT(GPNAMEDBUFFERPAGECOMMITMENTEXT fnptr, GLuint buffer, GLintptr offset, GLsizei size, GLboolean commit) { -// (*fnptr)(buffer, offset, size, commit); -// } -// static void glowNamedBufferStorage(GPNAMEDBUFFERSTORAGE fnptr, GLuint buffer, GLsizei size, const void * data, GLbitfield flags) { -// (*fnptr)(buffer, size, data, flags); -// } -// static void glowNamedBufferStorageEXT(GPNAMEDBUFFERSTORAGEEXT fnptr, GLuint buffer, GLsizeiptr size, const void * data, GLbitfield flags) { -// (*fnptr)(buffer, size, data, flags); -// } -// static void glowNamedBufferSubData(GPNAMEDBUFFERSUBDATA fnptr, GLuint buffer, GLintptr offset, GLsizei size, const void * data) { -// (*fnptr)(buffer, offset, size, data); -// } -// static void glowNamedBufferSubDataEXT(GPNAMEDBUFFERSUBDATAEXT fnptr, GLuint buffer, GLintptr offset, GLsizeiptr size, const void * data) { -// (*fnptr)(buffer, offset, size, data); -// } -// static void glowNamedCopyBufferSubDataEXT(GPNAMEDCOPYBUFFERSUBDATAEXT fnptr, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) { -// (*fnptr)(readBuffer, writeBuffer, readOffset, writeOffset, size); -// } -// static void glowNamedFramebufferDrawBuffer(GPNAMEDFRAMEBUFFERDRAWBUFFER fnptr, GLuint framebuffer, GLenum buf) { -// (*fnptr)(framebuffer, buf); -// } -// static void glowNamedFramebufferDrawBuffers(GPNAMEDFRAMEBUFFERDRAWBUFFERS fnptr, GLuint framebuffer, GLsizei n, const GLenum * bufs) { -// (*fnptr)(framebuffer, n, bufs); -// } -// static void glowNamedFramebufferParameteri(GPNAMEDFRAMEBUFFERPARAMETERI fnptr, GLuint framebuffer, GLenum pname, GLint param) { -// (*fnptr)(framebuffer, pname, param); -// } -// static void glowNamedFramebufferParameteriEXT(GPNAMEDFRAMEBUFFERPARAMETERIEXT fnptr, GLuint framebuffer, GLenum pname, GLint param) { -// (*fnptr)(framebuffer, pname, param); -// } -// static void glowNamedFramebufferReadBuffer(GPNAMEDFRAMEBUFFERREADBUFFER fnptr, GLuint framebuffer, GLenum src) { -// (*fnptr)(framebuffer, src); -// } -// static void glowNamedFramebufferRenderbuffer(GPNAMEDFRAMEBUFFERRENDERBUFFER fnptr, GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) { -// (*fnptr)(framebuffer, attachment, renderbuffertarget, renderbuffer); -// } -// static void glowNamedFramebufferRenderbufferEXT(GPNAMEDFRAMEBUFFERRENDERBUFFEREXT fnptr, GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) { -// (*fnptr)(framebuffer, attachment, renderbuffertarget, renderbuffer); -// } -// static void glowNamedFramebufferTexture(GPNAMEDFRAMEBUFFERTEXTURE fnptr, GLuint framebuffer, GLenum attachment, GLuint texture, GLint level) { -// (*fnptr)(framebuffer, attachment, texture, level); -// } -// static void glowNamedFramebufferTexture1DEXT(GPNAMEDFRAMEBUFFERTEXTURE1DEXT fnptr, GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level) { -// (*fnptr)(framebuffer, attachment, textarget, texture, level); -// } -// static void glowNamedFramebufferTexture2DEXT(GPNAMEDFRAMEBUFFERTEXTURE2DEXT fnptr, GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level) { -// (*fnptr)(framebuffer, attachment, textarget, texture, level); -// } -// static void glowNamedFramebufferTexture3DEXT(GPNAMEDFRAMEBUFFERTEXTURE3DEXT fnptr, GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) { -// (*fnptr)(framebuffer, attachment, textarget, texture, level, zoffset); -// } -// static void glowNamedFramebufferTextureEXT(GPNAMEDFRAMEBUFFERTEXTUREEXT fnptr, GLuint framebuffer, GLenum attachment, GLuint texture, GLint level) { -// (*fnptr)(framebuffer, attachment, texture, level); -// } -// static void glowNamedFramebufferTextureFaceEXT(GPNAMEDFRAMEBUFFERTEXTUREFACEEXT fnptr, GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face) { -// (*fnptr)(framebuffer, attachment, texture, level, face); -// } -// static void glowNamedFramebufferTextureLayer(GPNAMEDFRAMEBUFFERTEXTURELAYER fnptr, GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer) { -// (*fnptr)(framebuffer, attachment, texture, level, layer); -// } -// static void glowNamedFramebufferTextureLayerEXT(GPNAMEDFRAMEBUFFERTEXTURELAYEREXT fnptr, GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer) { -// (*fnptr)(framebuffer, attachment, texture, level, layer); -// } -// static void glowNamedProgramLocalParameter4dEXT(GPNAMEDPROGRAMLOCALPARAMETER4DEXT fnptr, GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(program, target, index, x, y, z, w); -// } -// static void glowNamedProgramLocalParameter4dvEXT(GPNAMEDPROGRAMLOCALPARAMETER4DVEXT fnptr, GLuint program, GLenum target, GLuint index, const GLdouble * params) { -// (*fnptr)(program, target, index, params); -// } -// static void glowNamedProgramLocalParameter4fEXT(GPNAMEDPROGRAMLOCALPARAMETER4FEXT fnptr, GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(program, target, index, x, y, z, w); -// } -// static void glowNamedProgramLocalParameter4fvEXT(GPNAMEDPROGRAMLOCALPARAMETER4FVEXT fnptr, GLuint program, GLenum target, GLuint index, const GLfloat * params) { -// (*fnptr)(program, target, index, params); -// } -// static void glowNamedProgramLocalParameterI4iEXT(GPNAMEDPROGRAMLOCALPARAMETERI4IEXT fnptr, GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w) { -// (*fnptr)(program, target, index, x, y, z, w); -// } -// static void glowNamedProgramLocalParameterI4ivEXT(GPNAMEDPROGRAMLOCALPARAMETERI4IVEXT fnptr, GLuint program, GLenum target, GLuint index, const GLint * params) { -// (*fnptr)(program, target, index, params); -// } -// static void glowNamedProgramLocalParameterI4uiEXT(GPNAMEDPROGRAMLOCALPARAMETERI4UIEXT fnptr, GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) { -// (*fnptr)(program, target, index, x, y, z, w); -// } -// static void glowNamedProgramLocalParameterI4uivEXT(GPNAMEDPROGRAMLOCALPARAMETERI4UIVEXT fnptr, GLuint program, GLenum target, GLuint index, const GLuint * params) { -// (*fnptr)(program, target, index, params); -// } -// static void glowNamedProgramLocalParameters4fvEXT(GPNAMEDPROGRAMLOCALPARAMETERS4FVEXT fnptr, GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat * params) { -// (*fnptr)(program, target, index, count, params); -// } -// static void glowNamedProgramLocalParametersI4ivEXT(GPNAMEDPROGRAMLOCALPARAMETERSI4IVEXT fnptr, GLuint program, GLenum target, GLuint index, GLsizei count, const GLint * params) { -// (*fnptr)(program, target, index, count, params); -// } -// static void glowNamedProgramLocalParametersI4uivEXT(GPNAMEDPROGRAMLOCALPARAMETERSI4UIVEXT fnptr, GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint * params) { -// (*fnptr)(program, target, index, count, params); -// } -// static void glowNamedProgramStringEXT(GPNAMEDPROGRAMSTRINGEXT fnptr, GLuint program, GLenum target, GLenum format, GLsizei len, const void * string) { -// (*fnptr)(program, target, format, len, string); -// } -// static void glowNamedRenderbufferStorage(GPNAMEDRENDERBUFFERSTORAGE fnptr, GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(renderbuffer, internalformat, width, height); -// } -// static void glowNamedRenderbufferStorageEXT(GPNAMEDRENDERBUFFERSTORAGEEXT fnptr, GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(renderbuffer, internalformat, width, height); -// } -// static void glowNamedRenderbufferStorageMultisample(GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLE fnptr, GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(renderbuffer, samples, internalformat, width, height); -// } -// static void glowNamedRenderbufferStorageMultisampleCoverageEXT(GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXT fnptr, GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(renderbuffer, coverageSamples, colorSamples, internalformat, width, height); -// } -// static void glowNamedRenderbufferStorageMultisampleEXT(GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXT fnptr, GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(renderbuffer, samples, internalformat, width, height); -// } -// static void glowNamedStringARB(GPNAMEDSTRINGARB fnptr, GLenum type, GLint namelen, const GLchar * name, GLint stringlen, const GLchar * string) { -// (*fnptr)(type, namelen, name, stringlen, string); -// } -// static void glowNewList(GPNEWLIST fnptr, GLuint list, GLenum mode) { -// (*fnptr)(list, mode); -// } -// static GLuint glowNewObjectBufferATI(GPNEWOBJECTBUFFERATI fnptr, GLsizei size, const void * pointer, GLenum usage) { -// return (*fnptr)(size, pointer, usage); -// } -// static void glowNormal3b(GPNORMAL3B fnptr, GLbyte nx, GLbyte ny, GLbyte nz) { -// (*fnptr)(nx, ny, nz); -// } -// static void glowNormal3bv(GPNORMAL3BV fnptr, const GLbyte * v) { -// (*fnptr)(v); -// } -// static void glowNormal3d(GPNORMAL3D fnptr, GLdouble nx, GLdouble ny, GLdouble nz) { -// (*fnptr)(nx, ny, nz); -// } -// static void glowNormal3dv(GPNORMAL3DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowNormal3f(GPNORMAL3F fnptr, GLfloat nx, GLfloat ny, GLfloat nz) { -// (*fnptr)(nx, ny, nz); -// } -// static void glowNormal3fVertex3fSUN(GPNORMAL3FVERTEX3FSUN fnptr, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(nx, ny, nz, x, y, z); -// } -// static void glowNormal3fVertex3fvSUN(GPNORMAL3FVERTEX3FVSUN fnptr, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(n, v); -// } -// static void glowNormal3fv(GPNORMAL3FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowNormal3hNV(GPNORMAL3HNV fnptr, GLhalfNV nx, GLhalfNV ny, GLhalfNV nz) { -// (*fnptr)(nx, ny, nz); -// } -// static void glowNormal3hvNV(GPNORMAL3HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowNormal3i(GPNORMAL3I fnptr, GLint nx, GLint ny, GLint nz) { -// (*fnptr)(nx, ny, nz); -// } -// static void glowNormal3iv(GPNORMAL3IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowNormal3s(GPNORMAL3S fnptr, GLshort nx, GLshort ny, GLshort nz) { -// (*fnptr)(nx, ny, nz); -// } -// static void glowNormal3sv(GPNORMAL3SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowNormal3xOES(GPNORMAL3XOES fnptr, GLfixed nx, GLfixed ny, GLfixed nz) { -// (*fnptr)(nx, ny, nz); -// } -// static void glowNormal3xvOES(GPNORMAL3XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowNormalFormatNV(GPNORMALFORMATNV fnptr, GLenum type, GLsizei stride) { -// (*fnptr)(type, stride); -// } -// static void glowNormalPointer(GPNORMALPOINTER fnptr, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(type, stride, pointer); -// } -// static void glowNormalPointerEXT(GPNORMALPOINTEREXT fnptr, GLenum type, GLsizei stride, GLsizei count, const void * pointer) { -// (*fnptr)(type, stride, count, pointer); -// } -// static void glowNormalPointerListIBM(GPNORMALPOINTERLISTIBM fnptr, GLenum type, GLint stride, const void ** pointer, GLint ptrstride) { -// (*fnptr)(type, stride, pointer, ptrstride); -// } -// static void glowNormalPointervINTEL(GPNORMALPOINTERVINTEL fnptr, GLenum type, const void ** pointer) { -// (*fnptr)(type, pointer); -// } -// static void glowNormalStream3bATI(GPNORMALSTREAM3BATI fnptr, GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz) { -// (*fnptr)(stream, nx, ny, nz); -// } -// static void glowNormalStream3bvATI(GPNORMALSTREAM3BVATI fnptr, GLenum stream, const GLbyte * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowNormalStream3dATI(GPNORMALSTREAM3DATI fnptr, GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz) { -// (*fnptr)(stream, nx, ny, nz); -// } -// static void glowNormalStream3dvATI(GPNORMALSTREAM3DVATI fnptr, GLenum stream, const GLdouble * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowNormalStream3fATI(GPNORMALSTREAM3FATI fnptr, GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz) { -// (*fnptr)(stream, nx, ny, nz); -// } -// static void glowNormalStream3fvATI(GPNORMALSTREAM3FVATI fnptr, GLenum stream, const GLfloat * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowNormalStream3iATI(GPNORMALSTREAM3IATI fnptr, GLenum stream, GLint nx, GLint ny, GLint nz) { -// (*fnptr)(stream, nx, ny, nz); -// } -// static void glowNormalStream3ivATI(GPNORMALSTREAM3IVATI fnptr, GLenum stream, const GLint * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowNormalStream3sATI(GPNORMALSTREAM3SATI fnptr, GLenum stream, GLshort nx, GLshort ny, GLshort nz) { -// (*fnptr)(stream, nx, ny, nz); -// } -// static void glowNormalStream3svATI(GPNORMALSTREAM3SVATI fnptr, GLenum stream, const GLshort * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowObjectLabel(GPOBJECTLABEL fnptr, GLenum identifier, GLuint name, GLsizei length, const GLchar * label) { -// (*fnptr)(identifier, name, length, label); -// } -// static void glowObjectLabelKHR(GPOBJECTLABELKHR fnptr, GLenum identifier, GLuint name, GLsizei length, const GLchar * label) { -// (*fnptr)(identifier, name, length, label); -// } -// static void glowObjectPtrLabel(GPOBJECTPTRLABEL fnptr, const void * ptr, GLsizei length, const GLchar * label) { -// (*fnptr)(ptr, length, label); -// } -// static void glowObjectPtrLabelKHR(GPOBJECTPTRLABELKHR fnptr, const void * ptr, GLsizei length, const GLchar * label) { -// (*fnptr)(ptr, length, label); -// } -// static GLenum glowObjectPurgeableAPPLE(GPOBJECTPURGEABLEAPPLE fnptr, GLenum objectType, GLuint name, GLenum option) { -// return (*fnptr)(objectType, name, option); -// } -// static GLenum glowObjectUnpurgeableAPPLE(GPOBJECTUNPURGEABLEAPPLE fnptr, GLenum objectType, GLuint name, GLenum option) { -// return (*fnptr)(objectType, name, option); -// } -// static void glowOrtho(GPORTHO fnptr, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) { -// (*fnptr)(left, right, bottom, top, zNear, zFar); -// } -// static void glowOrthofOES(GPORTHOFOES fnptr, GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f) { -// (*fnptr)(l, r, b, t, n, f); -// } -// static void glowOrthoxOES(GPORTHOXOES fnptr, GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f) { -// (*fnptr)(l, r, b, t, n, f); -// } -// static void glowPNTrianglesfATI(GPPNTRIANGLESFATI fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowPNTrianglesiATI(GPPNTRIANGLESIATI fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowPassTexCoordATI(GPPASSTEXCOORDATI fnptr, GLuint dst, GLuint coord, GLenum swizzle) { -// (*fnptr)(dst, coord, swizzle); -// } -// static void glowPassThrough(GPPASSTHROUGH fnptr, GLfloat token) { -// (*fnptr)(token); -// } -// static void glowPassThroughxOES(GPPASSTHROUGHXOES fnptr, GLfixed token) { -// (*fnptr)(token); -// } -// static void glowPatchParameterfv(GPPATCHPARAMETERFV fnptr, GLenum pname, const GLfloat * values) { -// (*fnptr)(pname, values); -// } -// static void glowPatchParameteri(GPPATCHPARAMETERI fnptr, GLenum pname, GLint value) { -// (*fnptr)(pname, value); -// } -// static void glowPathColorGenNV(GPPATHCOLORGENNV fnptr, GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat * coeffs) { -// (*fnptr)(color, genMode, colorFormat, coeffs); -// } -// static void glowPathCommandsNV(GPPATHCOMMANDSNV fnptr, GLuint path, GLsizei numCommands, const GLubyte * commands, GLsizei numCoords, GLenum coordType, const void * coords) { -// (*fnptr)(path, numCommands, commands, numCoords, coordType, coords); -// } -// static void glowPathCoordsNV(GPPATHCOORDSNV fnptr, GLuint path, GLsizei numCoords, GLenum coordType, const void * coords) { -// (*fnptr)(path, numCoords, coordType, coords); -// } -// static void glowPathCoverDepthFuncNV(GPPATHCOVERDEPTHFUNCNV fnptr, GLenum func) { -// (*fnptr)(func); -// } -// static void glowPathDashArrayNV(GPPATHDASHARRAYNV fnptr, GLuint path, GLsizei dashCount, const GLfloat * dashArray) { -// (*fnptr)(path, dashCount, dashArray); -// } -// static void glowPathFogGenNV(GPPATHFOGGENNV fnptr, GLenum genMode) { -// (*fnptr)(genMode); -// } -// static GLenum glowPathGlyphIndexArrayNV(GPPATHGLYPHINDEXARRAYNV fnptr, GLuint firstPathName, GLenum fontTarget, const void * fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale) { -// return (*fnptr)(firstPathName, fontTarget, fontName, fontStyle, firstGlyphIndex, numGlyphs, pathParameterTemplate, emScale); -// } -// static GLenum glowPathGlyphIndexRangeNV(GPPATHGLYPHINDEXRANGENV fnptr, GLenum fontTarget, const void * fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint * baseAndCount) { -// return (*fnptr)(fontTarget, fontName, fontStyle, pathParameterTemplate, emScale, baseAndCount); -// } -// static void glowPathGlyphRangeNV(GPPATHGLYPHRANGENV fnptr, GLuint firstPathName, GLenum fontTarget, const void * fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale) { -// (*fnptr)(firstPathName, fontTarget, fontName, fontStyle, firstGlyph, numGlyphs, handleMissingGlyphs, pathParameterTemplate, emScale); -// } -// static void glowPathGlyphsNV(GPPATHGLYPHSNV fnptr, GLuint firstPathName, GLenum fontTarget, const void * fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void * charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale) { -// (*fnptr)(firstPathName, fontTarget, fontName, fontStyle, numGlyphs, type, charcodes, handleMissingGlyphs, pathParameterTemplate, emScale); -// } -// static GLenum glowPathMemoryGlyphIndexArrayNV(GPPATHMEMORYGLYPHINDEXARRAYNV fnptr, GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void * fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale) { -// return (*fnptr)(firstPathName, fontTarget, fontSize, fontData, faceIndex, firstGlyphIndex, numGlyphs, pathParameterTemplate, emScale); -// } -// static void glowPathParameterfNV(GPPATHPARAMETERFNV fnptr, GLuint path, GLenum pname, GLfloat value) { -// (*fnptr)(path, pname, value); -// } -// static void glowPathParameterfvNV(GPPATHPARAMETERFVNV fnptr, GLuint path, GLenum pname, const GLfloat * value) { -// (*fnptr)(path, pname, value); -// } -// static void glowPathParameteriNV(GPPATHPARAMETERINV fnptr, GLuint path, GLenum pname, GLint value) { -// (*fnptr)(path, pname, value); -// } -// static void glowPathParameterivNV(GPPATHPARAMETERIVNV fnptr, GLuint path, GLenum pname, const GLint * value) { -// (*fnptr)(path, pname, value); -// } -// static void glowPathStencilDepthOffsetNV(GPPATHSTENCILDEPTHOFFSETNV fnptr, GLfloat factor, GLfloat units) { -// (*fnptr)(factor, units); -// } -// static void glowPathStencilFuncNV(GPPATHSTENCILFUNCNV fnptr, GLenum func, GLint ref, GLuint mask) { -// (*fnptr)(func, ref, mask); -// } -// static void glowPathStringNV(GPPATHSTRINGNV fnptr, GLuint path, GLenum format, GLsizei length, const void * pathString) { -// (*fnptr)(path, format, length, pathString); -// } -// static void glowPathSubCommandsNV(GPPATHSUBCOMMANDSNV fnptr, GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte * commands, GLsizei numCoords, GLenum coordType, const void * coords) { -// (*fnptr)(path, commandStart, commandsToDelete, numCommands, commands, numCoords, coordType, coords); -// } -// static void glowPathSubCoordsNV(GPPATHSUBCOORDSNV fnptr, GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void * coords) { -// (*fnptr)(path, coordStart, numCoords, coordType, coords); -// } -// static void glowPathTexGenNV(GPPATHTEXGENNV fnptr, GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat * coeffs) { -// (*fnptr)(texCoordSet, genMode, components, coeffs); -// } -// static void glowPauseTransformFeedback(GPPAUSETRANSFORMFEEDBACK fnptr) { -// (*fnptr)(); -// } -// static void glowPauseTransformFeedbackNV(GPPAUSETRANSFORMFEEDBACKNV fnptr) { -// (*fnptr)(); -// } -// static void glowPixelDataRangeNV(GPPIXELDATARANGENV fnptr, GLenum target, GLsizei length, const void * pointer) { -// (*fnptr)(target, length, pointer); -// } -// static void glowPixelMapfv(GPPIXELMAPFV fnptr, GLenum map, GLsizei mapsize, const GLfloat * values) { -// (*fnptr)(map, mapsize, values); -// } -// static void glowPixelMapuiv(GPPIXELMAPUIV fnptr, GLenum map, GLsizei mapsize, const GLuint * values) { -// (*fnptr)(map, mapsize, values); -// } -// static void glowPixelMapusv(GPPIXELMAPUSV fnptr, GLenum map, GLsizei mapsize, const GLushort * values) { -// (*fnptr)(map, mapsize, values); -// } -// static void glowPixelMapx(GPPIXELMAPX fnptr, GLenum map, GLint size, const GLfixed * values) { -// (*fnptr)(map, size, values); -// } -// static void glowPixelStoref(GPPIXELSTOREF fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowPixelStorei(GPPIXELSTOREI fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowPixelStorex(GPPIXELSTOREX fnptr, GLenum pname, GLfixed param) { -// (*fnptr)(pname, param); -// } -// static void glowPixelTexGenParameterfSGIS(GPPIXELTEXGENPARAMETERFSGIS fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowPixelTexGenParameterfvSGIS(GPPIXELTEXGENPARAMETERFVSGIS fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowPixelTexGenParameteriSGIS(GPPIXELTEXGENPARAMETERISGIS fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowPixelTexGenParameterivSGIS(GPPIXELTEXGENPARAMETERIVSGIS fnptr, GLenum pname, const GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowPixelTexGenSGIX(GPPIXELTEXGENSGIX fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowPixelTransferf(GPPIXELTRANSFERF fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowPixelTransferi(GPPIXELTRANSFERI fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowPixelTransferxOES(GPPIXELTRANSFERXOES fnptr, GLenum pname, GLfixed param) { -// (*fnptr)(pname, param); -// } -// static void glowPixelTransformParameterfEXT(GPPIXELTRANSFORMPARAMETERFEXT fnptr, GLenum target, GLenum pname, GLfloat param) { -// (*fnptr)(target, pname, param); -// } -// static void glowPixelTransformParameterfvEXT(GPPIXELTRANSFORMPARAMETERFVEXT fnptr, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowPixelTransformParameteriEXT(GPPIXELTRANSFORMPARAMETERIEXT fnptr, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(target, pname, param); -// } -// static void glowPixelTransformParameterivEXT(GPPIXELTRANSFORMPARAMETERIVEXT fnptr, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowPixelZoom(GPPIXELZOOM fnptr, GLfloat xfactor, GLfloat yfactor) { -// (*fnptr)(xfactor, yfactor); -// } -// static void glowPixelZoomxOES(GPPIXELZOOMXOES fnptr, GLfixed xfactor, GLfixed yfactor) { -// (*fnptr)(xfactor, yfactor); -// } -// static GLboolean glowPointAlongPathNV(GPPOINTALONGPATHNV fnptr, GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat * x, GLfloat * y, GLfloat * tangentX, GLfloat * tangentY) { -// return (*fnptr)(path, startSegment, numSegments, distance, x, y, tangentX, tangentY); -// } -// static void glowPointParameterf(GPPOINTPARAMETERF fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowPointParameterfARB(GPPOINTPARAMETERFARB fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowPointParameterfEXT(GPPOINTPARAMETERFEXT fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowPointParameterfSGIS(GPPOINTPARAMETERFSGIS fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowPointParameterfv(GPPOINTPARAMETERFV fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowPointParameterfvARB(GPPOINTPARAMETERFVARB fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowPointParameterfvEXT(GPPOINTPARAMETERFVEXT fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowPointParameterfvSGIS(GPPOINTPARAMETERFVSGIS fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowPointParameteri(GPPOINTPARAMETERI fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowPointParameteriNV(GPPOINTPARAMETERINV fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowPointParameteriv(GPPOINTPARAMETERIV fnptr, GLenum pname, const GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowPointParameterivNV(GPPOINTPARAMETERIVNV fnptr, GLenum pname, const GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowPointParameterxOES(GPPOINTPARAMETERXOES fnptr, GLenum pname, GLfixed param) { -// (*fnptr)(pname, param); -// } -// static void glowPointParameterxvOES(GPPOINTPARAMETERXVOES fnptr, GLenum pname, const GLfixed * params) { -// (*fnptr)(pname, params); -// } -// static void glowPointSize(GPPOINTSIZE fnptr, GLfloat size) { -// (*fnptr)(size); -// } -// static void glowPointSizexOES(GPPOINTSIZEXOES fnptr, GLfixed size) { -// (*fnptr)(size); -// } -// static GLint glowPollAsyncSGIX(GPPOLLASYNCSGIX fnptr, GLuint * markerp) { -// return (*fnptr)(markerp); -// } -// static GLint glowPollInstrumentsSGIX(GPPOLLINSTRUMENTSSGIX fnptr, GLint * marker_p) { -// return (*fnptr)(marker_p); -// } -// static void glowPolygonMode(GPPOLYGONMODE fnptr, GLenum face, GLenum mode) { -// (*fnptr)(face, mode); -// } -// static void glowPolygonOffset(GPPOLYGONOFFSET fnptr, GLfloat factor, GLfloat units) { -// (*fnptr)(factor, units); -// } -// static void glowPolygonOffsetEXT(GPPOLYGONOFFSETEXT fnptr, GLfloat factor, GLfloat bias) { -// (*fnptr)(factor, bias); -// } -// static void glowPolygonOffsetxOES(GPPOLYGONOFFSETXOES fnptr, GLfixed factor, GLfixed units) { -// (*fnptr)(factor, units); -// } -// static void glowPolygonStipple(GPPOLYGONSTIPPLE fnptr, const GLubyte * mask) { -// (*fnptr)(mask); -// } -// static void glowPopAttrib(GPPOPATTRIB fnptr) { -// (*fnptr)(); -// } -// static void glowPopClientAttrib(GPPOPCLIENTATTRIB fnptr) { -// (*fnptr)(); -// } -// static void glowPopDebugGroup(GPPOPDEBUGGROUP fnptr) { -// (*fnptr)(); -// } -// static void glowPopDebugGroupKHR(GPPOPDEBUGGROUPKHR fnptr) { -// (*fnptr)(); -// } -// static void glowPopGroupMarkerEXT(GPPOPGROUPMARKEREXT fnptr) { -// (*fnptr)(); -// } -// static void glowPopMatrix(GPPOPMATRIX fnptr) { -// (*fnptr)(); -// } -// static void glowPopName(GPPOPNAME fnptr) { -// (*fnptr)(); -// } -// static void glowPresentFrameDualFillNV(GPPRESENTFRAMEDUALFILLNV fnptr, GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3) { -// (*fnptr)(video_slot, minPresentTime, beginPresentTimeId, presentDurationId, type, target0, fill0, target1, fill1, target2, fill2, target3, fill3); -// } -// static void glowPresentFrameKeyedNV(GPPRESENTFRAMEKEYEDNV fnptr, GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1) { -// (*fnptr)(video_slot, minPresentTime, beginPresentTimeId, presentDurationId, type, target0, fill0, key0, target1, fill1, key1); -// } -// static void glowPrimitiveRestartIndexNV(GPPRIMITIVERESTARTINDEXNV fnptr, GLuint index) { -// (*fnptr)(index); -// } -// static void glowPrimitiveRestartNV(GPPRIMITIVERESTARTNV fnptr) { -// (*fnptr)(); -// } -// static void glowPrioritizeTextures(GPPRIORITIZETEXTURES fnptr, GLsizei n, const GLuint * textures, const GLfloat * priorities) { -// (*fnptr)(n, textures, priorities); -// } -// static void glowPrioritizeTexturesEXT(GPPRIORITIZETEXTURESEXT fnptr, GLsizei n, const GLuint * textures, const GLclampf * priorities) { -// (*fnptr)(n, textures, priorities); -// } -// static void glowPrioritizeTexturesxOES(GPPRIORITIZETEXTURESXOES fnptr, GLsizei n, const GLuint * textures, const GLfixed * priorities) { -// (*fnptr)(n, textures, priorities); -// } -// static void glowProgramBinary(GPPROGRAMBINARY fnptr, GLuint program, GLenum binaryFormat, const void * binary, GLsizei length) { -// (*fnptr)(program, binaryFormat, binary, length); -// } -// static void glowProgramBufferParametersIivNV(GPPROGRAMBUFFERPARAMETERSIIVNV fnptr, GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint * params) { -// (*fnptr)(target, bindingIndex, wordIndex, count, params); -// } -// static void glowProgramBufferParametersIuivNV(GPPROGRAMBUFFERPARAMETERSIUIVNV fnptr, GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint * params) { -// (*fnptr)(target, bindingIndex, wordIndex, count, params); -// } -// static void glowProgramBufferParametersfvNV(GPPROGRAMBUFFERPARAMETERSFVNV fnptr, GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat * params) { -// (*fnptr)(target, bindingIndex, wordIndex, count, params); -// } -// static void glowProgramEnvParameter4dARB(GPPROGRAMENVPARAMETER4DARB fnptr, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramEnvParameter4dvARB(GPPROGRAMENVPARAMETER4DVARB fnptr, GLenum target, GLuint index, const GLdouble * params) { -// (*fnptr)(target, index, params); -// } -// static void glowProgramEnvParameter4fARB(GPPROGRAMENVPARAMETER4FARB fnptr, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramEnvParameter4fvARB(GPPROGRAMENVPARAMETER4FVARB fnptr, GLenum target, GLuint index, const GLfloat * params) { -// (*fnptr)(target, index, params); -// } -// static void glowProgramEnvParameterI4iNV(GPPROGRAMENVPARAMETERI4INV fnptr, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramEnvParameterI4ivNV(GPPROGRAMENVPARAMETERI4IVNV fnptr, GLenum target, GLuint index, const GLint * params) { -// (*fnptr)(target, index, params); -// } -// static void glowProgramEnvParameterI4uiNV(GPPROGRAMENVPARAMETERI4UINV fnptr, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramEnvParameterI4uivNV(GPPROGRAMENVPARAMETERI4UIVNV fnptr, GLenum target, GLuint index, const GLuint * params) { -// (*fnptr)(target, index, params); -// } -// static void glowProgramEnvParameters4fvEXT(GPPROGRAMENVPARAMETERS4FVEXT fnptr, GLenum target, GLuint index, GLsizei count, const GLfloat * params) { -// (*fnptr)(target, index, count, params); -// } -// static void glowProgramEnvParametersI4ivNV(GPPROGRAMENVPARAMETERSI4IVNV fnptr, GLenum target, GLuint index, GLsizei count, const GLint * params) { -// (*fnptr)(target, index, count, params); -// } -// static void glowProgramEnvParametersI4uivNV(GPPROGRAMENVPARAMETERSI4UIVNV fnptr, GLenum target, GLuint index, GLsizei count, const GLuint * params) { -// (*fnptr)(target, index, count, params); -// } -// static void glowProgramLocalParameter4dARB(GPPROGRAMLOCALPARAMETER4DARB fnptr, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramLocalParameter4dvARB(GPPROGRAMLOCALPARAMETER4DVARB fnptr, GLenum target, GLuint index, const GLdouble * params) { -// (*fnptr)(target, index, params); -// } -// static void glowProgramLocalParameter4fARB(GPPROGRAMLOCALPARAMETER4FARB fnptr, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramLocalParameter4fvARB(GPPROGRAMLOCALPARAMETER4FVARB fnptr, GLenum target, GLuint index, const GLfloat * params) { -// (*fnptr)(target, index, params); -// } -// static void glowProgramLocalParameterI4iNV(GPPROGRAMLOCALPARAMETERI4INV fnptr, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramLocalParameterI4ivNV(GPPROGRAMLOCALPARAMETERI4IVNV fnptr, GLenum target, GLuint index, const GLint * params) { -// (*fnptr)(target, index, params); -// } -// static void glowProgramLocalParameterI4uiNV(GPPROGRAMLOCALPARAMETERI4UINV fnptr, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramLocalParameterI4uivNV(GPPROGRAMLOCALPARAMETERI4UIVNV fnptr, GLenum target, GLuint index, const GLuint * params) { -// (*fnptr)(target, index, params); -// } -// static void glowProgramLocalParameters4fvEXT(GPPROGRAMLOCALPARAMETERS4FVEXT fnptr, GLenum target, GLuint index, GLsizei count, const GLfloat * params) { -// (*fnptr)(target, index, count, params); -// } -// static void glowProgramLocalParametersI4ivNV(GPPROGRAMLOCALPARAMETERSI4IVNV fnptr, GLenum target, GLuint index, GLsizei count, const GLint * params) { -// (*fnptr)(target, index, count, params); -// } -// static void glowProgramLocalParametersI4uivNV(GPPROGRAMLOCALPARAMETERSI4UIVNV fnptr, GLenum target, GLuint index, GLsizei count, const GLuint * params) { -// (*fnptr)(target, index, count, params); -// } -// static void glowProgramNamedParameter4dNV(GPPROGRAMNAMEDPARAMETER4DNV fnptr, GLuint id, GLsizei len, const GLubyte * name, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(id, len, name, x, y, z, w); -// } -// static void glowProgramNamedParameter4dvNV(GPPROGRAMNAMEDPARAMETER4DVNV fnptr, GLuint id, GLsizei len, const GLubyte * name, const GLdouble * v) { -// (*fnptr)(id, len, name, v); -// } -// static void glowProgramNamedParameter4fNV(GPPROGRAMNAMEDPARAMETER4FNV fnptr, GLuint id, GLsizei len, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(id, len, name, x, y, z, w); -// } -// static void glowProgramNamedParameter4fvNV(GPPROGRAMNAMEDPARAMETER4FVNV fnptr, GLuint id, GLsizei len, const GLubyte * name, const GLfloat * v) { -// (*fnptr)(id, len, name, v); -// } -// static void glowProgramParameter4dNV(GPPROGRAMPARAMETER4DNV fnptr, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramParameter4dvNV(GPPROGRAMPARAMETER4DVNV fnptr, GLenum target, GLuint index, const GLdouble * v) { -// (*fnptr)(target, index, v); -// } -// static void glowProgramParameter4fNV(GPPROGRAMPARAMETER4FNV fnptr, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(target, index, x, y, z, w); -// } -// static void glowProgramParameter4fvNV(GPPROGRAMPARAMETER4FVNV fnptr, GLenum target, GLuint index, const GLfloat * v) { -// (*fnptr)(target, index, v); -// } -// static void glowProgramParameteri(GPPROGRAMPARAMETERI fnptr, GLuint program, GLenum pname, GLint value) { -// (*fnptr)(program, pname, value); -// } -// static void glowProgramParameteriARB(GPPROGRAMPARAMETERIARB fnptr, GLuint program, GLenum pname, GLint value) { -// (*fnptr)(program, pname, value); -// } -// static void glowProgramParameteriEXT(GPPROGRAMPARAMETERIEXT fnptr, GLuint program, GLenum pname, GLint value) { -// (*fnptr)(program, pname, value); -// } -// static void glowProgramParameters4dvNV(GPPROGRAMPARAMETERS4DVNV fnptr, GLenum target, GLuint index, GLsizei count, const GLdouble * v) { -// (*fnptr)(target, index, count, v); -// } -// static void glowProgramParameters4fvNV(GPPROGRAMPARAMETERS4FVNV fnptr, GLenum target, GLuint index, GLsizei count, const GLfloat * v) { -// (*fnptr)(target, index, count, v); -// } -// static void glowProgramPathFragmentInputGenNV(GPPROGRAMPATHFRAGMENTINPUTGENNV fnptr, GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat * coeffs) { -// (*fnptr)(program, location, genMode, components, coeffs); -// } -// static void glowProgramStringARB(GPPROGRAMSTRINGARB fnptr, GLenum target, GLenum format, GLsizei len, const void * string) { -// (*fnptr)(target, format, len, string); -// } -// static void glowProgramSubroutineParametersuivNV(GPPROGRAMSUBROUTINEPARAMETERSUIVNV fnptr, GLenum target, GLsizei count, const GLuint * params) { -// (*fnptr)(target, count, params); -// } -// static void glowProgramUniform1d(GPPROGRAMUNIFORM1D fnptr, GLuint program, GLint location, GLdouble v0) { -// (*fnptr)(program, location, v0); -// } -// static void glowProgramUniform1dEXT(GPPROGRAMUNIFORM1DEXT fnptr, GLuint program, GLint location, GLdouble x) { -// (*fnptr)(program, location, x); -// } -// static void glowProgramUniform1dv(GPPROGRAMUNIFORM1DV fnptr, GLuint program, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1dvEXT(GPPROGRAMUNIFORM1DVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1f(GPPROGRAMUNIFORM1F fnptr, GLuint program, GLint location, GLfloat v0) { -// (*fnptr)(program, location, v0); -// } -// static void glowProgramUniform1fEXT(GPPROGRAMUNIFORM1FEXT fnptr, GLuint program, GLint location, GLfloat v0) { -// (*fnptr)(program, location, v0); -// } -// static void glowProgramUniform1fv(GPPROGRAMUNIFORM1FV fnptr, GLuint program, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1fvEXT(GPPROGRAMUNIFORM1FVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1i(GPPROGRAMUNIFORM1I fnptr, GLuint program, GLint location, GLint v0) { -// (*fnptr)(program, location, v0); -// } -// static void glowProgramUniform1i64NV(GPPROGRAMUNIFORM1I64NV fnptr, GLuint program, GLint location, GLint64EXT x) { -// (*fnptr)(program, location, x); -// } -// static void glowProgramUniform1i64vNV(GPPROGRAMUNIFORM1I64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1iEXT(GPPROGRAMUNIFORM1IEXT fnptr, GLuint program, GLint location, GLint v0) { -// (*fnptr)(program, location, v0); -// } -// static void glowProgramUniform1iv(GPPROGRAMUNIFORM1IV fnptr, GLuint program, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1ivEXT(GPPROGRAMUNIFORM1IVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1ui(GPPROGRAMUNIFORM1UI fnptr, GLuint program, GLint location, GLuint v0) { -// (*fnptr)(program, location, v0); -// } -// static void glowProgramUniform1ui64NV(GPPROGRAMUNIFORM1UI64NV fnptr, GLuint program, GLint location, GLuint64EXT x) { -// (*fnptr)(program, location, x); -// } -// static void glowProgramUniform1ui64vNV(GPPROGRAMUNIFORM1UI64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1uiEXT(GPPROGRAMUNIFORM1UIEXT fnptr, GLuint program, GLint location, GLuint v0) { -// (*fnptr)(program, location, v0); -// } -// static void glowProgramUniform1uiv(GPPROGRAMUNIFORM1UIV fnptr, GLuint program, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform1uivEXT(GPPROGRAMUNIFORM1UIVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2d(GPPROGRAMUNIFORM2D fnptr, GLuint program, GLint location, GLdouble v0, GLdouble v1) { -// (*fnptr)(program, location, v0, v1); -// } -// static void glowProgramUniform2dEXT(GPPROGRAMUNIFORM2DEXT fnptr, GLuint program, GLint location, GLdouble x, GLdouble y) { -// (*fnptr)(program, location, x, y); -// } -// static void glowProgramUniform2dv(GPPROGRAMUNIFORM2DV fnptr, GLuint program, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2dvEXT(GPPROGRAMUNIFORM2DVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2f(GPPROGRAMUNIFORM2F fnptr, GLuint program, GLint location, GLfloat v0, GLfloat v1) { -// (*fnptr)(program, location, v0, v1); -// } -// static void glowProgramUniform2fEXT(GPPROGRAMUNIFORM2FEXT fnptr, GLuint program, GLint location, GLfloat v0, GLfloat v1) { -// (*fnptr)(program, location, v0, v1); -// } -// static void glowProgramUniform2fv(GPPROGRAMUNIFORM2FV fnptr, GLuint program, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2fvEXT(GPPROGRAMUNIFORM2FVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2i(GPPROGRAMUNIFORM2I fnptr, GLuint program, GLint location, GLint v0, GLint v1) { -// (*fnptr)(program, location, v0, v1); -// } -// static void glowProgramUniform2i64NV(GPPROGRAMUNIFORM2I64NV fnptr, GLuint program, GLint location, GLint64EXT x, GLint64EXT y) { -// (*fnptr)(program, location, x, y); -// } -// static void glowProgramUniform2i64vNV(GPPROGRAMUNIFORM2I64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2iEXT(GPPROGRAMUNIFORM2IEXT fnptr, GLuint program, GLint location, GLint v0, GLint v1) { -// (*fnptr)(program, location, v0, v1); -// } -// static void glowProgramUniform2iv(GPPROGRAMUNIFORM2IV fnptr, GLuint program, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2ivEXT(GPPROGRAMUNIFORM2IVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2ui(GPPROGRAMUNIFORM2UI fnptr, GLuint program, GLint location, GLuint v0, GLuint v1) { -// (*fnptr)(program, location, v0, v1); -// } -// static void glowProgramUniform2ui64NV(GPPROGRAMUNIFORM2UI64NV fnptr, GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y) { -// (*fnptr)(program, location, x, y); -// } -// static void glowProgramUniform2ui64vNV(GPPROGRAMUNIFORM2UI64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2uiEXT(GPPROGRAMUNIFORM2UIEXT fnptr, GLuint program, GLint location, GLuint v0, GLuint v1) { -// (*fnptr)(program, location, v0, v1); -// } -// static void glowProgramUniform2uiv(GPPROGRAMUNIFORM2UIV fnptr, GLuint program, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform2uivEXT(GPPROGRAMUNIFORM2UIVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3d(GPPROGRAMUNIFORM3D fnptr, GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2) { -// (*fnptr)(program, location, v0, v1, v2); -// } -// static void glowProgramUniform3dEXT(GPPROGRAMUNIFORM3DEXT fnptr, GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(program, location, x, y, z); -// } -// static void glowProgramUniform3dv(GPPROGRAMUNIFORM3DV fnptr, GLuint program, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3dvEXT(GPPROGRAMUNIFORM3DVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3f(GPPROGRAMUNIFORM3F fnptr, GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) { -// (*fnptr)(program, location, v0, v1, v2); -// } -// static void glowProgramUniform3fEXT(GPPROGRAMUNIFORM3FEXT fnptr, GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) { -// (*fnptr)(program, location, v0, v1, v2); -// } -// static void glowProgramUniform3fv(GPPROGRAMUNIFORM3FV fnptr, GLuint program, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3fvEXT(GPPROGRAMUNIFORM3FVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3i(GPPROGRAMUNIFORM3I fnptr, GLuint program, GLint location, GLint v0, GLint v1, GLint v2) { -// (*fnptr)(program, location, v0, v1, v2); -// } -// static void glowProgramUniform3i64NV(GPPROGRAMUNIFORM3I64NV fnptr, GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z) { -// (*fnptr)(program, location, x, y, z); -// } -// static void glowProgramUniform3i64vNV(GPPROGRAMUNIFORM3I64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3iEXT(GPPROGRAMUNIFORM3IEXT fnptr, GLuint program, GLint location, GLint v0, GLint v1, GLint v2) { -// (*fnptr)(program, location, v0, v1, v2); -// } -// static void glowProgramUniform3iv(GPPROGRAMUNIFORM3IV fnptr, GLuint program, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3ivEXT(GPPROGRAMUNIFORM3IVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3ui(GPPROGRAMUNIFORM3UI fnptr, GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2) { -// (*fnptr)(program, location, v0, v1, v2); -// } -// static void glowProgramUniform3ui64NV(GPPROGRAMUNIFORM3UI64NV fnptr, GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z) { -// (*fnptr)(program, location, x, y, z); -// } -// static void glowProgramUniform3ui64vNV(GPPROGRAMUNIFORM3UI64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3uiEXT(GPPROGRAMUNIFORM3UIEXT fnptr, GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2) { -// (*fnptr)(program, location, v0, v1, v2); -// } -// static void glowProgramUniform3uiv(GPPROGRAMUNIFORM3UIV fnptr, GLuint program, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform3uivEXT(GPPROGRAMUNIFORM3UIVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4d(GPPROGRAMUNIFORM4D fnptr, GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3) { -// (*fnptr)(program, location, v0, v1, v2, v3); -// } -// static void glowProgramUniform4dEXT(GPPROGRAMUNIFORM4DEXT fnptr, GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(program, location, x, y, z, w); -// } -// static void glowProgramUniform4dv(GPPROGRAMUNIFORM4DV fnptr, GLuint program, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4dvEXT(GPPROGRAMUNIFORM4DVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4f(GPPROGRAMUNIFORM4F fnptr, GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) { -// (*fnptr)(program, location, v0, v1, v2, v3); -// } -// static void glowProgramUniform4fEXT(GPPROGRAMUNIFORM4FEXT fnptr, GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) { -// (*fnptr)(program, location, v0, v1, v2, v3); -// } -// static void glowProgramUniform4fv(GPPROGRAMUNIFORM4FV fnptr, GLuint program, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4fvEXT(GPPROGRAMUNIFORM4FVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4i(GPPROGRAMUNIFORM4I fnptr, GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) { -// (*fnptr)(program, location, v0, v1, v2, v3); -// } -// static void glowProgramUniform4i64NV(GPPROGRAMUNIFORM4I64NV fnptr, GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w) { -// (*fnptr)(program, location, x, y, z, w); -// } -// static void glowProgramUniform4i64vNV(GPPROGRAMUNIFORM4I64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4iEXT(GPPROGRAMUNIFORM4IEXT fnptr, GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) { -// (*fnptr)(program, location, v0, v1, v2, v3); -// } -// static void glowProgramUniform4iv(GPPROGRAMUNIFORM4IV fnptr, GLuint program, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4ivEXT(GPPROGRAMUNIFORM4IVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4ui(GPPROGRAMUNIFORM4UI fnptr, GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) { -// (*fnptr)(program, location, v0, v1, v2, v3); -// } -// static void glowProgramUniform4ui64NV(GPPROGRAMUNIFORM4UI64NV fnptr, GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w) { -// (*fnptr)(program, location, x, y, z, w); -// } -// static void glowProgramUniform4ui64vNV(GPPROGRAMUNIFORM4UI64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4uiEXT(GPPROGRAMUNIFORM4UIEXT fnptr, GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) { -// (*fnptr)(program, location, v0, v1, v2, v3); -// } -// static void glowProgramUniform4uiv(GPPROGRAMUNIFORM4UIV fnptr, GLuint program, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniform4uivEXT(GPPROGRAMUNIFORM4UIVEXT fnptr, GLuint program, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramUniformHandleui64ARB(GPPROGRAMUNIFORMHANDLEUI64ARB fnptr, GLuint program, GLint location, GLuint64 value) { -// (*fnptr)(program, location, value); -// } -// static void glowProgramUniformHandleui64NV(GPPROGRAMUNIFORMHANDLEUI64NV fnptr, GLuint program, GLint location, GLuint64 value) { -// (*fnptr)(program, location, value); -// } -// static void glowProgramUniformHandleui64vARB(GPPROGRAMUNIFORMHANDLEUI64VARB fnptr, GLuint program, GLint location, GLsizei count, const GLuint64 * values) { -// (*fnptr)(program, location, count, values); -// } -// static void glowProgramUniformHandleui64vNV(GPPROGRAMUNIFORMHANDLEUI64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLuint64 * values) { -// (*fnptr)(program, location, count, values); -// } -// static void glowProgramUniformMatrix2dv(GPPROGRAMUNIFORMMATRIX2DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2dvEXT(GPPROGRAMUNIFORMMATRIX2DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2fv(GPPROGRAMUNIFORMMATRIX2FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2fvEXT(GPPROGRAMUNIFORMMATRIX2FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2x3dv(GPPROGRAMUNIFORMMATRIX2X3DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2x3dvEXT(GPPROGRAMUNIFORMMATRIX2X3DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2x3fv(GPPROGRAMUNIFORMMATRIX2X3FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2x3fvEXT(GPPROGRAMUNIFORMMATRIX2X3FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2x4dv(GPPROGRAMUNIFORMMATRIX2X4DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2x4dvEXT(GPPROGRAMUNIFORMMATRIX2X4DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2x4fv(GPPROGRAMUNIFORMMATRIX2X4FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix2x4fvEXT(GPPROGRAMUNIFORMMATRIX2X4FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3dv(GPPROGRAMUNIFORMMATRIX3DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3dvEXT(GPPROGRAMUNIFORMMATRIX3DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3fv(GPPROGRAMUNIFORMMATRIX3FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3fvEXT(GPPROGRAMUNIFORMMATRIX3FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3x2dv(GPPROGRAMUNIFORMMATRIX3X2DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3x2dvEXT(GPPROGRAMUNIFORMMATRIX3X2DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3x2fv(GPPROGRAMUNIFORMMATRIX3X2FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3x2fvEXT(GPPROGRAMUNIFORMMATRIX3X2FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3x4dv(GPPROGRAMUNIFORMMATRIX3X4DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3x4dvEXT(GPPROGRAMUNIFORMMATRIX3X4DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3x4fv(GPPROGRAMUNIFORMMATRIX3X4FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix3x4fvEXT(GPPROGRAMUNIFORMMATRIX3X4FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4dv(GPPROGRAMUNIFORMMATRIX4DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4dvEXT(GPPROGRAMUNIFORMMATRIX4DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4fv(GPPROGRAMUNIFORMMATRIX4FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4fvEXT(GPPROGRAMUNIFORMMATRIX4FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4x2dv(GPPROGRAMUNIFORMMATRIX4X2DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4x2dvEXT(GPPROGRAMUNIFORMMATRIX4X2DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4x2fv(GPPROGRAMUNIFORMMATRIX4X2FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4x2fvEXT(GPPROGRAMUNIFORMMATRIX4X2FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4x3dv(GPPROGRAMUNIFORMMATRIX4X3DV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4x3dvEXT(GPPROGRAMUNIFORMMATRIX4X3DVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4x3fv(GPPROGRAMUNIFORMMATRIX4X3FV fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformMatrix4x3fvEXT(GPPROGRAMUNIFORMMATRIX4X3FVEXT fnptr, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(program, location, count, transpose, value); -// } -// static void glowProgramUniformui64NV(GPPROGRAMUNIFORMUI64NV fnptr, GLuint program, GLint location, GLuint64EXT value) { -// (*fnptr)(program, location, value); -// } -// static void glowProgramUniformui64vNV(GPPROGRAMUNIFORMUI64VNV fnptr, GLuint program, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(program, location, count, value); -// } -// static void glowProgramVertexLimitNV(GPPROGRAMVERTEXLIMITNV fnptr, GLenum target, GLint limit) { -// (*fnptr)(target, limit); -// } -// static void glowProvokingVertex(GPPROVOKINGVERTEX fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowProvokingVertexEXT(GPPROVOKINGVERTEXEXT fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowPushAttrib(GPPUSHATTRIB fnptr, GLbitfield mask) { -// (*fnptr)(mask); -// } -// static void glowPushClientAttrib(GPPUSHCLIENTATTRIB fnptr, GLbitfield mask) { -// (*fnptr)(mask); -// } -// static void glowPushClientAttribDefaultEXT(GPPUSHCLIENTATTRIBDEFAULTEXT fnptr, GLbitfield mask) { -// (*fnptr)(mask); -// } -// static void glowPushDebugGroup(GPPUSHDEBUGGROUP fnptr, GLenum source, GLuint id, GLsizei length, const GLchar * message) { -// (*fnptr)(source, id, length, message); -// } -// static void glowPushDebugGroupKHR(GPPUSHDEBUGGROUPKHR fnptr, GLenum source, GLuint id, GLsizei length, const GLchar * message) { -// (*fnptr)(source, id, length, message); -// } -// static void glowPushGroupMarkerEXT(GPPUSHGROUPMARKEREXT fnptr, GLsizei length, const GLchar * marker) { -// (*fnptr)(length, marker); -// } -// static void glowPushMatrix(GPPUSHMATRIX fnptr) { -// (*fnptr)(); -// } -// static void glowPushName(GPPUSHNAME fnptr, GLuint name) { -// (*fnptr)(name); -// } -// static void glowQueryCounter(GPQUERYCOUNTER fnptr, GLuint id, GLenum target) { -// (*fnptr)(id, target); -// } -// static GLbitfield glowQueryMatrixxOES(GPQUERYMATRIXXOES fnptr, GLfixed * mantissa, GLint * exponent) { -// return (*fnptr)(mantissa, exponent); -// } -// static void glowQueryObjectParameteruiAMD(GPQUERYOBJECTPARAMETERUIAMD fnptr, GLenum target, GLuint id, GLenum pname, GLuint param) { -// (*fnptr)(target, id, pname, param); -// } -// static void glowRasterPos2d(GPRASTERPOS2D fnptr, GLdouble x, GLdouble y) { -// (*fnptr)(x, y); -// } -// static void glowRasterPos2dv(GPRASTERPOS2DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos2f(GPRASTERPOS2F fnptr, GLfloat x, GLfloat y) { -// (*fnptr)(x, y); -// } -// static void glowRasterPos2fv(GPRASTERPOS2FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos2i(GPRASTERPOS2I fnptr, GLint x, GLint y) { -// (*fnptr)(x, y); -// } -// static void glowRasterPos2iv(GPRASTERPOS2IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos2s(GPRASTERPOS2S fnptr, GLshort x, GLshort y) { -// (*fnptr)(x, y); -// } -// static void glowRasterPos2sv(GPRASTERPOS2SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos2xOES(GPRASTERPOS2XOES fnptr, GLfixed x, GLfixed y) { -// (*fnptr)(x, y); -// } -// static void glowRasterPos2xvOES(GPRASTERPOS2XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowRasterPos3d(GPRASTERPOS3D fnptr, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(x, y, z); -// } -// static void glowRasterPos3dv(GPRASTERPOS3DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos3f(GPRASTERPOS3F fnptr, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(x, y, z); -// } -// static void glowRasterPos3fv(GPRASTERPOS3FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos3i(GPRASTERPOS3I fnptr, GLint x, GLint y, GLint z) { -// (*fnptr)(x, y, z); -// } -// static void glowRasterPos3iv(GPRASTERPOS3IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos3s(GPRASTERPOS3S fnptr, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(x, y, z); -// } -// static void glowRasterPos3sv(GPRASTERPOS3SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos3xOES(GPRASTERPOS3XOES fnptr, GLfixed x, GLfixed y, GLfixed z) { -// (*fnptr)(x, y, z); -// } -// static void glowRasterPos3xvOES(GPRASTERPOS3XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowRasterPos4d(GPRASTERPOS4D fnptr, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowRasterPos4dv(GPRASTERPOS4DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos4f(GPRASTERPOS4F fnptr, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowRasterPos4fv(GPRASTERPOS4FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos4i(GPRASTERPOS4I fnptr, GLint x, GLint y, GLint z, GLint w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowRasterPos4iv(GPRASTERPOS4IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos4s(GPRASTERPOS4S fnptr, GLshort x, GLshort y, GLshort z, GLshort w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowRasterPos4sv(GPRASTERPOS4SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowRasterPos4xOES(GPRASTERPOS4XOES fnptr, GLfixed x, GLfixed y, GLfixed z, GLfixed w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowRasterPos4xvOES(GPRASTERPOS4XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowReadBuffer(GPREADBUFFER fnptr, GLenum src) { -// (*fnptr)(src); -// } -// static void glowReadInstrumentsSGIX(GPREADINSTRUMENTSSGIX fnptr, GLint marker) { -// (*fnptr)(marker); -// } -// static void glowReadPixels(GPREADPIXELS fnptr, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void * pixels) { -// (*fnptr)(x, y, width, height, format, type, pixels); -// } -// static void glowReadnPixels(GPREADNPIXELS fnptr, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data) { -// (*fnptr)(x, y, width, height, format, type, bufSize, data); -// } -// static void glowReadnPixelsARB(GPREADNPIXELSARB fnptr, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data) { -// (*fnptr)(x, y, width, height, format, type, bufSize, data); -// } -// static void glowReadnPixelsKHR(GPREADNPIXELSKHR fnptr, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data) { -// (*fnptr)(x, y, width, height, format, type, bufSize, data); -// } -// static void glowRectd(GPRECTD fnptr, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) { -// (*fnptr)(x1, y1, x2, y2); -// } -// static void glowRectdv(GPRECTDV fnptr, const GLdouble * v1, const GLdouble * v2) { -// (*fnptr)(v1, v2); -// } -// static void glowRectf(GPRECTF fnptr, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) { -// (*fnptr)(x1, y1, x2, y2); -// } -// static void glowRectfv(GPRECTFV fnptr, const GLfloat * v1, const GLfloat * v2) { -// (*fnptr)(v1, v2); -// } -// static void glowRecti(GPRECTI fnptr, GLint x1, GLint y1, GLint x2, GLint y2) { -// (*fnptr)(x1, y1, x2, y2); -// } -// static void glowRectiv(GPRECTIV fnptr, const GLint * v1, const GLint * v2) { -// (*fnptr)(v1, v2); -// } -// static void glowRects(GPRECTS fnptr, GLshort x1, GLshort y1, GLshort x2, GLshort y2) { -// (*fnptr)(x1, y1, x2, y2); -// } -// static void glowRectsv(GPRECTSV fnptr, const GLshort * v1, const GLshort * v2) { -// (*fnptr)(v1, v2); -// } -// static void glowRectxOES(GPRECTXOES fnptr, GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2) { -// (*fnptr)(x1, y1, x2, y2); -// } -// static void glowRectxvOES(GPRECTXVOES fnptr, const GLfixed * v1, const GLfixed * v2) { -// (*fnptr)(v1, v2); -// } -// static void glowReferencePlaneSGIX(GPREFERENCEPLANESGIX fnptr, const GLdouble * equation) { -// (*fnptr)(equation); -// } -// static void glowReleaseShaderCompiler(GPRELEASESHADERCOMPILER fnptr) { -// (*fnptr)(); -// } -// static GLint glowRenderMode(GPRENDERMODE fnptr, GLenum mode) { -// return (*fnptr)(mode); -// } -// static void glowRenderbufferStorage(GPRENDERBUFFERSTORAGE fnptr, GLenum target, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(target, internalformat, width, height); -// } -// static void glowRenderbufferStorageEXT(GPRENDERBUFFERSTORAGEEXT fnptr, GLenum target, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(target, internalformat, width, height); -// } -// static void glowRenderbufferStorageMultisample(GPRENDERBUFFERSTORAGEMULTISAMPLE fnptr, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(target, samples, internalformat, width, height); -// } -// static void glowRenderbufferStorageMultisampleCoverageNV(GPRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENV fnptr, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(target, coverageSamples, colorSamples, internalformat, width, height); -// } -// static void glowRenderbufferStorageMultisampleEXT(GPRENDERBUFFERSTORAGEMULTISAMPLEEXT fnptr, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(target, samples, internalformat, width, height); -// } -// static void glowReplacementCodePointerSUN(GPREPLACEMENTCODEPOINTERSUN fnptr, GLenum type, GLsizei stride, const void ** pointer) { -// (*fnptr)(type, stride, pointer); -// } -// static void glowReplacementCodeubSUN(GPREPLACEMENTCODEUBSUN fnptr, GLubyte code) { -// (*fnptr)(code); -// } -// static void glowReplacementCodeubvSUN(GPREPLACEMENTCODEUBVSUN fnptr, const GLubyte * code) { -// (*fnptr)(code); -// } -// static void glowReplacementCodeuiColor3fVertex3fSUN(GPREPLACEMENTCODEUICOLOR3FVERTEX3FSUN fnptr, GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(rc, r, g, b, x, y, z); -// } -// static void glowReplacementCodeuiColor3fVertex3fvSUN(GPREPLACEMENTCODEUICOLOR3FVERTEX3FVSUN fnptr, const GLuint * rc, const GLfloat * c, const GLfloat * v) { -// (*fnptr)(rc, c, v); -// } -// static void glowReplacementCodeuiColor4fNormal3fVertex3fSUN(GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUN fnptr, GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(rc, r, g, b, a, nx, ny, nz, x, y, z); -// } -// static void glowReplacementCodeuiColor4fNormal3fVertex3fvSUN(GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUN fnptr, const GLuint * rc, const GLfloat * c, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(rc, c, n, v); -// } -// static void glowReplacementCodeuiColor4ubVertex3fSUN(GPREPLACEMENTCODEUICOLOR4UBVERTEX3FSUN fnptr, GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(rc, r, g, b, a, x, y, z); -// } -// static void glowReplacementCodeuiColor4ubVertex3fvSUN(GPREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUN fnptr, const GLuint * rc, const GLubyte * c, const GLfloat * v) { -// (*fnptr)(rc, c, v); -// } -// static void glowReplacementCodeuiNormal3fVertex3fSUN(GPREPLACEMENTCODEUINORMAL3FVERTEX3FSUN fnptr, GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(rc, nx, ny, nz, x, y, z); -// } -// static void glowReplacementCodeuiNormal3fVertex3fvSUN(GPREPLACEMENTCODEUINORMAL3FVERTEX3FVSUN fnptr, const GLuint * rc, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(rc, n, v); -// } -// static void glowReplacementCodeuiSUN(GPREPLACEMENTCODEUISUN fnptr, GLuint code) { -// (*fnptr)(code); -// } -// static void glowReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN fnptr, GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(rc, s, t, r, g, b, a, nx, ny, nz, x, y, z); -// } -// static void glowReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN fnptr, const GLuint * rc, const GLfloat * tc, const GLfloat * c, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(rc, tc, c, n, v); -// } -// static void glowReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUN fnptr, GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(rc, s, t, nx, ny, nz, x, y, z); -// } -// static void glowReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUN fnptr, const GLuint * rc, const GLfloat * tc, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(rc, tc, n, v); -// } -// static void glowReplacementCodeuiTexCoord2fVertex3fSUN(GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUN fnptr, GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(rc, s, t, x, y, z); -// } -// static void glowReplacementCodeuiTexCoord2fVertex3fvSUN(GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUN fnptr, const GLuint * rc, const GLfloat * tc, const GLfloat * v) { -// (*fnptr)(rc, tc, v); -// } -// static void glowReplacementCodeuiVertex3fSUN(GPREPLACEMENTCODEUIVERTEX3FSUN fnptr, GLuint rc, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(rc, x, y, z); -// } -// static void glowReplacementCodeuiVertex3fvSUN(GPREPLACEMENTCODEUIVERTEX3FVSUN fnptr, const GLuint * rc, const GLfloat * v) { -// (*fnptr)(rc, v); -// } -// static void glowReplacementCodeuivSUN(GPREPLACEMENTCODEUIVSUN fnptr, const GLuint * code) { -// (*fnptr)(code); -// } -// static void glowReplacementCodeusSUN(GPREPLACEMENTCODEUSSUN fnptr, GLushort code) { -// (*fnptr)(code); -// } -// static void glowReplacementCodeusvSUN(GPREPLACEMENTCODEUSVSUN fnptr, const GLushort * code) { -// (*fnptr)(code); -// } -// static void glowRequestResidentProgramsNV(GPREQUESTRESIDENTPROGRAMSNV fnptr, GLsizei n, const GLuint * programs) { -// (*fnptr)(n, programs); -// } -// static void glowResetHistogramEXT(GPRESETHISTOGRAMEXT fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowResetMinmaxEXT(GPRESETMINMAXEXT fnptr, GLenum target) { -// (*fnptr)(target); -// } -// static void glowResizeBuffersMESA(GPRESIZEBUFFERSMESA fnptr) { -// (*fnptr)(); -// } -// static void glowResumeTransformFeedback(GPRESUMETRANSFORMFEEDBACK fnptr) { -// (*fnptr)(); -// } -// static void glowResumeTransformFeedbackNV(GPRESUMETRANSFORMFEEDBACKNV fnptr) { -// (*fnptr)(); -// } -// static void glowRotated(GPROTATED fnptr, GLdouble angle, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(angle, x, y, z); -// } -// static void glowRotatef(GPROTATEF fnptr, GLfloat angle, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(angle, x, y, z); -// } -// static void glowRotatexOES(GPROTATEXOES fnptr, GLfixed angle, GLfixed x, GLfixed y, GLfixed z) { -// (*fnptr)(angle, x, y, z); -// } -// static void glowSampleCoverage(GPSAMPLECOVERAGE fnptr, GLfloat value, GLboolean invert) { -// (*fnptr)(value, invert); -// } -// static void glowSampleCoverageARB(GPSAMPLECOVERAGEARB fnptr, GLfloat value, GLboolean invert) { -// (*fnptr)(value, invert); -// } -// static void glowSampleCoverageOES(GPSAMPLECOVERAGEOES fnptr, GLfixed value, GLboolean invert) { -// (*fnptr)(value, invert); -// } -// static void glowSampleCoveragexOES(GPSAMPLECOVERAGEXOES fnptr, GLclampx value, GLboolean invert) { -// (*fnptr)(value, invert); -// } -// static void glowSampleMapATI(GPSAMPLEMAPATI fnptr, GLuint dst, GLuint interp, GLenum swizzle) { -// (*fnptr)(dst, interp, swizzle); -// } -// static void glowSampleMaskEXT(GPSAMPLEMASKEXT fnptr, GLclampf value, GLboolean invert) { -// (*fnptr)(value, invert); -// } -// static void glowSampleMaskIndexedNV(GPSAMPLEMASKINDEXEDNV fnptr, GLuint index, GLbitfield mask) { -// (*fnptr)(index, mask); -// } -// static void glowSampleMaskSGIS(GPSAMPLEMASKSGIS fnptr, GLclampf value, GLboolean invert) { -// (*fnptr)(value, invert); -// } -// static void glowSampleMaski(GPSAMPLEMASKI fnptr, GLuint maskNumber, GLbitfield mask) { -// (*fnptr)(maskNumber, mask); -// } -// static void glowSamplePatternEXT(GPSAMPLEPATTERNEXT fnptr, GLenum pattern) { -// (*fnptr)(pattern); -// } -// static void glowSamplePatternSGIS(GPSAMPLEPATTERNSGIS fnptr, GLenum pattern) { -// (*fnptr)(pattern); -// } -// static void glowSamplerParameterIiv(GPSAMPLERPARAMETERIIV fnptr, GLuint sampler, GLenum pname, const GLint * param) { -// (*fnptr)(sampler, pname, param); -// } -// static void glowSamplerParameterIuiv(GPSAMPLERPARAMETERIUIV fnptr, GLuint sampler, GLenum pname, const GLuint * param) { -// (*fnptr)(sampler, pname, param); -// } -// static void glowSamplerParameterf(GPSAMPLERPARAMETERF fnptr, GLuint sampler, GLenum pname, GLfloat param) { -// (*fnptr)(sampler, pname, param); -// } -// static void glowSamplerParameterfv(GPSAMPLERPARAMETERFV fnptr, GLuint sampler, GLenum pname, const GLfloat * param) { -// (*fnptr)(sampler, pname, param); -// } -// static void glowSamplerParameteri(GPSAMPLERPARAMETERI fnptr, GLuint sampler, GLenum pname, GLint param) { -// (*fnptr)(sampler, pname, param); -// } -// static void glowSamplerParameteriv(GPSAMPLERPARAMETERIV fnptr, GLuint sampler, GLenum pname, const GLint * param) { -// (*fnptr)(sampler, pname, param); -// } -// static void glowScaled(GPSCALED fnptr, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(x, y, z); -// } -// static void glowScalef(GPSCALEF fnptr, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(x, y, z); -// } -// static void glowScalexOES(GPSCALEXOES fnptr, GLfixed x, GLfixed y, GLfixed z) { -// (*fnptr)(x, y, z); -// } -// static void glowScissor(GPSCISSOR fnptr, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(x, y, width, height); -// } -// static void glowScissorArrayv(GPSCISSORARRAYV fnptr, GLuint first, GLsizei count, const GLint * v) { -// (*fnptr)(first, count, v); -// } -// static void glowScissorIndexed(GPSCISSORINDEXED fnptr, GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height) { -// (*fnptr)(index, left, bottom, width, height); -// } -// static void glowScissorIndexedv(GPSCISSORINDEXEDV fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowSecondaryColor3b(GPSECONDARYCOLOR3B fnptr, GLbyte red, GLbyte green, GLbyte blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3bEXT(GPSECONDARYCOLOR3BEXT fnptr, GLbyte red, GLbyte green, GLbyte blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3bv(GPSECONDARYCOLOR3BV fnptr, const GLbyte * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3bvEXT(GPSECONDARYCOLOR3BVEXT fnptr, const GLbyte * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3d(GPSECONDARYCOLOR3D fnptr, GLdouble red, GLdouble green, GLdouble blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3dEXT(GPSECONDARYCOLOR3DEXT fnptr, GLdouble red, GLdouble green, GLdouble blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3dv(GPSECONDARYCOLOR3DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3dvEXT(GPSECONDARYCOLOR3DVEXT fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3f(GPSECONDARYCOLOR3F fnptr, GLfloat red, GLfloat green, GLfloat blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3fEXT(GPSECONDARYCOLOR3FEXT fnptr, GLfloat red, GLfloat green, GLfloat blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3fv(GPSECONDARYCOLOR3FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3fvEXT(GPSECONDARYCOLOR3FVEXT fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3hNV(GPSECONDARYCOLOR3HNV fnptr, GLhalfNV red, GLhalfNV green, GLhalfNV blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3hvNV(GPSECONDARYCOLOR3HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3i(GPSECONDARYCOLOR3I fnptr, GLint red, GLint green, GLint blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3iEXT(GPSECONDARYCOLOR3IEXT fnptr, GLint red, GLint green, GLint blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3iv(GPSECONDARYCOLOR3IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3ivEXT(GPSECONDARYCOLOR3IVEXT fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3s(GPSECONDARYCOLOR3S fnptr, GLshort red, GLshort green, GLshort blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3sEXT(GPSECONDARYCOLOR3SEXT fnptr, GLshort red, GLshort green, GLshort blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3sv(GPSECONDARYCOLOR3SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3svEXT(GPSECONDARYCOLOR3SVEXT fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3ub(GPSECONDARYCOLOR3UB fnptr, GLubyte red, GLubyte green, GLubyte blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3ubEXT(GPSECONDARYCOLOR3UBEXT fnptr, GLubyte red, GLubyte green, GLubyte blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3ubv(GPSECONDARYCOLOR3UBV fnptr, const GLubyte * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3ubvEXT(GPSECONDARYCOLOR3UBVEXT fnptr, const GLubyte * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3ui(GPSECONDARYCOLOR3UI fnptr, GLuint red, GLuint green, GLuint blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3uiEXT(GPSECONDARYCOLOR3UIEXT fnptr, GLuint red, GLuint green, GLuint blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3uiv(GPSECONDARYCOLOR3UIV fnptr, const GLuint * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3uivEXT(GPSECONDARYCOLOR3UIVEXT fnptr, const GLuint * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3us(GPSECONDARYCOLOR3US fnptr, GLushort red, GLushort green, GLushort blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3usEXT(GPSECONDARYCOLOR3USEXT fnptr, GLushort red, GLushort green, GLushort blue) { -// (*fnptr)(red, green, blue); -// } -// static void glowSecondaryColor3usv(GPSECONDARYCOLOR3USV fnptr, const GLushort * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColor3usvEXT(GPSECONDARYCOLOR3USVEXT fnptr, const GLushort * v) { -// (*fnptr)(v); -// } -// static void glowSecondaryColorFormatNV(GPSECONDARYCOLORFORMATNV fnptr, GLint size, GLenum type, GLsizei stride) { -// (*fnptr)(size, type, stride); -// } -// static void glowSecondaryColorPointer(GPSECONDARYCOLORPOINTER fnptr, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(size, type, stride, pointer); -// } -// static void glowSecondaryColorPointerEXT(GPSECONDARYCOLORPOINTEREXT fnptr, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(size, type, stride, pointer); -// } -// static void glowSecondaryColorPointerListIBM(GPSECONDARYCOLORPOINTERLISTIBM fnptr, GLint size, GLenum type, GLint stride, const void ** pointer, GLint ptrstride) { -// (*fnptr)(size, type, stride, pointer, ptrstride); -// } -// static void glowSelectBuffer(GPSELECTBUFFER fnptr, GLsizei size, GLuint * buffer) { -// (*fnptr)(size, buffer); -// } -// static void glowSelectPerfMonitorCountersAMD(GPSELECTPERFMONITORCOUNTERSAMD fnptr, GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint * counterList) { -// (*fnptr)(monitor, enable, group, numCounters, counterList); -// } -// static void glowSeparableFilter2DEXT(GPSEPARABLEFILTER2DEXT fnptr, GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * row, const void * column) { -// (*fnptr)(target, internalformat, width, height, format, type, row, column); -// } -// static void glowSetFenceAPPLE(GPSETFENCEAPPLE fnptr, GLuint fence) { -// (*fnptr)(fence); -// } -// static void glowSetFenceNV(GPSETFENCENV fnptr, GLuint fence, GLenum condition) { -// (*fnptr)(fence, condition); -// } -// static void glowSetFragmentShaderConstantATI(GPSETFRAGMENTSHADERCONSTANTATI fnptr, GLuint dst, const GLfloat * value) { -// (*fnptr)(dst, value); -// } -// static void glowSetInvariantEXT(GPSETINVARIANTEXT fnptr, GLuint id, GLenum type, const void * addr) { -// (*fnptr)(id, type, addr); -// } -// static void glowSetLocalConstantEXT(GPSETLOCALCONSTANTEXT fnptr, GLuint id, GLenum type, const void * addr) { -// (*fnptr)(id, type, addr); -// } -// static void glowSetMultisamplefvAMD(GPSETMULTISAMPLEFVAMD fnptr, GLenum pname, GLuint index, const GLfloat * val) { -// (*fnptr)(pname, index, val); -// } -// static void glowShadeModel(GPSHADEMODEL fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowShaderBinary(GPSHADERBINARY fnptr, GLsizei count, const GLuint * shaders, GLenum binaryformat, const void * binary, GLsizei length) { -// (*fnptr)(count, shaders, binaryformat, binary, length); -// } -// static void glowShaderOp1EXT(GPSHADEROP1EXT fnptr, GLenum op, GLuint res, GLuint arg1) { -// (*fnptr)(op, res, arg1); -// } -// static void glowShaderOp2EXT(GPSHADEROP2EXT fnptr, GLenum op, GLuint res, GLuint arg1, GLuint arg2) { -// (*fnptr)(op, res, arg1, arg2); -// } -// static void glowShaderOp3EXT(GPSHADEROP3EXT fnptr, GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3) { -// (*fnptr)(op, res, arg1, arg2, arg3); -// } -// static void glowShaderSource(GPSHADERSOURCE fnptr, GLuint shader, GLsizei count, const GLchar *const* string, const GLint * length) { -// (*fnptr)(shader, count, string, length); -// } -// static void glowShaderSourceARB(GPSHADERSOURCEARB fnptr, GLhandleARB shaderObj, GLsizei count, const GLcharARB ** string, const GLint * length) { -// (*fnptr)(shaderObj, count, string, length); -// } -// static void glowShaderStorageBlockBinding(GPSHADERSTORAGEBLOCKBINDING fnptr, GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding) { -// (*fnptr)(program, storageBlockIndex, storageBlockBinding); -// } -// static void glowSharpenTexFuncSGIS(GPSHARPENTEXFUNCSGIS fnptr, GLenum target, GLsizei n, const GLfloat * points) { -// (*fnptr)(target, n, points); -// } -// static void glowSpriteParameterfSGIX(GPSPRITEPARAMETERFSGIX fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowSpriteParameterfvSGIX(GPSPRITEPARAMETERFVSGIX fnptr, GLenum pname, const GLfloat * params) { -// (*fnptr)(pname, params); -// } -// static void glowSpriteParameteriSGIX(GPSPRITEPARAMETERISGIX fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowSpriteParameterivSGIX(GPSPRITEPARAMETERIVSGIX fnptr, GLenum pname, const GLint * params) { -// (*fnptr)(pname, params); -// } -// static void glowStartInstrumentsSGIX(GPSTARTINSTRUMENTSSGIX fnptr) { -// (*fnptr)(); -// } -// static void glowStencilClearTagEXT(GPSTENCILCLEARTAGEXT fnptr, GLsizei stencilTagBits, GLuint stencilClearTag) { -// (*fnptr)(stencilTagBits, stencilClearTag); -// } -// static void glowStencilFillPathInstancedNV(GPSTENCILFILLPATHINSTANCEDNV fnptr, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat * transformValues) { -// (*fnptr)(numPaths, pathNameType, paths, pathBase, fillMode, mask, transformType, transformValues); -// } -// static void glowStencilFillPathNV(GPSTENCILFILLPATHNV fnptr, GLuint path, GLenum fillMode, GLuint mask) { -// (*fnptr)(path, fillMode, mask); -// } -// static void glowStencilFunc(GPSTENCILFUNC fnptr, GLenum func, GLint ref, GLuint mask) { -// (*fnptr)(func, ref, mask); -// } -// static void glowStencilFuncSeparate(GPSTENCILFUNCSEPARATE fnptr, GLenum face, GLenum func, GLint ref, GLuint mask) { -// (*fnptr)(face, func, ref, mask); -// } -// static void glowStencilFuncSeparateATI(GPSTENCILFUNCSEPARATEATI fnptr, GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask) { -// (*fnptr)(frontfunc, backfunc, ref, mask); -// } -// static void glowStencilMask(GPSTENCILMASK fnptr, GLuint mask) { -// (*fnptr)(mask); -// } -// static void glowStencilMaskSeparate(GPSTENCILMASKSEPARATE fnptr, GLenum face, GLuint mask) { -// (*fnptr)(face, mask); -// } -// static void glowStencilOp(GPSTENCILOP fnptr, GLenum fail, GLenum zfail, GLenum zpass) { -// (*fnptr)(fail, zfail, zpass); -// } -// static void glowStencilOpSeparate(GPSTENCILOPSEPARATE fnptr, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) { -// (*fnptr)(face, sfail, dpfail, dppass); -// } -// static void glowStencilOpSeparateATI(GPSTENCILOPSEPARATEATI fnptr, GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) { -// (*fnptr)(face, sfail, dpfail, dppass); -// } -// static void glowStencilOpValueAMD(GPSTENCILOPVALUEAMD fnptr, GLenum face, GLuint value) { -// (*fnptr)(face, value); -// } -// static void glowStencilStrokePathInstancedNV(GPSTENCILSTROKEPATHINSTANCEDNV fnptr, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat * transformValues) { -// (*fnptr)(numPaths, pathNameType, paths, pathBase, reference, mask, transformType, transformValues); -// } -// static void glowStencilStrokePathNV(GPSTENCILSTROKEPATHNV fnptr, GLuint path, GLint reference, GLuint mask) { -// (*fnptr)(path, reference, mask); -// } -// static void glowStencilThenCoverFillPathInstancedNV(GPSTENCILTHENCOVERFILLPATHINSTANCEDNV fnptr, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat * transformValues) { -// (*fnptr)(numPaths, pathNameType, paths, pathBase, fillMode, mask, coverMode, transformType, transformValues); -// } -// static void glowStencilThenCoverFillPathNV(GPSTENCILTHENCOVERFILLPATHNV fnptr, GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode) { -// (*fnptr)(path, fillMode, mask, coverMode); -// } -// static void glowStencilThenCoverStrokePathInstancedNV(GPSTENCILTHENCOVERSTROKEPATHINSTANCEDNV fnptr, GLsizei numPaths, GLenum pathNameType, const void * paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat * transformValues) { -// (*fnptr)(numPaths, pathNameType, paths, pathBase, reference, mask, coverMode, transformType, transformValues); -// } -// static void glowStencilThenCoverStrokePathNV(GPSTENCILTHENCOVERSTROKEPATHNV fnptr, GLuint path, GLint reference, GLuint mask, GLenum coverMode) { -// (*fnptr)(path, reference, mask, coverMode); -// } -// static void glowStopInstrumentsSGIX(GPSTOPINSTRUMENTSSGIX fnptr, GLint marker) { -// (*fnptr)(marker); -// } -// static void glowStringMarkerGREMEDY(GPSTRINGMARKERGREMEDY fnptr, GLsizei len, const void * string) { -// (*fnptr)(len, string); -// } -// static void glowSwizzleEXT(GPSWIZZLEEXT fnptr, GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW) { -// (*fnptr)(res, in, outX, outY, outZ, outW); -// } -// static void glowSyncTextureINTEL(GPSYNCTEXTUREINTEL fnptr, GLuint texture) { -// (*fnptr)(texture); -// } -// static void glowTagSampleBufferSGIX(GPTAGSAMPLEBUFFERSGIX fnptr) { -// (*fnptr)(); -// } -// static void glowTangent3bEXT(GPTANGENT3BEXT fnptr, GLbyte tx, GLbyte ty, GLbyte tz) { -// (*fnptr)(tx, ty, tz); -// } -// static void glowTangent3bvEXT(GPTANGENT3BVEXT fnptr, const GLbyte * v) { -// (*fnptr)(v); -// } -// static void glowTangent3dEXT(GPTANGENT3DEXT fnptr, GLdouble tx, GLdouble ty, GLdouble tz) { -// (*fnptr)(tx, ty, tz); -// } -// static void glowTangent3dvEXT(GPTANGENT3DVEXT fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowTangent3fEXT(GPTANGENT3FEXT fnptr, GLfloat tx, GLfloat ty, GLfloat tz) { -// (*fnptr)(tx, ty, tz); -// } -// static void glowTangent3fvEXT(GPTANGENT3FVEXT fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowTangent3iEXT(GPTANGENT3IEXT fnptr, GLint tx, GLint ty, GLint tz) { -// (*fnptr)(tx, ty, tz); -// } -// static void glowTangent3ivEXT(GPTANGENT3IVEXT fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowTangent3sEXT(GPTANGENT3SEXT fnptr, GLshort tx, GLshort ty, GLshort tz) { -// (*fnptr)(tx, ty, tz); -// } -// static void glowTangent3svEXT(GPTANGENT3SVEXT fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowTangentPointerEXT(GPTANGENTPOINTEREXT fnptr, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(type, stride, pointer); -// } -// static void glowTbufferMask3DFX(GPTBUFFERMASK3DFX fnptr, GLuint mask) { -// (*fnptr)(mask); -// } -// static void glowTessellationFactorAMD(GPTESSELLATIONFACTORAMD fnptr, GLfloat factor) { -// (*fnptr)(factor); -// } -// static void glowTessellationModeAMD(GPTESSELLATIONMODEAMD fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static GLboolean glowTestFenceAPPLE(GPTESTFENCEAPPLE fnptr, GLuint fence) { -// return (*fnptr)(fence); -// } -// static GLboolean glowTestFenceNV(GPTESTFENCENV fnptr, GLuint fence) { -// return (*fnptr)(fence); -// } -// static GLboolean glowTestObjectAPPLE(GPTESTOBJECTAPPLE fnptr, GLenum object, GLuint name) { -// return (*fnptr)(object, name); -// } -// static void glowTexBufferARB(GPTEXBUFFERARB fnptr, GLenum target, GLenum internalformat, GLuint buffer) { -// (*fnptr)(target, internalformat, buffer); -// } -// static void glowTexBufferEXT(GPTEXBUFFEREXT fnptr, GLenum target, GLenum internalformat, GLuint buffer) { -// (*fnptr)(target, internalformat, buffer); -// } -// static void glowTexBufferRange(GPTEXBUFFERRANGE fnptr, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size) { -// (*fnptr)(target, internalformat, buffer, offset, size); -// } -// static void glowTexBumpParameterfvATI(GPTEXBUMPPARAMETERFVATI fnptr, GLenum pname, const GLfloat * param) { -// (*fnptr)(pname, param); -// } -// static void glowTexBumpParameterivATI(GPTEXBUMPPARAMETERIVATI fnptr, GLenum pname, const GLint * param) { -// (*fnptr)(pname, param); -// } -// static void glowTexCoord1bOES(GPTEXCOORD1BOES fnptr, GLbyte s) { -// (*fnptr)(s); -// } -// static void glowTexCoord1bvOES(GPTEXCOORD1BVOES fnptr, const GLbyte * coords) { -// (*fnptr)(coords); -// } -// static void glowTexCoord1d(GPTEXCOORD1D fnptr, GLdouble s) { -// (*fnptr)(s); -// } -// static void glowTexCoord1dv(GPTEXCOORD1DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord1f(GPTEXCOORD1F fnptr, GLfloat s) { -// (*fnptr)(s); -// } -// static void glowTexCoord1fv(GPTEXCOORD1FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord1hNV(GPTEXCOORD1HNV fnptr, GLhalfNV s) { -// (*fnptr)(s); -// } -// static void glowTexCoord1hvNV(GPTEXCOORD1HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord1i(GPTEXCOORD1I fnptr, GLint s) { -// (*fnptr)(s); -// } -// static void glowTexCoord1iv(GPTEXCOORD1IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord1s(GPTEXCOORD1S fnptr, GLshort s) { -// (*fnptr)(s); -// } -// static void glowTexCoord1sv(GPTEXCOORD1SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord1xOES(GPTEXCOORD1XOES fnptr, GLfixed s) { -// (*fnptr)(s); -// } -// static void glowTexCoord1xvOES(GPTEXCOORD1XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowTexCoord2bOES(GPTEXCOORD2BOES fnptr, GLbyte s, GLbyte t) { -// (*fnptr)(s, t); -// } -// static void glowTexCoord2bvOES(GPTEXCOORD2BVOES fnptr, const GLbyte * coords) { -// (*fnptr)(coords); -// } -// static void glowTexCoord2d(GPTEXCOORD2D fnptr, GLdouble s, GLdouble t) { -// (*fnptr)(s, t); -// } -// static void glowTexCoord2dv(GPTEXCOORD2DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord2f(GPTEXCOORD2F fnptr, GLfloat s, GLfloat t) { -// (*fnptr)(s, t); -// } -// static void glowTexCoord2fColor3fVertex3fSUN(GPTEXCOORD2FCOLOR3FVERTEX3FSUN fnptr, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(s, t, r, g, b, x, y, z); -// } -// static void glowTexCoord2fColor3fVertex3fvSUN(GPTEXCOORD2FCOLOR3FVERTEX3FVSUN fnptr, const GLfloat * tc, const GLfloat * c, const GLfloat * v) { -// (*fnptr)(tc, c, v); -// } -// static void glowTexCoord2fColor4fNormal3fVertex3fSUN(GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN fnptr, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(s, t, r, g, b, a, nx, ny, nz, x, y, z); -// } -// static void glowTexCoord2fColor4fNormal3fVertex3fvSUN(GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN fnptr, const GLfloat * tc, const GLfloat * c, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(tc, c, n, v); -// } -// static void glowTexCoord2fColor4ubVertex3fSUN(GPTEXCOORD2FCOLOR4UBVERTEX3FSUN fnptr, GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(s, t, r, g, b, a, x, y, z); -// } -// static void glowTexCoord2fColor4ubVertex3fvSUN(GPTEXCOORD2FCOLOR4UBVERTEX3FVSUN fnptr, const GLfloat * tc, const GLubyte * c, const GLfloat * v) { -// (*fnptr)(tc, c, v); -// } -// static void glowTexCoord2fNormal3fVertex3fSUN(GPTEXCOORD2FNORMAL3FVERTEX3FSUN fnptr, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(s, t, nx, ny, nz, x, y, z); -// } -// static void glowTexCoord2fNormal3fVertex3fvSUN(GPTEXCOORD2FNORMAL3FVERTEX3FVSUN fnptr, const GLfloat * tc, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(tc, n, v); -// } -// static void glowTexCoord2fVertex3fSUN(GPTEXCOORD2FVERTEX3FSUN fnptr, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(s, t, x, y, z); -// } -// static void glowTexCoord2fVertex3fvSUN(GPTEXCOORD2FVERTEX3FVSUN fnptr, const GLfloat * tc, const GLfloat * v) { -// (*fnptr)(tc, v); -// } -// static void glowTexCoord2fv(GPTEXCOORD2FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord2hNV(GPTEXCOORD2HNV fnptr, GLhalfNV s, GLhalfNV t) { -// (*fnptr)(s, t); -// } -// static void glowTexCoord2hvNV(GPTEXCOORD2HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord2i(GPTEXCOORD2I fnptr, GLint s, GLint t) { -// (*fnptr)(s, t); -// } -// static void glowTexCoord2iv(GPTEXCOORD2IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord2s(GPTEXCOORD2S fnptr, GLshort s, GLshort t) { -// (*fnptr)(s, t); -// } -// static void glowTexCoord2sv(GPTEXCOORD2SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord2xOES(GPTEXCOORD2XOES fnptr, GLfixed s, GLfixed t) { -// (*fnptr)(s, t); -// } -// static void glowTexCoord2xvOES(GPTEXCOORD2XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowTexCoord3bOES(GPTEXCOORD3BOES fnptr, GLbyte s, GLbyte t, GLbyte r) { -// (*fnptr)(s, t, r); -// } -// static void glowTexCoord3bvOES(GPTEXCOORD3BVOES fnptr, const GLbyte * coords) { -// (*fnptr)(coords); -// } -// static void glowTexCoord3d(GPTEXCOORD3D fnptr, GLdouble s, GLdouble t, GLdouble r) { -// (*fnptr)(s, t, r); -// } -// static void glowTexCoord3dv(GPTEXCOORD3DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord3f(GPTEXCOORD3F fnptr, GLfloat s, GLfloat t, GLfloat r) { -// (*fnptr)(s, t, r); -// } -// static void glowTexCoord3fv(GPTEXCOORD3FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord3hNV(GPTEXCOORD3HNV fnptr, GLhalfNV s, GLhalfNV t, GLhalfNV r) { -// (*fnptr)(s, t, r); -// } -// static void glowTexCoord3hvNV(GPTEXCOORD3HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord3i(GPTEXCOORD3I fnptr, GLint s, GLint t, GLint r) { -// (*fnptr)(s, t, r); -// } -// static void glowTexCoord3iv(GPTEXCOORD3IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord3s(GPTEXCOORD3S fnptr, GLshort s, GLshort t, GLshort r) { -// (*fnptr)(s, t, r); -// } -// static void glowTexCoord3sv(GPTEXCOORD3SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord3xOES(GPTEXCOORD3XOES fnptr, GLfixed s, GLfixed t, GLfixed r) { -// (*fnptr)(s, t, r); -// } -// static void glowTexCoord3xvOES(GPTEXCOORD3XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowTexCoord4bOES(GPTEXCOORD4BOES fnptr, GLbyte s, GLbyte t, GLbyte r, GLbyte q) { -// (*fnptr)(s, t, r, q); -// } -// static void glowTexCoord4bvOES(GPTEXCOORD4BVOES fnptr, const GLbyte * coords) { -// (*fnptr)(coords); -// } -// static void glowTexCoord4d(GPTEXCOORD4D fnptr, GLdouble s, GLdouble t, GLdouble r, GLdouble q) { -// (*fnptr)(s, t, r, q); -// } -// static void glowTexCoord4dv(GPTEXCOORD4DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord4f(GPTEXCOORD4F fnptr, GLfloat s, GLfloat t, GLfloat r, GLfloat q) { -// (*fnptr)(s, t, r, q); -// } -// static void glowTexCoord4fColor4fNormal3fVertex4fSUN(GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUN fnptr, GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(s, t, p, q, r, g, b, a, nx, ny, nz, x, y, z, w); -// } -// static void glowTexCoord4fColor4fNormal3fVertex4fvSUN(GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUN fnptr, const GLfloat * tc, const GLfloat * c, const GLfloat * n, const GLfloat * v) { -// (*fnptr)(tc, c, n, v); -// } -// static void glowTexCoord4fVertex4fSUN(GPTEXCOORD4FVERTEX4FSUN fnptr, GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(s, t, p, q, x, y, z, w); -// } -// static void glowTexCoord4fVertex4fvSUN(GPTEXCOORD4FVERTEX4FVSUN fnptr, const GLfloat * tc, const GLfloat * v) { -// (*fnptr)(tc, v); -// } -// static void glowTexCoord4fv(GPTEXCOORD4FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord4hNV(GPTEXCOORD4HNV fnptr, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q) { -// (*fnptr)(s, t, r, q); -// } -// static void glowTexCoord4hvNV(GPTEXCOORD4HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord4i(GPTEXCOORD4I fnptr, GLint s, GLint t, GLint r, GLint q) { -// (*fnptr)(s, t, r, q); -// } -// static void glowTexCoord4iv(GPTEXCOORD4IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord4s(GPTEXCOORD4S fnptr, GLshort s, GLshort t, GLshort r, GLshort q) { -// (*fnptr)(s, t, r, q); -// } -// static void glowTexCoord4sv(GPTEXCOORD4SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowTexCoord4xOES(GPTEXCOORD4XOES fnptr, GLfixed s, GLfixed t, GLfixed r, GLfixed q) { -// (*fnptr)(s, t, r, q); -// } -// static void glowTexCoord4xvOES(GPTEXCOORD4XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowTexCoordFormatNV(GPTEXCOORDFORMATNV fnptr, GLint size, GLenum type, GLsizei stride) { -// (*fnptr)(size, type, stride); -// } -// static void glowTexCoordPointer(GPTEXCOORDPOINTER fnptr, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(size, type, stride, pointer); -// } -// static void glowTexCoordPointerEXT(GPTEXCOORDPOINTEREXT fnptr, GLint size, GLenum type, GLsizei stride, GLsizei count, const void * pointer) { -// (*fnptr)(size, type, stride, count, pointer); -// } -// static void glowTexCoordPointerListIBM(GPTEXCOORDPOINTERLISTIBM fnptr, GLint size, GLenum type, GLint stride, const void ** pointer, GLint ptrstride) { -// (*fnptr)(size, type, stride, pointer, ptrstride); -// } -// static void glowTexCoordPointervINTEL(GPTEXCOORDPOINTERVINTEL fnptr, GLint size, GLenum type, const void ** pointer) { -// (*fnptr)(size, type, pointer); -// } -// static void glowTexEnvf(GPTEXENVF fnptr, GLenum target, GLenum pname, GLfloat param) { -// (*fnptr)(target, pname, param); -// } -// static void glowTexEnvfv(GPTEXENVFV fnptr, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowTexEnvi(GPTEXENVI fnptr, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(target, pname, param); -// } -// static void glowTexEnviv(GPTEXENVIV fnptr, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowTexEnvxOES(GPTEXENVXOES fnptr, GLenum target, GLenum pname, GLfixed param) { -// (*fnptr)(target, pname, param); -// } -// static void glowTexEnvxvOES(GPTEXENVXVOES fnptr, GLenum target, GLenum pname, const GLfixed * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowTexFilterFuncSGIS(GPTEXFILTERFUNCSGIS fnptr, GLenum target, GLenum filter, GLsizei n, const GLfloat * weights) { -// (*fnptr)(target, filter, n, weights); -// } -// static void glowTexGend(GPTEXGEND fnptr, GLenum coord, GLenum pname, GLdouble param) { -// (*fnptr)(coord, pname, param); -// } -// static void glowTexGendv(GPTEXGENDV fnptr, GLenum coord, GLenum pname, const GLdouble * params) { -// (*fnptr)(coord, pname, params); -// } -// static void glowTexGenf(GPTEXGENF fnptr, GLenum coord, GLenum pname, GLfloat param) { -// (*fnptr)(coord, pname, param); -// } -// static void glowTexGenfv(GPTEXGENFV fnptr, GLenum coord, GLenum pname, const GLfloat * params) { -// (*fnptr)(coord, pname, params); -// } -// static void glowTexGeni(GPTEXGENI fnptr, GLenum coord, GLenum pname, GLint param) { -// (*fnptr)(coord, pname, param); -// } -// static void glowTexGeniv(GPTEXGENIV fnptr, GLenum coord, GLenum pname, const GLint * params) { -// (*fnptr)(coord, pname, params); -// } -// static void glowTexGenxOES(GPTEXGENXOES fnptr, GLenum coord, GLenum pname, GLfixed param) { -// (*fnptr)(coord, pname, param); -// } -// static void glowTexGenxvOES(GPTEXGENXVOES fnptr, GLenum coord, GLenum pname, const GLfixed * params) { -// (*fnptr)(coord, pname, params); -// } -// static void glowTexImage1D(GPTEXIMAGE1D fnptr, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, internalformat, width, border, format, type, pixels); -// } -// static void glowTexImage2D(GPTEXIMAGE2D fnptr, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, internalformat, width, height, border, format, type, pixels); -// } -// static void glowTexImage2DMultisample(GPTEXIMAGE2DMULTISAMPLE fnptr, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) { -// (*fnptr)(target, samples, internalformat, width, height, fixedsamplelocations); -// } -// static void glowTexImage2DMultisampleCoverageNV(GPTEXIMAGE2DMULTISAMPLECOVERAGENV fnptr, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations) { -// (*fnptr)(target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations); -// } -// static void glowTexImage3D(GPTEXIMAGE3D fnptr, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, internalformat, width, height, depth, border, format, type, pixels); -// } -// static void glowTexImage3DEXT(GPTEXIMAGE3DEXT fnptr, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, internalformat, width, height, depth, border, format, type, pixels); -// } -// static void glowTexImage3DMultisample(GPTEXIMAGE3DMULTISAMPLE fnptr, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) { -// (*fnptr)(target, samples, internalformat, width, height, depth, fixedsamplelocations); -// } -// static void glowTexImage3DMultisampleCoverageNV(GPTEXIMAGE3DMULTISAMPLECOVERAGENV fnptr, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations) { -// (*fnptr)(target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations); -// } -// static void glowTexImage4DSGIS(GPTEXIMAGE4DSGIS fnptr, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, internalformat, width, height, depth, size4d, border, format, type, pixels); -// } -// static void glowTexPageCommitmentARB(GPTEXPAGECOMMITMENTARB fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident) { -// (*fnptr)(target, level, xoffset, yoffset, zoffset, width, height, depth, resident); -// } -// static void glowTexParameterIivEXT(GPTEXPARAMETERIIVEXT fnptr, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowTexParameterIuivEXT(GPTEXPARAMETERIUIVEXT fnptr, GLenum target, GLenum pname, const GLuint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowTexParameterf(GPTEXPARAMETERF fnptr, GLenum target, GLenum pname, GLfloat param) { -// (*fnptr)(target, pname, param); -// } -// static void glowTexParameterfv(GPTEXPARAMETERFV fnptr, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowTexParameteri(GPTEXPARAMETERI fnptr, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(target, pname, param); -// } -// static void glowTexParameteriv(GPTEXPARAMETERIV fnptr, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowTexParameterxOES(GPTEXPARAMETERXOES fnptr, GLenum target, GLenum pname, GLfixed param) { -// (*fnptr)(target, pname, param); -// } -// static void glowTexParameterxvOES(GPTEXPARAMETERXVOES fnptr, GLenum target, GLenum pname, const GLfixed * params) { -// (*fnptr)(target, pname, params); -// } -// static void glowTexRenderbufferNV(GPTEXRENDERBUFFERNV fnptr, GLenum target, GLuint renderbuffer) { -// (*fnptr)(target, renderbuffer); -// } -// static void glowTexStorage1D(GPTEXSTORAGE1D fnptr, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width) { -// (*fnptr)(target, levels, internalformat, width); -// } -// static void glowTexStorage2D(GPTEXSTORAGE2D fnptr, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(target, levels, internalformat, width, height); -// } -// static void glowTexStorage2DMultisample(GPTEXSTORAGE2DMULTISAMPLE fnptr, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) { -// (*fnptr)(target, samples, internalformat, width, height, fixedsamplelocations); -// } -// static void glowTexStorage3D(GPTEXSTORAGE3D fnptr, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) { -// (*fnptr)(target, levels, internalformat, width, height, depth); -// } -// static void glowTexStorage3DMultisample(GPTEXSTORAGE3DMULTISAMPLE fnptr, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) { -// (*fnptr)(target, samples, internalformat, width, height, depth, fixedsamplelocations); -// } -// static void glowTexStorageSparseAMD(GPTEXSTORAGESPARSEAMD fnptr, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags) { -// (*fnptr)(target, internalFormat, width, height, depth, layers, flags); -// } -// static void glowTexSubImage1D(GPTEXSUBIMAGE1D fnptr, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, xoffset, width, format, type, pixels); -// } -// static void glowTexSubImage1DEXT(GPTEXSUBIMAGE1DEXT fnptr, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, xoffset, width, format, type, pixels); -// } -// static void glowTexSubImage2D(GPTEXSUBIMAGE2D fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, xoffset, yoffset, width, height, format, type, pixels); -// } -// static void glowTexSubImage2DEXT(GPTEXSUBIMAGE2DEXT fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, xoffset, yoffset, width, height, format, type, pixels); -// } -// static void glowTexSubImage3D(GPTEXSUBIMAGE3D fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); -// } -// static void glowTexSubImage3DEXT(GPTEXSUBIMAGE3DEXT fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); -// } -// static void glowTexSubImage4DSGIS(GPTEXSUBIMAGE4DSGIS fnptr, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(target, level, xoffset, yoffset, zoffset, woffset, width, height, depth, size4d, format, type, pixels); -// } -// static void glowTextureBarrier(GPTEXTUREBARRIER fnptr) { -// (*fnptr)(); -// } -// static void glowTextureBarrierNV(GPTEXTUREBARRIERNV fnptr) { -// (*fnptr)(); -// } -// static void glowTextureBuffer(GPTEXTUREBUFFER fnptr, GLuint texture, GLenum internalformat, GLuint buffer) { -// (*fnptr)(texture, internalformat, buffer); -// } -// static void glowTextureBufferEXT(GPTEXTUREBUFFEREXT fnptr, GLuint texture, GLenum target, GLenum internalformat, GLuint buffer) { -// (*fnptr)(texture, target, internalformat, buffer); -// } -// static void glowTextureBufferRange(GPTEXTUREBUFFERRANGE fnptr, GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizei size) { -// (*fnptr)(texture, internalformat, buffer, offset, size); -// } -// static void glowTextureBufferRangeEXT(GPTEXTUREBUFFERRANGEEXT fnptr, GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size) { -// (*fnptr)(texture, target, internalformat, buffer, offset, size); -// } -// static void glowTextureColorMaskSGIS(GPTEXTURECOLORMASKSGIS fnptr, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { -// (*fnptr)(red, green, blue, alpha); -// } -// static void glowTextureImage1DEXT(GPTEXTUREIMAGE1DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, target, level, internalformat, width, border, format, type, pixels); -// } -// static void glowTextureImage2DEXT(GPTEXTUREIMAGE2DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, target, level, internalformat, width, height, border, format, type, pixels); -// } -// static void glowTextureImage2DMultisampleCoverageNV(GPTEXTUREIMAGE2DMULTISAMPLECOVERAGENV fnptr, GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations) { -// (*fnptr)(texture, target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations); -// } -// static void glowTextureImage2DMultisampleNV(GPTEXTUREIMAGE2DMULTISAMPLENV fnptr, GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations) { -// (*fnptr)(texture, target, samples, internalFormat, width, height, fixedSampleLocations); -// } -// static void glowTextureImage3DEXT(GPTEXTUREIMAGE3DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, target, level, internalformat, width, height, depth, border, format, type, pixels); -// } -// static void glowTextureImage3DMultisampleCoverageNV(GPTEXTUREIMAGE3DMULTISAMPLECOVERAGENV fnptr, GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations) { -// (*fnptr)(texture, target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations); -// } -// static void glowTextureImage3DMultisampleNV(GPTEXTUREIMAGE3DMULTISAMPLENV fnptr, GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations) { -// (*fnptr)(texture, target, samples, internalFormat, width, height, depth, fixedSampleLocations); -// } -// static void glowTextureLightEXT(GPTEXTURELIGHTEXT fnptr, GLenum pname) { -// (*fnptr)(pname); -// } -// static void glowTextureMaterialEXT(GPTEXTUREMATERIALEXT fnptr, GLenum face, GLenum mode) { -// (*fnptr)(face, mode); -// } -// static void glowTextureNormalEXT(GPTEXTURENORMALEXT fnptr, GLenum mode) { -// (*fnptr)(mode); -// } -// static void glowTexturePageCommitmentEXT(GPTEXTUREPAGECOMMITMENTEXT fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident) { -// (*fnptr)(texture, level, xoffset, yoffset, zoffset, width, height, depth, resident); -// } -// static void glowTextureParameterIiv(GPTEXTUREPARAMETERIIV fnptr, GLuint texture, GLenum pname, const GLint * params) { -// (*fnptr)(texture, pname, params); -// } -// static void glowTextureParameterIivEXT(GPTEXTUREPARAMETERIIVEXT fnptr, GLuint texture, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(texture, target, pname, params); -// } -// static void glowTextureParameterIuiv(GPTEXTUREPARAMETERIUIV fnptr, GLuint texture, GLenum pname, const GLuint * params) { -// (*fnptr)(texture, pname, params); -// } -// static void glowTextureParameterIuivEXT(GPTEXTUREPARAMETERIUIVEXT fnptr, GLuint texture, GLenum target, GLenum pname, const GLuint * params) { -// (*fnptr)(texture, target, pname, params); -// } -// static void glowTextureParameterf(GPTEXTUREPARAMETERF fnptr, GLuint texture, GLenum pname, GLfloat param) { -// (*fnptr)(texture, pname, param); -// } -// static void glowTextureParameterfEXT(GPTEXTUREPARAMETERFEXT fnptr, GLuint texture, GLenum target, GLenum pname, GLfloat param) { -// (*fnptr)(texture, target, pname, param); -// } -// static void glowTextureParameterfv(GPTEXTUREPARAMETERFV fnptr, GLuint texture, GLenum pname, const GLfloat * param) { -// (*fnptr)(texture, pname, param); -// } -// static void glowTextureParameterfvEXT(GPTEXTUREPARAMETERFVEXT fnptr, GLuint texture, GLenum target, GLenum pname, const GLfloat * params) { -// (*fnptr)(texture, target, pname, params); -// } -// static void glowTextureParameteri(GPTEXTUREPARAMETERI fnptr, GLuint texture, GLenum pname, GLint param) { -// (*fnptr)(texture, pname, param); -// } -// static void glowTextureParameteriEXT(GPTEXTUREPARAMETERIEXT fnptr, GLuint texture, GLenum target, GLenum pname, GLint param) { -// (*fnptr)(texture, target, pname, param); -// } -// static void glowTextureParameteriv(GPTEXTUREPARAMETERIV fnptr, GLuint texture, GLenum pname, const GLint * param) { -// (*fnptr)(texture, pname, param); -// } -// static void glowTextureParameterivEXT(GPTEXTUREPARAMETERIVEXT fnptr, GLuint texture, GLenum target, GLenum pname, const GLint * params) { -// (*fnptr)(texture, target, pname, params); -// } -// static void glowTextureRangeAPPLE(GPTEXTURERANGEAPPLE fnptr, GLenum target, GLsizei length, const void * pointer) { -// (*fnptr)(target, length, pointer); -// } -// static void glowTextureRenderbufferEXT(GPTEXTURERENDERBUFFEREXT fnptr, GLuint texture, GLenum target, GLuint renderbuffer) { -// (*fnptr)(texture, target, renderbuffer); -// } -// static void glowTextureStorage1D(GPTEXTURESTORAGE1D fnptr, GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width) { -// (*fnptr)(texture, levels, internalformat, width); -// } -// static void glowTextureStorage1DEXT(GPTEXTURESTORAGE1DEXT fnptr, GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width) { -// (*fnptr)(texture, target, levels, internalformat, width); -// } -// static void glowTextureStorage2D(GPTEXTURESTORAGE2D fnptr, GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(texture, levels, internalformat, width, height); -// } -// static void glowTextureStorage2DEXT(GPTEXTURESTORAGE2DEXT fnptr, GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) { -// (*fnptr)(texture, target, levels, internalformat, width, height); -// } -// static void glowTextureStorage2DMultisample(GPTEXTURESTORAGE2DMULTISAMPLE fnptr, GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) { -// (*fnptr)(texture, samples, internalformat, width, height, fixedsamplelocations); -// } -// static void glowTextureStorage2DMultisampleEXT(GPTEXTURESTORAGE2DMULTISAMPLEEXT fnptr, GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) { -// (*fnptr)(texture, target, samples, internalformat, width, height, fixedsamplelocations); -// } -// static void glowTextureStorage3D(GPTEXTURESTORAGE3D fnptr, GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) { -// (*fnptr)(texture, levels, internalformat, width, height, depth); -// } -// static void glowTextureStorage3DEXT(GPTEXTURESTORAGE3DEXT fnptr, GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) { -// (*fnptr)(texture, target, levels, internalformat, width, height, depth); -// } -// static void glowTextureStorage3DMultisample(GPTEXTURESTORAGE3DMULTISAMPLE fnptr, GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) { -// (*fnptr)(texture, samples, internalformat, width, height, depth, fixedsamplelocations); -// } -// static void glowTextureStorage3DMultisampleEXT(GPTEXTURESTORAGE3DMULTISAMPLEEXT fnptr, GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) { -// (*fnptr)(texture, target, samples, internalformat, width, height, depth, fixedsamplelocations); -// } -// static void glowTextureStorageSparseAMD(GPTEXTURESTORAGESPARSEAMD fnptr, GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags) { -// (*fnptr)(texture, target, internalFormat, width, height, depth, layers, flags); -// } -// static void glowTextureSubImage1D(GPTEXTURESUBIMAGE1D fnptr, GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, level, xoffset, width, format, type, pixels); -// } -// static void glowTextureSubImage1DEXT(GPTEXTURESUBIMAGE1DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, target, level, xoffset, width, format, type, pixels); -// } -// static void glowTextureSubImage2D(GPTEXTURESUBIMAGE2D fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, level, xoffset, yoffset, width, height, format, type, pixels); -// } -// static void glowTextureSubImage2DEXT(GPTEXTURESUBIMAGE2DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, target, level, xoffset, yoffset, width, height, format, type, pixels); -// } -// static void glowTextureSubImage3D(GPTEXTURESUBIMAGE3D fnptr, GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); -// } -// static void glowTextureSubImage3DEXT(GPTEXTURESUBIMAGE3DEXT fnptr, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) { -// (*fnptr)(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); -// } -// static void glowTextureView(GPTEXTUREVIEW fnptr, GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers) { -// (*fnptr)(texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers); -// } -// static void glowTrackMatrixNV(GPTRACKMATRIXNV fnptr, GLenum target, GLuint address, GLenum matrix, GLenum transform) { -// (*fnptr)(target, address, matrix, transform); -// } -// static void glowTransformFeedbackAttribsNV(GPTRANSFORMFEEDBACKATTRIBSNV fnptr, GLsizei count, const GLint * attribs, GLenum bufferMode) { -// (*fnptr)(count, attribs, bufferMode); -// } -// static void glowTransformFeedbackBufferBase(GPTRANSFORMFEEDBACKBUFFERBASE fnptr, GLuint xfb, GLuint index, GLuint buffer) { -// (*fnptr)(xfb, index, buffer); -// } -// static void glowTransformFeedbackBufferRange(GPTRANSFORMFEEDBACKBUFFERRANGE fnptr, GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizei size) { -// (*fnptr)(xfb, index, buffer, offset, size); -// } -// static void glowTransformFeedbackStreamAttribsNV(GPTRANSFORMFEEDBACKSTREAMATTRIBSNV fnptr, GLsizei count, const GLint * attribs, GLsizei nbuffers, const GLint * bufstreams, GLenum bufferMode) { -// (*fnptr)(count, attribs, nbuffers, bufstreams, bufferMode); -// } -// static void glowTransformFeedbackVaryingsEXT(GPTRANSFORMFEEDBACKVARYINGSEXT fnptr, GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode) { -// (*fnptr)(program, count, varyings, bufferMode); -// } -// static void glowTransformFeedbackVaryingsNV(GPTRANSFORMFEEDBACKVARYINGSNV fnptr, GLuint program, GLsizei count, const GLint * locations, GLenum bufferMode) { -// (*fnptr)(program, count, locations, bufferMode); -// } -// static void glowTransformPathNV(GPTRANSFORMPATHNV fnptr, GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat * transformValues) { -// (*fnptr)(resultPath, srcPath, transformType, transformValues); -// } -// static void glowTranslated(GPTRANSLATED fnptr, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(x, y, z); -// } -// static void glowTranslatef(GPTRANSLATEF fnptr, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(x, y, z); -// } -// static void glowTranslatexOES(GPTRANSLATEXOES fnptr, GLfixed x, GLfixed y, GLfixed z) { -// (*fnptr)(x, y, z); -// } -// static void glowUniform1d(GPUNIFORM1D fnptr, GLint location, GLdouble x) { -// (*fnptr)(location, x); -// } -// static void glowUniform1dv(GPUNIFORM1DV fnptr, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform1f(GPUNIFORM1F fnptr, GLint location, GLfloat v0) { -// (*fnptr)(location, v0); -// } -// static void glowUniform1fARB(GPUNIFORM1FARB fnptr, GLint location, GLfloat v0) { -// (*fnptr)(location, v0); -// } -// static void glowUniform1fv(GPUNIFORM1FV fnptr, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform1fvARB(GPUNIFORM1FVARB fnptr, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform1i(GPUNIFORM1I fnptr, GLint location, GLint v0) { -// (*fnptr)(location, v0); -// } -// static void glowUniform1i64NV(GPUNIFORM1I64NV fnptr, GLint location, GLint64EXT x) { -// (*fnptr)(location, x); -// } -// static void glowUniform1i64vNV(GPUNIFORM1I64VNV fnptr, GLint location, GLsizei count, const GLint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform1iARB(GPUNIFORM1IARB fnptr, GLint location, GLint v0) { -// (*fnptr)(location, v0); -// } -// static void glowUniform1iv(GPUNIFORM1IV fnptr, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform1ivARB(GPUNIFORM1IVARB fnptr, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform1ui64NV(GPUNIFORM1UI64NV fnptr, GLint location, GLuint64EXT x) { -// (*fnptr)(location, x); -// } -// static void glowUniform1ui64vNV(GPUNIFORM1UI64VNV fnptr, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform1uiEXT(GPUNIFORM1UIEXT fnptr, GLint location, GLuint v0) { -// (*fnptr)(location, v0); -// } -// static void glowUniform1uivEXT(GPUNIFORM1UIVEXT fnptr, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform2d(GPUNIFORM2D fnptr, GLint location, GLdouble x, GLdouble y) { -// (*fnptr)(location, x, y); -// } -// static void glowUniform2dv(GPUNIFORM2DV fnptr, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform2f(GPUNIFORM2F fnptr, GLint location, GLfloat v0, GLfloat v1) { -// (*fnptr)(location, v0, v1); -// } -// static void glowUniform2fARB(GPUNIFORM2FARB fnptr, GLint location, GLfloat v0, GLfloat v1) { -// (*fnptr)(location, v0, v1); -// } -// static void glowUniform2fv(GPUNIFORM2FV fnptr, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform2fvARB(GPUNIFORM2FVARB fnptr, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform2i(GPUNIFORM2I fnptr, GLint location, GLint v0, GLint v1) { -// (*fnptr)(location, v0, v1); -// } -// static void glowUniform2i64NV(GPUNIFORM2I64NV fnptr, GLint location, GLint64EXT x, GLint64EXT y) { -// (*fnptr)(location, x, y); -// } -// static void glowUniform2i64vNV(GPUNIFORM2I64VNV fnptr, GLint location, GLsizei count, const GLint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform2iARB(GPUNIFORM2IARB fnptr, GLint location, GLint v0, GLint v1) { -// (*fnptr)(location, v0, v1); -// } -// static void glowUniform2iv(GPUNIFORM2IV fnptr, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform2ivARB(GPUNIFORM2IVARB fnptr, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform2ui64NV(GPUNIFORM2UI64NV fnptr, GLint location, GLuint64EXT x, GLuint64EXT y) { -// (*fnptr)(location, x, y); -// } -// static void glowUniform2ui64vNV(GPUNIFORM2UI64VNV fnptr, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform2uiEXT(GPUNIFORM2UIEXT fnptr, GLint location, GLuint v0, GLuint v1) { -// (*fnptr)(location, v0, v1); -// } -// static void glowUniform2uivEXT(GPUNIFORM2UIVEXT fnptr, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform3d(GPUNIFORM3D fnptr, GLint location, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(location, x, y, z); -// } -// static void glowUniform3dv(GPUNIFORM3DV fnptr, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform3f(GPUNIFORM3F fnptr, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) { -// (*fnptr)(location, v0, v1, v2); -// } -// static void glowUniform3fARB(GPUNIFORM3FARB fnptr, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) { -// (*fnptr)(location, v0, v1, v2); -// } -// static void glowUniform3fv(GPUNIFORM3FV fnptr, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform3fvARB(GPUNIFORM3FVARB fnptr, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform3i(GPUNIFORM3I fnptr, GLint location, GLint v0, GLint v1, GLint v2) { -// (*fnptr)(location, v0, v1, v2); -// } -// static void glowUniform3i64NV(GPUNIFORM3I64NV fnptr, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z) { -// (*fnptr)(location, x, y, z); -// } -// static void glowUniform3i64vNV(GPUNIFORM3I64VNV fnptr, GLint location, GLsizei count, const GLint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform3iARB(GPUNIFORM3IARB fnptr, GLint location, GLint v0, GLint v1, GLint v2) { -// (*fnptr)(location, v0, v1, v2); -// } -// static void glowUniform3iv(GPUNIFORM3IV fnptr, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform3ivARB(GPUNIFORM3IVARB fnptr, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform3ui64NV(GPUNIFORM3UI64NV fnptr, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z) { -// (*fnptr)(location, x, y, z); -// } -// static void glowUniform3ui64vNV(GPUNIFORM3UI64VNV fnptr, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform3uiEXT(GPUNIFORM3UIEXT fnptr, GLint location, GLuint v0, GLuint v1, GLuint v2) { -// (*fnptr)(location, v0, v1, v2); -// } -// static void glowUniform3uivEXT(GPUNIFORM3UIVEXT fnptr, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform4d(GPUNIFORM4D fnptr, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(location, x, y, z, w); -// } -// static void glowUniform4dv(GPUNIFORM4DV fnptr, GLint location, GLsizei count, const GLdouble * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform4f(GPUNIFORM4F fnptr, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) { -// (*fnptr)(location, v0, v1, v2, v3); -// } -// static void glowUniform4fARB(GPUNIFORM4FARB fnptr, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) { -// (*fnptr)(location, v0, v1, v2, v3); -// } -// static void glowUniform4fv(GPUNIFORM4FV fnptr, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform4fvARB(GPUNIFORM4FVARB fnptr, GLint location, GLsizei count, const GLfloat * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform4i(GPUNIFORM4I fnptr, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) { -// (*fnptr)(location, v0, v1, v2, v3); -// } -// static void glowUniform4i64NV(GPUNIFORM4I64NV fnptr, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w) { -// (*fnptr)(location, x, y, z, w); -// } -// static void glowUniform4i64vNV(GPUNIFORM4I64VNV fnptr, GLint location, GLsizei count, const GLint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform4iARB(GPUNIFORM4IARB fnptr, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) { -// (*fnptr)(location, v0, v1, v2, v3); -// } -// static void glowUniform4iv(GPUNIFORM4IV fnptr, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform4ivARB(GPUNIFORM4IVARB fnptr, GLint location, GLsizei count, const GLint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform4ui64NV(GPUNIFORM4UI64NV fnptr, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w) { -// (*fnptr)(location, x, y, z, w); -// } -// static void glowUniform4ui64vNV(GPUNIFORM4UI64VNV fnptr, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniform4uiEXT(GPUNIFORM4UIEXT fnptr, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) { -// (*fnptr)(location, v0, v1, v2, v3); -// } -// static void glowUniform4uivEXT(GPUNIFORM4UIVEXT fnptr, GLint location, GLsizei count, const GLuint * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniformBlockBinding(GPUNIFORMBLOCKBINDING fnptr, GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding) { -// (*fnptr)(program, uniformBlockIndex, uniformBlockBinding); -// } -// static void glowUniformBufferEXT(GPUNIFORMBUFFEREXT fnptr, GLuint program, GLint location, GLuint buffer) { -// (*fnptr)(program, location, buffer); -// } -// static void glowUniformHandleui64ARB(GPUNIFORMHANDLEUI64ARB fnptr, GLint location, GLuint64 value) { -// (*fnptr)(location, value); -// } -// static void glowUniformHandleui64NV(GPUNIFORMHANDLEUI64NV fnptr, GLint location, GLuint64 value) { -// (*fnptr)(location, value); -// } -// static void glowUniformHandleui64vARB(GPUNIFORMHANDLEUI64VARB fnptr, GLint location, GLsizei count, const GLuint64 * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniformHandleui64vNV(GPUNIFORMHANDLEUI64VNV fnptr, GLint location, GLsizei count, const GLuint64 * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUniformMatrix2dv(GPUNIFORMMATRIX2DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix2fv(GPUNIFORMMATRIX2FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix2fvARB(GPUNIFORMMATRIX2FVARB fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix2x3dv(GPUNIFORMMATRIX2X3DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix2x3fv(GPUNIFORMMATRIX2X3FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix2x4dv(GPUNIFORMMATRIX2X4DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix2x4fv(GPUNIFORMMATRIX2X4FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix3dv(GPUNIFORMMATRIX3DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix3fv(GPUNIFORMMATRIX3FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix3fvARB(GPUNIFORMMATRIX3FVARB fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix3x2dv(GPUNIFORMMATRIX3X2DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix3x2fv(GPUNIFORMMATRIX3X2FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix3x4dv(GPUNIFORMMATRIX3X4DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix3x4fv(GPUNIFORMMATRIX3X4FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix4dv(GPUNIFORMMATRIX4DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix4fv(GPUNIFORMMATRIX4FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix4fvARB(GPUNIFORMMATRIX4FVARB fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix4x2dv(GPUNIFORMMATRIX4X2DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix4x2fv(GPUNIFORMMATRIX4X2FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix4x3dv(GPUNIFORMMATRIX4X3DV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformMatrix4x3fv(GPUNIFORMMATRIX4X3FV fnptr, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { -// (*fnptr)(location, count, transpose, value); -// } -// static void glowUniformSubroutinesuiv(GPUNIFORMSUBROUTINESUIV fnptr, GLenum shadertype, GLsizei count, const GLuint * indices) { -// (*fnptr)(shadertype, count, indices); -// } -// static void glowUniformui64NV(GPUNIFORMUI64NV fnptr, GLint location, GLuint64EXT value) { -// (*fnptr)(location, value); -// } -// static void glowUniformui64vNV(GPUNIFORMUI64VNV fnptr, GLint location, GLsizei count, const GLuint64EXT * value) { -// (*fnptr)(location, count, value); -// } -// static void glowUnlockArraysEXT(GPUNLOCKARRAYSEXT fnptr) { -// (*fnptr)(); -// } -// static GLboolean glowUnmapBuffer(GPUNMAPBUFFER fnptr, GLenum target) { -// return (*fnptr)(target); -// } -// static GLboolean glowUnmapBufferARB(GPUNMAPBUFFERARB fnptr, GLenum target) { -// return (*fnptr)(target); -// } -// static GLboolean glowUnmapNamedBuffer(GPUNMAPNAMEDBUFFER fnptr, GLuint buffer) { -// return (*fnptr)(buffer); -// } -// static GLboolean glowUnmapNamedBufferEXT(GPUNMAPNAMEDBUFFEREXT fnptr, GLuint buffer) { -// return (*fnptr)(buffer); -// } -// static void glowUnmapObjectBufferATI(GPUNMAPOBJECTBUFFERATI fnptr, GLuint buffer) { -// (*fnptr)(buffer); -// } -// static void glowUnmapTexture2DINTEL(GPUNMAPTEXTURE2DINTEL fnptr, GLuint texture, GLint level) { -// (*fnptr)(texture, level); -// } -// static void glowUpdateObjectBufferATI(GPUPDATEOBJECTBUFFERATI fnptr, GLuint buffer, GLuint offset, GLsizei size, const void * pointer, GLenum preserve) { -// (*fnptr)(buffer, offset, size, pointer, preserve); -// } -// static void glowUseProgram(GPUSEPROGRAM fnptr, GLuint program) { -// (*fnptr)(program); -// } -// static void glowUseProgramObjectARB(GPUSEPROGRAMOBJECTARB fnptr, GLhandleARB programObj) { -// (*fnptr)(programObj); -// } -// static void glowUseProgramStages(GPUSEPROGRAMSTAGES fnptr, GLuint pipeline, GLbitfield stages, GLuint program) { -// (*fnptr)(pipeline, stages, program); -// } -// static void glowUseProgramStagesEXT(GPUSEPROGRAMSTAGESEXT fnptr, GLuint pipeline, GLbitfield stages, GLuint program) { -// (*fnptr)(pipeline, stages, program); -// } -// static void glowUseShaderProgramEXT(GPUSESHADERPROGRAMEXT fnptr, GLenum type, GLuint program) { -// (*fnptr)(type, program); -// } -// static void glowVDPAUFiniNV(GPVDPAUFININV fnptr) { -// (*fnptr)(); -// } -// static void glowVDPAUGetSurfaceivNV(GPVDPAUGETSURFACEIVNV fnptr, GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values) { -// (*fnptr)(surface, pname, bufSize, length, values); -// } -// static void glowVDPAUInitNV(GPVDPAUINITNV fnptr, const void * vdpDevice, const void * getProcAddress) { -// (*fnptr)(vdpDevice, getProcAddress); -// } -// static GLboolean glowVDPAUIsSurfaceNV(GPVDPAUISSURFACENV fnptr, GLvdpauSurfaceNV surface) { -// return (*fnptr)(surface); -// } -// static void glowVDPAUMapSurfacesNV(GPVDPAUMAPSURFACESNV fnptr, GLsizei numSurfaces, const GLvdpauSurfaceNV * surfaces) { -// (*fnptr)(numSurfaces, surfaces); -// } -// static GLvdpauSurfaceNV glowVDPAURegisterOutputSurfaceNV(GPVDPAUREGISTEROUTPUTSURFACENV fnptr, const void * vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint * textureNames) { -// return (*fnptr)(vdpSurface, target, numTextureNames, textureNames); -// } -// static GLvdpauSurfaceNV glowVDPAURegisterVideoSurfaceNV(GPVDPAUREGISTERVIDEOSURFACENV fnptr, const void * vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint * textureNames) { -// return (*fnptr)(vdpSurface, target, numTextureNames, textureNames); -// } -// static void glowVDPAUSurfaceAccessNV(GPVDPAUSURFACEACCESSNV fnptr, GLvdpauSurfaceNV surface, GLenum access) { -// (*fnptr)(surface, access); -// } -// static void glowVDPAUUnmapSurfacesNV(GPVDPAUUNMAPSURFACESNV fnptr, GLsizei numSurface, const GLvdpauSurfaceNV * surfaces) { -// (*fnptr)(numSurface, surfaces); -// } -// static void glowVDPAUUnregisterSurfaceNV(GPVDPAUUNREGISTERSURFACENV fnptr, GLvdpauSurfaceNV surface) { -// (*fnptr)(surface); -// } -// static void glowValidateProgram(GPVALIDATEPROGRAM fnptr, GLuint program) { -// (*fnptr)(program); -// } -// static void glowValidateProgramARB(GPVALIDATEPROGRAMARB fnptr, GLhandleARB programObj) { -// (*fnptr)(programObj); -// } -// static void glowValidateProgramPipeline(GPVALIDATEPROGRAMPIPELINE fnptr, GLuint pipeline) { -// (*fnptr)(pipeline); -// } -// static void glowValidateProgramPipelineEXT(GPVALIDATEPROGRAMPIPELINEEXT fnptr, GLuint pipeline) { -// (*fnptr)(pipeline); -// } -// static void glowVariantArrayObjectATI(GPVARIANTARRAYOBJECTATI fnptr, GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset) { -// (*fnptr)(id, type, stride, buffer, offset); -// } -// static void glowVariantPointerEXT(GPVARIANTPOINTEREXT fnptr, GLuint id, GLenum type, GLuint stride, const void * addr) { -// (*fnptr)(id, type, stride, addr); -// } -// static void glowVariantbvEXT(GPVARIANTBVEXT fnptr, GLuint id, const GLbyte * addr) { -// (*fnptr)(id, addr); -// } -// static void glowVariantdvEXT(GPVARIANTDVEXT fnptr, GLuint id, const GLdouble * addr) { -// (*fnptr)(id, addr); -// } -// static void glowVariantfvEXT(GPVARIANTFVEXT fnptr, GLuint id, const GLfloat * addr) { -// (*fnptr)(id, addr); -// } -// static void glowVariantivEXT(GPVARIANTIVEXT fnptr, GLuint id, const GLint * addr) { -// (*fnptr)(id, addr); -// } -// static void glowVariantsvEXT(GPVARIANTSVEXT fnptr, GLuint id, const GLshort * addr) { -// (*fnptr)(id, addr); -// } -// static void glowVariantubvEXT(GPVARIANTUBVEXT fnptr, GLuint id, const GLubyte * addr) { -// (*fnptr)(id, addr); -// } -// static void glowVariantuivEXT(GPVARIANTUIVEXT fnptr, GLuint id, const GLuint * addr) { -// (*fnptr)(id, addr); -// } -// static void glowVariantusvEXT(GPVARIANTUSVEXT fnptr, GLuint id, const GLushort * addr) { -// (*fnptr)(id, addr); -// } -// static void glowVertex2bOES(GPVERTEX2BOES fnptr, GLbyte x, GLbyte y) { -// (*fnptr)(x, y); -// } -// static void glowVertex2bvOES(GPVERTEX2BVOES fnptr, const GLbyte * coords) { -// (*fnptr)(coords); -// } -// static void glowVertex2d(GPVERTEX2D fnptr, GLdouble x, GLdouble y) { -// (*fnptr)(x, y); -// } -// static void glowVertex2dv(GPVERTEX2DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowVertex2f(GPVERTEX2F fnptr, GLfloat x, GLfloat y) { -// (*fnptr)(x, y); -// } -// static void glowVertex2fv(GPVERTEX2FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowVertex2hNV(GPVERTEX2HNV fnptr, GLhalfNV x, GLhalfNV y) { -// (*fnptr)(x, y); -// } -// static void glowVertex2hvNV(GPVERTEX2HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowVertex2i(GPVERTEX2I fnptr, GLint x, GLint y) { -// (*fnptr)(x, y); -// } -// static void glowVertex2iv(GPVERTEX2IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowVertex2s(GPVERTEX2S fnptr, GLshort x, GLshort y) { -// (*fnptr)(x, y); -// } -// static void glowVertex2sv(GPVERTEX2SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowVertex2xOES(GPVERTEX2XOES fnptr, GLfixed x) { -// (*fnptr)(x); -// } -// static void glowVertex2xvOES(GPVERTEX2XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowVertex3bOES(GPVERTEX3BOES fnptr, GLbyte x, GLbyte y, GLbyte z) { -// (*fnptr)(x, y, z); -// } -// static void glowVertex3bvOES(GPVERTEX3BVOES fnptr, const GLbyte * coords) { -// (*fnptr)(coords); -// } -// static void glowVertex3d(GPVERTEX3D fnptr, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(x, y, z); -// } -// static void glowVertex3dv(GPVERTEX3DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowVertex3f(GPVERTEX3F fnptr, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(x, y, z); -// } -// static void glowVertex3fv(GPVERTEX3FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowVertex3hNV(GPVERTEX3HNV fnptr, GLhalfNV x, GLhalfNV y, GLhalfNV z) { -// (*fnptr)(x, y, z); -// } -// static void glowVertex3hvNV(GPVERTEX3HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowVertex3i(GPVERTEX3I fnptr, GLint x, GLint y, GLint z) { -// (*fnptr)(x, y, z); -// } -// static void glowVertex3iv(GPVERTEX3IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowVertex3s(GPVERTEX3S fnptr, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(x, y, z); -// } -// static void glowVertex3sv(GPVERTEX3SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowVertex3xOES(GPVERTEX3XOES fnptr, GLfixed x, GLfixed y) { -// (*fnptr)(x, y); -// } -// static void glowVertex3xvOES(GPVERTEX3XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowVertex4bOES(GPVERTEX4BOES fnptr, GLbyte x, GLbyte y, GLbyte z, GLbyte w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowVertex4bvOES(GPVERTEX4BVOES fnptr, const GLbyte * coords) { -// (*fnptr)(coords); -// } -// static void glowVertex4d(GPVERTEX4D fnptr, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowVertex4dv(GPVERTEX4DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowVertex4f(GPVERTEX4F fnptr, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowVertex4fv(GPVERTEX4FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowVertex4hNV(GPVERTEX4HNV fnptr, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowVertex4hvNV(GPVERTEX4HVNV fnptr, const GLhalfNV * v) { -// (*fnptr)(v); -// } -// static void glowVertex4i(GPVERTEX4I fnptr, GLint x, GLint y, GLint z, GLint w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowVertex4iv(GPVERTEX4IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowVertex4s(GPVERTEX4S fnptr, GLshort x, GLshort y, GLshort z, GLshort w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowVertex4sv(GPVERTEX4SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowVertex4xOES(GPVERTEX4XOES fnptr, GLfixed x, GLfixed y, GLfixed z) { -// (*fnptr)(x, y, z); -// } -// static void glowVertex4xvOES(GPVERTEX4XVOES fnptr, const GLfixed * coords) { -// (*fnptr)(coords); -// } -// static void glowVertexArrayAttribBinding(GPVERTEXARRAYATTRIBBINDING fnptr, GLuint vaobj, GLuint attribindex, GLuint bindingindex) { -// (*fnptr)(vaobj, attribindex, bindingindex); -// } -// static void glowVertexArrayAttribFormat(GPVERTEXARRAYATTRIBFORMAT fnptr, GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset) { -// (*fnptr)(vaobj, attribindex, size, type, normalized, relativeoffset); -// } -// static void glowVertexArrayAttribIFormat(GPVERTEXARRAYATTRIBIFORMAT fnptr, GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) { -// (*fnptr)(vaobj, attribindex, size, type, relativeoffset); -// } -// static void glowVertexArrayAttribLFormat(GPVERTEXARRAYATTRIBLFORMAT fnptr, GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) { -// (*fnptr)(vaobj, attribindex, size, type, relativeoffset); -// } -// static void glowVertexArrayBindVertexBufferEXT(GPVERTEXARRAYBINDVERTEXBUFFEREXT fnptr, GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride) { -// (*fnptr)(vaobj, bindingindex, buffer, offset, stride); -// } -// static void glowVertexArrayBindingDivisor(GPVERTEXARRAYBINDINGDIVISOR fnptr, GLuint vaobj, GLuint bindingindex, GLuint divisor) { -// (*fnptr)(vaobj, bindingindex, divisor); -// } -// static void glowVertexArrayColorOffsetEXT(GPVERTEXARRAYCOLOROFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, size, type, stride, offset); -// } -// static void glowVertexArrayEdgeFlagOffsetEXT(GPVERTEXARRAYEDGEFLAGOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, stride, offset); -// } -// static void glowVertexArrayElementBuffer(GPVERTEXARRAYELEMENTBUFFER fnptr, GLuint vaobj, GLuint buffer) { -// (*fnptr)(vaobj, buffer); -// } -// static void glowVertexArrayFogCoordOffsetEXT(GPVERTEXARRAYFOGCOORDOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, type, stride, offset); -// } -// static void glowVertexArrayIndexOffsetEXT(GPVERTEXARRAYINDEXOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, type, stride, offset); -// } -// static void glowVertexArrayMultiTexCoordOffsetEXT(GPVERTEXARRAYMULTITEXCOORDOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, texunit, size, type, stride, offset); -// } -// static void glowVertexArrayNormalOffsetEXT(GPVERTEXARRAYNORMALOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, type, stride, offset); -// } -// static void glowVertexArrayParameteriAPPLE(GPVERTEXARRAYPARAMETERIAPPLE fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowVertexArrayRangeAPPLE(GPVERTEXARRAYRANGEAPPLE fnptr, GLsizei length, void * pointer) { -// (*fnptr)(length, pointer); -// } -// static void glowVertexArrayRangeNV(GPVERTEXARRAYRANGENV fnptr, GLsizei length, const void * pointer) { -// (*fnptr)(length, pointer); -// } -// static void glowVertexArraySecondaryColorOffsetEXT(GPVERTEXARRAYSECONDARYCOLOROFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, size, type, stride, offset); -// } -// static void glowVertexArrayTexCoordOffsetEXT(GPVERTEXARRAYTEXCOORDOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, size, type, stride, offset); -// } -// static void glowVertexArrayVertexAttribBindingEXT(GPVERTEXARRAYVERTEXATTRIBBINDINGEXT fnptr, GLuint vaobj, GLuint attribindex, GLuint bindingindex) { -// (*fnptr)(vaobj, attribindex, bindingindex); -// } -// static void glowVertexArrayVertexAttribDivisorEXT(GPVERTEXARRAYVERTEXATTRIBDIVISOREXT fnptr, GLuint vaobj, GLuint index, GLuint divisor) { -// (*fnptr)(vaobj, index, divisor); -// } -// static void glowVertexArrayVertexAttribFormatEXT(GPVERTEXARRAYVERTEXATTRIBFORMATEXT fnptr, GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset) { -// (*fnptr)(vaobj, attribindex, size, type, normalized, relativeoffset); -// } -// static void glowVertexArrayVertexAttribIFormatEXT(GPVERTEXARRAYVERTEXATTRIBIFORMATEXT fnptr, GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) { -// (*fnptr)(vaobj, attribindex, size, type, relativeoffset); -// } -// static void glowVertexArrayVertexAttribIOffsetEXT(GPVERTEXARRAYVERTEXATTRIBIOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, index, size, type, stride, offset); -// } -// static void glowVertexArrayVertexAttribLFormatEXT(GPVERTEXARRAYVERTEXATTRIBLFORMATEXT fnptr, GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) { -// (*fnptr)(vaobj, attribindex, size, type, relativeoffset); -// } -// static void glowVertexArrayVertexAttribLOffsetEXT(GPVERTEXARRAYVERTEXATTRIBLOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, index, size, type, stride, offset); -// } -// static void glowVertexArrayVertexAttribOffsetEXT(GPVERTEXARRAYVERTEXATTRIBOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, index, size, type, normalized, stride, offset); -// } -// static void glowVertexArrayVertexBindingDivisorEXT(GPVERTEXARRAYVERTEXBINDINGDIVISOREXT fnptr, GLuint vaobj, GLuint bindingindex, GLuint divisor) { -// (*fnptr)(vaobj, bindingindex, divisor); -// } -// static void glowVertexArrayVertexBuffer(GPVERTEXARRAYVERTEXBUFFER fnptr, GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride) { -// (*fnptr)(vaobj, bindingindex, buffer, offset, stride); -// } -// static void glowVertexArrayVertexBuffers(GPVERTEXARRAYVERTEXBUFFERS fnptr, GLuint vaobj, GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizei * strides) { -// (*fnptr)(vaobj, first, count, buffers, offsets, strides); -// } -// static void glowVertexArrayVertexOffsetEXT(GPVERTEXARRAYVERTEXOFFSETEXT fnptr, GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset) { -// (*fnptr)(vaobj, buffer, size, type, stride, offset); -// } -// static void glowVertexAttrib1d(GPVERTEXATTRIB1D fnptr, GLuint index, GLdouble x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1dARB(GPVERTEXATTRIB1DARB fnptr, GLuint index, GLdouble x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1dNV(GPVERTEXATTRIB1DNV fnptr, GLuint index, GLdouble x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1dv(GPVERTEXATTRIB1DV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1dvARB(GPVERTEXATTRIB1DVARB fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1dvNV(GPVERTEXATTRIB1DVNV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1f(GPVERTEXATTRIB1F fnptr, GLuint index, GLfloat x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1fARB(GPVERTEXATTRIB1FARB fnptr, GLuint index, GLfloat x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1fNV(GPVERTEXATTRIB1FNV fnptr, GLuint index, GLfloat x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1fv(GPVERTEXATTRIB1FV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1fvARB(GPVERTEXATTRIB1FVARB fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1fvNV(GPVERTEXATTRIB1FVNV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1hNV(GPVERTEXATTRIB1HNV fnptr, GLuint index, GLhalfNV x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1hvNV(GPVERTEXATTRIB1HVNV fnptr, GLuint index, const GLhalfNV * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1s(GPVERTEXATTRIB1S fnptr, GLuint index, GLshort x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1sARB(GPVERTEXATTRIB1SARB fnptr, GLuint index, GLshort x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1sNV(GPVERTEXATTRIB1SNV fnptr, GLuint index, GLshort x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttrib1sv(GPVERTEXATTRIB1SV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1svARB(GPVERTEXATTRIB1SVARB fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib1svNV(GPVERTEXATTRIB1SVNV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2d(GPVERTEXATTRIB2D fnptr, GLuint index, GLdouble x, GLdouble y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2dARB(GPVERTEXATTRIB2DARB fnptr, GLuint index, GLdouble x, GLdouble y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2dNV(GPVERTEXATTRIB2DNV fnptr, GLuint index, GLdouble x, GLdouble y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2dv(GPVERTEXATTRIB2DV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2dvARB(GPVERTEXATTRIB2DVARB fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2dvNV(GPVERTEXATTRIB2DVNV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2f(GPVERTEXATTRIB2F fnptr, GLuint index, GLfloat x, GLfloat y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2fARB(GPVERTEXATTRIB2FARB fnptr, GLuint index, GLfloat x, GLfloat y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2fNV(GPVERTEXATTRIB2FNV fnptr, GLuint index, GLfloat x, GLfloat y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2fv(GPVERTEXATTRIB2FV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2fvARB(GPVERTEXATTRIB2FVARB fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2fvNV(GPVERTEXATTRIB2FVNV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2hNV(GPVERTEXATTRIB2HNV fnptr, GLuint index, GLhalfNV x, GLhalfNV y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2hvNV(GPVERTEXATTRIB2HVNV fnptr, GLuint index, const GLhalfNV * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2s(GPVERTEXATTRIB2S fnptr, GLuint index, GLshort x, GLshort y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2sARB(GPVERTEXATTRIB2SARB fnptr, GLuint index, GLshort x, GLshort y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2sNV(GPVERTEXATTRIB2SNV fnptr, GLuint index, GLshort x, GLshort y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttrib2sv(GPVERTEXATTRIB2SV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2svARB(GPVERTEXATTRIB2SVARB fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib2svNV(GPVERTEXATTRIB2SVNV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3d(GPVERTEXATTRIB3D fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3dARB(GPVERTEXATTRIB3DARB fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3dNV(GPVERTEXATTRIB3DNV fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3dv(GPVERTEXATTRIB3DV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3dvARB(GPVERTEXATTRIB3DVARB fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3dvNV(GPVERTEXATTRIB3DVNV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3f(GPVERTEXATTRIB3F fnptr, GLuint index, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3fARB(GPVERTEXATTRIB3FARB fnptr, GLuint index, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3fNV(GPVERTEXATTRIB3FNV fnptr, GLuint index, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3fv(GPVERTEXATTRIB3FV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3fvARB(GPVERTEXATTRIB3FVARB fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3fvNV(GPVERTEXATTRIB3FVNV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3hNV(GPVERTEXATTRIB3HNV fnptr, GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3hvNV(GPVERTEXATTRIB3HVNV fnptr, GLuint index, const GLhalfNV * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3s(GPVERTEXATTRIB3S fnptr, GLuint index, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3sARB(GPVERTEXATTRIB3SARB fnptr, GLuint index, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3sNV(GPVERTEXATTRIB3SNV fnptr, GLuint index, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttrib3sv(GPVERTEXATTRIB3SV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3svARB(GPVERTEXATTRIB3SVARB fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib3svNV(GPVERTEXATTRIB3SVNV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4Nbv(GPVERTEXATTRIB4NBV fnptr, GLuint index, const GLbyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4NbvARB(GPVERTEXATTRIB4NBVARB fnptr, GLuint index, const GLbyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4Niv(GPVERTEXATTRIB4NIV fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4NivARB(GPVERTEXATTRIB4NIVARB fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4Nsv(GPVERTEXATTRIB4NSV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4NsvARB(GPVERTEXATTRIB4NSVARB fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4Nub(GPVERTEXATTRIB4NUB fnptr, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4NubARB(GPVERTEXATTRIB4NUBARB fnptr, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4Nubv(GPVERTEXATTRIB4NUBV fnptr, GLuint index, const GLubyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4NubvARB(GPVERTEXATTRIB4NUBVARB fnptr, GLuint index, const GLubyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4Nuiv(GPVERTEXATTRIB4NUIV fnptr, GLuint index, const GLuint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4NuivARB(GPVERTEXATTRIB4NUIVARB fnptr, GLuint index, const GLuint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4Nusv(GPVERTEXATTRIB4NUSV fnptr, GLuint index, const GLushort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4NusvARB(GPVERTEXATTRIB4NUSVARB fnptr, GLuint index, const GLushort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4bv(GPVERTEXATTRIB4BV fnptr, GLuint index, const GLbyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4bvARB(GPVERTEXATTRIB4BVARB fnptr, GLuint index, const GLbyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4d(GPVERTEXATTRIB4D fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4dARB(GPVERTEXATTRIB4DARB fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4dNV(GPVERTEXATTRIB4DNV fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4dv(GPVERTEXATTRIB4DV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4dvARB(GPVERTEXATTRIB4DVARB fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4dvNV(GPVERTEXATTRIB4DVNV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4f(GPVERTEXATTRIB4F fnptr, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4fARB(GPVERTEXATTRIB4FARB fnptr, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4fNV(GPVERTEXATTRIB4FNV fnptr, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4fv(GPVERTEXATTRIB4FV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4fvARB(GPVERTEXATTRIB4FVARB fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4fvNV(GPVERTEXATTRIB4FVNV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4hNV(GPVERTEXATTRIB4HNV fnptr, GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4hvNV(GPVERTEXATTRIB4HVNV fnptr, GLuint index, const GLhalfNV * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4iv(GPVERTEXATTRIB4IV fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4ivARB(GPVERTEXATTRIB4IVARB fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4s(GPVERTEXATTRIB4S fnptr, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4sARB(GPVERTEXATTRIB4SARB fnptr, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4sNV(GPVERTEXATTRIB4SNV fnptr, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4sv(GPVERTEXATTRIB4SV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4svARB(GPVERTEXATTRIB4SVARB fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4svNV(GPVERTEXATTRIB4SVNV fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4ubNV(GPVERTEXATTRIB4UBNV fnptr, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttrib4ubv(GPVERTEXATTRIB4UBV fnptr, GLuint index, const GLubyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4ubvARB(GPVERTEXATTRIB4UBVARB fnptr, GLuint index, const GLubyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4ubvNV(GPVERTEXATTRIB4UBVNV fnptr, GLuint index, const GLubyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4uiv(GPVERTEXATTRIB4UIV fnptr, GLuint index, const GLuint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4uivARB(GPVERTEXATTRIB4UIVARB fnptr, GLuint index, const GLuint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4usv(GPVERTEXATTRIB4USV fnptr, GLuint index, const GLushort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttrib4usvARB(GPVERTEXATTRIB4USVARB fnptr, GLuint index, const GLushort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribArrayObjectATI(GPVERTEXATTRIBARRAYOBJECTATI fnptr, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset) { -// (*fnptr)(index, size, type, normalized, stride, buffer, offset); -// } -// static void glowVertexAttribBinding(GPVERTEXATTRIBBINDING fnptr, GLuint attribindex, GLuint bindingindex) { -// (*fnptr)(attribindex, bindingindex); -// } -// static void glowVertexAttribDivisorARB(GPVERTEXATTRIBDIVISORARB fnptr, GLuint index, GLuint divisor) { -// (*fnptr)(index, divisor); -// } -// static void glowVertexAttribFormat(GPVERTEXATTRIBFORMAT fnptr, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset) { -// (*fnptr)(attribindex, size, type, normalized, relativeoffset); -// } -// static void glowVertexAttribFormatNV(GPVERTEXATTRIBFORMATNV fnptr, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride) { -// (*fnptr)(index, size, type, normalized, stride); -// } -// static void glowVertexAttribI1iEXT(GPVERTEXATTRIBI1IEXT fnptr, GLuint index, GLint x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttribI1ivEXT(GPVERTEXATTRIBI1IVEXT fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI1uiEXT(GPVERTEXATTRIBI1UIEXT fnptr, GLuint index, GLuint x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttribI1uivEXT(GPVERTEXATTRIBI1UIVEXT fnptr, GLuint index, const GLuint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI2iEXT(GPVERTEXATTRIBI2IEXT fnptr, GLuint index, GLint x, GLint y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttribI2ivEXT(GPVERTEXATTRIBI2IVEXT fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI2uiEXT(GPVERTEXATTRIBI2UIEXT fnptr, GLuint index, GLuint x, GLuint y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttribI2uivEXT(GPVERTEXATTRIBI2UIVEXT fnptr, GLuint index, const GLuint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI3iEXT(GPVERTEXATTRIBI3IEXT fnptr, GLuint index, GLint x, GLint y, GLint z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttribI3ivEXT(GPVERTEXATTRIBI3IVEXT fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI3uiEXT(GPVERTEXATTRIBI3UIEXT fnptr, GLuint index, GLuint x, GLuint y, GLuint z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttribI3uivEXT(GPVERTEXATTRIBI3UIVEXT fnptr, GLuint index, const GLuint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI4bvEXT(GPVERTEXATTRIBI4BVEXT fnptr, GLuint index, const GLbyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI4iEXT(GPVERTEXATTRIBI4IEXT fnptr, GLuint index, GLint x, GLint y, GLint z, GLint w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttribI4ivEXT(GPVERTEXATTRIBI4IVEXT fnptr, GLuint index, const GLint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI4svEXT(GPVERTEXATTRIBI4SVEXT fnptr, GLuint index, const GLshort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI4ubvEXT(GPVERTEXATTRIBI4UBVEXT fnptr, GLuint index, const GLubyte * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI4uiEXT(GPVERTEXATTRIBI4UIEXT fnptr, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttribI4uivEXT(GPVERTEXATTRIBI4UIVEXT fnptr, GLuint index, const GLuint * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribI4usvEXT(GPVERTEXATTRIBI4USVEXT fnptr, GLuint index, const GLushort * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribIFormat(GPVERTEXATTRIBIFORMAT fnptr, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) { -// (*fnptr)(attribindex, size, type, relativeoffset); -// } -// static void glowVertexAttribIFormatNV(GPVERTEXATTRIBIFORMATNV fnptr, GLuint index, GLint size, GLenum type, GLsizei stride) { -// (*fnptr)(index, size, type, stride); -// } -// static void glowVertexAttribIPointerEXT(GPVERTEXATTRIBIPOINTEREXT fnptr, GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(index, size, type, stride, pointer); -// } -// static void glowVertexAttribL1d(GPVERTEXATTRIBL1D fnptr, GLuint index, GLdouble x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttribL1dEXT(GPVERTEXATTRIBL1DEXT fnptr, GLuint index, GLdouble x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttribL1dv(GPVERTEXATTRIBL1DV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL1dvEXT(GPVERTEXATTRIBL1DVEXT fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL1i64NV(GPVERTEXATTRIBL1I64NV fnptr, GLuint index, GLint64EXT x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttribL1i64vNV(GPVERTEXATTRIBL1I64VNV fnptr, GLuint index, const GLint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL1ui64ARB(GPVERTEXATTRIBL1UI64ARB fnptr, GLuint index, GLuint64EXT x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttribL1ui64NV(GPVERTEXATTRIBL1UI64NV fnptr, GLuint index, GLuint64EXT x) { -// (*fnptr)(index, x); -// } -// static void glowVertexAttribL1ui64vARB(GPVERTEXATTRIBL1UI64VARB fnptr, GLuint index, const GLuint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL1ui64vNV(GPVERTEXATTRIBL1UI64VNV fnptr, GLuint index, const GLuint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL2d(GPVERTEXATTRIBL2D fnptr, GLuint index, GLdouble x, GLdouble y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttribL2dEXT(GPVERTEXATTRIBL2DEXT fnptr, GLuint index, GLdouble x, GLdouble y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttribL2dv(GPVERTEXATTRIBL2DV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL2dvEXT(GPVERTEXATTRIBL2DVEXT fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL2i64NV(GPVERTEXATTRIBL2I64NV fnptr, GLuint index, GLint64EXT x, GLint64EXT y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttribL2i64vNV(GPVERTEXATTRIBL2I64VNV fnptr, GLuint index, const GLint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL2ui64NV(GPVERTEXATTRIBL2UI64NV fnptr, GLuint index, GLuint64EXT x, GLuint64EXT y) { -// (*fnptr)(index, x, y); -// } -// static void glowVertexAttribL2ui64vNV(GPVERTEXATTRIBL2UI64VNV fnptr, GLuint index, const GLuint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL3d(GPVERTEXATTRIBL3D fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttribL3dEXT(GPVERTEXATTRIBL3DEXT fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttribL3dv(GPVERTEXATTRIBL3DV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL3dvEXT(GPVERTEXATTRIBL3DVEXT fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL3i64NV(GPVERTEXATTRIBL3I64NV fnptr, GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttribL3i64vNV(GPVERTEXATTRIBL3I64VNV fnptr, GLuint index, const GLint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL3ui64NV(GPVERTEXATTRIBL3UI64NV fnptr, GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z) { -// (*fnptr)(index, x, y, z); -// } -// static void glowVertexAttribL3ui64vNV(GPVERTEXATTRIBL3UI64VNV fnptr, GLuint index, const GLuint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL4d(GPVERTEXATTRIBL4D fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttribL4dEXT(GPVERTEXATTRIBL4DEXT fnptr, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttribL4dv(GPVERTEXATTRIBL4DV fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL4dvEXT(GPVERTEXATTRIBL4DVEXT fnptr, GLuint index, const GLdouble * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL4i64NV(GPVERTEXATTRIBL4I64NV fnptr, GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttribL4i64vNV(GPVERTEXATTRIBL4I64VNV fnptr, GLuint index, const GLint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribL4ui64NV(GPVERTEXATTRIBL4UI64NV fnptr, GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w) { -// (*fnptr)(index, x, y, z, w); -// } -// static void glowVertexAttribL4ui64vNV(GPVERTEXATTRIBL4UI64VNV fnptr, GLuint index, const GLuint64EXT * v) { -// (*fnptr)(index, v); -// } -// static void glowVertexAttribLFormat(GPVERTEXATTRIBLFORMAT fnptr, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) { -// (*fnptr)(attribindex, size, type, relativeoffset); -// } -// static void glowVertexAttribLFormatNV(GPVERTEXATTRIBLFORMATNV fnptr, GLuint index, GLint size, GLenum type, GLsizei stride) { -// (*fnptr)(index, size, type, stride); -// } -// static void glowVertexAttribLPointer(GPVERTEXATTRIBLPOINTER fnptr, GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(index, size, type, stride, pointer); -// } -// static void glowVertexAttribLPointerEXT(GPVERTEXATTRIBLPOINTEREXT fnptr, GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(index, size, type, stride, pointer); -// } -// static void glowVertexAttribP1ui(GPVERTEXATTRIBP1UI fnptr, GLuint index, GLenum type, GLboolean normalized, GLuint value) { -// (*fnptr)(index, type, normalized, value); -// } -// static void glowVertexAttribP1uiv(GPVERTEXATTRIBP1UIV fnptr, GLuint index, GLenum type, GLboolean normalized, const GLuint * value) { -// (*fnptr)(index, type, normalized, value); -// } -// static void glowVertexAttribP2ui(GPVERTEXATTRIBP2UI fnptr, GLuint index, GLenum type, GLboolean normalized, GLuint value) { -// (*fnptr)(index, type, normalized, value); -// } -// static void glowVertexAttribP2uiv(GPVERTEXATTRIBP2UIV fnptr, GLuint index, GLenum type, GLboolean normalized, const GLuint * value) { -// (*fnptr)(index, type, normalized, value); -// } -// static void glowVertexAttribP3ui(GPVERTEXATTRIBP3UI fnptr, GLuint index, GLenum type, GLboolean normalized, GLuint value) { -// (*fnptr)(index, type, normalized, value); -// } -// static void glowVertexAttribP3uiv(GPVERTEXATTRIBP3UIV fnptr, GLuint index, GLenum type, GLboolean normalized, const GLuint * value) { -// (*fnptr)(index, type, normalized, value); -// } -// static void glowVertexAttribP4ui(GPVERTEXATTRIBP4UI fnptr, GLuint index, GLenum type, GLboolean normalized, GLuint value) { -// (*fnptr)(index, type, normalized, value); -// } -// static void glowVertexAttribP4uiv(GPVERTEXATTRIBP4UIV fnptr, GLuint index, GLenum type, GLboolean normalized, const GLuint * value) { -// (*fnptr)(index, type, normalized, value); -// } -// static void glowVertexAttribParameteriAMD(GPVERTEXATTRIBPARAMETERIAMD fnptr, GLuint index, GLenum pname, GLint param) { -// (*fnptr)(index, pname, param); -// } -// static void glowVertexAttribPointer(GPVERTEXATTRIBPOINTER fnptr, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void * pointer) { -// (*fnptr)(index, size, type, normalized, stride, pointer); -// } -// static void glowVertexAttribPointerARB(GPVERTEXATTRIBPOINTERARB fnptr, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void * pointer) { -// (*fnptr)(index, size, type, normalized, stride, pointer); -// } -// static void glowVertexAttribPointerNV(GPVERTEXATTRIBPOINTERNV fnptr, GLuint index, GLint fsize, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(index, fsize, type, stride, pointer); -// } -// static void glowVertexAttribs1dvNV(GPVERTEXATTRIBS1DVNV fnptr, GLuint index, GLsizei count, const GLdouble * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs1fvNV(GPVERTEXATTRIBS1FVNV fnptr, GLuint index, GLsizei count, const GLfloat * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs1hvNV(GPVERTEXATTRIBS1HVNV fnptr, GLuint index, GLsizei n, const GLhalfNV * v) { -// (*fnptr)(index, n, v); -// } -// static void glowVertexAttribs1svNV(GPVERTEXATTRIBS1SVNV fnptr, GLuint index, GLsizei count, const GLshort * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs2dvNV(GPVERTEXATTRIBS2DVNV fnptr, GLuint index, GLsizei count, const GLdouble * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs2fvNV(GPVERTEXATTRIBS2FVNV fnptr, GLuint index, GLsizei count, const GLfloat * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs2hvNV(GPVERTEXATTRIBS2HVNV fnptr, GLuint index, GLsizei n, const GLhalfNV * v) { -// (*fnptr)(index, n, v); -// } -// static void glowVertexAttribs2svNV(GPVERTEXATTRIBS2SVNV fnptr, GLuint index, GLsizei count, const GLshort * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs3dvNV(GPVERTEXATTRIBS3DVNV fnptr, GLuint index, GLsizei count, const GLdouble * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs3fvNV(GPVERTEXATTRIBS3FVNV fnptr, GLuint index, GLsizei count, const GLfloat * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs3hvNV(GPVERTEXATTRIBS3HVNV fnptr, GLuint index, GLsizei n, const GLhalfNV * v) { -// (*fnptr)(index, n, v); -// } -// static void glowVertexAttribs3svNV(GPVERTEXATTRIBS3SVNV fnptr, GLuint index, GLsizei count, const GLshort * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs4dvNV(GPVERTEXATTRIBS4DVNV fnptr, GLuint index, GLsizei count, const GLdouble * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs4fvNV(GPVERTEXATTRIBS4FVNV fnptr, GLuint index, GLsizei count, const GLfloat * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs4hvNV(GPVERTEXATTRIBS4HVNV fnptr, GLuint index, GLsizei n, const GLhalfNV * v) { -// (*fnptr)(index, n, v); -// } -// static void glowVertexAttribs4svNV(GPVERTEXATTRIBS4SVNV fnptr, GLuint index, GLsizei count, const GLshort * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexAttribs4ubvNV(GPVERTEXATTRIBS4UBVNV fnptr, GLuint index, GLsizei count, const GLubyte * v) { -// (*fnptr)(index, count, v); -// } -// static void glowVertexBindingDivisor(GPVERTEXBINDINGDIVISOR fnptr, GLuint bindingindex, GLuint divisor) { -// (*fnptr)(bindingindex, divisor); -// } -// static void glowVertexBlendARB(GPVERTEXBLENDARB fnptr, GLint count) { -// (*fnptr)(count); -// } -// static void glowVertexBlendEnvfATI(GPVERTEXBLENDENVFATI fnptr, GLenum pname, GLfloat param) { -// (*fnptr)(pname, param); -// } -// static void glowVertexBlendEnviATI(GPVERTEXBLENDENVIATI fnptr, GLenum pname, GLint param) { -// (*fnptr)(pname, param); -// } -// static void glowVertexFormatNV(GPVERTEXFORMATNV fnptr, GLint size, GLenum type, GLsizei stride) { -// (*fnptr)(size, type, stride); -// } -// static void glowVertexPointer(GPVERTEXPOINTER fnptr, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(size, type, stride, pointer); -// } -// static void glowVertexPointerEXT(GPVERTEXPOINTEREXT fnptr, GLint size, GLenum type, GLsizei stride, GLsizei count, const void * pointer) { -// (*fnptr)(size, type, stride, count, pointer); -// } -// static void glowVertexPointerListIBM(GPVERTEXPOINTERLISTIBM fnptr, GLint size, GLenum type, GLint stride, const void ** pointer, GLint ptrstride) { -// (*fnptr)(size, type, stride, pointer, ptrstride); -// } -// static void glowVertexPointervINTEL(GPVERTEXPOINTERVINTEL fnptr, GLint size, GLenum type, const void ** pointer) { -// (*fnptr)(size, type, pointer); -// } -// static void glowVertexStream1dATI(GPVERTEXSTREAM1DATI fnptr, GLenum stream, GLdouble x) { -// (*fnptr)(stream, x); -// } -// static void glowVertexStream1dvATI(GPVERTEXSTREAM1DVATI fnptr, GLenum stream, const GLdouble * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream1fATI(GPVERTEXSTREAM1FATI fnptr, GLenum stream, GLfloat x) { -// (*fnptr)(stream, x); -// } -// static void glowVertexStream1fvATI(GPVERTEXSTREAM1FVATI fnptr, GLenum stream, const GLfloat * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream1iATI(GPVERTEXSTREAM1IATI fnptr, GLenum stream, GLint x) { -// (*fnptr)(stream, x); -// } -// static void glowVertexStream1ivATI(GPVERTEXSTREAM1IVATI fnptr, GLenum stream, const GLint * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream1sATI(GPVERTEXSTREAM1SATI fnptr, GLenum stream, GLshort x) { -// (*fnptr)(stream, x); -// } -// static void glowVertexStream1svATI(GPVERTEXSTREAM1SVATI fnptr, GLenum stream, const GLshort * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream2dATI(GPVERTEXSTREAM2DATI fnptr, GLenum stream, GLdouble x, GLdouble y) { -// (*fnptr)(stream, x, y); -// } -// static void glowVertexStream2dvATI(GPVERTEXSTREAM2DVATI fnptr, GLenum stream, const GLdouble * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream2fATI(GPVERTEXSTREAM2FATI fnptr, GLenum stream, GLfloat x, GLfloat y) { -// (*fnptr)(stream, x, y); -// } -// static void glowVertexStream2fvATI(GPVERTEXSTREAM2FVATI fnptr, GLenum stream, const GLfloat * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream2iATI(GPVERTEXSTREAM2IATI fnptr, GLenum stream, GLint x, GLint y) { -// (*fnptr)(stream, x, y); -// } -// static void glowVertexStream2ivATI(GPVERTEXSTREAM2IVATI fnptr, GLenum stream, const GLint * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream2sATI(GPVERTEXSTREAM2SATI fnptr, GLenum stream, GLshort x, GLshort y) { -// (*fnptr)(stream, x, y); -// } -// static void glowVertexStream2svATI(GPVERTEXSTREAM2SVATI fnptr, GLenum stream, const GLshort * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream3dATI(GPVERTEXSTREAM3DATI fnptr, GLenum stream, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(stream, x, y, z); -// } -// static void glowVertexStream3dvATI(GPVERTEXSTREAM3DVATI fnptr, GLenum stream, const GLdouble * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream3fATI(GPVERTEXSTREAM3FATI fnptr, GLenum stream, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(stream, x, y, z); -// } -// static void glowVertexStream3fvATI(GPVERTEXSTREAM3FVATI fnptr, GLenum stream, const GLfloat * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream3iATI(GPVERTEXSTREAM3IATI fnptr, GLenum stream, GLint x, GLint y, GLint z) { -// (*fnptr)(stream, x, y, z); -// } -// static void glowVertexStream3ivATI(GPVERTEXSTREAM3IVATI fnptr, GLenum stream, const GLint * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream3sATI(GPVERTEXSTREAM3SATI fnptr, GLenum stream, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(stream, x, y, z); -// } -// static void glowVertexStream3svATI(GPVERTEXSTREAM3SVATI fnptr, GLenum stream, const GLshort * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream4dATI(GPVERTEXSTREAM4DATI fnptr, GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(stream, x, y, z, w); -// } -// static void glowVertexStream4dvATI(GPVERTEXSTREAM4DVATI fnptr, GLenum stream, const GLdouble * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream4fATI(GPVERTEXSTREAM4FATI fnptr, GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(stream, x, y, z, w); -// } -// static void glowVertexStream4fvATI(GPVERTEXSTREAM4FVATI fnptr, GLenum stream, const GLfloat * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream4iATI(GPVERTEXSTREAM4IATI fnptr, GLenum stream, GLint x, GLint y, GLint z, GLint w) { -// (*fnptr)(stream, x, y, z, w); -// } -// static void glowVertexStream4ivATI(GPVERTEXSTREAM4IVATI fnptr, GLenum stream, const GLint * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexStream4sATI(GPVERTEXSTREAM4SATI fnptr, GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w) { -// (*fnptr)(stream, x, y, z, w); -// } -// static void glowVertexStream4svATI(GPVERTEXSTREAM4SVATI fnptr, GLenum stream, const GLshort * coords) { -// (*fnptr)(stream, coords); -// } -// static void glowVertexWeightPointerEXT(GPVERTEXWEIGHTPOINTEREXT fnptr, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(size, type, stride, pointer); -// } -// static void glowVertexWeightfEXT(GPVERTEXWEIGHTFEXT fnptr, GLfloat weight) { -// (*fnptr)(weight); -// } -// static void glowVertexWeightfvEXT(GPVERTEXWEIGHTFVEXT fnptr, const GLfloat * weight) { -// (*fnptr)(weight); -// } -// static void glowVertexWeighthNV(GPVERTEXWEIGHTHNV fnptr, GLhalfNV weight) { -// (*fnptr)(weight); -// } -// static void glowVertexWeighthvNV(GPVERTEXWEIGHTHVNV fnptr, const GLhalfNV * weight) { -// (*fnptr)(weight); -// } -// static GLenum glowVideoCaptureNV(GPVIDEOCAPTURENV fnptr, GLuint video_capture_slot, GLuint * sequence_num, GLuint64EXT * capture_time) { -// return (*fnptr)(video_capture_slot, sequence_num, capture_time); -// } -// static void glowVideoCaptureStreamParameterdvNV(GPVIDEOCAPTURESTREAMPARAMETERDVNV fnptr, GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble * params) { -// (*fnptr)(video_capture_slot, stream, pname, params); -// } -// static void glowVideoCaptureStreamParameterfvNV(GPVIDEOCAPTURESTREAMPARAMETERFVNV fnptr, GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat * params) { -// (*fnptr)(video_capture_slot, stream, pname, params); -// } -// static void glowVideoCaptureStreamParameterivNV(GPVIDEOCAPTURESTREAMPARAMETERIVNV fnptr, GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint * params) { -// (*fnptr)(video_capture_slot, stream, pname, params); -// } -// static void glowViewport(GPVIEWPORT fnptr, GLint x, GLint y, GLsizei width, GLsizei height) { -// (*fnptr)(x, y, width, height); -// } -// static void glowViewportArrayv(GPVIEWPORTARRAYV fnptr, GLuint first, GLsizei count, const GLfloat * v) { -// (*fnptr)(first, count, v); -// } -// static void glowViewportIndexedf(GPVIEWPORTINDEXEDF fnptr, GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h) { -// (*fnptr)(index, x, y, w, h); -// } -// static void glowViewportIndexedfv(GPVIEWPORTINDEXEDFV fnptr, GLuint index, const GLfloat * v) { -// (*fnptr)(index, v); -// } -// static void glowWaitSync(GPWAITSYNC fnptr, GLsync sync, GLbitfield flags, GLuint64 timeout) { -// (*fnptr)(sync, flags, timeout); -// } -// static void glowWeightPathsNV(GPWEIGHTPATHSNV fnptr, GLuint resultPath, GLsizei numPaths, const GLuint * paths, const GLfloat * weights) { -// (*fnptr)(resultPath, numPaths, paths, weights); -// } -// static void glowWeightPointerARB(GPWEIGHTPOINTERARB fnptr, GLint size, GLenum type, GLsizei stride, const void * pointer) { -// (*fnptr)(size, type, stride, pointer); -// } -// static void glowWeightbvARB(GPWEIGHTBVARB fnptr, GLint size, const GLbyte * weights) { -// (*fnptr)(size, weights); -// } -// static void glowWeightdvARB(GPWEIGHTDVARB fnptr, GLint size, const GLdouble * weights) { -// (*fnptr)(size, weights); -// } -// static void glowWeightfvARB(GPWEIGHTFVARB fnptr, GLint size, const GLfloat * weights) { -// (*fnptr)(size, weights); -// } -// static void glowWeightivARB(GPWEIGHTIVARB fnptr, GLint size, const GLint * weights) { -// (*fnptr)(size, weights); -// } -// static void glowWeightsvARB(GPWEIGHTSVARB fnptr, GLint size, const GLshort * weights) { -// (*fnptr)(size, weights); -// } -// static void glowWeightubvARB(GPWEIGHTUBVARB fnptr, GLint size, const GLubyte * weights) { -// (*fnptr)(size, weights); -// } -// static void glowWeightuivARB(GPWEIGHTUIVARB fnptr, GLint size, const GLuint * weights) { -// (*fnptr)(size, weights); -// } -// static void glowWeightusvARB(GPWEIGHTUSVARB fnptr, GLint size, const GLushort * weights) { -// (*fnptr)(size, weights); -// } -// static void glowWindowPos2d(GPWINDOWPOS2D fnptr, GLdouble x, GLdouble y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2dARB(GPWINDOWPOS2DARB fnptr, GLdouble x, GLdouble y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2dMESA(GPWINDOWPOS2DMESA fnptr, GLdouble x, GLdouble y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2dv(GPWINDOWPOS2DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2dvARB(GPWINDOWPOS2DVARB fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2dvMESA(GPWINDOWPOS2DVMESA fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2f(GPWINDOWPOS2F fnptr, GLfloat x, GLfloat y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2fARB(GPWINDOWPOS2FARB fnptr, GLfloat x, GLfloat y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2fMESA(GPWINDOWPOS2FMESA fnptr, GLfloat x, GLfloat y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2fv(GPWINDOWPOS2FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2fvARB(GPWINDOWPOS2FVARB fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2fvMESA(GPWINDOWPOS2FVMESA fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2i(GPWINDOWPOS2I fnptr, GLint x, GLint y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2iARB(GPWINDOWPOS2IARB fnptr, GLint x, GLint y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2iMESA(GPWINDOWPOS2IMESA fnptr, GLint x, GLint y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2iv(GPWINDOWPOS2IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2ivARB(GPWINDOWPOS2IVARB fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2ivMESA(GPWINDOWPOS2IVMESA fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2s(GPWINDOWPOS2S fnptr, GLshort x, GLshort y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2sARB(GPWINDOWPOS2SARB fnptr, GLshort x, GLshort y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2sMESA(GPWINDOWPOS2SMESA fnptr, GLshort x, GLshort y) { -// (*fnptr)(x, y); -// } -// static void glowWindowPos2sv(GPWINDOWPOS2SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2svARB(GPWINDOWPOS2SVARB fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos2svMESA(GPWINDOWPOS2SVMESA fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3d(GPWINDOWPOS3D fnptr, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3dARB(GPWINDOWPOS3DARB fnptr, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3dMESA(GPWINDOWPOS3DMESA fnptr, GLdouble x, GLdouble y, GLdouble z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3dv(GPWINDOWPOS3DV fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3dvARB(GPWINDOWPOS3DVARB fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3dvMESA(GPWINDOWPOS3DVMESA fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3f(GPWINDOWPOS3F fnptr, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3fARB(GPWINDOWPOS3FARB fnptr, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3fMESA(GPWINDOWPOS3FMESA fnptr, GLfloat x, GLfloat y, GLfloat z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3fv(GPWINDOWPOS3FV fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3fvARB(GPWINDOWPOS3FVARB fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3fvMESA(GPWINDOWPOS3FVMESA fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3i(GPWINDOWPOS3I fnptr, GLint x, GLint y, GLint z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3iARB(GPWINDOWPOS3IARB fnptr, GLint x, GLint y, GLint z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3iMESA(GPWINDOWPOS3IMESA fnptr, GLint x, GLint y, GLint z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3iv(GPWINDOWPOS3IV fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3ivARB(GPWINDOWPOS3IVARB fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3ivMESA(GPWINDOWPOS3IVMESA fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3s(GPWINDOWPOS3S fnptr, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3sARB(GPWINDOWPOS3SARB fnptr, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3sMESA(GPWINDOWPOS3SMESA fnptr, GLshort x, GLshort y, GLshort z) { -// (*fnptr)(x, y, z); -// } -// static void glowWindowPos3sv(GPWINDOWPOS3SV fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3svARB(GPWINDOWPOS3SVARB fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos3svMESA(GPWINDOWPOS3SVMESA fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos4dMESA(GPWINDOWPOS4DMESA fnptr, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowWindowPos4dvMESA(GPWINDOWPOS4DVMESA fnptr, const GLdouble * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos4fMESA(GPWINDOWPOS4FMESA fnptr, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowWindowPos4fvMESA(GPWINDOWPOS4FVMESA fnptr, const GLfloat * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos4iMESA(GPWINDOWPOS4IMESA fnptr, GLint x, GLint y, GLint z, GLint w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowWindowPos4ivMESA(GPWINDOWPOS4IVMESA fnptr, const GLint * v) { -// (*fnptr)(v); -// } -// static void glowWindowPos4sMESA(GPWINDOWPOS4SMESA fnptr, GLshort x, GLshort y, GLshort z, GLshort w) { -// (*fnptr)(x, y, z, w); -// } -// static void glowWindowPos4svMESA(GPWINDOWPOS4SVMESA fnptr, const GLshort * v) { -// (*fnptr)(v); -// } -// static void glowWriteMaskEXT(GPWRITEMASKEXT fnptr, GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW) { -// (*fnptr)(res, in, outX, outY, outZ, outW); -// } -import "C" -import ( - "errors" - "unsafe" -) - -const ( - GL_1PASS_EXT = 0x80A1 - GL_1PASS_SGIS = 0x80A1 - GL_2D = 0x0600 - GL_2PASS_0_EXT = 0x80A2 - GL_2PASS_0_SGIS = 0x80A2 - GL_2PASS_1_EXT = 0x80A3 - GL_2PASS_1_SGIS = 0x80A3 - GL_2X_BIT_ATI = 0x00000001 - GL_2_BYTES = 0x1407 - GL_3D = 0x0601 - GL_3D_COLOR = 0x0602 - GL_3D_COLOR_TEXTURE = 0x0603 - GL_3_BYTES = 0x1408 - GL_422_AVERAGE_EXT = 0x80CE - GL_422_EXT = 0x80CC - GL_422_REV_AVERAGE_EXT = 0x80CF - GL_422_REV_EXT = 0x80CD - GL_4D_COLOR_TEXTURE = 0x0604 - GL_4PASS_0_EXT = 0x80A4 - GL_4PASS_0_SGIS = 0x80A4 - GL_4PASS_1_EXT = 0x80A5 - GL_4PASS_1_SGIS = 0x80A5 - GL_4PASS_2_EXT = 0x80A6 - GL_4PASS_2_SGIS = 0x80A6 - GL_4PASS_3_EXT = 0x80A7 - GL_4PASS_3_SGIS = 0x80A7 - GL_4X_BIT_ATI = 0x00000002 - GL_4_BYTES = 0x1409 - GL_8X_BIT_ATI = 0x00000004 - ABGR_EXT = 0x8000 - ACCUM = 0x0100 - ACCUM_ADJACENT_PAIRS_NV = 0x90AD - ACCUM_ALPHA_BITS = 0x0D5B - ACCUM_BLUE_BITS = 0x0D5A - ACCUM_BUFFER_BIT = 0x00000200 - ACCUM_CLEAR_VALUE = 0x0B80 - ACCUM_GREEN_BITS = 0x0D59 - ACCUM_RED_BITS = 0x0D58 - ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9 - ACTIVE_ATTRIBUTES = 0x8B89 - ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A - ACTIVE_PROGRAM = 0x8259 - ACTIVE_PROGRAM_EXT = 0x8B8D - ACTIVE_RESOURCES = 0x92F5 - ACTIVE_STENCIL_FACE_EXT = 0x8911 - ACTIVE_SUBROUTINES = 0x8DE5 - ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48 - ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6 - ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47 - ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49 - ACTIVE_TEXTURE = 0x84E0 - ACTIVE_TEXTURE_ARB = 0x84E0 - ACTIVE_UNIFORMS = 0x8B86 - ACTIVE_UNIFORM_BLOCKS = 0x8A36 - ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35 - ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87 - ACTIVE_VARIABLES = 0x9305 - ACTIVE_VARYINGS_NV = 0x8C81 - ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82 - ACTIVE_VERTEX_UNITS_ARB = 0x86A5 - ADD = 0x0104 - ADD_ATI = 0x8963 - ADD_SIGNED = 0x8574 - ADD_SIGNED_ARB = 0x8574 - ADD_SIGNED_EXT = 0x8574 - ADJACENT_PAIRS_NV = 0x90AE - AFFINE_2D_NV = 0x9092 - AFFINE_3D_NV = 0x9094 - ALIASED_LINE_WIDTH_RANGE = 0x846E - ALIASED_POINT_SIZE_RANGE = 0x846D - ALLOW_DRAW_FRG_HINT_PGI = 0x1A210 - ALLOW_DRAW_MEM_HINT_PGI = 0x1A211 - ALLOW_DRAW_OBJ_HINT_PGI = 0x1A20E - ALLOW_DRAW_WIN_HINT_PGI = 0x1A20F - ALL_ATTRIB_BITS = 0xFFFFFFFF - ALL_BARRIER_BITS = 0xFFFFFFFF - ALL_BARRIER_BITS_EXT = 0xFFFFFFFF - ALL_COMPLETED_NV = 0x84F2 - ALL_SHADER_BITS = 0xFFFFFFFF - ALL_SHADER_BITS_EXT = 0xFFFFFFFF - ALL_STATIC_DATA_IBM = 103060 - ALPHA = 0x1906 - ALPHA12 = 0x803D - ALPHA12_EXT = 0x803D - ALPHA16 = 0x803E - ALPHA16F_ARB = 0x881C - ALPHA16I_EXT = 0x8D8A - ALPHA16UI_EXT = 0x8D78 - ALPHA16_EXT = 0x803E - ALPHA16_SNORM = 0x9018 - ALPHA32F_ARB = 0x8816 - ALPHA32I_EXT = 0x8D84 - ALPHA32UI_EXT = 0x8D72 - ALPHA4 = 0x803B - ALPHA4_EXT = 0x803B - ALPHA8 = 0x803C - ALPHA8I_EXT = 0x8D90 - ALPHA8UI_EXT = 0x8D7E - ALPHA8_EXT = 0x803C - ALPHA8_SNORM = 0x9014 - ALPHA_BIAS = 0x0D1D - ALPHA_BITS = 0x0D55 - ALPHA_FLOAT16_APPLE = 0x881C - ALPHA_FLOAT16_ATI = 0x881C - ALPHA_FLOAT32_APPLE = 0x8816 - ALPHA_FLOAT32_ATI = 0x8816 - ALPHA_INTEGER_EXT = 0x8D97 - ALPHA_MAX_CLAMP_INGR = 0x8567 - ALPHA_MAX_SGIX = 0x8321 - ALPHA_MIN_CLAMP_INGR = 0x8563 - ALPHA_MIN_SGIX = 0x8320 - ALPHA_SCALE = 0x0D1C - ALPHA_SNORM = 0x9010 - ALPHA_TEST = 0x0BC0 - ALPHA_TEST_FUNC = 0x0BC1 - ALPHA_TEST_REF = 0x0BC2 - ALREADY_SIGNALED = 0x911A - ALWAYS = 0x0207 - ALWAYS_FAST_HINT_PGI = 0x1A20C - ALWAYS_SOFT_HINT_PGI = 0x1A20D - AMBIENT = 0x1200 - AMBIENT_AND_DIFFUSE = 0x1602 - AND = 0x1501 - AND_INVERTED = 0x1504 - AND_REVERSE = 0x1502 - ANY_SAMPLES_PASSED = 0x8C2F - ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A - ARC_TO_NV = 0xFE - ARRAY_BUFFER = 0x8892 - ARRAY_BUFFER_ARB = 0x8892 - ARRAY_BUFFER_BINDING = 0x8894 - ARRAY_BUFFER_BINDING_ARB = 0x8894 - ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9 - ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8 - ARRAY_OBJECT_BUFFER_ATI = 0x8766 - ARRAY_OBJECT_OFFSET_ATI = 0x8767 - ARRAY_SIZE = 0x92FB - ARRAY_STRIDE = 0x92FE - ASYNC_DRAW_PIXELS_SGIX = 0x835D - ASYNC_HISTOGRAM_SGIX = 0x832C - ASYNC_MARKER_SGIX = 0x8329 - ASYNC_READ_PIXELS_SGIX = 0x835E - ASYNC_TEX_IMAGE_SGIX = 0x835C - ATOMIC_COUNTER_BARRIER_BIT = 0x00001000 - ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000 - ATOMIC_COUNTER_BUFFER = 0x92C0 - ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5 - ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6 - ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1 - ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4 - ATOMIC_COUNTER_BUFFER_INDEX = 0x9301 - ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED - ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB - ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA - ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8 - ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9 - ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7 - ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3 - ATOMIC_COUNTER_BUFFER_START = 0x92C2 - ATTACHED_SHADERS = 0x8B85 - ATTENUATION_EXT = 0x834D - ATTRIB_ARRAY_POINTER_NV = 0x8645 - ATTRIB_ARRAY_SIZE_NV = 0x8623 - ATTRIB_ARRAY_STRIDE_NV = 0x8624 - ATTRIB_ARRAY_TYPE_NV = 0x8625 - ATTRIB_STACK_DEPTH = 0x0BB0 - AUTO_GENERATE_MIPMAP = 0x8295 - AUTO_NORMAL = 0x0D80 - AUX0 = 0x0409 - AUX1 = 0x040A - AUX2 = 0x040B - AUX3 = 0x040C - AUX_BUFFERS = 0x0C00 - AUX_DEPTH_STENCIL_APPLE = 0x8A14 - AVERAGE_EXT = 0x8335 - AVERAGE_HP = 0x8160 - BACK = 0x0405 - BACK_LEFT = 0x0402 - BACK_NORMALS_HINT_PGI = 0x1A223 - BACK_PRIMARY_COLOR_NV = 0x8C77 - BACK_RIGHT = 0x0403 - BACK_SECONDARY_COLOR_NV = 0x8C78 - BEVEL_NV = 0x90A6 - BGR = 0x80E0 - BGRA = 0x80E1 - BGRA_EXT = 0x80E1 - BGRA_INTEGER_EXT = 0x8D9B - BGR_EXT = 0x80E0 - BGR_INTEGER_EXT = 0x8D9A - BIAS_BIT_ATI = 0x00000008 - BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541 - BINORMAL_ARRAY_EXT = 0x843A - BINORMAL_ARRAY_POINTER_EXT = 0x8443 - BINORMAL_ARRAY_STRIDE_EXT = 0x8441 - BINORMAL_ARRAY_TYPE_EXT = 0x8440 - BITMAP = 0x1A00 - BITMAP_TOKEN = 0x0704 - BLEND = 0x0BE2 - BLEND_ADVANCED_COHERENT_KHR = 0x9285 - BLEND_ADVANCED_COHERENT_NV = 0x9285 - BLEND_COLOR = 0x8005 - BLEND_COLOR_EXT = 0x8005 - BLEND_DST = 0x0BE0 - BLEND_DST_ALPHA = 0x80CA - BLEND_DST_ALPHA_EXT = 0x80CA - BLEND_DST_RGB = 0x80C8 - BLEND_DST_RGB_EXT = 0x80C8 - BLEND_EQUATION = 0x8009 - BLEND_EQUATION_ALPHA = 0x883D - BLEND_EQUATION_ALPHA_EXT = 0x883D - BLEND_EQUATION_EXT = 0x8009 - BLEND_EQUATION_RGB = 0x8009 - BLEND_EQUATION_RGB_EXT = 0x8009 - BLEND_OVERLAP_NV = 0x9281 - BLEND_PREMULTIPLIED_SRC_NV = 0x9280 - BLEND_SRC = 0x0BE1 - BLEND_SRC_ALPHA = 0x80CB - BLEND_SRC_ALPHA_EXT = 0x80CB - BLEND_SRC_RGB = 0x80C9 - BLEND_SRC_RGB_EXT = 0x80C9 - BLOCK_INDEX = 0x92FD - BLUE = 0x1905 - BLUE_BIAS = 0x0D1B - BLUE_BITS = 0x0D54 - BLUE_BIT_ATI = 0x00000004 - BLUE_INTEGER_EXT = 0x8D96 - BLUE_MAX_CLAMP_INGR = 0x8566 - BLUE_MIN_CLAMP_INGR = 0x8562 - BLUE_NV = 0x1905 - BLUE_SCALE = 0x0D1A - BOLD_BIT_NV = 0x01 - BOOL = 0x8B56 - BOOL_ARB = 0x8B56 - BOOL_VEC2 = 0x8B57 - BOOL_VEC2_ARB = 0x8B57 - BOOL_VEC3 = 0x8B58 - BOOL_VEC3_ARB = 0x8B58 - BOOL_VEC4 = 0x8B59 - BOOL_VEC4_ARB = 0x8B59 - BOUNDING_BOX_NV = 0x908D - BOUNDING_BOX_OF_BOUNDING_BOXES_NV = 0x909C - BUFFER = 0x82E0 - BUFFER_ACCESS = 0x88BB - BUFFER_ACCESS_ARB = 0x88BB - BUFFER_BINDING = 0x9302 - BUFFER_DATA_SIZE = 0x9303 - BUFFER_FLUSHING_UNMAP_APPLE = 0x8A13 - BUFFER_GPU_ADDRESS_NV = 0x8F1D - BUFFER_IMMUTABLE_STORAGE = 0x821F - BUFFER_KHR = 0x82E0 - BUFFER_MAPPED = 0x88BC - BUFFER_MAPPED_ARB = 0x88BC - BUFFER_MAP_POINTER = 0x88BD - BUFFER_MAP_POINTER_ARB = 0x88BD - BUFFER_OBJECT_APPLE = 0x85B3 - BUFFER_OBJECT_EXT = 0x9151 - BUFFER_SERIALIZED_MODIFY_APPLE = 0x8A12 - BUFFER_SIZE = 0x8764 - BUFFER_SIZE_ARB = 0x8764 - BUFFER_STORAGE_FLAGS = 0x8220 - BUFFER_UPDATE_BARRIER_BIT = 0x00000200 - BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200 - BUFFER_USAGE = 0x8765 - BUFFER_USAGE_ARB = 0x8765 - BUFFER_VARIABLE = 0x92E5 - BUMP_ENVMAP_ATI = 0x877B - BUMP_NUM_TEX_UNITS_ATI = 0x8777 - BUMP_ROT_MATRIX_ATI = 0x8775 - BUMP_ROT_MATRIX_SIZE_ATI = 0x8776 - BUMP_TARGET_ATI = 0x877C - BUMP_TEX_UNITS_ATI = 0x8778 - BYTE = 0x1400 - C3F_V3F = 0x2A24 - C4F_N3F_V3F = 0x2A26 - C4UB_V2F = 0x2A22 - C4UB_V3F = 0x2A23 - CALLIGRAPHIC_FRAGMENT_SGIX = 0x8183 - CAVEAT_SUPPORT = 0x82B8 - CCW = 0x0901 - CIRCULAR_CCW_ARC_TO_NV = 0xF8 - CIRCULAR_CW_ARC_TO_NV = 0xFA - CIRCULAR_TANGENT_ARC_TO_NV = 0xFC - CLAMP = 0x2900 - CLAMP_FRAGMENT_COLOR_ARB = 0x891B - CLAMP_READ_COLOR_ARB = 0x891C - CLAMP_TO_BORDER = 0x812D - CLAMP_TO_BORDER_ARB = 0x812D - CLAMP_TO_BORDER_SGIS = 0x812D - CLAMP_TO_EDGE = 0x812F - CLAMP_TO_EDGE_SGIS = 0x812F - CLAMP_VERTEX_COLOR_ARB = 0x891A - CLEAR = 0x1500 - CLEAR_BUFFER = 0x82B4 - CLEAR_TEXTURE = 0x9365 - CLIENT_ACTIVE_TEXTURE = 0x84E1 - CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1 - CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF - CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1 - CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000 - CLIENT_PIXEL_STORE_BIT = 0x00000001 - CLIENT_STORAGE_BIT = 0x0200 - CLIENT_VERTEX_ARRAY_BIT = 0x00000002 - CLIPPING_INPUT_PRIMITIVES_ARB = 0x82F6 - CLIPPING_OUTPUT_PRIMITIVES_ARB = 0x82F7 - CLIP_DEPTH_MODE = 0x935D - CLIP_DISTANCE_NV = 0x8C7A - CLIP_FAR_HINT_PGI = 0x1A221 - CLIP_NEAR_HINT_PGI = 0x1A220 - CLIP_ORIGIN = 0x935C - CLIP_PLANE0 = 0x3000 - CLIP_PLANE1 = 0x3001 - CLIP_PLANE2 = 0x3002 - CLIP_PLANE3 = 0x3003 - CLIP_PLANE4 = 0x3004 - CLIP_PLANE5 = 0x3005 - CLIP_VOLUME_CLIPPING_HINT_EXT = 0x80F0 - CLOSE_PATH_NV = 0x00 - CMYKA_EXT = 0x800D - CMYK_EXT = 0x800C - CND0_ATI = 0x896B - CND_ATI = 0x896A - COEFF = 0x0A00 - COLOR = 0x1800 - COLOR3_BIT_PGI = 0x00010000 - COLOR4_BIT_PGI = 0x00020000 - COLORBURN_KHR = 0x929A - COLORBURN_NV = 0x929A - COLORDODGE_KHR = 0x9299 - COLORDODGE_NV = 0x9299 - COLOR_ALPHA_PAIRING_ATI = 0x8975 - COLOR_ARRAY = 0x8076 - COLOR_ARRAY_ADDRESS_NV = 0x8F23 - COLOR_ARRAY_BUFFER_BINDING = 0x8898 - COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898 - COLOR_ARRAY_COUNT_EXT = 0x8084 - COLOR_ARRAY_EXT = 0x8076 - COLOR_ARRAY_LENGTH_NV = 0x8F2D - COLOR_ARRAY_LIST_IBM = 103072 - COLOR_ARRAY_LIST_STRIDE_IBM = 103082 - COLOR_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F7 - COLOR_ARRAY_POINTER = 0x8090 - COLOR_ARRAY_POINTER_EXT = 0x8090 - COLOR_ARRAY_SIZE = 0x8081 - COLOR_ARRAY_SIZE_EXT = 0x8081 - COLOR_ARRAY_STRIDE = 0x8083 - COLOR_ARRAY_STRIDE_EXT = 0x8083 - COLOR_ARRAY_TYPE = 0x8082 - COLOR_ARRAY_TYPE_EXT = 0x8082 - COLOR_ATTACHMENT0 = 0x8CE0 - COLOR_ATTACHMENT0_EXT = 0x8CE0 - COLOR_ATTACHMENT1 = 0x8CE1 - COLOR_ATTACHMENT10 = 0x8CEA - COLOR_ATTACHMENT10_EXT = 0x8CEA - COLOR_ATTACHMENT11 = 0x8CEB - COLOR_ATTACHMENT11_EXT = 0x8CEB - COLOR_ATTACHMENT12 = 0x8CEC - COLOR_ATTACHMENT12_EXT = 0x8CEC - COLOR_ATTACHMENT13 = 0x8CED - COLOR_ATTACHMENT13_EXT = 0x8CED - COLOR_ATTACHMENT14 = 0x8CEE - COLOR_ATTACHMENT14_EXT = 0x8CEE - COLOR_ATTACHMENT15 = 0x8CEF - COLOR_ATTACHMENT15_EXT = 0x8CEF - COLOR_ATTACHMENT1_EXT = 0x8CE1 - COLOR_ATTACHMENT2 = 0x8CE2 - COLOR_ATTACHMENT2_EXT = 0x8CE2 - COLOR_ATTACHMENT3 = 0x8CE3 - COLOR_ATTACHMENT3_EXT = 0x8CE3 - COLOR_ATTACHMENT4 = 0x8CE4 - COLOR_ATTACHMENT4_EXT = 0x8CE4 - COLOR_ATTACHMENT5 = 0x8CE5 - COLOR_ATTACHMENT5_EXT = 0x8CE5 - COLOR_ATTACHMENT6 = 0x8CE6 - COLOR_ATTACHMENT6_EXT = 0x8CE6 - COLOR_ATTACHMENT7 = 0x8CE7 - COLOR_ATTACHMENT7_EXT = 0x8CE7 - COLOR_ATTACHMENT8 = 0x8CE8 - COLOR_ATTACHMENT8_EXT = 0x8CE8 - COLOR_ATTACHMENT9 = 0x8CE9 - COLOR_ATTACHMENT9_EXT = 0x8CE9 - COLOR_BUFFER_BIT = 0x00004000 - COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835 - COLOR_CLEAR_VALUE = 0x0C22 - COLOR_COMPONENTS = 0x8283 - COLOR_ENCODING = 0x8296 - COLOR_FLOAT_APPLE = 0x8A0F - COLOR_INDEX = 0x1900 - COLOR_INDEX12_EXT = 0x80E6 - COLOR_INDEX16_EXT = 0x80E7 - COLOR_INDEX1_EXT = 0x80E2 - COLOR_INDEX2_EXT = 0x80E3 - COLOR_INDEX4_EXT = 0x80E4 - COLOR_INDEX8_EXT = 0x80E5 - COLOR_INDEXES = 0x1603 - COLOR_LOGIC_OP = 0x0BF2 - COLOR_MATERIAL = 0x0B57 - COLOR_MATERIAL_FACE = 0x0B55 - COLOR_MATERIAL_PARAMETER = 0x0B56 - COLOR_MATRIX_SGI = 0x80B1 - COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B2 - COLOR_RENDERABLE = 0x8286 - COLOR_SAMPLES_NV = 0x8E20 - COLOR_SUM = 0x8458 - COLOR_SUM_ARB = 0x8458 - COLOR_SUM_CLAMP_NV = 0x854F - COLOR_SUM_EXT = 0x8458 - COLOR_TABLE_ALPHA_SIZE_SGI = 0x80DD - COLOR_TABLE_BIAS_SGI = 0x80D7 - COLOR_TABLE_BLUE_SIZE_SGI = 0x80DC - COLOR_TABLE_FORMAT_SGI = 0x80D8 - COLOR_TABLE_GREEN_SIZE_SGI = 0x80DB - COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF - COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE - COLOR_TABLE_RED_SIZE_SGI = 0x80DA - COLOR_TABLE_SCALE_SGI = 0x80D6 - COLOR_TABLE_SGI = 0x80D0 - COLOR_TABLE_WIDTH_SGI = 0x80D9 - COLOR_WRITEMASK = 0x0C23 - COMBINE = 0x8570 - COMBINE4_NV = 0x8503 - COMBINER0_NV = 0x8550 - COMBINER1_NV = 0x8551 - COMBINER2_NV = 0x8552 - COMBINER3_NV = 0x8553 - COMBINER4_NV = 0x8554 - COMBINER5_NV = 0x8555 - COMBINER6_NV = 0x8556 - COMBINER7_NV = 0x8557 - COMBINER_AB_DOT_PRODUCT_NV = 0x8545 - COMBINER_AB_OUTPUT_NV = 0x854A - COMBINER_BIAS_NV = 0x8549 - COMBINER_CD_DOT_PRODUCT_NV = 0x8546 - COMBINER_CD_OUTPUT_NV = 0x854B - COMBINER_COMPONENT_USAGE_NV = 0x8544 - COMBINER_INPUT_NV = 0x8542 - COMBINER_MAPPING_NV = 0x8543 - COMBINER_MUX_SUM_NV = 0x8547 - COMBINER_SCALE_NV = 0x8548 - COMBINER_SUM_OUTPUT_NV = 0x854C - COMBINE_ALPHA = 0x8572 - COMBINE_ALPHA_ARB = 0x8572 - COMBINE_ALPHA_EXT = 0x8572 - COMBINE_ARB = 0x8570 - COMBINE_EXT = 0x8570 - COMBINE_RGB = 0x8571 - COMBINE_RGB_ARB = 0x8571 - COMBINE_RGB_EXT = 0x8571 - COMMAND_BARRIER_BIT = 0x00000040 - COMMAND_BARRIER_BIT_EXT = 0x00000040 - COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E - COMPARE_R_TO_TEXTURE = 0x884E - COMPARE_R_TO_TEXTURE_ARB = 0x884E - COMPATIBLE_SUBROUTINES = 0x8E4B - COMPILE = 0x1300 - COMPILE_AND_EXECUTE = 0x1301 - COMPILE_STATUS = 0x8B81 - COMPRESSED_ALPHA = 0x84E9 - COMPRESSED_ALPHA_ARB = 0x84E9 - COMPRESSED_INTENSITY = 0x84EC - COMPRESSED_INTENSITY_ARB = 0x84EC - COMPRESSED_LUMINANCE = 0x84EA - COMPRESSED_LUMINANCE_ALPHA = 0x84EB - COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB - COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72 - COMPRESSED_LUMINANCE_ARB = 0x84EA - COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70 - COMPRESSED_R11_EAC = 0x9270 - COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD - COMPRESSED_RED_RGTC1 = 0x8DBB - COMPRESSED_RED_RGTC1_EXT = 0x8DBB - COMPRESSED_RG11_EAC = 0x9272 - COMPRESSED_RGB = 0x84ED - COMPRESSED_RGB8_ETC2 = 0x9274 - COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276 - COMPRESSED_RGBA = 0x84EE - COMPRESSED_RGBA8_ETC2_EAC = 0x9278 - COMPRESSED_RGBA_ARB = 0x84EE - COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB - COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8 - COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9 - COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA - COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC - COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD - COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0 - COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1 - COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2 - COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3 - COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4 - COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5 - COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6 - COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7 - COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C - COMPRESSED_RGBA_FXT1_3DFX = 0x86B1 - COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1 - COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2 - COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3 - COMPRESSED_RGB_ARB = 0x84ED - COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E - COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F - COMPRESSED_RGB_FXT1_3DFX = 0x86B0 - COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0 - COMPRESSED_RG_RGTC2 = 0x8DBD - COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73 - COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71 - COMPRESSED_SIGNED_R11_EAC = 0x9271 - COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE - COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC - COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC - COMPRESSED_SIGNED_RG11_EAC = 0x9273 - COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE - COMPRESSED_SLUMINANCE = 0x8C4A - COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B - COMPRESSED_SLUMINANCE_ALPHA_EXT = 0x8C4B - COMPRESSED_SLUMINANCE_EXT = 0x8C4A - COMPRESSED_SRGB = 0x8C48 - COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB - COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8 - COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9 - COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA - COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC - COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD - COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0 - COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1 - COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2 - COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3 - COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4 - COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5 - COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6 - COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7 - COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279 - COMPRESSED_SRGB8_ETC2 = 0x9275 - COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277 - COMPRESSED_SRGB_ALPHA = 0x8C49 - COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D - COMPRESSED_SRGB_ALPHA_EXT = 0x8C49 - COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D - COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E - COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F - COMPRESSED_SRGB_EXT = 0x8C48 - COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C - COMPRESSED_TEXTURE_FORMATS = 0x86A3 - COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3 - COMPUTE_PROGRAM_NV = 0x90FB - COMPUTE_PROGRAM_PARAMETER_BUFFER_NV = 0x90FC - COMPUTE_SHADER = 0x91B9 - COMPUTE_SHADER_BIT = 0x00000020 - COMPUTE_SHADER_INVOCATIONS_ARB = 0x82F5 - COMPUTE_SUBROUTINE = 0x92ED - COMPUTE_SUBROUTINE_UNIFORM = 0x92F3 - COMPUTE_TEXTURE = 0x82A0 - COMPUTE_WORK_GROUP_SIZE = 0x8267 - COMP_BIT_ATI = 0x00000002 - CONDITION_SATISFIED = 0x911C - CONIC_CURVE_TO_NV = 0x1A - CONJOINT_NV = 0x9284 - CONSERVE_MEMORY_HINT_PGI = 0x1A1FD - CONSTANT = 0x8576 - CONSTANT_ALPHA = 0x8003 - CONSTANT_ALPHA_EXT = 0x8003 - CONSTANT_ARB = 0x8576 - CONSTANT_ATTENUATION = 0x1207 - CONSTANT_BORDER_HP = 0x8151 - CONSTANT_COLOR = 0x8001 - CONSTANT_COLOR0_NV = 0x852A - CONSTANT_COLOR1_NV = 0x852B - CONSTANT_COLOR_EXT = 0x8001 - CONSTANT_EXT = 0x8576 - CONST_EYE_NV = 0x86E5 - CONTEXT_FLAG_DEBUG_BIT = 0x00000002 - CONTEXT_FLAG_DEBUG_BIT_KHR = 0x00000002 - CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004 - CONTEXT_LOST = 0x0507 - CONTEXT_LOST_KHR = 0x0507 - CONTEXT_RELEASE_BEHAVIOR = 0x82FB - CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC - CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR = 0x82FC - CONTEXT_RELEASE_BEHAVIOR_KHR = 0x82FB - CONTEXT_ROBUST_ACCESS = 0x90F3 - CONTEXT_ROBUST_ACCESS_KHR = 0x90F3 - CONTINUOUS_AMD = 0x9007 - CONTRAST_NV = 0x92A1 - CONVEX_HULL_NV = 0x908B - CONVOLUTION_1D_EXT = 0x8010 - CONVOLUTION_2D_EXT = 0x8011 - CONVOLUTION_BORDER_COLOR_HP = 0x8154 - CONVOLUTION_BORDER_MODE_EXT = 0x8013 - CONVOLUTION_FILTER_BIAS_EXT = 0x8015 - CONVOLUTION_FILTER_SCALE_EXT = 0x8014 - CONVOLUTION_FORMAT_EXT = 0x8017 - CONVOLUTION_HEIGHT_EXT = 0x8019 - CONVOLUTION_HINT_SGIX = 0x8316 - CONVOLUTION_WIDTH_EXT = 0x8018 - CON_0_ATI = 0x8941 - CON_10_ATI = 0x894B - CON_11_ATI = 0x894C - CON_12_ATI = 0x894D - CON_13_ATI = 0x894E - CON_14_ATI = 0x894F - CON_15_ATI = 0x8950 - CON_16_ATI = 0x8951 - CON_17_ATI = 0x8952 - CON_18_ATI = 0x8953 - CON_19_ATI = 0x8954 - CON_1_ATI = 0x8942 - CON_20_ATI = 0x8955 - CON_21_ATI = 0x8956 - CON_22_ATI = 0x8957 - CON_23_ATI = 0x8958 - CON_24_ATI = 0x8959 - CON_25_ATI = 0x895A - CON_26_ATI = 0x895B - CON_27_ATI = 0x895C - CON_28_ATI = 0x895D - CON_29_ATI = 0x895E - CON_2_ATI = 0x8943 - CON_30_ATI = 0x895F - CON_31_ATI = 0x8960 - CON_3_ATI = 0x8944 - CON_4_ATI = 0x8945 - CON_5_ATI = 0x8946 - CON_6_ATI = 0x8947 - CON_7_ATI = 0x8948 - CON_8_ATI = 0x8949 - CON_9_ATI = 0x894A - COORD_REPLACE = 0x8862 - COORD_REPLACE_ARB = 0x8862 - COORD_REPLACE_NV = 0x8862 - COPY = 0x1503 - COPY_INVERTED = 0x150C - COPY_PIXEL_TOKEN = 0x0706 - COPY_READ_BUFFER = 0x8F36 - COPY_READ_BUFFER_BINDING = 0x8F36 - COPY_WRITE_BUFFER = 0x8F37 - COPY_WRITE_BUFFER_BINDING = 0x8F37 - COUNTER_RANGE_AMD = 0x8BC1 - COUNTER_TYPE_AMD = 0x8BC0 - COUNT_DOWN_NV = 0x9089 - COUNT_UP_NV = 0x9088 - CUBIC_CURVE_TO_NV = 0x0C - CUBIC_EXT = 0x8334 - CUBIC_HP = 0x815F - CULL_FACE = 0x0B44 - CULL_FACE_MODE = 0x0B45 - CULL_FRAGMENT_NV = 0x86E7 - CULL_MODES_NV = 0x86E0 - CULL_VERTEX_EXT = 0x81AA - CULL_VERTEX_EYE_POSITION_EXT = 0x81AB - CULL_VERTEX_IBM = 103050 - CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC - CURRENT_ATTRIB_NV = 0x8626 - CURRENT_BINORMAL_EXT = 0x843C - CURRENT_BIT = 0x00000001 - CURRENT_COLOR = 0x0B00 - CURRENT_FOG_COORD = 0x8453 - CURRENT_FOG_COORDINATE = 0x8453 - CURRENT_FOG_COORDINATE_EXT = 0x8453 - CURRENT_INDEX = 0x0B01 - CURRENT_MATRIX_ARB = 0x8641 - CURRENT_MATRIX_INDEX_ARB = 0x8845 - CURRENT_MATRIX_NV = 0x8641 - CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640 - CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640 - CURRENT_NORMAL = 0x0B02 - CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865 - CURRENT_PALETTE_MATRIX_ARB = 0x8843 - CURRENT_PROGRAM = 0x8B8D - CURRENT_QUERY = 0x8865 - CURRENT_QUERY_ARB = 0x8865 - CURRENT_RASTER_COLOR = 0x0B04 - CURRENT_RASTER_DISTANCE = 0x0B09 - CURRENT_RASTER_INDEX = 0x0B05 - CURRENT_RASTER_NORMAL_SGIX = 0x8406 - CURRENT_RASTER_POSITION = 0x0B07 - CURRENT_RASTER_POSITION_VALID = 0x0B08 - CURRENT_RASTER_SECONDARY_COLOR = 0x845F - CURRENT_RASTER_TEXTURE_COORDS = 0x0B06 - CURRENT_SECONDARY_COLOR = 0x8459 - CURRENT_SECONDARY_COLOR_EXT = 0x8459 - CURRENT_TANGENT_EXT = 0x843B - CURRENT_TEXTURE_COORDS = 0x0B03 - CURRENT_TIME_NV = 0x8E28 - CURRENT_VERTEX_ATTRIB = 0x8626 - CURRENT_VERTEX_ATTRIB_ARB = 0x8626 - CURRENT_VERTEX_EXT = 0x87E2 - CURRENT_VERTEX_WEIGHT_EXT = 0x850B - CURRENT_WEIGHT_ARB = 0x86A8 - CW = 0x0900 - DARKEN_KHR = 0x9297 - DARKEN_NV = 0x9297 - DATA_BUFFER_AMD = 0x9151 - DEBUG_CALLBACK_FUNCTION = 0x8244 - DEBUG_CALLBACK_FUNCTION_ARB = 0x8244 - DEBUG_CALLBACK_FUNCTION_KHR = 0x8244 - DEBUG_CALLBACK_USER_PARAM = 0x8245 - DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245 - DEBUG_CALLBACK_USER_PARAM_KHR = 0x8245 - DEBUG_CATEGORY_API_ERROR_AMD = 0x9149 - DEBUG_CATEGORY_APPLICATION_AMD = 0x914F - DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B - DEBUG_CATEGORY_OTHER_AMD = 0x9150 - DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D - DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E - DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C - DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A - DEBUG_GROUP_STACK_DEPTH = 0x826D - DEBUG_GROUP_STACK_DEPTH_KHR = 0x826D - DEBUG_LOGGED_MESSAGES = 0x9145 - DEBUG_LOGGED_MESSAGES_AMD = 0x9145 - DEBUG_LOGGED_MESSAGES_ARB = 0x9145 - DEBUG_LOGGED_MESSAGES_KHR = 0x9145 - DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243 - DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243 - DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR = 0x8243 - DEBUG_OUTPUT = 0x92E0 - DEBUG_OUTPUT_KHR = 0x92E0 - DEBUG_OUTPUT_SYNCHRONOUS = 0x8242 - DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242 - DEBUG_OUTPUT_SYNCHRONOUS_KHR = 0x8242 - DEBUG_SEVERITY_HIGH = 0x9146 - DEBUG_SEVERITY_HIGH_AMD = 0x9146 - DEBUG_SEVERITY_HIGH_ARB = 0x9146 - DEBUG_SEVERITY_HIGH_KHR = 0x9146 - DEBUG_SEVERITY_LOW = 0x9148 - DEBUG_SEVERITY_LOW_AMD = 0x9148 - DEBUG_SEVERITY_LOW_ARB = 0x9148 - DEBUG_SEVERITY_LOW_KHR = 0x9148 - DEBUG_SEVERITY_MEDIUM = 0x9147 - DEBUG_SEVERITY_MEDIUM_AMD = 0x9147 - DEBUG_SEVERITY_MEDIUM_ARB = 0x9147 - DEBUG_SEVERITY_MEDIUM_KHR = 0x9147 - DEBUG_SEVERITY_NOTIFICATION = 0x826B - DEBUG_SEVERITY_NOTIFICATION_KHR = 0x826B - DEBUG_SOURCE_API = 0x8246 - DEBUG_SOURCE_API_ARB = 0x8246 - DEBUG_SOURCE_API_KHR = 0x8246 - DEBUG_SOURCE_APPLICATION = 0x824A - DEBUG_SOURCE_APPLICATION_ARB = 0x824A - DEBUG_SOURCE_APPLICATION_KHR = 0x824A - DEBUG_SOURCE_OTHER = 0x824B - DEBUG_SOURCE_OTHER_ARB = 0x824B - DEBUG_SOURCE_OTHER_KHR = 0x824B - DEBUG_SOURCE_SHADER_COMPILER = 0x8248 - DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248 - DEBUG_SOURCE_SHADER_COMPILER_KHR = 0x8248 - DEBUG_SOURCE_THIRD_PARTY = 0x8249 - DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249 - DEBUG_SOURCE_THIRD_PARTY_KHR = 0x8249 - DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247 - DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247 - DEBUG_SOURCE_WINDOW_SYSTEM_KHR = 0x8247 - DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D - DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D - DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR = 0x824D - DEBUG_TYPE_ERROR = 0x824C - DEBUG_TYPE_ERROR_ARB = 0x824C - DEBUG_TYPE_ERROR_KHR = 0x824C - DEBUG_TYPE_MARKER = 0x8268 - DEBUG_TYPE_MARKER_KHR = 0x8268 - DEBUG_TYPE_OTHER = 0x8251 - DEBUG_TYPE_OTHER_ARB = 0x8251 - DEBUG_TYPE_OTHER_KHR = 0x8251 - DEBUG_TYPE_PERFORMANCE = 0x8250 - DEBUG_TYPE_PERFORMANCE_ARB = 0x8250 - DEBUG_TYPE_PERFORMANCE_KHR = 0x8250 - DEBUG_TYPE_POP_GROUP = 0x826A - DEBUG_TYPE_POP_GROUP_KHR = 0x826A - DEBUG_TYPE_PORTABILITY = 0x824F - DEBUG_TYPE_PORTABILITY_ARB = 0x824F - DEBUG_TYPE_PORTABILITY_KHR = 0x824F - DEBUG_TYPE_PUSH_GROUP = 0x8269 - DEBUG_TYPE_PUSH_GROUP_KHR = 0x8269 - DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E - DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E - DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR = 0x824E - DECAL = 0x2101 - DECODE_EXT = 0x8A49 - DECR = 0x1E03 - DECR_WRAP = 0x8508 - DECR_WRAP_EXT = 0x8508 - DEFORMATIONS_MASK_SGIX = 0x8196 - DELETE_STATUS = 0x8B80 - DEPENDENT_AR_TEXTURE_2D_NV = 0x86E9 - DEPENDENT_GB_TEXTURE_2D_NV = 0x86EA - DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858 - DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859 - DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885A - DEPTH = 0x1801 - DEPTH24_STENCIL8 = 0x88F0 - DEPTH24_STENCIL8_EXT = 0x88F0 - DEPTH32F_STENCIL8 = 0x8CAD - DEPTH32F_STENCIL8_NV = 0x8DAC - DEPTH_ATTACHMENT = 0x8D00 - DEPTH_ATTACHMENT_EXT = 0x8D00 - DEPTH_BIAS = 0x0D1F - DEPTH_BITS = 0x0D56 - DEPTH_BOUNDS_EXT = 0x8891 - DEPTH_BOUNDS_TEST_EXT = 0x8890 - DEPTH_BUFFER_BIT = 0x00000100 - DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF - DEPTH_CLAMP = 0x864F - DEPTH_CLAMP_FAR_AMD = 0x901F - DEPTH_CLAMP_NEAR_AMD = 0x901E - DEPTH_CLAMP_NV = 0x864F - DEPTH_CLEAR_VALUE = 0x0B73 - DEPTH_COMPONENT = 0x1902 - DEPTH_COMPONENT16 = 0x81A5 - DEPTH_COMPONENT16_ARB = 0x81A5 - DEPTH_COMPONENT16_SGIX = 0x81A5 - DEPTH_COMPONENT24 = 0x81A6 - DEPTH_COMPONENT24_ARB = 0x81A6 - DEPTH_COMPONENT24_SGIX = 0x81A6 - DEPTH_COMPONENT32 = 0x81A7 - DEPTH_COMPONENT32F = 0x8CAC - DEPTH_COMPONENT32F_NV = 0x8DAB - DEPTH_COMPONENT32_ARB = 0x81A7 - DEPTH_COMPONENT32_SGIX = 0x81A7 - DEPTH_COMPONENTS = 0x8284 - DEPTH_FUNC = 0x0B74 - DEPTH_RANGE = 0x0B70 - DEPTH_RENDERABLE = 0x8287 - DEPTH_SCALE = 0x0D1E - DEPTH_STENCIL = 0x84F9 - DEPTH_STENCIL_ATTACHMENT = 0x821A - DEPTH_STENCIL_EXT = 0x84F9 - DEPTH_STENCIL_NV = 0x84F9 - DEPTH_STENCIL_TEXTURE_MODE = 0x90EA - DEPTH_STENCIL_TO_BGRA_NV = 0x886F - DEPTH_STENCIL_TO_RGBA_NV = 0x886E - DEPTH_TEST = 0x0B71 - DEPTH_TEXTURE_MODE = 0x884B - DEPTH_TEXTURE_MODE_ARB = 0x884B - DEPTH_WRITEMASK = 0x0B72 - DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096 - DETAIL_TEXTURE_2D_SGIS = 0x8095 - DETAIL_TEXTURE_FUNC_POINTS_SGIS = 0x809C - DETAIL_TEXTURE_LEVEL_SGIS = 0x809A - DETAIL_TEXTURE_MODE_SGIS = 0x809B - DIFFERENCE_KHR = 0x929E - DIFFERENCE_NV = 0x929E - DIFFUSE = 0x1201 - DISCARD_ATI = 0x8763 - DISCARD_NV = 0x8530 - DISCRETE_AMD = 0x9006 - DISJOINT_NV = 0x9283 - DISPATCH_INDIRECT_BUFFER = 0x90EE - DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF - DISTANCE_ATTENUATION_EXT = 0x8129 - DISTANCE_ATTENUATION_SGIS = 0x8129 - DITHER = 0x0BD0 - DOMAIN = 0x0A02 - DONT_CARE = 0x1100 - DOT2_ADD_ATI = 0x896C - DOT3_ATI = 0x8966 - DOT3_RGB = 0x86AE - DOT3_RGBA = 0x86AF - DOT3_RGBA_ARB = 0x86AF - DOT3_RGBA_EXT = 0x8741 - DOT3_RGB_ARB = 0x86AE - DOT3_RGB_EXT = 0x8740 - DOT4_ATI = 0x8967 - DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885D - DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3 - DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ED - DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86F1 - DOT_PRODUCT_NV = 0x86EC - DOT_PRODUCT_PASS_THROUGH_NV = 0x885B - DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86F2 - DOT_PRODUCT_TEXTURE_1D_NV = 0x885C - DOT_PRODUCT_TEXTURE_2D_NV = 0x86EE - DOT_PRODUCT_TEXTURE_3D_NV = 0x86EF - DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86F0 - DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E - DOUBLE = 0x140A - DOUBLEBUFFER = 0x0C32 - DOUBLE_MAT2 = 0x8F46 - DOUBLE_MAT2_EXT = 0x8F46 - DOUBLE_MAT2x3 = 0x8F49 - DOUBLE_MAT2x3_EXT = 0x8F49 - DOUBLE_MAT2x4 = 0x8F4A - DOUBLE_MAT2x4_EXT = 0x8F4A - DOUBLE_MAT3 = 0x8F47 - DOUBLE_MAT3_EXT = 0x8F47 - DOUBLE_MAT3x2 = 0x8F4B - DOUBLE_MAT3x2_EXT = 0x8F4B - DOUBLE_MAT3x4 = 0x8F4C - DOUBLE_MAT3x4_EXT = 0x8F4C - DOUBLE_MAT4 = 0x8F48 - DOUBLE_MAT4_EXT = 0x8F48 - DOUBLE_MAT4x2 = 0x8F4D - DOUBLE_MAT4x2_EXT = 0x8F4D - DOUBLE_MAT4x3 = 0x8F4E - DOUBLE_MAT4x3_EXT = 0x8F4E - DOUBLE_VEC2 = 0x8FFC - DOUBLE_VEC2_EXT = 0x8FFC - DOUBLE_VEC3 = 0x8FFD - DOUBLE_VEC3_EXT = 0x8FFD - DOUBLE_VEC4 = 0x8FFE - DOUBLE_VEC4_EXT = 0x8FFE - DRAW_BUFFER = 0x0C01 - DRAW_BUFFER0 = 0x8825 - DRAW_BUFFER0_ARB = 0x8825 - DRAW_BUFFER0_ATI = 0x8825 - DRAW_BUFFER1 = 0x8826 - DRAW_BUFFER10 = 0x882F - DRAW_BUFFER10_ARB = 0x882F - DRAW_BUFFER10_ATI = 0x882F - DRAW_BUFFER11 = 0x8830 - DRAW_BUFFER11_ARB = 0x8830 - DRAW_BUFFER11_ATI = 0x8830 - DRAW_BUFFER12 = 0x8831 - DRAW_BUFFER12_ARB = 0x8831 - DRAW_BUFFER12_ATI = 0x8831 - DRAW_BUFFER13 = 0x8832 - DRAW_BUFFER13_ARB = 0x8832 - DRAW_BUFFER13_ATI = 0x8832 - DRAW_BUFFER14 = 0x8833 - DRAW_BUFFER14_ARB = 0x8833 - DRAW_BUFFER14_ATI = 0x8833 - DRAW_BUFFER15 = 0x8834 - DRAW_BUFFER15_ARB = 0x8834 - DRAW_BUFFER15_ATI = 0x8834 - DRAW_BUFFER1_ARB = 0x8826 - DRAW_BUFFER1_ATI = 0x8826 - DRAW_BUFFER2 = 0x8827 - DRAW_BUFFER2_ARB = 0x8827 - DRAW_BUFFER2_ATI = 0x8827 - DRAW_BUFFER3 = 0x8828 - DRAW_BUFFER3_ARB = 0x8828 - DRAW_BUFFER3_ATI = 0x8828 - DRAW_BUFFER4 = 0x8829 - DRAW_BUFFER4_ARB = 0x8829 - DRAW_BUFFER4_ATI = 0x8829 - DRAW_BUFFER5 = 0x882A - DRAW_BUFFER5_ARB = 0x882A - DRAW_BUFFER5_ATI = 0x882A - DRAW_BUFFER6 = 0x882B - DRAW_BUFFER6_ARB = 0x882B - DRAW_BUFFER6_ATI = 0x882B - DRAW_BUFFER7 = 0x882C - DRAW_BUFFER7_ARB = 0x882C - DRAW_BUFFER7_ATI = 0x882C - DRAW_BUFFER8 = 0x882D - DRAW_BUFFER8_ARB = 0x882D - DRAW_BUFFER8_ATI = 0x882D - DRAW_BUFFER9 = 0x882E - DRAW_BUFFER9_ARB = 0x882E - DRAW_BUFFER9_ATI = 0x882E - DRAW_FRAMEBUFFER = 0x8CA9 - DRAW_FRAMEBUFFER_BINDING = 0x8CA6 - DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6 - DRAW_FRAMEBUFFER_EXT = 0x8CA9 - DRAW_INDIRECT_ADDRESS_NV = 0x8F41 - DRAW_INDIRECT_BUFFER = 0x8F3F - DRAW_INDIRECT_BUFFER_BINDING = 0x8F43 - DRAW_INDIRECT_LENGTH_NV = 0x8F42 - DRAW_INDIRECT_UNIFIED_NV = 0x8F40 - DRAW_PIXELS_APPLE = 0x8A0A - DRAW_PIXEL_TOKEN = 0x0705 - DSDT8_MAG8_INTENSITY8_NV = 0x870B - DSDT8_MAG8_NV = 0x870A - DSDT8_NV = 0x8709 - DSDT_MAG_INTENSITY_NV = 0x86DC - DSDT_MAG_NV = 0x86F6 - DSDT_MAG_VIB_NV = 0x86F7 - DSDT_NV = 0x86F5 - DST_ALPHA = 0x0304 - DST_ATOP_NV = 0x928F - DST_COLOR = 0x0306 - DST_IN_NV = 0x928B - DST_NV = 0x9287 - DST_OUT_NV = 0x928D - DST_OVER_NV = 0x9289 - DS_BIAS_NV = 0x8716 - DS_SCALE_NV = 0x8710 - DT_BIAS_NV = 0x8717 - DT_SCALE_NV = 0x8711 - DU8DV8_ATI = 0x877A - DUAL_ALPHA12_SGIS = 0x8112 - DUAL_ALPHA16_SGIS = 0x8113 - DUAL_ALPHA4_SGIS = 0x8110 - DUAL_ALPHA8_SGIS = 0x8111 - DUAL_INTENSITY12_SGIS = 0x811A - DUAL_INTENSITY16_SGIS = 0x811B - DUAL_INTENSITY4_SGIS = 0x8118 - DUAL_INTENSITY8_SGIS = 0x8119 - DUAL_LUMINANCE12_SGIS = 0x8116 - DUAL_LUMINANCE16_SGIS = 0x8117 - DUAL_LUMINANCE4_SGIS = 0x8114 - DUAL_LUMINANCE8_SGIS = 0x8115 - DUAL_LUMINANCE_ALPHA4_SGIS = 0x811C - DUAL_LUMINANCE_ALPHA8_SGIS = 0x811D - DUAL_TEXTURE_SELECT_SGIS = 0x8124 - DUDV_ATI = 0x8779 - DUP_FIRST_CUBIC_CURVE_TO_NV = 0xF2 - DUP_LAST_CUBIC_CURVE_TO_NV = 0xF4 - DYNAMIC_ATI = 0x8761 - DYNAMIC_COPY = 0x88EA - DYNAMIC_COPY_ARB = 0x88EA - DYNAMIC_DRAW = 0x88E8 - DYNAMIC_DRAW_ARB = 0x88E8 - DYNAMIC_READ = 0x88E9 - DYNAMIC_READ_ARB = 0x88E9 - DYNAMIC_STORAGE_BIT = 0x0100 - EDGEFLAG_BIT_PGI = 0x00040000 - EDGE_FLAG = 0x0B43 - EDGE_FLAG_ARRAY = 0x8079 - EDGE_FLAG_ARRAY_ADDRESS_NV = 0x8F26 - EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B - EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889B - EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D - EDGE_FLAG_ARRAY_EXT = 0x8079 - EDGE_FLAG_ARRAY_LENGTH_NV = 0x8F30 - EDGE_FLAG_ARRAY_LIST_IBM = 103075 - EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085 - EDGE_FLAG_ARRAY_POINTER = 0x8093 - EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093 - EDGE_FLAG_ARRAY_STRIDE = 0x808C - EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C - EIGHTH_BIT_ATI = 0x00000020 - ELEMENT_ARRAY_ADDRESS_NV = 0x8F29 - ELEMENT_ARRAY_APPLE = 0x8A0C - ELEMENT_ARRAY_ATI = 0x8768 - ELEMENT_ARRAY_BARRIER_BIT = 0x00000002 - ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002 - ELEMENT_ARRAY_BUFFER = 0x8893 - ELEMENT_ARRAY_BUFFER_ARB = 0x8893 - ELEMENT_ARRAY_BUFFER_BINDING = 0x8895 - ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895 - ELEMENT_ARRAY_LENGTH_NV = 0x8F33 - ELEMENT_ARRAY_POINTER_APPLE = 0x8A0E - ELEMENT_ARRAY_POINTER_ATI = 0x876A - ELEMENT_ARRAY_TYPE_APPLE = 0x8A0D - ELEMENT_ARRAY_TYPE_ATI = 0x8769 - ELEMENT_ARRAY_UNIFIED_NV = 0x8F1F - EMBOSS_CONSTANT_NV = 0x855E - EMBOSS_LIGHT_NV = 0x855D - EMBOSS_MAP_NV = 0x855F - EMISSION = 0x1600 - ENABLE_BIT = 0x00002000 - EQUAL = 0x0202 - EQUIV = 0x1509 - EVAL_2D_NV = 0x86C0 - EVAL_BIT = 0x00010000 - EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5 - EVAL_TRIANGULAR_2D_NV = 0x86C1 - EVAL_VERTEX_ATTRIB0_NV = 0x86C6 - EVAL_VERTEX_ATTRIB10_NV = 0x86D0 - EVAL_VERTEX_ATTRIB11_NV = 0x86D1 - EVAL_VERTEX_ATTRIB12_NV = 0x86D2 - EVAL_VERTEX_ATTRIB13_NV = 0x86D3 - EVAL_VERTEX_ATTRIB14_NV = 0x86D4 - EVAL_VERTEX_ATTRIB15_NV = 0x86D5 - EVAL_VERTEX_ATTRIB1_NV = 0x86C7 - EVAL_VERTEX_ATTRIB2_NV = 0x86C8 - EVAL_VERTEX_ATTRIB3_NV = 0x86C9 - EVAL_VERTEX_ATTRIB4_NV = 0x86CA - EVAL_VERTEX_ATTRIB5_NV = 0x86CB - EVAL_VERTEX_ATTRIB6_NV = 0x86CC - EVAL_VERTEX_ATTRIB7_NV = 0x86CD - EVAL_VERTEX_ATTRIB8_NV = 0x86CE - EVAL_VERTEX_ATTRIB9_NV = 0x86CF - EXCLUSION_KHR = 0x92A0 - EXCLUSION_NV = 0x92A0 - EXP = 0x0800 - EXP2 = 0x0801 - EXPAND_NEGATE_NV = 0x8539 - EXPAND_NORMAL_NV = 0x8538 - EXTENSIONS = 0x1F03 - EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD = 0x9160 - EYE_DISTANCE_TO_LINE_SGIS = 0x81F2 - EYE_DISTANCE_TO_POINT_SGIS = 0x81F0 - EYE_LINEAR = 0x2400 - EYE_LINE_SGIS = 0x81F6 - EYE_PLANE = 0x2502 - EYE_PLANE_ABSOLUTE_NV = 0x855C - EYE_POINT_SGIS = 0x81F4 - EYE_RADIAL_NV = 0x855B - E_TIMES_F_NV = 0x8531 - FACTOR_MAX_AMD = 0x901D - FACTOR_MIN_AMD = 0x901C - FAILURE_NV = 0x9030 - FALSE = 0 - FASTEST = 0x1101 - FEEDBACK = 0x1C01 - FEEDBACK_BUFFER_POINTER = 0x0DF0 - FEEDBACK_BUFFER_SIZE = 0x0DF1 - FEEDBACK_BUFFER_TYPE = 0x0DF2 - FENCE_APPLE = 0x8A0B - FENCE_CONDITION_NV = 0x84F4 - FENCE_STATUS_NV = 0x84F3 - FIELDS_NV = 0x8E27 - FIELD_LOWER_NV = 0x9023 - FIELD_UPPER_NV = 0x9022 - FILE_NAME_NV = 0x9074 - FILL = 0x1B02 - FILTER = 0x829A - FILTER4_SGIS = 0x8146 - FIRST_TO_REST_NV = 0x90AF - FIRST_VERTEX_CONVENTION = 0x8E4D - FIRST_VERTEX_CONVENTION_EXT = 0x8E4D - FIXED = 0x140C - FIXED_OES = 0x140C - FIXED_ONLY_ARB = 0x891D - FLAT = 0x1D00 - FLOAT = 0x1406 - FLOAT16_NV = 0x8FF8 - FLOAT16_VEC2_NV = 0x8FF9 - FLOAT16_VEC3_NV = 0x8FFA - FLOAT16_VEC4_NV = 0x8FFB - FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD - FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD - FLOAT_CLEAR_COLOR_VALUE_NV = 0x888D - FLOAT_MAT2 = 0x8B5A - FLOAT_MAT2_ARB = 0x8B5A - FLOAT_MAT2x3 = 0x8B65 - FLOAT_MAT2x4 = 0x8B66 - FLOAT_MAT3 = 0x8B5B - FLOAT_MAT3_ARB = 0x8B5B - FLOAT_MAT3x2 = 0x8B67 - FLOAT_MAT3x4 = 0x8B68 - FLOAT_MAT4 = 0x8B5C - FLOAT_MAT4_ARB = 0x8B5C - FLOAT_MAT4x2 = 0x8B69 - FLOAT_MAT4x3 = 0x8B6A - FLOAT_R16_NV = 0x8884 - FLOAT_R32_NV = 0x8885 - FLOAT_RG16_NV = 0x8886 - FLOAT_RG32_NV = 0x8887 - FLOAT_RGB16_NV = 0x8888 - FLOAT_RGB32_NV = 0x8889 - FLOAT_RGBA16_NV = 0x888A - FLOAT_RGBA32_NV = 0x888B - FLOAT_RGBA_MODE_NV = 0x888E - FLOAT_RGBA_NV = 0x8883 - FLOAT_RGB_NV = 0x8882 - FLOAT_RG_NV = 0x8881 - FLOAT_R_NV = 0x8880 - FLOAT_VEC2 = 0x8B50 - FLOAT_VEC2_ARB = 0x8B50 - FLOAT_VEC3 = 0x8B51 - FLOAT_VEC3_ARB = 0x8B51 - FLOAT_VEC4 = 0x8B52 - FLOAT_VEC4_ARB = 0x8B52 - FOG = 0x0B60 - FOG_BIT = 0x00000080 - FOG_COLOR = 0x0B66 - FOG_COORD = 0x8451 - FOG_COORDINATE = 0x8451 - FOG_COORDINATE_ARRAY = 0x8457 - FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D - FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889D - FOG_COORDINATE_ARRAY_EXT = 0x8457 - FOG_COORDINATE_ARRAY_LIST_IBM = 103076 - FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086 - FOG_COORDINATE_ARRAY_POINTER = 0x8456 - FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456 - FOG_COORDINATE_ARRAY_STRIDE = 0x8455 - FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455 - FOG_COORDINATE_ARRAY_TYPE = 0x8454 - FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454 - FOG_COORDINATE_EXT = 0x8451 - FOG_COORDINATE_SOURCE = 0x8450 - FOG_COORDINATE_SOURCE_EXT = 0x8450 - FOG_COORD_ARRAY = 0x8457 - FOG_COORD_ARRAY_ADDRESS_NV = 0x8F28 - FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D - FOG_COORD_ARRAY_LENGTH_NV = 0x8F32 - FOG_COORD_ARRAY_POINTER = 0x8456 - FOG_COORD_ARRAY_STRIDE = 0x8455 - FOG_COORD_ARRAY_TYPE = 0x8454 - FOG_COORD_SRC = 0x8450 - FOG_DENSITY = 0x0B62 - FOG_DISTANCE_MODE_NV = 0x855A - FOG_END = 0x0B64 - FOG_FUNC_POINTS_SGIS = 0x812B - FOG_FUNC_SGIS = 0x812A - FOG_HINT = 0x0C54 - FOG_INDEX = 0x0B61 - FOG_MODE = 0x0B65 - FOG_OFFSET_SGIX = 0x8198 - FOG_OFFSET_VALUE_SGIX = 0x8199 - FOG_SPECULAR_TEXTURE_WIN = 0x80EC - FOG_START = 0x0B63 - FONT_ASCENDER_BIT_NV = 0x00200000 - FONT_DESCENDER_BIT_NV = 0x00400000 - FONT_GLYPHS_AVAILABLE_NV = 0x9368 - FONT_HAS_KERNING_BIT_NV = 0x10000000 - FONT_HEIGHT_BIT_NV = 0x00800000 - FONT_MAX_ADVANCE_HEIGHT_BIT_NV = 0x02000000 - FONT_MAX_ADVANCE_WIDTH_BIT_NV = 0x01000000 - FONT_NUM_GLYPH_INDICES_BIT_NV = 0x20000000 - FONT_TARGET_UNAVAILABLE_NV = 0x9369 - FONT_UNAVAILABLE_NV = 0x936A - FONT_UNDERLINE_POSITION_BIT_NV = 0x04000000 - FONT_UNDERLINE_THICKNESS_BIT_NV = 0x08000000 - FONT_UNINTELLIGIBLE_NV = 0x936B - FONT_UNITS_PER_EM_BIT_NV = 0x00100000 - FONT_X_MAX_BOUNDS_BIT_NV = 0x00040000 - FONT_X_MIN_BOUNDS_BIT_NV = 0x00010000 - FONT_Y_MAX_BOUNDS_BIT_NV = 0x00080000 - FONT_Y_MIN_BOUNDS_BIT_NV = 0x00020000 - FORCE_BLUE_TO_ONE_NV = 0x8860 - FORMAT_SUBSAMPLE_244_244_OML = 0x8983 - FORMAT_SUBSAMPLE_24_24_OML = 0x8982 - FRACTIONAL_EVEN = 0x8E7C - FRACTIONAL_ODD = 0x8E7B - FRAGMENT_COLOR_EXT = 0x834C - FRAGMENT_COLOR_MATERIAL_FACE_SGIX = 0x8402 - FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = 0x8403 - FRAGMENT_COLOR_MATERIAL_SGIX = 0x8401 - FRAGMENT_DEPTH = 0x8452 - FRAGMENT_DEPTH_EXT = 0x8452 - FRAGMENT_INPUT_NV = 0x936D - FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D - FRAGMENT_LIGHT0_SGIX = 0x840C - FRAGMENT_LIGHT1_SGIX = 0x840D - FRAGMENT_LIGHT2_SGIX = 0x840E - FRAGMENT_LIGHT3_SGIX = 0x840F - FRAGMENT_LIGHT4_SGIX = 0x8410 - FRAGMENT_LIGHT5_SGIX = 0x8411 - FRAGMENT_LIGHT6_SGIX = 0x8412 - FRAGMENT_LIGHT7_SGIX = 0x8413 - FRAGMENT_LIGHTING_SGIX = 0x8400 - FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = 0x840A - FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = 0x8408 - FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = 0x840B - FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = 0x8409 - FRAGMENT_MATERIAL_EXT = 0x8349 - FRAGMENT_NORMAL_EXT = 0x834A - FRAGMENT_PROGRAM_ARB = 0x8804 - FRAGMENT_PROGRAM_BINDING_NV = 0x8873 - FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D - FRAGMENT_PROGRAM_NV = 0x8870 - FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4 - FRAGMENT_SHADER = 0x8B30 - FRAGMENT_SHADER_ARB = 0x8B30 - FRAGMENT_SHADER_ATI = 0x8920 - FRAGMENT_SHADER_BIT = 0x00000002 - FRAGMENT_SHADER_BIT_EXT = 0x00000002 - FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B - FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8B8B - FRAGMENT_SHADER_INVOCATIONS_ARB = 0x82F4 - FRAGMENT_SUBROUTINE = 0x92EC - FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2 - FRAGMENT_TEXTURE = 0x829F - FRAMEBUFFER = 0x8D40 - FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215 - FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214 - FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210 - FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211 - FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216 - FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213 - FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = 0x8DA7 - FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7 - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1 - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1 - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0 - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0 - FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212 - FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217 - FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4 - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3 - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2 - FRAMEBUFFER_BARRIER_BIT = 0x00000400 - FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400 - FRAMEBUFFER_BINDING = 0x8CA6 - FRAMEBUFFER_BINDING_EXT = 0x8CA6 - FRAMEBUFFER_BLEND = 0x828B - FRAMEBUFFER_COMPLETE = 0x8CD5 - FRAMEBUFFER_COMPLETE_EXT = 0x8CD5 - FRAMEBUFFER_DEFAULT = 0x8218 - FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314 - FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311 - FRAMEBUFFER_DEFAULT_LAYERS = 0x9312 - FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313 - FRAMEBUFFER_DEFAULT_WIDTH = 0x9310 - FRAMEBUFFER_EXT = 0x8D40 - FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6 - FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6 - FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9 - FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB - FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB - FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8CDA - FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = 0x8DA9 - FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9 - FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = 0x8DA8 - FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8 - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7 - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7 - FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56 - FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56 - FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC - FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8CDC - FRAMEBUFFER_RENDERABLE = 0x8289 - FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A - FRAMEBUFFER_SRGB = 0x8DB9 - FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8DBA - FRAMEBUFFER_SRGB_EXT = 0x8DB9 - FRAMEBUFFER_UNDEFINED = 0x8219 - FRAMEBUFFER_UNSUPPORTED = 0x8CDD - FRAMEBUFFER_UNSUPPORTED_EXT = 0x8CDD - FRAMEZOOM_FACTOR_SGIX = 0x818C - FRAMEZOOM_SGIX = 0x818B - FRAME_NV = 0x8E26 - FRONT = 0x0404 - FRONT_AND_BACK = 0x0408 - FRONT_FACE = 0x0B46 - FRONT_LEFT = 0x0400 - FRONT_RIGHT = 0x0401 - FULL_RANGE_EXT = 0x87E1 - FULL_STIPPLE_HINT_PGI = 0x1A219 - FULL_SUPPORT = 0x82B7 - FUNC_ADD = 0x8006 - FUNC_ADD_EXT = 0x8006 - FUNC_REVERSE_SUBTRACT = 0x800B - FUNC_REVERSE_SUBTRACT_EXT = 0x800B - FUNC_SUBTRACT = 0x800A - FUNC_SUBTRACT_EXT = 0x800A - GENERATE_MIPMAP = 0x8191 - GENERATE_MIPMAP_HINT = 0x8192 - GENERATE_MIPMAP_HINT_SGIS = 0x8192 - GENERATE_MIPMAP_SGIS = 0x8191 - GENERIC_ATTRIB_NV = 0x8C7D - GEOMETRY_DEFORMATION_BIT_SGIX = 0x00000002 - GEOMETRY_DEFORMATION_SGIX = 0x8194 - GEOMETRY_INPUT_TYPE_ARB = 0x8DDB - GEOMETRY_INPUT_TYPE_EXT = 0x8DDB - GEOMETRY_OUTPUT_TYPE_ARB = 0x8DDC - GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC - GEOMETRY_PROGRAM_NV = 0x8C26 - GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3 - GEOMETRY_SHADER_ARB = 0x8DD9 - GEOMETRY_SHADER_BIT = 0x00000004 - GEOMETRY_SHADER_EXT = 0x8DD9 - GEOMETRY_SHADER_INVOCATIONS = 0x887F - GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB = 0x82F3 - GEOMETRY_SUBROUTINE = 0x92EB - GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1 - GEOMETRY_TEXTURE = 0x829E - GEOMETRY_VERTICES_OUT_ARB = 0x8DDA - GEOMETRY_VERTICES_OUT_EXT = 0x8DDA - GEQUAL = 0x0206 - GET_TEXTURE_IMAGE_FORMAT = 0x8291 - GET_TEXTURE_IMAGE_TYPE = 0x8292 - GLOBAL_ALPHA_FACTOR_SUN = 0x81DA - GLOBAL_ALPHA_SUN = 0x81D9 - GLYPH_HAS_KERNING_BIT_NV = 0x100 - GLYPH_HEIGHT_BIT_NV = 0x02 - GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV = 0x10 - GLYPH_HORIZONTAL_BEARING_X_BIT_NV = 0x04 - GLYPH_HORIZONTAL_BEARING_Y_BIT_NV = 0x08 - GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV = 0x80 - GLYPH_VERTICAL_BEARING_X_BIT_NV = 0x20 - GLYPH_VERTICAL_BEARING_Y_BIT_NV = 0x40 - GLYPH_WIDTH_BIT_NV = 0x01 - GPU_ADDRESS_NV = 0x8F34 - GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX = 0x9049 - GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 0x9047 - GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B - GPU_MEMORY_INFO_EVICTION_COUNT_NVX = 0x904A - GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 0x9048 - GREATER = 0x0204 - GREEN = 0x1904 - GREEN_BIAS = 0x0D19 - GREEN_BITS = 0x0D53 - GREEN_BIT_ATI = 0x00000002 - GREEN_INTEGER_EXT = 0x8D95 - GREEN_MAX_CLAMP_INGR = 0x8565 - GREEN_MIN_CLAMP_INGR = 0x8561 - GREEN_NV = 0x1904 - GREEN_SCALE = 0x0D18 - GUILTY_CONTEXT_RESET = 0x8253 - GUILTY_CONTEXT_RESET_ARB = 0x8253 - GUILTY_CONTEXT_RESET_KHR = 0x8253 - HALF_APPLE = 0x140B - HALF_BIAS_NEGATE_NV = 0x853B - HALF_BIAS_NORMAL_NV = 0x853A - HALF_BIT_ATI = 0x00000008 - HALF_FLOAT = 0x140B - HALF_FLOAT_ARB = 0x140B - HALF_FLOAT_NV = 0x140B - HARDLIGHT_KHR = 0x929B - HARDLIGHT_NV = 0x929B - HARDMIX_NV = 0x92A9 - HIGH_FLOAT = 0x8DF2 - HIGH_INT = 0x8DF5 - HILO16_NV = 0x86F8 - HILO8_NV = 0x885E - HILO_NV = 0x86F4 - HINT_BIT = 0x00008000 - HISTOGRAM_ALPHA_SIZE_EXT = 0x802B - HISTOGRAM_BLUE_SIZE_EXT = 0x802A - HISTOGRAM_EXT = 0x8024 - HISTOGRAM_FORMAT_EXT = 0x8027 - HISTOGRAM_GREEN_SIZE_EXT = 0x8029 - HISTOGRAM_LUMINANCE_SIZE_EXT = 0x802C - HISTOGRAM_RED_SIZE_EXT = 0x8028 - HISTOGRAM_SINK_EXT = 0x802D - HISTOGRAM_WIDTH_EXT = 0x8026 - HI_BIAS_NV = 0x8714 - HI_SCALE_NV = 0x870E - HORIZONTAL_LINE_TO_NV = 0x06 - HSL_COLOR_KHR = 0x92AF - HSL_COLOR_NV = 0x92AF - HSL_HUE_KHR = 0x92AD - HSL_HUE_NV = 0x92AD - HSL_LUMINOSITY_KHR = 0x92B0 - HSL_LUMINOSITY_NV = 0x92B0 - HSL_SATURATION_KHR = 0x92AE - HSL_SATURATION_NV = 0x92AE - IDENTITY_NV = 0x862A - IGNORE_BORDER_HP = 0x8150 - IMAGE_1D = 0x904C - IMAGE_1D_ARRAY = 0x9052 - IMAGE_1D_ARRAY_EXT = 0x9052 - IMAGE_1D_EXT = 0x904C - IMAGE_2D = 0x904D - IMAGE_2D_ARRAY = 0x9053 - IMAGE_2D_ARRAY_EXT = 0x9053 - IMAGE_2D_EXT = 0x904D - IMAGE_2D_MULTISAMPLE = 0x9055 - IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056 - IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056 - IMAGE_2D_MULTISAMPLE_EXT = 0x9055 - IMAGE_2D_RECT = 0x904F - IMAGE_2D_RECT_EXT = 0x904F - IMAGE_3D = 0x904E - IMAGE_3D_EXT = 0x904E - IMAGE_BINDING_ACCESS = 0x8F3E - IMAGE_BINDING_ACCESS_EXT = 0x8F3E - IMAGE_BINDING_FORMAT = 0x906E - IMAGE_BINDING_FORMAT_EXT = 0x906E - IMAGE_BINDING_LAYER = 0x8F3D - IMAGE_BINDING_LAYERED = 0x8F3C - IMAGE_BINDING_LAYERED_EXT = 0x8F3C - IMAGE_BINDING_LAYER_EXT = 0x8F3D - IMAGE_BINDING_LEVEL = 0x8F3B - IMAGE_BINDING_LEVEL_EXT = 0x8F3B - IMAGE_BINDING_NAME = 0x8F3A - IMAGE_BINDING_NAME_EXT = 0x8F3A - IMAGE_BUFFER = 0x9051 - IMAGE_BUFFER_EXT = 0x9051 - IMAGE_CLASS_10_10_10_2 = 0x82C3 - IMAGE_CLASS_11_11_10 = 0x82C2 - IMAGE_CLASS_1_X_16 = 0x82BE - IMAGE_CLASS_1_X_32 = 0x82BB - IMAGE_CLASS_1_X_8 = 0x82C1 - IMAGE_CLASS_2_X_16 = 0x82BD - IMAGE_CLASS_2_X_32 = 0x82BA - IMAGE_CLASS_2_X_8 = 0x82C0 - IMAGE_CLASS_4_X_16 = 0x82BC - IMAGE_CLASS_4_X_32 = 0x82B9 - IMAGE_CLASS_4_X_8 = 0x82BF - IMAGE_COMPATIBILITY_CLASS = 0x82A8 - IMAGE_CUBE = 0x9050 - IMAGE_CUBE_EXT = 0x9050 - IMAGE_CUBE_MAP_ARRAY = 0x9054 - IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054 - IMAGE_CUBIC_WEIGHT_HP = 0x815E - IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9 - IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8 - IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7 - IMAGE_MAG_FILTER_HP = 0x815C - IMAGE_MIN_FILTER_HP = 0x815D - IMAGE_PIXEL_FORMAT = 0x82A9 - IMAGE_PIXEL_TYPE = 0x82AA - IMAGE_ROTATE_ANGLE_HP = 0x8159 - IMAGE_ROTATE_ORIGIN_X_HP = 0x815A - IMAGE_ROTATE_ORIGIN_Y_HP = 0x815B - IMAGE_SCALE_X_HP = 0x8155 - IMAGE_SCALE_Y_HP = 0x8156 - IMAGE_TEXEL_SIZE = 0x82A7 - IMAGE_TRANSFORM_2D_HP = 0x8161 - IMAGE_TRANSLATE_X_HP = 0x8157 - IMAGE_TRANSLATE_Y_HP = 0x8158 - IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B - IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B - IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A - IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A - INCR = 0x1E02 - INCR_WRAP = 0x8507 - INCR_WRAP_EXT = 0x8507 - INDEX_ARRAY = 0x8077 - INDEX_ARRAY_ADDRESS_NV = 0x8F24 - INDEX_ARRAY_BUFFER_BINDING = 0x8899 - INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899 - INDEX_ARRAY_COUNT_EXT = 0x8087 - INDEX_ARRAY_EXT = 0x8077 - INDEX_ARRAY_LENGTH_NV = 0x8F2E - INDEX_ARRAY_LIST_IBM = 103073 - INDEX_ARRAY_LIST_STRIDE_IBM = 103083 - INDEX_ARRAY_POINTER = 0x8091 - INDEX_ARRAY_POINTER_EXT = 0x8091 - INDEX_ARRAY_STRIDE = 0x8086 - INDEX_ARRAY_STRIDE_EXT = 0x8086 - INDEX_ARRAY_TYPE = 0x8085 - INDEX_ARRAY_TYPE_EXT = 0x8085 - INDEX_BITS = 0x0D51 - INDEX_BIT_PGI = 0x00080000 - INDEX_CLEAR_VALUE = 0x0C20 - INDEX_LOGIC_OP = 0x0BF1 - INDEX_MATERIAL_EXT = 0x81B8 - INDEX_MATERIAL_FACE_EXT = 0x81BA - INDEX_MATERIAL_PARAMETER_EXT = 0x81B9 - INDEX_MODE = 0x0C30 - INDEX_OFFSET = 0x0D13 - INDEX_SHIFT = 0x0D12 - INDEX_TEST_EXT = 0x81B5 - INDEX_TEST_FUNC_EXT = 0x81B6 - INDEX_TEST_REF_EXT = 0x81B7 - INDEX_WRITEMASK = 0x0C21 - INFO_LOG_LENGTH = 0x8B84 - INNOCENT_CONTEXT_RESET = 0x8254 - INNOCENT_CONTEXT_RESET_ARB = 0x8254 - INNOCENT_CONTEXT_RESET_KHR = 0x8254 - INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180 - INSTRUMENT_MEASUREMENTS_SGIX = 0x8181 - INT = 0x1404 - INT16_NV = 0x8FE4 - INT16_VEC2_NV = 0x8FE5 - INT16_VEC3_NV = 0x8FE6 - INT16_VEC4_NV = 0x8FE7 - INT64_NV = 0x140E - INT64_VEC2_NV = 0x8FE9 - INT64_VEC3_NV = 0x8FEA - INT64_VEC4_NV = 0x8FEB - INT8_NV = 0x8FE0 - INT8_VEC2_NV = 0x8FE1 - INT8_VEC3_NV = 0x8FE2 - INT8_VEC4_NV = 0x8FE3 - INTENSITY = 0x8049 - INTENSITY12 = 0x804C - INTENSITY12_EXT = 0x804C - INTENSITY16 = 0x804D - INTENSITY16F_ARB = 0x881D - INTENSITY16I_EXT = 0x8D8B - INTENSITY16UI_EXT = 0x8D79 - INTENSITY16_EXT = 0x804D - INTENSITY16_SNORM = 0x901B - INTENSITY32F_ARB = 0x8817 - INTENSITY32I_EXT = 0x8D85 - INTENSITY32UI_EXT = 0x8D73 - INTENSITY4 = 0x804A - INTENSITY4_EXT = 0x804A - INTENSITY8 = 0x804B - INTENSITY8I_EXT = 0x8D91 - INTENSITY8UI_EXT = 0x8D7F - INTENSITY8_EXT = 0x804B - INTENSITY8_SNORM = 0x9017 - INTENSITY_EXT = 0x8049 - INTENSITY_FLOAT16_APPLE = 0x881D - INTENSITY_FLOAT16_ATI = 0x881D - INTENSITY_FLOAT32_APPLE = 0x8817 - INTENSITY_FLOAT32_ATI = 0x8817 - INTENSITY_SNORM = 0x9013 - INTERLACE_OML = 0x8980 - INTERLACE_READ_INGR = 0x8568 - INTERLACE_READ_OML = 0x8981 - INTERLACE_SGIX = 0x8094 - INTERLEAVED_ATTRIBS_EXT = 0x8C8C - INTERLEAVED_ATTRIBS_NV = 0x8C8C - INTERNALFORMAT_ALPHA_SIZE = 0x8274 - INTERNALFORMAT_ALPHA_TYPE = 0x827B - INTERNALFORMAT_BLUE_SIZE = 0x8273 - INTERNALFORMAT_BLUE_TYPE = 0x827A - INTERNALFORMAT_DEPTH_SIZE = 0x8275 - INTERNALFORMAT_DEPTH_TYPE = 0x827C - INTERNALFORMAT_GREEN_SIZE = 0x8272 - INTERNALFORMAT_GREEN_TYPE = 0x8279 - INTERNALFORMAT_PREFERRED = 0x8270 - INTERNALFORMAT_RED_SIZE = 0x8271 - INTERNALFORMAT_RED_TYPE = 0x8278 - INTERNALFORMAT_SHARED_SIZE = 0x8277 - INTERNALFORMAT_STENCIL_SIZE = 0x8276 - INTERNALFORMAT_STENCIL_TYPE = 0x827D - INTERNALFORMAT_SUPPORTED = 0x826F - INTERPOLATE = 0x8575 - INTERPOLATE_ARB = 0x8575 - INTERPOLATE_EXT = 0x8575 - INT_2_10_10_10_REV = 0x8D9F - INT_IMAGE_1D = 0x9057 - INT_IMAGE_1D_ARRAY = 0x905D - INT_IMAGE_1D_ARRAY_EXT = 0x905D - INT_IMAGE_1D_EXT = 0x9057 - INT_IMAGE_2D = 0x9058 - INT_IMAGE_2D_ARRAY = 0x905E - INT_IMAGE_2D_ARRAY_EXT = 0x905E - INT_IMAGE_2D_EXT = 0x9058 - INT_IMAGE_2D_MULTISAMPLE = 0x9060 - INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061 - INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061 - INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060 - INT_IMAGE_2D_RECT = 0x905A - INT_IMAGE_2D_RECT_EXT = 0x905A - INT_IMAGE_3D = 0x9059 - INT_IMAGE_3D_EXT = 0x9059 - INT_IMAGE_BUFFER = 0x905C - INT_IMAGE_BUFFER_EXT = 0x905C - INT_IMAGE_CUBE = 0x905B - INT_IMAGE_CUBE_EXT = 0x905B - INT_IMAGE_CUBE_MAP_ARRAY = 0x905F - INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F - INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE - INT_SAMPLER_1D_EXT = 0x8DC9 - INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF - INT_SAMPLER_2D_EXT = 0x8DCA - INT_SAMPLER_2D_MULTISAMPLE = 0x9109 - INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C - INT_SAMPLER_2D_RECT_EXT = 0x8DCD - INT_SAMPLER_3D_EXT = 0x8DCB - INT_SAMPLER_BUFFER_AMD = 0x9002 - INT_SAMPLER_BUFFER_EXT = 0x8DD0 - INT_SAMPLER_CUBE_EXT = 0x8DCC - INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E - INT_SAMPLER_RENDERBUFFER_NV = 0x8E57 - INT_VEC2 = 0x8B53 - INT_VEC2_ARB = 0x8B53 - INT_VEC3 = 0x8B54 - INT_VEC3_ARB = 0x8B54 - INT_VEC4 = 0x8B55 - INT_VEC4_ARB = 0x8B55 - INVALID_ENUM = 0x0500 - INVALID_FRAMEBUFFER_OPERATION = 0x0506 - INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506 - INVALID_INDEX = 0xFFFFFFFF - INVALID_OPERATION = 0x0502 - INVALID_VALUE = 0x0501 - INVARIANT_DATATYPE_EXT = 0x87EB - INVARIANT_EXT = 0x87C2 - INVARIANT_VALUE_EXT = 0x87EA - INVERSE_NV = 0x862B - INVERSE_TRANSPOSE_NV = 0x862D - INVERT = 0x150A - INVERTED_SCREEN_W_REND = 0x8491 - INVERT_OVG_NV = 0x92B4 - INVERT_RGB_NV = 0x92A3 - IR_INSTRUMENT1_SGIX = 0x817F - ISOLINES = 0x8E7A - IS_PER_PATCH = 0x92E7 - IS_ROW_MAJOR = 0x9300 - ITALIC_BIT_NV = 0x02 - IUI_N3F_V2F_EXT = 0x81AF - IUI_N3F_V3F_EXT = 0x81B0 - IUI_V2F_EXT = 0x81AD - IUI_V3F_EXT = 0x81AE - KEEP = 0x1E00 - LARGE_CCW_ARC_TO_NV = 0x16 - LARGE_CW_ARC_TO_NV = 0x18 - LAST_VERTEX_CONVENTION = 0x8E4E - LAST_VERTEX_CONVENTION_EXT = 0x8E4E - LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027 - LAYER_NV = 0x8DAA - LAYER_PROVOKING_VERTEX = 0x825E - LAYOUT_DEFAULT_INTEL = 0 - LAYOUT_LINEAR_CPU_CACHED_INTEL = 2 - LAYOUT_LINEAR_INTEL = 1 - LEFT = 0x0406 - LEQUAL = 0x0203 - LERP_ATI = 0x8969 - LESS = 0x0201 - LIGHT0 = 0x4000 - LIGHT1 = 0x4001 - LIGHT2 = 0x4002 - LIGHT3 = 0x4003 - LIGHT4 = 0x4004 - LIGHT5 = 0x4005 - LIGHT6 = 0x4006 - LIGHT7 = 0x4007 - LIGHTEN_KHR = 0x9298 - LIGHTEN_NV = 0x9298 - LIGHTING = 0x0B50 - LIGHTING_BIT = 0x00000040 - LIGHT_ENV_MODE_SGIX = 0x8407 - LIGHT_MODEL_AMBIENT = 0x0B53 - LIGHT_MODEL_COLOR_CONTROL = 0x81F8 - LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8 - LIGHT_MODEL_LOCAL_VIEWER = 0x0B51 - LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0 - LIGHT_MODEL_TWO_SIDE = 0x0B52 - LINE = 0x1B01 - LINEAR = 0x2601 - LINEARBURN_NV = 0x92A5 - LINEARDODGE_NV = 0x92A4 - LINEARLIGHT_NV = 0x92A7 - LINEAR_ATTENUATION = 0x1208 - LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170 - LINEAR_CLIPMAP_NEAREST_SGIX = 0x844F - LINEAR_DETAIL_ALPHA_SGIS = 0x8098 - LINEAR_DETAIL_COLOR_SGIS = 0x8099 - LINEAR_DETAIL_SGIS = 0x8097 - LINEAR_MIPMAP_LINEAR = 0x2703 - LINEAR_MIPMAP_NEAREST = 0x2701 - LINEAR_SHARPEN_ALPHA_SGIS = 0x80AE - LINEAR_SHARPEN_COLOR_SGIS = 0x80AF - LINEAR_SHARPEN_SGIS = 0x80AD - LINES = 0x0001 - LINES_ADJACENCY_ARB = 0x000A - LINES_ADJACENCY_EXT = 0x000A - LINE_BIT = 0x00000004 - LINE_LOOP = 0x0002 - LINE_RESET_TOKEN = 0x0707 - LINE_SMOOTH = 0x0B20 - LINE_SMOOTH_HINT = 0x0C52 - LINE_STIPPLE = 0x0B24 - LINE_STIPPLE_PATTERN = 0x0B25 - LINE_STIPPLE_REPEAT = 0x0B26 - LINE_STRIP = 0x0003 - LINE_STRIP_ADJACENCY_ARB = 0x000B - LINE_STRIP_ADJACENCY_EXT = 0x000B - LINE_TOKEN = 0x0702 - LINE_TO_NV = 0x04 - LINE_WIDTH = 0x0B21 - LINE_WIDTH_GRANULARITY = 0x0B23 - LINE_WIDTH_RANGE = 0x0B22 - LINK_STATUS = 0x8B82 - LIST_BASE = 0x0B32 - LIST_BIT = 0x00020000 - LIST_INDEX = 0x0B33 - LIST_MODE = 0x0B30 - LIST_PRIORITY_SGIX = 0x8182 - LOAD = 0x0101 - LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED - LOCAL_CONSTANT_EXT = 0x87C3 - LOCAL_CONSTANT_VALUE_EXT = 0x87EC - LOCAL_EXT = 0x87C4 - LOCATION = 0x930E - LOCATION_COMPONENT = 0x934A - LOCATION_INDEX = 0x930F - LOGIC_OP = 0x0BF1 - LOGIC_OP_MODE = 0x0BF0 - LOSE_CONTEXT_ON_RESET = 0x8252 - LOSE_CONTEXT_ON_RESET_ARB = 0x8252 - LOSE_CONTEXT_ON_RESET_KHR = 0x8252 - LOWER_LEFT = 0x8CA1 - LOW_FLOAT = 0x8DF0 - LOW_INT = 0x8DF3 - LO_BIAS_NV = 0x8715 - LO_SCALE_NV = 0x870F - LUMINANCE = 0x1909 - LUMINANCE12 = 0x8041 - LUMINANCE12_ALPHA12 = 0x8047 - LUMINANCE12_ALPHA12_EXT = 0x8047 - LUMINANCE12_ALPHA4 = 0x8046 - LUMINANCE12_ALPHA4_EXT = 0x8046 - LUMINANCE12_EXT = 0x8041 - LUMINANCE16 = 0x8042 - LUMINANCE16F_ARB = 0x881E - LUMINANCE16I_EXT = 0x8D8C - LUMINANCE16UI_EXT = 0x8D7A - LUMINANCE16_ALPHA16 = 0x8048 - LUMINANCE16_ALPHA16_EXT = 0x8048 - LUMINANCE16_ALPHA16_SNORM = 0x901A - LUMINANCE16_EXT = 0x8042 - LUMINANCE16_SNORM = 0x9019 - LUMINANCE32F_ARB = 0x8818 - LUMINANCE32I_EXT = 0x8D86 - LUMINANCE32UI_EXT = 0x8D74 - LUMINANCE4 = 0x803F - LUMINANCE4_ALPHA4 = 0x8043 - LUMINANCE4_ALPHA4_EXT = 0x8043 - LUMINANCE4_EXT = 0x803F - LUMINANCE6_ALPHA2 = 0x8044 - LUMINANCE6_ALPHA2_EXT = 0x8044 - LUMINANCE8 = 0x8040 - LUMINANCE8I_EXT = 0x8D92 - LUMINANCE8UI_EXT = 0x8D80 - LUMINANCE8_ALPHA8 = 0x8045 - LUMINANCE8_ALPHA8_EXT = 0x8045 - LUMINANCE8_ALPHA8_SNORM = 0x9016 - LUMINANCE8_EXT = 0x8040 - LUMINANCE8_SNORM = 0x9015 - LUMINANCE_ALPHA = 0x190A - LUMINANCE_ALPHA16F_ARB = 0x881F - LUMINANCE_ALPHA16I_EXT = 0x8D8D - LUMINANCE_ALPHA16UI_EXT = 0x8D7B - LUMINANCE_ALPHA32F_ARB = 0x8819 - LUMINANCE_ALPHA32I_EXT = 0x8D87 - LUMINANCE_ALPHA32UI_EXT = 0x8D75 - LUMINANCE_ALPHA8I_EXT = 0x8D93 - LUMINANCE_ALPHA8UI_EXT = 0x8D81 - LUMINANCE_ALPHA_FLOAT16_APPLE = 0x881F - LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F - LUMINANCE_ALPHA_FLOAT32_APPLE = 0x8819 - LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819 - LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D - LUMINANCE_ALPHA_SNORM = 0x9012 - LUMINANCE_FLOAT16_APPLE = 0x881E - LUMINANCE_FLOAT16_ATI = 0x881E - LUMINANCE_FLOAT32_APPLE = 0x8818 - LUMINANCE_FLOAT32_ATI = 0x8818 - LUMINANCE_INTEGER_EXT = 0x8D9C - LUMINANCE_SNORM = 0x9011 - MAD_ATI = 0x8968 - MAGNITUDE_BIAS_NV = 0x8718 - MAGNITUDE_SCALE_NV = 0x8712 - MANUAL_GENERATE_MIPMAP = 0x8294 - MAP1_BINORMAL_EXT = 0x8446 - MAP1_COLOR_4 = 0x0D90 - MAP1_GRID_DOMAIN = 0x0DD0 - MAP1_GRID_SEGMENTS = 0x0DD1 - MAP1_INDEX = 0x0D91 - MAP1_NORMAL = 0x0D92 - MAP1_TANGENT_EXT = 0x8444 - MAP1_TEXTURE_COORD_1 = 0x0D93 - MAP1_TEXTURE_COORD_2 = 0x0D94 - MAP1_TEXTURE_COORD_3 = 0x0D95 - MAP1_TEXTURE_COORD_4 = 0x0D96 - MAP1_VERTEX_3 = 0x0D97 - MAP1_VERTEX_4 = 0x0D98 - MAP1_VERTEX_ATTRIB0_4_NV = 0x8660 - MAP1_VERTEX_ATTRIB10_4_NV = 0x866A - MAP1_VERTEX_ATTRIB11_4_NV = 0x866B - MAP1_VERTEX_ATTRIB12_4_NV = 0x866C - MAP1_VERTEX_ATTRIB13_4_NV = 0x866D - MAP1_VERTEX_ATTRIB14_4_NV = 0x866E - MAP1_VERTEX_ATTRIB15_4_NV = 0x866F - MAP1_VERTEX_ATTRIB1_4_NV = 0x8661 - MAP1_VERTEX_ATTRIB2_4_NV = 0x8662 - MAP1_VERTEX_ATTRIB3_4_NV = 0x8663 - MAP1_VERTEX_ATTRIB4_4_NV = 0x8664 - MAP1_VERTEX_ATTRIB5_4_NV = 0x8665 - MAP1_VERTEX_ATTRIB6_4_NV = 0x8666 - MAP1_VERTEX_ATTRIB7_4_NV = 0x8667 - MAP1_VERTEX_ATTRIB8_4_NV = 0x8668 - MAP1_VERTEX_ATTRIB9_4_NV = 0x8669 - MAP2_BINORMAL_EXT = 0x8447 - MAP2_COLOR_4 = 0x0DB0 - MAP2_GRID_DOMAIN = 0x0DD2 - MAP2_GRID_SEGMENTS = 0x0DD3 - MAP2_INDEX = 0x0DB1 - MAP2_NORMAL = 0x0DB2 - MAP2_TANGENT_EXT = 0x8445 - MAP2_TEXTURE_COORD_1 = 0x0DB3 - MAP2_TEXTURE_COORD_2 = 0x0DB4 - MAP2_TEXTURE_COORD_3 = 0x0DB5 - MAP2_TEXTURE_COORD_4 = 0x0DB6 - MAP2_VERTEX_3 = 0x0DB7 - MAP2_VERTEX_4 = 0x0DB8 - MAP2_VERTEX_ATTRIB0_4_NV = 0x8670 - MAP2_VERTEX_ATTRIB10_4_NV = 0x867A - MAP2_VERTEX_ATTRIB11_4_NV = 0x867B - MAP2_VERTEX_ATTRIB12_4_NV = 0x867C - MAP2_VERTEX_ATTRIB13_4_NV = 0x867D - MAP2_VERTEX_ATTRIB14_4_NV = 0x867E - MAP2_VERTEX_ATTRIB15_4_NV = 0x867F - MAP2_VERTEX_ATTRIB1_4_NV = 0x8671 - MAP2_VERTEX_ATTRIB2_4_NV = 0x8672 - MAP2_VERTEX_ATTRIB3_4_NV = 0x8673 - MAP2_VERTEX_ATTRIB4_4_NV = 0x8674 - MAP2_VERTEX_ATTRIB5_4_NV = 0x8675 - MAP2_VERTEX_ATTRIB6_4_NV = 0x8676 - MAP2_VERTEX_ATTRIB7_4_NV = 0x8677 - MAP2_VERTEX_ATTRIB8_4_NV = 0x8678 - MAP2_VERTEX_ATTRIB9_4_NV = 0x8679 - MAP_ATTRIB_U_ORDER_NV = 0x86C3 - MAP_ATTRIB_V_ORDER_NV = 0x86C4 - MAP_COHERENT_BIT = 0x0080 - MAP_COLOR = 0x0D10 - MAP_FLUSH_EXPLICIT_BIT = 0x0010 - MAP_INVALIDATE_BUFFER_BIT = 0x0008 - MAP_INVALIDATE_RANGE_BIT = 0x0004 - MAP_PERSISTENT_BIT = 0x0040 - MAP_READ_BIT = 0x0001 - MAP_STENCIL = 0x0D11 - MAP_TESSELLATION_NV = 0x86C2 - MAP_UNSYNCHRONIZED_BIT = 0x0020 - MAP_WRITE_BIT = 0x0002 - MATERIAL_SIDE_HINT_PGI = 0x1A22C - MATRIX0_ARB = 0x88C0 - MATRIX0_NV = 0x8630 - MATRIX10_ARB = 0x88CA - MATRIX11_ARB = 0x88CB - MATRIX12_ARB = 0x88CC - MATRIX13_ARB = 0x88CD - MATRIX14_ARB = 0x88CE - MATRIX15_ARB = 0x88CF - MATRIX16_ARB = 0x88D0 - MATRIX17_ARB = 0x88D1 - MATRIX18_ARB = 0x88D2 - MATRIX19_ARB = 0x88D3 - MATRIX1_ARB = 0x88C1 - MATRIX1_NV = 0x8631 - MATRIX20_ARB = 0x88D4 - MATRIX21_ARB = 0x88D5 - MATRIX22_ARB = 0x88D6 - MATRIX23_ARB = 0x88D7 - MATRIX24_ARB = 0x88D8 - MATRIX25_ARB = 0x88D9 - MATRIX26_ARB = 0x88DA - MATRIX27_ARB = 0x88DB - MATRIX28_ARB = 0x88DC - MATRIX29_ARB = 0x88DD - MATRIX2_ARB = 0x88C2 - MATRIX2_NV = 0x8632 - MATRIX30_ARB = 0x88DE - MATRIX31_ARB = 0x88DF - MATRIX3_ARB = 0x88C3 - MATRIX3_NV = 0x8633 - MATRIX4_ARB = 0x88C4 - MATRIX4_NV = 0x8634 - MATRIX5_ARB = 0x88C5 - MATRIX5_NV = 0x8635 - MATRIX6_ARB = 0x88C6 - MATRIX6_NV = 0x8636 - MATRIX7_ARB = 0x88C7 - MATRIX7_NV = 0x8637 - MATRIX8_ARB = 0x88C8 - MATRIX9_ARB = 0x88C9 - MATRIX_EXT = 0x87C0 - MATRIX_INDEX_ARRAY_ARB = 0x8844 - MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849 - MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846 - MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848 - MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847 - MATRIX_MODE = 0x0BA0 - MATRIX_PALETTE_ARB = 0x8840 - MATRIX_STRIDE = 0x92FF - MAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000 - MAT_AMBIENT_BIT_PGI = 0x00100000 - MAT_COLOR_INDEXES_BIT_PGI = 0x01000000 - MAT_DIFFUSE_BIT_PGI = 0x00400000 - MAT_EMISSION_BIT_PGI = 0x00800000 - MAT_SHININESS_BIT_PGI = 0x02000000 - MAT_SPECULAR_BIT_PGI = 0x04000000 - MAX = 0x8008 - MAX_3D_TEXTURE_SIZE = 0x8073 - MAX_3D_TEXTURE_SIZE_EXT = 0x8073 - MAX_4D_TEXTURE_SIZE_SGIS = 0x8138 - MAX_ACTIVE_LIGHTS_SGIX = 0x8405 - MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF - MAX_ASYNC_DRAW_PIXELS_SGIX = 0x8360 - MAX_ASYNC_HISTOGRAM_SGIX = 0x832D - MAX_ASYNC_READ_PIXELS_SGIX = 0x8361 - MAX_ASYNC_TEX_IMAGE_SGIX = 0x835F - MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC - MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8 - MAX_ATTRIB_STACK_DEPTH = 0x0D35 - MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED - MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B - MAX_CLIPMAP_DEPTH_SGIX = 0x8177 - MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178 - MAX_CLIP_PLANES = 0x0D32 - MAX_COLOR_ATTACHMENTS = 0x8CDF - MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF - MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3 - MAX_COLOR_TEXTURE_SAMPLES = 0x910E - MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7 - MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1 - MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA - MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266 - MAX_COMBINED_DIMENSIONS = 0x8282 - MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33 - MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32 - MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF - MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39 - MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39 - MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39 - MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC - MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E - MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F - MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D - MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8B4D - MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E - MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31 - MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265 - MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264 - MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB = 0x90EB - MAX_COMPUTE_FIXED_GROUP_SIZE_ARB = 0x91BF - MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD - MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB - MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262 - MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC - MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB - MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263 - MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB = 0x9344 - MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB = 0x9345 - MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE - MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB - MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF - MAX_CONVOLUTION_HEIGHT_EXT = 0x801B - MAX_CONVOLUTION_WIDTH_EXT = 0x801A - MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C - MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C - MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C - MAX_CULL_DISTANCES = 0x82F9 - MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C - MAX_DEBUG_GROUP_STACK_DEPTH_KHR = 0x826C - MAX_DEBUG_LOGGED_MESSAGES = 0x9144 - MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144 - MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144 - MAX_DEBUG_LOGGED_MESSAGES_KHR = 0x9144 - MAX_DEBUG_MESSAGE_LENGTH = 0x9143 - MAX_DEBUG_MESSAGE_LENGTH_AMD = 0x9143 - MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143 - MAX_DEBUG_MESSAGE_LENGTH_KHR = 0x9143 - MAX_DEEP_3D_TEXTURE_DEPTH_NV = 0x90D1 - MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV = 0x90D0 - MAX_DEFORMATION_ORDER_SGIX = 0x8197 - MAX_DEPTH = 0x8280 - MAX_DEPTH_TEXTURE_SAMPLES = 0x910F - MAX_DRAW_BUFFERS = 0x8824 - MAX_DRAW_BUFFERS_ARB = 0x8824 - MAX_DRAW_BUFFERS_ATI = 0x8824 - MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC - MAX_ELEMENTS_INDICES = 0x80E9 - MAX_ELEMENTS_INDICES_EXT = 0x80E9 - MAX_ELEMENTS_VERTICES = 0x80E8 - MAX_ELEMENTS_VERTICES_EXT = 0x80E8 - MAX_ELEMENT_INDEX = 0x8D6B - MAX_EVAL_ORDER = 0x0D30 - MAX_EXT = 0x8008 - MAX_FOG_FUNC_POINTS_SGIS = 0x812C - MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6 - MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0 - MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3 - MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE - MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C - MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C - MAX_FRAGMENT_LIGHTS_SGIX = 0x8404 - MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868 - MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA - MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D - MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49 - MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8B49 - MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD - MAX_FRAMEBUFFER_HEIGHT = 0x9316 - MAX_FRAMEBUFFER_LAYERS = 0x9317 - MAX_FRAMEBUFFER_SAMPLES = 0x9318 - MAX_FRAMEBUFFER_WIDTH = 0x9315 - MAX_FRAMEZOOM_FACTOR_SGIX = 0x818D - MAX_GENERAL_COMBINERS_NV = 0x854D - MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5 - MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF - MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4 - MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD - MAX_GEOMETRY_OUTPUT_VERTICES_ARB = 0x8DE0 - MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0 - MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A - MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A - MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7 - MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = 0x8C29 - MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29 - MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = 0x8DE1 - MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1 - MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C - MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = 0x8DDF - MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF - MAX_GEOMETRY_VARYING_COMPONENTS_ARB = 0x8DDD - MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD - MAX_HEIGHT = 0x827F - MAX_IMAGE_SAMPLES = 0x906D - MAX_IMAGE_SAMPLES_EXT = 0x906D - MAX_IMAGE_UNITS = 0x8F38 - MAX_IMAGE_UNITS_EXT = 0x8F38 - MAX_INTEGER_SAMPLES = 0x9110 - MAX_LABEL_LENGTH = 0x82E8 - MAX_LABEL_LENGTH_KHR = 0x82E8 - MAX_LAYERS = 0x8281 - MAX_LIGHTS = 0x0D31 - MAX_LIST_NESTING = 0x0B31 - MAX_MAP_TESSELLATION_NV = 0x86D6 - MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841 - MAX_MODELVIEW_STACK_DEPTH = 0x0D36 - MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11 - MAX_NAME_LENGTH = 0x92F6 - MAX_NAME_STACK_DEPTH = 0x0D37 - MAX_NUM_ACTIVE_VARIABLES = 0x92F7 - MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8 - MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA - MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CD - MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE - MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CC - MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB - MAX_PALETTE_MATRICES_ARB = 0x8842 - MAX_PATCH_VERTICES = 0x8E7D - MAX_PIXEL_MAP_TABLE = 0x0D34 - MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337 - MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1 - MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1 - MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880B - MAX_PROGRAM_ATTRIBS_ARB = 0x88AD - MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908 - MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5 - MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5 - MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4 - MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5 - MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6 - MAX_PROGRAM_IF_DEPTH_NV = 0x88F6 - MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1 - MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4 - MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8 - MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7 - MAX_PROGRAM_MATRICES_ARB = 0x862F - MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E - MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3 - MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880E - MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF - MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3 - MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB - MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7 - MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810 - MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880F - MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27 - MAX_PROGRAM_PARAMETERS_ARB = 0x88A9 - MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0 - MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1 - MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8 - MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909 - MAX_PROGRAM_SUBROUTINE_NUM_NV = 0x8F45 - MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44 - MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5 - MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905 - MAX_PROGRAM_TEXEL_OFFSET_NV = 0x8905 - MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F - MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F - MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F - MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880D - MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880C - MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28 - MAX_PROJECTION_STACK_DEPTH = 0x0D38 - MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7 - MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8 - MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84F8 - MAX_RENDERBUFFER_SIZE = 0x84E8 - MAX_RENDERBUFFER_SIZE_EXT = 0x84E8 - MAX_SAMPLES = 0x8D57 - MAX_SAMPLES_EXT = 0x8D57 - MAX_SAMPLE_MASK_WORDS = 0x8E59 - MAX_SAMPLE_MASK_WORDS_NV = 0x8E59 - MAX_SERVER_WAIT_TIMEOUT = 0x9111 - MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35 - MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE - MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD - MAX_SHININESS_NV = 0x8504 - MAX_SPARSE_3D_TEXTURE_SIZE_AMD = 0x9199 - MAX_SPARSE_3D_TEXTURE_SIZE_ARB = 0x9199 - MAX_SPARSE_ARRAY_TEXTURE_LAYERS = 0x919A - MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB = 0x919A - MAX_SPARSE_TEXTURE_SIZE_AMD = 0x9198 - MAX_SPARSE_TEXTURE_SIZE_ARB = 0x9198 - MAX_SPOT_EXPONENT_NV = 0x8505 - MAX_SUBROUTINES = 0x8DE7 - MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8 - MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3 - MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD - MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB - MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C - MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83 - MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8 - MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81 - MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85 - MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89 - MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F - MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4 - MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE - MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC - MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D - MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86 - MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9 - MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82 - MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A - MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80 - MAX_TESS_GEN_LEVEL = 0x8E7E - MAX_TESS_PATCH_COMPONENTS = 0x8E84 - MAX_TEXTURE_BUFFER_SIZE_ARB = 0x8C2B - MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8C2B - MAX_TEXTURE_COORDS = 0x8871 - MAX_TEXTURE_COORDS_ARB = 0x8871 - MAX_TEXTURE_COORDS_NV = 0x8871 - MAX_TEXTURE_IMAGE_UNITS = 0x8872 - MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872 - MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872 - MAX_TEXTURE_LOD_BIAS = 0x84FD - MAX_TEXTURE_LOD_BIAS_EXT = 0x84FD - MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF - MAX_TEXTURE_SIZE = 0x0D33 - MAX_TEXTURE_STACK_DEPTH = 0x0D39 - MAX_TEXTURE_UNITS = 0x84E2 - MAX_TEXTURE_UNITS_ARB = 0x84E2 - MAX_TRACK_MATRICES_NV = 0x862F - MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862E - MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70 - MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8A - MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8A - MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B - MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B - MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80 - MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80 - MAX_UNIFORM_BLOCK_SIZE = 0x8A30 - MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F - MAX_UNIFORM_LOCATIONS = 0x826E - MAX_VARYING_COMPONENTS = 0x8B4B - MAX_VARYING_COMPONENTS_EXT = 0x8B4B - MAX_VARYING_FLOATS = 0x8B4B - MAX_VARYING_FLOATS_ARB = 0x8B4B - MAX_VARYING_VECTORS = 0x8DFC - MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520 - MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2 - MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC - MAX_VERTEX_ATTRIBS = 0x8869 - MAX_VERTEX_ATTRIBS_ARB = 0x8869 - MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA - MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9 - MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2 - MAX_VERTEX_HINT_PGI = 0x1A22D - MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA - MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5 - MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7 - MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9 - MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8 - MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6 - MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6 - MAX_VERTEX_STREAMS = 0x8E71 - MAX_VERTEX_STREAMS_ATI = 0x876B - MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C - MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C - MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B - MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A - MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8B4A - MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB - MAX_VERTEX_UNITS_ARB = 0x86A4 - MAX_VERTEX_VARYING_COMPONENTS_ARB = 0x8DDE - MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE - MAX_VIEWPORTS = 0x825B - MAX_VIEWPORT_DIMS = 0x0D3A - MAX_WIDTH = 0x827E - MEDIUM_FLOAT = 0x8DF1 - MEDIUM_INT = 0x8DF4 - MIN = 0x8007 - MINMAX_EXT = 0x802E - MINMAX_FORMAT_EXT = 0x802F - MINMAX_SINK_EXT = 0x8030 - MINUS_CLAMPED_NV = 0x92B3 - MINUS_NV = 0x929F - MIN_EXT = 0x8007 - MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B - MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B - MIN_LOD_WARNING_AMD = 0x919C - MIN_MAP_BUFFER_ALIGNMENT = 0x90BC - MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904 - MIN_PROGRAM_TEXEL_OFFSET_NV = 0x8904 - MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E - MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E - MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37 - MIN_SPARSE_LEVEL_AMD = 0x919B - MIN_SPARSE_LEVEL_ARB = 0x919B - MIPMAP = 0x8293 - MIRRORED_REPEAT = 0x8370 - MIRRORED_REPEAT_ARB = 0x8370 - MIRRORED_REPEAT_IBM = 0x8370 - MIRROR_CLAMP_ATI = 0x8742 - MIRROR_CLAMP_EXT = 0x8742 - MIRROR_CLAMP_TO_BORDER_EXT = 0x8912 - MIRROR_CLAMP_TO_EDGE = 0x8743 - MIRROR_CLAMP_TO_EDGE_ATI = 0x8743 - MIRROR_CLAMP_TO_EDGE_EXT = 0x8743 - MITER_REVERT_NV = 0x90A7 - MITER_TRUNCATE_NV = 0x90A8 - MODELVIEW = 0x1700 - MODELVIEW0_ARB = 0x1700 - MODELVIEW0_EXT = 0x1700 - MODELVIEW0_MATRIX_EXT = 0x0BA6 - MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3 - MODELVIEW10_ARB = 0x872A - MODELVIEW11_ARB = 0x872B - MODELVIEW12_ARB = 0x872C - MODELVIEW13_ARB = 0x872D - MODELVIEW14_ARB = 0x872E - MODELVIEW15_ARB = 0x872F - MODELVIEW16_ARB = 0x8730 - MODELVIEW17_ARB = 0x8731 - MODELVIEW18_ARB = 0x8732 - MODELVIEW19_ARB = 0x8733 - MODELVIEW1_ARB = 0x850A - MODELVIEW1_EXT = 0x850A - MODELVIEW1_MATRIX_EXT = 0x8506 - MODELVIEW1_STACK_DEPTH_EXT = 0x8502 - MODELVIEW20_ARB = 0x8734 - MODELVIEW21_ARB = 0x8735 - MODELVIEW22_ARB = 0x8736 - MODELVIEW23_ARB = 0x8737 - MODELVIEW24_ARB = 0x8738 - MODELVIEW25_ARB = 0x8739 - MODELVIEW26_ARB = 0x873A - MODELVIEW27_ARB = 0x873B - MODELVIEW28_ARB = 0x873C - MODELVIEW29_ARB = 0x873D - MODELVIEW2_ARB = 0x8722 - MODELVIEW30_ARB = 0x873E - MODELVIEW31_ARB = 0x873F - MODELVIEW3_ARB = 0x8723 - MODELVIEW4_ARB = 0x8724 - MODELVIEW5_ARB = 0x8725 - MODELVIEW6_ARB = 0x8726 - MODELVIEW7_ARB = 0x8727 - MODELVIEW8_ARB = 0x8728 - MODELVIEW9_ARB = 0x8729 - MODELVIEW_MATRIX = 0x0BA6 - MODELVIEW_PROJECTION_NV = 0x8629 - MODELVIEW_STACK_DEPTH = 0x0BA3 - MODULATE = 0x2100 - MODULATE_ADD_ATI = 0x8744 - MODULATE_SIGNED_ADD_ATI = 0x8745 - MODULATE_SUBTRACT_ATI = 0x8746 - MOVE_TO_CONTINUES_NV = 0x90B6 - MOVE_TO_NV = 0x02 - MOVE_TO_RESETS_NV = 0x90B5 - MOV_ATI = 0x8961 - MULT = 0x0103 - MULTIPLY_KHR = 0x9294 - MULTIPLY_NV = 0x9294 - MULTISAMPLE = 0x809D - MULTISAMPLE_3DFX = 0x86B2 - MULTISAMPLE_ARB = 0x809D - MULTISAMPLE_BIT = 0x20000000 - MULTISAMPLE_BIT_3DFX = 0x20000000 - MULTISAMPLE_BIT_ARB = 0x20000000 - MULTISAMPLE_BIT_EXT = 0x20000000 - MULTISAMPLE_COVERAGE_MODES_NV = 0x8E12 - MULTISAMPLE_EXT = 0x809D - MULTISAMPLE_FILTER_HINT_NV = 0x8534 - MULTISAMPLE_SGIS = 0x809D - MUL_ATI = 0x8964 - MVP_MATRIX_EXT = 0x87E3 - N3F_V3F = 0x2A25 - NAMED_STRING_LENGTH_ARB = 0x8DE9 - NAMED_STRING_TYPE_ARB = 0x8DEA - NAME_LENGTH = 0x92F9 - NAME_STACK_DEPTH = 0x0D70 - NAND = 0x150E - NATIVE_GRAPHICS_BEGIN_HINT_PGI = 0x1A203 - NATIVE_GRAPHICS_END_HINT_PGI = 0x1A204 - NATIVE_GRAPHICS_HANDLE_PGI = 0x1A202 - NEAREST = 0x2600 - NEAREST_CLIPMAP_LINEAR_SGIX = 0x844E - NEAREST_CLIPMAP_NEAREST_SGIX = 0x844D - NEAREST_MIPMAP_LINEAR = 0x2702 - NEAREST_MIPMAP_NEAREST = 0x2700 - NEGATE_BIT_ATI = 0x00000004 - NEGATIVE_ONE_EXT = 0x87DF - NEGATIVE_ONE_TO_ONE = 0x935E - NEGATIVE_W_EXT = 0x87DC - NEGATIVE_X_EXT = 0x87D9 - NEGATIVE_Y_EXT = 0x87DA - NEGATIVE_Z_EXT = 0x87DB - NEVER = 0x0200 - NEXT_BUFFER_NV = -2 - NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025 - NICEST = 0x1102 - NONE = 0 - NOOP = 0x1505 - NOR = 0x1508 - NORMALIZE = 0x0BA1 - NORMALIZED_RANGE_EXT = 0x87E0 - NORMAL_ARRAY = 0x8075 - NORMAL_ARRAY_ADDRESS_NV = 0x8F22 - NORMAL_ARRAY_BUFFER_BINDING = 0x8897 - NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897 - NORMAL_ARRAY_COUNT_EXT = 0x8080 - NORMAL_ARRAY_EXT = 0x8075 - NORMAL_ARRAY_LENGTH_NV = 0x8F2C - NORMAL_ARRAY_LIST_IBM = 103071 - NORMAL_ARRAY_LIST_STRIDE_IBM = 103081 - NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F6 - NORMAL_ARRAY_POINTER = 0x808F - NORMAL_ARRAY_POINTER_EXT = 0x808F - NORMAL_ARRAY_STRIDE = 0x807F - NORMAL_ARRAY_STRIDE_EXT = 0x807F - NORMAL_ARRAY_TYPE = 0x807E - NORMAL_ARRAY_TYPE_EXT = 0x807E - NORMAL_BIT_PGI = 0x08000000 - NORMAL_MAP = 0x8511 - NORMAL_MAP_ARB = 0x8511 - NORMAL_MAP_EXT = 0x8511 - NORMAL_MAP_NV = 0x8511 - NOTEQUAL = 0x0205 - NO_ERROR = 0 - NO_RESET_NOTIFICATION = 0x8261 - NO_RESET_NOTIFICATION_ARB = 0x8261 - NO_RESET_NOTIFICATION_KHR = 0x8261 - NUM_ACTIVE_VARIABLES = 0x9304 - NUM_COMPATIBLE_SUBROUTINES = 0x8E4A - NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2 - NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2 - NUM_FILL_STREAMS_NV = 0x8E29 - NUM_FRAGMENT_CONSTANTS_ATI = 0x896F - NUM_FRAGMENT_REGISTERS_ATI = 0x896E - NUM_GENERAL_COMBINERS_NV = 0x854E - NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973 - NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971 - NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972 - NUM_LOOPBACK_COMPONENTS_ATI = 0x8974 - NUM_PASSES_ATI = 0x8970 - NUM_PROGRAM_BINARY_FORMATS = 0x87FE - NUM_SAMPLE_COUNTS = 0x9380 - NUM_SHADER_BINARY_FORMATS = 0x8DF9 - NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024 - NUM_VIRTUAL_PAGE_SIZES_ARB = 0x91A8 - OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8B89 - OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8B8A - OBJECT_ACTIVE_UNIFORMS_ARB = 0x8B86 - OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87 - OBJECT_ATTACHED_OBJECTS_ARB = 0x8B85 - OBJECT_BUFFER_SIZE_ATI = 0x8764 - OBJECT_BUFFER_USAGE_ATI = 0x8765 - OBJECT_COMPILE_STATUS_ARB = 0x8B81 - OBJECT_DELETE_STATUS_ARB = 0x8B80 - OBJECT_DISTANCE_TO_LINE_SGIS = 0x81F3 - OBJECT_DISTANCE_TO_POINT_SGIS = 0x81F1 - OBJECT_INFO_LOG_LENGTH_ARB = 0x8B84 - OBJECT_LINEAR = 0x2401 - OBJECT_LINE_SGIS = 0x81F7 - OBJECT_LINK_STATUS_ARB = 0x8B82 - OBJECT_PLANE = 0x2501 - OBJECT_POINT_SGIS = 0x81F5 - OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88 - OBJECT_SUBTYPE_ARB = 0x8B4F - OBJECT_TYPE = 0x9112 - OBJECT_TYPE_ARB = 0x8B4E - OBJECT_VALIDATE_STATUS_ARB = 0x8B83 - OCCLUSION_QUERY_EVENT_MASK_AMD = 0x874F - OCCLUSION_TEST_HP = 0x8165 - OCCLUSION_TEST_RESULT_HP = 0x8166 - OFFSET = 0x92FC - OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856 - OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857 - OFFSET_HILO_TEXTURE_2D_NV = 0x8854 - OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855 - OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850 - OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851 - OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852 - OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853 - OFFSET_TEXTURE_2D_BIAS_NV = 0x86E3 - OFFSET_TEXTURE_2D_MATRIX_NV = 0x86E1 - OFFSET_TEXTURE_2D_NV = 0x86E8 - OFFSET_TEXTURE_2D_SCALE_NV = 0x86E2 - OFFSET_TEXTURE_BIAS_NV = 0x86E3 - OFFSET_TEXTURE_MATRIX_NV = 0x86E1 - OFFSET_TEXTURE_RECTANGLE_NV = 0x864C - OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864D - OFFSET_TEXTURE_SCALE_NV = 0x86E2 - ONE = 1 - ONE_EXT = 0x87DE - ONE_MINUS_CONSTANT_ALPHA = 0x8004 - ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004 - ONE_MINUS_CONSTANT_COLOR = 0x8002 - ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002 - ONE_MINUS_DST_ALPHA = 0x0305 - ONE_MINUS_DST_COLOR = 0x0307 - ONE_MINUS_SRC1_ALPHA = 0x88FB - ONE_MINUS_SRC1_COLOR = 0x88FA - ONE_MINUS_SRC_ALPHA = 0x0303 - ONE_MINUS_SRC_COLOR = 0x0301 - OPERAND0_ALPHA = 0x8598 - OPERAND0_ALPHA_ARB = 0x8598 - OPERAND0_ALPHA_EXT = 0x8598 - OPERAND0_RGB = 0x8590 - OPERAND0_RGB_ARB = 0x8590 - OPERAND0_RGB_EXT = 0x8590 - OPERAND1_ALPHA = 0x8599 - OPERAND1_ALPHA_ARB = 0x8599 - OPERAND1_ALPHA_EXT = 0x8599 - OPERAND1_RGB = 0x8591 - OPERAND1_RGB_ARB = 0x8591 - OPERAND1_RGB_EXT = 0x8591 - OPERAND2_ALPHA = 0x859A - OPERAND2_ALPHA_ARB = 0x859A - OPERAND2_ALPHA_EXT = 0x859A - OPERAND2_RGB = 0x8592 - OPERAND2_RGB_ARB = 0x8592 - OPERAND2_RGB_EXT = 0x8592 - OPERAND3_ALPHA_NV = 0x859B - OPERAND3_RGB_NV = 0x8593 - OP_ADD_EXT = 0x8787 - OP_CLAMP_EXT = 0x878E - OP_CROSS_PRODUCT_EXT = 0x8797 - OP_DOT3_EXT = 0x8784 - OP_DOT4_EXT = 0x8785 - OP_EXP_BASE_2_EXT = 0x8791 - OP_FLOOR_EXT = 0x878F - OP_FRAC_EXT = 0x8789 - OP_INDEX_EXT = 0x8782 - OP_LOG_BASE_2_EXT = 0x8792 - OP_MADD_EXT = 0x8788 - OP_MAX_EXT = 0x878A - OP_MIN_EXT = 0x878B - OP_MOV_EXT = 0x8799 - OP_MULTIPLY_MATRIX_EXT = 0x8798 - OP_MUL_EXT = 0x8786 - OP_NEGATE_EXT = 0x8783 - OP_POWER_EXT = 0x8793 - OP_RECIP_EXT = 0x8794 - OP_RECIP_SQRT_EXT = 0x8795 - OP_ROUND_EXT = 0x8790 - OP_SET_GE_EXT = 0x878C - OP_SET_LT_EXT = 0x878D - OP_SUB_EXT = 0x8796 - OR = 0x1507 - ORDER = 0x0A01 - OR_INVERTED = 0x150D - OR_REVERSE = 0x150B - OUTPUT_COLOR0_EXT = 0x879B - OUTPUT_COLOR1_EXT = 0x879C - OUTPUT_FOG_EXT = 0x87BD - OUTPUT_TEXTURE_COORD0_EXT = 0x879D - OUTPUT_TEXTURE_COORD10_EXT = 0x87A7 - OUTPUT_TEXTURE_COORD11_EXT = 0x87A8 - OUTPUT_TEXTURE_COORD12_EXT = 0x87A9 - OUTPUT_TEXTURE_COORD13_EXT = 0x87AA - OUTPUT_TEXTURE_COORD14_EXT = 0x87AB - OUTPUT_TEXTURE_COORD15_EXT = 0x87AC - OUTPUT_TEXTURE_COORD16_EXT = 0x87AD - OUTPUT_TEXTURE_COORD17_EXT = 0x87AE - OUTPUT_TEXTURE_COORD18_EXT = 0x87AF - OUTPUT_TEXTURE_COORD19_EXT = 0x87B0 - OUTPUT_TEXTURE_COORD1_EXT = 0x879E - OUTPUT_TEXTURE_COORD20_EXT = 0x87B1 - OUTPUT_TEXTURE_COORD21_EXT = 0x87B2 - OUTPUT_TEXTURE_COORD22_EXT = 0x87B3 - OUTPUT_TEXTURE_COORD23_EXT = 0x87B4 - OUTPUT_TEXTURE_COORD24_EXT = 0x87B5 - OUTPUT_TEXTURE_COORD25_EXT = 0x87B6 - OUTPUT_TEXTURE_COORD26_EXT = 0x87B7 - OUTPUT_TEXTURE_COORD27_EXT = 0x87B8 - OUTPUT_TEXTURE_COORD28_EXT = 0x87B9 - OUTPUT_TEXTURE_COORD29_EXT = 0x87BA - OUTPUT_TEXTURE_COORD2_EXT = 0x879F - OUTPUT_TEXTURE_COORD30_EXT = 0x87BB - OUTPUT_TEXTURE_COORD31_EXT = 0x87BC - OUTPUT_TEXTURE_COORD3_EXT = 0x87A0 - OUTPUT_TEXTURE_COORD4_EXT = 0x87A1 - OUTPUT_TEXTURE_COORD5_EXT = 0x87A2 - OUTPUT_TEXTURE_COORD6_EXT = 0x87A3 - OUTPUT_TEXTURE_COORD7_EXT = 0x87A4 - OUTPUT_TEXTURE_COORD8_EXT = 0x87A5 - OUTPUT_TEXTURE_COORD9_EXT = 0x87A6 - OUTPUT_VERTEX_EXT = 0x879A - OUT_OF_MEMORY = 0x0505 - OVERLAY_KHR = 0x9296 - OVERLAY_NV = 0x9296 - PACK_ALIGNMENT = 0x0D05 - PACK_CMYK_HINT_EXT = 0x800E - PACK_COMPRESSED_BLOCK_DEPTH = 0x912D - PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C - PACK_COMPRESSED_BLOCK_SIZE = 0x912E - PACK_COMPRESSED_BLOCK_WIDTH = 0x912B - PACK_IMAGE_DEPTH_SGIS = 0x8131 - PACK_IMAGE_HEIGHT = 0x806C - PACK_IMAGE_HEIGHT_EXT = 0x806C - PACK_INVERT_MESA = 0x8758 - PACK_LSB_FIRST = 0x0D01 - PACK_RESAMPLE_OML = 0x8984 - PACK_RESAMPLE_SGIX = 0x842C - PACK_ROW_BYTES_APPLE = 0x8A15 - PACK_ROW_LENGTH = 0x0D02 - PACK_SKIP_IMAGES = 0x806B - PACK_SKIP_IMAGES_EXT = 0x806B - PACK_SKIP_PIXELS = 0x0D04 - PACK_SKIP_ROWS = 0x0D03 - PACK_SKIP_VOLUMES_SGIS = 0x8130 - PACK_SUBSAMPLE_RATE_SGIX = 0x85A0 - PACK_SWAP_BYTES = 0x0D00 - PALETTE4_R5_G6_B5_OES = 0x8B92 - PALETTE4_RGB5_A1_OES = 0x8B94 - PALETTE4_RGB8_OES = 0x8B90 - PALETTE4_RGBA4_OES = 0x8B93 - PALETTE4_RGBA8_OES = 0x8B91 - PALETTE8_R5_G6_B5_OES = 0x8B97 - PALETTE8_RGB5_A1_OES = 0x8B99 - PALETTE8_RGB8_OES = 0x8B95 - PALETTE8_RGBA4_OES = 0x8B98 - PALETTE8_RGBA8_OES = 0x8B96 - PARALLEL_ARRAYS_INTEL = 0x83F4 - PARAMETER_BUFFER_ARB = 0x80EE - PARAMETER_BUFFER_BINDING_ARB = 0x80EF - PARTIAL_SUCCESS_NV = 0x902E - PASS_THROUGH_NV = 0x86E6 - PASS_THROUGH_TOKEN = 0x0700 - PATCHES = 0x000E - PATCH_DEFAULT_INNER_LEVEL = 0x8E73 - PATCH_DEFAULT_OUTER_LEVEL = 0x8E74 - PATCH_VERTICES = 0x8E72 - PATH_CLIENT_LENGTH_NV = 0x907F - PATH_COMMAND_COUNT_NV = 0x909D - PATH_COMPUTED_LENGTH_NV = 0x90A0 - PATH_COORD_COUNT_NV = 0x909E - PATH_COVER_DEPTH_FUNC_NV = 0x90BF - PATH_DASH_ARRAY_COUNT_NV = 0x909F - PATH_DASH_CAPS_NV = 0x907B - PATH_DASH_OFFSET_NV = 0x907E - PATH_DASH_OFFSET_RESET_NV = 0x90B4 - PATH_END_CAPS_NV = 0x9076 - PATH_ERROR_POSITION_NV = 0x90AB - PATH_FILL_BOUNDING_BOX_NV = 0x90A1 - PATH_FILL_COVER_MODE_NV = 0x9082 - PATH_FILL_MASK_NV = 0x9081 - PATH_FILL_MODE_NV = 0x9080 - PATH_FOG_GEN_MODE_NV = 0x90AC - PATH_FORMAT_PS_NV = 0x9071 - PATH_FORMAT_SVG_NV = 0x9070 - PATH_GEN_COEFF_NV = 0x90B1 - PATH_GEN_COLOR_FORMAT_NV = 0x90B2 - PATH_GEN_COMPONENTS_NV = 0x90B3 - PATH_GEN_MODE_NV = 0x90B0 - PATH_INITIAL_DASH_CAP_NV = 0x907C - PATH_INITIAL_END_CAP_NV = 0x9077 - PATH_JOIN_STYLE_NV = 0x9079 - PATH_MAX_MODELVIEW_STACK_DEPTH_NV = 0x0D36 - PATH_MAX_PROJECTION_STACK_DEPTH_NV = 0x0D38 - PATH_MITER_LIMIT_NV = 0x907A - PATH_MODELVIEW_MATRIX_NV = 0x0BA6 - PATH_MODELVIEW_NV = 0x1700 - PATH_MODELVIEW_STACK_DEPTH_NV = 0x0BA3 - PATH_OBJECT_BOUNDING_BOX_NV = 0x908A - PATH_PROJECTION_MATRIX_NV = 0x0BA7 - PATH_PROJECTION_NV = 0x1701 - PATH_PROJECTION_STACK_DEPTH_NV = 0x0BA4 - PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV = 0x90BD - PATH_STENCIL_DEPTH_OFFSET_UNITS_NV = 0x90BE - PATH_STENCIL_FUNC_NV = 0x90B7 - PATH_STENCIL_REF_NV = 0x90B8 - PATH_STENCIL_VALUE_MASK_NV = 0x90B9 - PATH_STROKE_BOUNDING_BOX_NV = 0x90A2 - PATH_STROKE_COVER_MODE_NV = 0x9083 - PATH_STROKE_MASK_NV = 0x9084 - PATH_STROKE_WIDTH_NV = 0x9075 - PATH_TERMINAL_DASH_CAP_NV = 0x907D - PATH_TERMINAL_END_CAP_NV = 0x9078 - PATH_TRANSPOSE_MODELVIEW_MATRIX_NV = 0x84E3 - PATH_TRANSPOSE_PROJECTION_MATRIX_NV = 0x84E4 - PERCENTAGE_AMD = 0x8BC3 - PERFMON_RESULT_AMD = 0x8BC6 - PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4 - PERFMON_RESULT_SIZE_AMD = 0x8BC5 - PERFORMANCE_MONITOR_AMD = 0x9152 - PERFQUERY_COUNTER_DATA_BOOL32_INTEL = 0x94FC - PERFQUERY_COUNTER_DATA_DOUBLE_INTEL = 0x94FB - PERFQUERY_COUNTER_DATA_FLOAT_INTEL = 0x94FA - PERFQUERY_COUNTER_DATA_UINT32_INTEL = 0x94F8 - PERFQUERY_COUNTER_DATA_UINT64_INTEL = 0x94F9 - PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL = 0x94FF - PERFQUERY_COUNTER_DURATION_NORM_INTEL = 0x94F1 - PERFQUERY_COUNTER_DURATION_RAW_INTEL = 0x94F2 - PERFQUERY_COUNTER_EVENT_INTEL = 0x94F0 - PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL = 0x94FE - PERFQUERY_COUNTER_RAW_INTEL = 0x94F4 - PERFQUERY_COUNTER_THROUGHPUT_INTEL = 0x94F3 - PERFQUERY_COUNTER_TIMESTAMP_INTEL = 0x94F5 - PERFQUERY_DONOT_FLUSH_INTEL = 0x83F9 - PERFQUERY_FLUSH_INTEL = 0x83FA - PERFQUERY_GLOBAL_CONTEXT_INTEL = 0x00000001 - PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL = 0x9500 - PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL = 0x94FD - PERFQUERY_SINGLE_CONTEXT_INTEL = 0x00000000 - PERFQUERY_WAIT_INTEL = 0x83FB - PERSPECTIVE_CORRECTION_HINT = 0x0C50 - PERTURB_EXT = 0x85AE - PER_STAGE_CONSTANTS_NV = 0x8535 - PHONG_HINT_WIN = 0x80EB - PHONG_WIN = 0x80EA - PINLIGHT_NV = 0x92A8 - PIXEL_BUFFER_BARRIER_BIT = 0x00000080 - PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080 - PIXEL_COUNTER_BITS_NV = 0x8864 - PIXEL_COUNT_AVAILABLE_NV = 0x8867 - PIXEL_COUNT_NV = 0x8866 - PIXEL_CUBIC_WEIGHT_EXT = 0x8333 - PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x8355 - PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x8354 - PIXEL_GROUP_COLOR_SGIS = 0x8356 - PIXEL_MAG_FILTER_EXT = 0x8331 - PIXEL_MAP_A_TO_A = 0x0C79 - PIXEL_MAP_A_TO_A_SIZE = 0x0CB9 - PIXEL_MAP_B_TO_B = 0x0C78 - PIXEL_MAP_B_TO_B_SIZE = 0x0CB8 - PIXEL_MAP_G_TO_G = 0x0C77 - PIXEL_MAP_G_TO_G_SIZE = 0x0CB7 - PIXEL_MAP_I_TO_A = 0x0C75 - PIXEL_MAP_I_TO_A_SIZE = 0x0CB5 - PIXEL_MAP_I_TO_B = 0x0C74 - PIXEL_MAP_I_TO_B_SIZE = 0x0CB4 - PIXEL_MAP_I_TO_G = 0x0C73 - PIXEL_MAP_I_TO_G_SIZE = 0x0CB3 - PIXEL_MAP_I_TO_I = 0x0C70 - PIXEL_MAP_I_TO_I_SIZE = 0x0CB0 - PIXEL_MAP_I_TO_R = 0x0C72 - PIXEL_MAP_I_TO_R_SIZE = 0x0CB2 - PIXEL_MAP_R_TO_R = 0x0C76 - PIXEL_MAP_R_TO_R_SIZE = 0x0CB6 - PIXEL_MAP_S_TO_S = 0x0C71 - PIXEL_MAP_S_TO_S_SIZE = 0x0CB1 - PIXEL_MIN_FILTER_EXT = 0x8332 - PIXEL_MODE_BIT = 0x00000020 - PIXEL_PACK_BUFFER = 0x88EB - PIXEL_PACK_BUFFER_ARB = 0x88EB - PIXEL_PACK_BUFFER_BINDING = 0x88ED - PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ED - PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ED - PIXEL_PACK_BUFFER_EXT = 0x88EB - PIXEL_SUBSAMPLE_2424_SGIX = 0x85A3 - PIXEL_SUBSAMPLE_4242_SGIX = 0x85A4 - PIXEL_SUBSAMPLE_4444_SGIX = 0x85A2 - PIXEL_TEXTURE_SGIS = 0x8353 - PIXEL_TEX_GEN_MODE_SGIX = 0x832B - PIXEL_TEX_GEN_SGIX = 0x8139 - PIXEL_TILE_BEST_ALIGNMENT_SGIX = 0x813E - PIXEL_TILE_CACHE_INCREMENT_SGIX = 0x813F - PIXEL_TILE_CACHE_SIZE_SGIX = 0x8145 - PIXEL_TILE_GRID_DEPTH_SGIX = 0x8144 - PIXEL_TILE_GRID_HEIGHT_SGIX = 0x8143 - PIXEL_TILE_GRID_WIDTH_SGIX = 0x8142 - PIXEL_TILE_HEIGHT_SGIX = 0x8141 - PIXEL_TILE_WIDTH_SGIX = 0x8140 - PIXEL_TRANSFORM_2D_EXT = 0x8330 - PIXEL_TRANSFORM_2D_MATRIX_EXT = 0x8338 - PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336 - PIXEL_UNPACK_BUFFER = 0x88EC - PIXEL_UNPACK_BUFFER_ARB = 0x88EC - PIXEL_UNPACK_BUFFER_BINDING = 0x88EF - PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF - PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF - PIXEL_UNPACK_BUFFER_EXT = 0x88EC - PLUS_CLAMPED_ALPHA_NV = 0x92B2 - PLUS_CLAMPED_NV = 0x92B1 - PLUS_DARKER_NV = 0x9292 - PLUS_NV = 0x9291 - PN_TRIANGLES_ATI = 0x87F0 - PN_TRIANGLES_NORMAL_MODE_ATI = 0x87F3 - PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7 - PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8 - PN_TRIANGLES_POINT_MODE_ATI = 0x87F2 - PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6 - PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5 - PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4 - POINT = 0x1B00 - POINTS = 0x0000 - POINT_BIT = 0x00000002 - POINT_DISTANCE_ATTENUATION = 0x8129 - POINT_DISTANCE_ATTENUATION_ARB = 0x8129 - POINT_FADE_THRESHOLD_SIZE = 0x8128 - POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128 - POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128 - POINT_FADE_THRESHOLD_SIZE_SGIS = 0x8128 - POINT_SIZE = 0x0B11 - POINT_SIZE_GRANULARITY = 0x0B13 - POINT_SIZE_MAX = 0x8127 - POINT_SIZE_MAX_ARB = 0x8127 - POINT_SIZE_MAX_EXT = 0x8127 - POINT_SIZE_MAX_SGIS = 0x8127 - POINT_SIZE_MIN = 0x8126 - POINT_SIZE_MIN_ARB = 0x8126 - POINT_SIZE_MIN_EXT = 0x8126 - POINT_SIZE_MIN_SGIS = 0x8126 - POINT_SIZE_RANGE = 0x0B12 - POINT_SMOOTH = 0x0B10 - POINT_SMOOTH_HINT = 0x0C51 - POINT_SPRITE = 0x8861 - POINT_SPRITE_ARB = 0x8861 - POINT_SPRITE_COORD_ORIGIN = 0x8CA0 - POINT_SPRITE_NV = 0x8861 - POINT_SPRITE_R_MODE_NV = 0x8863 - POINT_TOKEN = 0x0701 - POLYGON = 0x0009 - POLYGON_BIT = 0x00000008 - POLYGON_MODE = 0x0B40 - POLYGON_OFFSET_BIAS_EXT = 0x8039 - POLYGON_OFFSET_EXT = 0x8037 - POLYGON_OFFSET_FACTOR = 0x8038 - POLYGON_OFFSET_FACTOR_EXT = 0x8038 - POLYGON_OFFSET_FILL = 0x8037 - POLYGON_OFFSET_LINE = 0x2A02 - POLYGON_OFFSET_POINT = 0x2A01 - POLYGON_OFFSET_UNITS = 0x2A00 - POLYGON_SMOOTH = 0x0B41 - POLYGON_SMOOTH_HINT = 0x0C53 - POLYGON_STIPPLE = 0x0B42 - POLYGON_STIPPLE_BIT = 0x00000010 - POLYGON_TOKEN = 0x0703 - POSITION = 0x1203 - POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB - POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7 - POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80BA - POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6 - POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2 - POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9 - POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5 - POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8 - POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4 - POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023 - POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F - POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022 - POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E - POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1 - POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021 - POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801D - POST_CONVOLUTION_RED_BIAS_EXT = 0x8020 - POST_CONVOLUTION_RED_SCALE_EXT = 0x801C - POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8162 - POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B - POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179 - POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C - POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A - PREFER_DOUBLEBUFFER_HINT_PGI = 0x1A1F8 - PRESENT_DURATION_NV = 0x8E2B - PRESENT_TIME_NV = 0x8E2A - PRESERVE_ATI = 0x8762 - PREVIOUS = 0x8578 - PREVIOUS_ARB = 0x8578 - PREVIOUS_EXT = 0x8578 - PREVIOUS_TEXTURE_INPUT_NV = 0x86E4 - PRIMARY_COLOR = 0x8577 - PRIMARY_COLOR_ARB = 0x8577 - PRIMARY_COLOR_EXT = 0x8577 - PRIMARY_COLOR_NV = 0x852C - PRIMITIVES_GENERATED_EXT = 0x8C87 - PRIMITIVES_GENERATED_NV = 0x8C87 - PRIMITIVES_SUBMITTED_ARB = 0x82EF - PRIMITIVE_ID_NV = 0x8C7C - PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69 - PRIMITIVE_RESTART_INDEX_NV = 0x8559 - PRIMITIVE_RESTART_NV = 0x8558 - PROGRAM = 0x82E2 - PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0 - PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805 - PROGRAM_ATTRIBS_ARB = 0x88AC - PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906 - PROGRAM_BINARY_FORMATS = 0x87FF - PROGRAM_BINARY_LENGTH = 0x8741 - PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 - PROGRAM_BINDING_ARB = 0x8677 - PROGRAM_ERROR_POSITION_ARB = 0x864B - PROGRAM_ERROR_POSITION_NV = 0x864B - PROGRAM_ERROR_STRING_ARB = 0x8874 - PROGRAM_ERROR_STRING_NV = 0x8874 - PROGRAM_FORMAT_ARB = 0x8876 - PROGRAM_FORMAT_ASCII_ARB = 0x8875 - PROGRAM_INPUT = 0x92E3 - PROGRAM_INSTRUCTIONS_ARB = 0x88A0 - PROGRAM_KHR = 0x82E2 - PROGRAM_LENGTH_ARB = 0x8627 - PROGRAM_LENGTH_NV = 0x8627 - PROGRAM_MATRIX_EXT = 0x8E2D - PROGRAM_MATRIX_STACK_DEPTH_EXT = 0x8E2F - PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2 - PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808 - PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE - PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2 - PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA - PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6 - PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880A - PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809 - PROGRAM_OBJECT_ARB = 0x8B40 - PROGRAM_OBJECT_EXT = 0x8B40 - PROGRAM_OUTPUT = 0x92E4 - PROGRAM_PARAMETERS_ARB = 0x88A8 - PROGRAM_PARAMETER_NV = 0x8644 - PROGRAM_PIPELINE = 0x82E4 - PROGRAM_PIPELINE_BINDING = 0x825A - PROGRAM_PIPELINE_BINDING_EXT = 0x825A - PROGRAM_PIPELINE_OBJECT_EXT = 0x8A4F - PROGRAM_POINT_SIZE_ARB = 0x8642 - PROGRAM_POINT_SIZE_EXT = 0x8642 - PROGRAM_RESIDENT_NV = 0x8647 - PROGRAM_RESULT_COMPONENTS_NV = 0x8907 - PROGRAM_SEPARABLE = 0x8258 - PROGRAM_SEPARABLE_EXT = 0x8258 - PROGRAM_STRING_ARB = 0x8628 - PROGRAM_STRING_NV = 0x8628 - PROGRAM_TARGET_NV = 0x8646 - PROGRAM_TEMPORARIES_ARB = 0x88A4 - PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807 - PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806 - PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6 - PROJECTION = 0x1701 - PROJECTION_MATRIX = 0x0BA7 - PROJECTION_STACK_DEPTH = 0x0BA4 - PROVOKING_VERTEX = 0x8E4F - PROVOKING_VERTEX_EXT = 0x8E4F - PROXY_COLOR_TABLE_SGI = 0x80D3 - PROXY_HISTOGRAM_EXT = 0x8025 - PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5 - PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4 - PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8163 - PROXY_TEXTURE_1D = 0x8063 - PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19 - PROXY_TEXTURE_1D_EXT = 0x8063 - PROXY_TEXTURE_1D_STACK_MESAX = 0x875B - PROXY_TEXTURE_2D = 0x8064 - PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B - PROXY_TEXTURE_2D_EXT = 0x8064 - PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101 - PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103 - PROXY_TEXTURE_2D_STACK_MESAX = 0x875C - PROXY_TEXTURE_3D = 0x8070 - PROXY_TEXTURE_3D_EXT = 0x8070 - PROXY_TEXTURE_4D_SGIS = 0x8135 - PROXY_TEXTURE_COLOR_TABLE_SGI = 0x80BD - PROXY_TEXTURE_CUBE_MAP = 0x851B - PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B - PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B - PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B - PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7 - PROXY_TEXTURE_RECTANGLE_NV = 0x84F7 - PURGEABLE_APPLE = 0x8A1D - Q = 0x2003 - QUADRATIC_ATTENUATION = 0x1209 - QUADRATIC_CURVE_TO_NV = 0x0A - QUADS = 0x0007 - QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C - QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C - QUAD_ALPHA4_SGIS = 0x811E - QUAD_ALPHA8_SGIS = 0x811F - QUAD_INTENSITY4_SGIS = 0x8122 - QUAD_INTENSITY8_SGIS = 0x8123 - QUAD_LUMINANCE4_SGIS = 0x8120 - QUAD_LUMINANCE8_SGIS = 0x8121 - QUAD_MESH_SUN = 0x8614 - QUAD_STRIP = 0x0008 - QUAD_TEXTURE_SELECT_SGIS = 0x8125 - QUARTER_BIT_ATI = 0x00000010 - QUERY = 0x82E3 - QUERY_ALL_EVENT_BITS_AMD = 0xFFFFFFFF - QUERY_BUFFER = 0x9192 - QUERY_BUFFER_AMD = 0x9192 - QUERY_BUFFER_BARRIER_BIT = 0x00008000 - QUERY_BUFFER_BINDING = 0x9193 - QUERY_BUFFER_BINDING_AMD = 0x9193 - QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A - QUERY_BY_REGION_NO_WAIT_NV = 0x8E16 - QUERY_BY_REGION_WAIT_INVERTED = 0x8E19 - QUERY_BY_REGION_WAIT_NV = 0x8E15 - QUERY_COUNTER_BITS = 0x8864 - QUERY_COUNTER_BITS_ARB = 0x8864 - QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD = 0x00000008 - QUERY_DEPTH_FAIL_EVENT_BIT_AMD = 0x00000002 - QUERY_DEPTH_PASS_EVENT_BIT_AMD = 0x00000001 - QUERY_KHR = 0x82E3 - QUERY_NO_WAIT_INVERTED = 0x8E18 - QUERY_NO_WAIT_NV = 0x8E14 - QUERY_OBJECT_AMD = 0x9153 - QUERY_OBJECT_EXT = 0x9153 - QUERY_RESULT = 0x8866 - QUERY_RESULT_ARB = 0x8866 - QUERY_RESULT_AVAILABLE = 0x8867 - QUERY_RESULT_AVAILABLE_ARB = 0x8867 - QUERY_RESULT_NO_WAIT = 0x9194 - QUERY_RESULT_NO_WAIT_AMD = 0x9194 - QUERY_STENCIL_FAIL_EVENT_BIT_AMD = 0x00000004 - QUERY_TARGET = 0x82EA - QUERY_WAIT_INVERTED = 0x8E17 - QUERY_WAIT_NV = 0x8E13 - R = 0x2002 - R11F_G11F_B10F_EXT = 0x8C3A - R16 = 0x822A - R16F = 0x822D - R16I = 0x8233 - R16UI = 0x8234 - R16_SNORM = 0x8F98 - R1UI_C3F_V3F_SUN = 0x85C6 - R1UI_C4F_N3F_V3F_SUN = 0x85C8 - R1UI_C4UB_V3F_SUN = 0x85C5 - R1UI_N3F_V3F_SUN = 0x85C7 - R1UI_T2F_C4F_N3F_V3F_SUN = 0x85CB - R1UI_T2F_N3F_V3F_SUN = 0x85CA - R1UI_T2F_V3F_SUN = 0x85C9 - R1UI_V3F_SUN = 0x85C4 - R32F = 0x822E - R32I = 0x8235 - R32UI = 0x8236 - R3_G3_B2 = 0x2A10 - R8 = 0x8229 - R8I = 0x8231 - R8UI = 0x8232 - R8_SNORM = 0x8F94 - RASTERIZER_DISCARD_EXT = 0x8C89 - RASTERIZER_DISCARD_NV = 0x8C89 - RASTER_POSITION_UNCLIPPED_IBM = 0x19262 - READ_BUFFER = 0x0C02 - READ_FRAMEBUFFER = 0x8CA8 - READ_FRAMEBUFFER_BINDING = 0x8CAA - READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA - READ_FRAMEBUFFER_EXT = 0x8CA8 - READ_ONLY = 0x88B8 - READ_ONLY_ARB = 0x88B8 - READ_PIXELS = 0x828C - READ_PIXELS_FORMAT = 0x828D - READ_PIXELS_TYPE = 0x828E - READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B - READ_PIXEL_DATA_RANGE_NV = 0x8879 - READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D - READ_WRITE = 0x88BA - READ_WRITE_ARB = 0x88BA - RECLAIM_MEMORY_HINT_PGI = 0x1A1FE - RECT_NV = 0xF6 - RED = 0x1903 - REDUCE_EXT = 0x8016 - RED_BIAS = 0x0D15 - RED_BITS = 0x0D52 - RED_BIT_ATI = 0x00000001 - RED_INTEGER_EXT = 0x8D94 - RED_MAX_CLAMP_INGR = 0x8564 - RED_MIN_CLAMP_INGR = 0x8560 - RED_NV = 0x1903 - RED_SCALE = 0x0D14 - RED_SNORM = 0x8F90 - REFERENCED_BY_COMPUTE_SHADER = 0x930B - REFERENCED_BY_FRAGMENT_SHADER = 0x930A - REFERENCED_BY_GEOMETRY_SHADER = 0x9309 - REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307 - REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308 - REFERENCED_BY_VERTEX_SHADER = 0x9306 - REFERENCE_PLANE_EQUATION_SGIX = 0x817E - REFERENCE_PLANE_SGIX = 0x817D - REFLECTION_MAP = 0x8512 - REFLECTION_MAP_ARB = 0x8512 - REFLECTION_MAP_EXT = 0x8512 - REFLECTION_MAP_NV = 0x8512 - REGISTER_COMBINERS_NV = 0x8522 - REG_0_ATI = 0x8921 - REG_10_ATI = 0x892B - REG_11_ATI = 0x892C - REG_12_ATI = 0x892D - REG_13_ATI = 0x892E - REG_14_ATI = 0x892F - REG_15_ATI = 0x8930 - REG_16_ATI = 0x8931 - REG_17_ATI = 0x8932 - REG_18_ATI = 0x8933 - REG_19_ATI = 0x8934 - REG_1_ATI = 0x8922 - REG_20_ATI = 0x8935 - REG_21_ATI = 0x8936 - REG_22_ATI = 0x8937 - REG_23_ATI = 0x8938 - REG_24_ATI = 0x8939 - REG_25_ATI = 0x893A - REG_26_ATI = 0x893B - REG_27_ATI = 0x893C - REG_28_ATI = 0x893D - REG_29_ATI = 0x893E - REG_2_ATI = 0x8923 - REG_30_ATI = 0x893F - REG_31_ATI = 0x8940 - REG_3_ATI = 0x8924 - REG_4_ATI = 0x8925 - REG_5_ATI = 0x8926 - REG_6_ATI = 0x8927 - REG_7_ATI = 0x8928 - REG_8_ATI = 0x8929 - REG_9_ATI = 0x892A - RELATIVE_ARC_TO_NV = 0xFF - RELATIVE_CONIC_CURVE_TO_NV = 0x1B - RELATIVE_CUBIC_CURVE_TO_NV = 0x0D - RELATIVE_HORIZONTAL_LINE_TO_NV = 0x07 - RELATIVE_LARGE_CCW_ARC_TO_NV = 0x17 - RELATIVE_LARGE_CW_ARC_TO_NV = 0x19 - RELATIVE_LINE_TO_NV = 0x05 - RELATIVE_MOVE_TO_NV = 0x03 - RELATIVE_QUADRATIC_CURVE_TO_NV = 0x0B - RELATIVE_RECT_NV = 0xF7 - RELATIVE_ROUNDED_RECT2_NV = 0xEB - RELATIVE_ROUNDED_RECT4_NV = 0xED - RELATIVE_ROUNDED_RECT8_NV = 0xEF - RELATIVE_ROUNDED_RECT_NV = 0xE9 - RELATIVE_SMALL_CCW_ARC_TO_NV = 0x13 - RELATIVE_SMALL_CW_ARC_TO_NV = 0x15 - RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV = 0x11 - RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0F - RELATIVE_VERTICAL_LINE_TO_NV = 0x09 - RELEASED_APPLE = 0x8A19 - RENDER = 0x1C00 - RENDERBUFFER = 0x8D41 - RENDERBUFFER_ALPHA_SIZE = 0x8D53 - RENDERBUFFER_ALPHA_SIZE_EXT = 0x8D53 - RENDERBUFFER_BINDING = 0x8CA7 - RENDERBUFFER_BINDING_EXT = 0x8CA7 - RENDERBUFFER_BLUE_SIZE = 0x8D52 - RENDERBUFFER_BLUE_SIZE_EXT = 0x8D52 - RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10 - RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB - RENDERBUFFER_DEPTH_SIZE = 0x8D54 - RENDERBUFFER_DEPTH_SIZE_EXT = 0x8D54 - RENDERBUFFER_EXT = 0x8D41 - RENDERBUFFER_FREE_MEMORY_ATI = 0x87FD - RENDERBUFFER_GREEN_SIZE = 0x8D51 - RENDERBUFFER_GREEN_SIZE_EXT = 0x8D51 - RENDERBUFFER_HEIGHT = 0x8D43 - RENDERBUFFER_HEIGHT_EXT = 0x8D43 - RENDERBUFFER_INTERNAL_FORMAT = 0x8D44 - RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44 - RENDERBUFFER_RED_SIZE = 0x8D50 - RENDERBUFFER_RED_SIZE_EXT = 0x8D50 - RENDERBUFFER_SAMPLES = 0x8CAB - RENDERBUFFER_SAMPLES_EXT = 0x8CAB - RENDERBUFFER_STENCIL_SIZE = 0x8D55 - RENDERBUFFER_STENCIL_SIZE_EXT = 0x8D55 - RENDERBUFFER_WIDTH = 0x8D42 - RENDERBUFFER_WIDTH_EXT = 0x8D42 - RENDERER = 0x1F01 - RENDER_MODE = 0x0C40 - REPEAT = 0x2901 - REPLACE = 0x1E01 - REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3 - REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2 - REPLACEMENT_CODE_ARRAY_SUN = 0x85C0 - REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1 - REPLACEMENT_CODE_SUN = 0x81D8 - REPLACE_EXT = 0x8062 - REPLACE_MIDDLE_SUN = 0x0002 - REPLACE_OLDEST_SUN = 0x0003 - REPLACE_VALUE_AMD = 0x874B - REPLICATE_BORDER_HP = 0x8153 - RESAMPLE_AVERAGE_OML = 0x8988 - RESAMPLE_DECIMATE_OML = 0x8989 - RESAMPLE_DECIMATE_SGIX = 0x8430 - RESAMPLE_REPLICATE_OML = 0x8986 - RESAMPLE_REPLICATE_SGIX = 0x842E - RESAMPLE_ZERO_FILL_OML = 0x8987 - RESAMPLE_ZERO_FILL_SGIX = 0x842F - RESCALE_NORMAL = 0x803A - RESCALE_NORMAL_EXT = 0x803A - RESET_NOTIFICATION_STRATEGY = 0x8256 - RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 - RESET_NOTIFICATION_STRATEGY_KHR = 0x8256 - RESTART_PATH_NV = 0xF0 - RESTART_SUN = 0x0001 - RETAINED_APPLE = 0x8A1B - RETURN = 0x0102 - RG = 0x8227 - RG16 = 0x822C - RG16F = 0x822F - RG16I = 0x8239 - RG16UI = 0x823A - RG16_SNORM = 0x8F99 - RG32F = 0x8230 - RG32I = 0x823B - RG32UI = 0x823C - RG8 = 0x822B - RG8I = 0x8237 - RG8UI = 0x8238 - RG8_SNORM = 0x8F95 - RGB = 0x1907 - RGB10 = 0x8052 - RGB10_A2 = 0x8059 - RGB10_A2UI = 0x906F - RGB10_A2_EXT = 0x8059 - RGB10_EXT = 0x8052 - RGB12 = 0x8053 - RGB12_EXT = 0x8053 - RGB16 = 0x8054 - RGB16F_ARB = 0x881B - RGB16I_EXT = 0x8D89 - RGB16UI_EXT = 0x8D77 - RGB16_EXT = 0x8054 - RGB16_SNORM = 0x8F9A - RGB2_EXT = 0x804E - RGB32F = 0x8815 - RGB32F_ARB = 0x8815 - RGB32I = 0x8D83 - RGB32I_EXT = 0x8D83 - RGB32UI = 0x8D71 - RGB32UI_EXT = 0x8D71 - RGB4 = 0x804F - RGB4_EXT = 0x804F - RGB4_S3TC = 0x83A1 - RGB5 = 0x8050 - RGB565 = 0x8D62 - RGB5_A1 = 0x8057 - RGB5_A1_EXT = 0x8057 - RGB5_EXT = 0x8050 - RGB8 = 0x8051 - RGB8I_EXT = 0x8D8F - RGB8UI_EXT = 0x8D7D - RGB8_EXT = 0x8051 - RGB8_SNORM = 0x8F96 - RGB9_E5_EXT = 0x8C3D - RGBA = 0x1908 - RGBA12 = 0x805A - RGBA12_EXT = 0x805A - RGBA16 = 0x805B - RGBA16F_ARB = 0x881A - RGBA16I_EXT = 0x8D88 - RGBA16UI_EXT = 0x8D76 - RGBA16_EXT = 0x805B - RGBA16_SNORM = 0x8F9B - RGBA2 = 0x8055 - RGBA2_EXT = 0x8055 - RGBA32F_ARB = 0x8814 - RGBA32I_EXT = 0x8D82 - RGBA32UI_EXT = 0x8D70 - RGBA4 = 0x8056 - RGBA4_DXT5_S3TC = 0x83A5 - RGBA4_EXT = 0x8056 - RGBA4_S3TC = 0x83A3 - RGBA8 = 0x8058 - RGBA8I_EXT = 0x8D8E - RGBA8UI = 0x8D7C - RGBA8UI_EXT = 0x8D7C - RGBA8_EXT = 0x8058 - RGBA8_SNORM = 0x8F97 - RGBA_DXT5_S3TC = 0x83A4 - RGBA_FLOAT16_APPLE = 0x881A - RGBA_FLOAT16_ATI = 0x881A - RGBA_FLOAT32_APPLE = 0x8814 - RGBA_FLOAT32_ATI = 0x8814 - RGBA_FLOAT_MODE_ARB = 0x8820 - RGBA_FLOAT_MODE_ATI = 0x8820 - RGBA_INTEGER_EXT = 0x8D99 - RGBA_INTEGER_MODE_EXT = 0x8D9E - RGBA_MODE = 0x0C31 - RGBA_S3TC = 0x83A2 - RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C - RGBA_SNORM = 0x8F93 - RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9 - RGB_422_APPLE = 0x8A1F - RGB_FLOAT16_APPLE = 0x881B - RGB_FLOAT16_ATI = 0x881B - RGB_FLOAT32_APPLE = 0x8815 - RGB_FLOAT32_ATI = 0x8815 - RGB_INTEGER_EXT = 0x8D98 - RGB_RAW_422_APPLE = 0x8A51 - RGB_S3TC = 0x83A0 - RGB_SCALE = 0x8573 - RGB_SCALE_ARB = 0x8573 - RGB_SCALE_EXT = 0x8573 - RGB_SNORM = 0x8F92 - RG_INTEGER = 0x8228 - RG_SNORM = 0x8F91 - RIGHT = 0x0407 - ROUNDED_RECT2_NV = 0xEA - ROUNDED_RECT4_NV = 0xEC - ROUNDED_RECT8_NV = 0xEE - ROUNDED_RECT_NV = 0xE8 - ROUND_NV = 0x90A4 - S = 0x2000 - SAMPLER = 0x82E6 - SAMPLER_1D = 0x8B5D - SAMPLER_1D_ARB = 0x8B5D - SAMPLER_1D_ARRAY_EXT = 0x8DC0 - SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3 - SAMPLER_1D_SHADOW = 0x8B61 - SAMPLER_1D_SHADOW_ARB = 0x8B61 - SAMPLER_2D = 0x8B5E - SAMPLER_2D_ARB = 0x8B5E - SAMPLER_2D_ARRAY_EXT = 0x8DC1 - SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4 - SAMPLER_2D_MULTISAMPLE = 0x9108 - SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B - SAMPLER_2D_RECT_ARB = 0x8B63 - SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64 - SAMPLER_2D_SHADOW = 0x8B62 - SAMPLER_2D_SHADOW_ARB = 0x8B62 - SAMPLER_3D = 0x8B5F - SAMPLER_3D_ARB = 0x8B5F - SAMPLER_BINDING = 0x8919 - SAMPLER_BUFFER_AMD = 0x9001 - SAMPLER_BUFFER_EXT = 0x8DC2 - SAMPLER_CUBE = 0x8B60 - SAMPLER_CUBE_ARB = 0x8B60 - SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900C - SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900D - SAMPLER_CUBE_SHADOW_EXT = 0x8DC5 - SAMPLER_KHR = 0x82E6 - SAMPLER_OBJECT_AMD = 0x9155 - SAMPLER_RENDERBUFFER_NV = 0x8E56 - SAMPLES = 0x80A9 - SAMPLES_3DFX = 0x86B4 - SAMPLES_ARB = 0x80A9 - SAMPLES_EXT = 0x80A9 - SAMPLES_PASSED = 0x8914 - SAMPLES_PASSED_ARB = 0x8914 - SAMPLES_SGIS = 0x80A9 - SAMPLE_ALPHA_TO_COVERAGE = 0x809E - SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E - SAMPLE_ALPHA_TO_MASK_EXT = 0x809E - SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E - SAMPLE_ALPHA_TO_ONE = 0x809F - SAMPLE_ALPHA_TO_ONE_ARB = 0x809F - SAMPLE_ALPHA_TO_ONE_EXT = 0x809F - SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F - SAMPLE_BUFFERS = 0x80A8 - SAMPLE_BUFFERS_3DFX = 0x86B3 - SAMPLE_BUFFERS_ARB = 0x80A8 - SAMPLE_BUFFERS_EXT = 0x80A8 - SAMPLE_BUFFERS_SGIS = 0x80A8 - SAMPLE_COVERAGE = 0x80A0 - SAMPLE_COVERAGE_ARB = 0x80A0 - SAMPLE_COVERAGE_INVERT = 0x80AB - SAMPLE_COVERAGE_INVERT_ARB = 0x80AB - SAMPLE_COVERAGE_VALUE = 0x80AA - SAMPLE_COVERAGE_VALUE_ARB = 0x80AA - SAMPLE_MASK = 0x8E51 - SAMPLE_MASK_EXT = 0x80A0 - SAMPLE_MASK_INVERT_EXT = 0x80AB - SAMPLE_MASK_INVERT_SGIS = 0x80AB - SAMPLE_MASK_NV = 0x8E51 - SAMPLE_MASK_SGIS = 0x80A0 - SAMPLE_MASK_VALUE = 0x8E52 - SAMPLE_MASK_VALUE_EXT = 0x80AA - SAMPLE_MASK_VALUE_NV = 0x8E52 - SAMPLE_MASK_VALUE_SGIS = 0x80AA - SAMPLE_PATTERN_EXT = 0x80AC - SAMPLE_PATTERN_SGIS = 0x80AC - SAMPLE_POSITION = 0x8E50 - SAMPLE_POSITION_NV = 0x8E50 - SAMPLE_SHADING_ARB = 0x8C36 - SATURATE_BIT_ATI = 0x00000040 - SCALAR_EXT = 0x87BE - SCALEBIAS_HINT_SGIX = 0x8322 - SCALED_RESOLVE_FASTEST_EXT = 0x90BA - SCALED_RESOLVE_NICEST_EXT = 0x90BB - SCALE_BY_FOUR_NV = 0x853F - SCALE_BY_ONE_HALF_NV = 0x8540 - SCALE_BY_TWO_NV = 0x853E - SCISSOR_BIT = 0x00080000 - SCISSOR_BOX = 0x0C10 - SCISSOR_TEST = 0x0C11 - SCREEN_COORDINATES_REND = 0x8490 - SCREEN_KHR = 0x9295 - SCREEN_NV = 0x9295 - SECONDARY_COLOR_ARRAY = 0x845E - SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27 - SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C - SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889C - SECONDARY_COLOR_ARRAY_EXT = 0x845E - SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31 - SECONDARY_COLOR_ARRAY_LIST_IBM = 103077 - SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087 - SECONDARY_COLOR_ARRAY_POINTER = 0x845D - SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D - SECONDARY_COLOR_ARRAY_SIZE = 0x845A - SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A - SECONDARY_COLOR_ARRAY_STRIDE = 0x845C - SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C - SECONDARY_COLOR_ARRAY_TYPE = 0x845B - SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B - SECONDARY_COLOR_NV = 0x852D - SECONDARY_INTERPOLATOR_ATI = 0x896D - SELECT = 0x1C02 - SELECTION_BUFFER_POINTER = 0x0DF3 - SELECTION_BUFFER_SIZE = 0x0DF4 - SEPARABLE_2D_EXT = 0x8012 - SEPARATE_ATTRIBS_EXT = 0x8C8D - SEPARATE_ATTRIBS_NV = 0x8C8D - SEPARATE_SPECULAR_COLOR = 0x81FA - SEPARATE_SPECULAR_COLOR_EXT = 0x81FA - SET = 0x150F - SET_AMD = 0x874A - SHADER = 0x82E1 - SHADER_BINARY_FORMATS = 0x8DF8 - SHADER_COMPILER = 0x8DFA - SHADER_CONSISTENT_NV = 0x86DD - SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010 - SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020 - SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020 - SHADER_IMAGE_ATOMIC = 0x82A6 - SHADER_IMAGE_LOAD = 0x82A4 - SHADER_IMAGE_STORE = 0x82A5 - SHADER_INCLUDE_ARB = 0x8DAE - SHADER_KHR = 0x82E1 - SHADER_OBJECT_ARB = 0x8B48 - SHADER_OBJECT_EXT = 0x8B48 - SHADER_OPERATION_NV = 0x86DF - SHADER_SOURCE_LENGTH = 0x8B88 - SHADER_STORAGE_BARRIER_BIT = 0x00002000 - SHADER_STORAGE_BLOCK = 0x92E6 - SHADER_STORAGE_BUFFER = 0x90D2 - SHADER_STORAGE_BUFFER_BINDING = 0x90D3 - SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF - SHADER_STORAGE_BUFFER_SIZE = 0x90D5 - SHADER_STORAGE_BUFFER_START = 0x90D4 - SHADER_TYPE = 0x8B4F - SHADE_MODEL = 0x0B54 - SHADING_LANGUAGE_VERSION = 0x8B8C - SHADING_LANGUAGE_VERSION_ARB = 0x8B8C - SHADOW_AMBIENT_SGIX = 0x80BF - SHADOW_ATTENUATION_EXT = 0x834E - SHARED_TEXTURE_PALETTE_EXT = 0x81FB - SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0 - SHININESS = 0x1601 - SHORT = 0x1402 - SIGNALED = 0x9119 - SIGNED_ALPHA8_NV = 0x8706 - SIGNED_ALPHA_NV = 0x8705 - SIGNED_HILO16_NV = 0x86FA - SIGNED_HILO8_NV = 0x885F - SIGNED_HILO_NV = 0x86F9 - SIGNED_IDENTITY_NV = 0x853C - SIGNED_INTENSITY8_NV = 0x8708 - SIGNED_INTENSITY_NV = 0x8707 - SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704 - SIGNED_LUMINANCE8_NV = 0x8702 - SIGNED_LUMINANCE_ALPHA_NV = 0x8703 - SIGNED_LUMINANCE_NV = 0x8701 - SIGNED_NEGATE_NV = 0x853D - SIGNED_NORMALIZED = 0x8F9C - SIGNED_RGB8_NV = 0x86FF - SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870D - SIGNED_RGBA8_NV = 0x86FC - SIGNED_RGBA_NV = 0x86FB - SIGNED_RGB_NV = 0x86FE - SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870C - SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC - SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE - SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD - SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF - SINGLE_COLOR = 0x81F9 - SINGLE_COLOR_EXT = 0x81F9 - SKIP_COMPONENTS1_NV = -6 - SKIP_COMPONENTS2_NV = -5 - SKIP_COMPONENTS3_NV = -4 - SKIP_COMPONENTS4_NV = -3 - SKIP_DECODE_EXT = 0x8A4A - SKIP_MISSING_GLYPH_NV = 0x90A9 - SLICE_ACCUM_SUN = 0x85CC - SLUMINANCE = 0x8C46 - SLUMINANCE8 = 0x8C47 - SLUMINANCE8_ALPHA8 = 0x8C45 - SLUMINANCE8_ALPHA8_EXT = 0x8C45 - SLUMINANCE8_EXT = 0x8C47 - SLUMINANCE_ALPHA = 0x8C44 - SLUMINANCE_ALPHA_EXT = 0x8C44 - SLUMINANCE_EXT = 0x8C46 - SMALL_CCW_ARC_TO_NV = 0x12 - SMALL_CW_ARC_TO_NV = 0x14 - SMOOTH = 0x1D01 - SMOOTH_CUBIC_CURVE_TO_NV = 0x10 - SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23 - SMOOTH_LINE_WIDTH_RANGE = 0x0B22 - SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13 - SMOOTH_POINT_SIZE_RANGE = 0x0B12 - SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0E - SM_COUNT_NV = 0x933B - SOFTLIGHT_KHR = 0x929C - SOFTLIGHT_NV = 0x929C - SOURCE0_ALPHA = 0x8588 - SOURCE0_ALPHA_ARB = 0x8588 - SOURCE0_ALPHA_EXT = 0x8588 - SOURCE0_RGB = 0x8580 - SOURCE0_RGB_ARB = 0x8580 - SOURCE0_RGB_EXT = 0x8580 - SOURCE1_ALPHA = 0x8589 - SOURCE1_ALPHA_ARB = 0x8589 - SOURCE1_ALPHA_EXT = 0x8589 - SOURCE1_RGB = 0x8581 - SOURCE1_RGB_ARB = 0x8581 - SOURCE1_RGB_EXT = 0x8581 - SOURCE2_ALPHA = 0x858A - SOURCE2_ALPHA_ARB = 0x858A - SOURCE2_ALPHA_EXT = 0x858A - SOURCE2_RGB = 0x8582 - SOURCE2_RGB_ARB = 0x8582 - SOURCE2_RGB_EXT = 0x8582 - SOURCE3_ALPHA_NV = 0x858B - SOURCE3_RGB_NV = 0x8583 - SPARE0_NV = 0x852E - SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532 - SPARE1_NV = 0x852F - SPARSE_BUFFER_PAGE_SIZE_ARB = 0x82F8 - SPARSE_STORAGE_BIT_ARB = 0x0400 - SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB = 0x91A9 - SPECULAR = 0x1202 - SPHERE_MAP = 0x2402 - SPOT_CUTOFF = 0x1206 - SPOT_DIRECTION = 0x1204 - SPOT_EXPONENT = 0x1205 - SPRITE_AXIAL_SGIX = 0x814C - SPRITE_AXIS_SGIX = 0x814A - SPRITE_EYE_ALIGNED_SGIX = 0x814E - SPRITE_MODE_SGIX = 0x8149 - SPRITE_OBJECT_ALIGNED_SGIX = 0x814D - SPRITE_SGIX = 0x8148 - SPRITE_TRANSLATION_SGIX = 0x814B - SQUARE_NV = 0x90A3 - SRC0_ALPHA = 0x8588 - SRC0_RGB = 0x8580 - SRC1_ALPHA = 0x8589 - SRC1_COLOR = 0x88F9 - SRC1_RGB = 0x8581 - SRC2_ALPHA = 0x858A - SRC2_RGB = 0x8582 - SRC_ALPHA = 0x0302 - SRC_ALPHA_SATURATE = 0x0308 - SRC_ATOP_NV = 0x928E - SRC_COLOR = 0x0300 - SRC_IN_NV = 0x928A - SRC_NV = 0x9286 - SRC_OUT_NV = 0x928C - SRC_OVER_NV = 0x9288 - SRGB = 0x8C40 - SRGB8 = 0x8C41 - SRGB8_ALPHA8 = 0x8C43 - SRGB8_ALPHA8_EXT = 0x8C43 - SRGB8_EXT = 0x8C41 - SRGB_ALPHA = 0x8C42 - SRGB_ALPHA_EXT = 0x8C42 - SRGB_DECODE_ARB = 0x8299 - SRGB_EXT = 0x8C40 - SRGB_READ = 0x8297 - SRGB_WRITE = 0x8298 - STACK_OVERFLOW = 0x0503 - STACK_OVERFLOW_KHR = 0x0503 - STACK_UNDERFLOW = 0x0504 - STACK_UNDERFLOW_KHR = 0x0504 - STANDARD_FONT_FORMAT_NV = 0x936C - STANDARD_FONT_NAME_NV = 0x9072 - STATIC_ATI = 0x8760 - STATIC_COPY = 0x88E6 - STATIC_COPY_ARB = 0x88E6 - STATIC_DRAW = 0x88E4 - STATIC_DRAW_ARB = 0x88E4 - STATIC_READ = 0x88E5 - STATIC_READ_ARB = 0x88E5 - STATIC_VERTEX_ARRAY_IBM = 103061 - STENCIL = 0x1802 - STENCIL_ATTACHMENT = 0x8D20 - STENCIL_ATTACHMENT_EXT = 0x8D20 - STENCIL_BACK_FAIL = 0x8801 - STENCIL_BACK_FAIL_ATI = 0x8801 - STENCIL_BACK_FUNC = 0x8800 - STENCIL_BACK_FUNC_ATI = 0x8800 - STENCIL_BACK_OP_VALUE_AMD = 0x874D - STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802 - STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802 - STENCIL_BACK_PASS_DEPTH_PASS = 0x8803 - STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803 - STENCIL_BACK_REF = 0x8CA3 - STENCIL_BACK_VALUE_MASK = 0x8CA4 - STENCIL_BACK_WRITEMASK = 0x8CA5 - STENCIL_BITS = 0x0D57 - STENCIL_BUFFER_BIT = 0x00000400 - STENCIL_CLEAR_TAG_VALUE_EXT = 0x88F3 - STENCIL_CLEAR_VALUE = 0x0B91 - STENCIL_COMPONENTS = 0x8285 - STENCIL_FAIL = 0x0B94 - STENCIL_FUNC = 0x0B92 - STENCIL_INDEX = 0x1901 - STENCIL_INDEX1 = 0x8D46 - STENCIL_INDEX16 = 0x8D49 - STENCIL_INDEX16_EXT = 0x8D49 - STENCIL_INDEX1_EXT = 0x8D46 - STENCIL_INDEX4 = 0x8D47 - STENCIL_INDEX4_EXT = 0x8D47 - STENCIL_INDEX8 = 0x8D48 - STENCIL_INDEX8_EXT = 0x8D48 - STENCIL_OP_VALUE_AMD = 0x874C - STENCIL_PASS_DEPTH_FAIL = 0x0B95 - STENCIL_PASS_DEPTH_PASS = 0x0B96 - STENCIL_REF = 0x0B97 - STENCIL_RENDERABLE = 0x8288 - STENCIL_TAG_BITS_EXT = 0x88F2 - STENCIL_TEST = 0x0B90 - STENCIL_TEST_TWO_SIDE_EXT = 0x8910 - STENCIL_VALUE_MASK = 0x0B93 - STENCIL_WRITEMASK = 0x0B98 - STEREO = 0x0C33 - STORAGE_CACHED_APPLE = 0x85BE - STORAGE_CLIENT_APPLE = 0x85B4 - STORAGE_PRIVATE_APPLE = 0x85BD - STORAGE_SHARED_APPLE = 0x85BF - STREAM_COPY = 0x88E2 - STREAM_COPY_ARB = 0x88E2 - STREAM_DRAW = 0x88E0 - STREAM_DRAW_ARB = 0x88E0 - STREAM_RASTERIZATION_AMD = 0x91A0 - STREAM_READ = 0x88E1 - STREAM_READ_ARB = 0x88E1 - STRICT_DEPTHFUNC_HINT_PGI = 0x1A216 - STRICT_LIGHTING_HINT_PGI = 0x1A217 - STRICT_SCISSOR_HINT_PGI = 0x1A218 - SUBPIXEL_BITS = 0x0D50 - SUBSAMPLE_DISTANCE_AMD = 0x883F - SUBTRACT = 0x84E7 - SUBTRACT_ARB = 0x84E7 - SUB_ATI = 0x8965 - SUCCESS_NV = 0x902F - SURFACE_MAPPED_NV = 0x8700 - SURFACE_REGISTERED_NV = 0x86FD - SURFACE_STATE_NV = 0x86EB - SWIZZLE_STQ_ATI = 0x8977 - SWIZZLE_STQ_DQ_ATI = 0x8979 - SWIZZLE_STRQ_ATI = 0x897A - SWIZZLE_STRQ_DQ_ATI = 0x897B - SWIZZLE_STR_ATI = 0x8976 - SWIZZLE_STR_DR_ATI = 0x8978 - SYNC_CL_EVENT_ARB = 0x8240 - SYNC_CL_EVENT_COMPLETE_ARB = 0x8241 - SYNC_CONDITION = 0x9113 - SYNC_FENCE = 0x9116 - SYNC_FLAGS = 0x9115 - SYNC_FLUSH_COMMANDS_BIT = 0x00000001 - SYNC_GPU_COMMANDS_COMPLETE = 0x9117 - SYNC_STATUS = 0x9114 - SYNC_X11_FENCE_EXT = 0x90E1 - SYSTEM_FONT_NAME_NV = 0x9073 - T = 0x2001 - T2F_C3F_V3F = 0x2A2A - T2F_C4F_N3F_V3F = 0x2A2C - T2F_C4UB_V3F = 0x2A29 - T2F_IUI_N3F_V2F_EXT = 0x81B3 - T2F_IUI_N3F_V3F_EXT = 0x81B4 - T2F_IUI_V2F_EXT = 0x81B1 - T2F_IUI_V3F_EXT = 0x81B2 - T2F_N3F_V3F = 0x2A2B - T2F_V3F = 0x2A27 - T4F_C4F_N3F_V4F = 0x2A2D - T4F_V4F = 0x2A28 - TABLE_TOO_LARGE_EXT = 0x8031 - TANGENT_ARRAY_EXT = 0x8439 - TANGENT_ARRAY_POINTER_EXT = 0x8442 - TANGENT_ARRAY_STRIDE_EXT = 0x843F - TANGENT_ARRAY_TYPE_EXT = 0x843E - TESSELLATION_FACTOR_AMD = 0x9005 - TESSELLATION_MODE_AMD = 0x9004 - TESS_CONTROL_OUTPUT_VERTICES = 0x8E75 - TESS_CONTROL_PROGRAM_NV = 0x891E - TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74 - TESS_CONTROL_SHADER = 0x8E88 - TESS_CONTROL_SHADER_BIT = 0x00000008 - TESS_CONTROL_SHADER_PATCHES_ARB = 0x82F1 - TESS_CONTROL_SUBROUTINE = 0x92E9 - TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF - TESS_CONTROL_TEXTURE = 0x829C - TESS_EVALUATION_PROGRAM_NV = 0x891F - TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75 - TESS_EVALUATION_SHADER = 0x8E87 - TESS_EVALUATION_SHADER_BIT = 0x00000010 - TESS_EVALUATION_SHADER_INVOCATIONS_ARB = 0x82F2 - TESS_EVALUATION_SUBROUTINE = 0x92EA - TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0 - TESS_EVALUATION_TEXTURE = 0x829D - TESS_GEN_MODE = 0x8E76 - TESS_GEN_POINT_MODE = 0x8E79 - TESS_GEN_SPACING = 0x8E77 - TESS_GEN_VERTEX_ORDER = 0x8E78 - TEXCOORD1_BIT_PGI = 0x10000000 - TEXCOORD2_BIT_PGI = 0x20000000 - TEXCOORD3_BIT_PGI = 0x40000000 - TEXCOORD4_BIT_PGI = 0x80000000 - TEXTURE = 0x1702 - TEXTURE0 = 0x84C0 - TEXTURE0_ARB = 0x84C0 - TEXTURE1 = 0x84C1 - TEXTURE10 = 0x84CA - TEXTURE10_ARB = 0x84CA - TEXTURE11 = 0x84CB - TEXTURE11_ARB = 0x84CB - TEXTURE12 = 0x84CC - TEXTURE12_ARB = 0x84CC - TEXTURE13 = 0x84CD - TEXTURE13_ARB = 0x84CD - TEXTURE14 = 0x84CE - TEXTURE14_ARB = 0x84CE - TEXTURE15 = 0x84CF - TEXTURE15_ARB = 0x84CF - TEXTURE16 = 0x84D0 - TEXTURE16_ARB = 0x84D0 - TEXTURE17 = 0x84D1 - TEXTURE17_ARB = 0x84D1 - TEXTURE18 = 0x84D2 - TEXTURE18_ARB = 0x84D2 - TEXTURE19 = 0x84D3 - TEXTURE19_ARB = 0x84D3 - TEXTURE1_ARB = 0x84C1 - TEXTURE2 = 0x84C2 - TEXTURE20 = 0x84D4 - TEXTURE20_ARB = 0x84D4 - TEXTURE21 = 0x84D5 - TEXTURE21_ARB = 0x84D5 - TEXTURE22 = 0x84D6 - TEXTURE22_ARB = 0x84D6 - TEXTURE23 = 0x84D7 - TEXTURE23_ARB = 0x84D7 - TEXTURE24 = 0x84D8 - TEXTURE24_ARB = 0x84D8 - TEXTURE25 = 0x84D9 - TEXTURE25_ARB = 0x84D9 - TEXTURE26 = 0x84DA - TEXTURE26_ARB = 0x84DA - TEXTURE27 = 0x84DB - TEXTURE27_ARB = 0x84DB - TEXTURE28 = 0x84DC - TEXTURE28_ARB = 0x84DC - TEXTURE29 = 0x84DD - TEXTURE29_ARB = 0x84DD - TEXTURE2_ARB = 0x84C2 - TEXTURE3 = 0x84C3 - TEXTURE30 = 0x84DE - TEXTURE30_ARB = 0x84DE - TEXTURE31 = 0x84DF - TEXTURE31_ARB = 0x84DF - TEXTURE3_ARB = 0x84C3 - TEXTURE4 = 0x84C4 - TEXTURE4_ARB = 0x84C4 - TEXTURE5 = 0x84C5 - TEXTURE5_ARB = 0x84C5 - TEXTURE6 = 0x84C6 - TEXTURE6_ARB = 0x84C6 - TEXTURE7 = 0x84C7 - TEXTURE7_ARB = 0x84C7 - TEXTURE8 = 0x84C8 - TEXTURE8_ARB = 0x84C8 - TEXTURE9 = 0x84C9 - TEXTURE9_ARB = 0x84C9 - TEXTURE_1D = 0x0DE0 - TEXTURE_1D_ARRAY = 0x8C18 - TEXTURE_1D_ARRAY_EXT = 0x8C18 - TEXTURE_1D_BINDING_EXT = 0x8068 - TEXTURE_1D_STACK_BINDING_MESAX = 0x875D - TEXTURE_1D_STACK_MESAX = 0x8759 - TEXTURE_2D = 0x0DE1 - TEXTURE_2D_ARRAY = 0x8C1A - TEXTURE_2D_ARRAY_EXT = 0x8C1A - TEXTURE_2D_BINDING_EXT = 0x8069 - TEXTURE_2D_MULTISAMPLE = 0x9100 - TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102 - TEXTURE_2D_STACK_BINDING_MESAX = 0x875E - TEXTURE_2D_STACK_MESAX = 0x875A - TEXTURE_3D = 0x806F - TEXTURE_3D_BINDING_EXT = 0x806A - TEXTURE_3D_EXT = 0x806F - TEXTURE_4DSIZE_SGIS = 0x8136 - TEXTURE_4D_BINDING_SGIS = 0x814F - TEXTURE_4D_SGIS = 0x8134 - TEXTURE_ALPHA_SIZE = 0x805F - TEXTURE_ALPHA_SIZE_EXT = 0x805F - TEXTURE_ALPHA_TYPE = 0x8C13 - TEXTURE_ALPHA_TYPE_ARB = 0x8C13 - TEXTURE_APPLICATION_MODE_EXT = 0x834F - TEXTURE_BASE_LEVEL = 0x813C - TEXTURE_BASE_LEVEL_SGIS = 0x813C - TEXTURE_BINDING = 0x82EB - TEXTURE_BINDING_1D = 0x8068 - TEXTURE_BINDING_1D_ARRAY = 0x8C1C - TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C - TEXTURE_BINDING_2D = 0x8069 - TEXTURE_BINDING_2D_ARRAY = 0x8C1D - TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D - TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104 - TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105 - TEXTURE_BINDING_3D = 0x806A - TEXTURE_BINDING_BUFFER = 0x8C2C - TEXTURE_BINDING_BUFFER_ARB = 0x8C2C - TEXTURE_BINDING_BUFFER_EXT = 0x8C2C - TEXTURE_BINDING_CUBE_MAP = 0x8514 - TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514 - TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A - TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900A - TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514 - TEXTURE_BINDING_RECTANGLE = 0x84F6 - TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6 - TEXTURE_BINDING_RECTANGLE_NV = 0x84F6 - TEXTURE_BINDING_RENDERBUFFER_NV = 0x8E53 - TEXTURE_BIT = 0x00040000 - TEXTURE_BLUE_SIZE = 0x805E - TEXTURE_BLUE_SIZE_EXT = 0x805E - TEXTURE_BLUE_TYPE = 0x8C12 - TEXTURE_BLUE_TYPE_ARB = 0x8C12 - TEXTURE_BORDER = 0x1005 - TEXTURE_BORDER_COLOR = 0x1004 - TEXTURE_BORDER_VALUES_NV = 0x871A - TEXTURE_BUFFER = 0x8C2A - TEXTURE_BUFFER_ARB = 0x8C2A - TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2D - TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D - TEXTURE_BUFFER_EXT = 0x8C2A - TEXTURE_BUFFER_FORMAT_ARB = 0x8C2E - TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E - TEXTURE_BUFFER_OFFSET = 0x919D - TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F - TEXTURE_BUFFER_SIZE = 0x919E - TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171 - TEXTURE_CLIPMAP_DEPTH_SGIX = 0x8176 - TEXTURE_CLIPMAP_FRAME_SGIX = 0x8172 - TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175 - TEXTURE_CLIPMAP_OFFSET_SGIX = 0x8173 - TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174 - TEXTURE_COLOR_SAMPLES_NV = 0x9046 - TEXTURE_COLOR_TABLE_SGI = 0x80BC - TEXTURE_COLOR_WRITEMASK_SGIS = 0x81EF - TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF - TEXTURE_COMPARE_FUNC = 0x884D - TEXTURE_COMPARE_FUNC_ARB = 0x884D - TEXTURE_COMPARE_MODE = 0x884C - TEXTURE_COMPARE_MODE_ARB = 0x884C - TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B - TEXTURE_COMPARE_SGIX = 0x819A - TEXTURE_COMPONENTS = 0x1003 - TEXTURE_COMPRESSED = 0x86A1 - TEXTURE_COMPRESSED_ARB = 0x86A1 - TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2 - TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3 - TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1 - TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0 - TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0 - TEXTURE_COMPRESSION_HINT = 0x84EF - TEXTURE_COMPRESSION_HINT_ARB = 0x84EF - TEXTURE_CONSTANT_DATA_SUNX = 0x81D6 - TEXTURE_COORD_ARRAY = 0x8078 - TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25 - TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A - TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889A - TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B - TEXTURE_COORD_ARRAY_EXT = 0x8078 - TEXTURE_COORD_ARRAY_LENGTH_NV = 0x8F2F - TEXTURE_COORD_ARRAY_LIST_IBM = 103074 - TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084 - TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F8 - TEXTURE_COORD_ARRAY_POINTER = 0x8092 - TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092 - TEXTURE_COORD_ARRAY_SIZE = 0x8088 - TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088 - TEXTURE_COORD_ARRAY_STRIDE = 0x808A - TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A - TEXTURE_COORD_ARRAY_TYPE = 0x8089 - TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089 - TEXTURE_COORD_NV = 0x8C79 - TEXTURE_COVERAGE_SAMPLES_NV = 0x9045 - TEXTURE_CUBE_MAP = 0x8513 - TEXTURE_CUBE_MAP_ARB = 0x8513 - TEXTURE_CUBE_MAP_ARRAY = 0x9009 - TEXTURE_CUBE_MAP_ARRAY_ARB = 0x9009 - TEXTURE_CUBE_MAP_EXT = 0x8513 - TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516 - TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516 - TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516 - TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518 - TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518 - TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518 - TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A - TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A - TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A - TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515 - TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515 - TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515 - TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517 - TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517 - TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517 - TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519 - TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519 - TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519 - TEXTURE_CUBE_MAP_SEAMLESS = 0x884F - TEXTURE_DEFORMATION_BIT_SGIX = 0x00000001 - TEXTURE_DEFORMATION_SGIX = 0x8195 - TEXTURE_DEPTH = 0x8071 - TEXTURE_DEPTH_EXT = 0x8071 - TEXTURE_DEPTH_SIZE = 0x884A - TEXTURE_DEPTH_SIZE_ARB = 0x884A - TEXTURE_DEPTH_TYPE = 0x8C16 - TEXTURE_DEPTH_TYPE_ARB = 0x8C16 - TEXTURE_DS_SIZE_NV = 0x871D - TEXTURE_DT_SIZE_NV = 0x871E - TEXTURE_ENV = 0x2300 - TEXTURE_ENV_BIAS_SGIX = 0x80BE - TEXTURE_ENV_COLOR = 0x2201 - TEXTURE_ENV_MODE = 0x2200 - TEXTURE_FETCH_BARRIER_BIT = 0x00000008 - TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008 - TEXTURE_FILTER4_SIZE_SGIS = 0x8147 - TEXTURE_FILTER_CONTROL = 0x8500 - TEXTURE_FILTER_CONTROL_EXT = 0x8500 - TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107 - TEXTURE_FLOAT_COMPONENTS_NV = 0x888C - TEXTURE_FREE_MEMORY_ATI = 0x87FC - TEXTURE_GATHER = 0x82A2 - TEXTURE_GATHER_SHADOW = 0x82A3 - TEXTURE_GEN_MODE = 0x2500 - TEXTURE_GEN_Q = 0x0C63 - TEXTURE_GEN_R = 0x0C62 - TEXTURE_GEN_S = 0x0C60 - TEXTURE_GEN_T = 0x0C61 - TEXTURE_GEQUAL_R_SGIX = 0x819D - TEXTURE_GREEN_SIZE = 0x805D - TEXTURE_GREEN_SIZE_EXT = 0x805D - TEXTURE_GREEN_TYPE = 0x8C11 - TEXTURE_GREEN_TYPE_ARB = 0x8C11 - TEXTURE_HEIGHT = 0x1001 - TEXTURE_HI_SIZE_NV = 0x871B - TEXTURE_IMAGE_FORMAT = 0x828F - TEXTURE_IMAGE_TYPE = 0x8290 - TEXTURE_IMMUTABLE_FORMAT = 0x912F - TEXTURE_IMMUTABLE_LEVELS = 0x82DF - TEXTURE_INDEX_SIZE_EXT = 0x80ED - TEXTURE_INTENSITY_SIZE = 0x8061 - TEXTURE_INTENSITY_SIZE_EXT = 0x8061 - TEXTURE_INTENSITY_TYPE_ARB = 0x8C15 - TEXTURE_INTERNAL_FORMAT = 0x1003 - TEXTURE_LEQUAL_R_SGIX = 0x819C - TEXTURE_LIGHTING_MODE_HP = 0x8167 - TEXTURE_LIGHT_EXT = 0x8350 - TEXTURE_LOD_BIAS = 0x8501 - TEXTURE_LOD_BIAS_EXT = 0x8501 - TEXTURE_LOD_BIAS_R_SGIX = 0x8190 - TEXTURE_LOD_BIAS_S_SGIX = 0x818E - TEXTURE_LOD_BIAS_T_SGIX = 0x818F - TEXTURE_LO_SIZE_NV = 0x871C - TEXTURE_LUMINANCE_SIZE = 0x8060 - TEXTURE_LUMINANCE_SIZE_EXT = 0x8060 - TEXTURE_LUMINANCE_TYPE_ARB = 0x8C14 - TEXTURE_MAG_FILTER = 0x2800 - TEXTURE_MAG_SIZE_NV = 0x871F - TEXTURE_MATERIAL_FACE_EXT = 0x8351 - TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352 - TEXTURE_MATRIX = 0x0BA8 - TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE - TEXTURE_MAX_CLAMP_R_SGIX = 0x836B - TEXTURE_MAX_CLAMP_S_SGIX = 0x8369 - TEXTURE_MAX_CLAMP_T_SGIX = 0x836A - TEXTURE_MAX_LEVEL = 0x813D - TEXTURE_MAX_LEVEL_SGIS = 0x813D - TEXTURE_MAX_LOD = 0x813B - TEXTURE_MAX_LOD_SGIS = 0x813B - TEXTURE_MEMORY_LAYOUT_INTEL = 0x83FF - TEXTURE_MIN_FILTER = 0x2801 - TEXTURE_MIN_LOD = 0x813A - TEXTURE_MIN_LOD_SGIS = 0x813A - TEXTURE_MULTI_BUFFER_HINT_SGIX = 0x812E - TEXTURE_NORMAL_EXT = 0x85AF - TEXTURE_POST_SPECULAR_HP = 0x8168 - TEXTURE_PRE_SPECULAR_HP = 0x8169 - TEXTURE_PRIORITY = 0x8066 - TEXTURE_PRIORITY_EXT = 0x8066 - TEXTURE_RANGE_LENGTH_APPLE = 0x85B7 - TEXTURE_RANGE_POINTER_APPLE = 0x85B8 - TEXTURE_RECTANGLE = 0x84F5 - TEXTURE_RECTANGLE_ARB = 0x84F5 - TEXTURE_RECTANGLE_NV = 0x84F5 - TEXTURE_RED_SIZE = 0x805C - TEXTURE_RED_SIZE_EXT = 0x805C - TEXTURE_RED_TYPE = 0x8C10 - TEXTURE_RED_TYPE_ARB = 0x8C10 - TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54 - TEXTURE_RENDERBUFFER_NV = 0x8E55 - TEXTURE_RESIDENT = 0x8067 - TEXTURE_RESIDENT_EXT = 0x8067 - TEXTURE_SAMPLES = 0x9106 - TEXTURE_SHADER_NV = 0x86DE - TEXTURE_SHADOW = 0x82A1 - TEXTURE_SHARED_SIZE_EXT = 0x8C3F - TEXTURE_SPARSE_ARB = 0x91A6 - TEXTURE_SRGB_DECODE_EXT = 0x8A48 - TEXTURE_STACK_DEPTH = 0x0BA5 - TEXTURE_STENCIL_SIZE = 0x88F1 - TEXTURE_STENCIL_SIZE_EXT = 0x88F1 - TEXTURE_STORAGE_HINT_APPLE = 0x85BC - TEXTURE_STORAGE_SPARSE_BIT_AMD = 0x00000001 - TEXTURE_SWIZZLE_A = 0x8E45 - TEXTURE_SWIZZLE_A_EXT = 0x8E45 - TEXTURE_SWIZZLE_B = 0x8E44 - TEXTURE_SWIZZLE_B_EXT = 0x8E44 - TEXTURE_SWIZZLE_G = 0x8E43 - TEXTURE_SWIZZLE_G_EXT = 0x8E43 - TEXTURE_SWIZZLE_R = 0x8E42 - TEXTURE_SWIZZLE_RGBA = 0x8E46 - TEXTURE_SWIZZLE_RGBA_EXT = 0x8E46 - TEXTURE_SWIZZLE_R_EXT = 0x8E42 - TEXTURE_TARGET = 0x1006 - TEXTURE_TOO_LARGE_EXT = 0x8065 - TEXTURE_UNSIGNED_REMAP_MODE_NV = 0x888F - TEXTURE_UPDATE_BARRIER_BIT = 0x00000100 - TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100 - TEXTURE_VIEW = 0x82B5 - TEXTURE_VIEW_MIN_LAYER = 0x82DD - TEXTURE_VIEW_MIN_LEVEL = 0x82DB - TEXTURE_VIEW_NUM_LAYERS = 0x82DE - TEXTURE_VIEW_NUM_LEVELS = 0x82DC - TEXTURE_WIDTH = 0x1000 - TEXTURE_WRAP_Q_SGIS = 0x8137 - TEXTURE_WRAP_R = 0x8072 - TEXTURE_WRAP_R_EXT = 0x8072 - TEXTURE_WRAP_S = 0x2802 - TEXTURE_WRAP_T = 0x2803 - TEXT_FRAGMENT_SHADER_ATI = 0x8200 - TIMEOUT_EXPIRED = 0x911B - TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFF - TIMESTAMP = 0x8E28 - TIME_ELAPSED = 0x88BF - TIME_ELAPSED_EXT = 0x88BF - TOP_LEVEL_ARRAY_SIZE = 0x930C - TOP_LEVEL_ARRAY_STRIDE = 0x930D - TRACK_MATRIX_NV = 0x8648 - TRACK_MATRIX_TRANSFORM_NV = 0x8649 - TRANSFORM_BIT = 0x00001000 - TRANSFORM_FEEDBACK = 0x8E22 - TRANSFORM_FEEDBACK_ACTIVE = 0x8E24 - TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E - TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800 - TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800 - TRANSFORM_FEEDBACK_BINDING = 0x8E25 - TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25 - TRANSFORM_FEEDBACK_BUFFER = 0x8C8E - TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24 - TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24 - TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F - TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F - TRANSFORM_FEEDBACK_BUFFER_EXT = 0x8C8E - TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B - TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F - TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F - TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E - TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85 - TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85 - TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84 - TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84 - TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C - TRANSFORM_FEEDBACK_NV = 0x8E22 - TRANSFORM_FEEDBACK_OVERFLOW_ARB = 0x82EC - TRANSFORM_FEEDBACK_PAUSED = 0x8E23 - TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88 - TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88 - TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86 - TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB = 0x82ED - TRANSFORM_FEEDBACK_VARYING = 0x92F4 - TRANSFORM_FEEDBACK_VARYINGS_EXT = 0x8C83 - TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83 - TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76 - TRANSFORM_HINT_APPLE = 0x85B1 - TRANSLATE_2D_NV = 0x9090 - TRANSLATE_3D_NV = 0x9091 - TRANSLATE_X_NV = 0x908E - TRANSLATE_Y_NV = 0x908F - TRANSPOSE_AFFINE_2D_NV = 0x9096 - TRANSPOSE_AFFINE_3D_NV = 0x9098 - TRANSPOSE_COLOR_MATRIX = 0x84E6 - TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6 - TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7 - TRANSPOSE_MODELVIEW_MATRIX = 0x84E3 - TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3 - TRANSPOSE_NV = 0x862C - TRANSPOSE_PROGRAM_MATRIX_EXT = 0x8E2E - TRANSPOSE_PROJECTION_MATRIX = 0x84E4 - TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4 - TRANSPOSE_TEXTURE_MATRIX = 0x84E5 - TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5 - TRIANGLES = 0x0004 - TRIANGLES_ADJACENCY_ARB = 0x000C - TRIANGLES_ADJACENCY_EXT = 0x000C - TRIANGLE_FAN = 0x0006 - TRIANGLE_LIST_SUN = 0x81D7 - TRIANGLE_MESH_SUN = 0x8615 - TRIANGLE_STRIP = 0x0005 - TRIANGLE_STRIP_ADJACENCY_ARB = 0x000D - TRIANGLE_STRIP_ADJACENCY_EXT = 0x000D - TRIANGULAR_NV = 0x90A5 - TRUE = 1 - TYPE = 0x92FA - UNCORRELATED_NV = 0x9282 - UNDEFINED_APPLE = 0x8A1C - UNDEFINED_VERTEX = 0x8260 - UNIFORM = 0x92E1 - UNIFORM_ARRAY_STRIDE = 0x8A3C - UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA - UNIFORM_BARRIER_BIT = 0x00000004 - UNIFORM_BARRIER_BIT_EXT = 0x00000004 - UNIFORM_BLOCK = 0x92E2 - UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42 - UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43 - UNIFORM_BLOCK_BINDING = 0x8A3F - UNIFORM_BLOCK_DATA_SIZE = 0x8A40 - UNIFORM_BLOCK_INDEX = 0x8A3A - UNIFORM_BLOCK_NAME_LENGTH = 0x8A41 - UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC - UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46 - UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45 - UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0 - UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1 - UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44 - UNIFORM_BUFFER = 0x8A11 - UNIFORM_BUFFER_BINDING = 0x8A28 - UNIFORM_BUFFER_BINDING_EXT = 0x8DEF - UNIFORM_BUFFER_EXT = 0x8DEE - UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34 - UNIFORM_BUFFER_SIZE = 0x8A2A - UNIFORM_BUFFER_START = 0x8A29 - UNIFORM_IS_ROW_MAJOR = 0x8A3E - UNIFORM_MATRIX_STRIDE = 0x8A3D - UNIFORM_NAME_LENGTH = 0x8A39 - UNIFORM_OFFSET = 0x8A3B - UNIFORM_SIZE = 0x8A38 - UNIFORM_TYPE = 0x8A37 - UNKNOWN_CONTEXT_RESET = 0x8255 - UNKNOWN_CONTEXT_RESET_ARB = 0x8255 - UNKNOWN_CONTEXT_RESET_KHR = 0x8255 - UNPACK_ALIGNMENT = 0x0CF5 - UNPACK_CLIENT_STORAGE_APPLE = 0x85B2 - UNPACK_CMYK_HINT_EXT = 0x800F - UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129 - UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128 - UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A - UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127 - UNPACK_CONSTANT_DATA_SUNX = 0x81D5 - UNPACK_IMAGE_DEPTH_SGIS = 0x8133 - UNPACK_IMAGE_HEIGHT = 0x806E - UNPACK_IMAGE_HEIGHT_EXT = 0x806E - UNPACK_LSB_FIRST = 0x0CF1 - UNPACK_RESAMPLE_OML = 0x8985 - UNPACK_RESAMPLE_SGIX = 0x842D - UNPACK_ROW_BYTES_APPLE = 0x8A16 - UNPACK_ROW_LENGTH = 0x0CF2 - UNPACK_SKIP_IMAGES = 0x806D - UNPACK_SKIP_IMAGES_EXT = 0x806D - UNPACK_SKIP_PIXELS = 0x0CF4 - UNPACK_SKIP_ROWS = 0x0CF3 - UNPACK_SKIP_VOLUMES_SGIS = 0x8132 - UNPACK_SUBSAMPLE_RATE_SGIX = 0x85A1 - UNPACK_SWAP_BYTES = 0x0CF0 - UNSIGNALED = 0x9118 - UNSIGNED_BYTE = 0x1401 - UNSIGNED_BYTE_2_3_3_REV = 0x8362 - UNSIGNED_BYTE_3_3_2 = 0x8032 - UNSIGNED_BYTE_3_3_2_EXT = 0x8032 - UNSIGNED_IDENTITY_NV = 0x8536 - UNSIGNED_INT = 0x1405 - UNSIGNED_INT16_NV = 0x8FF0 - UNSIGNED_INT16_VEC2_NV = 0x8FF1 - UNSIGNED_INT16_VEC3_NV = 0x8FF2 - UNSIGNED_INT16_VEC4_NV = 0x8FF3 - UNSIGNED_INT64_AMD = 0x8BC2 - UNSIGNED_INT64_ARB = 0x140F - UNSIGNED_INT64_NV = 0x140F - UNSIGNED_INT64_VEC2_NV = 0x8FF5 - UNSIGNED_INT64_VEC3_NV = 0x8FF6 - UNSIGNED_INT64_VEC4_NV = 0x8FF7 - UNSIGNED_INT8_NV = 0x8FEC - UNSIGNED_INT8_VEC2_NV = 0x8FED - UNSIGNED_INT8_VEC3_NV = 0x8FEE - UNSIGNED_INT8_VEC4_NV = 0x8FEF - UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B - UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B - UNSIGNED_INT_10_10_10_2 = 0x8036 - UNSIGNED_INT_10_10_10_2_EXT = 0x8036 - UNSIGNED_INT_24_8 = 0x84FA - UNSIGNED_INT_24_8_EXT = 0x84FA - UNSIGNED_INT_24_8_NV = 0x84FA - UNSIGNED_INT_2_10_10_10_REV = 0x8368 - UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8C3E - UNSIGNED_INT_8_8_8_8 = 0x8035 - UNSIGNED_INT_8_8_8_8_EXT = 0x8035 - UNSIGNED_INT_8_8_8_8_REV = 0x8367 - UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86DB - UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB - UNSIGNED_INT_IMAGE_1D = 0x9062 - UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068 - UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068 - UNSIGNED_INT_IMAGE_1D_EXT = 0x9062 - UNSIGNED_INT_IMAGE_2D = 0x9063 - UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069 - UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069 - UNSIGNED_INT_IMAGE_2D_EXT = 0x9063 - UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B - UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C - UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C - UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B - UNSIGNED_INT_IMAGE_2D_RECT = 0x9065 - UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065 - UNSIGNED_INT_IMAGE_3D = 0x9064 - UNSIGNED_INT_IMAGE_3D_EXT = 0x9064 - UNSIGNED_INT_IMAGE_BUFFER = 0x9067 - UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067 - UNSIGNED_INT_IMAGE_CUBE = 0x9066 - UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066 - UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A - UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A - UNSIGNED_INT_S8_S8_8_8_NV = 0x86DA - UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6 - UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1 - UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7 - UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2 - UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A - UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D - UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5 - UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3 - UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003 - UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8 - UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4 - UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F - UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58 - UNSIGNED_INT_VEC2_EXT = 0x8DC6 - UNSIGNED_INT_VEC3_EXT = 0x8DC7 - UNSIGNED_INT_VEC4_EXT = 0x8DC8 - UNSIGNED_INVERT_NV = 0x8537 - UNSIGNED_NORMALIZED = 0x8C17 - UNSIGNED_NORMALIZED_ARB = 0x8C17 - UNSIGNED_SHORT = 0x1403 - UNSIGNED_SHORT_1_5_5_5_REV = 0x8366 - UNSIGNED_SHORT_4_4_4_4 = 0x8033 - UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033 - UNSIGNED_SHORT_4_4_4_4_REV = 0x8365 - UNSIGNED_SHORT_5_5_5_1 = 0x8034 - UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034 - UNSIGNED_SHORT_5_6_5 = 0x8363 - UNSIGNED_SHORT_5_6_5_REV = 0x8364 - UNSIGNED_SHORT_8_8_APPLE = 0x85BA - UNSIGNED_SHORT_8_8_MESA = 0x85BA - UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB - UNSIGNED_SHORT_8_8_REV_MESA = 0x85BB - UPPER_LEFT = 0x8CA2 - USE_MISSING_GLYPH_NV = 0x90AA - UTF16_NV = 0x909B - UTF8_NV = 0x909A - V2F = 0x2A20 - V3F = 0x2A21 - VALIDATE_STATUS = 0x8B83 - VARIABLE_A_NV = 0x8523 - VARIABLE_B_NV = 0x8524 - VARIABLE_C_NV = 0x8525 - VARIABLE_D_NV = 0x8526 - VARIABLE_E_NV = 0x8527 - VARIABLE_F_NV = 0x8528 - VARIABLE_G_NV = 0x8529 - VARIANT_ARRAY_EXT = 0x87E8 - VARIANT_ARRAY_POINTER_EXT = 0x87E9 - VARIANT_ARRAY_STRIDE_EXT = 0x87E6 - VARIANT_ARRAY_TYPE_EXT = 0x87E7 - VARIANT_DATATYPE_EXT = 0x87E5 - VARIANT_EXT = 0x87C1 - VARIANT_VALUE_EXT = 0x87E4 - VBO_FREE_MEMORY_ATI = 0x87FB - VECTOR_EXT = 0x87BF - VENDOR = 0x1F00 - VERSION = 0x1F02 - VERTEX23_BIT_PGI = 0x00000004 - VERTEX4_BIT_PGI = 0x00000008 - VERTEX_ARRAY = 0x8074 - VERTEX_ARRAY_ADDRESS_NV = 0x8F21 - VERTEX_ARRAY_BINDING = 0x85B5 - VERTEX_ARRAY_BINDING_APPLE = 0x85B5 - VERTEX_ARRAY_BUFFER_BINDING = 0x8896 - VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896 - VERTEX_ARRAY_COUNT_EXT = 0x807D - VERTEX_ARRAY_EXT = 0x8074 - VERTEX_ARRAY_KHR = 0x8074 - VERTEX_ARRAY_LENGTH_NV = 0x8F2B - VERTEX_ARRAY_LIST_IBM = 103070 - VERTEX_ARRAY_LIST_STRIDE_IBM = 103080 - VERTEX_ARRAY_OBJECT_AMD = 0x9154 - VERTEX_ARRAY_OBJECT_EXT = 0x9154 - VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F5 - VERTEX_ARRAY_POINTER = 0x808E - VERTEX_ARRAY_POINTER_EXT = 0x808E - VERTEX_ARRAY_RANGE_APPLE = 0x851D - VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E - VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E - VERTEX_ARRAY_RANGE_NV = 0x851D - VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521 - VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521 - VERTEX_ARRAY_RANGE_VALID_NV = 0x851F - VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533 - VERTEX_ARRAY_SIZE = 0x807A - VERTEX_ARRAY_SIZE_EXT = 0x807A - VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F - VERTEX_ARRAY_STRIDE = 0x807C - VERTEX_ARRAY_STRIDE_EXT = 0x807C - VERTEX_ARRAY_TYPE = 0x807B - VERTEX_ARRAY_TYPE_EXT = 0x807B - VERTEX_ATTRIB_ARRAY0_NV = 0x8650 - VERTEX_ATTRIB_ARRAY10_NV = 0x865A - VERTEX_ATTRIB_ARRAY11_NV = 0x865B - VERTEX_ATTRIB_ARRAY12_NV = 0x865C - VERTEX_ATTRIB_ARRAY13_NV = 0x865D - VERTEX_ATTRIB_ARRAY14_NV = 0x865E - VERTEX_ATTRIB_ARRAY15_NV = 0x865F - VERTEX_ATTRIB_ARRAY1_NV = 0x8651 - VERTEX_ATTRIB_ARRAY2_NV = 0x8652 - VERTEX_ATTRIB_ARRAY3_NV = 0x8653 - VERTEX_ATTRIB_ARRAY4_NV = 0x8654 - VERTEX_ATTRIB_ARRAY5_NV = 0x8655 - VERTEX_ATTRIB_ARRAY6_NV = 0x8656 - VERTEX_ATTRIB_ARRAY7_NV = 0x8657 - VERTEX_ATTRIB_ARRAY8_NV = 0x8658 - VERTEX_ATTRIB_ARRAY9_NV = 0x8659 - VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20 - VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001 - VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001 - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889F - VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE - VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622 - VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622 - VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88FD - VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88FD - VERTEX_ATTRIB_ARRAY_LENGTH_NV = 0x8F2A - VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A - VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A - VERTEX_ATTRIB_ARRAY_POINTER = 0x8645 - VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645 - VERTEX_ATTRIB_ARRAY_SIZE = 0x8623 - VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623 - VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624 - VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624 - VERTEX_ATTRIB_ARRAY_TYPE = 0x8625 - VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625 - VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E - VERTEX_ATTRIB_BINDING = 0x82D4 - VERTEX_ATTRIB_MAP1_APPLE = 0x8A00 - VERTEX_ATTRIB_MAP1_COEFF_APPLE = 0x8A03 - VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = 0x8A05 - VERTEX_ATTRIB_MAP1_ORDER_APPLE = 0x8A04 - VERTEX_ATTRIB_MAP1_SIZE_APPLE = 0x8A02 - VERTEX_ATTRIB_MAP2_APPLE = 0x8A01 - VERTEX_ATTRIB_MAP2_COEFF_APPLE = 0x8A07 - VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = 0x8A09 - VERTEX_ATTRIB_MAP2_ORDER_APPLE = 0x8A08 - VERTEX_ATTRIB_MAP2_SIZE_APPLE = 0x8A06 - VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5 - VERTEX_BINDING_DIVISOR = 0x82D6 - VERTEX_BINDING_OFFSET = 0x82D7 - VERTEX_BINDING_STRIDE = 0x82D8 - VERTEX_BLEND_ARB = 0x86A7 - VERTEX_CONSISTENT_HINT_PGI = 0x1A22B - VERTEX_DATA_HINT_PGI = 0x1A22A - VERTEX_ELEMENT_SWIZZLE_AMD = 0x91A4 - VERTEX_ID_NV = 0x8C7B - VERTEX_ID_SWIZZLE_AMD = 0x91A5 - VERTEX_PRECLIP_HINT_SGIX = 0x83EF - VERTEX_PRECLIP_SGIX = 0x83EE - VERTEX_PROGRAM_ARB = 0x8620 - VERTEX_PROGRAM_BINDING_NV = 0x864A - VERTEX_PROGRAM_NV = 0x8620 - VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2 - VERTEX_PROGRAM_POINT_SIZE = 0x8642 - VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642 - VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642 - VERTEX_PROGRAM_TWO_SIDE = 0x8643 - VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643 - VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643 - VERTEX_SHADER = 0x8B31 - VERTEX_SHADER_ARB = 0x8B31 - VERTEX_SHADER_BINDING_EXT = 0x8781 - VERTEX_SHADER_BIT = 0x00000001 - VERTEX_SHADER_BIT_EXT = 0x00000001 - VERTEX_SHADER_EXT = 0x8780 - VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF - VERTEX_SHADER_INVARIANTS_EXT = 0x87D1 - VERTEX_SHADER_INVOCATIONS_ARB = 0x82F0 - VERTEX_SHADER_LOCALS_EXT = 0x87D3 - VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2 - VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4 - VERTEX_SHADER_VARIANTS_EXT = 0x87D0 - VERTEX_SOURCE_ATI = 0x8774 - VERTEX_STATE_PROGRAM_NV = 0x8621 - VERTEX_STREAM0_ATI = 0x876C - VERTEX_STREAM1_ATI = 0x876D - VERTEX_STREAM2_ATI = 0x876E - VERTEX_STREAM3_ATI = 0x876F - VERTEX_STREAM4_ATI = 0x8770 - VERTEX_STREAM5_ATI = 0x8771 - VERTEX_STREAM6_ATI = 0x8772 - VERTEX_STREAM7_ATI = 0x8773 - VERTEX_SUBROUTINE = 0x92E8 - VERTEX_SUBROUTINE_UNIFORM = 0x92EE - VERTEX_TEXTURE = 0x829B - VERTEX_WEIGHTING_EXT = 0x8509 - VERTEX_WEIGHT_ARRAY_EXT = 0x850C - VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510 - VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D - VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F - VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E - VERTICAL_LINE_TO_NV = 0x08 - VERTICES_SUBMITTED_ARB = 0x82EE - VIBRANCE_BIAS_NV = 0x8719 - VIBRANCE_SCALE_NV = 0x8713 - VIDEO_BUFFER_BINDING_NV = 0x9021 - VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D - VIDEO_BUFFER_NV = 0x9020 - VIDEO_BUFFER_PITCH_NV = 0x9028 - VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B - VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A - VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039 - VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038 - VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C - VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026 - VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029 - VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A - VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B - VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C - VIEWPORT = 0x0BA2 - VIEWPORT_BIT = 0x00000800 - VIEWPORT_BOUNDS_RANGE = 0x825D - VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F - VIEWPORT_SUBPIXEL_BITS = 0x825C - VIEW_CLASS_128_BITS = 0x82C4 - VIEW_CLASS_16_BITS = 0x82CA - VIEW_CLASS_24_BITS = 0x82C9 - VIEW_CLASS_32_BITS = 0x82C8 - VIEW_CLASS_48_BITS = 0x82C7 - VIEW_CLASS_64_BITS = 0x82C6 - VIEW_CLASS_8_BITS = 0x82CB - VIEW_CLASS_96_BITS = 0x82C5 - VIEW_CLASS_BPTC_FLOAT = 0x82D3 - VIEW_CLASS_BPTC_UNORM = 0x82D2 - VIEW_CLASS_RGTC1_RED = 0x82D0 - VIEW_CLASS_RGTC2_RG = 0x82D1 - VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC - VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD - VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE - VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF - VIEW_COMPATIBILITY_CLASS = 0x82B6 - VIRTUAL_PAGE_SIZE_INDEX_ARB = 0x91A7 - VIRTUAL_PAGE_SIZE_X_AMD = 0x9195 - VIRTUAL_PAGE_SIZE_X_ARB = 0x9195 - VIRTUAL_PAGE_SIZE_Y_AMD = 0x9196 - VIRTUAL_PAGE_SIZE_Y_ARB = 0x9196 - VIRTUAL_PAGE_SIZE_Z_AMD = 0x9197 - VIRTUAL_PAGE_SIZE_Z_ARB = 0x9197 - VIVIDLIGHT_NV = 0x92A6 - VOLATILE_APPLE = 0x8A1A - WAIT_FAILED = 0x911D - WARPS_PER_SM_NV = 0x933A - WARP_SIZE_NV = 0x9339 - WEIGHT_ARRAY_ARB = 0x86AD - WEIGHT_ARRAY_BUFFER_BINDING = 0x889E - WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889E - WEIGHT_ARRAY_POINTER_ARB = 0x86AC - WEIGHT_ARRAY_SIZE_ARB = 0x86AB - WEIGHT_ARRAY_STRIDE_ARB = 0x86AA - WEIGHT_ARRAY_TYPE_ARB = 0x86A9 - WEIGHT_SUM_UNITY_ARB = 0x86A6 - WIDE_LINE_HINT_PGI = 0x1A222 - WRAP_BORDER_SUN = 0x81D4 - WRITE_DISCARD_NV = 0x88BE - WRITE_ONLY = 0x88B9 - WRITE_ONLY_ARB = 0x88B9 - WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A - WRITE_PIXEL_DATA_RANGE_NV = 0x8878 - WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C - W_EXT = 0x87D8 - XOR = 0x1506 - XOR_NV = 0x1506 - X_EXT = 0x87D5 - YCBAYCR8A_4224_NV = 0x9032 - YCBCR_422_APPLE = 0x85B9 - YCBCR_MESA = 0x8757 - YCBYCR8_422_NV = 0x9031 - YCRCBA_SGIX = 0x8319 - YCRCB_422_SGIX = 0x81BB - YCRCB_444_SGIX = 0x81BC - YCRCB_SGIX = 0x8318 - Y_EXT = 0x87D6 - Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036 - Z4Y12Z4CB12Z4CR12_444_NV = 0x9037 - Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035 - Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034 - Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033 - ZERO = 0 - ZERO_EXT = 0x87DD - ZERO_TO_ONE = 0x935F - ZOOM_X = 0x0D16 - ZOOM_Y = 0x0D17 - Z_EXT = 0x87D7 -) - -var ( - gpAccum C.GPACCUM - gpAccumxOES C.GPACCUMXOES - gpActiveProgramEXT C.GPACTIVEPROGRAMEXT - gpActiveShaderProgram C.GPACTIVESHADERPROGRAM - gpActiveShaderProgramEXT C.GPACTIVESHADERPROGRAMEXT - gpActiveStencilFaceEXT C.GPACTIVESTENCILFACEEXT - gpActiveTexture C.GPACTIVETEXTURE - gpActiveTextureARB C.GPACTIVETEXTUREARB - gpActiveVaryingNV C.GPACTIVEVARYINGNV - gpAlphaFragmentOp1ATI C.GPALPHAFRAGMENTOP1ATI - gpAlphaFragmentOp2ATI C.GPALPHAFRAGMENTOP2ATI - gpAlphaFragmentOp3ATI C.GPALPHAFRAGMENTOP3ATI - gpAlphaFunc C.GPALPHAFUNC - gpAlphaFuncxOES C.GPALPHAFUNCXOES - gpApplyTextureEXT C.GPAPPLYTEXTUREEXT - gpAreProgramsResidentNV C.GPAREPROGRAMSRESIDENTNV - gpAreTexturesResident C.GPARETEXTURESRESIDENT - gpAreTexturesResidentEXT C.GPARETEXTURESRESIDENTEXT - gpArrayElement C.GPARRAYELEMENT - gpArrayElementEXT C.GPARRAYELEMENTEXT - gpArrayObjectATI C.GPARRAYOBJECTATI - gpAsyncMarkerSGIX C.GPASYNCMARKERSGIX - gpAttachObjectARB C.GPATTACHOBJECTARB - gpAttachShader C.GPATTACHSHADER - gpBegin C.GPBEGIN - gpBeginConditionalRenderNV C.GPBEGINCONDITIONALRENDERNV - gpBeginConditionalRenderNVX C.GPBEGINCONDITIONALRENDERNVX - gpBeginFragmentShaderATI C.GPBEGINFRAGMENTSHADERATI - gpBeginOcclusionQueryNV C.GPBEGINOCCLUSIONQUERYNV - gpBeginPerfMonitorAMD C.GPBEGINPERFMONITORAMD - gpBeginPerfQueryINTEL C.GPBEGINPERFQUERYINTEL - gpBeginQuery C.GPBEGINQUERY - gpBeginQueryARB C.GPBEGINQUERYARB - gpBeginQueryIndexed C.GPBEGINQUERYINDEXED - gpBeginTransformFeedbackEXT C.GPBEGINTRANSFORMFEEDBACKEXT - gpBeginTransformFeedbackNV C.GPBEGINTRANSFORMFEEDBACKNV - gpBeginVertexShaderEXT C.GPBEGINVERTEXSHADEREXT - gpBeginVideoCaptureNV C.GPBEGINVIDEOCAPTURENV - gpBindAttribLocation C.GPBINDATTRIBLOCATION - gpBindAttribLocationARB C.GPBINDATTRIBLOCATIONARB - gpBindBuffer C.GPBINDBUFFER - gpBindBufferARB C.GPBINDBUFFERARB - gpBindBufferBaseEXT C.GPBINDBUFFERBASEEXT - gpBindBufferBaseNV C.GPBINDBUFFERBASENV - gpBindBufferOffsetEXT C.GPBINDBUFFEROFFSETEXT - gpBindBufferOffsetNV C.GPBINDBUFFEROFFSETNV - gpBindBufferRangeEXT C.GPBINDBUFFERRANGEEXT - gpBindBufferRangeNV C.GPBINDBUFFERRANGENV - gpBindBuffersBase C.GPBINDBUFFERSBASE - gpBindBuffersRange C.GPBINDBUFFERSRANGE - gpBindFragDataLocationEXT C.GPBINDFRAGDATALOCATIONEXT - gpBindFragDataLocationIndexed C.GPBINDFRAGDATALOCATIONINDEXED - gpBindFragmentShaderATI C.GPBINDFRAGMENTSHADERATI - gpBindFramebuffer C.GPBINDFRAMEBUFFER - gpBindFramebufferEXT C.GPBINDFRAMEBUFFEREXT - gpBindImageTexture C.GPBINDIMAGETEXTURE - gpBindImageTextureEXT C.GPBINDIMAGETEXTUREEXT - gpBindImageTextures C.GPBINDIMAGETEXTURES - gpBindLightParameterEXT C.GPBINDLIGHTPARAMETEREXT - gpBindMaterialParameterEXT C.GPBINDMATERIALPARAMETEREXT - gpBindMultiTextureEXT C.GPBINDMULTITEXTUREEXT - gpBindParameterEXT C.GPBINDPARAMETEREXT - gpBindProgramARB C.GPBINDPROGRAMARB - gpBindProgramNV C.GPBINDPROGRAMNV - gpBindProgramPipeline C.GPBINDPROGRAMPIPELINE - gpBindProgramPipelineEXT C.GPBINDPROGRAMPIPELINEEXT - gpBindRenderbuffer C.GPBINDRENDERBUFFER - gpBindRenderbufferEXT C.GPBINDRENDERBUFFEREXT - gpBindSampler C.GPBINDSAMPLER - gpBindSamplers C.GPBINDSAMPLERS - gpBindTexGenParameterEXT C.GPBINDTEXGENPARAMETEREXT - gpBindTexture C.GPBINDTEXTURE - gpBindTextureEXT C.GPBINDTEXTUREEXT - gpBindTextureUnit C.GPBINDTEXTUREUNIT - gpBindTextureUnitParameterEXT C.GPBINDTEXTUREUNITPARAMETEREXT - gpBindTextures C.GPBINDTEXTURES - gpBindTransformFeedback C.GPBINDTRANSFORMFEEDBACK - gpBindTransformFeedbackNV C.GPBINDTRANSFORMFEEDBACKNV - gpBindVertexArray C.GPBINDVERTEXARRAY - gpBindVertexArrayAPPLE C.GPBINDVERTEXARRAYAPPLE - gpBindVertexBuffer C.GPBINDVERTEXBUFFER - gpBindVertexBuffers C.GPBINDVERTEXBUFFERS - gpBindVertexShaderEXT C.GPBINDVERTEXSHADEREXT - gpBindVideoCaptureStreamBufferNV C.GPBINDVIDEOCAPTURESTREAMBUFFERNV - gpBindVideoCaptureStreamTextureNV C.GPBINDVIDEOCAPTURESTREAMTEXTURENV - gpBinormal3bEXT C.GPBINORMAL3BEXT - gpBinormal3bvEXT C.GPBINORMAL3BVEXT - gpBinormal3dEXT C.GPBINORMAL3DEXT - gpBinormal3dvEXT C.GPBINORMAL3DVEXT - gpBinormal3fEXT C.GPBINORMAL3FEXT - gpBinormal3fvEXT C.GPBINORMAL3FVEXT - gpBinormal3iEXT C.GPBINORMAL3IEXT - gpBinormal3ivEXT C.GPBINORMAL3IVEXT - gpBinormal3sEXT C.GPBINORMAL3SEXT - gpBinormal3svEXT C.GPBINORMAL3SVEXT - gpBinormalPointerEXT C.GPBINORMALPOINTEREXT - gpBitmap C.GPBITMAP - gpBitmapxOES C.GPBITMAPXOES - gpBlendBarrierKHR C.GPBLENDBARRIERKHR - gpBlendBarrierNV C.GPBLENDBARRIERNV - gpBlendColor C.GPBLENDCOLOR - gpBlendColorEXT C.GPBLENDCOLOREXT - gpBlendColorxOES C.GPBLENDCOLORXOES - gpBlendEquation C.GPBLENDEQUATION - gpBlendEquationEXT C.GPBLENDEQUATIONEXT - gpBlendEquationIndexedAMD C.GPBLENDEQUATIONINDEXEDAMD - gpBlendEquationSeparate C.GPBLENDEQUATIONSEPARATE - gpBlendEquationSeparateEXT C.GPBLENDEQUATIONSEPARATEEXT - gpBlendEquationSeparateIndexedAMD C.GPBLENDEQUATIONSEPARATEINDEXEDAMD - gpBlendEquationSeparateiARB C.GPBLENDEQUATIONSEPARATEIARB - gpBlendEquationiARB C.GPBLENDEQUATIONIARB - gpBlendFunc C.GPBLENDFUNC - gpBlendFuncIndexedAMD C.GPBLENDFUNCINDEXEDAMD - gpBlendFuncSeparate C.GPBLENDFUNCSEPARATE - gpBlendFuncSeparateEXT C.GPBLENDFUNCSEPARATEEXT - gpBlendFuncSeparateINGR C.GPBLENDFUNCSEPARATEINGR - gpBlendFuncSeparateIndexedAMD C.GPBLENDFUNCSEPARATEINDEXEDAMD - gpBlendFuncSeparateiARB C.GPBLENDFUNCSEPARATEIARB - gpBlendFunciARB C.GPBLENDFUNCIARB - gpBlendParameteriNV C.GPBLENDPARAMETERINV - gpBlitFramebuffer C.GPBLITFRAMEBUFFER - gpBlitFramebufferEXT C.GPBLITFRAMEBUFFEREXT - gpBlitNamedFramebuffer C.GPBLITNAMEDFRAMEBUFFER - gpBufferAddressRangeNV C.GPBUFFERADDRESSRANGENV - gpBufferData C.GPBUFFERDATA - gpBufferDataARB C.GPBUFFERDATAARB - gpBufferPageCommitmentARB C.GPBUFFERPAGECOMMITMENTARB - gpBufferParameteriAPPLE C.GPBUFFERPARAMETERIAPPLE - gpBufferStorage C.GPBUFFERSTORAGE - gpBufferSubData C.GPBUFFERSUBDATA - gpBufferSubDataARB C.GPBUFFERSUBDATAARB - gpCallList C.GPCALLLIST - gpCallLists C.GPCALLLISTS - gpCheckFramebufferStatus C.GPCHECKFRAMEBUFFERSTATUS - gpCheckFramebufferStatusEXT C.GPCHECKFRAMEBUFFERSTATUSEXT - gpCheckNamedFramebufferStatus C.GPCHECKNAMEDFRAMEBUFFERSTATUS - gpCheckNamedFramebufferStatusEXT C.GPCHECKNAMEDFRAMEBUFFERSTATUSEXT - gpClampColorARB C.GPCLAMPCOLORARB - gpClear C.GPCLEAR - gpClearAccum C.GPCLEARACCUM - gpClearAccumxOES C.GPCLEARACCUMXOES - gpClearBufferData C.GPCLEARBUFFERDATA - gpClearBufferSubData C.GPCLEARBUFFERSUBDATA - gpClearColor C.GPCLEARCOLOR - gpClearColorIiEXT C.GPCLEARCOLORIIEXT - gpClearColorIuiEXT C.GPCLEARCOLORIUIEXT - gpClearColorxOES C.GPCLEARCOLORXOES - gpClearDepth C.GPCLEARDEPTH - gpClearDepthdNV C.GPCLEARDEPTHDNV - gpClearDepthf C.GPCLEARDEPTHF - gpClearDepthfOES C.GPCLEARDEPTHFOES - gpClearDepthxOES C.GPCLEARDEPTHXOES - gpClearIndex C.GPCLEARINDEX - gpClearNamedBufferData C.GPCLEARNAMEDBUFFERDATA - gpClearNamedBufferDataEXT C.GPCLEARNAMEDBUFFERDATAEXT - gpClearNamedBufferSubData C.GPCLEARNAMEDBUFFERSUBDATA - gpClearNamedBufferSubDataEXT C.GPCLEARNAMEDBUFFERSUBDATAEXT - gpClearNamedFramebufferfi C.GPCLEARNAMEDFRAMEBUFFERFI - gpClearNamedFramebufferfv C.GPCLEARNAMEDFRAMEBUFFERFV - gpClearNamedFramebufferiv C.GPCLEARNAMEDFRAMEBUFFERIV - gpClearNamedFramebufferuiv C.GPCLEARNAMEDFRAMEBUFFERUIV - gpClearStencil C.GPCLEARSTENCIL - gpClearTexImage C.GPCLEARTEXIMAGE - gpClearTexSubImage C.GPCLEARTEXSUBIMAGE - gpClientActiveTexture C.GPCLIENTACTIVETEXTURE - gpClientActiveTextureARB C.GPCLIENTACTIVETEXTUREARB - gpClientActiveVertexStreamATI C.GPCLIENTACTIVEVERTEXSTREAMATI - gpClientAttribDefaultEXT C.GPCLIENTATTRIBDEFAULTEXT - gpClientWaitSync C.GPCLIENTWAITSYNC - gpClipControl C.GPCLIPCONTROL - gpClipPlane C.GPCLIPPLANE - gpClipPlanefOES C.GPCLIPPLANEFOES - gpClipPlanexOES C.GPCLIPPLANEXOES - gpColor3b C.GPCOLOR3B - gpColor3bv C.GPCOLOR3BV - gpColor3d C.GPCOLOR3D - gpColor3dv C.GPCOLOR3DV - gpColor3f C.GPCOLOR3F - gpColor3fVertex3fSUN C.GPCOLOR3FVERTEX3FSUN - gpColor3fVertex3fvSUN C.GPCOLOR3FVERTEX3FVSUN - gpColor3fv C.GPCOLOR3FV - gpColor3hNV C.GPCOLOR3HNV - gpColor3hvNV C.GPCOLOR3HVNV - gpColor3i C.GPCOLOR3I - gpColor3iv C.GPCOLOR3IV - gpColor3s C.GPCOLOR3S - gpColor3sv C.GPCOLOR3SV - gpColor3ub C.GPCOLOR3UB - gpColor3ubv C.GPCOLOR3UBV - gpColor3ui C.GPCOLOR3UI - gpColor3uiv C.GPCOLOR3UIV - gpColor3us C.GPCOLOR3US - gpColor3usv C.GPCOLOR3USV - gpColor3xOES C.GPCOLOR3XOES - gpColor3xvOES C.GPCOLOR3XVOES - gpColor4b C.GPCOLOR4B - gpColor4bv C.GPCOLOR4BV - gpColor4d C.GPCOLOR4D - gpColor4dv C.GPCOLOR4DV - gpColor4f C.GPCOLOR4F - gpColor4fNormal3fVertex3fSUN C.GPCOLOR4FNORMAL3FVERTEX3FSUN - gpColor4fNormal3fVertex3fvSUN C.GPCOLOR4FNORMAL3FVERTEX3FVSUN - gpColor4fv C.GPCOLOR4FV - gpColor4hNV C.GPCOLOR4HNV - gpColor4hvNV C.GPCOLOR4HVNV - gpColor4i C.GPCOLOR4I - gpColor4iv C.GPCOLOR4IV - gpColor4s C.GPCOLOR4S - gpColor4sv C.GPCOLOR4SV - gpColor4ub C.GPCOLOR4UB - gpColor4ubVertex2fSUN C.GPCOLOR4UBVERTEX2FSUN - gpColor4ubVertex2fvSUN C.GPCOLOR4UBVERTEX2FVSUN - gpColor4ubVertex3fSUN C.GPCOLOR4UBVERTEX3FSUN - gpColor4ubVertex3fvSUN C.GPCOLOR4UBVERTEX3FVSUN - gpColor4ubv C.GPCOLOR4UBV - gpColor4ui C.GPCOLOR4UI - gpColor4uiv C.GPCOLOR4UIV - gpColor4us C.GPCOLOR4US - gpColor4usv C.GPCOLOR4USV - gpColor4xOES C.GPCOLOR4XOES - gpColor4xvOES C.GPCOLOR4XVOES - gpColorFormatNV C.GPCOLORFORMATNV - gpColorFragmentOp1ATI C.GPCOLORFRAGMENTOP1ATI - gpColorFragmentOp2ATI C.GPCOLORFRAGMENTOP2ATI - gpColorFragmentOp3ATI C.GPCOLORFRAGMENTOP3ATI - gpColorMask C.GPCOLORMASK - gpColorMaskIndexedEXT C.GPCOLORMASKINDEXEDEXT - gpColorMaterial C.GPCOLORMATERIAL - gpColorPointer C.GPCOLORPOINTER - gpColorPointerEXT C.GPCOLORPOINTEREXT - gpColorPointerListIBM C.GPCOLORPOINTERLISTIBM - gpColorPointervINTEL C.GPCOLORPOINTERVINTEL - gpColorSubTableEXT C.GPCOLORSUBTABLEEXT - gpColorTableEXT C.GPCOLORTABLEEXT - gpColorTableParameterfvSGI C.GPCOLORTABLEPARAMETERFVSGI - gpColorTableParameterivSGI C.GPCOLORTABLEPARAMETERIVSGI - gpColorTableSGI C.GPCOLORTABLESGI - gpCombinerInputNV C.GPCOMBINERINPUTNV - gpCombinerOutputNV C.GPCOMBINEROUTPUTNV - gpCombinerParameterfNV C.GPCOMBINERPARAMETERFNV - gpCombinerParameterfvNV C.GPCOMBINERPARAMETERFVNV - gpCombinerParameteriNV C.GPCOMBINERPARAMETERINV - gpCombinerParameterivNV C.GPCOMBINERPARAMETERIVNV - gpCombinerStageParameterfvNV C.GPCOMBINERSTAGEPARAMETERFVNV - gpCompileShader C.GPCOMPILESHADER - gpCompileShaderARB C.GPCOMPILESHADERARB - gpCompileShaderIncludeARB C.GPCOMPILESHADERINCLUDEARB - gpCompressedMultiTexImage1DEXT C.GPCOMPRESSEDMULTITEXIMAGE1DEXT - gpCompressedMultiTexImage2DEXT C.GPCOMPRESSEDMULTITEXIMAGE2DEXT - gpCompressedMultiTexImage3DEXT C.GPCOMPRESSEDMULTITEXIMAGE3DEXT - gpCompressedMultiTexSubImage1DEXT C.GPCOMPRESSEDMULTITEXSUBIMAGE1DEXT - gpCompressedMultiTexSubImage2DEXT C.GPCOMPRESSEDMULTITEXSUBIMAGE2DEXT - gpCompressedMultiTexSubImage3DEXT C.GPCOMPRESSEDMULTITEXSUBIMAGE3DEXT - gpCompressedTexImage1D C.GPCOMPRESSEDTEXIMAGE1D - gpCompressedTexImage1DARB C.GPCOMPRESSEDTEXIMAGE1DARB - gpCompressedTexImage2D C.GPCOMPRESSEDTEXIMAGE2D - gpCompressedTexImage2DARB C.GPCOMPRESSEDTEXIMAGE2DARB - gpCompressedTexImage3D C.GPCOMPRESSEDTEXIMAGE3D - gpCompressedTexImage3DARB C.GPCOMPRESSEDTEXIMAGE3DARB - gpCompressedTexSubImage1D C.GPCOMPRESSEDTEXSUBIMAGE1D - gpCompressedTexSubImage1DARB C.GPCOMPRESSEDTEXSUBIMAGE1DARB - gpCompressedTexSubImage2D C.GPCOMPRESSEDTEXSUBIMAGE2D - gpCompressedTexSubImage2DARB C.GPCOMPRESSEDTEXSUBIMAGE2DARB - gpCompressedTexSubImage3D C.GPCOMPRESSEDTEXSUBIMAGE3D - gpCompressedTexSubImage3DARB C.GPCOMPRESSEDTEXSUBIMAGE3DARB - gpCompressedTextureImage1DEXT C.GPCOMPRESSEDTEXTUREIMAGE1DEXT - gpCompressedTextureImage2DEXT C.GPCOMPRESSEDTEXTUREIMAGE2DEXT - gpCompressedTextureImage3DEXT C.GPCOMPRESSEDTEXTUREIMAGE3DEXT - gpCompressedTextureSubImage1D C.GPCOMPRESSEDTEXTURESUBIMAGE1D - gpCompressedTextureSubImage1DEXT C.GPCOMPRESSEDTEXTURESUBIMAGE1DEXT - gpCompressedTextureSubImage2D C.GPCOMPRESSEDTEXTURESUBIMAGE2D - gpCompressedTextureSubImage2DEXT C.GPCOMPRESSEDTEXTURESUBIMAGE2DEXT - gpCompressedTextureSubImage3D C.GPCOMPRESSEDTEXTURESUBIMAGE3D - gpCompressedTextureSubImage3DEXT C.GPCOMPRESSEDTEXTURESUBIMAGE3DEXT - gpConvolutionFilter1DEXT C.GPCONVOLUTIONFILTER1DEXT - gpConvolutionFilter2DEXT C.GPCONVOLUTIONFILTER2DEXT - gpConvolutionParameterfEXT C.GPCONVOLUTIONPARAMETERFEXT - gpConvolutionParameterfvEXT C.GPCONVOLUTIONPARAMETERFVEXT - gpConvolutionParameteriEXT C.GPCONVOLUTIONPARAMETERIEXT - gpConvolutionParameterivEXT C.GPCONVOLUTIONPARAMETERIVEXT - gpConvolutionParameterxOES C.GPCONVOLUTIONPARAMETERXOES - gpConvolutionParameterxvOES C.GPCONVOLUTIONPARAMETERXVOES - gpCopyBufferSubData C.GPCOPYBUFFERSUBDATA - gpCopyColorSubTableEXT C.GPCOPYCOLORSUBTABLEEXT - gpCopyColorTableSGI C.GPCOPYCOLORTABLESGI - gpCopyConvolutionFilter1DEXT C.GPCOPYCONVOLUTIONFILTER1DEXT - gpCopyConvolutionFilter2DEXT C.GPCOPYCONVOLUTIONFILTER2DEXT - gpCopyImageSubData C.GPCOPYIMAGESUBDATA - gpCopyImageSubDataNV C.GPCOPYIMAGESUBDATANV - gpCopyMultiTexImage1DEXT C.GPCOPYMULTITEXIMAGE1DEXT - gpCopyMultiTexImage2DEXT C.GPCOPYMULTITEXIMAGE2DEXT - gpCopyMultiTexSubImage1DEXT C.GPCOPYMULTITEXSUBIMAGE1DEXT - gpCopyMultiTexSubImage2DEXT C.GPCOPYMULTITEXSUBIMAGE2DEXT - gpCopyMultiTexSubImage3DEXT C.GPCOPYMULTITEXSUBIMAGE3DEXT - gpCopyNamedBufferSubData C.GPCOPYNAMEDBUFFERSUBDATA - gpCopyPathNV C.GPCOPYPATHNV - gpCopyPixels C.GPCOPYPIXELS - gpCopyTexImage1D C.GPCOPYTEXIMAGE1D - gpCopyTexImage1DEXT C.GPCOPYTEXIMAGE1DEXT - gpCopyTexImage2D C.GPCOPYTEXIMAGE2D - gpCopyTexImage2DEXT C.GPCOPYTEXIMAGE2DEXT - gpCopyTexSubImage1D C.GPCOPYTEXSUBIMAGE1D - gpCopyTexSubImage1DEXT C.GPCOPYTEXSUBIMAGE1DEXT - gpCopyTexSubImage2D C.GPCOPYTEXSUBIMAGE2D - gpCopyTexSubImage2DEXT C.GPCOPYTEXSUBIMAGE2DEXT - gpCopyTexSubImage3D C.GPCOPYTEXSUBIMAGE3D - gpCopyTexSubImage3DEXT C.GPCOPYTEXSUBIMAGE3DEXT - gpCopyTextureImage1DEXT C.GPCOPYTEXTUREIMAGE1DEXT - gpCopyTextureImage2DEXT C.GPCOPYTEXTUREIMAGE2DEXT - gpCopyTextureSubImage1D C.GPCOPYTEXTURESUBIMAGE1D - gpCopyTextureSubImage1DEXT C.GPCOPYTEXTURESUBIMAGE1DEXT - gpCopyTextureSubImage2D C.GPCOPYTEXTURESUBIMAGE2D - gpCopyTextureSubImage2DEXT C.GPCOPYTEXTURESUBIMAGE2DEXT - gpCopyTextureSubImage3D C.GPCOPYTEXTURESUBIMAGE3D - gpCopyTextureSubImage3DEXT C.GPCOPYTEXTURESUBIMAGE3DEXT - gpCoverFillPathInstancedNV C.GPCOVERFILLPATHINSTANCEDNV - gpCoverFillPathNV C.GPCOVERFILLPATHNV - gpCoverStrokePathInstancedNV C.GPCOVERSTROKEPATHINSTANCEDNV - gpCoverStrokePathNV C.GPCOVERSTROKEPATHNV - gpCreateBuffers C.GPCREATEBUFFERS - gpCreateFramebuffers C.GPCREATEFRAMEBUFFERS - gpCreatePerfQueryINTEL C.GPCREATEPERFQUERYINTEL - gpCreateProgram C.GPCREATEPROGRAM - gpCreateProgramObjectARB C.GPCREATEPROGRAMOBJECTARB - gpCreateProgramPipelines C.GPCREATEPROGRAMPIPELINES - gpCreateQueries C.GPCREATEQUERIES - gpCreateRenderbuffers C.GPCREATERENDERBUFFERS - gpCreateSamplers C.GPCREATESAMPLERS - gpCreateShader C.GPCREATESHADER - gpCreateShaderObjectARB C.GPCREATESHADEROBJECTARB - gpCreateShaderProgramEXT C.GPCREATESHADERPROGRAMEXT - gpCreateShaderProgramv C.GPCREATESHADERPROGRAMV - gpCreateShaderProgramvEXT C.GPCREATESHADERPROGRAMVEXT - gpCreateSyncFromCLeventARB C.GPCREATESYNCFROMCLEVENTARB - gpCreateTextures C.GPCREATETEXTURES - gpCreateTransformFeedbacks C.GPCREATETRANSFORMFEEDBACKS - gpCreateVertexArrays C.GPCREATEVERTEXARRAYS - gpCullFace C.GPCULLFACE - gpCullParameterdvEXT C.GPCULLPARAMETERDVEXT - gpCullParameterfvEXT C.GPCULLPARAMETERFVEXT - gpCurrentPaletteMatrixARB C.GPCURRENTPALETTEMATRIXARB - gpDebugMessageCallback C.GPDEBUGMESSAGECALLBACK - gpDebugMessageCallbackAMD C.GPDEBUGMESSAGECALLBACKAMD - gpDebugMessageCallbackARB C.GPDEBUGMESSAGECALLBACKARB - gpDebugMessageCallbackKHR C.GPDEBUGMESSAGECALLBACKKHR - gpDebugMessageControl C.GPDEBUGMESSAGECONTROL - gpDebugMessageControlARB C.GPDEBUGMESSAGECONTROLARB - gpDebugMessageControlKHR C.GPDEBUGMESSAGECONTROLKHR - gpDebugMessageEnableAMD C.GPDEBUGMESSAGEENABLEAMD - gpDebugMessageInsert C.GPDEBUGMESSAGEINSERT - gpDebugMessageInsertAMD C.GPDEBUGMESSAGEINSERTAMD - gpDebugMessageInsertARB C.GPDEBUGMESSAGEINSERTARB - gpDebugMessageInsertKHR C.GPDEBUGMESSAGEINSERTKHR - gpDeformSGIX C.GPDEFORMSGIX - gpDeformationMap3dSGIX C.GPDEFORMATIONMAP3DSGIX - gpDeformationMap3fSGIX C.GPDEFORMATIONMAP3FSGIX - gpDeleteAsyncMarkersSGIX C.GPDELETEASYNCMARKERSSGIX - gpDeleteBuffers C.GPDELETEBUFFERS - gpDeleteBuffersARB C.GPDELETEBUFFERSARB - gpDeleteFencesAPPLE C.GPDELETEFENCESAPPLE - gpDeleteFencesNV C.GPDELETEFENCESNV - gpDeleteFragmentShaderATI C.GPDELETEFRAGMENTSHADERATI - gpDeleteFramebuffers C.GPDELETEFRAMEBUFFERS - gpDeleteFramebuffersEXT C.GPDELETEFRAMEBUFFERSEXT - gpDeleteLists C.GPDELETELISTS - gpDeleteNamedStringARB C.GPDELETENAMEDSTRINGARB - gpDeleteNamesAMD C.GPDELETENAMESAMD - gpDeleteObjectARB C.GPDELETEOBJECTARB - gpDeleteOcclusionQueriesNV C.GPDELETEOCCLUSIONQUERIESNV - gpDeletePathsNV C.GPDELETEPATHSNV - gpDeletePerfMonitorsAMD C.GPDELETEPERFMONITORSAMD - gpDeletePerfQueryINTEL C.GPDELETEPERFQUERYINTEL - gpDeleteProgram C.GPDELETEPROGRAM - gpDeleteProgramPipelines C.GPDELETEPROGRAMPIPELINES - gpDeleteProgramPipelinesEXT C.GPDELETEPROGRAMPIPELINESEXT - gpDeleteProgramsARB C.GPDELETEPROGRAMSARB - gpDeleteProgramsNV C.GPDELETEPROGRAMSNV - gpDeleteQueries C.GPDELETEQUERIES - gpDeleteQueriesARB C.GPDELETEQUERIESARB - gpDeleteRenderbuffers C.GPDELETERENDERBUFFERS - gpDeleteRenderbuffersEXT C.GPDELETERENDERBUFFERSEXT - gpDeleteSamplers C.GPDELETESAMPLERS - gpDeleteShader C.GPDELETESHADER - gpDeleteSync C.GPDELETESYNC - gpDeleteTextures C.GPDELETETEXTURES - gpDeleteTexturesEXT C.GPDELETETEXTURESEXT - gpDeleteTransformFeedbacks C.GPDELETETRANSFORMFEEDBACKS - gpDeleteTransformFeedbacksNV C.GPDELETETRANSFORMFEEDBACKSNV - gpDeleteVertexArrays C.GPDELETEVERTEXARRAYS - gpDeleteVertexArraysAPPLE C.GPDELETEVERTEXARRAYSAPPLE - gpDeleteVertexShaderEXT C.GPDELETEVERTEXSHADEREXT - gpDepthBoundsEXT C.GPDEPTHBOUNDSEXT - gpDepthBoundsdNV C.GPDEPTHBOUNDSDNV - gpDepthFunc C.GPDEPTHFUNC - gpDepthMask C.GPDEPTHMASK - gpDepthRange C.GPDEPTHRANGE - gpDepthRangeArrayv C.GPDEPTHRANGEARRAYV - gpDepthRangeIndexed C.GPDEPTHRANGEINDEXED - gpDepthRangedNV C.GPDEPTHRANGEDNV - gpDepthRangef C.GPDEPTHRANGEF - gpDepthRangefOES C.GPDEPTHRANGEFOES - gpDepthRangexOES C.GPDEPTHRANGEXOES - gpDetachObjectARB C.GPDETACHOBJECTARB - gpDetachShader C.GPDETACHSHADER - gpDetailTexFuncSGIS C.GPDETAILTEXFUNCSGIS - gpDisable C.GPDISABLE - gpDisableClientState C.GPDISABLECLIENTSTATE - gpDisableClientStateIndexedEXT C.GPDISABLECLIENTSTATEINDEXEDEXT - gpDisableClientStateiEXT C.GPDISABLECLIENTSTATEIEXT - gpDisableIndexedEXT C.GPDISABLEINDEXEDEXT - gpDisableVariantClientStateEXT C.GPDISABLEVARIANTCLIENTSTATEEXT - gpDisableVertexArrayAttrib C.GPDISABLEVERTEXARRAYATTRIB - gpDisableVertexArrayAttribEXT C.GPDISABLEVERTEXARRAYATTRIBEXT - gpDisableVertexArrayEXT C.GPDISABLEVERTEXARRAYEXT - gpDisableVertexAttribAPPLE C.GPDISABLEVERTEXATTRIBAPPLE - gpDisableVertexAttribArray C.GPDISABLEVERTEXATTRIBARRAY - gpDisableVertexAttribArrayARB C.GPDISABLEVERTEXATTRIBARRAYARB - gpDispatchCompute C.GPDISPATCHCOMPUTE - gpDispatchComputeGroupSizeARB C.GPDISPATCHCOMPUTEGROUPSIZEARB - gpDispatchComputeIndirect C.GPDISPATCHCOMPUTEINDIRECT - gpDrawArrays C.GPDRAWARRAYS - gpDrawArraysEXT C.GPDRAWARRAYSEXT - gpDrawArraysIndirect C.GPDRAWARRAYSINDIRECT - gpDrawArraysInstancedARB C.GPDRAWARRAYSINSTANCEDARB - gpDrawArraysInstancedBaseInstance C.GPDRAWARRAYSINSTANCEDBASEINSTANCE - gpDrawArraysInstancedEXT C.GPDRAWARRAYSINSTANCEDEXT - gpDrawBuffer C.GPDRAWBUFFER - gpDrawBuffers C.GPDRAWBUFFERS - gpDrawBuffersARB C.GPDRAWBUFFERSARB - gpDrawBuffersATI C.GPDRAWBUFFERSATI - gpDrawElementArrayAPPLE C.GPDRAWELEMENTARRAYAPPLE - gpDrawElementArrayATI C.GPDRAWELEMENTARRAYATI - gpDrawElements C.GPDRAWELEMENTS - gpDrawElementsBaseVertex C.GPDRAWELEMENTSBASEVERTEX - gpDrawElementsIndirect C.GPDRAWELEMENTSINDIRECT - gpDrawElementsInstancedARB C.GPDRAWELEMENTSINSTANCEDARB - gpDrawElementsInstancedBaseInstance C.GPDRAWELEMENTSINSTANCEDBASEINSTANCE - gpDrawElementsInstancedBaseVertex C.GPDRAWELEMENTSINSTANCEDBASEVERTEX - gpDrawElementsInstancedBaseVertexBaseInstance C.GPDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE - gpDrawElementsInstancedEXT C.GPDRAWELEMENTSINSTANCEDEXT - gpDrawMeshArraysSUN C.GPDRAWMESHARRAYSSUN - gpDrawPixels C.GPDRAWPIXELS - gpDrawRangeElementArrayAPPLE C.GPDRAWRANGEELEMENTARRAYAPPLE - gpDrawRangeElementArrayATI C.GPDRAWRANGEELEMENTARRAYATI - gpDrawRangeElements C.GPDRAWRANGEELEMENTS - gpDrawRangeElementsBaseVertex C.GPDRAWRANGEELEMENTSBASEVERTEX - gpDrawRangeElementsEXT C.GPDRAWRANGEELEMENTSEXT - gpDrawTextureNV C.GPDRAWTEXTURENV - gpDrawTransformFeedback C.GPDRAWTRANSFORMFEEDBACK - gpDrawTransformFeedbackInstanced C.GPDRAWTRANSFORMFEEDBACKINSTANCED - gpDrawTransformFeedbackNV C.GPDRAWTRANSFORMFEEDBACKNV - gpDrawTransformFeedbackStream C.GPDRAWTRANSFORMFEEDBACKSTREAM - gpDrawTransformFeedbackStreamInstanced C.GPDRAWTRANSFORMFEEDBACKSTREAMINSTANCED - gpEdgeFlag C.GPEDGEFLAG - gpEdgeFlagFormatNV C.GPEDGEFLAGFORMATNV - gpEdgeFlagPointer C.GPEDGEFLAGPOINTER - gpEdgeFlagPointerEXT C.GPEDGEFLAGPOINTEREXT - gpEdgeFlagPointerListIBM C.GPEDGEFLAGPOINTERLISTIBM - gpEdgeFlagv C.GPEDGEFLAGV - gpElementPointerAPPLE C.GPELEMENTPOINTERAPPLE - gpElementPointerATI C.GPELEMENTPOINTERATI - gpEnable C.GPENABLE - gpEnableClientState C.GPENABLECLIENTSTATE - gpEnableClientStateIndexedEXT C.GPENABLECLIENTSTATEINDEXEDEXT - gpEnableClientStateiEXT C.GPENABLECLIENTSTATEIEXT - gpEnableIndexedEXT C.GPENABLEINDEXEDEXT - gpEnableVariantClientStateEXT C.GPENABLEVARIANTCLIENTSTATEEXT - gpEnableVertexArrayAttrib C.GPENABLEVERTEXARRAYATTRIB - gpEnableVertexArrayAttribEXT C.GPENABLEVERTEXARRAYATTRIBEXT - gpEnableVertexArrayEXT C.GPENABLEVERTEXARRAYEXT - gpEnableVertexAttribAPPLE C.GPENABLEVERTEXATTRIBAPPLE - gpEnableVertexAttribArray C.GPENABLEVERTEXATTRIBARRAY - gpEnableVertexAttribArrayARB C.GPENABLEVERTEXATTRIBARRAYARB - gpEnd C.GPEND - gpEndConditionalRenderNV C.GPENDCONDITIONALRENDERNV - gpEndConditionalRenderNVX C.GPENDCONDITIONALRENDERNVX - gpEndFragmentShaderATI C.GPENDFRAGMENTSHADERATI - gpEndList C.GPENDLIST - gpEndOcclusionQueryNV C.GPENDOCCLUSIONQUERYNV - gpEndPerfMonitorAMD C.GPENDPERFMONITORAMD - gpEndPerfQueryINTEL C.GPENDPERFQUERYINTEL - gpEndQuery C.GPENDQUERY - gpEndQueryARB C.GPENDQUERYARB - gpEndQueryIndexed C.GPENDQUERYINDEXED - gpEndTransformFeedbackEXT C.GPENDTRANSFORMFEEDBACKEXT - gpEndTransformFeedbackNV C.GPENDTRANSFORMFEEDBACKNV - gpEndVertexShaderEXT C.GPENDVERTEXSHADEREXT - gpEndVideoCaptureNV C.GPENDVIDEOCAPTURENV - gpEvalCoord1d C.GPEVALCOORD1D - gpEvalCoord1dv C.GPEVALCOORD1DV - gpEvalCoord1f C.GPEVALCOORD1F - gpEvalCoord1fv C.GPEVALCOORD1FV - gpEvalCoord1xOES C.GPEVALCOORD1XOES - gpEvalCoord1xvOES C.GPEVALCOORD1XVOES - gpEvalCoord2d C.GPEVALCOORD2D - gpEvalCoord2dv C.GPEVALCOORD2DV - gpEvalCoord2f C.GPEVALCOORD2F - gpEvalCoord2fv C.GPEVALCOORD2FV - gpEvalCoord2xOES C.GPEVALCOORD2XOES - gpEvalCoord2xvOES C.GPEVALCOORD2XVOES - gpEvalMapsNV C.GPEVALMAPSNV - gpEvalMesh1 C.GPEVALMESH1 - gpEvalMesh2 C.GPEVALMESH2 - gpEvalPoint1 C.GPEVALPOINT1 - gpEvalPoint2 C.GPEVALPOINT2 - gpExecuteProgramNV C.GPEXECUTEPROGRAMNV - gpExtractComponentEXT C.GPEXTRACTCOMPONENTEXT - gpFeedbackBuffer C.GPFEEDBACKBUFFER - gpFeedbackBufferxOES C.GPFEEDBACKBUFFERXOES - gpFenceSync C.GPFENCESYNC - gpFinalCombinerInputNV C.GPFINALCOMBINERINPUTNV - gpFinish C.GPFINISH - gpFinishAsyncSGIX C.GPFINISHASYNCSGIX - gpFinishFenceAPPLE C.GPFINISHFENCEAPPLE - gpFinishFenceNV C.GPFINISHFENCENV - gpFinishObjectAPPLE C.GPFINISHOBJECTAPPLE - gpFinishTextureSUNX C.GPFINISHTEXTURESUNX - gpFlush C.GPFLUSH - gpFlushMappedBufferRange C.GPFLUSHMAPPEDBUFFERRANGE - gpFlushMappedBufferRangeAPPLE C.GPFLUSHMAPPEDBUFFERRANGEAPPLE - gpFlushMappedNamedBufferRange C.GPFLUSHMAPPEDNAMEDBUFFERRANGE - gpFlushMappedNamedBufferRangeEXT C.GPFLUSHMAPPEDNAMEDBUFFERRANGEEXT - gpFlushPixelDataRangeNV C.GPFLUSHPIXELDATARANGENV - gpFlushRasterSGIX C.GPFLUSHRASTERSGIX - gpFlushStaticDataIBM C.GPFLUSHSTATICDATAIBM - gpFlushVertexArrayRangeAPPLE C.GPFLUSHVERTEXARRAYRANGEAPPLE - gpFlushVertexArrayRangeNV C.GPFLUSHVERTEXARRAYRANGENV - gpFogCoordFormatNV C.GPFOGCOORDFORMATNV - gpFogCoordPointer C.GPFOGCOORDPOINTER - gpFogCoordPointerEXT C.GPFOGCOORDPOINTEREXT - gpFogCoordPointerListIBM C.GPFOGCOORDPOINTERLISTIBM - gpFogCoordd C.GPFOGCOORDD - gpFogCoorddEXT C.GPFOGCOORDDEXT - gpFogCoorddv C.GPFOGCOORDDV - gpFogCoorddvEXT C.GPFOGCOORDDVEXT - gpFogCoordf C.GPFOGCOORDF - gpFogCoordfEXT C.GPFOGCOORDFEXT - gpFogCoordfv C.GPFOGCOORDFV - gpFogCoordfvEXT C.GPFOGCOORDFVEXT - gpFogCoordhNV C.GPFOGCOORDHNV - gpFogCoordhvNV C.GPFOGCOORDHVNV - gpFogFuncSGIS C.GPFOGFUNCSGIS - gpFogf C.GPFOGF - gpFogfv C.GPFOGFV - gpFogi C.GPFOGI - gpFogiv C.GPFOGIV - gpFogxOES C.GPFOGXOES - gpFogxvOES C.GPFOGXVOES - gpFragmentColorMaterialSGIX C.GPFRAGMENTCOLORMATERIALSGIX - gpFragmentLightModelfSGIX C.GPFRAGMENTLIGHTMODELFSGIX - gpFragmentLightModelfvSGIX C.GPFRAGMENTLIGHTMODELFVSGIX - gpFragmentLightModeliSGIX C.GPFRAGMENTLIGHTMODELISGIX - gpFragmentLightModelivSGIX C.GPFRAGMENTLIGHTMODELIVSGIX - gpFragmentLightfSGIX C.GPFRAGMENTLIGHTFSGIX - gpFragmentLightfvSGIX C.GPFRAGMENTLIGHTFVSGIX - gpFragmentLightiSGIX C.GPFRAGMENTLIGHTISGIX - gpFragmentLightivSGIX C.GPFRAGMENTLIGHTIVSGIX - gpFragmentMaterialfSGIX C.GPFRAGMENTMATERIALFSGIX - gpFragmentMaterialfvSGIX C.GPFRAGMENTMATERIALFVSGIX - gpFragmentMaterialiSGIX C.GPFRAGMENTMATERIALISGIX - gpFragmentMaterialivSGIX C.GPFRAGMENTMATERIALIVSGIX - gpFrameTerminatorGREMEDY C.GPFRAMETERMINATORGREMEDY - gpFrameZoomSGIX C.GPFRAMEZOOMSGIX - gpFramebufferDrawBufferEXT C.GPFRAMEBUFFERDRAWBUFFEREXT - gpFramebufferDrawBuffersEXT C.GPFRAMEBUFFERDRAWBUFFERSEXT - gpFramebufferParameteri C.GPFRAMEBUFFERPARAMETERI - gpFramebufferReadBufferEXT C.GPFRAMEBUFFERREADBUFFEREXT - gpFramebufferRenderbuffer C.GPFRAMEBUFFERRENDERBUFFER - gpFramebufferRenderbufferEXT C.GPFRAMEBUFFERRENDERBUFFEREXT - gpFramebufferTexture1D C.GPFRAMEBUFFERTEXTURE1D - gpFramebufferTexture1DEXT C.GPFRAMEBUFFERTEXTURE1DEXT - gpFramebufferTexture2D C.GPFRAMEBUFFERTEXTURE2D - gpFramebufferTexture2DEXT C.GPFRAMEBUFFERTEXTURE2DEXT - gpFramebufferTexture3D C.GPFRAMEBUFFERTEXTURE3D - gpFramebufferTexture3DEXT C.GPFRAMEBUFFERTEXTURE3DEXT - gpFramebufferTextureARB C.GPFRAMEBUFFERTEXTUREARB - gpFramebufferTextureEXT C.GPFRAMEBUFFERTEXTUREEXT - gpFramebufferTextureFaceARB C.GPFRAMEBUFFERTEXTUREFACEARB - gpFramebufferTextureFaceEXT C.GPFRAMEBUFFERTEXTUREFACEEXT - gpFramebufferTextureLayer C.GPFRAMEBUFFERTEXTURELAYER - gpFramebufferTextureLayerARB C.GPFRAMEBUFFERTEXTURELAYERARB - gpFramebufferTextureLayerEXT C.GPFRAMEBUFFERTEXTURELAYEREXT - gpFreeObjectBufferATI C.GPFREEOBJECTBUFFERATI - gpFrontFace C.GPFRONTFACE - gpFrustum C.GPFRUSTUM - gpFrustumfOES C.GPFRUSTUMFOES - gpFrustumxOES C.GPFRUSTUMXOES - gpGenAsyncMarkersSGIX C.GPGENASYNCMARKERSSGIX - gpGenBuffers C.GPGENBUFFERS - gpGenBuffersARB C.GPGENBUFFERSARB - gpGenFencesAPPLE C.GPGENFENCESAPPLE - gpGenFencesNV C.GPGENFENCESNV - gpGenFragmentShadersATI C.GPGENFRAGMENTSHADERSATI - gpGenFramebuffers C.GPGENFRAMEBUFFERS - gpGenFramebuffersEXT C.GPGENFRAMEBUFFERSEXT - gpGenLists C.GPGENLISTS - gpGenNamesAMD C.GPGENNAMESAMD - gpGenOcclusionQueriesNV C.GPGENOCCLUSIONQUERIESNV - gpGenPathsNV C.GPGENPATHSNV - gpGenPerfMonitorsAMD C.GPGENPERFMONITORSAMD - gpGenProgramPipelines C.GPGENPROGRAMPIPELINES - gpGenProgramPipelinesEXT C.GPGENPROGRAMPIPELINESEXT - gpGenProgramsARB C.GPGENPROGRAMSARB - gpGenProgramsNV C.GPGENPROGRAMSNV - gpGenQueries C.GPGENQUERIES - gpGenQueriesARB C.GPGENQUERIESARB - gpGenRenderbuffers C.GPGENRENDERBUFFERS - gpGenRenderbuffersEXT C.GPGENRENDERBUFFERSEXT - gpGenSamplers C.GPGENSAMPLERS - gpGenSymbolsEXT C.GPGENSYMBOLSEXT - gpGenTextures C.GPGENTEXTURES - gpGenTexturesEXT C.GPGENTEXTURESEXT - gpGenTransformFeedbacks C.GPGENTRANSFORMFEEDBACKS - gpGenTransformFeedbacksNV C.GPGENTRANSFORMFEEDBACKSNV - gpGenVertexArrays C.GPGENVERTEXARRAYS - gpGenVertexArraysAPPLE C.GPGENVERTEXARRAYSAPPLE - gpGenVertexShadersEXT C.GPGENVERTEXSHADERSEXT - gpGenerateMipmap C.GPGENERATEMIPMAP - gpGenerateMipmapEXT C.GPGENERATEMIPMAPEXT - gpGenerateMultiTexMipmapEXT C.GPGENERATEMULTITEXMIPMAPEXT - gpGenerateTextureMipmap C.GPGENERATETEXTUREMIPMAP - gpGenerateTextureMipmapEXT C.GPGENERATETEXTUREMIPMAPEXT - gpGetActiveAtomicCounterBufferiv C.GPGETACTIVEATOMICCOUNTERBUFFERIV - gpGetActiveAttrib C.GPGETACTIVEATTRIB - gpGetActiveAttribARB C.GPGETACTIVEATTRIBARB - gpGetActiveSubroutineName C.GPGETACTIVESUBROUTINENAME - gpGetActiveSubroutineUniformName C.GPGETACTIVESUBROUTINEUNIFORMNAME - gpGetActiveSubroutineUniformiv C.GPGETACTIVESUBROUTINEUNIFORMIV - gpGetActiveUniform C.GPGETACTIVEUNIFORM - gpGetActiveUniformARB C.GPGETACTIVEUNIFORMARB - gpGetActiveUniformBlockName C.GPGETACTIVEUNIFORMBLOCKNAME - gpGetActiveUniformBlockiv C.GPGETACTIVEUNIFORMBLOCKIV - gpGetActiveUniformName C.GPGETACTIVEUNIFORMNAME - gpGetActiveUniformsiv C.GPGETACTIVEUNIFORMSIV - gpGetActiveVaryingNV C.GPGETACTIVEVARYINGNV - gpGetArrayObjectfvATI C.GPGETARRAYOBJECTFVATI - gpGetArrayObjectivATI C.GPGETARRAYOBJECTIVATI - gpGetAttachedObjectsARB C.GPGETATTACHEDOBJECTSARB - gpGetAttachedShaders C.GPGETATTACHEDSHADERS - gpGetAttribLocation C.GPGETATTRIBLOCATION - gpGetAttribLocationARB C.GPGETATTRIBLOCATIONARB - gpGetBooleanIndexedvEXT C.GPGETBOOLEANINDEXEDVEXT - gpGetBooleanv C.GPGETBOOLEANV - gpGetBufferParameteriv C.GPGETBUFFERPARAMETERIV - gpGetBufferParameterivARB C.GPGETBUFFERPARAMETERIVARB - gpGetBufferParameterui64vNV C.GPGETBUFFERPARAMETERUI64VNV - gpGetBufferPointerv C.GPGETBUFFERPOINTERV - gpGetBufferPointervARB C.GPGETBUFFERPOINTERVARB - gpGetBufferSubData C.GPGETBUFFERSUBDATA - gpGetBufferSubDataARB C.GPGETBUFFERSUBDATAARB - gpGetClipPlane C.GPGETCLIPPLANE - gpGetClipPlanefOES C.GPGETCLIPPLANEFOES - gpGetClipPlanexOES C.GPGETCLIPPLANEXOES - gpGetColorTableEXT C.GPGETCOLORTABLEEXT - gpGetColorTableParameterfvEXT C.GPGETCOLORTABLEPARAMETERFVEXT - gpGetColorTableParameterfvSGI C.GPGETCOLORTABLEPARAMETERFVSGI - gpGetColorTableParameterivEXT C.GPGETCOLORTABLEPARAMETERIVEXT - gpGetColorTableParameterivSGI C.GPGETCOLORTABLEPARAMETERIVSGI - gpGetColorTableSGI C.GPGETCOLORTABLESGI - gpGetCombinerInputParameterfvNV C.GPGETCOMBINERINPUTPARAMETERFVNV - gpGetCombinerInputParameterivNV C.GPGETCOMBINERINPUTPARAMETERIVNV - gpGetCombinerOutputParameterfvNV C.GPGETCOMBINEROUTPUTPARAMETERFVNV - gpGetCombinerOutputParameterivNV C.GPGETCOMBINEROUTPUTPARAMETERIVNV - gpGetCombinerStageParameterfvNV C.GPGETCOMBINERSTAGEPARAMETERFVNV - gpGetCompressedMultiTexImageEXT C.GPGETCOMPRESSEDMULTITEXIMAGEEXT - gpGetCompressedTexImage C.GPGETCOMPRESSEDTEXIMAGE - gpGetCompressedTexImageARB C.GPGETCOMPRESSEDTEXIMAGEARB - gpGetCompressedTextureImage C.GPGETCOMPRESSEDTEXTUREIMAGE - gpGetCompressedTextureImageEXT C.GPGETCOMPRESSEDTEXTUREIMAGEEXT - gpGetCompressedTextureSubImage C.GPGETCOMPRESSEDTEXTURESUBIMAGE - gpGetConvolutionFilterEXT C.GPGETCONVOLUTIONFILTEREXT - gpGetConvolutionParameterfvEXT C.GPGETCONVOLUTIONPARAMETERFVEXT - gpGetConvolutionParameterivEXT C.GPGETCONVOLUTIONPARAMETERIVEXT - gpGetConvolutionParameterxvOES C.GPGETCONVOLUTIONPARAMETERXVOES - gpGetDebugMessageLog C.GPGETDEBUGMESSAGELOG - gpGetDebugMessageLogAMD C.GPGETDEBUGMESSAGELOGAMD - gpGetDebugMessageLogARB C.GPGETDEBUGMESSAGELOGARB - gpGetDebugMessageLogKHR C.GPGETDEBUGMESSAGELOGKHR - gpGetDetailTexFuncSGIS C.GPGETDETAILTEXFUNCSGIS - gpGetDoubleIndexedvEXT C.GPGETDOUBLEINDEXEDVEXT - gpGetDoublei_v C.GPGETDOUBLEI_V - gpGetDoublei_vEXT C.GPGETDOUBLEI_VEXT - gpGetDoublev C.GPGETDOUBLEV - gpGetError C.GPGETERROR - gpGetFenceivNV C.GPGETFENCEIVNV - gpGetFinalCombinerInputParameterfvNV C.GPGETFINALCOMBINERINPUTPARAMETERFVNV - gpGetFinalCombinerInputParameterivNV C.GPGETFINALCOMBINERINPUTPARAMETERIVNV - gpGetFirstPerfQueryIdINTEL C.GPGETFIRSTPERFQUERYIDINTEL - gpGetFixedvOES C.GPGETFIXEDVOES - gpGetFloatIndexedvEXT C.GPGETFLOATINDEXEDVEXT - gpGetFloati_v C.GPGETFLOATI_V - gpGetFloati_vEXT C.GPGETFLOATI_VEXT - gpGetFloatv C.GPGETFLOATV - gpGetFogFuncSGIS C.GPGETFOGFUNCSGIS - gpGetFragDataIndex C.GPGETFRAGDATAINDEX - gpGetFragDataLocationEXT C.GPGETFRAGDATALOCATIONEXT - gpGetFragmentLightfvSGIX C.GPGETFRAGMENTLIGHTFVSGIX - gpGetFragmentLightivSGIX C.GPGETFRAGMENTLIGHTIVSGIX - gpGetFragmentMaterialfvSGIX C.GPGETFRAGMENTMATERIALFVSGIX - gpGetFragmentMaterialivSGIX C.GPGETFRAGMENTMATERIALIVSGIX - gpGetFramebufferAttachmentParameteriv C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIV - gpGetFramebufferAttachmentParameterivEXT C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIVEXT - gpGetFramebufferParameteriv C.GPGETFRAMEBUFFERPARAMETERIV - gpGetFramebufferParameterivEXT C.GPGETFRAMEBUFFERPARAMETERIVEXT - gpGetGraphicsResetStatus C.GPGETGRAPHICSRESETSTATUS - gpGetGraphicsResetStatusARB C.GPGETGRAPHICSRESETSTATUSARB - gpGetGraphicsResetStatusKHR C.GPGETGRAPHICSRESETSTATUSKHR - gpGetHandleARB C.GPGETHANDLEARB - gpGetHistogramEXT C.GPGETHISTOGRAMEXT - gpGetHistogramParameterfvEXT C.GPGETHISTOGRAMPARAMETERFVEXT - gpGetHistogramParameterivEXT C.GPGETHISTOGRAMPARAMETERIVEXT - gpGetHistogramParameterxvOES C.GPGETHISTOGRAMPARAMETERXVOES - gpGetImageHandleARB C.GPGETIMAGEHANDLEARB - gpGetImageHandleNV C.GPGETIMAGEHANDLENV - gpGetImageTransformParameterfvHP C.GPGETIMAGETRANSFORMPARAMETERFVHP - gpGetImageTransformParameterivHP C.GPGETIMAGETRANSFORMPARAMETERIVHP - gpGetInfoLogARB C.GPGETINFOLOGARB - gpGetInstrumentsSGIX C.GPGETINSTRUMENTSSGIX - gpGetInteger64v C.GPGETINTEGER64V - gpGetIntegerIndexedvEXT C.GPGETINTEGERINDEXEDVEXT - gpGetIntegerui64i_vNV C.GPGETINTEGERUI64I_VNV - gpGetIntegerui64vNV C.GPGETINTEGERUI64VNV - gpGetIntegerv C.GPGETINTEGERV - gpGetInternalformati64v C.GPGETINTERNALFORMATI64V - gpGetInternalformativ C.GPGETINTERNALFORMATIV - gpGetInvariantBooleanvEXT C.GPGETINVARIANTBOOLEANVEXT - gpGetInvariantFloatvEXT C.GPGETINVARIANTFLOATVEXT - gpGetInvariantIntegervEXT C.GPGETINVARIANTINTEGERVEXT - gpGetLightfv C.GPGETLIGHTFV - gpGetLightiv C.GPGETLIGHTIV - gpGetLightxOES C.GPGETLIGHTXOES - gpGetLightxvOES C.GPGETLIGHTXVOES - gpGetListParameterfvSGIX C.GPGETLISTPARAMETERFVSGIX - gpGetListParameterivSGIX C.GPGETLISTPARAMETERIVSGIX - gpGetLocalConstantBooleanvEXT C.GPGETLOCALCONSTANTBOOLEANVEXT - gpGetLocalConstantFloatvEXT C.GPGETLOCALCONSTANTFLOATVEXT - gpGetLocalConstantIntegervEXT C.GPGETLOCALCONSTANTINTEGERVEXT - gpGetMapAttribParameterfvNV C.GPGETMAPATTRIBPARAMETERFVNV - gpGetMapAttribParameterivNV C.GPGETMAPATTRIBPARAMETERIVNV - gpGetMapControlPointsNV C.GPGETMAPCONTROLPOINTSNV - gpGetMapParameterfvNV C.GPGETMAPPARAMETERFVNV - gpGetMapParameterivNV C.GPGETMAPPARAMETERIVNV - gpGetMapdv C.GPGETMAPDV - gpGetMapfv C.GPGETMAPFV - gpGetMapiv C.GPGETMAPIV - gpGetMapxvOES C.GPGETMAPXVOES - gpGetMaterialfv C.GPGETMATERIALFV - gpGetMaterialiv C.GPGETMATERIALIV - gpGetMaterialxOES C.GPGETMATERIALXOES - gpGetMaterialxvOES C.GPGETMATERIALXVOES - gpGetMinmaxEXT C.GPGETMINMAXEXT - gpGetMinmaxParameterfvEXT C.GPGETMINMAXPARAMETERFVEXT - gpGetMinmaxParameterivEXT C.GPGETMINMAXPARAMETERIVEXT - gpGetMultiTexEnvfvEXT C.GPGETMULTITEXENVFVEXT - gpGetMultiTexEnvivEXT C.GPGETMULTITEXENVIVEXT - gpGetMultiTexGendvEXT C.GPGETMULTITEXGENDVEXT - gpGetMultiTexGenfvEXT C.GPGETMULTITEXGENFVEXT - gpGetMultiTexGenivEXT C.GPGETMULTITEXGENIVEXT - gpGetMultiTexImageEXT C.GPGETMULTITEXIMAGEEXT - gpGetMultiTexLevelParameterfvEXT C.GPGETMULTITEXLEVELPARAMETERFVEXT - gpGetMultiTexLevelParameterivEXT C.GPGETMULTITEXLEVELPARAMETERIVEXT - gpGetMultiTexParameterIivEXT C.GPGETMULTITEXPARAMETERIIVEXT - gpGetMultiTexParameterIuivEXT C.GPGETMULTITEXPARAMETERIUIVEXT - gpGetMultiTexParameterfvEXT C.GPGETMULTITEXPARAMETERFVEXT - gpGetMultiTexParameterivEXT C.GPGETMULTITEXPARAMETERIVEXT - gpGetMultisamplefv C.GPGETMULTISAMPLEFV - gpGetMultisamplefvNV C.GPGETMULTISAMPLEFVNV - gpGetNamedBufferParameteri64v C.GPGETNAMEDBUFFERPARAMETERI64V - gpGetNamedBufferParameteriv C.GPGETNAMEDBUFFERPARAMETERIV - gpGetNamedBufferParameterivEXT C.GPGETNAMEDBUFFERPARAMETERIVEXT - gpGetNamedBufferParameterui64vNV C.GPGETNAMEDBUFFERPARAMETERUI64VNV - gpGetNamedBufferPointerv C.GPGETNAMEDBUFFERPOINTERV - gpGetNamedBufferPointervEXT C.GPGETNAMEDBUFFERPOINTERVEXT - gpGetNamedBufferSubData C.GPGETNAMEDBUFFERSUBDATA - gpGetNamedBufferSubDataEXT C.GPGETNAMEDBUFFERSUBDATAEXT - gpGetNamedFramebufferAttachmentParameteriv C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIV - gpGetNamedFramebufferAttachmentParameterivEXT C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXT - gpGetNamedFramebufferParameteriv C.GPGETNAMEDFRAMEBUFFERPARAMETERIV - gpGetNamedFramebufferParameterivEXT C.GPGETNAMEDFRAMEBUFFERPARAMETERIVEXT - gpGetNamedProgramLocalParameterIivEXT C.GPGETNAMEDPROGRAMLOCALPARAMETERIIVEXT - gpGetNamedProgramLocalParameterIuivEXT C.GPGETNAMEDPROGRAMLOCALPARAMETERIUIVEXT - gpGetNamedProgramLocalParameterdvEXT C.GPGETNAMEDPROGRAMLOCALPARAMETERDVEXT - gpGetNamedProgramLocalParameterfvEXT C.GPGETNAMEDPROGRAMLOCALPARAMETERFVEXT - gpGetNamedProgramStringEXT C.GPGETNAMEDPROGRAMSTRINGEXT - gpGetNamedProgramivEXT C.GPGETNAMEDPROGRAMIVEXT - gpGetNamedRenderbufferParameteriv C.GPGETNAMEDRENDERBUFFERPARAMETERIV - gpGetNamedRenderbufferParameterivEXT C.GPGETNAMEDRENDERBUFFERPARAMETERIVEXT - gpGetNamedStringARB C.GPGETNAMEDSTRINGARB - gpGetNamedStringivARB C.GPGETNAMEDSTRINGIVARB - gpGetNextPerfQueryIdINTEL C.GPGETNEXTPERFQUERYIDINTEL - gpGetObjectBufferfvATI C.GPGETOBJECTBUFFERFVATI - gpGetObjectBufferivATI C.GPGETOBJECTBUFFERIVATI - gpGetObjectLabel C.GPGETOBJECTLABEL - gpGetObjectLabelEXT C.GPGETOBJECTLABELEXT - gpGetObjectLabelKHR C.GPGETOBJECTLABELKHR - gpGetObjectParameterfvARB C.GPGETOBJECTPARAMETERFVARB - gpGetObjectParameterivAPPLE C.GPGETOBJECTPARAMETERIVAPPLE - gpGetObjectParameterivARB C.GPGETOBJECTPARAMETERIVARB - gpGetObjectPtrLabel C.GPGETOBJECTPTRLABEL - gpGetObjectPtrLabelKHR C.GPGETOBJECTPTRLABELKHR - gpGetOcclusionQueryivNV C.GPGETOCCLUSIONQUERYIVNV - gpGetOcclusionQueryuivNV C.GPGETOCCLUSIONQUERYUIVNV - gpGetPathColorGenfvNV C.GPGETPATHCOLORGENFVNV - gpGetPathColorGenivNV C.GPGETPATHCOLORGENIVNV - gpGetPathCommandsNV C.GPGETPATHCOMMANDSNV - gpGetPathCoordsNV C.GPGETPATHCOORDSNV - gpGetPathDashArrayNV C.GPGETPATHDASHARRAYNV - gpGetPathLengthNV C.GPGETPATHLENGTHNV - gpGetPathMetricRangeNV C.GPGETPATHMETRICRANGENV - gpGetPathMetricsNV C.GPGETPATHMETRICSNV - gpGetPathParameterfvNV C.GPGETPATHPARAMETERFVNV - gpGetPathParameterivNV C.GPGETPATHPARAMETERIVNV - gpGetPathSpacingNV C.GPGETPATHSPACINGNV - gpGetPathTexGenfvNV C.GPGETPATHTEXGENFVNV - gpGetPathTexGenivNV C.GPGETPATHTEXGENIVNV - gpGetPerfCounterInfoINTEL C.GPGETPERFCOUNTERINFOINTEL - gpGetPerfMonitorCounterDataAMD C.GPGETPERFMONITORCOUNTERDATAAMD - gpGetPerfMonitorCounterInfoAMD C.GPGETPERFMONITORCOUNTERINFOAMD - gpGetPerfMonitorCounterStringAMD C.GPGETPERFMONITORCOUNTERSTRINGAMD - gpGetPerfMonitorCountersAMD C.GPGETPERFMONITORCOUNTERSAMD - gpGetPerfMonitorGroupStringAMD C.GPGETPERFMONITORGROUPSTRINGAMD - gpGetPerfMonitorGroupsAMD C.GPGETPERFMONITORGROUPSAMD - gpGetPerfQueryDataINTEL C.GPGETPERFQUERYDATAINTEL - gpGetPerfQueryIdByNameINTEL C.GPGETPERFQUERYIDBYNAMEINTEL - gpGetPerfQueryInfoINTEL C.GPGETPERFQUERYINFOINTEL - gpGetPixelMapfv C.GPGETPIXELMAPFV - gpGetPixelMapuiv C.GPGETPIXELMAPUIV - gpGetPixelMapusv C.GPGETPIXELMAPUSV - gpGetPixelMapxv C.GPGETPIXELMAPXV - gpGetPixelTexGenParameterfvSGIS C.GPGETPIXELTEXGENPARAMETERFVSGIS - gpGetPixelTexGenParameterivSGIS C.GPGETPIXELTEXGENPARAMETERIVSGIS - gpGetPixelTransformParameterfvEXT C.GPGETPIXELTRANSFORMPARAMETERFVEXT - gpGetPixelTransformParameterivEXT C.GPGETPIXELTRANSFORMPARAMETERIVEXT - gpGetPointerIndexedvEXT C.GPGETPOINTERINDEXEDVEXT - gpGetPointeri_vEXT C.GPGETPOINTERI_VEXT - gpGetPointerv C.GPGETPOINTERV - gpGetPointervEXT C.GPGETPOINTERVEXT - gpGetPointervKHR C.GPGETPOINTERVKHR - gpGetPolygonStipple C.GPGETPOLYGONSTIPPLE - gpGetProgramBinary C.GPGETPROGRAMBINARY - gpGetProgramEnvParameterIivNV C.GPGETPROGRAMENVPARAMETERIIVNV - gpGetProgramEnvParameterIuivNV C.GPGETPROGRAMENVPARAMETERIUIVNV - gpGetProgramEnvParameterdvARB C.GPGETPROGRAMENVPARAMETERDVARB - gpGetProgramEnvParameterfvARB C.GPGETPROGRAMENVPARAMETERFVARB - gpGetProgramInfoLog C.GPGETPROGRAMINFOLOG - gpGetProgramInterfaceiv C.GPGETPROGRAMINTERFACEIV - gpGetProgramLocalParameterIivNV C.GPGETPROGRAMLOCALPARAMETERIIVNV - gpGetProgramLocalParameterIuivNV C.GPGETPROGRAMLOCALPARAMETERIUIVNV - gpGetProgramLocalParameterdvARB C.GPGETPROGRAMLOCALPARAMETERDVARB - gpGetProgramLocalParameterfvARB C.GPGETPROGRAMLOCALPARAMETERFVARB - gpGetProgramNamedParameterdvNV C.GPGETPROGRAMNAMEDPARAMETERDVNV - gpGetProgramNamedParameterfvNV C.GPGETPROGRAMNAMEDPARAMETERFVNV - gpGetProgramParameterdvNV C.GPGETPROGRAMPARAMETERDVNV - gpGetProgramParameterfvNV C.GPGETPROGRAMPARAMETERFVNV - gpGetProgramPipelineInfoLog C.GPGETPROGRAMPIPELINEINFOLOG - gpGetProgramPipelineInfoLogEXT C.GPGETPROGRAMPIPELINEINFOLOGEXT - gpGetProgramPipelineiv C.GPGETPROGRAMPIPELINEIV - gpGetProgramPipelineivEXT C.GPGETPROGRAMPIPELINEIVEXT - gpGetProgramResourceIndex C.GPGETPROGRAMRESOURCEINDEX - gpGetProgramResourceLocation C.GPGETPROGRAMRESOURCELOCATION - gpGetProgramResourceLocationIndex C.GPGETPROGRAMRESOURCELOCATIONINDEX - gpGetProgramResourceName C.GPGETPROGRAMRESOURCENAME - gpGetProgramResourcefvNV C.GPGETPROGRAMRESOURCEFVNV - gpGetProgramResourceiv C.GPGETPROGRAMRESOURCEIV - gpGetProgramStageiv C.GPGETPROGRAMSTAGEIV - gpGetProgramStringARB C.GPGETPROGRAMSTRINGARB - gpGetProgramStringNV C.GPGETPROGRAMSTRINGNV - gpGetProgramSubroutineParameteruivNV C.GPGETPROGRAMSUBROUTINEPARAMETERUIVNV - gpGetProgramiv C.GPGETPROGRAMIV - gpGetProgramivARB C.GPGETPROGRAMIVARB - gpGetProgramivNV C.GPGETPROGRAMIVNV - gpGetQueryIndexediv C.GPGETQUERYINDEXEDIV - gpGetQueryObjecti64v C.GPGETQUERYOBJECTI64V - gpGetQueryObjecti64vEXT C.GPGETQUERYOBJECTI64VEXT - gpGetQueryObjectiv C.GPGETQUERYOBJECTIV - gpGetQueryObjectivARB C.GPGETQUERYOBJECTIVARB - gpGetQueryObjectui64v C.GPGETQUERYOBJECTUI64V - gpGetQueryObjectui64vEXT C.GPGETQUERYOBJECTUI64VEXT - gpGetQueryObjectuiv C.GPGETQUERYOBJECTUIV - gpGetQueryObjectuivARB C.GPGETQUERYOBJECTUIVARB - gpGetQueryiv C.GPGETQUERYIV - gpGetQueryivARB C.GPGETQUERYIVARB - gpGetRenderbufferParameteriv C.GPGETRENDERBUFFERPARAMETERIV - gpGetRenderbufferParameterivEXT C.GPGETRENDERBUFFERPARAMETERIVEXT - gpGetSamplerParameterIiv C.GPGETSAMPLERPARAMETERIIV - gpGetSamplerParameterIuiv C.GPGETSAMPLERPARAMETERIUIV - gpGetSamplerParameterfv C.GPGETSAMPLERPARAMETERFV - gpGetSamplerParameteriv C.GPGETSAMPLERPARAMETERIV - gpGetSeparableFilterEXT C.GPGETSEPARABLEFILTEREXT - gpGetShaderInfoLog C.GPGETSHADERINFOLOG - gpGetShaderPrecisionFormat C.GPGETSHADERPRECISIONFORMAT - gpGetShaderSource C.GPGETSHADERSOURCE - gpGetShaderSourceARB C.GPGETSHADERSOURCEARB - gpGetShaderiv C.GPGETSHADERIV - gpGetSharpenTexFuncSGIS C.GPGETSHARPENTEXFUNCSGIS - gpGetString C.GPGETSTRING - gpGetSubroutineIndex C.GPGETSUBROUTINEINDEX - gpGetSubroutineUniformLocation C.GPGETSUBROUTINEUNIFORMLOCATION - gpGetSynciv C.GPGETSYNCIV - gpGetTexBumpParameterfvATI C.GPGETTEXBUMPPARAMETERFVATI - gpGetTexBumpParameterivATI C.GPGETTEXBUMPPARAMETERIVATI - gpGetTexEnvfv C.GPGETTEXENVFV - gpGetTexEnviv C.GPGETTEXENVIV - gpGetTexEnvxvOES C.GPGETTEXENVXVOES - gpGetTexFilterFuncSGIS C.GPGETTEXFILTERFUNCSGIS - gpGetTexGendv C.GPGETTEXGENDV - gpGetTexGenfv C.GPGETTEXGENFV - gpGetTexGeniv C.GPGETTEXGENIV - gpGetTexGenxvOES C.GPGETTEXGENXVOES - gpGetTexImage C.GPGETTEXIMAGE - gpGetTexLevelParameterfv C.GPGETTEXLEVELPARAMETERFV - gpGetTexLevelParameteriv C.GPGETTEXLEVELPARAMETERIV - gpGetTexLevelParameterxvOES C.GPGETTEXLEVELPARAMETERXVOES - gpGetTexParameterIivEXT C.GPGETTEXPARAMETERIIVEXT - gpGetTexParameterIuivEXT C.GPGETTEXPARAMETERIUIVEXT - gpGetTexParameterPointervAPPLE C.GPGETTEXPARAMETERPOINTERVAPPLE - gpGetTexParameterfv C.GPGETTEXPARAMETERFV - gpGetTexParameteriv C.GPGETTEXPARAMETERIV - gpGetTexParameterxvOES C.GPGETTEXPARAMETERXVOES - gpGetTextureHandleARB C.GPGETTEXTUREHANDLEARB - gpGetTextureHandleNV C.GPGETTEXTUREHANDLENV - gpGetTextureImage C.GPGETTEXTUREIMAGE - gpGetTextureImageEXT C.GPGETTEXTUREIMAGEEXT - gpGetTextureLevelParameterfv C.GPGETTEXTURELEVELPARAMETERFV - gpGetTextureLevelParameterfvEXT C.GPGETTEXTURELEVELPARAMETERFVEXT - gpGetTextureLevelParameteriv C.GPGETTEXTURELEVELPARAMETERIV - gpGetTextureLevelParameterivEXT C.GPGETTEXTURELEVELPARAMETERIVEXT - gpGetTextureParameterIiv C.GPGETTEXTUREPARAMETERIIV - gpGetTextureParameterIivEXT C.GPGETTEXTUREPARAMETERIIVEXT - gpGetTextureParameterIuiv C.GPGETTEXTUREPARAMETERIUIV - gpGetTextureParameterIuivEXT C.GPGETTEXTUREPARAMETERIUIVEXT - gpGetTextureParameterfv C.GPGETTEXTUREPARAMETERFV - gpGetTextureParameterfvEXT C.GPGETTEXTUREPARAMETERFVEXT - gpGetTextureParameteriv C.GPGETTEXTUREPARAMETERIV - gpGetTextureParameterivEXT C.GPGETTEXTUREPARAMETERIVEXT - gpGetTextureSamplerHandleARB C.GPGETTEXTURESAMPLERHANDLEARB - gpGetTextureSamplerHandleNV C.GPGETTEXTURESAMPLERHANDLENV - gpGetTextureSubImage C.GPGETTEXTURESUBIMAGE - gpGetTrackMatrixivNV C.GPGETTRACKMATRIXIVNV - gpGetTransformFeedbackVaryingEXT C.GPGETTRANSFORMFEEDBACKVARYINGEXT - gpGetTransformFeedbackVaryingNV C.GPGETTRANSFORMFEEDBACKVARYINGNV - gpGetTransformFeedbacki64_v C.GPGETTRANSFORMFEEDBACKI64_V - gpGetTransformFeedbacki_v C.GPGETTRANSFORMFEEDBACKI_V - gpGetTransformFeedbackiv C.GPGETTRANSFORMFEEDBACKIV - gpGetUniformBlockIndex C.GPGETUNIFORMBLOCKINDEX - gpGetUniformBufferSizeEXT C.GPGETUNIFORMBUFFERSIZEEXT - gpGetUniformIndices C.GPGETUNIFORMINDICES - gpGetUniformLocation C.GPGETUNIFORMLOCATION - gpGetUniformLocationARB C.GPGETUNIFORMLOCATIONARB - gpGetUniformOffsetEXT C.GPGETUNIFORMOFFSETEXT - gpGetUniformSubroutineuiv C.GPGETUNIFORMSUBROUTINEUIV - gpGetUniformdv C.GPGETUNIFORMDV - gpGetUniformfv C.GPGETUNIFORMFV - gpGetUniformfvARB C.GPGETUNIFORMFVARB - gpGetUniformi64vNV C.GPGETUNIFORMI64VNV - gpGetUniformiv C.GPGETUNIFORMIV - gpGetUniformivARB C.GPGETUNIFORMIVARB - gpGetUniformui64vNV C.GPGETUNIFORMUI64VNV - gpGetUniformuivEXT C.GPGETUNIFORMUIVEXT - gpGetVariantArrayObjectfvATI C.GPGETVARIANTARRAYOBJECTFVATI - gpGetVariantArrayObjectivATI C.GPGETVARIANTARRAYOBJECTIVATI - gpGetVariantBooleanvEXT C.GPGETVARIANTBOOLEANVEXT - gpGetVariantFloatvEXT C.GPGETVARIANTFLOATVEXT - gpGetVariantIntegervEXT C.GPGETVARIANTINTEGERVEXT - gpGetVariantPointervEXT C.GPGETVARIANTPOINTERVEXT - gpGetVaryingLocationNV C.GPGETVARYINGLOCATIONNV - gpGetVertexArrayIndexed64iv C.GPGETVERTEXARRAYINDEXED64IV - gpGetVertexArrayIndexediv C.GPGETVERTEXARRAYINDEXEDIV - gpGetVertexArrayIntegeri_vEXT C.GPGETVERTEXARRAYINTEGERI_VEXT - gpGetVertexArrayIntegervEXT C.GPGETVERTEXARRAYINTEGERVEXT - gpGetVertexArrayPointeri_vEXT C.GPGETVERTEXARRAYPOINTERI_VEXT - gpGetVertexArrayPointervEXT C.GPGETVERTEXARRAYPOINTERVEXT - gpGetVertexArrayiv C.GPGETVERTEXARRAYIV - gpGetVertexAttribArrayObjectfvATI C.GPGETVERTEXATTRIBARRAYOBJECTFVATI - gpGetVertexAttribArrayObjectivATI C.GPGETVERTEXATTRIBARRAYOBJECTIVATI - gpGetVertexAttribIivEXT C.GPGETVERTEXATTRIBIIVEXT - gpGetVertexAttribIuivEXT C.GPGETVERTEXATTRIBIUIVEXT - gpGetVertexAttribLdv C.GPGETVERTEXATTRIBLDV - gpGetVertexAttribLdvEXT C.GPGETVERTEXATTRIBLDVEXT - gpGetVertexAttribLi64vNV C.GPGETVERTEXATTRIBLI64VNV - gpGetVertexAttribLui64vARB C.GPGETVERTEXATTRIBLUI64VARB - gpGetVertexAttribLui64vNV C.GPGETVERTEXATTRIBLUI64VNV - gpGetVertexAttribPointerv C.GPGETVERTEXATTRIBPOINTERV - gpGetVertexAttribPointervARB C.GPGETVERTEXATTRIBPOINTERVARB - gpGetVertexAttribPointervNV C.GPGETVERTEXATTRIBPOINTERVNV - gpGetVertexAttribdv C.GPGETVERTEXATTRIBDV - gpGetVertexAttribdvARB C.GPGETVERTEXATTRIBDVARB - gpGetVertexAttribdvNV C.GPGETVERTEXATTRIBDVNV - gpGetVertexAttribfv C.GPGETVERTEXATTRIBFV - gpGetVertexAttribfvARB C.GPGETVERTEXATTRIBFVARB - gpGetVertexAttribfvNV C.GPGETVERTEXATTRIBFVNV - gpGetVertexAttribiv C.GPGETVERTEXATTRIBIV - gpGetVertexAttribivARB C.GPGETVERTEXATTRIBIVARB - gpGetVertexAttribivNV C.GPGETVERTEXATTRIBIVNV - gpGetVideoCaptureStreamdvNV C.GPGETVIDEOCAPTURESTREAMDVNV - gpGetVideoCaptureStreamfvNV C.GPGETVIDEOCAPTURESTREAMFVNV - gpGetVideoCaptureStreamivNV C.GPGETVIDEOCAPTURESTREAMIVNV - gpGetVideoCaptureivNV C.GPGETVIDEOCAPTUREIVNV - gpGetVideoi64vNV C.GPGETVIDEOI64VNV - gpGetVideoivNV C.GPGETVIDEOIVNV - gpGetVideoui64vNV C.GPGETVIDEOUI64VNV - gpGetVideouivNV C.GPGETVIDEOUIVNV - gpGetnCompressedTexImageARB C.GPGETNCOMPRESSEDTEXIMAGEARB - gpGetnTexImageARB C.GPGETNTEXIMAGEARB - gpGetnUniformdvARB C.GPGETNUNIFORMDVARB - gpGetnUniformfv C.GPGETNUNIFORMFV - gpGetnUniformfvARB C.GPGETNUNIFORMFVARB - gpGetnUniformfvKHR C.GPGETNUNIFORMFVKHR - gpGetnUniformiv C.GPGETNUNIFORMIV - gpGetnUniformivARB C.GPGETNUNIFORMIVARB - gpGetnUniformivKHR C.GPGETNUNIFORMIVKHR - gpGetnUniformuiv C.GPGETNUNIFORMUIV - gpGetnUniformuivARB C.GPGETNUNIFORMUIVARB - gpGetnUniformuivKHR C.GPGETNUNIFORMUIVKHR - gpGlobalAlphaFactorbSUN C.GPGLOBALALPHAFACTORBSUN - gpGlobalAlphaFactordSUN C.GPGLOBALALPHAFACTORDSUN - gpGlobalAlphaFactorfSUN C.GPGLOBALALPHAFACTORFSUN - gpGlobalAlphaFactoriSUN C.GPGLOBALALPHAFACTORISUN - gpGlobalAlphaFactorsSUN C.GPGLOBALALPHAFACTORSSUN - gpGlobalAlphaFactorubSUN C.GPGLOBALALPHAFACTORUBSUN - gpGlobalAlphaFactoruiSUN C.GPGLOBALALPHAFACTORUISUN - gpGlobalAlphaFactorusSUN C.GPGLOBALALPHAFACTORUSSUN - gpHint C.GPHINT - gpHintPGI C.GPHINTPGI - gpHistogramEXT C.GPHISTOGRAMEXT - gpIglooInterfaceSGIX C.GPIGLOOINTERFACESGIX - gpImageTransformParameterfHP C.GPIMAGETRANSFORMPARAMETERFHP - gpImageTransformParameterfvHP C.GPIMAGETRANSFORMPARAMETERFVHP - gpImageTransformParameteriHP C.GPIMAGETRANSFORMPARAMETERIHP - gpImageTransformParameterivHP C.GPIMAGETRANSFORMPARAMETERIVHP - gpImportSyncEXT C.GPIMPORTSYNCEXT - gpIndexFormatNV C.GPINDEXFORMATNV - gpIndexFuncEXT C.GPINDEXFUNCEXT - gpIndexMask C.GPINDEXMASK - gpIndexMaterialEXT C.GPINDEXMATERIALEXT - gpIndexPointer C.GPINDEXPOINTER - gpIndexPointerEXT C.GPINDEXPOINTEREXT - gpIndexPointerListIBM C.GPINDEXPOINTERLISTIBM - gpIndexd C.GPINDEXD - gpIndexdv C.GPINDEXDV - gpIndexf C.GPINDEXF - gpIndexfv C.GPINDEXFV - gpIndexi C.GPINDEXI - gpIndexiv C.GPINDEXIV - gpIndexs C.GPINDEXS - gpIndexsv C.GPINDEXSV - gpIndexub C.GPINDEXUB - gpIndexubv C.GPINDEXUBV - gpIndexxOES C.GPINDEXXOES - gpIndexxvOES C.GPINDEXXVOES - gpInitNames C.GPINITNAMES - gpInsertComponentEXT C.GPINSERTCOMPONENTEXT - gpInsertEventMarkerEXT C.GPINSERTEVENTMARKEREXT - gpInstrumentsBufferSGIX C.GPINSTRUMENTSBUFFERSGIX - gpInterleavedArrays C.GPINTERLEAVEDARRAYS - gpInterpolatePathsNV C.GPINTERPOLATEPATHSNV - gpInvalidateBufferData C.GPINVALIDATEBUFFERDATA - gpInvalidateBufferSubData C.GPINVALIDATEBUFFERSUBDATA - gpInvalidateFramebuffer C.GPINVALIDATEFRAMEBUFFER - gpInvalidateNamedFramebufferData C.GPINVALIDATENAMEDFRAMEBUFFERDATA - gpInvalidateNamedFramebufferSubData C.GPINVALIDATENAMEDFRAMEBUFFERSUBDATA - gpInvalidateSubFramebuffer C.GPINVALIDATESUBFRAMEBUFFER - gpInvalidateTexImage C.GPINVALIDATETEXIMAGE - gpInvalidateTexSubImage C.GPINVALIDATETEXSUBIMAGE - gpIsAsyncMarkerSGIX C.GPISASYNCMARKERSGIX - gpIsBuffer C.GPISBUFFER - gpIsBufferARB C.GPISBUFFERARB - gpIsBufferResidentNV C.GPISBUFFERRESIDENTNV - gpIsEnabled C.GPISENABLED - gpIsEnabledIndexedEXT C.GPISENABLEDINDEXEDEXT - gpIsFenceAPPLE C.GPISFENCEAPPLE - gpIsFenceNV C.GPISFENCENV - gpIsFramebuffer C.GPISFRAMEBUFFER - gpIsFramebufferEXT C.GPISFRAMEBUFFEREXT - gpIsImageHandleResidentARB C.GPISIMAGEHANDLERESIDENTARB - gpIsImageHandleResidentNV C.GPISIMAGEHANDLERESIDENTNV - gpIsList C.GPISLIST - gpIsNameAMD C.GPISNAMEAMD - gpIsNamedBufferResidentNV C.GPISNAMEDBUFFERRESIDENTNV - gpIsNamedStringARB C.GPISNAMEDSTRINGARB - gpIsObjectBufferATI C.GPISOBJECTBUFFERATI - gpIsOcclusionQueryNV C.GPISOCCLUSIONQUERYNV - gpIsPathNV C.GPISPATHNV - gpIsPointInFillPathNV C.GPISPOINTINFILLPATHNV - gpIsPointInStrokePathNV C.GPISPOINTINSTROKEPATHNV - gpIsProgram C.GPISPROGRAM - gpIsProgramARB C.GPISPROGRAMARB - gpIsProgramNV C.GPISPROGRAMNV - gpIsProgramPipeline C.GPISPROGRAMPIPELINE - gpIsProgramPipelineEXT C.GPISPROGRAMPIPELINEEXT - gpIsQuery C.GPISQUERY - gpIsQueryARB C.GPISQUERYARB - gpIsRenderbuffer C.GPISRENDERBUFFER - gpIsRenderbufferEXT C.GPISRENDERBUFFEREXT - gpIsSampler C.GPISSAMPLER - gpIsShader C.GPISSHADER - gpIsSync C.GPISSYNC - gpIsTexture C.GPISTEXTURE - gpIsTextureEXT C.GPISTEXTUREEXT - gpIsTextureHandleResidentARB C.GPISTEXTUREHANDLERESIDENTARB - gpIsTextureHandleResidentNV C.GPISTEXTUREHANDLERESIDENTNV - gpIsTransformFeedback C.GPISTRANSFORMFEEDBACK - gpIsTransformFeedbackNV C.GPISTRANSFORMFEEDBACKNV - gpIsVariantEnabledEXT C.GPISVARIANTENABLEDEXT - gpIsVertexArray C.GPISVERTEXARRAY - gpIsVertexArrayAPPLE C.GPISVERTEXARRAYAPPLE - gpIsVertexAttribEnabledAPPLE C.GPISVERTEXATTRIBENABLEDAPPLE - gpLabelObjectEXT C.GPLABELOBJECTEXT - gpLightEnviSGIX C.GPLIGHTENVISGIX - gpLightModelf C.GPLIGHTMODELF - gpLightModelfv C.GPLIGHTMODELFV - gpLightModeli C.GPLIGHTMODELI - gpLightModeliv C.GPLIGHTMODELIV - gpLightModelxOES C.GPLIGHTMODELXOES - gpLightModelxvOES C.GPLIGHTMODELXVOES - gpLightf C.GPLIGHTF - gpLightfv C.GPLIGHTFV - gpLighti C.GPLIGHTI - gpLightiv C.GPLIGHTIV - gpLightxOES C.GPLIGHTXOES - gpLightxvOES C.GPLIGHTXVOES - gpLineStipple C.GPLINESTIPPLE - gpLineWidth C.GPLINEWIDTH - gpLineWidthxOES C.GPLINEWIDTHXOES - gpLinkProgram C.GPLINKPROGRAM - gpLinkProgramARB C.GPLINKPROGRAMARB - gpListBase C.GPLISTBASE - gpListParameterfSGIX C.GPLISTPARAMETERFSGIX - gpListParameterfvSGIX C.GPLISTPARAMETERFVSGIX - gpListParameteriSGIX C.GPLISTPARAMETERISGIX - gpListParameterivSGIX C.GPLISTPARAMETERIVSGIX - gpLoadIdentity C.GPLOADIDENTITY - gpLoadIdentityDeformationMapSGIX C.GPLOADIDENTITYDEFORMATIONMAPSGIX - gpLoadMatrixd C.GPLOADMATRIXD - gpLoadMatrixf C.GPLOADMATRIXF - gpLoadMatrixxOES C.GPLOADMATRIXXOES - gpLoadName C.GPLOADNAME - gpLoadProgramNV C.GPLOADPROGRAMNV - gpLoadTransposeMatrixd C.GPLOADTRANSPOSEMATRIXD - gpLoadTransposeMatrixdARB C.GPLOADTRANSPOSEMATRIXDARB - gpLoadTransposeMatrixf C.GPLOADTRANSPOSEMATRIXF - gpLoadTransposeMatrixfARB C.GPLOADTRANSPOSEMATRIXFARB - gpLoadTransposeMatrixxOES C.GPLOADTRANSPOSEMATRIXXOES - gpLockArraysEXT C.GPLOCKARRAYSEXT - gpLogicOp C.GPLOGICOP - gpMakeBufferNonResidentNV C.GPMAKEBUFFERNONRESIDENTNV - gpMakeBufferResidentNV C.GPMAKEBUFFERRESIDENTNV - gpMakeImageHandleNonResidentARB C.GPMAKEIMAGEHANDLENONRESIDENTARB - gpMakeImageHandleNonResidentNV C.GPMAKEIMAGEHANDLENONRESIDENTNV - gpMakeImageHandleResidentARB C.GPMAKEIMAGEHANDLERESIDENTARB - gpMakeImageHandleResidentNV C.GPMAKEIMAGEHANDLERESIDENTNV - gpMakeNamedBufferNonResidentNV C.GPMAKENAMEDBUFFERNONRESIDENTNV - gpMakeNamedBufferResidentNV C.GPMAKENAMEDBUFFERRESIDENTNV - gpMakeTextureHandleNonResidentARB C.GPMAKETEXTUREHANDLENONRESIDENTARB - gpMakeTextureHandleNonResidentNV C.GPMAKETEXTUREHANDLENONRESIDENTNV - gpMakeTextureHandleResidentARB C.GPMAKETEXTUREHANDLERESIDENTARB - gpMakeTextureHandleResidentNV C.GPMAKETEXTUREHANDLERESIDENTNV - gpMap1d C.GPMAP1D - gpMap1f C.GPMAP1F - gpMap1xOES C.GPMAP1XOES - gpMap2d C.GPMAP2D - gpMap2f C.GPMAP2F - gpMap2xOES C.GPMAP2XOES - gpMapBuffer C.GPMAPBUFFER - gpMapBufferARB C.GPMAPBUFFERARB - gpMapBufferRange C.GPMAPBUFFERRANGE - gpMapControlPointsNV C.GPMAPCONTROLPOINTSNV - gpMapGrid1d C.GPMAPGRID1D - gpMapGrid1f C.GPMAPGRID1F - gpMapGrid1xOES C.GPMAPGRID1XOES - gpMapGrid2d C.GPMAPGRID2D - gpMapGrid2f C.GPMAPGRID2F - gpMapGrid2xOES C.GPMAPGRID2XOES - gpMapNamedBuffer C.GPMAPNAMEDBUFFER - gpMapNamedBufferEXT C.GPMAPNAMEDBUFFEREXT - gpMapNamedBufferRange C.GPMAPNAMEDBUFFERRANGE - gpMapNamedBufferRangeEXT C.GPMAPNAMEDBUFFERRANGEEXT - gpMapObjectBufferATI C.GPMAPOBJECTBUFFERATI - gpMapParameterfvNV C.GPMAPPARAMETERFVNV - gpMapParameterivNV C.GPMAPPARAMETERIVNV - gpMapTexture2DINTEL C.GPMAPTEXTURE2DINTEL - gpMapVertexAttrib1dAPPLE C.GPMAPVERTEXATTRIB1DAPPLE - gpMapVertexAttrib1fAPPLE C.GPMAPVERTEXATTRIB1FAPPLE - gpMapVertexAttrib2dAPPLE C.GPMAPVERTEXATTRIB2DAPPLE - gpMapVertexAttrib2fAPPLE C.GPMAPVERTEXATTRIB2FAPPLE - gpMaterialf C.GPMATERIALF - gpMaterialfv C.GPMATERIALFV - gpMateriali C.GPMATERIALI - gpMaterialiv C.GPMATERIALIV - gpMaterialxOES C.GPMATERIALXOES - gpMaterialxvOES C.GPMATERIALXVOES - gpMatrixFrustumEXT C.GPMATRIXFRUSTUMEXT - gpMatrixIndexPointerARB C.GPMATRIXINDEXPOINTERARB - gpMatrixIndexubvARB C.GPMATRIXINDEXUBVARB - gpMatrixIndexuivARB C.GPMATRIXINDEXUIVARB - gpMatrixIndexusvARB C.GPMATRIXINDEXUSVARB - gpMatrixLoad3x2fNV C.GPMATRIXLOAD3X2FNV - gpMatrixLoad3x3fNV C.GPMATRIXLOAD3X3FNV - gpMatrixLoadIdentityEXT C.GPMATRIXLOADIDENTITYEXT - gpMatrixLoadTranspose3x3fNV C.GPMATRIXLOADTRANSPOSE3X3FNV - gpMatrixLoadTransposedEXT C.GPMATRIXLOADTRANSPOSEDEXT - gpMatrixLoadTransposefEXT C.GPMATRIXLOADTRANSPOSEFEXT - gpMatrixLoaddEXT C.GPMATRIXLOADDEXT - gpMatrixLoadfEXT C.GPMATRIXLOADFEXT - gpMatrixMode C.GPMATRIXMODE - gpMatrixMult3x2fNV C.GPMATRIXMULT3X2FNV - gpMatrixMult3x3fNV C.GPMATRIXMULT3X3FNV - gpMatrixMultTranspose3x3fNV C.GPMATRIXMULTTRANSPOSE3X3FNV - gpMatrixMultTransposedEXT C.GPMATRIXMULTTRANSPOSEDEXT - gpMatrixMultTransposefEXT C.GPMATRIXMULTTRANSPOSEFEXT - gpMatrixMultdEXT C.GPMATRIXMULTDEXT - gpMatrixMultfEXT C.GPMATRIXMULTFEXT - gpMatrixOrthoEXT C.GPMATRIXORTHOEXT - gpMatrixPopEXT C.GPMATRIXPOPEXT - gpMatrixPushEXT C.GPMATRIXPUSHEXT - gpMatrixRotatedEXT C.GPMATRIXROTATEDEXT - gpMatrixRotatefEXT C.GPMATRIXROTATEFEXT - gpMatrixScaledEXT C.GPMATRIXSCALEDEXT - gpMatrixScalefEXT C.GPMATRIXSCALEFEXT - gpMatrixTranslatedEXT C.GPMATRIXTRANSLATEDEXT - gpMatrixTranslatefEXT C.GPMATRIXTRANSLATEFEXT - gpMemoryBarrier C.GPMEMORYBARRIER - gpMemoryBarrierByRegion C.GPMEMORYBARRIERBYREGION - gpMemoryBarrierEXT C.GPMEMORYBARRIEREXT - gpMinSampleShadingARB C.GPMINSAMPLESHADINGARB - gpMinmaxEXT C.GPMINMAXEXT - gpMultMatrixd C.GPMULTMATRIXD - gpMultMatrixf C.GPMULTMATRIXF - gpMultMatrixxOES C.GPMULTMATRIXXOES - gpMultTransposeMatrixd C.GPMULTTRANSPOSEMATRIXD - gpMultTransposeMatrixdARB C.GPMULTTRANSPOSEMATRIXDARB - gpMultTransposeMatrixf C.GPMULTTRANSPOSEMATRIXF - gpMultTransposeMatrixfARB C.GPMULTTRANSPOSEMATRIXFARB - gpMultTransposeMatrixxOES C.GPMULTTRANSPOSEMATRIXXOES - gpMultiDrawArrays C.GPMULTIDRAWARRAYS - gpMultiDrawArraysEXT C.GPMULTIDRAWARRAYSEXT - gpMultiDrawArraysIndirect C.GPMULTIDRAWARRAYSINDIRECT - gpMultiDrawArraysIndirectAMD C.GPMULTIDRAWARRAYSINDIRECTAMD - gpMultiDrawArraysIndirectBindlessCountNV C.GPMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNV - gpMultiDrawArraysIndirectBindlessNV C.GPMULTIDRAWARRAYSINDIRECTBINDLESSNV - gpMultiDrawArraysIndirectCountARB C.GPMULTIDRAWARRAYSINDIRECTCOUNTARB - gpMultiDrawElementArrayAPPLE C.GPMULTIDRAWELEMENTARRAYAPPLE - gpMultiDrawElements C.GPMULTIDRAWELEMENTS - gpMultiDrawElementsBaseVertex C.GPMULTIDRAWELEMENTSBASEVERTEX - gpMultiDrawElementsEXT C.GPMULTIDRAWELEMENTSEXT - gpMultiDrawElementsIndirect C.GPMULTIDRAWELEMENTSINDIRECT - gpMultiDrawElementsIndirectAMD C.GPMULTIDRAWELEMENTSINDIRECTAMD - gpMultiDrawElementsIndirectBindlessCountNV C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNV - gpMultiDrawElementsIndirectBindlessNV C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSNV - gpMultiDrawElementsIndirectCountARB C.GPMULTIDRAWELEMENTSINDIRECTCOUNTARB - gpMultiDrawRangeElementArrayAPPLE C.GPMULTIDRAWRANGEELEMENTARRAYAPPLE - gpMultiModeDrawArraysIBM C.GPMULTIMODEDRAWARRAYSIBM - gpMultiModeDrawElementsIBM C.GPMULTIMODEDRAWELEMENTSIBM - gpMultiTexBufferEXT C.GPMULTITEXBUFFEREXT - gpMultiTexCoord1bOES C.GPMULTITEXCOORD1BOES - gpMultiTexCoord1bvOES C.GPMULTITEXCOORD1BVOES - gpMultiTexCoord1d C.GPMULTITEXCOORD1D - gpMultiTexCoord1dARB C.GPMULTITEXCOORD1DARB - gpMultiTexCoord1dv C.GPMULTITEXCOORD1DV - gpMultiTexCoord1dvARB C.GPMULTITEXCOORD1DVARB - gpMultiTexCoord1f C.GPMULTITEXCOORD1F - gpMultiTexCoord1fARB C.GPMULTITEXCOORD1FARB - gpMultiTexCoord1fv C.GPMULTITEXCOORD1FV - gpMultiTexCoord1fvARB C.GPMULTITEXCOORD1FVARB - gpMultiTexCoord1hNV C.GPMULTITEXCOORD1HNV - gpMultiTexCoord1hvNV C.GPMULTITEXCOORD1HVNV - gpMultiTexCoord1i C.GPMULTITEXCOORD1I - gpMultiTexCoord1iARB C.GPMULTITEXCOORD1IARB - gpMultiTexCoord1iv C.GPMULTITEXCOORD1IV - gpMultiTexCoord1ivARB C.GPMULTITEXCOORD1IVARB - gpMultiTexCoord1s C.GPMULTITEXCOORD1S - gpMultiTexCoord1sARB C.GPMULTITEXCOORD1SARB - gpMultiTexCoord1sv C.GPMULTITEXCOORD1SV - gpMultiTexCoord1svARB C.GPMULTITEXCOORD1SVARB - gpMultiTexCoord1xOES C.GPMULTITEXCOORD1XOES - gpMultiTexCoord1xvOES C.GPMULTITEXCOORD1XVOES - gpMultiTexCoord2bOES C.GPMULTITEXCOORD2BOES - gpMultiTexCoord2bvOES C.GPMULTITEXCOORD2BVOES - gpMultiTexCoord2d C.GPMULTITEXCOORD2D - gpMultiTexCoord2dARB C.GPMULTITEXCOORD2DARB - gpMultiTexCoord2dv C.GPMULTITEXCOORD2DV - gpMultiTexCoord2dvARB C.GPMULTITEXCOORD2DVARB - gpMultiTexCoord2f C.GPMULTITEXCOORD2F - gpMultiTexCoord2fARB C.GPMULTITEXCOORD2FARB - gpMultiTexCoord2fv C.GPMULTITEXCOORD2FV - gpMultiTexCoord2fvARB C.GPMULTITEXCOORD2FVARB - gpMultiTexCoord2hNV C.GPMULTITEXCOORD2HNV - gpMultiTexCoord2hvNV C.GPMULTITEXCOORD2HVNV - gpMultiTexCoord2i C.GPMULTITEXCOORD2I - gpMultiTexCoord2iARB C.GPMULTITEXCOORD2IARB - gpMultiTexCoord2iv C.GPMULTITEXCOORD2IV - gpMultiTexCoord2ivARB C.GPMULTITEXCOORD2IVARB - gpMultiTexCoord2s C.GPMULTITEXCOORD2S - gpMultiTexCoord2sARB C.GPMULTITEXCOORD2SARB - gpMultiTexCoord2sv C.GPMULTITEXCOORD2SV - gpMultiTexCoord2svARB C.GPMULTITEXCOORD2SVARB - gpMultiTexCoord2xOES C.GPMULTITEXCOORD2XOES - gpMultiTexCoord2xvOES C.GPMULTITEXCOORD2XVOES - gpMultiTexCoord3bOES C.GPMULTITEXCOORD3BOES - gpMultiTexCoord3bvOES C.GPMULTITEXCOORD3BVOES - gpMultiTexCoord3d C.GPMULTITEXCOORD3D - gpMultiTexCoord3dARB C.GPMULTITEXCOORD3DARB - gpMultiTexCoord3dv C.GPMULTITEXCOORD3DV - gpMultiTexCoord3dvARB C.GPMULTITEXCOORD3DVARB - gpMultiTexCoord3f C.GPMULTITEXCOORD3F - gpMultiTexCoord3fARB C.GPMULTITEXCOORD3FARB - gpMultiTexCoord3fv C.GPMULTITEXCOORD3FV - gpMultiTexCoord3fvARB C.GPMULTITEXCOORD3FVARB - gpMultiTexCoord3hNV C.GPMULTITEXCOORD3HNV - gpMultiTexCoord3hvNV C.GPMULTITEXCOORD3HVNV - gpMultiTexCoord3i C.GPMULTITEXCOORD3I - gpMultiTexCoord3iARB C.GPMULTITEXCOORD3IARB - gpMultiTexCoord3iv C.GPMULTITEXCOORD3IV - gpMultiTexCoord3ivARB C.GPMULTITEXCOORD3IVARB - gpMultiTexCoord3s C.GPMULTITEXCOORD3S - gpMultiTexCoord3sARB C.GPMULTITEXCOORD3SARB - gpMultiTexCoord3sv C.GPMULTITEXCOORD3SV - gpMultiTexCoord3svARB C.GPMULTITEXCOORD3SVARB - gpMultiTexCoord3xOES C.GPMULTITEXCOORD3XOES - gpMultiTexCoord3xvOES C.GPMULTITEXCOORD3XVOES - gpMultiTexCoord4bOES C.GPMULTITEXCOORD4BOES - gpMultiTexCoord4bvOES C.GPMULTITEXCOORD4BVOES - gpMultiTexCoord4d C.GPMULTITEXCOORD4D - gpMultiTexCoord4dARB C.GPMULTITEXCOORD4DARB - gpMultiTexCoord4dv C.GPMULTITEXCOORD4DV - gpMultiTexCoord4dvARB C.GPMULTITEXCOORD4DVARB - gpMultiTexCoord4f C.GPMULTITEXCOORD4F - gpMultiTexCoord4fARB C.GPMULTITEXCOORD4FARB - gpMultiTexCoord4fv C.GPMULTITEXCOORD4FV - gpMultiTexCoord4fvARB C.GPMULTITEXCOORD4FVARB - gpMultiTexCoord4hNV C.GPMULTITEXCOORD4HNV - gpMultiTexCoord4hvNV C.GPMULTITEXCOORD4HVNV - gpMultiTexCoord4i C.GPMULTITEXCOORD4I - gpMultiTexCoord4iARB C.GPMULTITEXCOORD4IARB - gpMultiTexCoord4iv C.GPMULTITEXCOORD4IV - gpMultiTexCoord4ivARB C.GPMULTITEXCOORD4IVARB - gpMultiTexCoord4s C.GPMULTITEXCOORD4S - gpMultiTexCoord4sARB C.GPMULTITEXCOORD4SARB - gpMultiTexCoord4sv C.GPMULTITEXCOORD4SV - gpMultiTexCoord4svARB C.GPMULTITEXCOORD4SVARB - gpMultiTexCoord4xOES C.GPMULTITEXCOORD4XOES - gpMultiTexCoord4xvOES C.GPMULTITEXCOORD4XVOES - gpMultiTexCoordPointerEXT C.GPMULTITEXCOORDPOINTEREXT - gpMultiTexEnvfEXT C.GPMULTITEXENVFEXT - gpMultiTexEnvfvEXT C.GPMULTITEXENVFVEXT - gpMultiTexEnviEXT C.GPMULTITEXENVIEXT - gpMultiTexEnvivEXT C.GPMULTITEXENVIVEXT - gpMultiTexGendEXT C.GPMULTITEXGENDEXT - gpMultiTexGendvEXT C.GPMULTITEXGENDVEXT - gpMultiTexGenfEXT C.GPMULTITEXGENFEXT - gpMultiTexGenfvEXT C.GPMULTITEXGENFVEXT - gpMultiTexGeniEXT C.GPMULTITEXGENIEXT - gpMultiTexGenivEXT C.GPMULTITEXGENIVEXT - gpMultiTexImage1DEXT C.GPMULTITEXIMAGE1DEXT - gpMultiTexImage2DEXT C.GPMULTITEXIMAGE2DEXT - gpMultiTexImage3DEXT C.GPMULTITEXIMAGE3DEXT - gpMultiTexParameterIivEXT C.GPMULTITEXPARAMETERIIVEXT - gpMultiTexParameterIuivEXT C.GPMULTITEXPARAMETERIUIVEXT - gpMultiTexParameterfEXT C.GPMULTITEXPARAMETERFEXT - gpMultiTexParameterfvEXT C.GPMULTITEXPARAMETERFVEXT - gpMultiTexParameteriEXT C.GPMULTITEXPARAMETERIEXT - gpMultiTexParameterivEXT C.GPMULTITEXPARAMETERIVEXT - gpMultiTexRenderbufferEXT C.GPMULTITEXRENDERBUFFEREXT - gpMultiTexSubImage1DEXT C.GPMULTITEXSUBIMAGE1DEXT - gpMultiTexSubImage2DEXT C.GPMULTITEXSUBIMAGE2DEXT - gpMultiTexSubImage3DEXT C.GPMULTITEXSUBIMAGE3DEXT - gpNamedBufferData C.GPNAMEDBUFFERDATA - gpNamedBufferDataEXT C.GPNAMEDBUFFERDATAEXT - gpNamedBufferPageCommitmentARB C.GPNAMEDBUFFERPAGECOMMITMENTARB - gpNamedBufferPageCommitmentEXT C.GPNAMEDBUFFERPAGECOMMITMENTEXT - gpNamedBufferStorage C.GPNAMEDBUFFERSTORAGE - gpNamedBufferStorageEXT C.GPNAMEDBUFFERSTORAGEEXT - gpNamedBufferSubData C.GPNAMEDBUFFERSUBDATA - gpNamedBufferSubDataEXT C.GPNAMEDBUFFERSUBDATAEXT - gpNamedCopyBufferSubDataEXT C.GPNAMEDCOPYBUFFERSUBDATAEXT - gpNamedFramebufferDrawBuffer C.GPNAMEDFRAMEBUFFERDRAWBUFFER - gpNamedFramebufferDrawBuffers C.GPNAMEDFRAMEBUFFERDRAWBUFFERS - gpNamedFramebufferParameteri C.GPNAMEDFRAMEBUFFERPARAMETERI - gpNamedFramebufferParameteriEXT C.GPNAMEDFRAMEBUFFERPARAMETERIEXT - gpNamedFramebufferReadBuffer C.GPNAMEDFRAMEBUFFERREADBUFFER - gpNamedFramebufferRenderbuffer C.GPNAMEDFRAMEBUFFERRENDERBUFFER - gpNamedFramebufferRenderbufferEXT C.GPNAMEDFRAMEBUFFERRENDERBUFFEREXT - gpNamedFramebufferTexture C.GPNAMEDFRAMEBUFFERTEXTURE - gpNamedFramebufferTexture1DEXT C.GPNAMEDFRAMEBUFFERTEXTURE1DEXT - gpNamedFramebufferTexture2DEXT C.GPNAMEDFRAMEBUFFERTEXTURE2DEXT - gpNamedFramebufferTexture3DEXT C.GPNAMEDFRAMEBUFFERTEXTURE3DEXT - gpNamedFramebufferTextureEXT C.GPNAMEDFRAMEBUFFERTEXTUREEXT - gpNamedFramebufferTextureFaceEXT C.GPNAMEDFRAMEBUFFERTEXTUREFACEEXT - gpNamedFramebufferTextureLayer C.GPNAMEDFRAMEBUFFERTEXTURELAYER - gpNamedFramebufferTextureLayerEXT C.GPNAMEDFRAMEBUFFERTEXTURELAYEREXT - gpNamedProgramLocalParameter4dEXT C.GPNAMEDPROGRAMLOCALPARAMETER4DEXT - gpNamedProgramLocalParameter4dvEXT C.GPNAMEDPROGRAMLOCALPARAMETER4DVEXT - gpNamedProgramLocalParameter4fEXT C.GPNAMEDPROGRAMLOCALPARAMETER4FEXT - gpNamedProgramLocalParameter4fvEXT C.GPNAMEDPROGRAMLOCALPARAMETER4FVEXT - gpNamedProgramLocalParameterI4iEXT C.GPNAMEDPROGRAMLOCALPARAMETERI4IEXT - gpNamedProgramLocalParameterI4ivEXT C.GPNAMEDPROGRAMLOCALPARAMETERI4IVEXT - gpNamedProgramLocalParameterI4uiEXT C.GPNAMEDPROGRAMLOCALPARAMETERI4UIEXT - gpNamedProgramLocalParameterI4uivEXT C.GPNAMEDPROGRAMLOCALPARAMETERI4UIVEXT - gpNamedProgramLocalParameters4fvEXT C.GPNAMEDPROGRAMLOCALPARAMETERS4FVEXT - gpNamedProgramLocalParametersI4ivEXT C.GPNAMEDPROGRAMLOCALPARAMETERSI4IVEXT - gpNamedProgramLocalParametersI4uivEXT C.GPNAMEDPROGRAMLOCALPARAMETERSI4UIVEXT - gpNamedProgramStringEXT C.GPNAMEDPROGRAMSTRINGEXT - gpNamedRenderbufferStorage C.GPNAMEDRENDERBUFFERSTORAGE - gpNamedRenderbufferStorageEXT C.GPNAMEDRENDERBUFFERSTORAGEEXT - gpNamedRenderbufferStorageMultisample C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLE - gpNamedRenderbufferStorageMultisampleCoverageEXT C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXT - gpNamedRenderbufferStorageMultisampleEXT C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXT - gpNamedStringARB C.GPNAMEDSTRINGARB - gpNewList C.GPNEWLIST - gpNewObjectBufferATI C.GPNEWOBJECTBUFFERATI - gpNormal3b C.GPNORMAL3B - gpNormal3bv C.GPNORMAL3BV - gpNormal3d C.GPNORMAL3D - gpNormal3dv C.GPNORMAL3DV - gpNormal3f C.GPNORMAL3F - gpNormal3fVertex3fSUN C.GPNORMAL3FVERTEX3FSUN - gpNormal3fVertex3fvSUN C.GPNORMAL3FVERTEX3FVSUN - gpNormal3fv C.GPNORMAL3FV - gpNormal3hNV C.GPNORMAL3HNV - gpNormal3hvNV C.GPNORMAL3HVNV - gpNormal3i C.GPNORMAL3I - gpNormal3iv C.GPNORMAL3IV - gpNormal3s C.GPNORMAL3S - gpNormal3sv C.GPNORMAL3SV - gpNormal3xOES C.GPNORMAL3XOES - gpNormal3xvOES C.GPNORMAL3XVOES - gpNormalFormatNV C.GPNORMALFORMATNV - gpNormalPointer C.GPNORMALPOINTER - gpNormalPointerEXT C.GPNORMALPOINTEREXT - gpNormalPointerListIBM C.GPNORMALPOINTERLISTIBM - gpNormalPointervINTEL C.GPNORMALPOINTERVINTEL - gpNormalStream3bATI C.GPNORMALSTREAM3BATI - gpNormalStream3bvATI C.GPNORMALSTREAM3BVATI - gpNormalStream3dATI C.GPNORMALSTREAM3DATI - gpNormalStream3dvATI C.GPNORMALSTREAM3DVATI - gpNormalStream3fATI C.GPNORMALSTREAM3FATI - gpNormalStream3fvATI C.GPNORMALSTREAM3FVATI - gpNormalStream3iATI C.GPNORMALSTREAM3IATI - gpNormalStream3ivATI C.GPNORMALSTREAM3IVATI - gpNormalStream3sATI C.GPNORMALSTREAM3SATI - gpNormalStream3svATI C.GPNORMALSTREAM3SVATI - gpObjectLabel C.GPOBJECTLABEL - gpObjectLabelKHR C.GPOBJECTLABELKHR - gpObjectPtrLabel C.GPOBJECTPTRLABEL - gpObjectPtrLabelKHR C.GPOBJECTPTRLABELKHR - gpObjectPurgeableAPPLE C.GPOBJECTPURGEABLEAPPLE - gpObjectUnpurgeableAPPLE C.GPOBJECTUNPURGEABLEAPPLE - gpOrtho C.GPORTHO - gpOrthofOES C.GPORTHOFOES - gpOrthoxOES C.GPORTHOXOES - gpPNTrianglesfATI C.GPPNTRIANGLESFATI - gpPNTrianglesiATI C.GPPNTRIANGLESIATI - gpPassTexCoordATI C.GPPASSTEXCOORDATI - gpPassThrough C.GPPASSTHROUGH - gpPassThroughxOES C.GPPASSTHROUGHXOES - gpPatchParameterfv C.GPPATCHPARAMETERFV - gpPatchParameteri C.GPPATCHPARAMETERI - gpPathColorGenNV C.GPPATHCOLORGENNV - gpPathCommandsNV C.GPPATHCOMMANDSNV - gpPathCoordsNV C.GPPATHCOORDSNV - gpPathCoverDepthFuncNV C.GPPATHCOVERDEPTHFUNCNV - gpPathDashArrayNV C.GPPATHDASHARRAYNV - gpPathFogGenNV C.GPPATHFOGGENNV - gpPathGlyphIndexArrayNV C.GPPATHGLYPHINDEXARRAYNV - gpPathGlyphIndexRangeNV C.GPPATHGLYPHINDEXRANGENV - gpPathGlyphRangeNV C.GPPATHGLYPHRANGENV - gpPathGlyphsNV C.GPPATHGLYPHSNV - gpPathMemoryGlyphIndexArrayNV C.GPPATHMEMORYGLYPHINDEXARRAYNV - gpPathParameterfNV C.GPPATHPARAMETERFNV - gpPathParameterfvNV C.GPPATHPARAMETERFVNV - gpPathParameteriNV C.GPPATHPARAMETERINV - gpPathParameterivNV C.GPPATHPARAMETERIVNV - gpPathStencilDepthOffsetNV C.GPPATHSTENCILDEPTHOFFSETNV - gpPathStencilFuncNV C.GPPATHSTENCILFUNCNV - gpPathStringNV C.GPPATHSTRINGNV - gpPathSubCommandsNV C.GPPATHSUBCOMMANDSNV - gpPathSubCoordsNV C.GPPATHSUBCOORDSNV - gpPathTexGenNV C.GPPATHTEXGENNV - gpPauseTransformFeedback C.GPPAUSETRANSFORMFEEDBACK - gpPauseTransformFeedbackNV C.GPPAUSETRANSFORMFEEDBACKNV - gpPixelDataRangeNV C.GPPIXELDATARANGENV - gpPixelMapfv C.GPPIXELMAPFV - gpPixelMapuiv C.GPPIXELMAPUIV - gpPixelMapusv C.GPPIXELMAPUSV - gpPixelMapx C.GPPIXELMAPX - gpPixelStoref C.GPPIXELSTOREF - gpPixelStorei C.GPPIXELSTOREI - gpPixelStorex C.GPPIXELSTOREX - gpPixelTexGenParameterfSGIS C.GPPIXELTEXGENPARAMETERFSGIS - gpPixelTexGenParameterfvSGIS C.GPPIXELTEXGENPARAMETERFVSGIS - gpPixelTexGenParameteriSGIS C.GPPIXELTEXGENPARAMETERISGIS - gpPixelTexGenParameterivSGIS C.GPPIXELTEXGENPARAMETERIVSGIS - gpPixelTexGenSGIX C.GPPIXELTEXGENSGIX - gpPixelTransferf C.GPPIXELTRANSFERF - gpPixelTransferi C.GPPIXELTRANSFERI - gpPixelTransferxOES C.GPPIXELTRANSFERXOES - gpPixelTransformParameterfEXT C.GPPIXELTRANSFORMPARAMETERFEXT - gpPixelTransformParameterfvEXT C.GPPIXELTRANSFORMPARAMETERFVEXT - gpPixelTransformParameteriEXT C.GPPIXELTRANSFORMPARAMETERIEXT - gpPixelTransformParameterivEXT C.GPPIXELTRANSFORMPARAMETERIVEXT - gpPixelZoom C.GPPIXELZOOM - gpPixelZoomxOES C.GPPIXELZOOMXOES - gpPointAlongPathNV C.GPPOINTALONGPATHNV - gpPointParameterf C.GPPOINTPARAMETERF - gpPointParameterfARB C.GPPOINTPARAMETERFARB - gpPointParameterfEXT C.GPPOINTPARAMETERFEXT - gpPointParameterfSGIS C.GPPOINTPARAMETERFSGIS - gpPointParameterfv C.GPPOINTPARAMETERFV - gpPointParameterfvARB C.GPPOINTPARAMETERFVARB - gpPointParameterfvEXT C.GPPOINTPARAMETERFVEXT - gpPointParameterfvSGIS C.GPPOINTPARAMETERFVSGIS - gpPointParameteri C.GPPOINTPARAMETERI - gpPointParameteriNV C.GPPOINTPARAMETERINV - gpPointParameteriv C.GPPOINTPARAMETERIV - gpPointParameterivNV C.GPPOINTPARAMETERIVNV - gpPointParameterxOES C.GPPOINTPARAMETERXOES - gpPointParameterxvOES C.GPPOINTPARAMETERXVOES - gpPointSize C.GPPOINTSIZE - gpPointSizexOES C.GPPOINTSIZEXOES - gpPollAsyncSGIX C.GPPOLLASYNCSGIX - gpPollInstrumentsSGIX C.GPPOLLINSTRUMENTSSGIX - gpPolygonMode C.GPPOLYGONMODE - gpPolygonOffset C.GPPOLYGONOFFSET - gpPolygonOffsetEXT C.GPPOLYGONOFFSETEXT - gpPolygonOffsetxOES C.GPPOLYGONOFFSETXOES - gpPolygonStipple C.GPPOLYGONSTIPPLE - gpPopAttrib C.GPPOPATTRIB - gpPopClientAttrib C.GPPOPCLIENTATTRIB - gpPopDebugGroup C.GPPOPDEBUGGROUP - gpPopDebugGroupKHR C.GPPOPDEBUGGROUPKHR - gpPopGroupMarkerEXT C.GPPOPGROUPMARKEREXT - gpPopMatrix C.GPPOPMATRIX - gpPopName C.GPPOPNAME - gpPresentFrameDualFillNV C.GPPRESENTFRAMEDUALFILLNV - gpPresentFrameKeyedNV C.GPPRESENTFRAMEKEYEDNV - gpPrimitiveRestartIndexNV C.GPPRIMITIVERESTARTINDEXNV - gpPrimitiveRestartNV C.GPPRIMITIVERESTARTNV - gpPrioritizeTextures C.GPPRIORITIZETEXTURES - gpPrioritizeTexturesEXT C.GPPRIORITIZETEXTURESEXT - gpPrioritizeTexturesxOES C.GPPRIORITIZETEXTURESXOES - gpProgramBinary C.GPPROGRAMBINARY - gpProgramBufferParametersIivNV C.GPPROGRAMBUFFERPARAMETERSIIVNV - gpProgramBufferParametersIuivNV C.GPPROGRAMBUFFERPARAMETERSIUIVNV - gpProgramBufferParametersfvNV C.GPPROGRAMBUFFERPARAMETERSFVNV - gpProgramEnvParameter4dARB C.GPPROGRAMENVPARAMETER4DARB - gpProgramEnvParameter4dvARB C.GPPROGRAMENVPARAMETER4DVARB - gpProgramEnvParameter4fARB C.GPPROGRAMENVPARAMETER4FARB - gpProgramEnvParameter4fvARB C.GPPROGRAMENVPARAMETER4FVARB - gpProgramEnvParameterI4iNV C.GPPROGRAMENVPARAMETERI4INV - gpProgramEnvParameterI4ivNV C.GPPROGRAMENVPARAMETERI4IVNV - gpProgramEnvParameterI4uiNV C.GPPROGRAMENVPARAMETERI4UINV - gpProgramEnvParameterI4uivNV C.GPPROGRAMENVPARAMETERI4UIVNV - gpProgramEnvParameters4fvEXT C.GPPROGRAMENVPARAMETERS4FVEXT - gpProgramEnvParametersI4ivNV C.GPPROGRAMENVPARAMETERSI4IVNV - gpProgramEnvParametersI4uivNV C.GPPROGRAMENVPARAMETERSI4UIVNV - gpProgramLocalParameter4dARB C.GPPROGRAMLOCALPARAMETER4DARB - gpProgramLocalParameter4dvARB C.GPPROGRAMLOCALPARAMETER4DVARB - gpProgramLocalParameter4fARB C.GPPROGRAMLOCALPARAMETER4FARB - gpProgramLocalParameter4fvARB C.GPPROGRAMLOCALPARAMETER4FVARB - gpProgramLocalParameterI4iNV C.GPPROGRAMLOCALPARAMETERI4INV - gpProgramLocalParameterI4ivNV C.GPPROGRAMLOCALPARAMETERI4IVNV - gpProgramLocalParameterI4uiNV C.GPPROGRAMLOCALPARAMETERI4UINV - gpProgramLocalParameterI4uivNV C.GPPROGRAMLOCALPARAMETERI4UIVNV - gpProgramLocalParameters4fvEXT C.GPPROGRAMLOCALPARAMETERS4FVEXT - gpProgramLocalParametersI4ivNV C.GPPROGRAMLOCALPARAMETERSI4IVNV - gpProgramLocalParametersI4uivNV C.GPPROGRAMLOCALPARAMETERSI4UIVNV - gpProgramNamedParameter4dNV C.GPPROGRAMNAMEDPARAMETER4DNV - gpProgramNamedParameter4dvNV C.GPPROGRAMNAMEDPARAMETER4DVNV - gpProgramNamedParameter4fNV C.GPPROGRAMNAMEDPARAMETER4FNV - gpProgramNamedParameter4fvNV C.GPPROGRAMNAMEDPARAMETER4FVNV - gpProgramParameter4dNV C.GPPROGRAMPARAMETER4DNV - gpProgramParameter4dvNV C.GPPROGRAMPARAMETER4DVNV - gpProgramParameter4fNV C.GPPROGRAMPARAMETER4FNV - gpProgramParameter4fvNV C.GPPROGRAMPARAMETER4FVNV - gpProgramParameteri C.GPPROGRAMPARAMETERI - gpProgramParameteriARB C.GPPROGRAMPARAMETERIARB - gpProgramParameteriEXT C.GPPROGRAMPARAMETERIEXT - gpProgramParameters4dvNV C.GPPROGRAMPARAMETERS4DVNV - gpProgramParameters4fvNV C.GPPROGRAMPARAMETERS4FVNV - gpProgramPathFragmentInputGenNV C.GPPROGRAMPATHFRAGMENTINPUTGENNV - gpProgramStringARB C.GPPROGRAMSTRINGARB - gpProgramSubroutineParametersuivNV C.GPPROGRAMSUBROUTINEPARAMETERSUIVNV - gpProgramUniform1d C.GPPROGRAMUNIFORM1D - gpProgramUniform1dEXT C.GPPROGRAMUNIFORM1DEXT - gpProgramUniform1dv C.GPPROGRAMUNIFORM1DV - gpProgramUniform1dvEXT C.GPPROGRAMUNIFORM1DVEXT - gpProgramUniform1f C.GPPROGRAMUNIFORM1F - gpProgramUniform1fEXT C.GPPROGRAMUNIFORM1FEXT - gpProgramUniform1fv C.GPPROGRAMUNIFORM1FV - gpProgramUniform1fvEXT C.GPPROGRAMUNIFORM1FVEXT - gpProgramUniform1i C.GPPROGRAMUNIFORM1I - gpProgramUniform1i64NV C.GPPROGRAMUNIFORM1I64NV - gpProgramUniform1i64vNV C.GPPROGRAMUNIFORM1I64VNV - gpProgramUniform1iEXT C.GPPROGRAMUNIFORM1IEXT - gpProgramUniform1iv C.GPPROGRAMUNIFORM1IV - gpProgramUniform1ivEXT C.GPPROGRAMUNIFORM1IVEXT - gpProgramUniform1ui C.GPPROGRAMUNIFORM1UI - gpProgramUniform1ui64NV C.GPPROGRAMUNIFORM1UI64NV - gpProgramUniform1ui64vNV C.GPPROGRAMUNIFORM1UI64VNV - gpProgramUniform1uiEXT C.GPPROGRAMUNIFORM1UIEXT - gpProgramUniform1uiv C.GPPROGRAMUNIFORM1UIV - gpProgramUniform1uivEXT C.GPPROGRAMUNIFORM1UIVEXT - gpProgramUniform2d C.GPPROGRAMUNIFORM2D - gpProgramUniform2dEXT C.GPPROGRAMUNIFORM2DEXT - gpProgramUniform2dv C.GPPROGRAMUNIFORM2DV - gpProgramUniform2dvEXT C.GPPROGRAMUNIFORM2DVEXT - gpProgramUniform2f C.GPPROGRAMUNIFORM2F - gpProgramUniform2fEXT C.GPPROGRAMUNIFORM2FEXT - gpProgramUniform2fv C.GPPROGRAMUNIFORM2FV - gpProgramUniform2fvEXT C.GPPROGRAMUNIFORM2FVEXT - gpProgramUniform2i C.GPPROGRAMUNIFORM2I - gpProgramUniform2i64NV C.GPPROGRAMUNIFORM2I64NV - gpProgramUniform2i64vNV C.GPPROGRAMUNIFORM2I64VNV - gpProgramUniform2iEXT C.GPPROGRAMUNIFORM2IEXT - gpProgramUniform2iv C.GPPROGRAMUNIFORM2IV - gpProgramUniform2ivEXT C.GPPROGRAMUNIFORM2IVEXT - gpProgramUniform2ui C.GPPROGRAMUNIFORM2UI - gpProgramUniform2ui64NV C.GPPROGRAMUNIFORM2UI64NV - gpProgramUniform2ui64vNV C.GPPROGRAMUNIFORM2UI64VNV - gpProgramUniform2uiEXT C.GPPROGRAMUNIFORM2UIEXT - gpProgramUniform2uiv C.GPPROGRAMUNIFORM2UIV - gpProgramUniform2uivEXT C.GPPROGRAMUNIFORM2UIVEXT - gpProgramUniform3d C.GPPROGRAMUNIFORM3D - gpProgramUniform3dEXT C.GPPROGRAMUNIFORM3DEXT - gpProgramUniform3dv C.GPPROGRAMUNIFORM3DV - gpProgramUniform3dvEXT C.GPPROGRAMUNIFORM3DVEXT - gpProgramUniform3f C.GPPROGRAMUNIFORM3F - gpProgramUniform3fEXT C.GPPROGRAMUNIFORM3FEXT - gpProgramUniform3fv C.GPPROGRAMUNIFORM3FV - gpProgramUniform3fvEXT C.GPPROGRAMUNIFORM3FVEXT - gpProgramUniform3i C.GPPROGRAMUNIFORM3I - gpProgramUniform3i64NV C.GPPROGRAMUNIFORM3I64NV - gpProgramUniform3i64vNV C.GPPROGRAMUNIFORM3I64VNV - gpProgramUniform3iEXT C.GPPROGRAMUNIFORM3IEXT - gpProgramUniform3iv C.GPPROGRAMUNIFORM3IV - gpProgramUniform3ivEXT C.GPPROGRAMUNIFORM3IVEXT - gpProgramUniform3ui C.GPPROGRAMUNIFORM3UI - gpProgramUniform3ui64NV C.GPPROGRAMUNIFORM3UI64NV - gpProgramUniform3ui64vNV C.GPPROGRAMUNIFORM3UI64VNV - gpProgramUniform3uiEXT C.GPPROGRAMUNIFORM3UIEXT - gpProgramUniform3uiv C.GPPROGRAMUNIFORM3UIV - gpProgramUniform3uivEXT C.GPPROGRAMUNIFORM3UIVEXT - gpProgramUniform4d C.GPPROGRAMUNIFORM4D - gpProgramUniform4dEXT C.GPPROGRAMUNIFORM4DEXT - gpProgramUniform4dv C.GPPROGRAMUNIFORM4DV - gpProgramUniform4dvEXT C.GPPROGRAMUNIFORM4DVEXT - gpProgramUniform4f C.GPPROGRAMUNIFORM4F - gpProgramUniform4fEXT C.GPPROGRAMUNIFORM4FEXT - gpProgramUniform4fv C.GPPROGRAMUNIFORM4FV - gpProgramUniform4fvEXT C.GPPROGRAMUNIFORM4FVEXT - gpProgramUniform4i C.GPPROGRAMUNIFORM4I - gpProgramUniform4i64NV C.GPPROGRAMUNIFORM4I64NV - gpProgramUniform4i64vNV C.GPPROGRAMUNIFORM4I64VNV - gpProgramUniform4iEXT C.GPPROGRAMUNIFORM4IEXT - gpProgramUniform4iv C.GPPROGRAMUNIFORM4IV - gpProgramUniform4ivEXT C.GPPROGRAMUNIFORM4IVEXT - gpProgramUniform4ui C.GPPROGRAMUNIFORM4UI - gpProgramUniform4ui64NV C.GPPROGRAMUNIFORM4UI64NV - gpProgramUniform4ui64vNV C.GPPROGRAMUNIFORM4UI64VNV - gpProgramUniform4uiEXT C.GPPROGRAMUNIFORM4UIEXT - gpProgramUniform4uiv C.GPPROGRAMUNIFORM4UIV - gpProgramUniform4uivEXT C.GPPROGRAMUNIFORM4UIVEXT - gpProgramUniformHandleui64ARB C.GPPROGRAMUNIFORMHANDLEUI64ARB - gpProgramUniformHandleui64NV C.GPPROGRAMUNIFORMHANDLEUI64NV - gpProgramUniformHandleui64vARB C.GPPROGRAMUNIFORMHANDLEUI64VARB - gpProgramUniformHandleui64vNV C.GPPROGRAMUNIFORMHANDLEUI64VNV - gpProgramUniformMatrix2dv C.GPPROGRAMUNIFORMMATRIX2DV - gpProgramUniformMatrix2dvEXT C.GPPROGRAMUNIFORMMATRIX2DVEXT - gpProgramUniformMatrix2fv C.GPPROGRAMUNIFORMMATRIX2FV - gpProgramUniformMatrix2fvEXT C.GPPROGRAMUNIFORMMATRIX2FVEXT - gpProgramUniformMatrix2x3dv C.GPPROGRAMUNIFORMMATRIX2X3DV - gpProgramUniformMatrix2x3dvEXT C.GPPROGRAMUNIFORMMATRIX2X3DVEXT - gpProgramUniformMatrix2x3fv C.GPPROGRAMUNIFORMMATRIX2X3FV - gpProgramUniformMatrix2x3fvEXT C.GPPROGRAMUNIFORMMATRIX2X3FVEXT - gpProgramUniformMatrix2x4dv C.GPPROGRAMUNIFORMMATRIX2X4DV - gpProgramUniformMatrix2x4dvEXT C.GPPROGRAMUNIFORMMATRIX2X4DVEXT - gpProgramUniformMatrix2x4fv C.GPPROGRAMUNIFORMMATRIX2X4FV - gpProgramUniformMatrix2x4fvEXT C.GPPROGRAMUNIFORMMATRIX2X4FVEXT - gpProgramUniformMatrix3dv C.GPPROGRAMUNIFORMMATRIX3DV - gpProgramUniformMatrix3dvEXT C.GPPROGRAMUNIFORMMATRIX3DVEXT - gpProgramUniformMatrix3fv C.GPPROGRAMUNIFORMMATRIX3FV - gpProgramUniformMatrix3fvEXT C.GPPROGRAMUNIFORMMATRIX3FVEXT - gpProgramUniformMatrix3x2dv C.GPPROGRAMUNIFORMMATRIX3X2DV - gpProgramUniformMatrix3x2dvEXT C.GPPROGRAMUNIFORMMATRIX3X2DVEXT - gpProgramUniformMatrix3x2fv C.GPPROGRAMUNIFORMMATRIX3X2FV - gpProgramUniformMatrix3x2fvEXT C.GPPROGRAMUNIFORMMATRIX3X2FVEXT - gpProgramUniformMatrix3x4dv C.GPPROGRAMUNIFORMMATRIX3X4DV - gpProgramUniformMatrix3x4dvEXT C.GPPROGRAMUNIFORMMATRIX3X4DVEXT - gpProgramUniformMatrix3x4fv C.GPPROGRAMUNIFORMMATRIX3X4FV - gpProgramUniformMatrix3x4fvEXT C.GPPROGRAMUNIFORMMATRIX3X4FVEXT - gpProgramUniformMatrix4dv C.GPPROGRAMUNIFORMMATRIX4DV - gpProgramUniformMatrix4dvEXT C.GPPROGRAMUNIFORMMATRIX4DVEXT - gpProgramUniformMatrix4fv C.GPPROGRAMUNIFORMMATRIX4FV - gpProgramUniformMatrix4fvEXT C.GPPROGRAMUNIFORMMATRIX4FVEXT - gpProgramUniformMatrix4x2dv C.GPPROGRAMUNIFORMMATRIX4X2DV - gpProgramUniformMatrix4x2dvEXT C.GPPROGRAMUNIFORMMATRIX4X2DVEXT - gpProgramUniformMatrix4x2fv C.GPPROGRAMUNIFORMMATRIX4X2FV - gpProgramUniformMatrix4x2fvEXT C.GPPROGRAMUNIFORMMATRIX4X2FVEXT - gpProgramUniformMatrix4x3dv C.GPPROGRAMUNIFORMMATRIX4X3DV - gpProgramUniformMatrix4x3dvEXT C.GPPROGRAMUNIFORMMATRIX4X3DVEXT - gpProgramUniformMatrix4x3fv C.GPPROGRAMUNIFORMMATRIX4X3FV - gpProgramUniformMatrix4x3fvEXT C.GPPROGRAMUNIFORMMATRIX4X3FVEXT - gpProgramUniformui64NV C.GPPROGRAMUNIFORMUI64NV - gpProgramUniformui64vNV C.GPPROGRAMUNIFORMUI64VNV - gpProgramVertexLimitNV C.GPPROGRAMVERTEXLIMITNV - gpProvokingVertex C.GPPROVOKINGVERTEX - gpProvokingVertexEXT C.GPPROVOKINGVERTEXEXT - gpPushAttrib C.GPPUSHATTRIB - gpPushClientAttrib C.GPPUSHCLIENTATTRIB - gpPushClientAttribDefaultEXT C.GPPUSHCLIENTATTRIBDEFAULTEXT - gpPushDebugGroup C.GPPUSHDEBUGGROUP - gpPushDebugGroupKHR C.GPPUSHDEBUGGROUPKHR - gpPushGroupMarkerEXT C.GPPUSHGROUPMARKEREXT - gpPushMatrix C.GPPUSHMATRIX - gpPushName C.GPPUSHNAME - gpQueryCounter C.GPQUERYCOUNTER - gpQueryMatrixxOES C.GPQUERYMATRIXXOES - gpQueryObjectParameteruiAMD C.GPQUERYOBJECTPARAMETERUIAMD - gpRasterPos2d C.GPRASTERPOS2D - gpRasterPos2dv C.GPRASTERPOS2DV - gpRasterPos2f C.GPRASTERPOS2F - gpRasterPos2fv C.GPRASTERPOS2FV - gpRasterPos2i C.GPRASTERPOS2I - gpRasterPos2iv C.GPRASTERPOS2IV - gpRasterPos2s C.GPRASTERPOS2S - gpRasterPos2sv C.GPRASTERPOS2SV - gpRasterPos2xOES C.GPRASTERPOS2XOES - gpRasterPos2xvOES C.GPRASTERPOS2XVOES - gpRasterPos3d C.GPRASTERPOS3D - gpRasterPos3dv C.GPRASTERPOS3DV - gpRasterPos3f C.GPRASTERPOS3F - gpRasterPos3fv C.GPRASTERPOS3FV - gpRasterPos3i C.GPRASTERPOS3I - gpRasterPos3iv C.GPRASTERPOS3IV - gpRasterPos3s C.GPRASTERPOS3S - gpRasterPos3sv C.GPRASTERPOS3SV - gpRasterPos3xOES C.GPRASTERPOS3XOES - gpRasterPos3xvOES C.GPRASTERPOS3XVOES - gpRasterPos4d C.GPRASTERPOS4D - gpRasterPos4dv C.GPRASTERPOS4DV - gpRasterPos4f C.GPRASTERPOS4F - gpRasterPos4fv C.GPRASTERPOS4FV - gpRasterPos4i C.GPRASTERPOS4I - gpRasterPos4iv C.GPRASTERPOS4IV - gpRasterPos4s C.GPRASTERPOS4S - gpRasterPos4sv C.GPRASTERPOS4SV - gpRasterPos4xOES C.GPRASTERPOS4XOES - gpRasterPos4xvOES C.GPRASTERPOS4XVOES - gpReadBuffer C.GPREADBUFFER - gpReadInstrumentsSGIX C.GPREADINSTRUMENTSSGIX - gpReadPixels C.GPREADPIXELS - gpReadnPixels C.GPREADNPIXELS - gpReadnPixelsARB C.GPREADNPIXELSARB - gpReadnPixelsKHR C.GPREADNPIXELSKHR - gpRectd C.GPRECTD - gpRectdv C.GPRECTDV - gpRectf C.GPRECTF - gpRectfv C.GPRECTFV - gpRecti C.GPRECTI - gpRectiv C.GPRECTIV - gpRects C.GPRECTS - gpRectsv C.GPRECTSV - gpRectxOES C.GPRECTXOES - gpRectxvOES C.GPRECTXVOES - gpReferencePlaneSGIX C.GPREFERENCEPLANESGIX - gpReleaseShaderCompiler C.GPRELEASESHADERCOMPILER - gpRenderMode C.GPRENDERMODE - gpRenderbufferStorage C.GPRENDERBUFFERSTORAGE - gpRenderbufferStorageEXT C.GPRENDERBUFFERSTORAGEEXT - gpRenderbufferStorageMultisample C.GPRENDERBUFFERSTORAGEMULTISAMPLE - gpRenderbufferStorageMultisampleCoverageNV C.GPRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENV - gpRenderbufferStorageMultisampleEXT C.GPRENDERBUFFERSTORAGEMULTISAMPLEEXT - gpReplacementCodePointerSUN C.GPREPLACEMENTCODEPOINTERSUN - gpReplacementCodeubSUN C.GPREPLACEMENTCODEUBSUN - gpReplacementCodeubvSUN C.GPREPLACEMENTCODEUBVSUN - gpReplacementCodeuiColor3fVertex3fSUN C.GPREPLACEMENTCODEUICOLOR3FVERTEX3FSUN - gpReplacementCodeuiColor3fVertex3fvSUN C.GPREPLACEMENTCODEUICOLOR3FVERTEX3FVSUN - gpReplacementCodeuiColor4fNormal3fVertex3fSUN C.GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUN - gpReplacementCodeuiColor4fNormal3fVertex3fvSUN C.GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUN - gpReplacementCodeuiColor4ubVertex3fSUN C.GPREPLACEMENTCODEUICOLOR4UBVERTEX3FSUN - gpReplacementCodeuiColor4ubVertex3fvSUN C.GPREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUN - gpReplacementCodeuiNormal3fVertex3fSUN C.GPREPLACEMENTCODEUINORMAL3FVERTEX3FSUN - gpReplacementCodeuiNormal3fVertex3fvSUN C.GPREPLACEMENTCODEUINORMAL3FVERTEX3FVSUN - gpReplacementCodeuiSUN C.GPREPLACEMENTCODEUISUN - gpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN C.GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN - gpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN C.GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN - gpReplacementCodeuiTexCoord2fNormal3fVertex3fSUN C.GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUN - gpReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN C.GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUN - gpReplacementCodeuiTexCoord2fVertex3fSUN C.GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUN - gpReplacementCodeuiTexCoord2fVertex3fvSUN C.GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUN - gpReplacementCodeuiVertex3fSUN C.GPREPLACEMENTCODEUIVERTEX3FSUN - gpReplacementCodeuiVertex3fvSUN C.GPREPLACEMENTCODEUIVERTEX3FVSUN - gpReplacementCodeuivSUN C.GPREPLACEMENTCODEUIVSUN - gpReplacementCodeusSUN C.GPREPLACEMENTCODEUSSUN - gpReplacementCodeusvSUN C.GPREPLACEMENTCODEUSVSUN - gpRequestResidentProgramsNV C.GPREQUESTRESIDENTPROGRAMSNV - gpResetHistogramEXT C.GPRESETHISTOGRAMEXT - gpResetMinmaxEXT C.GPRESETMINMAXEXT - gpResizeBuffersMESA C.GPRESIZEBUFFERSMESA - gpResumeTransformFeedback C.GPRESUMETRANSFORMFEEDBACK - gpResumeTransformFeedbackNV C.GPRESUMETRANSFORMFEEDBACKNV - gpRotated C.GPROTATED - gpRotatef C.GPROTATEF - gpRotatexOES C.GPROTATEXOES - gpSampleCoverage C.GPSAMPLECOVERAGE - gpSampleCoverageARB C.GPSAMPLECOVERAGEARB - gpSampleCoverageOES C.GPSAMPLECOVERAGEOES - gpSampleCoveragexOES C.GPSAMPLECOVERAGEXOES - gpSampleMapATI C.GPSAMPLEMAPATI - gpSampleMaskEXT C.GPSAMPLEMASKEXT - gpSampleMaskIndexedNV C.GPSAMPLEMASKINDEXEDNV - gpSampleMaskSGIS C.GPSAMPLEMASKSGIS - gpSampleMaski C.GPSAMPLEMASKI - gpSamplePatternEXT C.GPSAMPLEPATTERNEXT - gpSamplePatternSGIS C.GPSAMPLEPATTERNSGIS - gpSamplerParameterIiv C.GPSAMPLERPARAMETERIIV - gpSamplerParameterIuiv C.GPSAMPLERPARAMETERIUIV - gpSamplerParameterf C.GPSAMPLERPARAMETERF - gpSamplerParameterfv C.GPSAMPLERPARAMETERFV - gpSamplerParameteri C.GPSAMPLERPARAMETERI - gpSamplerParameteriv C.GPSAMPLERPARAMETERIV - gpScaled C.GPSCALED - gpScalef C.GPSCALEF - gpScalexOES C.GPSCALEXOES - gpScissor C.GPSCISSOR - gpScissorArrayv C.GPSCISSORARRAYV - gpScissorIndexed C.GPSCISSORINDEXED - gpScissorIndexedv C.GPSCISSORINDEXEDV - gpSecondaryColor3b C.GPSECONDARYCOLOR3B - gpSecondaryColor3bEXT C.GPSECONDARYCOLOR3BEXT - gpSecondaryColor3bv C.GPSECONDARYCOLOR3BV - gpSecondaryColor3bvEXT C.GPSECONDARYCOLOR3BVEXT - gpSecondaryColor3d C.GPSECONDARYCOLOR3D - gpSecondaryColor3dEXT C.GPSECONDARYCOLOR3DEXT - gpSecondaryColor3dv C.GPSECONDARYCOLOR3DV - gpSecondaryColor3dvEXT C.GPSECONDARYCOLOR3DVEXT - gpSecondaryColor3f C.GPSECONDARYCOLOR3F - gpSecondaryColor3fEXT C.GPSECONDARYCOLOR3FEXT - gpSecondaryColor3fv C.GPSECONDARYCOLOR3FV - gpSecondaryColor3fvEXT C.GPSECONDARYCOLOR3FVEXT - gpSecondaryColor3hNV C.GPSECONDARYCOLOR3HNV - gpSecondaryColor3hvNV C.GPSECONDARYCOLOR3HVNV - gpSecondaryColor3i C.GPSECONDARYCOLOR3I - gpSecondaryColor3iEXT C.GPSECONDARYCOLOR3IEXT - gpSecondaryColor3iv C.GPSECONDARYCOLOR3IV - gpSecondaryColor3ivEXT C.GPSECONDARYCOLOR3IVEXT - gpSecondaryColor3s C.GPSECONDARYCOLOR3S - gpSecondaryColor3sEXT C.GPSECONDARYCOLOR3SEXT - gpSecondaryColor3sv C.GPSECONDARYCOLOR3SV - gpSecondaryColor3svEXT C.GPSECONDARYCOLOR3SVEXT - gpSecondaryColor3ub C.GPSECONDARYCOLOR3UB - gpSecondaryColor3ubEXT C.GPSECONDARYCOLOR3UBEXT - gpSecondaryColor3ubv C.GPSECONDARYCOLOR3UBV - gpSecondaryColor3ubvEXT C.GPSECONDARYCOLOR3UBVEXT - gpSecondaryColor3ui C.GPSECONDARYCOLOR3UI - gpSecondaryColor3uiEXT C.GPSECONDARYCOLOR3UIEXT - gpSecondaryColor3uiv C.GPSECONDARYCOLOR3UIV - gpSecondaryColor3uivEXT C.GPSECONDARYCOLOR3UIVEXT - gpSecondaryColor3us C.GPSECONDARYCOLOR3US - gpSecondaryColor3usEXT C.GPSECONDARYCOLOR3USEXT - gpSecondaryColor3usv C.GPSECONDARYCOLOR3USV - gpSecondaryColor3usvEXT C.GPSECONDARYCOLOR3USVEXT - gpSecondaryColorFormatNV C.GPSECONDARYCOLORFORMATNV - gpSecondaryColorPointer C.GPSECONDARYCOLORPOINTER - gpSecondaryColorPointerEXT C.GPSECONDARYCOLORPOINTEREXT - gpSecondaryColorPointerListIBM C.GPSECONDARYCOLORPOINTERLISTIBM - gpSelectBuffer C.GPSELECTBUFFER - gpSelectPerfMonitorCountersAMD C.GPSELECTPERFMONITORCOUNTERSAMD - gpSeparableFilter2DEXT C.GPSEPARABLEFILTER2DEXT - gpSetFenceAPPLE C.GPSETFENCEAPPLE - gpSetFenceNV C.GPSETFENCENV - gpSetFragmentShaderConstantATI C.GPSETFRAGMENTSHADERCONSTANTATI - gpSetInvariantEXT C.GPSETINVARIANTEXT - gpSetLocalConstantEXT C.GPSETLOCALCONSTANTEXT - gpSetMultisamplefvAMD C.GPSETMULTISAMPLEFVAMD - gpShadeModel C.GPSHADEMODEL - gpShaderBinary C.GPSHADERBINARY - gpShaderOp1EXT C.GPSHADEROP1EXT - gpShaderOp2EXT C.GPSHADEROP2EXT - gpShaderOp3EXT C.GPSHADEROP3EXT - gpShaderSource C.GPSHADERSOURCE - gpShaderSourceARB C.GPSHADERSOURCEARB - gpShaderStorageBlockBinding C.GPSHADERSTORAGEBLOCKBINDING - gpSharpenTexFuncSGIS C.GPSHARPENTEXFUNCSGIS - gpSpriteParameterfSGIX C.GPSPRITEPARAMETERFSGIX - gpSpriteParameterfvSGIX C.GPSPRITEPARAMETERFVSGIX - gpSpriteParameteriSGIX C.GPSPRITEPARAMETERISGIX - gpSpriteParameterivSGIX C.GPSPRITEPARAMETERIVSGIX - gpStartInstrumentsSGIX C.GPSTARTINSTRUMENTSSGIX - gpStencilClearTagEXT C.GPSTENCILCLEARTAGEXT - gpStencilFillPathInstancedNV C.GPSTENCILFILLPATHINSTANCEDNV - gpStencilFillPathNV C.GPSTENCILFILLPATHNV - gpStencilFunc C.GPSTENCILFUNC - gpStencilFuncSeparate C.GPSTENCILFUNCSEPARATE - gpStencilFuncSeparateATI C.GPSTENCILFUNCSEPARATEATI - gpStencilMask C.GPSTENCILMASK - gpStencilMaskSeparate C.GPSTENCILMASKSEPARATE - gpStencilOp C.GPSTENCILOP - gpStencilOpSeparate C.GPSTENCILOPSEPARATE - gpStencilOpSeparateATI C.GPSTENCILOPSEPARATEATI - gpStencilOpValueAMD C.GPSTENCILOPVALUEAMD - gpStencilStrokePathInstancedNV C.GPSTENCILSTROKEPATHINSTANCEDNV - gpStencilStrokePathNV C.GPSTENCILSTROKEPATHNV - gpStencilThenCoverFillPathInstancedNV C.GPSTENCILTHENCOVERFILLPATHINSTANCEDNV - gpStencilThenCoverFillPathNV C.GPSTENCILTHENCOVERFILLPATHNV - gpStencilThenCoverStrokePathInstancedNV C.GPSTENCILTHENCOVERSTROKEPATHINSTANCEDNV - gpStencilThenCoverStrokePathNV C.GPSTENCILTHENCOVERSTROKEPATHNV - gpStopInstrumentsSGIX C.GPSTOPINSTRUMENTSSGIX - gpStringMarkerGREMEDY C.GPSTRINGMARKERGREMEDY - gpSwizzleEXT C.GPSWIZZLEEXT - gpSyncTextureINTEL C.GPSYNCTEXTUREINTEL - gpTagSampleBufferSGIX C.GPTAGSAMPLEBUFFERSGIX - gpTangent3bEXT C.GPTANGENT3BEXT - gpTangent3bvEXT C.GPTANGENT3BVEXT - gpTangent3dEXT C.GPTANGENT3DEXT - gpTangent3dvEXT C.GPTANGENT3DVEXT - gpTangent3fEXT C.GPTANGENT3FEXT - gpTangent3fvEXT C.GPTANGENT3FVEXT - gpTangent3iEXT C.GPTANGENT3IEXT - gpTangent3ivEXT C.GPTANGENT3IVEXT - gpTangent3sEXT C.GPTANGENT3SEXT - gpTangent3svEXT C.GPTANGENT3SVEXT - gpTangentPointerEXT C.GPTANGENTPOINTEREXT - gpTbufferMask3DFX C.GPTBUFFERMASK3DFX - gpTessellationFactorAMD C.GPTESSELLATIONFACTORAMD - gpTessellationModeAMD C.GPTESSELLATIONMODEAMD - gpTestFenceAPPLE C.GPTESTFENCEAPPLE - gpTestFenceNV C.GPTESTFENCENV - gpTestObjectAPPLE C.GPTESTOBJECTAPPLE - gpTexBufferARB C.GPTEXBUFFERARB - gpTexBufferEXT C.GPTEXBUFFEREXT - gpTexBufferRange C.GPTEXBUFFERRANGE - gpTexBumpParameterfvATI C.GPTEXBUMPPARAMETERFVATI - gpTexBumpParameterivATI C.GPTEXBUMPPARAMETERIVATI - gpTexCoord1bOES C.GPTEXCOORD1BOES - gpTexCoord1bvOES C.GPTEXCOORD1BVOES - gpTexCoord1d C.GPTEXCOORD1D - gpTexCoord1dv C.GPTEXCOORD1DV - gpTexCoord1f C.GPTEXCOORD1F - gpTexCoord1fv C.GPTEXCOORD1FV - gpTexCoord1hNV C.GPTEXCOORD1HNV - gpTexCoord1hvNV C.GPTEXCOORD1HVNV - gpTexCoord1i C.GPTEXCOORD1I - gpTexCoord1iv C.GPTEXCOORD1IV - gpTexCoord1s C.GPTEXCOORD1S - gpTexCoord1sv C.GPTEXCOORD1SV - gpTexCoord1xOES C.GPTEXCOORD1XOES - gpTexCoord1xvOES C.GPTEXCOORD1XVOES - gpTexCoord2bOES C.GPTEXCOORD2BOES - gpTexCoord2bvOES C.GPTEXCOORD2BVOES - gpTexCoord2d C.GPTEXCOORD2D - gpTexCoord2dv C.GPTEXCOORD2DV - gpTexCoord2f C.GPTEXCOORD2F - gpTexCoord2fColor3fVertex3fSUN C.GPTEXCOORD2FCOLOR3FVERTEX3FSUN - gpTexCoord2fColor3fVertex3fvSUN C.GPTEXCOORD2FCOLOR3FVERTEX3FVSUN - gpTexCoord2fColor4fNormal3fVertex3fSUN C.GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN - gpTexCoord2fColor4fNormal3fVertex3fvSUN C.GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN - gpTexCoord2fColor4ubVertex3fSUN C.GPTEXCOORD2FCOLOR4UBVERTEX3FSUN - gpTexCoord2fColor4ubVertex3fvSUN C.GPTEXCOORD2FCOLOR4UBVERTEX3FVSUN - gpTexCoord2fNormal3fVertex3fSUN C.GPTEXCOORD2FNORMAL3FVERTEX3FSUN - gpTexCoord2fNormal3fVertex3fvSUN C.GPTEXCOORD2FNORMAL3FVERTEX3FVSUN - gpTexCoord2fVertex3fSUN C.GPTEXCOORD2FVERTEX3FSUN - gpTexCoord2fVertex3fvSUN C.GPTEXCOORD2FVERTEX3FVSUN - gpTexCoord2fv C.GPTEXCOORD2FV - gpTexCoord2hNV C.GPTEXCOORD2HNV - gpTexCoord2hvNV C.GPTEXCOORD2HVNV - gpTexCoord2i C.GPTEXCOORD2I - gpTexCoord2iv C.GPTEXCOORD2IV - gpTexCoord2s C.GPTEXCOORD2S - gpTexCoord2sv C.GPTEXCOORD2SV - gpTexCoord2xOES C.GPTEXCOORD2XOES - gpTexCoord2xvOES C.GPTEXCOORD2XVOES - gpTexCoord3bOES C.GPTEXCOORD3BOES - gpTexCoord3bvOES C.GPTEXCOORD3BVOES - gpTexCoord3d C.GPTEXCOORD3D - gpTexCoord3dv C.GPTEXCOORD3DV - gpTexCoord3f C.GPTEXCOORD3F - gpTexCoord3fv C.GPTEXCOORD3FV - gpTexCoord3hNV C.GPTEXCOORD3HNV - gpTexCoord3hvNV C.GPTEXCOORD3HVNV - gpTexCoord3i C.GPTEXCOORD3I - gpTexCoord3iv C.GPTEXCOORD3IV - gpTexCoord3s C.GPTEXCOORD3S - gpTexCoord3sv C.GPTEXCOORD3SV - gpTexCoord3xOES C.GPTEXCOORD3XOES - gpTexCoord3xvOES C.GPTEXCOORD3XVOES - gpTexCoord4bOES C.GPTEXCOORD4BOES - gpTexCoord4bvOES C.GPTEXCOORD4BVOES - gpTexCoord4d C.GPTEXCOORD4D - gpTexCoord4dv C.GPTEXCOORD4DV - gpTexCoord4f C.GPTEXCOORD4F - gpTexCoord4fColor4fNormal3fVertex4fSUN C.GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUN - gpTexCoord4fColor4fNormal3fVertex4fvSUN C.GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUN - gpTexCoord4fVertex4fSUN C.GPTEXCOORD4FVERTEX4FSUN - gpTexCoord4fVertex4fvSUN C.GPTEXCOORD4FVERTEX4FVSUN - gpTexCoord4fv C.GPTEXCOORD4FV - gpTexCoord4hNV C.GPTEXCOORD4HNV - gpTexCoord4hvNV C.GPTEXCOORD4HVNV - gpTexCoord4i C.GPTEXCOORD4I - gpTexCoord4iv C.GPTEXCOORD4IV - gpTexCoord4s C.GPTEXCOORD4S - gpTexCoord4sv C.GPTEXCOORD4SV - gpTexCoord4xOES C.GPTEXCOORD4XOES - gpTexCoord4xvOES C.GPTEXCOORD4XVOES - gpTexCoordFormatNV C.GPTEXCOORDFORMATNV - gpTexCoordPointer C.GPTEXCOORDPOINTER - gpTexCoordPointerEXT C.GPTEXCOORDPOINTEREXT - gpTexCoordPointerListIBM C.GPTEXCOORDPOINTERLISTIBM - gpTexCoordPointervINTEL C.GPTEXCOORDPOINTERVINTEL - gpTexEnvf C.GPTEXENVF - gpTexEnvfv C.GPTEXENVFV - gpTexEnvi C.GPTEXENVI - gpTexEnviv C.GPTEXENVIV - gpTexEnvxOES C.GPTEXENVXOES - gpTexEnvxvOES C.GPTEXENVXVOES - gpTexFilterFuncSGIS C.GPTEXFILTERFUNCSGIS - gpTexGend C.GPTEXGEND - gpTexGendv C.GPTEXGENDV - gpTexGenf C.GPTEXGENF - gpTexGenfv C.GPTEXGENFV - gpTexGeni C.GPTEXGENI - gpTexGeniv C.GPTEXGENIV - gpTexGenxOES C.GPTEXGENXOES - gpTexGenxvOES C.GPTEXGENXVOES - gpTexImage1D C.GPTEXIMAGE1D - gpTexImage2D C.GPTEXIMAGE2D - gpTexImage2DMultisample C.GPTEXIMAGE2DMULTISAMPLE - gpTexImage2DMultisampleCoverageNV C.GPTEXIMAGE2DMULTISAMPLECOVERAGENV - gpTexImage3D C.GPTEXIMAGE3D - gpTexImage3DEXT C.GPTEXIMAGE3DEXT - gpTexImage3DMultisample C.GPTEXIMAGE3DMULTISAMPLE - gpTexImage3DMultisampleCoverageNV C.GPTEXIMAGE3DMULTISAMPLECOVERAGENV - gpTexImage4DSGIS C.GPTEXIMAGE4DSGIS - gpTexPageCommitmentARB C.GPTEXPAGECOMMITMENTARB - gpTexParameterIivEXT C.GPTEXPARAMETERIIVEXT - gpTexParameterIuivEXT C.GPTEXPARAMETERIUIVEXT - gpTexParameterf C.GPTEXPARAMETERF - gpTexParameterfv C.GPTEXPARAMETERFV - gpTexParameteri C.GPTEXPARAMETERI - gpTexParameteriv C.GPTEXPARAMETERIV - gpTexParameterxOES C.GPTEXPARAMETERXOES - gpTexParameterxvOES C.GPTEXPARAMETERXVOES - gpTexRenderbufferNV C.GPTEXRENDERBUFFERNV - gpTexStorage1D C.GPTEXSTORAGE1D - gpTexStorage2D C.GPTEXSTORAGE2D - gpTexStorage2DMultisample C.GPTEXSTORAGE2DMULTISAMPLE - gpTexStorage3D C.GPTEXSTORAGE3D - gpTexStorage3DMultisample C.GPTEXSTORAGE3DMULTISAMPLE - gpTexStorageSparseAMD C.GPTEXSTORAGESPARSEAMD - gpTexSubImage1D C.GPTEXSUBIMAGE1D - gpTexSubImage1DEXT C.GPTEXSUBIMAGE1DEXT - gpTexSubImage2D C.GPTEXSUBIMAGE2D - gpTexSubImage2DEXT C.GPTEXSUBIMAGE2DEXT - gpTexSubImage3D C.GPTEXSUBIMAGE3D - gpTexSubImage3DEXT C.GPTEXSUBIMAGE3DEXT - gpTexSubImage4DSGIS C.GPTEXSUBIMAGE4DSGIS - gpTextureBarrier C.GPTEXTUREBARRIER - gpTextureBarrierNV C.GPTEXTUREBARRIERNV - gpTextureBuffer C.GPTEXTUREBUFFER - gpTextureBufferEXT C.GPTEXTUREBUFFEREXT - gpTextureBufferRange C.GPTEXTUREBUFFERRANGE - gpTextureBufferRangeEXT C.GPTEXTUREBUFFERRANGEEXT - gpTextureColorMaskSGIS C.GPTEXTURECOLORMASKSGIS - gpTextureImage1DEXT C.GPTEXTUREIMAGE1DEXT - gpTextureImage2DEXT C.GPTEXTUREIMAGE2DEXT - gpTextureImage2DMultisampleCoverageNV C.GPTEXTUREIMAGE2DMULTISAMPLECOVERAGENV - gpTextureImage2DMultisampleNV C.GPTEXTUREIMAGE2DMULTISAMPLENV - gpTextureImage3DEXT C.GPTEXTUREIMAGE3DEXT - gpTextureImage3DMultisampleCoverageNV C.GPTEXTUREIMAGE3DMULTISAMPLECOVERAGENV - gpTextureImage3DMultisampleNV C.GPTEXTUREIMAGE3DMULTISAMPLENV - gpTextureLightEXT C.GPTEXTURELIGHTEXT - gpTextureMaterialEXT C.GPTEXTUREMATERIALEXT - gpTextureNormalEXT C.GPTEXTURENORMALEXT - gpTexturePageCommitmentEXT C.GPTEXTUREPAGECOMMITMENTEXT - gpTextureParameterIiv C.GPTEXTUREPARAMETERIIV - gpTextureParameterIivEXT C.GPTEXTUREPARAMETERIIVEXT - gpTextureParameterIuiv C.GPTEXTUREPARAMETERIUIV - gpTextureParameterIuivEXT C.GPTEXTUREPARAMETERIUIVEXT - gpTextureParameterf C.GPTEXTUREPARAMETERF - gpTextureParameterfEXT C.GPTEXTUREPARAMETERFEXT - gpTextureParameterfv C.GPTEXTUREPARAMETERFV - gpTextureParameterfvEXT C.GPTEXTUREPARAMETERFVEXT - gpTextureParameteri C.GPTEXTUREPARAMETERI - gpTextureParameteriEXT C.GPTEXTUREPARAMETERIEXT - gpTextureParameteriv C.GPTEXTUREPARAMETERIV - gpTextureParameterivEXT C.GPTEXTUREPARAMETERIVEXT - gpTextureRangeAPPLE C.GPTEXTURERANGEAPPLE - gpTextureRenderbufferEXT C.GPTEXTURERENDERBUFFEREXT - gpTextureStorage1D C.GPTEXTURESTORAGE1D - gpTextureStorage1DEXT C.GPTEXTURESTORAGE1DEXT - gpTextureStorage2D C.GPTEXTURESTORAGE2D - gpTextureStorage2DEXT C.GPTEXTURESTORAGE2DEXT - gpTextureStorage2DMultisample C.GPTEXTURESTORAGE2DMULTISAMPLE - gpTextureStorage2DMultisampleEXT C.GPTEXTURESTORAGE2DMULTISAMPLEEXT - gpTextureStorage3D C.GPTEXTURESTORAGE3D - gpTextureStorage3DEXT C.GPTEXTURESTORAGE3DEXT - gpTextureStorage3DMultisample C.GPTEXTURESTORAGE3DMULTISAMPLE - gpTextureStorage3DMultisampleEXT C.GPTEXTURESTORAGE3DMULTISAMPLEEXT - gpTextureStorageSparseAMD C.GPTEXTURESTORAGESPARSEAMD - gpTextureSubImage1D C.GPTEXTURESUBIMAGE1D - gpTextureSubImage1DEXT C.GPTEXTURESUBIMAGE1DEXT - gpTextureSubImage2D C.GPTEXTURESUBIMAGE2D - gpTextureSubImage2DEXT C.GPTEXTURESUBIMAGE2DEXT - gpTextureSubImage3D C.GPTEXTURESUBIMAGE3D - gpTextureSubImage3DEXT C.GPTEXTURESUBIMAGE3DEXT - gpTextureView C.GPTEXTUREVIEW - gpTrackMatrixNV C.GPTRACKMATRIXNV - gpTransformFeedbackAttribsNV C.GPTRANSFORMFEEDBACKATTRIBSNV - gpTransformFeedbackBufferBase C.GPTRANSFORMFEEDBACKBUFFERBASE - gpTransformFeedbackBufferRange C.GPTRANSFORMFEEDBACKBUFFERRANGE - gpTransformFeedbackStreamAttribsNV C.GPTRANSFORMFEEDBACKSTREAMATTRIBSNV - gpTransformFeedbackVaryingsEXT C.GPTRANSFORMFEEDBACKVARYINGSEXT - gpTransformFeedbackVaryingsNV C.GPTRANSFORMFEEDBACKVARYINGSNV - gpTransformPathNV C.GPTRANSFORMPATHNV - gpTranslated C.GPTRANSLATED - gpTranslatef C.GPTRANSLATEF - gpTranslatexOES C.GPTRANSLATEXOES - gpUniform1d C.GPUNIFORM1D - gpUniform1dv C.GPUNIFORM1DV - gpUniform1f C.GPUNIFORM1F - gpUniform1fARB C.GPUNIFORM1FARB - gpUniform1fv C.GPUNIFORM1FV - gpUniform1fvARB C.GPUNIFORM1FVARB - gpUniform1i C.GPUNIFORM1I - gpUniform1i64NV C.GPUNIFORM1I64NV - gpUniform1i64vNV C.GPUNIFORM1I64VNV - gpUniform1iARB C.GPUNIFORM1IARB - gpUniform1iv C.GPUNIFORM1IV - gpUniform1ivARB C.GPUNIFORM1IVARB - gpUniform1ui64NV C.GPUNIFORM1UI64NV - gpUniform1ui64vNV C.GPUNIFORM1UI64VNV - gpUniform1uiEXT C.GPUNIFORM1UIEXT - gpUniform1uivEXT C.GPUNIFORM1UIVEXT - gpUniform2d C.GPUNIFORM2D - gpUniform2dv C.GPUNIFORM2DV - gpUniform2f C.GPUNIFORM2F - gpUniform2fARB C.GPUNIFORM2FARB - gpUniform2fv C.GPUNIFORM2FV - gpUniform2fvARB C.GPUNIFORM2FVARB - gpUniform2i C.GPUNIFORM2I - gpUniform2i64NV C.GPUNIFORM2I64NV - gpUniform2i64vNV C.GPUNIFORM2I64VNV - gpUniform2iARB C.GPUNIFORM2IARB - gpUniform2iv C.GPUNIFORM2IV - gpUniform2ivARB C.GPUNIFORM2IVARB - gpUniform2ui64NV C.GPUNIFORM2UI64NV - gpUniform2ui64vNV C.GPUNIFORM2UI64VNV - gpUniform2uiEXT C.GPUNIFORM2UIEXT - gpUniform2uivEXT C.GPUNIFORM2UIVEXT - gpUniform3d C.GPUNIFORM3D - gpUniform3dv C.GPUNIFORM3DV - gpUniform3f C.GPUNIFORM3F - gpUniform3fARB C.GPUNIFORM3FARB - gpUniform3fv C.GPUNIFORM3FV - gpUniform3fvARB C.GPUNIFORM3FVARB - gpUniform3i C.GPUNIFORM3I - gpUniform3i64NV C.GPUNIFORM3I64NV - gpUniform3i64vNV C.GPUNIFORM3I64VNV - gpUniform3iARB C.GPUNIFORM3IARB - gpUniform3iv C.GPUNIFORM3IV - gpUniform3ivARB C.GPUNIFORM3IVARB - gpUniform3ui64NV C.GPUNIFORM3UI64NV - gpUniform3ui64vNV C.GPUNIFORM3UI64VNV - gpUniform3uiEXT C.GPUNIFORM3UIEXT - gpUniform3uivEXT C.GPUNIFORM3UIVEXT - gpUniform4d C.GPUNIFORM4D - gpUniform4dv C.GPUNIFORM4DV - gpUniform4f C.GPUNIFORM4F - gpUniform4fARB C.GPUNIFORM4FARB - gpUniform4fv C.GPUNIFORM4FV - gpUniform4fvARB C.GPUNIFORM4FVARB - gpUniform4i C.GPUNIFORM4I - gpUniform4i64NV C.GPUNIFORM4I64NV - gpUniform4i64vNV C.GPUNIFORM4I64VNV - gpUniform4iARB C.GPUNIFORM4IARB - gpUniform4iv C.GPUNIFORM4IV - gpUniform4ivARB C.GPUNIFORM4IVARB - gpUniform4ui64NV C.GPUNIFORM4UI64NV - gpUniform4ui64vNV C.GPUNIFORM4UI64VNV - gpUniform4uiEXT C.GPUNIFORM4UIEXT - gpUniform4uivEXT C.GPUNIFORM4UIVEXT - gpUniformBlockBinding C.GPUNIFORMBLOCKBINDING - gpUniformBufferEXT C.GPUNIFORMBUFFEREXT - gpUniformHandleui64ARB C.GPUNIFORMHANDLEUI64ARB - gpUniformHandleui64NV C.GPUNIFORMHANDLEUI64NV - gpUniformHandleui64vARB C.GPUNIFORMHANDLEUI64VARB - gpUniformHandleui64vNV C.GPUNIFORMHANDLEUI64VNV - gpUniformMatrix2dv C.GPUNIFORMMATRIX2DV - gpUniformMatrix2fv C.GPUNIFORMMATRIX2FV - gpUniformMatrix2fvARB C.GPUNIFORMMATRIX2FVARB - gpUniformMatrix2x3dv C.GPUNIFORMMATRIX2X3DV - gpUniformMatrix2x3fv C.GPUNIFORMMATRIX2X3FV - gpUniformMatrix2x4dv C.GPUNIFORMMATRIX2X4DV - gpUniformMatrix2x4fv C.GPUNIFORMMATRIX2X4FV - gpUniformMatrix3dv C.GPUNIFORMMATRIX3DV - gpUniformMatrix3fv C.GPUNIFORMMATRIX3FV - gpUniformMatrix3fvARB C.GPUNIFORMMATRIX3FVARB - gpUniformMatrix3x2dv C.GPUNIFORMMATRIX3X2DV - gpUniformMatrix3x2fv C.GPUNIFORMMATRIX3X2FV - gpUniformMatrix3x4dv C.GPUNIFORMMATRIX3X4DV - gpUniformMatrix3x4fv C.GPUNIFORMMATRIX3X4FV - gpUniformMatrix4dv C.GPUNIFORMMATRIX4DV - gpUniformMatrix4fv C.GPUNIFORMMATRIX4FV - gpUniformMatrix4fvARB C.GPUNIFORMMATRIX4FVARB - gpUniformMatrix4x2dv C.GPUNIFORMMATRIX4X2DV - gpUniformMatrix4x2fv C.GPUNIFORMMATRIX4X2FV - gpUniformMatrix4x3dv C.GPUNIFORMMATRIX4X3DV - gpUniformMatrix4x3fv C.GPUNIFORMMATRIX4X3FV - gpUniformSubroutinesuiv C.GPUNIFORMSUBROUTINESUIV - gpUniformui64NV C.GPUNIFORMUI64NV - gpUniformui64vNV C.GPUNIFORMUI64VNV - gpUnlockArraysEXT C.GPUNLOCKARRAYSEXT - gpUnmapBuffer C.GPUNMAPBUFFER - gpUnmapBufferARB C.GPUNMAPBUFFERARB - gpUnmapNamedBuffer C.GPUNMAPNAMEDBUFFER - gpUnmapNamedBufferEXT C.GPUNMAPNAMEDBUFFEREXT - gpUnmapObjectBufferATI C.GPUNMAPOBJECTBUFFERATI - gpUnmapTexture2DINTEL C.GPUNMAPTEXTURE2DINTEL - gpUpdateObjectBufferATI C.GPUPDATEOBJECTBUFFERATI - gpUseProgram C.GPUSEPROGRAM - gpUseProgramObjectARB C.GPUSEPROGRAMOBJECTARB - gpUseProgramStages C.GPUSEPROGRAMSTAGES - gpUseProgramStagesEXT C.GPUSEPROGRAMSTAGESEXT - gpUseShaderProgramEXT C.GPUSESHADERPROGRAMEXT - gpVDPAUFiniNV C.GPVDPAUFININV - gpVDPAUGetSurfaceivNV C.GPVDPAUGETSURFACEIVNV - gpVDPAUInitNV C.GPVDPAUINITNV - gpVDPAUIsSurfaceNV C.GPVDPAUISSURFACENV - gpVDPAUMapSurfacesNV C.GPVDPAUMAPSURFACESNV - gpVDPAURegisterOutputSurfaceNV C.GPVDPAUREGISTEROUTPUTSURFACENV - gpVDPAURegisterVideoSurfaceNV C.GPVDPAUREGISTERVIDEOSURFACENV - gpVDPAUSurfaceAccessNV C.GPVDPAUSURFACEACCESSNV - gpVDPAUUnmapSurfacesNV C.GPVDPAUUNMAPSURFACESNV - gpVDPAUUnregisterSurfaceNV C.GPVDPAUUNREGISTERSURFACENV - gpValidateProgram C.GPVALIDATEPROGRAM - gpValidateProgramARB C.GPVALIDATEPROGRAMARB - gpValidateProgramPipeline C.GPVALIDATEPROGRAMPIPELINE - gpValidateProgramPipelineEXT C.GPVALIDATEPROGRAMPIPELINEEXT - gpVariantArrayObjectATI C.GPVARIANTARRAYOBJECTATI - gpVariantPointerEXT C.GPVARIANTPOINTEREXT - gpVariantbvEXT C.GPVARIANTBVEXT - gpVariantdvEXT C.GPVARIANTDVEXT - gpVariantfvEXT C.GPVARIANTFVEXT - gpVariantivEXT C.GPVARIANTIVEXT - gpVariantsvEXT C.GPVARIANTSVEXT - gpVariantubvEXT C.GPVARIANTUBVEXT - gpVariantuivEXT C.GPVARIANTUIVEXT - gpVariantusvEXT C.GPVARIANTUSVEXT - gpVertex2bOES C.GPVERTEX2BOES - gpVertex2bvOES C.GPVERTEX2BVOES - gpVertex2d C.GPVERTEX2D - gpVertex2dv C.GPVERTEX2DV - gpVertex2f C.GPVERTEX2F - gpVertex2fv C.GPVERTEX2FV - gpVertex2hNV C.GPVERTEX2HNV - gpVertex2hvNV C.GPVERTEX2HVNV - gpVertex2i C.GPVERTEX2I - gpVertex2iv C.GPVERTEX2IV - gpVertex2s C.GPVERTEX2S - gpVertex2sv C.GPVERTEX2SV - gpVertex2xOES C.GPVERTEX2XOES - gpVertex2xvOES C.GPVERTEX2XVOES - gpVertex3bOES C.GPVERTEX3BOES - gpVertex3bvOES C.GPVERTEX3BVOES - gpVertex3d C.GPVERTEX3D - gpVertex3dv C.GPVERTEX3DV - gpVertex3f C.GPVERTEX3F - gpVertex3fv C.GPVERTEX3FV - gpVertex3hNV C.GPVERTEX3HNV - gpVertex3hvNV C.GPVERTEX3HVNV - gpVertex3i C.GPVERTEX3I - gpVertex3iv C.GPVERTEX3IV - gpVertex3s C.GPVERTEX3S - gpVertex3sv C.GPVERTEX3SV - gpVertex3xOES C.GPVERTEX3XOES - gpVertex3xvOES C.GPVERTEX3XVOES - gpVertex4bOES C.GPVERTEX4BOES - gpVertex4bvOES C.GPVERTEX4BVOES - gpVertex4d C.GPVERTEX4D - gpVertex4dv C.GPVERTEX4DV - gpVertex4f C.GPVERTEX4F - gpVertex4fv C.GPVERTEX4FV - gpVertex4hNV C.GPVERTEX4HNV - gpVertex4hvNV C.GPVERTEX4HVNV - gpVertex4i C.GPVERTEX4I - gpVertex4iv C.GPVERTEX4IV - gpVertex4s C.GPVERTEX4S - gpVertex4sv C.GPVERTEX4SV - gpVertex4xOES C.GPVERTEX4XOES - gpVertex4xvOES C.GPVERTEX4XVOES - gpVertexArrayAttribBinding C.GPVERTEXARRAYATTRIBBINDING - gpVertexArrayAttribFormat C.GPVERTEXARRAYATTRIBFORMAT - gpVertexArrayAttribIFormat C.GPVERTEXARRAYATTRIBIFORMAT - gpVertexArrayAttribLFormat C.GPVERTEXARRAYATTRIBLFORMAT - gpVertexArrayBindVertexBufferEXT C.GPVERTEXARRAYBINDVERTEXBUFFEREXT - gpVertexArrayBindingDivisor C.GPVERTEXARRAYBINDINGDIVISOR - gpVertexArrayColorOffsetEXT C.GPVERTEXARRAYCOLOROFFSETEXT - gpVertexArrayEdgeFlagOffsetEXT C.GPVERTEXARRAYEDGEFLAGOFFSETEXT - gpVertexArrayElementBuffer C.GPVERTEXARRAYELEMENTBUFFER - gpVertexArrayFogCoordOffsetEXT C.GPVERTEXARRAYFOGCOORDOFFSETEXT - gpVertexArrayIndexOffsetEXT C.GPVERTEXARRAYINDEXOFFSETEXT - gpVertexArrayMultiTexCoordOffsetEXT C.GPVERTEXARRAYMULTITEXCOORDOFFSETEXT - gpVertexArrayNormalOffsetEXT C.GPVERTEXARRAYNORMALOFFSETEXT - gpVertexArrayParameteriAPPLE C.GPVERTEXARRAYPARAMETERIAPPLE - gpVertexArrayRangeAPPLE C.GPVERTEXARRAYRANGEAPPLE - gpVertexArrayRangeNV C.GPVERTEXARRAYRANGENV - gpVertexArraySecondaryColorOffsetEXT C.GPVERTEXARRAYSECONDARYCOLOROFFSETEXT - gpVertexArrayTexCoordOffsetEXT C.GPVERTEXARRAYTEXCOORDOFFSETEXT - gpVertexArrayVertexAttribBindingEXT C.GPVERTEXARRAYVERTEXATTRIBBINDINGEXT - gpVertexArrayVertexAttribDivisorEXT C.GPVERTEXARRAYVERTEXATTRIBDIVISOREXT - gpVertexArrayVertexAttribFormatEXT C.GPVERTEXARRAYVERTEXATTRIBFORMATEXT - gpVertexArrayVertexAttribIFormatEXT C.GPVERTEXARRAYVERTEXATTRIBIFORMATEXT - gpVertexArrayVertexAttribIOffsetEXT C.GPVERTEXARRAYVERTEXATTRIBIOFFSETEXT - gpVertexArrayVertexAttribLFormatEXT C.GPVERTEXARRAYVERTEXATTRIBLFORMATEXT - gpVertexArrayVertexAttribLOffsetEXT C.GPVERTEXARRAYVERTEXATTRIBLOFFSETEXT - gpVertexArrayVertexAttribOffsetEXT C.GPVERTEXARRAYVERTEXATTRIBOFFSETEXT - gpVertexArrayVertexBindingDivisorEXT C.GPVERTEXARRAYVERTEXBINDINGDIVISOREXT - gpVertexArrayVertexBuffer C.GPVERTEXARRAYVERTEXBUFFER - gpVertexArrayVertexBuffers C.GPVERTEXARRAYVERTEXBUFFERS - gpVertexArrayVertexOffsetEXT C.GPVERTEXARRAYVERTEXOFFSETEXT - gpVertexAttrib1d C.GPVERTEXATTRIB1D - gpVertexAttrib1dARB C.GPVERTEXATTRIB1DARB - gpVertexAttrib1dNV C.GPVERTEXATTRIB1DNV - gpVertexAttrib1dv C.GPVERTEXATTRIB1DV - gpVertexAttrib1dvARB C.GPVERTEXATTRIB1DVARB - gpVertexAttrib1dvNV C.GPVERTEXATTRIB1DVNV - gpVertexAttrib1f C.GPVERTEXATTRIB1F - gpVertexAttrib1fARB C.GPVERTEXATTRIB1FARB - gpVertexAttrib1fNV C.GPVERTEXATTRIB1FNV - gpVertexAttrib1fv C.GPVERTEXATTRIB1FV - gpVertexAttrib1fvARB C.GPVERTEXATTRIB1FVARB - gpVertexAttrib1fvNV C.GPVERTEXATTRIB1FVNV - gpVertexAttrib1hNV C.GPVERTEXATTRIB1HNV - gpVertexAttrib1hvNV C.GPVERTEXATTRIB1HVNV - gpVertexAttrib1s C.GPVERTEXATTRIB1S - gpVertexAttrib1sARB C.GPVERTEXATTRIB1SARB - gpVertexAttrib1sNV C.GPVERTEXATTRIB1SNV - gpVertexAttrib1sv C.GPVERTEXATTRIB1SV - gpVertexAttrib1svARB C.GPVERTEXATTRIB1SVARB - gpVertexAttrib1svNV C.GPVERTEXATTRIB1SVNV - gpVertexAttrib2d C.GPVERTEXATTRIB2D - gpVertexAttrib2dARB C.GPVERTEXATTRIB2DARB - gpVertexAttrib2dNV C.GPVERTEXATTRIB2DNV - gpVertexAttrib2dv C.GPVERTEXATTRIB2DV - gpVertexAttrib2dvARB C.GPVERTEXATTRIB2DVARB - gpVertexAttrib2dvNV C.GPVERTEXATTRIB2DVNV - gpVertexAttrib2f C.GPVERTEXATTRIB2F - gpVertexAttrib2fARB C.GPVERTEXATTRIB2FARB - gpVertexAttrib2fNV C.GPVERTEXATTRIB2FNV - gpVertexAttrib2fv C.GPVERTEXATTRIB2FV - gpVertexAttrib2fvARB C.GPVERTEXATTRIB2FVARB - gpVertexAttrib2fvNV C.GPVERTEXATTRIB2FVNV - gpVertexAttrib2hNV C.GPVERTEXATTRIB2HNV - gpVertexAttrib2hvNV C.GPVERTEXATTRIB2HVNV - gpVertexAttrib2s C.GPVERTEXATTRIB2S - gpVertexAttrib2sARB C.GPVERTEXATTRIB2SARB - gpVertexAttrib2sNV C.GPVERTEXATTRIB2SNV - gpVertexAttrib2sv C.GPVERTEXATTRIB2SV - gpVertexAttrib2svARB C.GPVERTEXATTRIB2SVARB - gpVertexAttrib2svNV C.GPVERTEXATTRIB2SVNV - gpVertexAttrib3d C.GPVERTEXATTRIB3D - gpVertexAttrib3dARB C.GPVERTEXATTRIB3DARB - gpVertexAttrib3dNV C.GPVERTEXATTRIB3DNV - gpVertexAttrib3dv C.GPVERTEXATTRIB3DV - gpVertexAttrib3dvARB C.GPVERTEXATTRIB3DVARB - gpVertexAttrib3dvNV C.GPVERTEXATTRIB3DVNV - gpVertexAttrib3f C.GPVERTEXATTRIB3F - gpVertexAttrib3fARB C.GPVERTEXATTRIB3FARB - gpVertexAttrib3fNV C.GPVERTEXATTRIB3FNV - gpVertexAttrib3fv C.GPVERTEXATTRIB3FV - gpVertexAttrib3fvARB C.GPVERTEXATTRIB3FVARB - gpVertexAttrib3fvNV C.GPVERTEXATTRIB3FVNV - gpVertexAttrib3hNV C.GPVERTEXATTRIB3HNV - gpVertexAttrib3hvNV C.GPVERTEXATTRIB3HVNV - gpVertexAttrib3s C.GPVERTEXATTRIB3S - gpVertexAttrib3sARB C.GPVERTEXATTRIB3SARB - gpVertexAttrib3sNV C.GPVERTEXATTRIB3SNV - gpVertexAttrib3sv C.GPVERTEXATTRIB3SV - gpVertexAttrib3svARB C.GPVERTEXATTRIB3SVARB - gpVertexAttrib3svNV C.GPVERTEXATTRIB3SVNV - gpVertexAttrib4Nbv C.GPVERTEXATTRIB4NBV - gpVertexAttrib4NbvARB C.GPVERTEXATTRIB4NBVARB - gpVertexAttrib4Niv C.GPVERTEXATTRIB4NIV - gpVertexAttrib4NivARB C.GPVERTEXATTRIB4NIVARB - gpVertexAttrib4Nsv C.GPVERTEXATTRIB4NSV - gpVertexAttrib4NsvARB C.GPVERTEXATTRIB4NSVARB - gpVertexAttrib4Nub C.GPVERTEXATTRIB4NUB - gpVertexAttrib4NubARB C.GPVERTEXATTRIB4NUBARB - gpVertexAttrib4Nubv C.GPVERTEXATTRIB4NUBV - gpVertexAttrib4NubvARB C.GPVERTEXATTRIB4NUBVARB - gpVertexAttrib4Nuiv C.GPVERTEXATTRIB4NUIV - gpVertexAttrib4NuivARB C.GPVERTEXATTRIB4NUIVARB - gpVertexAttrib4Nusv C.GPVERTEXATTRIB4NUSV - gpVertexAttrib4NusvARB C.GPVERTEXATTRIB4NUSVARB - gpVertexAttrib4bv C.GPVERTEXATTRIB4BV - gpVertexAttrib4bvARB C.GPVERTEXATTRIB4BVARB - gpVertexAttrib4d C.GPVERTEXATTRIB4D - gpVertexAttrib4dARB C.GPVERTEXATTRIB4DARB - gpVertexAttrib4dNV C.GPVERTEXATTRIB4DNV - gpVertexAttrib4dv C.GPVERTEXATTRIB4DV - gpVertexAttrib4dvARB C.GPVERTEXATTRIB4DVARB - gpVertexAttrib4dvNV C.GPVERTEXATTRIB4DVNV - gpVertexAttrib4f C.GPVERTEXATTRIB4F - gpVertexAttrib4fARB C.GPVERTEXATTRIB4FARB - gpVertexAttrib4fNV C.GPVERTEXATTRIB4FNV - gpVertexAttrib4fv C.GPVERTEXATTRIB4FV - gpVertexAttrib4fvARB C.GPVERTEXATTRIB4FVARB - gpVertexAttrib4fvNV C.GPVERTEXATTRIB4FVNV - gpVertexAttrib4hNV C.GPVERTEXATTRIB4HNV - gpVertexAttrib4hvNV C.GPVERTEXATTRIB4HVNV - gpVertexAttrib4iv C.GPVERTEXATTRIB4IV - gpVertexAttrib4ivARB C.GPVERTEXATTRIB4IVARB - gpVertexAttrib4s C.GPVERTEXATTRIB4S - gpVertexAttrib4sARB C.GPVERTEXATTRIB4SARB - gpVertexAttrib4sNV C.GPVERTEXATTRIB4SNV - gpVertexAttrib4sv C.GPVERTEXATTRIB4SV - gpVertexAttrib4svARB C.GPVERTEXATTRIB4SVARB - gpVertexAttrib4svNV C.GPVERTEXATTRIB4SVNV - gpVertexAttrib4ubNV C.GPVERTEXATTRIB4UBNV - gpVertexAttrib4ubv C.GPVERTEXATTRIB4UBV - gpVertexAttrib4ubvARB C.GPVERTEXATTRIB4UBVARB - gpVertexAttrib4ubvNV C.GPVERTEXATTRIB4UBVNV - gpVertexAttrib4uiv C.GPVERTEXATTRIB4UIV - gpVertexAttrib4uivARB C.GPVERTEXATTRIB4UIVARB - gpVertexAttrib4usv C.GPVERTEXATTRIB4USV - gpVertexAttrib4usvARB C.GPVERTEXATTRIB4USVARB - gpVertexAttribArrayObjectATI C.GPVERTEXATTRIBARRAYOBJECTATI - gpVertexAttribBinding C.GPVERTEXATTRIBBINDING - gpVertexAttribDivisorARB C.GPVERTEXATTRIBDIVISORARB - gpVertexAttribFormat C.GPVERTEXATTRIBFORMAT - gpVertexAttribFormatNV C.GPVERTEXATTRIBFORMATNV - gpVertexAttribI1iEXT C.GPVERTEXATTRIBI1IEXT - gpVertexAttribI1ivEXT C.GPVERTEXATTRIBI1IVEXT - gpVertexAttribI1uiEXT C.GPVERTEXATTRIBI1UIEXT - gpVertexAttribI1uivEXT C.GPVERTEXATTRIBI1UIVEXT - gpVertexAttribI2iEXT C.GPVERTEXATTRIBI2IEXT - gpVertexAttribI2ivEXT C.GPVERTEXATTRIBI2IVEXT - gpVertexAttribI2uiEXT C.GPVERTEXATTRIBI2UIEXT - gpVertexAttribI2uivEXT C.GPVERTEXATTRIBI2UIVEXT - gpVertexAttribI3iEXT C.GPVERTEXATTRIBI3IEXT - gpVertexAttribI3ivEXT C.GPVERTEXATTRIBI3IVEXT - gpVertexAttribI3uiEXT C.GPVERTEXATTRIBI3UIEXT - gpVertexAttribI3uivEXT C.GPVERTEXATTRIBI3UIVEXT - gpVertexAttribI4bvEXT C.GPVERTEXATTRIBI4BVEXT - gpVertexAttribI4iEXT C.GPVERTEXATTRIBI4IEXT - gpVertexAttribI4ivEXT C.GPVERTEXATTRIBI4IVEXT - gpVertexAttribI4svEXT C.GPVERTEXATTRIBI4SVEXT - gpVertexAttribI4ubvEXT C.GPVERTEXATTRIBI4UBVEXT - gpVertexAttribI4uiEXT C.GPVERTEXATTRIBI4UIEXT - gpVertexAttribI4uivEXT C.GPVERTEXATTRIBI4UIVEXT - gpVertexAttribI4usvEXT C.GPVERTEXATTRIBI4USVEXT - gpVertexAttribIFormat C.GPVERTEXATTRIBIFORMAT - gpVertexAttribIFormatNV C.GPVERTEXATTRIBIFORMATNV - gpVertexAttribIPointerEXT C.GPVERTEXATTRIBIPOINTEREXT - gpVertexAttribL1d C.GPVERTEXATTRIBL1D - gpVertexAttribL1dEXT C.GPVERTEXATTRIBL1DEXT - gpVertexAttribL1dv C.GPVERTEXATTRIBL1DV - gpVertexAttribL1dvEXT C.GPVERTEXATTRIBL1DVEXT - gpVertexAttribL1i64NV C.GPVERTEXATTRIBL1I64NV - gpVertexAttribL1i64vNV C.GPVERTEXATTRIBL1I64VNV - gpVertexAttribL1ui64ARB C.GPVERTEXATTRIBL1UI64ARB - gpVertexAttribL1ui64NV C.GPVERTEXATTRIBL1UI64NV - gpVertexAttribL1ui64vARB C.GPVERTEXATTRIBL1UI64VARB - gpVertexAttribL1ui64vNV C.GPVERTEXATTRIBL1UI64VNV - gpVertexAttribL2d C.GPVERTEXATTRIBL2D - gpVertexAttribL2dEXT C.GPVERTEXATTRIBL2DEXT - gpVertexAttribL2dv C.GPVERTEXATTRIBL2DV - gpVertexAttribL2dvEXT C.GPVERTEXATTRIBL2DVEXT - gpVertexAttribL2i64NV C.GPVERTEXATTRIBL2I64NV - gpVertexAttribL2i64vNV C.GPVERTEXATTRIBL2I64VNV - gpVertexAttribL2ui64NV C.GPVERTEXATTRIBL2UI64NV - gpVertexAttribL2ui64vNV C.GPVERTEXATTRIBL2UI64VNV - gpVertexAttribL3d C.GPVERTEXATTRIBL3D - gpVertexAttribL3dEXT C.GPVERTEXATTRIBL3DEXT - gpVertexAttribL3dv C.GPVERTEXATTRIBL3DV - gpVertexAttribL3dvEXT C.GPVERTEXATTRIBL3DVEXT - gpVertexAttribL3i64NV C.GPVERTEXATTRIBL3I64NV - gpVertexAttribL3i64vNV C.GPVERTEXATTRIBL3I64VNV - gpVertexAttribL3ui64NV C.GPVERTEXATTRIBL3UI64NV - gpVertexAttribL3ui64vNV C.GPVERTEXATTRIBL3UI64VNV - gpVertexAttribL4d C.GPVERTEXATTRIBL4D - gpVertexAttribL4dEXT C.GPVERTEXATTRIBL4DEXT - gpVertexAttribL4dv C.GPVERTEXATTRIBL4DV - gpVertexAttribL4dvEXT C.GPVERTEXATTRIBL4DVEXT - gpVertexAttribL4i64NV C.GPVERTEXATTRIBL4I64NV - gpVertexAttribL4i64vNV C.GPVERTEXATTRIBL4I64VNV - gpVertexAttribL4ui64NV C.GPVERTEXATTRIBL4UI64NV - gpVertexAttribL4ui64vNV C.GPVERTEXATTRIBL4UI64VNV - gpVertexAttribLFormat C.GPVERTEXATTRIBLFORMAT - gpVertexAttribLFormatNV C.GPVERTEXATTRIBLFORMATNV - gpVertexAttribLPointer C.GPVERTEXATTRIBLPOINTER - gpVertexAttribLPointerEXT C.GPVERTEXATTRIBLPOINTEREXT - gpVertexAttribP1ui C.GPVERTEXATTRIBP1UI - gpVertexAttribP1uiv C.GPVERTEXATTRIBP1UIV - gpVertexAttribP2ui C.GPVERTEXATTRIBP2UI - gpVertexAttribP2uiv C.GPVERTEXATTRIBP2UIV - gpVertexAttribP3ui C.GPVERTEXATTRIBP3UI - gpVertexAttribP3uiv C.GPVERTEXATTRIBP3UIV - gpVertexAttribP4ui C.GPVERTEXATTRIBP4UI - gpVertexAttribP4uiv C.GPVERTEXATTRIBP4UIV - gpVertexAttribParameteriAMD C.GPVERTEXATTRIBPARAMETERIAMD - gpVertexAttribPointer C.GPVERTEXATTRIBPOINTER - gpVertexAttribPointerARB C.GPVERTEXATTRIBPOINTERARB - gpVertexAttribPointerNV C.GPVERTEXATTRIBPOINTERNV - gpVertexAttribs1dvNV C.GPVERTEXATTRIBS1DVNV - gpVertexAttribs1fvNV C.GPVERTEXATTRIBS1FVNV - gpVertexAttribs1hvNV C.GPVERTEXATTRIBS1HVNV - gpVertexAttribs1svNV C.GPVERTEXATTRIBS1SVNV - gpVertexAttribs2dvNV C.GPVERTEXATTRIBS2DVNV - gpVertexAttribs2fvNV C.GPVERTEXATTRIBS2FVNV - gpVertexAttribs2hvNV C.GPVERTEXATTRIBS2HVNV - gpVertexAttribs2svNV C.GPVERTEXATTRIBS2SVNV - gpVertexAttribs3dvNV C.GPVERTEXATTRIBS3DVNV - gpVertexAttribs3fvNV C.GPVERTEXATTRIBS3FVNV - gpVertexAttribs3hvNV C.GPVERTEXATTRIBS3HVNV - gpVertexAttribs3svNV C.GPVERTEXATTRIBS3SVNV - gpVertexAttribs4dvNV C.GPVERTEXATTRIBS4DVNV - gpVertexAttribs4fvNV C.GPVERTEXATTRIBS4FVNV - gpVertexAttribs4hvNV C.GPVERTEXATTRIBS4HVNV - gpVertexAttribs4svNV C.GPVERTEXATTRIBS4SVNV - gpVertexAttribs4ubvNV C.GPVERTEXATTRIBS4UBVNV - gpVertexBindingDivisor C.GPVERTEXBINDINGDIVISOR - gpVertexBlendARB C.GPVERTEXBLENDARB - gpVertexBlendEnvfATI C.GPVERTEXBLENDENVFATI - gpVertexBlendEnviATI C.GPVERTEXBLENDENVIATI - gpVertexFormatNV C.GPVERTEXFORMATNV - gpVertexPointer C.GPVERTEXPOINTER - gpVertexPointerEXT C.GPVERTEXPOINTEREXT - gpVertexPointerListIBM C.GPVERTEXPOINTERLISTIBM - gpVertexPointervINTEL C.GPVERTEXPOINTERVINTEL - gpVertexStream1dATI C.GPVERTEXSTREAM1DATI - gpVertexStream1dvATI C.GPVERTEXSTREAM1DVATI - gpVertexStream1fATI C.GPVERTEXSTREAM1FATI - gpVertexStream1fvATI C.GPVERTEXSTREAM1FVATI - gpVertexStream1iATI C.GPVERTEXSTREAM1IATI - gpVertexStream1ivATI C.GPVERTEXSTREAM1IVATI - gpVertexStream1sATI C.GPVERTEXSTREAM1SATI - gpVertexStream1svATI C.GPVERTEXSTREAM1SVATI - gpVertexStream2dATI C.GPVERTEXSTREAM2DATI - gpVertexStream2dvATI C.GPVERTEXSTREAM2DVATI - gpVertexStream2fATI C.GPVERTEXSTREAM2FATI - gpVertexStream2fvATI C.GPVERTEXSTREAM2FVATI - gpVertexStream2iATI C.GPVERTEXSTREAM2IATI - gpVertexStream2ivATI C.GPVERTEXSTREAM2IVATI - gpVertexStream2sATI C.GPVERTEXSTREAM2SATI - gpVertexStream2svATI C.GPVERTEXSTREAM2SVATI - gpVertexStream3dATI C.GPVERTEXSTREAM3DATI - gpVertexStream3dvATI C.GPVERTEXSTREAM3DVATI - gpVertexStream3fATI C.GPVERTEXSTREAM3FATI - gpVertexStream3fvATI C.GPVERTEXSTREAM3FVATI - gpVertexStream3iATI C.GPVERTEXSTREAM3IATI - gpVertexStream3ivATI C.GPVERTEXSTREAM3IVATI - gpVertexStream3sATI C.GPVERTEXSTREAM3SATI - gpVertexStream3svATI C.GPVERTEXSTREAM3SVATI - gpVertexStream4dATI C.GPVERTEXSTREAM4DATI - gpVertexStream4dvATI C.GPVERTEXSTREAM4DVATI - gpVertexStream4fATI C.GPVERTEXSTREAM4FATI - gpVertexStream4fvATI C.GPVERTEXSTREAM4FVATI - gpVertexStream4iATI C.GPVERTEXSTREAM4IATI - gpVertexStream4ivATI C.GPVERTEXSTREAM4IVATI - gpVertexStream4sATI C.GPVERTEXSTREAM4SATI - gpVertexStream4svATI C.GPVERTEXSTREAM4SVATI - gpVertexWeightPointerEXT C.GPVERTEXWEIGHTPOINTEREXT - gpVertexWeightfEXT C.GPVERTEXWEIGHTFEXT - gpVertexWeightfvEXT C.GPVERTEXWEIGHTFVEXT - gpVertexWeighthNV C.GPVERTEXWEIGHTHNV - gpVertexWeighthvNV C.GPVERTEXWEIGHTHVNV - gpVideoCaptureNV C.GPVIDEOCAPTURENV - gpVideoCaptureStreamParameterdvNV C.GPVIDEOCAPTURESTREAMPARAMETERDVNV - gpVideoCaptureStreamParameterfvNV C.GPVIDEOCAPTURESTREAMPARAMETERFVNV - gpVideoCaptureStreamParameterivNV C.GPVIDEOCAPTURESTREAMPARAMETERIVNV - gpViewport C.GPVIEWPORT - gpViewportArrayv C.GPVIEWPORTARRAYV - gpViewportIndexedf C.GPVIEWPORTINDEXEDF - gpViewportIndexedfv C.GPVIEWPORTINDEXEDFV - gpWaitSync C.GPWAITSYNC - gpWeightPathsNV C.GPWEIGHTPATHSNV - gpWeightPointerARB C.GPWEIGHTPOINTERARB - gpWeightbvARB C.GPWEIGHTBVARB - gpWeightdvARB C.GPWEIGHTDVARB - gpWeightfvARB C.GPWEIGHTFVARB - gpWeightivARB C.GPWEIGHTIVARB - gpWeightsvARB C.GPWEIGHTSVARB - gpWeightubvARB C.GPWEIGHTUBVARB - gpWeightuivARB C.GPWEIGHTUIVARB - gpWeightusvARB C.GPWEIGHTUSVARB - gpWindowPos2d C.GPWINDOWPOS2D - gpWindowPos2dARB C.GPWINDOWPOS2DARB - gpWindowPos2dMESA C.GPWINDOWPOS2DMESA - gpWindowPos2dv C.GPWINDOWPOS2DV - gpWindowPos2dvARB C.GPWINDOWPOS2DVARB - gpWindowPos2dvMESA C.GPWINDOWPOS2DVMESA - gpWindowPos2f C.GPWINDOWPOS2F - gpWindowPos2fARB C.GPWINDOWPOS2FARB - gpWindowPos2fMESA C.GPWINDOWPOS2FMESA - gpWindowPos2fv C.GPWINDOWPOS2FV - gpWindowPos2fvARB C.GPWINDOWPOS2FVARB - gpWindowPos2fvMESA C.GPWINDOWPOS2FVMESA - gpWindowPos2i C.GPWINDOWPOS2I - gpWindowPos2iARB C.GPWINDOWPOS2IARB - gpWindowPos2iMESA C.GPWINDOWPOS2IMESA - gpWindowPos2iv C.GPWINDOWPOS2IV - gpWindowPos2ivARB C.GPWINDOWPOS2IVARB - gpWindowPos2ivMESA C.GPWINDOWPOS2IVMESA - gpWindowPos2s C.GPWINDOWPOS2S - gpWindowPos2sARB C.GPWINDOWPOS2SARB - gpWindowPos2sMESA C.GPWINDOWPOS2SMESA - gpWindowPos2sv C.GPWINDOWPOS2SV - gpWindowPos2svARB C.GPWINDOWPOS2SVARB - gpWindowPos2svMESA C.GPWINDOWPOS2SVMESA - gpWindowPos3d C.GPWINDOWPOS3D - gpWindowPos3dARB C.GPWINDOWPOS3DARB - gpWindowPos3dMESA C.GPWINDOWPOS3DMESA - gpWindowPos3dv C.GPWINDOWPOS3DV - gpWindowPos3dvARB C.GPWINDOWPOS3DVARB - gpWindowPos3dvMESA C.GPWINDOWPOS3DVMESA - gpWindowPos3f C.GPWINDOWPOS3F - gpWindowPos3fARB C.GPWINDOWPOS3FARB - gpWindowPos3fMESA C.GPWINDOWPOS3FMESA - gpWindowPos3fv C.GPWINDOWPOS3FV - gpWindowPos3fvARB C.GPWINDOWPOS3FVARB - gpWindowPos3fvMESA C.GPWINDOWPOS3FVMESA - gpWindowPos3i C.GPWINDOWPOS3I - gpWindowPos3iARB C.GPWINDOWPOS3IARB - gpWindowPos3iMESA C.GPWINDOWPOS3IMESA - gpWindowPos3iv C.GPWINDOWPOS3IV - gpWindowPos3ivARB C.GPWINDOWPOS3IVARB - gpWindowPos3ivMESA C.GPWINDOWPOS3IVMESA - gpWindowPos3s C.GPWINDOWPOS3S - gpWindowPos3sARB C.GPWINDOWPOS3SARB - gpWindowPos3sMESA C.GPWINDOWPOS3SMESA - gpWindowPos3sv C.GPWINDOWPOS3SV - gpWindowPos3svARB C.GPWINDOWPOS3SVARB - gpWindowPos3svMESA C.GPWINDOWPOS3SVMESA - gpWindowPos4dMESA C.GPWINDOWPOS4DMESA - gpWindowPos4dvMESA C.GPWINDOWPOS4DVMESA - gpWindowPos4fMESA C.GPWINDOWPOS4FMESA - gpWindowPos4fvMESA C.GPWINDOWPOS4FVMESA - gpWindowPos4iMESA C.GPWINDOWPOS4IMESA - gpWindowPos4ivMESA C.GPWINDOWPOS4IVMESA - gpWindowPos4sMESA C.GPWINDOWPOS4SMESA - gpWindowPos4svMESA C.GPWINDOWPOS4SVMESA - gpWriteMaskEXT C.GPWRITEMASKEXT -) - -// Helper functions -func boolToInt(b bool) int { - if b { - return 1 - } - return 0 -} - -// operate on the accumulation buffer -func Accum(op uint32, value float32) { - C.glowAccum(gpAccum, (C.GLenum)(op), (C.GLfloat)(value)) -} -func AccumxOES(op uint32, value int32) { - C.glowAccumxOES(gpAccumxOES, (C.GLenum)(op), (C.GLfixed)(value)) -} -func ActiveProgramEXT(program uint32) { - C.glowActiveProgramEXT(gpActiveProgramEXT, (C.GLuint)(program)) -} - -// set the active program object for a program pipeline object -func ActiveShaderProgram(pipeline uint32, program uint32) { - C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program)) -} -func ActiveShaderProgramEXT(pipeline uint32, program uint32) { - C.glowActiveShaderProgramEXT(gpActiveShaderProgramEXT, (C.GLuint)(pipeline), (C.GLuint)(program)) -} -func ActiveStencilFaceEXT(face uint32) { - C.glowActiveStencilFaceEXT(gpActiveStencilFaceEXT, (C.GLenum)(face)) -} - -// select active texture unit -func ActiveTexture(texture uint32) { - C.glowActiveTexture(gpActiveTexture, (C.GLenum)(texture)) -} -func ActiveTextureARB(texture uint32) { - C.glowActiveTextureARB(gpActiveTextureARB, (C.GLenum)(texture)) -} -func ActiveVaryingNV(program uint32, name *uint8) { - C.glowActiveVaryingNV(gpActiveVaryingNV, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) -} -func AlphaFragmentOp1ATI(op uint32, dst uint32, dstMod uint32, arg1 uint32, arg1Rep uint32, arg1Mod uint32) { - C.glowAlphaFragmentOp1ATI(gpAlphaFragmentOp1ATI, (C.GLenum)(op), (C.GLuint)(dst), (C.GLuint)(dstMod), (C.GLuint)(arg1), (C.GLuint)(arg1Rep), (C.GLuint)(arg1Mod)) -} -func AlphaFragmentOp2ATI(op uint32, dst uint32, dstMod uint32, arg1 uint32, arg1Rep uint32, arg1Mod uint32, arg2 uint32, arg2Rep uint32, arg2Mod uint32) { - C.glowAlphaFragmentOp2ATI(gpAlphaFragmentOp2ATI, (C.GLenum)(op), (C.GLuint)(dst), (C.GLuint)(dstMod), (C.GLuint)(arg1), (C.GLuint)(arg1Rep), (C.GLuint)(arg1Mod), (C.GLuint)(arg2), (C.GLuint)(arg2Rep), (C.GLuint)(arg2Mod)) -} -func AlphaFragmentOp3ATI(op uint32, dst uint32, dstMod uint32, arg1 uint32, arg1Rep uint32, arg1Mod uint32, arg2 uint32, arg2Rep uint32, arg2Mod uint32, arg3 uint32, arg3Rep uint32, arg3Mod uint32) { - C.glowAlphaFragmentOp3ATI(gpAlphaFragmentOp3ATI, (C.GLenum)(op), (C.GLuint)(dst), (C.GLuint)(dstMod), (C.GLuint)(arg1), (C.GLuint)(arg1Rep), (C.GLuint)(arg1Mod), (C.GLuint)(arg2), (C.GLuint)(arg2Rep), (C.GLuint)(arg2Mod), (C.GLuint)(arg3), (C.GLuint)(arg3Rep), (C.GLuint)(arg3Mod)) -} - -// specify the alpha test function -func AlphaFunc(xfunc uint32, ref float32) { - C.glowAlphaFunc(gpAlphaFunc, (C.GLenum)(xfunc), (C.GLfloat)(ref)) -} -func AlphaFuncxOES(xfunc uint32, ref int32) { - C.glowAlphaFuncxOES(gpAlphaFuncxOES, (C.GLenum)(xfunc), (C.GLfixed)(ref)) -} -func ApplyTextureEXT(mode uint32) { - C.glowApplyTextureEXT(gpApplyTextureEXT, (C.GLenum)(mode)) -} -func AreProgramsResidentNV(n int32, programs *uint32, residences *bool) bool { - ret := C.glowAreProgramsResidentNV(gpAreProgramsResidentNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(programs)), (*C.GLboolean)(unsafe.Pointer(residences))) - return ret == TRUE -} - -// determine if textures are loaded in texture memory -func AreTexturesResident(n int32, textures *uint32, residences *bool) bool { - ret := C.glowAreTexturesResident(gpAreTexturesResident, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLboolean)(unsafe.Pointer(residences))) - return ret == TRUE -} -func AreTexturesResidentEXT(n int32, textures *uint32, residences *bool) bool { - ret := C.glowAreTexturesResidentEXT(gpAreTexturesResidentEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLboolean)(unsafe.Pointer(residences))) - return ret == TRUE -} - -// render a vertex using the specified vertex array element -func ArrayElement(i int32) { - C.glowArrayElement(gpArrayElement, (C.GLint)(i)) -} -func ArrayElementEXT(i int32) { - C.glowArrayElementEXT(gpArrayElementEXT, (C.GLint)(i)) -} -func ArrayObjectATI(array uint32, size int32, xtype uint32, stride int32, buffer uint32, offset uint32) { - C.glowArrayObjectATI(gpArrayObjectATI, (C.GLenum)(array), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLuint)(buffer), (C.GLuint)(offset)) -} -func AsyncMarkerSGIX(marker uint32) { - C.glowAsyncMarkerSGIX(gpAsyncMarkerSGIX, (C.GLuint)(marker)) -} -func AttachObjectARB(containerObj uintptr, obj uintptr) { - C.glowAttachObjectARB(gpAttachObjectARB, (C.GLhandleARB)(containerObj), (C.GLhandleARB)(obj)) -} - -// Attaches a shader object to a program object -func AttachShader(program uint32, shader uint32) { - C.glowAttachShader(gpAttachShader, (C.GLuint)(program), (C.GLuint)(shader)) -} - -// delimit the vertices of a primitive or a group of like primitives -func Begin(mode uint32) { - C.glowBegin(gpBegin, (C.GLenum)(mode)) -} -func BeginConditionalRenderNV(id uint32, mode uint32) { - C.glowBeginConditionalRenderNV(gpBeginConditionalRenderNV, (C.GLuint)(id), (C.GLenum)(mode)) -} -func BeginConditionalRenderNVX(id uint32) { - C.glowBeginConditionalRenderNVX(gpBeginConditionalRenderNVX, (C.GLuint)(id)) -} -func BeginFragmentShaderATI() { - C.glowBeginFragmentShaderATI(gpBeginFragmentShaderATI) -} -func BeginOcclusionQueryNV(id uint32) { - C.glowBeginOcclusionQueryNV(gpBeginOcclusionQueryNV, (C.GLuint)(id)) -} -func BeginPerfMonitorAMD(monitor uint32) { - C.glowBeginPerfMonitorAMD(gpBeginPerfMonitorAMD, (C.GLuint)(monitor)) -} -func BeginPerfQueryINTEL(queryHandle uint32) { - C.glowBeginPerfQueryINTEL(gpBeginPerfQueryINTEL, (C.GLuint)(queryHandle)) -} - -// delimit the boundaries of a query object -func BeginQuery(target uint32, id uint32) { - C.glowBeginQuery(gpBeginQuery, (C.GLenum)(target), (C.GLuint)(id)) -} -func BeginQueryARB(target uint32, id uint32) { - C.glowBeginQueryARB(gpBeginQueryARB, (C.GLenum)(target), (C.GLuint)(id)) -} -func BeginQueryIndexed(target uint32, index uint32, id uint32) { - C.glowBeginQueryIndexed(gpBeginQueryIndexed, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(id)) -} -func BeginTransformFeedbackEXT(primitiveMode uint32) { - C.glowBeginTransformFeedbackEXT(gpBeginTransformFeedbackEXT, (C.GLenum)(primitiveMode)) -} -func BeginTransformFeedbackNV(primitiveMode uint32) { - C.glowBeginTransformFeedbackNV(gpBeginTransformFeedbackNV, (C.GLenum)(primitiveMode)) -} -func BeginVertexShaderEXT() { - C.glowBeginVertexShaderEXT(gpBeginVertexShaderEXT) -} -func BeginVideoCaptureNV(video_capture_slot uint32) { - C.glowBeginVideoCaptureNV(gpBeginVideoCaptureNV, (C.GLuint)(video_capture_slot)) -} - -// Associates a generic vertex attribute index with a named attribute variable -func BindAttribLocation(program uint32, index uint32, name *uint8) { - C.glowBindAttribLocation(gpBindAttribLocation, (C.GLuint)(program), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name))) -} -func BindAttribLocationARB(programObj uintptr, index uint32, name *uint8) { - C.glowBindAttribLocationARB(gpBindAttribLocationARB, (C.GLhandleARB)(programObj), (C.GLuint)(index), (*C.GLcharARB)(unsafe.Pointer(name))) -} - -// bind a named buffer object -func BindBuffer(target uint32, buffer uint32) { - C.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer)) -} -func BindBufferARB(target uint32, buffer uint32) { - C.glowBindBufferARB(gpBindBufferARB, (C.GLenum)(target), (C.GLuint)(buffer)) -} -func BindBufferBaseEXT(target uint32, index uint32, buffer uint32) { - C.glowBindBufferBaseEXT(gpBindBufferBaseEXT, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer)) -} -func BindBufferBaseNV(target uint32, index uint32, buffer uint32) { - C.glowBindBufferBaseNV(gpBindBufferBaseNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer)) -} -func BindBufferOffsetEXT(target uint32, index uint32, buffer uint32, offset int) { - C.glowBindBufferOffsetEXT(gpBindBufferOffsetEXT, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset)) -} -func BindBufferOffsetNV(target uint32, index uint32, buffer uint32, offset int) { - C.glowBindBufferOffsetNV(gpBindBufferOffsetNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset)) -} -func BindBufferRangeEXT(target uint32, index uint32, buffer uint32, offset int, size int) { - C.glowBindBufferRangeEXT(gpBindBufferRangeEXT, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size)) -} -func BindBufferRangeNV(target uint32, index uint32, buffer uint32, offset int, size int) { - C.glowBindBufferRangeNV(gpBindBufferRangeNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size)) -} - -// bind one or more buffer objects to a sequence of indexed buffer targets -func BindBuffersBase(target uint32, first uint32, count int32, buffers *uint32) { - C.glowBindBuffersBase(gpBindBuffersBase, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers))) -} - -// bind ranges of one or more buffer objects to a sequence of indexed buffer targets -func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) { - C.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer(sizes))) -} -func BindFragDataLocationEXT(program uint32, color uint32, name *uint8) { - C.glowBindFragDataLocationEXT(gpBindFragDataLocationEXT, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name))) -} - -// bind a user-defined varying out variable to a fragment shader color number and index -func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *uint8) { - C.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name))) -} -func BindFragmentShaderATI(id uint32) { - C.glowBindFragmentShaderATI(gpBindFragmentShaderATI, (C.GLuint)(id)) -} - -// bind a framebuffer to a framebuffer target -func BindFramebuffer(target uint32, framebuffer uint32) { - C.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer)) -} -func BindFramebufferEXT(target uint32, framebuffer uint32) { - C.glowBindFramebufferEXT(gpBindFramebufferEXT, (C.GLenum)(target), (C.GLuint)(framebuffer)) -} - -// bind a level of a texture to an image unit -func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) { - C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format)) -} -func BindImageTextureEXT(index uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format int32) { - C.glowBindImageTextureEXT(gpBindImageTextureEXT, (C.GLuint)(index), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLint)(format)) -} - -// bind one or more named texture images to a sequence of consecutive image units -func BindImageTextures(first uint32, count int32, textures *uint32) { - C.glowBindImageTextures(gpBindImageTextures, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(textures))) -} -func BindLightParameterEXT(light uint32, value uint32) uint32 { - ret := C.glowBindLightParameterEXT(gpBindLightParameterEXT, (C.GLenum)(light), (C.GLenum)(value)) - return (uint32)(ret) -} -func BindMaterialParameterEXT(face uint32, value uint32) uint32 { - ret := C.glowBindMaterialParameterEXT(gpBindMaterialParameterEXT, (C.GLenum)(face), (C.GLenum)(value)) - return (uint32)(ret) -} -func BindMultiTextureEXT(texunit uint32, target uint32, texture uint32) { - C.glowBindMultiTextureEXT(gpBindMultiTextureEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLuint)(texture)) -} -func BindParameterEXT(value uint32) uint32 { - ret := C.glowBindParameterEXT(gpBindParameterEXT, (C.GLenum)(value)) - return (uint32)(ret) -} -func BindProgramARB(target uint32, program uint32) { - C.glowBindProgramARB(gpBindProgramARB, (C.GLenum)(target), (C.GLuint)(program)) -} -func BindProgramNV(target uint32, id uint32) { - C.glowBindProgramNV(gpBindProgramNV, (C.GLenum)(target), (C.GLuint)(id)) -} - -// bind a program pipeline to the current context -func BindProgramPipeline(pipeline uint32) { - C.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline)) -} -func BindProgramPipelineEXT(pipeline uint32) { - C.glowBindProgramPipelineEXT(gpBindProgramPipelineEXT, (C.GLuint)(pipeline)) -} - -// bind a renderbuffer to a renderbuffer target -func BindRenderbuffer(target uint32, renderbuffer uint32) { - C.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer)) -} -func BindRenderbufferEXT(target uint32, renderbuffer uint32) { - C.glowBindRenderbufferEXT(gpBindRenderbufferEXT, (C.GLenum)(target), (C.GLuint)(renderbuffer)) -} - -// bind a named sampler to a texturing target -func BindSampler(unit uint32, sampler uint32) { - C.glowBindSampler(gpBindSampler, (C.GLuint)(unit), (C.GLuint)(sampler)) -} - -// bind one or more named sampler objects to a sequence of consecutive sampler units -func BindSamplers(first uint32, count int32, samplers *uint32) { - C.glowBindSamplers(gpBindSamplers, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(samplers))) -} -func BindTexGenParameterEXT(unit uint32, coord uint32, value uint32) uint32 { - ret := C.glowBindTexGenParameterEXT(gpBindTexGenParameterEXT, (C.GLenum)(unit), (C.GLenum)(coord), (C.GLenum)(value)) - return (uint32)(ret) -} - -// bind a named texture to a texturing target -func BindTexture(target uint32, texture uint32) { - C.glowBindTexture(gpBindTexture, (C.GLenum)(target), (C.GLuint)(texture)) -} -func BindTextureEXT(target uint32, texture uint32) { - C.glowBindTextureEXT(gpBindTextureEXT, (C.GLenum)(target), (C.GLuint)(texture)) -} - -// bind an existing texture object to the specified texture unit -func BindTextureUnit(unit uint32, texture uint32) { - C.glowBindTextureUnit(gpBindTextureUnit, (C.GLuint)(unit), (C.GLuint)(texture)) -} -func BindTextureUnitParameterEXT(unit uint32, value uint32) uint32 { - ret := C.glowBindTextureUnitParameterEXT(gpBindTextureUnitParameterEXT, (C.GLenum)(unit), (C.GLenum)(value)) - return (uint32)(ret) -} - -// bind one or more named textures to a sequence of consecutive texture units -func BindTextures(first uint32, count int32, textures *uint32) { - C.glowBindTextures(gpBindTextures, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(textures))) -} - -// bind a transform feedback object -func BindTransformFeedback(target uint32, id uint32) { - C.glowBindTransformFeedback(gpBindTransformFeedback, (C.GLenum)(target), (C.GLuint)(id)) -} -func BindTransformFeedbackNV(target uint32, id uint32) { - C.glowBindTransformFeedbackNV(gpBindTransformFeedbackNV, (C.GLenum)(target), (C.GLuint)(id)) -} - -// bind a vertex array object -func BindVertexArray(array uint32) { - C.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array)) -} -func BindVertexArrayAPPLE(array uint32) { - C.glowBindVertexArrayAPPLE(gpBindVertexArrayAPPLE, (C.GLuint)(array)) -} - -// bind a buffer to a vertex buffer bind point -func BindVertexBuffer(bindingindex uint32, buffer uint32, offset int, stride int32) { - C.glowBindVertexBuffer(gpBindVertexBuffer, (C.GLuint)(bindingindex), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(stride)) -} - -// attach multiple buffer objects to a vertex array object -func BindVertexBuffers(first uint32, count int32, buffers *uint32, offsets *int, strides *int32) { - C.glowBindVertexBuffers(gpBindVertexBuffers, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizei)(unsafe.Pointer(strides))) -} -func BindVertexShaderEXT(id uint32) { - C.glowBindVertexShaderEXT(gpBindVertexShaderEXT, (C.GLuint)(id)) -} -func BindVideoCaptureStreamBufferNV(video_capture_slot uint32, stream uint32, frame_region uint32, offset int) { - C.glowBindVideoCaptureStreamBufferNV(gpBindVideoCaptureStreamBufferNV, (C.GLuint)(video_capture_slot), (C.GLuint)(stream), (C.GLenum)(frame_region), (C.GLintptrARB)(offset)) -} -func BindVideoCaptureStreamTextureNV(video_capture_slot uint32, stream uint32, frame_region uint32, target uint32, texture uint32) { - C.glowBindVideoCaptureStreamTextureNV(gpBindVideoCaptureStreamTextureNV, (C.GLuint)(video_capture_slot), (C.GLuint)(stream), (C.GLenum)(frame_region), (C.GLenum)(target), (C.GLuint)(texture)) -} -func Binormal3bEXT(bx int8, by int8, bz int8) { - C.glowBinormal3bEXT(gpBinormal3bEXT, (C.GLbyte)(bx), (C.GLbyte)(by), (C.GLbyte)(bz)) -} -func Binormal3bvEXT(v *int8) { - C.glowBinormal3bvEXT(gpBinormal3bvEXT, (*C.GLbyte)(unsafe.Pointer(v))) -} -func Binormal3dEXT(bx float64, by float64, bz float64) { - C.glowBinormal3dEXT(gpBinormal3dEXT, (C.GLdouble)(bx), (C.GLdouble)(by), (C.GLdouble)(bz)) -} -func Binormal3dvEXT(v *float64) { - C.glowBinormal3dvEXT(gpBinormal3dvEXT, (*C.GLdouble)(unsafe.Pointer(v))) -} -func Binormal3fEXT(bx float32, by float32, bz float32) { - C.glowBinormal3fEXT(gpBinormal3fEXT, (C.GLfloat)(bx), (C.GLfloat)(by), (C.GLfloat)(bz)) -} -func Binormal3fvEXT(v *float32) { - C.glowBinormal3fvEXT(gpBinormal3fvEXT, (*C.GLfloat)(unsafe.Pointer(v))) -} -func Binormal3iEXT(bx int32, by int32, bz int32) { - C.glowBinormal3iEXT(gpBinormal3iEXT, (C.GLint)(bx), (C.GLint)(by), (C.GLint)(bz)) -} -func Binormal3ivEXT(v *int32) { - C.glowBinormal3ivEXT(gpBinormal3ivEXT, (*C.GLint)(unsafe.Pointer(v))) -} -func Binormal3sEXT(bx int16, by int16, bz int16) { - C.glowBinormal3sEXT(gpBinormal3sEXT, (C.GLshort)(bx), (C.GLshort)(by), (C.GLshort)(bz)) -} -func Binormal3svEXT(v *int16) { - C.glowBinormal3svEXT(gpBinormal3svEXT, (*C.GLshort)(unsafe.Pointer(v))) -} -func BinormalPointerEXT(xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowBinormalPointerEXT(gpBinormalPointerEXT, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} - -// draw a bitmap -func Bitmap(width int32, height int32, xorig float32, yorig float32, xmove float32, ymove float32, bitmap *uint8) { - C.glowBitmap(gpBitmap, (C.GLsizei)(width), (C.GLsizei)(height), (C.GLfloat)(xorig), (C.GLfloat)(yorig), (C.GLfloat)(xmove), (C.GLfloat)(ymove), (*C.GLubyte)(unsafe.Pointer(bitmap))) -} -func BitmapxOES(width int32, height int32, xorig int32, yorig int32, xmove int32, ymove int32, bitmap *uint8) { - C.glowBitmapxOES(gpBitmapxOES, (C.GLsizei)(width), (C.GLsizei)(height), (C.GLfixed)(xorig), (C.GLfixed)(yorig), (C.GLfixed)(xmove), (C.GLfixed)(ymove), (*C.GLubyte)(unsafe.Pointer(bitmap))) -} -func BlendBarrierKHR() { - C.glowBlendBarrierKHR(gpBlendBarrierKHR) -} -func BlendBarrierNV() { - C.glowBlendBarrierNV(gpBlendBarrierNV) -} - -// set the blend color -func BlendColor(red float32, green float32, blue float32, alpha float32) { - C.glowBlendColor(gpBlendColor, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue), (C.GLfloat)(alpha)) -} -func BlendColorEXT(red float32, green float32, blue float32, alpha float32) { - C.glowBlendColorEXT(gpBlendColorEXT, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue), (C.GLfloat)(alpha)) -} -func BlendColorxOES(red int32, green int32, blue int32, alpha int32) { - C.glowBlendColorxOES(gpBlendColorxOES, (C.GLfixed)(red), (C.GLfixed)(green), (C.GLfixed)(blue), (C.GLfixed)(alpha)) -} - -// specify the equation used for both the RGB blend equation and the Alpha blend equation -func BlendEquation(mode uint32) { - C.glowBlendEquation(gpBlendEquation, (C.GLenum)(mode)) -} -func BlendEquationEXT(mode uint32) { - C.glowBlendEquationEXT(gpBlendEquationEXT, (C.GLenum)(mode)) -} -func BlendEquationIndexedAMD(buf uint32, mode uint32) { - C.glowBlendEquationIndexedAMD(gpBlendEquationIndexedAMD, (C.GLuint)(buf), (C.GLenum)(mode)) -} - -// set the RGB blend equation and the alpha blend equation separately -func BlendEquationSeparate(modeRGB uint32, modeAlpha uint32) { - C.glowBlendEquationSeparate(gpBlendEquationSeparate, (C.GLenum)(modeRGB), (C.GLenum)(modeAlpha)) -} -func BlendEquationSeparateEXT(modeRGB uint32, modeAlpha uint32) { - C.glowBlendEquationSeparateEXT(gpBlendEquationSeparateEXT, (C.GLenum)(modeRGB), (C.GLenum)(modeAlpha)) -} -func BlendEquationSeparateIndexedAMD(buf uint32, modeRGB uint32, modeAlpha uint32) { - C.glowBlendEquationSeparateIndexedAMD(gpBlendEquationSeparateIndexedAMD, (C.GLuint)(buf), (C.GLenum)(modeRGB), (C.GLenum)(modeAlpha)) -} -func BlendEquationSeparateiARB(buf uint32, modeRGB uint32, modeAlpha uint32) { - C.glowBlendEquationSeparateiARB(gpBlendEquationSeparateiARB, (C.GLuint)(buf), (C.GLenum)(modeRGB), (C.GLenum)(modeAlpha)) -} -func BlendEquationiARB(buf uint32, mode uint32) { - C.glowBlendEquationiARB(gpBlendEquationiARB, (C.GLuint)(buf), (C.GLenum)(mode)) -} - -// specify pixel arithmetic -func BlendFunc(sfactor uint32, dfactor uint32) { - C.glowBlendFunc(gpBlendFunc, (C.GLenum)(sfactor), (C.GLenum)(dfactor)) -} -func BlendFuncIndexedAMD(buf uint32, src uint32, dst uint32) { - C.glowBlendFuncIndexedAMD(gpBlendFuncIndexedAMD, (C.GLuint)(buf), (C.GLenum)(src), (C.GLenum)(dst)) -} - -// specify pixel arithmetic for RGB and alpha components separately -func BlendFuncSeparate(sfactorRGB uint32, dfactorRGB uint32, sfactorAlpha uint32, dfactorAlpha uint32) { - C.glowBlendFuncSeparate(gpBlendFuncSeparate, (C.GLenum)(sfactorRGB), (C.GLenum)(dfactorRGB), (C.GLenum)(sfactorAlpha), (C.GLenum)(dfactorAlpha)) -} -func BlendFuncSeparateEXT(sfactorRGB uint32, dfactorRGB uint32, sfactorAlpha uint32, dfactorAlpha uint32) { - C.glowBlendFuncSeparateEXT(gpBlendFuncSeparateEXT, (C.GLenum)(sfactorRGB), (C.GLenum)(dfactorRGB), (C.GLenum)(sfactorAlpha), (C.GLenum)(dfactorAlpha)) -} -func BlendFuncSeparateINGR(sfactorRGB uint32, dfactorRGB uint32, sfactorAlpha uint32, dfactorAlpha uint32) { - C.glowBlendFuncSeparateINGR(gpBlendFuncSeparateINGR, (C.GLenum)(sfactorRGB), (C.GLenum)(dfactorRGB), (C.GLenum)(sfactorAlpha), (C.GLenum)(dfactorAlpha)) -} -func BlendFuncSeparateIndexedAMD(buf uint32, srcRGB uint32, dstRGB uint32, srcAlpha uint32, dstAlpha uint32) { - C.glowBlendFuncSeparateIndexedAMD(gpBlendFuncSeparateIndexedAMD, (C.GLuint)(buf), (C.GLenum)(srcRGB), (C.GLenum)(dstRGB), (C.GLenum)(srcAlpha), (C.GLenum)(dstAlpha)) -} -func BlendFuncSeparateiARB(buf uint32, srcRGB uint32, dstRGB uint32, srcAlpha uint32, dstAlpha uint32) { - C.glowBlendFuncSeparateiARB(gpBlendFuncSeparateiARB, (C.GLuint)(buf), (C.GLenum)(srcRGB), (C.GLenum)(dstRGB), (C.GLenum)(srcAlpha), (C.GLenum)(dstAlpha)) -} -func BlendFunciARB(buf uint32, src uint32, dst uint32) { - C.glowBlendFunciARB(gpBlendFunciARB, (C.GLuint)(buf), (C.GLenum)(src), (C.GLenum)(dst)) -} -func BlendParameteriNV(pname uint32, value int32) { - C.glowBlendParameteriNV(gpBlendParameteriNV, (C.GLenum)(pname), (C.GLint)(value)) -} - -// copy a block of pixels from one framebuffer object to another -func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) { - C.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter)) -} -func BlitFramebufferEXT(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) { - C.glowBlitFramebufferEXT(gpBlitFramebufferEXT, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter)) -} - -// copy a block of pixels from one framebuffer object to another -func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) { - C.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1), (C.GLint)(dstY1), (C.GLbitfield)(mask), (C.GLenum)(filter)) -} -func BufferAddressRangeNV(pname uint32, index uint32, address uint64, length int) { - C.glowBufferAddressRangeNV(gpBufferAddressRangeNV, (C.GLenum)(pname), (C.GLuint)(index), (C.GLuint64EXT)(address), (C.GLsizeiptr)(length)) -} - -// creates and initializes a buffer object's data store -func BufferData(target uint32, size int, data unsafe.Pointer, usage uint32) { - C.glowBufferData(gpBufferData, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLenum)(usage)) -} -func BufferDataARB(target uint32, size int, data unsafe.Pointer, usage uint32) { - C.glowBufferDataARB(gpBufferDataARB, (C.GLenum)(target), (C.GLsizeiptrARB)(size), data, (C.GLenum)(usage)) -} -func BufferPageCommitmentARB(target uint32, offset int, size int32, commit bool) { - C.glowBufferPageCommitmentARB(gpBufferPageCommitmentARB, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizei)(size), (C.GLboolean)(boolToInt(commit))) -} -func BufferParameteriAPPLE(target uint32, pname uint32, param int32) { - C.glowBufferParameteriAPPLE(gpBufferParameteriAPPLE, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} - -// creates and initializes a buffer object's immutable data store -func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) { - C.glowBufferStorage(gpBufferStorage, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags)) -} - -// updates a subset of a buffer object's data store -func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) { - C.glowBufferSubData(gpBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) -} -func BufferSubDataARB(target uint32, offset int, size int, data unsafe.Pointer) { - C.glowBufferSubDataARB(gpBufferSubDataARB, (C.GLenum)(target), (C.GLintptrARB)(offset), (C.GLsizeiptrARB)(size), data) -} - -// execute a display list -func CallList(list uint32) { - C.glowCallList(gpCallList, (C.GLuint)(list)) -} - -// execute a list of display lists -func CallLists(n int32, xtype uint32, lists unsafe.Pointer) { - C.glowCallLists(gpCallLists, (C.GLsizei)(n), (C.GLenum)(xtype), lists) -} - -// check the completeness status of a framebuffer -func CheckFramebufferStatus(target uint32) uint32 { - ret := C.glowCheckFramebufferStatus(gpCheckFramebufferStatus, (C.GLenum)(target)) - return (uint32)(ret) -} -func CheckFramebufferStatusEXT(target uint32) uint32 { - ret := C.glowCheckFramebufferStatusEXT(gpCheckFramebufferStatusEXT, (C.GLenum)(target)) - return (uint32)(ret) -} - -// check the completeness status of a framebuffer -func CheckNamedFramebufferStatus(framebuffer uint32, target uint32) uint32 { - ret := C.glowCheckNamedFramebufferStatus(gpCheckNamedFramebufferStatus, (C.GLuint)(framebuffer), (C.GLenum)(target)) - return (uint32)(ret) -} -func CheckNamedFramebufferStatusEXT(framebuffer uint32, target uint32) uint32 { - ret := C.glowCheckNamedFramebufferStatusEXT(gpCheckNamedFramebufferStatusEXT, (C.GLuint)(framebuffer), (C.GLenum)(target)) - return (uint32)(ret) -} -func ClampColorARB(target uint32, clamp uint32) { - C.glowClampColorARB(gpClampColorARB, (C.GLenum)(target), (C.GLenum)(clamp)) -} - -// clear buffers to preset values -func Clear(mask uint32) { - C.glowClear(gpClear, (C.GLbitfield)(mask)) -} - -// specify clear values for the accumulation buffer -func ClearAccum(red float32, green float32, blue float32, alpha float32) { - C.glowClearAccum(gpClearAccum, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue), (C.GLfloat)(alpha)) -} -func ClearAccumxOES(red int32, green int32, blue int32, alpha int32) { - C.glowClearAccumxOES(gpClearAccumxOES, (C.GLfixed)(red), (C.GLfixed)(green), (C.GLfixed)(blue), (C.GLfixed)(alpha)) -} - -// fill a buffer object's data store with a fixed value -func ClearBufferData(target uint32, internalformat uint32, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowClearBufferData(gpClearBufferData, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLenum)(format), (C.GLenum)(xtype), data) -} - -// fill all or part of buffer object's data store with a fixed value -func ClearBufferSubData(target uint32, internalformat uint32, offset int, size int, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowClearBufferSubData(gpClearBufferSubData, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLintptr)(offset), (C.GLsizeiptr)(size), (C.GLenum)(format), (C.GLenum)(xtype), data) -} - -// specify clear values for the color buffers -func ClearColor(red float32, green float32, blue float32, alpha float32) { - C.glowClearColor(gpClearColor, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue), (C.GLfloat)(alpha)) -} -func ClearColorIiEXT(red int32, green int32, blue int32, alpha int32) { - C.glowClearColorIiEXT(gpClearColorIiEXT, (C.GLint)(red), (C.GLint)(green), (C.GLint)(blue), (C.GLint)(alpha)) -} -func ClearColorIuiEXT(red uint32, green uint32, blue uint32, alpha uint32) { - C.glowClearColorIuiEXT(gpClearColorIuiEXT, (C.GLuint)(red), (C.GLuint)(green), (C.GLuint)(blue), (C.GLuint)(alpha)) -} -func ClearColorxOES(red int32, green int32, blue int32, alpha int32) { - C.glowClearColorxOES(gpClearColorxOES, (C.GLfixed)(red), (C.GLfixed)(green), (C.GLfixed)(blue), (C.GLfixed)(alpha)) -} - -// specify the clear value for the depth buffer -func ClearDepth(depth float64) { - C.glowClearDepth(gpClearDepth, (C.GLdouble)(depth)) -} -func ClearDepthdNV(depth float64) { - C.glowClearDepthdNV(gpClearDepthdNV, (C.GLdouble)(depth)) -} -func ClearDepthf(d float32) { - C.glowClearDepthf(gpClearDepthf, (C.GLfloat)(d)) -} -func ClearDepthfOES(depth float32) { - C.glowClearDepthfOES(gpClearDepthfOES, (C.GLclampf)(depth)) -} -func ClearDepthxOES(depth int32) { - C.glowClearDepthxOES(gpClearDepthxOES, (C.GLfixed)(depth)) -} - -// specify the clear value for the color index buffers -func ClearIndex(c float32) { - C.glowClearIndex(gpClearIndex, (C.GLfloat)(c)) -} - -// fill a buffer object's data store with a fixed value -func ClearNamedBufferData(buffer uint32, internalformat uint32, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowClearNamedBufferData(gpClearNamedBufferData, (C.GLuint)(buffer), (C.GLenum)(internalformat), (C.GLenum)(format), (C.GLenum)(xtype), data) -} -func ClearNamedBufferDataEXT(buffer uint32, internalformat uint32, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowClearNamedBufferDataEXT(gpClearNamedBufferDataEXT, (C.GLuint)(buffer), (C.GLenum)(internalformat), (C.GLenum)(format), (C.GLenum)(xtype), data) -} - -// fill all or part of buffer object's data store with a fixed value -func ClearNamedBufferSubData(buffer uint32, internalformat uint32, offset int, size int32, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowClearNamedBufferSubData(gpClearNamedBufferSubData, (C.GLuint)(buffer), (C.GLenum)(internalformat), (C.GLintptr)(offset), (C.GLsizei)(size), (C.GLenum)(format), (C.GLenum)(xtype), data) -} -func ClearNamedBufferSubDataEXT(buffer uint32, internalformat uint32, offset int, size int, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowClearNamedBufferSubDataEXT(gpClearNamedBufferSubDataEXT, (C.GLuint)(buffer), (C.GLenum)(internalformat), (C.GLsizeiptr)(offset), (C.GLsizeiptr)(size), (C.GLenum)(format), (C.GLenum)(xtype), data) -} -func ClearNamedFramebufferfi(framebuffer uint32, buffer uint32, depth float32, stencil int32) { - C.glowClearNamedFramebufferfi(gpClearNamedFramebufferfi, (C.GLuint)(framebuffer), (C.GLenum)(buffer), (C.GLfloat)(depth), (C.GLint)(stencil)) -} -func ClearNamedFramebufferfv(framebuffer uint32, buffer uint32, drawbuffer int32, value *float32) { - C.glowClearNamedFramebufferfv(gpClearNamedFramebufferfv, (C.GLuint)(framebuffer), (C.GLenum)(buffer), (C.GLint)(drawbuffer), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ClearNamedFramebufferiv(framebuffer uint32, buffer uint32, drawbuffer int32, value *int32) { - C.glowClearNamedFramebufferiv(gpClearNamedFramebufferiv, (C.GLuint)(framebuffer), (C.GLenum)(buffer), (C.GLint)(drawbuffer), (*C.GLint)(unsafe.Pointer(value))) -} -func ClearNamedFramebufferuiv(framebuffer uint32, buffer uint32, drawbuffer int32, value *uint32) { - C.glowClearNamedFramebufferuiv(gpClearNamedFramebufferuiv, (C.GLuint)(framebuffer), (C.GLenum)(buffer), (C.GLint)(drawbuffer), (*C.GLuint)(unsafe.Pointer(value))) -} - -// specify the clear value for the stencil buffer -func ClearStencil(s int32) { - C.glowClearStencil(gpClearStencil, (C.GLint)(s)) -} - -// fills all a texture image with a constant value -func ClearTexImage(texture uint32, level int32, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowClearTexImage(gpClearTexImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), data) -} - -// fills all or part of a texture image with a constant value -func ClearTexSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowClearTexSubImage(gpClearTexSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), data) -} - -// select active texture unit -func ClientActiveTexture(texture uint32) { - C.glowClientActiveTexture(gpClientActiveTexture, (C.GLenum)(texture)) -} -func ClientActiveTextureARB(texture uint32) { - C.glowClientActiveTextureARB(gpClientActiveTextureARB, (C.GLenum)(texture)) -} -func ClientActiveVertexStreamATI(stream uint32) { - C.glowClientActiveVertexStreamATI(gpClientActiveVertexStreamATI, (C.GLenum)(stream)) -} -func ClientAttribDefaultEXT(mask uint32) { - C.glowClientAttribDefaultEXT(gpClientAttribDefaultEXT, (C.GLbitfield)(mask)) -} - -// block and wait for a sync object to become signaled -func ClientWaitSync(sync unsafe.Pointer, flags uint32, timeout uint64) uint32 { - ret := C.glowClientWaitSync(gpClientWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout)) - return (uint32)(ret) -} - -// control clip coordinate to window coordinate behavior -func ClipControl(origin uint32, depth uint32) { - C.glowClipControl(gpClipControl, (C.GLenum)(origin), (C.GLenum)(depth)) -} - -// specify a plane against which all geometry is clipped -func ClipPlane(plane uint32, equation *float64) { - C.glowClipPlane(gpClipPlane, (C.GLenum)(plane), (*C.GLdouble)(unsafe.Pointer(equation))) -} -func ClipPlanefOES(plane uint32, equation *float32) { - C.glowClipPlanefOES(gpClipPlanefOES, (C.GLenum)(plane), (*C.GLfloat)(unsafe.Pointer(equation))) -} -func ClipPlanexOES(plane uint32, equation *int32) { - C.glowClipPlanexOES(gpClipPlanexOES, (C.GLenum)(plane), (*C.GLfixed)(unsafe.Pointer(equation))) -} -func Color3b(red int8, green int8, blue int8) { - C.glowColor3b(gpColor3b, (C.GLbyte)(red), (C.GLbyte)(green), (C.GLbyte)(blue)) -} -func Color3bv(v *int8) { - C.glowColor3bv(gpColor3bv, (*C.GLbyte)(unsafe.Pointer(v))) -} -func Color3d(red float64, green float64, blue float64) { - C.glowColor3d(gpColor3d, (C.GLdouble)(red), (C.GLdouble)(green), (C.GLdouble)(blue)) -} -func Color3dv(v *float64) { - C.glowColor3dv(gpColor3dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func Color3f(red float32, green float32, blue float32) { - C.glowColor3f(gpColor3f, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue)) -} -func Color3fVertex3fSUN(r float32, g float32, b float32, x float32, y float32, z float32) { - C.glowColor3fVertex3fSUN(gpColor3fVertex3fSUN, (C.GLfloat)(r), (C.GLfloat)(g), (C.GLfloat)(b), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func Color3fVertex3fvSUN(c *float32, v *float32) { - C.glowColor3fVertex3fvSUN(gpColor3fVertex3fvSUN, (*C.GLfloat)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func Color3fv(v *float32) { - C.glowColor3fv(gpColor3fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func Color3hNV(red uint16, green uint16, blue uint16) { - C.glowColor3hNV(gpColor3hNV, (C.GLhalfNV)(red), (C.GLhalfNV)(green), (C.GLhalfNV)(blue)) -} -func Color3hvNV(v *uint16) { - C.glowColor3hvNV(gpColor3hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func Color3i(red int32, green int32, blue int32) { - C.glowColor3i(gpColor3i, (C.GLint)(red), (C.GLint)(green), (C.GLint)(blue)) -} -func Color3iv(v *int32) { - C.glowColor3iv(gpColor3iv, (*C.GLint)(unsafe.Pointer(v))) -} -func Color3s(red int16, green int16, blue int16) { - C.glowColor3s(gpColor3s, (C.GLshort)(red), (C.GLshort)(green), (C.GLshort)(blue)) -} -func Color3sv(v *int16) { - C.glowColor3sv(gpColor3sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func Color3ub(red uint8, green uint8, blue uint8) { - C.glowColor3ub(gpColor3ub, (C.GLubyte)(red), (C.GLubyte)(green), (C.GLubyte)(blue)) -} -func Color3ubv(v *uint8) { - C.glowColor3ubv(gpColor3ubv, (*C.GLubyte)(unsafe.Pointer(v))) -} -func Color3ui(red uint32, green uint32, blue uint32) { - C.glowColor3ui(gpColor3ui, (C.GLuint)(red), (C.GLuint)(green), (C.GLuint)(blue)) -} -func Color3uiv(v *uint32) { - C.glowColor3uiv(gpColor3uiv, (*C.GLuint)(unsafe.Pointer(v))) -} -func Color3us(red uint16, green uint16, blue uint16) { - C.glowColor3us(gpColor3us, (C.GLushort)(red), (C.GLushort)(green), (C.GLushort)(blue)) -} -func Color3usv(v *uint16) { - C.glowColor3usv(gpColor3usv, (*C.GLushort)(unsafe.Pointer(v))) -} -func Color3xOES(red int32, green int32, blue int32) { - C.glowColor3xOES(gpColor3xOES, (C.GLfixed)(red), (C.GLfixed)(green), (C.GLfixed)(blue)) -} -func Color3xvOES(components *int32) { - C.glowColor3xvOES(gpColor3xvOES, (*C.GLfixed)(unsafe.Pointer(components))) -} -func Color4b(red int8, green int8, blue int8, alpha int8) { - C.glowColor4b(gpColor4b, (C.GLbyte)(red), (C.GLbyte)(green), (C.GLbyte)(blue), (C.GLbyte)(alpha)) -} -func Color4bv(v *int8) { - C.glowColor4bv(gpColor4bv, (*C.GLbyte)(unsafe.Pointer(v))) -} -func Color4d(red float64, green float64, blue float64, alpha float64) { - C.glowColor4d(gpColor4d, (C.GLdouble)(red), (C.GLdouble)(green), (C.GLdouble)(blue), (C.GLdouble)(alpha)) -} -func Color4dv(v *float64) { - C.glowColor4dv(gpColor4dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func Color4f(red float32, green float32, blue float32, alpha float32) { - C.glowColor4f(gpColor4f, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue), (C.GLfloat)(alpha)) -} -func Color4fNormal3fVertex3fSUN(r float32, g float32, b float32, a float32, nx float32, ny float32, nz float32, x float32, y float32, z float32) { - C.glowColor4fNormal3fVertex3fSUN(gpColor4fNormal3fVertex3fSUN, (C.GLfloat)(r), (C.GLfloat)(g), (C.GLfloat)(b), (C.GLfloat)(a), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func Color4fNormal3fVertex3fvSUN(c *float32, n *float32, v *float32) { - C.glowColor4fNormal3fVertex3fvSUN(gpColor4fNormal3fVertex3fvSUN, (*C.GLfloat)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func Color4fv(v *float32) { - C.glowColor4fv(gpColor4fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func Color4hNV(red uint16, green uint16, blue uint16, alpha uint16) { - C.glowColor4hNV(gpColor4hNV, (C.GLhalfNV)(red), (C.GLhalfNV)(green), (C.GLhalfNV)(blue), (C.GLhalfNV)(alpha)) -} -func Color4hvNV(v *uint16) { - C.glowColor4hvNV(gpColor4hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func Color4i(red int32, green int32, blue int32, alpha int32) { - C.glowColor4i(gpColor4i, (C.GLint)(red), (C.GLint)(green), (C.GLint)(blue), (C.GLint)(alpha)) -} -func Color4iv(v *int32) { - C.glowColor4iv(gpColor4iv, (*C.GLint)(unsafe.Pointer(v))) -} -func Color4s(red int16, green int16, blue int16, alpha int16) { - C.glowColor4s(gpColor4s, (C.GLshort)(red), (C.GLshort)(green), (C.GLshort)(blue), (C.GLshort)(alpha)) -} -func Color4sv(v *int16) { - C.glowColor4sv(gpColor4sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func Color4ub(red uint8, green uint8, blue uint8, alpha uint8) { - C.glowColor4ub(gpColor4ub, (C.GLubyte)(red), (C.GLubyte)(green), (C.GLubyte)(blue), (C.GLubyte)(alpha)) -} -func Color4ubVertex2fSUN(r uint8, g uint8, b uint8, a uint8, x float32, y float32) { - C.glowColor4ubVertex2fSUN(gpColor4ubVertex2fSUN, (C.GLubyte)(r), (C.GLubyte)(g), (C.GLubyte)(b), (C.GLubyte)(a), (C.GLfloat)(x), (C.GLfloat)(y)) -} -func Color4ubVertex2fvSUN(c *uint8, v *float32) { - C.glowColor4ubVertex2fvSUN(gpColor4ubVertex2fvSUN, (*C.GLubyte)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func Color4ubVertex3fSUN(r uint8, g uint8, b uint8, a uint8, x float32, y float32, z float32) { - C.glowColor4ubVertex3fSUN(gpColor4ubVertex3fSUN, (C.GLubyte)(r), (C.GLubyte)(g), (C.GLubyte)(b), (C.GLubyte)(a), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func Color4ubVertex3fvSUN(c *uint8, v *float32) { - C.glowColor4ubVertex3fvSUN(gpColor4ubVertex3fvSUN, (*C.GLubyte)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func Color4ubv(v *uint8) { - C.glowColor4ubv(gpColor4ubv, (*C.GLubyte)(unsafe.Pointer(v))) -} -func Color4ui(red uint32, green uint32, blue uint32, alpha uint32) { - C.glowColor4ui(gpColor4ui, (C.GLuint)(red), (C.GLuint)(green), (C.GLuint)(blue), (C.GLuint)(alpha)) -} -func Color4uiv(v *uint32) { - C.glowColor4uiv(gpColor4uiv, (*C.GLuint)(unsafe.Pointer(v))) -} -func Color4us(red uint16, green uint16, blue uint16, alpha uint16) { - C.glowColor4us(gpColor4us, (C.GLushort)(red), (C.GLushort)(green), (C.GLushort)(blue), (C.GLushort)(alpha)) -} -func Color4usv(v *uint16) { - C.glowColor4usv(gpColor4usv, (*C.GLushort)(unsafe.Pointer(v))) -} -func Color4xOES(red int32, green int32, blue int32, alpha int32) { - C.glowColor4xOES(gpColor4xOES, (C.GLfixed)(red), (C.GLfixed)(green), (C.GLfixed)(blue), (C.GLfixed)(alpha)) -} -func Color4xvOES(components *int32) { - C.glowColor4xvOES(gpColor4xvOES, (*C.GLfixed)(unsafe.Pointer(components))) -} -func ColorFormatNV(size int32, xtype uint32, stride int32) { - C.glowColorFormatNV(gpColorFormatNV, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride)) -} -func ColorFragmentOp1ATI(op uint32, dst uint32, dstMask uint32, dstMod uint32, arg1 uint32, arg1Rep uint32, arg1Mod uint32) { - C.glowColorFragmentOp1ATI(gpColorFragmentOp1ATI, (C.GLenum)(op), (C.GLuint)(dst), (C.GLuint)(dstMask), (C.GLuint)(dstMod), (C.GLuint)(arg1), (C.GLuint)(arg1Rep), (C.GLuint)(arg1Mod)) -} -func ColorFragmentOp2ATI(op uint32, dst uint32, dstMask uint32, dstMod uint32, arg1 uint32, arg1Rep uint32, arg1Mod uint32, arg2 uint32, arg2Rep uint32, arg2Mod uint32) { - C.glowColorFragmentOp2ATI(gpColorFragmentOp2ATI, (C.GLenum)(op), (C.GLuint)(dst), (C.GLuint)(dstMask), (C.GLuint)(dstMod), (C.GLuint)(arg1), (C.GLuint)(arg1Rep), (C.GLuint)(arg1Mod), (C.GLuint)(arg2), (C.GLuint)(arg2Rep), (C.GLuint)(arg2Mod)) -} -func ColorFragmentOp3ATI(op uint32, dst uint32, dstMask uint32, dstMod uint32, arg1 uint32, arg1Rep uint32, arg1Mod uint32, arg2 uint32, arg2Rep uint32, arg2Mod uint32, arg3 uint32, arg3Rep uint32, arg3Mod uint32) { - C.glowColorFragmentOp3ATI(gpColorFragmentOp3ATI, (C.GLenum)(op), (C.GLuint)(dst), (C.GLuint)(dstMask), (C.GLuint)(dstMod), (C.GLuint)(arg1), (C.GLuint)(arg1Rep), (C.GLuint)(arg1Mod), (C.GLuint)(arg2), (C.GLuint)(arg2Rep), (C.GLuint)(arg2Mod), (C.GLuint)(arg3), (C.GLuint)(arg3Rep), (C.GLuint)(arg3Mod)) -} -func ColorMask(red bool, green bool, blue bool, alpha bool) { - C.glowColorMask(gpColorMask, (C.GLboolean)(boolToInt(red)), (C.GLboolean)(boolToInt(green)), (C.GLboolean)(boolToInt(blue)), (C.GLboolean)(boolToInt(alpha))) -} -func ColorMaskIndexedEXT(index uint32, r bool, g bool, b bool, a bool) { - C.glowColorMaskIndexedEXT(gpColorMaskIndexedEXT, (C.GLuint)(index), (C.GLboolean)(boolToInt(r)), (C.GLboolean)(boolToInt(g)), (C.GLboolean)(boolToInt(b)), (C.GLboolean)(boolToInt(a))) -} - -// cause a material color to track the current color -func ColorMaterial(face uint32, mode uint32) { - C.glowColorMaterial(gpColorMaterial, (C.GLenum)(face), (C.GLenum)(mode)) -} - -// define an array of colors -func ColorPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowColorPointer(gpColorPointer, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func ColorPointerEXT(size int32, xtype uint32, stride int32, count int32, pointer unsafe.Pointer) { - C.glowColorPointerEXT(gpColorPointerEXT, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLsizei)(count), pointer) -} -func ColorPointerListIBM(size int32, xtype uint32, stride int32, pointer *unsafe.Pointer, ptrstride int32) { - C.glowColorPointerListIBM(gpColorPointerListIBM, (C.GLint)(size), (C.GLenum)(xtype), (C.GLint)(stride), pointer, (C.GLint)(ptrstride)) -} -func ColorPointervINTEL(size int32, xtype uint32, pointer *unsafe.Pointer) { - C.glowColorPointervINTEL(gpColorPointervINTEL, (C.GLint)(size), (C.GLenum)(xtype), pointer) -} -func ColorSubTableEXT(target uint32, start int32, count int32, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowColorSubTableEXT(gpColorSubTableEXT, (C.GLenum)(target), (C.GLsizei)(start), (C.GLsizei)(count), (C.GLenum)(format), (C.GLenum)(xtype), data) -} -func ColorTableEXT(target uint32, internalFormat uint32, width int32, format uint32, xtype uint32, table unsafe.Pointer) { - C.glowColorTableEXT(gpColorTableEXT, (C.GLenum)(target), (C.GLenum)(internalFormat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), table) -} -func ColorTableParameterfvSGI(target uint32, pname uint32, params *float32) { - C.glowColorTableParameterfvSGI(gpColorTableParameterfvSGI, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ColorTableParameterivSGI(target uint32, pname uint32, params *int32) { - C.glowColorTableParameterivSGI(gpColorTableParameterivSGI, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func ColorTableSGI(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, table unsafe.Pointer) { - C.glowColorTableSGI(gpColorTableSGI, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), table) -} -func CombinerInputNV(stage uint32, portion uint32, variable uint32, input uint32, mapping uint32, componentUsage uint32) { - C.glowCombinerInputNV(gpCombinerInputNV, (C.GLenum)(stage), (C.GLenum)(portion), (C.GLenum)(variable), (C.GLenum)(input), (C.GLenum)(mapping), (C.GLenum)(componentUsage)) -} -func CombinerOutputNV(stage uint32, portion uint32, abOutput uint32, cdOutput uint32, sumOutput uint32, scale uint32, bias uint32, abDotProduct bool, cdDotProduct bool, muxSum bool) { - C.glowCombinerOutputNV(gpCombinerOutputNV, (C.GLenum)(stage), (C.GLenum)(portion), (C.GLenum)(abOutput), (C.GLenum)(cdOutput), (C.GLenum)(sumOutput), (C.GLenum)(scale), (C.GLenum)(bias), (C.GLboolean)(boolToInt(abDotProduct)), (C.GLboolean)(boolToInt(cdDotProduct)), (C.GLboolean)(boolToInt(muxSum))) -} -func CombinerParameterfNV(pname uint32, param float32) { - C.glowCombinerParameterfNV(gpCombinerParameterfNV, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func CombinerParameterfvNV(pname uint32, params *float32) { - C.glowCombinerParameterfvNV(gpCombinerParameterfvNV, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func CombinerParameteriNV(pname uint32, param int32) { - C.glowCombinerParameteriNV(gpCombinerParameteriNV, (C.GLenum)(pname), (C.GLint)(param)) -} -func CombinerParameterivNV(pname uint32, params *int32) { - C.glowCombinerParameterivNV(gpCombinerParameterivNV, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func CombinerStageParameterfvNV(stage uint32, pname uint32, params *float32) { - C.glowCombinerStageParameterfvNV(gpCombinerStageParameterfvNV, (C.GLenum)(stage), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} - -// Compiles a shader object -func CompileShader(shader uint32) { - C.glowCompileShader(gpCompileShader, (C.GLuint)(shader)) -} -func CompileShaderARB(shaderObj uintptr) { - C.glowCompileShaderARB(gpCompileShaderARB, (C.GLhandleARB)(shaderObj)) -} -func CompileShaderIncludeARB(shader uint32, count int32, path **uint8, length *int32) { - C.glowCompileShaderIncludeARB(gpCompileShaderIncludeARB, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(path)), (*C.GLint)(unsafe.Pointer(length))) -} -func CompressedMultiTexImage1DEXT(texunit uint32, target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedMultiTexImage1DEXT(gpCompressedMultiTexImage1DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), bits) -} -func CompressedMultiTexImage2DEXT(texunit uint32, target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedMultiTexImage2DEXT(gpCompressedMultiTexImage2DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), bits) -} -func CompressedMultiTexImage3DEXT(texunit uint32, target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedMultiTexImage3DEXT(gpCompressedMultiTexImage3DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), bits) -} -func CompressedMultiTexSubImage1DEXT(texunit uint32, target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedMultiTexSubImage1DEXT(gpCompressedMultiTexSubImage1DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), bits) -} -func CompressedMultiTexSubImage2DEXT(texunit uint32, target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedMultiTexSubImage2DEXT(gpCompressedMultiTexSubImage2DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), bits) -} -func CompressedMultiTexSubImage3DEXT(texunit uint32, target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedMultiTexSubImage3DEXT(gpCompressedMultiTexSubImage3DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), bits) -} - -// specify a one-dimensional texture image in a compressed format -func CompressedTexImage1D(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexImage1D(gpCompressedTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), data) -} -func CompressedTexImage1DARB(target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexImage1DARB(gpCompressedTexImage1DARB, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), data) -} - -// specify a two-dimensional texture image in a compressed format -func CompressedTexImage2D(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexImage2D(gpCompressedTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data) -} -func CompressedTexImage2DARB(target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexImage2DARB(gpCompressedTexImage2DARB, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), data) -} - -// specify a three-dimensional texture image in a compressed format -func CompressedTexImage3D(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexImage3D(gpCompressedTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), data) -} -func CompressedTexImage3DARB(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexImage3DARB(gpCompressedTexImage3DARB, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), data) -} - -// specify a one-dimensional texture subimage in a compressed format -func CompressedTexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexSubImage1D(gpCompressedTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} -func CompressedTexSubImage1DARB(target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexSubImage1DARB(gpCompressedTexSubImage1DARB, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} - -// specify a two-dimensional texture subimage in a compressed format -func CompressedTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexSubImage2D(gpCompressedTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} -func CompressedTexSubImage2DARB(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexSubImage2DARB(gpCompressedTexSubImage2DARB, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} - -// specify a three-dimensional texture subimage in a compressed format -func CompressedTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexSubImage3D(gpCompressedTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} -func CompressedTexSubImage3DARB(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTexSubImage3DARB(gpCompressedTexSubImage3DARB, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} -func CompressedTextureImage1DEXT(texture uint32, target uint32, level int32, internalformat uint32, width int32, border int32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedTextureImage1DEXT(gpCompressedTextureImage1DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLsizei)(imageSize), bits) -} -func CompressedTextureImage2DEXT(texture uint32, target uint32, level int32, internalformat uint32, width int32, height int32, border int32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedTextureImage2DEXT(gpCompressedTextureImage2DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLsizei)(imageSize), bits) -} -func CompressedTextureImage3DEXT(texture uint32, target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedTextureImage3DEXT(gpCompressedTextureImage3DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLsizei)(imageSize), bits) -} - -// specify a one-dimensional texture subimage in a compressed format -func CompressedTextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTextureSubImage1D(gpCompressedTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} -func CompressedTextureSubImage1DEXT(texture uint32, target uint32, level int32, xoffset int32, width int32, format uint32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedTextureSubImage1DEXT(gpCompressedTextureSubImage1DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLsizei)(imageSize), bits) -} - -// specify a two-dimensional texture subimage in a compressed format -func CompressedTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTextureSubImage2D(gpCompressedTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} -func CompressedTextureSubImage2DEXT(texture uint32, target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedTextureSubImage2DEXT(gpCompressedTextureSubImage2DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLsizei)(imageSize), bits) -} - -// specify a three-dimensional texture subimage in a compressed format -func CompressedTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, data unsafe.Pointer) { - C.glowCompressedTextureSubImage3D(gpCompressedTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), data) -} -func CompressedTextureSubImage3DEXT(texture uint32, target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, imageSize int32, bits unsafe.Pointer) { - C.glowCompressedTextureSubImage3DEXT(gpCompressedTextureSubImage3DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLsizei)(imageSize), bits) -} -func ConvolutionFilter1DEXT(target uint32, internalformat uint32, width int32, format uint32, xtype uint32, image unsafe.Pointer) { - C.glowConvolutionFilter1DEXT(gpConvolutionFilter1DEXT, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), image) -} -func ConvolutionFilter2DEXT(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, image unsafe.Pointer) { - C.glowConvolutionFilter2DEXT(gpConvolutionFilter2DEXT, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), image) -} -func ConvolutionParameterfEXT(target uint32, pname uint32, params float32) { - C.glowConvolutionParameterfEXT(gpConvolutionParameterfEXT, (C.GLenum)(target), (C.GLenum)(pname), (C.GLfloat)(params)) -} -func ConvolutionParameterfvEXT(target uint32, pname uint32, params *float32) { - C.glowConvolutionParameterfvEXT(gpConvolutionParameterfvEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ConvolutionParameteriEXT(target uint32, pname uint32, params int32) { - C.glowConvolutionParameteriEXT(gpConvolutionParameteriEXT, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(params)) -} -func ConvolutionParameterivEXT(target uint32, pname uint32, params *int32) { - C.glowConvolutionParameterivEXT(gpConvolutionParameterivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func ConvolutionParameterxOES(target uint32, pname uint32, param int32) { - C.glowConvolutionParameterxOES(gpConvolutionParameterxOES, (C.GLenum)(target), (C.GLenum)(pname), (C.GLfixed)(param)) -} -func ConvolutionParameterxvOES(target uint32, pname uint32, params *int32) { - C.glowConvolutionParameterxvOES(gpConvolutionParameterxvOES, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} - -// copy all or part of the data store of a buffer object to the data store of another buffer object -func CopyBufferSubData(readTarget uint32, writeTarget uint32, readOffset int, writeOffset int, size int) { - C.glowCopyBufferSubData(gpCopyBufferSubData, (C.GLenum)(readTarget), (C.GLenum)(writeTarget), (C.GLintptr)(readOffset), (C.GLintptr)(writeOffset), (C.GLsizeiptr)(size)) -} -func CopyColorSubTableEXT(target uint32, start int32, x int32, y int32, width int32) { - C.glowCopyColorSubTableEXT(gpCopyColorSubTableEXT, (C.GLenum)(target), (C.GLsizei)(start), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width)) -} -func CopyColorTableSGI(target uint32, internalformat uint32, x int32, y int32, width int32) { - C.glowCopyColorTableSGI(gpCopyColorTableSGI, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width)) -} -func CopyConvolutionFilter1DEXT(target uint32, internalformat uint32, x int32, y int32, width int32) { - C.glowCopyConvolutionFilter1DEXT(gpCopyConvolutionFilter1DEXT, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width)) -} -func CopyConvolutionFilter2DEXT(target uint32, internalformat uint32, x int32, y int32, width int32, height int32) { - C.glowCopyConvolutionFilter2DEXT(gpCopyConvolutionFilter2DEXT, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// perform a raw data copy between two images -func CopyImageSubData(srcName uint32, srcTarget uint32, srcLevel int32, srcX int32, srcY int32, srcZ int32, dstName uint32, dstTarget uint32, dstLevel int32, dstX int32, dstY int32, dstZ int32, srcWidth int32, srcHeight int32, srcDepth int32) { - C.glowCopyImageSubData(gpCopyImageSubData, (C.GLuint)(srcName), (C.GLenum)(srcTarget), (C.GLint)(srcLevel), (C.GLint)(srcX), (C.GLint)(srcY), (C.GLint)(srcZ), (C.GLuint)(dstName), (C.GLenum)(dstTarget), (C.GLint)(dstLevel), (C.GLint)(dstX), (C.GLint)(dstY), (C.GLint)(dstZ), (C.GLsizei)(srcWidth), (C.GLsizei)(srcHeight), (C.GLsizei)(srcDepth)) -} -func CopyImageSubDataNV(srcName uint32, srcTarget uint32, srcLevel int32, srcX int32, srcY int32, srcZ int32, dstName uint32, dstTarget uint32, dstLevel int32, dstX int32, dstY int32, dstZ int32, width int32, height int32, depth int32) { - C.glowCopyImageSubDataNV(gpCopyImageSubDataNV, (C.GLuint)(srcName), (C.GLenum)(srcTarget), (C.GLint)(srcLevel), (C.GLint)(srcX), (C.GLint)(srcY), (C.GLint)(srcZ), (C.GLuint)(dstName), (C.GLenum)(dstTarget), (C.GLint)(dstLevel), (C.GLint)(dstX), (C.GLint)(dstY), (C.GLint)(dstZ), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth)) -} -func CopyMultiTexImage1DEXT(texunit uint32, target uint32, level int32, internalformat uint32, x int32, y int32, width int32, border int32) { - C.glowCopyMultiTexImage1DEXT(gpCopyMultiTexImage1DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLint)(border)) -} -func CopyMultiTexImage2DEXT(texunit uint32, target uint32, level int32, internalformat uint32, x int32, y int32, width int32, height int32, border int32) { - C.glowCopyMultiTexImage2DEXT(gpCopyMultiTexImage2DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border)) -} -func CopyMultiTexSubImage1DEXT(texunit uint32, target uint32, level int32, xoffset int32, x int32, y int32, width int32) { - C.glowCopyMultiTexSubImage1DEXT(gpCopyMultiTexSubImage1DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width)) -} -func CopyMultiTexSubImage2DEXT(texunit uint32, target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyMultiTexSubImage2DEXT(gpCopyMultiTexSubImage2DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func CopyMultiTexSubImage3DEXT(texunit uint32, target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyMultiTexSubImage3DEXT(gpCopyMultiTexSubImage3DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// copy all or part of the data store of a buffer object to the data store of another buffer object -func CopyNamedBufferSubData(readBuffer uint32, writeBuffer uint32, readOffset int, writeOffset int, size int32) { - C.glowCopyNamedBufferSubData(gpCopyNamedBufferSubData, (C.GLuint)(readBuffer), (C.GLuint)(writeBuffer), (C.GLintptr)(readOffset), (C.GLintptr)(writeOffset), (C.GLsizei)(size)) -} -func CopyPathNV(resultPath uint32, srcPath uint32) { - C.glowCopyPathNV(gpCopyPathNV, (C.GLuint)(resultPath), (C.GLuint)(srcPath)) -} - -// copy pixels in the frame buffer -func CopyPixels(x int32, y int32, width int32, height int32, xtype uint32) { - C.glowCopyPixels(gpCopyPixels, (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(xtype)) -} - -// copy pixels into a 1D texture image -func CopyTexImage1D(target uint32, level int32, internalformat uint32, x int32, y int32, width int32, border int32) { - C.glowCopyTexImage1D(gpCopyTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLint)(border)) -} -func CopyTexImage1DEXT(target uint32, level int32, internalformat uint32, x int32, y int32, width int32, border int32) { - C.glowCopyTexImage1DEXT(gpCopyTexImage1DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLint)(border)) -} - -// copy pixels into a 2D texture image -func CopyTexImage2D(target uint32, level int32, internalformat uint32, x int32, y int32, width int32, height int32, border int32) { - C.glowCopyTexImage2D(gpCopyTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border)) -} -func CopyTexImage2DEXT(target uint32, level int32, internalformat uint32, x int32, y int32, width int32, height int32, border int32) { - C.glowCopyTexImage2DEXT(gpCopyTexImage2DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border)) -} - -// copy a one-dimensional texture subimage -func CopyTexSubImage1D(target uint32, level int32, xoffset int32, x int32, y int32, width int32) { - C.glowCopyTexSubImage1D(gpCopyTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width)) -} -func CopyTexSubImage1DEXT(target uint32, level int32, xoffset int32, x int32, y int32, width int32) { - C.glowCopyTexSubImage1DEXT(gpCopyTexSubImage1DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width)) -} - -// copy a two-dimensional texture subimage -func CopyTexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyTexSubImage2D(gpCopyTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func CopyTexSubImage2DEXT(target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyTexSubImage2DEXT(gpCopyTexSubImage2DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// copy a three-dimensional texture subimage -func CopyTexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyTexSubImage3D(gpCopyTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func CopyTexSubImage3DEXT(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyTexSubImage3DEXT(gpCopyTexSubImage3DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func CopyTextureImage1DEXT(texture uint32, target uint32, level int32, internalformat uint32, x int32, y int32, width int32, border int32) { - C.glowCopyTextureImage1DEXT(gpCopyTextureImage1DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLint)(border)) -} -func CopyTextureImage2DEXT(texture uint32, target uint32, level int32, internalformat uint32, x int32, y int32, width int32, height int32, border int32) { - C.glowCopyTextureImage2DEXT(gpCopyTextureImage2DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border)) -} - -// copy a one-dimensional texture subimage -func CopyTextureSubImage1D(texture uint32, level int32, xoffset int32, x int32, y int32, width int32) { - C.glowCopyTextureSubImage1D(gpCopyTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width)) -} -func CopyTextureSubImage1DEXT(texture uint32, target uint32, level int32, xoffset int32, x int32, y int32, width int32) { - C.glowCopyTextureSubImage1DEXT(gpCopyTextureSubImage1DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width)) -} - -// copy a two-dimensional texture subimage -func CopyTextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyTextureSubImage2D(gpCopyTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func CopyTextureSubImage2DEXT(texture uint32, target uint32, level int32, xoffset int32, yoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyTextureSubImage2DEXT(gpCopyTextureSubImage2DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// copy a three-dimensional texture subimage -func CopyTextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyTextureSubImage3D(gpCopyTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func CopyTextureSubImage3DEXT(texture uint32, target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, x int32, y int32, width int32, height int32) { - C.glowCopyTextureSubImage3DEXT(gpCopyTextureSubImage3DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func CoverFillPathInstancedNV(numPaths int32, pathNameType uint32, paths unsafe.Pointer, pathBase uint32, coverMode uint32, transformType uint32, transformValues *float32) { - C.glowCoverFillPathInstancedNV(gpCoverFillPathInstancedNV, (C.GLsizei)(numPaths), (C.GLenum)(pathNameType), paths, (C.GLuint)(pathBase), (C.GLenum)(coverMode), (C.GLenum)(transformType), (*C.GLfloat)(unsafe.Pointer(transformValues))) -} -func CoverFillPathNV(path uint32, coverMode uint32) { - C.glowCoverFillPathNV(gpCoverFillPathNV, (C.GLuint)(path), (C.GLenum)(coverMode)) -} -func CoverStrokePathInstancedNV(numPaths int32, pathNameType uint32, paths unsafe.Pointer, pathBase uint32, coverMode uint32, transformType uint32, transformValues *float32) { - C.glowCoverStrokePathInstancedNV(gpCoverStrokePathInstancedNV, (C.GLsizei)(numPaths), (C.GLenum)(pathNameType), paths, (C.GLuint)(pathBase), (C.GLenum)(coverMode), (C.GLenum)(transformType), (*C.GLfloat)(unsafe.Pointer(transformValues))) -} -func CoverStrokePathNV(path uint32, coverMode uint32) { - C.glowCoverStrokePathNV(gpCoverStrokePathNV, (C.GLuint)(path), (C.GLenum)(coverMode)) -} - -// create buffer objects -func CreateBuffers(n int32, buffers *uint32) { - C.glowCreateBuffers(gpCreateBuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(buffers))) -} - -// create framebuffer objects -func CreateFramebuffers(n int32, framebuffers *uint32) { - C.glowCreateFramebuffers(gpCreateFramebuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers))) -} -func CreatePerfQueryINTEL(queryId uint32, queryHandle *uint32) { - C.glowCreatePerfQueryINTEL(gpCreatePerfQueryINTEL, (C.GLuint)(queryId), (*C.GLuint)(unsafe.Pointer(queryHandle))) -} - -// Creates a program object -func CreateProgram() uint32 { - ret := C.glowCreateProgram(gpCreateProgram) - return (uint32)(ret) -} -func CreateProgramObjectARB() uintptr { - ret := C.glowCreateProgramObjectARB(gpCreateProgramObjectARB) - return (uintptr)(ret) -} - -// create program pipeline objects -func CreateProgramPipelines(n int32, pipelines *uint32) { - C.glowCreateProgramPipelines(gpCreateProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines))) -} - -// create query objects -func CreateQueries(target uint32, n int32, ids *uint32) { - C.glowCreateQueries(gpCreateQueries, (C.GLenum)(target), (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} - -// create renderbuffer objects -func CreateRenderbuffers(n int32, renderbuffers *uint32) { - C.glowCreateRenderbuffers(gpCreateRenderbuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers))) -} - -// create sampler objects -func CreateSamplers(n int32, samplers *uint32) { - C.glowCreateSamplers(gpCreateSamplers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(samplers))) -} - -// Creates a shader object -func CreateShader(xtype uint32) uint32 { - ret := C.glowCreateShader(gpCreateShader, (C.GLenum)(xtype)) - return (uint32)(ret) -} -func CreateShaderObjectARB(shaderType uint32) uintptr { - ret := C.glowCreateShaderObjectARB(gpCreateShaderObjectARB, (C.GLenum)(shaderType)) - return (uintptr)(ret) -} -func CreateShaderProgramEXT(xtype uint32, xstring *uint8) uint32 { - ret := C.glowCreateShaderProgramEXT(gpCreateShaderProgramEXT, (C.GLenum)(xtype), (*C.GLchar)(unsafe.Pointer(xstring))) - return (uint32)(ret) -} - -// create a stand-alone program from an array of null-terminated source code strings -func CreateShaderProgramv(xtype uint32, count int32, strings **uint8) uint32 { - ret := C.glowCreateShaderProgramv(gpCreateShaderProgramv, (C.GLenum)(xtype), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(strings))) - return (uint32)(ret) -} -func CreateShaderProgramvEXT(xtype uint32, count int32, strings **uint8) uint32 { - ret := C.glowCreateShaderProgramvEXT(gpCreateShaderProgramvEXT, (C.GLenum)(xtype), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(strings))) - return (uint32)(ret) -} -func CreateSyncFromCLeventARB(context *C.struct__cl_context, event *C.struct__cl_event, flags uint32) unsafe.Pointer { - ret := C.glowCreateSyncFromCLeventARB(gpCreateSyncFromCLeventARB, (*C.struct__cl_context)(unsafe.Pointer(context)), (*C.struct__cl_event)(unsafe.Pointer(event)), (C.GLbitfield)(flags)) - return (unsafe.Pointer)(ret) -} - -// create texture objects -func CreateTextures(target uint32, n int32, textures *uint32) { - C.glowCreateTextures(gpCreateTextures, (C.GLenum)(target), (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures))) -} - -// create transform feedback objects -func CreateTransformFeedbacks(n int32, ids *uint32) { - C.glowCreateTransformFeedbacks(gpCreateTransformFeedbacks, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} - -// create vertex array objects -func CreateVertexArrays(n int32, arrays *uint32) { - C.glowCreateVertexArrays(gpCreateVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays))) -} - -// specify whether front- or back-facing facets can be culled -func CullFace(mode uint32) { - C.glowCullFace(gpCullFace, (C.GLenum)(mode)) -} -func CullParameterdvEXT(pname uint32, params *float64) { - C.glowCullParameterdvEXT(gpCullParameterdvEXT, (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func CullParameterfvEXT(pname uint32, params *float32) { - C.glowCullParameterfvEXT(gpCullParameterfvEXT, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func CurrentPaletteMatrixARB(index int32) { - C.glowCurrentPaletteMatrixARB(gpCurrentPaletteMatrixARB, (C.GLint)(index)) -} - -// specify a callback to receive debugging messages from the GL -func DebugMessageCallback(callback DebugProc, userParam unsafe.Pointer) { - userDebugCallback = callback - C.glowDebugMessageCallback(gpDebugMessageCallback, (C.GLDEBUGPROC)(unsafe.Pointer(&callback)), userParam) -} -func DebugMessageCallbackAMD(callback C.GLDEBUGPROCAMD, userParam unsafe.Pointer) { - C.glowDebugMessageCallbackAMD(gpDebugMessageCallbackAMD, (C.GLDEBUGPROCAMD)(callback), userParam) -} -func DebugMessageCallbackARB(callback DebugProc, userParam unsafe.Pointer) { - userDebugCallback = callback - C.glowDebugMessageCallbackARB(gpDebugMessageCallbackARB, (C.GLDEBUGPROCARB)(unsafe.Pointer(&callback)), userParam) -} -func DebugMessageCallbackKHR(callback DebugProc, userParam unsafe.Pointer) { - userDebugCallback = callback - C.glowDebugMessageCallbackKHR(gpDebugMessageCallbackKHR, (C.GLDEBUGPROCKHR)(unsafe.Pointer(&callback)), userParam) -} - -// control the reporting of debug messages in a debug context -func DebugMessageControl(source uint32, xtype uint32, severity uint32, count int32, ids *uint32, enabled bool) { - C.glowDebugMessageControl(gpDebugMessageControl, (C.GLenum)(source), (C.GLenum)(xtype), (C.GLenum)(severity), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(ids)), (C.GLboolean)(boolToInt(enabled))) -} -func DebugMessageControlARB(source uint32, xtype uint32, severity uint32, count int32, ids *uint32, enabled bool) { - C.glowDebugMessageControlARB(gpDebugMessageControlARB, (C.GLenum)(source), (C.GLenum)(xtype), (C.GLenum)(severity), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(ids)), (C.GLboolean)(boolToInt(enabled))) -} -func DebugMessageControlKHR(source uint32, xtype uint32, severity uint32, count int32, ids *uint32, enabled bool) { - C.glowDebugMessageControlKHR(gpDebugMessageControlKHR, (C.GLenum)(source), (C.GLenum)(xtype), (C.GLenum)(severity), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(ids)), (C.GLboolean)(boolToInt(enabled))) -} -func DebugMessageEnableAMD(category uint32, severity uint32, count int32, ids *uint32, enabled bool) { - C.glowDebugMessageEnableAMD(gpDebugMessageEnableAMD, (C.GLenum)(category), (C.GLenum)(severity), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(ids)), (C.GLboolean)(boolToInt(enabled))) -} - -// inject an application-supplied message into the debug message queue -func DebugMessageInsert(source uint32, xtype uint32, id uint32, severity uint32, length int32, buf *uint8) { - C.glowDebugMessageInsert(gpDebugMessageInsert, (C.GLenum)(source), (C.GLenum)(xtype), (C.GLuint)(id), (C.GLenum)(severity), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(buf))) -} -func DebugMessageInsertAMD(category uint32, severity uint32, id uint32, length int32, buf *uint8) { - C.glowDebugMessageInsertAMD(gpDebugMessageInsertAMD, (C.GLenum)(category), (C.GLenum)(severity), (C.GLuint)(id), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(buf))) -} -func DebugMessageInsertARB(source uint32, xtype uint32, id uint32, severity uint32, length int32, buf *uint8) { - C.glowDebugMessageInsertARB(gpDebugMessageInsertARB, (C.GLenum)(source), (C.GLenum)(xtype), (C.GLuint)(id), (C.GLenum)(severity), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(buf))) -} -func DebugMessageInsertKHR(source uint32, xtype uint32, id uint32, severity uint32, length int32, buf *uint8) { - C.glowDebugMessageInsertKHR(gpDebugMessageInsertKHR, (C.GLenum)(source), (C.GLenum)(xtype), (C.GLuint)(id), (C.GLenum)(severity), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(buf))) -} -func DeformSGIX(mask uint32) { - C.glowDeformSGIX(gpDeformSGIX, (C.GLbitfield)(mask)) -} -func DeformationMap3dSGIX(target uint32, u1 float64, u2 float64, ustride int32, uorder int32, v1 float64, v2 float64, vstride int32, vorder int32, w1 float64, w2 float64, wstride int32, worder int32, points *float64) { - C.glowDeformationMap3dSGIX(gpDeformationMap3dSGIX, (C.GLenum)(target), (C.GLdouble)(u1), (C.GLdouble)(u2), (C.GLint)(ustride), (C.GLint)(uorder), (C.GLdouble)(v1), (C.GLdouble)(v2), (C.GLint)(vstride), (C.GLint)(vorder), (C.GLdouble)(w1), (C.GLdouble)(w2), (C.GLint)(wstride), (C.GLint)(worder), (*C.GLdouble)(unsafe.Pointer(points))) -} -func DeformationMap3fSGIX(target uint32, u1 float32, u2 float32, ustride int32, uorder int32, v1 float32, v2 float32, vstride int32, vorder int32, w1 float32, w2 float32, wstride int32, worder int32, points *float32) { - C.glowDeformationMap3fSGIX(gpDeformationMap3fSGIX, (C.GLenum)(target), (C.GLfloat)(u1), (C.GLfloat)(u2), (C.GLint)(ustride), (C.GLint)(uorder), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLint)(vstride), (C.GLint)(vorder), (C.GLfloat)(w1), (C.GLfloat)(w2), (C.GLint)(wstride), (C.GLint)(worder), (*C.GLfloat)(unsafe.Pointer(points))) -} -func DeleteAsyncMarkersSGIX(marker uint32, xrange int32) { - C.glowDeleteAsyncMarkersSGIX(gpDeleteAsyncMarkersSGIX, (C.GLuint)(marker), (C.GLsizei)(xrange)) -} - -// delete named buffer objects -func DeleteBuffers(n int32, buffers *uint32) { - C.glowDeleteBuffers(gpDeleteBuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(buffers))) -} -func DeleteBuffersARB(n int32, buffers *uint32) { - C.glowDeleteBuffersARB(gpDeleteBuffersARB, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(buffers))) -} -func DeleteFencesAPPLE(n int32, fences *uint32) { - C.glowDeleteFencesAPPLE(gpDeleteFencesAPPLE, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(fences))) -} -func DeleteFencesNV(n int32, fences *uint32) { - C.glowDeleteFencesNV(gpDeleteFencesNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(fences))) -} -func DeleteFragmentShaderATI(id uint32) { - C.glowDeleteFragmentShaderATI(gpDeleteFragmentShaderATI, (C.GLuint)(id)) -} - -// delete framebuffer objects -func DeleteFramebuffers(n int32, framebuffers *uint32) { - C.glowDeleteFramebuffers(gpDeleteFramebuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers))) -} -func DeleteFramebuffersEXT(n int32, framebuffers *uint32) { - C.glowDeleteFramebuffersEXT(gpDeleteFramebuffersEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers))) -} - -// delete a contiguous group of display lists -func DeleteLists(list uint32, xrange int32) { - C.glowDeleteLists(gpDeleteLists, (C.GLuint)(list), (C.GLsizei)(xrange)) -} -func DeleteNamedStringARB(namelen int32, name *uint8) { - C.glowDeleteNamedStringARB(gpDeleteNamedStringARB, (C.GLint)(namelen), (*C.GLchar)(unsafe.Pointer(name))) -} -func DeleteNamesAMD(identifier uint32, num uint32, names *uint32) { - C.glowDeleteNamesAMD(gpDeleteNamesAMD, (C.GLenum)(identifier), (C.GLuint)(num), (*C.GLuint)(unsafe.Pointer(names))) -} -func DeleteObjectARB(obj uintptr) { - C.glowDeleteObjectARB(gpDeleteObjectARB, (C.GLhandleARB)(obj)) -} -func DeleteOcclusionQueriesNV(n int32, ids *uint32) { - C.glowDeleteOcclusionQueriesNV(gpDeleteOcclusionQueriesNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} -func DeletePathsNV(path uint32, xrange int32) { - C.glowDeletePathsNV(gpDeletePathsNV, (C.GLuint)(path), (C.GLsizei)(xrange)) -} -func DeletePerfMonitorsAMD(n int32, monitors *uint32) { - C.glowDeletePerfMonitorsAMD(gpDeletePerfMonitorsAMD, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(monitors))) -} -func DeletePerfQueryINTEL(queryHandle uint32) { - C.glowDeletePerfQueryINTEL(gpDeletePerfQueryINTEL, (C.GLuint)(queryHandle)) -} - -// Deletes a program object -func DeleteProgram(program uint32) { - C.glowDeleteProgram(gpDeleteProgram, (C.GLuint)(program)) -} - -// delete program pipeline objects -func DeleteProgramPipelines(n int32, pipelines *uint32) { - C.glowDeleteProgramPipelines(gpDeleteProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines))) -} -func DeleteProgramPipelinesEXT(n int32, pipelines *uint32) { - C.glowDeleteProgramPipelinesEXT(gpDeleteProgramPipelinesEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines))) -} -func DeleteProgramsARB(n int32, programs *uint32) { - C.glowDeleteProgramsARB(gpDeleteProgramsARB, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(programs))) -} -func DeleteProgramsNV(n int32, programs *uint32) { - C.glowDeleteProgramsNV(gpDeleteProgramsNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(programs))) -} - -// delete named query objects -func DeleteQueries(n int32, ids *uint32) { - C.glowDeleteQueries(gpDeleteQueries, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} -func DeleteQueriesARB(n int32, ids *uint32) { - C.glowDeleteQueriesARB(gpDeleteQueriesARB, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} - -// delete renderbuffer objects -func DeleteRenderbuffers(n int32, renderbuffers *uint32) { - C.glowDeleteRenderbuffers(gpDeleteRenderbuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers))) -} -func DeleteRenderbuffersEXT(n int32, renderbuffers *uint32) { - C.glowDeleteRenderbuffersEXT(gpDeleteRenderbuffersEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers))) -} - -// delete named sampler objects -func DeleteSamplers(count int32, samplers *uint32) { - C.glowDeleteSamplers(gpDeleteSamplers, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(samplers))) -} - -// Deletes a shader object -func DeleteShader(shader uint32) { - C.glowDeleteShader(gpDeleteShader, (C.GLuint)(shader)) -} - -// delete a sync object -func DeleteSync(sync unsafe.Pointer) { - C.glowDeleteSync(gpDeleteSync, (C.GLsync)(sync)) -} - -// delete named textures -func DeleteTextures(n int32, textures *uint32) { - C.glowDeleteTextures(gpDeleteTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures))) -} -func DeleteTexturesEXT(n int32, textures *uint32) { - C.glowDeleteTexturesEXT(gpDeleteTexturesEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures))) -} - -// delete transform feedback objects -func DeleteTransformFeedbacks(n int32, ids *uint32) { - C.glowDeleteTransformFeedbacks(gpDeleteTransformFeedbacks, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} -func DeleteTransformFeedbacksNV(n int32, ids *uint32) { - C.glowDeleteTransformFeedbacksNV(gpDeleteTransformFeedbacksNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} - -// delete vertex array objects -func DeleteVertexArrays(n int32, arrays *uint32) { - C.glowDeleteVertexArrays(gpDeleteVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays))) -} -func DeleteVertexArraysAPPLE(n int32, arrays *uint32) { - C.glowDeleteVertexArraysAPPLE(gpDeleteVertexArraysAPPLE, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays))) -} -func DeleteVertexShaderEXT(id uint32) { - C.glowDeleteVertexShaderEXT(gpDeleteVertexShaderEXT, (C.GLuint)(id)) -} -func DepthBoundsEXT(zmin float64, zmax float64) { - C.glowDepthBoundsEXT(gpDepthBoundsEXT, (C.GLclampd)(zmin), (C.GLclampd)(zmax)) -} -func DepthBoundsdNV(zmin float64, zmax float64) { - C.glowDepthBoundsdNV(gpDepthBoundsdNV, (C.GLdouble)(zmin), (C.GLdouble)(zmax)) -} - -// specify the value used for depth buffer comparisons -func DepthFunc(xfunc uint32) { - C.glowDepthFunc(gpDepthFunc, (C.GLenum)(xfunc)) -} - -// enable or disable writing into the depth buffer -func DepthMask(flag bool) { - C.glowDepthMask(gpDepthMask, (C.GLboolean)(boolToInt(flag))) -} - -// specify mapping of depth values from normalized device coordinates to window coordinates -func DepthRange(near float64, far float64) { - C.glowDepthRange(gpDepthRange, (C.GLdouble)(near), (C.GLdouble)(far)) -} -func DepthRangeArrayv(first uint32, count int32, v *float64) { - C.glowDepthRangeArrayv(gpDepthRangeArrayv, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(v))) -} - -// specify mapping of depth values from normalized device coordinates to window coordinates for a specified viewport -func DepthRangeIndexed(index uint32, n float64, f float64) { - C.glowDepthRangeIndexed(gpDepthRangeIndexed, (C.GLuint)(index), (C.GLdouble)(n), (C.GLdouble)(f)) -} -func DepthRangedNV(zNear float64, zFar float64) { - C.glowDepthRangedNV(gpDepthRangedNV, (C.GLdouble)(zNear), (C.GLdouble)(zFar)) -} -func DepthRangef(n float32, f float32) { - C.glowDepthRangef(gpDepthRangef, (C.GLfloat)(n), (C.GLfloat)(f)) -} -func DepthRangefOES(n float32, f float32) { - C.glowDepthRangefOES(gpDepthRangefOES, (C.GLclampf)(n), (C.GLclampf)(f)) -} -func DepthRangexOES(n int32, f int32) { - C.glowDepthRangexOES(gpDepthRangexOES, (C.GLfixed)(n), (C.GLfixed)(f)) -} -func DetachObjectARB(containerObj uintptr, attachedObj uintptr) { - C.glowDetachObjectARB(gpDetachObjectARB, (C.GLhandleARB)(containerObj), (C.GLhandleARB)(attachedObj)) -} - -// Detaches a shader object from a program object to which it is attached -func DetachShader(program uint32, shader uint32) { - C.glowDetachShader(gpDetachShader, (C.GLuint)(program), (C.GLuint)(shader)) -} -func DetailTexFuncSGIS(target uint32, n int32, points *float32) { - C.glowDetailTexFuncSGIS(gpDetailTexFuncSGIS, (C.GLenum)(target), (C.GLsizei)(n), (*C.GLfloat)(unsafe.Pointer(points))) -} -func Disable(cap uint32) { - C.glowDisable(gpDisable, (C.GLenum)(cap)) -} -func DisableClientState(array uint32) { - C.glowDisableClientState(gpDisableClientState, (C.GLenum)(array)) -} -func DisableClientStateIndexedEXT(array uint32, index uint32) { - C.glowDisableClientStateIndexedEXT(gpDisableClientStateIndexedEXT, (C.GLenum)(array), (C.GLuint)(index)) -} -func DisableClientStateiEXT(array uint32, index uint32) { - C.glowDisableClientStateiEXT(gpDisableClientStateiEXT, (C.GLenum)(array), (C.GLuint)(index)) -} -func DisableIndexedEXT(target uint32, index uint32) { - C.glowDisableIndexedEXT(gpDisableIndexedEXT, (C.GLenum)(target), (C.GLuint)(index)) -} -func DisableVariantClientStateEXT(id uint32) { - C.glowDisableVariantClientStateEXT(gpDisableVariantClientStateEXT, (C.GLuint)(id)) -} - -// Enable or disable a generic vertex attribute array -func DisableVertexArrayAttrib(vaobj uint32, index uint32) { - C.glowDisableVertexArrayAttrib(gpDisableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index)) -} -func DisableVertexArrayAttribEXT(vaobj uint32, index uint32) { - C.glowDisableVertexArrayAttribEXT(gpDisableVertexArrayAttribEXT, (C.GLuint)(vaobj), (C.GLuint)(index)) -} -func DisableVertexArrayEXT(vaobj uint32, array uint32) { - C.glowDisableVertexArrayEXT(gpDisableVertexArrayEXT, (C.GLuint)(vaobj), (C.GLenum)(array)) -} -func DisableVertexAttribAPPLE(index uint32, pname uint32) { - C.glowDisableVertexAttribAPPLE(gpDisableVertexAttribAPPLE, (C.GLuint)(index), (C.GLenum)(pname)) -} - -// Enable or disable a generic vertex attribute array -func DisableVertexAttribArray(index uint32) { - C.glowDisableVertexAttribArray(gpDisableVertexAttribArray, (C.GLuint)(index)) -} -func DisableVertexAttribArrayARB(index uint32) { - C.glowDisableVertexAttribArrayARB(gpDisableVertexAttribArrayARB, (C.GLuint)(index)) -} - -// launch one or more compute work groups -func DispatchCompute(num_groups_x uint32, num_groups_y uint32, num_groups_z uint32) { - C.glowDispatchCompute(gpDispatchCompute, (C.GLuint)(num_groups_x), (C.GLuint)(num_groups_y), (C.GLuint)(num_groups_z)) -} -func DispatchComputeGroupSizeARB(num_groups_x uint32, num_groups_y uint32, num_groups_z uint32, group_size_x uint32, group_size_y uint32, group_size_z uint32) { - C.glowDispatchComputeGroupSizeARB(gpDispatchComputeGroupSizeARB, (C.GLuint)(num_groups_x), (C.GLuint)(num_groups_y), (C.GLuint)(num_groups_z), (C.GLuint)(group_size_x), (C.GLuint)(group_size_y), (C.GLuint)(group_size_z)) -} - -// launch one or more compute work groups using parameters stored in a buffer -func DispatchComputeIndirect(indirect int) { - C.glowDispatchComputeIndirect(gpDispatchComputeIndirect, (C.GLintptr)(indirect)) -} - -// render primitives from array data -func DrawArrays(mode uint32, first int32, count int32) { - C.glowDrawArrays(gpDrawArrays, (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count)) -} -func DrawArraysEXT(mode uint32, first int32, count int32) { - C.glowDrawArraysEXT(gpDrawArraysEXT, (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count)) -} - -// render primitives from array data, taking parameters from memory -func DrawArraysIndirect(mode uint32, indirect unsafe.Pointer) { - C.glowDrawArraysIndirect(gpDrawArraysIndirect, (C.GLenum)(mode), indirect) -} -func DrawArraysInstancedARB(mode uint32, first int32, count int32, primcount int32) { - C.glowDrawArraysInstancedARB(gpDrawArraysInstancedARB, (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count), (C.GLsizei)(primcount)) -} - -// draw multiple instances of a range of elements with offset applied to instanced attributes -func DrawArraysInstancedBaseInstance(mode uint32, first int32, count int32, instancecount int32, baseinstance uint32) { - C.glowDrawArraysInstancedBaseInstance(gpDrawArraysInstancedBaseInstance, (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count), (C.GLsizei)(instancecount), (C.GLuint)(baseinstance)) -} -func DrawArraysInstancedEXT(mode uint32, start int32, count int32, primcount int32) { - C.glowDrawArraysInstancedEXT(gpDrawArraysInstancedEXT, (C.GLenum)(mode), (C.GLint)(start), (C.GLsizei)(count), (C.GLsizei)(primcount)) -} - -// specify which color buffers are to be drawn into -func DrawBuffer(buf uint32) { - C.glowDrawBuffer(gpDrawBuffer, (C.GLenum)(buf)) -} - -// Specifies a list of color buffers to be drawn into -func DrawBuffers(n int32, bufs *uint32) { - C.glowDrawBuffers(gpDrawBuffers, (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs))) -} -func DrawBuffersARB(n int32, bufs *uint32) { - C.glowDrawBuffersARB(gpDrawBuffersARB, (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs))) -} -func DrawBuffersATI(n int32, bufs *uint32) { - C.glowDrawBuffersATI(gpDrawBuffersATI, (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs))) -} -func DrawElementArrayAPPLE(mode uint32, first int32, count int32) { - C.glowDrawElementArrayAPPLE(gpDrawElementArrayAPPLE, (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count)) -} -func DrawElementArrayATI(mode uint32, count int32) { - C.glowDrawElementArrayATI(gpDrawElementArrayATI, (C.GLenum)(mode), (C.GLsizei)(count)) -} - -// render primitives from array data -func DrawElements(mode uint32, count int32, xtype uint32, indices unsafe.Pointer) { - C.glowDrawElements(gpDrawElements, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices) -} - -// render primitives from array data with a per-element offset -func DrawElementsBaseVertex(mode uint32, count int32, xtype uint32, indices unsafe.Pointer, basevertex int32) { - C.glowDrawElementsBaseVertex(gpDrawElementsBaseVertex, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLint)(basevertex)) -} - -// render indexed primitives from array data, taking parameters from memory -func DrawElementsIndirect(mode uint32, xtype uint32, indirect unsafe.Pointer) { - C.glowDrawElementsIndirect(gpDrawElementsIndirect, (C.GLenum)(mode), (C.GLenum)(xtype), indirect) -} -func DrawElementsInstancedARB(mode uint32, count int32, xtype uint32, indices unsafe.Pointer, primcount int32) { - C.glowDrawElementsInstancedARB(gpDrawElementsInstancedARB, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLsizei)(primcount)) -} - -// draw multiple instances of a set of elements with offset applied to instanced attributes -func DrawElementsInstancedBaseInstance(mode uint32, count int32, xtype uint32, indices unsafe.Pointer, instancecount int32, baseinstance uint32) { - C.glowDrawElementsInstancedBaseInstance(gpDrawElementsInstancedBaseInstance, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLsizei)(instancecount), (C.GLuint)(baseinstance)) -} - -// render multiple instances of a set of primitives from array data with a per-element offset -func DrawElementsInstancedBaseVertex(mode uint32, count int32, xtype uint32, indices unsafe.Pointer, instancecount int32, basevertex int32) { - C.glowDrawElementsInstancedBaseVertex(gpDrawElementsInstancedBaseVertex, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLsizei)(instancecount), (C.GLint)(basevertex)) -} - -// render multiple instances of a set of primitives from array data with a per-element offset -func DrawElementsInstancedBaseVertexBaseInstance(mode uint32, count int32, xtype uint32, indices unsafe.Pointer, instancecount int32, basevertex int32, baseinstance uint32) { - C.glowDrawElementsInstancedBaseVertexBaseInstance(gpDrawElementsInstancedBaseVertexBaseInstance, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLsizei)(instancecount), (C.GLint)(basevertex), (C.GLuint)(baseinstance)) -} -func DrawElementsInstancedEXT(mode uint32, count int32, xtype uint32, indices unsafe.Pointer, primcount int32) { - C.glowDrawElementsInstancedEXT(gpDrawElementsInstancedEXT, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLsizei)(primcount)) -} -func DrawMeshArraysSUN(mode uint32, first int32, count int32, width int32) { - C.glowDrawMeshArraysSUN(gpDrawMeshArraysSUN, (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count), (C.GLsizei)(width)) -} - -// write a block of pixels to the frame buffer -func DrawPixels(width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowDrawPixels(gpDrawPixels, (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func DrawRangeElementArrayAPPLE(mode uint32, start uint32, end uint32, first int32, count int32) { - C.glowDrawRangeElementArrayAPPLE(gpDrawRangeElementArrayAPPLE, (C.GLenum)(mode), (C.GLuint)(start), (C.GLuint)(end), (C.GLint)(first), (C.GLsizei)(count)) -} -func DrawRangeElementArrayATI(mode uint32, start uint32, end uint32, count int32) { - C.glowDrawRangeElementArrayATI(gpDrawRangeElementArrayATI, (C.GLenum)(mode), (C.GLuint)(start), (C.GLuint)(end), (C.GLsizei)(count)) -} - -// render primitives from array data -func DrawRangeElements(mode uint32, start uint32, end uint32, count int32, xtype uint32, indices unsafe.Pointer) { - C.glowDrawRangeElements(gpDrawRangeElements, (C.GLenum)(mode), (C.GLuint)(start), (C.GLuint)(end), (C.GLsizei)(count), (C.GLenum)(xtype), indices) -} - -// render primitives from array data with a per-element offset -func DrawRangeElementsBaseVertex(mode uint32, start uint32, end uint32, count int32, xtype uint32, indices unsafe.Pointer, basevertex int32) { - C.glowDrawRangeElementsBaseVertex(gpDrawRangeElementsBaseVertex, (C.GLenum)(mode), (C.GLuint)(start), (C.GLuint)(end), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLint)(basevertex)) -} -func DrawRangeElementsEXT(mode uint32, start uint32, end uint32, count int32, xtype uint32, indices unsafe.Pointer) { - C.glowDrawRangeElementsEXT(gpDrawRangeElementsEXT, (C.GLenum)(mode), (C.GLuint)(start), (C.GLuint)(end), (C.GLsizei)(count), (C.GLenum)(xtype), indices) -} -func DrawTextureNV(texture uint32, sampler uint32, x0 float32, y0 float32, x1 float32, y1 float32, z float32, s0 float32, t0 float32, s1 float32, t1 float32) { - C.glowDrawTextureNV(gpDrawTextureNV, (C.GLuint)(texture), (C.GLuint)(sampler), (C.GLfloat)(x0), (C.GLfloat)(y0), (C.GLfloat)(x1), (C.GLfloat)(y1), (C.GLfloat)(z), (C.GLfloat)(s0), (C.GLfloat)(t0), (C.GLfloat)(s1), (C.GLfloat)(t1)) -} - -// render primitives using a count derived from a transform feedback object -func DrawTransformFeedback(mode uint32, id uint32) { - C.glowDrawTransformFeedback(gpDrawTransformFeedback, (C.GLenum)(mode), (C.GLuint)(id)) -} - -// render multiple instances of primitives using a count derived from a transform feedback object -func DrawTransformFeedbackInstanced(mode uint32, id uint32, instancecount int32) { - C.glowDrawTransformFeedbackInstanced(gpDrawTransformFeedbackInstanced, (C.GLenum)(mode), (C.GLuint)(id), (C.GLsizei)(instancecount)) -} -func DrawTransformFeedbackNV(mode uint32, id uint32) { - C.glowDrawTransformFeedbackNV(gpDrawTransformFeedbackNV, (C.GLenum)(mode), (C.GLuint)(id)) -} - -// render primitives using a count derived from a specifed stream of a transform feedback object -func DrawTransformFeedbackStream(mode uint32, id uint32, stream uint32) { - C.glowDrawTransformFeedbackStream(gpDrawTransformFeedbackStream, (C.GLenum)(mode), (C.GLuint)(id), (C.GLuint)(stream)) -} - -// render multiple instances of primitives using a count derived from a specifed stream of a transform feedback object -func DrawTransformFeedbackStreamInstanced(mode uint32, id uint32, stream uint32, instancecount int32) { - C.glowDrawTransformFeedbackStreamInstanced(gpDrawTransformFeedbackStreamInstanced, (C.GLenum)(mode), (C.GLuint)(id), (C.GLuint)(stream), (C.GLsizei)(instancecount)) -} - -// flag edges as either boundary or nonboundary -func EdgeFlag(flag bool) { - C.glowEdgeFlag(gpEdgeFlag, (C.GLboolean)(boolToInt(flag))) -} -func EdgeFlagFormatNV(stride int32) { - C.glowEdgeFlagFormatNV(gpEdgeFlagFormatNV, (C.GLsizei)(stride)) -} - -// define an array of edge flags -func EdgeFlagPointer(stride int32, pointer unsafe.Pointer) { - C.glowEdgeFlagPointer(gpEdgeFlagPointer, (C.GLsizei)(stride), pointer) -} -func EdgeFlagPointerEXT(stride int32, count int32, pointer *bool) { - C.glowEdgeFlagPointerEXT(gpEdgeFlagPointerEXT, (C.GLsizei)(stride), (C.GLsizei)(count), (*C.GLboolean)(unsafe.Pointer(pointer))) -} -func EdgeFlagPointerListIBM(stride int32, pointer **bool, ptrstride int32) { - C.glowEdgeFlagPointerListIBM(gpEdgeFlagPointerListIBM, (C.GLint)(stride), (**C.GLboolean)(unsafe.Pointer(pointer)), (C.GLint)(ptrstride)) -} -func EdgeFlagv(flag *bool) { - C.glowEdgeFlagv(gpEdgeFlagv, (*C.GLboolean)(unsafe.Pointer(flag))) -} -func ElementPointerAPPLE(xtype uint32, pointer unsafe.Pointer) { - C.glowElementPointerAPPLE(gpElementPointerAPPLE, (C.GLenum)(xtype), pointer) -} -func ElementPointerATI(xtype uint32, pointer unsafe.Pointer) { - C.glowElementPointerATI(gpElementPointerATI, (C.GLenum)(xtype), pointer) -} - -// enable or disable server-side GL capabilities -func Enable(cap uint32) { - C.glowEnable(gpEnable, (C.GLenum)(cap)) -} - -// enable or disable client-side capability -func EnableClientState(array uint32) { - C.glowEnableClientState(gpEnableClientState, (C.GLenum)(array)) -} -func EnableClientStateIndexedEXT(array uint32, index uint32) { - C.glowEnableClientStateIndexedEXT(gpEnableClientStateIndexedEXT, (C.GLenum)(array), (C.GLuint)(index)) -} -func EnableClientStateiEXT(array uint32, index uint32) { - C.glowEnableClientStateiEXT(gpEnableClientStateiEXT, (C.GLenum)(array), (C.GLuint)(index)) -} -func EnableIndexedEXT(target uint32, index uint32) { - C.glowEnableIndexedEXT(gpEnableIndexedEXT, (C.GLenum)(target), (C.GLuint)(index)) -} -func EnableVariantClientStateEXT(id uint32) { - C.glowEnableVariantClientStateEXT(gpEnableVariantClientStateEXT, (C.GLuint)(id)) -} - -// Enable or disable a generic vertex attribute array -func EnableVertexArrayAttrib(vaobj uint32, index uint32) { - C.glowEnableVertexArrayAttrib(gpEnableVertexArrayAttrib, (C.GLuint)(vaobj), (C.GLuint)(index)) -} -func EnableVertexArrayAttribEXT(vaobj uint32, index uint32) { - C.glowEnableVertexArrayAttribEXT(gpEnableVertexArrayAttribEXT, (C.GLuint)(vaobj), (C.GLuint)(index)) -} -func EnableVertexArrayEXT(vaobj uint32, array uint32) { - C.glowEnableVertexArrayEXT(gpEnableVertexArrayEXT, (C.GLuint)(vaobj), (C.GLenum)(array)) -} -func EnableVertexAttribAPPLE(index uint32, pname uint32) { - C.glowEnableVertexAttribAPPLE(gpEnableVertexAttribAPPLE, (C.GLuint)(index), (C.GLenum)(pname)) -} - -// Enable or disable a generic vertex attribute array -func EnableVertexAttribArray(index uint32) { - C.glowEnableVertexAttribArray(gpEnableVertexAttribArray, (C.GLuint)(index)) -} -func EnableVertexAttribArrayARB(index uint32) { - C.glowEnableVertexAttribArrayARB(gpEnableVertexAttribArrayARB, (C.GLuint)(index)) -} -func End() { - C.glowEnd(gpEnd) -} -func EndConditionalRenderNV() { - C.glowEndConditionalRenderNV(gpEndConditionalRenderNV) -} -func EndConditionalRenderNVX() { - C.glowEndConditionalRenderNVX(gpEndConditionalRenderNVX) -} -func EndFragmentShaderATI() { - C.glowEndFragmentShaderATI(gpEndFragmentShaderATI) -} -func EndList() { - C.glowEndList(gpEndList) -} -func EndOcclusionQueryNV() { - C.glowEndOcclusionQueryNV(gpEndOcclusionQueryNV) -} -func EndPerfMonitorAMD(monitor uint32) { - C.glowEndPerfMonitorAMD(gpEndPerfMonitorAMD, (C.GLuint)(monitor)) -} -func EndPerfQueryINTEL(queryHandle uint32) { - C.glowEndPerfQueryINTEL(gpEndPerfQueryINTEL, (C.GLuint)(queryHandle)) -} -func EndQuery(target uint32) { - C.glowEndQuery(gpEndQuery, (C.GLenum)(target)) -} -func EndQueryARB(target uint32) { - C.glowEndQueryARB(gpEndQueryARB, (C.GLenum)(target)) -} -func EndQueryIndexed(target uint32, index uint32) { - C.glowEndQueryIndexed(gpEndQueryIndexed, (C.GLenum)(target), (C.GLuint)(index)) -} -func EndTransformFeedbackEXT() { - C.glowEndTransformFeedbackEXT(gpEndTransformFeedbackEXT) -} -func EndTransformFeedbackNV() { - C.glowEndTransformFeedbackNV(gpEndTransformFeedbackNV) -} -func EndVertexShaderEXT() { - C.glowEndVertexShaderEXT(gpEndVertexShaderEXT) -} -func EndVideoCaptureNV(video_capture_slot uint32) { - C.glowEndVideoCaptureNV(gpEndVideoCaptureNV, (C.GLuint)(video_capture_slot)) -} -func EvalCoord1d(u float64) { - C.glowEvalCoord1d(gpEvalCoord1d, (C.GLdouble)(u)) -} -func EvalCoord1dv(u *float64) { - C.glowEvalCoord1dv(gpEvalCoord1dv, (*C.GLdouble)(unsafe.Pointer(u))) -} -func EvalCoord1f(u float32) { - C.glowEvalCoord1f(gpEvalCoord1f, (C.GLfloat)(u)) -} -func EvalCoord1fv(u *float32) { - C.glowEvalCoord1fv(gpEvalCoord1fv, (*C.GLfloat)(unsafe.Pointer(u))) -} -func EvalCoord1xOES(u int32) { - C.glowEvalCoord1xOES(gpEvalCoord1xOES, (C.GLfixed)(u)) -} -func EvalCoord1xvOES(coords *int32) { - C.glowEvalCoord1xvOES(gpEvalCoord1xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func EvalCoord2d(u float64, v float64) { - C.glowEvalCoord2d(gpEvalCoord2d, (C.GLdouble)(u), (C.GLdouble)(v)) -} -func EvalCoord2dv(u *float64) { - C.glowEvalCoord2dv(gpEvalCoord2dv, (*C.GLdouble)(unsafe.Pointer(u))) -} -func EvalCoord2f(u float32, v float32) { - C.glowEvalCoord2f(gpEvalCoord2f, (C.GLfloat)(u), (C.GLfloat)(v)) -} -func EvalCoord2fv(u *float32) { - C.glowEvalCoord2fv(gpEvalCoord2fv, (*C.GLfloat)(unsafe.Pointer(u))) -} -func EvalCoord2xOES(u int32, v int32) { - C.glowEvalCoord2xOES(gpEvalCoord2xOES, (C.GLfixed)(u), (C.GLfixed)(v)) -} -func EvalCoord2xvOES(coords *int32) { - C.glowEvalCoord2xvOES(gpEvalCoord2xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func EvalMapsNV(target uint32, mode uint32) { - C.glowEvalMapsNV(gpEvalMapsNV, (C.GLenum)(target), (C.GLenum)(mode)) -} -func EvalMesh1(mode uint32, i1 int32, i2 int32) { - C.glowEvalMesh1(gpEvalMesh1, (C.GLenum)(mode), (C.GLint)(i1), (C.GLint)(i2)) -} -func EvalMesh2(mode uint32, i1 int32, i2 int32, j1 int32, j2 int32) { - C.glowEvalMesh2(gpEvalMesh2, (C.GLenum)(mode), (C.GLint)(i1), (C.GLint)(i2), (C.GLint)(j1), (C.GLint)(j2)) -} -func EvalPoint1(i int32) { - C.glowEvalPoint1(gpEvalPoint1, (C.GLint)(i)) -} -func EvalPoint2(i int32, j int32) { - C.glowEvalPoint2(gpEvalPoint2, (C.GLint)(i), (C.GLint)(j)) -} -func ExecuteProgramNV(target uint32, id uint32, params *float32) { - C.glowExecuteProgramNV(gpExecuteProgramNV, (C.GLenum)(target), (C.GLuint)(id), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ExtractComponentEXT(res uint32, src uint32, num uint32) { - C.glowExtractComponentEXT(gpExtractComponentEXT, (C.GLuint)(res), (C.GLuint)(src), (C.GLuint)(num)) -} - -// controls feedback mode -func FeedbackBuffer(size int32, xtype uint32, buffer *float32) { - C.glowFeedbackBuffer(gpFeedbackBuffer, (C.GLsizei)(size), (C.GLenum)(xtype), (*C.GLfloat)(unsafe.Pointer(buffer))) -} -func FeedbackBufferxOES(n int32, xtype uint32, buffer *int32) { - C.glowFeedbackBufferxOES(gpFeedbackBufferxOES, (C.GLsizei)(n), (C.GLenum)(xtype), (*C.GLfixed)(unsafe.Pointer(buffer))) -} - -// create a new sync object and insert it into the GL command stream -func FenceSync(condition uint32, flags uint32) unsafe.Pointer { - ret := C.glowFenceSync(gpFenceSync, (C.GLenum)(condition), (C.GLbitfield)(flags)) - return (unsafe.Pointer)(ret) -} -func FinalCombinerInputNV(variable uint32, input uint32, mapping uint32, componentUsage uint32) { - C.glowFinalCombinerInputNV(gpFinalCombinerInputNV, (C.GLenum)(variable), (C.GLenum)(input), (C.GLenum)(mapping), (C.GLenum)(componentUsage)) -} - -// block until all GL execution is complete -func Finish() { - C.glowFinish(gpFinish) -} -func FinishAsyncSGIX(markerp *uint32) int32 { - ret := C.glowFinishAsyncSGIX(gpFinishAsyncSGIX, (*C.GLuint)(unsafe.Pointer(markerp))) - return (int32)(ret) -} -func FinishFenceAPPLE(fence uint32) { - C.glowFinishFenceAPPLE(gpFinishFenceAPPLE, (C.GLuint)(fence)) -} -func FinishFenceNV(fence uint32) { - C.glowFinishFenceNV(gpFinishFenceNV, (C.GLuint)(fence)) -} -func FinishObjectAPPLE(object uint32, name int32) { - C.glowFinishObjectAPPLE(gpFinishObjectAPPLE, (C.GLenum)(object), (C.GLint)(name)) -} -func FinishTextureSUNX() { - C.glowFinishTextureSUNX(gpFinishTextureSUNX) -} - -// force execution of GL commands in finite time -func Flush() { - C.glowFlush(gpFlush) -} - -// indicate modifications to a range of a mapped buffer -func FlushMappedBufferRange(target uint32, offset int, length int) { - C.glowFlushMappedBufferRange(gpFlushMappedBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length)) -} -func FlushMappedBufferRangeAPPLE(target uint32, offset int, size int) { - C.glowFlushMappedBufferRangeAPPLE(gpFlushMappedBufferRangeAPPLE, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size)) -} - -// indicate modifications to a range of a mapped buffer -func FlushMappedNamedBufferRange(buffer uint32, offset int, length int32) { - C.glowFlushMappedNamedBufferRange(gpFlushMappedNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(length)) -} -func FlushMappedNamedBufferRangeEXT(buffer uint32, offset int, length int) { - C.glowFlushMappedNamedBufferRangeEXT(gpFlushMappedNamedBufferRangeEXT, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length)) -} -func FlushPixelDataRangeNV(target uint32) { - C.glowFlushPixelDataRangeNV(gpFlushPixelDataRangeNV, (C.GLenum)(target)) -} -func FlushRasterSGIX() { - C.glowFlushRasterSGIX(gpFlushRasterSGIX) -} -func FlushStaticDataIBM(target uint32) { - C.glowFlushStaticDataIBM(gpFlushStaticDataIBM, (C.GLenum)(target)) -} -func FlushVertexArrayRangeAPPLE(length int32, pointer unsafe.Pointer) { - C.glowFlushVertexArrayRangeAPPLE(gpFlushVertexArrayRangeAPPLE, (C.GLsizei)(length), pointer) -} -func FlushVertexArrayRangeNV() { - C.glowFlushVertexArrayRangeNV(gpFlushVertexArrayRangeNV) -} -func FogCoordFormatNV(xtype uint32, stride int32) { - C.glowFogCoordFormatNV(gpFogCoordFormatNV, (C.GLenum)(xtype), (C.GLsizei)(stride)) -} - -// define an array of fog coordinates -func FogCoordPointer(xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowFogCoordPointer(gpFogCoordPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func FogCoordPointerEXT(xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowFogCoordPointerEXT(gpFogCoordPointerEXT, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func FogCoordPointerListIBM(xtype uint32, stride int32, pointer *unsafe.Pointer, ptrstride int32) { - C.glowFogCoordPointerListIBM(gpFogCoordPointerListIBM, (C.GLenum)(xtype), (C.GLint)(stride), pointer, (C.GLint)(ptrstride)) -} -func FogCoordd(coord float64) { - C.glowFogCoordd(gpFogCoordd, (C.GLdouble)(coord)) -} -func FogCoorddEXT(coord float64) { - C.glowFogCoorddEXT(gpFogCoorddEXT, (C.GLdouble)(coord)) -} -func FogCoorddv(coord *float64) { - C.glowFogCoorddv(gpFogCoorddv, (*C.GLdouble)(unsafe.Pointer(coord))) -} -func FogCoorddvEXT(coord *float64) { - C.glowFogCoorddvEXT(gpFogCoorddvEXT, (*C.GLdouble)(unsafe.Pointer(coord))) -} -func FogCoordf(coord float32) { - C.glowFogCoordf(gpFogCoordf, (C.GLfloat)(coord)) -} -func FogCoordfEXT(coord float32) { - C.glowFogCoordfEXT(gpFogCoordfEXT, (C.GLfloat)(coord)) -} -func FogCoordfv(coord *float32) { - C.glowFogCoordfv(gpFogCoordfv, (*C.GLfloat)(unsafe.Pointer(coord))) -} -func FogCoordfvEXT(coord *float32) { - C.glowFogCoordfvEXT(gpFogCoordfvEXT, (*C.GLfloat)(unsafe.Pointer(coord))) -} -func FogCoordhNV(fog uint16) { - C.glowFogCoordhNV(gpFogCoordhNV, (C.GLhalfNV)(fog)) -} -func FogCoordhvNV(fog *uint16) { - C.glowFogCoordhvNV(gpFogCoordhvNV, (*C.GLhalfNV)(unsafe.Pointer(fog))) -} -func FogFuncSGIS(n int32, points *float32) { - C.glowFogFuncSGIS(gpFogFuncSGIS, (C.GLsizei)(n), (*C.GLfloat)(unsafe.Pointer(points))) -} -func Fogf(pname uint32, param float32) { - C.glowFogf(gpFogf, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func Fogfv(pname uint32, params *float32) { - C.glowFogfv(gpFogfv, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func Fogi(pname uint32, param int32) { - C.glowFogi(gpFogi, (C.GLenum)(pname), (C.GLint)(param)) -} -func Fogiv(pname uint32, params *int32) { - C.glowFogiv(gpFogiv, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func FogxOES(pname uint32, param int32) { - C.glowFogxOES(gpFogxOES, (C.GLenum)(pname), (C.GLfixed)(param)) -} -func FogxvOES(pname uint32, param *int32) { - C.glowFogxvOES(gpFogxvOES, (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(param))) -} -func FragmentColorMaterialSGIX(face uint32, mode uint32) { - C.glowFragmentColorMaterialSGIX(gpFragmentColorMaterialSGIX, (C.GLenum)(face), (C.GLenum)(mode)) -} -func FragmentLightModelfSGIX(pname uint32, param float32) { - C.glowFragmentLightModelfSGIX(gpFragmentLightModelfSGIX, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func FragmentLightModelfvSGIX(pname uint32, params *float32) { - C.glowFragmentLightModelfvSGIX(gpFragmentLightModelfvSGIX, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func FragmentLightModeliSGIX(pname uint32, param int32) { - C.glowFragmentLightModeliSGIX(gpFragmentLightModeliSGIX, (C.GLenum)(pname), (C.GLint)(param)) -} -func FragmentLightModelivSGIX(pname uint32, params *int32) { - C.glowFragmentLightModelivSGIX(gpFragmentLightModelivSGIX, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func FragmentLightfSGIX(light uint32, pname uint32, param float32) { - C.glowFragmentLightfSGIX(gpFragmentLightfSGIX, (C.GLenum)(light), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func FragmentLightfvSGIX(light uint32, pname uint32, params *float32) { - C.glowFragmentLightfvSGIX(gpFragmentLightfvSGIX, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func FragmentLightiSGIX(light uint32, pname uint32, param int32) { - C.glowFragmentLightiSGIX(gpFragmentLightiSGIX, (C.GLenum)(light), (C.GLenum)(pname), (C.GLint)(param)) -} -func FragmentLightivSGIX(light uint32, pname uint32, params *int32) { - C.glowFragmentLightivSGIX(gpFragmentLightivSGIX, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func FragmentMaterialfSGIX(face uint32, pname uint32, param float32) { - C.glowFragmentMaterialfSGIX(gpFragmentMaterialfSGIX, (C.GLenum)(face), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func FragmentMaterialfvSGIX(face uint32, pname uint32, params *float32) { - C.glowFragmentMaterialfvSGIX(gpFragmentMaterialfvSGIX, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func FragmentMaterialiSGIX(face uint32, pname uint32, param int32) { - C.glowFragmentMaterialiSGIX(gpFragmentMaterialiSGIX, (C.GLenum)(face), (C.GLenum)(pname), (C.GLint)(param)) -} -func FragmentMaterialivSGIX(face uint32, pname uint32, params *int32) { - C.glowFragmentMaterialivSGIX(gpFragmentMaterialivSGIX, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func FrameTerminatorGREMEDY() { - C.glowFrameTerminatorGREMEDY(gpFrameTerminatorGREMEDY) -} -func FrameZoomSGIX(factor int32) { - C.glowFrameZoomSGIX(gpFrameZoomSGIX, (C.GLint)(factor)) -} -func FramebufferDrawBufferEXT(framebuffer uint32, mode uint32) { - C.glowFramebufferDrawBufferEXT(gpFramebufferDrawBufferEXT, (C.GLuint)(framebuffer), (C.GLenum)(mode)) -} -func FramebufferDrawBuffersEXT(framebuffer uint32, n int32, bufs *uint32) { - C.glowFramebufferDrawBuffersEXT(gpFramebufferDrawBuffersEXT, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs))) -} - -// set a named parameter of a framebuffer object -func FramebufferParameteri(target uint32, pname uint32, param int32) { - C.glowFramebufferParameteri(gpFramebufferParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} -func FramebufferReadBufferEXT(framebuffer uint32, mode uint32) { - C.glowFramebufferReadBufferEXT(gpFramebufferReadBufferEXT, (C.GLuint)(framebuffer), (C.GLenum)(mode)) -} - -// attach a renderbuffer as a logical buffer of a framebuffer object -func FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) { - C.glowFramebufferRenderbuffer(gpFramebufferRenderbuffer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer)) -} -func FramebufferRenderbufferEXT(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) { - C.glowFramebufferRenderbufferEXT(gpFramebufferRenderbufferEXT, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer)) -} -func FramebufferTexture1D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) { - C.glowFramebufferTexture1D(gpFramebufferTexture1D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level)) -} -func FramebufferTexture1DEXT(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) { - C.glowFramebufferTexture1DEXT(gpFramebufferTexture1DEXT, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level)) -} -func FramebufferTexture2D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) { - C.glowFramebufferTexture2D(gpFramebufferTexture2D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level)) -} -func FramebufferTexture2DEXT(target uint32, attachment uint32, textarget uint32, texture uint32, level int32) { - C.glowFramebufferTexture2DEXT(gpFramebufferTexture2DEXT, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level)) -} -func FramebufferTexture3D(target uint32, attachment uint32, textarget uint32, texture uint32, level int32, zoffset int32) { - C.glowFramebufferTexture3D(gpFramebufferTexture3D, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(zoffset)) -} -func FramebufferTexture3DEXT(target uint32, attachment uint32, textarget uint32, texture uint32, level int32, zoffset int32) { - C.glowFramebufferTexture3DEXT(gpFramebufferTexture3DEXT, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(zoffset)) -} -func FramebufferTextureARB(target uint32, attachment uint32, texture uint32, level int32) { - C.glowFramebufferTextureARB(gpFramebufferTextureARB, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level)) -} -func FramebufferTextureEXT(target uint32, attachment uint32, texture uint32, level int32) { - C.glowFramebufferTextureEXT(gpFramebufferTextureEXT, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level)) -} -func FramebufferTextureFaceARB(target uint32, attachment uint32, texture uint32, level int32, face uint32) { - C.glowFramebufferTextureFaceARB(gpFramebufferTextureFaceARB, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(face)) -} -func FramebufferTextureFaceEXT(target uint32, attachment uint32, texture uint32, level int32, face uint32) { - C.glowFramebufferTextureFaceEXT(gpFramebufferTextureFaceEXT, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(face)) -} - -// attach a single layer of a texture object as a logical buffer of a framebuffer object -func FramebufferTextureLayer(target uint32, attachment uint32, texture uint32, level int32, layer int32) { - C.glowFramebufferTextureLayer(gpFramebufferTextureLayer, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer)) -} -func FramebufferTextureLayerARB(target uint32, attachment uint32, texture uint32, level int32, layer int32) { - C.glowFramebufferTextureLayerARB(gpFramebufferTextureLayerARB, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer)) -} -func FramebufferTextureLayerEXT(target uint32, attachment uint32, texture uint32, level int32, layer int32) { - C.glowFramebufferTextureLayerEXT(gpFramebufferTextureLayerEXT, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer)) -} -func FreeObjectBufferATI(buffer uint32) { - C.glowFreeObjectBufferATI(gpFreeObjectBufferATI, (C.GLuint)(buffer)) -} - -// define front- and back-facing polygons -func FrontFace(mode uint32) { - C.glowFrontFace(gpFrontFace, (C.GLenum)(mode)) -} - -// multiply the current matrix by a perspective matrix -func Frustum(left float64, right float64, bottom float64, top float64, zNear float64, zFar float64) { - C.glowFrustum(gpFrustum, (C.GLdouble)(left), (C.GLdouble)(right), (C.GLdouble)(bottom), (C.GLdouble)(top), (C.GLdouble)(zNear), (C.GLdouble)(zFar)) -} -func FrustumfOES(l float32, r float32, b float32, t float32, n float32, f float32) { - C.glowFrustumfOES(gpFrustumfOES, (C.GLfloat)(l), (C.GLfloat)(r), (C.GLfloat)(b), (C.GLfloat)(t), (C.GLfloat)(n), (C.GLfloat)(f)) -} -func FrustumxOES(l int32, r int32, b int32, t int32, n int32, f int32) { - C.glowFrustumxOES(gpFrustumxOES, (C.GLfixed)(l), (C.GLfixed)(r), (C.GLfixed)(b), (C.GLfixed)(t), (C.GLfixed)(n), (C.GLfixed)(f)) -} -func GenAsyncMarkersSGIX(xrange int32) uint32 { - ret := C.glowGenAsyncMarkersSGIX(gpGenAsyncMarkersSGIX, (C.GLsizei)(xrange)) - return (uint32)(ret) -} - -// generate buffer object names -func GenBuffers(n int32, buffers *uint32) { - C.glowGenBuffers(gpGenBuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(buffers))) -} -func GenBuffersARB(n int32, buffers *uint32) { - C.glowGenBuffersARB(gpGenBuffersARB, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(buffers))) -} -func GenFencesAPPLE(n int32, fences *uint32) { - C.glowGenFencesAPPLE(gpGenFencesAPPLE, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(fences))) -} -func GenFencesNV(n int32, fences *uint32) { - C.glowGenFencesNV(gpGenFencesNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(fences))) -} -func GenFragmentShadersATI(xrange uint32) uint32 { - ret := C.glowGenFragmentShadersATI(gpGenFragmentShadersATI, (C.GLuint)(xrange)) - return (uint32)(ret) -} - -// generate framebuffer object names -func GenFramebuffers(n int32, framebuffers *uint32) { - C.glowGenFramebuffers(gpGenFramebuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers))) -} -func GenFramebuffersEXT(n int32, framebuffers *uint32) { - C.glowGenFramebuffersEXT(gpGenFramebuffersEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(framebuffers))) -} - -// generate a contiguous set of empty display lists -func GenLists(xrange int32) uint32 { - ret := C.glowGenLists(gpGenLists, (C.GLsizei)(xrange)) - return (uint32)(ret) -} -func GenNamesAMD(identifier uint32, num uint32, names *uint32) { - C.glowGenNamesAMD(gpGenNamesAMD, (C.GLenum)(identifier), (C.GLuint)(num), (*C.GLuint)(unsafe.Pointer(names))) -} -func GenOcclusionQueriesNV(n int32, ids *uint32) { - C.glowGenOcclusionQueriesNV(gpGenOcclusionQueriesNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} -func GenPathsNV(xrange int32) uint32 { - ret := C.glowGenPathsNV(gpGenPathsNV, (C.GLsizei)(xrange)) - return (uint32)(ret) -} -func GenPerfMonitorsAMD(n int32, monitors *uint32) { - C.glowGenPerfMonitorsAMD(gpGenPerfMonitorsAMD, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(monitors))) -} - -// reserve program pipeline object names -func GenProgramPipelines(n int32, pipelines *uint32) { - C.glowGenProgramPipelines(gpGenProgramPipelines, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines))) -} -func GenProgramPipelinesEXT(n int32, pipelines *uint32) { - C.glowGenProgramPipelinesEXT(gpGenProgramPipelinesEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(pipelines))) -} -func GenProgramsARB(n int32, programs *uint32) { - C.glowGenProgramsARB(gpGenProgramsARB, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(programs))) -} -func GenProgramsNV(n int32, programs *uint32) { - C.glowGenProgramsNV(gpGenProgramsNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(programs))) -} - -// generate query object names -func GenQueries(n int32, ids *uint32) { - C.glowGenQueries(gpGenQueries, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} -func GenQueriesARB(n int32, ids *uint32) { - C.glowGenQueriesARB(gpGenQueriesARB, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} - -// generate renderbuffer object names -func GenRenderbuffers(n int32, renderbuffers *uint32) { - C.glowGenRenderbuffers(gpGenRenderbuffers, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers))) -} -func GenRenderbuffersEXT(n int32, renderbuffers *uint32) { - C.glowGenRenderbuffersEXT(gpGenRenderbuffersEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(renderbuffers))) -} - -// generate sampler object names -func GenSamplers(count int32, samplers *uint32) { - C.glowGenSamplers(gpGenSamplers, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(samplers))) -} -func GenSymbolsEXT(datatype uint32, storagetype uint32, xrange uint32, components uint32) uint32 { - ret := C.glowGenSymbolsEXT(gpGenSymbolsEXT, (C.GLenum)(datatype), (C.GLenum)(storagetype), (C.GLenum)(xrange), (C.GLuint)(components)) - return (uint32)(ret) -} - -// generate texture names -func GenTextures(n int32, textures *uint32) { - C.glowGenTextures(gpGenTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures))) -} -func GenTexturesEXT(n int32, textures *uint32) { - C.glowGenTexturesEXT(gpGenTexturesEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures))) -} - -// reserve transform feedback object names -func GenTransformFeedbacks(n int32, ids *uint32) { - C.glowGenTransformFeedbacks(gpGenTransformFeedbacks, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} -func GenTransformFeedbacksNV(n int32, ids *uint32) { - C.glowGenTransformFeedbacksNV(gpGenTransformFeedbacksNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(ids))) -} - -// generate vertex array object names -func GenVertexArrays(n int32, arrays *uint32) { - C.glowGenVertexArrays(gpGenVertexArrays, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays))) -} -func GenVertexArraysAPPLE(n int32, arrays *uint32) { - C.glowGenVertexArraysAPPLE(gpGenVertexArraysAPPLE, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(arrays))) -} -func GenVertexShadersEXT(xrange uint32) uint32 { - ret := C.glowGenVertexShadersEXT(gpGenVertexShadersEXT, (C.GLuint)(xrange)) - return (uint32)(ret) -} - -// generate mipmaps for a specified texture object -func GenerateMipmap(target uint32) { - C.glowGenerateMipmap(gpGenerateMipmap, (C.GLenum)(target)) -} -func GenerateMipmapEXT(target uint32) { - C.glowGenerateMipmapEXT(gpGenerateMipmapEXT, (C.GLenum)(target)) -} -func GenerateMultiTexMipmapEXT(texunit uint32, target uint32) { - C.glowGenerateMultiTexMipmapEXT(gpGenerateMultiTexMipmapEXT, (C.GLenum)(texunit), (C.GLenum)(target)) -} - -// generate mipmaps for a specified texture object -func GenerateTextureMipmap(texture uint32) { - C.glowGenerateTextureMipmap(gpGenerateTextureMipmap, (C.GLuint)(texture)) -} -func GenerateTextureMipmapEXT(texture uint32, target uint32) { - C.glowGenerateTextureMipmapEXT(gpGenerateTextureMipmapEXT, (C.GLuint)(texture), (C.GLenum)(target)) -} - -// retrieve information about the set of active atomic counter buffers for a program -func GetActiveAtomicCounterBufferiv(program uint32, bufferIndex uint32, pname uint32, params *int32) { - C.glowGetActiveAtomicCounterBufferiv(gpGetActiveAtomicCounterBufferiv, (C.GLuint)(program), (C.GLuint)(bufferIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// Returns information about an active attribute variable for the specified program object -func GetActiveAttrib(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { - C.glowGetActiveAttrib(gpGetActiveAttrib, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) -} -func GetActiveAttribARB(programObj uintptr, index uint32, maxLength int32, length *int32, size *int32, xtype *uint32, name *uint8) { - C.glowGetActiveAttribARB(gpGetActiveAttribARB, (C.GLhandleARB)(programObj), (C.GLuint)(index), (C.GLsizei)(maxLength), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLcharARB)(unsafe.Pointer(name))) -} - -// query the name of an active shader subroutine -func GetActiveSubroutineName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) { - C.glowGetActiveSubroutineName(gpGetActiveSubroutineName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) -} - -// query the name of an active shader subroutine uniform -func GetActiveSubroutineUniformName(program uint32, shadertype uint32, index uint32, bufsize int32, length *int32, name *uint8) { - C.glowGetActiveSubroutineUniformName(gpGetActiveSubroutineUniformName, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLsizei)(bufsize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) -} -func GetActiveSubroutineUniformiv(program uint32, shadertype uint32, index uint32, pname uint32, values *int32) { - C.glowGetActiveSubroutineUniformiv(gpGetActiveSubroutineUniformiv, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(values))) -} - -// Returns information about an active uniform variable for the specified program object -func GetActiveUniform(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { - C.glowGetActiveUniform(gpGetActiveUniform, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) -} -func GetActiveUniformARB(programObj uintptr, index uint32, maxLength int32, length *int32, size *int32, xtype *uint32, name *uint8) { - C.glowGetActiveUniformARB(gpGetActiveUniformARB, (C.GLhandleARB)(programObj), (C.GLuint)(index), (C.GLsizei)(maxLength), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLcharARB)(unsafe.Pointer(name))) -} - -// retrieve the name of an active uniform block -func GetActiveUniformBlockName(program uint32, uniformBlockIndex uint32, bufSize int32, length *int32, uniformBlockName *uint8) { - C.glowGetActiveUniformBlockName(gpGetActiveUniformBlockName, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformBlockName))) -} -func GetActiveUniformBlockiv(program uint32, uniformBlockIndex uint32, pname uint32, params *int32) { - C.glowGetActiveUniformBlockiv(gpGetActiveUniformBlockiv, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// query the name of an active uniform -func GetActiveUniformName(program uint32, uniformIndex uint32, bufSize int32, length *int32, uniformName *uint8) { - C.glowGetActiveUniformName(gpGetActiveUniformName, (C.GLuint)(program), (C.GLuint)(uniformIndex), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(uniformName))) -} - -// Returns information about several active uniform variables for the specified program object -func GetActiveUniformsiv(program uint32, uniformCount int32, uniformIndices *uint32, pname uint32, params *int32) { - C.glowGetActiveUniformsiv(gpGetActiveUniformsiv, (C.GLuint)(program), (C.GLsizei)(uniformCount), (*C.GLuint)(unsafe.Pointer(uniformIndices)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetActiveVaryingNV(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { - C.glowGetActiveVaryingNV(gpGetActiveVaryingNV, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLsizei)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) -} -func GetArrayObjectfvATI(array uint32, pname uint32, params *float32) { - C.glowGetArrayObjectfvATI(gpGetArrayObjectfvATI, (C.GLenum)(array), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetArrayObjectivATI(array uint32, pname uint32, params *int32) { - C.glowGetArrayObjectivATI(gpGetArrayObjectivATI, (C.GLenum)(array), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetAttachedObjectsARB(containerObj uintptr, maxCount int32, count *int32, obj *uintptr) { - C.glowGetAttachedObjectsARB(gpGetAttachedObjectsARB, (C.GLhandleARB)(containerObj), (C.GLsizei)(maxCount), (*C.GLsizei)(unsafe.Pointer(count)), (*C.GLhandleARB)(unsafe.Pointer(obj))) -} - -// Returns the handles of the shader objects attached to a program object -func GetAttachedShaders(program uint32, maxCount int32, count *int32, shaders *uint32) { - C.glowGetAttachedShaders(gpGetAttachedShaders, (C.GLuint)(program), (C.GLsizei)(maxCount), (*C.GLsizei)(unsafe.Pointer(count)), (*C.GLuint)(unsafe.Pointer(shaders))) -} - -// Returns the location of an attribute variable -func GetAttribLocation(program uint32, name *uint8) int32 { - ret := C.glowGetAttribLocation(gpGetAttribLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) - return (int32)(ret) -} -func GetAttribLocationARB(programObj uintptr, name *uint8) int32 { - ret := C.glowGetAttribLocationARB(gpGetAttribLocationARB, (C.GLhandleARB)(programObj), (*C.GLcharARB)(unsafe.Pointer(name))) - return (int32)(ret) -} -func GetBooleanIndexedvEXT(target uint32, index uint32, data *bool) { - C.glowGetBooleanIndexedvEXT(gpGetBooleanIndexedvEXT, (C.GLenum)(target), (C.GLuint)(index), (*C.GLboolean)(unsafe.Pointer(data))) -} -func GetBooleanv(pname uint32, data *bool) { - C.glowGetBooleanv(gpGetBooleanv, (C.GLenum)(pname), (*C.GLboolean)(unsafe.Pointer(data))) -} - -// return parameters of a buffer object -func GetBufferParameteriv(target uint32, pname uint32, params *int32) { - C.glowGetBufferParameteriv(gpGetBufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetBufferParameterivARB(target uint32, pname uint32, params *int32) { - C.glowGetBufferParameterivARB(gpGetBufferParameterivARB, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetBufferParameterui64vNV(target uint32, pname uint32, params *uint64) { - C.glowGetBufferParameterui64vNV(gpGetBufferParameterui64vNV, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLuint64EXT)(unsafe.Pointer(params))) -} - -// return the pointer to a mapped buffer object's data store -func GetBufferPointerv(target uint32, pname uint32, params *unsafe.Pointer) { - C.glowGetBufferPointerv(gpGetBufferPointerv, (C.GLenum)(target), (C.GLenum)(pname), params) -} -func GetBufferPointervARB(target uint32, pname uint32, params *unsafe.Pointer) { - C.glowGetBufferPointervARB(gpGetBufferPointervARB, (C.GLenum)(target), (C.GLenum)(pname), params) -} - -// returns a subset of a buffer object's data store -func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) { - C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) -} -func GetBufferSubDataARB(target uint32, offset int, size int, data unsafe.Pointer) { - C.glowGetBufferSubDataARB(gpGetBufferSubDataARB, (C.GLenum)(target), (C.GLintptrARB)(offset), (C.GLsizeiptrARB)(size), data) -} - -// return the coefficients of the specified clipping plane -func GetClipPlane(plane uint32, equation *float64) { - C.glowGetClipPlane(gpGetClipPlane, (C.GLenum)(plane), (*C.GLdouble)(unsafe.Pointer(equation))) -} -func GetClipPlanefOES(plane uint32, equation *float32) { - C.glowGetClipPlanefOES(gpGetClipPlanefOES, (C.GLenum)(plane), (*C.GLfloat)(unsafe.Pointer(equation))) -} -func GetClipPlanexOES(plane uint32, equation *int32) { - C.glowGetClipPlanexOES(gpGetClipPlanexOES, (C.GLenum)(plane), (*C.GLfixed)(unsafe.Pointer(equation))) -} -func GetColorTableEXT(target uint32, format uint32, xtype uint32, data unsafe.Pointer) { - C.glowGetColorTableEXT(gpGetColorTableEXT, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), data) -} -func GetColorTableParameterfvEXT(target uint32, pname uint32, params *float32) { - C.glowGetColorTableParameterfvEXT(gpGetColorTableParameterfvEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetColorTableParameterfvSGI(target uint32, pname uint32, params *float32) { - C.glowGetColorTableParameterfvSGI(gpGetColorTableParameterfvSGI, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetColorTableParameterivEXT(target uint32, pname uint32, params *int32) { - C.glowGetColorTableParameterivEXT(gpGetColorTableParameterivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetColorTableParameterivSGI(target uint32, pname uint32, params *int32) { - C.glowGetColorTableParameterivSGI(gpGetColorTableParameterivSGI, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetColorTableSGI(target uint32, format uint32, xtype uint32, table unsafe.Pointer) { - C.glowGetColorTableSGI(gpGetColorTableSGI, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table) -} -func GetCombinerInputParameterfvNV(stage uint32, portion uint32, variable uint32, pname uint32, params *float32) { - C.glowGetCombinerInputParameterfvNV(gpGetCombinerInputParameterfvNV, (C.GLenum)(stage), (C.GLenum)(portion), (C.GLenum)(variable), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetCombinerInputParameterivNV(stage uint32, portion uint32, variable uint32, pname uint32, params *int32) { - C.glowGetCombinerInputParameterivNV(gpGetCombinerInputParameterivNV, (C.GLenum)(stage), (C.GLenum)(portion), (C.GLenum)(variable), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetCombinerOutputParameterfvNV(stage uint32, portion uint32, pname uint32, params *float32) { - C.glowGetCombinerOutputParameterfvNV(gpGetCombinerOutputParameterfvNV, (C.GLenum)(stage), (C.GLenum)(portion), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetCombinerOutputParameterivNV(stage uint32, portion uint32, pname uint32, params *int32) { - C.glowGetCombinerOutputParameterivNV(gpGetCombinerOutputParameterivNV, (C.GLenum)(stage), (C.GLenum)(portion), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetCombinerStageParameterfvNV(stage uint32, pname uint32, params *float32) { - C.glowGetCombinerStageParameterfvNV(gpGetCombinerStageParameterfvNV, (C.GLenum)(stage), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetCompressedMultiTexImageEXT(texunit uint32, target uint32, lod int32, img unsafe.Pointer) { - C.glowGetCompressedMultiTexImageEXT(gpGetCompressedMultiTexImageEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(lod), img) -} - -// return a compressed texture image -func GetCompressedTexImage(target uint32, level int32, img unsafe.Pointer) { - C.glowGetCompressedTexImage(gpGetCompressedTexImage, (C.GLenum)(target), (C.GLint)(level), img) -} -func GetCompressedTexImageARB(target uint32, level int32, img unsafe.Pointer) { - C.glowGetCompressedTexImageARB(gpGetCompressedTexImageARB, (C.GLenum)(target), (C.GLint)(level), img) -} - -// return a compressed texture image -func GetCompressedTextureImage(texture uint32, level int32, bufSize int32, pixels unsafe.Pointer) { - C.glowGetCompressedTextureImage(gpGetCompressedTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLsizei)(bufSize), pixels) -} -func GetCompressedTextureImageEXT(texture uint32, target uint32, lod int32, img unsafe.Pointer) { - C.glowGetCompressedTextureImageEXT(gpGetCompressedTextureImageEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(lod), img) -} - -// retrieve a sub-region of a compressed texture image from a compressed texture object -func GetCompressedTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, bufSize int32, pixels unsafe.Pointer) { - C.glowGetCompressedTextureSubImage(gpGetCompressedTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(bufSize), pixels) -} -func GetConvolutionFilterEXT(target uint32, format uint32, xtype uint32, image unsafe.Pointer) { - C.glowGetConvolutionFilterEXT(gpGetConvolutionFilterEXT, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image) -} -func GetConvolutionParameterfvEXT(target uint32, pname uint32, params *float32) { - C.glowGetConvolutionParameterfvEXT(gpGetConvolutionParameterfvEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetConvolutionParameterivEXT(target uint32, pname uint32, params *int32) { - C.glowGetConvolutionParameterivEXT(gpGetConvolutionParameterivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetConvolutionParameterxvOES(target uint32, pname uint32, params *int32) { - C.glowGetConvolutionParameterxvOES(gpGetConvolutionParameterxvOES, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} - -// retrieve messages from the debug message log -func GetDebugMessageLog(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *uint8) uint32 { - ret := C.glowGetDebugMessageLog(gpGetDebugMessageLog, (C.GLuint)(count), (C.GLsizei)(bufSize), (*C.GLenum)(unsafe.Pointer(sources)), (*C.GLenum)(unsafe.Pointer(types)), (*C.GLuint)(unsafe.Pointer(ids)), (*C.GLenum)(unsafe.Pointer(severities)), (*C.GLsizei)(unsafe.Pointer(lengths)), (*C.GLchar)(unsafe.Pointer(messageLog))) - return (uint32)(ret) -} -func GetDebugMessageLogAMD(count uint32, bufsize int32, categories *uint32, severities *uint32, ids *uint32, lengths *int32, message *uint8) uint32 { - ret := C.glowGetDebugMessageLogAMD(gpGetDebugMessageLogAMD, (C.GLuint)(count), (C.GLsizei)(bufsize), (*C.GLenum)(unsafe.Pointer(categories)), (*C.GLuint)(unsafe.Pointer(severities)), (*C.GLuint)(unsafe.Pointer(ids)), (*C.GLsizei)(unsafe.Pointer(lengths)), (*C.GLchar)(unsafe.Pointer(message))) - return (uint32)(ret) -} -func GetDebugMessageLogARB(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *uint8) uint32 { - ret := C.glowGetDebugMessageLogARB(gpGetDebugMessageLogARB, (C.GLuint)(count), (C.GLsizei)(bufSize), (*C.GLenum)(unsafe.Pointer(sources)), (*C.GLenum)(unsafe.Pointer(types)), (*C.GLuint)(unsafe.Pointer(ids)), (*C.GLenum)(unsafe.Pointer(severities)), (*C.GLsizei)(unsafe.Pointer(lengths)), (*C.GLchar)(unsafe.Pointer(messageLog))) - return (uint32)(ret) -} -func GetDebugMessageLogKHR(count uint32, bufSize int32, sources *uint32, types *uint32, ids *uint32, severities *uint32, lengths *int32, messageLog *uint8) uint32 { - ret := C.glowGetDebugMessageLogKHR(gpGetDebugMessageLogKHR, (C.GLuint)(count), (C.GLsizei)(bufSize), (*C.GLenum)(unsafe.Pointer(sources)), (*C.GLenum)(unsafe.Pointer(types)), (*C.GLuint)(unsafe.Pointer(ids)), (*C.GLenum)(unsafe.Pointer(severities)), (*C.GLsizei)(unsafe.Pointer(lengths)), (*C.GLchar)(unsafe.Pointer(messageLog))) - return (uint32)(ret) -} -func GetDetailTexFuncSGIS(target uint32, points *float32) { - C.glowGetDetailTexFuncSGIS(gpGetDetailTexFuncSGIS, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(points))) -} -func GetDoubleIndexedvEXT(target uint32, index uint32, data *float64) { - C.glowGetDoubleIndexedvEXT(gpGetDoubleIndexedvEXT, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(data))) -} -func GetDoublei_v(target uint32, index uint32, data *float64) { - C.glowGetDoublei_v(gpGetDoublei_v, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(data))) -} -func GetDoublei_vEXT(pname uint32, index uint32, params *float64) { - C.glowGetDoublei_vEXT(gpGetDoublei_vEXT, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetDoublev(pname uint32, data *float64) { - C.glowGetDoublev(gpGetDoublev, (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(data))) -} - -// return error information -func GetError() uint32 { - ret := C.glowGetError(gpGetError) - return (uint32)(ret) -} -func GetFenceivNV(fence uint32, pname uint32, params *int32) { - C.glowGetFenceivNV(gpGetFenceivNV, (C.GLuint)(fence), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetFinalCombinerInputParameterfvNV(variable uint32, pname uint32, params *float32) { - C.glowGetFinalCombinerInputParameterfvNV(gpGetFinalCombinerInputParameterfvNV, (C.GLenum)(variable), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetFinalCombinerInputParameterivNV(variable uint32, pname uint32, params *int32) { - C.glowGetFinalCombinerInputParameterivNV(gpGetFinalCombinerInputParameterivNV, (C.GLenum)(variable), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetFirstPerfQueryIdINTEL(queryId *uint32) { - C.glowGetFirstPerfQueryIdINTEL(gpGetFirstPerfQueryIdINTEL, (*C.GLuint)(unsafe.Pointer(queryId))) -} -func GetFixedvOES(pname uint32, params *int32) { - C.glowGetFixedvOES(gpGetFixedvOES, (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func GetFloatIndexedvEXT(target uint32, index uint32, data *float32) { - C.glowGetFloatIndexedvEXT(gpGetFloatIndexedvEXT, (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(data))) -} -func GetFloati_v(target uint32, index uint32, data *float32) { - C.glowGetFloati_v(gpGetFloati_v, (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(data))) -} -func GetFloati_vEXT(pname uint32, index uint32, params *float32) { - C.glowGetFloati_vEXT(gpGetFloati_vEXT, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetFloatv(pname uint32, data *float32) { - C.glowGetFloatv(gpGetFloatv, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(data))) -} -func GetFogFuncSGIS(points *float32) { - C.glowGetFogFuncSGIS(gpGetFogFuncSGIS, (*C.GLfloat)(unsafe.Pointer(points))) -} - -// query the bindings of color indices to user-defined varying out variables -func GetFragDataIndex(program uint32, name *uint8) int32 { - ret := C.glowGetFragDataIndex(gpGetFragDataIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) - return (int32)(ret) -} -func GetFragDataLocationEXT(program uint32, name *uint8) int32 { - ret := C.glowGetFragDataLocationEXT(gpGetFragDataLocationEXT, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) - return (int32)(ret) -} -func GetFragmentLightfvSGIX(light uint32, pname uint32, params *float32) { - C.glowGetFragmentLightfvSGIX(gpGetFragmentLightfvSGIX, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetFragmentLightivSGIX(light uint32, pname uint32, params *int32) { - C.glowGetFragmentLightivSGIX(gpGetFragmentLightivSGIX, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetFragmentMaterialfvSGIX(face uint32, pname uint32, params *float32) { - C.glowGetFragmentMaterialfvSGIX(gpGetFragmentMaterialfvSGIX, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetFragmentMaterialivSGIX(face uint32, pname uint32, params *int32) { - C.glowGetFragmentMaterialivSGIX(gpGetFragmentMaterialivSGIX, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// retrieve information about attachments of a framebuffer object -func GetFramebufferAttachmentParameteriv(target uint32, attachment uint32, pname uint32, params *int32) { - C.glowGetFramebufferAttachmentParameteriv(gpGetFramebufferAttachmentParameteriv, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetFramebufferAttachmentParameterivEXT(target uint32, attachment uint32, pname uint32, params *int32) { - C.glowGetFramebufferAttachmentParameterivEXT(gpGetFramebufferAttachmentParameterivEXT, (C.GLenum)(target), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// query a named parameter of a framebuffer object -func GetFramebufferParameteriv(target uint32, pname uint32, params *int32) { - C.glowGetFramebufferParameteriv(gpGetFramebufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetFramebufferParameterivEXT(framebuffer uint32, pname uint32, params *int32) { - C.glowGetFramebufferParameterivEXT(gpGetFramebufferParameterivEXT, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// check if the rendering context has not been lost due to software or hardware issues -func GetGraphicsResetStatus() uint32 { - ret := C.glowGetGraphicsResetStatus(gpGetGraphicsResetStatus) - return (uint32)(ret) -} -func GetGraphicsResetStatusARB() uint32 { - ret := C.glowGetGraphicsResetStatusARB(gpGetGraphicsResetStatusARB) - return (uint32)(ret) -} -func GetGraphicsResetStatusKHR() uint32 { - ret := C.glowGetGraphicsResetStatusKHR(gpGetGraphicsResetStatusKHR) - return (uint32)(ret) -} -func GetHandleARB(pname uint32) uintptr { - ret := C.glowGetHandleARB(gpGetHandleARB, (C.GLenum)(pname)) - return (uintptr)(ret) -} -func GetHistogramEXT(target uint32, reset bool, format uint32, xtype uint32, values unsafe.Pointer) { - C.glowGetHistogramEXT(gpGetHistogramEXT, (C.GLenum)(target), (C.GLboolean)(boolToInt(reset)), (C.GLenum)(format), (C.GLenum)(xtype), values) -} -func GetHistogramParameterfvEXT(target uint32, pname uint32, params *float32) { - C.glowGetHistogramParameterfvEXT(gpGetHistogramParameterfvEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetHistogramParameterivEXT(target uint32, pname uint32, params *int32) { - C.glowGetHistogramParameterivEXT(gpGetHistogramParameterivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetHistogramParameterxvOES(target uint32, pname uint32, params *int32) { - C.glowGetHistogramParameterxvOES(gpGetHistogramParameterxvOES, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func GetImageHandleARB(texture uint32, level int32, layered bool, layer int32, format uint32) uint64 { - ret := C.glowGetImageHandleARB(gpGetImageHandleARB, (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(format)) - return (uint64)(ret) -} -func GetImageHandleNV(texture uint32, level int32, layered bool, layer int32, format uint32) uint64 { - ret := C.glowGetImageHandleNV(gpGetImageHandleNV, (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(format)) - return (uint64)(ret) -} -func GetImageTransformParameterfvHP(target uint32, pname uint32, params *float32) { - C.glowGetImageTransformParameterfvHP(gpGetImageTransformParameterfvHP, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetImageTransformParameterivHP(target uint32, pname uint32, params *int32) { - C.glowGetImageTransformParameterivHP(gpGetImageTransformParameterivHP, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetInfoLogARB(obj uintptr, maxLength int32, length *int32, infoLog *uint8) { - C.glowGetInfoLogARB(gpGetInfoLogARB, (C.GLhandleARB)(obj), (C.GLsizei)(maxLength), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLcharARB)(unsafe.Pointer(infoLog))) -} -func GetInstrumentsSGIX() int32 { - ret := C.glowGetInstrumentsSGIX(gpGetInstrumentsSGIX) - return (int32)(ret) -} -func GetInteger64v(pname uint32, data *int64) { - C.glowGetInteger64v(gpGetInteger64v, (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(data))) -} -func GetIntegerIndexedvEXT(target uint32, index uint32, data *int32) { - C.glowGetIntegerIndexedvEXT(gpGetIntegerIndexedvEXT, (C.GLenum)(target), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(data))) -} -func GetIntegerui64i_vNV(value uint32, index uint32, result *uint64) { - C.glowGetIntegerui64i_vNV(gpGetIntegerui64i_vNV, (C.GLenum)(value), (C.GLuint)(index), (*C.GLuint64EXT)(unsafe.Pointer(result))) -} -func GetIntegerui64vNV(value uint32, result *uint64) { - C.glowGetIntegerui64vNV(gpGetIntegerui64vNV, (C.GLenum)(value), (*C.GLuint64EXT)(unsafe.Pointer(result))) -} -func GetIntegerv(pname uint32, data *int32) { - C.glowGetIntegerv(gpGetIntegerv, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(data))) -} -func GetInternalformati64v(target uint32, internalformat uint32, pname uint32, bufSize int32, params *int64) { - C.glowGetInternalformati64v(gpGetInternalformati64v, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLenum)(pname), (C.GLsizei)(bufSize), (*C.GLint64)(unsafe.Pointer(params))) -} -func GetInternalformativ(target uint32, internalformat uint32, pname uint32, bufSize int32, params *int32) { - C.glowGetInternalformativ(gpGetInternalformativ, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLenum)(pname), (C.GLsizei)(bufSize), (*C.GLint)(unsafe.Pointer(params))) -} -func GetInvariantBooleanvEXT(id uint32, value uint32, data *bool) { - C.glowGetInvariantBooleanvEXT(gpGetInvariantBooleanvEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLboolean)(unsafe.Pointer(data))) -} -func GetInvariantFloatvEXT(id uint32, value uint32, data *float32) { - C.glowGetInvariantFloatvEXT(gpGetInvariantFloatvEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLfloat)(unsafe.Pointer(data))) -} -func GetInvariantIntegervEXT(id uint32, value uint32, data *int32) { - C.glowGetInvariantIntegervEXT(gpGetInvariantIntegervEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLint)(unsafe.Pointer(data))) -} -func GetLightfv(light uint32, pname uint32, params *float32) { - C.glowGetLightfv(gpGetLightfv, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetLightiv(light uint32, pname uint32, params *int32) { - C.glowGetLightiv(gpGetLightiv, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetLightxOES(light uint32, pname uint32, params *int32) { - C.glowGetLightxOES(gpGetLightxOES, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func GetLightxvOES(light uint32, pname uint32, params *int32) { - C.glowGetLightxvOES(gpGetLightxvOES, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func GetListParameterfvSGIX(list uint32, pname uint32, params *float32) { - C.glowGetListParameterfvSGIX(gpGetListParameterfvSGIX, (C.GLuint)(list), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetListParameterivSGIX(list uint32, pname uint32, params *int32) { - C.glowGetListParameterivSGIX(gpGetListParameterivSGIX, (C.GLuint)(list), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetLocalConstantBooleanvEXT(id uint32, value uint32, data *bool) { - C.glowGetLocalConstantBooleanvEXT(gpGetLocalConstantBooleanvEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLboolean)(unsafe.Pointer(data))) -} -func GetLocalConstantFloatvEXT(id uint32, value uint32, data *float32) { - C.glowGetLocalConstantFloatvEXT(gpGetLocalConstantFloatvEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLfloat)(unsafe.Pointer(data))) -} -func GetLocalConstantIntegervEXT(id uint32, value uint32, data *int32) { - C.glowGetLocalConstantIntegervEXT(gpGetLocalConstantIntegervEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLint)(unsafe.Pointer(data))) -} -func GetMapAttribParameterfvNV(target uint32, index uint32, pname uint32, params *float32) { - C.glowGetMapAttribParameterfvNV(gpGetMapAttribParameterfvNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetMapAttribParameterivNV(target uint32, index uint32, pname uint32, params *int32) { - C.glowGetMapAttribParameterivNV(gpGetMapAttribParameterivNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetMapControlPointsNV(target uint32, index uint32, xtype uint32, ustride int32, vstride int32, packed bool, points unsafe.Pointer) { - C.glowGetMapControlPointsNV(gpGetMapControlPointsNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(xtype), (C.GLsizei)(ustride), (C.GLsizei)(vstride), (C.GLboolean)(boolToInt(packed)), points) -} -func GetMapParameterfvNV(target uint32, pname uint32, params *float32) { - C.glowGetMapParameterfvNV(gpGetMapParameterfvNV, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetMapParameterivNV(target uint32, pname uint32, params *int32) { - C.glowGetMapParameterivNV(gpGetMapParameterivNV, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetMapdv(target uint32, query uint32, v *float64) { - C.glowGetMapdv(gpGetMapdv, (C.GLenum)(target), (C.GLenum)(query), (*C.GLdouble)(unsafe.Pointer(v))) -} -func GetMapfv(target uint32, query uint32, v *float32) { - C.glowGetMapfv(gpGetMapfv, (C.GLenum)(target), (C.GLenum)(query), (*C.GLfloat)(unsafe.Pointer(v))) -} -func GetMapiv(target uint32, query uint32, v *int32) { - C.glowGetMapiv(gpGetMapiv, (C.GLenum)(target), (C.GLenum)(query), (*C.GLint)(unsafe.Pointer(v))) -} -func GetMapxvOES(target uint32, query uint32, v *int32) { - C.glowGetMapxvOES(gpGetMapxvOES, (C.GLenum)(target), (C.GLenum)(query), (*C.GLfixed)(unsafe.Pointer(v))) -} -func GetMaterialfv(face uint32, pname uint32, params *float32) { - C.glowGetMaterialfv(gpGetMaterialfv, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetMaterialiv(face uint32, pname uint32, params *int32) { - C.glowGetMaterialiv(gpGetMaterialiv, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetMaterialxOES(face uint32, pname uint32, param int32) { - C.glowGetMaterialxOES(gpGetMaterialxOES, (C.GLenum)(face), (C.GLenum)(pname), (C.GLfixed)(param)) -} -func GetMaterialxvOES(face uint32, pname uint32, params *int32) { - C.glowGetMaterialxvOES(gpGetMaterialxvOES, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func GetMinmaxEXT(target uint32, reset bool, format uint32, xtype uint32, values unsafe.Pointer) { - C.glowGetMinmaxEXT(gpGetMinmaxEXT, (C.GLenum)(target), (C.GLboolean)(boolToInt(reset)), (C.GLenum)(format), (C.GLenum)(xtype), values) -} -func GetMinmaxParameterfvEXT(target uint32, pname uint32, params *float32) { - C.glowGetMinmaxParameterfvEXT(gpGetMinmaxParameterfvEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetMinmaxParameterivEXT(target uint32, pname uint32, params *int32) { - C.glowGetMinmaxParameterivEXT(gpGetMinmaxParameterivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetMultiTexEnvfvEXT(texunit uint32, target uint32, pname uint32, params *float32) { - C.glowGetMultiTexEnvfvEXT(gpGetMultiTexEnvfvEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetMultiTexEnvivEXT(texunit uint32, target uint32, pname uint32, params *int32) { - C.glowGetMultiTexEnvivEXT(gpGetMultiTexEnvivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetMultiTexGendvEXT(texunit uint32, coord uint32, pname uint32, params *float64) { - C.glowGetMultiTexGendvEXT(gpGetMultiTexGendvEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetMultiTexGenfvEXT(texunit uint32, coord uint32, pname uint32, params *float32) { - C.glowGetMultiTexGenfvEXT(gpGetMultiTexGenfvEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetMultiTexGenivEXT(texunit uint32, coord uint32, pname uint32, params *int32) { - C.glowGetMultiTexGenivEXT(gpGetMultiTexGenivEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetMultiTexImageEXT(texunit uint32, target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowGetMultiTexImageEXT(gpGetMultiTexImageEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func GetMultiTexLevelParameterfvEXT(texunit uint32, target uint32, level int32, pname uint32, params *float32) { - C.glowGetMultiTexLevelParameterfvEXT(gpGetMultiTexLevelParameterfvEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetMultiTexLevelParameterivEXT(texunit uint32, target uint32, level int32, pname uint32, params *int32) { - C.glowGetMultiTexLevelParameterivEXT(gpGetMultiTexLevelParameterivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetMultiTexParameterIivEXT(texunit uint32, target uint32, pname uint32, params *int32) { - C.glowGetMultiTexParameterIivEXT(gpGetMultiTexParameterIivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetMultiTexParameterIuivEXT(texunit uint32, target uint32, pname uint32, params *uint32) { - C.glowGetMultiTexParameterIuivEXT(gpGetMultiTexParameterIuivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetMultiTexParameterfvEXT(texunit uint32, target uint32, pname uint32, params *float32) { - C.glowGetMultiTexParameterfvEXT(gpGetMultiTexParameterfvEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetMultiTexParameterivEXT(texunit uint32, target uint32, pname uint32, params *int32) { - C.glowGetMultiTexParameterivEXT(gpGetMultiTexParameterivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// retrieve the location of a sample -func GetMultisamplefv(pname uint32, index uint32, val *float32) { - C.glowGetMultisamplefv(gpGetMultisamplefv, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val))) -} -func GetMultisamplefvNV(pname uint32, index uint32, val *float32) { - C.glowGetMultisamplefvNV(gpGetMultisamplefvNV, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val))) -} - -// return parameters of a buffer object -func GetNamedBufferParameteri64v(buffer uint32, pname uint32, params *int64) { - C.glowGetNamedBufferParameteri64v(gpGetNamedBufferParameteri64v, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params))) -} - -// return parameters of a buffer object -func GetNamedBufferParameteriv(buffer uint32, pname uint32, params *int32) { - C.glowGetNamedBufferParameteriv(gpGetNamedBufferParameteriv, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetNamedBufferParameterivEXT(buffer uint32, pname uint32, params *int32) { - C.glowGetNamedBufferParameterivEXT(gpGetNamedBufferParameterivEXT, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetNamedBufferParameterui64vNV(buffer uint32, pname uint32, params *uint64) { - C.glowGetNamedBufferParameterui64vNV(gpGetNamedBufferParameterui64vNV, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLuint64EXT)(unsafe.Pointer(params))) -} - -// return the pointer to a mapped buffer object's data store -func GetNamedBufferPointerv(buffer uint32, pname uint32, params *unsafe.Pointer) { - C.glowGetNamedBufferPointerv(gpGetNamedBufferPointerv, (C.GLuint)(buffer), (C.GLenum)(pname), params) -} -func GetNamedBufferPointervEXT(buffer uint32, pname uint32, params *unsafe.Pointer) { - C.glowGetNamedBufferPointervEXT(gpGetNamedBufferPointervEXT, (C.GLuint)(buffer), (C.GLenum)(pname), params) -} - -// returns a subset of a buffer object's data store -func GetNamedBufferSubData(buffer uint32, offset int, size int32, data unsafe.Pointer) { - C.glowGetNamedBufferSubData(gpGetNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(size), data) -} -func GetNamedBufferSubDataEXT(buffer uint32, offset int, size int, data unsafe.Pointer) { - C.glowGetNamedBufferSubDataEXT(gpGetNamedBufferSubDataEXT, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) -} - -// retrieve information about attachments of a framebuffer object -func GetNamedFramebufferAttachmentParameteriv(framebuffer uint32, attachment uint32, pname uint32, params *int32) { - C.glowGetNamedFramebufferAttachmentParameteriv(gpGetNamedFramebufferAttachmentParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetNamedFramebufferAttachmentParameterivEXT(framebuffer uint32, attachment uint32, pname uint32, params *int32) { - C.glowGetNamedFramebufferAttachmentParameterivEXT(gpGetNamedFramebufferAttachmentParameterivEXT, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// query a named parameter of a framebuffer object -func GetNamedFramebufferParameteriv(framebuffer uint32, pname uint32, param *int32) { - C.glowGetNamedFramebufferParameteriv(gpGetNamedFramebufferParameteriv, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func GetNamedFramebufferParameterivEXT(framebuffer uint32, pname uint32, params *int32) { - C.glowGetNamedFramebufferParameterivEXT(gpGetNamedFramebufferParameterivEXT, (C.GLuint)(framebuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetNamedProgramLocalParameterIivEXT(program uint32, target uint32, index uint32, params *int32) { - C.glowGetNamedProgramLocalParameterIivEXT(gpGetNamedProgramLocalParameterIivEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(params))) -} -func GetNamedProgramLocalParameterIuivEXT(program uint32, target uint32, index uint32, params *uint32) { - C.glowGetNamedProgramLocalParameterIuivEXT(gpGetNamedProgramLocalParameterIuivEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetNamedProgramLocalParameterdvEXT(program uint32, target uint32, index uint32, params *float64) { - C.glowGetNamedProgramLocalParameterdvEXT(gpGetNamedProgramLocalParameterdvEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetNamedProgramLocalParameterfvEXT(program uint32, target uint32, index uint32, params *float32) { - C.glowGetNamedProgramLocalParameterfvEXT(gpGetNamedProgramLocalParameterfvEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetNamedProgramStringEXT(program uint32, target uint32, pname uint32, xstring unsafe.Pointer) { - C.glowGetNamedProgramStringEXT(gpGetNamedProgramStringEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLenum)(pname), xstring) -} -func GetNamedProgramivEXT(program uint32, target uint32, pname uint32, params *int32) { - C.glowGetNamedProgramivEXT(gpGetNamedProgramivEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// query a named parameter of a renderbuffer object -func GetNamedRenderbufferParameteriv(renderbuffer uint32, pname uint32, params *int32) { - C.glowGetNamedRenderbufferParameteriv(gpGetNamedRenderbufferParameteriv, (C.GLuint)(renderbuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetNamedRenderbufferParameterivEXT(renderbuffer uint32, pname uint32, params *int32) { - C.glowGetNamedRenderbufferParameterivEXT(gpGetNamedRenderbufferParameterivEXT, (C.GLuint)(renderbuffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetNamedStringARB(namelen int32, name *uint8, bufSize int32, stringlen *int32, xstring *uint8) { - C.glowGetNamedStringARB(gpGetNamedStringARB, (C.GLint)(namelen), (*C.GLchar)(unsafe.Pointer(name)), (C.GLsizei)(bufSize), (*C.GLint)(unsafe.Pointer(stringlen)), (*C.GLchar)(unsafe.Pointer(xstring))) -} -func GetNamedStringivARB(namelen int32, name *uint8, pname uint32, params *int32) { - C.glowGetNamedStringivARB(gpGetNamedStringivARB, (C.GLint)(namelen), (*C.GLchar)(unsafe.Pointer(name)), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetNextPerfQueryIdINTEL(queryId uint32, nextQueryId *uint32) { - C.glowGetNextPerfQueryIdINTEL(gpGetNextPerfQueryIdINTEL, (C.GLuint)(queryId), (*C.GLuint)(unsafe.Pointer(nextQueryId))) -} -func GetObjectBufferfvATI(buffer uint32, pname uint32, params *float32) { - C.glowGetObjectBufferfvATI(gpGetObjectBufferfvATI, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetObjectBufferivATI(buffer uint32, pname uint32, params *int32) { - C.glowGetObjectBufferivATI(gpGetObjectBufferivATI, (C.GLuint)(buffer), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// retrieve the label of a named object identified within a namespace -func GetObjectLabel(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) { - C.glowGetObjectLabel(gpGetObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) -} -func GetObjectLabelEXT(xtype uint32, object uint32, bufSize int32, length *int32, label *uint8) { - C.glowGetObjectLabelEXT(gpGetObjectLabelEXT, (C.GLenum)(xtype), (C.GLuint)(object), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) -} -func GetObjectLabelKHR(identifier uint32, name uint32, bufSize int32, length *int32, label *uint8) { - C.glowGetObjectLabelKHR(gpGetObjectLabelKHR, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) -} -func GetObjectParameterfvARB(obj uintptr, pname uint32, params *float32) { - C.glowGetObjectParameterfvARB(gpGetObjectParameterfvARB, (C.GLhandleARB)(obj), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetObjectParameterivAPPLE(objectType uint32, name uint32, pname uint32, params *int32) { - C.glowGetObjectParameterivAPPLE(gpGetObjectParameterivAPPLE, (C.GLenum)(objectType), (C.GLuint)(name), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetObjectParameterivARB(obj uintptr, pname uint32, params *int32) { - C.glowGetObjectParameterivARB(gpGetObjectParameterivARB, (C.GLhandleARB)(obj), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// retrieve the label of a sync object identified by a pointer -func GetObjectPtrLabel(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) { - C.glowGetObjectPtrLabel(gpGetObjectPtrLabel, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) -} -func GetObjectPtrLabelKHR(ptr unsafe.Pointer, bufSize int32, length *int32, label *uint8) { - C.glowGetObjectPtrLabelKHR(gpGetObjectPtrLabelKHR, ptr, (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(label))) -} -func GetOcclusionQueryivNV(id uint32, pname uint32, params *int32) { - C.glowGetOcclusionQueryivNV(gpGetOcclusionQueryivNV, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetOcclusionQueryuivNV(id uint32, pname uint32, params *uint32) { - C.glowGetOcclusionQueryuivNV(gpGetOcclusionQueryuivNV, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetPathColorGenfvNV(color uint32, pname uint32, value *float32) { - C.glowGetPathColorGenfvNV(gpGetPathColorGenfvNV, (C.GLenum)(color), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(value))) -} -func GetPathColorGenivNV(color uint32, pname uint32, value *int32) { - C.glowGetPathColorGenivNV(gpGetPathColorGenivNV, (C.GLenum)(color), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(value))) -} -func GetPathCommandsNV(path uint32, commands *uint8) { - C.glowGetPathCommandsNV(gpGetPathCommandsNV, (C.GLuint)(path), (*C.GLubyte)(unsafe.Pointer(commands))) -} -func GetPathCoordsNV(path uint32, coords *float32) { - C.glowGetPathCoordsNV(gpGetPathCoordsNV, (C.GLuint)(path), (*C.GLfloat)(unsafe.Pointer(coords))) -} -func GetPathDashArrayNV(path uint32, dashArray *float32) { - C.glowGetPathDashArrayNV(gpGetPathDashArrayNV, (C.GLuint)(path), (*C.GLfloat)(unsafe.Pointer(dashArray))) -} -func GetPathLengthNV(path uint32, startSegment int32, numSegments int32) float32 { - ret := C.glowGetPathLengthNV(gpGetPathLengthNV, (C.GLuint)(path), (C.GLsizei)(startSegment), (C.GLsizei)(numSegments)) - return (float32)(ret) -} -func GetPathMetricRangeNV(metricQueryMask uint32, firstPathName uint32, numPaths int32, stride int32, metrics *float32) { - C.glowGetPathMetricRangeNV(gpGetPathMetricRangeNV, (C.GLbitfield)(metricQueryMask), (C.GLuint)(firstPathName), (C.GLsizei)(numPaths), (C.GLsizei)(stride), (*C.GLfloat)(unsafe.Pointer(metrics))) -} -func GetPathMetricsNV(metricQueryMask uint32, numPaths int32, pathNameType uint32, paths unsafe.Pointer, pathBase uint32, stride int32, metrics *float32) { - C.glowGetPathMetricsNV(gpGetPathMetricsNV, (C.GLbitfield)(metricQueryMask), (C.GLsizei)(numPaths), (C.GLenum)(pathNameType), paths, (C.GLuint)(pathBase), (C.GLsizei)(stride), (*C.GLfloat)(unsafe.Pointer(metrics))) -} -func GetPathParameterfvNV(path uint32, pname uint32, value *float32) { - C.glowGetPathParameterfvNV(gpGetPathParameterfvNV, (C.GLuint)(path), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(value))) -} -func GetPathParameterivNV(path uint32, pname uint32, value *int32) { - C.glowGetPathParameterivNV(gpGetPathParameterivNV, (C.GLuint)(path), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(value))) -} -func GetPathSpacingNV(pathListMode uint32, numPaths int32, pathNameType uint32, paths unsafe.Pointer, pathBase uint32, advanceScale float32, kerningScale float32, transformType uint32, returnedSpacing *float32) { - C.glowGetPathSpacingNV(gpGetPathSpacingNV, (C.GLenum)(pathListMode), (C.GLsizei)(numPaths), (C.GLenum)(pathNameType), paths, (C.GLuint)(pathBase), (C.GLfloat)(advanceScale), (C.GLfloat)(kerningScale), (C.GLenum)(transformType), (*C.GLfloat)(unsafe.Pointer(returnedSpacing))) -} -func GetPathTexGenfvNV(texCoordSet uint32, pname uint32, value *float32) { - C.glowGetPathTexGenfvNV(gpGetPathTexGenfvNV, (C.GLenum)(texCoordSet), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(value))) -} -func GetPathTexGenivNV(texCoordSet uint32, pname uint32, value *int32) { - C.glowGetPathTexGenivNV(gpGetPathTexGenivNV, (C.GLenum)(texCoordSet), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(value))) -} -func GetPerfCounterInfoINTEL(queryId uint32, counterId uint32, counterNameLength uint32, counterName *uint8, counterDescLength uint32, counterDesc *uint8, counterOffset *uint32, counterDataSize *uint32, counterTypeEnum *uint32, counterDataTypeEnum *uint32, rawCounterMaxValue *uint64) { - C.glowGetPerfCounterInfoINTEL(gpGetPerfCounterInfoINTEL, (C.GLuint)(queryId), (C.GLuint)(counterId), (C.GLuint)(counterNameLength), (*C.GLchar)(unsafe.Pointer(counterName)), (C.GLuint)(counterDescLength), (*C.GLchar)(unsafe.Pointer(counterDesc)), (*C.GLuint)(unsafe.Pointer(counterOffset)), (*C.GLuint)(unsafe.Pointer(counterDataSize)), (*C.GLuint)(unsafe.Pointer(counterTypeEnum)), (*C.GLuint)(unsafe.Pointer(counterDataTypeEnum)), (*C.GLuint64)(unsafe.Pointer(rawCounterMaxValue))) -} -func GetPerfMonitorCounterDataAMD(monitor uint32, pname uint32, dataSize int32, data *uint32, bytesWritten *int32) { - C.glowGetPerfMonitorCounterDataAMD(gpGetPerfMonitorCounterDataAMD, (C.GLuint)(monitor), (C.GLenum)(pname), (C.GLsizei)(dataSize), (*C.GLuint)(unsafe.Pointer(data)), (*C.GLint)(unsafe.Pointer(bytesWritten))) -} -func GetPerfMonitorCounterInfoAMD(group uint32, counter uint32, pname uint32, data unsafe.Pointer) { - C.glowGetPerfMonitorCounterInfoAMD(gpGetPerfMonitorCounterInfoAMD, (C.GLuint)(group), (C.GLuint)(counter), (C.GLenum)(pname), data) -} -func GetPerfMonitorCounterStringAMD(group uint32, counter uint32, bufSize int32, length *int32, counterString *uint8) { - C.glowGetPerfMonitorCounterStringAMD(gpGetPerfMonitorCounterStringAMD, (C.GLuint)(group), (C.GLuint)(counter), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(counterString))) -} -func GetPerfMonitorCountersAMD(group uint32, numCounters *int32, maxActiveCounters *int32, counterSize int32, counters *uint32) { - C.glowGetPerfMonitorCountersAMD(gpGetPerfMonitorCountersAMD, (C.GLuint)(group), (*C.GLint)(unsafe.Pointer(numCounters)), (*C.GLint)(unsafe.Pointer(maxActiveCounters)), (C.GLsizei)(counterSize), (*C.GLuint)(unsafe.Pointer(counters))) -} -func GetPerfMonitorGroupStringAMD(group uint32, bufSize int32, length *int32, groupString *uint8) { - C.glowGetPerfMonitorGroupStringAMD(gpGetPerfMonitorGroupStringAMD, (C.GLuint)(group), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(groupString))) -} -func GetPerfMonitorGroupsAMD(numGroups *int32, groupsSize int32, groups *uint32) { - C.glowGetPerfMonitorGroupsAMD(gpGetPerfMonitorGroupsAMD, (*C.GLint)(unsafe.Pointer(numGroups)), (C.GLsizei)(groupsSize), (*C.GLuint)(unsafe.Pointer(groups))) -} -func GetPerfQueryDataINTEL(queryHandle uint32, flags uint32, dataSize int32, data unsafe.Pointer, bytesWritten *uint32) { - C.glowGetPerfQueryDataINTEL(gpGetPerfQueryDataINTEL, (C.GLuint)(queryHandle), (C.GLuint)(flags), (C.GLsizei)(dataSize), data, (*C.GLuint)(unsafe.Pointer(bytesWritten))) -} -func GetPerfQueryIdByNameINTEL(queryName *uint8, queryId *uint32) { - C.glowGetPerfQueryIdByNameINTEL(gpGetPerfQueryIdByNameINTEL, (*C.GLchar)(unsafe.Pointer(queryName)), (*C.GLuint)(unsafe.Pointer(queryId))) -} -func GetPerfQueryInfoINTEL(queryId uint32, queryNameLength uint32, queryName *uint8, dataSize *uint32, noCounters *uint32, noInstances *uint32, capsMask *uint32) { - C.glowGetPerfQueryInfoINTEL(gpGetPerfQueryInfoINTEL, (C.GLuint)(queryId), (C.GLuint)(queryNameLength), (*C.GLchar)(unsafe.Pointer(queryName)), (*C.GLuint)(unsafe.Pointer(dataSize)), (*C.GLuint)(unsafe.Pointer(noCounters)), (*C.GLuint)(unsafe.Pointer(noInstances)), (*C.GLuint)(unsafe.Pointer(capsMask))) -} -func GetPixelMapfv(xmap uint32, values *float32) { - C.glowGetPixelMapfv(gpGetPixelMapfv, (C.GLenum)(xmap), (*C.GLfloat)(unsafe.Pointer(values))) -} -func GetPixelMapuiv(xmap uint32, values *uint32) { - C.glowGetPixelMapuiv(gpGetPixelMapuiv, (C.GLenum)(xmap), (*C.GLuint)(unsafe.Pointer(values))) -} -func GetPixelMapusv(xmap uint32, values *uint16) { - C.glowGetPixelMapusv(gpGetPixelMapusv, (C.GLenum)(xmap), (*C.GLushort)(unsafe.Pointer(values))) -} -func GetPixelMapxv(xmap uint32, size int32, values *int32) { - C.glowGetPixelMapxv(gpGetPixelMapxv, (C.GLenum)(xmap), (C.GLint)(size), (*C.GLfixed)(unsafe.Pointer(values))) -} -func GetPixelTexGenParameterfvSGIS(pname uint32, params *float32) { - C.glowGetPixelTexGenParameterfvSGIS(gpGetPixelTexGenParameterfvSGIS, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetPixelTexGenParameterivSGIS(pname uint32, params *int32) { - C.glowGetPixelTexGenParameterivSGIS(gpGetPixelTexGenParameterivSGIS, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetPixelTransformParameterfvEXT(target uint32, pname uint32, params *float32) { - C.glowGetPixelTransformParameterfvEXT(gpGetPixelTransformParameterfvEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetPixelTransformParameterivEXT(target uint32, pname uint32, params *int32) { - C.glowGetPixelTransformParameterivEXT(gpGetPixelTransformParameterivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetPointerIndexedvEXT(target uint32, index uint32, data *unsafe.Pointer) { - C.glowGetPointerIndexedvEXT(gpGetPointerIndexedvEXT, (C.GLenum)(target), (C.GLuint)(index), data) -} -func GetPointeri_vEXT(pname uint32, index uint32, params *unsafe.Pointer) { - C.glowGetPointeri_vEXT(gpGetPointeri_vEXT, (C.GLenum)(pname), (C.GLuint)(index), params) -} - -// return the address of the specified pointer -func GetPointerv(pname uint32, params *unsafe.Pointer) { - C.glowGetPointerv(gpGetPointerv, (C.GLenum)(pname), params) -} -func GetPointervEXT(pname uint32, params *unsafe.Pointer) { - C.glowGetPointervEXT(gpGetPointervEXT, (C.GLenum)(pname), params) -} -func GetPointervKHR(pname uint32, params *unsafe.Pointer) { - C.glowGetPointervKHR(gpGetPointervKHR, (C.GLenum)(pname), params) -} - -// return the polygon stipple pattern -func GetPolygonStipple(mask *uint8) { - C.glowGetPolygonStipple(gpGetPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask))) -} - -// return a binary representation of a program object's compiled and linked executable source -func GetProgramBinary(program uint32, bufSize int32, length *int32, binaryFormat *uint32, binary unsafe.Pointer) { - C.glowGetProgramBinary(gpGetProgramBinary, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLenum)(unsafe.Pointer(binaryFormat)), binary) -} -func GetProgramEnvParameterIivNV(target uint32, index uint32, params *int32) { - C.glowGetProgramEnvParameterIivNV(gpGetProgramEnvParameterIivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(params))) -} -func GetProgramEnvParameterIuivNV(target uint32, index uint32, params *uint32) { - C.glowGetProgramEnvParameterIuivNV(gpGetProgramEnvParameterIuivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetProgramEnvParameterdvARB(target uint32, index uint32, params *float64) { - C.glowGetProgramEnvParameterdvARB(gpGetProgramEnvParameterdvARB, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetProgramEnvParameterfvARB(target uint32, index uint32, params *float32) { - C.glowGetProgramEnvParameterfvARB(gpGetProgramEnvParameterfvARB, (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(params))) -} - -// Returns the information log for a program object -func GetProgramInfoLog(program uint32, bufSize int32, length *int32, infoLog *uint8) { - C.glowGetProgramInfoLog(gpGetProgramInfoLog, (C.GLuint)(program), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) -} -func GetProgramInterfaceiv(program uint32, programInterface uint32, pname uint32, params *int32) { - C.glowGetProgramInterfaceiv(gpGetProgramInterfaceiv, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetProgramLocalParameterIivNV(target uint32, index uint32, params *int32) { - C.glowGetProgramLocalParameterIivNV(gpGetProgramLocalParameterIivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(params))) -} -func GetProgramLocalParameterIuivNV(target uint32, index uint32, params *uint32) { - C.glowGetProgramLocalParameterIuivNV(gpGetProgramLocalParameterIuivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetProgramLocalParameterdvARB(target uint32, index uint32, params *float64) { - C.glowGetProgramLocalParameterdvARB(gpGetProgramLocalParameterdvARB, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetProgramLocalParameterfvARB(target uint32, index uint32, params *float32) { - C.glowGetProgramLocalParameterfvARB(gpGetProgramLocalParameterfvARB, (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetProgramNamedParameterdvNV(id uint32, len int32, name *uint8, params *float64) { - C.glowGetProgramNamedParameterdvNV(gpGetProgramNamedParameterdvNV, (C.GLuint)(id), (C.GLsizei)(len), (*C.GLubyte)(unsafe.Pointer(name)), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetProgramNamedParameterfvNV(id uint32, len int32, name *uint8, params *float32) { - C.glowGetProgramNamedParameterfvNV(gpGetProgramNamedParameterfvNV, (C.GLuint)(id), (C.GLsizei)(len), (*C.GLubyte)(unsafe.Pointer(name)), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetProgramParameterdvNV(target uint32, index uint32, pname uint32, params *float64) { - C.glowGetProgramParameterdvNV(gpGetProgramParameterdvNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetProgramParameterfvNV(target uint32, index uint32, pname uint32, params *float32) { - C.glowGetProgramParameterfvNV(gpGetProgramParameterfvNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} - -// retrieve the info log string from a program pipeline object -func GetProgramPipelineInfoLog(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) { - C.glowGetProgramPipelineInfoLog(gpGetProgramPipelineInfoLog, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) -} -func GetProgramPipelineInfoLogEXT(pipeline uint32, bufSize int32, length *int32, infoLog *uint8) { - C.glowGetProgramPipelineInfoLogEXT(gpGetProgramPipelineInfoLogEXT, (C.GLuint)(pipeline), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) -} -func GetProgramPipelineiv(pipeline uint32, pname uint32, params *int32) { - C.glowGetProgramPipelineiv(gpGetProgramPipelineiv, (C.GLuint)(pipeline), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetProgramPipelineivEXT(pipeline uint32, pname uint32, params *int32) { - C.glowGetProgramPipelineivEXT(gpGetProgramPipelineivEXT, (C.GLuint)(pipeline), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// query the index of a named resource within a program -func GetProgramResourceIndex(program uint32, programInterface uint32, name *uint8) uint32 { - ret := C.glowGetProgramResourceIndex(gpGetProgramResourceIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) - return (uint32)(ret) -} - -// query the location of a named resource within a program -func GetProgramResourceLocation(program uint32, programInterface uint32, name *uint8) int32 { - ret := C.glowGetProgramResourceLocation(gpGetProgramResourceLocation, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) - return (int32)(ret) -} - -// query the fragment color index of a named variable within a program -func GetProgramResourceLocationIndex(program uint32, programInterface uint32, name *uint8) int32 { - ret := C.glowGetProgramResourceLocationIndex(gpGetProgramResourceLocationIndex, (C.GLuint)(program), (C.GLenum)(programInterface), (*C.GLchar)(unsafe.Pointer(name))) - return (int32)(ret) -} - -// query the name of an indexed resource within a program -func GetProgramResourceName(program uint32, programInterface uint32, index uint32, bufSize int32, length *int32, name *uint8) { - C.glowGetProgramResourceName(gpGetProgramResourceName, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(name))) -} -func GetProgramResourcefvNV(program uint32, programInterface uint32, index uint32, propCount int32, props *uint32, bufSize int32, length *int32, params *float32) { - C.glowGetProgramResourcefvNV(gpGetProgramResourcefvNV, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(propCount), (*C.GLenum)(unsafe.Pointer(props)), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetProgramResourceiv(program uint32, programInterface uint32, index uint32, propCount int32, props *uint32, bufSize int32, length *int32, params *int32) { - C.glowGetProgramResourceiv(gpGetProgramResourceiv, (C.GLuint)(program), (C.GLenum)(programInterface), (C.GLuint)(index), (C.GLsizei)(propCount), (*C.GLenum)(unsafe.Pointer(props)), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(params))) -} -func GetProgramStageiv(program uint32, shadertype uint32, pname uint32, values *int32) { - C.glowGetProgramStageiv(gpGetProgramStageiv, (C.GLuint)(program), (C.GLenum)(shadertype), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(values))) -} -func GetProgramStringARB(target uint32, pname uint32, xstring unsafe.Pointer) { - C.glowGetProgramStringARB(gpGetProgramStringARB, (C.GLenum)(target), (C.GLenum)(pname), xstring) -} -func GetProgramStringNV(id uint32, pname uint32, program *uint8) { - C.glowGetProgramStringNV(gpGetProgramStringNV, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLubyte)(unsafe.Pointer(program))) -} -func GetProgramSubroutineParameteruivNV(target uint32, index uint32, param *uint32) { - C.glowGetProgramSubroutineParameteruivNV(gpGetProgramSubroutineParameteruivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(param))) -} - -// Returns a parameter from a program object -func GetProgramiv(program uint32, pname uint32, params *int32) { - C.glowGetProgramiv(gpGetProgramiv, (C.GLuint)(program), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetProgramivARB(target uint32, pname uint32, params *int32) { - C.glowGetProgramivARB(gpGetProgramivARB, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetProgramivNV(id uint32, pname uint32, params *int32) { - C.glowGetProgramivNV(gpGetProgramivNV, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// return parameters of an indexed query object target -func GetQueryIndexediv(target uint32, index uint32, pname uint32, params *int32) { - C.glowGetQueryIndexediv(gpGetQueryIndexediv, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetQueryObjecti64v(id uint32, pname uint32, params *int64) { - C.glowGetQueryObjecti64v(gpGetQueryObjecti64v, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params))) -} -func GetQueryObjecti64vEXT(id uint32, pname uint32, params *int64) { - C.glowGetQueryObjecti64vEXT(gpGetQueryObjecti64vEXT, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params))) -} -func GetQueryObjectiv(id uint32, pname uint32, params *int32) { - C.glowGetQueryObjectiv(gpGetQueryObjectiv, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetQueryObjectivARB(id uint32, pname uint32, params *int32) { - C.glowGetQueryObjectivARB(gpGetQueryObjectivARB, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetQueryObjectui64v(id uint32, pname uint32, params *uint64) { - C.glowGetQueryObjectui64v(gpGetQueryObjectui64v, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLuint64)(unsafe.Pointer(params))) -} -func GetQueryObjectui64vEXT(id uint32, pname uint32, params *uint64) { - C.glowGetQueryObjectui64vEXT(gpGetQueryObjectui64vEXT, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLuint64)(unsafe.Pointer(params))) -} -func GetQueryObjectuiv(id uint32, pname uint32, params *uint32) { - C.glowGetQueryObjectuiv(gpGetQueryObjectuiv, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetQueryObjectuivARB(id uint32, pname uint32, params *uint32) { - C.glowGetQueryObjectuivARB(gpGetQueryObjectuivARB, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} - -// return parameters of a query object target -func GetQueryiv(target uint32, pname uint32, params *int32) { - C.glowGetQueryiv(gpGetQueryiv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetQueryivARB(target uint32, pname uint32, params *int32) { - C.glowGetQueryivARB(gpGetQueryivARB, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// query a named parameter of a renderbuffer object -func GetRenderbufferParameteriv(target uint32, pname uint32, params *int32) { - C.glowGetRenderbufferParameteriv(gpGetRenderbufferParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetRenderbufferParameterivEXT(target uint32, pname uint32, params *int32) { - C.glowGetRenderbufferParameterivEXT(gpGetRenderbufferParameterivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetSamplerParameterIiv(sampler uint32, pname uint32, params *int32) { - C.glowGetSamplerParameterIiv(gpGetSamplerParameterIiv, (C.GLuint)(sampler), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetSamplerParameterIuiv(sampler uint32, pname uint32, params *uint32) { - C.glowGetSamplerParameterIuiv(gpGetSamplerParameterIuiv, (C.GLuint)(sampler), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetSamplerParameterfv(sampler uint32, pname uint32, params *float32) { - C.glowGetSamplerParameterfv(gpGetSamplerParameterfv, (C.GLuint)(sampler), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetSamplerParameteriv(sampler uint32, pname uint32, params *int32) { - C.glowGetSamplerParameteriv(gpGetSamplerParameteriv, (C.GLuint)(sampler), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetSeparableFilterEXT(target uint32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer, span unsafe.Pointer) { - C.glowGetSeparableFilterEXT(gpGetSeparableFilterEXT, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), row, column, span) -} - -// Returns the information log for a shader object -func GetShaderInfoLog(shader uint32, bufSize int32, length *int32, infoLog *uint8) { - C.glowGetShaderInfoLog(gpGetShaderInfoLog, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(infoLog))) -} - -// retrieve the range and precision for numeric formats supported by the shader compiler -func GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32, xrange *int32, precision *int32) { - C.glowGetShaderPrecisionFormat(gpGetShaderPrecisionFormat, (C.GLenum)(shadertype), (C.GLenum)(precisiontype), (*C.GLint)(unsafe.Pointer(xrange)), (*C.GLint)(unsafe.Pointer(precision))) -} - -// Returns the source code string from a shader object -func GetShaderSource(shader uint32, bufSize int32, length *int32, source *uint8) { - C.glowGetShaderSource(gpGetShaderSource, (C.GLuint)(shader), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLchar)(unsafe.Pointer(source))) -} -func GetShaderSourceARB(obj uintptr, maxLength int32, length *int32, source *uint8) { - C.glowGetShaderSourceARB(gpGetShaderSourceARB, (C.GLhandleARB)(obj), (C.GLsizei)(maxLength), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLcharARB)(unsafe.Pointer(source))) -} - -// Returns a parameter from a shader object -func GetShaderiv(shader uint32, pname uint32, params *int32) { - C.glowGetShaderiv(gpGetShaderiv, (C.GLuint)(shader), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetSharpenTexFuncSGIS(target uint32, points *float32) { - C.glowGetSharpenTexFuncSGIS(gpGetSharpenTexFuncSGIS, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(points))) -} - -// return a string describing the current GL connection -func GetString(name uint32) *uint8 { - ret := C.glowGetString(gpGetString, (C.GLenum)(name)) - return (*uint8)(ret) -} - -// retrieve the index of a subroutine uniform of a given shader stage within a program -func GetSubroutineIndex(program uint32, shadertype uint32, name *uint8) uint32 { - ret := C.glowGetSubroutineIndex(gpGetSubroutineIndex, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name))) - return (uint32)(ret) -} - -// retrieve the location of a subroutine uniform of a given shader stage within a program -func GetSubroutineUniformLocation(program uint32, shadertype uint32, name *uint8) int32 { - ret := C.glowGetSubroutineUniformLocation(gpGetSubroutineUniformLocation, (C.GLuint)(program), (C.GLenum)(shadertype), (*C.GLchar)(unsafe.Pointer(name))) - return (int32)(ret) -} - -// query the properties of a sync object -func GetSynciv(sync unsafe.Pointer, pname uint32, bufSize int32, length *int32, values *int32) { - C.glowGetSynciv(gpGetSynciv, (C.GLsync)(sync), (C.GLenum)(pname), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(values))) -} -func GetTexBumpParameterfvATI(pname uint32, param *float32) { - C.glowGetTexBumpParameterfvATI(gpGetTexBumpParameterfvATI, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(param))) -} -func GetTexBumpParameterivATI(pname uint32, param *int32) { - C.glowGetTexBumpParameterivATI(gpGetTexBumpParameterivATI, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func GetTexEnvfv(target uint32, pname uint32, params *float32) { - C.glowGetTexEnvfv(gpGetTexEnvfv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetTexEnviv(target uint32, pname uint32, params *int32) { - C.glowGetTexEnviv(gpGetTexEnviv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTexEnvxvOES(target uint32, pname uint32, params *int32) { - C.glowGetTexEnvxvOES(gpGetTexEnvxvOES, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func GetTexFilterFuncSGIS(target uint32, filter uint32, weights *float32) { - C.glowGetTexFilterFuncSGIS(gpGetTexFilterFuncSGIS, (C.GLenum)(target), (C.GLenum)(filter), (*C.GLfloat)(unsafe.Pointer(weights))) -} -func GetTexGendv(coord uint32, pname uint32, params *float64) { - C.glowGetTexGendv(gpGetTexGendv, (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetTexGenfv(coord uint32, pname uint32, params *float32) { - C.glowGetTexGenfv(gpGetTexGenfv, (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetTexGeniv(coord uint32, pname uint32, params *int32) { - C.glowGetTexGeniv(gpGetTexGeniv, (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTexGenxvOES(coord uint32, pname uint32, params *int32) { - C.glowGetTexGenxvOES(gpGetTexGenxvOES, (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} - -// return a texture image -func GetTexImage(target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowGetTexImage(gpGetTexImage, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func GetTexLevelParameterfv(target uint32, level int32, pname uint32, params *float32) { - C.glowGetTexLevelParameterfv(gpGetTexLevelParameterfv, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetTexLevelParameteriv(target uint32, level int32, pname uint32, params *int32) { - C.glowGetTexLevelParameteriv(gpGetTexLevelParameteriv, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTexLevelParameterxvOES(target uint32, level int32, pname uint32, params *int32) { - C.glowGetTexLevelParameterxvOES(gpGetTexLevelParameterxvOES, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func GetTexParameterIivEXT(target uint32, pname uint32, params *int32) { - C.glowGetTexParameterIivEXT(gpGetTexParameterIivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTexParameterIuivEXT(target uint32, pname uint32, params *uint32) { - C.glowGetTexParameterIuivEXT(gpGetTexParameterIuivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetTexParameterPointervAPPLE(target uint32, pname uint32, params *unsafe.Pointer) { - C.glowGetTexParameterPointervAPPLE(gpGetTexParameterPointervAPPLE, (C.GLenum)(target), (C.GLenum)(pname), params) -} -func GetTexParameterfv(target uint32, pname uint32, params *float32) { - C.glowGetTexParameterfv(gpGetTexParameterfv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetTexParameteriv(target uint32, pname uint32, params *int32) { - C.glowGetTexParameteriv(gpGetTexParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTexParameterxvOES(target uint32, pname uint32, params *int32) { - C.glowGetTexParameterxvOES(gpGetTexParameterxvOES, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func GetTextureHandleARB(texture uint32) uint64 { - ret := C.glowGetTextureHandleARB(gpGetTextureHandleARB, (C.GLuint)(texture)) - return (uint64)(ret) -} -func GetTextureHandleNV(texture uint32) uint64 { - ret := C.glowGetTextureHandleNV(gpGetTextureHandleNV, (C.GLuint)(texture)) - return (uint64)(ret) -} - -// return a texture image -func GetTextureImage(texture uint32, level int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) { - C.glowGetTextureImage(gpGetTextureImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels) -} -func GetTextureImageEXT(texture uint32, target uint32, level int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowGetTextureImageEXT(gpGetTextureImageEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func GetTextureLevelParameterfv(texture uint32, level int32, pname uint32, params *float32) { - C.glowGetTextureLevelParameterfv(gpGetTextureLevelParameterfv, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetTextureLevelParameterfvEXT(texture uint32, target uint32, level int32, pname uint32, params *float32) { - C.glowGetTextureLevelParameterfvEXT(gpGetTextureLevelParameterfvEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetTextureLevelParameteriv(texture uint32, level int32, pname uint32, params *int32) { - C.glowGetTextureLevelParameteriv(gpGetTextureLevelParameteriv, (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTextureLevelParameterivEXT(texture uint32, target uint32, level int32, pname uint32, params *int32) { - C.glowGetTextureLevelParameterivEXT(gpGetTextureLevelParameterivEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTextureParameterIiv(texture uint32, pname uint32, params *int32) { - C.glowGetTextureParameterIiv(gpGetTextureParameterIiv, (C.GLuint)(texture), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTextureParameterIivEXT(texture uint32, target uint32, pname uint32, params *int32) { - C.glowGetTextureParameterIivEXT(gpGetTextureParameterIivEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTextureParameterIuiv(texture uint32, pname uint32, params *uint32) { - C.glowGetTextureParameterIuiv(gpGetTextureParameterIuiv, (C.GLuint)(texture), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetTextureParameterIuivEXT(texture uint32, target uint32, pname uint32, params *uint32) { - C.glowGetTextureParameterIuivEXT(gpGetTextureParameterIuivEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetTextureParameterfv(texture uint32, pname uint32, params *float32) { - C.glowGetTextureParameterfv(gpGetTextureParameterfv, (C.GLuint)(texture), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetTextureParameterfvEXT(texture uint32, target uint32, pname uint32, params *float32) { - C.glowGetTextureParameterfvEXT(gpGetTextureParameterfvEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetTextureParameteriv(texture uint32, pname uint32, params *int32) { - C.glowGetTextureParameteriv(gpGetTextureParameteriv, (C.GLuint)(texture), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTextureParameterivEXT(texture uint32, target uint32, pname uint32, params *int32) { - C.glowGetTextureParameterivEXT(gpGetTextureParameterivEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTextureSamplerHandleARB(texture uint32, sampler uint32) uint64 { - ret := C.glowGetTextureSamplerHandleARB(gpGetTextureSamplerHandleARB, (C.GLuint)(texture), (C.GLuint)(sampler)) - return (uint64)(ret) -} -func GetTextureSamplerHandleNV(texture uint32, sampler uint32) uint64 { - ret := C.glowGetTextureSamplerHandleNV(gpGetTextureSamplerHandleNV, (C.GLuint)(texture), (C.GLuint)(sampler)) - return (uint64)(ret) -} - -// retrieve a sub-region of a texture image from a texture object -func GetTextureSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, bufSize int32, pixels unsafe.Pointer) { - C.glowGetTextureSubImage(gpGetTextureSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels) -} -func GetTrackMatrixivNV(target uint32, address uint32, pname uint32, params *int32) { - C.glowGetTrackMatrixivNV(gpGetTrackMatrixivNV, (C.GLenum)(target), (C.GLuint)(address), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetTransformFeedbackVaryingEXT(program uint32, index uint32, bufSize int32, length *int32, size *int32, xtype *uint32, name *uint8) { - C.glowGetTransformFeedbackVaryingEXT(gpGetTransformFeedbackVaryingEXT, (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLsizei)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name))) -} -func GetTransformFeedbackVaryingNV(program uint32, index uint32, location *int32) { - C.glowGetTransformFeedbackVaryingNV(gpGetTransformFeedbackVaryingNV, (C.GLuint)(program), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(location))) -} -func GetTransformFeedbacki64_v(xfb uint32, pname uint32, index uint32, param *int64) { - C.glowGetTransformFeedbacki64_v(gpGetTransformFeedbacki64_v, (C.GLuint)(xfb), (C.GLenum)(pname), (C.GLuint)(index), (*C.GLint64)(unsafe.Pointer(param))) -} -func GetTransformFeedbacki_v(xfb uint32, pname uint32, index uint32, param *int32) { - C.glowGetTransformFeedbacki_v(gpGetTransformFeedbacki_v, (C.GLuint)(xfb), (C.GLenum)(pname), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(param))) -} - -// query the state of a transform feedback object. -func GetTransformFeedbackiv(xfb uint32, pname uint32, param *int32) { - C.glowGetTransformFeedbackiv(gpGetTransformFeedbackiv, (C.GLuint)(xfb), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} - -// retrieve the index of a named uniform block -func GetUniformBlockIndex(program uint32, uniformBlockName *uint8) uint32 { - ret := C.glowGetUniformBlockIndex(gpGetUniformBlockIndex, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(uniformBlockName))) - return (uint32)(ret) -} -func GetUniformBufferSizeEXT(program uint32, location int32) int32 { - ret := C.glowGetUniformBufferSizeEXT(gpGetUniformBufferSizeEXT, (C.GLuint)(program), (C.GLint)(location)) - return (int32)(ret) -} - -// retrieve the index of a named uniform block -func GetUniformIndices(program uint32, uniformCount int32, uniformNames **uint8, uniformIndices *uint32) { - C.glowGetUniformIndices(gpGetUniformIndices, (C.GLuint)(program), (C.GLsizei)(uniformCount), (**C.GLchar)(unsafe.Pointer(uniformNames)), (*C.GLuint)(unsafe.Pointer(uniformIndices))) -} - -// Returns the location of a uniform variable -func GetUniformLocation(program uint32, name *uint8) int32 { - ret := C.glowGetUniformLocation(gpGetUniformLocation, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) - return (int32)(ret) -} -func GetUniformLocationARB(programObj uintptr, name *uint8) int32 { - ret := C.glowGetUniformLocationARB(gpGetUniformLocationARB, (C.GLhandleARB)(programObj), (*C.GLcharARB)(unsafe.Pointer(name))) - return (int32)(ret) -} -func GetUniformOffsetEXT(program uint32, location int32) int { - ret := C.glowGetUniformOffsetEXT(gpGetUniformOffsetEXT, (C.GLuint)(program), (C.GLint)(location)) - return (int)(ret) -} -func GetUniformSubroutineuiv(shadertype uint32, location int32, params *uint32) { - C.glowGetUniformSubroutineuiv(gpGetUniformSubroutineuiv, (C.GLenum)(shadertype), (C.GLint)(location), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetUniformdv(program uint32, location int32, params *float64) { - C.glowGetUniformdv(gpGetUniformdv, (C.GLuint)(program), (C.GLint)(location), (*C.GLdouble)(unsafe.Pointer(params))) -} - -// Returns the value of a uniform variable -func GetUniformfv(program uint32, location int32, params *float32) { - C.glowGetUniformfv(gpGetUniformfv, (C.GLuint)(program), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetUniformfvARB(programObj uintptr, location int32, params *float32) { - C.glowGetUniformfvARB(gpGetUniformfvARB, (C.GLhandleARB)(programObj), (C.GLint)(location), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetUniformi64vNV(program uint32, location int32, params *int64) { - C.glowGetUniformi64vNV(gpGetUniformi64vNV, (C.GLuint)(program), (C.GLint)(location), (*C.GLint64EXT)(unsafe.Pointer(params))) -} - -// Returns the value of a uniform variable -func GetUniformiv(program uint32, location int32, params *int32) { - C.glowGetUniformiv(gpGetUniformiv, (C.GLuint)(program), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params))) -} -func GetUniformivARB(programObj uintptr, location int32, params *int32) { - C.glowGetUniformivARB(gpGetUniformivARB, (C.GLhandleARB)(programObj), (C.GLint)(location), (*C.GLint)(unsafe.Pointer(params))) -} -func GetUniformui64vNV(program uint32, location int32, params *uint64) { - C.glowGetUniformui64vNV(gpGetUniformui64vNV, (C.GLuint)(program), (C.GLint)(location), (*C.GLuint64EXT)(unsafe.Pointer(params))) -} -func GetUniformuivEXT(program uint32, location int32, params *uint32) { - C.glowGetUniformuivEXT(gpGetUniformuivEXT, (C.GLuint)(program), (C.GLint)(location), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetVariantArrayObjectfvATI(id uint32, pname uint32, params *float32) { - C.glowGetVariantArrayObjectfvATI(gpGetVariantArrayObjectfvATI, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetVariantArrayObjectivATI(id uint32, pname uint32, params *int32) { - C.glowGetVariantArrayObjectivATI(gpGetVariantArrayObjectivATI, (C.GLuint)(id), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVariantBooleanvEXT(id uint32, value uint32, data *bool) { - C.glowGetVariantBooleanvEXT(gpGetVariantBooleanvEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLboolean)(unsafe.Pointer(data))) -} -func GetVariantFloatvEXT(id uint32, value uint32, data *float32) { - C.glowGetVariantFloatvEXT(gpGetVariantFloatvEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLfloat)(unsafe.Pointer(data))) -} -func GetVariantIntegervEXT(id uint32, value uint32, data *int32) { - C.glowGetVariantIntegervEXT(gpGetVariantIntegervEXT, (C.GLuint)(id), (C.GLenum)(value), (*C.GLint)(unsafe.Pointer(data))) -} -func GetVariantPointervEXT(id uint32, value uint32, data *unsafe.Pointer) { - C.glowGetVariantPointervEXT(gpGetVariantPointervEXT, (C.GLuint)(id), (C.GLenum)(value), data) -} -func GetVaryingLocationNV(program uint32, name *uint8) int32 { - ret := C.glowGetVaryingLocationNV(gpGetVaryingLocationNV, (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name))) - return (int32)(ret) -} -func GetVertexArrayIndexed64iv(vaobj uint32, index uint32, pname uint32, param *int64) { - C.glowGetVertexArrayIndexed64iv(gpGetVertexArrayIndexed64iv, (C.GLuint)(vaobj), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(param))) -} -func GetVertexArrayIndexediv(vaobj uint32, index uint32, pname uint32, param *int32) { - C.glowGetVertexArrayIndexediv(gpGetVertexArrayIndexediv, (C.GLuint)(vaobj), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func GetVertexArrayIntegeri_vEXT(vaobj uint32, index uint32, pname uint32, param *int32) { - C.glowGetVertexArrayIntegeri_vEXT(gpGetVertexArrayIntegeri_vEXT, (C.GLuint)(vaobj), (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func GetVertexArrayIntegervEXT(vaobj uint32, pname uint32, param *int32) { - C.glowGetVertexArrayIntegervEXT(gpGetVertexArrayIntegervEXT, (C.GLuint)(vaobj), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func GetVertexArrayPointeri_vEXT(vaobj uint32, index uint32, pname uint32, param *unsafe.Pointer) { - C.glowGetVertexArrayPointeri_vEXT(gpGetVertexArrayPointeri_vEXT, (C.GLuint)(vaobj), (C.GLuint)(index), (C.GLenum)(pname), param) -} -func GetVertexArrayPointervEXT(vaobj uint32, pname uint32, param *unsafe.Pointer) { - C.glowGetVertexArrayPointervEXT(gpGetVertexArrayPointervEXT, (C.GLuint)(vaobj), (C.GLenum)(pname), param) -} - -// retrieve parameters of a vertex array object -func GetVertexArrayiv(vaobj uint32, pname uint32, param *int32) { - C.glowGetVertexArrayiv(gpGetVertexArrayiv, (C.GLuint)(vaobj), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func GetVertexAttribArrayObjectfvATI(index uint32, pname uint32, params *float32) { - C.glowGetVertexAttribArrayObjectfvATI(gpGetVertexAttribArrayObjectfvATI, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetVertexAttribArrayObjectivATI(index uint32, pname uint32, params *int32) { - C.glowGetVertexAttribArrayObjectivATI(gpGetVertexAttribArrayObjectivATI, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVertexAttribIivEXT(index uint32, pname uint32, params *int32) { - C.glowGetVertexAttribIivEXT(gpGetVertexAttribIivEXT, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVertexAttribIuivEXT(index uint32, pname uint32, params *uint32) { - C.glowGetVertexAttribIuivEXT(gpGetVertexAttribIuivEXT, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} - -// Return a generic vertex attribute parameter -func GetVertexAttribLdv(index uint32, pname uint32, params *float64) { - C.glowGetVertexAttribLdv(gpGetVertexAttribLdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetVertexAttribLdvEXT(index uint32, pname uint32, params *float64) { - C.glowGetVertexAttribLdvEXT(gpGetVertexAttribLdvEXT, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetVertexAttribLi64vNV(index uint32, pname uint32, params *int64) { - C.glowGetVertexAttribLi64vNV(gpGetVertexAttribLi64vNV, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint64EXT)(unsafe.Pointer(params))) -} -func GetVertexAttribLui64vARB(index uint32, pname uint32, params *uint64) { - C.glowGetVertexAttribLui64vARB(gpGetVertexAttribLui64vARB, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLuint64EXT)(unsafe.Pointer(params))) -} -func GetVertexAttribLui64vNV(index uint32, pname uint32, params *uint64) { - C.glowGetVertexAttribLui64vNV(gpGetVertexAttribLui64vNV, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLuint64EXT)(unsafe.Pointer(params))) -} - -// return the address of the specified generic vertex attribute pointer -func GetVertexAttribPointerv(index uint32, pname uint32, pointer *unsafe.Pointer) { - C.glowGetVertexAttribPointerv(gpGetVertexAttribPointerv, (C.GLuint)(index), (C.GLenum)(pname), pointer) -} -func GetVertexAttribPointervARB(index uint32, pname uint32, pointer *unsafe.Pointer) { - C.glowGetVertexAttribPointervARB(gpGetVertexAttribPointervARB, (C.GLuint)(index), (C.GLenum)(pname), pointer) -} -func GetVertexAttribPointervNV(index uint32, pname uint32, pointer *unsafe.Pointer) { - C.glowGetVertexAttribPointervNV(gpGetVertexAttribPointervNV, (C.GLuint)(index), (C.GLenum)(pname), pointer) -} - -// Return a generic vertex attribute parameter -func GetVertexAttribdv(index uint32, pname uint32, params *float64) { - C.glowGetVertexAttribdv(gpGetVertexAttribdv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetVertexAttribdvARB(index uint32, pname uint32, params *float64) { - C.glowGetVertexAttribdvARB(gpGetVertexAttribdvARB, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetVertexAttribdvNV(index uint32, pname uint32, params *float64) { - C.glowGetVertexAttribdvNV(gpGetVertexAttribdvNV, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} - -// Return a generic vertex attribute parameter -func GetVertexAttribfv(index uint32, pname uint32, params *float32) { - C.glowGetVertexAttribfv(gpGetVertexAttribfv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetVertexAttribfvARB(index uint32, pname uint32, params *float32) { - C.glowGetVertexAttribfvARB(gpGetVertexAttribfvARB, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetVertexAttribfvNV(index uint32, pname uint32, params *float32) { - C.glowGetVertexAttribfvNV(gpGetVertexAttribfvNV, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} - -// Return a generic vertex attribute parameter -func GetVertexAttribiv(index uint32, pname uint32, params *int32) { - C.glowGetVertexAttribiv(gpGetVertexAttribiv, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVertexAttribivARB(index uint32, pname uint32, params *int32) { - C.glowGetVertexAttribivARB(gpGetVertexAttribivARB, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVertexAttribivNV(index uint32, pname uint32, params *int32) { - C.glowGetVertexAttribivNV(gpGetVertexAttribivNV, (C.GLuint)(index), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVideoCaptureStreamdvNV(video_capture_slot uint32, stream uint32, pname uint32, params *float64) { - C.glowGetVideoCaptureStreamdvNV(gpGetVideoCaptureStreamdvNV, (C.GLuint)(video_capture_slot), (C.GLuint)(stream), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetVideoCaptureStreamfvNV(video_capture_slot uint32, stream uint32, pname uint32, params *float32) { - C.glowGetVideoCaptureStreamfvNV(gpGetVideoCaptureStreamfvNV, (C.GLuint)(video_capture_slot), (C.GLuint)(stream), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetVideoCaptureStreamivNV(video_capture_slot uint32, stream uint32, pname uint32, params *int32) { - C.glowGetVideoCaptureStreamivNV(gpGetVideoCaptureStreamivNV, (C.GLuint)(video_capture_slot), (C.GLuint)(stream), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVideoCaptureivNV(video_capture_slot uint32, pname uint32, params *int32) { - C.glowGetVideoCaptureivNV(gpGetVideoCaptureivNV, (C.GLuint)(video_capture_slot), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVideoi64vNV(video_slot uint32, pname uint32, params *int64) { - C.glowGetVideoi64vNV(gpGetVideoi64vNV, (C.GLuint)(video_slot), (C.GLenum)(pname), (*C.GLint64EXT)(unsafe.Pointer(params))) -} -func GetVideoivNV(video_slot uint32, pname uint32, params *int32) { - C.glowGetVideoivNV(gpGetVideoivNV, (C.GLuint)(video_slot), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func GetVideoui64vNV(video_slot uint32, pname uint32, params *uint64) { - C.glowGetVideoui64vNV(gpGetVideoui64vNV, (C.GLuint)(video_slot), (C.GLenum)(pname), (*C.GLuint64EXT)(unsafe.Pointer(params))) -} -func GetVideouivNV(video_slot uint32, pname uint32, params *uint32) { - C.glowGetVideouivNV(gpGetVideouivNV, (C.GLuint)(video_slot), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetnCompressedTexImageARB(target uint32, lod int32, bufSize int32, img unsafe.Pointer) { - C.glowGetnCompressedTexImageARB(gpGetnCompressedTexImageARB, (C.GLenum)(target), (C.GLint)(lod), (C.GLsizei)(bufSize), img) -} -func GetnTexImageARB(target uint32, level int32, format uint32, xtype uint32, bufSize int32, img unsafe.Pointer) { - C.glowGetnTexImageARB(gpGetnTexImageARB, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), img) -} -func GetnUniformdvARB(program uint32, location int32, bufSize int32, params *float64) { - C.glowGetnUniformdvARB(gpGetnUniformdvARB, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLdouble)(unsafe.Pointer(params))) -} -func GetnUniformfv(program uint32, location int32, bufSize int32, params *float32) { - C.glowGetnUniformfv(gpGetnUniformfv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetnUniformfvARB(program uint32, location int32, bufSize int32, params *float32) { - C.glowGetnUniformfvARB(gpGetnUniformfvARB, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetnUniformfvKHR(program uint32, location int32, bufSize int32, params *float32) { - C.glowGetnUniformfvKHR(gpGetnUniformfvKHR, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLfloat)(unsafe.Pointer(params))) -} -func GetnUniformiv(program uint32, location int32, bufSize int32, params *int32) { - C.glowGetnUniformiv(gpGetnUniformiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLint)(unsafe.Pointer(params))) -} -func GetnUniformivARB(program uint32, location int32, bufSize int32, params *int32) { - C.glowGetnUniformivARB(gpGetnUniformivARB, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLint)(unsafe.Pointer(params))) -} -func GetnUniformivKHR(program uint32, location int32, bufSize int32, params *int32) { - C.glowGetnUniformivKHR(gpGetnUniformivKHR, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLint)(unsafe.Pointer(params))) -} -func GetnUniformuiv(program uint32, location int32, bufSize int32, params *uint32) { - C.glowGetnUniformuiv(gpGetnUniformuiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetnUniformuivARB(program uint32, location int32, bufSize int32, params *uint32) { - C.glowGetnUniformuivARB(gpGetnUniformuivARB, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLuint)(unsafe.Pointer(params))) -} -func GetnUniformuivKHR(program uint32, location int32, bufSize int32, params *uint32) { - C.glowGetnUniformuivKHR(gpGetnUniformuivKHR, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(bufSize), (*C.GLuint)(unsafe.Pointer(params))) -} -func GlobalAlphaFactorbSUN(factor int8) { - C.glowGlobalAlphaFactorbSUN(gpGlobalAlphaFactorbSUN, (C.GLbyte)(factor)) -} -func GlobalAlphaFactordSUN(factor float64) { - C.glowGlobalAlphaFactordSUN(gpGlobalAlphaFactordSUN, (C.GLdouble)(factor)) -} -func GlobalAlphaFactorfSUN(factor float32) { - C.glowGlobalAlphaFactorfSUN(gpGlobalAlphaFactorfSUN, (C.GLfloat)(factor)) -} -func GlobalAlphaFactoriSUN(factor int32) { - C.glowGlobalAlphaFactoriSUN(gpGlobalAlphaFactoriSUN, (C.GLint)(factor)) -} -func GlobalAlphaFactorsSUN(factor int16) { - C.glowGlobalAlphaFactorsSUN(gpGlobalAlphaFactorsSUN, (C.GLshort)(factor)) -} -func GlobalAlphaFactorubSUN(factor uint8) { - C.glowGlobalAlphaFactorubSUN(gpGlobalAlphaFactorubSUN, (C.GLubyte)(factor)) -} -func GlobalAlphaFactoruiSUN(factor uint32) { - C.glowGlobalAlphaFactoruiSUN(gpGlobalAlphaFactoruiSUN, (C.GLuint)(factor)) -} -func GlobalAlphaFactorusSUN(factor uint16) { - C.glowGlobalAlphaFactorusSUN(gpGlobalAlphaFactorusSUN, (C.GLushort)(factor)) -} - -// specify implementation-specific hints -func Hint(target uint32, mode uint32) { - C.glowHint(gpHint, (C.GLenum)(target), (C.GLenum)(mode)) -} -func HintPGI(target uint32, mode int32) { - C.glowHintPGI(gpHintPGI, (C.GLenum)(target), (C.GLint)(mode)) -} -func HistogramEXT(target uint32, width int32, internalformat uint32, sink bool) { - C.glowHistogramEXT(gpHistogramEXT, (C.GLenum)(target), (C.GLsizei)(width), (C.GLenum)(internalformat), (C.GLboolean)(boolToInt(sink))) -} -func IglooInterfaceSGIX(pname uint32, params unsafe.Pointer) { - C.glowIglooInterfaceSGIX(gpIglooInterfaceSGIX, (C.GLenum)(pname), params) -} -func ImageTransformParameterfHP(target uint32, pname uint32, param float32) { - C.glowImageTransformParameterfHP(gpImageTransformParameterfHP, (C.GLenum)(target), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func ImageTransformParameterfvHP(target uint32, pname uint32, params *float32) { - C.glowImageTransformParameterfvHP(gpImageTransformParameterfvHP, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ImageTransformParameteriHP(target uint32, pname uint32, param int32) { - C.glowImageTransformParameteriHP(gpImageTransformParameteriHP, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} -func ImageTransformParameterivHP(target uint32, pname uint32, params *int32) { - C.glowImageTransformParameterivHP(gpImageTransformParameterivHP, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func ImportSyncEXT(external_sync_type uint32, external_sync int, flags uint32) unsafe.Pointer { - ret := C.glowImportSyncEXT(gpImportSyncEXT, (C.GLenum)(external_sync_type), (C.GLintptr)(external_sync), (C.GLbitfield)(flags)) - return (unsafe.Pointer)(ret) -} -func IndexFormatNV(xtype uint32, stride int32) { - C.glowIndexFormatNV(gpIndexFormatNV, (C.GLenum)(xtype), (C.GLsizei)(stride)) -} -func IndexFuncEXT(xfunc uint32, ref float32) { - C.glowIndexFuncEXT(gpIndexFuncEXT, (C.GLenum)(xfunc), (C.GLclampf)(ref)) -} - -// control the writing of individual bits in the color index buffers -func IndexMask(mask uint32) { - C.glowIndexMask(gpIndexMask, (C.GLuint)(mask)) -} -func IndexMaterialEXT(face uint32, mode uint32) { - C.glowIndexMaterialEXT(gpIndexMaterialEXT, (C.GLenum)(face), (C.GLenum)(mode)) -} - -// define an array of color indexes -func IndexPointer(xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowIndexPointer(gpIndexPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func IndexPointerEXT(xtype uint32, stride int32, count int32, pointer unsafe.Pointer) { - C.glowIndexPointerEXT(gpIndexPointerEXT, (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLsizei)(count), pointer) -} -func IndexPointerListIBM(xtype uint32, stride int32, pointer *unsafe.Pointer, ptrstride int32) { - C.glowIndexPointerListIBM(gpIndexPointerListIBM, (C.GLenum)(xtype), (C.GLint)(stride), pointer, (C.GLint)(ptrstride)) -} -func Indexd(c float64) { - C.glowIndexd(gpIndexd, (C.GLdouble)(c)) -} -func Indexdv(c *float64) { - C.glowIndexdv(gpIndexdv, (*C.GLdouble)(unsafe.Pointer(c))) -} -func Indexf(c float32) { - C.glowIndexf(gpIndexf, (C.GLfloat)(c)) -} -func Indexfv(c *float32) { - C.glowIndexfv(gpIndexfv, (*C.GLfloat)(unsafe.Pointer(c))) -} -func Indexi(c int32) { - C.glowIndexi(gpIndexi, (C.GLint)(c)) -} -func Indexiv(c *int32) { - C.glowIndexiv(gpIndexiv, (*C.GLint)(unsafe.Pointer(c))) -} -func Indexs(c int16) { - C.glowIndexs(gpIndexs, (C.GLshort)(c)) -} -func Indexsv(c *int16) { - C.glowIndexsv(gpIndexsv, (*C.GLshort)(unsafe.Pointer(c))) -} -func Indexub(c uint8) { - C.glowIndexub(gpIndexub, (C.GLubyte)(c)) -} -func Indexubv(c *uint8) { - C.glowIndexubv(gpIndexubv, (*C.GLubyte)(unsafe.Pointer(c))) -} -func IndexxOES(component int32) { - C.glowIndexxOES(gpIndexxOES, (C.GLfixed)(component)) -} -func IndexxvOES(component *int32) { - C.glowIndexxvOES(gpIndexxvOES, (*C.GLfixed)(unsafe.Pointer(component))) -} - -// initialize the name stack -func InitNames() { - C.glowInitNames(gpInitNames) -} -func InsertComponentEXT(res uint32, src uint32, num uint32) { - C.glowInsertComponentEXT(gpInsertComponentEXT, (C.GLuint)(res), (C.GLuint)(src), (C.GLuint)(num)) -} -func InsertEventMarkerEXT(length int32, marker *uint8) { - C.glowInsertEventMarkerEXT(gpInsertEventMarkerEXT, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(marker))) -} -func InstrumentsBufferSGIX(size int32, buffer *int32) { - C.glowInstrumentsBufferSGIX(gpInstrumentsBufferSGIX, (C.GLsizei)(size), (*C.GLint)(unsafe.Pointer(buffer))) -} - -// simultaneously specify and enable several interleaved arrays -func InterleavedArrays(format uint32, stride int32, pointer unsafe.Pointer) { - C.glowInterleavedArrays(gpInterleavedArrays, (C.GLenum)(format), (C.GLsizei)(stride), pointer) -} -func InterpolatePathsNV(resultPath uint32, pathA uint32, pathB uint32, weight float32) { - C.glowInterpolatePathsNV(gpInterpolatePathsNV, (C.GLuint)(resultPath), (C.GLuint)(pathA), (C.GLuint)(pathB), (C.GLfloat)(weight)) -} - -// invalidate the content of a buffer object's data store -func InvalidateBufferData(buffer uint32) { - C.glowInvalidateBufferData(gpInvalidateBufferData, (C.GLuint)(buffer)) -} - -// invalidate a region of a buffer object's data store -func InvalidateBufferSubData(buffer uint32, offset int, length int) { - C.glowInvalidateBufferSubData(gpInvalidateBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length)) -} - -// invalidate the content of some or all of a framebuffer's attachments -func InvalidateFramebuffer(target uint32, numAttachments int32, attachments *uint32) { - C.glowInvalidateFramebuffer(gpInvalidateFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments))) -} - -// invalidate the content of some or all of a framebuffer's attachments -func InvalidateNamedFramebufferData(framebuffer uint32, numAttachments int32, attachments *uint32) { - C.glowInvalidateNamedFramebufferData(gpInvalidateNamedFramebufferData, (C.GLuint)(framebuffer), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments))) -} - -// invalidate the content of a region of some or all of a framebuffer's attachments -func InvalidateNamedFramebufferSubData(framebuffer uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) { - C.glowInvalidateNamedFramebufferSubData(gpInvalidateNamedFramebufferSubData, (C.GLuint)(framebuffer), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// invalidate the content of a region of some or all of a framebuffer's attachments -func InvalidateSubFramebuffer(target uint32, numAttachments int32, attachments *uint32, x int32, y int32, width int32, height int32) { - C.glowInvalidateSubFramebuffer(gpInvalidateSubFramebuffer, (C.GLenum)(target), (C.GLsizei)(numAttachments), (*C.GLenum)(unsafe.Pointer(attachments)), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// invalidate the entirety a texture image -func InvalidateTexImage(texture uint32, level int32) { - C.glowInvalidateTexImage(gpInvalidateTexImage, (C.GLuint)(texture), (C.GLint)(level)) -} - -// invalidate a region of a texture image -func InvalidateTexSubImage(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32) { - C.glowInvalidateTexSubImage(gpInvalidateTexSubImage, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth)) -} -func IsAsyncMarkerSGIX(marker uint32) bool { - ret := C.glowIsAsyncMarkerSGIX(gpIsAsyncMarkerSGIX, (C.GLuint)(marker)) - return ret == TRUE -} - -// determine if a name corresponds to a buffer object -func IsBuffer(buffer uint32) bool { - ret := C.glowIsBuffer(gpIsBuffer, (C.GLuint)(buffer)) - return ret == TRUE -} -func IsBufferARB(buffer uint32) bool { - ret := C.glowIsBufferARB(gpIsBufferARB, (C.GLuint)(buffer)) - return ret == TRUE -} -func IsBufferResidentNV(target uint32) bool { - ret := C.glowIsBufferResidentNV(gpIsBufferResidentNV, (C.GLenum)(target)) - return ret == TRUE -} -func IsEnabled(cap uint32) bool { - ret := C.glowIsEnabled(gpIsEnabled, (C.GLenum)(cap)) - return ret == TRUE -} -func IsEnabledIndexedEXT(target uint32, index uint32) bool { - ret := C.glowIsEnabledIndexedEXT(gpIsEnabledIndexedEXT, (C.GLenum)(target), (C.GLuint)(index)) - return ret == TRUE -} -func IsFenceAPPLE(fence uint32) bool { - ret := C.glowIsFenceAPPLE(gpIsFenceAPPLE, (C.GLuint)(fence)) - return ret == TRUE -} -func IsFenceNV(fence uint32) bool { - ret := C.glowIsFenceNV(gpIsFenceNV, (C.GLuint)(fence)) - return ret == TRUE -} - -// determine if a name corresponds to a framebuffer object -func IsFramebuffer(framebuffer uint32) bool { - ret := C.glowIsFramebuffer(gpIsFramebuffer, (C.GLuint)(framebuffer)) - return ret == TRUE -} -func IsFramebufferEXT(framebuffer uint32) bool { - ret := C.glowIsFramebufferEXT(gpIsFramebufferEXT, (C.GLuint)(framebuffer)) - return ret == TRUE -} -func IsImageHandleResidentARB(handle uint64) bool { - ret := C.glowIsImageHandleResidentARB(gpIsImageHandleResidentARB, (C.GLuint64)(handle)) - return ret == TRUE -} -func IsImageHandleResidentNV(handle uint64) bool { - ret := C.glowIsImageHandleResidentNV(gpIsImageHandleResidentNV, (C.GLuint64)(handle)) - return ret == TRUE -} - -// determine if a name corresponds to a display list -func IsList(list uint32) bool { - ret := C.glowIsList(gpIsList, (C.GLuint)(list)) - return ret == TRUE -} -func IsNameAMD(identifier uint32, name uint32) bool { - ret := C.glowIsNameAMD(gpIsNameAMD, (C.GLenum)(identifier), (C.GLuint)(name)) - return ret == TRUE -} -func IsNamedBufferResidentNV(buffer uint32) bool { - ret := C.glowIsNamedBufferResidentNV(gpIsNamedBufferResidentNV, (C.GLuint)(buffer)) - return ret == TRUE -} -func IsNamedStringARB(namelen int32, name *uint8) bool { - ret := C.glowIsNamedStringARB(gpIsNamedStringARB, (C.GLint)(namelen), (*C.GLchar)(unsafe.Pointer(name))) - return ret == TRUE -} -func IsObjectBufferATI(buffer uint32) bool { - ret := C.glowIsObjectBufferATI(gpIsObjectBufferATI, (C.GLuint)(buffer)) - return ret == TRUE -} -func IsOcclusionQueryNV(id uint32) bool { - ret := C.glowIsOcclusionQueryNV(gpIsOcclusionQueryNV, (C.GLuint)(id)) - return ret == TRUE -} -func IsPathNV(path uint32) bool { - ret := C.glowIsPathNV(gpIsPathNV, (C.GLuint)(path)) - return ret == TRUE -} -func IsPointInFillPathNV(path uint32, mask uint32, x float32, y float32) bool { - ret := C.glowIsPointInFillPathNV(gpIsPointInFillPathNV, (C.GLuint)(path), (C.GLuint)(mask), (C.GLfloat)(x), (C.GLfloat)(y)) - return ret == TRUE -} -func IsPointInStrokePathNV(path uint32, x float32, y float32) bool { - ret := C.glowIsPointInStrokePathNV(gpIsPointInStrokePathNV, (C.GLuint)(path), (C.GLfloat)(x), (C.GLfloat)(y)) - return ret == TRUE -} - -// Determines if a name corresponds to a program object -func IsProgram(program uint32) bool { - ret := C.glowIsProgram(gpIsProgram, (C.GLuint)(program)) - return ret == TRUE -} -func IsProgramARB(program uint32) bool { - ret := C.glowIsProgramARB(gpIsProgramARB, (C.GLuint)(program)) - return ret == TRUE -} -func IsProgramNV(id uint32) bool { - ret := C.glowIsProgramNV(gpIsProgramNV, (C.GLuint)(id)) - return ret == TRUE -} - -// determine if a name corresponds to a program pipeline object -func IsProgramPipeline(pipeline uint32) bool { - ret := C.glowIsProgramPipeline(gpIsProgramPipeline, (C.GLuint)(pipeline)) - return ret == TRUE -} -func IsProgramPipelineEXT(pipeline uint32) bool { - ret := C.glowIsProgramPipelineEXT(gpIsProgramPipelineEXT, (C.GLuint)(pipeline)) - return ret == TRUE -} - -// determine if a name corresponds to a query object -func IsQuery(id uint32) bool { - ret := C.glowIsQuery(gpIsQuery, (C.GLuint)(id)) - return ret == TRUE -} -func IsQueryARB(id uint32) bool { - ret := C.glowIsQueryARB(gpIsQueryARB, (C.GLuint)(id)) - return ret == TRUE -} - -// determine if a name corresponds to a renderbuffer object -func IsRenderbuffer(renderbuffer uint32) bool { - ret := C.glowIsRenderbuffer(gpIsRenderbuffer, (C.GLuint)(renderbuffer)) - return ret == TRUE -} -func IsRenderbufferEXT(renderbuffer uint32) bool { - ret := C.glowIsRenderbufferEXT(gpIsRenderbufferEXT, (C.GLuint)(renderbuffer)) - return ret == TRUE -} - -// determine if a name corresponds to a sampler object -func IsSampler(sampler uint32) bool { - ret := C.glowIsSampler(gpIsSampler, (C.GLuint)(sampler)) - return ret == TRUE -} - -// Determines if a name corresponds to a shader object -func IsShader(shader uint32) bool { - ret := C.glowIsShader(gpIsShader, (C.GLuint)(shader)) - return ret == TRUE -} - -// determine if a name corresponds to a sync object -func IsSync(sync unsafe.Pointer) bool { - ret := C.glowIsSync(gpIsSync, (C.GLsync)(sync)) - return ret == TRUE -} - -// determine if a name corresponds to a texture -func IsTexture(texture uint32) bool { - ret := C.glowIsTexture(gpIsTexture, (C.GLuint)(texture)) - return ret == TRUE -} -func IsTextureEXT(texture uint32) bool { - ret := C.glowIsTextureEXT(gpIsTextureEXT, (C.GLuint)(texture)) - return ret == TRUE -} -func IsTextureHandleResidentARB(handle uint64) bool { - ret := C.glowIsTextureHandleResidentARB(gpIsTextureHandleResidentARB, (C.GLuint64)(handle)) - return ret == TRUE -} -func IsTextureHandleResidentNV(handle uint64) bool { - ret := C.glowIsTextureHandleResidentNV(gpIsTextureHandleResidentNV, (C.GLuint64)(handle)) - return ret == TRUE -} - -// determine if a name corresponds to a transform feedback object -func IsTransformFeedback(id uint32) bool { - ret := C.glowIsTransformFeedback(gpIsTransformFeedback, (C.GLuint)(id)) - return ret == TRUE -} -func IsTransformFeedbackNV(id uint32) bool { - ret := C.glowIsTransformFeedbackNV(gpIsTransformFeedbackNV, (C.GLuint)(id)) - return ret == TRUE -} -func IsVariantEnabledEXT(id uint32, cap uint32) bool { - ret := C.glowIsVariantEnabledEXT(gpIsVariantEnabledEXT, (C.GLuint)(id), (C.GLenum)(cap)) - return ret == TRUE -} - -// determine if a name corresponds to a vertex array object -func IsVertexArray(array uint32) bool { - ret := C.glowIsVertexArray(gpIsVertexArray, (C.GLuint)(array)) - return ret == TRUE -} -func IsVertexArrayAPPLE(array uint32) bool { - ret := C.glowIsVertexArrayAPPLE(gpIsVertexArrayAPPLE, (C.GLuint)(array)) - return ret == TRUE -} -func IsVertexAttribEnabledAPPLE(index uint32, pname uint32) bool { - ret := C.glowIsVertexAttribEnabledAPPLE(gpIsVertexAttribEnabledAPPLE, (C.GLuint)(index), (C.GLenum)(pname)) - return ret == TRUE -} -func LabelObjectEXT(xtype uint32, object uint32, length int32, label *uint8) { - C.glowLabelObjectEXT(gpLabelObjectEXT, (C.GLenum)(xtype), (C.GLuint)(object), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label))) -} -func LightEnviSGIX(pname uint32, param int32) { - C.glowLightEnviSGIX(gpLightEnviSGIX, (C.GLenum)(pname), (C.GLint)(param)) -} -func LightModelf(pname uint32, param float32) { - C.glowLightModelf(gpLightModelf, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func LightModelfv(pname uint32, params *float32) { - C.glowLightModelfv(gpLightModelfv, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func LightModeli(pname uint32, param int32) { - C.glowLightModeli(gpLightModeli, (C.GLenum)(pname), (C.GLint)(param)) -} -func LightModeliv(pname uint32, params *int32) { - C.glowLightModeliv(gpLightModeliv, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func LightModelxOES(pname uint32, param int32) { - C.glowLightModelxOES(gpLightModelxOES, (C.GLenum)(pname), (C.GLfixed)(param)) -} -func LightModelxvOES(pname uint32, param *int32) { - C.glowLightModelxvOES(gpLightModelxvOES, (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(param))) -} -func Lightf(light uint32, pname uint32, param float32) { - C.glowLightf(gpLightf, (C.GLenum)(light), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func Lightfv(light uint32, pname uint32, params *float32) { - C.glowLightfv(gpLightfv, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func Lighti(light uint32, pname uint32, param int32) { - C.glowLighti(gpLighti, (C.GLenum)(light), (C.GLenum)(pname), (C.GLint)(param)) -} -func Lightiv(light uint32, pname uint32, params *int32) { - C.glowLightiv(gpLightiv, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func LightxOES(light uint32, pname uint32, param int32) { - C.glowLightxOES(gpLightxOES, (C.GLenum)(light), (C.GLenum)(pname), (C.GLfixed)(param)) -} -func LightxvOES(light uint32, pname uint32, params *int32) { - C.glowLightxvOES(gpLightxvOES, (C.GLenum)(light), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} - -// specify the line stipple pattern -func LineStipple(factor int32, pattern uint16) { - C.glowLineStipple(gpLineStipple, (C.GLint)(factor), (C.GLushort)(pattern)) -} - -// specify the width of rasterized lines -func LineWidth(width float32) { - C.glowLineWidth(gpLineWidth, (C.GLfloat)(width)) -} -func LineWidthxOES(width int32) { - C.glowLineWidthxOES(gpLineWidthxOES, (C.GLfixed)(width)) -} - -// Links a program object -func LinkProgram(program uint32) { - C.glowLinkProgram(gpLinkProgram, (C.GLuint)(program)) -} -func LinkProgramARB(programObj uintptr) { - C.glowLinkProgramARB(gpLinkProgramARB, (C.GLhandleARB)(programObj)) -} - -// set the display-list base for -func ListBase(base uint32) { - C.glowListBase(gpListBase, (C.GLuint)(base)) -} -func ListParameterfSGIX(list uint32, pname uint32, param float32) { - C.glowListParameterfSGIX(gpListParameterfSGIX, (C.GLuint)(list), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func ListParameterfvSGIX(list uint32, pname uint32, params *float32) { - C.glowListParameterfvSGIX(gpListParameterfvSGIX, (C.GLuint)(list), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ListParameteriSGIX(list uint32, pname uint32, param int32) { - C.glowListParameteriSGIX(gpListParameteriSGIX, (C.GLuint)(list), (C.GLenum)(pname), (C.GLint)(param)) -} -func ListParameterivSGIX(list uint32, pname uint32, params *int32) { - C.glowListParameterivSGIX(gpListParameterivSGIX, (C.GLuint)(list), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// replace the current matrix with the identity matrix -func LoadIdentity() { - C.glowLoadIdentity(gpLoadIdentity) -} -func LoadIdentityDeformationMapSGIX(mask uint32) { - C.glowLoadIdentityDeformationMapSGIX(gpLoadIdentityDeformationMapSGIX, (C.GLbitfield)(mask)) -} -func LoadMatrixd(m *float64) { - C.glowLoadMatrixd(gpLoadMatrixd, (*C.GLdouble)(unsafe.Pointer(m))) -} -func LoadMatrixf(m *float32) { - C.glowLoadMatrixf(gpLoadMatrixf, (*C.GLfloat)(unsafe.Pointer(m))) -} -func LoadMatrixxOES(m *int32) { - C.glowLoadMatrixxOES(gpLoadMatrixxOES, (*C.GLfixed)(unsafe.Pointer(m))) -} - -// load a name onto the name stack -func LoadName(name uint32) { - C.glowLoadName(gpLoadName, (C.GLuint)(name)) -} -func LoadProgramNV(target uint32, id uint32, len int32, program *uint8) { - C.glowLoadProgramNV(gpLoadProgramNV, (C.GLenum)(target), (C.GLuint)(id), (C.GLsizei)(len), (*C.GLubyte)(unsafe.Pointer(program))) -} -func LoadTransposeMatrixd(m *float64) { - C.glowLoadTransposeMatrixd(gpLoadTransposeMatrixd, (*C.GLdouble)(unsafe.Pointer(m))) -} -func LoadTransposeMatrixdARB(m *float64) { - C.glowLoadTransposeMatrixdARB(gpLoadTransposeMatrixdARB, (*C.GLdouble)(unsafe.Pointer(m))) -} -func LoadTransposeMatrixf(m *float32) { - C.glowLoadTransposeMatrixf(gpLoadTransposeMatrixf, (*C.GLfloat)(unsafe.Pointer(m))) -} -func LoadTransposeMatrixfARB(m *float32) { - C.glowLoadTransposeMatrixfARB(gpLoadTransposeMatrixfARB, (*C.GLfloat)(unsafe.Pointer(m))) -} -func LoadTransposeMatrixxOES(m *int32) { - C.glowLoadTransposeMatrixxOES(gpLoadTransposeMatrixxOES, (*C.GLfixed)(unsafe.Pointer(m))) -} -func LockArraysEXT(first int32, count int32) { - C.glowLockArraysEXT(gpLockArraysEXT, (C.GLint)(first), (C.GLsizei)(count)) -} - -// specify a logical pixel operation for rendering -func LogicOp(opcode uint32) { - C.glowLogicOp(gpLogicOp, (C.GLenum)(opcode)) -} -func MakeBufferNonResidentNV(target uint32) { - C.glowMakeBufferNonResidentNV(gpMakeBufferNonResidentNV, (C.GLenum)(target)) -} -func MakeBufferResidentNV(target uint32, access uint32) { - C.glowMakeBufferResidentNV(gpMakeBufferResidentNV, (C.GLenum)(target), (C.GLenum)(access)) -} -func MakeImageHandleNonResidentARB(handle uint64) { - C.glowMakeImageHandleNonResidentARB(gpMakeImageHandleNonResidentARB, (C.GLuint64)(handle)) -} -func MakeImageHandleNonResidentNV(handle uint64) { - C.glowMakeImageHandleNonResidentNV(gpMakeImageHandleNonResidentNV, (C.GLuint64)(handle)) -} -func MakeImageHandleResidentARB(handle uint64, access uint32) { - C.glowMakeImageHandleResidentARB(gpMakeImageHandleResidentARB, (C.GLuint64)(handle), (C.GLenum)(access)) -} -func MakeImageHandleResidentNV(handle uint64, access uint32) { - C.glowMakeImageHandleResidentNV(gpMakeImageHandleResidentNV, (C.GLuint64)(handle), (C.GLenum)(access)) -} -func MakeNamedBufferNonResidentNV(buffer uint32) { - C.glowMakeNamedBufferNonResidentNV(gpMakeNamedBufferNonResidentNV, (C.GLuint)(buffer)) -} -func MakeNamedBufferResidentNV(buffer uint32, access uint32) { - C.glowMakeNamedBufferResidentNV(gpMakeNamedBufferResidentNV, (C.GLuint)(buffer), (C.GLenum)(access)) -} -func MakeTextureHandleNonResidentARB(handle uint64) { - C.glowMakeTextureHandleNonResidentARB(gpMakeTextureHandleNonResidentARB, (C.GLuint64)(handle)) -} -func MakeTextureHandleNonResidentNV(handle uint64) { - C.glowMakeTextureHandleNonResidentNV(gpMakeTextureHandleNonResidentNV, (C.GLuint64)(handle)) -} -func MakeTextureHandleResidentARB(handle uint64) { - C.glowMakeTextureHandleResidentARB(gpMakeTextureHandleResidentARB, (C.GLuint64)(handle)) -} -func MakeTextureHandleResidentNV(handle uint64) { - C.glowMakeTextureHandleResidentNV(gpMakeTextureHandleResidentNV, (C.GLuint64)(handle)) -} -func Map1d(target uint32, u1 float64, u2 float64, stride int32, order int32, points *float64) { - C.glowMap1d(gpMap1d, (C.GLenum)(target), (C.GLdouble)(u1), (C.GLdouble)(u2), (C.GLint)(stride), (C.GLint)(order), (*C.GLdouble)(unsafe.Pointer(points))) -} -func Map1f(target uint32, u1 float32, u2 float32, stride int32, order int32, points *float32) { - C.glowMap1f(gpMap1f, (C.GLenum)(target), (C.GLfloat)(u1), (C.GLfloat)(u2), (C.GLint)(stride), (C.GLint)(order), (*C.GLfloat)(unsafe.Pointer(points))) -} -func Map1xOES(target uint32, u1 int32, u2 int32, stride int32, order int32, points int32) { - C.glowMap1xOES(gpMap1xOES, (C.GLenum)(target), (C.GLfixed)(u1), (C.GLfixed)(u2), (C.GLint)(stride), (C.GLint)(order), (C.GLfixed)(points)) -} -func Map2d(target uint32, u1 float64, u2 float64, ustride int32, uorder int32, v1 float64, v2 float64, vstride int32, vorder int32, points *float64) { - C.glowMap2d(gpMap2d, (C.GLenum)(target), (C.GLdouble)(u1), (C.GLdouble)(u2), (C.GLint)(ustride), (C.GLint)(uorder), (C.GLdouble)(v1), (C.GLdouble)(v2), (C.GLint)(vstride), (C.GLint)(vorder), (*C.GLdouble)(unsafe.Pointer(points))) -} -func Map2f(target uint32, u1 float32, u2 float32, ustride int32, uorder int32, v1 float32, v2 float32, vstride int32, vorder int32, points *float32) { - C.glowMap2f(gpMap2f, (C.GLenum)(target), (C.GLfloat)(u1), (C.GLfloat)(u2), (C.GLint)(ustride), (C.GLint)(uorder), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLint)(vstride), (C.GLint)(vorder), (*C.GLfloat)(unsafe.Pointer(points))) -} -func Map2xOES(target uint32, u1 int32, u2 int32, ustride int32, uorder int32, v1 int32, v2 int32, vstride int32, vorder int32, points int32) { - C.glowMap2xOES(gpMap2xOES, (C.GLenum)(target), (C.GLfixed)(u1), (C.GLfixed)(u2), (C.GLint)(ustride), (C.GLint)(uorder), (C.GLfixed)(v1), (C.GLfixed)(v2), (C.GLint)(vstride), (C.GLint)(vorder), (C.GLfixed)(points)) -} - -// map all of a buffer object's data store into the client's address space -func MapBuffer(target uint32, access uint32) unsafe.Pointer { - ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access)) - return (unsafe.Pointer)(ret) -} -func MapBufferARB(target uint32, access uint32) unsafe.Pointer { - ret := C.glowMapBufferARB(gpMapBufferARB, (C.GLenum)(target), (C.GLenum)(access)) - return (unsafe.Pointer)(ret) -} - -// map all or part of a buffer object's data store into the client's address space -func MapBufferRange(target uint32, offset int, length int, access uint32) unsafe.Pointer { - ret := C.glowMapBufferRange(gpMapBufferRange, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access)) - return (unsafe.Pointer)(ret) -} -func MapControlPointsNV(target uint32, index uint32, xtype uint32, ustride int32, vstride int32, uorder int32, vorder int32, packed bool, points unsafe.Pointer) { - C.glowMapControlPointsNV(gpMapControlPointsNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLenum)(xtype), (C.GLsizei)(ustride), (C.GLsizei)(vstride), (C.GLint)(uorder), (C.GLint)(vorder), (C.GLboolean)(boolToInt(packed)), points) -} -func MapGrid1d(un int32, u1 float64, u2 float64) { - C.glowMapGrid1d(gpMapGrid1d, (C.GLint)(un), (C.GLdouble)(u1), (C.GLdouble)(u2)) -} -func MapGrid1f(un int32, u1 float32, u2 float32) { - C.glowMapGrid1f(gpMapGrid1f, (C.GLint)(un), (C.GLfloat)(u1), (C.GLfloat)(u2)) -} -func MapGrid1xOES(n int32, u1 int32, u2 int32) { - C.glowMapGrid1xOES(gpMapGrid1xOES, (C.GLint)(n), (C.GLfixed)(u1), (C.GLfixed)(u2)) -} -func MapGrid2d(un int32, u1 float64, u2 float64, vn int32, v1 float64, v2 float64) { - C.glowMapGrid2d(gpMapGrid2d, (C.GLint)(un), (C.GLdouble)(u1), (C.GLdouble)(u2), (C.GLint)(vn), (C.GLdouble)(v1), (C.GLdouble)(v2)) -} -func MapGrid2f(un int32, u1 float32, u2 float32, vn int32, v1 float32, v2 float32) { - C.glowMapGrid2f(gpMapGrid2f, (C.GLint)(un), (C.GLfloat)(u1), (C.GLfloat)(u2), (C.GLint)(vn), (C.GLfloat)(v1), (C.GLfloat)(v2)) -} -func MapGrid2xOES(n int32, u1 int32, u2 int32, v1 int32, v2 int32) { - C.glowMapGrid2xOES(gpMapGrid2xOES, (C.GLint)(n), (C.GLfixed)(u1), (C.GLfixed)(u2), (C.GLfixed)(v1), (C.GLfixed)(v2)) -} - -// map all of a buffer object's data store into the client's address space -func MapNamedBuffer(buffer uint32, access uint32) unsafe.Pointer { - ret := C.glowMapNamedBuffer(gpMapNamedBuffer, (C.GLuint)(buffer), (C.GLenum)(access)) - return (unsafe.Pointer)(ret) -} -func MapNamedBufferEXT(buffer uint32, access uint32) unsafe.Pointer { - ret := C.glowMapNamedBufferEXT(gpMapNamedBufferEXT, (C.GLuint)(buffer), (C.GLenum)(access)) - return (unsafe.Pointer)(ret) -} - -// map all or part of a buffer object's data store into the client's address space -func MapNamedBufferRange(buffer uint32, offset int, length int32, access uint32) unsafe.Pointer { - ret := C.glowMapNamedBufferRange(gpMapNamedBufferRange, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(length), (C.GLbitfield)(access)) - return (unsafe.Pointer)(ret) -} -func MapNamedBufferRangeEXT(buffer uint32, offset int, length int, access uint32) unsafe.Pointer { - ret := C.glowMapNamedBufferRangeEXT(gpMapNamedBufferRangeEXT, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(length), (C.GLbitfield)(access)) - return (unsafe.Pointer)(ret) -} -func MapObjectBufferATI(buffer uint32) unsafe.Pointer { - ret := C.glowMapObjectBufferATI(gpMapObjectBufferATI, (C.GLuint)(buffer)) - return (unsafe.Pointer)(ret) -} -func MapParameterfvNV(target uint32, pname uint32, params *float32) { - C.glowMapParameterfvNV(gpMapParameterfvNV, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func MapParameterivNV(target uint32, pname uint32, params *int32) { - C.glowMapParameterivNV(gpMapParameterivNV, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func MapTexture2DINTEL(texture uint32, level int32, access uint32, stride *int32, layout *uint32) unsafe.Pointer { - ret := C.glowMapTexture2DINTEL(gpMapTexture2DINTEL, (C.GLuint)(texture), (C.GLint)(level), (C.GLbitfield)(access), (*C.GLint)(unsafe.Pointer(stride)), (*C.GLenum)(unsafe.Pointer(layout))) - return (unsafe.Pointer)(ret) -} -func MapVertexAttrib1dAPPLE(index uint32, size uint32, u1 float64, u2 float64, stride int32, order int32, points *float64) { - C.glowMapVertexAttrib1dAPPLE(gpMapVertexAttrib1dAPPLE, (C.GLuint)(index), (C.GLuint)(size), (C.GLdouble)(u1), (C.GLdouble)(u2), (C.GLint)(stride), (C.GLint)(order), (*C.GLdouble)(unsafe.Pointer(points))) -} -func MapVertexAttrib1fAPPLE(index uint32, size uint32, u1 float32, u2 float32, stride int32, order int32, points *float32) { - C.glowMapVertexAttrib1fAPPLE(gpMapVertexAttrib1fAPPLE, (C.GLuint)(index), (C.GLuint)(size), (C.GLfloat)(u1), (C.GLfloat)(u2), (C.GLint)(stride), (C.GLint)(order), (*C.GLfloat)(unsafe.Pointer(points))) -} -func MapVertexAttrib2dAPPLE(index uint32, size uint32, u1 float64, u2 float64, ustride int32, uorder int32, v1 float64, v2 float64, vstride int32, vorder int32, points *float64) { - C.glowMapVertexAttrib2dAPPLE(gpMapVertexAttrib2dAPPLE, (C.GLuint)(index), (C.GLuint)(size), (C.GLdouble)(u1), (C.GLdouble)(u2), (C.GLint)(ustride), (C.GLint)(uorder), (C.GLdouble)(v1), (C.GLdouble)(v2), (C.GLint)(vstride), (C.GLint)(vorder), (*C.GLdouble)(unsafe.Pointer(points))) -} -func MapVertexAttrib2fAPPLE(index uint32, size uint32, u1 float32, u2 float32, ustride int32, uorder int32, v1 float32, v2 float32, vstride int32, vorder int32, points *float32) { - C.glowMapVertexAttrib2fAPPLE(gpMapVertexAttrib2fAPPLE, (C.GLuint)(index), (C.GLuint)(size), (C.GLfloat)(u1), (C.GLfloat)(u2), (C.GLint)(ustride), (C.GLint)(uorder), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLint)(vstride), (C.GLint)(vorder), (*C.GLfloat)(unsafe.Pointer(points))) -} -func Materialf(face uint32, pname uint32, param float32) { - C.glowMaterialf(gpMaterialf, (C.GLenum)(face), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func Materialfv(face uint32, pname uint32, params *float32) { - C.glowMaterialfv(gpMaterialfv, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func Materiali(face uint32, pname uint32, param int32) { - C.glowMateriali(gpMateriali, (C.GLenum)(face), (C.GLenum)(pname), (C.GLint)(param)) -} -func Materialiv(face uint32, pname uint32, params *int32) { - C.glowMaterialiv(gpMaterialiv, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func MaterialxOES(face uint32, pname uint32, param int32) { - C.glowMaterialxOES(gpMaterialxOES, (C.GLenum)(face), (C.GLenum)(pname), (C.GLfixed)(param)) -} -func MaterialxvOES(face uint32, pname uint32, param *int32) { - C.glowMaterialxvOES(gpMaterialxvOES, (C.GLenum)(face), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(param))) -} -func MatrixFrustumEXT(mode uint32, left float64, right float64, bottom float64, top float64, zNear float64, zFar float64) { - C.glowMatrixFrustumEXT(gpMatrixFrustumEXT, (C.GLenum)(mode), (C.GLdouble)(left), (C.GLdouble)(right), (C.GLdouble)(bottom), (C.GLdouble)(top), (C.GLdouble)(zNear), (C.GLdouble)(zFar)) -} -func MatrixIndexPointerARB(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowMatrixIndexPointerARB(gpMatrixIndexPointerARB, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func MatrixIndexubvARB(size int32, indices *uint8) { - C.glowMatrixIndexubvARB(gpMatrixIndexubvARB, (C.GLint)(size), (*C.GLubyte)(unsafe.Pointer(indices))) -} -func MatrixIndexuivARB(size int32, indices *uint32) { - C.glowMatrixIndexuivARB(gpMatrixIndexuivARB, (C.GLint)(size), (*C.GLuint)(unsafe.Pointer(indices))) -} -func MatrixIndexusvARB(size int32, indices *uint16) { - C.glowMatrixIndexusvARB(gpMatrixIndexusvARB, (C.GLint)(size), (*C.GLushort)(unsafe.Pointer(indices))) -} -func MatrixLoad3x2fNV(matrixMode uint32, m *float32) { - C.glowMatrixLoad3x2fNV(gpMatrixLoad3x2fNV, (C.GLenum)(matrixMode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixLoad3x3fNV(matrixMode uint32, m *float32) { - C.glowMatrixLoad3x3fNV(gpMatrixLoad3x3fNV, (C.GLenum)(matrixMode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixLoadIdentityEXT(mode uint32) { - C.glowMatrixLoadIdentityEXT(gpMatrixLoadIdentityEXT, (C.GLenum)(mode)) -} -func MatrixLoadTranspose3x3fNV(matrixMode uint32, m *float32) { - C.glowMatrixLoadTranspose3x3fNV(gpMatrixLoadTranspose3x3fNV, (C.GLenum)(matrixMode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixLoadTransposedEXT(mode uint32, m *float64) { - C.glowMatrixLoadTransposedEXT(gpMatrixLoadTransposedEXT, (C.GLenum)(mode), (*C.GLdouble)(unsafe.Pointer(m))) -} -func MatrixLoadTransposefEXT(mode uint32, m *float32) { - C.glowMatrixLoadTransposefEXT(gpMatrixLoadTransposefEXT, (C.GLenum)(mode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixLoaddEXT(mode uint32, m *float64) { - C.glowMatrixLoaddEXT(gpMatrixLoaddEXT, (C.GLenum)(mode), (*C.GLdouble)(unsafe.Pointer(m))) -} -func MatrixLoadfEXT(mode uint32, m *float32) { - C.glowMatrixLoadfEXT(gpMatrixLoadfEXT, (C.GLenum)(mode), (*C.GLfloat)(unsafe.Pointer(m))) -} - -// specify which matrix is the current matrix -func MatrixMode(mode uint32) { - C.glowMatrixMode(gpMatrixMode, (C.GLenum)(mode)) -} -func MatrixMult3x2fNV(matrixMode uint32, m *float32) { - C.glowMatrixMult3x2fNV(gpMatrixMult3x2fNV, (C.GLenum)(matrixMode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixMult3x3fNV(matrixMode uint32, m *float32) { - C.glowMatrixMult3x3fNV(gpMatrixMult3x3fNV, (C.GLenum)(matrixMode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixMultTranspose3x3fNV(matrixMode uint32, m *float32) { - C.glowMatrixMultTranspose3x3fNV(gpMatrixMultTranspose3x3fNV, (C.GLenum)(matrixMode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixMultTransposedEXT(mode uint32, m *float64) { - C.glowMatrixMultTransposedEXT(gpMatrixMultTransposedEXT, (C.GLenum)(mode), (*C.GLdouble)(unsafe.Pointer(m))) -} -func MatrixMultTransposefEXT(mode uint32, m *float32) { - C.glowMatrixMultTransposefEXT(gpMatrixMultTransposefEXT, (C.GLenum)(mode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixMultdEXT(mode uint32, m *float64) { - C.glowMatrixMultdEXT(gpMatrixMultdEXT, (C.GLenum)(mode), (*C.GLdouble)(unsafe.Pointer(m))) -} -func MatrixMultfEXT(mode uint32, m *float32) { - C.glowMatrixMultfEXT(gpMatrixMultfEXT, (C.GLenum)(mode), (*C.GLfloat)(unsafe.Pointer(m))) -} -func MatrixOrthoEXT(mode uint32, left float64, right float64, bottom float64, top float64, zNear float64, zFar float64) { - C.glowMatrixOrthoEXT(gpMatrixOrthoEXT, (C.GLenum)(mode), (C.GLdouble)(left), (C.GLdouble)(right), (C.GLdouble)(bottom), (C.GLdouble)(top), (C.GLdouble)(zNear), (C.GLdouble)(zFar)) -} -func MatrixPopEXT(mode uint32) { - C.glowMatrixPopEXT(gpMatrixPopEXT, (C.GLenum)(mode)) -} -func MatrixPushEXT(mode uint32) { - C.glowMatrixPushEXT(gpMatrixPushEXT, (C.GLenum)(mode)) -} -func MatrixRotatedEXT(mode uint32, angle float64, x float64, y float64, z float64) { - C.glowMatrixRotatedEXT(gpMatrixRotatedEXT, (C.GLenum)(mode), (C.GLdouble)(angle), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func MatrixRotatefEXT(mode uint32, angle float32, x float32, y float32, z float32) { - C.glowMatrixRotatefEXT(gpMatrixRotatefEXT, (C.GLenum)(mode), (C.GLfloat)(angle), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func MatrixScaledEXT(mode uint32, x float64, y float64, z float64) { - C.glowMatrixScaledEXT(gpMatrixScaledEXT, (C.GLenum)(mode), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func MatrixScalefEXT(mode uint32, x float32, y float32, z float32) { - C.glowMatrixScalefEXT(gpMatrixScalefEXT, (C.GLenum)(mode), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func MatrixTranslatedEXT(mode uint32, x float64, y float64, z float64) { - C.glowMatrixTranslatedEXT(gpMatrixTranslatedEXT, (C.GLenum)(mode), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func MatrixTranslatefEXT(mode uint32, x float32, y float32, z float32) { - C.glowMatrixTranslatefEXT(gpMatrixTranslatefEXT, (C.GLenum)(mode), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} - -// defines a barrier ordering memory transactions -func MemoryBarrier(barriers uint32) { - C.glowMemoryBarrier(gpMemoryBarrier, (C.GLbitfield)(barriers)) -} -func MemoryBarrierByRegion(barriers uint32) { - C.glowMemoryBarrierByRegion(gpMemoryBarrierByRegion, (C.GLbitfield)(barriers)) -} -func MemoryBarrierEXT(barriers uint32) { - C.glowMemoryBarrierEXT(gpMemoryBarrierEXT, (C.GLbitfield)(barriers)) -} -func MinSampleShadingARB(value float32) { - C.glowMinSampleShadingARB(gpMinSampleShadingARB, (C.GLfloat)(value)) -} -func MinmaxEXT(target uint32, internalformat uint32, sink bool) { - C.glowMinmaxEXT(gpMinmaxEXT, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLboolean)(boolToInt(sink))) -} -func MultMatrixd(m *float64) { - C.glowMultMatrixd(gpMultMatrixd, (*C.GLdouble)(unsafe.Pointer(m))) -} -func MultMatrixf(m *float32) { - C.glowMultMatrixf(gpMultMatrixf, (*C.GLfloat)(unsafe.Pointer(m))) -} -func MultMatrixxOES(m *int32) { - C.glowMultMatrixxOES(gpMultMatrixxOES, (*C.GLfixed)(unsafe.Pointer(m))) -} -func MultTransposeMatrixd(m *float64) { - C.glowMultTransposeMatrixd(gpMultTransposeMatrixd, (*C.GLdouble)(unsafe.Pointer(m))) -} -func MultTransposeMatrixdARB(m *float64) { - C.glowMultTransposeMatrixdARB(gpMultTransposeMatrixdARB, (*C.GLdouble)(unsafe.Pointer(m))) -} -func MultTransposeMatrixf(m *float32) { - C.glowMultTransposeMatrixf(gpMultTransposeMatrixf, (*C.GLfloat)(unsafe.Pointer(m))) -} -func MultTransposeMatrixfARB(m *float32) { - C.glowMultTransposeMatrixfARB(gpMultTransposeMatrixfARB, (*C.GLfloat)(unsafe.Pointer(m))) -} -func MultTransposeMatrixxOES(m *int32) { - C.glowMultTransposeMatrixxOES(gpMultTransposeMatrixxOES, (*C.GLfixed)(unsafe.Pointer(m))) -} - -// render multiple sets of primitives from array data -func MultiDrawArrays(mode uint32, first *int32, count *int32, drawcount int32) { - C.glowMultiDrawArrays(gpMultiDrawArrays, (C.GLenum)(mode), (*C.GLint)(unsafe.Pointer(first)), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLsizei)(drawcount)) -} -func MultiDrawArraysEXT(mode uint32, first *int32, count *int32, primcount int32) { - C.glowMultiDrawArraysEXT(gpMultiDrawArraysEXT, (C.GLenum)(mode), (*C.GLint)(unsafe.Pointer(first)), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLsizei)(primcount)) -} - -// render multiple sets of primitives from array data, taking parameters from memory -func MultiDrawArraysIndirect(mode uint32, indirect unsafe.Pointer, drawcount int32, stride int32) { - C.glowMultiDrawArraysIndirect(gpMultiDrawArraysIndirect, (C.GLenum)(mode), indirect, (C.GLsizei)(drawcount), (C.GLsizei)(stride)) -} -func MultiDrawArraysIndirectAMD(mode uint32, indirect unsafe.Pointer, primcount int32, stride int32) { - C.glowMultiDrawArraysIndirectAMD(gpMultiDrawArraysIndirectAMD, (C.GLenum)(mode), indirect, (C.GLsizei)(primcount), (C.GLsizei)(stride)) -} -func MultiDrawArraysIndirectBindlessCountNV(mode uint32, indirect unsafe.Pointer, drawCount int32, maxDrawCount int32, stride int32, vertexBufferCount int32) { - C.glowMultiDrawArraysIndirectBindlessCountNV(gpMultiDrawArraysIndirectBindlessCountNV, (C.GLenum)(mode), indirect, (C.GLsizei)(drawCount), (C.GLsizei)(maxDrawCount), (C.GLsizei)(stride), (C.GLint)(vertexBufferCount)) -} -func MultiDrawArraysIndirectBindlessNV(mode uint32, indirect unsafe.Pointer, drawCount int32, stride int32, vertexBufferCount int32) { - C.glowMultiDrawArraysIndirectBindlessNV(gpMultiDrawArraysIndirectBindlessNV, (C.GLenum)(mode), indirect, (C.GLsizei)(drawCount), (C.GLsizei)(stride), (C.GLint)(vertexBufferCount)) -} -func MultiDrawArraysIndirectCountARB(mode uint32, indirect int, drawcount int, maxdrawcount int32, stride int32) { - C.glowMultiDrawArraysIndirectCountARB(gpMultiDrawArraysIndirectCountARB, (C.GLenum)(mode), (C.GLintptr)(indirect), (C.GLintptr)(drawcount), (C.GLsizei)(maxdrawcount), (C.GLsizei)(stride)) -} -func MultiDrawElementArrayAPPLE(mode uint32, first *int32, count *int32, primcount int32) { - C.glowMultiDrawElementArrayAPPLE(gpMultiDrawElementArrayAPPLE, (C.GLenum)(mode), (*C.GLint)(unsafe.Pointer(first)), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLsizei)(primcount)) -} - -// render multiple sets of primitives by specifying indices of array data elements -func MultiDrawElements(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32) { - C.glowMultiDrawElements(gpMultiDrawElements, (C.GLenum)(mode), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLenum)(xtype), indices, (C.GLsizei)(drawcount)) -} - -// render multiple sets of primitives by specifying indices of array data elements and an index to apply to each index -func MultiDrawElementsBaseVertex(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, drawcount int32, basevertex *int32) { - C.glowMultiDrawElementsBaseVertex(gpMultiDrawElementsBaseVertex, (C.GLenum)(mode), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLenum)(xtype), indices, (C.GLsizei)(drawcount), (*C.GLint)(unsafe.Pointer(basevertex))) -} -func MultiDrawElementsEXT(mode uint32, count *int32, xtype uint32, indices *unsafe.Pointer, primcount int32) { - C.glowMultiDrawElementsEXT(gpMultiDrawElementsEXT, (C.GLenum)(mode), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLenum)(xtype), indices, (C.GLsizei)(primcount)) -} - -// render indexed primitives from array data, taking parameters from memory -func MultiDrawElementsIndirect(mode uint32, xtype uint32, indirect unsafe.Pointer, drawcount int32, stride int32) { - C.glowMultiDrawElementsIndirect(gpMultiDrawElementsIndirect, (C.GLenum)(mode), (C.GLenum)(xtype), indirect, (C.GLsizei)(drawcount), (C.GLsizei)(stride)) -} -func MultiDrawElementsIndirectAMD(mode uint32, xtype uint32, indirect unsafe.Pointer, primcount int32, stride int32) { - C.glowMultiDrawElementsIndirectAMD(gpMultiDrawElementsIndirectAMD, (C.GLenum)(mode), (C.GLenum)(xtype), indirect, (C.GLsizei)(primcount), (C.GLsizei)(stride)) -} -func MultiDrawElementsIndirectBindlessCountNV(mode uint32, xtype uint32, indirect unsafe.Pointer, drawCount int32, maxDrawCount int32, stride int32, vertexBufferCount int32) { - C.glowMultiDrawElementsIndirectBindlessCountNV(gpMultiDrawElementsIndirectBindlessCountNV, (C.GLenum)(mode), (C.GLenum)(xtype), indirect, (C.GLsizei)(drawCount), (C.GLsizei)(maxDrawCount), (C.GLsizei)(stride), (C.GLint)(vertexBufferCount)) -} -func MultiDrawElementsIndirectBindlessNV(mode uint32, xtype uint32, indirect unsafe.Pointer, drawCount int32, stride int32, vertexBufferCount int32) { - C.glowMultiDrawElementsIndirectBindlessNV(gpMultiDrawElementsIndirectBindlessNV, (C.GLenum)(mode), (C.GLenum)(xtype), indirect, (C.GLsizei)(drawCount), (C.GLsizei)(stride), (C.GLint)(vertexBufferCount)) -} -func MultiDrawElementsIndirectCountARB(mode uint32, xtype uint32, indirect int, drawcount int, maxdrawcount int32, stride int32) { - C.glowMultiDrawElementsIndirectCountARB(gpMultiDrawElementsIndirectCountARB, (C.GLenum)(mode), (C.GLenum)(xtype), (C.GLintptr)(indirect), (C.GLintptr)(drawcount), (C.GLsizei)(maxdrawcount), (C.GLsizei)(stride)) -} -func MultiDrawRangeElementArrayAPPLE(mode uint32, start uint32, end uint32, first *int32, count *int32, primcount int32) { - C.glowMultiDrawRangeElementArrayAPPLE(gpMultiDrawRangeElementArrayAPPLE, (C.GLenum)(mode), (C.GLuint)(start), (C.GLuint)(end), (*C.GLint)(unsafe.Pointer(first)), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLsizei)(primcount)) -} -func MultiModeDrawArraysIBM(mode *uint32, first *int32, count *int32, primcount int32, modestride int32) { - C.glowMultiModeDrawArraysIBM(gpMultiModeDrawArraysIBM, (*C.GLenum)(unsafe.Pointer(mode)), (*C.GLint)(unsafe.Pointer(first)), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLsizei)(primcount), (C.GLint)(modestride)) -} -func MultiModeDrawElementsIBM(mode *uint32, count *int32, xtype uint32, indices *unsafe.Pointer, primcount int32, modestride int32) { - C.glowMultiModeDrawElementsIBM(gpMultiModeDrawElementsIBM, (*C.GLenum)(unsafe.Pointer(mode)), (*C.GLsizei)(unsafe.Pointer(count)), (C.GLenum)(xtype), indices, (C.GLsizei)(primcount), (C.GLint)(modestride)) -} -func MultiTexBufferEXT(texunit uint32, target uint32, internalformat uint32, buffer uint32) { - C.glowMultiTexBufferEXT(gpMultiTexBufferEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer)) -} -func MultiTexCoord1bOES(texture uint32, s int8) { - C.glowMultiTexCoord1bOES(gpMultiTexCoord1bOES, (C.GLenum)(texture), (C.GLbyte)(s)) -} -func MultiTexCoord1bvOES(texture uint32, coords *int8) { - C.glowMultiTexCoord1bvOES(gpMultiTexCoord1bvOES, (C.GLenum)(texture), (*C.GLbyte)(unsafe.Pointer(coords))) -} -func MultiTexCoord1d(target uint32, s float64) { - C.glowMultiTexCoord1d(gpMultiTexCoord1d, (C.GLenum)(target), (C.GLdouble)(s)) -} -func MultiTexCoord1dARB(target uint32, s float64) { - C.glowMultiTexCoord1dARB(gpMultiTexCoord1dARB, (C.GLenum)(target), (C.GLdouble)(s)) -} -func MultiTexCoord1dv(target uint32, v *float64) { - C.glowMultiTexCoord1dv(gpMultiTexCoord1dv, (C.GLenum)(target), (*C.GLdouble)(unsafe.Pointer(v))) -} -func MultiTexCoord1dvARB(target uint32, v *float64) { - C.glowMultiTexCoord1dvARB(gpMultiTexCoord1dvARB, (C.GLenum)(target), (*C.GLdouble)(unsafe.Pointer(v))) -} -func MultiTexCoord1f(target uint32, s float32) { - C.glowMultiTexCoord1f(gpMultiTexCoord1f, (C.GLenum)(target), (C.GLfloat)(s)) -} -func MultiTexCoord1fARB(target uint32, s float32) { - C.glowMultiTexCoord1fARB(gpMultiTexCoord1fARB, (C.GLenum)(target), (C.GLfloat)(s)) -} -func MultiTexCoord1fv(target uint32, v *float32) { - C.glowMultiTexCoord1fv(gpMultiTexCoord1fv, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(v))) -} -func MultiTexCoord1fvARB(target uint32, v *float32) { - C.glowMultiTexCoord1fvARB(gpMultiTexCoord1fvARB, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(v))) -} -func MultiTexCoord1hNV(target uint32, s uint16) { - C.glowMultiTexCoord1hNV(gpMultiTexCoord1hNV, (C.GLenum)(target), (C.GLhalfNV)(s)) -} -func MultiTexCoord1hvNV(target uint32, v *uint16) { - C.glowMultiTexCoord1hvNV(gpMultiTexCoord1hvNV, (C.GLenum)(target), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func MultiTexCoord1i(target uint32, s int32) { - C.glowMultiTexCoord1i(gpMultiTexCoord1i, (C.GLenum)(target), (C.GLint)(s)) -} -func MultiTexCoord1iARB(target uint32, s int32) { - C.glowMultiTexCoord1iARB(gpMultiTexCoord1iARB, (C.GLenum)(target), (C.GLint)(s)) -} -func MultiTexCoord1iv(target uint32, v *int32) { - C.glowMultiTexCoord1iv(gpMultiTexCoord1iv, (C.GLenum)(target), (*C.GLint)(unsafe.Pointer(v))) -} -func MultiTexCoord1ivARB(target uint32, v *int32) { - C.glowMultiTexCoord1ivARB(gpMultiTexCoord1ivARB, (C.GLenum)(target), (*C.GLint)(unsafe.Pointer(v))) -} -func MultiTexCoord1s(target uint32, s int16) { - C.glowMultiTexCoord1s(gpMultiTexCoord1s, (C.GLenum)(target), (C.GLshort)(s)) -} -func MultiTexCoord1sARB(target uint32, s int16) { - C.glowMultiTexCoord1sARB(gpMultiTexCoord1sARB, (C.GLenum)(target), (C.GLshort)(s)) -} -func MultiTexCoord1sv(target uint32, v *int16) { - C.glowMultiTexCoord1sv(gpMultiTexCoord1sv, (C.GLenum)(target), (*C.GLshort)(unsafe.Pointer(v))) -} -func MultiTexCoord1svARB(target uint32, v *int16) { - C.glowMultiTexCoord1svARB(gpMultiTexCoord1svARB, (C.GLenum)(target), (*C.GLshort)(unsafe.Pointer(v))) -} -func MultiTexCoord1xOES(texture uint32, s int32) { - C.glowMultiTexCoord1xOES(gpMultiTexCoord1xOES, (C.GLenum)(texture), (C.GLfixed)(s)) -} -func MultiTexCoord1xvOES(texture uint32, coords *int32) { - C.glowMultiTexCoord1xvOES(gpMultiTexCoord1xvOES, (C.GLenum)(texture), (*C.GLfixed)(unsafe.Pointer(coords))) -} -func MultiTexCoord2bOES(texture uint32, s int8, t int8) { - C.glowMultiTexCoord2bOES(gpMultiTexCoord2bOES, (C.GLenum)(texture), (C.GLbyte)(s), (C.GLbyte)(t)) -} -func MultiTexCoord2bvOES(texture uint32, coords *int8) { - C.glowMultiTexCoord2bvOES(gpMultiTexCoord2bvOES, (C.GLenum)(texture), (*C.GLbyte)(unsafe.Pointer(coords))) -} -func MultiTexCoord2d(target uint32, s float64, t float64) { - C.glowMultiTexCoord2d(gpMultiTexCoord2d, (C.GLenum)(target), (C.GLdouble)(s), (C.GLdouble)(t)) -} -func MultiTexCoord2dARB(target uint32, s float64, t float64) { - C.glowMultiTexCoord2dARB(gpMultiTexCoord2dARB, (C.GLenum)(target), (C.GLdouble)(s), (C.GLdouble)(t)) -} -func MultiTexCoord2dv(target uint32, v *float64) { - C.glowMultiTexCoord2dv(gpMultiTexCoord2dv, (C.GLenum)(target), (*C.GLdouble)(unsafe.Pointer(v))) -} -func MultiTexCoord2dvARB(target uint32, v *float64) { - C.glowMultiTexCoord2dvARB(gpMultiTexCoord2dvARB, (C.GLenum)(target), (*C.GLdouble)(unsafe.Pointer(v))) -} -func MultiTexCoord2f(target uint32, s float32, t float32) { - C.glowMultiTexCoord2f(gpMultiTexCoord2f, (C.GLenum)(target), (C.GLfloat)(s), (C.GLfloat)(t)) -} -func MultiTexCoord2fARB(target uint32, s float32, t float32) { - C.glowMultiTexCoord2fARB(gpMultiTexCoord2fARB, (C.GLenum)(target), (C.GLfloat)(s), (C.GLfloat)(t)) -} -func MultiTexCoord2fv(target uint32, v *float32) { - C.glowMultiTexCoord2fv(gpMultiTexCoord2fv, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(v))) -} -func MultiTexCoord2fvARB(target uint32, v *float32) { - C.glowMultiTexCoord2fvARB(gpMultiTexCoord2fvARB, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(v))) -} -func MultiTexCoord2hNV(target uint32, s uint16, t uint16) { - C.glowMultiTexCoord2hNV(gpMultiTexCoord2hNV, (C.GLenum)(target), (C.GLhalfNV)(s), (C.GLhalfNV)(t)) -} -func MultiTexCoord2hvNV(target uint32, v *uint16) { - C.glowMultiTexCoord2hvNV(gpMultiTexCoord2hvNV, (C.GLenum)(target), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func MultiTexCoord2i(target uint32, s int32, t int32) { - C.glowMultiTexCoord2i(gpMultiTexCoord2i, (C.GLenum)(target), (C.GLint)(s), (C.GLint)(t)) -} -func MultiTexCoord2iARB(target uint32, s int32, t int32) { - C.glowMultiTexCoord2iARB(gpMultiTexCoord2iARB, (C.GLenum)(target), (C.GLint)(s), (C.GLint)(t)) -} -func MultiTexCoord2iv(target uint32, v *int32) { - C.glowMultiTexCoord2iv(gpMultiTexCoord2iv, (C.GLenum)(target), (*C.GLint)(unsafe.Pointer(v))) -} -func MultiTexCoord2ivARB(target uint32, v *int32) { - C.glowMultiTexCoord2ivARB(gpMultiTexCoord2ivARB, (C.GLenum)(target), (*C.GLint)(unsafe.Pointer(v))) -} -func MultiTexCoord2s(target uint32, s int16, t int16) { - C.glowMultiTexCoord2s(gpMultiTexCoord2s, (C.GLenum)(target), (C.GLshort)(s), (C.GLshort)(t)) -} -func MultiTexCoord2sARB(target uint32, s int16, t int16) { - C.glowMultiTexCoord2sARB(gpMultiTexCoord2sARB, (C.GLenum)(target), (C.GLshort)(s), (C.GLshort)(t)) -} -func MultiTexCoord2sv(target uint32, v *int16) { - C.glowMultiTexCoord2sv(gpMultiTexCoord2sv, (C.GLenum)(target), (*C.GLshort)(unsafe.Pointer(v))) -} -func MultiTexCoord2svARB(target uint32, v *int16) { - C.glowMultiTexCoord2svARB(gpMultiTexCoord2svARB, (C.GLenum)(target), (*C.GLshort)(unsafe.Pointer(v))) -} -func MultiTexCoord2xOES(texture uint32, s int32, t int32) { - C.glowMultiTexCoord2xOES(gpMultiTexCoord2xOES, (C.GLenum)(texture), (C.GLfixed)(s), (C.GLfixed)(t)) -} -func MultiTexCoord2xvOES(texture uint32, coords *int32) { - C.glowMultiTexCoord2xvOES(gpMultiTexCoord2xvOES, (C.GLenum)(texture), (*C.GLfixed)(unsafe.Pointer(coords))) -} -func MultiTexCoord3bOES(texture uint32, s int8, t int8, r int8) { - C.glowMultiTexCoord3bOES(gpMultiTexCoord3bOES, (C.GLenum)(texture), (C.GLbyte)(s), (C.GLbyte)(t), (C.GLbyte)(r)) -} -func MultiTexCoord3bvOES(texture uint32, coords *int8) { - C.glowMultiTexCoord3bvOES(gpMultiTexCoord3bvOES, (C.GLenum)(texture), (*C.GLbyte)(unsafe.Pointer(coords))) -} -func MultiTexCoord3d(target uint32, s float64, t float64, r float64) { - C.glowMultiTexCoord3d(gpMultiTexCoord3d, (C.GLenum)(target), (C.GLdouble)(s), (C.GLdouble)(t), (C.GLdouble)(r)) -} -func MultiTexCoord3dARB(target uint32, s float64, t float64, r float64) { - C.glowMultiTexCoord3dARB(gpMultiTexCoord3dARB, (C.GLenum)(target), (C.GLdouble)(s), (C.GLdouble)(t), (C.GLdouble)(r)) -} -func MultiTexCoord3dv(target uint32, v *float64) { - C.glowMultiTexCoord3dv(gpMultiTexCoord3dv, (C.GLenum)(target), (*C.GLdouble)(unsafe.Pointer(v))) -} -func MultiTexCoord3dvARB(target uint32, v *float64) { - C.glowMultiTexCoord3dvARB(gpMultiTexCoord3dvARB, (C.GLenum)(target), (*C.GLdouble)(unsafe.Pointer(v))) -} -func MultiTexCoord3f(target uint32, s float32, t float32, r float32) { - C.glowMultiTexCoord3f(gpMultiTexCoord3f, (C.GLenum)(target), (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r)) -} -func MultiTexCoord3fARB(target uint32, s float32, t float32, r float32) { - C.glowMultiTexCoord3fARB(gpMultiTexCoord3fARB, (C.GLenum)(target), (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r)) -} -func MultiTexCoord3fv(target uint32, v *float32) { - C.glowMultiTexCoord3fv(gpMultiTexCoord3fv, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(v))) -} -func MultiTexCoord3fvARB(target uint32, v *float32) { - C.glowMultiTexCoord3fvARB(gpMultiTexCoord3fvARB, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(v))) -} -func MultiTexCoord3hNV(target uint32, s uint16, t uint16, r uint16) { - C.glowMultiTexCoord3hNV(gpMultiTexCoord3hNV, (C.GLenum)(target), (C.GLhalfNV)(s), (C.GLhalfNV)(t), (C.GLhalfNV)(r)) -} -func MultiTexCoord3hvNV(target uint32, v *uint16) { - C.glowMultiTexCoord3hvNV(gpMultiTexCoord3hvNV, (C.GLenum)(target), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func MultiTexCoord3i(target uint32, s int32, t int32, r int32) { - C.glowMultiTexCoord3i(gpMultiTexCoord3i, (C.GLenum)(target), (C.GLint)(s), (C.GLint)(t), (C.GLint)(r)) -} -func MultiTexCoord3iARB(target uint32, s int32, t int32, r int32) { - C.glowMultiTexCoord3iARB(gpMultiTexCoord3iARB, (C.GLenum)(target), (C.GLint)(s), (C.GLint)(t), (C.GLint)(r)) -} -func MultiTexCoord3iv(target uint32, v *int32) { - C.glowMultiTexCoord3iv(gpMultiTexCoord3iv, (C.GLenum)(target), (*C.GLint)(unsafe.Pointer(v))) -} -func MultiTexCoord3ivARB(target uint32, v *int32) { - C.glowMultiTexCoord3ivARB(gpMultiTexCoord3ivARB, (C.GLenum)(target), (*C.GLint)(unsafe.Pointer(v))) -} -func MultiTexCoord3s(target uint32, s int16, t int16, r int16) { - C.glowMultiTexCoord3s(gpMultiTexCoord3s, (C.GLenum)(target), (C.GLshort)(s), (C.GLshort)(t), (C.GLshort)(r)) -} -func MultiTexCoord3sARB(target uint32, s int16, t int16, r int16) { - C.glowMultiTexCoord3sARB(gpMultiTexCoord3sARB, (C.GLenum)(target), (C.GLshort)(s), (C.GLshort)(t), (C.GLshort)(r)) -} -func MultiTexCoord3sv(target uint32, v *int16) { - C.glowMultiTexCoord3sv(gpMultiTexCoord3sv, (C.GLenum)(target), (*C.GLshort)(unsafe.Pointer(v))) -} -func MultiTexCoord3svARB(target uint32, v *int16) { - C.glowMultiTexCoord3svARB(gpMultiTexCoord3svARB, (C.GLenum)(target), (*C.GLshort)(unsafe.Pointer(v))) -} -func MultiTexCoord3xOES(texture uint32, s int32, t int32, r int32) { - C.glowMultiTexCoord3xOES(gpMultiTexCoord3xOES, (C.GLenum)(texture), (C.GLfixed)(s), (C.GLfixed)(t), (C.GLfixed)(r)) -} -func MultiTexCoord3xvOES(texture uint32, coords *int32) { - C.glowMultiTexCoord3xvOES(gpMultiTexCoord3xvOES, (C.GLenum)(texture), (*C.GLfixed)(unsafe.Pointer(coords))) -} -func MultiTexCoord4bOES(texture uint32, s int8, t int8, r int8, q int8) { - C.glowMultiTexCoord4bOES(gpMultiTexCoord4bOES, (C.GLenum)(texture), (C.GLbyte)(s), (C.GLbyte)(t), (C.GLbyte)(r), (C.GLbyte)(q)) -} -func MultiTexCoord4bvOES(texture uint32, coords *int8) { - C.glowMultiTexCoord4bvOES(gpMultiTexCoord4bvOES, (C.GLenum)(texture), (*C.GLbyte)(unsafe.Pointer(coords))) -} -func MultiTexCoord4d(target uint32, s float64, t float64, r float64, q float64) { - C.glowMultiTexCoord4d(gpMultiTexCoord4d, (C.GLenum)(target), (C.GLdouble)(s), (C.GLdouble)(t), (C.GLdouble)(r), (C.GLdouble)(q)) -} -func MultiTexCoord4dARB(target uint32, s float64, t float64, r float64, q float64) { - C.glowMultiTexCoord4dARB(gpMultiTexCoord4dARB, (C.GLenum)(target), (C.GLdouble)(s), (C.GLdouble)(t), (C.GLdouble)(r), (C.GLdouble)(q)) -} -func MultiTexCoord4dv(target uint32, v *float64) { - C.glowMultiTexCoord4dv(gpMultiTexCoord4dv, (C.GLenum)(target), (*C.GLdouble)(unsafe.Pointer(v))) -} -func MultiTexCoord4dvARB(target uint32, v *float64) { - C.glowMultiTexCoord4dvARB(gpMultiTexCoord4dvARB, (C.GLenum)(target), (*C.GLdouble)(unsafe.Pointer(v))) -} -func MultiTexCoord4f(target uint32, s float32, t float32, r float32, q float32) { - C.glowMultiTexCoord4f(gpMultiTexCoord4f, (C.GLenum)(target), (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r), (C.GLfloat)(q)) -} -func MultiTexCoord4fARB(target uint32, s float32, t float32, r float32, q float32) { - C.glowMultiTexCoord4fARB(gpMultiTexCoord4fARB, (C.GLenum)(target), (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r), (C.GLfloat)(q)) -} -func MultiTexCoord4fv(target uint32, v *float32) { - C.glowMultiTexCoord4fv(gpMultiTexCoord4fv, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(v))) -} -func MultiTexCoord4fvARB(target uint32, v *float32) { - C.glowMultiTexCoord4fvARB(gpMultiTexCoord4fvARB, (C.GLenum)(target), (*C.GLfloat)(unsafe.Pointer(v))) -} -func MultiTexCoord4hNV(target uint32, s uint16, t uint16, r uint16, q uint16) { - C.glowMultiTexCoord4hNV(gpMultiTexCoord4hNV, (C.GLenum)(target), (C.GLhalfNV)(s), (C.GLhalfNV)(t), (C.GLhalfNV)(r), (C.GLhalfNV)(q)) -} -func MultiTexCoord4hvNV(target uint32, v *uint16) { - C.glowMultiTexCoord4hvNV(gpMultiTexCoord4hvNV, (C.GLenum)(target), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func MultiTexCoord4i(target uint32, s int32, t int32, r int32, q int32) { - C.glowMultiTexCoord4i(gpMultiTexCoord4i, (C.GLenum)(target), (C.GLint)(s), (C.GLint)(t), (C.GLint)(r), (C.GLint)(q)) -} -func MultiTexCoord4iARB(target uint32, s int32, t int32, r int32, q int32) { - C.glowMultiTexCoord4iARB(gpMultiTexCoord4iARB, (C.GLenum)(target), (C.GLint)(s), (C.GLint)(t), (C.GLint)(r), (C.GLint)(q)) -} -func MultiTexCoord4iv(target uint32, v *int32) { - C.glowMultiTexCoord4iv(gpMultiTexCoord4iv, (C.GLenum)(target), (*C.GLint)(unsafe.Pointer(v))) -} -func MultiTexCoord4ivARB(target uint32, v *int32) { - C.glowMultiTexCoord4ivARB(gpMultiTexCoord4ivARB, (C.GLenum)(target), (*C.GLint)(unsafe.Pointer(v))) -} -func MultiTexCoord4s(target uint32, s int16, t int16, r int16, q int16) { - C.glowMultiTexCoord4s(gpMultiTexCoord4s, (C.GLenum)(target), (C.GLshort)(s), (C.GLshort)(t), (C.GLshort)(r), (C.GLshort)(q)) -} -func MultiTexCoord4sARB(target uint32, s int16, t int16, r int16, q int16) { - C.glowMultiTexCoord4sARB(gpMultiTexCoord4sARB, (C.GLenum)(target), (C.GLshort)(s), (C.GLshort)(t), (C.GLshort)(r), (C.GLshort)(q)) -} -func MultiTexCoord4sv(target uint32, v *int16) { - C.glowMultiTexCoord4sv(gpMultiTexCoord4sv, (C.GLenum)(target), (*C.GLshort)(unsafe.Pointer(v))) -} -func MultiTexCoord4svARB(target uint32, v *int16) { - C.glowMultiTexCoord4svARB(gpMultiTexCoord4svARB, (C.GLenum)(target), (*C.GLshort)(unsafe.Pointer(v))) -} -func MultiTexCoord4xOES(texture uint32, s int32, t int32, r int32, q int32) { - C.glowMultiTexCoord4xOES(gpMultiTexCoord4xOES, (C.GLenum)(texture), (C.GLfixed)(s), (C.GLfixed)(t), (C.GLfixed)(r), (C.GLfixed)(q)) -} -func MultiTexCoord4xvOES(texture uint32, coords *int32) { - C.glowMultiTexCoord4xvOES(gpMultiTexCoord4xvOES, (C.GLenum)(texture), (*C.GLfixed)(unsafe.Pointer(coords))) -} -func MultiTexCoordPointerEXT(texunit uint32, size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowMultiTexCoordPointerEXT(gpMultiTexCoordPointerEXT, (C.GLenum)(texunit), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func MultiTexEnvfEXT(texunit uint32, target uint32, pname uint32, param float32) { - C.glowMultiTexEnvfEXT(gpMultiTexEnvfEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func MultiTexEnvfvEXT(texunit uint32, target uint32, pname uint32, params *float32) { - C.glowMultiTexEnvfvEXT(gpMultiTexEnvfvEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func MultiTexEnviEXT(texunit uint32, target uint32, pname uint32, param int32) { - C.glowMultiTexEnviEXT(gpMultiTexEnviEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} -func MultiTexEnvivEXT(texunit uint32, target uint32, pname uint32, params *int32) { - C.glowMultiTexEnvivEXT(gpMultiTexEnvivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func MultiTexGendEXT(texunit uint32, coord uint32, pname uint32, param float64) { - C.glowMultiTexGendEXT(gpMultiTexGendEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (C.GLdouble)(param)) -} -func MultiTexGendvEXT(texunit uint32, coord uint32, pname uint32, params *float64) { - C.glowMultiTexGendvEXT(gpMultiTexGendvEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func MultiTexGenfEXT(texunit uint32, coord uint32, pname uint32, param float32) { - C.glowMultiTexGenfEXT(gpMultiTexGenfEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func MultiTexGenfvEXT(texunit uint32, coord uint32, pname uint32, params *float32) { - C.glowMultiTexGenfvEXT(gpMultiTexGenfvEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func MultiTexGeniEXT(texunit uint32, coord uint32, pname uint32, param int32) { - C.glowMultiTexGeniEXT(gpMultiTexGeniEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (C.GLint)(param)) -} -func MultiTexGenivEXT(texunit uint32, coord uint32, pname uint32, params *int32) { - C.glowMultiTexGenivEXT(gpMultiTexGenivEXT, (C.GLenum)(texunit), (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func MultiTexImage1DEXT(texunit uint32, target uint32, level int32, internalformat int32, width int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowMultiTexImage1DEXT(gpMultiTexImage1DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func MultiTexImage2DEXT(texunit uint32, target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowMultiTexImage2DEXT(gpMultiTexImage2DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func MultiTexImage3DEXT(texunit uint32, target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowMultiTexImage3DEXT(gpMultiTexImage3DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func MultiTexParameterIivEXT(texunit uint32, target uint32, pname uint32, params *int32) { - C.glowMultiTexParameterIivEXT(gpMultiTexParameterIivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func MultiTexParameterIuivEXT(texunit uint32, target uint32, pname uint32, params *uint32) { - C.glowMultiTexParameterIuivEXT(gpMultiTexParameterIuivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func MultiTexParameterfEXT(texunit uint32, target uint32, pname uint32, param float32) { - C.glowMultiTexParameterfEXT(gpMultiTexParameterfEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func MultiTexParameterfvEXT(texunit uint32, target uint32, pname uint32, params *float32) { - C.glowMultiTexParameterfvEXT(gpMultiTexParameterfvEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func MultiTexParameteriEXT(texunit uint32, target uint32, pname uint32, param int32) { - C.glowMultiTexParameteriEXT(gpMultiTexParameteriEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} -func MultiTexParameterivEXT(texunit uint32, target uint32, pname uint32, params *int32) { - C.glowMultiTexParameterivEXT(gpMultiTexParameterivEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func MultiTexRenderbufferEXT(texunit uint32, target uint32, renderbuffer uint32) { - C.glowMultiTexRenderbufferEXT(gpMultiTexRenderbufferEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLuint)(renderbuffer)) -} -func MultiTexSubImage1DEXT(texunit uint32, target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowMultiTexSubImage1DEXT(gpMultiTexSubImage1DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func MultiTexSubImage2DEXT(texunit uint32, target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowMultiTexSubImage2DEXT(gpMultiTexSubImage2DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func MultiTexSubImage3DEXT(texunit uint32, target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowMultiTexSubImage3DEXT(gpMultiTexSubImage3DEXT, (C.GLenum)(texunit), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// creates and initializes a buffer object's data store -func NamedBufferData(buffer uint32, size int32, data unsafe.Pointer, usage uint32) { - C.glowNamedBufferData(gpNamedBufferData, (C.GLuint)(buffer), (C.GLsizei)(size), data, (C.GLenum)(usage)) -} -func NamedBufferDataEXT(buffer uint32, size int, data unsafe.Pointer, usage uint32) { - C.glowNamedBufferDataEXT(gpNamedBufferDataEXT, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLenum)(usage)) -} -func NamedBufferPageCommitmentARB(buffer uint32, offset int, size int32, commit bool) { - C.glowNamedBufferPageCommitmentARB(gpNamedBufferPageCommitmentARB, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(size), (C.GLboolean)(boolToInt(commit))) -} -func NamedBufferPageCommitmentEXT(buffer uint32, offset int, size int32, commit bool) { - C.glowNamedBufferPageCommitmentEXT(gpNamedBufferPageCommitmentEXT, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(size), (C.GLboolean)(boolToInt(commit))) -} - -// creates and initializes a buffer object's immutable data store -func NamedBufferStorage(buffer uint32, size int32, data unsafe.Pointer, flags uint32) { - C.glowNamedBufferStorage(gpNamedBufferStorage, (C.GLuint)(buffer), (C.GLsizei)(size), data, (C.GLbitfield)(flags)) -} -func NamedBufferStorageEXT(buffer uint32, size int, data unsafe.Pointer, flags uint32) { - C.glowNamedBufferStorageEXT(gpNamedBufferStorageEXT, (C.GLuint)(buffer), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags)) -} - -// updates a subset of a buffer object's data store -func NamedBufferSubData(buffer uint32, offset int, size int32, data unsafe.Pointer) { - C.glowNamedBufferSubData(gpNamedBufferSubData, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(size), data) -} -func NamedBufferSubDataEXT(buffer uint32, offset int, size int, data unsafe.Pointer) { - C.glowNamedBufferSubDataEXT(gpNamedBufferSubDataEXT, (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data) -} -func NamedCopyBufferSubDataEXT(readBuffer uint32, writeBuffer uint32, readOffset int, writeOffset int, size int) { - C.glowNamedCopyBufferSubDataEXT(gpNamedCopyBufferSubDataEXT, (C.GLuint)(readBuffer), (C.GLuint)(writeBuffer), (C.GLintptr)(readOffset), (C.GLintptr)(writeOffset), (C.GLsizeiptr)(size)) -} - -// specify which color buffers are to be drawn into -func NamedFramebufferDrawBuffer(framebuffer uint32, buf uint32) { - C.glowNamedFramebufferDrawBuffer(gpNamedFramebufferDrawBuffer, (C.GLuint)(framebuffer), (C.GLenum)(buf)) -} - -// Specifies a list of color buffers to be drawn into -func NamedFramebufferDrawBuffers(framebuffer uint32, n int32, bufs *uint32) { - C.glowNamedFramebufferDrawBuffers(gpNamedFramebufferDrawBuffers, (C.GLuint)(framebuffer), (C.GLsizei)(n), (*C.GLenum)(unsafe.Pointer(bufs))) -} - -// set a named parameter of a framebuffer object -func NamedFramebufferParameteri(framebuffer uint32, pname uint32, param int32) { - C.glowNamedFramebufferParameteri(gpNamedFramebufferParameteri, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param)) -} -func NamedFramebufferParameteriEXT(framebuffer uint32, pname uint32, param int32) { - C.glowNamedFramebufferParameteriEXT(gpNamedFramebufferParameteriEXT, (C.GLuint)(framebuffer), (C.GLenum)(pname), (C.GLint)(param)) -} - -// select a color buffer source for pixels -func NamedFramebufferReadBuffer(framebuffer uint32, src uint32) { - C.glowNamedFramebufferReadBuffer(gpNamedFramebufferReadBuffer, (C.GLuint)(framebuffer), (C.GLenum)(src)) -} - -// attach a renderbuffer as a logical buffer of a framebuffer object -func NamedFramebufferRenderbuffer(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) { - C.glowNamedFramebufferRenderbuffer(gpNamedFramebufferRenderbuffer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer)) -} -func NamedFramebufferRenderbufferEXT(framebuffer uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32) { - C.glowNamedFramebufferRenderbufferEXT(gpNamedFramebufferRenderbufferEXT, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(renderbuffertarget), (C.GLuint)(renderbuffer)) -} -func NamedFramebufferTexture(framebuffer uint32, attachment uint32, texture uint32, level int32) { - C.glowNamedFramebufferTexture(gpNamedFramebufferTexture, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level)) -} -func NamedFramebufferTexture1DEXT(framebuffer uint32, attachment uint32, textarget uint32, texture uint32, level int32) { - C.glowNamedFramebufferTexture1DEXT(gpNamedFramebufferTexture1DEXT, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level)) -} -func NamedFramebufferTexture2DEXT(framebuffer uint32, attachment uint32, textarget uint32, texture uint32, level int32) { - C.glowNamedFramebufferTexture2DEXT(gpNamedFramebufferTexture2DEXT, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level)) -} -func NamedFramebufferTexture3DEXT(framebuffer uint32, attachment uint32, textarget uint32, texture uint32, level int32, zoffset int32) { - C.glowNamedFramebufferTexture3DEXT(gpNamedFramebufferTexture3DEXT, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLenum)(textarget), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(zoffset)) -} -func NamedFramebufferTextureEXT(framebuffer uint32, attachment uint32, texture uint32, level int32) { - C.glowNamedFramebufferTextureEXT(gpNamedFramebufferTextureEXT, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level)) -} -func NamedFramebufferTextureFaceEXT(framebuffer uint32, attachment uint32, texture uint32, level int32, face uint32) { - C.glowNamedFramebufferTextureFaceEXT(gpNamedFramebufferTextureFaceEXT, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLenum)(face)) -} - -// attach a single layer of a texture object as a logical buffer of a framebuffer object -func NamedFramebufferTextureLayer(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) { - C.glowNamedFramebufferTextureLayer(gpNamedFramebufferTextureLayer, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer)) -} -func NamedFramebufferTextureLayerEXT(framebuffer uint32, attachment uint32, texture uint32, level int32, layer int32) { - C.glowNamedFramebufferTextureLayerEXT(gpNamedFramebufferTextureLayerEXT, (C.GLuint)(framebuffer), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(layer)) -} -func NamedProgramLocalParameter4dEXT(program uint32, target uint32, index uint32, x float64, y float64, z float64, w float64) { - C.glowNamedProgramLocalParameter4dEXT(gpNamedProgramLocalParameter4dEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func NamedProgramLocalParameter4dvEXT(program uint32, target uint32, index uint32, params *float64) { - C.glowNamedProgramLocalParameter4dvEXT(gpNamedProgramLocalParameter4dvEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(params))) -} -func NamedProgramLocalParameter4fEXT(program uint32, target uint32, index uint32, x float32, y float32, z float32, w float32) { - C.glowNamedProgramLocalParameter4fEXT(gpNamedProgramLocalParameter4fEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func NamedProgramLocalParameter4fvEXT(program uint32, target uint32, index uint32, params *float32) { - C.glowNamedProgramLocalParameter4fvEXT(gpNamedProgramLocalParameter4fvEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(params))) -} -func NamedProgramLocalParameterI4iEXT(program uint32, target uint32, index uint32, x int32, y int32, z int32, w int32) { - C.glowNamedProgramLocalParameterI4iEXT(gpNamedProgramLocalParameterI4iEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (C.GLint)(x), (C.GLint)(y), (C.GLint)(z), (C.GLint)(w)) -} -func NamedProgramLocalParameterI4ivEXT(program uint32, target uint32, index uint32, params *int32) { - C.glowNamedProgramLocalParameterI4ivEXT(gpNamedProgramLocalParameterI4ivEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(params))) -} -func NamedProgramLocalParameterI4uiEXT(program uint32, target uint32, index uint32, x uint32, y uint32, z uint32, w uint32) { - C.glowNamedProgramLocalParameterI4uiEXT(gpNamedProgramLocalParameterI4uiEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(x), (C.GLuint)(y), (C.GLuint)(z), (C.GLuint)(w)) -} -func NamedProgramLocalParameterI4uivEXT(program uint32, target uint32, index uint32, params *uint32) { - C.glowNamedProgramLocalParameterI4uivEXT(gpNamedProgramLocalParameterI4uivEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(params))) -} -func NamedProgramLocalParameters4fvEXT(program uint32, target uint32, index uint32, count int32, params *float32) { - C.glowNamedProgramLocalParameters4fvEXT(gpNamedProgramLocalParameters4fvEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(params))) -} -func NamedProgramLocalParametersI4ivEXT(program uint32, target uint32, index uint32, count int32, params *int32) { - C.glowNamedProgramLocalParametersI4ivEXT(gpNamedProgramLocalParametersI4ivEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(params))) -} -func NamedProgramLocalParametersI4uivEXT(program uint32, target uint32, index uint32, count int32, params *uint32) { - C.glowNamedProgramLocalParametersI4uivEXT(gpNamedProgramLocalParametersI4uivEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(params))) -} -func NamedProgramStringEXT(program uint32, target uint32, format uint32, len int32, xstring unsafe.Pointer) { - C.glowNamedProgramStringEXT(gpNamedProgramStringEXT, (C.GLuint)(program), (C.GLenum)(target), (C.GLenum)(format), (C.GLsizei)(len), xstring) -} - -// establish data storage, format and dimensions of a renderbuffer object's image -func NamedRenderbufferStorage(renderbuffer uint32, internalformat uint32, width int32, height int32) { - C.glowNamedRenderbufferStorage(gpNamedRenderbufferStorage, (C.GLuint)(renderbuffer), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func NamedRenderbufferStorageEXT(renderbuffer uint32, internalformat uint32, width int32, height int32) { - C.glowNamedRenderbufferStorageEXT(gpNamedRenderbufferStorageEXT, (C.GLuint)(renderbuffer), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// establish data storage, format, dimensions and sample count of a renderbuffer object's image -func NamedRenderbufferStorageMultisample(renderbuffer uint32, samples int32, internalformat uint32, width int32, height int32) { - C.glowNamedRenderbufferStorageMultisample(gpNamedRenderbufferStorageMultisample, (C.GLuint)(renderbuffer), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func NamedRenderbufferStorageMultisampleCoverageEXT(renderbuffer uint32, coverageSamples int32, colorSamples int32, internalformat uint32, width int32, height int32) { - C.glowNamedRenderbufferStorageMultisampleCoverageEXT(gpNamedRenderbufferStorageMultisampleCoverageEXT, (C.GLuint)(renderbuffer), (C.GLsizei)(coverageSamples), (C.GLsizei)(colorSamples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func NamedRenderbufferStorageMultisampleEXT(renderbuffer uint32, samples int32, internalformat uint32, width int32, height int32) { - C.glowNamedRenderbufferStorageMultisampleEXT(gpNamedRenderbufferStorageMultisampleEXT, (C.GLuint)(renderbuffer), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func NamedStringARB(xtype uint32, namelen int32, name *uint8, stringlen int32, xstring *uint8) { - C.glowNamedStringARB(gpNamedStringARB, (C.GLenum)(xtype), (C.GLint)(namelen), (*C.GLchar)(unsafe.Pointer(name)), (C.GLint)(stringlen), (*C.GLchar)(unsafe.Pointer(xstring))) -} - -// create or replace a display list -func NewList(list uint32, mode uint32) { - C.glowNewList(gpNewList, (C.GLuint)(list), (C.GLenum)(mode)) -} -func NewObjectBufferATI(size int32, pointer unsafe.Pointer, usage uint32) uint32 { - ret := C.glowNewObjectBufferATI(gpNewObjectBufferATI, (C.GLsizei)(size), pointer, (C.GLenum)(usage)) - return (uint32)(ret) -} -func Normal3b(nx int8, ny int8, nz int8) { - C.glowNormal3b(gpNormal3b, (C.GLbyte)(nx), (C.GLbyte)(ny), (C.GLbyte)(nz)) -} -func Normal3bv(v *int8) { - C.glowNormal3bv(gpNormal3bv, (*C.GLbyte)(unsafe.Pointer(v))) -} -func Normal3d(nx float64, ny float64, nz float64) { - C.glowNormal3d(gpNormal3d, (C.GLdouble)(nx), (C.GLdouble)(ny), (C.GLdouble)(nz)) -} -func Normal3dv(v *float64) { - C.glowNormal3dv(gpNormal3dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func Normal3f(nx float32, ny float32, nz float32) { - C.glowNormal3f(gpNormal3f, (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz)) -} -func Normal3fVertex3fSUN(nx float32, ny float32, nz float32, x float32, y float32, z float32) { - C.glowNormal3fVertex3fSUN(gpNormal3fVertex3fSUN, (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func Normal3fVertex3fvSUN(n *float32, v *float32) { - C.glowNormal3fVertex3fvSUN(gpNormal3fVertex3fvSUN, (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func Normal3fv(v *float32) { - C.glowNormal3fv(gpNormal3fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func Normal3hNV(nx uint16, ny uint16, nz uint16) { - C.glowNormal3hNV(gpNormal3hNV, (C.GLhalfNV)(nx), (C.GLhalfNV)(ny), (C.GLhalfNV)(nz)) -} -func Normal3hvNV(v *uint16) { - C.glowNormal3hvNV(gpNormal3hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func Normal3i(nx int32, ny int32, nz int32) { - C.glowNormal3i(gpNormal3i, (C.GLint)(nx), (C.GLint)(ny), (C.GLint)(nz)) -} -func Normal3iv(v *int32) { - C.glowNormal3iv(gpNormal3iv, (*C.GLint)(unsafe.Pointer(v))) -} -func Normal3s(nx int16, ny int16, nz int16) { - C.glowNormal3s(gpNormal3s, (C.GLshort)(nx), (C.GLshort)(ny), (C.GLshort)(nz)) -} -func Normal3sv(v *int16) { - C.glowNormal3sv(gpNormal3sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func Normal3xOES(nx int32, ny int32, nz int32) { - C.glowNormal3xOES(gpNormal3xOES, (C.GLfixed)(nx), (C.GLfixed)(ny), (C.GLfixed)(nz)) -} -func Normal3xvOES(coords *int32) { - C.glowNormal3xvOES(gpNormal3xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func NormalFormatNV(xtype uint32, stride int32) { - C.glowNormalFormatNV(gpNormalFormatNV, (C.GLenum)(xtype), (C.GLsizei)(stride)) -} - -// define an array of normals -func NormalPointer(xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowNormalPointer(gpNormalPointer, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func NormalPointerEXT(xtype uint32, stride int32, count int32, pointer unsafe.Pointer) { - C.glowNormalPointerEXT(gpNormalPointerEXT, (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLsizei)(count), pointer) -} -func NormalPointerListIBM(xtype uint32, stride int32, pointer *unsafe.Pointer, ptrstride int32) { - C.glowNormalPointerListIBM(gpNormalPointerListIBM, (C.GLenum)(xtype), (C.GLint)(stride), pointer, (C.GLint)(ptrstride)) -} -func NormalPointervINTEL(xtype uint32, pointer *unsafe.Pointer) { - C.glowNormalPointervINTEL(gpNormalPointervINTEL, (C.GLenum)(xtype), pointer) -} -func NormalStream3bATI(stream uint32, nx int8, ny int8, nz int8) { - C.glowNormalStream3bATI(gpNormalStream3bATI, (C.GLenum)(stream), (C.GLbyte)(nx), (C.GLbyte)(ny), (C.GLbyte)(nz)) -} -func NormalStream3bvATI(stream uint32, coords *int8) { - C.glowNormalStream3bvATI(gpNormalStream3bvATI, (C.GLenum)(stream), (*C.GLbyte)(unsafe.Pointer(coords))) -} -func NormalStream3dATI(stream uint32, nx float64, ny float64, nz float64) { - C.glowNormalStream3dATI(gpNormalStream3dATI, (C.GLenum)(stream), (C.GLdouble)(nx), (C.GLdouble)(ny), (C.GLdouble)(nz)) -} -func NormalStream3dvATI(stream uint32, coords *float64) { - C.glowNormalStream3dvATI(gpNormalStream3dvATI, (C.GLenum)(stream), (*C.GLdouble)(unsafe.Pointer(coords))) -} -func NormalStream3fATI(stream uint32, nx float32, ny float32, nz float32) { - C.glowNormalStream3fATI(gpNormalStream3fATI, (C.GLenum)(stream), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz)) -} -func NormalStream3fvATI(stream uint32, coords *float32) { - C.glowNormalStream3fvATI(gpNormalStream3fvATI, (C.GLenum)(stream), (*C.GLfloat)(unsafe.Pointer(coords))) -} -func NormalStream3iATI(stream uint32, nx int32, ny int32, nz int32) { - C.glowNormalStream3iATI(gpNormalStream3iATI, (C.GLenum)(stream), (C.GLint)(nx), (C.GLint)(ny), (C.GLint)(nz)) -} -func NormalStream3ivATI(stream uint32, coords *int32) { - C.glowNormalStream3ivATI(gpNormalStream3ivATI, (C.GLenum)(stream), (*C.GLint)(unsafe.Pointer(coords))) -} -func NormalStream3sATI(stream uint32, nx int16, ny int16, nz int16) { - C.glowNormalStream3sATI(gpNormalStream3sATI, (C.GLenum)(stream), (C.GLshort)(nx), (C.GLshort)(ny), (C.GLshort)(nz)) -} -func NormalStream3svATI(stream uint32, coords *int16) { - C.glowNormalStream3svATI(gpNormalStream3svATI, (C.GLenum)(stream), (*C.GLshort)(unsafe.Pointer(coords))) -} - -// label a named object identified within a namespace -func ObjectLabel(identifier uint32, name uint32, length int32, label *uint8) { - C.glowObjectLabel(gpObjectLabel, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label))) -} -func ObjectLabelKHR(identifier uint32, name uint32, length int32, label *uint8) { - C.glowObjectLabelKHR(gpObjectLabelKHR, (C.GLenum)(identifier), (C.GLuint)(name), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label))) -} - -// label a a sync object identified by a pointer -func ObjectPtrLabel(ptr unsafe.Pointer, length int32, label *uint8) { - C.glowObjectPtrLabel(gpObjectPtrLabel, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label))) -} -func ObjectPtrLabelKHR(ptr unsafe.Pointer, length int32, label *uint8) { - C.glowObjectPtrLabelKHR(gpObjectPtrLabelKHR, ptr, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(label))) -} -func ObjectPurgeableAPPLE(objectType uint32, name uint32, option uint32) uint32 { - ret := C.glowObjectPurgeableAPPLE(gpObjectPurgeableAPPLE, (C.GLenum)(objectType), (C.GLuint)(name), (C.GLenum)(option)) - return (uint32)(ret) -} -func ObjectUnpurgeableAPPLE(objectType uint32, name uint32, option uint32) uint32 { - ret := C.glowObjectUnpurgeableAPPLE(gpObjectUnpurgeableAPPLE, (C.GLenum)(objectType), (C.GLuint)(name), (C.GLenum)(option)) - return (uint32)(ret) -} - -// multiply the current matrix with an orthographic matrix -func Ortho(left float64, right float64, bottom float64, top float64, zNear float64, zFar float64) { - C.glowOrtho(gpOrtho, (C.GLdouble)(left), (C.GLdouble)(right), (C.GLdouble)(bottom), (C.GLdouble)(top), (C.GLdouble)(zNear), (C.GLdouble)(zFar)) -} -func OrthofOES(l float32, r float32, b float32, t float32, n float32, f float32) { - C.glowOrthofOES(gpOrthofOES, (C.GLfloat)(l), (C.GLfloat)(r), (C.GLfloat)(b), (C.GLfloat)(t), (C.GLfloat)(n), (C.GLfloat)(f)) -} -func OrthoxOES(l int32, r int32, b int32, t int32, n int32, f int32) { - C.glowOrthoxOES(gpOrthoxOES, (C.GLfixed)(l), (C.GLfixed)(r), (C.GLfixed)(b), (C.GLfixed)(t), (C.GLfixed)(n), (C.GLfixed)(f)) -} -func PNTrianglesfATI(pname uint32, param float32) { - C.glowPNTrianglesfATI(gpPNTrianglesfATI, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PNTrianglesiATI(pname uint32, param int32) { - C.glowPNTrianglesiATI(gpPNTrianglesiATI, (C.GLenum)(pname), (C.GLint)(param)) -} -func PassTexCoordATI(dst uint32, coord uint32, swizzle uint32) { - C.glowPassTexCoordATI(gpPassTexCoordATI, (C.GLuint)(dst), (C.GLuint)(coord), (C.GLenum)(swizzle)) -} - -// place a marker in the feedback buffer -func PassThrough(token float32) { - C.glowPassThrough(gpPassThrough, (C.GLfloat)(token)) -} -func PassThroughxOES(token int32) { - C.glowPassThroughxOES(gpPassThroughxOES, (C.GLfixed)(token)) -} -func PatchParameterfv(pname uint32, values *float32) { - C.glowPatchParameterfv(gpPatchParameterfv, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(values))) -} -func PatchParameteri(pname uint32, value int32) { - C.glowPatchParameteri(gpPatchParameteri, (C.GLenum)(pname), (C.GLint)(value)) -} -func PathColorGenNV(color uint32, genMode uint32, colorFormat uint32, coeffs *float32) { - C.glowPathColorGenNV(gpPathColorGenNV, (C.GLenum)(color), (C.GLenum)(genMode), (C.GLenum)(colorFormat), (*C.GLfloat)(unsafe.Pointer(coeffs))) -} -func PathCommandsNV(path uint32, numCommands int32, commands *uint8, numCoords int32, coordType uint32, coords unsafe.Pointer) { - C.glowPathCommandsNV(gpPathCommandsNV, (C.GLuint)(path), (C.GLsizei)(numCommands), (*C.GLubyte)(unsafe.Pointer(commands)), (C.GLsizei)(numCoords), (C.GLenum)(coordType), coords) -} -func PathCoordsNV(path uint32, numCoords int32, coordType uint32, coords unsafe.Pointer) { - C.glowPathCoordsNV(gpPathCoordsNV, (C.GLuint)(path), (C.GLsizei)(numCoords), (C.GLenum)(coordType), coords) -} -func PathCoverDepthFuncNV(xfunc uint32) { - C.glowPathCoverDepthFuncNV(gpPathCoverDepthFuncNV, (C.GLenum)(xfunc)) -} -func PathDashArrayNV(path uint32, dashCount int32, dashArray *float32) { - C.glowPathDashArrayNV(gpPathDashArrayNV, (C.GLuint)(path), (C.GLsizei)(dashCount), (*C.GLfloat)(unsafe.Pointer(dashArray))) -} -func PathFogGenNV(genMode uint32) { - C.glowPathFogGenNV(gpPathFogGenNV, (C.GLenum)(genMode)) -} -func PathGlyphIndexArrayNV(firstPathName uint32, fontTarget uint32, fontName unsafe.Pointer, fontStyle uint32, firstGlyphIndex uint32, numGlyphs int32, pathParameterTemplate uint32, emScale float32) uint32 { - ret := C.glowPathGlyphIndexArrayNV(gpPathGlyphIndexArrayNV, (C.GLuint)(firstPathName), (C.GLenum)(fontTarget), fontName, (C.GLbitfield)(fontStyle), (C.GLuint)(firstGlyphIndex), (C.GLsizei)(numGlyphs), (C.GLuint)(pathParameterTemplate), (C.GLfloat)(emScale)) - return (uint32)(ret) -} -func PathGlyphIndexRangeNV(fontTarget uint32, fontName unsafe.Pointer, fontStyle uint32, pathParameterTemplate uint32, emScale float32, baseAndCount *uint32) uint32 { - ret := C.glowPathGlyphIndexRangeNV(gpPathGlyphIndexRangeNV, (C.GLenum)(fontTarget), fontName, (C.GLbitfield)(fontStyle), (C.GLuint)(pathParameterTemplate), (C.GLfloat)(emScale), (*C.GLuint)(unsafe.Pointer(baseAndCount))) - return (uint32)(ret) -} -func PathGlyphRangeNV(firstPathName uint32, fontTarget uint32, fontName unsafe.Pointer, fontStyle uint32, firstGlyph uint32, numGlyphs int32, handleMissingGlyphs uint32, pathParameterTemplate uint32, emScale float32) { - C.glowPathGlyphRangeNV(gpPathGlyphRangeNV, (C.GLuint)(firstPathName), (C.GLenum)(fontTarget), fontName, (C.GLbitfield)(fontStyle), (C.GLuint)(firstGlyph), (C.GLsizei)(numGlyphs), (C.GLenum)(handleMissingGlyphs), (C.GLuint)(pathParameterTemplate), (C.GLfloat)(emScale)) -} -func PathGlyphsNV(firstPathName uint32, fontTarget uint32, fontName unsafe.Pointer, fontStyle uint32, numGlyphs int32, xtype uint32, charcodes unsafe.Pointer, handleMissingGlyphs uint32, pathParameterTemplate uint32, emScale float32) { - C.glowPathGlyphsNV(gpPathGlyphsNV, (C.GLuint)(firstPathName), (C.GLenum)(fontTarget), fontName, (C.GLbitfield)(fontStyle), (C.GLsizei)(numGlyphs), (C.GLenum)(xtype), charcodes, (C.GLenum)(handleMissingGlyphs), (C.GLuint)(pathParameterTemplate), (C.GLfloat)(emScale)) -} -func PathMemoryGlyphIndexArrayNV(firstPathName uint32, fontTarget uint32, fontSize int, fontData unsafe.Pointer, faceIndex int32, firstGlyphIndex uint32, numGlyphs int32, pathParameterTemplate uint32, emScale float32) uint32 { - ret := C.glowPathMemoryGlyphIndexArrayNV(gpPathMemoryGlyphIndexArrayNV, (C.GLuint)(firstPathName), (C.GLenum)(fontTarget), (C.GLsizeiptr)(fontSize), fontData, (C.GLsizei)(faceIndex), (C.GLuint)(firstGlyphIndex), (C.GLsizei)(numGlyphs), (C.GLuint)(pathParameterTemplate), (C.GLfloat)(emScale)) - return (uint32)(ret) -} -func PathParameterfNV(path uint32, pname uint32, value float32) { - C.glowPathParameterfNV(gpPathParameterfNV, (C.GLuint)(path), (C.GLenum)(pname), (C.GLfloat)(value)) -} -func PathParameterfvNV(path uint32, pname uint32, value *float32) { - C.glowPathParameterfvNV(gpPathParameterfvNV, (C.GLuint)(path), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(value))) -} -func PathParameteriNV(path uint32, pname uint32, value int32) { - C.glowPathParameteriNV(gpPathParameteriNV, (C.GLuint)(path), (C.GLenum)(pname), (C.GLint)(value)) -} -func PathParameterivNV(path uint32, pname uint32, value *int32) { - C.glowPathParameterivNV(gpPathParameterivNV, (C.GLuint)(path), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(value))) -} -func PathStencilDepthOffsetNV(factor float32, units float32) { - C.glowPathStencilDepthOffsetNV(gpPathStencilDepthOffsetNV, (C.GLfloat)(factor), (C.GLfloat)(units)) -} -func PathStencilFuncNV(xfunc uint32, ref int32, mask uint32) { - C.glowPathStencilFuncNV(gpPathStencilFuncNV, (C.GLenum)(xfunc), (C.GLint)(ref), (C.GLuint)(mask)) -} -func PathStringNV(path uint32, format uint32, length int32, pathString unsafe.Pointer) { - C.glowPathStringNV(gpPathStringNV, (C.GLuint)(path), (C.GLenum)(format), (C.GLsizei)(length), pathString) -} -func PathSubCommandsNV(path uint32, commandStart int32, commandsToDelete int32, numCommands int32, commands *uint8, numCoords int32, coordType uint32, coords unsafe.Pointer) { - C.glowPathSubCommandsNV(gpPathSubCommandsNV, (C.GLuint)(path), (C.GLsizei)(commandStart), (C.GLsizei)(commandsToDelete), (C.GLsizei)(numCommands), (*C.GLubyte)(unsafe.Pointer(commands)), (C.GLsizei)(numCoords), (C.GLenum)(coordType), coords) -} -func PathSubCoordsNV(path uint32, coordStart int32, numCoords int32, coordType uint32, coords unsafe.Pointer) { - C.glowPathSubCoordsNV(gpPathSubCoordsNV, (C.GLuint)(path), (C.GLsizei)(coordStart), (C.GLsizei)(numCoords), (C.GLenum)(coordType), coords) -} -func PathTexGenNV(texCoordSet uint32, genMode uint32, components int32, coeffs *float32) { - C.glowPathTexGenNV(gpPathTexGenNV, (C.GLenum)(texCoordSet), (C.GLenum)(genMode), (C.GLint)(components), (*C.GLfloat)(unsafe.Pointer(coeffs))) -} - -// pause transform feedback operations -func PauseTransformFeedback() { - C.glowPauseTransformFeedback(gpPauseTransformFeedback) -} -func PauseTransformFeedbackNV() { - C.glowPauseTransformFeedbackNV(gpPauseTransformFeedbackNV) -} -func PixelDataRangeNV(target uint32, length int32, pointer unsafe.Pointer) { - C.glowPixelDataRangeNV(gpPixelDataRangeNV, (C.GLenum)(target), (C.GLsizei)(length), pointer) -} -func PixelMapfv(xmap uint32, mapsize int32, values *float32) { - C.glowPixelMapfv(gpPixelMapfv, (C.GLenum)(xmap), (C.GLsizei)(mapsize), (*C.GLfloat)(unsafe.Pointer(values))) -} -func PixelMapuiv(xmap uint32, mapsize int32, values *uint32) { - C.glowPixelMapuiv(gpPixelMapuiv, (C.GLenum)(xmap), (C.GLsizei)(mapsize), (*C.GLuint)(unsafe.Pointer(values))) -} -func PixelMapusv(xmap uint32, mapsize int32, values *uint16) { - C.glowPixelMapusv(gpPixelMapusv, (C.GLenum)(xmap), (C.GLsizei)(mapsize), (*C.GLushort)(unsafe.Pointer(values))) -} -func PixelMapx(xmap uint32, size int32, values *int32) { - C.glowPixelMapx(gpPixelMapx, (C.GLenum)(xmap), (C.GLint)(size), (*C.GLfixed)(unsafe.Pointer(values))) -} -func PixelStoref(pname uint32, param float32) { - C.glowPixelStoref(gpPixelStoref, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PixelStorei(pname uint32, param int32) { - C.glowPixelStorei(gpPixelStorei, (C.GLenum)(pname), (C.GLint)(param)) -} -func PixelStorex(pname uint32, param int32) { - C.glowPixelStorex(gpPixelStorex, (C.GLenum)(pname), (C.GLfixed)(param)) -} -func PixelTexGenParameterfSGIS(pname uint32, param float32) { - C.glowPixelTexGenParameterfSGIS(gpPixelTexGenParameterfSGIS, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PixelTexGenParameterfvSGIS(pname uint32, params *float32) { - C.glowPixelTexGenParameterfvSGIS(gpPixelTexGenParameterfvSGIS, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func PixelTexGenParameteriSGIS(pname uint32, param int32) { - C.glowPixelTexGenParameteriSGIS(gpPixelTexGenParameteriSGIS, (C.GLenum)(pname), (C.GLint)(param)) -} -func PixelTexGenParameterivSGIS(pname uint32, params *int32) { - C.glowPixelTexGenParameterivSGIS(gpPixelTexGenParameterivSGIS, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func PixelTexGenSGIX(mode uint32) { - C.glowPixelTexGenSGIX(gpPixelTexGenSGIX, (C.GLenum)(mode)) -} -func PixelTransferf(pname uint32, param float32) { - C.glowPixelTransferf(gpPixelTransferf, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PixelTransferi(pname uint32, param int32) { - C.glowPixelTransferi(gpPixelTransferi, (C.GLenum)(pname), (C.GLint)(param)) -} -func PixelTransferxOES(pname uint32, param int32) { - C.glowPixelTransferxOES(gpPixelTransferxOES, (C.GLenum)(pname), (C.GLfixed)(param)) -} -func PixelTransformParameterfEXT(target uint32, pname uint32, param float32) { - C.glowPixelTransformParameterfEXT(gpPixelTransformParameterfEXT, (C.GLenum)(target), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PixelTransformParameterfvEXT(target uint32, pname uint32, params *float32) { - C.glowPixelTransformParameterfvEXT(gpPixelTransformParameterfvEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func PixelTransformParameteriEXT(target uint32, pname uint32, param int32) { - C.glowPixelTransformParameteriEXT(gpPixelTransformParameteriEXT, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} -func PixelTransformParameterivEXT(target uint32, pname uint32, params *int32) { - C.glowPixelTransformParameterivEXT(gpPixelTransformParameterivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// specify the pixel zoom factors -func PixelZoom(xfactor float32, yfactor float32) { - C.glowPixelZoom(gpPixelZoom, (C.GLfloat)(xfactor), (C.GLfloat)(yfactor)) -} -func PixelZoomxOES(xfactor int32, yfactor int32) { - C.glowPixelZoomxOES(gpPixelZoomxOES, (C.GLfixed)(xfactor), (C.GLfixed)(yfactor)) -} -func PointAlongPathNV(path uint32, startSegment int32, numSegments int32, distance float32, x *float32, y *float32, tangentX *float32, tangentY *float32) bool { - ret := C.glowPointAlongPathNV(gpPointAlongPathNV, (C.GLuint)(path), (C.GLsizei)(startSegment), (C.GLsizei)(numSegments), (C.GLfloat)(distance), (*C.GLfloat)(unsafe.Pointer(x)), (*C.GLfloat)(unsafe.Pointer(y)), (*C.GLfloat)(unsafe.Pointer(tangentX)), (*C.GLfloat)(unsafe.Pointer(tangentY))) - return ret == TRUE -} -func PointParameterf(pname uint32, param float32) { - C.glowPointParameterf(gpPointParameterf, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PointParameterfARB(pname uint32, param float32) { - C.glowPointParameterfARB(gpPointParameterfARB, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PointParameterfEXT(pname uint32, param float32) { - C.glowPointParameterfEXT(gpPointParameterfEXT, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PointParameterfSGIS(pname uint32, param float32) { - C.glowPointParameterfSGIS(gpPointParameterfSGIS, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func PointParameterfv(pname uint32, params *float32) { - C.glowPointParameterfv(gpPointParameterfv, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func PointParameterfvARB(pname uint32, params *float32) { - C.glowPointParameterfvARB(gpPointParameterfvARB, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func PointParameterfvEXT(pname uint32, params *float32) { - C.glowPointParameterfvEXT(gpPointParameterfvEXT, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func PointParameterfvSGIS(pname uint32, params *float32) { - C.glowPointParameterfvSGIS(gpPointParameterfvSGIS, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func PointParameteri(pname uint32, param int32) { - C.glowPointParameteri(gpPointParameteri, (C.GLenum)(pname), (C.GLint)(param)) -} -func PointParameteriNV(pname uint32, param int32) { - C.glowPointParameteriNV(gpPointParameteriNV, (C.GLenum)(pname), (C.GLint)(param)) -} -func PointParameteriv(pname uint32, params *int32) { - C.glowPointParameteriv(gpPointParameteriv, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func PointParameterivNV(pname uint32, params *int32) { - C.glowPointParameterivNV(gpPointParameterivNV, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func PointParameterxOES(pname uint32, param int32) { - C.glowPointParameterxOES(gpPointParameterxOES, (C.GLenum)(pname), (C.GLfixed)(param)) -} -func PointParameterxvOES(pname uint32, params *int32) { - C.glowPointParameterxvOES(gpPointParameterxvOES, (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} - -// specify the diameter of rasterized points -func PointSize(size float32) { - C.glowPointSize(gpPointSize, (C.GLfloat)(size)) -} -func PointSizexOES(size int32) { - C.glowPointSizexOES(gpPointSizexOES, (C.GLfixed)(size)) -} -func PollAsyncSGIX(markerp *uint32) int32 { - ret := C.glowPollAsyncSGIX(gpPollAsyncSGIX, (*C.GLuint)(unsafe.Pointer(markerp))) - return (int32)(ret) -} -func PollInstrumentsSGIX(marker_p *int32) int32 { - ret := C.glowPollInstrumentsSGIX(gpPollInstrumentsSGIX, (*C.GLint)(unsafe.Pointer(marker_p))) - return (int32)(ret) -} - -// select a polygon rasterization mode -func PolygonMode(face uint32, mode uint32) { - C.glowPolygonMode(gpPolygonMode, (C.GLenum)(face), (C.GLenum)(mode)) -} - -// set the scale and units used to calculate depth values -func PolygonOffset(factor float32, units float32) { - C.glowPolygonOffset(gpPolygonOffset, (C.GLfloat)(factor), (C.GLfloat)(units)) -} -func PolygonOffsetEXT(factor float32, bias float32) { - C.glowPolygonOffsetEXT(gpPolygonOffsetEXT, (C.GLfloat)(factor), (C.GLfloat)(bias)) -} -func PolygonOffsetxOES(factor int32, units int32) { - C.glowPolygonOffsetxOES(gpPolygonOffsetxOES, (C.GLfixed)(factor), (C.GLfixed)(units)) -} - -// set the polygon stippling pattern -func PolygonStipple(mask *uint8) { - C.glowPolygonStipple(gpPolygonStipple, (*C.GLubyte)(unsafe.Pointer(mask))) -} -func PopAttrib() { - C.glowPopAttrib(gpPopAttrib) -} -func PopClientAttrib() { - C.glowPopClientAttrib(gpPopClientAttrib) -} - -// pop the active debug group -func PopDebugGroup() { - C.glowPopDebugGroup(gpPopDebugGroup) -} -func PopDebugGroupKHR() { - C.glowPopDebugGroupKHR(gpPopDebugGroupKHR) -} -func PopGroupMarkerEXT() { - C.glowPopGroupMarkerEXT(gpPopGroupMarkerEXT) -} -func PopMatrix() { - C.glowPopMatrix(gpPopMatrix) -} -func PopName() { - C.glowPopName(gpPopName) -} -func PresentFrameDualFillNV(video_slot uint32, minPresentTime uint64, beginPresentTimeId uint32, presentDurationId uint32, xtype uint32, target0 uint32, fill0 uint32, target1 uint32, fill1 uint32, target2 uint32, fill2 uint32, target3 uint32, fill3 uint32) { - C.glowPresentFrameDualFillNV(gpPresentFrameDualFillNV, (C.GLuint)(video_slot), (C.GLuint64EXT)(minPresentTime), (C.GLuint)(beginPresentTimeId), (C.GLuint)(presentDurationId), (C.GLenum)(xtype), (C.GLenum)(target0), (C.GLuint)(fill0), (C.GLenum)(target1), (C.GLuint)(fill1), (C.GLenum)(target2), (C.GLuint)(fill2), (C.GLenum)(target3), (C.GLuint)(fill3)) -} -func PresentFrameKeyedNV(video_slot uint32, minPresentTime uint64, beginPresentTimeId uint32, presentDurationId uint32, xtype uint32, target0 uint32, fill0 uint32, key0 uint32, target1 uint32, fill1 uint32, key1 uint32) { - C.glowPresentFrameKeyedNV(gpPresentFrameKeyedNV, (C.GLuint)(video_slot), (C.GLuint64EXT)(minPresentTime), (C.GLuint)(beginPresentTimeId), (C.GLuint)(presentDurationId), (C.GLenum)(xtype), (C.GLenum)(target0), (C.GLuint)(fill0), (C.GLuint)(key0), (C.GLenum)(target1), (C.GLuint)(fill1), (C.GLuint)(key1)) -} -func PrimitiveRestartIndexNV(index uint32) { - C.glowPrimitiveRestartIndexNV(gpPrimitiveRestartIndexNV, (C.GLuint)(index)) -} -func PrimitiveRestartNV() { - C.glowPrimitiveRestartNV(gpPrimitiveRestartNV) -} - -// set texture residence priority -func PrioritizeTextures(n int32, textures *uint32, priorities *float32) { - C.glowPrioritizeTextures(gpPrioritizeTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLfloat)(unsafe.Pointer(priorities))) -} -func PrioritizeTexturesEXT(n int32, textures *uint32, priorities *float32) { - C.glowPrioritizeTexturesEXT(gpPrioritizeTexturesEXT, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLclampf)(unsafe.Pointer(priorities))) -} -func PrioritizeTexturesxOES(n int32, textures *uint32, priorities *int32) { - C.glowPrioritizeTexturesxOES(gpPrioritizeTexturesxOES, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLfixed)(unsafe.Pointer(priorities))) -} - -// load a program object with a program binary -func ProgramBinary(program uint32, binaryFormat uint32, binary unsafe.Pointer, length int32) { - C.glowProgramBinary(gpProgramBinary, (C.GLuint)(program), (C.GLenum)(binaryFormat), binary, (C.GLsizei)(length)) -} -func ProgramBufferParametersIivNV(target uint32, bindingIndex uint32, wordIndex uint32, count int32, params *int32) { - C.glowProgramBufferParametersIivNV(gpProgramBufferParametersIivNV, (C.GLenum)(target), (C.GLuint)(bindingIndex), (C.GLuint)(wordIndex), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(params))) -} -func ProgramBufferParametersIuivNV(target uint32, bindingIndex uint32, wordIndex uint32, count int32, params *uint32) { - C.glowProgramBufferParametersIuivNV(gpProgramBufferParametersIuivNV, (C.GLenum)(target), (C.GLuint)(bindingIndex), (C.GLuint)(wordIndex), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(params))) -} -func ProgramBufferParametersfvNV(target uint32, bindingIndex uint32, wordIndex uint32, count int32, params *float32) { - C.glowProgramBufferParametersfvNV(gpProgramBufferParametersfvNV, (C.GLenum)(target), (C.GLuint)(bindingIndex), (C.GLuint)(wordIndex), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ProgramEnvParameter4dARB(target uint32, index uint32, x float64, y float64, z float64, w float64) { - C.glowProgramEnvParameter4dARB(gpProgramEnvParameter4dARB, (C.GLenum)(target), (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func ProgramEnvParameter4dvARB(target uint32, index uint32, params *float64) { - C.glowProgramEnvParameter4dvARB(gpProgramEnvParameter4dvARB, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(params))) -} -func ProgramEnvParameter4fARB(target uint32, index uint32, x float32, y float32, z float32, w float32) { - C.glowProgramEnvParameter4fARB(gpProgramEnvParameter4fARB, (C.GLenum)(target), (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func ProgramEnvParameter4fvARB(target uint32, index uint32, params *float32) { - C.glowProgramEnvParameter4fvARB(gpProgramEnvParameter4fvARB, (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ProgramEnvParameterI4iNV(target uint32, index uint32, x int32, y int32, z int32, w int32) { - C.glowProgramEnvParameterI4iNV(gpProgramEnvParameterI4iNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLint)(x), (C.GLint)(y), (C.GLint)(z), (C.GLint)(w)) -} -func ProgramEnvParameterI4ivNV(target uint32, index uint32, params *int32) { - C.glowProgramEnvParameterI4ivNV(gpProgramEnvParameterI4ivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(params))) -} -func ProgramEnvParameterI4uiNV(target uint32, index uint32, x uint32, y uint32, z uint32, w uint32) { - C.glowProgramEnvParameterI4uiNV(gpProgramEnvParameterI4uiNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(x), (C.GLuint)(y), (C.GLuint)(z), (C.GLuint)(w)) -} -func ProgramEnvParameterI4uivNV(target uint32, index uint32, params *uint32) { - C.glowProgramEnvParameterI4uivNV(gpProgramEnvParameterI4uivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(params))) -} -func ProgramEnvParameters4fvEXT(target uint32, index uint32, count int32, params *float32) { - C.glowProgramEnvParameters4fvEXT(gpProgramEnvParameters4fvEXT, (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ProgramEnvParametersI4ivNV(target uint32, index uint32, count int32, params *int32) { - C.glowProgramEnvParametersI4ivNV(gpProgramEnvParametersI4ivNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(params))) -} -func ProgramEnvParametersI4uivNV(target uint32, index uint32, count int32, params *uint32) { - C.glowProgramEnvParametersI4uivNV(gpProgramEnvParametersI4uivNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(params))) -} -func ProgramLocalParameter4dARB(target uint32, index uint32, x float64, y float64, z float64, w float64) { - C.glowProgramLocalParameter4dARB(gpProgramLocalParameter4dARB, (C.GLenum)(target), (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func ProgramLocalParameter4dvARB(target uint32, index uint32, params *float64) { - C.glowProgramLocalParameter4dvARB(gpProgramLocalParameter4dvARB, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(params))) -} -func ProgramLocalParameter4fARB(target uint32, index uint32, x float32, y float32, z float32, w float32) { - C.glowProgramLocalParameter4fARB(gpProgramLocalParameter4fARB, (C.GLenum)(target), (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func ProgramLocalParameter4fvARB(target uint32, index uint32, params *float32) { - C.glowProgramLocalParameter4fvARB(gpProgramLocalParameter4fvARB, (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ProgramLocalParameterI4iNV(target uint32, index uint32, x int32, y int32, z int32, w int32) { - C.glowProgramLocalParameterI4iNV(gpProgramLocalParameterI4iNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLint)(x), (C.GLint)(y), (C.GLint)(z), (C.GLint)(w)) -} -func ProgramLocalParameterI4ivNV(target uint32, index uint32, params *int32) { - C.glowProgramLocalParameterI4ivNV(gpProgramLocalParameterI4ivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(params))) -} -func ProgramLocalParameterI4uiNV(target uint32, index uint32, x uint32, y uint32, z uint32, w uint32) { - C.glowProgramLocalParameterI4uiNV(gpProgramLocalParameterI4uiNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(x), (C.GLuint)(y), (C.GLuint)(z), (C.GLuint)(w)) -} -func ProgramLocalParameterI4uivNV(target uint32, index uint32, params *uint32) { - C.glowProgramLocalParameterI4uivNV(gpProgramLocalParameterI4uivNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(params))) -} -func ProgramLocalParameters4fvEXT(target uint32, index uint32, count int32, params *float32) { - C.glowProgramLocalParameters4fvEXT(gpProgramLocalParameters4fvEXT, (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(params))) -} -func ProgramLocalParametersI4ivNV(target uint32, index uint32, count int32, params *int32) { - C.glowProgramLocalParametersI4ivNV(gpProgramLocalParametersI4ivNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(params))) -} -func ProgramLocalParametersI4uivNV(target uint32, index uint32, count int32, params *uint32) { - C.glowProgramLocalParametersI4uivNV(gpProgramLocalParametersI4uivNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(params))) -} -func ProgramNamedParameter4dNV(id uint32, len int32, name *uint8, x float64, y float64, z float64, w float64) { - C.glowProgramNamedParameter4dNV(gpProgramNamedParameter4dNV, (C.GLuint)(id), (C.GLsizei)(len), (*C.GLubyte)(unsafe.Pointer(name)), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func ProgramNamedParameter4dvNV(id uint32, len int32, name *uint8, v *float64) { - C.glowProgramNamedParameter4dvNV(gpProgramNamedParameter4dvNV, (C.GLuint)(id), (C.GLsizei)(len), (*C.GLubyte)(unsafe.Pointer(name)), (*C.GLdouble)(unsafe.Pointer(v))) -} -func ProgramNamedParameter4fNV(id uint32, len int32, name *uint8, x float32, y float32, z float32, w float32) { - C.glowProgramNamedParameter4fNV(gpProgramNamedParameter4fNV, (C.GLuint)(id), (C.GLsizei)(len), (*C.GLubyte)(unsafe.Pointer(name)), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func ProgramNamedParameter4fvNV(id uint32, len int32, name *uint8, v *float32) { - C.glowProgramNamedParameter4fvNV(gpProgramNamedParameter4fvNV, (C.GLuint)(id), (C.GLsizei)(len), (*C.GLubyte)(unsafe.Pointer(name)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ProgramParameter4dNV(target uint32, index uint32, x float64, y float64, z float64, w float64) { - C.glowProgramParameter4dNV(gpProgramParameter4dNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func ProgramParameter4dvNV(target uint32, index uint32, v *float64) { - C.glowProgramParameter4dvNV(gpProgramParameter4dvNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func ProgramParameter4fNV(target uint32, index uint32, x float32, y float32, z float32, w float32) { - C.glowProgramParameter4fNV(gpProgramParameter4fNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func ProgramParameter4fvNV(target uint32, index uint32, v *float32) { - C.glowProgramParameter4fvNV(gpProgramParameter4fvNV, (C.GLenum)(target), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ProgramParameteri(program uint32, pname uint32, value int32) { - C.glowProgramParameteri(gpProgramParameteri, (C.GLuint)(program), (C.GLenum)(pname), (C.GLint)(value)) -} -func ProgramParameteriARB(program uint32, pname uint32, value int32) { - C.glowProgramParameteriARB(gpProgramParameteriARB, (C.GLuint)(program), (C.GLenum)(pname), (C.GLint)(value)) -} -func ProgramParameteriEXT(program uint32, pname uint32, value int32) { - C.glowProgramParameteriEXT(gpProgramParameteriEXT, (C.GLuint)(program), (C.GLenum)(pname), (C.GLint)(value)) -} -func ProgramParameters4dvNV(target uint32, index uint32, count int32, v *float64) { - C.glowProgramParameters4dvNV(gpProgramParameters4dvNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(v))) -} -func ProgramParameters4fvNV(target uint32, index uint32, count int32, v *float32) { - C.glowProgramParameters4fvNV(gpProgramParameters4fvNV, (C.GLenum)(target), (C.GLuint)(index), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ProgramPathFragmentInputGenNV(program uint32, location int32, genMode uint32, components int32, coeffs *float32) { - C.glowProgramPathFragmentInputGenNV(gpProgramPathFragmentInputGenNV, (C.GLuint)(program), (C.GLint)(location), (C.GLenum)(genMode), (C.GLint)(components), (*C.GLfloat)(unsafe.Pointer(coeffs))) -} -func ProgramStringARB(target uint32, format uint32, len int32, xstring unsafe.Pointer) { - C.glowProgramStringARB(gpProgramStringARB, (C.GLenum)(target), (C.GLenum)(format), (C.GLsizei)(len), xstring) -} -func ProgramSubroutineParametersuivNV(target uint32, count int32, params *uint32) { - C.glowProgramSubroutineParametersuivNV(gpProgramSubroutineParametersuivNV, (C.GLenum)(target), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(params))) -} -func ProgramUniform1d(program uint32, location int32, v0 float64) { - C.glowProgramUniform1d(gpProgramUniform1d, (C.GLuint)(program), (C.GLint)(location), (C.GLdouble)(v0)) -} -func ProgramUniform1dEXT(program uint32, location int32, x float64) { - C.glowProgramUniform1dEXT(gpProgramUniform1dEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLdouble)(x)) -} -func ProgramUniform1dv(program uint32, location int32, count int32, value *float64) { - C.glowProgramUniform1dv(gpProgramUniform1dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniform1dvEXT(program uint32, location int32, count int32, value *float64) { - C.glowProgramUniform1dvEXT(gpProgramUniform1dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform1f(program uint32, location int32, v0 float32) { - C.glowProgramUniform1f(gpProgramUniform1f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0)) -} -func ProgramUniform1fEXT(program uint32, location int32, v0 float32) { - C.glowProgramUniform1fEXT(gpProgramUniform1fEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform1fv(program uint32, location int32, count int32, value *float32) { - C.glowProgramUniform1fv(gpProgramUniform1fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniform1fvEXT(program uint32, location int32, count int32, value *float32) { - C.glowProgramUniform1fvEXT(gpProgramUniform1fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform1i(program uint32, location int32, v0 int32) { - C.glowProgramUniform1i(gpProgramUniform1i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0)) -} -func ProgramUniform1i64NV(program uint32, location int32, x int64) { - C.glowProgramUniform1i64NV(gpProgramUniform1i64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLint64EXT)(x)) -} -func ProgramUniform1i64vNV(program uint32, location int32, count int32, value *int64) { - C.glowProgramUniform1i64vNV(gpProgramUniform1i64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint64EXT)(unsafe.Pointer(value))) -} -func ProgramUniform1iEXT(program uint32, location int32, v0 int32) { - C.glowProgramUniform1iEXT(gpProgramUniform1iEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform1iv(program uint32, location int32, count int32, value *int32) { - C.glowProgramUniform1iv(gpProgramUniform1iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func ProgramUniform1ivEXT(program uint32, location int32, count int32, value *int32) { - C.glowProgramUniform1ivEXT(gpProgramUniform1ivEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform1ui(program uint32, location int32, v0 uint32) { - C.glowProgramUniform1ui(gpProgramUniform1ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0)) -} -func ProgramUniform1ui64NV(program uint32, location int32, x uint64) { - C.glowProgramUniform1ui64NV(gpProgramUniform1ui64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLuint64EXT)(x)) -} -func ProgramUniform1ui64vNV(program uint32, location int32, count int32, value *uint64) { - C.glowProgramUniform1ui64vNV(gpProgramUniform1ui64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func ProgramUniform1uiEXT(program uint32, location int32, v0 uint32) { - C.glowProgramUniform1uiEXT(gpProgramUniform1uiEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform1uiv(program uint32, location int32, count int32, value *uint32) { - C.glowProgramUniform1uiv(gpProgramUniform1uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func ProgramUniform1uivEXT(program uint32, location int32, count int32, value *uint32) { - C.glowProgramUniform1uivEXT(gpProgramUniform1uivEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func ProgramUniform2d(program uint32, location int32, v0 float64, v1 float64) { - C.glowProgramUniform2d(gpProgramUniform2d, (C.GLuint)(program), (C.GLint)(location), (C.GLdouble)(v0), (C.GLdouble)(v1)) -} -func ProgramUniform2dEXT(program uint32, location int32, x float64, y float64) { - C.glowProgramUniform2dEXT(gpProgramUniform2dEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLdouble)(x), (C.GLdouble)(y)) -} -func ProgramUniform2dv(program uint32, location int32, count int32, value *float64) { - C.glowProgramUniform2dv(gpProgramUniform2dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniform2dvEXT(program uint32, location int32, count int32, value *float64) { - C.glowProgramUniform2dvEXT(gpProgramUniform2dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform2f(program uint32, location int32, v0 float32, v1 float32) { - C.glowProgramUniform2f(gpProgramUniform2f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1)) -} -func ProgramUniform2fEXT(program uint32, location int32, v0 float32, v1 float32) { - C.glowProgramUniform2fEXT(gpProgramUniform2fEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform2fv(program uint32, location int32, count int32, value *float32) { - C.glowProgramUniform2fv(gpProgramUniform2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniform2fvEXT(program uint32, location int32, count int32, value *float32) { - C.glowProgramUniform2fvEXT(gpProgramUniform2fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform2i(program uint32, location int32, v0 int32, v1 int32) { - C.glowProgramUniform2i(gpProgramUniform2i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1)) -} -func ProgramUniform2i64NV(program uint32, location int32, x int64, y int64) { - C.glowProgramUniform2i64NV(gpProgramUniform2i64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLint64EXT)(x), (C.GLint64EXT)(y)) -} -func ProgramUniform2i64vNV(program uint32, location int32, count int32, value *int64) { - C.glowProgramUniform2i64vNV(gpProgramUniform2i64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint64EXT)(unsafe.Pointer(value))) -} -func ProgramUniform2iEXT(program uint32, location int32, v0 int32, v1 int32) { - C.glowProgramUniform2iEXT(gpProgramUniform2iEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform2iv(program uint32, location int32, count int32, value *int32) { - C.glowProgramUniform2iv(gpProgramUniform2iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func ProgramUniform2ivEXT(program uint32, location int32, count int32, value *int32) { - C.glowProgramUniform2ivEXT(gpProgramUniform2ivEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform2ui(program uint32, location int32, v0 uint32, v1 uint32) { - C.glowProgramUniform2ui(gpProgramUniform2ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1)) -} -func ProgramUniform2ui64NV(program uint32, location int32, x uint64, y uint64) { - C.glowProgramUniform2ui64NV(gpProgramUniform2ui64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y)) -} -func ProgramUniform2ui64vNV(program uint32, location int32, count int32, value *uint64) { - C.glowProgramUniform2ui64vNV(gpProgramUniform2ui64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func ProgramUniform2uiEXT(program uint32, location int32, v0 uint32, v1 uint32) { - C.glowProgramUniform2uiEXT(gpProgramUniform2uiEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform2uiv(program uint32, location int32, count int32, value *uint32) { - C.glowProgramUniform2uiv(gpProgramUniform2uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func ProgramUniform2uivEXT(program uint32, location int32, count int32, value *uint32) { - C.glowProgramUniform2uivEXT(gpProgramUniform2uivEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func ProgramUniform3d(program uint32, location int32, v0 float64, v1 float64, v2 float64) { - C.glowProgramUniform3d(gpProgramUniform3d, (C.GLuint)(program), (C.GLint)(location), (C.GLdouble)(v0), (C.GLdouble)(v1), (C.GLdouble)(v2)) -} -func ProgramUniform3dEXT(program uint32, location int32, x float64, y float64, z float64) { - C.glowProgramUniform3dEXT(gpProgramUniform3dEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func ProgramUniform3dv(program uint32, location int32, count int32, value *float64) { - C.glowProgramUniform3dv(gpProgramUniform3dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniform3dvEXT(program uint32, location int32, count int32, value *float64) { - C.glowProgramUniform3dvEXT(gpProgramUniform3dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform3f(program uint32, location int32, v0 float32, v1 float32, v2 float32) { - C.glowProgramUniform3f(gpProgramUniform3f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2)) -} -func ProgramUniform3fEXT(program uint32, location int32, v0 float32, v1 float32, v2 float32) { - C.glowProgramUniform3fEXT(gpProgramUniform3fEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform3fv(program uint32, location int32, count int32, value *float32) { - C.glowProgramUniform3fv(gpProgramUniform3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniform3fvEXT(program uint32, location int32, count int32, value *float32) { - C.glowProgramUniform3fvEXT(gpProgramUniform3fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform3i(program uint32, location int32, v0 int32, v1 int32, v2 int32) { - C.glowProgramUniform3i(gpProgramUniform3i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2)) -} -func ProgramUniform3i64NV(program uint32, location int32, x int64, y int64, z int64) { - C.glowProgramUniform3i64NV(gpProgramUniform3i64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLint64EXT)(x), (C.GLint64EXT)(y), (C.GLint64EXT)(z)) -} -func ProgramUniform3i64vNV(program uint32, location int32, count int32, value *int64) { - C.glowProgramUniform3i64vNV(gpProgramUniform3i64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint64EXT)(unsafe.Pointer(value))) -} -func ProgramUniform3iEXT(program uint32, location int32, v0 int32, v1 int32, v2 int32) { - C.glowProgramUniform3iEXT(gpProgramUniform3iEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform3iv(program uint32, location int32, count int32, value *int32) { - C.glowProgramUniform3iv(gpProgramUniform3iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func ProgramUniform3ivEXT(program uint32, location int32, count int32, value *int32) { - C.glowProgramUniform3ivEXT(gpProgramUniform3ivEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform3ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32) { - C.glowProgramUniform3ui(gpProgramUniform3ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2)) -} -func ProgramUniform3ui64NV(program uint32, location int32, x uint64, y uint64, z uint64) { - C.glowProgramUniform3ui64NV(gpProgramUniform3ui64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y), (C.GLuint64EXT)(z)) -} -func ProgramUniform3ui64vNV(program uint32, location int32, count int32, value *uint64) { - C.glowProgramUniform3ui64vNV(gpProgramUniform3ui64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func ProgramUniform3uiEXT(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32) { - C.glowProgramUniform3uiEXT(gpProgramUniform3uiEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform3uiv(program uint32, location int32, count int32, value *uint32) { - C.glowProgramUniform3uiv(gpProgramUniform3uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func ProgramUniform3uivEXT(program uint32, location int32, count int32, value *uint32) { - C.glowProgramUniform3uivEXT(gpProgramUniform3uivEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func ProgramUniform4d(program uint32, location int32, v0 float64, v1 float64, v2 float64, v3 float64) { - C.glowProgramUniform4d(gpProgramUniform4d, (C.GLuint)(program), (C.GLint)(location), (C.GLdouble)(v0), (C.GLdouble)(v1), (C.GLdouble)(v2), (C.GLdouble)(v3)) -} -func ProgramUniform4dEXT(program uint32, location int32, x float64, y float64, z float64, w float64) { - C.glowProgramUniform4dEXT(gpProgramUniform4dEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func ProgramUniform4dv(program uint32, location int32, count int32, value *float64) { - C.glowProgramUniform4dv(gpProgramUniform4dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniform4dvEXT(program uint32, location int32, count int32, value *float64) { - C.glowProgramUniform4dvEXT(gpProgramUniform4dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform4f(program uint32, location int32, v0 float32, v1 float32, v2 float32, v3 float32) { - C.glowProgramUniform4f(gpProgramUniform4f, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLfloat)(v3)) -} -func ProgramUniform4fEXT(program uint32, location int32, v0 float32, v1 float32, v2 float32, v3 float32) { - C.glowProgramUniform4fEXT(gpProgramUniform4fEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLfloat)(v3)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform4fv(program uint32, location int32, count int32, value *float32) { - C.glowProgramUniform4fv(gpProgramUniform4fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniform4fvEXT(program uint32, location int32, count int32, value *float32) { - C.glowProgramUniform4fvEXT(gpProgramUniform4fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform4i(program uint32, location int32, v0 int32, v1 int32, v2 int32, v3 int32) { - C.glowProgramUniform4i(gpProgramUniform4i, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2), (C.GLint)(v3)) -} -func ProgramUniform4i64NV(program uint32, location int32, x int64, y int64, z int64, w int64) { - C.glowProgramUniform4i64NV(gpProgramUniform4i64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLint64EXT)(x), (C.GLint64EXT)(y), (C.GLint64EXT)(z), (C.GLint64EXT)(w)) -} -func ProgramUniform4i64vNV(program uint32, location int32, count int32, value *int64) { - C.glowProgramUniform4i64vNV(gpProgramUniform4i64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint64EXT)(unsafe.Pointer(value))) -} -func ProgramUniform4iEXT(program uint32, location int32, v0 int32, v1 int32, v2 int32, v3 int32) { - C.glowProgramUniform4iEXT(gpProgramUniform4iEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2), (C.GLint)(v3)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform4iv(program uint32, location int32, count int32, value *int32) { - C.glowProgramUniform4iv(gpProgramUniform4iv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func ProgramUniform4ivEXT(program uint32, location int32, count int32, value *int32) { - C.glowProgramUniform4ivEXT(gpProgramUniform4ivEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform4ui(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) { - C.glowProgramUniform4ui(gpProgramUniform4ui, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3)) -} -func ProgramUniform4ui64NV(program uint32, location int32, x uint64, y uint64, z uint64, w uint64) { - C.glowProgramUniform4ui64NV(gpProgramUniform4ui64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y), (C.GLuint64EXT)(z), (C.GLuint64EXT)(w)) -} -func ProgramUniform4ui64vNV(program uint32, location int32, count int32, value *uint64) { - C.glowProgramUniform4ui64vNV(gpProgramUniform4ui64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func ProgramUniform4uiEXT(program uint32, location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) { - C.glowProgramUniform4uiEXT(gpProgramUniform4uiEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3)) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniform4uiv(program uint32, location int32, count int32, value *uint32) { - C.glowProgramUniform4uiv(gpProgramUniform4uiv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func ProgramUniform4uivEXT(program uint32, location int32, count int32, value *uint32) { - C.glowProgramUniform4uivEXT(gpProgramUniform4uivEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func ProgramUniformHandleui64ARB(program uint32, location int32, value uint64) { - C.glowProgramUniformHandleui64ARB(gpProgramUniformHandleui64ARB, (C.GLuint)(program), (C.GLint)(location), (C.GLuint64)(value)) -} -func ProgramUniformHandleui64NV(program uint32, location int32, value uint64) { - C.glowProgramUniformHandleui64NV(gpProgramUniformHandleui64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLuint64)(value)) -} -func ProgramUniformHandleui64vARB(program uint32, location int32, count int32, values *uint64) { - C.glowProgramUniformHandleui64vARB(gpProgramUniformHandleui64vARB, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64)(unsafe.Pointer(values))) -} -func ProgramUniformHandleui64vNV(program uint32, location int32, count int32, values *uint64) { - C.glowProgramUniformHandleui64vNV(gpProgramUniformHandleui64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64)(unsafe.Pointer(values))) -} -func ProgramUniformMatrix2dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix2dv(gpProgramUniformMatrix2dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix2dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix2dvEXT(gpProgramUniformMatrix2dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix2fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix2fv(gpProgramUniformMatrix2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix2fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix2fvEXT(gpProgramUniformMatrix2fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix2x3dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix2x3dv(gpProgramUniformMatrix2x3dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix2x3dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix2x3dvEXT(gpProgramUniformMatrix2x3dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix2x3fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix2x3fv(gpProgramUniformMatrix2x3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix2x3fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix2x3fvEXT(gpProgramUniformMatrix2x3fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix2x4dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix2x4dv(gpProgramUniformMatrix2x4dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix2x4dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix2x4dvEXT(gpProgramUniformMatrix2x4dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix2x4fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix2x4fv(gpProgramUniformMatrix2x4fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix2x4fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix2x4fvEXT(gpProgramUniformMatrix2x4fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix3dv(gpProgramUniformMatrix3dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix3dvEXT(gpProgramUniformMatrix3dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix3fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix3fv(gpProgramUniformMatrix3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix3fvEXT(gpProgramUniformMatrix3fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3x2dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix3x2dv(gpProgramUniformMatrix3x2dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3x2dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix3x2dvEXT(gpProgramUniformMatrix3x2dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix3x2fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix3x2fv(gpProgramUniformMatrix3x2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3x2fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix3x2fvEXT(gpProgramUniformMatrix3x2fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3x4dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix3x4dv(gpProgramUniformMatrix3x4dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3x4dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix3x4dvEXT(gpProgramUniformMatrix3x4dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix3x4fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix3x4fv(gpProgramUniformMatrix3x4fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix3x4fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix3x4fvEXT(gpProgramUniformMatrix3x4fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix4dv(gpProgramUniformMatrix4dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix4dvEXT(gpProgramUniformMatrix4dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix4fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix4fv(gpProgramUniformMatrix4fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix4fvEXT(gpProgramUniformMatrix4fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4x2dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix4x2dv(gpProgramUniformMatrix4x2dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4x2dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix4x2dvEXT(gpProgramUniformMatrix4x2dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix4x2fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix4x2fv(gpProgramUniformMatrix4x2fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4x2fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix4x2fvEXT(gpProgramUniformMatrix4x2fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4x3dv(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix4x3dv(gpProgramUniformMatrix4x3dv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4x3dvEXT(program uint32, location int32, count int32, transpose bool, value *float64) { - C.glowProgramUniformMatrix4x3dvEXT(gpProgramUniformMatrix4x3dvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for a specified program object -func ProgramUniformMatrix4x3fv(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix4x3fv(gpProgramUniformMatrix4x3fv, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformMatrix4x3fvEXT(program uint32, location int32, count int32, transpose bool, value *float32) { - C.glowProgramUniformMatrix4x3fvEXT(gpProgramUniformMatrix4x3fvEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func ProgramUniformui64NV(program uint32, location int32, value uint64) { - C.glowProgramUniformui64NV(gpProgramUniformui64NV, (C.GLuint)(program), (C.GLint)(location), (C.GLuint64EXT)(value)) -} -func ProgramUniformui64vNV(program uint32, location int32, count int32, value *uint64) { - C.glowProgramUniformui64vNV(gpProgramUniformui64vNV, (C.GLuint)(program), (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func ProgramVertexLimitNV(target uint32, limit int32) { - C.glowProgramVertexLimitNV(gpProgramVertexLimitNV, (C.GLenum)(target), (C.GLint)(limit)) -} - -// specifiy the vertex to be used as the source of data for flat shaded varyings -func ProvokingVertex(mode uint32) { - C.glowProvokingVertex(gpProvokingVertex, (C.GLenum)(mode)) -} -func ProvokingVertexEXT(mode uint32) { - C.glowProvokingVertexEXT(gpProvokingVertexEXT, (C.GLenum)(mode)) -} - -// push and pop the server attribute stack -func PushAttrib(mask uint32) { - C.glowPushAttrib(gpPushAttrib, (C.GLbitfield)(mask)) -} - -// push and pop the client attribute stack -func PushClientAttrib(mask uint32) { - C.glowPushClientAttrib(gpPushClientAttrib, (C.GLbitfield)(mask)) -} -func PushClientAttribDefaultEXT(mask uint32) { - C.glowPushClientAttribDefaultEXT(gpPushClientAttribDefaultEXT, (C.GLbitfield)(mask)) -} - -// push a named debug group into the command stream -func PushDebugGroup(source uint32, id uint32, length int32, message *uint8) { - C.glowPushDebugGroup(gpPushDebugGroup, (C.GLenum)(source), (C.GLuint)(id), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(message))) -} -func PushDebugGroupKHR(source uint32, id uint32, length int32, message *uint8) { - C.glowPushDebugGroupKHR(gpPushDebugGroupKHR, (C.GLenum)(source), (C.GLuint)(id), (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(message))) -} -func PushGroupMarkerEXT(length int32, marker *uint8) { - C.glowPushGroupMarkerEXT(gpPushGroupMarkerEXT, (C.GLsizei)(length), (*C.GLchar)(unsafe.Pointer(marker))) -} - -// push and pop the current matrix stack -func PushMatrix() { - C.glowPushMatrix(gpPushMatrix) -} - -// push and pop the name stack -func PushName(name uint32) { - C.glowPushName(gpPushName, (C.GLuint)(name)) -} - -// record the GL time into a query object after all previous commands have reached the GL server but have not yet necessarily executed. -func QueryCounter(id uint32, target uint32) { - C.glowQueryCounter(gpQueryCounter, (C.GLuint)(id), (C.GLenum)(target)) -} -func QueryMatrixxOES(mantissa *int32, exponent *int32) uint32 { - ret := C.glowQueryMatrixxOES(gpQueryMatrixxOES, (*C.GLfixed)(unsafe.Pointer(mantissa)), (*C.GLint)(unsafe.Pointer(exponent))) - return (uint32)(ret) -} -func QueryObjectParameteruiAMD(target uint32, id uint32, pname uint32, param uint32) { - C.glowQueryObjectParameteruiAMD(gpQueryObjectParameteruiAMD, (C.GLenum)(target), (C.GLuint)(id), (C.GLenum)(pname), (C.GLuint)(param)) -} -func RasterPos2d(x float64, y float64) { - C.glowRasterPos2d(gpRasterPos2d, (C.GLdouble)(x), (C.GLdouble)(y)) -} -func RasterPos2dv(v *float64) { - C.glowRasterPos2dv(gpRasterPos2dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func RasterPos2f(x float32, y float32) { - C.glowRasterPos2f(gpRasterPos2f, (C.GLfloat)(x), (C.GLfloat)(y)) -} -func RasterPos2fv(v *float32) { - C.glowRasterPos2fv(gpRasterPos2fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func RasterPos2i(x int32, y int32) { - C.glowRasterPos2i(gpRasterPos2i, (C.GLint)(x), (C.GLint)(y)) -} -func RasterPos2iv(v *int32) { - C.glowRasterPos2iv(gpRasterPos2iv, (*C.GLint)(unsafe.Pointer(v))) -} -func RasterPos2s(x int16, y int16) { - C.glowRasterPos2s(gpRasterPos2s, (C.GLshort)(x), (C.GLshort)(y)) -} -func RasterPos2sv(v *int16) { - C.glowRasterPos2sv(gpRasterPos2sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func RasterPos2xOES(x int32, y int32) { - C.glowRasterPos2xOES(gpRasterPos2xOES, (C.GLfixed)(x), (C.GLfixed)(y)) -} -func RasterPos2xvOES(coords *int32) { - C.glowRasterPos2xvOES(gpRasterPos2xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func RasterPos3d(x float64, y float64, z float64) { - C.glowRasterPos3d(gpRasterPos3d, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func RasterPos3dv(v *float64) { - C.glowRasterPos3dv(gpRasterPos3dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func RasterPos3f(x float32, y float32, z float32) { - C.glowRasterPos3f(gpRasterPos3f, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func RasterPos3fv(v *float32) { - C.glowRasterPos3fv(gpRasterPos3fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func RasterPos3i(x int32, y int32, z int32) { - C.glowRasterPos3i(gpRasterPos3i, (C.GLint)(x), (C.GLint)(y), (C.GLint)(z)) -} -func RasterPos3iv(v *int32) { - C.glowRasterPos3iv(gpRasterPos3iv, (*C.GLint)(unsafe.Pointer(v))) -} -func RasterPos3s(x int16, y int16, z int16) { - C.glowRasterPos3s(gpRasterPos3s, (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func RasterPos3sv(v *int16) { - C.glowRasterPos3sv(gpRasterPos3sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func RasterPos3xOES(x int32, y int32, z int32) { - C.glowRasterPos3xOES(gpRasterPos3xOES, (C.GLfixed)(x), (C.GLfixed)(y), (C.GLfixed)(z)) -} -func RasterPos3xvOES(coords *int32) { - C.glowRasterPos3xvOES(gpRasterPos3xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func RasterPos4d(x float64, y float64, z float64, w float64) { - C.glowRasterPos4d(gpRasterPos4d, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func RasterPos4dv(v *float64) { - C.glowRasterPos4dv(gpRasterPos4dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func RasterPos4f(x float32, y float32, z float32, w float32) { - C.glowRasterPos4f(gpRasterPos4f, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func RasterPos4fv(v *float32) { - C.glowRasterPos4fv(gpRasterPos4fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func RasterPos4i(x int32, y int32, z int32, w int32) { - C.glowRasterPos4i(gpRasterPos4i, (C.GLint)(x), (C.GLint)(y), (C.GLint)(z), (C.GLint)(w)) -} -func RasterPos4iv(v *int32) { - C.glowRasterPos4iv(gpRasterPos4iv, (*C.GLint)(unsafe.Pointer(v))) -} -func RasterPos4s(x int16, y int16, z int16, w int16) { - C.glowRasterPos4s(gpRasterPos4s, (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z), (C.GLshort)(w)) -} -func RasterPos4sv(v *int16) { - C.glowRasterPos4sv(gpRasterPos4sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func RasterPos4xOES(x int32, y int32, z int32, w int32) { - C.glowRasterPos4xOES(gpRasterPos4xOES, (C.GLfixed)(x), (C.GLfixed)(y), (C.GLfixed)(z), (C.GLfixed)(w)) -} -func RasterPos4xvOES(coords *int32) { - C.glowRasterPos4xvOES(gpRasterPos4xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} - -// select a color buffer source for pixels -func ReadBuffer(src uint32) { - C.glowReadBuffer(gpReadBuffer, (C.GLenum)(src)) -} -func ReadInstrumentsSGIX(marker int32) { - C.glowReadInstrumentsSGIX(gpReadInstrumentsSGIX, (C.GLint)(marker)) -} - -// read a block of pixels from the frame buffer -func ReadPixels(x int32, y int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowReadPixels(gpReadPixels, (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// read a block of pixels from the frame buffer -func ReadnPixels(x int32, y int32, width int32, height int32, format uint32, xtype uint32, bufSize int32, data unsafe.Pointer) { - C.glowReadnPixels(gpReadnPixels, (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), data) -} -func ReadnPixelsARB(x int32, y int32, width int32, height int32, format uint32, xtype uint32, bufSize int32, data unsafe.Pointer) { - C.glowReadnPixelsARB(gpReadnPixelsARB, (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), data) -} -func ReadnPixelsKHR(x int32, y int32, width int32, height int32, format uint32, xtype uint32, bufSize int32, data unsafe.Pointer) { - C.glowReadnPixelsKHR(gpReadnPixelsKHR, (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), data) -} -func Rectd(x1 float64, y1 float64, x2 float64, y2 float64) { - C.glowRectd(gpRectd, (C.GLdouble)(x1), (C.GLdouble)(y1), (C.GLdouble)(x2), (C.GLdouble)(y2)) -} -func Rectdv(v1 *float64, v2 *float64) { - C.glowRectdv(gpRectdv, (*C.GLdouble)(unsafe.Pointer(v1)), (*C.GLdouble)(unsafe.Pointer(v2))) -} -func Rectf(x1 float32, y1 float32, x2 float32, y2 float32) { - C.glowRectf(gpRectf, (C.GLfloat)(x1), (C.GLfloat)(y1), (C.GLfloat)(x2), (C.GLfloat)(y2)) -} -func Rectfv(v1 *float32, v2 *float32) { - C.glowRectfv(gpRectfv, (*C.GLfloat)(unsafe.Pointer(v1)), (*C.GLfloat)(unsafe.Pointer(v2))) -} -func Recti(x1 int32, y1 int32, x2 int32, y2 int32) { - C.glowRecti(gpRecti, (C.GLint)(x1), (C.GLint)(y1), (C.GLint)(x2), (C.GLint)(y2)) -} -func Rectiv(v1 *int32, v2 *int32) { - C.glowRectiv(gpRectiv, (*C.GLint)(unsafe.Pointer(v1)), (*C.GLint)(unsafe.Pointer(v2))) -} -func Rects(x1 int16, y1 int16, x2 int16, y2 int16) { - C.glowRects(gpRects, (C.GLshort)(x1), (C.GLshort)(y1), (C.GLshort)(x2), (C.GLshort)(y2)) -} -func Rectsv(v1 *int16, v2 *int16) { - C.glowRectsv(gpRectsv, (*C.GLshort)(unsafe.Pointer(v1)), (*C.GLshort)(unsafe.Pointer(v2))) -} -func RectxOES(x1 int32, y1 int32, x2 int32, y2 int32) { - C.glowRectxOES(gpRectxOES, (C.GLfixed)(x1), (C.GLfixed)(y1), (C.GLfixed)(x2), (C.GLfixed)(y2)) -} -func RectxvOES(v1 *int32, v2 *int32) { - C.glowRectxvOES(gpRectxvOES, (*C.GLfixed)(unsafe.Pointer(v1)), (*C.GLfixed)(unsafe.Pointer(v2))) -} -func ReferencePlaneSGIX(equation *float64) { - C.glowReferencePlaneSGIX(gpReferencePlaneSGIX, (*C.GLdouble)(unsafe.Pointer(equation))) -} - -// release resources consumed by the implementation's shader compiler -func ReleaseShaderCompiler() { - C.glowReleaseShaderCompiler(gpReleaseShaderCompiler) -} - -// set rasterization mode -func RenderMode(mode uint32) int32 { - ret := C.glowRenderMode(gpRenderMode, (C.GLenum)(mode)) - return (int32)(ret) -} - -// establish data storage, format and dimensions of a renderbuffer object's image -func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32) { - C.glowRenderbufferStorage(gpRenderbufferStorage, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func RenderbufferStorageEXT(target uint32, internalformat uint32, width int32, height int32) { - C.glowRenderbufferStorageEXT(gpRenderbufferStorageEXT, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// establish data storage, format, dimensions and sample count of a renderbuffer object's image -func RenderbufferStorageMultisample(target uint32, samples int32, internalformat uint32, width int32, height int32) { - C.glowRenderbufferStorageMultisample(gpRenderbufferStorageMultisample, (C.GLenum)(target), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func RenderbufferStorageMultisampleCoverageNV(target uint32, coverageSamples int32, colorSamples int32, internalformat uint32, width int32, height int32) { - C.glowRenderbufferStorageMultisampleCoverageNV(gpRenderbufferStorageMultisampleCoverageNV, (C.GLenum)(target), (C.GLsizei)(coverageSamples), (C.GLsizei)(colorSamples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func RenderbufferStorageMultisampleEXT(target uint32, samples int32, internalformat uint32, width int32, height int32) { - C.glowRenderbufferStorageMultisampleEXT(gpRenderbufferStorageMultisampleEXT, (C.GLenum)(target), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func ReplacementCodePointerSUN(xtype uint32, stride int32, pointer *unsafe.Pointer) { - C.glowReplacementCodePointerSUN(gpReplacementCodePointerSUN, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func ReplacementCodeubSUN(code uint8) { - C.glowReplacementCodeubSUN(gpReplacementCodeubSUN, (C.GLubyte)(code)) -} -func ReplacementCodeubvSUN(code *uint8) { - C.glowReplacementCodeubvSUN(gpReplacementCodeubvSUN, (*C.GLubyte)(unsafe.Pointer(code))) -} -func ReplacementCodeuiColor3fVertex3fSUN(rc uint32, r float32, g float32, b float32, x float32, y float32, z float32) { - C.glowReplacementCodeuiColor3fVertex3fSUN(gpReplacementCodeuiColor3fVertex3fSUN, (C.GLuint)(rc), (C.GLfloat)(r), (C.GLfloat)(g), (C.GLfloat)(b), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ReplacementCodeuiColor3fVertex3fvSUN(rc *uint32, c *float32, v *float32) { - C.glowReplacementCodeuiColor3fVertex3fvSUN(gpReplacementCodeuiColor3fVertex3fvSUN, (*C.GLuint)(unsafe.Pointer(rc)), (*C.GLfloat)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ReplacementCodeuiColor4fNormal3fVertex3fSUN(rc uint32, r float32, g float32, b float32, a float32, nx float32, ny float32, nz float32, x float32, y float32, z float32) { - C.glowReplacementCodeuiColor4fNormal3fVertex3fSUN(gpReplacementCodeuiColor4fNormal3fVertex3fSUN, (C.GLuint)(rc), (C.GLfloat)(r), (C.GLfloat)(g), (C.GLfloat)(b), (C.GLfloat)(a), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ReplacementCodeuiColor4fNormal3fVertex3fvSUN(rc *uint32, c *float32, n *float32, v *float32) { - C.glowReplacementCodeuiColor4fNormal3fVertex3fvSUN(gpReplacementCodeuiColor4fNormal3fVertex3fvSUN, (*C.GLuint)(unsafe.Pointer(rc)), (*C.GLfloat)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ReplacementCodeuiColor4ubVertex3fSUN(rc uint32, r uint8, g uint8, b uint8, a uint8, x float32, y float32, z float32) { - C.glowReplacementCodeuiColor4ubVertex3fSUN(gpReplacementCodeuiColor4ubVertex3fSUN, (C.GLuint)(rc), (C.GLubyte)(r), (C.GLubyte)(g), (C.GLubyte)(b), (C.GLubyte)(a), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ReplacementCodeuiColor4ubVertex3fvSUN(rc *uint32, c *uint8, v *float32) { - C.glowReplacementCodeuiColor4ubVertex3fvSUN(gpReplacementCodeuiColor4ubVertex3fvSUN, (*C.GLuint)(unsafe.Pointer(rc)), (*C.GLubyte)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ReplacementCodeuiNormal3fVertex3fSUN(rc uint32, nx float32, ny float32, nz float32, x float32, y float32, z float32) { - C.glowReplacementCodeuiNormal3fVertex3fSUN(gpReplacementCodeuiNormal3fVertex3fSUN, (C.GLuint)(rc), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ReplacementCodeuiNormal3fVertex3fvSUN(rc *uint32, n *float32, v *float32) { - C.glowReplacementCodeuiNormal3fVertex3fvSUN(gpReplacementCodeuiNormal3fVertex3fvSUN, (*C.GLuint)(unsafe.Pointer(rc)), (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ReplacementCodeuiSUN(code uint32) { - C.glowReplacementCodeuiSUN(gpReplacementCodeuiSUN, (C.GLuint)(code)) -} -func ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(rc uint32, s float32, t float32, r float32, g float32, b float32, a float32, nx float32, ny float32, nz float32, x float32, y float32, z float32) { - C.glowReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(gpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN, (C.GLuint)(rc), (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r), (C.GLfloat)(g), (C.GLfloat)(b), (C.GLfloat)(a), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(rc *uint32, tc *float32, c *float32, n *float32, v *float32) { - C.glowReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(gpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN, (*C.GLuint)(unsafe.Pointer(rc)), (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(rc uint32, s float32, t float32, nx float32, ny float32, nz float32, x float32, y float32, z float32) { - C.glowReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(gpReplacementCodeuiTexCoord2fNormal3fVertex3fSUN, (C.GLuint)(rc), (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(rc *uint32, tc *float32, n *float32, v *float32) { - C.glowReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(gpReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN, (*C.GLuint)(unsafe.Pointer(rc)), (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ReplacementCodeuiTexCoord2fVertex3fSUN(rc uint32, s float32, t float32, x float32, y float32, z float32) { - C.glowReplacementCodeuiTexCoord2fVertex3fSUN(gpReplacementCodeuiTexCoord2fVertex3fSUN, (C.GLuint)(rc), (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ReplacementCodeuiTexCoord2fVertex3fvSUN(rc *uint32, tc *float32, v *float32) { - C.glowReplacementCodeuiTexCoord2fVertex3fvSUN(gpReplacementCodeuiTexCoord2fVertex3fvSUN, (*C.GLuint)(unsafe.Pointer(rc)), (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ReplacementCodeuiVertex3fSUN(rc uint32, x float32, y float32, z float32) { - C.glowReplacementCodeuiVertex3fSUN(gpReplacementCodeuiVertex3fSUN, (C.GLuint)(rc), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ReplacementCodeuiVertex3fvSUN(rc *uint32, v *float32) { - C.glowReplacementCodeuiVertex3fvSUN(gpReplacementCodeuiVertex3fvSUN, (*C.GLuint)(unsafe.Pointer(rc)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ReplacementCodeuivSUN(code *uint32) { - C.glowReplacementCodeuivSUN(gpReplacementCodeuivSUN, (*C.GLuint)(unsafe.Pointer(code))) -} -func ReplacementCodeusSUN(code uint16) { - C.glowReplacementCodeusSUN(gpReplacementCodeusSUN, (C.GLushort)(code)) -} -func ReplacementCodeusvSUN(code *uint16) { - C.glowReplacementCodeusvSUN(gpReplacementCodeusvSUN, (*C.GLushort)(unsafe.Pointer(code))) -} -func RequestResidentProgramsNV(n int32, programs *uint32) { - C.glowRequestResidentProgramsNV(gpRequestResidentProgramsNV, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(programs))) -} -func ResetHistogramEXT(target uint32) { - C.glowResetHistogramEXT(gpResetHistogramEXT, (C.GLenum)(target)) -} -func ResetMinmaxEXT(target uint32) { - C.glowResetMinmaxEXT(gpResetMinmaxEXT, (C.GLenum)(target)) -} -func ResizeBuffersMESA() { - C.glowResizeBuffersMESA(gpResizeBuffersMESA) -} - -// resume transform feedback operations -func ResumeTransformFeedback() { - C.glowResumeTransformFeedback(gpResumeTransformFeedback) -} -func ResumeTransformFeedbackNV() { - C.glowResumeTransformFeedbackNV(gpResumeTransformFeedbackNV) -} -func Rotated(angle float64, x float64, y float64, z float64) { - C.glowRotated(gpRotated, (C.GLdouble)(angle), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func Rotatef(angle float32, x float32, y float32, z float32) { - C.glowRotatef(gpRotatef, (C.GLfloat)(angle), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func RotatexOES(angle int32, x int32, y int32, z int32) { - C.glowRotatexOES(gpRotatexOES, (C.GLfixed)(angle), (C.GLfixed)(x), (C.GLfixed)(y), (C.GLfixed)(z)) -} - -// specify multisample coverage parameters -func SampleCoverage(value float32, invert bool) { - C.glowSampleCoverage(gpSampleCoverage, (C.GLfloat)(value), (C.GLboolean)(boolToInt(invert))) -} -func SampleCoverageARB(value float32, invert bool) { - C.glowSampleCoverageARB(gpSampleCoverageARB, (C.GLfloat)(value), (C.GLboolean)(boolToInt(invert))) -} -func SampleCoverageOES(value int32, invert bool) { - C.glowSampleCoverageOES(gpSampleCoverageOES, (C.GLfixed)(value), (C.GLboolean)(boolToInt(invert))) -} -func SampleCoveragexOES(value int32, invert bool) { - C.glowSampleCoveragexOES(gpSampleCoveragexOES, (C.GLclampx)(value), (C.GLboolean)(boolToInt(invert))) -} -func SampleMapATI(dst uint32, interp uint32, swizzle uint32) { - C.glowSampleMapATI(gpSampleMapATI, (C.GLuint)(dst), (C.GLuint)(interp), (C.GLenum)(swizzle)) -} -func SampleMaskEXT(value float32, invert bool) { - C.glowSampleMaskEXT(gpSampleMaskEXT, (C.GLclampf)(value), (C.GLboolean)(boolToInt(invert))) -} -func SampleMaskIndexedNV(index uint32, mask uint32) { - C.glowSampleMaskIndexedNV(gpSampleMaskIndexedNV, (C.GLuint)(index), (C.GLbitfield)(mask)) -} -func SampleMaskSGIS(value float32, invert bool) { - C.glowSampleMaskSGIS(gpSampleMaskSGIS, (C.GLclampf)(value), (C.GLboolean)(boolToInt(invert))) -} - -// set the value of a sub-word of the sample mask -func SampleMaski(maskNumber uint32, mask uint32) { - C.glowSampleMaski(gpSampleMaski, (C.GLuint)(maskNumber), (C.GLbitfield)(mask)) -} -func SamplePatternEXT(pattern uint32) { - C.glowSamplePatternEXT(gpSamplePatternEXT, (C.GLenum)(pattern)) -} -func SamplePatternSGIS(pattern uint32) { - C.glowSamplePatternSGIS(gpSamplePatternSGIS, (C.GLenum)(pattern)) -} -func SamplerParameterIiv(sampler uint32, pname uint32, param *int32) { - C.glowSamplerParameterIiv(gpSamplerParameterIiv, (C.GLuint)(sampler), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func SamplerParameterIuiv(sampler uint32, pname uint32, param *uint32) { - C.glowSamplerParameterIuiv(gpSamplerParameterIuiv, (C.GLuint)(sampler), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(param))) -} -func SamplerParameterf(sampler uint32, pname uint32, param float32) { - C.glowSamplerParameterf(gpSamplerParameterf, (C.GLuint)(sampler), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func SamplerParameterfv(sampler uint32, pname uint32, param *float32) { - C.glowSamplerParameterfv(gpSamplerParameterfv, (C.GLuint)(sampler), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(param))) -} -func SamplerParameteri(sampler uint32, pname uint32, param int32) { - C.glowSamplerParameteri(gpSamplerParameteri, (C.GLuint)(sampler), (C.GLenum)(pname), (C.GLint)(param)) -} -func SamplerParameteriv(sampler uint32, pname uint32, param *int32) { - C.glowSamplerParameteriv(gpSamplerParameteriv, (C.GLuint)(sampler), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func Scaled(x float64, y float64, z float64) { - C.glowScaled(gpScaled, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func Scalef(x float32, y float32, z float32) { - C.glowScalef(gpScalef, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func ScalexOES(x int32, y int32, z int32) { - C.glowScalexOES(gpScalexOES, (C.GLfixed)(x), (C.GLfixed)(y), (C.GLfixed)(z)) -} - -// define the scissor box -func Scissor(x int32, y int32, width int32, height int32) { - C.glowScissor(gpScissor, (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func ScissorArrayv(first uint32, count int32, v *int32) { - C.glowScissorArrayv(gpScissorArrayv, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(v))) -} - -// define the scissor box for a specific viewport -func ScissorIndexed(index uint32, left int32, bottom int32, width int32, height int32) { - C.glowScissorIndexed(gpScissorIndexed, (C.GLuint)(index), (C.GLint)(left), (C.GLint)(bottom), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func ScissorIndexedv(index uint32, v *int32) { - C.glowScissorIndexedv(gpScissorIndexedv, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func SecondaryColor3b(red int8, green int8, blue int8) { - C.glowSecondaryColor3b(gpSecondaryColor3b, (C.GLbyte)(red), (C.GLbyte)(green), (C.GLbyte)(blue)) -} -func SecondaryColor3bEXT(red int8, green int8, blue int8) { - C.glowSecondaryColor3bEXT(gpSecondaryColor3bEXT, (C.GLbyte)(red), (C.GLbyte)(green), (C.GLbyte)(blue)) -} -func SecondaryColor3bv(v *int8) { - C.glowSecondaryColor3bv(gpSecondaryColor3bv, (*C.GLbyte)(unsafe.Pointer(v))) -} -func SecondaryColor3bvEXT(v *int8) { - C.glowSecondaryColor3bvEXT(gpSecondaryColor3bvEXT, (*C.GLbyte)(unsafe.Pointer(v))) -} -func SecondaryColor3d(red float64, green float64, blue float64) { - C.glowSecondaryColor3d(gpSecondaryColor3d, (C.GLdouble)(red), (C.GLdouble)(green), (C.GLdouble)(blue)) -} -func SecondaryColor3dEXT(red float64, green float64, blue float64) { - C.glowSecondaryColor3dEXT(gpSecondaryColor3dEXT, (C.GLdouble)(red), (C.GLdouble)(green), (C.GLdouble)(blue)) -} -func SecondaryColor3dv(v *float64) { - C.glowSecondaryColor3dv(gpSecondaryColor3dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func SecondaryColor3dvEXT(v *float64) { - C.glowSecondaryColor3dvEXT(gpSecondaryColor3dvEXT, (*C.GLdouble)(unsafe.Pointer(v))) -} -func SecondaryColor3f(red float32, green float32, blue float32) { - C.glowSecondaryColor3f(gpSecondaryColor3f, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue)) -} -func SecondaryColor3fEXT(red float32, green float32, blue float32) { - C.glowSecondaryColor3fEXT(gpSecondaryColor3fEXT, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue)) -} -func SecondaryColor3fv(v *float32) { - C.glowSecondaryColor3fv(gpSecondaryColor3fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func SecondaryColor3fvEXT(v *float32) { - C.glowSecondaryColor3fvEXT(gpSecondaryColor3fvEXT, (*C.GLfloat)(unsafe.Pointer(v))) -} -func SecondaryColor3hNV(red uint16, green uint16, blue uint16) { - C.glowSecondaryColor3hNV(gpSecondaryColor3hNV, (C.GLhalfNV)(red), (C.GLhalfNV)(green), (C.GLhalfNV)(blue)) -} -func SecondaryColor3hvNV(v *uint16) { - C.glowSecondaryColor3hvNV(gpSecondaryColor3hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func SecondaryColor3i(red int32, green int32, blue int32) { - C.glowSecondaryColor3i(gpSecondaryColor3i, (C.GLint)(red), (C.GLint)(green), (C.GLint)(blue)) -} -func SecondaryColor3iEXT(red int32, green int32, blue int32) { - C.glowSecondaryColor3iEXT(gpSecondaryColor3iEXT, (C.GLint)(red), (C.GLint)(green), (C.GLint)(blue)) -} -func SecondaryColor3iv(v *int32) { - C.glowSecondaryColor3iv(gpSecondaryColor3iv, (*C.GLint)(unsafe.Pointer(v))) -} -func SecondaryColor3ivEXT(v *int32) { - C.glowSecondaryColor3ivEXT(gpSecondaryColor3ivEXT, (*C.GLint)(unsafe.Pointer(v))) -} -func SecondaryColor3s(red int16, green int16, blue int16) { - C.glowSecondaryColor3s(gpSecondaryColor3s, (C.GLshort)(red), (C.GLshort)(green), (C.GLshort)(blue)) -} -func SecondaryColor3sEXT(red int16, green int16, blue int16) { - C.glowSecondaryColor3sEXT(gpSecondaryColor3sEXT, (C.GLshort)(red), (C.GLshort)(green), (C.GLshort)(blue)) -} -func SecondaryColor3sv(v *int16) { - C.glowSecondaryColor3sv(gpSecondaryColor3sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func SecondaryColor3svEXT(v *int16) { - C.glowSecondaryColor3svEXT(gpSecondaryColor3svEXT, (*C.GLshort)(unsafe.Pointer(v))) -} -func SecondaryColor3ub(red uint8, green uint8, blue uint8) { - C.glowSecondaryColor3ub(gpSecondaryColor3ub, (C.GLubyte)(red), (C.GLubyte)(green), (C.GLubyte)(blue)) -} -func SecondaryColor3ubEXT(red uint8, green uint8, blue uint8) { - C.glowSecondaryColor3ubEXT(gpSecondaryColor3ubEXT, (C.GLubyte)(red), (C.GLubyte)(green), (C.GLubyte)(blue)) -} -func SecondaryColor3ubv(v *uint8) { - C.glowSecondaryColor3ubv(gpSecondaryColor3ubv, (*C.GLubyte)(unsafe.Pointer(v))) -} -func SecondaryColor3ubvEXT(v *uint8) { - C.glowSecondaryColor3ubvEXT(gpSecondaryColor3ubvEXT, (*C.GLubyte)(unsafe.Pointer(v))) -} -func SecondaryColor3ui(red uint32, green uint32, blue uint32) { - C.glowSecondaryColor3ui(gpSecondaryColor3ui, (C.GLuint)(red), (C.GLuint)(green), (C.GLuint)(blue)) -} -func SecondaryColor3uiEXT(red uint32, green uint32, blue uint32) { - C.glowSecondaryColor3uiEXT(gpSecondaryColor3uiEXT, (C.GLuint)(red), (C.GLuint)(green), (C.GLuint)(blue)) -} -func SecondaryColor3uiv(v *uint32) { - C.glowSecondaryColor3uiv(gpSecondaryColor3uiv, (*C.GLuint)(unsafe.Pointer(v))) -} -func SecondaryColor3uivEXT(v *uint32) { - C.glowSecondaryColor3uivEXT(gpSecondaryColor3uivEXT, (*C.GLuint)(unsafe.Pointer(v))) -} -func SecondaryColor3us(red uint16, green uint16, blue uint16) { - C.glowSecondaryColor3us(gpSecondaryColor3us, (C.GLushort)(red), (C.GLushort)(green), (C.GLushort)(blue)) -} -func SecondaryColor3usEXT(red uint16, green uint16, blue uint16) { - C.glowSecondaryColor3usEXT(gpSecondaryColor3usEXT, (C.GLushort)(red), (C.GLushort)(green), (C.GLushort)(blue)) -} -func SecondaryColor3usv(v *uint16) { - C.glowSecondaryColor3usv(gpSecondaryColor3usv, (*C.GLushort)(unsafe.Pointer(v))) -} -func SecondaryColor3usvEXT(v *uint16) { - C.glowSecondaryColor3usvEXT(gpSecondaryColor3usvEXT, (*C.GLushort)(unsafe.Pointer(v))) -} -func SecondaryColorFormatNV(size int32, xtype uint32, stride int32) { - C.glowSecondaryColorFormatNV(gpSecondaryColorFormatNV, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride)) -} - -// define an array of secondary colors -func SecondaryColorPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowSecondaryColorPointer(gpSecondaryColorPointer, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func SecondaryColorPointerEXT(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowSecondaryColorPointerEXT(gpSecondaryColorPointerEXT, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func SecondaryColorPointerListIBM(size int32, xtype uint32, stride int32, pointer *unsafe.Pointer, ptrstride int32) { - C.glowSecondaryColorPointerListIBM(gpSecondaryColorPointerListIBM, (C.GLint)(size), (C.GLenum)(xtype), (C.GLint)(stride), pointer, (C.GLint)(ptrstride)) -} - -// establish a buffer for selection mode values -func SelectBuffer(size int32, buffer *uint32) { - C.glowSelectBuffer(gpSelectBuffer, (C.GLsizei)(size), (*C.GLuint)(unsafe.Pointer(buffer))) -} -func SelectPerfMonitorCountersAMD(monitor uint32, enable bool, group uint32, numCounters int32, counterList *uint32) { - C.glowSelectPerfMonitorCountersAMD(gpSelectPerfMonitorCountersAMD, (C.GLuint)(monitor), (C.GLboolean)(boolToInt(enable)), (C.GLuint)(group), (C.GLint)(numCounters), (*C.GLuint)(unsafe.Pointer(counterList))) -} -func SeparableFilter2DEXT(target uint32, internalformat uint32, width int32, height int32, format uint32, xtype uint32, row unsafe.Pointer, column unsafe.Pointer) { - C.glowSeparableFilter2DEXT(gpSeparableFilter2DEXT, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), row, column) -} -func SetFenceAPPLE(fence uint32) { - C.glowSetFenceAPPLE(gpSetFenceAPPLE, (C.GLuint)(fence)) -} -func SetFenceNV(fence uint32, condition uint32) { - C.glowSetFenceNV(gpSetFenceNV, (C.GLuint)(fence), (C.GLenum)(condition)) -} -func SetFragmentShaderConstantATI(dst uint32, value *float32) { - C.glowSetFragmentShaderConstantATI(gpSetFragmentShaderConstantATI, (C.GLuint)(dst), (*C.GLfloat)(unsafe.Pointer(value))) -} -func SetInvariantEXT(id uint32, xtype uint32, addr unsafe.Pointer) { - C.glowSetInvariantEXT(gpSetInvariantEXT, (C.GLuint)(id), (C.GLenum)(xtype), addr) -} -func SetLocalConstantEXT(id uint32, xtype uint32, addr unsafe.Pointer) { - C.glowSetLocalConstantEXT(gpSetLocalConstantEXT, (C.GLuint)(id), (C.GLenum)(xtype), addr) -} -func SetMultisamplefvAMD(pname uint32, index uint32, val *float32) { - C.glowSetMultisamplefvAMD(gpSetMultisamplefvAMD, (C.GLenum)(pname), (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(val))) -} - -// select flat or smooth shading -func ShadeModel(mode uint32) { - C.glowShadeModel(gpShadeModel, (C.GLenum)(mode)) -} - -// load pre-compiled shader binaries -func ShaderBinary(count int32, shaders *uint32, binaryformat uint32, binary unsafe.Pointer, length int32) { - C.glowShaderBinary(gpShaderBinary, (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(shaders)), (C.GLenum)(binaryformat), binary, (C.GLsizei)(length)) -} -func ShaderOp1EXT(op uint32, res uint32, arg1 uint32) { - C.glowShaderOp1EXT(gpShaderOp1EXT, (C.GLenum)(op), (C.GLuint)(res), (C.GLuint)(arg1)) -} -func ShaderOp2EXT(op uint32, res uint32, arg1 uint32, arg2 uint32) { - C.glowShaderOp2EXT(gpShaderOp2EXT, (C.GLenum)(op), (C.GLuint)(res), (C.GLuint)(arg1), (C.GLuint)(arg2)) -} -func ShaderOp3EXT(op uint32, res uint32, arg1 uint32, arg2 uint32, arg3 uint32) { - C.glowShaderOp3EXT(gpShaderOp3EXT, (C.GLenum)(op), (C.GLuint)(res), (C.GLuint)(arg1), (C.GLuint)(arg2), (C.GLuint)(arg3)) -} - -// Replaces the source code in a shader object -func ShaderSource(shader uint32, count int32, xstring **uint8, length *int32) { - C.glowShaderSource(gpShaderSource, (C.GLuint)(shader), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length))) -} -func ShaderSourceARB(shaderObj uintptr, count int32, xstring **uint8, length *int32) { - C.glowShaderSourceARB(gpShaderSourceARB, (C.GLhandleARB)(shaderObj), (C.GLsizei)(count), (**C.GLcharARB)(unsafe.Pointer(xstring)), (*C.GLint)(unsafe.Pointer(length))) -} - -// change an active shader storage block binding -func ShaderStorageBlockBinding(program uint32, storageBlockIndex uint32, storageBlockBinding uint32) { - C.glowShaderStorageBlockBinding(gpShaderStorageBlockBinding, (C.GLuint)(program), (C.GLuint)(storageBlockIndex), (C.GLuint)(storageBlockBinding)) -} -func SharpenTexFuncSGIS(target uint32, n int32, points *float32) { - C.glowSharpenTexFuncSGIS(gpSharpenTexFuncSGIS, (C.GLenum)(target), (C.GLsizei)(n), (*C.GLfloat)(unsafe.Pointer(points))) -} -func SpriteParameterfSGIX(pname uint32, param float32) { - C.glowSpriteParameterfSGIX(gpSpriteParameterfSGIX, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func SpriteParameterfvSGIX(pname uint32, params *float32) { - C.glowSpriteParameterfvSGIX(gpSpriteParameterfvSGIX, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func SpriteParameteriSGIX(pname uint32, param int32) { - C.glowSpriteParameteriSGIX(gpSpriteParameteriSGIX, (C.GLenum)(pname), (C.GLint)(param)) -} -func SpriteParameterivSGIX(pname uint32, params *int32) { - C.glowSpriteParameterivSGIX(gpSpriteParameterivSGIX, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func StartInstrumentsSGIX() { - C.glowStartInstrumentsSGIX(gpStartInstrumentsSGIX) -} -func StencilClearTagEXT(stencilTagBits int32, stencilClearTag uint32) { - C.glowStencilClearTagEXT(gpStencilClearTagEXT, (C.GLsizei)(stencilTagBits), (C.GLuint)(stencilClearTag)) -} -func StencilFillPathInstancedNV(numPaths int32, pathNameType uint32, paths unsafe.Pointer, pathBase uint32, fillMode uint32, mask uint32, transformType uint32, transformValues *float32) { - C.glowStencilFillPathInstancedNV(gpStencilFillPathInstancedNV, (C.GLsizei)(numPaths), (C.GLenum)(pathNameType), paths, (C.GLuint)(pathBase), (C.GLenum)(fillMode), (C.GLuint)(mask), (C.GLenum)(transformType), (*C.GLfloat)(unsafe.Pointer(transformValues))) -} -func StencilFillPathNV(path uint32, fillMode uint32, mask uint32) { - C.glowStencilFillPathNV(gpStencilFillPathNV, (C.GLuint)(path), (C.GLenum)(fillMode), (C.GLuint)(mask)) -} - -// set front and back function and reference value for stencil testing -func StencilFunc(xfunc uint32, ref int32, mask uint32) { - C.glowStencilFunc(gpStencilFunc, (C.GLenum)(xfunc), (C.GLint)(ref), (C.GLuint)(mask)) -} - -// set front and/or back function and reference value for stencil testing -func StencilFuncSeparate(face uint32, xfunc uint32, ref int32, mask uint32) { - C.glowStencilFuncSeparate(gpStencilFuncSeparate, (C.GLenum)(face), (C.GLenum)(xfunc), (C.GLint)(ref), (C.GLuint)(mask)) -} -func StencilFuncSeparateATI(frontfunc uint32, backfunc uint32, ref int32, mask uint32) { - C.glowStencilFuncSeparateATI(gpStencilFuncSeparateATI, (C.GLenum)(frontfunc), (C.GLenum)(backfunc), (C.GLint)(ref), (C.GLuint)(mask)) -} - -// control the front and back writing of individual bits in the stencil planes -func StencilMask(mask uint32) { - C.glowStencilMask(gpStencilMask, (C.GLuint)(mask)) -} - -// control the front and/or back writing of individual bits in the stencil planes -func StencilMaskSeparate(face uint32, mask uint32) { - C.glowStencilMaskSeparate(gpStencilMaskSeparate, (C.GLenum)(face), (C.GLuint)(mask)) -} - -// set front and back stencil test actions -func StencilOp(fail uint32, zfail uint32, zpass uint32) { - C.glowStencilOp(gpStencilOp, (C.GLenum)(fail), (C.GLenum)(zfail), (C.GLenum)(zpass)) -} - -// set front and/or back stencil test actions -func StencilOpSeparate(face uint32, sfail uint32, dpfail uint32, dppass uint32) { - C.glowStencilOpSeparate(gpStencilOpSeparate, (C.GLenum)(face), (C.GLenum)(sfail), (C.GLenum)(dpfail), (C.GLenum)(dppass)) -} -func StencilOpSeparateATI(face uint32, sfail uint32, dpfail uint32, dppass uint32) { - C.glowStencilOpSeparateATI(gpStencilOpSeparateATI, (C.GLenum)(face), (C.GLenum)(sfail), (C.GLenum)(dpfail), (C.GLenum)(dppass)) -} -func StencilOpValueAMD(face uint32, value uint32) { - C.glowStencilOpValueAMD(gpStencilOpValueAMD, (C.GLenum)(face), (C.GLuint)(value)) -} -func StencilStrokePathInstancedNV(numPaths int32, pathNameType uint32, paths unsafe.Pointer, pathBase uint32, reference int32, mask uint32, transformType uint32, transformValues *float32) { - C.glowStencilStrokePathInstancedNV(gpStencilStrokePathInstancedNV, (C.GLsizei)(numPaths), (C.GLenum)(pathNameType), paths, (C.GLuint)(pathBase), (C.GLint)(reference), (C.GLuint)(mask), (C.GLenum)(transformType), (*C.GLfloat)(unsafe.Pointer(transformValues))) -} -func StencilStrokePathNV(path uint32, reference int32, mask uint32) { - C.glowStencilStrokePathNV(gpStencilStrokePathNV, (C.GLuint)(path), (C.GLint)(reference), (C.GLuint)(mask)) -} -func StencilThenCoverFillPathInstancedNV(numPaths int32, pathNameType uint32, paths unsafe.Pointer, pathBase uint32, fillMode uint32, mask uint32, coverMode uint32, transformType uint32, transformValues *float32) { - C.glowStencilThenCoverFillPathInstancedNV(gpStencilThenCoverFillPathInstancedNV, (C.GLsizei)(numPaths), (C.GLenum)(pathNameType), paths, (C.GLuint)(pathBase), (C.GLenum)(fillMode), (C.GLuint)(mask), (C.GLenum)(coverMode), (C.GLenum)(transformType), (*C.GLfloat)(unsafe.Pointer(transformValues))) -} -func StencilThenCoverFillPathNV(path uint32, fillMode uint32, mask uint32, coverMode uint32) { - C.glowStencilThenCoverFillPathNV(gpStencilThenCoverFillPathNV, (C.GLuint)(path), (C.GLenum)(fillMode), (C.GLuint)(mask), (C.GLenum)(coverMode)) -} -func StencilThenCoverStrokePathInstancedNV(numPaths int32, pathNameType uint32, paths unsafe.Pointer, pathBase uint32, reference int32, mask uint32, coverMode uint32, transformType uint32, transformValues *float32) { - C.glowStencilThenCoverStrokePathInstancedNV(gpStencilThenCoverStrokePathInstancedNV, (C.GLsizei)(numPaths), (C.GLenum)(pathNameType), paths, (C.GLuint)(pathBase), (C.GLint)(reference), (C.GLuint)(mask), (C.GLenum)(coverMode), (C.GLenum)(transformType), (*C.GLfloat)(unsafe.Pointer(transformValues))) -} -func StencilThenCoverStrokePathNV(path uint32, reference int32, mask uint32, coverMode uint32) { - C.glowStencilThenCoverStrokePathNV(gpStencilThenCoverStrokePathNV, (C.GLuint)(path), (C.GLint)(reference), (C.GLuint)(mask), (C.GLenum)(coverMode)) -} -func StopInstrumentsSGIX(marker int32) { - C.glowStopInstrumentsSGIX(gpStopInstrumentsSGIX, (C.GLint)(marker)) -} -func StringMarkerGREMEDY(len int32, xstring unsafe.Pointer) { - C.glowStringMarkerGREMEDY(gpStringMarkerGREMEDY, (C.GLsizei)(len), xstring) -} -func SwizzleEXT(res uint32, in uint32, outX uint32, outY uint32, outZ uint32, outW uint32) { - C.glowSwizzleEXT(gpSwizzleEXT, (C.GLuint)(res), (C.GLuint)(in), (C.GLenum)(outX), (C.GLenum)(outY), (C.GLenum)(outZ), (C.GLenum)(outW)) -} -func SyncTextureINTEL(texture uint32) { - C.glowSyncTextureINTEL(gpSyncTextureINTEL, (C.GLuint)(texture)) -} -func TagSampleBufferSGIX() { - C.glowTagSampleBufferSGIX(gpTagSampleBufferSGIX) -} -func Tangent3bEXT(tx int8, ty int8, tz int8) { - C.glowTangent3bEXT(gpTangent3bEXT, (C.GLbyte)(tx), (C.GLbyte)(ty), (C.GLbyte)(tz)) -} -func Tangent3bvEXT(v *int8) { - C.glowTangent3bvEXT(gpTangent3bvEXT, (*C.GLbyte)(unsafe.Pointer(v))) -} -func Tangent3dEXT(tx float64, ty float64, tz float64) { - C.glowTangent3dEXT(gpTangent3dEXT, (C.GLdouble)(tx), (C.GLdouble)(ty), (C.GLdouble)(tz)) -} -func Tangent3dvEXT(v *float64) { - C.glowTangent3dvEXT(gpTangent3dvEXT, (*C.GLdouble)(unsafe.Pointer(v))) -} -func Tangent3fEXT(tx float32, ty float32, tz float32) { - C.glowTangent3fEXT(gpTangent3fEXT, (C.GLfloat)(tx), (C.GLfloat)(ty), (C.GLfloat)(tz)) -} -func Tangent3fvEXT(v *float32) { - C.glowTangent3fvEXT(gpTangent3fvEXT, (*C.GLfloat)(unsafe.Pointer(v))) -} -func Tangent3iEXT(tx int32, ty int32, tz int32) { - C.glowTangent3iEXT(gpTangent3iEXT, (C.GLint)(tx), (C.GLint)(ty), (C.GLint)(tz)) -} -func Tangent3ivEXT(v *int32) { - C.glowTangent3ivEXT(gpTangent3ivEXT, (*C.GLint)(unsafe.Pointer(v))) -} -func Tangent3sEXT(tx int16, ty int16, tz int16) { - C.glowTangent3sEXT(gpTangent3sEXT, (C.GLshort)(tx), (C.GLshort)(ty), (C.GLshort)(tz)) -} -func Tangent3svEXT(v *int16) { - C.glowTangent3svEXT(gpTangent3svEXT, (*C.GLshort)(unsafe.Pointer(v))) -} -func TangentPointerEXT(xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowTangentPointerEXT(gpTangentPointerEXT, (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func TbufferMask3DFX(mask uint32) { - C.glowTbufferMask3DFX(gpTbufferMask3DFX, (C.GLuint)(mask)) -} -func TessellationFactorAMD(factor float32) { - C.glowTessellationFactorAMD(gpTessellationFactorAMD, (C.GLfloat)(factor)) -} -func TessellationModeAMD(mode uint32) { - C.glowTessellationModeAMD(gpTessellationModeAMD, (C.GLenum)(mode)) -} -func TestFenceAPPLE(fence uint32) bool { - ret := C.glowTestFenceAPPLE(gpTestFenceAPPLE, (C.GLuint)(fence)) - return ret == TRUE -} -func TestFenceNV(fence uint32) bool { - ret := C.glowTestFenceNV(gpTestFenceNV, (C.GLuint)(fence)) - return ret == TRUE -} -func TestObjectAPPLE(object uint32, name uint32) bool { - ret := C.glowTestObjectAPPLE(gpTestObjectAPPLE, (C.GLenum)(object), (C.GLuint)(name)) - return ret == TRUE -} -func TexBufferARB(target uint32, internalformat uint32, buffer uint32) { - C.glowTexBufferARB(gpTexBufferARB, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer)) -} -func TexBufferEXT(target uint32, internalformat uint32, buffer uint32) { - C.glowTexBufferEXT(gpTexBufferEXT, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer)) -} - -// attach a range of a buffer object's data store to a buffer texture object -func TexBufferRange(target uint32, internalformat uint32, buffer uint32, offset int, size int) { - C.glowTexBufferRange(gpTexBufferRange, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size)) -} -func TexBumpParameterfvATI(pname uint32, param *float32) { - C.glowTexBumpParameterfvATI(gpTexBumpParameterfvATI, (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(param))) -} -func TexBumpParameterivATI(pname uint32, param *int32) { - C.glowTexBumpParameterivATI(gpTexBumpParameterivATI, (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func TexCoord1bOES(s int8) { - C.glowTexCoord1bOES(gpTexCoord1bOES, (C.GLbyte)(s)) -} -func TexCoord1bvOES(coords *int8) { - C.glowTexCoord1bvOES(gpTexCoord1bvOES, (*C.GLbyte)(unsafe.Pointer(coords))) -} -func TexCoord1d(s float64) { - C.glowTexCoord1d(gpTexCoord1d, (C.GLdouble)(s)) -} -func TexCoord1dv(v *float64) { - C.glowTexCoord1dv(gpTexCoord1dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func TexCoord1f(s float32) { - C.glowTexCoord1f(gpTexCoord1f, (C.GLfloat)(s)) -} -func TexCoord1fv(v *float32) { - C.glowTexCoord1fv(gpTexCoord1fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord1hNV(s uint16) { - C.glowTexCoord1hNV(gpTexCoord1hNV, (C.GLhalfNV)(s)) -} -func TexCoord1hvNV(v *uint16) { - C.glowTexCoord1hvNV(gpTexCoord1hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func TexCoord1i(s int32) { - C.glowTexCoord1i(gpTexCoord1i, (C.GLint)(s)) -} -func TexCoord1iv(v *int32) { - C.glowTexCoord1iv(gpTexCoord1iv, (*C.GLint)(unsafe.Pointer(v))) -} -func TexCoord1s(s int16) { - C.glowTexCoord1s(gpTexCoord1s, (C.GLshort)(s)) -} -func TexCoord1sv(v *int16) { - C.glowTexCoord1sv(gpTexCoord1sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func TexCoord1xOES(s int32) { - C.glowTexCoord1xOES(gpTexCoord1xOES, (C.GLfixed)(s)) -} -func TexCoord1xvOES(coords *int32) { - C.glowTexCoord1xvOES(gpTexCoord1xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func TexCoord2bOES(s int8, t int8) { - C.glowTexCoord2bOES(gpTexCoord2bOES, (C.GLbyte)(s), (C.GLbyte)(t)) -} -func TexCoord2bvOES(coords *int8) { - C.glowTexCoord2bvOES(gpTexCoord2bvOES, (*C.GLbyte)(unsafe.Pointer(coords))) -} -func TexCoord2d(s float64, t float64) { - C.glowTexCoord2d(gpTexCoord2d, (C.GLdouble)(s), (C.GLdouble)(t)) -} -func TexCoord2dv(v *float64) { - C.glowTexCoord2dv(gpTexCoord2dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func TexCoord2f(s float32, t float32) { - C.glowTexCoord2f(gpTexCoord2f, (C.GLfloat)(s), (C.GLfloat)(t)) -} -func TexCoord2fColor3fVertex3fSUN(s float32, t float32, r float32, g float32, b float32, x float32, y float32, z float32) { - C.glowTexCoord2fColor3fVertex3fSUN(gpTexCoord2fColor3fVertex3fSUN, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r), (C.GLfloat)(g), (C.GLfloat)(b), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func TexCoord2fColor3fVertex3fvSUN(tc *float32, c *float32, v *float32) { - C.glowTexCoord2fColor3fVertex3fvSUN(gpTexCoord2fColor3fVertex3fvSUN, (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord2fColor4fNormal3fVertex3fSUN(s float32, t float32, r float32, g float32, b float32, a float32, nx float32, ny float32, nz float32, x float32, y float32, z float32) { - C.glowTexCoord2fColor4fNormal3fVertex3fSUN(gpTexCoord2fColor4fNormal3fVertex3fSUN, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r), (C.GLfloat)(g), (C.GLfloat)(b), (C.GLfloat)(a), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func TexCoord2fColor4fNormal3fVertex3fvSUN(tc *float32, c *float32, n *float32, v *float32) { - C.glowTexCoord2fColor4fNormal3fVertex3fvSUN(gpTexCoord2fColor4fNormal3fVertex3fvSUN, (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord2fColor4ubVertex3fSUN(s float32, t float32, r uint8, g uint8, b uint8, a uint8, x float32, y float32, z float32) { - C.glowTexCoord2fColor4ubVertex3fSUN(gpTexCoord2fColor4ubVertex3fSUN, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLubyte)(r), (C.GLubyte)(g), (C.GLubyte)(b), (C.GLubyte)(a), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func TexCoord2fColor4ubVertex3fvSUN(tc *float32, c *uint8, v *float32) { - C.glowTexCoord2fColor4ubVertex3fvSUN(gpTexCoord2fColor4ubVertex3fvSUN, (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLubyte)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord2fNormal3fVertex3fSUN(s float32, t float32, nx float32, ny float32, nz float32, x float32, y float32, z float32) { - C.glowTexCoord2fNormal3fVertex3fSUN(gpTexCoord2fNormal3fVertex3fSUN, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func TexCoord2fNormal3fVertex3fvSUN(tc *float32, n *float32, v *float32) { - C.glowTexCoord2fNormal3fVertex3fvSUN(gpTexCoord2fNormal3fVertex3fvSUN, (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord2fVertex3fSUN(s float32, t float32, x float32, y float32, z float32) { - C.glowTexCoord2fVertex3fSUN(gpTexCoord2fVertex3fSUN, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func TexCoord2fVertex3fvSUN(tc *float32, v *float32) { - C.glowTexCoord2fVertex3fvSUN(gpTexCoord2fVertex3fvSUN, (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord2fv(v *float32) { - C.glowTexCoord2fv(gpTexCoord2fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord2hNV(s uint16, t uint16) { - C.glowTexCoord2hNV(gpTexCoord2hNV, (C.GLhalfNV)(s), (C.GLhalfNV)(t)) -} -func TexCoord2hvNV(v *uint16) { - C.glowTexCoord2hvNV(gpTexCoord2hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func TexCoord2i(s int32, t int32) { - C.glowTexCoord2i(gpTexCoord2i, (C.GLint)(s), (C.GLint)(t)) -} -func TexCoord2iv(v *int32) { - C.glowTexCoord2iv(gpTexCoord2iv, (*C.GLint)(unsafe.Pointer(v))) -} -func TexCoord2s(s int16, t int16) { - C.glowTexCoord2s(gpTexCoord2s, (C.GLshort)(s), (C.GLshort)(t)) -} -func TexCoord2sv(v *int16) { - C.glowTexCoord2sv(gpTexCoord2sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func TexCoord2xOES(s int32, t int32) { - C.glowTexCoord2xOES(gpTexCoord2xOES, (C.GLfixed)(s), (C.GLfixed)(t)) -} -func TexCoord2xvOES(coords *int32) { - C.glowTexCoord2xvOES(gpTexCoord2xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func TexCoord3bOES(s int8, t int8, r int8) { - C.glowTexCoord3bOES(gpTexCoord3bOES, (C.GLbyte)(s), (C.GLbyte)(t), (C.GLbyte)(r)) -} -func TexCoord3bvOES(coords *int8) { - C.glowTexCoord3bvOES(gpTexCoord3bvOES, (*C.GLbyte)(unsafe.Pointer(coords))) -} -func TexCoord3d(s float64, t float64, r float64) { - C.glowTexCoord3d(gpTexCoord3d, (C.GLdouble)(s), (C.GLdouble)(t), (C.GLdouble)(r)) -} -func TexCoord3dv(v *float64) { - C.glowTexCoord3dv(gpTexCoord3dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func TexCoord3f(s float32, t float32, r float32) { - C.glowTexCoord3f(gpTexCoord3f, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r)) -} -func TexCoord3fv(v *float32) { - C.glowTexCoord3fv(gpTexCoord3fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord3hNV(s uint16, t uint16, r uint16) { - C.glowTexCoord3hNV(gpTexCoord3hNV, (C.GLhalfNV)(s), (C.GLhalfNV)(t), (C.GLhalfNV)(r)) -} -func TexCoord3hvNV(v *uint16) { - C.glowTexCoord3hvNV(gpTexCoord3hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func TexCoord3i(s int32, t int32, r int32) { - C.glowTexCoord3i(gpTexCoord3i, (C.GLint)(s), (C.GLint)(t), (C.GLint)(r)) -} -func TexCoord3iv(v *int32) { - C.glowTexCoord3iv(gpTexCoord3iv, (*C.GLint)(unsafe.Pointer(v))) -} -func TexCoord3s(s int16, t int16, r int16) { - C.glowTexCoord3s(gpTexCoord3s, (C.GLshort)(s), (C.GLshort)(t), (C.GLshort)(r)) -} -func TexCoord3sv(v *int16) { - C.glowTexCoord3sv(gpTexCoord3sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func TexCoord3xOES(s int32, t int32, r int32) { - C.glowTexCoord3xOES(gpTexCoord3xOES, (C.GLfixed)(s), (C.GLfixed)(t), (C.GLfixed)(r)) -} -func TexCoord3xvOES(coords *int32) { - C.glowTexCoord3xvOES(gpTexCoord3xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func TexCoord4bOES(s int8, t int8, r int8, q int8) { - C.glowTexCoord4bOES(gpTexCoord4bOES, (C.GLbyte)(s), (C.GLbyte)(t), (C.GLbyte)(r), (C.GLbyte)(q)) -} -func TexCoord4bvOES(coords *int8) { - C.glowTexCoord4bvOES(gpTexCoord4bvOES, (*C.GLbyte)(unsafe.Pointer(coords))) -} -func TexCoord4d(s float64, t float64, r float64, q float64) { - C.glowTexCoord4d(gpTexCoord4d, (C.GLdouble)(s), (C.GLdouble)(t), (C.GLdouble)(r), (C.GLdouble)(q)) -} -func TexCoord4dv(v *float64) { - C.glowTexCoord4dv(gpTexCoord4dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func TexCoord4f(s float32, t float32, r float32, q float32) { - C.glowTexCoord4f(gpTexCoord4f, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(r), (C.GLfloat)(q)) -} -func TexCoord4fColor4fNormal3fVertex4fSUN(s float32, t float32, p float32, q float32, r float32, g float32, b float32, a float32, nx float32, ny float32, nz float32, x float32, y float32, z float32, w float32) { - C.glowTexCoord4fColor4fNormal3fVertex4fSUN(gpTexCoord4fColor4fNormal3fVertex4fSUN, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(p), (C.GLfloat)(q), (C.GLfloat)(r), (C.GLfloat)(g), (C.GLfloat)(b), (C.GLfloat)(a), (C.GLfloat)(nx), (C.GLfloat)(ny), (C.GLfloat)(nz), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func TexCoord4fColor4fNormal3fVertex4fvSUN(tc *float32, c *float32, n *float32, v *float32) { - C.glowTexCoord4fColor4fNormal3fVertex4fvSUN(gpTexCoord4fColor4fNormal3fVertex4fvSUN, (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(c)), (*C.GLfloat)(unsafe.Pointer(n)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord4fVertex4fSUN(s float32, t float32, p float32, q float32, x float32, y float32, z float32, w float32) { - C.glowTexCoord4fVertex4fSUN(gpTexCoord4fVertex4fSUN, (C.GLfloat)(s), (C.GLfloat)(t), (C.GLfloat)(p), (C.GLfloat)(q), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func TexCoord4fVertex4fvSUN(tc *float32, v *float32) { - C.glowTexCoord4fVertex4fvSUN(gpTexCoord4fVertex4fvSUN, (*C.GLfloat)(unsafe.Pointer(tc)), (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord4fv(v *float32) { - C.glowTexCoord4fv(gpTexCoord4fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func TexCoord4hNV(s uint16, t uint16, r uint16, q uint16) { - C.glowTexCoord4hNV(gpTexCoord4hNV, (C.GLhalfNV)(s), (C.GLhalfNV)(t), (C.GLhalfNV)(r), (C.GLhalfNV)(q)) -} -func TexCoord4hvNV(v *uint16) { - C.glowTexCoord4hvNV(gpTexCoord4hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func TexCoord4i(s int32, t int32, r int32, q int32) { - C.glowTexCoord4i(gpTexCoord4i, (C.GLint)(s), (C.GLint)(t), (C.GLint)(r), (C.GLint)(q)) -} -func TexCoord4iv(v *int32) { - C.glowTexCoord4iv(gpTexCoord4iv, (*C.GLint)(unsafe.Pointer(v))) -} -func TexCoord4s(s int16, t int16, r int16, q int16) { - C.glowTexCoord4s(gpTexCoord4s, (C.GLshort)(s), (C.GLshort)(t), (C.GLshort)(r), (C.GLshort)(q)) -} -func TexCoord4sv(v *int16) { - C.glowTexCoord4sv(gpTexCoord4sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func TexCoord4xOES(s int32, t int32, r int32, q int32) { - C.glowTexCoord4xOES(gpTexCoord4xOES, (C.GLfixed)(s), (C.GLfixed)(t), (C.GLfixed)(r), (C.GLfixed)(q)) -} -func TexCoord4xvOES(coords *int32) { - C.glowTexCoord4xvOES(gpTexCoord4xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func TexCoordFormatNV(size int32, xtype uint32, stride int32) { - C.glowTexCoordFormatNV(gpTexCoordFormatNV, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride)) -} - -// define an array of texture coordinates -func TexCoordPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowTexCoordPointer(gpTexCoordPointer, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func TexCoordPointerEXT(size int32, xtype uint32, stride int32, count int32, pointer unsafe.Pointer) { - C.glowTexCoordPointerEXT(gpTexCoordPointerEXT, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLsizei)(count), pointer) -} -func TexCoordPointerListIBM(size int32, xtype uint32, stride int32, pointer *unsafe.Pointer, ptrstride int32) { - C.glowTexCoordPointerListIBM(gpTexCoordPointerListIBM, (C.GLint)(size), (C.GLenum)(xtype), (C.GLint)(stride), pointer, (C.GLint)(ptrstride)) -} -func TexCoordPointervINTEL(size int32, xtype uint32, pointer *unsafe.Pointer) { - C.glowTexCoordPointervINTEL(gpTexCoordPointervINTEL, (C.GLint)(size), (C.GLenum)(xtype), pointer) -} -func TexEnvf(target uint32, pname uint32, param float32) { - C.glowTexEnvf(gpTexEnvf, (C.GLenum)(target), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func TexEnvfv(target uint32, pname uint32, params *float32) { - C.glowTexEnvfv(gpTexEnvfv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func TexEnvi(target uint32, pname uint32, param int32) { - C.glowTexEnvi(gpTexEnvi, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} -func TexEnviv(target uint32, pname uint32, params *int32) { - C.glowTexEnviv(gpTexEnviv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func TexEnvxOES(target uint32, pname uint32, param int32) { - C.glowTexEnvxOES(gpTexEnvxOES, (C.GLenum)(target), (C.GLenum)(pname), (C.GLfixed)(param)) -} -func TexEnvxvOES(target uint32, pname uint32, params *int32) { - C.glowTexEnvxvOES(gpTexEnvxvOES, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func TexFilterFuncSGIS(target uint32, filter uint32, n int32, weights *float32) { - C.glowTexFilterFuncSGIS(gpTexFilterFuncSGIS, (C.GLenum)(target), (C.GLenum)(filter), (C.GLsizei)(n), (*C.GLfloat)(unsafe.Pointer(weights))) -} -func TexGend(coord uint32, pname uint32, param float64) { - C.glowTexGend(gpTexGend, (C.GLenum)(coord), (C.GLenum)(pname), (C.GLdouble)(param)) -} -func TexGendv(coord uint32, pname uint32, params *float64) { - C.glowTexGendv(gpTexGendv, (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func TexGenf(coord uint32, pname uint32, param float32) { - C.glowTexGenf(gpTexGenf, (C.GLenum)(coord), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func TexGenfv(coord uint32, pname uint32, params *float32) { - C.glowTexGenfv(gpTexGenfv, (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func TexGeni(coord uint32, pname uint32, param int32) { - C.glowTexGeni(gpTexGeni, (C.GLenum)(coord), (C.GLenum)(pname), (C.GLint)(param)) -} -func TexGeniv(coord uint32, pname uint32, params *int32) { - C.glowTexGeniv(gpTexGeniv, (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func TexGenxOES(coord uint32, pname uint32, param int32) { - C.glowTexGenxOES(gpTexGenxOES, (C.GLenum)(coord), (C.GLenum)(pname), (C.GLfixed)(param)) -} -func TexGenxvOES(coord uint32, pname uint32, params *int32) { - C.glowTexGenxvOES(gpTexGenxvOES, (C.GLenum)(coord), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} - -// specify a one-dimensional texture image -func TexImage1D(target uint32, level int32, internalformat int32, width int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexImage1D(gpTexImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// specify a two-dimensional texture image -func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexImage2D(gpTexImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// establish the data storage, format, dimensions, and number of samples of a multisample texture's image -func TexImage2DMultisample(target uint32, samples int32, internalformat uint32, width int32, height int32, fixedsamplelocations bool) { - C.glowTexImage2DMultisample(gpTexImage2DMultisample, (C.GLenum)(target), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLboolean)(boolToInt(fixedsamplelocations))) -} -func TexImage2DMultisampleCoverageNV(target uint32, coverageSamples int32, colorSamples int32, internalFormat int32, width int32, height int32, fixedSampleLocations bool) { - C.glowTexImage2DMultisampleCoverageNV(gpTexImage2DMultisampleCoverageNV, (C.GLenum)(target), (C.GLsizei)(coverageSamples), (C.GLsizei)(colorSamples), (C.GLint)(internalFormat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLboolean)(boolToInt(fixedSampleLocations))) -} - -// specify a three-dimensional texture image -func TexImage3D(target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexImage3D(gpTexImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TexImage3DEXT(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexImage3DEXT(gpTexImage3DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// establish the data storage, format, dimensions, and number of samples of a multisample texture's image -func TexImage3DMultisample(target uint32, samples int32, internalformat uint32, width int32, height int32, depth int32, fixedsamplelocations bool) { - C.glowTexImage3DMultisample(gpTexImage3DMultisample, (C.GLenum)(target), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(fixedsamplelocations))) -} -func TexImage3DMultisampleCoverageNV(target uint32, coverageSamples int32, colorSamples int32, internalFormat int32, width int32, height int32, depth int32, fixedSampleLocations bool) { - C.glowTexImage3DMultisampleCoverageNV(gpTexImage3DMultisampleCoverageNV, (C.GLenum)(target), (C.GLsizei)(coverageSamples), (C.GLsizei)(colorSamples), (C.GLint)(internalFormat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(fixedSampleLocations))) -} -func TexImage4DSGIS(target uint32, level int32, internalformat uint32, width int32, height int32, depth int32, size4d int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexImage4DSGIS(gpTexImage4DSGIS, (C.GLenum)(target), (C.GLint)(level), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(size4d), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TexPageCommitmentARB(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, resident bool) { - C.glowTexPageCommitmentARB(gpTexPageCommitmentARB, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(resident))) -} -func TexParameterIivEXT(target uint32, pname uint32, params *int32) { - C.glowTexParameterIivEXT(gpTexParameterIivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func TexParameterIuivEXT(target uint32, pname uint32, params *uint32) { - C.glowTexParameterIuivEXT(gpTexParameterIuivEXT, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func TexParameterf(target uint32, pname uint32, param float32) { - C.glowTexParameterf(gpTexParameterf, (C.GLenum)(target), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func TexParameterfv(target uint32, pname uint32, params *float32) { - C.glowTexParameterfv(gpTexParameterfv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func TexParameteri(target uint32, pname uint32, param int32) { - C.glowTexParameteri(gpTexParameteri, (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} -func TexParameteriv(target uint32, pname uint32, params *int32) { - C.glowTexParameteriv(gpTexParameteriv, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func TexParameterxOES(target uint32, pname uint32, param int32) { - C.glowTexParameterxOES(gpTexParameterxOES, (C.GLenum)(target), (C.GLenum)(pname), (C.GLfixed)(param)) -} -func TexParameterxvOES(target uint32, pname uint32, params *int32) { - C.glowTexParameterxvOES(gpTexParameterxvOES, (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfixed)(unsafe.Pointer(params))) -} -func TexRenderbufferNV(target uint32, renderbuffer uint32) { - C.glowTexRenderbufferNV(gpTexRenderbufferNV, (C.GLenum)(target), (C.GLuint)(renderbuffer)) -} - -// simultaneously specify storage for all levels of a one-dimensional texture -func TexStorage1D(target uint32, levels int32, internalformat uint32, width int32) { - C.glowTexStorage1D(gpTexStorage1D, (C.GLenum)(target), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width)) -} - -// simultaneously specify storage for all levels of a two-dimensional or one-dimensional array texture -func TexStorage2D(target uint32, levels int32, internalformat uint32, width int32, height int32) { - C.glowTexStorage2D(gpTexStorage2D, (C.GLenum)(target), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// specify storage for a two-dimensional multisample texture -func TexStorage2DMultisample(target uint32, samples int32, internalformat uint32, width int32, height int32, fixedsamplelocations bool) { - C.glowTexStorage2DMultisample(gpTexStorage2DMultisample, (C.GLenum)(target), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLboolean)(boolToInt(fixedsamplelocations))) -} - -// simultaneously specify storage for all levels of a three-dimensional, two-dimensional array or cube-map array texture -func TexStorage3D(target uint32, levels int32, internalformat uint32, width int32, height int32, depth int32) { - C.glowTexStorage3D(gpTexStorage3D, (C.GLenum)(target), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth)) -} - -// specify storage for a two-dimensional multisample array texture -func TexStorage3DMultisample(target uint32, samples int32, internalformat uint32, width int32, height int32, depth int32, fixedsamplelocations bool) { - C.glowTexStorage3DMultisample(gpTexStorage3DMultisample, (C.GLenum)(target), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(fixedsamplelocations))) -} -func TexStorageSparseAMD(target uint32, internalFormat uint32, width int32, height int32, depth int32, layers int32, flags uint32) { - C.glowTexStorageSparseAMD(gpTexStorageSparseAMD, (C.GLenum)(target), (C.GLenum)(internalFormat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(layers), (C.GLbitfield)(flags)) -} - -// specify a one-dimensional texture subimage -func TexSubImage1D(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexSubImage1D(gpTexSubImage1D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TexSubImage1DEXT(target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexSubImage1DEXT(gpTexSubImage1DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// specify a two-dimensional texture subimage -func TexSubImage2D(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexSubImage2D(gpTexSubImage2D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TexSubImage2DEXT(target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexSubImage2DEXT(gpTexSubImage2DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// specify a three-dimensional texture subimage -func TexSubImage3D(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexSubImage3D(gpTexSubImage3D, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TexSubImage3DEXT(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexSubImage3DEXT(gpTexSubImage3DEXT, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TexSubImage4DSGIS(target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, woffset int32, width int32, height int32, depth int32, size4d int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTexSubImage4DSGIS(gpTexSubImage4DSGIS, (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLint)(woffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(size4d), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// controls the ordering of reads and writes to rendered fragments across drawing commands -func TextureBarrier() { - C.glowTextureBarrier(gpTextureBarrier) -} -func TextureBarrierNV() { - C.glowTextureBarrierNV(gpTextureBarrierNV) -} - -// attach a buffer object's data store to a buffer texture object -func TextureBuffer(texture uint32, internalformat uint32, buffer uint32) { - C.glowTextureBuffer(gpTextureBuffer, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer)) -} -func TextureBufferEXT(texture uint32, target uint32, internalformat uint32, buffer uint32) { - C.glowTextureBufferEXT(gpTextureBufferEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer)) -} - -// attach a range of a buffer object's data store to a buffer texture object -func TextureBufferRange(texture uint32, internalformat uint32, buffer uint32, offset int, size int32) { - C.glowTextureBufferRange(gpTextureBufferRange, (C.GLuint)(texture), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(size)) -} -func TextureBufferRangeEXT(texture uint32, target uint32, internalformat uint32, buffer uint32, offset int, size int) { - C.glowTextureBufferRangeEXT(gpTextureBufferRangeEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size)) -} -func TextureColorMaskSGIS(red bool, green bool, blue bool, alpha bool) { - C.glowTextureColorMaskSGIS(gpTextureColorMaskSGIS, (C.GLboolean)(boolToInt(red)), (C.GLboolean)(boolToInt(green)), (C.GLboolean)(boolToInt(blue)), (C.GLboolean)(boolToInt(alpha))) -} -func TextureImage1DEXT(texture uint32, target uint32, level int32, internalformat int32, width int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureImage1DEXT(gpTextureImage1DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TextureImage2DEXT(texture uint32, target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureImage2DEXT(gpTextureImage2DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TextureImage2DMultisampleCoverageNV(texture uint32, target uint32, coverageSamples int32, colorSamples int32, internalFormat int32, width int32, height int32, fixedSampleLocations bool) { - C.glowTextureImage2DMultisampleCoverageNV(gpTextureImage2DMultisampleCoverageNV, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(coverageSamples), (C.GLsizei)(colorSamples), (C.GLint)(internalFormat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLboolean)(boolToInt(fixedSampleLocations))) -} -func TextureImage2DMultisampleNV(texture uint32, target uint32, samples int32, internalFormat int32, width int32, height int32, fixedSampleLocations bool) { - C.glowTextureImage2DMultisampleNV(gpTextureImage2DMultisampleNV, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(samples), (C.GLint)(internalFormat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLboolean)(boolToInt(fixedSampleLocations))) -} -func TextureImage3DEXT(texture uint32, target uint32, level int32, internalformat int32, width int32, height int32, depth int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureImage3DEXT(gpTextureImage3DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLint)(border), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TextureImage3DMultisampleCoverageNV(texture uint32, target uint32, coverageSamples int32, colorSamples int32, internalFormat int32, width int32, height int32, depth int32, fixedSampleLocations bool) { - C.glowTextureImage3DMultisampleCoverageNV(gpTextureImage3DMultisampleCoverageNV, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(coverageSamples), (C.GLsizei)(colorSamples), (C.GLint)(internalFormat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(fixedSampleLocations))) -} -func TextureImage3DMultisampleNV(texture uint32, target uint32, samples int32, internalFormat int32, width int32, height int32, depth int32, fixedSampleLocations bool) { - C.glowTextureImage3DMultisampleNV(gpTextureImage3DMultisampleNV, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(samples), (C.GLint)(internalFormat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(fixedSampleLocations))) -} -func TextureLightEXT(pname uint32) { - C.glowTextureLightEXT(gpTextureLightEXT, (C.GLenum)(pname)) -} -func TextureMaterialEXT(face uint32, mode uint32) { - C.glowTextureMaterialEXT(gpTextureMaterialEXT, (C.GLenum)(face), (C.GLenum)(mode)) -} -func TextureNormalEXT(mode uint32) { - C.glowTextureNormalEXT(gpTextureNormalEXT, (C.GLenum)(mode)) -} -func TexturePageCommitmentEXT(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, resident bool) { - C.glowTexturePageCommitmentEXT(gpTexturePageCommitmentEXT, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(resident))) -} -func TextureParameterIiv(texture uint32, pname uint32, params *int32) { - C.glowTextureParameterIiv(gpTextureParameterIiv, (C.GLuint)(texture), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func TextureParameterIivEXT(texture uint32, target uint32, pname uint32, params *int32) { - C.glowTextureParameterIivEXT(gpTextureParameterIivEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func TextureParameterIuiv(texture uint32, pname uint32, params *uint32) { - C.glowTextureParameterIuiv(gpTextureParameterIuiv, (C.GLuint)(texture), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func TextureParameterIuivEXT(texture uint32, target uint32, pname uint32, params *uint32) { - C.glowTextureParameterIuivEXT(gpTextureParameterIuivEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLuint)(unsafe.Pointer(params))) -} -func TextureParameterf(texture uint32, pname uint32, param float32) { - C.glowTextureParameterf(gpTextureParameterf, (C.GLuint)(texture), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func TextureParameterfEXT(texture uint32, target uint32, pname uint32, param float32) { - C.glowTextureParameterfEXT(gpTextureParameterfEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (C.GLfloat)(param)) -} -func TextureParameterfv(texture uint32, pname uint32, param *float32) { - C.glowTextureParameterfv(gpTextureParameterfv, (C.GLuint)(texture), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(param))) -} -func TextureParameterfvEXT(texture uint32, target uint32, pname uint32, params *float32) { - C.glowTextureParameterfvEXT(gpTextureParameterfvEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func TextureParameteri(texture uint32, pname uint32, param int32) { - C.glowTextureParameteri(gpTextureParameteri, (C.GLuint)(texture), (C.GLenum)(pname), (C.GLint)(param)) -} -func TextureParameteriEXT(texture uint32, target uint32, pname uint32, param int32) { - C.glowTextureParameteriEXT(gpTextureParameteriEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (C.GLint)(param)) -} -func TextureParameteriv(texture uint32, pname uint32, param *int32) { - C.glowTextureParameteriv(gpTextureParameteriv, (C.GLuint)(texture), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(param))) -} -func TextureParameterivEXT(texture uint32, target uint32, pname uint32, params *int32) { - C.glowTextureParameterivEXT(gpTextureParameterivEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} -func TextureRangeAPPLE(target uint32, length int32, pointer unsafe.Pointer) { - C.glowTextureRangeAPPLE(gpTextureRangeAPPLE, (C.GLenum)(target), (C.GLsizei)(length), pointer) -} -func TextureRenderbufferEXT(texture uint32, target uint32, renderbuffer uint32) { - C.glowTextureRenderbufferEXT(gpTextureRenderbufferEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(renderbuffer)) -} - -// simultaneously specify storage for all levels of a one-dimensional texture -func TextureStorage1D(texture uint32, levels int32, internalformat uint32, width int32) { - C.glowTextureStorage1D(gpTextureStorage1D, (C.GLuint)(texture), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width)) -} -func TextureStorage1DEXT(texture uint32, target uint32, levels int32, internalformat uint32, width int32) { - C.glowTextureStorage1DEXT(gpTextureStorage1DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width)) -} - -// simultaneously specify storage for all levels of a two-dimensional or one-dimensional array texture -func TextureStorage2D(texture uint32, levels int32, internalformat uint32, width int32, height int32) { - C.glowTextureStorage2D(gpTextureStorage2D, (C.GLuint)(texture), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func TextureStorage2DEXT(texture uint32, target uint32, levels int32, internalformat uint32, width int32, height int32) { - C.glowTextureStorage2DEXT(gpTextureStorage2DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height)) -} - -// specify storage for a two-dimensional multisample texture -func TextureStorage2DMultisample(texture uint32, samples int32, internalformat uint32, width int32, height int32, fixedsamplelocations bool) { - C.glowTextureStorage2DMultisample(gpTextureStorage2DMultisample, (C.GLuint)(texture), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLboolean)(boolToInt(fixedsamplelocations))) -} -func TextureStorage2DMultisampleEXT(texture uint32, target uint32, samples int32, internalformat uint32, width int32, height int32, fixedsamplelocations bool) { - C.glowTextureStorage2DMultisampleEXT(gpTextureStorage2DMultisampleEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLboolean)(boolToInt(fixedsamplelocations))) -} - -// simultaneously specify storage for all levels of a three-dimensional, two-dimensional array or cube-map array texture -func TextureStorage3D(texture uint32, levels int32, internalformat uint32, width int32, height int32, depth int32) { - C.glowTextureStorage3D(gpTextureStorage3D, (C.GLuint)(texture), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth)) -} -func TextureStorage3DEXT(texture uint32, target uint32, levels int32, internalformat uint32, width int32, height int32, depth int32) { - C.glowTextureStorage3DEXT(gpTextureStorage3DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(levels), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth)) -} - -// specify storage for a two-dimensional multisample array texture -func TextureStorage3DMultisample(texture uint32, samples int32, internalformat uint32, width int32, height int32, depth int32, fixedsamplelocations bool) { - C.glowTextureStorage3DMultisample(gpTextureStorage3DMultisample, (C.GLuint)(texture), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(fixedsamplelocations))) -} -func TextureStorage3DMultisampleEXT(texture uint32, target uint32, samples int32, internalformat uint32, width int32, height int32, depth int32, fixedsamplelocations bool) { - C.glowTextureStorage3DMultisampleEXT(gpTextureStorage3DMultisampleEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLsizei)(samples), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLboolean)(boolToInt(fixedsamplelocations))) -} -func TextureStorageSparseAMD(texture uint32, target uint32, internalFormat uint32, width int32, height int32, depth int32, layers int32, flags uint32) { - C.glowTextureStorageSparseAMD(gpTextureStorageSparseAMD, (C.GLuint)(texture), (C.GLenum)(target), (C.GLenum)(internalFormat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLsizei)(layers), (C.GLbitfield)(flags)) -} - -// specify a one-dimensional texture subimage -func TextureSubImage1D(texture uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureSubImage1D(gpTextureSubImage1D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TextureSubImage1DEXT(texture uint32, target uint32, level int32, xoffset int32, width int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureSubImage1DEXT(gpTextureSubImage1DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLsizei)(width), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// specify a two-dimensional texture subimage -func TextureSubImage2D(texture uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureSubImage2D(gpTextureSubImage2D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TextureSubImage2DEXT(texture uint32, target uint32, level int32, xoffset int32, yoffset int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureSubImage2DEXT(gpTextureSubImage2DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// specify a three-dimensional texture subimage -func TextureSubImage3D(texture uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureSubImage3D(gpTextureSubImage3D, (C.GLuint)(texture), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} -func TextureSubImage3DEXT(texture uint32, target uint32, level int32, xoffset int32, yoffset int32, zoffset int32, width int32, height int32, depth int32, format uint32, xtype uint32, pixels unsafe.Pointer) { - C.glowTextureSubImage3DEXT(gpTextureSubImage3DEXT, (C.GLuint)(texture), (C.GLenum)(target), (C.GLint)(level), (C.GLint)(xoffset), (C.GLint)(yoffset), (C.GLint)(zoffset), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLsizei)(depth), (C.GLenum)(format), (C.GLenum)(xtype), pixels) -} - -// initialize a texture as a data alias of another texture's data store -func TextureView(texture uint32, target uint32, origtexture uint32, internalformat uint32, minlevel uint32, numlevels uint32, minlayer uint32, numlayers uint32) { - C.glowTextureView(gpTextureView, (C.GLuint)(texture), (C.GLenum)(target), (C.GLuint)(origtexture), (C.GLenum)(internalformat), (C.GLuint)(minlevel), (C.GLuint)(numlevels), (C.GLuint)(minlayer), (C.GLuint)(numlayers)) -} -func TrackMatrixNV(target uint32, address uint32, matrix uint32, transform uint32) { - C.glowTrackMatrixNV(gpTrackMatrixNV, (C.GLenum)(target), (C.GLuint)(address), (C.GLenum)(matrix), (C.GLenum)(transform)) -} -func TransformFeedbackAttribsNV(count int32, attribs *int32, bufferMode uint32) { - C.glowTransformFeedbackAttribsNV(gpTransformFeedbackAttribsNV, (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(attribs)), (C.GLenum)(bufferMode)) -} - -// bind a buffer object to a transform feedback buffer object -func TransformFeedbackBufferBase(xfb uint32, index uint32, buffer uint32) { - C.glowTransformFeedbackBufferBase(gpTransformFeedbackBufferBase, (C.GLuint)(xfb), (C.GLuint)(index), (C.GLuint)(buffer)) -} - -// bind a range within a buffer object to a transform feedback buffer object -func TransformFeedbackBufferRange(xfb uint32, index uint32, buffer uint32, offset int, size int32) { - C.glowTransformFeedbackBufferRange(gpTransformFeedbackBufferRange, (C.GLuint)(xfb), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(size)) -} -func TransformFeedbackStreamAttribsNV(count int32, attribs *int32, nbuffers int32, bufstreams *int32, bufferMode uint32) { - C.glowTransformFeedbackStreamAttribsNV(gpTransformFeedbackStreamAttribsNV, (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(attribs)), (C.GLsizei)(nbuffers), (*C.GLint)(unsafe.Pointer(bufstreams)), (C.GLenum)(bufferMode)) -} -func TransformFeedbackVaryingsEXT(program uint32, count int32, varyings **uint8, bufferMode uint32) { - C.glowTransformFeedbackVaryingsEXT(gpTransformFeedbackVaryingsEXT, (C.GLuint)(program), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(varyings)), (C.GLenum)(bufferMode)) -} -func TransformFeedbackVaryingsNV(program uint32, count int32, locations *int32, bufferMode uint32) { - C.glowTransformFeedbackVaryingsNV(gpTransformFeedbackVaryingsNV, (C.GLuint)(program), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(locations)), (C.GLenum)(bufferMode)) -} -func TransformPathNV(resultPath uint32, srcPath uint32, transformType uint32, transformValues *float32) { - C.glowTransformPathNV(gpTransformPathNV, (C.GLuint)(resultPath), (C.GLuint)(srcPath), (C.GLenum)(transformType), (*C.GLfloat)(unsafe.Pointer(transformValues))) -} -func Translated(x float64, y float64, z float64) { - C.glowTranslated(gpTranslated, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func Translatef(x float32, y float32, z float32) { - C.glowTranslatef(gpTranslatef, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func TranslatexOES(x int32, y int32, z int32) { - C.glowTranslatexOES(gpTranslatexOES, (C.GLfixed)(x), (C.GLfixed)(y), (C.GLfixed)(z)) -} -func Uniform1d(location int32, x float64) { - C.glowUniform1d(gpUniform1d, (C.GLint)(location), (C.GLdouble)(x)) -} -func Uniform1dv(location int32, count int32, value *float64) { - C.glowUniform1dv(gpUniform1dv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func Uniform1f(location int32, v0 float32) { - C.glowUniform1f(gpUniform1f, (C.GLint)(location), (C.GLfloat)(v0)) -} -func Uniform1fARB(location int32, v0 float32) { - C.glowUniform1fARB(gpUniform1fARB, (C.GLint)(location), (C.GLfloat)(v0)) -} - -// Specify the value of a uniform variable for the current program object -func Uniform1fv(location int32, count int32, value *float32) { - C.glowUniform1fv(gpUniform1fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} -func Uniform1fvARB(location int32, count int32, value *float32) { - C.glowUniform1fvARB(gpUniform1fvARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func Uniform1i(location int32, v0 int32) { - C.glowUniform1i(gpUniform1i, (C.GLint)(location), (C.GLint)(v0)) -} -func Uniform1i64NV(location int32, x int64) { - C.glowUniform1i64NV(gpUniform1i64NV, (C.GLint)(location), (C.GLint64EXT)(x)) -} -func Uniform1i64vNV(location int32, count int32, value *int64) { - C.glowUniform1i64vNV(gpUniform1i64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint64EXT)(unsafe.Pointer(value))) -} -func Uniform1iARB(location int32, v0 int32) { - C.glowUniform1iARB(gpUniform1iARB, (C.GLint)(location), (C.GLint)(v0)) -} - -// Specify the value of a uniform variable for the current program object -func Uniform1iv(location int32, count int32, value *int32) { - C.glowUniform1iv(gpUniform1iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func Uniform1ivARB(location int32, count int32, value *int32) { - C.glowUniform1ivARB(gpUniform1ivARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func Uniform1ui64NV(location int32, x uint64) { - C.glowUniform1ui64NV(gpUniform1ui64NV, (C.GLint)(location), (C.GLuint64EXT)(x)) -} -func Uniform1ui64vNV(location int32, count int32, value *uint64) { - C.glowUniform1ui64vNV(gpUniform1ui64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func Uniform1uiEXT(location int32, v0 uint32) { - C.glowUniform1uiEXT(gpUniform1uiEXT, (C.GLint)(location), (C.GLuint)(v0)) -} -func Uniform1uivEXT(location int32, count int32, value *uint32) { - C.glowUniform1uivEXT(gpUniform1uivEXT, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func Uniform2d(location int32, x float64, y float64) { - C.glowUniform2d(gpUniform2d, (C.GLint)(location), (C.GLdouble)(x), (C.GLdouble)(y)) -} -func Uniform2dv(location int32, count int32, value *float64) { - C.glowUniform2dv(gpUniform2dv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func Uniform2f(location int32, v0 float32, v1 float32) { - C.glowUniform2f(gpUniform2f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1)) -} -func Uniform2fARB(location int32, v0 float32, v1 float32) { - C.glowUniform2fARB(gpUniform2fARB, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1)) -} - -// Specify the value of a uniform variable for the current program object -func Uniform2fv(location int32, count int32, value *float32) { - C.glowUniform2fv(gpUniform2fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} -func Uniform2fvARB(location int32, count int32, value *float32) { - C.glowUniform2fvARB(gpUniform2fvARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func Uniform2i(location int32, v0 int32, v1 int32) { - C.glowUniform2i(gpUniform2i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1)) -} -func Uniform2i64NV(location int32, x int64, y int64) { - C.glowUniform2i64NV(gpUniform2i64NV, (C.GLint)(location), (C.GLint64EXT)(x), (C.GLint64EXT)(y)) -} -func Uniform2i64vNV(location int32, count int32, value *int64) { - C.glowUniform2i64vNV(gpUniform2i64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint64EXT)(unsafe.Pointer(value))) -} -func Uniform2iARB(location int32, v0 int32, v1 int32) { - C.glowUniform2iARB(gpUniform2iARB, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1)) -} - -// Specify the value of a uniform variable for the current program object -func Uniform2iv(location int32, count int32, value *int32) { - C.glowUniform2iv(gpUniform2iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func Uniform2ivARB(location int32, count int32, value *int32) { - C.glowUniform2ivARB(gpUniform2ivARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func Uniform2ui64NV(location int32, x uint64, y uint64) { - C.glowUniform2ui64NV(gpUniform2ui64NV, (C.GLint)(location), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y)) -} -func Uniform2ui64vNV(location int32, count int32, value *uint64) { - C.glowUniform2ui64vNV(gpUniform2ui64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func Uniform2uiEXT(location int32, v0 uint32, v1 uint32) { - C.glowUniform2uiEXT(gpUniform2uiEXT, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1)) -} -func Uniform2uivEXT(location int32, count int32, value *uint32) { - C.glowUniform2uivEXT(gpUniform2uivEXT, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func Uniform3d(location int32, x float64, y float64, z float64) { - C.glowUniform3d(gpUniform3d, (C.GLint)(location), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func Uniform3dv(location int32, count int32, value *float64) { - C.glowUniform3dv(gpUniform3dv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func Uniform3f(location int32, v0 float32, v1 float32, v2 float32) { - C.glowUniform3f(gpUniform3f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2)) -} -func Uniform3fARB(location int32, v0 float32, v1 float32, v2 float32) { - C.glowUniform3fARB(gpUniform3fARB, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2)) -} - -// Specify the value of a uniform variable for the current program object -func Uniform3fv(location int32, count int32, value *float32) { - C.glowUniform3fv(gpUniform3fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} -func Uniform3fvARB(location int32, count int32, value *float32) { - C.glowUniform3fvARB(gpUniform3fvARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func Uniform3i(location int32, v0 int32, v1 int32, v2 int32) { - C.glowUniform3i(gpUniform3i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2)) -} -func Uniform3i64NV(location int32, x int64, y int64, z int64) { - C.glowUniform3i64NV(gpUniform3i64NV, (C.GLint)(location), (C.GLint64EXT)(x), (C.GLint64EXT)(y), (C.GLint64EXT)(z)) -} -func Uniform3i64vNV(location int32, count int32, value *int64) { - C.glowUniform3i64vNV(gpUniform3i64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint64EXT)(unsafe.Pointer(value))) -} -func Uniform3iARB(location int32, v0 int32, v1 int32, v2 int32) { - C.glowUniform3iARB(gpUniform3iARB, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2)) -} - -// Specify the value of a uniform variable for the current program object -func Uniform3iv(location int32, count int32, value *int32) { - C.glowUniform3iv(gpUniform3iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func Uniform3ivARB(location int32, count int32, value *int32) { - C.glowUniform3ivARB(gpUniform3ivARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func Uniform3ui64NV(location int32, x uint64, y uint64, z uint64) { - C.glowUniform3ui64NV(gpUniform3ui64NV, (C.GLint)(location), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y), (C.GLuint64EXT)(z)) -} -func Uniform3ui64vNV(location int32, count int32, value *uint64) { - C.glowUniform3ui64vNV(gpUniform3ui64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func Uniform3uiEXT(location int32, v0 uint32, v1 uint32, v2 uint32) { - C.glowUniform3uiEXT(gpUniform3uiEXT, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2)) -} -func Uniform3uivEXT(location int32, count int32, value *uint32) { - C.glowUniform3uivEXT(gpUniform3uivEXT, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} -func Uniform4d(location int32, x float64, y float64, z float64, w float64) { - C.glowUniform4d(gpUniform4d, (C.GLint)(location), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func Uniform4dv(location int32, count int32, value *float64) { - C.glowUniform4dv(gpUniform4dv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func Uniform4f(location int32, v0 float32, v1 float32, v2 float32, v3 float32) { - C.glowUniform4f(gpUniform4f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLfloat)(v3)) -} -func Uniform4fARB(location int32, v0 float32, v1 float32, v2 float32, v3 float32) { - C.glowUniform4fARB(gpUniform4fARB, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLfloat)(v3)) -} - -// Specify the value of a uniform variable for the current program object -func Uniform4fv(location int32, count int32, value *float32) { - C.glowUniform4fv(gpUniform4fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} -func Uniform4fvARB(location int32, count int32, value *float32) { - C.glowUniform4fvARB(gpUniform4fvARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func Uniform4i(location int32, v0 int32, v1 int32, v2 int32, v3 int32) { - C.glowUniform4i(gpUniform4i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2), (C.GLint)(v3)) -} -func Uniform4i64NV(location int32, x int64, y int64, z int64, w int64) { - C.glowUniform4i64NV(gpUniform4i64NV, (C.GLint)(location), (C.GLint64EXT)(x), (C.GLint64EXT)(y), (C.GLint64EXT)(z), (C.GLint64EXT)(w)) -} -func Uniform4i64vNV(location int32, count int32, value *int64) { - C.glowUniform4i64vNV(gpUniform4i64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint64EXT)(unsafe.Pointer(value))) -} -func Uniform4iARB(location int32, v0 int32, v1 int32, v2 int32, v3 int32) { - C.glowUniform4iARB(gpUniform4iARB, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2), (C.GLint)(v3)) -} - -// Specify the value of a uniform variable for the current program object -func Uniform4iv(location int32, count int32, value *int32) { - C.glowUniform4iv(gpUniform4iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func Uniform4ivARB(location int32, count int32, value *int32) { - C.glowUniform4ivARB(gpUniform4ivARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) -} -func Uniform4ui64NV(location int32, x uint64, y uint64, z uint64, w uint64) { - C.glowUniform4ui64NV(gpUniform4ui64NV, (C.GLint)(location), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y), (C.GLuint64EXT)(z), (C.GLuint64EXT)(w)) -} -func Uniform4ui64vNV(location int32, count int32, value *uint64) { - C.glowUniform4ui64vNV(gpUniform4ui64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func Uniform4uiEXT(location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) { - C.glowUniform4uiEXT(gpUniform4uiEXT, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3)) -} -func Uniform4uivEXT(location int32, count int32, value *uint32) { - C.glowUniform4uivEXT(gpUniform4uivEXT, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) -} - -// assign a binding point to an active uniform block -func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) { - C.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding)) -} -func UniformBufferEXT(program uint32, location int32, buffer uint32) { - C.glowUniformBufferEXT(gpUniformBufferEXT, (C.GLuint)(program), (C.GLint)(location), (C.GLuint)(buffer)) -} -func UniformHandleui64ARB(location int32, value uint64) { - C.glowUniformHandleui64ARB(gpUniformHandleui64ARB, (C.GLint)(location), (C.GLuint64)(value)) -} -func UniformHandleui64NV(location int32, value uint64) { - C.glowUniformHandleui64NV(gpUniformHandleui64NV, (C.GLint)(location), (C.GLuint64)(value)) -} -func UniformHandleui64vARB(location int32, count int32, value *uint64) { - C.glowUniformHandleui64vARB(gpUniformHandleui64vARB, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64)(unsafe.Pointer(value))) -} -func UniformHandleui64vNV(location int32, count int32, value *uint64) { - C.glowUniformHandleui64vNV(gpUniformHandleui64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64)(unsafe.Pointer(value))) -} -func UniformMatrix2dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix2dv(gpUniformMatrix2dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix2fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix2fv(gpUniformMatrix2fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix2fvARB(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix2fvARB(gpUniformMatrix2fvARB, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix2x3dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix2x3dv(gpUniformMatrix2x3dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix2x3fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix2x3fv(gpUniformMatrix2x3fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix2x4dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix2x4dv(gpUniformMatrix2x4dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix2x4fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix2x4fv(gpUniformMatrix2x4fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix3dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix3dv(gpUniformMatrix3dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix3fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix3fv(gpUniformMatrix3fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix3fvARB(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix3fvARB(gpUniformMatrix3fvARB, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix3x2dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix3x2dv(gpUniformMatrix3x2dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix3x2fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix3x2fv(gpUniformMatrix3x2fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix3x4dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix3x4dv(gpUniformMatrix3x4dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix3x4fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix3x4fv(gpUniformMatrix3x4fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix4dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix4dv(gpUniformMatrix4dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix4fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix4fv(gpUniformMatrix4fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix4fvARB(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix4fvARB(gpUniformMatrix4fvARB, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix4x2dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix4x2dv(gpUniformMatrix4x2dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix4x2fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix4x2fv(gpUniformMatrix4x2fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformMatrix4x3dv(location int32, count int32, transpose bool, value *float64) { - C.glowUniformMatrix4x3dv(gpUniformMatrix4x3dv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLdouble)(unsafe.Pointer(value))) -} - -// Specify the value of a uniform variable for the current program object -func UniformMatrix4x3fv(location int32, count int32, transpose bool, value *float32) { - C.glowUniformMatrix4x3fv(gpUniformMatrix4x3fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) -} -func UniformSubroutinesuiv(shadertype uint32, count int32, indices *uint32) { - C.glowUniformSubroutinesuiv(gpUniformSubroutinesuiv, (C.GLenum)(shadertype), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(indices))) -} -func Uniformui64NV(location int32, value uint64) { - C.glowUniformui64NV(gpUniformui64NV, (C.GLint)(location), (C.GLuint64EXT)(value)) -} -func Uniformui64vNV(location int32, count int32, value *uint64) { - C.glowUniformui64vNV(gpUniformui64vNV, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint64EXT)(unsafe.Pointer(value))) -} -func UnlockArraysEXT() { - C.glowUnlockArraysEXT(gpUnlockArraysEXT) -} - -// release the mapping of a buffer object's data store into the client's address space -func UnmapBuffer(target uint32) bool { - ret := C.glowUnmapBuffer(gpUnmapBuffer, (C.GLenum)(target)) - return ret == TRUE -} -func UnmapBufferARB(target uint32) bool { - ret := C.glowUnmapBufferARB(gpUnmapBufferARB, (C.GLenum)(target)) - return ret == TRUE -} - -// release the mapping of a buffer object's data store into the client's address space -func UnmapNamedBuffer(buffer uint32) bool { - ret := C.glowUnmapNamedBuffer(gpUnmapNamedBuffer, (C.GLuint)(buffer)) - return ret == TRUE -} -func UnmapNamedBufferEXT(buffer uint32) bool { - ret := C.glowUnmapNamedBufferEXT(gpUnmapNamedBufferEXT, (C.GLuint)(buffer)) - return ret == TRUE -} -func UnmapObjectBufferATI(buffer uint32) { - C.glowUnmapObjectBufferATI(gpUnmapObjectBufferATI, (C.GLuint)(buffer)) -} -func UnmapTexture2DINTEL(texture uint32, level int32) { - C.glowUnmapTexture2DINTEL(gpUnmapTexture2DINTEL, (C.GLuint)(texture), (C.GLint)(level)) -} -func UpdateObjectBufferATI(buffer uint32, offset uint32, size int32, pointer unsafe.Pointer, preserve uint32) { - C.glowUpdateObjectBufferATI(gpUpdateObjectBufferATI, (C.GLuint)(buffer), (C.GLuint)(offset), (C.GLsizei)(size), pointer, (C.GLenum)(preserve)) -} - -// Installs a program object as part of current rendering state -func UseProgram(program uint32) { - C.glowUseProgram(gpUseProgram, (C.GLuint)(program)) -} -func UseProgramObjectARB(programObj uintptr) { - C.glowUseProgramObjectARB(gpUseProgramObjectARB, (C.GLhandleARB)(programObj)) -} - -// bind stages of a program object to a program pipeline -func UseProgramStages(pipeline uint32, stages uint32, program uint32) { - C.glowUseProgramStages(gpUseProgramStages, (C.GLuint)(pipeline), (C.GLbitfield)(stages), (C.GLuint)(program)) -} -func UseProgramStagesEXT(pipeline uint32, stages uint32, program uint32) { - C.glowUseProgramStagesEXT(gpUseProgramStagesEXT, (C.GLuint)(pipeline), (C.GLbitfield)(stages), (C.GLuint)(program)) -} -func UseShaderProgramEXT(xtype uint32, program uint32) { - C.glowUseShaderProgramEXT(gpUseShaderProgramEXT, (C.GLenum)(xtype), (C.GLuint)(program)) -} -func VDPAUFiniNV() { - C.glowVDPAUFiniNV(gpVDPAUFiniNV) -} -func VDPAUGetSurfaceivNV(surface uintptr, pname uint32, bufSize int32, length *int32, values *int32) { - C.glowVDPAUGetSurfaceivNV(gpVDPAUGetSurfaceivNV, (C.GLvdpauSurfaceNV)(surface), (C.GLenum)(pname), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLint)(unsafe.Pointer(values))) -} -func VDPAUInitNV(vdpDevice unsafe.Pointer, getProcAddress unsafe.Pointer) { - C.glowVDPAUInitNV(gpVDPAUInitNV, vdpDevice, getProcAddress) -} -func VDPAUIsSurfaceNV(surface uintptr) bool { - ret := C.glowVDPAUIsSurfaceNV(gpVDPAUIsSurfaceNV, (C.GLvdpauSurfaceNV)(surface)) - return ret == TRUE -} -func VDPAUMapSurfacesNV(numSurfaces int32, surfaces *uintptr) { - C.glowVDPAUMapSurfacesNV(gpVDPAUMapSurfacesNV, (C.GLsizei)(numSurfaces), (*C.GLvdpauSurfaceNV)(unsafe.Pointer(surfaces))) -} -func VDPAURegisterOutputSurfaceNV(vdpSurface unsafe.Pointer, target uint32, numTextureNames int32, textureNames *uint32) uintptr { - ret := C.glowVDPAURegisterOutputSurfaceNV(gpVDPAURegisterOutputSurfaceNV, vdpSurface, (C.GLenum)(target), (C.GLsizei)(numTextureNames), (*C.GLuint)(unsafe.Pointer(textureNames))) - return (uintptr)(ret) -} -func VDPAURegisterVideoSurfaceNV(vdpSurface unsafe.Pointer, target uint32, numTextureNames int32, textureNames *uint32) uintptr { - ret := C.glowVDPAURegisterVideoSurfaceNV(gpVDPAURegisterVideoSurfaceNV, vdpSurface, (C.GLenum)(target), (C.GLsizei)(numTextureNames), (*C.GLuint)(unsafe.Pointer(textureNames))) - return (uintptr)(ret) -} -func VDPAUSurfaceAccessNV(surface uintptr, access uint32) { - C.glowVDPAUSurfaceAccessNV(gpVDPAUSurfaceAccessNV, (C.GLvdpauSurfaceNV)(surface), (C.GLenum)(access)) -} -func VDPAUUnmapSurfacesNV(numSurface int32, surfaces *uintptr) { - C.glowVDPAUUnmapSurfacesNV(gpVDPAUUnmapSurfacesNV, (C.GLsizei)(numSurface), (*C.GLvdpauSurfaceNV)(unsafe.Pointer(surfaces))) -} -func VDPAUUnregisterSurfaceNV(surface uintptr) { - C.glowVDPAUUnregisterSurfaceNV(gpVDPAUUnregisterSurfaceNV, (C.GLvdpauSurfaceNV)(surface)) -} - -// Validates a program object -func ValidateProgram(program uint32) { - C.glowValidateProgram(gpValidateProgram, (C.GLuint)(program)) -} -func ValidateProgramARB(programObj uintptr) { - C.glowValidateProgramARB(gpValidateProgramARB, (C.GLhandleARB)(programObj)) -} - -// validate a program pipeline object against current GL state -func ValidateProgramPipeline(pipeline uint32) { - C.glowValidateProgramPipeline(gpValidateProgramPipeline, (C.GLuint)(pipeline)) -} -func ValidateProgramPipelineEXT(pipeline uint32) { - C.glowValidateProgramPipelineEXT(gpValidateProgramPipelineEXT, (C.GLuint)(pipeline)) -} -func VariantArrayObjectATI(id uint32, xtype uint32, stride int32, buffer uint32, offset uint32) { - C.glowVariantArrayObjectATI(gpVariantArrayObjectATI, (C.GLuint)(id), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLuint)(buffer), (C.GLuint)(offset)) -} -func VariantPointerEXT(id uint32, xtype uint32, stride uint32, addr unsafe.Pointer) { - C.glowVariantPointerEXT(gpVariantPointerEXT, (C.GLuint)(id), (C.GLenum)(xtype), (C.GLuint)(stride), addr) -} -func VariantbvEXT(id uint32, addr *int8) { - C.glowVariantbvEXT(gpVariantbvEXT, (C.GLuint)(id), (*C.GLbyte)(unsafe.Pointer(addr))) -} -func VariantdvEXT(id uint32, addr *float64) { - C.glowVariantdvEXT(gpVariantdvEXT, (C.GLuint)(id), (*C.GLdouble)(unsafe.Pointer(addr))) -} -func VariantfvEXT(id uint32, addr *float32) { - C.glowVariantfvEXT(gpVariantfvEXT, (C.GLuint)(id), (*C.GLfloat)(unsafe.Pointer(addr))) -} -func VariantivEXT(id uint32, addr *int32) { - C.glowVariantivEXT(gpVariantivEXT, (C.GLuint)(id), (*C.GLint)(unsafe.Pointer(addr))) -} -func VariantsvEXT(id uint32, addr *int16) { - C.glowVariantsvEXT(gpVariantsvEXT, (C.GLuint)(id), (*C.GLshort)(unsafe.Pointer(addr))) -} -func VariantubvEXT(id uint32, addr *uint8) { - C.glowVariantubvEXT(gpVariantubvEXT, (C.GLuint)(id), (*C.GLubyte)(unsafe.Pointer(addr))) -} -func VariantuivEXT(id uint32, addr *uint32) { - C.glowVariantuivEXT(gpVariantuivEXT, (C.GLuint)(id), (*C.GLuint)(unsafe.Pointer(addr))) -} -func VariantusvEXT(id uint32, addr *uint16) { - C.glowVariantusvEXT(gpVariantusvEXT, (C.GLuint)(id), (*C.GLushort)(unsafe.Pointer(addr))) -} -func Vertex2bOES(x int8, y int8) { - C.glowVertex2bOES(gpVertex2bOES, (C.GLbyte)(x), (C.GLbyte)(y)) -} -func Vertex2bvOES(coords *int8) { - C.glowVertex2bvOES(gpVertex2bvOES, (*C.GLbyte)(unsafe.Pointer(coords))) -} -func Vertex2d(x float64, y float64) { - C.glowVertex2d(gpVertex2d, (C.GLdouble)(x), (C.GLdouble)(y)) -} -func Vertex2dv(v *float64) { - C.glowVertex2dv(gpVertex2dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func Vertex2f(x float32, y float32) { - C.glowVertex2f(gpVertex2f, (C.GLfloat)(x), (C.GLfloat)(y)) -} -func Vertex2fv(v *float32) { - C.glowVertex2fv(gpVertex2fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func Vertex2hNV(x uint16, y uint16) { - C.glowVertex2hNV(gpVertex2hNV, (C.GLhalfNV)(x), (C.GLhalfNV)(y)) -} -func Vertex2hvNV(v *uint16) { - C.glowVertex2hvNV(gpVertex2hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func Vertex2i(x int32, y int32) { - C.glowVertex2i(gpVertex2i, (C.GLint)(x), (C.GLint)(y)) -} -func Vertex2iv(v *int32) { - C.glowVertex2iv(gpVertex2iv, (*C.GLint)(unsafe.Pointer(v))) -} -func Vertex2s(x int16, y int16) { - C.glowVertex2s(gpVertex2s, (C.GLshort)(x), (C.GLshort)(y)) -} -func Vertex2sv(v *int16) { - C.glowVertex2sv(gpVertex2sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func Vertex2xOES(x int32) { - C.glowVertex2xOES(gpVertex2xOES, (C.GLfixed)(x)) -} -func Vertex2xvOES(coords *int32) { - C.glowVertex2xvOES(gpVertex2xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func Vertex3bOES(x int8, y int8, z int8) { - C.glowVertex3bOES(gpVertex3bOES, (C.GLbyte)(x), (C.GLbyte)(y), (C.GLbyte)(z)) -} -func Vertex3bvOES(coords *int8) { - C.glowVertex3bvOES(gpVertex3bvOES, (*C.GLbyte)(unsafe.Pointer(coords))) -} -func Vertex3d(x float64, y float64, z float64) { - C.glowVertex3d(gpVertex3d, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func Vertex3dv(v *float64) { - C.glowVertex3dv(gpVertex3dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func Vertex3f(x float32, y float32, z float32) { - C.glowVertex3f(gpVertex3f, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func Vertex3fv(v *float32) { - C.glowVertex3fv(gpVertex3fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func Vertex3hNV(x uint16, y uint16, z uint16) { - C.glowVertex3hNV(gpVertex3hNV, (C.GLhalfNV)(x), (C.GLhalfNV)(y), (C.GLhalfNV)(z)) -} -func Vertex3hvNV(v *uint16) { - C.glowVertex3hvNV(gpVertex3hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func Vertex3i(x int32, y int32, z int32) { - C.glowVertex3i(gpVertex3i, (C.GLint)(x), (C.GLint)(y), (C.GLint)(z)) -} -func Vertex3iv(v *int32) { - C.glowVertex3iv(gpVertex3iv, (*C.GLint)(unsafe.Pointer(v))) -} -func Vertex3s(x int16, y int16, z int16) { - C.glowVertex3s(gpVertex3s, (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func Vertex3sv(v *int16) { - C.glowVertex3sv(gpVertex3sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func Vertex3xOES(x int32, y int32) { - C.glowVertex3xOES(gpVertex3xOES, (C.GLfixed)(x), (C.GLfixed)(y)) -} -func Vertex3xvOES(coords *int32) { - C.glowVertex3xvOES(gpVertex3xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func Vertex4bOES(x int8, y int8, z int8, w int8) { - C.glowVertex4bOES(gpVertex4bOES, (C.GLbyte)(x), (C.GLbyte)(y), (C.GLbyte)(z), (C.GLbyte)(w)) -} -func Vertex4bvOES(coords *int8) { - C.glowVertex4bvOES(gpVertex4bvOES, (*C.GLbyte)(unsafe.Pointer(coords))) -} -func Vertex4d(x float64, y float64, z float64, w float64) { - C.glowVertex4d(gpVertex4d, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func Vertex4dv(v *float64) { - C.glowVertex4dv(gpVertex4dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func Vertex4f(x float32, y float32, z float32, w float32) { - C.glowVertex4f(gpVertex4f, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func Vertex4fv(v *float32) { - C.glowVertex4fv(gpVertex4fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func Vertex4hNV(x uint16, y uint16, z uint16, w uint16) { - C.glowVertex4hNV(gpVertex4hNV, (C.GLhalfNV)(x), (C.GLhalfNV)(y), (C.GLhalfNV)(z), (C.GLhalfNV)(w)) -} -func Vertex4hvNV(v *uint16) { - C.glowVertex4hvNV(gpVertex4hvNV, (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func Vertex4i(x int32, y int32, z int32, w int32) { - C.glowVertex4i(gpVertex4i, (C.GLint)(x), (C.GLint)(y), (C.GLint)(z), (C.GLint)(w)) -} -func Vertex4iv(v *int32) { - C.glowVertex4iv(gpVertex4iv, (*C.GLint)(unsafe.Pointer(v))) -} -func Vertex4s(x int16, y int16, z int16, w int16) { - C.glowVertex4s(gpVertex4s, (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z), (C.GLshort)(w)) -} -func Vertex4sv(v *int16) { - C.glowVertex4sv(gpVertex4sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func Vertex4xOES(x int32, y int32, z int32) { - C.glowVertex4xOES(gpVertex4xOES, (C.GLfixed)(x), (C.GLfixed)(y), (C.GLfixed)(z)) -} -func Vertex4xvOES(coords *int32) { - C.glowVertex4xvOES(gpVertex4xvOES, (*C.GLfixed)(unsafe.Pointer(coords))) -} -func VertexArrayAttribBinding(vaobj uint32, attribindex uint32, bindingindex uint32) { - C.glowVertexArrayAttribBinding(gpVertexArrayAttribBinding, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLuint)(bindingindex)) -} - -// specify the organization of vertex arrays -func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) { - C.glowVertexArrayAttribFormat(gpVertexArrayAttribFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset)) -} -func VertexArrayAttribIFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, relativeoffset uint32) { - C.glowVertexArrayAttribIFormat(gpVertexArrayAttribIFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLuint)(relativeoffset)) -} -func VertexArrayAttribLFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, relativeoffset uint32) { - C.glowVertexArrayAttribLFormat(gpVertexArrayAttribLFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLuint)(relativeoffset)) -} -func VertexArrayBindVertexBufferEXT(vaobj uint32, bindingindex uint32, buffer uint32, offset int, stride int32) { - C.glowVertexArrayBindVertexBufferEXT(gpVertexArrayBindVertexBufferEXT, (C.GLuint)(vaobj), (C.GLuint)(bindingindex), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(stride)) -} - -// modify the rate at which generic vertex attributes advance -func VertexArrayBindingDivisor(vaobj uint32, bindingindex uint32, divisor uint32) { - C.glowVertexArrayBindingDivisor(gpVertexArrayBindingDivisor, (C.GLuint)(vaobj), (C.GLuint)(bindingindex), (C.GLuint)(divisor)) -} -func VertexArrayColorOffsetEXT(vaobj uint32, buffer uint32, size int32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayColorOffsetEXT(gpVertexArrayColorOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayEdgeFlagOffsetEXT(vaobj uint32, buffer uint32, stride int32, offset int) { - C.glowVertexArrayEdgeFlagOffsetEXT(gpVertexArrayEdgeFlagOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} - -// configures element array buffer binding of a vertex array object -func VertexArrayElementBuffer(vaobj uint32, buffer uint32) { - C.glowVertexArrayElementBuffer(gpVertexArrayElementBuffer, (C.GLuint)(vaobj), (C.GLuint)(buffer)) -} -func VertexArrayFogCoordOffsetEXT(vaobj uint32, buffer uint32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayFogCoordOffsetEXT(gpVertexArrayFogCoordOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayIndexOffsetEXT(vaobj uint32, buffer uint32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayIndexOffsetEXT(gpVertexArrayIndexOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayMultiTexCoordOffsetEXT(vaobj uint32, buffer uint32, texunit uint32, size int32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayMultiTexCoordOffsetEXT(gpVertexArrayMultiTexCoordOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLenum)(texunit), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayNormalOffsetEXT(vaobj uint32, buffer uint32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayNormalOffsetEXT(gpVertexArrayNormalOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayParameteriAPPLE(pname uint32, param int32) { - C.glowVertexArrayParameteriAPPLE(gpVertexArrayParameteriAPPLE, (C.GLenum)(pname), (C.GLint)(param)) -} -func VertexArrayRangeAPPLE(length int32, pointer unsafe.Pointer) { - C.glowVertexArrayRangeAPPLE(gpVertexArrayRangeAPPLE, (C.GLsizei)(length), pointer) -} -func VertexArrayRangeNV(length int32, pointer unsafe.Pointer) { - C.glowVertexArrayRangeNV(gpVertexArrayRangeNV, (C.GLsizei)(length), pointer) -} -func VertexArraySecondaryColorOffsetEXT(vaobj uint32, buffer uint32, size int32, xtype uint32, stride int32, offset int) { - C.glowVertexArraySecondaryColorOffsetEXT(gpVertexArraySecondaryColorOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayTexCoordOffsetEXT(vaobj uint32, buffer uint32, size int32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayTexCoordOffsetEXT(gpVertexArrayTexCoordOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayVertexAttribBindingEXT(vaobj uint32, attribindex uint32, bindingindex uint32) { - C.glowVertexArrayVertexAttribBindingEXT(gpVertexArrayVertexAttribBindingEXT, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLuint)(bindingindex)) -} -func VertexArrayVertexAttribDivisorEXT(vaobj uint32, index uint32, divisor uint32) { - C.glowVertexArrayVertexAttribDivisorEXT(gpVertexArrayVertexAttribDivisorEXT, (C.GLuint)(vaobj), (C.GLuint)(index), (C.GLuint)(divisor)) -} -func VertexArrayVertexAttribFormatEXT(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) { - C.glowVertexArrayVertexAttribFormatEXT(gpVertexArrayVertexAttribFormatEXT, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset)) -} -func VertexArrayVertexAttribIFormatEXT(vaobj uint32, attribindex uint32, size int32, xtype uint32, relativeoffset uint32) { - C.glowVertexArrayVertexAttribIFormatEXT(gpVertexArrayVertexAttribIFormatEXT, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLuint)(relativeoffset)) -} -func VertexArrayVertexAttribIOffsetEXT(vaobj uint32, buffer uint32, index uint32, size int32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayVertexAttribIOffsetEXT(gpVertexArrayVertexAttribIOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayVertexAttribLFormatEXT(vaobj uint32, attribindex uint32, size int32, xtype uint32, relativeoffset uint32) { - C.glowVertexArrayVertexAttribLFormatEXT(gpVertexArrayVertexAttribLFormatEXT, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLuint)(relativeoffset)) -} -func VertexArrayVertexAttribLOffsetEXT(vaobj uint32, buffer uint32, index uint32, size int32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayVertexAttribLOffsetEXT(gpVertexArrayVertexAttribLOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayVertexAttribOffsetEXT(vaobj uint32, buffer uint32, index uint32, size int32, xtype uint32, normalized bool, stride int32, offset int) { - C.glowVertexArrayVertexAttribOffsetEXT(gpVertexArrayVertexAttribOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexArrayVertexBindingDivisorEXT(vaobj uint32, bindingindex uint32, divisor uint32) { - C.glowVertexArrayVertexBindingDivisorEXT(gpVertexArrayVertexBindingDivisorEXT, (C.GLuint)(vaobj), (C.GLuint)(bindingindex), (C.GLuint)(divisor)) -} - -// bind a buffer to a vertex buffer bind point -func VertexArrayVertexBuffer(vaobj uint32, bindingindex uint32, buffer uint32, offset int, stride int32) { - C.glowVertexArrayVertexBuffer(gpVertexArrayVertexBuffer, (C.GLuint)(vaobj), (C.GLuint)(bindingindex), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(stride)) -} - -// attach multiple buffer objects to a vertex array object -func VertexArrayVertexBuffers(vaobj uint32, first uint32, count int32, buffers *uint32, offsets *int, strides *int32) { - C.glowVertexArrayVertexBuffers(gpVertexArrayVertexBuffers, (C.GLuint)(vaobj), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizei)(unsafe.Pointer(strides))) -} -func VertexArrayVertexOffsetEXT(vaobj uint32, buffer uint32, size int32, xtype uint32, stride int32, offset int) { - C.glowVertexArrayVertexOffsetEXT(gpVertexArrayVertexOffsetEXT, (C.GLuint)(vaobj), (C.GLuint)(buffer), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLintptr)(offset)) -} -func VertexAttrib1d(index uint32, x float64) { - C.glowVertexAttrib1d(gpVertexAttrib1d, (C.GLuint)(index), (C.GLdouble)(x)) -} -func VertexAttrib1dARB(index uint32, x float64) { - C.glowVertexAttrib1dARB(gpVertexAttrib1dARB, (C.GLuint)(index), (C.GLdouble)(x)) -} -func VertexAttrib1dNV(index uint32, x float64) { - C.glowVertexAttrib1dNV(gpVertexAttrib1dNV, (C.GLuint)(index), (C.GLdouble)(x)) -} -func VertexAttrib1dv(index uint32, v *float64) { - C.glowVertexAttrib1dv(gpVertexAttrib1dv, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib1dvARB(index uint32, v *float64) { - C.glowVertexAttrib1dvARB(gpVertexAttrib1dvARB, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib1dvNV(index uint32, v *float64) { - C.glowVertexAttrib1dvNV(gpVertexAttrib1dvNV, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib1f(index uint32, x float32) { - C.glowVertexAttrib1f(gpVertexAttrib1f, (C.GLuint)(index), (C.GLfloat)(x)) -} -func VertexAttrib1fARB(index uint32, x float32) { - C.glowVertexAttrib1fARB(gpVertexAttrib1fARB, (C.GLuint)(index), (C.GLfloat)(x)) -} -func VertexAttrib1fNV(index uint32, x float32) { - C.glowVertexAttrib1fNV(gpVertexAttrib1fNV, (C.GLuint)(index), (C.GLfloat)(x)) -} -func VertexAttrib1fv(index uint32, v *float32) { - C.glowVertexAttrib1fv(gpVertexAttrib1fv, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib1fvARB(index uint32, v *float32) { - C.glowVertexAttrib1fvARB(gpVertexAttrib1fvARB, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib1fvNV(index uint32, v *float32) { - C.glowVertexAttrib1fvNV(gpVertexAttrib1fvNV, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib1hNV(index uint32, x uint16) { - C.glowVertexAttrib1hNV(gpVertexAttrib1hNV, (C.GLuint)(index), (C.GLhalfNV)(x)) -} -func VertexAttrib1hvNV(index uint32, v *uint16) { - C.glowVertexAttrib1hvNV(gpVertexAttrib1hvNV, (C.GLuint)(index), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func VertexAttrib1s(index uint32, x int16) { - C.glowVertexAttrib1s(gpVertexAttrib1s, (C.GLuint)(index), (C.GLshort)(x)) -} -func VertexAttrib1sARB(index uint32, x int16) { - C.glowVertexAttrib1sARB(gpVertexAttrib1sARB, (C.GLuint)(index), (C.GLshort)(x)) -} -func VertexAttrib1sNV(index uint32, x int16) { - C.glowVertexAttrib1sNV(gpVertexAttrib1sNV, (C.GLuint)(index), (C.GLshort)(x)) -} -func VertexAttrib1sv(index uint32, v *int16) { - C.glowVertexAttrib1sv(gpVertexAttrib1sv, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib1svARB(index uint32, v *int16) { - C.glowVertexAttrib1svARB(gpVertexAttrib1svARB, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib1svNV(index uint32, v *int16) { - C.glowVertexAttrib1svNV(gpVertexAttrib1svNV, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib2d(index uint32, x float64, y float64) { - C.glowVertexAttrib2d(gpVertexAttrib2d, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y)) -} -func VertexAttrib2dARB(index uint32, x float64, y float64) { - C.glowVertexAttrib2dARB(gpVertexAttrib2dARB, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y)) -} -func VertexAttrib2dNV(index uint32, x float64, y float64) { - C.glowVertexAttrib2dNV(gpVertexAttrib2dNV, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y)) -} -func VertexAttrib2dv(index uint32, v *float64) { - C.glowVertexAttrib2dv(gpVertexAttrib2dv, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib2dvARB(index uint32, v *float64) { - C.glowVertexAttrib2dvARB(gpVertexAttrib2dvARB, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib2dvNV(index uint32, v *float64) { - C.glowVertexAttrib2dvNV(gpVertexAttrib2dvNV, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib2f(index uint32, x float32, y float32) { - C.glowVertexAttrib2f(gpVertexAttrib2f, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y)) -} -func VertexAttrib2fARB(index uint32, x float32, y float32) { - C.glowVertexAttrib2fARB(gpVertexAttrib2fARB, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y)) -} -func VertexAttrib2fNV(index uint32, x float32, y float32) { - C.glowVertexAttrib2fNV(gpVertexAttrib2fNV, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y)) -} -func VertexAttrib2fv(index uint32, v *float32) { - C.glowVertexAttrib2fv(gpVertexAttrib2fv, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib2fvARB(index uint32, v *float32) { - C.glowVertexAttrib2fvARB(gpVertexAttrib2fvARB, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib2fvNV(index uint32, v *float32) { - C.glowVertexAttrib2fvNV(gpVertexAttrib2fvNV, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib2hNV(index uint32, x uint16, y uint16) { - C.glowVertexAttrib2hNV(gpVertexAttrib2hNV, (C.GLuint)(index), (C.GLhalfNV)(x), (C.GLhalfNV)(y)) -} -func VertexAttrib2hvNV(index uint32, v *uint16) { - C.glowVertexAttrib2hvNV(gpVertexAttrib2hvNV, (C.GLuint)(index), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func VertexAttrib2s(index uint32, x int16, y int16) { - C.glowVertexAttrib2s(gpVertexAttrib2s, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y)) -} -func VertexAttrib2sARB(index uint32, x int16, y int16) { - C.glowVertexAttrib2sARB(gpVertexAttrib2sARB, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y)) -} -func VertexAttrib2sNV(index uint32, x int16, y int16) { - C.glowVertexAttrib2sNV(gpVertexAttrib2sNV, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y)) -} -func VertexAttrib2sv(index uint32, v *int16) { - C.glowVertexAttrib2sv(gpVertexAttrib2sv, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib2svARB(index uint32, v *int16) { - C.glowVertexAttrib2svARB(gpVertexAttrib2svARB, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib2svNV(index uint32, v *int16) { - C.glowVertexAttrib2svNV(gpVertexAttrib2svNV, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib3d(index uint32, x float64, y float64, z float64) { - C.glowVertexAttrib3d(gpVertexAttrib3d, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func VertexAttrib3dARB(index uint32, x float64, y float64, z float64) { - C.glowVertexAttrib3dARB(gpVertexAttrib3dARB, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func VertexAttrib3dNV(index uint32, x float64, y float64, z float64) { - C.glowVertexAttrib3dNV(gpVertexAttrib3dNV, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func VertexAttrib3dv(index uint32, v *float64) { - C.glowVertexAttrib3dv(gpVertexAttrib3dv, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib3dvARB(index uint32, v *float64) { - C.glowVertexAttrib3dvARB(gpVertexAttrib3dvARB, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib3dvNV(index uint32, v *float64) { - C.glowVertexAttrib3dvNV(gpVertexAttrib3dvNV, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib3f(index uint32, x float32, y float32, z float32) { - C.glowVertexAttrib3f(gpVertexAttrib3f, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func VertexAttrib3fARB(index uint32, x float32, y float32, z float32) { - C.glowVertexAttrib3fARB(gpVertexAttrib3fARB, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func VertexAttrib3fNV(index uint32, x float32, y float32, z float32) { - C.glowVertexAttrib3fNV(gpVertexAttrib3fNV, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func VertexAttrib3fv(index uint32, v *float32) { - C.glowVertexAttrib3fv(gpVertexAttrib3fv, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib3fvARB(index uint32, v *float32) { - C.glowVertexAttrib3fvARB(gpVertexAttrib3fvARB, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib3fvNV(index uint32, v *float32) { - C.glowVertexAttrib3fvNV(gpVertexAttrib3fvNV, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib3hNV(index uint32, x uint16, y uint16, z uint16) { - C.glowVertexAttrib3hNV(gpVertexAttrib3hNV, (C.GLuint)(index), (C.GLhalfNV)(x), (C.GLhalfNV)(y), (C.GLhalfNV)(z)) -} -func VertexAttrib3hvNV(index uint32, v *uint16) { - C.glowVertexAttrib3hvNV(gpVertexAttrib3hvNV, (C.GLuint)(index), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func VertexAttrib3s(index uint32, x int16, y int16, z int16) { - C.glowVertexAttrib3s(gpVertexAttrib3s, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func VertexAttrib3sARB(index uint32, x int16, y int16, z int16) { - C.glowVertexAttrib3sARB(gpVertexAttrib3sARB, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func VertexAttrib3sNV(index uint32, x int16, y int16, z int16) { - C.glowVertexAttrib3sNV(gpVertexAttrib3sNV, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func VertexAttrib3sv(index uint32, v *int16) { - C.glowVertexAttrib3sv(gpVertexAttrib3sv, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib3svARB(index uint32, v *int16) { - C.glowVertexAttrib3svARB(gpVertexAttrib3svARB, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib3svNV(index uint32, v *int16) { - C.glowVertexAttrib3svNV(gpVertexAttrib3svNV, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib4Nbv(index uint32, v *int8) { - C.glowVertexAttrib4Nbv(gpVertexAttrib4Nbv, (C.GLuint)(index), (*C.GLbyte)(unsafe.Pointer(v))) -} -func VertexAttrib4NbvARB(index uint32, v *int8) { - C.glowVertexAttrib4NbvARB(gpVertexAttrib4NbvARB, (C.GLuint)(index), (*C.GLbyte)(unsafe.Pointer(v))) -} -func VertexAttrib4Niv(index uint32, v *int32) { - C.glowVertexAttrib4Niv(gpVertexAttrib4Niv, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func VertexAttrib4NivARB(index uint32, v *int32) { - C.glowVertexAttrib4NivARB(gpVertexAttrib4NivARB, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func VertexAttrib4Nsv(index uint32, v *int16) { - C.glowVertexAttrib4Nsv(gpVertexAttrib4Nsv, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib4NsvARB(index uint32, v *int16) { - C.glowVertexAttrib4NsvARB(gpVertexAttrib4NsvARB, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib4Nub(index uint32, x uint8, y uint8, z uint8, w uint8) { - C.glowVertexAttrib4Nub(gpVertexAttrib4Nub, (C.GLuint)(index), (C.GLubyte)(x), (C.GLubyte)(y), (C.GLubyte)(z), (C.GLubyte)(w)) -} -func VertexAttrib4NubARB(index uint32, x uint8, y uint8, z uint8, w uint8) { - C.glowVertexAttrib4NubARB(gpVertexAttrib4NubARB, (C.GLuint)(index), (C.GLubyte)(x), (C.GLubyte)(y), (C.GLubyte)(z), (C.GLubyte)(w)) -} -func VertexAttrib4Nubv(index uint32, v *uint8) { - C.glowVertexAttrib4Nubv(gpVertexAttrib4Nubv, (C.GLuint)(index), (*C.GLubyte)(unsafe.Pointer(v))) -} -func VertexAttrib4NubvARB(index uint32, v *uint8) { - C.glowVertexAttrib4NubvARB(gpVertexAttrib4NubvARB, (C.GLuint)(index), (*C.GLubyte)(unsafe.Pointer(v))) -} -func VertexAttrib4Nuiv(index uint32, v *uint32) { - C.glowVertexAttrib4Nuiv(gpVertexAttrib4Nuiv, (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(v))) -} -func VertexAttrib4NuivARB(index uint32, v *uint32) { - C.glowVertexAttrib4NuivARB(gpVertexAttrib4NuivARB, (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(v))) -} -func VertexAttrib4Nusv(index uint32, v *uint16) { - C.glowVertexAttrib4Nusv(gpVertexAttrib4Nusv, (C.GLuint)(index), (*C.GLushort)(unsafe.Pointer(v))) -} -func VertexAttrib4NusvARB(index uint32, v *uint16) { - C.glowVertexAttrib4NusvARB(gpVertexAttrib4NusvARB, (C.GLuint)(index), (*C.GLushort)(unsafe.Pointer(v))) -} -func VertexAttrib4bv(index uint32, v *int8) { - C.glowVertexAttrib4bv(gpVertexAttrib4bv, (C.GLuint)(index), (*C.GLbyte)(unsafe.Pointer(v))) -} -func VertexAttrib4bvARB(index uint32, v *int8) { - C.glowVertexAttrib4bvARB(gpVertexAttrib4bvARB, (C.GLuint)(index), (*C.GLbyte)(unsafe.Pointer(v))) -} -func VertexAttrib4d(index uint32, x float64, y float64, z float64, w float64) { - C.glowVertexAttrib4d(gpVertexAttrib4d, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func VertexAttrib4dARB(index uint32, x float64, y float64, z float64, w float64) { - C.glowVertexAttrib4dARB(gpVertexAttrib4dARB, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func VertexAttrib4dNV(index uint32, x float64, y float64, z float64, w float64) { - C.glowVertexAttrib4dNV(gpVertexAttrib4dNV, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func VertexAttrib4dv(index uint32, v *float64) { - C.glowVertexAttrib4dv(gpVertexAttrib4dv, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib4dvARB(index uint32, v *float64) { - C.glowVertexAttrib4dvARB(gpVertexAttrib4dvARB, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib4dvNV(index uint32, v *float64) { - C.glowVertexAttrib4dvNV(gpVertexAttrib4dvNV, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttrib4f(index uint32, x float32, y float32, z float32, w float32) { - C.glowVertexAttrib4f(gpVertexAttrib4f, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func VertexAttrib4fARB(index uint32, x float32, y float32, z float32, w float32) { - C.glowVertexAttrib4fARB(gpVertexAttrib4fARB, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func VertexAttrib4fNV(index uint32, x float32, y float32, z float32, w float32) { - C.glowVertexAttrib4fNV(gpVertexAttrib4fNV, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func VertexAttrib4fv(index uint32, v *float32) { - C.glowVertexAttrib4fv(gpVertexAttrib4fv, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib4fvARB(index uint32, v *float32) { - C.glowVertexAttrib4fvARB(gpVertexAttrib4fvARB, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib4fvNV(index uint32, v *float32) { - C.glowVertexAttrib4fvNV(gpVertexAttrib4fvNV, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttrib4hNV(index uint32, x uint16, y uint16, z uint16, w uint16) { - C.glowVertexAttrib4hNV(gpVertexAttrib4hNV, (C.GLuint)(index), (C.GLhalfNV)(x), (C.GLhalfNV)(y), (C.GLhalfNV)(z), (C.GLhalfNV)(w)) -} -func VertexAttrib4hvNV(index uint32, v *uint16) { - C.glowVertexAttrib4hvNV(gpVertexAttrib4hvNV, (C.GLuint)(index), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func VertexAttrib4iv(index uint32, v *int32) { - C.glowVertexAttrib4iv(gpVertexAttrib4iv, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func VertexAttrib4ivARB(index uint32, v *int32) { - C.glowVertexAttrib4ivARB(gpVertexAttrib4ivARB, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func VertexAttrib4s(index uint32, x int16, y int16, z int16, w int16) { - C.glowVertexAttrib4s(gpVertexAttrib4s, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z), (C.GLshort)(w)) -} -func VertexAttrib4sARB(index uint32, x int16, y int16, z int16, w int16) { - C.glowVertexAttrib4sARB(gpVertexAttrib4sARB, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z), (C.GLshort)(w)) -} -func VertexAttrib4sNV(index uint32, x int16, y int16, z int16, w int16) { - C.glowVertexAttrib4sNV(gpVertexAttrib4sNV, (C.GLuint)(index), (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z), (C.GLshort)(w)) -} -func VertexAttrib4sv(index uint32, v *int16) { - C.glowVertexAttrib4sv(gpVertexAttrib4sv, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib4svARB(index uint32, v *int16) { - C.glowVertexAttrib4svARB(gpVertexAttrib4svARB, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib4svNV(index uint32, v *int16) { - C.glowVertexAttrib4svNV(gpVertexAttrib4svNV, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttrib4ubNV(index uint32, x uint8, y uint8, z uint8, w uint8) { - C.glowVertexAttrib4ubNV(gpVertexAttrib4ubNV, (C.GLuint)(index), (C.GLubyte)(x), (C.GLubyte)(y), (C.GLubyte)(z), (C.GLubyte)(w)) -} -func VertexAttrib4ubv(index uint32, v *uint8) { - C.glowVertexAttrib4ubv(gpVertexAttrib4ubv, (C.GLuint)(index), (*C.GLubyte)(unsafe.Pointer(v))) -} -func VertexAttrib4ubvARB(index uint32, v *uint8) { - C.glowVertexAttrib4ubvARB(gpVertexAttrib4ubvARB, (C.GLuint)(index), (*C.GLubyte)(unsafe.Pointer(v))) -} -func VertexAttrib4ubvNV(index uint32, v *uint8) { - C.glowVertexAttrib4ubvNV(gpVertexAttrib4ubvNV, (C.GLuint)(index), (*C.GLubyte)(unsafe.Pointer(v))) -} -func VertexAttrib4uiv(index uint32, v *uint32) { - C.glowVertexAttrib4uiv(gpVertexAttrib4uiv, (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(v))) -} -func VertexAttrib4uivARB(index uint32, v *uint32) { - C.glowVertexAttrib4uivARB(gpVertexAttrib4uivARB, (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(v))) -} -func VertexAttrib4usv(index uint32, v *uint16) { - C.glowVertexAttrib4usv(gpVertexAttrib4usv, (C.GLuint)(index), (*C.GLushort)(unsafe.Pointer(v))) -} -func VertexAttrib4usvARB(index uint32, v *uint16) { - C.glowVertexAttrib4usvARB(gpVertexAttrib4usvARB, (C.GLuint)(index), (*C.GLushort)(unsafe.Pointer(v))) -} -func VertexAttribArrayObjectATI(index uint32, size int32, xtype uint32, normalized bool, stride int32, buffer uint32, offset uint32) { - C.glowVertexAttribArrayObjectATI(gpVertexAttribArrayObjectATI, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), (C.GLuint)(buffer), (C.GLuint)(offset)) -} - -// associate a vertex attribute and a vertex buffer binding for a vertex array object -func VertexAttribBinding(attribindex uint32, bindingindex uint32) { - C.glowVertexAttribBinding(gpVertexAttribBinding, (C.GLuint)(attribindex), (C.GLuint)(bindingindex)) -} -func VertexAttribDivisorARB(index uint32, divisor uint32) { - C.glowVertexAttribDivisorARB(gpVertexAttribDivisorARB, (C.GLuint)(index), (C.GLuint)(divisor)) -} - -// specify the organization of vertex arrays -func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) { - C.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset)) -} -func VertexAttribFormatNV(index uint32, size int32, xtype uint32, normalized bool, stride int32) { - C.glowVertexAttribFormatNV(gpVertexAttribFormatNV, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride)) -} -func VertexAttribI1iEXT(index uint32, x int32) { - C.glowVertexAttribI1iEXT(gpVertexAttribI1iEXT, (C.GLuint)(index), (C.GLint)(x)) -} -func VertexAttribI1ivEXT(index uint32, v *int32) { - C.glowVertexAttribI1ivEXT(gpVertexAttribI1ivEXT, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func VertexAttribI1uiEXT(index uint32, x uint32) { - C.glowVertexAttribI1uiEXT(gpVertexAttribI1uiEXT, (C.GLuint)(index), (C.GLuint)(x)) -} -func VertexAttribI1uivEXT(index uint32, v *uint32) { - C.glowVertexAttribI1uivEXT(gpVertexAttribI1uivEXT, (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(v))) -} -func VertexAttribI2iEXT(index uint32, x int32, y int32) { - C.glowVertexAttribI2iEXT(gpVertexAttribI2iEXT, (C.GLuint)(index), (C.GLint)(x), (C.GLint)(y)) -} -func VertexAttribI2ivEXT(index uint32, v *int32) { - C.glowVertexAttribI2ivEXT(gpVertexAttribI2ivEXT, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func VertexAttribI2uiEXT(index uint32, x uint32, y uint32) { - C.glowVertexAttribI2uiEXT(gpVertexAttribI2uiEXT, (C.GLuint)(index), (C.GLuint)(x), (C.GLuint)(y)) -} -func VertexAttribI2uivEXT(index uint32, v *uint32) { - C.glowVertexAttribI2uivEXT(gpVertexAttribI2uivEXT, (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(v))) -} -func VertexAttribI3iEXT(index uint32, x int32, y int32, z int32) { - C.glowVertexAttribI3iEXT(gpVertexAttribI3iEXT, (C.GLuint)(index), (C.GLint)(x), (C.GLint)(y), (C.GLint)(z)) -} -func VertexAttribI3ivEXT(index uint32, v *int32) { - C.glowVertexAttribI3ivEXT(gpVertexAttribI3ivEXT, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func VertexAttribI3uiEXT(index uint32, x uint32, y uint32, z uint32) { - C.glowVertexAttribI3uiEXT(gpVertexAttribI3uiEXT, (C.GLuint)(index), (C.GLuint)(x), (C.GLuint)(y), (C.GLuint)(z)) -} -func VertexAttribI3uivEXT(index uint32, v *uint32) { - C.glowVertexAttribI3uivEXT(gpVertexAttribI3uivEXT, (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(v))) -} -func VertexAttribI4bvEXT(index uint32, v *int8) { - C.glowVertexAttribI4bvEXT(gpVertexAttribI4bvEXT, (C.GLuint)(index), (*C.GLbyte)(unsafe.Pointer(v))) -} -func VertexAttribI4iEXT(index uint32, x int32, y int32, z int32, w int32) { - C.glowVertexAttribI4iEXT(gpVertexAttribI4iEXT, (C.GLuint)(index), (C.GLint)(x), (C.GLint)(y), (C.GLint)(z), (C.GLint)(w)) -} -func VertexAttribI4ivEXT(index uint32, v *int32) { - C.glowVertexAttribI4ivEXT(gpVertexAttribI4ivEXT, (C.GLuint)(index), (*C.GLint)(unsafe.Pointer(v))) -} -func VertexAttribI4svEXT(index uint32, v *int16) { - C.glowVertexAttribI4svEXT(gpVertexAttribI4svEXT, (C.GLuint)(index), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttribI4ubvEXT(index uint32, v *uint8) { - C.glowVertexAttribI4ubvEXT(gpVertexAttribI4ubvEXT, (C.GLuint)(index), (*C.GLubyte)(unsafe.Pointer(v))) -} -func VertexAttribI4uiEXT(index uint32, x uint32, y uint32, z uint32, w uint32) { - C.glowVertexAttribI4uiEXT(gpVertexAttribI4uiEXT, (C.GLuint)(index), (C.GLuint)(x), (C.GLuint)(y), (C.GLuint)(z), (C.GLuint)(w)) -} -func VertexAttribI4uivEXT(index uint32, v *uint32) { - C.glowVertexAttribI4uivEXT(gpVertexAttribI4uivEXT, (C.GLuint)(index), (*C.GLuint)(unsafe.Pointer(v))) -} -func VertexAttribI4usvEXT(index uint32, v *uint16) { - C.glowVertexAttribI4usvEXT(gpVertexAttribI4usvEXT, (C.GLuint)(index), (*C.GLushort)(unsafe.Pointer(v))) -} -func VertexAttribIFormat(attribindex uint32, size int32, xtype uint32, relativeoffset uint32) { - C.glowVertexAttribIFormat(gpVertexAttribIFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLuint)(relativeoffset)) -} -func VertexAttribIFormatNV(index uint32, size int32, xtype uint32, stride int32) { - C.glowVertexAttribIFormatNV(gpVertexAttribIFormatNV, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride)) -} -func VertexAttribIPointerEXT(index uint32, size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowVertexAttribIPointerEXT(gpVertexAttribIPointerEXT, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func VertexAttribL1d(index uint32, x float64) { - C.glowVertexAttribL1d(gpVertexAttribL1d, (C.GLuint)(index), (C.GLdouble)(x)) -} -func VertexAttribL1dEXT(index uint32, x float64) { - C.glowVertexAttribL1dEXT(gpVertexAttribL1dEXT, (C.GLuint)(index), (C.GLdouble)(x)) -} -func VertexAttribL1dv(index uint32, v *float64) { - C.glowVertexAttribL1dv(gpVertexAttribL1dv, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribL1dvEXT(index uint32, v *float64) { - C.glowVertexAttribL1dvEXT(gpVertexAttribL1dvEXT, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribL1i64NV(index uint32, x int64) { - C.glowVertexAttribL1i64NV(gpVertexAttribL1i64NV, (C.GLuint)(index), (C.GLint64EXT)(x)) -} -func VertexAttribL1i64vNV(index uint32, v *int64) { - C.glowVertexAttribL1i64vNV(gpVertexAttribL1i64vNV, (C.GLuint)(index), (*C.GLint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribL1ui64ARB(index uint32, x uint64) { - C.glowVertexAttribL1ui64ARB(gpVertexAttribL1ui64ARB, (C.GLuint)(index), (C.GLuint64EXT)(x)) -} -func VertexAttribL1ui64NV(index uint32, x uint64) { - C.glowVertexAttribL1ui64NV(gpVertexAttribL1ui64NV, (C.GLuint)(index), (C.GLuint64EXT)(x)) -} -func VertexAttribL1ui64vARB(index uint32, v *uint64) { - C.glowVertexAttribL1ui64vARB(gpVertexAttribL1ui64vARB, (C.GLuint)(index), (*C.GLuint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribL1ui64vNV(index uint32, v *uint64) { - C.glowVertexAttribL1ui64vNV(gpVertexAttribL1ui64vNV, (C.GLuint)(index), (*C.GLuint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribL2d(index uint32, x float64, y float64) { - C.glowVertexAttribL2d(gpVertexAttribL2d, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y)) -} -func VertexAttribL2dEXT(index uint32, x float64, y float64) { - C.glowVertexAttribL2dEXT(gpVertexAttribL2dEXT, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y)) -} -func VertexAttribL2dv(index uint32, v *float64) { - C.glowVertexAttribL2dv(gpVertexAttribL2dv, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribL2dvEXT(index uint32, v *float64) { - C.glowVertexAttribL2dvEXT(gpVertexAttribL2dvEXT, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribL2i64NV(index uint32, x int64, y int64) { - C.glowVertexAttribL2i64NV(gpVertexAttribL2i64NV, (C.GLuint)(index), (C.GLint64EXT)(x), (C.GLint64EXT)(y)) -} -func VertexAttribL2i64vNV(index uint32, v *int64) { - C.glowVertexAttribL2i64vNV(gpVertexAttribL2i64vNV, (C.GLuint)(index), (*C.GLint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribL2ui64NV(index uint32, x uint64, y uint64) { - C.glowVertexAttribL2ui64NV(gpVertexAttribL2ui64NV, (C.GLuint)(index), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y)) -} -func VertexAttribL2ui64vNV(index uint32, v *uint64) { - C.glowVertexAttribL2ui64vNV(gpVertexAttribL2ui64vNV, (C.GLuint)(index), (*C.GLuint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribL3d(index uint32, x float64, y float64, z float64) { - C.glowVertexAttribL3d(gpVertexAttribL3d, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func VertexAttribL3dEXT(index uint32, x float64, y float64, z float64) { - C.glowVertexAttribL3dEXT(gpVertexAttribL3dEXT, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func VertexAttribL3dv(index uint32, v *float64) { - C.glowVertexAttribL3dv(gpVertexAttribL3dv, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribL3dvEXT(index uint32, v *float64) { - C.glowVertexAttribL3dvEXT(gpVertexAttribL3dvEXT, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribL3i64NV(index uint32, x int64, y int64, z int64) { - C.glowVertexAttribL3i64NV(gpVertexAttribL3i64NV, (C.GLuint)(index), (C.GLint64EXT)(x), (C.GLint64EXT)(y), (C.GLint64EXT)(z)) -} -func VertexAttribL3i64vNV(index uint32, v *int64) { - C.glowVertexAttribL3i64vNV(gpVertexAttribL3i64vNV, (C.GLuint)(index), (*C.GLint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribL3ui64NV(index uint32, x uint64, y uint64, z uint64) { - C.glowVertexAttribL3ui64NV(gpVertexAttribL3ui64NV, (C.GLuint)(index), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y), (C.GLuint64EXT)(z)) -} -func VertexAttribL3ui64vNV(index uint32, v *uint64) { - C.glowVertexAttribL3ui64vNV(gpVertexAttribL3ui64vNV, (C.GLuint)(index), (*C.GLuint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribL4d(index uint32, x float64, y float64, z float64, w float64) { - C.glowVertexAttribL4d(gpVertexAttribL4d, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func VertexAttribL4dEXT(index uint32, x float64, y float64, z float64, w float64) { - C.glowVertexAttribL4dEXT(gpVertexAttribL4dEXT, (C.GLuint)(index), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func VertexAttribL4dv(index uint32, v *float64) { - C.glowVertexAttribL4dv(gpVertexAttribL4dv, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribL4dvEXT(index uint32, v *float64) { - C.glowVertexAttribL4dvEXT(gpVertexAttribL4dvEXT, (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribL4i64NV(index uint32, x int64, y int64, z int64, w int64) { - C.glowVertexAttribL4i64NV(gpVertexAttribL4i64NV, (C.GLuint)(index), (C.GLint64EXT)(x), (C.GLint64EXT)(y), (C.GLint64EXT)(z), (C.GLint64EXT)(w)) -} -func VertexAttribL4i64vNV(index uint32, v *int64) { - C.glowVertexAttribL4i64vNV(gpVertexAttribL4i64vNV, (C.GLuint)(index), (*C.GLint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribL4ui64NV(index uint32, x uint64, y uint64, z uint64, w uint64) { - C.glowVertexAttribL4ui64NV(gpVertexAttribL4ui64NV, (C.GLuint)(index), (C.GLuint64EXT)(x), (C.GLuint64EXT)(y), (C.GLuint64EXT)(z), (C.GLuint64EXT)(w)) -} -func VertexAttribL4ui64vNV(index uint32, v *uint64) { - C.glowVertexAttribL4ui64vNV(gpVertexAttribL4ui64vNV, (C.GLuint)(index), (*C.GLuint64EXT)(unsafe.Pointer(v))) -} -func VertexAttribLFormat(attribindex uint32, size int32, xtype uint32, relativeoffset uint32) { - C.glowVertexAttribLFormat(gpVertexAttribLFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLuint)(relativeoffset)) -} -func VertexAttribLFormatNV(index uint32, size int32, xtype uint32, stride int32) { - C.glowVertexAttribLFormatNV(gpVertexAttribLFormatNV, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride)) -} -func VertexAttribLPointer(index uint32, size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowVertexAttribLPointer(gpVertexAttribLPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func VertexAttribLPointerEXT(index uint32, size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowVertexAttribLPointerEXT(gpVertexAttribLPointerEXT, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func VertexAttribP1ui(index uint32, xtype uint32, normalized bool, value uint32) { - C.glowVertexAttribP1ui(gpVertexAttribP1ui, (C.GLuint)(index), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(value)) -} -func VertexAttribP1uiv(index uint32, xtype uint32, normalized bool, value *uint32) { - C.glowVertexAttribP1uiv(gpVertexAttribP1uiv, (C.GLuint)(index), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (*C.GLuint)(unsafe.Pointer(value))) -} -func VertexAttribP2ui(index uint32, xtype uint32, normalized bool, value uint32) { - C.glowVertexAttribP2ui(gpVertexAttribP2ui, (C.GLuint)(index), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(value)) -} -func VertexAttribP2uiv(index uint32, xtype uint32, normalized bool, value *uint32) { - C.glowVertexAttribP2uiv(gpVertexAttribP2uiv, (C.GLuint)(index), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (*C.GLuint)(unsafe.Pointer(value))) -} -func VertexAttribP3ui(index uint32, xtype uint32, normalized bool, value uint32) { - C.glowVertexAttribP3ui(gpVertexAttribP3ui, (C.GLuint)(index), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(value)) -} -func VertexAttribP3uiv(index uint32, xtype uint32, normalized bool, value *uint32) { - C.glowVertexAttribP3uiv(gpVertexAttribP3uiv, (C.GLuint)(index), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (*C.GLuint)(unsafe.Pointer(value))) -} -func VertexAttribP4ui(index uint32, xtype uint32, normalized bool, value uint32) { - C.glowVertexAttribP4ui(gpVertexAttribP4ui, (C.GLuint)(index), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(value)) -} -func VertexAttribP4uiv(index uint32, xtype uint32, normalized bool, value *uint32) { - C.glowVertexAttribP4uiv(gpVertexAttribP4uiv, (C.GLuint)(index), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (*C.GLuint)(unsafe.Pointer(value))) -} -func VertexAttribParameteriAMD(index uint32, pname uint32, param int32) { - C.glowVertexAttribParameteriAMD(gpVertexAttribParameteriAMD, (C.GLuint)(index), (C.GLenum)(pname), (C.GLint)(param)) -} - -// define an array of generic vertex attribute data -func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) { - C.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer) -} -func VertexAttribPointerARB(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) { - C.glowVertexAttribPointerARB(gpVertexAttribPointerARB, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer) -} -func VertexAttribPointerNV(index uint32, fsize int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowVertexAttribPointerNV(gpVertexAttribPointerNV, (C.GLuint)(index), (C.GLint)(fsize), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func VertexAttribs1dvNV(index uint32, count int32, v *float64) { - C.glowVertexAttribs1dvNV(gpVertexAttribs1dvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribs1fvNV(index uint32, count int32, v *float32) { - C.glowVertexAttribs1fvNV(gpVertexAttribs1fvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttribs1hvNV(index uint32, n int32, v *uint16) { - C.glowVertexAttribs1hvNV(gpVertexAttribs1hvNV, (C.GLuint)(index), (C.GLsizei)(n), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func VertexAttribs1svNV(index uint32, count int32, v *int16) { - C.glowVertexAttribs1svNV(gpVertexAttribs1svNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttribs2dvNV(index uint32, count int32, v *float64) { - C.glowVertexAttribs2dvNV(gpVertexAttribs2dvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribs2fvNV(index uint32, count int32, v *float32) { - C.glowVertexAttribs2fvNV(gpVertexAttribs2fvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttribs2hvNV(index uint32, n int32, v *uint16) { - C.glowVertexAttribs2hvNV(gpVertexAttribs2hvNV, (C.GLuint)(index), (C.GLsizei)(n), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func VertexAttribs2svNV(index uint32, count int32, v *int16) { - C.glowVertexAttribs2svNV(gpVertexAttribs2svNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttribs3dvNV(index uint32, count int32, v *float64) { - C.glowVertexAttribs3dvNV(gpVertexAttribs3dvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribs3fvNV(index uint32, count int32, v *float32) { - C.glowVertexAttribs3fvNV(gpVertexAttribs3fvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttribs3hvNV(index uint32, n int32, v *uint16) { - C.glowVertexAttribs3hvNV(gpVertexAttribs3hvNV, (C.GLuint)(index), (C.GLsizei)(n), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func VertexAttribs3svNV(index uint32, count int32, v *int16) { - C.glowVertexAttribs3svNV(gpVertexAttribs3svNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttribs4dvNV(index uint32, count int32, v *float64) { - C.glowVertexAttribs4dvNV(gpVertexAttribs4dvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLdouble)(unsafe.Pointer(v))) -} -func VertexAttribs4fvNV(index uint32, count int32, v *float32) { - C.glowVertexAttribs4fvNV(gpVertexAttribs4fvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(v))) -} -func VertexAttribs4hvNV(index uint32, n int32, v *uint16) { - C.glowVertexAttribs4hvNV(gpVertexAttribs4hvNV, (C.GLuint)(index), (C.GLsizei)(n), (*C.GLhalfNV)(unsafe.Pointer(v))) -} -func VertexAttribs4svNV(index uint32, count int32, v *int16) { - C.glowVertexAttribs4svNV(gpVertexAttribs4svNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLshort)(unsafe.Pointer(v))) -} -func VertexAttribs4ubvNV(index uint32, count int32, v *uint8) { - C.glowVertexAttribs4ubvNV(gpVertexAttribs4ubvNV, (C.GLuint)(index), (C.GLsizei)(count), (*C.GLubyte)(unsafe.Pointer(v))) -} - -// modify the rate at which generic vertex attributes advance -func VertexBindingDivisor(bindingindex uint32, divisor uint32) { - C.glowVertexBindingDivisor(gpVertexBindingDivisor, (C.GLuint)(bindingindex), (C.GLuint)(divisor)) -} -func VertexBlendARB(count int32) { - C.glowVertexBlendARB(gpVertexBlendARB, (C.GLint)(count)) -} -func VertexBlendEnvfATI(pname uint32, param float32) { - C.glowVertexBlendEnvfATI(gpVertexBlendEnvfATI, (C.GLenum)(pname), (C.GLfloat)(param)) -} -func VertexBlendEnviATI(pname uint32, param int32) { - C.glowVertexBlendEnviATI(gpVertexBlendEnviATI, (C.GLenum)(pname), (C.GLint)(param)) -} -func VertexFormatNV(size int32, xtype uint32, stride int32) { - C.glowVertexFormatNV(gpVertexFormatNV, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride)) -} - -// define an array of vertex data -func VertexPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowVertexPointer(gpVertexPointer, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func VertexPointerEXT(size int32, xtype uint32, stride int32, count int32, pointer unsafe.Pointer) { - C.glowVertexPointerEXT(gpVertexPointerEXT, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), (C.GLsizei)(count), pointer) -} -func VertexPointerListIBM(size int32, xtype uint32, stride int32, pointer *unsafe.Pointer, ptrstride int32) { - C.glowVertexPointerListIBM(gpVertexPointerListIBM, (C.GLint)(size), (C.GLenum)(xtype), (C.GLint)(stride), pointer, (C.GLint)(ptrstride)) -} -func VertexPointervINTEL(size int32, xtype uint32, pointer *unsafe.Pointer) { - C.glowVertexPointervINTEL(gpVertexPointervINTEL, (C.GLint)(size), (C.GLenum)(xtype), pointer) -} -func VertexStream1dATI(stream uint32, x float64) { - C.glowVertexStream1dATI(gpVertexStream1dATI, (C.GLenum)(stream), (C.GLdouble)(x)) -} -func VertexStream1dvATI(stream uint32, coords *float64) { - C.glowVertexStream1dvATI(gpVertexStream1dvATI, (C.GLenum)(stream), (*C.GLdouble)(unsafe.Pointer(coords))) -} -func VertexStream1fATI(stream uint32, x float32) { - C.glowVertexStream1fATI(gpVertexStream1fATI, (C.GLenum)(stream), (C.GLfloat)(x)) -} -func VertexStream1fvATI(stream uint32, coords *float32) { - C.glowVertexStream1fvATI(gpVertexStream1fvATI, (C.GLenum)(stream), (*C.GLfloat)(unsafe.Pointer(coords))) -} -func VertexStream1iATI(stream uint32, x int32) { - C.glowVertexStream1iATI(gpVertexStream1iATI, (C.GLenum)(stream), (C.GLint)(x)) -} -func VertexStream1ivATI(stream uint32, coords *int32) { - C.glowVertexStream1ivATI(gpVertexStream1ivATI, (C.GLenum)(stream), (*C.GLint)(unsafe.Pointer(coords))) -} -func VertexStream1sATI(stream uint32, x int16) { - C.glowVertexStream1sATI(gpVertexStream1sATI, (C.GLenum)(stream), (C.GLshort)(x)) -} -func VertexStream1svATI(stream uint32, coords *int16) { - C.glowVertexStream1svATI(gpVertexStream1svATI, (C.GLenum)(stream), (*C.GLshort)(unsafe.Pointer(coords))) -} -func VertexStream2dATI(stream uint32, x float64, y float64) { - C.glowVertexStream2dATI(gpVertexStream2dATI, (C.GLenum)(stream), (C.GLdouble)(x), (C.GLdouble)(y)) -} -func VertexStream2dvATI(stream uint32, coords *float64) { - C.glowVertexStream2dvATI(gpVertexStream2dvATI, (C.GLenum)(stream), (*C.GLdouble)(unsafe.Pointer(coords))) -} -func VertexStream2fATI(stream uint32, x float32, y float32) { - C.glowVertexStream2fATI(gpVertexStream2fATI, (C.GLenum)(stream), (C.GLfloat)(x), (C.GLfloat)(y)) -} -func VertexStream2fvATI(stream uint32, coords *float32) { - C.glowVertexStream2fvATI(gpVertexStream2fvATI, (C.GLenum)(stream), (*C.GLfloat)(unsafe.Pointer(coords))) -} -func VertexStream2iATI(stream uint32, x int32, y int32) { - C.glowVertexStream2iATI(gpVertexStream2iATI, (C.GLenum)(stream), (C.GLint)(x), (C.GLint)(y)) -} -func VertexStream2ivATI(stream uint32, coords *int32) { - C.glowVertexStream2ivATI(gpVertexStream2ivATI, (C.GLenum)(stream), (*C.GLint)(unsafe.Pointer(coords))) -} -func VertexStream2sATI(stream uint32, x int16, y int16) { - C.glowVertexStream2sATI(gpVertexStream2sATI, (C.GLenum)(stream), (C.GLshort)(x), (C.GLshort)(y)) -} -func VertexStream2svATI(stream uint32, coords *int16) { - C.glowVertexStream2svATI(gpVertexStream2svATI, (C.GLenum)(stream), (*C.GLshort)(unsafe.Pointer(coords))) -} -func VertexStream3dATI(stream uint32, x float64, y float64, z float64) { - C.glowVertexStream3dATI(gpVertexStream3dATI, (C.GLenum)(stream), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func VertexStream3dvATI(stream uint32, coords *float64) { - C.glowVertexStream3dvATI(gpVertexStream3dvATI, (C.GLenum)(stream), (*C.GLdouble)(unsafe.Pointer(coords))) -} -func VertexStream3fATI(stream uint32, x float32, y float32, z float32) { - C.glowVertexStream3fATI(gpVertexStream3fATI, (C.GLenum)(stream), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func VertexStream3fvATI(stream uint32, coords *float32) { - C.glowVertexStream3fvATI(gpVertexStream3fvATI, (C.GLenum)(stream), (*C.GLfloat)(unsafe.Pointer(coords))) -} -func VertexStream3iATI(stream uint32, x int32, y int32, z int32) { - C.glowVertexStream3iATI(gpVertexStream3iATI, (C.GLenum)(stream), (C.GLint)(x), (C.GLint)(y), (C.GLint)(z)) -} -func VertexStream3ivATI(stream uint32, coords *int32) { - C.glowVertexStream3ivATI(gpVertexStream3ivATI, (C.GLenum)(stream), (*C.GLint)(unsafe.Pointer(coords))) -} -func VertexStream3sATI(stream uint32, x int16, y int16, z int16) { - C.glowVertexStream3sATI(gpVertexStream3sATI, (C.GLenum)(stream), (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func VertexStream3svATI(stream uint32, coords *int16) { - C.glowVertexStream3svATI(gpVertexStream3svATI, (C.GLenum)(stream), (*C.GLshort)(unsafe.Pointer(coords))) -} -func VertexStream4dATI(stream uint32, x float64, y float64, z float64, w float64) { - C.glowVertexStream4dATI(gpVertexStream4dATI, (C.GLenum)(stream), (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func VertexStream4dvATI(stream uint32, coords *float64) { - C.glowVertexStream4dvATI(gpVertexStream4dvATI, (C.GLenum)(stream), (*C.GLdouble)(unsafe.Pointer(coords))) -} -func VertexStream4fATI(stream uint32, x float32, y float32, z float32, w float32) { - C.glowVertexStream4fATI(gpVertexStream4fATI, (C.GLenum)(stream), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func VertexStream4fvATI(stream uint32, coords *float32) { - C.glowVertexStream4fvATI(gpVertexStream4fvATI, (C.GLenum)(stream), (*C.GLfloat)(unsafe.Pointer(coords))) -} -func VertexStream4iATI(stream uint32, x int32, y int32, z int32, w int32) { - C.glowVertexStream4iATI(gpVertexStream4iATI, (C.GLenum)(stream), (C.GLint)(x), (C.GLint)(y), (C.GLint)(z), (C.GLint)(w)) -} -func VertexStream4ivATI(stream uint32, coords *int32) { - C.glowVertexStream4ivATI(gpVertexStream4ivATI, (C.GLenum)(stream), (*C.GLint)(unsafe.Pointer(coords))) -} -func VertexStream4sATI(stream uint32, x int16, y int16, z int16, w int16) { - C.glowVertexStream4sATI(gpVertexStream4sATI, (C.GLenum)(stream), (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z), (C.GLshort)(w)) -} -func VertexStream4svATI(stream uint32, coords *int16) { - C.glowVertexStream4svATI(gpVertexStream4svATI, (C.GLenum)(stream), (*C.GLshort)(unsafe.Pointer(coords))) -} -func VertexWeightPointerEXT(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowVertexWeightPointerEXT(gpVertexWeightPointerEXT, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func VertexWeightfEXT(weight float32) { - C.glowVertexWeightfEXT(gpVertexWeightfEXT, (C.GLfloat)(weight)) -} -func VertexWeightfvEXT(weight *float32) { - C.glowVertexWeightfvEXT(gpVertexWeightfvEXT, (*C.GLfloat)(unsafe.Pointer(weight))) -} -func VertexWeighthNV(weight uint16) { - C.glowVertexWeighthNV(gpVertexWeighthNV, (C.GLhalfNV)(weight)) -} -func VertexWeighthvNV(weight *uint16) { - C.glowVertexWeighthvNV(gpVertexWeighthvNV, (*C.GLhalfNV)(unsafe.Pointer(weight))) -} -func VideoCaptureNV(video_capture_slot uint32, sequence_num *uint32, capture_time *uint64) uint32 { - ret := C.glowVideoCaptureNV(gpVideoCaptureNV, (C.GLuint)(video_capture_slot), (*C.GLuint)(unsafe.Pointer(sequence_num)), (*C.GLuint64EXT)(unsafe.Pointer(capture_time))) - return (uint32)(ret) -} -func VideoCaptureStreamParameterdvNV(video_capture_slot uint32, stream uint32, pname uint32, params *float64) { - C.glowVideoCaptureStreamParameterdvNV(gpVideoCaptureStreamParameterdvNV, (C.GLuint)(video_capture_slot), (C.GLuint)(stream), (C.GLenum)(pname), (*C.GLdouble)(unsafe.Pointer(params))) -} -func VideoCaptureStreamParameterfvNV(video_capture_slot uint32, stream uint32, pname uint32, params *float32) { - C.glowVideoCaptureStreamParameterfvNV(gpVideoCaptureStreamParameterfvNV, (C.GLuint)(video_capture_slot), (C.GLuint)(stream), (C.GLenum)(pname), (*C.GLfloat)(unsafe.Pointer(params))) -} -func VideoCaptureStreamParameterivNV(video_capture_slot uint32, stream uint32, pname uint32, params *int32) { - C.glowVideoCaptureStreamParameterivNV(gpVideoCaptureStreamParameterivNV, (C.GLuint)(video_capture_slot), (C.GLuint)(stream), (C.GLenum)(pname), (*C.GLint)(unsafe.Pointer(params))) -} - -// set the viewport -func Viewport(x int32, y int32, width int32, height int32) { - C.glowViewport(gpViewport, (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height)) -} -func ViewportArrayv(first uint32, count int32, v *float32) { - C.glowViewportArrayv(gpViewportArrayv, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(v))) -} -func ViewportIndexedf(index uint32, x float32, y float32, w float32, h float32) { - C.glowViewportIndexedf(gpViewportIndexedf, (C.GLuint)(index), (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(w), (C.GLfloat)(h)) -} -func ViewportIndexedfv(index uint32, v *float32) { - C.glowViewportIndexedfv(gpViewportIndexedfv, (C.GLuint)(index), (*C.GLfloat)(unsafe.Pointer(v))) -} - -// instruct the GL server to block until the specified sync object becomes signaled -func WaitSync(sync unsafe.Pointer, flags uint32, timeout uint64) { - C.glowWaitSync(gpWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout)) -} -func WeightPathsNV(resultPath uint32, numPaths int32, paths *uint32, weights *float32) { - C.glowWeightPathsNV(gpWeightPathsNV, (C.GLuint)(resultPath), (C.GLsizei)(numPaths), (*C.GLuint)(unsafe.Pointer(paths)), (*C.GLfloat)(unsafe.Pointer(weights))) -} -func WeightPointerARB(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { - C.glowWeightPointerARB(gpWeightPointerARB, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) -} -func WeightbvARB(size int32, weights *int8) { - C.glowWeightbvARB(gpWeightbvARB, (C.GLint)(size), (*C.GLbyte)(unsafe.Pointer(weights))) -} -func WeightdvARB(size int32, weights *float64) { - C.glowWeightdvARB(gpWeightdvARB, (C.GLint)(size), (*C.GLdouble)(unsafe.Pointer(weights))) -} -func WeightfvARB(size int32, weights *float32) { - C.glowWeightfvARB(gpWeightfvARB, (C.GLint)(size), (*C.GLfloat)(unsafe.Pointer(weights))) -} -func WeightivARB(size int32, weights *int32) { - C.glowWeightivARB(gpWeightivARB, (C.GLint)(size), (*C.GLint)(unsafe.Pointer(weights))) -} -func WeightsvARB(size int32, weights *int16) { - C.glowWeightsvARB(gpWeightsvARB, (C.GLint)(size), (*C.GLshort)(unsafe.Pointer(weights))) -} -func WeightubvARB(size int32, weights *uint8) { - C.glowWeightubvARB(gpWeightubvARB, (C.GLint)(size), (*C.GLubyte)(unsafe.Pointer(weights))) -} -func WeightuivARB(size int32, weights *uint32) { - C.glowWeightuivARB(gpWeightuivARB, (C.GLint)(size), (*C.GLuint)(unsafe.Pointer(weights))) -} -func WeightusvARB(size int32, weights *uint16) { - C.glowWeightusvARB(gpWeightusvARB, (C.GLint)(size), (*C.GLushort)(unsafe.Pointer(weights))) -} -func WindowPos2d(x float64, y float64) { - C.glowWindowPos2d(gpWindowPos2d, (C.GLdouble)(x), (C.GLdouble)(y)) -} -func WindowPos2dARB(x float64, y float64) { - C.glowWindowPos2dARB(gpWindowPos2dARB, (C.GLdouble)(x), (C.GLdouble)(y)) -} -func WindowPos2dMESA(x float64, y float64) { - C.glowWindowPos2dMESA(gpWindowPos2dMESA, (C.GLdouble)(x), (C.GLdouble)(y)) -} -func WindowPos2dv(v *float64) { - C.glowWindowPos2dv(gpWindowPos2dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func WindowPos2dvARB(v *float64) { - C.glowWindowPos2dvARB(gpWindowPos2dvARB, (*C.GLdouble)(unsafe.Pointer(v))) -} -func WindowPos2dvMESA(v *float64) { - C.glowWindowPos2dvMESA(gpWindowPos2dvMESA, (*C.GLdouble)(unsafe.Pointer(v))) -} -func WindowPos2f(x float32, y float32) { - C.glowWindowPos2f(gpWindowPos2f, (C.GLfloat)(x), (C.GLfloat)(y)) -} -func WindowPos2fARB(x float32, y float32) { - C.glowWindowPos2fARB(gpWindowPos2fARB, (C.GLfloat)(x), (C.GLfloat)(y)) -} -func WindowPos2fMESA(x float32, y float32) { - C.glowWindowPos2fMESA(gpWindowPos2fMESA, (C.GLfloat)(x), (C.GLfloat)(y)) -} -func WindowPos2fv(v *float32) { - C.glowWindowPos2fv(gpWindowPos2fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func WindowPos2fvARB(v *float32) { - C.glowWindowPos2fvARB(gpWindowPos2fvARB, (*C.GLfloat)(unsafe.Pointer(v))) -} -func WindowPos2fvMESA(v *float32) { - C.glowWindowPos2fvMESA(gpWindowPos2fvMESA, (*C.GLfloat)(unsafe.Pointer(v))) -} -func WindowPos2i(x int32, y int32) { - C.glowWindowPos2i(gpWindowPos2i, (C.GLint)(x), (C.GLint)(y)) -} -func WindowPos2iARB(x int32, y int32) { - C.glowWindowPos2iARB(gpWindowPos2iARB, (C.GLint)(x), (C.GLint)(y)) -} -func WindowPos2iMESA(x int32, y int32) { - C.glowWindowPos2iMESA(gpWindowPos2iMESA, (C.GLint)(x), (C.GLint)(y)) -} -func WindowPos2iv(v *int32) { - C.glowWindowPos2iv(gpWindowPos2iv, (*C.GLint)(unsafe.Pointer(v))) -} -func WindowPos2ivARB(v *int32) { - C.glowWindowPos2ivARB(gpWindowPos2ivARB, (*C.GLint)(unsafe.Pointer(v))) -} -func WindowPos2ivMESA(v *int32) { - C.glowWindowPos2ivMESA(gpWindowPos2ivMESA, (*C.GLint)(unsafe.Pointer(v))) -} -func WindowPos2s(x int16, y int16) { - C.glowWindowPos2s(gpWindowPos2s, (C.GLshort)(x), (C.GLshort)(y)) -} -func WindowPos2sARB(x int16, y int16) { - C.glowWindowPos2sARB(gpWindowPos2sARB, (C.GLshort)(x), (C.GLshort)(y)) -} -func WindowPos2sMESA(x int16, y int16) { - C.glowWindowPos2sMESA(gpWindowPos2sMESA, (C.GLshort)(x), (C.GLshort)(y)) -} -func WindowPos2sv(v *int16) { - C.glowWindowPos2sv(gpWindowPos2sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func WindowPos2svARB(v *int16) { - C.glowWindowPos2svARB(gpWindowPos2svARB, (*C.GLshort)(unsafe.Pointer(v))) -} -func WindowPos2svMESA(v *int16) { - C.glowWindowPos2svMESA(gpWindowPos2svMESA, (*C.GLshort)(unsafe.Pointer(v))) -} -func WindowPos3d(x float64, y float64, z float64) { - C.glowWindowPos3d(gpWindowPos3d, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func WindowPos3dARB(x float64, y float64, z float64) { - C.glowWindowPos3dARB(gpWindowPos3dARB, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func WindowPos3dMESA(x float64, y float64, z float64) { - C.glowWindowPos3dMESA(gpWindowPos3dMESA, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z)) -} -func WindowPos3dv(v *float64) { - C.glowWindowPos3dv(gpWindowPos3dv, (*C.GLdouble)(unsafe.Pointer(v))) -} -func WindowPos3dvARB(v *float64) { - C.glowWindowPos3dvARB(gpWindowPos3dvARB, (*C.GLdouble)(unsafe.Pointer(v))) -} -func WindowPos3dvMESA(v *float64) { - C.glowWindowPos3dvMESA(gpWindowPos3dvMESA, (*C.GLdouble)(unsafe.Pointer(v))) -} -func WindowPos3f(x float32, y float32, z float32) { - C.glowWindowPos3f(gpWindowPos3f, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func WindowPos3fARB(x float32, y float32, z float32) { - C.glowWindowPos3fARB(gpWindowPos3fARB, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func WindowPos3fMESA(x float32, y float32, z float32) { - C.glowWindowPos3fMESA(gpWindowPos3fMESA, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z)) -} -func WindowPos3fv(v *float32) { - C.glowWindowPos3fv(gpWindowPos3fv, (*C.GLfloat)(unsafe.Pointer(v))) -} -func WindowPos3fvARB(v *float32) { - C.glowWindowPos3fvARB(gpWindowPos3fvARB, (*C.GLfloat)(unsafe.Pointer(v))) -} -func WindowPos3fvMESA(v *float32) { - C.glowWindowPos3fvMESA(gpWindowPos3fvMESA, (*C.GLfloat)(unsafe.Pointer(v))) -} -func WindowPos3i(x int32, y int32, z int32) { - C.glowWindowPos3i(gpWindowPos3i, (C.GLint)(x), (C.GLint)(y), (C.GLint)(z)) -} -func WindowPos3iARB(x int32, y int32, z int32) { - C.glowWindowPos3iARB(gpWindowPos3iARB, (C.GLint)(x), (C.GLint)(y), (C.GLint)(z)) -} -func WindowPos3iMESA(x int32, y int32, z int32) { - C.glowWindowPos3iMESA(gpWindowPos3iMESA, (C.GLint)(x), (C.GLint)(y), (C.GLint)(z)) -} -func WindowPos3iv(v *int32) { - C.glowWindowPos3iv(gpWindowPos3iv, (*C.GLint)(unsafe.Pointer(v))) -} -func WindowPos3ivARB(v *int32) { - C.glowWindowPos3ivARB(gpWindowPos3ivARB, (*C.GLint)(unsafe.Pointer(v))) -} -func WindowPos3ivMESA(v *int32) { - C.glowWindowPos3ivMESA(gpWindowPos3ivMESA, (*C.GLint)(unsafe.Pointer(v))) -} -func WindowPos3s(x int16, y int16, z int16) { - C.glowWindowPos3s(gpWindowPos3s, (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func WindowPos3sARB(x int16, y int16, z int16) { - C.glowWindowPos3sARB(gpWindowPos3sARB, (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func WindowPos3sMESA(x int16, y int16, z int16) { - C.glowWindowPos3sMESA(gpWindowPos3sMESA, (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z)) -} -func WindowPos3sv(v *int16) { - C.glowWindowPos3sv(gpWindowPos3sv, (*C.GLshort)(unsafe.Pointer(v))) -} -func WindowPos3svARB(v *int16) { - C.glowWindowPos3svARB(gpWindowPos3svARB, (*C.GLshort)(unsafe.Pointer(v))) -} -func WindowPos3svMESA(v *int16) { - C.glowWindowPos3svMESA(gpWindowPos3svMESA, (*C.GLshort)(unsafe.Pointer(v))) -} -func WindowPos4dMESA(x float64, y float64, z float64, w float64) { - C.glowWindowPos4dMESA(gpWindowPos4dMESA, (C.GLdouble)(x), (C.GLdouble)(y), (C.GLdouble)(z), (C.GLdouble)(w)) -} -func WindowPos4dvMESA(v *float64) { - C.glowWindowPos4dvMESA(gpWindowPos4dvMESA, (*C.GLdouble)(unsafe.Pointer(v))) -} -func WindowPos4fMESA(x float32, y float32, z float32, w float32) { - C.glowWindowPos4fMESA(gpWindowPos4fMESA, (C.GLfloat)(x), (C.GLfloat)(y), (C.GLfloat)(z), (C.GLfloat)(w)) -} -func WindowPos4fvMESA(v *float32) { - C.glowWindowPos4fvMESA(gpWindowPos4fvMESA, (*C.GLfloat)(unsafe.Pointer(v))) -} -func WindowPos4iMESA(x int32, y int32, z int32, w int32) { - C.glowWindowPos4iMESA(gpWindowPos4iMESA, (C.GLint)(x), (C.GLint)(y), (C.GLint)(z), (C.GLint)(w)) -} -func WindowPos4ivMESA(v *int32) { - C.glowWindowPos4ivMESA(gpWindowPos4ivMESA, (*C.GLint)(unsafe.Pointer(v))) -} -func WindowPos4sMESA(x int16, y int16, z int16, w int16) { - C.glowWindowPos4sMESA(gpWindowPos4sMESA, (C.GLshort)(x), (C.GLshort)(y), (C.GLshort)(z), (C.GLshort)(w)) -} -func WindowPos4svMESA(v *int16) { - C.glowWindowPos4svMESA(gpWindowPos4svMESA, (*C.GLshort)(unsafe.Pointer(v))) -} -func WriteMaskEXT(res uint32, in uint32, outX uint32, outY uint32, outZ uint32, outW uint32) { - C.glowWriteMaskEXT(gpWriteMaskEXT, (C.GLuint)(res), (C.GLuint)(in), (C.GLenum)(outX), (C.GLenum)(outY), (C.GLenum)(outZ), (C.GLenum)(outW)) -} - -// Init initializes the OpenGL bindings by loading the function pointers (for -// each OpenGL function) from the active OpenGL context. -// -// It must be called under the presence of an active OpenGL context, e.g., -// always after calling window.MakeContextCurrent() and always before calling -// any OpenGL functions exported by this package. -// -// On Windows, Init loads pointers that are context-specific (and hence you -// must re-init if switching between OpenGL contexts, although not calling Init -// again after switching between OpenGL contexts may work if the contexts belong -// to the same graphics driver/device). -// -// On macOS and the other POSIX systems, the behavior is different, but code -// written compatible with the Windows behavior is compatible with macOS and the -// other POSIX systems. That is, always Init under an active OpenGL context, and -// always re-init after switching graphics contexts. -// -// For information about caveats of Init, you should read the "Platform Specific -// Function Retrieval" section of https://www.opengl.org/wiki/Load_OpenGL_Functions. -func Init() error { - return InitWithProcAddrFunc(getProcAddress) -} - -// InitWithProcAddrFunc intializes the package using the specified OpenGL -// function pointer loading function. For more cases Init should be used -// instead. -func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error { - gpAccum = (C.GPACCUM)(getProcAddr("glAccum")) - if gpAccum == nil { - return errors.New("glAccum") - } - gpAccumxOES = (C.GPACCUMXOES)(getProcAddr("glAccumxOES")) - gpActiveProgramEXT = (C.GPACTIVEPROGRAMEXT)(getProcAddr("glActiveProgramEXT")) - gpActiveShaderProgram = (C.GPACTIVESHADERPROGRAM)(getProcAddr("glActiveShaderProgram")) - gpActiveShaderProgramEXT = (C.GPACTIVESHADERPROGRAMEXT)(getProcAddr("glActiveShaderProgramEXT")) - gpActiveStencilFaceEXT = (C.GPACTIVESTENCILFACEEXT)(getProcAddr("glActiveStencilFaceEXT")) - gpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr("glActiveTexture")) - if gpActiveTexture == nil { - return errors.New("glActiveTexture") - } - gpActiveTextureARB = (C.GPACTIVETEXTUREARB)(getProcAddr("glActiveTextureARB")) - gpActiveVaryingNV = (C.GPACTIVEVARYINGNV)(getProcAddr("glActiveVaryingNV")) - gpAlphaFragmentOp1ATI = (C.GPALPHAFRAGMENTOP1ATI)(getProcAddr("glAlphaFragmentOp1ATI")) - gpAlphaFragmentOp2ATI = (C.GPALPHAFRAGMENTOP2ATI)(getProcAddr("glAlphaFragmentOp2ATI")) - gpAlphaFragmentOp3ATI = (C.GPALPHAFRAGMENTOP3ATI)(getProcAddr("glAlphaFragmentOp3ATI")) - gpAlphaFunc = (C.GPALPHAFUNC)(getProcAddr("glAlphaFunc")) - if gpAlphaFunc == nil { - return errors.New("glAlphaFunc") - } - gpAlphaFuncxOES = (C.GPALPHAFUNCXOES)(getProcAddr("glAlphaFuncxOES")) - gpApplyTextureEXT = (C.GPAPPLYTEXTUREEXT)(getProcAddr("glApplyTextureEXT")) - gpAreProgramsResidentNV = (C.GPAREPROGRAMSRESIDENTNV)(getProcAddr("glAreProgramsResidentNV")) - gpAreTexturesResident = (C.GPARETEXTURESRESIDENT)(getProcAddr("glAreTexturesResident")) - if gpAreTexturesResident == nil { - return errors.New("glAreTexturesResident") - } - gpAreTexturesResidentEXT = (C.GPARETEXTURESRESIDENTEXT)(getProcAddr("glAreTexturesResidentEXT")) - gpArrayElement = (C.GPARRAYELEMENT)(getProcAddr("glArrayElement")) - if gpArrayElement == nil { - return errors.New("glArrayElement") - } - gpArrayElementEXT = (C.GPARRAYELEMENTEXT)(getProcAddr("glArrayElementEXT")) - gpArrayObjectATI = (C.GPARRAYOBJECTATI)(getProcAddr("glArrayObjectATI")) - gpAsyncMarkerSGIX = (C.GPASYNCMARKERSGIX)(getProcAddr("glAsyncMarkerSGIX")) - gpAttachObjectARB = (C.GPATTACHOBJECTARB)(getProcAddr("glAttachObjectARB")) - gpAttachShader = (C.GPATTACHSHADER)(getProcAddr("glAttachShader")) - if gpAttachShader == nil { - return errors.New("glAttachShader") - } - gpBegin = (C.GPBEGIN)(getProcAddr("glBegin")) - if gpBegin == nil { - return errors.New("glBegin") - } - gpBeginConditionalRenderNV = (C.GPBEGINCONDITIONALRENDERNV)(getProcAddr("glBeginConditionalRenderNV")) - gpBeginConditionalRenderNVX = (C.GPBEGINCONDITIONALRENDERNVX)(getProcAddr("glBeginConditionalRenderNVX")) - gpBeginFragmentShaderATI = (C.GPBEGINFRAGMENTSHADERATI)(getProcAddr("glBeginFragmentShaderATI")) - gpBeginOcclusionQueryNV = (C.GPBEGINOCCLUSIONQUERYNV)(getProcAddr("glBeginOcclusionQueryNV")) - gpBeginPerfMonitorAMD = (C.GPBEGINPERFMONITORAMD)(getProcAddr("glBeginPerfMonitorAMD")) - gpBeginPerfQueryINTEL = (C.GPBEGINPERFQUERYINTEL)(getProcAddr("glBeginPerfQueryINTEL")) - gpBeginQuery = (C.GPBEGINQUERY)(getProcAddr("glBeginQuery")) - if gpBeginQuery == nil { - return errors.New("glBeginQuery") - } - gpBeginQueryARB = (C.GPBEGINQUERYARB)(getProcAddr("glBeginQueryARB")) - gpBeginQueryIndexed = (C.GPBEGINQUERYINDEXED)(getProcAddr("glBeginQueryIndexed")) - gpBeginTransformFeedbackEXT = (C.GPBEGINTRANSFORMFEEDBACKEXT)(getProcAddr("glBeginTransformFeedbackEXT")) - gpBeginTransformFeedbackNV = (C.GPBEGINTRANSFORMFEEDBACKNV)(getProcAddr("glBeginTransformFeedbackNV")) - gpBeginVertexShaderEXT = (C.GPBEGINVERTEXSHADEREXT)(getProcAddr("glBeginVertexShaderEXT")) - gpBeginVideoCaptureNV = (C.GPBEGINVIDEOCAPTURENV)(getProcAddr("glBeginVideoCaptureNV")) - gpBindAttribLocation = (C.GPBINDATTRIBLOCATION)(getProcAddr("glBindAttribLocation")) - if gpBindAttribLocation == nil { - return errors.New("glBindAttribLocation") - } - gpBindAttribLocationARB = (C.GPBINDATTRIBLOCATIONARB)(getProcAddr("glBindAttribLocationARB")) - gpBindBuffer = (C.GPBINDBUFFER)(getProcAddr("glBindBuffer")) - if gpBindBuffer == nil { - return errors.New("glBindBuffer") - } - gpBindBufferARB = (C.GPBINDBUFFERARB)(getProcAddr("glBindBufferARB")) - gpBindBufferBaseEXT = (C.GPBINDBUFFERBASEEXT)(getProcAddr("glBindBufferBaseEXT")) - gpBindBufferBaseNV = (C.GPBINDBUFFERBASENV)(getProcAddr("glBindBufferBaseNV")) - gpBindBufferOffsetEXT = (C.GPBINDBUFFEROFFSETEXT)(getProcAddr("glBindBufferOffsetEXT")) - gpBindBufferOffsetNV = (C.GPBINDBUFFEROFFSETNV)(getProcAddr("glBindBufferOffsetNV")) - gpBindBufferRangeEXT = (C.GPBINDBUFFERRANGEEXT)(getProcAddr("glBindBufferRangeEXT")) - gpBindBufferRangeNV = (C.GPBINDBUFFERRANGENV)(getProcAddr("glBindBufferRangeNV")) - gpBindBuffersBase = (C.GPBINDBUFFERSBASE)(getProcAddr("glBindBuffersBase")) - gpBindBuffersRange = (C.GPBINDBUFFERSRANGE)(getProcAddr("glBindBuffersRange")) - gpBindFragDataLocationEXT = (C.GPBINDFRAGDATALOCATIONEXT)(getProcAddr("glBindFragDataLocationEXT")) - gpBindFragDataLocationIndexed = (C.GPBINDFRAGDATALOCATIONINDEXED)(getProcAddr("glBindFragDataLocationIndexed")) - gpBindFragmentShaderATI = (C.GPBINDFRAGMENTSHADERATI)(getProcAddr("glBindFragmentShaderATI")) - gpBindFramebuffer = (C.GPBINDFRAMEBUFFER)(getProcAddr("glBindFramebuffer")) - gpBindFramebufferEXT = (C.GPBINDFRAMEBUFFEREXT)(getProcAddr("glBindFramebufferEXT")) - gpBindImageTexture = (C.GPBINDIMAGETEXTURE)(getProcAddr("glBindImageTexture")) - gpBindImageTextureEXT = (C.GPBINDIMAGETEXTUREEXT)(getProcAddr("glBindImageTextureEXT")) - gpBindImageTextures = (C.GPBINDIMAGETEXTURES)(getProcAddr("glBindImageTextures")) - gpBindLightParameterEXT = (C.GPBINDLIGHTPARAMETEREXT)(getProcAddr("glBindLightParameterEXT")) - gpBindMaterialParameterEXT = (C.GPBINDMATERIALPARAMETEREXT)(getProcAddr("glBindMaterialParameterEXT")) - gpBindMultiTextureEXT = (C.GPBINDMULTITEXTUREEXT)(getProcAddr("glBindMultiTextureEXT")) - gpBindParameterEXT = (C.GPBINDPARAMETEREXT)(getProcAddr("glBindParameterEXT")) - gpBindProgramARB = (C.GPBINDPROGRAMARB)(getProcAddr("glBindProgramARB")) - gpBindProgramNV = (C.GPBINDPROGRAMNV)(getProcAddr("glBindProgramNV")) - gpBindProgramPipeline = (C.GPBINDPROGRAMPIPELINE)(getProcAddr("glBindProgramPipeline")) - gpBindProgramPipelineEXT = (C.GPBINDPROGRAMPIPELINEEXT)(getProcAddr("glBindProgramPipelineEXT")) - gpBindRenderbuffer = (C.GPBINDRENDERBUFFER)(getProcAddr("glBindRenderbuffer")) - gpBindRenderbufferEXT = (C.GPBINDRENDERBUFFEREXT)(getProcAddr("glBindRenderbufferEXT")) - gpBindSampler = (C.GPBINDSAMPLER)(getProcAddr("glBindSampler")) - gpBindSamplers = (C.GPBINDSAMPLERS)(getProcAddr("glBindSamplers")) - gpBindTexGenParameterEXT = (C.GPBINDTEXGENPARAMETEREXT)(getProcAddr("glBindTexGenParameterEXT")) - gpBindTexture = (C.GPBINDTEXTURE)(getProcAddr("glBindTexture")) - if gpBindTexture == nil { - return errors.New("glBindTexture") - } - gpBindTextureEXT = (C.GPBINDTEXTUREEXT)(getProcAddr("glBindTextureEXT")) - gpBindTextureUnit = (C.GPBINDTEXTUREUNIT)(getProcAddr("glBindTextureUnit")) - gpBindTextureUnitParameterEXT = (C.GPBINDTEXTUREUNITPARAMETEREXT)(getProcAddr("glBindTextureUnitParameterEXT")) - gpBindTextures = (C.GPBINDTEXTURES)(getProcAddr("glBindTextures")) - gpBindTransformFeedback = (C.GPBINDTRANSFORMFEEDBACK)(getProcAddr("glBindTransformFeedback")) - gpBindTransformFeedbackNV = (C.GPBINDTRANSFORMFEEDBACKNV)(getProcAddr("glBindTransformFeedbackNV")) - gpBindVertexArray = (C.GPBINDVERTEXARRAY)(getProcAddr("glBindVertexArray")) - gpBindVertexArrayAPPLE = (C.GPBINDVERTEXARRAYAPPLE)(getProcAddr("glBindVertexArrayAPPLE")) - gpBindVertexBuffer = (C.GPBINDVERTEXBUFFER)(getProcAddr("glBindVertexBuffer")) - gpBindVertexBuffers = (C.GPBINDVERTEXBUFFERS)(getProcAddr("glBindVertexBuffers")) - gpBindVertexShaderEXT = (C.GPBINDVERTEXSHADEREXT)(getProcAddr("glBindVertexShaderEXT")) - gpBindVideoCaptureStreamBufferNV = (C.GPBINDVIDEOCAPTURESTREAMBUFFERNV)(getProcAddr("glBindVideoCaptureStreamBufferNV")) - gpBindVideoCaptureStreamTextureNV = (C.GPBINDVIDEOCAPTURESTREAMTEXTURENV)(getProcAddr("glBindVideoCaptureStreamTextureNV")) - gpBinormal3bEXT = (C.GPBINORMAL3BEXT)(getProcAddr("glBinormal3bEXT")) - gpBinormal3bvEXT = (C.GPBINORMAL3BVEXT)(getProcAddr("glBinormal3bvEXT")) - gpBinormal3dEXT = (C.GPBINORMAL3DEXT)(getProcAddr("glBinormal3dEXT")) - gpBinormal3dvEXT = (C.GPBINORMAL3DVEXT)(getProcAddr("glBinormal3dvEXT")) - gpBinormal3fEXT = (C.GPBINORMAL3FEXT)(getProcAddr("glBinormal3fEXT")) - gpBinormal3fvEXT = (C.GPBINORMAL3FVEXT)(getProcAddr("glBinormal3fvEXT")) - gpBinormal3iEXT = (C.GPBINORMAL3IEXT)(getProcAddr("glBinormal3iEXT")) - gpBinormal3ivEXT = (C.GPBINORMAL3IVEXT)(getProcAddr("glBinormal3ivEXT")) - gpBinormal3sEXT = (C.GPBINORMAL3SEXT)(getProcAddr("glBinormal3sEXT")) - gpBinormal3svEXT = (C.GPBINORMAL3SVEXT)(getProcAddr("glBinormal3svEXT")) - gpBinormalPointerEXT = (C.GPBINORMALPOINTEREXT)(getProcAddr("glBinormalPointerEXT")) - gpBitmap = (C.GPBITMAP)(getProcAddr("glBitmap")) - if gpBitmap == nil { - return errors.New("glBitmap") - } - gpBitmapxOES = (C.GPBITMAPXOES)(getProcAddr("glBitmapxOES")) - gpBlendBarrierKHR = (C.GPBLENDBARRIERKHR)(getProcAddr("glBlendBarrierKHR")) - gpBlendBarrierNV = (C.GPBLENDBARRIERNV)(getProcAddr("glBlendBarrierNV")) - gpBlendColor = (C.GPBLENDCOLOR)(getProcAddr("glBlendColor")) - if gpBlendColor == nil { - return errors.New("glBlendColor") - } - gpBlendColorEXT = (C.GPBLENDCOLOREXT)(getProcAddr("glBlendColorEXT")) - gpBlendColorxOES = (C.GPBLENDCOLORXOES)(getProcAddr("glBlendColorxOES")) - gpBlendEquation = (C.GPBLENDEQUATION)(getProcAddr("glBlendEquation")) - if gpBlendEquation == nil { - return errors.New("glBlendEquation") - } - gpBlendEquationEXT = (C.GPBLENDEQUATIONEXT)(getProcAddr("glBlendEquationEXT")) - gpBlendEquationIndexedAMD = (C.GPBLENDEQUATIONINDEXEDAMD)(getProcAddr("glBlendEquationIndexedAMD")) - gpBlendEquationSeparate = (C.GPBLENDEQUATIONSEPARATE)(getProcAddr("glBlendEquationSeparate")) - if gpBlendEquationSeparate == nil { - return errors.New("glBlendEquationSeparate") - } - gpBlendEquationSeparateEXT = (C.GPBLENDEQUATIONSEPARATEEXT)(getProcAddr("glBlendEquationSeparateEXT")) - gpBlendEquationSeparateIndexedAMD = (C.GPBLENDEQUATIONSEPARATEINDEXEDAMD)(getProcAddr("glBlendEquationSeparateIndexedAMD")) - gpBlendEquationSeparateiARB = (C.GPBLENDEQUATIONSEPARATEIARB)(getProcAddr("glBlendEquationSeparateiARB")) - gpBlendEquationiARB = (C.GPBLENDEQUATIONIARB)(getProcAddr("glBlendEquationiARB")) - gpBlendFunc = (C.GPBLENDFUNC)(getProcAddr("glBlendFunc")) - if gpBlendFunc == nil { - return errors.New("glBlendFunc") - } - gpBlendFuncIndexedAMD = (C.GPBLENDFUNCINDEXEDAMD)(getProcAddr("glBlendFuncIndexedAMD")) - gpBlendFuncSeparate = (C.GPBLENDFUNCSEPARATE)(getProcAddr("glBlendFuncSeparate")) - if gpBlendFuncSeparate == nil { - return errors.New("glBlendFuncSeparate") - } - gpBlendFuncSeparateEXT = (C.GPBLENDFUNCSEPARATEEXT)(getProcAddr("glBlendFuncSeparateEXT")) - gpBlendFuncSeparateINGR = (C.GPBLENDFUNCSEPARATEINGR)(getProcAddr("glBlendFuncSeparateINGR")) - gpBlendFuncSeparateIndexedAMD = (C.GPBLENDFUNCSEPARATEINDEXEDAMD)(getProcAddr("glBlendFuncSeparateIndexedAMD")) - gpBlendFuncSeparateiARB = (C.GPBLENDFUNCSEPARATEIARB)(getProcAddr("glBlendFuncSeparateiARB")) - gpBlendFunciARB = (C.GPBLENDFUNCIARB)(getProcAddr("glBlendFunciARB")) - gpBlendParameteriNV = (C.GPBLENDPARAMETERINV)(getProcAddr("glBlendParameteriNV")) - gpBlitFramebuffer = (C.GPBLITFRAMEBUFFER)(getProcAddr("glBlitFramebuffer")) - gpBlitFramebufferEXT = (C.GPBLITFRAMEBUFFEREXT)(getProcAddr("glBlitFramebufferEXT")) - gpBlitNamedFramebuffer = (C.GPBLITNAMEDFRAMEBUFFER)(getProcAddr("glBlitNamedFramebuffer")) - gpBufferAddressRangeNV = (C.GPBUFFERADDRESSRANGENV)(getProcAddr("glBufferAddressRangeNV")) - gpBufferData = (C.GPBUFFERDATA)(getProcAddr("glBufferData")) - if gpBufferData == nil { - return errors.New("glBufferData") - } - gpBufferDataARB = (C.GPBUFFERDATAARB)(getProcAddr("glBufferDataARB")) - gpBufferPageCommitmentARB = (C.GPBUFFERPAGECOMMITMENTARB)(getProcAddr("glBufferPageCommitmentARB")) - gpBufferParameteriAPPLE = (C.GPBUFFERPARAMETERIAPPLE)(getProcAddr("glBufferParameteriAPPLE")) - gpBufferStorage = (C.GPBUFFERSTORAGE)(getProcAddr("glBufferStorage")) - gpBufferSubData = (C.GPBUFFERSUBDATA)(getProcAddr("glBufferSubData")) - if gpBufferSubData == nil { - return errors.New("glBufferSubData") - } - gpBufferSubDataARB = (C.GPBUFFERSUBDATAARB)(getProcAddr("glBufferSubDataARB")) - gpCallList = (C.GPCALLLIST)(getProcAddr("glCallList")) - if gpCallList == nil { - return errors.New("glCallList") - } - gpCallLists = (C.GPCALLLISTS)(getProcAddr("glCallLists")) - if gpCallLists == nil { - return errors.New("glCallLists") - } - gpCheckFramebufferStatus = (C.GPCHECKFRAMEBUFFERSTATUS)(getProcAddr("glCheckFramebufferStatus")) - gpCheckFramebufferStatusEXT = (C.GPCHECKFRAMEBUFFERSTATUSEXT)(getProcAddr("glCheckFramebufferStatusEXT")) - gpCheckNamedFramebufferStatus = (C.GPCHECKNAMEDFRAMEBUFFERSTATUS)(getProcAddr("glCheckNamedFramebufferStatus")) - gpCheckNamedFramebufferStatusEXT = (C.GPCHECKNAMEDFRAMEBUFFERSTATUSEXT)(getProcAddr("glCheckNamedFramebufferStatusEXT")) - gpClampColorARB = (C.GPCLAMPCOLORARB)(getProcAddr("glClampColorARB")) - gpClear = (C.GPCLEAR)(getProcAddr("glClear")) - if gpClear == nil { - return errors.New("glClear") - } - gpClearAccum = (C.GPCLEARACCUM)(getProcAddr("glClearAccum")) - if gpClearAccum == nil { - return errors.New("glClearAccum") - } - gpClearAccumxOES = (C.GPCLEARACCUMXOES)(getProcAddr("glClearAccumxOES")) - gpClearBufferData = (C.GPCLEARBUFFERDATA)(getProcAddr("glClearBufferData")) - gpClearBufferSubData = (C.GPCLEARBUFFERSUBDATA)(getProcAddr("glClearBufferSubData")) - gpClearColor = (C.GPCLEARCOLOR)(getProcAddr("glClearColor")) - if gpClearColor == nil { - return errors.New("glClearColor") - } - gpClearColorIiEXT = (C.GPCLEARCOLORIIEXT)(getProcAddr("glClearColorIiEXT")) - gpClearColorIuiEXT = (C.GPCLEARCOLORIUIEXT)(getProcAddr("glClearColorIuiEXT")) - gpClearColorxOES = (C.GPCLEARCOLORXOES)(getProcAddr("glClearColorxOES")) - gpClearDepth = (C.GPCLEARDEPTH)(getProcAddr("glClearDepth")) - if gpClearDepth == nil { - return errors.New("glClearDepth") - } - gpClearDepthdNV = (C.GPCLEARDEPTHDNV)(getProcAddr("glClearDepthdNV")) - gpClearDepthf = (C.GPCLEARDEPTHF)(getProcAddr("glClearDepthf")) - gpClearDepthfOES = (C.GPCLEARDEPTHFOES)(getProcAddr("glClearDepthfOES")) - gpClearDepthxOES = (C.GPCLEARDEPTHXOES)(getProcAddr("glClearDepthxOES")) - gpClearIndex = (C.GPCLEARINDEX)(getProcAddr("glClearIndex")) - if gpClearIndex == nil { - return errors.New("glClearIndex") - } - gpClearNamedBufferData = (C.GPCLEARNAMEDBUFFERDATA)(getProcAddr("glClearNamedBufferData")) - gpClearNamedBufferDataEXT = (C.GPCLEARNAMEDBUFFERDATAEXT)(getProcAddr("glClearNamedBufferDataEXT")) - gpClearNamedBufferSubData = (C.GPCLEARNAMEDBUFFERSUBDATA)(getProcAddr("glClearNamedBufferSubData")) - gpClearNamedBufferSubDataEXT = (C.GPCLEARNAMEDBUFFERSUBDATAEXT)(getProcAddr("glClearNamedBufferSubDataEXT")) - gpClearNamedFramebufferfi = (C.GPCLEARNAMEDFRAMEBUFFERFI)(getProcAddr("glClearNamedFramebufferfi")) - gpClearNamedFramebufferfv = (C.GPCLEARNAMEDFRAMEBUFFERFV)(getProcAddr("glClearNamedFramebufferfv")) - gpClearNamedFramebufferiv = (C.GPCLEARNAMEDFRAMEBUFFERIV)(getProcAddr("glClearNamedFramebufferiv")) - gpClearNamedFramebufferuiv = (C.GPCLEARNAMEDFRAMEBUFFERUIV)(getProcAddr("glClearNamedFramebufferuiv")) - gpClearStencil = (C.GPCLEARSTENCIL)(getProcAddr("glClearStencil")) - if gpClearStencil == nil { - return errors.New("glClearStencil") - } - gpClearTexImage = (C.GPCLEARTEXIMAGE)(getProcAddr("glClearTexImage")) - gpClearTexSubImage = (C.GPCLEARTEXSUBIMAGE)(getProcAddr("glClearTexSubImage")) - gpClientActiveTexture = (C.GPCLIENTACTIVETEXTURE)(getProcAddr("glClientActiveTexture")) - if gpClientActiveTexture == nil { - return errors.New("glClientActiveTexture") - } - gpClientActiveTextureARB = (C.GPCLIENTACTIVETEXTUREARB)(getProcAddr("glClientActiveTextureARB")) - gpClientActiveVertexStreamATI = (C.GPCLIENTACTIVEVERTEXSTREAMATI)(getProcAddr("glClientActiveVertexStreamATI")) - gpClientAttribDefaultEXT = (C.GPCLIENTATTRIBDEFAULTEXT)(getProcAddr("glClientAttribDefaultEXT")) - gpClientWaitSync = (C.GPCLIENTWAITSYNC)(getProcAddr("glClientWaitSync")) - gpClipControl = (C.GPCLIPCONTROL)(getProcAddr("glClipControl")) - gpClipPlane = (C.GPCLIPPLANE)(getProcAddr("glClipPlane")) - if gpClipPlane == nil { - return errors.New("glClipPlane") - } - gpClipPlanefOES = (C.GPCLIPPLANEFOES)(getProcAddr("glClipPlanefOES")) - gpClipPlanexOES = (C.GPCLIPPLANEXOES)(getProcAddr("glClipPlanexOES")) - gpColor3b = (C.GPCOLOR3B)(getProcAddr("glColor3b")) - if gpColor3b == nil { - return errors.New("glColor3b") - } - gpColor3bv = (C.GPCOLOR3BV)(getProcAddr("glColor3bv")) - if gpColor3bv == nil { - return errors.New("glColor3bv") - } - gpColor3d = (C.GPCOLOR3D)(getProcAddr("glColor3d")) - if gpColor3d == nil { - return errors.New("glColor3d") - } - gpColor3dv = (C.GPCOLOR3DV)(getProcAddr("glColor3dv")) - if gpColor3dv == nil { - return errors.New("glColor3dv") - } - gpColor3f = (C.GPCOLOR3F)(getProcAddr("glColor3f")) - if gpColor3f == nil { - return errors.New("glColor3f") - } - gpColor3fVertex3fSUN = (C.GPCOLOR3FVERTEX3FSUN)(getProcAddr("glColor3fVertex3fSUN")) - gpColor3fVertex3fvSUN = (C.GPCOLOR3FVERTEX3FVSUN)(getProcAddr("glColor3fVertex3fvSUN")) - gpColor3fv = (C.GPCOLOR3FV)(getProcAddr("glColor3fv")) - if gpColor3fv == nil { - return errors.New("glColor3fv") - } - gpColor3hNV = (C.GPCOLOR3HNV)(getProcAddr("glColor3hNV")) - gpColor3hvNV = (C.GPCOLOR3HVNV)(getProcAddr("glColor3hvNV")) - gpColor3i = (C.GPCOLOR3I)(getProcAddr("glColor3i")) - if gpColor3i == nil { - return errors.New("glColor3i") - } - gpColor3iv = (C.GPCOLOR3IV)(getProcAddr("glColor3iv")) - if gpColor3iv == nil { - return errors.New("glColor3iv") - } - gpColor3s = (C.GPCOLOR3S)(getProcAddr("glColor3s")) - if gpColor3s == nil { - return errors.New("glColor3s") - } - gpColor3sv = (C.GPCOLOR3SV)(getProcAddr("glColor3sv")) - if gpColor3sv == nil { - return errors.New("glColor3sv") - } - gpColor3ub = (C.GPCOLOR3UB)(getProcAddr("glColor3ub")) - if gpColor3ub == nil { - return errors.New("glColor3ub") - } - gpColor3ubv = (C.GPCOLOR3UBV)(getProcAddr("glColor3ubv")) - if gpColor3ubv == nil { - return errors.New("glColor3ubv") - } - gpColor3ui = (C.GPCOLOR3UI)(getProcAddr("glColor3ui")) - if gpColor3ui == nil { - return errors.New("glColor3ui") - } - gpColor3uiv = (C.GPCOLOR3UIV)(getProcAddr("glColor3uiv")) - if gpColor3uiv == nil { - return errors.New("glColor3uiv") - } - gpColor3us = (C.GPCOLOR3US)(getProcAddr("glColor3us")) - if gpColor3us == nil { - return errors.New("glColor3us") - } - gpColor3usv = (C.GPCOLOR3USV)(getProcAddr("glColor3usv")) - if gpColor3usv == nil { - return errors.New("glColor3usv") - } - gpColor3xOES = (C.GPCOLOR3XOES)(getProcAddr("glColor3xOES")) - gpColor3xvOES = (C.GPCOLOR3XVOES)(getProcAddr("glColor3xvOES")) - gpColor4b = (C.GPCOLOR4B)(getProcAddr("glColor4b")) - if gpColor4b == nil { - return errors.New("glColor4b") - } - gpColor4bv = (C.GPCOLOR4BV)(getProcAddr("glColor4bv")) - if gpColor4bv == nil { - return errors.New("glColor4bv") - } - gpColor4d = (C.GPCOLOR4D)(getProcAddr("glColor4d")) - if gpColor4d == nil { - return errors.New("glColor4d") - } - gpColor4dv = (C.GPCOLOR4DV)(getProcAddr("glColor4dv")) - if gpColor4dv == nil { - return errors.New("glColor4dv") - } - gpColor4f = (C.GPCOLOR4F)(getProcAddr("glColor4f")) - if gpColor4f == nil { - return errors.New("glColor4f") - } - gpColor4fNormal3fVertex3fSUN = (C.GPCOLOR4FNORMAL3FVERTEX3FSUN)(getProcAddr("glColor4fNormal3fVertex3fSUN")) - gpColor4fNormal3fVertex3fvSUN = (C.GPCOLOR4FNORMAL3FVERTEX3FVSUN)(getProcAddr("glColor4fNormal3fVertex3fvSUN")) - gpColor4fv = (C.GPCOLOR4FV)(getProcAddr("glColor4fv")) - if gpColor4fv == nil { - return errors.New("glColor4fv") - } - gpColor4hNV = (C.GPCOLOR4HNV)(getProcAddr("glColor4hNV")) - gpColor4hvNV = (C.GPCOLOR4HVNV)(getProcAddr("glColor4hvNV")) - gpColor4i = (C.GPCOLOR4I)(getProcAddr("glColor4i")) - if gpColor4i == nil { - return errors.New("glColor4i") - } - gpColor4iv = (C.GPCOLOR4IV)(getProcAddr("glColor4iv")) - if gpColor4iv == nil { - return errors.New("glColor4iv") - } - gpColor4s = (C.GPCOLOR4S)(getProcAddr("glColor4s")) - if gpColor4s == nil { - return errors.New("glColor4s") - } - gpColor4sv = (C.GPCOLOR4SV)(getProcAddr("glColor4sv")) - if gpColor4sv == nil { - return errors.New("glColor4sv") - } - gpColor4ub = (C.GPCOLOR4UB)(getProcAddr("glColor4ub")) - if gpColor4ub == nil { - return errors.New("glColor4ub") - } - gpColor4ubVertex2fSUN = (C.GPCOLOR4UBVERTEX2FSUN)(getProcAddr("glColor4ubVertex2fSUN")) - gpColor4ubVertex2fvSUN = (C.GPCOLOR4UBVERTEX2FVSUN)(getProcAddr("glColor4ubVertex2fvSUN")) - gpColor4ubVertex3fSUN = (C.GPCOLOR4UBVERTEX3FSUN)(getProcAddr("glColor4ubVertex3fSUN")) - gpColor4ubVertex3fvSUN = (C.GPCOLOR4UBVERTEX3FVSUN)(getProcAddr("glColor4ubVertex3fvSUN")) - gpColor4ubv = (C.GPCOLOR4UBV)(getProcAddr("glColor4ubv")) - if gpColor4ubv == nil { - return errors.New("glColor4ubv") - } - gpColor4ui = (C.GPCOLOR4UI)(getProcAddr("glColor4ui")) - if gpColor4ui == nil { - return errors.New("glColor4ui") - } - gpColor4uiv = (C.GPCOLOR4UIV)(getProcAddr("glColor4uiv")) - if gpColor4uiv == nil { - return errors.New("glColor4uiv") - } - gpColor4us = (C.GPCOLOR4US)(getProcAddr("glColor4us")) - if gpColor4us == nil { - return errors.New("glColor4us") - } - gpColor4usv = (C.GPCOLOR4USV)(getProcAddr("glColor4usv")) - if gpColor4usv == nil { - return errors.New("glColor4usv") - } - gpColor4xOES = (C.GPCOLOR4XOES)(getProcAddr("glColor4xOES")) - gpColor4xvOES = (C.GPCOLOR4XVOES)(getProcAddr("glColor4xvOES")) - gpColorFormatNV = (C.GPCOLORFORMATNV)(getProcAddr("glColorFormatNV")) - gpColorFragmentOp1ATI = (C.GPCOLORFRAGMENTOP1ATI)(getProcAddr("glColorFragmentOp1ATI")) - gpColorFragmentOp2ATI = (C.GPCOLORFRAGMENTOP2ATI)(getProcAddr("glColorFragmentOp2ATI")) - gpColorFragmentOp3ATI = (C.GPCOLORFRAGMENTOP3ATI)(getProcAddr("glColorFragmentOp3ATI")) - gpColorMask = (C.GPCOLORMASK)(getProcAddr("glColorMask")) - if gpColorMask == nil { - return errors.New("glColorMask") - } - gpColorMaskIndexedEXT = (C.GPCOLORMASKINDEXEDEXT)(getProcAddr("glColorMaskIndexedEXT")) - gpColorMaterial = (C.GPCOLORMATERIAL)(getProcAddr("glColorMaterial")) - if gpColorMaterial == nil { - return errors.New("glColorMaterial") - } - gpColorPointer = (C.GPCOLORPOINTER)(getProcAddr("glColorPointer")) - if gpColorPointer == nil { - return errors.New("glColorPointer") - } - gpColorPointerEXT = (C.GPCOLORPOINTEREXT)(getProcAddr("glColorPointerEXT")) - gpColorPointerListIBM = (C.GPCOLORPOINTERLISTIBM)(getProcAddr("glColorPointerListIBM")) - gpColorPointervINTEL = (C.GPCOLORPOINTERVINTEL)(getProcAddr("glColorPointervINTEL")) - gpColorSubTableEXT = (C.GPCOLORSUBTABLEEXT)(getProcAddr("glColorSubTableEXT")) - gpColorTableEXT = (C.GPCOLORTABLEEXT)(getProcAddr("glColorTableEXT")) - gpColorTableParameterfvSGI = (C.GPCOLORTABLEPARAMETERFVSGI)(getProcAddr("glColorTableParameterfvSGI")) - gpColorTableParameterivSGI = (C.GPCOLORTABLEPARAMETERIVSGI)(getProcAddr("glColorTableParameterivSGI")) - gpColorTableSGI = (C.GPCOLORTABLESGI)(getProcAddr("glColorTableSGI")) - gpCombinerInputNV = (C.GPCOMBINERINPUTNV)(getProcAddr("glCombinerInputNV")) - gpCombinerOutputNV = (C.GPCOMBINEROUTPUTNV)(getProcAddr("glCombinerOutputNV")) - gpCombinerParameterfNV = (C.GPCOMBINERPARAMETERFNV)(getProcAddr("glCombinerParameterfNV")) - gpCombinerParameterfvNV = (C.GPCOMBINERPARAMETERFVNV)(getProcAddr("glCombinerParameterfvNV")) - gpCombinerParameteriNV = (C.GPCOMBINERPARAMETERINV)(getProcAddr("glCombinerParameteriNV")) - gpCombinerParameterivNV = (C.GPCOMBINERPARAMETERIVNV)(getProcAddr("glCombinerParameterivNV")) - gpCombinerStageParameterfvNV = (C.GPCOMBINERSTAGEPARAMETERFVNV)(getProcAddr("glCombinerStageParameterfvNV")) - gpCompileShader = (C.GPCOMPILESHADER)(getProcAddr("glCompileShader")) - if gpCompileShader == nil { - return errors.New("glCompileShader") - } - gpCompileShaderARB = (C.GPCOMPILESHADERARB)(getProcAddr("glCompileShaderARB")) - gpCompileShaderIncludeARB = (C.GPCOMPILESHADERINCLUDEARB)(getProcAddr("glCompileShaderIncludeARB")) - gpCompressedMultiTexImage1DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE1DEXT)(getProcAddr("glCompressedMultiTexImage1DEXT")) - gpCompressedMultiTexImage2DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE2DEXT)(getProcAddr("glCompressedMultiTexImage2DEXT")) - gpCompressedMultiTexImage3DEXT = (C.GPCOMPRESSEDMULTITEXIMAGE3DEXT)(getProcAddr("glCompressedMultiTexImage3DEXT")) - gpCompressedMultiTexSubImage1DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE1DEXT)(getProcAddr("glCompressedMultiTexSubImage1DEXT")) - gpCompressedMultiTexSubImage2DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE2DEXT)(getProcAddr("glCompressedMultiTexSubImage2DEXT")) - gpCompressedMultiTexSubImage3DEXT = (C.GPCOMPRESSEDMULTITEXSUBIMAGE3DEXT)(getProcAddr("glCompressedMultiTexSubImage3DEXT")) - gpCompressedTexImage1D = (C.GPCOMPRESSEDTEXIMAGE1D)(getProcAddr("glCompressedTexImage1D")) - if gpCompressedTexImage1D == nil { - return errors.New("glCompressedTexImage1D") - } - gpCompressedTexImage1DARB = (C.GPCOMPRESSEDTEXIMAGE1DARB)(getProcAddr("glCompressedTexImage1DARB")) - gpCompressedTexImage2D = (C.GPCOMPRESSEDTEXIMAGE2D)(getProcAddr("glCompressedTexImage2D")) - if gpCompressedTexImage2D == nil { - return errors.New("glCompressedTexImage2D") - } - gpCompressedTexImage2DARB = (C.GPCOMPRESSEDTEXIMAGE2DARB)(getProcAddr("glCompressedTexImage2DARB")) - gpCompressedTexImage3D = (C.GPCOMPRESSEDTEXIMAGE3D)(getProcAddr("glCompressedTexImage3D")) - if gpCompressedTexImage3D == nil { - return errors.New("glCompressedTexImage3D") - } - gpCompressedTexImage3DARB = (C.GPCOMPRESSEDTEXIMAGE3DARB)(getProcAddr("glCompressedTexImage3DARB")) - gpCompressedTexSubImage1D = (C.GPCOMPRESSEDTEXSUBIMAGE1D)(getProcAddr("glCompressedTexSubImage1D")) - if gpCompressedTexSubImage1D == nil { - return errors.New("glCompressedTexSubImage1D") - } - gpCompressedTexSubImage1DARB = (C.GPCOMPRESSEDTEXSUBIMAGE1DARB)(getProcAddr("glCompressedTexSubImage1DARB")) - gpCompressedTexSubImage2D = (C.GPCOMPRESSEDTEXSUBIMAGE2D)(getProcAddr("glCompressedTexSubImage2D")) - if gpCompressedTexSubImage2D == nil { - return errors.New("glCompressedTexSubImage2D") - } - gpCompressedTexSubImage2DARB = (C.GPCOMPRESSEDTEXSUBIMAGE2DARB)(getProcAddr("glCompressedTexSubImage2DARB")) - gpCompressedTexSubImage3D = (C.GPCOMPRESSEDTEXSUBIMAGE3D)(getProcAddr("glCompressedTexSubImage3D")) - if gpCompressedTexSubImage3D == nil { - return errors.New("glCompressedTexSubImage3D") - } - gpCompressedTexSubImage3DARB = (C.GPCOMPRESSEDTEXSUBIMAGE3DARB)(getProcAddr("glCompressedTexSubImage3DARB")) - gpCompressedTextureImage1DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE1DEXT)(getProcAddr("glCompressedTextureImage1DEXT")) - gpCompressedTextureImage2DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE2DEXT)(getProcAddr("glCompressedTextureImage2DEXT")) - gpCompressedTextureImage3DEXT = (C.GPCOMPRESSEDTEXTUREIMAGE3DEXT)(getProcAddr("glCompressedTextureImage3DEXT")) - gpCompressedTextureSubImage1D = (C.GPCOMPRESSEDTEXTURESUBIMAGE1D)(getProcAddr("glCompressedTextureSubImage1D")) - gpCompressedTextureSubImage1DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE1DEXT)(getProcAddr("glCompressedTextureSubImage1DEXT")) - gpCompressedTextureSubImage2D = (C.GPCOMPRESSEDTEXTURESUBIMAGE2D)(getProcAddr("glCompressedTextureSubImage2D")) - gpCompressedTextureSubImage2DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE2DEXT)(getProcAddr("glCompressedTextureSubImage2DEXT")) - gpCompressedTextureSubImage3D = (C.GPCOMPRESSEDTEXTURESUBIMAGE3D)(getProcAddr("glCompressedTextureSubImage3D")) - gpCompressedTextureSubImage3DEXT = (C.GPCOMPRESSEDTEXTURESUBIMAGE3DEXT)(getProcAddr("glCompressedTextureSubImage3DEXT")) - gpConvolutionFilter1DEXT = (C.GPCONVOLUTIONFILTER1DEXT)(getProcAddr("glConvolutionFilter1DEXT")) - gpConvolutionFilter2DEXT = (C.GPCONVOLUTIONFILTER2DEXT)(getProcAddr("glConvolutionFilter2DEXT")) - gpConvolutionParameterfEXT = (C.GPCONVOLUTIONPARAMETERFEXT)(getProcAddr("glConvolutionParameterfEXT")) - gpConvolutionParameterfvEXT = (C.GPCONVOLUTIONPARAMETERFVEXT)(getProcAddr("glConvolutionParameterfvEXT")) - gpConvolutionParameteriEXT = (C.GPCONVOLUTIONPARAMETERIEXT)(getProcAddr("glConvolutionParameteriEXT")) - gpConvolutionParameterivEXT = (C.GPCONVOLUTIONPARAMETERIVEXT)(getProcAddr("glConvolutionParameterivEXT")) - gpConvolutionParameterxOES = (C.GPCONVOLUTIONPARAMETERXOES)(getProcAddr("glConvolutionParameterxOES")) - gpConvolutionParameterxvOES = (C.GPCONVOLUTIONPARAMETERXVOES)(getProcAddr("glConvolutionParameterxvOES")) - gpCopyBufferSubData = (C.GPCOPYBUFFERSUBDATA)(getProcAddr("glCopyBufferSubData")) - gpCopyColorSubTableEXT = (C.GPCOPYCOLORSUBTABLEEXT)(getProcAddr("glCopyColorSubTableEXT")) - gpCopyColorTableSGI = (C.GPCOPYCOLORTABLESGI)(getProcAddr("glCopyColorTableSGI")) - gpCopyConvolutionFilter1DEXT = (C.GPCOPYCONVOLUTIONFILTER1DEXT)(getProcAddr("glCopyConvolutionFilter1DEXT")) - gpCopyConvolutionFilter2DEXT = (C.GPCOPYCONVOLUTIONFILTER2DEXT)(getProcAddr("glCopyConvolutionFilter2DEXT")) - gpCopyImageSubData = (C.GPCOPYIMAGESUBDATA)(getProcAddr("glCopyImageSubData")) - gpCopyImageSubDataNV = (C.GPCOPYIMAGESUBDATANV)(getProcAddr("glCopyImageSubDataNV")) - gpCopyMultiTexImage1DEXT = (C.GPCOPYMULTITEXIMAGE1DEXT)(getProcAddr("glCopyMultiTexImage1DEXT")) - gpCopyMultiTexImage2DEXT = (C.GPCOPYMULTITEXIMAGE2DEXT)(getProcAddr("glCopyMultiTexImage2DEXT")) - gpCopyMultiTexSubImage1DEXT = (C.GPCOPYMULTITEXSUBIMAGE1DEXT)(getProcAddr("glCopyMultiTexSubImage1DEXT")) - gpCopyMultiTexSubImage2DEXT = (C.GPCOPYMULTITEXSUBIMAGE2DEXT)(getProcAddr("glCopyMultiTexSubImage2DEXT")) - gpCopyMultiTexSubImage3DEXT = (C.GPCOPYMULTITEXSUBIMAGE3DEXT)(getProcAddr("glCopyMultiTexSubImage3DEXT")) - gpCopyNamedBufferSubData = (C.GPCOPYNAMEDBUFFERSUBDATA)(getProcAddr("glCopyNamedBufferSubData")) - gpCopyPathNV = (C.GPCOPYPATHNV)(getProcAddr("glCopyPathNV")) - gpCopyPixels = (C.GPCOPYPIXELS)(getProcAddr("glCopyPixels")) - if gpCopyPixels == nil { - return errors.New("glCopyPixels") - } - gpCopyTexImage1D = (C.GPCOPYTEXIMAGE1D)(getProcAddr("glCopyTexImage1D")) - if gpCopyTexImage1D == nil { - return errors.New("glCopyTexImage1D") - } - gpCopyTexImage1DEXT = (C.GPCOPYTEXIMAGE1DEXT)(getProcAddr("glCopyTexImage1DEXT")) - gpCopyTexImage2D = (C.GPCOPYTEXIMAGE2D)(getProcAddr("glCopyTexImage2D")) - if gpCopyTexImage2D == nil { - return errors.New("glCopyTexImage2D") - } - gpCopyTexImage2DEXT = (C.GPCOPYTEXIMAGE2DEXT)(getProcAddr("glCopyTexImage2DEXT")) - gpCopyTexSubImage1D = (C.GPCOPYTEXSUBIMAGE1D)(getProcAddr("glCopyTexSubImage1D")) - if gpCopyTexSubImage1D == nil { - return errors.New("glCopyTexSubImage1D") - } - gpCopyTexSubImage1DEXT = (C.GPCOPYTEXSUBIMAGE1DEXT)(getProcAddr("glCopyTexSubImage1DEXT")) - gpCopyTexSubImage2D = (C.GPCOPYTEXSUBIMAGE2D)(getProcAddr("glCopyTexSubImage2D")) - if gpCopyTexSubImage2D == nil { - return errors.New("glCopyTexSubImage2D") - } - gpCopyTexSubImage2DEXT = (C.GPCOPYTEXSUBIMAGE2DEXT)(getProcAddr("glCopyTexSubImage2DEXT")) - gpCopyTexSubImage3D = (C.GPCOPYTEXSUBIMAGE3D)(getProcAddr("glCopyTexSubImage3D")) - if gpCopyTexSubImage3D == nil { - return errors.New("glCopyTexSubImage3D") - } - gpCopyTexSubImage3DEXT = (C.GPCOPYTEXSUBIMAGE3DEXT)(getProcAddr("glCopyTexSubImage3DEXT")) - gpCopyTextureImage1DEXT = (C.GPCOPYTEXTUREIMAGE1DEXT)(getProcAddr("glCopyTextureImage1DEXT")) - gpCopyTextureImage2DEXT = (C.GPCOPYTEXTUREIMAGE2DEXT)(getProcAddr("glCopyTextureImage2DEXT")) - gpCopyTextureSubImage1D = (C.GPCOPYTEXTURESUBIMAGE1D)(getProcAddr("glCopyTextureSubImage1D")) - gpCopyTextureSubImage1DEXT = (C.GPCOPYTEXTURESUBIMAGE1DEXT)(getProcAddr("glCopyTextureSubImage1DEXT")) - gpCopyTextureSubImage2D = (C.GPCOPYTEXTURESUBIMAGE2D)(getProcAddr("glCopyTextureSubImage2D")) - gpCopyTextureSubImage2DEXT = (C.GPCOPYTEXTURESUBIMAGE2DEXT)(getProcAddr("glCopyTextureSubImage2DEXT")) - gpCopyTextureSubImage3D = (C.GPCOPYTEXTURESUBIMAGE3D)(getProcAddr("glCopyTextureSubImage3D")) - gpCopyTextureSubImage3DEXT = (C.GPCOPYTEXTURESUBIMAGE3DEXT)(getProcAddr("glCopyTextureSubImage3DEXT")) - gpCoverFillPathInstancedNV = (C.GPCOVERFILLPATHINSTANCEDNV)(getProcAddr("glCoverFillPathInstancedNV")) - gpCoverFillPathNV = (C.GPCOVERFILLPATHNV)(getProcAddr("glCoverFillPathNV")) - gpCoverStrokePathInstancedNV = (C.GPCOVERSTROKEPATHINSTANCEDNV)(getProcAddr("glCoverStrokePathInstancedNV")) - gpCoverStrokePathNV = (C.GPCOVERSTROKEPATHNV)(getProcAddr("glCoverStrokePathNV")) - gpCreateBuffers = (C.GPCREATEBUFFERS)(getProcAddr("glCreateBuffers")) - gpCreateFramebuffers = (C.GPCREATEFRAMEBUFFERS)(getProcAddr("glCreateFramebuffers")) - gpCreatePerfQueryINTEL = (C.GPCREATEPERFQUERYINTEL)(getProcAddr("glCreatePerfQueryINTEL")) - gpCreateProgram = (C.GPCREATEPROGRAM)(getProcAddr("glCreateProgram")) - if gpCreateProgram == nil { - return errors.New("glCreateProgram") - } - gpCreateProgramObjectARB = (C.GPCREATEPROGRAMOBJECTARB)(getProcAddr("glCreateProgramObjectARB")) - gpCreateProgramPipelines = (C.GPCREATEPROGRAMPIPELINES)(getProcAddr("glCreateProgramPipelines")) - gpCreateQueries = (C.GPCREATEQUERIES)(getProcAddr("glCreateQueries")) - gpCreateRenderbuffers = (C.GPCREATERENDERBUFFERS)(getProcAddr("glCreateRenderbuffers")) - gpCreateSamplers = (C.GPCREATESAMPLERS)(getProcAddr("glCreateSamplers")) - gpCreateShader = (C.GPCREATESHADER)(getProcAddr("glCreateShader")) - if gpCreateShader == nil { - return errors.New("glCreateShader") - } - gpCreateShaderObjectARB = (C.GPCREATESHADEROBJECTARB)(getProcAddr("glCreateShaderObjectARB")) - gpCreateShaderProgramEXT = (C.GPCREATESHADERPROGRAMEXT)(getProcAddr("glCreateShaderProgramEXT")) - gpCreateShaderProgramv = (C.GPCREATESHADERPROGRAMV)(getProcAddr("glCreateShaderProgramv")) - gpCreateShaderProgramvEXT = (C.GPCREATESHADERPROGRAMVEXT)(getProcAddr("glCreateShaderProgramvEXT")) - gpCreateSyncFromCLeventARB = (C.GPCREATESYNCFROMCLEVENTARB)(getProcAddr("glCreateSyncFromCLeventARB")) - gpCreateTextures = (C.GPCREATETEXTURES)(getProcAddr("glCreateTextures")) - gpCreateTransformFeedbacks = (C.GPCREATETRANSFORMFEEDBACKS)(getProcAddr("glCreateTransformFeedbacks")) - gpCreateVertexArrays = (C.GPCREATEVERTEXARRAYS)(getProcAddr("glCreateVertexArrays")) - gpCullFace = (C.GPCULLFACE)(getProcAddr("glCullFace")) - if gpCullFace == nil { - return errors.New("glCullFace") - } - gpCullParameterdvEXT = (C.GPCULLPARAMETERDVEXT)(getProcAddr("glCullParameterdvEXT")) - gpCullParameterfvEXT = (C.GPCULLPARAMETERFVEXT)(getProcAddr("glCullParameterfvEXT")) - gpCurrentPaletteMatrixARB = (C.GPCURRENTPALETTEMATRIXARB)(getProcAddr("glCurrentPaletteMatrixARB")) - gpDebugMessageCallback = (C.GPDEBUGMESSAGECALLBACK)(getProcAddr("glDebugMessageCallback")) - gpDebugMessageCallbackAMD = (C.GPDEBUGMESSAGECALLBACKAMD)(getProcAddr("glDebugMessageCallbackAMD")) - gpDebugMessageCallbackARB = (C.GPDEBUGMESSAGECALLBACKARB)(getProcAddr("glDebugMessageCallbackARB")) - gpDebugMessageCallbackKHR = (C.GPDEBUGMESSAGECALLBACKKHR)(getProcAddr("glDebugMessageCallbackKHR")) - gpDebugMessageControl = (C.GPDEBUGMESSAGECONTROL)(getProcAddr("glDebugMessageControl")) - gpDebugMessageControlARB = (C.GPDEBUGMESSAGECONTROLARB)(getProcAddr("glDebugMessageControlARB")) - gpDebugMessageControlKHR = (C.GPDEBUGMESSAGECONTROLKHR)(getProcAddr("glDebugMessageControlKHR")) - gpDebugMessageEnableAMD = (C.GPDEBUGMESSAGEENABLEAMD)(getProcAddr("glDebugMessageEnableAMD")) - gpDebugMessageInsert = (C.GPDEBUGMESSAGEINSERT)(getProcAddr("glDebugMessageInsert")) - gpDebugMessageInsertAMD = (C.GPDEBUGMESSAGEINSERTAMD)(getProcAddr("glDebugMessageInsertAMD")) - gpDebugMessageInsertARB = (C.GPDEBUGMESSAGEINSERTARB)(getProcAddr("glDebugMessageInsertARB")) - gpDebugMessageInsertKHR = (C.GPDEBUGMESSAGEINSERTKHR)(getProcAddr("glDebugMessageInsertKHR")) - gpDeformSGIX = (C.GPDEFORMSGIX)(getProcAddr("glDeformSGIX")) - gpDeformationMap3dSGIX = (C.GPDEFORMATIONMAP3DSGIX)(getProcAddr("glDeformationMap3dSGIX")) - gpDeformationMap3fSGIX = (C.GPDEFORMATIONMAP3FSGIX)(getProcAddr("glDeformationMap3fSGIX")) - gpDeleteAsyncMarkersSGIX = (C.GPDELETEASYNCMARKERSSGIX)(getProcAddr("glDeleteAsyncMarkersSGIX")) - gpDeleteBuffers = (C.GPDELETEBUFFERS)(getProcAddr("glDeleteBuffers")) - if gpDeleteBuffers == nil { - return errors.New("glDeleteBuffers") - } - gpDeleteBuffersARB = (C.GPDELETEBUFFERSARB)(getProcAddr("glDeleteBuffersARB")) - gpDeleteFencesAPPLE = (C.GPDELETEFENCESAPPLE)(getProcAddr("glDeleteFencesAPPLE")) - gpDeleteFencesNV = (C.GPDELETEFENCESNV)(getProcAddr("glDeleteFencesNV")) - gpDeleteFragmentShaderATI = (C.GPDELETEFRAGMENTSHADERATI)(getProcAddr("glDeleteFragmentShaderATI")) - gpDeleteFramebuffers = (C.GPDELETEFRAMEBUFFERS)(getProcAddr("glDeleteFramebuffers")) - gpDeleteFramebuffersEXT = (C.GPDELETEFRAMEBUFFERSEXT)(getProcAddr("glDeleteFramebuffersEXT")) - gpDeleteLists = (C.GPDELETELISTS)(getProcAddr("glDeleteLists")) - if gpDeleteLists == nil { - return errors.New("glDeleteLists") - } - gpDeleteNamedStringARB = (C.GPDELETENAMEDSTRINGARB)(getProcAddr("glDeleteNamedStringARB")) - gpDeleteNamesAMD = (C.GPDELETENAMESAMD)(getProcAddr("glDeleteNamesAMD")) - gpDeleteObjectARB = (C.GPDELETEOBJECTARB)(getProcAddr("glDeleteObjectARB")) - gpDeleteOcclusionQueriesNV = (C.GPDELETEOCCLUSIONQUERIESNV)(getProcAddr("glDeleteOcclusionQueriesNV")) - gpDeletePathsNV = (C.GPDELETEPATHSNV)(getProcAddr("glDeletePathsNV")) - gpDeletePerfMonitorsAMD = (C.GPDELETEPERFMONITORSAMD)(getProcAddr("glDeletePerfMonitorsAMD")) - gpDeletePerfQueryINTEL = (C.GPDELETEPERFQUERYINTEL)(getProcAddr("glDeletePerfQueryINTEL")) - gpDeleteProgram = (C.GPDELETEPROGRAM)(getProcAddr("glDeleteProgram")) - if gpDeleteProgram == nil { - return errors.New("glDeleteProgram") - } - gpDeleteProgramPipelines = (C.GPDELETEPROGRAMPIPELINES)(getProcAddr("glDeleteProgramPipelines")) - gpDeleteProgramPipelinesEXT = (C.GPDELETEPROGRAMPIPELINESEXT)(getProcAddr("glDeleteProgramPipelinesEXT")) - gpDeleteProgramsARB = (C.GPDELETEPROGRAMSARB)(getProcAddr("glDeleteProgramsARB")) - gpDeleteProgramsNV = (C.GPDELETEPROGRAMSNV)(getProcAddr("glDeleteProgramsNV")) - gpDeleteQueries = (C.GPDELETEQUERIES)(getProcAddr("glDeleteQueries")) - if gpDeleteQueries == nil { - return errors.New("glDeleteQueries") - } - gpDeleteQueriesARB = (C.GPDELETEQUERIESARB)(getProcAddr("glDeleteQueriesARB")) - gpDeleteRenderbuffers = (C.GPDELETERENDERBUFFERS)(getProcAddr("glDeleteRenderbuffers")) - gpDeleteRenderbuffersEXT = (C.GPDELETERENDERBUFFERSEXT)(getProcAddr("glDeleteRenderbuffersEXT")) - gpDeleteSamplers = (C.GPDELETESAMPLERS)(getProcAddr("glDeleteSamplers")) - gpDeleteShader = (C.GPDELETESHADER)(getProcAddr("glDeleteShader")) - if gpDeleteShader == nil { - return errors.New("glDeleteShader") - } - gpDeleteSync = (C.GPDELETESYNC)(getProcAddr("glDeleteSync")) - gpDeleteTextures = (C.GPDELETETEXTURES)(getProcAddr("glDeleteTextures")) - if gpDeleteTextures == nil { - return errors.New("glDeleteTextures") - } - gpDeleteTexturesEXT = (C.GPDELETETEXTURESEXT)(getProcAddr("glDeleteTexturesEXT")) - gpDeleteTransformFeedbacks = (C.GPDELETETRANSFORMFEEDBACKS)(getProcAddr("glDeleteTransformFeedbacks")) - gpDeleteTransformFeedbacksNV = (C.GPDELETETRANSFORMFEEDBACKSNV)(getProcAddr("glDeleteTransformFeedbacksNV")) - gpDeleteVertexArrays = (C.GPDELETEVERTEXARRAYS)(getProcAddr("glDeleteVertexArrays")) - gpDeleteVertexArraysAPPLE = (C.GPDELETEVERTEXARRAYSAPPLE)(getProcAddr("glDeleteVertexArraysAPPLE")) - gpDeleteVertexShaderEXT = (C.GPDELETEVERTEXSHADEREXT)(getProcAddr("glDeleteVertexShaderEXT")) - gpDepthBoundsEXT = (C.GPDEPTHBOUNDSEXT)(getProcAddr("glDepthBoundsEXT")) - gpDepthBoundsdNV = (C.GPDEPTHBOUNDSDNV)(getProcAddr("glDepthBoundsdNV")) - gpDepthFunc = (C.GPDEPTHFUNC)(getProcAddr("glDepthFunc")) - if gpDepthFunc == nil { - return errors.New("glDepthFunc") - } - gpDepthMask = (C.GPDEPTHMASK)(getProcAddr("glDepthMask")) - if gpDepthMask == nil { - return errors.New("glDepthMask") - } - gpDepthRange = (C.GPDEPTHRANGE)(getProcAddr("glDepthRange")) - if gpDepthRange == nil { - return errors.New("glDepthRange") - } - gpDepthRangeArrayv = (C.GPDEPTHRANGEARRAYV)(getProcAddr("glDepthRangeArrayv")) - gpDepthRangeIndexed = (C.GPDEPTHRANGEINDEXED)(getProcAddr("glDepthRangeIndexed")) - gpDepthRangedNV = (C.GPDEPTHRANGEDNV)(getProcAddr("glDepthRangedNV")) - gpDepthRangef = (C.GPDEPTHRANGEF)(getProcAddr("glDepthRangef")) - gpDepthRangefOES = (C.GPDEPTHRANGEFOES)(getProcAddr("glDepthRangefOES")) - gpDepthRangexOES = (C.GPDEPTHRANGEXOES)(getProcAddr("glDepthRangexOES")) - gpDetachObjectARB = (C.GPDETACHOBJECTARB)(getProcAddr("glDetachObjectARB")) - gpDetachShader = (C.GPDETACHSHADER)(getProcAddr("glDetachShader")) - if gpDetachShader == nil { - return errors.New("glDetachShader") - } - gpDetailTexFuncSGIS = (C.GPDETAILTEXFUNCSGIS)(getProcAddr("glDetailTexFuncSGIS")) - gpDisable = (C.GPDISABLE)(getProcAddr("glDisable")) - if gpDisable == nil { - return errors.New("glDisable") - } - gpDisableClientState = (C.GPDISABLECLIENTSTATE)(getProcAddr("glDisableClientState")) - if gpDisableClientState == nil { - return errors.New("glDisableClientState") - } - gpDisableClientStateIndexedEXT = (C.GPDISABLECLIENTSTATEINDEXEDEXT)(getProcAddr("glDisableClientStateIndexedEXT")) - gpDisableClientStateiEXT = (C.GPDISABLECLIENTSTATEIEXT)(getProcAddr("glDisableClientStateiEXT")) - gpDisableIndexedEXT = (C.GPDISABLEINDEXEDEXT)(getProcAddr("glDisableIndexedEXT")) - gpDisableVariantClientStateEXT = (C.GPDISABLEVARIANTCLIENTSTATEEXT)(getProcAddr("glDisableVariantClientStateEXT")) - gpDisableVertexArrayAttrib = (C.GPDISABLEVERTEXARRAYATTRIB)(getProcAddr("glDisableVertexArrayAttrib")) - gpDisableVertexArrayAttribEXT = (C.GPDISABLEVERTEXARRAYATTRIBEXT)(getProcAddr("glDisableVertexArrayAttribEXT")) - gpDisableVertexArrayEXT = (C.GPDISABLEVERTEXARRAYEXT)(getProcAddr("glDisableVertexArrayEXT")) - gpDisableVertexAttribAPPLE = (C.GPDISABLEVERTEXATTRIBAPPLE)(getProcAddr("glDisableVertexAttribAPPLE")) - gpDisableVertexAttribArray = (C.GPDISABLEVERTEXATTRIBARRAY)(getProcAddr("glDisableVertexAttribArray")) - if gpDisableVertexAttribArray == nil { - return errors.New("glDisableVertexAttribArray") - } - gpDisableVertexAttribArrayARB = (C.GPDISABLEVERTEXATTRIBARRAYARB)(getProcAddr("glDisableVertexAttribArrayARB")) - gpDispatchCompute = (C.GPDISPATCHCOMPUTE)(getProcAddr("glDispatchCompute")) - gpDispatchComputeGroupSizeARB = (C.GPDISPATCHCOMPUTEGROUPSIZEARB)(getProcAddr("glDispatchComputeGroupSizeARB")) - gpDispatchComputeIndirect = (C.GPDISPATCHCOMPUTEINDIRECT)(getProcAddr("glDispatchComputeIndirect")) - gpDrawArrays = (C.GPDRAWARRAYS)(getProcAddr("glDrawArrays")) - if gpDrawArrays == nil { - return errors.New("glDrawArrays") - } - gpDrawArraysEXT = (C.GPDRAWARRAYSEXT)(getProcAddr("glDrawArraysEXT")) - gpDrawArraysIndirect = (C.GPDRAWARRAYSINDIRECT)(getProcAddr("glDrawArraysIndirect")) - gpDrawArraysInstancedARB = (C.GPDRAWARRAYSINSTANCEDARB)(getProcAddr("glDrawArraysInstancedARB")) - gpDrawArraysInstancedBaseInstance = (C.GPDRAWARRAYSINSTANCEDBASEINSTANCE)(getProcAddr("glDrawArraysInstancedBaseInstance")) - gpDrawArraysInstancedEXT = (C.GPDRAWARRAYSINSTANCEDEXT)(getProcAddr("glDrawArraysInstancedEXT")) - gpDrawBuffer = (C.GPDRAWBUFFER)(getProcAddr("glDrawBuffer")) - if gpDrawBuffer == nil { - return errors.New("glDrawBuffer") - } - gpDrawBuffers = (C.GPDRAWBUFFERS)(getProcAddr("glDrawBuffers")) - if gpDrawBuffers == nil { - return errors.New("glDrawBuffers") - } - gpDrawBuffersARB = (C.GPDRAWBUFFERSARB)(getProcAddr("glDrawBuffersARB")) - gpDrawBuffersATI = (C.GPDRAWBUFFERSATI)(getProcAddr("glDrawBuffersATI")) - gpDrawElementArrayAPPLE = (C.GPDRAWELEMENTARRAYAPPLE)(getProcAddr("glDrawElementArrayAPPLE")) - gpDrawElementArrayATI = (C.GPDRAWELEMENTARRAYATI)(getProcAddr("glDrawElementArrayATI")) - gpDrawElements = (C.GPDRAWELEMENTS)(getProcAddr("glDrawElements")) - if gpDrawElements == nil { - return errors.New("glDrawElements") - } - gpDrawElementsBaseVertex = (C.GPDRAWELEMENTSBASEVERTEX)(getProcAddr("glDrawElementsBaseVertex")) - gpDrawElementsIndirect = (C.GPDRAWELEMENTSINDIRECT)(getProcAddr("glDrawElementsIndirect")) - gpDrawElementsInstancedARB = (C.GPDRAWELEMENTSINSTANCEDARB)(getProcAddr("glDrawElementsInstancedARB")) - gpDrawElementsInstancedBaseInstance = (C.GPDRAWELEMENTSINSTANCEDBASEINSTANCE)(getProcAddr("glDrawElementsInstancedBaseInstance")) - gpDrawElementsInstancedBaseVertex = (C.GPDRAWELEMENTSINSTANCEDBASEVERTEX)(getProcAddr("glDrawElementsInstancedBaseVertex")) - gpDrawElementsInstancedBaseVertexBaseInstance = (C.GPDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCE)(getProcAddr("glDrawElementsInstancedBaseVertexBaseInstance")) - gpDrawElementsInstancedEXT = (C.GPDRAWELEMENTSINSTANCEDEXT)(getProcAddr("glDrawElementsInstancedEXT")) - gpDrawMeshArraysSUN = (C.GPDRAWMESHARRAYSSUN)(getProcAddr("glDrawMeshArraysSUN")) - gpDrawPixels = (C.GPDRAWPIXELS)(getProcAddr("glDrawPixels")) - if gpDrawPixels == nil { - return errors.New("glDrawPixels") - } - gpDrawRangeElementArrayAPPLE = (C.GPDRAWRANGEELEMENTARRAYAPPLE)(getProcAddr("glDrawRangeElementArrayAPPLE")) - gpDrawRangeElementArrayATI = (C.GPDRAWRANGEELEMENTARRAYATI)(getProcAddr("glDrawRangeElementArrayATI")) - gpDrawRangeElements = (C.GPDRAWRANGEELEMENTS)(getProcAddr("glDrawRangeElements")) - if gpDrawRangeElements == nil { - return errors.New("glDrawRangeElements") - } - gpDrawRangeElementsBaseVertex = (C.GPDRAWRANGEELEMENTSBASEVERTEX)(getProcAddr("glDrawRangeElementsBaseVertex")) - gpDrawRangeElementsEXT = (C.GPDRAWRANGEELEMENTSEXT)(getProcAddr("glDrawRangeElementsEXT")) - gpDrawTextureNV = (C.GPDRAWTEXTURENV)(getProcAddr("glDrawTextureNV")) - gpDrawTransformFeedback = (C.GPDRAWTRANSFORMFEEDBACK)(getProcAddr("glDrawTransformFeedback")) - gpDrawTransformFeedbackInstanced = (C.GPDRAWTRANSFORMFEEDBACKINSTANCED)(getProcAddr("glDrawTransformFeedbackInstanced")) - gpDrawTransformFeedbackNV = (C.GPDRAWTRANSFORMFEEDBACKNV)(getProcAddr("glDrawTransformFeedbackNV")) - gpDrawTransformFeedbackStream = (C.GPDRAWTRANSFORMFEEDBACKSTREAM)(getProcAddr("glDrawTransformFeedbackStream")) - gpDrawTransformFeedbackStreamInstanced = (C.GPDRAWTRANSFORMFEEDBACKSTREAMINSTANCED)(getProcAddr("glDrawTransformFeedbackStreamInstanced")) - gpEdgeFlag = (C.GPEDGEFLAG)(getProcAddr("glEdgeFlag")) - if gpEdgeFlag == nil { - return errors.New("glEdgeFlag") - } - gpEdgeFlagFormatNV = (C.GPEDGEFLAGFORMATNV)(getProcAddr("glEdgeFlagFormatNV")) - gpEdgeFlagPointer = (C.GPEDGEFLAGPOINTER)(getProcAddr("glEdgeFlagPointer")) - if gpEdgeFlagPointer == nil { - return errors.New("glEdgeFlagPointer") - } - gpEdgeFlagPointerEXT = (C.GPEDGEFLAGPOINTEREXT)(getProcAddr("glEdgeFlagPointerEXT")) - gpEdgeFlagPointerListIBM = (C.GPEDGEFLAGPOINTERLISTIBM)(getProcAddr("glEdgeFlagPointerListIBM")) - gpEdgeFlagv = (C.GPEDGEFLAGV)(getProcAddr("glEdgeFlagv")) - if gpEdgeFlagv == nil { - return errors.New("glEdgeFlagv") - } - gpElementPointerAPPLE = (C.GPELEMENTPOINTERAPPLE)(getProcAddr("glElementPointerAPPLE")) - gpElementPointerATI = (C.GPELEMENTPOINTERATI)(getProcAddr("glElementPointerATI")) - gpEnable = (C.GPENABLE)(getProcAddr("glEnable")) - if gpEnable == nil { - return errors.New("glEnable") - } - gpEnableClientState = (C.GPENABLECLIENTSTATE)(getProcAddr("glEnableClientState")) - if gpEnableClientState == nil { - return errors.New("glEnableClientState") - } - gpEnableClientStateIndexedEXT = (C.GPENABLECLIENTSTATEINDEXEDEXT)(getProcAddr("glEnableClientStateIndexedEXT")) - gpEnableClientStateiEXT = (C.GPENABLECLIENTSTATEIEXT)(getProcAddr("glEnableClientStateiEXT")) - gpEnableIndexedEXT = (C.GPENABLEINDEXEDEXT)(getProcAddr("glEnableIndexedEXT")) - gpEnableVariantClientStateEXT = (C.GPENABLEVARIANTCLIENTSTATEEXT)(getProcAddr("glEnableVariantClientStateEXT")) - gpEnableVertexArrayAttrib = (C.GPENABLEVERTEXARRAYATTRIB)(getProcAddr("glEnableVertexArrayAttrib")) - gpEnableVertexArrayAttribEXT = (C.GPENABLEVERTEXARRAYATTRIBEXT)(getProcAddr("glEnableVertexArrayAttribEXT")) - gpEnableVertexArrayEXT = (C.GPENABLEVERTEXARRAYEXT)(getProcAddr("glEnableVertexArrayEXT")) - gpEnableVertexAttribAPPLE = (C.GPENABLEVERTEXATTRIBAPPLE)(getProcAddr("glEnableVertexAttribAPPLE")) - gpEnableVertexAttribArray = (C.GPENABLEVERTEXATTRIBARRAY)(getProcAddr("glEnableVertexAttribArray")) - if gpEnableVertexAttribArray == nil { - return errors.New("glEnableVertexAttribArray") - } - gpEnableVertexAttribArrayARB = (C.GPENABLEVERTEXATTRIBARRAYARB)(getProcAddr("glEnableVertexAttribArrayARB")) - gpEnd = (C.GPEND)(getProcAddr("glEnd")) - if gpEnd == nil { - return errors.New("glEnd") - } - gpEndConditionalRenderNV = (C.GPENDCONDITIONALRENDERNV)(getProcAddr("glEndConditionalRenderNV")) - gpEndConditionalRenderNVX = (C.GPENDCONDITIONALRENDERNVX)(getProcAddr("glEndConditionalRenderNVX")) - gpEndFragmentShaderATI = (C.GPENDFRAGMENTSHADERATI)(getProcAddr("glEndFragmentShaderATI")) - gpEndList = (C.GPENDLIST)(getProcAddr("glEndList")) - if gpEndList == nil { - return errors.New("glEndList") - } - gpEndOcclusionQueryNV = (C.GPENDOCCLUSIONQUERYNV)(getProcAddr("glEndOcclusionQueryNV")) - gpEndPerfMonitorAMD = (C.GPENDPERFMONITORAMD)(getProcAddr("glEndPerfMonitorAMD")) - gpEndPerfQueryINTEL = (C.GPENDPERFQUERYINTEL)(getProcAddr("glEndPerfQueryINTEL")) - gpEndQuery = (C.GPENDQUERY)(getProcAddr("glEndQuery")) - if gpEndQuery == nil { - return errors.New("glEndQuery") - } - gpEndQueryARB = (C.GPENDQUERYARB)(getProcAddr("glEndQueryARB")) - gpEndQueryIndexed = (C.GPENDQUERYINDEXED)(getProcAddr("glEndQueryIndexed")) - gpEndTransformFeedbackEXT = (C.GPENDTRANSFORMFEEDBACKEXT)(getProcAddr("glEndTransformFeedbackEXT")) - gpEndTransformFeedbackNV = (C.GPENDTRANSFORMFEEDBACKNV)(getProcAddr("glEndTransformFeedbackNV")) - gpEndVertexShaderEXT = (C.GPENDVERTEXSHADEREXT)(getProcAddr("glEndVertexShaderEXT")) - gpEndVideoCaptureNV = (C.GPENDVIDEOCAPTURENV)(getProcAddr("glEndVideoCaptureNV")) - gpEvalCoord1d = (C.GPEVALCOORD1D)(getProcAddr("glEvalCoord1d")) - if gpEvalCoord1d == nil { - return errors.New("glEvalCoord1d") - } - gpEvalCoord1dv = (C.GPEVALCOORD1DV)(getProcAddr("glEvalCoord1dv")) - if gpEvalCoord1dv == nil { - return errors.New("glEvalCoord1dv") - } - gpEvalCoord1f = (C.GPEVALCOORD1F)(getProcAddr("glEvalCoord1f")) - if gpEvalCoord1f == nil { - return errors.New("glEvalCoord1f") - } - gpEvalCoord1fv = (C.GPEVALCOORD1FV)(getProcAddr("glEvalCoord1fv")) - if gpEvalCoord1fv == nil { - return errors.New("glEvalCoord1fv") - } - gpEvalCoord1xOES = (C.GPEVALCOORD1XOES)(getProcAddr("glEvalCoord1xOES")) - gpEvalCoord1xvOES = (C.GPEVALCOORD1XVOES)(getProcAddr("glEvalCoord1xvOES")) - gpEvalCoord2d = (C.GPEVALCOORD2D)(getProcAddr("glEvalCoord2d")) - if gpEvalCoord2d == nil { - return errors.New("glEvalCoord2d") - } - gpEvalCoord2dv = (C.GPEVALCOORD2DV)(getProcAddr("glEvalCoord2dv")) - if gpEvalCoord2dv == nil { - return errors.New("glEvalCoord2dv") - } - gpEvalCoord2f = (C.GPEVALCOORD2F)(getProcAddr("glEvalCoord2f")) - if gpEvalCoord2f == nil { - return errors.New("glEvalCoord2f") - } - gpEvalCoord2fv = (C.GPEVALCOORD2FV)(getProcAddr("glEvalCoord2fv")) - if gpEvalCoord2fv == nil { - return errors.New("glEvalCoord2fv") - } - gpEvalCoord2xOES = (C.GPEVALCOORD2XOES)(getProcAddr("glEvalCoord2xOES")) - gpEvalCoord2xvOES = (C.GPEVALCOORD2XVOES)(getProcAddr("glEvalCoord2xvOES")) - gpEvalMapsNV = (C.GPEVALMAPSNV)(getProcAddr("glEvalMapsNV")) - gpEvalMesh1 = (C.GPEVALMESH1)(getProcAddr("glEvalMesh1")) - if gpEvalMesh1 == nil { - return errors.New("glEvalMesh1") - } - gpEvalMesh2 = (C.GPEVALMESH2)(getProcAddr("glEvalMesh2")) - if gpEvalMesh2 == nil { - return errors.New("glEvalMesh2") - } - gpEvalPoint1 = (C.GPEVALPOINT1)(getProcAddr("glEvalPoint1")) - if gpEvalPoint1 == nil { - return errors.New("glEvalPoint1") - } - gpEvalPoint2 = (C.GPEVALPOINT2)(getProcAddr("glEvalPoint2")) - if gpEvalPoint2 == nil { - return errors.New("glEvalPoint2") - } - gpExecuteProgramNV = (C.GPEXECUTEPROGRAMNV)(getProcAddr("glExecuteProgramNV")) - gpExtractComponentEXT = (C.GPEXTRACTCOMPONENTEXT)(getProcAddr("glExtractComponentEXT")) - gpFeedbackBuffer = (C.GPFEEDBACKBUFFER)(getProcAddr("glFeedbackBuffer")) - if gpFeedbackBuffer == nil { - return errors.New("glFeedbackBuffer") - } - gpFeedbackBufferxOES = (C.GPFEEDBACKBUFFERXOES)(getProcAddr("glFeedbackBufferxOES")) - gpFenceSync = (C.GPFENCESYNC)(getProcAddr("glFenceSync")) - gpFinalCombinerInputNV = (C.GPFINALCOMBINERINPUTNV)(getProcAddr("glFinalCombinerInputNV")) - gpFinish = (C.GPFINISH)(getProcAddr("glFinish")) - if gpFinish == nil { - return errors.New("glFinish") - } - gpFinishAsyncSGIX = (C.GPFINISHASYNCSGIX)(getProcAddr("glFinishAsyncSGIX")) - gpFinishFenceAPPLE = (C.GPFINISHFENCEAPPLE)(getProcAddr("glFinishFenceAPPLE")) - gpFinishFenceNV = (C.GPFINISHFENCENV)(getProcAddr("glFinishFenceNV")) - gpFinishObjectAPPLE = (C.GPFINISHOBJECTAPPLE)(getProcAddr("glFinishObjectAPPLE")) - gpFinishTextureSUNX = (C.GPFINISHTEXTURESUNX)(getProcAddr("glFinishTextureSUNX")) - gpFlush = (C.GPFLUSH)(getProcAddr("glFlush")) - if gpFlush == nil { - return errors.New("glFlush") - } - gpFlushMappedBufferRange = (C.GPFLUSHMAPPEDBUFFERRANGE)(getProcAddr("glFlushMappedBufferRange")) - gpFlushMappedBufferRangeAPPLE = (C.GPFLUSHMAPPEDBUFFERRANGEAPPLE)(getProcAddr("glFlushMappedBufferRangeAPPLE")) - gpFlushMappedNamedBufferRange = (C.GPFLUSHMAPPEDNAMEDBUFFERRANGE)(getProcAddr("glFlushMappedNamedBufferRange")) - gpFlushMappedNamedBufferRangeEXT = (C.GPFLUSHMAPPEDNAMEDBUFFERRANGEEXT)(getProcAddr("glFlushMappedNamedBufferRangeEXT")) - gpFlushPixelDataRangeNV = (C.GPFLUSHPIXELDATARANGENV)(getProcAddr("glFlushPixelDataRangeNV")) - gpFlushRasterSGIX = (C.GPFLUSHRASTERSGIX)(getProcAddr("glFlushRasterSGIX")) - gpFlushStaticDataIBM = (C.GPFLUSHSTATICDATAIBM)(getProcAddr("glFlushStaticDataIBM")) - gpFlushVertexArrayRangeAPPLE = (C.GPFLUSHVERTEXARRAYRANGEAPPLE)(getProcAddr("glFlushVertexArrayRangeAPPLE")) - gpFlushVertexArrayRangeNV = (C.GPFLUSHVERTEXARRAYRANGENV)(getProcAddr("glFlushVertexArrayRangeNV")) - gpFogCoordFormatNV = (C.GPFOGCOORDFORMATNV)(getProcAddr("glFogCoordFormatNV")) - gpFogCoordPointer = (C.GPFOGCOORDPOINTER)(getProcAddr("glFogCoordPointer")) - if gpFogCoordPointer == nil { - return errors.New("glFogCoordPointer") - } - gpFogCoordPointerEXT = (C.GPFOGCOORDPOINTEREXT)(getProcAddr("glFogCoordPointerEXT")) - gpFogCoordPointerListIBM = (C.GPFOGCOORDPOINTERLISTIBM)(getProcAddr("glFogCoordPointerListIBM")) - gpFogCoordd = (C.GPFOGCOORDD)(getProcAddr("glFogCoordd")) - if gpFogCoordd == nil { - return errors.New("glFogCoordd") - } - gpFogCoorddEXT = (C.GPFOGCOORDDEXT)(getProcAddr("glFogCoorddEXT")) - gpFogCoorddv = (C.GPFOGCOORDDV)(getProcAddr("glFogCoorddv")) - if gpFogCoorddv == nil { - return errors.New("glFogCoorddv") - } - gpFogCoorddvEXT = (C.GPFOGCOORDDVEXT)(getProcAddr("glFogCoorddvEXT")) - gpFogCoordf = (C.GPFOGCOORDF)(getProcAddr("glFogCoordf")) - if gpFogCoordf == nil { - return errors.New("glFogCoordf") - } - gpFogCoordfEXT = (C.GPFOGCOORDFEXT)(getProcAddr("glFogCoordfEXT")) - gpFogCoordfv = (C.GPFOGCOORDFV)(getProcAddr("glFogCoordfv")) - if gpFogCoordfv == nil { - return errors.New("glFogCoordfv") - } - gpFogCoordfvEXT = (C.GPFOGCOORDFVEXT)(getProcAddr("glFogCoordfvEXT")) - gpFogCoordhNV = (C.GPFOGCOORDHNV)(getProcAddr("glFogCoordhNV")) - gpFogCoordhvNV = (C.GPFOGCOORDHVNV)(getProcAddr("glFogCoordhvNV")) - gpFogFuncSGIS = (C.GPFOGFUNCSGIS)(getProcAddr("glFogFuncSGIS")) - gpFogf = (C.GPFOGF)(getProcAddr("glFogf")) - if gpFogf == nil { - return errors.New("glFogf") - } - gpFogfv = (C.GPFOGFV)(getProcAddr("glFogfv")) - if gpFogfv == nil { - return errors.New("glFogfv") - } - gpFogi = (C.GPFOGI)(getProcAddr("glFogi")) - if gpFogi == nil { - return errors.New("glFogi") - } - gpFogiv = (C.GPFOGIV)(getProcAddr("glFogiv")) - if gpFogiv == nil { - return errors.New("glFogiv") - } - gpFogxOES = (C.GPFOGXOES)(getProcAddr("glFogxOES")) - gpFogxvOES = (C.GPFOGXVOES)(getProcAddr("glFogxvOES")) - gpFragmentColorMaterialSGIX = (C.GPFRAGMENTCOLORMATERIALSGIX)(getProcAddr("glFragmentColorMaterialSGIX")) - gpFragmentLightModelfSGIX = (C.GPFRAGMENTLIGHTMODELFSGIX)(getProcAddr("glFragmentLightModelfSGIX")) - gpFragmentLightModelfvSGIX = (C.GPFRAGMENTLIGHTMODELFVSGIX)(getProcAddr("glFragmentLightModelfvSGIX")) - gpFragmentLightModeliSGIX = (C.GPFRAGMENTLIGHTMODELISGIX)(getProcAddr("glFragmentLightModeliSGIX")) - gpFragmentLightModelivSGIX = (C.GPFRAGMENTLIGHTMODELIVSGIX)(getProcAddr("glFragmentLightModelivSGIX")) - gpFragmentLightfSGIX = (C.GPFRAGMENTLIGHTFSGIX)(getProcAddr("glFragmentLightfSGIX")) - gpFragmentLightfvSGIX = (C.GPFRAGMENTLIGHTFVSGIX)(getProcAddr("glFragmentLightfvSGIX")) - gpFragmentLightiSGIX = (C.GPFRAGMENTLIGHTISGIX)(getProcAddr("glFragmentLightiSGIX")) - gpFragmentLightivSGIX = (C.GPFRAGMENTLIGHTIVSGIX)(getProcAddr("glFragmentLightivSGIX")) - gpFragmentMaterialfSGIX = (C.GPFRAGMENTMATERIALFSGIX)(getProcAddr("glFragmentMaterialfSGIX")) - gpFragmentMaterialfvSGIX = (C.GPFRAGMENTMATERIALFVSGIX)(getProcAddr("glFragmentMaterialfvSGIX")) - gpFragmentMaterialiSGIX = (C.GPFRAGMENTMATERIALISGIX)(getProcAddr("glFragmentMaterialiSGIX")) - gpFragmentMaterialivSGIX = (C.GPFRAGMENTMATERIALIVSGIX)(getProcAddr("glFragmentMaterialivSGIX")) - gpFrameTerminatorGREMEDY = (C.GPFRAMETERMINATORGREMEDY)(getProcAddr("glFrameTerminatorGREMEDY")) - gpFrameZoomSGIX = (C.GPFRAMEZOOMSGIX)(getProcAddr("glFrameZoomSGIX")) - gpFramebufferDrawBufferEXT = (C.GPFRAMEBUFFERDRAWBUFFEREXT)(getProcAddr("glFramebufferDrawBufferEXT")) - gpFramebufferDrawBuffersEXT = (C.GPFRAMEBUFFERDRAWBUFFERSEXT)(getProcAddr("glFramebufferDrawBuffersEXT")) - gpFramebufferParameteri = (C.GPFRAMEBUFFERPARAMETERI)(getProcAddr("glFramebufferParameteri")) - gpFramebufferReadBufferEXT = (C.GPFRAMEBUFFERREADBUFFEREXT)(getProcAddr("glFramebufferReadBufferEXT")) - gpFramebufferRenderbuffer = (C.GPFRAMEBUFFERRENDERBUFFER)(getProcAddr("glFramebufferRenderbuffer")) - gpFramebufferRenderbufferEXT = (C.GPFRAMEBUFFERRENDERBUFFEREXT)(getProcAddr("glFramebufferRenderbufferEXT")) - gpFramebufferTexture1D = (C.GPFRAMEBUFFERTEXTURE1D)(getProcAddr("glFramebufferTexture1D")) - gpFramebufferTexture1DEXT = (C.GPFRAMEBUFFERTEXTURE1DEXT)(getProcAddr("glFramebufferTexture1DEXT")) - gpFramebufferTexture2D = (C.GPFRAMEBUFFERTEXTURE2D)(getProcAddr("glFramebufferTexture2D")) - gpFramebufferTexture2DEXT = (C.GPFRAMEBUFFERTEXTURE2DEXT)(getProcAddr("glFramebufferTexture2DEXT")) - gpFramebufferTexture3D = (C.GPFRAMEBUFFERTEXTURE3D)(getProcAddr("glFramebufferTexture3D")) - gpFramebufferTexture3DEXT = (C.GPFRAMEBUFFERTEXTURE3DEXT)(getProcAddr("glFramebufferTexture3DEXT")) - gpFramebufferTextureARB = (C.GPFRAMEBUFFERTEXTUREARB)(getProcAddr("glFramebufferTextureARB")) - gpFramebufferTextureEXT = (C.GPFRAMEBUFFERTEXTUREEXT)(getProcAddr("glFramebufferTextureEXT")) - gpFramebufferTextureFaceARB = (C.GPFRAMEBUFFERTEXTUREFACEARB)(getProcAddr("glFramebufferTextureFaceARB")) - gpFramebufferTextureFaceEXT = (C.GPFRAMEBUFFERTEXTUREFACEEXT)(getProcAddr("glFramebufferTextureFaceEXT")) - gpFramebufferTextureLayer = (C.GPFRAMEBUFFERTEXTURELAYER)(getProcAddr("glFramebufferTextureLayer")) - gpFramebufferTextureLayerARB = (C.GPFRAMEBUFFERTEXTURELAYERARB)(getProcAddr("glFramebufferTextureLayerARB")) - gpFramebufferTextureLayerEXT = (C.GPFRAMEBUFFERTEXTURELAYEREXT)(getProcAddr("glFramebufferTextureLayerEXT")) - gpFreeObjectBufferATI = (C.GPFREEOBJECTBUFFERATI)(getProcAddr("glFreeObjectBufferATI")) - gpFrontFace = (C.GPFRONTFACE)(getProcAddr("glFrontFace")) - if gpFrontFace == nil { - return errors.New("glFrontFace") - } - gpFrustum = (C.GPFRUSTUM)(getProcAddr("glFrustum")) - if gpFrustum == nil { - return errors.New("glFrustum") - } - gpFrustumfOES = (C.GPFRUSTUMFOES)(getProcAddr("glFrustumfOES")) - gpFrustumxOES = (C.GPFRUSTUMXOES)(getProcAddr("glFrustumxOES")) - gpGenAsyncMarkersSGIX = (C.GPGENASYNCMARKERSSGIX)(getProcAddr("glGenAsyncMarkersSGIX")) - gpGenBuffers = (C.GPGENBUFFERS)(getProcAddr("glGenBuffers")) - if gpGenBuffers == nil { - return errors.New("glGenBuffers") - } - gpGenBuffersARB = (C.GPGENBUFFERSARB)(getProcAddr("glGenBuffersARB")) - gpGenFencesAPPLE = (C.GPGENFENCESAPPLE)(getProcAddr("glGenFencesAPPLE")) - gpGenFencesNV = (C.GPGENFENCESNV)(getProcAddr("glGenFencesNV")) - gpGenFragmentShadersATI = (C.GPGENFRAGMENTSHADERSATI)(getProcAddr("glGenFragmentShadersATI")) - gpGenFramebuffers = (C.GPGENFRAMEBUFFERS)(getProcAddr("glGenFramebuffers")) - gpGenFramebuffersEXT = (C.GPGENFRAMEBUFFERSEXT)(getProcAddr("glGenFramebuffersEXT")) - gpGenLists = (C.GPGENLISTS)(getProcAddr("glGenLists")) - if gpGenLists == nil { - return errors.New("glGenLists") - } - gpGenNamesAMD = (C.GPGENNAMESAMD)(getProcAddr("glGenNamesAMD")) - gpGenOcclusionQueriesNV = (C.GPGENOCCLUSIONQUERIESNV)(getProcAddr("glGenOcclusionQueriesNV")) - gpGenPathsNV = (C.GPGENPATHSNV)(getProcAddr("glGenPathsNV")) - gpGenPerfMonitorsAMD = (C.GPGENPERFMONITORSAMD)(getProcAddr("glGenPerfMonitorsAMD")) - gpGenProgramPipelines = (C.GPGENPROGRAMPIPELINES)(getProcAddr("glGenProgramPipelines")) - gpGenProgramPipelinesEXT = (C.GPGENPROGRAMPIPELINESEXT)(getProcAddr("glGenProgramPipelinesEXT")) - gpGenProgramsARB = (C.GPGENPROGRAMSARB)(getProcAddr("glGenProgramsARB")) - gpGenProgramsNV = (C.GPGENPROGRAMSNV)(getProcAddr("glGenProgramsNV")) - gpGenQueries = (C.GPGENQUERIES)(getProcAddr("glGenQueries")) - if gpGenQueries == nil { - return errors.New("glGenQueries") - } - gpGenQueriesARB = (C.GPGENQUERIESARB)(getProcAddr("glGenQueriesARB")) - gpGenRenderbuffers = (C.GPGENRENDERBUFFERS)(getProcAddr("glGenRenderbuffers")) - gpGenRenderbuffersEXT = (C.GPGENRENDERBUFFERSEXT)(getProcAddr("glGenRenderbuffersEXT")) - gpGenSamplers = (C.GPGENSAMPLERS)(getProcAddr("glGenSamplers")) - gpGenSymbolsEXT = (C.GPGENSYMBOLSEXT)(getProcAddr("glGenSymbolsEXT")) - gpGenTextures = (C.GPGENTEXTURES)(getProcAddr("glGenTextures")) - if gpGenTextures == nil { - return errors.New("glGenTextures") - } - gpGenTexturesEXT = (C.GPGENTEXTURESEXT)(getProcAddr("glGenTexturesEXT")) - gpGenTransformFeedbacks = (C.GPGENTRANSFORMFEEDBACKS)(getProcAddr("glGenTransformFeedbacks")) - gpGenTransformFeedbacksNV = (C.GPGENTRANSFORMFEEDBACKSNV)(getProcAddr("glGenTransformFeedbacksNV")) - gpGenVertexArrays = (C.GPGENVERTEXARRAYS)(getProcAddr("glGenVertexArrays")) - gpGenVertexArraysAPPLE = (C.GPGENVERTEXARRAYSAPPLE)(getProcAddr("glGenVertexArraysAPPLE")) - gpGenVertexShadersEXT = (C.GPGENVERTEXSHADERSEXT)(getProcAddr("glGenVertexShadersEXT")) - gpGenerateMipmap = (C.GPGENERATEMIPMAP)(getProcAddr("glGenerateMipmap")) - gpGenerateMipmapEXT = (C.GPGENERATEMIPMAPEXT)(getProcAddr("glGenerateMipmapEXT")) - gpGenerateMultiTexMipmapEXT = (C.GPGENERATEMULTITEXMIPMAPEXT)(getProcAddr("glGenerateMultiTexMipmapEXT")) - gpGenerateTextureMipmap = (C.GPGENERATETEXTUREMIPMAP)(getProcAddr("glGenerateTextureMipmap")) - gpGenerateTextureMipmapEXT = (C.GPGENERATETEXTUREMIPMAPEXT)(getProcAddr("glGenerateTextureMipmapEXT")) - gpGetActiveAtomicCounterBufferiv = (C.GPGETACTIVEATOMICCOUNTERBUFFERIV)(getProcAddr("glGetActiveAtomicCounterBufferiv")) - gpGetActiveAttrib = (C.GPGETACTIVEATTRIB)(getProcAddr("glGetActiveAttrib")) - if gpGetActiveAttrib == nil { - return errors.New("glGetActiveAttrib") - } - gpGetActiveAttribARB = (C.GPGETACTIVEATTRIBARB)(getProcAddr("glGetActiveAttribARB")) - gpGetActiveSubroutineName = (C.GPGETACTIVESUBROUTINENAME)(getProcAddr("glGetActiveSubroutineName")) - gpGetActiveSubroutineUniformName = (C.GPGETACTIVESUBROUTINEUNIFORMNAME)(getProcAddr("glGetActiveSubroutineUniformName")) - gpGetActiveSubroutineUniformiv = (C.GPGETACTIVESUBROUTINEUNIFORMIV)(getProcAddr("glGetActiveSubroutineUniformiv")) - gpGetActiveUniform = (C.GPGETACTIVEUNIFORM)(getProcAddr("glGetActiveUniform")) - if gpGetActiveUniform == nil { - return errors.New("glGetActiveUniform") - } - gpGetActiveUniformARB = (C.GPGETACTIVEUNIFORMARB)(getProcAddr("glGetActiveUniformARB")) - gpGetActiveUniformBlockName = (C.GPGETACTIVEUNIFORMBLOCKNAME)(getProcAddr("glGetActiveUniformBlockName")) - gpGetActiveUniformBlockiv = (C.GPGETACTIVEUNIFORMBLOCKIV)(getProcAddr("glGetActiveUniformBlockiv")) - gpGetActiveUniformName = (C.GPGETACTIVEUNIFORMNAME)(getProcAddr("glGetActiveUniformName")) - gpGetActiveUniformsiv = (C.GPGETACTIVEUNIFORMSIV)(getProcAddr("glGetActiveUniformsiv")) - gpGetActiveVaryingNV = (C.GPGETACTIVEVARYINGNV)(getProcAddr("glGetActiveVaryingNV")) - gpGetArrayObjectfvATI = (C.GPGETARRAYOBJECTFVATI)(getProcAddr("glGetArrayObjectfvATI")) - gpGetArrayObjectivATI = (C.GPGETARRAYOBJECTIVATI)(getProcAddr("glGetArrayObjectivATI")) - gpGetAttachedObjectsARB = (C.GPGETATTACHEDOBJECTSARB)(getProcAddr("glGetAttachedObjectsARB")) - gpGetAttachedShaders = (C.GPGETATTACHEDSHADERS)(getProcAddr("glGetAttachedShaders")) - if gpGetAttachedShaders == nil { - return errors.New("glGetAttachedShaders") - } - gpGetAttribLocation = (C.GPGETATTRIBLOCATION)(getProcAddr("glGetAttribLocation")) - if gpGetAttribLocation == nil { - return errors.New("glGetAttribLocation") - } - gpGetAttribLocationARB = (C.GPGETATTRIBLOCATIONARB)(getProcAddr("glGetAttribLocationARB")) - gpGetBooleanIndexedvEXT = (C.GPGETBOOLEANINDEXEDVEXT)(getProcAddr("glGetBooleanIndexedvEXT")) - gpGetBooleanv = (C.GPGETBOOLEANV)(getProcAddr("glGetBooleanv")) - if gpGetBooleanv == nil { - return errors.New("glGetBooleanv") - } - gpGetBufferParameteriv = (C.GPGETBUFFERPARAMETERIV)(getProcAddr("glGetBufferParameteriv")) - if gpGetBufferParameteriv == nil { - return errors.New("glGetBufferParameteriv") - } - gpGetBufferParameterivARB = (C.GPGETBUFFERPARAMETERIVARB)(getProcAddr("glGetBufferParameterivARB")) - gpGetBufferParameterui64vNV = (C.GPGETBUFFERPARAMETERUI64VNV)(getProcAddr("glGetBufferParameterui64vNV")) - gpGetBufferPointerv = (C.GPGETBUFFERPOINTERV)(getProcAddr("glGetBufferPointerv")) - if gpGetBufferPointerv == nil { - return errors.New("glGetBufferPointerv") - } - gpGetBufferPointervARB = (C.GPGETBUFFERPOINTERVARB)(getProcAddr("glGetBufferPointervARB")) - gpGetBufferSubData = (C.GPGETBUFFERSUBDATA)(getProcAddr("glGetBufferSubData")) - if gpGetBufferSubData == nil { - return errors.New("glGetBufferSubData") - } - gpGetBufferSubDataARB = (C.GPGETBUFFERSUBDATAARB)(getProcAddr("glGetBufferSubDataARB")) - gpGetClipPlane = (C.GPGETCLIPPLANE)(getProcAddr("glGetClipPlane")) - if gpGetClipPlane == nil { - return errors.New("glGetClipPlane") - } - gpGetClipPlanefOES = (C.GPGETCLIPPLANEFOES)(getProcAddr("glGetClipPlanefOES")) - gpGetClipPlanexOES = (C.GPGETCLIPPLANEXOES)(getProcAddr("glGetClipPlanexOES")) - gpGetColorTableEXT = (C.GPGETCOLORTABLEEXT)(getProcAddr("glGetColorTableEXT")) - gpGetColorTableParameterfvEXT = (C.GPGETCOLORTABLEPARAMETERFVEXT)(getProcAddr("glGetColorTableParameterfvEXT")) - gpGetColorTableParameterfvSGI = (C.GPGETCOLORTABLEPARAMETERFVSGI)(getProcAddr("glGetColorTableParameterfvSGI")) - gpGetColorTableParameterivEXT = (C.GPGETCOLORTABLEPARAMETERIVEXT)(getProcAddr("glGetColorTableParameterivEXT")) - gpGetColorTableParameterivSGI = (C.GPGETCOLORTABLEPARAMETERIVSGI)(getProcAddr("glGetColorTableParameterivSGI")) - gpGetColorTableSGI = (C.GPGETCOLORTABLESGI)(getProcAddr("glGetColorTableSGI")) - gpGetCombinerInputParameterfvNV = (C.GPGETCOMBINERINPUTPARAMETERFVNV)(getProcAddr("glGetCombinerInputParameterfvNV")) - gpGetCombinerInputParameterivNV = (C.GPGETCOMBINERINPUTPARAMETERIVNV)(getProcAddr("glGetCombinerInputParameterivNV")) - gpGetCombinerOutputParameterfvNV = (C.GPGETCOMBINEROUTPUTPARAMETERFVNV)(getProcAddr("glGetCombinerOutputParameterfvNV")) - gpGetCombinerOutputParameterivNV = (C.GPGETCOMBINEROUTPUTPARAMETERIVNV)(getProcAddr("glGetCombinerOutputParameterivNV")) - gpGetCombinerStageParameterfvNV = (C.GPGETCOMBINERSTAGEPARAMETERFVNV)(getProcAddr("glGetCombinerStageParameterfvNV")) - gpGetCompressedMultiTexImageEXT = (C.GPGETCOMPRESSEDMULTITEXIMAGEEXT)(getProcAddr("glGetCompressedMultiTexImageEXT")) - gpGetCompressedTexImage = (C.GPGETCOMPRESSEDTEXIMAGE)(getProcAddr("glGetCompressedTexImage")) - if gpGetCompressedTexImage == nil { - return errors.New("glGetCompressedTexImage") - } - gpGetCompressedTexImageARB = (C.GPGETCOMPRESSEDTEXIMAGEARB)(getProcAddr("glGetCompressedTexImageARB")) - gpGetCompressedTextureImage = (C.GPGETCOMPRESSEDTEXTUREIMAGE)(getProcAddr("glGetCompressedTextureImage")) - gpGetCompressedTextureImageEXT = (C.GPGETCOMPRESSEDTEXTUREIMAGEEXT)(getProcAddr("glGetCompressedTextureImageEXT")) - gpGetCompressedTextureSubImage = (C.GPGETCOMPRESSEDTEXTURESUBIMAGE)(getProcAddr("glGetCompressedTextureSubImage")) - gpGetConvolutionFilterEXT = (C.GPGETCONVOLUTIONFILTEREXT)(getProcAddr("glGetConvolutionFilterEXT")) - gpGetConvolutionParameterfvEXT = (C.GPGETCONVOLUTIONPARAMETERFVEXT)(getProcAddr("glGetConvolutionParameterfvEXT")) - gpGetConvolutionParameterivEXT = (C.GPGETCONVOLUTIONPARAMETERIVEXT)(getProcAddr("glGetConvolutionParameterivEXT")) - gpGetConvolutionParameterxvOES = (C.GPGETCONVOLUTIONPARAMETERXVOES)(getProcAddr("glGetConvolutionParameterxvOES")) - gpGetDebugMessageLog = (C.GPGETDEBUGMESSAGELOG)(getProcAddr("glGetDebugMessageLog")) - gpGetDebugMessageLogAMD = (C.GPGETDEBUGMESSAGELOGAMD)(getProcAddr("glGetDebugMessageLogAMD")) - gpGetDebugMessageLogARB = (C.GPGETDEBUGMESSAGELOGARB)(getProcAddr("glGetDebugMessageLogARB")) - gpGetDebugMessageLogKHR = (C.GPGETDEBUGMESSAGELOGKHR)(getProcAddr("glGetDebugMessageLogKHR")) - gpGetDetailTexFuncSGIS = (C.GPGETDETAILTEXFUNCSGIS)(getProcAddr("glGetDetailTexFuncSGIS")) - gpGetDoubleIndexedvEXT = (C.GPGETDOUBLEINDEXEDVEXT)(getProcAddr("glGetDoubleIndexedvEXT")) - gpGetDoublei_v = (C.GPGETDOUBLEI_V)(getProcAddr("glGetDoublei_v")) - gpGetDoublei_vEXT = (C.GPGETDOUBLEI_VEXT)(getProcAddr("glGetDoublei_vEXT")) - gpGetDoublev = (C.GPGETDOUBLEV)(getProcAddr("glGetDoublev")) - if gpGetDoublev == nil { - return errors.New("glGetDoublev") - } - gpGetError = (C.GPGETERROR)(getProcAddr("glGetError")) - if gpGetError == nil { - return errors.New("glGetError") - } - gpGetFenceivNV = (C.GPGETFENCEIVNV)(getProcAddr("glGetFenceivNV")) - gpGetFinalCombinerInputParameterfvNV = (C.GPGETFINALCOMBINERINPUTPARAMETERFVNV)(getProcAddr("glGetFinalCombinerInputParameterfvNV")) - gpGetFinalCombinerInputParameterivNV = (C.GPGETFINALCOMBINERINPUTPARAMETERIVNV)(getProcAddr("glGetFinalCombinerInputParameterivNV")) - gpGetFirstPerfQueryIdINTEL = (C.GPGETFIRSTPERFQUERYIDINTEL)(getProcAddr("glGetFirstPerfQueryIdINTEL")) - gpGetFixedvOES = (C.GPGETFIXEDVOES)(getProcAddr("glGetFixedvOES")) - gpGetFloatIndexedvEXT = (C.GPGETFLOATINDEXEDVEXT)(getProcAddr("glGetFloatIndexedvEXT")) - gpGetFloati_v = (C.GPGETFLOATI_V)(getProcAddr("glGetFloati_v")) - gpGetFloati_vEXT = (C.GPGETFLOATI_VEXT)(getProcAddr("glGetFloati_vEXT")) - gpGetFloatv = (C.GPGETFLOATV)(getProcAddr("glGetFloatv")) - if gpGetFloatv == nil { - return errors.New("glGetFloatv") - } - gpGetFogFuncSGIS = (C.GPGETFOGFUNCSGIS)(getProcAddr("glGetFogFuncSGIS")) - gpGetFragDataIndex = (C.GPGETFRAGDATAINDEX)(getProcAddr("glGetFragDataIndex")) - gpGetFragDataLocationEXT = (C.GPGETFRAGDATALOCATIONEXT)(getProcAddr("glGetFragDataLocationEXT")) - gpGetFragmentLightfvSGIX = (C.GPGETFRAGMENTLIGHTFVSGIX)(getProcAddr("glGetFragmentLightfvSGIX")) - gpGetFragmentLightivSGIX = (C.GPGETFRAGMENTLIGHTIVSGIX)(getProcAddr("glGetFragmentLightivSGIX")) - gpGetFragmentMaterialfvSGIX = (C.GPGETFRAGMENTMATERIALFVSGIX)(getProcAddr("glGetFragmentMaterialfvSGIX")) - gpGetFragmentMaterialivSGIX = (C.GPGETFRAGMENTMATERIALIVSGIX)(getProcAddr("glGetFragmentMaterialivSGIX")) - gpGetFramebufferAttachmentParameteriv = (C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr("glGetFramebufferAttachmentParameteriv")) - gpGetFramebufferAttachmentParameterivEXT = (C.GPGETFRAMEBUFFERATTACHMENTPARAMETERIVEXT)(getProcAddr("glGetFramebufferAttachmentParameterivEXT")) - gpGetFramebufferParameteriv = (C.GPGETFRAMEBUFFERPARAMETERIV)(getProcAddr("glGetFramebufferParameteriv")) - gpGetFramebufferParameterivEXT = (C.GPGETFRAMEBUFFERPARAMETERIVEXT)(getProcAddr("glGetFramebufferParameterivEXT")) - gpGetGraphicsResetStatus = (C.GPGETGRAPHICSRESETSTATUS)(getProcAddr("glGetGraphicsResetStatus")) - gpGetGraphicsResetStatusARB = (C.GPGETGRAPHICSRESETSTATUSARB)(getProcAddr("glGetGraphicsResetStatusARB")) - gpGetGraphicsResetStatusKHR = (C.GPGETGRAPHICSRESETSTATUSKHR)(getProcAddr("glGetGraphicsResetStatusKHR")) - gpGetHandleARB = (C.GPGETHANDLEARB)(getProcAddr("glGetHandleARB")) - gpGetHistogramEXT = (C.GPGETHISTOGRAMEXT)(getProcAddr("glGetHistogramEXT")) - gpGetHistogramParameterfvEXT = (C.GPGETHISTOGRAMPARAMETERFVEXT)(getProcAddr("glGetHistogramParameterfvEXT")) - gpGetHistogramParameterivEXT = (C.GPGETHISTOGRAMPARAMETERIVEXT)(getProcAddr("glGetHistogramParameterivEXT")) - gpGetHistogramParameterxvOES = (C.GPGETHISTOGRAMPARAMETERXVOES)(getProcAddr("glGetHistogramParameterxvOES")) - gpGetImageHandleARB = (C.GPGETIMAGEHANDLEARB)(getProcAddr("glGetImageHandleARB")) - gpGetImageHandleNV = (C.GPGETIMAGEHANDLENV)(getProcAddr("glGetImageHandleNV")) - gpGetImageTransformParameterfvHP = (C.GPGETIMAGETRANSFORMPARAMETERFVHP)(getProcAddr("glGetImageTransformParameterfvHP")) - gpGetImageTransformParameterivHP = (C.GPGETIMAGETRANSFORMPARAMETERIVHP)(getProcAddr("glGetImageTransformParameterivHP")) - gpGetInfoLogARB = (C.GPGETINFOLOGARB)(getProcAddr("glGetInfoLogARB")) - gpGetInstrumentsSGIX = (C.GPGETINSTRUMENTSSGIX)(getProcAddr("glGetInstrumentsSGIX")) - gpGetInteger64v = (C.GPGETINTEGER64V)(getProcAddr("glGetInteger64v")) - gpGetIntegerIndexedvEXT = (C.GPGETINTEGERINDEXEDVEXT)(getProcAddr("glGetIntegerIndexedvEXT")) - gpGetIntegerui64i_vNV = (C.GPGETINTEGERUI64I_VNV)(getProcAddr("glGetIntegerui64i_vNV")) - gpGetIntegerui64vNV = (C.GPGETINTEGERUI64VNV)(getProcAddr("glGetIntegerui64vNV")) - gpGetIntegerv = (C.GPGETINTEGERV)(getProcAddr("glGetIntegerv")) - if gpGetIntegerv == nil { - return errors.New("glGetIntegerv") - } - gpGetInternalformati64v = (C.GPGETINTERNALFORMATI64V)(getProcAddr("glGetInternalformati64v")) - gpGetInternalformativ = (C.GPGETINTERNALFORMATIV)(getProcAddr("glGetInternalformativ")) - gpGetInvariantBooleanvEXT = (C.GPGETINVARIANTBOOLEANVEXT)(getProcAddr("glGetInvariantBooleanvEXT")) - gpGetInvariantFloatvEXT = (C.GPGETINVARIANTFLOATVEXT)(getProcAddr("glGetInvariantFloatvEXT")) - gpGetInvariantIntegervEXT = (C.GPGETINVARIANTINTEGERVEXT)(getProcAddr("glGetInvariantIntegervEXT")) - gpGetLightfv = (C.GPGETLIGHTFV)(getProcAddr("glGetLightfv")) - if gpGetLightfv == nil { - return errors.New("glGetLightfv") - } - gpGetLightiv = (C.GPGETLIGHTIV)(getProcAddr("glGetLightiv")) - if gpGetLightiv == nil { - return errors.New("glGetLightiv") - } - gpGetLightxOES = (C.GPGETLIGHTXOES)(getProcAddr("glGetLightxOES")) - gpGetLightxvOES = (C.GPGETLIGHTXVOES)(getProcAddr("glGetLightxvOES")) - gpGetListParameterfvSGIX = (C.GPGETLISTPARAMETERFVSGIX)(getProcAddr("glGetListParameterfvSGIX")) - gpGetListParameterivSGIX = (C.GPGETLISTPARAMETERIVSGIX)(getProcAddr("glGetListParameterivSGIX")) - gpGetLocalConstantBooleanvEXT = (C.GPGETLOCALCONSTANTBOOLEANVEXT)(getProcAddr("glGetLocalConstantBooleanvEXT")) - gpGetLocalConstantFloatvEXT = (C.GPGETLOCALCONSTANTFLOATVEXT)(getProcAddr("glGetLocalConstantFloatvEXT")) - gpGetLocalConstantIntegervEXT = (C.GPGETLOCALCONSTANTINTEGERVEXT)(getProcAddr("glGetLocalConstantIntegervEXT")) - gpGetMapAttribParameterfvNV = (C.GPGETMAPATTRIBPARAMETERFVNV)(getProcAddr("glGetMapAttribParameterfvNV")) - gpGetMapAttribParameterivNV = (C.GPGETMAPATTRIBPARAMETERIVNV)(getProcAddr("glGetMapAttribParameterivNV")) - gpGetMapControlPointsNV = (C.GPGETMAPCONTROLPOINTSNV)(getProcAddr("glGetMapControlPointsNV")) - gpGetMapParameterfvNV = (C.GPGETMAPPARAMETERFVNV)(getProcAddr("glGetMapParameterfvNV")) - gpGetMapParameterivNV = (C.GPGETMAPPARAMETERIVNV)(getProcAddr("glGetMapParameterivNV")) - gpGetMapdv = (C.GPGETMAPDV)(getProcAddr("glGetMapdv")) - if gpGetMapdv == nil { - return errors.New("glGetMapdv") - } - gpGetMapfv = (C.GPGETMAPFV)(getProcAddr("glGetMapfv")) - if gpGetMapfv == nil { - return errors.New("glGetMapfv") - } - gpGetMapiv = (C.GPGETMAPIV)(getProcAddr("glGetMapiv")) - if gpGetMapiv == nil { - return errors.New("glGetMapiv") - } - gpGetMapxvOES = (C.GPGETMAPXVOES)(getProcAddr("glGetMapxvOES")) - gpGetMaterialfv = (C.GPGETMATERIALFV)(getProcAddr("glGetMaterialfv")) - if gpGetMaterialfv == nil { - return errors.New("glGetMaterialfv") - } - gpGetMaterialiv = (C.GPGETMATERIALIV)(getProcAddr("glGetMaterialiv")) - if gpGetMaterialiv == nil { - return errors.New("glGetMaterialiv") - } - gpGetMaterialxOES = (C.GPGETMATERIALXOES)(getProcAddr("glGetMaterialxOES")) - gpGetMaterialxvOES = (C.GPGETMATERIALXVOES)(getProcAddr("glGetMaterialxvOES")) - gpGetMinmaxEXT = (C.GPGETMINMAXEXT)(getProcAddr("glGetMinmaxEXT")) - gpGetMinmaxParameterfvEXT = (C.GPGETMINMAXPARAMETERFVEXT)(getProcAddr("glGetMinmaxParameterfvEXT")) - gpGetMinmaxParameterivEXT = (C.GPGETMINMAXPARAMETERIVEXT)(getProcAddr("glGetMinmaxParameterivEXT")) - gpGetMultiTexEnvfvEXT = (C.GPGETMULTITEXENVFVEXT)(getProcAddr("glGetMultiTexEnvfvEXT")) - gpGetMultiTexEnvivEXT = (C.GPGETMULTITEXENVIVEXT)(getProcAddr("glGetMultiTexEnvivEXT")) - gpGetMultiTexGendvEXT = (C.GPGETMULTITEXGENDVEXT)(getProcAddr("glGetMultiTexGendvEXT")) - gpGetMultiTexGenfvEXT = (C.GPGETMULTITEXGENFVEXT)(getProcAddr("glGetMultiTexGenfvEXT")) - gpGetMultiTexGenivEXT = (C.GPGETMULTITEXGENIVEXT)(getProcAddr("glGetMultiTexGenivEXT")) - gpGetMultiTexImageEXT = (C.GPGETMULTITEXIMAGEEXT)(getProcAddr("glGetMultiTexImageEXT")) - gpGetMultiTexLevelParameterfvEXT = (C.GPGETMULTITEXLEVELPARAMETERFVEXT)(getProcAddr("glGetMultiTexLevelParameterfvEXT")) - gpGetMultiTexLevelParameterivEXT = (C.GPGETMULTITEXLEVELPARAMETERIVEXT)(getProcAddr("glGetMultiTexLevelParameterivEXT")) - gpGetMultiTexParameterIivEXT = (C.GPGETMULTITEXPARAMETERIIVEXT)(getProcAddr("glGetMultiTexParameterIivEXT")) - gpGetMultiTexParameterIuivEXT = (C.GPGETMULTITEXPARAMETERIUIVEXT)(getProcAddr("glGetMultiTexParameterIuivEXT")) - gpGetMultiTexParameterfvEXT = (C.GPGETMULTITEXPARAMETERFVEXT)(getProcAddr("glGetMultiTexParameterfvEXT")) - gpGetMultiTexParameterivEXT = (C.GPGETMULTITEXPARAMETERIVEXT)(getProcAddr("glGetMultiTexParameterivEXT")) - gpGetMultisamplefv = (C.GPGETMULTISAMPLEFV)(getProcAddr("glGetMultisamplefv")) - gpGetMultisamplefvNV = (C.GPGETMULTISAMPLEFVNV)(getProcAddr("glGetMultisamplefvNV")) - gpGetNamedBufferParameteri64v = (C.GPGETNAMEDBUFFERPARAMETERI64V)(getProcAddr("glGetNamedBufferParameteri64v")) - gpGetNamedBufferParameteriv = (C.GPGETNAMEDBUFFERPARAMETERIV)(getProcAddr("glGetNamedBufferParameteriv")) - gpGetNamedBufferParameterivEXT = (C.GPGETNAMEDBUFFERPARAMETERIVEXT)(getProcAddr("glGetNamedBufferParameterivEXT")) - gpGetNamedBufferParameterui64vNV = (C.GPGETNAMEDBUFFERPARAMETERUI64VNV)(getProcAddr("glGetNamedBufferParameterui64vNV")) - gpGetNamedBufferPointerv = (C.GPGETNAMEDBUFFERPOINTERV)(getProcAddr("glGetNamedBufferPointerv")) - gpGetNamedBufferPointervEXT = (C.GPGETNAMEDBUFFERPOINTERVEXT)(getProcAddr("glGetNamedBufferPointervEXT")) - gpGetNamedBufferSubData = (C.GPGETNAMEDBUFFERSUBDATA)(getProcAddr("glGetNamedBufferSubData")) - gpGetNamedBufferSubDataEXT = (C.GPGETNAMEDBUFFERSUBDATAEXT)(getProcAddr("glGetNamedBufferSubDataEXT")) - gpGetNamedFramebufferAttachmentParameteriv = (C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIV)(getProcAddr("glGetNamedFramebufferAttachmentParameteriv")) - gpGetNamedFramebufferAttachmentParameterivEXT = (C.GPGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXT)(getProcAddr("glGetNamedFramebufferAttachmentParameterivEXT")) - gpGetNamedFramebufferParameteriv = (C.GPGETNAMEDFRAMEBUFFERPARAMETERIV)(getProcAddr("glGetNamedFramebufferParameteriv")) - gpGetNamedFramebufferParameterivEXT = (C.GPGETNAMEDFRAMEBUFFERPARAMETERIVEXT)(getProcAddr("glGetNamedFramebufferParameterivEXT")) - gpGetNamedProgramLocalParameterIivEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERIIVEXT)(getProcAddr("glGetNamedProgramLocalParameterIivEXT")) - gpGetNamedProgramLocalParameterIuivEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERIUIVEXT)(getProcAddr("glGetNamedProgramLocalParameterIuivEXT")) - gpGetNamedProgramLocalParameterdvEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERDVEXT)(getProcAddr("glGetNamedProgramLocalParameterdvEXT")) - gpGetNamedProgramLocalParameterfvEXT = (C.GPGETNAMEDPROGRAMLOCALPARAMETERFVEXT)(getProcAddr("glGetNamedProgramLocalParameterfvEXT")) - gpGetNamedProgramStringEXT = (C.GPGETNAMEDPROGRAMSTRINGEXT)(getProcAddr("glGetNamedProgramStringEXT")) - gpGetNamedProgramivEXT = (C.GPGETNAMEDPROGRAMIVEXT)(getProcAddr("glGetNamedProgramivEXT")) - gpGetNamedRenderbufferParameteriv = (C.GPGETNAMEDRENDERBUFFERPARAMETERIV)(getProcAddr("glGetNamedRenderbufferParameteriv")) - gpGetNamedRenderbufferParameterivEXT = (C.GPGETNAMEDRENDERBUFFERPARAMETERIVEXT)(getProcAddr("glGetNamedRenderbufferParameterivEXT")) - gpGetNamedStringARB = (C.GPGETNAMEDSTRINGARB)(getProcAddr("glGetNamedStringARB")) - gpGetNamedStringivARB = (C.GPGETNAMEDSTRINGIVARB)(getProcAddr("glGetNamedStringivARB")) - gpGetNextPerfQueryIdINTEL = (C.GPGETNEXTPERFQUERYIDINTEL)(getProcAddr("glGetNextPerfQueryIdINTEL")) - gpGetObjectBufferfvATI = (C.GPGETOBJECTBUFFERFVATI)(getProcAddr("glGetObjectBufferfvATI")) - gpGetObjectBufferivATI = (C.GPGETOBJECTBUFFERIVATI)(getProcAddr("glGetObjectBufferivATI")) - gpGetObjectLabel = (C.GPGETOBJECTLABEL)(getProcAddr("glGetObjectLabel")) - gpGetObjectLabelEXT = (C.GPGETOBJECTLABELEXT)(getProcAddr("glGetObjectLabelEXT")) - gpGetObjectLabelKHR = (C.GPGETOBJECTLABELKHR)(getProcAddr("glGetObjectLabelKHR")) - gpGetObjectParameterfvARB = (C.GPGETOBJECTPARAMETERFVARB)(getProcAddr("glGetObjectParameterfvARB")) - gpGetObjectParameterivAPPLE = (C.GPGETOBJECTPARAMETERIVAPPLE)(getProcAddr("glGetObjectParameterivAPPLE")) - gpGetObjectParameterivARB = (C.GPGETOBJECTPARAMETERIVARB)(getProcAddr("glGetObjectParameterivARB")) - gpGetObjectPtrLabel = (C.GPGETOBJECTPTRLABEL)(getProcAddr("glGetObjectPtrLabel")) - gpGetObjectPtrLabelKHR = (C.GPGETOBJECTPTRLABELKHR)(getProcAddr("glGetObjectPtrLabelKHR")) - gpGetOcclusionQueryivNV = (C.GPGETOCCLUSIONQUERYIVNV)(getProcAddr("glGetOcclusionQueryivNV")) - gpGetOcclusionQueryuivNV = (C.GPGETOCCLUSIONQUERYUIVNV)(getProcAddr("glGetOcclusionQueryuivNV")) - gpGetPathColorGenfvNV = (C.GPGETPATHCOLORGENFVNV)(getProcAddr("glGetPathColorGenfvNV")) - gpGetPathColorGenivNV = (C.GPGETPATHCOLORGENIVNV)(getProcAddr("glGetPathColorGenivNV")) - gpGetPathCommandsNV = (C.GPGETPATHCOMMANDSNV)(getProcAddr("glGetPathCommandsNV")) - gpGetPathCoordsNV = (C.GPGETPATHCOORDSNV)(getProcAddr("glGetPathCoordsNV")) - gpGetPathDashArrayNV = (C.GPGETPATHDASHARRAYNV)(getProcAddr("glGetPathDashArrayNV")) - gpGetPathLengthNV = (C.GPGETPATHLENGTHNV)(getProcAddr("glGetPathLengthNV")) - gpGetPathMetricRangeNV = (C.GPGETPATHMETRICRANGENV)(getProcAddr("glGetPathMetricRangeNV")) - gpGetPathMetricsNV = (C.GPGETPATHMETRICSNV)(getProcAddr("glGetPathMetricsNV")) - gpGetPathParameterfvNV = (C.GPGETPATHPARAMETERFVNV)(getProcAddr("glGetPathParameterfvNV")) - gpGetPathParameterivNV = (C.GPGETPATHPARAMETERIVNV)(getProcAddr("glGetPathParameterivNV")) - gpGetPathSpacingNV = (C.GPGETPATHSPACINGNV)(getProcAddr("glGetPathSpacingNV")) - gpGetPathTexGenfvNV = (C.GPGETPATHTEXGENFVNV)(getProcAddr("glGetPathTexGenfvNV")) - gpGetPathTexGenivNV = (C.GPGETPATHTEXGENIVNV)(getProcAddr("glGetPathTexGenivNV")) - gpGetPerfCounterInfoINTEL = (C.GPGETPERFCOUNTERINFOINTEL)(getProcAddr("glGetPerfCounterInfoINTEL")) - gpGetPerfMonitorCounterDataAMD = (C.GPGETPERFMONITORCOUNTERDATAAMD)(getProcAddr("glGetPerfMonitorCounterDataAMD")) - gpGetPerfMonitorCounterInfoAMD = (C.GPGETPERFMONITORCOUNTERINFOAMD)(getProcAddr("glGetPerfMonitorCounterInfoAMD")) - gpGetPerfMonitorCounterStringAMD = (C.GPGETPERFMONITORCOUNTERSTRINGAMD)(getProcAddr("glGetPerfMonitorCounterStringAMD")) - gpGetPerfMonitorCountersAMD = (C.GPGETPERFMONITORCOUNTERSAMD)(getProcAddr("glGetPerfMonitorCountersAMD")) - gpGetPerfMonitorGroupStringAMD = (C.GPGETPERFMONITORGROUPSTRINGAMD)(getProcAddr("glGetPerfMonitorGroupStringAMD")) - gpGetPerfMonitorGroupsAMD = (C.GPGETPERFMONITORGROUPSAMD)(getProcAddr("glGetPerfMonitorGroupsAMD")) - gpGetPerfQueryDataINTEL = (C.GPGETPERFQUERYDATAINTEL)(getProcAddr("glGetPerfQueryDataINTEL")) - gpGetPerfQueryIdByNameINTEL = (C.GPGETPERFQUERYIDBYNAMEINTEL)(getProcAddr("glGetPerfQueryIdByNameINTEL")) - gpGetPerfQueryInfoINTEL = (C.GPGETPERFQUERYINFOINTEL)(getProcAddr("glGetPerfQueryInfoINTEL")) - gpGetPixelMapfv = (C.GPGETPIXELMAPFV)(getProcAddr("glGetPixelMapfv")) - if gpGetPixelMapfv == nil { - return errors.New("glGetPixelMapfv") - } - gpGetPixelMapuiv = (C.GPGETPIXELMAPUIV)(getProcAddr("glGetPixelMapuiv")) - if gpGetPixelMapuiv == nil { - return errors.New("glGetPixelMapuiv") - } - gpGetPixelMapusv = (C.GPGETPIXELMAPUSV)(getProcAddr("glGetPixelMapusv")) - if gpGetPixelMapusv == nil { - return errors.New("glGetPixelMapusv") - } - gpGetPixelMapxv = (C.GPGETPIXELMAPXV)(getProcAddr("glGetPixelMapxv")) - gpGetPixelTexGenParameterfvSGIS = (C.GPGETPIXELTEXGENPARAMETERFVSGIS)(getProcAddr("glGetPixelTexGenParameterfvSGIS")) - gpGetPixelTexGenParameterivSGIS = (C.GPGETPIXELTEXGENPARAMETERIVSGIS)(getProcAddr("glGetPixelTexGenParameterivSGIS")) - gpGetPixelTransformParameterfvEXT = (C.GPGETPIXELTRANSFORMPARAMETERFVEXT)(getProcAddr("glGetPixelTransformParameterfvEXT")) - gpGetPixelTransformParameterivEXT = (C.GPGETPIXELTRANSFORMPARAMETERIVEXT)(getProcAddr("glGetPixelTransformParameterivEXT")) - gpGetPointerIndexedvEXT = (C.GPGETPOINTERINDEXEDVEXT)(getProcAddr("glGetPointerIndexedvEXT")) - gpGetPointeri_vEXT = (C.GPGETPOINTERI_VEXT)(getProcAddr("glGetPointeri_vEXT")) - gpGetPointerv = (C.GPGETPOINTERV)(getProcAddr("glGetPointerv")) - if gpGetPointerv == nil { - return errors.New("glGetPointerv") - } - gpGetPointervEXT = (C.GPGETPOINTERVEXT)(getProcAddr("glGetPointervEXT")) - gpGetPointervKHR = (C.GPGETPOINTERVKHR)(getProcAddr("glGetPointervKHR")) - gpGetPolygonStipple = (C.GPGETPOLYGONSTIPPLE)(getProcAddr("glGetPolygonStipple")) - if gpGetPolygonStipple == nil { - return errors.New("glGetPolygonStipple") - } - gpGetProgramBinary = (C.GPGETPROGRAMBINARY)(getProcAddr("glGetProgramBinary")) - gpGetProgramEnvParameterIivNV = (C.GPGETPROGRAMENVPARAMETERIIVNV)(getProcAddr("glGetProgramEnvParameterIivNV")) - gpGetProgramEnvParameterIuivNV = (C.GPGETPROGRAMENVPARAMETERIUIVNV)(getProcAddr("glGetProgramEnvParameterIuivNV")) - gpGetProgramEnvParameterdvARB = (C.GPGETPROGRAMENVPARAMETERDVARB)(getProcAddr("glGetProgramEnvParameterdvARB")) - gpGetProgramEnvParameterfvARB = (C.GPGETPROGRAMENVPARAMETERFVARB)(getProcAddr("glGetProgramEnvParameterfvARB")) - gpGetProgramInfoLog = (C.GPGETPROGRAMINFOLOG)(getProcAddr("glGetProgramInfoLog")) - if gpGetProgramInfoLog == nil { - return errors.New("glGetProgramInfoLog") - } - gpGetProgramInterfaceiv = (C.GPGETPROGRAMINTERFACEIV)(getProcAddr("glGetProgramInterfaceiv")) - gpGetProgramLocalParameterIivNV = (C.GPGETPROGRAMLOCALPARAMETERIIVNV)(getProcAddr("glGetProgramLocalParameterIivNV")) - gpGetProgramLocalParameterIuivNV = (C.GPGETPROGRAMLOCALPARAMETERIUIVNV)(getProcAddr("glGetProgramLocalParameterIuivNV")) - gpGetProgramLocalParameterdvARB = (C.GPGETPROGRAMLOCALPARAMETERDVARB)(getProcAddr("glGetProgramLocalParameterdvARB")) - gpGetProgramLocalParameterfvARB = (C.GPGETPROGRAMLOCALPARAMETERFVARB)(getProcAddr("glGetProgramLocalParameterfvARB")) - gpGetProgramNamedParameterdvNV = (C.GPGETPROGRAMNAMEDPARAMETERDVNV)(getProcAddr("glGetProgramNamedParameterdvNV")) - gpGetProgramNamedParameterfvNV = (C.GPGETPROGRAMNAMEDPARAMETERFVNV)(getProcAddr("glGetProgramNamedParameterfvNV")) - gpGetProgramParameterdvNV = (C.GPGETPROGRAMPARAMETERDVNV)(getProcAddr("glGetProgramParameterdvNV")) - gpGetProgramParameterfvNV = (C.GPGETPROGRAMPARAMETERFVNV)(getProcAddr("glGetProgramParameterfvNV")) - gpGetProgramPipelineInfoLog = (C.GPGETPROGRAMPIPELINEINFOLOG)(getProcAddr("glGetProgramPipelineInfoLog")) - gpGetProgramPipelineInfoLogEXT = (C.GPGETPROGRAMPIPELINEINFOLOGEXT)(getProcAddr("glGetProgramPipelineInfoLogEXT")) - gpGetProgramPipelineiv = (C.GPGETPROGRAMPIPELINEIV)(getProcAddr("glGetProgramPipelineiv")) - gpGetProgramPipelineivEXT = (C.GPGETPROGRAMPIPELINEIVEXT)(getProcAddr("glGetProgramPipelineivEXT")) - gpGetProgramResourceIndex = (C.GPGETPROGRAMRESOURCEINDEX)(getProcAddr("glGetProgramResourceIndex")) - gpGetProgramResourceLocation = (C.GPGETPROGRAMRESOURCELOCATION)(getProcAddr("glGetProgramResourceLocation")) - gpGetProgramResourceLocationIndex = (C.GPGETPROGRAMRESOURCELOCATIONINDEX)(getProcAddr("glGetProgramResourceLocationIndex")) - gpGetProgramResourceName = (C.GPGETPROGRAMRESOURCENAME)(getProcAddr("glGetProgramResourceName")) - gpGetProgramResourcefvNV = (C.GPGETPROGRAMRESOURCEFVNV)(getProcAddr("glGetProgramResourcefvNV")) - gpGetProgramResourceiv = (C.GPGETPROGRAMRESOURCEIV)(getProcAddr("glGetProgramResourceiv")) - gpGetProgramStageiv = (C.GPGETPROGRAMSTAGEIV)(getProcAddr("glGetProgramStageiv")) - gpGetProgramStringARB = (C.GPGETPROGRAMSTRINGARB)(getProcAddr("glGetProgramStringARB")) - gpGetProgramStringNV = (C.GPGETPROGRAMSTRINGNV)(getProcAddr("glGetProgramStringNV")) - gpGetProgramSubroutineParameteruivNV = (C.GPGETPROGRAMSUBROUTINEPARAMETERUIVNV)(getProcAddr("glGetProgramSubroutineParameteruivNV")) - gpGetProgramiv = (C.GPGETPROGRAMIV)(getProcAddr("glGetProgramiv")) - if gpGetProgramiv == nil { - return errors.New("glGetProgramiv") - } - gpGetProgramivARB = (C.GPGETPROGRAMIVARB)(getProcAddr("glGetProgramivARB")) - gpGetProgramivNV = (C.GPGETPROGRAMIVNV)(getProcAddr("glGetProgramivNV")) - gpGetQueryIndexediv = (C.GPGETQUERYINDEXEDIV)(getProcAddr("glGetQueryIndexediv")) - gpGetQueryObjecti64v = (C.GPGETQUERYOBJECTI64V)(getProcAddr("glGetQueryObjecti64v")) - gpGetQueryObjecti64vEXT = (C.GPGETQUERYOBJECTI64VEXT)(getProcAddr("glGetQueryObjecti64vEXT")) - gpGetQueryObjectiv = (C.GPGETQUERYOBJECTIV)(getProcAddr("glGetQueryObjectiv")) - if gpGetQueryObjectiv == nil { - return errors.New("glGetQueryObjectiv") - } - gpGetQueryObjectivARB = (C.GPGETQUERYOBJECTIVARB)(getProcAddr("glGetQueryObjectivARB")) - gpGetQueryObjectui64v = (C.GPGETQUERYOBJECTUI64V)(getProcAddr("glGetQueryObjectui64v")) - gpGetQueryObjectui64vEXT = (C.GPGETQUERYOBJECTUI64VEXT)(getProcAddr("glGetQueryObjectui64vEXT")) - gpGetQueryObjectuiv = (C.GPGETQUERYOBJECTUIV)(getProcAddr("glGetQueryObjectuiv")) - if gpGetQueryObjectuiv == nil { - return errors.New("glGetQueryObjectuiv") - } - gpGetQueryObjectuivARB = (C.GPGETQUERYOBJECTUIVARB)(getProcAddr("glGetQueryObjectuivARB")) - gpGetQueryiv = (C.GPGETQUERYIV)(getProcAddr("glGetQueryiv")) - if gpGetQueryiv == nil { - return errors.New("glGetQueryiv") - } - gpGetQueryivARB = (C.GPGETQUERYIVARB)(getProcAddr("glGetQueryivARB")) - gpGetRenderbufferParameteriv = (C.GPGETRENDERBUFFERPARAMETERIV)(getProcAddr("glGetRenderbufferParameteriv")) - gpGetRenderbufferParameterivEXT = (C.GPGETRENDERBUFFERPARAMETERIVEXT)(getProcAddr("glGetRenderbufferParameterivEXT")) - gpGetSamplerParameterIiv = (C.GPGETSAMPLERPARAMETERIIV)(getProcAddr("glGetSamplerParameterIiv")) - gpGetSamplerParameterIuiv = (C.GPGETSAMPLERPARAMETERIUIV)(getProcAddr("glGetSamplerParameterIuiv")) - gpGetSamplerParameterfv = (C.GPGETSAMPLERPARAMETERFV)(getProcAddr("glGetSamplerParameterfv")) - gpGetSamplerParameteriv = (C.GPGETSAMPLERPARAMETERIV)(getProcAddr("glGetSamplerParameteriv")) - gpGetSeparableFilterEXT = (C.GPGETSEPARABLEFILTEREXT)(getProcAddr("glGetSeparableFilterEXT")) - gpGetShaderInfoLog = (C.GPGETSHADERINFOLOG)(getProcAddr("glGetShaderInfoLog")) - if gpGetShaderInfoLog == nil { - return errors.New("glGetShaderInfoLog") - } - gpGetShaderPrecisionFormat = (C.GPGETSHADERPRECISIONFORMAT)(getProcAddr("glGetShaderPrecisionFormat")) - gpGetShaderSource = (C.GPGETSHADERSOURCE)(getProcAddr("glGetShaderSource")) - if gpGetShaderSource == nil { - return errors.New("glGetShaderSource") - } - gpGetShaderSourceARB = (C.GPGETSHADERSOURCEARB)(getProcAddr("glGetShaderSourceARB")) - gpGetShaderiv = (C.GPGETSHADERIV)(getProcAddr("glGetShaderiv")) - if gpGetShaderiv == nil { - return errors.New("glGetShaderiv") - } - gpGetSharpenTexFuncSGIS = (C.GPGETSHARPENTEXFUNCSGIS)(getProcAddr("glGetSharpenTexFuncSGIS")) - gpGetString = (C.GPGETSTRING)(getProcAddr("glGetString")) - if gpGetString == nil { - return errors.New("glGetString") - } - gpGetSubroutineIndex = (C.GPGETSUBROUTINEINDEX)(getProcAddr("glGetSubroutineIndex")) - gpGetSubroutineUniformLocation = (C.GPGETSUBROUTINEUNIFORMLOCATION)(getProcAddr("glGetSubroutineUniformLocation")) - gpGetSynciv = (C.GPGETSYNCIV)(getProcAddr("glGetSynciv")) - gpGetTexBumpParameterfvATI = (C.GPGETTEXBUMPPARAMETERFVATI)(getProcAddr("glGetTexBumpParameterfvATI")) - gpGetTexBumpParameterivATI = (C.GPGETTEXBUMPPARAMETERIVATI)(getProcAddr("glGetTexBumpParameterivATI")) - gpGetTexEnvfv = (C.GPGETTEXENVFV)(getProcAddr("glGetTexEnvfv")) - if gpGetTexEnvfv == nil { - return errors.New("glGetTexEnvfv") - } - gpGetTexEnviv = (C.GPGETTEXENVIV)(getProcAddr("glGetTexEnviv")) - if gpGetTexEnviv == nil { - return errors.New("glGetTexEnviv") - } - gpGetTexEnvxvOES = (C.GPGETTEXENVXVOES)(getProcAddr("glGetTexEnvxvOES")) - gpGetTexFilterFuncSGIS = (C.GPGETTEXFILTERFUNCSGIS)(getProcAddr("glGetTexFilterFuncSGIS")) - gpGetTexGendv = (C.GPGETTEXGENDV)(getProcAddr("glGetTexGendv")) - if gpGetTexGendv == nil { - return errors.New("glGetTexGendv") - } - gpGetTexGenfv = (C.GPGETTEXGENFV)(getProcAddr("glGetTexGenfv")) - if gpGetTexGenfv == nil { - return errors.New("glGetTexGenfv") - } - gpGetTexGeniv = (C.GPGETTEXGENIV)(getProcAddr("glGetTexGeniv")) - if gpGetTexGeniv == nil { - return errors.New("glGetTexGeniv") - } - gpGetTexGenxvOES = (C.GPGETTEXGENXVOES)(getProcAddr("glGetTexGenxvOES")) - gpGetTexImage = (C.GPGETTEXIMAGE)(getProcAddr("glGetTexImage")) - if gpGetTexImage == nil { - return errors.New("glGetTexImage") - } - gpGetTexLevelParameterfv = (C.GPGETTEXLEVELPARAMETERFV)(getProcAddr("glGetTexLevelParameterfv")) - if gpGetTexLevelParameterfv == nil { - return errors.New("glGetTexLevelParameterfv") - } - gpGetTexLevelParameteriv = (C.GPGETTEXLEVELPARAMETERIV)(getProcAddr("glGetTexLevelParameteriv")) - if gpGetTexLevelParameteriv == nil { - return errors.New("glGetTexLevelParameteriv") - } - gpGetTexLevelParameterxvOES = (C.GPGETTEXLEVELPARAMETERXVOES)(getProcAddr("glGetTexLevelParameterxvOES")) - gpGetTexParameterIivEXT = (C.GPGETTEXPARAMETERIIVEXT)(getProcAddr("glGetTexParameterIivEXT")) - gpGetTexParameterIuivEXT = (C.GPGETTEXPARAMETERIUIVEXT)(getProcAddr("glGetTexParameterIuivEXT")) - gpGetTexParameterPointervAPPLE = (C.GPGETTEXPARAMETERPOINTERVAPPLE)(getProcAddr("glGetTexParameterPointervAPPLE")) - gpGetTexParameterfv = (C.GPGETTEXPARAMETERFV)(getProcAddr("glGetTexParameterfv")) - if gpGetTexParameterfv == nil { - return errors.New("glGetTexParameterfv") - } - gpGetTexParameteriv = (C.GPGETTEXPARAMETERIV)(getProcAddr("glGetTexParameteriv")) - if gpGetTexParameteriv == nil { - return errors.New("glGetTexParameteriv") - } - gpGetTexParameterxvOES = (C.GPGETTEXPARAMETERXVOES)(getProcAddr("glGetTexParameterxvOES")) - gpGetTextureHandleARB = (C.GPGETTEXTUREHANDLEARB)(getProcAddr("glGetTextureHandleARB")) - gpGetTextureHandleNV = (C.GPGETTEXTUREHANDLENV)(getProcAddr("glGetTextureHandleNV")) - gpGetTextureImage = (C.GPGETTEXTUREIMAGE)(getProcAddr("glGetTextureImage")) - gpGetTextureImageEXT = (C.GPGETTEXTUREIMAGEEXT)(getProcAddr("glGetTextureImageEXT")) - gpGetTextureLevelParameterfv = (C.GPGETTEXTURELEVELPARAMETERFV)(getProcAddr("glGetTextureLevelParameterfv")) - gpGetTextureLevelParameterfvEXT = (C.GPGETTEXTURELEVELPARAMETERFVEXT)(getProcAddr("glGetTextureLevelParameterfvEXT")) - gpGetTextureLevelParameteriv = (C.GPGETTEXTURELEVELPARAMETERIV)(getProcAddr("glGetTextureLevelParameteriv")) - gpGetTextureLevelParameterivEXT = (C.GPGETTEXTURELEVELPARAMETERIVEXT)(getProcAddr("glGetTextureLevelParameterivEXT")) - gpGetTextureParameterIiv = (C.GPGETTEXTUREPARAMETERIIV)(getProcAddr("glGetTextureParameterIiv")) - gpGetTextureParameterIivEXT = (C.GPGETTEXTUREPARAMETERIIVEXT)(getProcAddr("glGetTextureParameterIivEXT")) - gpGetTextureParameterIuiv = (C.GPGETTEXTUREPARAMETERIUIV)(getProcAddr("glGetTextureParameterIuiv")) - gpGetTextureParameterIuivEXT = (C.GPGETTEXTUREPARAMETERIUIVEXT)(getProcAddr("glGetTextureParameterIuivEXT")) - gpGetTextureParameterfv = (C.GPGETTEXTUREPARAMETERFV)(getProcAddr("glGetTextureParameterfv")) - gpGetTextureParameterfvEXT = (C.GPGETTEXTUREPARAMETERFVEXT)(getProcAddr("glGetTextureParameterfvEXT")) - gpGetTextureParameteriv = (C.GPGETTEXTUREPARAMETERIV)(getProcAddr("glGetTextureParameteriv")) - gpGetTextureParameterivEXT = (C.GPGETTEXTUREPARAMETERIVEXT)(getProcAddr("glGetTextureParameterivEXT")) - gpGetTextureSamplerHandleARB = (C.GPGETTEXTURESAMPLERHANDLEARB)(getProcAddr("glGetTextureSamplerHandleARB")) - gpGetTextureSamplerHandleNV = (C.GPGETTEXTURESAMPLERHANDLENV)(getProcAddr("glGetTextureSamplerHandleNV")) - gpGetTextureSubImage = (C.GPGETTEXTURESUBIMAGE)(getProcAddr("glGetTextureSubImage")) - gpGetTrackMatrixivNV = (C.GPGETTRACKMATRIXIVNV)(getProcAddr("glGetTrackMatrixivNV")) - gpGetTransformFeedbackVaryingEXT = (C.GPGETTRANSFORMFEEDBACKVARYINGEXT)(getProcAddr("glGetTransformFeedbackVaryingEXT")) - gpGetTransformFeedbackVaryingNV = (C.GPGETTRANSFORMFEEDBACKVARYINGNV)(getProcAddr("glGetTransformFeedbackVaryingNV")) - gpGetTransformFeedbacki64_v = (C.GPGETTRANSFORMFEEDBACKI64_V)(getProcAddr("glGetTransformFeedbacki64_v")) - gpGetTransformFeedbacki_v = (C.GPGETTRANSFORMFEEDBACKI_V)(getProcAddr("glGetTransformFeedbacki_v")) - gpGetTransformFeedbackiv = (C.GPGETTRANSFORMFEEDBACKIV)(getProcAddr("glGetTransformFeedbackiv")) - gpGetUniformBlockIndex = (C.GPGETUNIFORMBLOCKINDEX)(getProcAddr("glGetUniformBlockIndex")) - gpGetUniformBufferSizeEXT = (C.GPGETUNIFORMBUFFERSIZEEXT)(getProcAddr("glGetUniformBufferSizeEXT")) - gpGetUniformIndices = (C.GPGETUNIFORMINDICES)(getProcAddr("glGetUniformIndices")) - gpGetUniformLocation = (C.GPGETUNIFORMLOCATION)(getProcAddr("glGetUniformLocation")) - if gpGetUniformLocation == nil { - return errors.New("glGetUniformLocation") - } - gpGetUniformLocationARB = (C.GPGETUNIFORMLOCATIONARB)(getProcAddr("glGetUniformLocationARB")) - gpGetUniformOffsetEXT = (C.GPGETUNIFORMOFFSETEXT)(getProcAddr("glGetUniformOffsetEXT")) - gpGetUniformSubroutineuiv = (C.GPGETUNIFORMSUBROUTINEUIV)(getProcAddr("glGetUniformSubroutineuiv")) - gpGetUniformdv = (C.GPGETUNIFORMDV)(getProcAddr("glGetUniformdv")) - gpGetUniformfv = (C.GPGETUNIFORMFV)(getProcAddr("glGetUniformfv")) - if gpGetUniformfv == nil { - return errors.New("glGetUniformfv") - } - gpGetUniformfvARB = (C.GPGETUNIFORMFVARB)(getProcAddr("glGetUniformfvARB")) - gpGetUniformi64vNV = (C.GPGETUNIFORMI64VNV)(getProcAddr("glGetUniformi64vNV")) - gpGetUniformiv = (C.GPGETUNIFORMIV)(getProcAddr("glGetUniformiv")) - if gpGetUniformiv == nil { - return errors.New("glGetUniformiv") - } - gpGetUniformivARB = (C.GPGETUNIFORMIVARB)(getProcAddr("glGetUniformivARB")) - gpGetUniformui64vNV = (C.GPGETUNIFORMUI64VNV)(getProcAddr("glGetUniformui64vNV")) - gpGetUniformuivEXT = (C.GPGETUNIFORMUIVEXT)(getProcAddr("glGetUniformuivEXT")) - gpGetVariantArrayObjectfvATI = (C.GPGETVARIANTARRAYOBJECTFVATI)(getProcAddr("glGetVariantArrayObjectfvATI")) - gpGetVariantArrayObjectivATI = (C.GPGETVARIANTARRAYOBJECTIVATI)(getProcAddr("glGetVariantArrayObjectivATI")) - gpGetVariantBooleanvEXT = (C.GPGETVARIANTBOOLEANVEXT)(getProcAddr("glGetVariantBooleanvEXT")) - gpGetVariantFloatvEXT = (C.GPGETVARIANTFLOATVEXT)(getProcAddr("glGetVariantFloatvEXT")) - gpGetVariantIntegervEXT = (C.GPGETVARIANTINTEGERVEXT)(getProcAddr("glGetVariantIntegervEXT")) - gpGetVariantPointervEXT = (C.GPGETVARIANTPOINTERVEXT)(getProcAddr("glGetVariantPointervEXT")) - gpGetVaryingLocationNV = (C.GPGETVARYINGLOCATIONNV)(getProcAddr("glGetVaryingLocationNV")) - gpGetVertexArrayIndexed64iv = (C.GPGETVERTEXARRAYINDEXED64IV)(getProcAddr("glGetVertexArrayIndexed64iv")) - gpGetVertexArrayIndexediv = (C.GPGETVERTEXARRAYINDEXEDIV)(getProcAddr("glGetVertexArrayIndexediv")) - gpGetVertexArrayIntegeri_vEXT = (C.GPGETVERTEXARRAYINTEGERI_VEXT)(getProcAddr("glGetVertexArrayIntegeri_vEXT")) - gpGetVertexArrayIntegervEXT = (C.GPGETVERTEXARRAYINTEGERVEXT)(getProcAddr("glGetVertexArrayIntegervEXT")) - gpGetVertexArrayPointeri_vEXT = (C.GPGETVERTEXARRAYPOINTERI_VEXT)(getProcAddr("glGetVertexArrayPointeri_vEXT")) - gpGetVertexArrayPointervEXT = (C.GPGETVERTEXARRAYPOINTERVEXT)(getProcAddr("glGetVertexArrayPointervEXT")) - gpGetVertexArrayiv = (C.GPGETVERTEXARRAYIV)(getProcAddr("glGetVertexArrayiv")) - gpGetVertexAttribArrayObjectfvATI = (C.GPGETVERTEXATTRIBARRAYOBJECTFVATI)(getProcAddr("glGetVertexAttribArrayObjectfvATI")) - gpGetVertexAttribArrayObjectivATI = (C.GPGETVERTEXATTRIBARRAYOBJECTIVATI)(getProcAddr("glGetVertexAttribArrayObjectivATI")) - gpGetVertexAttribIivEXT = (C.GPGETVERTEXATTRIBIIVEXT)(getProcAddr("glGetVertexAttribIivEXT")) - gpGetVertexAttribIuivEXT = (C.GPGETVERTEXATTRIBIUIVEXT)(getProcAddr("glGetVertexAttribIuivEXT")) - gpGetVertexAttribLdv = (C.GPGETVERTEXATTRIBLDV)(getProcAddr("glGetVertexAttribLdv")) - gpGetVertexAttribLdvEXT = (C.GPGETVERTEXATTRIBLDVEXT)(getProcAddr("glGetVertexAttribLdvEXT")) - gpGetVertexAttribLi64vNV = (C.GPGETVERTEXATTRIBLI64VNV)(getProcAddr("glGetVertexAttribLi64vNV")) - gpGetVertexAttribLui64vARB = (C.GPGETVERTEXATTRIBLUI64VARB)(getProcAddr("glGetVertexAttribLui64vARB")) - gpGetVertexAttribLui64vNV = (C.GPGETVERTEXATTRIBLUI64VNV)(getProcAddr("glGetVertexAttribLui64vNV")) - gpGetVertexAttribPointerv = (C.GPGETVERTEXATTRIBPOINTERV)(getProcAddr("glGetVertexAttribPointerv")) - if gpGetVertexAttribPointerv == nil { - return errors.New("glGetVertexAttribPointerv") - } - gpGetVertexAttribPointervARB = (C.GPGETVERTEXATTRIBPOINTERVARB)(getProcAddr("glGetVertexAttribPointervARB")) - gpGetVertexAttribPointervNV = (C.GPGETVERTEXATTRIBPOINTERVNV)(getProcAddr("glGetVertexAttribPointervNV")) - gpGetVertexAttribdv = (C.GPGETVERTEXATTRIBDV)(getProcAddr("glGetVertexAttribdv")) - if gpGetVertexAttribdv == nil { - return errors.New("glGetVertexAttribdv") - } - gpGetVertexAttribdvARB = (C.GPGETVERTEXATTRIBDVARB)(getProcAddr("glGetVertexAttribdvARB")) - gpGetVertexAttribdvNV = (C.GPGETVERTEXATTRIBDVNV)(getProcAddr("glGetVertexAttribdvNV")) - gpGetVertexAttribfv = (C.GPGETVERTEXATTRIBFV)(getProcAddr("glGetVertexAttribfv")) - if gpGetVertexAttribfv == nil { - return errors.New("glGetVertexAttribfv") - } - gpGetVertexAttribfvARB = (C.GPGETVERTEXATTRIBFVARB)(getProcAddr("glGetVertexAttribfvARB")) - gpGetVertexAttribfvNV = (C.GPGETVERTEXATTRIBFVNV)(getProcAddr("glGetVertexAttribfvNV")) - gpGetVertexAttribiv = (C.GPGETVERTEXATTRIBIV)(getProcAddr("glGetVertexAttribiv")) - if gpGetVertexAttribiv == nil { - return errors.New("glGetVertexAttribiv") - } - gpGetVertexAttribivARB = (C.GPGETVERTEXATTRIBIVARB)(getProcAddr("glGetVertexAttribivARB")) - gpGetVertexAttribivNV = (C.GPGETVERTEXATTRIBIVNV)(getProcAddr("glGetVertexAttribivNV")) - gpGetVideoCaptureStreamdvNV = (C.GPGETVIDEOCAPTURESTREAMDVNV)(getProcAddr("glGetVideoCaptureStreamdvNV")) - gpGetVideoCaptureStreamfvNV = (C.GPGETVIDEOCAPTURESTREAMFVNV)(getProcAddr("glGetVideoCaptureStreamfvNV")) - gpGetVideoCaptureStreamivNV = (C.GPGETVIDEOCAPTURESTREAMIVNV)(getProcAddr("glGetVideoCaptureStreamivNV")) - gpGetVideoCaptureivNV = (C.GPGETVIDEOCAPTUREIVNV)(getProcAddr("glGetVideoCaptureivNV")) - gpGetVideoi64vNV = (C.GPGETVIDEOI64VNV)(getProcAddr("glGetVideoi64vNV")) - gpGetVideoivNV = (C.GPGETVIDEOIVNV)(getProcAddr("glGetVideoivNV")) - gpGetVideoui64vNV = (C.GPGETVIDEOUI64VNV)(getProcAddr("glGetVideoui64vNV")) - gpGetVideouivNV = (C.GPGETVIDEOUIVNV)(getProcAddr("glGetVideouivNV")) - gpGetnCompressedTexImageARB = (C.GPGETNCOMPRESSEDTEXIMAGEARB)(getProcAddr("glGetnCompressedTexImageARB")) - gpGetnTexImageARB = (C.GPGETNTEXIMAGEARB)(getProcAddr("glGetnTexImageARB")) - gpGetnUniformdvARB = (C.GPGETNUNIFORMDVARB)(getProcAddr("glGetnUniformdvARB")) - gpGetnUniformfv = (C.GPGETNUNIFORMFV)(getProcAddr("glGetnUniformfv")) - gpGetnUniformfvARB = (C.GPGETNUNIFORMFVARB)(getProcAddr("glGetnUniformfvARB")) - gpGetnUniformfvKHR = (C.GPGETNUNIFORMFVKHR)(getProcAddr("glGetnUniformfvKHR")) - gpGetnUniformiv = (C.GPGETNUNIFORMIV)(getProcAddr("glGetnUniformiv")) - gpGetnUniformivARB = (C.GPGETNUNIFORMIVARB)(getProcAddr("glGetnUniformivARB")) - gpGetnUniformivKHR = (C.GPGETNUNIFORMIVKHR)(getProcAddr("glGetnUniformivKHR")) - gpGetnUniformuiv = (C.GPGETNUNIFORMUIV)(getProcAddr("glGetnUniformuiv")) - gpGetnUniformuivARB = (C.GPGETNUNIFORMUIVARB)(getProcAddr("glGetnUniformuivARB")) - gpGetnUniformuivKHR = (C.GPGETNUNIFORMUIVKHR)(getProcAddr("glGetnUniformuivKHR")) - gpGlobalAlphaFactorbSUN = (C.GPGLOBALALPHAFACTORBSUN)(getProcAddr("glGlobalAlphaFactorbSUN")) - gpGlobalAlphaFactordSUN = (C.GPGLOBALALPHAFACTORDSUN)(getProcAddr("glGlobalAlphaFactordSUN")) - gpGlobalAlphaFactorfSUN = (C.GPGLOBALALPHAFACTORFSUN)(getProcAddr("glGlobalAlphaFactorfSUN")) - gpGlobalAlphaFactoriSUN = (C.GPGLOBALALPHAFACTORISUN)(getProcAddr("glGlobalAlphaFactoriSUN")) - gpGlobalAlphaFactorsSUN = (C.GPGLOBALALPHAFACTORSSUN)(getProcAddr("glGlobalAlphaFactorsSUN")) - gpGlobalAlphaFactorubSUN = (C.GPGLOBALALPHAFACTORUBSUN)(getProcAddr("glGlobalAlphaFactorubSUN")) - gpGlobalAlphaFactoruiSUN = (C.GPGLOBALALPHAFACTORUISUN)(getProcAddr("glGlobalAlphaFactoruiSUN")) - gpGlobalAlphaFactorusSUN = (C.GPGLOBALALPHAFACTORUSSUN)(getProcAddr("glGlobalAlphaFactorusSUN")) - gpHint = (C.GPHINT)(getProcAddr("glHint")) - if gpHint == nil { - return errors.New("glHint") - } - gpHintPGI = (C.GPHINTPGI)(getProcAddr("glHintPGI")) - gpHistogramEXT = (C.GPHISTOGRAMEXT)(getProcAddr("glHistogramEXT")) - gpIglooInterfaceSGIX = (C.GPIGLOOINTERFACESGIX)(getProcAddr("glIglooInterfaceSGIX")) - gpImageTransformParameterfHP = (C.GPIMAGETRANSFORMPARAMETERFHP)(getProcAddr("glImageTransformParameterfHP")) - gpImageTransformParameterfvHP = (C.GPIMAGETRANSFORMPARAMETERFVHP)(getProcAddr("glImageTransformParameterfvHP")) - gpImageTransformParameteriHP = (C.GPIMAGETRANSFORMPARAMETERIHP)(getProcAddr("glImageTransformParameteriHP")) - gpImageTransformParameterivHP = (C.GPIMAGETRANSFORMPARAMETERIVHP)(getProcAddr("glImageTransformParameterivHP")) - gpImportSyncEXT = (C.GPIMPORTSYNCEXT)(getProcAddr("glImportSyncEXT")) - gpIndexFormatNV = (C.GPINDEXFORMATNV)(getProcAddr("glIndexFormatNV")) - gpIndexFuncEXT = (C.GPINDEXFUNCEXT)(getProcAddr("glIndexFuncEXT")) - gpIndexMask = (C.GPINDEXMASK)(getProcAddr("glIndexMask")) - if gpIndexMask == nil { - return errors.New("glIndexMask") - } - gpIndexMaterialEXT = (C.GPINDEXMATERIALEXT)(getProcAddr("glIndexMaterialEXT")) - gpIndexPointer = (C.GPINDEXPOINTER)(getProcAddr("glIndexPointer")) - if gpIndexPointer == nil { - return errors.New("glIndexPointer") - } - gpIndexPointerEXT = (C.GPINDEXPOINTEREXT)(getProcAddr("glIndexPointerEXT")) - gpIndexPointerListIBM = (C.GPINDEXPOINTERLISTIBM)(getProcAddr("glIndexPointerListIBM")) - gpIndexd = (C.GPINDEXD)(getProcAddr("glIndexd")) - if gpIndexd == nil { - return errors.New("glIndexd") - } - gpIndexdv = (C.GPINDEXDV)(getProcAddr("glIndexdv")) - if gpIndexdv == nil { - return errors.New("glIndexdv") - } - gpIndexf = (C.GPINDEXF)(getProcAddr("glIndexf")) - if gpIndexf == nil { - return errors.New("glIndexf") - } - gpIndexfv = (C.GPINDEXFV)(getProcAddr("glIndexfv")) - if gpIndexfv == nil { - return errors.New("glIndexfv") - } - gpIndexi = (C.GPINDEXI)(getProcAddr("glIndexi")) - if gpIndexi == nil { - return errors.New("glIndexi") - } - gpIndexiv = (C.GPINDEXIV)(getProcAddr("glIndexiv")) - if gpIndexiv == nil { - return errors.New("glIndexiv") - } - gpIndexs = (C.GPINDEXS)(getProcAddr("glIndexs")) - if gpIndexs == nil { - return errors.New("glIndexs") - } - gpIndexsv = (C.GPINDEXSV)(getProcAddr("glIndexsv")) - if gpIndexsv == nil { - return errors.New("glIndexsv") - } - gpIndexub = (C.GPINDEXUB)(getProcAddr("glIndexub")) - if gpIndexub == nil { - return errors.New("glIndexub") - } - gpIndexubv = (C.GPINDEXUBV)(getProcAddr("glIndexubv")) - if gpIndexubv == nil { - return errors.New("glIndexubv") - } - gpIndexxOES = (C.GPINDEXXOES)(getProcAddr("glIndexxOES")) - gpIndexxvOES = (C.GPINDEXXVOES)(getProcAddr("glIndexxvOES")) - gpInitNames = (C.GPINITNAMES)(getProcAddr("glInitNames")) - if gpInitNames == nil { - return errors.New("glInitNames") - } - gpInsertComponentEXT = (C.GPINSERTCOMPONENTEXT)(getProcAddr("glInsertComponentEXT")) - gpInsertEventMarkerEXT = (C.GPINSERTEVENTMARKEREXT)(getProcAddr("glInsertEventMarkerEXT")) - gpInstrumentsBufferSGIX = (C.GPINSTRUMENTSBUFFERSGIX)(getProcAddr("glInstrumentsBufferSGIX")) - gpInterleavedArrays = (C.GPINTERLEAVEDARRAYS)(getProcAddr("glInterleavedArrays")) - if gpInterleavedArrays == nil { - return errors.New("glInterleavedArrays") - } - gpInterpolatePathsNV = (C.GPINTERPOLATEPATHSNV)(getProcAddr("glInterpolatePathsNV")) - gpInvalidateBufferData = (C.GPINVALIDATEBUFFERDATA)(getProcAddr("glInvalidateBufferData")) - gpInvalidateBufferSubData = (C.GPINVALIDATEBUFFERSUBDATA)(getProcAddr("glInvalidateBufferSubData")) - gpInvalidateFramebuffer = (C.GPINVALIDATEFRAMEBUFFER)(getProcAddr("glInvalidateFramebuffer")) - gpInvalidateNamedFramebufferData = (C.GPINVALIDATENAMEDFRAMEBUFFERDATA)(getProcAddr("glInvalidateNamedFramebufferData")) - gpInvalidateNamedFramebufferSubData = (C.GPINVALIDATENAMEDFRAMEBUFFERSUBDATA)(getProcAddr("glInvalidateNamedFramebufferSubData")) - gpInvalidateSubFramebuffer = (C.GPINVALIDATESUBFRAMEBUFFER)(getProcAddr("glInvalidateSubFramebuffer")) - gpInvalidateTexImage = (C.GPINVALIDATETEXIMAGE)(getProcAddr("glInvalidateTexImage")) - gpInvalidateTexSubImage = (C.GPINVALIDATETEXSUBIMAGE)(getProcAddr("glInvalidateTexSubImage")) - gpIsAsyncMarkerSGIX = (C.GPISASYNCMARKERSGIX)(getProcAddr("glIsAsyncMarkerSGIX")) - gpIsBuffer = (C.GPISBUFFER)(getProcAddr("glIsBuffer")) - if gpIsBuffer == nil { - return errors.New("glIsBuffer") - } - gpIsBufferARB = (C.GPISBUFFERARB)(getProcAddr("glIsBufferARB")) - gpIsBufferResidentNV = (C.GPISBUFFERRESIDENTNV)(getProcAddr("glIsBufferResidentNV")) - gpIsEnabled = (C.GPISENABLED)(getProcAddr("glIsEnabled")) - if gpIsEnabled == nil { - return errors.New("glIsEnabled") - } - gpIsEnabledIndexedEXT = (C.GPISENABLEDINDEXEDEXT)(getProcAddr("glIsEnabledIndexedEXT")) - gpIsFenceAPPLE = (C.GPISFENCEAPPLE)(getProcAddr("glIsFenceAPPLE")) - gpIsFenceNV = (C.GPISFENCENV)(getProcAddr("glIsFenceNV")) - gpIsFramebuffer = (C.GPISFRAMEBUFFER)(getProcAddr("glIsFramebuffer")) - gpIsFramebufferEXT = (C.GPISFRAMEBUFFEREXT)(getProcAddr("glIsFramebufferEXT")) - gpIsImageHandleResidentARB = (C.GPISIMAGEHANDLERESIDENTARB)(getProcAddr("glIsImageHandleResidentARB")) - gpIsImageHandleResidentNV = (C.GPISIMAGEHANDLERESIDENTNV)(getProcAddr("glIsImageHandleResidentNV")) - gpIsList = (C.GPISLIST)(getProcAddr("glIsList")) - if gpIsList == nil { - return errors.New("glIsList") - } - gpIsNameAMD = (C.GPISNAMEAMD)(getProcAddr("glIsNameAMD")) - gpIsNamedBufferResidentNV = (C.GPISNAMEDBUFFERRESIDENTNV)(getProcAddr("glIsNamedBufferResidentNV")) - gpIsNamedStringARB = (C.GPISNAMEDSTRINGARB)(getProcAddr("glIsNamedStringARB")) - gpIsObjectBufferATI = (C.GPISOBJECTBUFFERATI)(getProcAddr("glIsObjectBufferATI")) - gpIsOcclusionQueryNV = (C.GPISOCCLUSIONQUERYNV)(getProcAddr("glIsOcclusionQueryNV")) - gpIsPathNV = (C.GPISPATHNV)(getProcAddr("glIsPathNV")) - gpIsPointInFillPathNV = (C.GPISPOINTINFILLPATHNV)(getProcAddr("glIsPointInFillPathNV")) - gpIsPointInStrokePathNV = (C.GPISPOINTINSTROKEPATHNV)(getProcAddr("glIsPointInStrokePathNV")) - gpIsProgram = (C.GPISPROGRAM)(getProcAddr("glIsProgram")) - if gpIsProgram == nil { - return errors.New("glIsProgram") - } - gpIsProgramARB = (C.GPISPROGRAMARB)(getProcAddr("glIsProgramARB")) - gpIsProgramNV = (C.GPISPROGRAMNV)(getProcAddr("glIsProgramNV")) - gpIsProgramPipeline = (C.GPISPROGRAMPIPELINE)(getProcAddr("glIsProgramPipeline")) - gpIsProgramPipelineEXT = (C.GPISPROGRAMPIPELINEEXT)(getProcAddr("glIsProgramPipelineEXT")) - gpIsQuery = (C.GPISQUERY)(getProcAddr("glIsQuery")) - if gpIsQuery == nil { - return errors.New("glIsQuery") - } - gpIsQueryARB = (C.GPISQUERYARB)(getProcAddr("glIsQueryARB")) - gpIsRenderbuffer = (C.GPISRENDERBUFFER)(getProcAddr("glIsRenderbuffer")) - gpIsRenderbufferEXT = (C.GPISRENDERBUFFEREXT)(getProcAddr("glIsRenderbufferEXT")) - gpIsSampler = (C.GPISSAMPLER)(getProcAddr("glIsSampler")) - gpIsShader = (C.GPISSHADER)(getProcAddr("glIsShader")) - if gpIsShader == nil { - return errors.New("glIsShader") - } - gpIsSync = (C.GPISSYNC)(getProcAddr("glIsSync")) - gpIsTexture = (C.GPISTEXTURE)(getProcAddr("glIsTexture")) - if gpIsTexture == nil { - return errors.New("glIsTexture") - } - gpIsTextureEXT = (C.GPISTEXTUREEXT)(getProcAddr("glIsTextureEXT")) - gpIsTextureHandleResidentARB = (C.GPISTEXTUREHANDLERESIDENTARB)(getProcAddr("glIsTextureHandleResidentARB")) - gpIsTextureHandleResidentNV = (C.GPISTEXTUREHANDLERESIDENTNV)(getProcAddr("glIsTextureHandleResidentNV")) - gpIsTransformFeedback = (C.GPISTRANSFORMFEEDBACK)(getProcAddr("glIsTransformFeedback")) - gpIsTransformFeedbackNV = (C.GPISTRANSFORMFEEDBACKNV)(getProcAddr("glIsTransformFeedbackNV")) - gpIsVariantEnabledEXT = (C.GPISVARIANTENABLEDEXT)(getProcAddr("glIsVariantEnabledEXT")) - gpIsVertexArray = (C.GPISVERTEXARRAY)(getProcAddr("glIsVertexArray")) - gpIsVertexArrayAPPLE = (C.GPISVERTEXARRAYAPPLE)(getProcAddr("glIsVertexArrayAPPLE")) - gpIsVertexAttribEnabledAPPLE = (C.GPISVERTEXATTRIBENABLEDAPPLE)(getProcAddr("glIsVertexAttribEnabledAPPLE")) - gpLabelObjectEXT = (C.GPLABELOBJECTEXT)(getProcAddr("glLabelObjectEXT")) - gpLightEnviSGIX = (C.GPLIGHTENVISGIX)(getProcAddr("glLightEnviSGIX")) - gpLightModelf = (C.GPLIGHTMODELF)(getProcAddr("glLightModelf")) - if gpLightModelf == nil { - return errors.New("glLightModelf") - } - gpLightModelfv = (C.GPLIGHTMODELFV)(getProcAddr("glLightModelfv")) - if gpLightModelfv == nil { - return errors.New("glLightModelfv") - } - gpLightModeli = (C.GPLIGHTMODELI)(getProcAddr("glLightModeli")) - if gpLightModeli == nil { - return errors.New("glLightModeli") - } - gpLightModeliv = (C.GPLIGHTMODELIV)(getProcAddr("glLightModeliv")) - if gpLightModeliv == nil { - return errors.New("glLightModeliv") - } - gpLightModelxOES = (C.GPLIGHTMODELXOES)(getProcAddr("glLightModelxOES")) - gpLightModelxvOES = (C.GPLIGHTMODELXVOES)(getProcAddr("glLightModelxvOES")) - gpLightf = (C.GPLIGHTF)(getProcAddr("glLightf")) - if gpLightf == nil { - return errors.New("glLightf") - } - gpLightfv = (C.GPLIGHTFV)(getProcAddr("glLightfv")) - if gpLightfv == nil { - return errors.New("glLightfv") - } - gpLighti = (C.GPLIGHTI)(getProcAddr("glLighti")) - if gpLighti == nil { - return errors.New("glLighti") - } - gpLightiv = (C.GPLIGHTIV)(getProcAddr("glLightiv")) - if gpLightiv == nil { - return errors.New("glLightiv") - } - gpLightxOES = (C.GPLIGHTXOES)(getProcAddr("glLightxOES")) - gpLightxvOES = (C.GPLIGHTXVOES)(getProcAddr("glLightxvOES")) - gpLineStipple = (C.GPLINESTIPPLE)(getProcAddr("glLineStipple")) - if gpLineStipple == nil { - return errors.New("glLineStipple") - } - gpLineWidth = (C.GPLINEWIDTH)(getProcAddr("glLineWidth")) - if gpLineWidth == nil { - return errors.New("glLineWidth") - } - gpLineWidthxOES = (C.GPLINEWIDTHXOES)(getProcAddr("glLineWidthxOES")) - gpLinkProgram = (C.GPLINKPROGRAM)(getProcAddr("glLinkProgram")) - if gpLinkProgram == nil { - return errors.New("glLinkProgram") - } - gpLinkProgramARB = (C.GPLINKPROGRAMARB)(getProcAddr("glLinkProgramARB")) - gpListBase = (C.GPLISTBASE)(getProcAddr("glListBase")) - if gpListBase == nil { - return errors.New("glListBase") - } - gpListParameterfSGIX = (C.GPLISTPARAMETERFSGIX)(getProcAddr("glListParameterfSGIX")) - gpListParameterfvSGIX = (C.GPLISTPARAMETERFVSGIX)(getProcAddr("glListParameterfvSGIX")) - gpListParameteriSGIX = (C.GPLISTPARAMETERISGIX)(getProcAddr("glListParameteriSGIX")) - gpListParameterivSGIX = (C.GPLISTPARAMETERIVSGIX)(getProcAddr("glListParameterivSGIX")) - gpLoadIdentity = (C.GPLOADIDENTITY)(getProcAddr("glLoadIdentity")) - if gpLoadIdentity == nil { - return errors.New("glLoadIdentity") - } - gpLoadIdentityDeformationMapSGIX = (C.GPLOADIDENTITYDEFORMATIONMAPSGIX)(getProcAddr("glLoadIdentityDeformationMapSGIX")) - gpLoadMatrixd = (C.GPLOADMATRIXD)(getProcAddr("glLoadMatrixd")) - if gpLoadMatrixd == nil { - return errors.New("glLoadMatrixd") - } - gpLoadMatrixf = (C.GPLOADMATRIXF)(getProcAddr("glLoadMatrixf")) - if gpLoadMatrixf == nil { - return errors.New("glLoadMatrixf") - } - gpLoadMatrixxOES = (C.GPLOADMATRIXXOES)(getProcAddr("glLoadMatrixxOES")) - gpLoadName = (C.GPLOADNAME)(getProcAddr("glLoadName")) - if gpLoadName == nil { - return errors.New("glLoadName") - } - gpLoadProgramNV = (C.GPLOADPROGRAMNV)(getProcAddr("glLoadProgramNV")) - gpLoadTransposeMatrixd = (C.GPLOADTRANSPOSEMATRIXD)(getProcAddr("glLoadTransposeMatrixd")) - if gpLoadTransposeMatrixd == nil { - return errors.New("glLoadTransposeMatrixd") - } - gpLoadTransposeMatrixdARB = (C.GPLOADTRANSPOSEMATRIXDARB)(getProcAddr("glLoadTransposeMatrixdARB")) - gpLoadTransposeMatrixf = (C.GPLOADTRANSPOSEMATRIXF)(getProcAddr("glLoadTransposeMatrixf")) - if gpLoadTransposeMatrixf == nil { - return errors.New("glLoadTransposeMatrixf") - } - gpLoadTransposeMatrixfARB = (C.GPLOADTRANSPOSEMATRIXFARB)(getProcAddr("glLoadTransposeMatrixfARB")) - gpLoadTransposeMatrixxOES = (C.GPLOADTRANSPOSEMATRIXXOES)(getProcAddr("glLoadTransposeMatrixxOES")) - gpLockArraysEXT = (C.GPLOCKARRAYSEXT)(getProcAddr("glLockArraysEXT")) - gpLogicOp = (C.GPLOGICOP)(getProcAddr("glLogicOp")) - if gpLogicOp == nil { - return errors.New("glLogicOp") - } - gpMakeBufferNonResidentNV = (C.GPMAKEBUFFERNONRESIDENTNV)(getProcAddr("glMakeBufferNonResidentNV")) - gpMakeBufferResidentNV = (C.GPMAKEBUFFERRESIDENTNV)(getProcAddr("glMakeBufferResidentNV")) - gpMakeImageHandleNonResidentARB = (C.GPMAKEIMAGEHANDLENONRESIDENTARB)(getProcAddr("glMakeImageHandleNonResidentARB")) - gpMakeImageHandleNonResidentNV = (C.GPMAKEIMAGEHANDLENONRESIDENTNV)(getProcAddr("glMakeImageHandleNonResidentNV")) - gpMakeImageHandleResidentARB = (C.GPMAKEIMAGEHANDLERESIDENTARB)(getProcAddr("glMakeImageHandleResidentARB")) - gpMakeImageHandleResidentNV = (C.GPMAKEIMAGEHANDLERESIDENTNV)(getProcAddr("glMakeImageHandleResidentNV")) - gpMakeNamedBufferNonResidentNV = (C.GPMAKENAMEDBUFFERNONRESIDENTNV)(getProcAddr("glMakeNamedBufferNonResidentNV")) - gpMakeNamedBufferResidentNV = (C.GPMAKENAMEDBUFFERRESIDENTNV)(getProcAddr("glMakeNamedBufferResidentNV")) - gpMakeTextureHandleNonResidentARB = (C.GPMAKETEXTUREHANDLENONRESIDENTARB)(getProcAddr("glMakeTextureHandleNonResidentARB")) - gpMakeTextureHandleNonResidentNV = (C.GPMAKETEXTUREHANDLENONRESIDENTNV)(getProcAddr("glMakeTextureHandleNonResidentNV")) - gpMakeTextureHandleResidentARB = (C.GPMAKETEXTUREHANDLERESIDENTARB)(getProcAddr("glMakeTextureHandleResidentARB")) - gpMakeTextureHandleResidentNV = (C.GPMAKETEXTUREHANDLERESIDENTNV)(getProcAddr("glMakeTextureHandleResidentNV")) - gpMap1d = (C.GPMAP1D)(getProcAddr("glMap1d")) - if gpMap1d == nil { - return errors.New("glMap1d") - } - gpMap1f = (C.GPMAP1F)(getProcAddr("glMap1f")) - if gpMap1f == nil { - return errors.New("glMap1f") - } - gpMap1xOES = (C.GPMAP1XOES)(getProcAddr("glMap1xOES")) - gpMap2d = (C.GPMAP2D)(getProcAddr("glMap2d")) - if gpMap2d == nil { - return errors.New("glMap2d") - } - gpMap2f = (C.GPMAP2F)(getProcAddr("glMap2f")) - if gpMap2f == nil { - return errors.New("glMap2f") - } - gpMap2xOES = (C.GPMAP2XOES)(getProcAddr("glMap2xOES")) - gpMapBuffer = (C.GPMAPBUFFER)(getProcAddr("glMapBuffer")) - if gpMapBuffer == nil { - return errors.New("glMapBuffer") - } - gpMapBufferARB = (C.GPMAPBUFFERARB)(getProcAddr("glMapBufferARB")) - gpMapBufferRange = (C.GPMAPBUFFERRANGE)(getProcAddr("glMapBufferRange")) - gpMapControlPointsNV = (C.GPMAPCONTROLPOINTSNV)(getProcAddr("glMapControlPointsNV")) - gpMapGrid1d = (C.GPMAPGRID1D)(getProcAddr("glMapGrid1d")) - if gpMapGrid1d == nil { - return errors.New("glMapGrid1d") - } - gpMapGrid1f = (C.GPMAPGRID1F)(getProcAddr("glMapGrid1f")) - if gpMapGrid1f == nil { - return errors.New("glMapGrid1f") - } - gpMapGrid1xOES = (C.GPMAPGRID1XOES)(getProcAddr("glMapGrid1xOES")) - gpMapGrid2d = (C.GPMAPGRID2D)(getProcAddr("glMapGrid2d")) - if gpMapGrid2d == nil { - return errors.New("glMapGrid2d") - } - gpMapGrid2f = (C.GPMAPGRID2F)(getProcAddr("glMapGrid2f")) - if gpMapGrid2f == nil { - return errors.New("glMapGrid2f") - } - gpMapGrid2xOES = (C.GPMAPGRID2XOES)(getProcAddr("glMapGrid2xOES")) - gpMapNamedBuffer = (C.GPMAPNAMEDBUFFER)(getProcAddr("glMapNamedBuffer")) - gpMapNamedBufferEXT = (C.GPMAPNAMEDBUFFEREXT)(getProcAddr("glMapNamedBufferEXT")) - gpMapNamedBufferRange = (C.GPMAPNAMEDBUFFERRANGE)(getProcAddr("glMapNamedBufferRange")) - gpMapNamedBufferRangeEXT = (C.GPMAPNAMEDBUFFERRANGEEXT)(getProcAddr("glMapNamedBufferRangeEXT")) - gpMapObjectBufferATI = (C.GPMAPOBJECTBUFFERATI)(getProcAddr("glMapObjectBufferATI")) - gpMapParameterfvNV = (C.GPMAPPARAMETERFVNV)(getProcAddr("glMapParameterfvNV")) - gpMapParameterivNV = (C.GPMAPPARAMETERIVNV)(getProcAddr("glMapParameterivNV")) - gpMapTexture2DINTEL = (C.GPMAPTEXTURE2DINTEL)(getProcAddr("glMapTexture2DINTEL")) - gpMapVertexAttrib1dAPPLE = (C.GPMAPVERTEXATTRIB1DAPPLE)(getProcAddr("glMapVertexAttrib1dAPPLE")) - gpMapVertexAttrib1fAPPLE = (C.GPMAPVERTEXATTRIB1FAPPLE)(getProcAddr("glMapVertexAttrib1fAPPLE")) - gpMapVertexAttrib2dAPPLE = (C.GPMAPVERTEXATTRIB2DAPPLE)(getProcAddr("glMapVertexAttrib2dAPPLE")) - gpMapVertexAttrib2fAPPLE = (C.GPMAPVERTEXATTRIB2FAPPLE)(getProcAddr("glMapVertexAttrib2fAPPLE")) - gpMaterialf = (C.GPMATERIALF)(getProcAddr("glMaterialf")) - if gpMaterialf == nil { - return errors.New("glMaterialf") - } - gpMaterialfv = (C.GPMATERIALFV)(getProcAddr("glMaterialfv")) - if gpMaterialfv == nil { - return errors.New("glMaterialfv") - } - gpMateriali = (C.GPMATERIALI)(getProcAddr("glMateriali")) - if gpMateriali == nil { - return errors.New("glMateriali") - } - gpMaterialiv = (C.GPMATERIALIV)(getProcAddr("glMaterialiv")) - if gpMaterialiv == nil { - return errors.New("glMaterialiv") - } - gpMaterialxOES = (C.GPMATERIALXOES)(getProcAddr("glMaterialxOES")) - gpMaterialxvOES = (C.GPMATERIALXVOES)(getProcAddr("glMaterialxvOES")) - gpMatrixFrustumEXT = (C.GPMATRIXFRUSTUMEXT)(getProcAddr("glMatrixFrustumEXT")) - gpMatrixIndexPointerARB = (C.GPMATRIXINDEXPOINTERARB)(getProcAddr("glMatrixIndexPointerARB")) - gpMatrixIndexubvARB = (C.GPMATRIXINDEXUBVARB)(getProcAddr("glMatrixIndexubvARB")) - gpMatrixIndexuivARB = (C.GPMATRIXINDEXUIVARB)(getProcAddr("glMatrixIndexuivARB")) - gpMatrixIndexusvARB = (C.GPMATRIXINDEXUSVARB)(getProcAddr("glMatrixIndexusvARB")) - gpMatrixLoad3x2fNV = (C.GPMATRIXLOAD3X2FNV)(getProcAddr("glMatrixLoad3x2fNV")) - gpMatrixLoad3x3fNV = (C.GPMATRIXLOAD3X3FNV)(getProcAddr("glMatrixLoad3x3fNV")) - gpMatrixLoadIdentityEXT = (C.GPMATRIXLOADIDENTITYEXT)(getProcAddr("glMatrixLoadIdentityEXT")) - gpMatrixLoadTranspose3x3fNV = (C.GPMATRIXLOADTRANSPOSE3X3FNV)(getProcAddr("glMatrixLoadTranspose3x3fNV")) - gpMatrixLoadTransposedEXT = (C.GPMATRIXLOADTRANSPOSEDEXT)(getProcAddr("glMatrixLoadTransposedEXT")) - gpMatrixLoadTransposefEXT = (C.GPMATRIXLOADTRANSPOSEFEXT)(getProcAddr("glMatrixLoadTransposefEXT")) - gpMatrixLoaddEXT = (C.GPMATRIXLOADDEXT)(getProcAddr("glMatrixLoaddEXT")) - gpMatrixLoadfEXT = (C.GPMATRIXLOADFEXT)(getProcAddr("glMatrixLoadfEXT")) - gpMatrixMode = (C.GPMATRIXMODE)(getProcAddr("glMatrixMode")) - if gpMatrixMode == nil { - return errors.New("glMatrixMode") - } - gpMatrixMult3x2fNV = (C.GPMATRIXMULT3X2FNV)(getProcAddr("glMatrixMult3x2fNV")) - gpMatrixMult3x3fNV = (C.GPMATRIXMULT3X3FNV)(getProcAddr("glMatrixMult3x3fNV")) - gpMatrixMultTranspose3x3fNV = (C.GPMATRIXMULTTRANSPOSE3X3FNV)(getProcAddr("glMatrixMultTranspose3x3fNV")) - gpMatrixMultTransposedEXT = (C.GPMATRIXMULTTRANSPOSEDEXT)(getProcAddr("glMatrixMultTransposedEXT")) - gpMatrixMultTransposefEXT = (C.GPMATRIXMULTTRANSPOSEFEXT)(getProcAddr("glMatrixMultTransposefEXT")) - gpMatrixMultdEXT = (C.GPMATRIXMULTDEXT)(getProcAddr("glMatrixMultdEXT")) - gpMatrixMultfEXT = (C.GPMATRIXMULTFEXT)(getProcAddr("glMatrixMultfEXT")) - gpMatrixOrthoEXT = (C.GPMATRIXORTHOEXT)(getProcAddr("glMatrixOrthoEXT")) - gpMatrixPopEXT = (C.GPMATRIXPOPEXT)(getProcAddr("glMatrixPopEXT")) - gpMatrixPushEXT = (C.GPMATRIXPUSHEXT)(getProcAddr("glMatrixPushEXT")) - gpMatrixRotatedEXT = (C.GPMATRIXROTATEDEXT)(getProcAddr("glMatrixRotatedEXT")) - gpMatrixRotatefEXT = (C.GPMATRIXROTATEFEXT)(getProcAddr("glMatrixRotatefEXT")) - gpMatrixScaledEXT = (C.GPMATRIXSCALEDEXT)(getProcAddr("glMatrixScaledEXT")) - gpMatrixScalefEXT = (C.GPMATRIXSCALEFEXT)(getProcAddr("glMatrixScalefEXT")) - gpMatrixTranslatedEXT = (C.GPMATRIXTRANSLATEDEXT)(getProcAddr("glMatrixTranslatedEXT")) - gpMatrixTranslatefEXT = (C.GPMATRIXTRANSLATEFEXT)(getProcAddr("glMatrixTranslatefEXT")) - gpMemoryBarrier = (C.GPMEMORYBARRIER)(getProcAddr("glMemoryBarrier")) - gpMemoryBarrierByRegion = (C.GPMEMORYBARRIERBYREGION)(getProcAddr("glMemoryBarrierByRegion")) - gpMemoryBarrierEXT = (C.GPMEMORYBARRIEREXT)(getProcAddr("glMemoryBarrierEXT")) - gpMinSampleShadingARB = (C.GPMINSAMPLESHADINGARB)(getProcAddr("glMinSampleShadingARB")) - gpMinmaxEXT = (C.GPMINMAXEXT)(getProcAddr("glMinmaxEXT")) - gpMultMatrixd = (C.GPMULTMATRIXD)(getProcAddr("glMultMatrixd")) - if gpMultMatrixd == nil { - return errors.New("glMultMatrixd") - } - gpMultMatrixf = (C.GPMULTMATRIXF)(getProcAddr("glMultMatrixf")) - if gpMultMatrixf == nil { - return errors.New("glMultMatrixf") - } - gpMultMatrixxOES = (C.GPMULTMATRIXXOES)(getProcAddr("glMultMatrixxOES")) - gpMultTransposeMatrixd = (C.GPMULTTRANSPOSEMATRIXD)(getProcAddr("glMultTransposeMatrixd")) - if gpMultTransposeMatrixd == nil { - return errors.New("glMultTransposeMatrixd") - } - gpMultTransposeMatrixdARB = (C.GPMULTTRANSPOSEMATRIXDARB)(getProcAddr("glMultTransposeMatrixdARB")) - gpMultTransposeMatrixf = (C.GPMULTTRANSPOSEMATRIXF)(getProcAddr("glMultTransposeMatrixf")) - if gpMultTransposeMatrixf == nil { - return errors.New("glMultTransposeMatrixf") - } - gpMultTransposeMatrixfARB = (C.GPMULTTRANSPOSEMATRIXFARB)(getProcAddr("glMultTransposeMatrixfARB")) - gpMultTransposeMatrixxOES = (C.GPMULTTRANSPOSEMATRIXXOES)(getProcAddr("glMultTransposeMatrixxOES")) - gpMultiDrawArrays = (C.GPMULTIDRAWARRAYS)(getProcAddr("glMultiDrawArrays")) - if gpMultiDrawArrays == nil { - return errors.New("glMultiDrawArrays") - } - gpMultiDrawArraysEXT = (C.GPMULTIDRAWARRAYSEXT)(getProcAddr("glMultiDrawArraysEXT")) - gpMultiDrawArraysIndirect = (C.GPMULTIDRAWARRAYSINDIRECT)(getProcAddr("glMultiDrawArraysIndirect")) - gpMultiDrawArraysIndirectAMD = (C.GPMULTIDRAWARRAYSINDIRECTAMD)(getProcAddr("glMultiDrawArraysIndirectAMD")) - gpMultiDrawArraysIndirectBindlessCountNV = (C.GPMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNV)(getProcAddr("glMultiDrawArraysIndirectBindlessCountNV")) - gpMultiDrawArraysIndirectBindlessNV = (C.GPMULTIDRAWARRAYSINDIRECTBINDLESSNV)(getProcAddr("glMultiDrawArraysIndirectBindlessNV")) - gpMultiDrawArraysIndirectCountARB = (C.GPMULTIDRAWARRAYSINDIRECTCOUNTARB)(getProcAddr("glMultiDrawArraysIndirectCountARB")) - gpMultiDrawElementArrayAPPLE = (C.GPMULTIDRAWELEMENTARRAYAPPLE)(getProcAddr("glMultiDrawElementArrayAPPLE")) - gpMultiDrawElements = (C.GPMULTIDRAWELEMENTS)(getProcAddr("glMultiDrawElements")) - if gpMultiDrawElements == nil { - return errors.New("glMultiDrawElements") - } - gpMultiDrawElementsBaseVertex = (C.GPMULTIDRAWELEMENTSBASEVERTEX)(getProcAddr("glMultiDrawElementsBaseVertex")) - gpMultiDrawElementsEXT = (C.GPMULTIDRAWELEMENTSEXT)(getProcAddr("glMultiDrawElementsEXT")) - gpMultiDrawElementsIndirect = (C.GPMULTIDRAWELEMENTSINDIRECT)(getProcAddr("glMultiDrawElementsIndirect")) - gpMultiDrawElementsIndirectAMD = (C.GPMULTIDRAWELEMENTSINDIRECTAMD)(getProcAddr("glMultiDrawElementsIndirectAMD")) - gpMultiDrawElementsIndirectBindlessCountNV = (C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNV)(getProcAddr("glMultiDrawElementsIndirectBindlessCountNV")) - gpMultiDrawElementsIndirectBindlessNV = (C.GPMULTIDRAWELEMENTSINDIRECTBINDLESSNV)(getProcAddr("glMultiDrawElementsIndirectBindlessNV")) - gpMultiDrawElementsIndirectCountARB = (C.GPMULTIDRAWELEMENTSINDIRECTCOUNTARB)(getProcAddr("glMultiDrawElementsIndirectCountARB")) - gpMultiDrawRangeElementArrayAPPLE = (C.GPMULTIDRAWRANGEELEMENTARRAYAPPLE)(getProcAddr("glMultiDrawRangeElementArrayAPPLE")) - gpMultiModeDrawArraysIBM = (C.GPMULTIMODEDRAWARRAYSIBM)(getProcAddr("glMultiModeDrawArraysIBM")) - gpMultiModeDrawElementsIBM = (C.GPMULTIMODEDRAWELEMENTSIBM)(getProcAddr("glMultiModeDrawElementsIBM")) - gpMultiTexBufferEXT = (C.GPMULTITEXBUFFEREXT)(getProcAddr("glMultiTexBufferEXT")) - gpMultiTexCoord1bOES = (C.GPMULTITEXCOORD1BOES)(getProcAddr("glMultiTexCoord1bOES")) - gpMultiTexCoord1bvOES = (C.GPMULTITEXCOORD1BVOES)(getProcAddr("glMultiTexCoord1bvOES")) - gpMultiTexCoord1d = (C.GPMULTITEXCOORD1D)(getProcAddr("glMultiTexCoord1d")) - if gpMultiTexCoord1d == nil { - return errors.New("glMultiTexCoord1d") - } - gpMultiTexCoord1dARB = (C.GPMULTITEXCOORD1DARB)(getProcAddr("glMultiTexCoord1dARB")) - gpMultiTexCoord1dv = (C.GPMULTITEXCOORD1DV)(getProcAddr("glMultiTexCoord1dv")) - if gpMultiTexCoord1dv == nil { - return errors.New("glMultiTexCoord1dv") - } - gpMultiTexCoord1dvARB = (C.GPMULTITEXCOORD1DVARB)(getProcAddr("glMultiTexCoord1dvARB")) - gpMultiTexCoord1f = (C.GPMULTITEXCOORD1F)(getProcAddr("glMultiTexCoord1f")) - if gpMultiTexCoord1f == nil { - return errors.New("glMultiTexCoord1f") - } - gpMultiTexCoord1fARB = (C.GPMULTITEXCOORD1FARB)(getProcAddr("glMultiTexCoord1fARB")) - gpMultiTexCoord1fv = (C.GPMULTITEXCOORD1FV)(getProcAddr("glMultiTexCoord1fv")) - if gpMultiTexCoord1fv == nil { - return errors.New("glMultiTexCoord1fv") - } - gpMultiTexCoord1fvARB = (C.GPMULTITEXCOORD1FVARB)(getProcAddr("glMultiTexCoord1fvARB")) - gpMultiTexCoord1hNV = (C.GPMULTITEXCOORD1HNV)(getProcAddr("glMultiTexCoord1hNV")) - gpMultiTexCoord1hvNV = (C.GPMULTITEXCOORD1HVNV)(getProcAddr("glMultiTexCoord1hvNV")) - gpMultiTexCoord1i = (C.GPMULTITEXCOORD1I)(getProcAddr("glMultiTexCoord1i")) - if gpMultiTexCoord1i == nil { - return errors.New("glMultiTexCoord1i") - } - gpMultiTexCoord1iARB = (C.GPMULTITEXCOORD1IARB)(getProcAddr("glMultiTexCoord1iARB")) - gpMultiTexCoord1iv = (C.GPMULTITEXCOORD1IV)(getProcAddr("glMultiTexCoord1iv")) - if gpMultiTexCoord1iv == nil { - return errors.New("glMultiTexCoord1iv") - } - gpMultiTexCoord1ivARB = (C.GPMULTITEXCOORD1IVARB)(getProcAddr("glMultiTexCoord1ivARB")) - gpMultiTexCoord1s = (C.GPMULTITEXCOORD1S)(getProcAddr("glMultiTexCoord1s")) - if gpMultiTexCoord1s == nil { - return errors.New("glMultiTexCoord1s") - } - gpMultiTexCoord1sARB = (C.GPMULTITEXCOORD1SARB)(getProcAddr("glMultiTexCoord1sARB")) - gpMultiTexCoord1sv = (C.GPMULTITEXCOORD1SV)(getProcAddr("glMultiTexCoord1sv")) - if gpMultiTexCoord1sv == nil { - return errors.New("glMultiTexCoord1sv") - } - gpMultiTexCoord1svARB = (C.GPMULTITEXCOORD1SVARB)(getProcAddr("glMultiTexCoord1svARB")) - gpMultiTexCoord1xOES = (C.GPMULTITEXCOORD1XOES)(getProcAddr("glMultiTexCoord1xOES")) - gpMultiTexCoord1xvOES = (C.GPMULTITEXCOORD1XVOES)(getProcAddr("glMultiTexCoord1xvOES")) - gpMultiTexCoord2bOES = (C.GPMULTITEXCOORD2BOES)(getProcAddr("glMultiTexCoord2bOES")) - gpMultiTexCoord2bvOES = (C.GPMULTITEXCOORD2BVOES)(getProcAddr("glMultiTexCoord2bvOES")) - gpMultiTexCoord2d = (C.GPMULTITEXCOORD2D)(getProcAddr("glMultiTexCoord2d")) - if gpMultiTexCoord2d == nil { - return errors.New("glMultiTexCoord2d") - } - gpMultiTexCoord2dARB = (C.GPMULTITEXCOORD2DARB)(getProcAddr("glMultiTexCoord2dARB")) - gpMultiTexCoord2dv = (C.GPMULTITEXCOORD2DV)(getProcAddr("glMultiTexCoord2dv")) - if gpMultiTexCoord2dv == nil { - return errors.New("glMultiTexCoord2dv") - } - gpMultiTexCoord2dvARB = (C.GPMULTITEXCOORD2DVARB)(getProcAddr("glMultiTexCoord2dvARB")) - gpMultiTexCoord2f = (C.GPMULTITEXCOORD2F)(getProcAddr("glMultiTexCoord2f")) - if gpMultiTexCoord2f == nil { - return errors.New("glMultiTexCoord2f") - } - gpMultiTexCoord2fARB = (C.GPMULTITEXCOORD2FARB)(getProcAddr("glMultiTexCoord2fARB")) - gpMultiTexCoord2fv = (C.GPMULTITEXCOORD2FV)(getProcAddr("glMultiTexCoord2fv")) - if gpMultiTexCoord2fv == nil { - return errors.New("glMultiTexCoord2fv") - } - gpMultiTexCoord2fvARB = (C.GPMULTITEXCOORD2FVARB)(getProcAddr("glMultiTexCoord2fvARB")) - gpMultiTexCoord2hNV = (C.GPMULTITEXCOORD2HNV)(getProcAddr("glMultiTexCoord2hNV")) - gpMultiTexCoord2hvNV = (C.GPMULTITEXCOORD2HVNV)(getProcAddr("glMultiTexCoord2hvNV")) - gpMultiTexCoord2i = (C.GPMULTITEXCOORD2I)(getProcAddr("glMultiTexCoord2i")) - if gpMultiTexCoord2i == nil { - return errors.New("glMultiTexCoord2i") - } - gpMultiTexCoord2iARB = (C.GPMULTITEXCOORD2IARB)(getProcAddr("glMultiTexCoord2iARB")) - gpMultiTexCoord2iv = (C.GPMULTITEXCOORD2IV)(getProcAddr("glMultiTexCoord2iv")) - if gpMultiTexCoord2iv == nil { - return errors.New("glMultiTexCoord2iv") - } - gpMultiTexCoord2ivARB = (C.GPMULTITEXCOORD2IVARB)(getProcAddr("glMultiTexCoord2ivARB")) - gpMultiTexCoord2s = (C.GPMULTITEXCOORD2S)(getProcAddr("glMultiTexCoord2s")) - if gpMultiTexCoord2s == nil { - return errors.New("glMultiTexCoord2s") - } - gpMultiTexCoord2sARB = (C.GPMULTITEXCOORD2SARB)(getProcAddr("glMultiTexCoord2sARB")) - gpMultiTexCoord2sv = (C.GPMULTITEXCOORD2SV)(getProcAddr("glMultiTexCoord2sv")) - if gpMultiTexCoord2sv == nil { - return errors.New("glMultiTexCoord2sv") - } - gpMultiTexCoord2svARB = (C.GPMULTITEXCOORD2SVARB)(getProcAddr("glMultiTexCoord2svARB")) - gpMultiTexCoord2xOES = (C.GPMULTITEXCOORD2XOES)(getProcAddr("glMultiTexCoord2xOES")) - gpMultiTexCoord2xvOES = (C.GPMULTITEXCOORD2XVOES)(getProcAddr("glMultiTexCoord2xvOES")) - gpMultiTexCoord3bOES = (C.GPMULTITEXCOORD3BOES)(getProcAddr("glMultiTexCoord3bOES")) - gpMultiTexCoord3bvOES = (C.GPMULTITEXCOORD3BVOES)(getProcAddr("glMultiTexCoord3bvOES")) - gpMultiTexCoord3d = (C.GPMULTITEXCOORD3D)(getProcAddr("glMultiTexCoord3d")) - if gpMultiTexCoord3d == nil { - return errors.New("glMultiTexCoord3d") - } - gpMultiTexCoord3dARB = (C.GPMULTITEXCOORD3DARB)(getProcAddr("glMultiTexCoord3dARB")) - gpMultiTexCoord3dv = (C.GPMULTITEXCOORD3DV)(getProcAddr("glMultiTexCoord3dv")) - if gpMultiTexCoord3dv == nil { - return errors.New("glMultiTexCoord3dv") - } - gpMultiTexCoord3dvARB = (C.GPMULTITEXCOORD3DVARB)(getProcAddr("glMultiTexCoord3dvARB")) - gpMultiTexCoord3f = (C.GPMULTITEXCOORD3F)(getProcAddr("glMultiTexCoord3f")) - if gpMultiTexCoord3f == nil { - return errors.New("glMultiTexCoord3f") - } - gpMultiTexCoord3fARB = (C.GPMULTITEXCOORD3FARB)(getProcAddr("glMultiTexCoord3fARB")) - gpMultiTexCoord3fv = (C.GPMULTITEXCOORD3FV)(getProcAddr("glMultiTexCoord3fv")) - if gpMultiTexCoord3fv == nil { - return errors.New("glMultiTexCoord3fv") - } - gpMultiTexCoord3fvARB = (C.GPMULTITEXCOORD3FVARB)(getProcAddr("glMultiTexCoord3fvARB")) - gpMultiTexCoord3hNV = (C.GPMULTITEXCOORD3HNV)(getProcAddr("glMultiTexCoord3hNV")) - gpMultiTexCoord3hvNV = (C.GPMULTITEXCOORD3HVNV)(getProcAddr("glMultiTexCoord3hvNV")) - gpMultiTexCoord3i = (C.GPMULTITEXCOORD3I)(getProcAddr("glMultiTexCoord3i")) - if gpMultiTexCoord3i == nil { - return errors.New("glMultiTexCoord3i") - } - gpMultiTexCoord3iARB = (C.GPMULTITEXCOORD3IARB)(getProcAddr("glMultiTexCoord3iARB")) - gpMultiTexCoord3iv = (C.GPMULTITEXCOORD3IV)(getProcAddr("glMultiTexCoord3iv")) - if gpMultiTexCoord3iv == nil { - return errors.New("glMultiTexCoord3iv") - } - gpMultiTexCoord3ivARB = (C.GPMULTITEXCOORD3IVARB)(getProcAddr("glMultiTexCoord3ivARB")) - gpMultiTexCoord3s = (C.GPMULTITEXCOORD3S)(getProcAddr("glMultiTexCoord3s")) - if gpMultiTexCoord3s == nil { - return errors.New("glMultiTexCoord3s") - } - gpMultiTexCoord3sARB = (C.GPMULTITEXCOORD3SARB)(getProcAddr("glMultiTexCoord3sARB")) - gpMultiTexCoord3sv = (C.GPMULTITEXCOORD3SV)(getProcAddr("glMultiTexCoord3sv")) - if gpMultiTexCoord3sv == nil { - return errors.New("glMultiTexCoord3sv") - } - gpMultiTexCoord3svARB = (C.GPMULTITEXCOORD3SVARB)(getProcAddr("glMultiTexCoord3svARB")) - gpMultiTexCoord3xOES = (C.GPMULTITEXCOORD3XOES)(getProcAddr("glMultiTexCoord3xOES")) - gpMultiTexCoord3xvOES = (C.GPMULTITEXCOORD3XVOES)(getProcAddr("glMultiTexCoord3xvOES")) - gpMultiTexCoord4bOES = (C.GPMULTITEXCOORD4BOES)(getProcAddr("glMultiTexCoord4bOES")) - gpMultiTexCoord4bvOES = (C.GPMULTITEXCOORD4BVOES)(getProcAddr("glMultiTexCoord4bvOES")) - gpMultiTexCoord4d = (C.GPMULTITEXCOORD4D)(getProcAddr("glMultiTexCoord4d")) - if gpMultiTexCoord4d == nil { - return errors.New("glMultiTexCoord4d") - } - gpMultiTexCoord4dARB = (C.GPMULTITEXCOORD4DARB)(getProcAddr("glMultiTexCoord4dARB")) - gpMultiTexCoord4dv = (C.GPMULTITEXCOORD4DV)(getProcAddr("glMultiTexCoord4dv")) - if gpMultiTexCoord4dv == nil { - return errors.New("glMultiTexCoord4dv") - } - gpMultiTexCoord4dvARB = (C.GPMULTITEXCOORD4DVARB)(getProcAddr("glMultiTexCoord4dvARB")) - gpMultiTexCoord4f = (C.GPMULTITEXCOORD4F)(getProcAddr("glMultiTexCoord4f")) - if gpMultiTexCoord4f == nil { - return errors.New("glMultiTexCoord4f") - } - gpMultiTexCoord4fARB = (C.GPMULTITEXCOORD4FARB)(getProcAddr("glMultiTexCoord4fARB")) - gpMultiTexCoord4fv = (C.GPMULTITEXCOORD4FV)(getProcAddr("glMultiTexCoord4fv")) - if gpMultiTexCoord4fv == nil { - return errors.New("glMultiTexCoord4fv") - } - gpMultiTexCoord4fvARB = (C.GPMULTITEXCOORD4FVARB)(getProcAddr("glMultiTexCoord4fvARB")) - gpMultiTexCoord4hNV = (C.GPMULTITEXCOORD4HNV)(getProcAddr("glMultiTexCoord4hNV")) - gpMultiTexCoord4hvNV = (C.GPMULTITEXCOORD4HVNV)(getProcAddr("glMultiTexCoord4hvNV")) - gpMultiTexCoord4i = (C.GPMULTITEXCOORD4I)(getProcAddr("glMultiTexCoord4i")) - if gpMultiTexCoord4i == nil { - return errors.New("glMultiTexCoord4i") - } - gpMultiTexCoord4iARB = (C.GPMULTITEXCOORD4IARB)(getProcAddr("glMultiTexCoord4iARB")) - gpMultiTexCoord4iv = (C.GPMULTITEXCOORD4IV)(getProcAddr("glMultiTexCoord4iv")) - if gpMultiTexCoord4iv == nil { - return errors.New("glMultiTexCoord4iv") - } - gpMultiTexCoord4ivARB = (C.GPMULTITEXCOORD4IVARB)(getProcAddr("glMultiTexCoord4ivARB")) - gpMultiTexCoord4s = (C.GPMULTITEXCOORD4S)(getProcAddr("glMultiTexCoord4s")) - if gpMultiTexCoord4s == nil { - return errors.New("glMultiTexCoord4s") - } - gpMultiTexCoord4sARB = (C.GPMULTITEXCOORD4SARB)(getProcAddr("glMultiTexCoord4sARB")) - gpMultiTexCoord4sv = (C.GPMULTITEXCOORD4SV)(getProcAddr("glMultiTexCoord4sv")) - if gpMultiTexCoord4sv == nil { - return errors.New("glMultiTexCoord4sv") - } - gpMultiTexCoord4svARB = (C.GPMULTITEXCOORD4SVARB)(getProcAddr("glMultiTexCoord4svARB")) - gpMultiTexCoord4xOES = (C.GPMULTITEXCOORD4XOES)(getProcAddr("glMultiTexCoord4xOES")) - gpMultiTexCoord4xvOES = (C.GPMULTITEXCOORD4XVOES)(getProcAddr("glMultiTexCoord4xvOES")) - gpMultiTexCoordPointerEXT = (C.GPMULTITEXCOORDPOINTEREXT)(getProcAddr("glMultiTexCoordPointerEXT")) - gpMultiTexEnvfEXT = (C.GPMULTITEXENVFEXT)(getProcAddr("glMultiTexEnvfEXT")) - gpMultiTexEnvfvEXT = (C.GPMULTITEXENVFVEXT)(getProcAddr("glMultiTexEnvfvEXT")) - gpMultiTexEnviEXT = (C.GPMULTITEXENVIEXT)(getProcAddr("glMultiTexEnviEXT")) - gpMultiTexEnvivEXT = (C.GPMULTITEXENVIVEXT)(getProcAddr("glMultiTexEnvivEXT")) - gpMultiTexGendEXT = (C.GPMULTITEXGENDEXT)(getProcAddr("glMultiTexGendEXT")) - gpMultiTexGendvEXT = (C.GPMULTITEXGENDVEXT)(getProcAddr("glMultiTexGendvEXT")) - gpMultiTexGenfEXT = (C.GPMULTITEXGENFEXT)(getProcAddr("glMultiTexGenfEXT")) - gpMultiTexGenfvEXT = (C.GPMULTITEXGENFVEXT)(getProcAddr("glMultiTexGenfvEXT")) - gpMultiTexGeniEXT = (C.GPMULTITEXGENIEXT)(getProcAddr("glMultiTexGeniEXT")) - gpMultiTexGenivEXT = (C.GPMULTITEXGENIVEXT)(getProcAddr("glMultiTexGenivEXT")) - gpMultiTexImage1DEXT = (C.GPMULTITEXIMAGE1DEXT)(getProcAddr("glMultiTexImage1DEXT")) - gpMultiTexImage2DEXT = (C.GPMULTITEXIMAGE2DEXT)(getProcAddr("glMultiTexImage2DEXT")) - gpMultiTexImage3DEXT = (C.GPMULTITEXIMAGE3DEXT)(getProcAddr("glMultiTexImage3DEXT")) - gpMultiTexParameterIivEXT = (C.GPMULTITEXPARAMETERIIVEXT)(getProcAddr("glMultiTexParameterIivEXT")) - gpMultiTexParameterIuivEXT = (C.GPMULTITEXPARAMETERIUIVEXT)(getProcAddr("glMultiTexParameterIuivEXT")) - gpMultiTexParameterfEXT = (C.GPMULTITEXPARAMETERFEXT)(getProcAddr("glMultiTexParameterfEXT")) - gpMultiTexParameterfvEXT = (C.GPMULTITEXPARAMETERFVEXT)(getProcAddr("glMultiTexParameterfvEXT")) - gpMultiTexParameteriEXT = (C.GPMULTITEXPARAMETERIEXT)(getProcAddr("glMultiTexParameteriEXT")) - gpMultiTexParameterivEXT = (C.GPMULTITEXPARAMETERIVEXT)(getProcAddr("glMultiTexParameterivEXT")) - gpMultiTexRenderbufferEXT = (C.GPMULTITEXRENDERBUFFEREXT)(getProcAddr("glMultiTexRenderbufferEXT")) - gpMultiTexSubImage1DEXT = (C.GPMULTITEXSUBIMAGE1DEXT)(getProcAddr("glMultiTexSubImage1DEXT")) - gpMultiTexSubImage2DEXT = (C.GPMULTITEXSUBIMAGE2DEXT)(getProcAddr("glMultiTexSubImage2DEXT")) - gpMultiTexSubImage3DEXT = (C.GPMULTITEXSUBIMAGE3DEXT)(getProcAddr("glMultiTexSubImage3DEXT")) - gpNamedBufferData = (C.GPNAMEDBUFFERDATA)(getProcAddr("glNamedBufferData")) - gpNamedBufferDataEXT = (C.GPNAMEDBUFFERDATAEXT)(getProcAddr("glNamedBufferDataEXT")) - gpNamedBufferPageCommitmentARB = (C.GPNAMEDBUFFERPAGECOMMITMENTARB)(getProcAddr("glNamedBufferPageCommitmentARB")) - gpNamedBufferPageCommitmentEXT = (C.GPNAMEDBUFFERPAGECOMMITMENTEXT)(getProcAddr("glNamedBufferPageCommitmentEXT")) - gpNamedBufferStorage = (C.GPNAMEDBUFFERSTORAGE)(getProcAddr("glNamedBufferStorage")) - gpNamedBufferStorageEXT = (C.GPNAMEDBUFFERSTORAGEEXT)(getProcAddr("glNamedBufferStorageEXT")) - gpNamedBufferSubData = (C.GPNAMEDBUFFERSUBDATA)(getProcAddr("glNamedBufferSubData")) - gpNamedBufferSubDataEXT = (C.GPNAMEDBUFFERSUBDATAEXT)(getProcAddr("glNamedBufferSubDataEXT")) - gpNamedCopyBufferSubDataEXT = (C.GPNAMEDCOPYBUFFERSUBDATAEXT)(getProcAddr("glNamedCopyBufferSubDataEXT")) - gpNamedFramebufferDrawBuffer = (C.GPNAMEDFRAMEBUFFERDRAWBUFFER)(getProcAddr("glNamedFramebufferDrawBuffer")) - gpNamedFramebufferDrawBuffers = (C.GPNAMEDFRAMEBUFFERDRAWBUFFERS)(getProcAddr("glNamedFramebufferDrawBuffers")) - gpNamedFramebufferParameteri = (C.GPNAMEDFRAMEBUFFERPARAMETERI)(getProcAddr("glNamedFramebufferParameteri")) - gpNamedFramebufferParameteriEXT = (C.GPNAMEDFRAMEBUFFERPARAMETERIEXT)(getProcAddr("glNamedFramebufferParameteriEXT")) - gpNamedFramebufferReadBuffer = (C.GPNAMEDFRAMEBUFFERREADBUFFER)(getProcAddr("glNamedFramebufferReadBuffer")) - gpNamedFramebufferRenderbuffer = (C.GPNAMEDFRAMEBUFFERRENDERBUFFER)(getProcAddr("glNamedFramebufferRenderbuffer")) - gpNamedFramebufferRenderbufferEXT = (C.GPNAMEDFRAMEBUFFERRENDERBUFFEREXT)(getProcAddr("glNamedFramebufferRenderbufferEXT")) - gpNamedFramebufferTexture = (C.GPNAMEDFRAMEBUFFERTEXTURE)(getProcAddr("glNamedFramebufferTexture")) - gpNamedFramebufferTexture1DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE1DEXT)(getProcAddr("glNamedFramebufferTexture1DEXT")) - gpNamedFramebufferTexture2DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE2DEXT)(getProcAddr("glNamedFramebufferTexture2DEXT")) - gpNamedFramebufferTexture3DEXT = (C.GPNAMEDFRAMEBUFFERTEXTURE3DEXT)(getProcAddr("glNamedFramebufferTexture3DEXT")) - gpNamedFramebufferTextureEXT = (C.GPNAMEDFRAMEBUFFERTEXTUREEXT)(getProcAddr("glNamedFramebufferTextureEXT")) - gpNamedFramebufferTextureFaceEXT = (C.GPNAMEDFRAMEBUFFERTEXTUREFACEEXT)(getProcAddr("glNamedFramebufferTextureFaceEXT")) - gpNamedFramebufferTextureLayer = (C.GPNAMEDFRAMEBUFFERTEXTURELAYER)(getProcAddr("glNamedFramebufferTextureLayer")) - gpNamedFramebufferTextureLayerEXT = (C.GPNAMEDFRAMEBUFFERTEXTURELAYEREXT)(getProcAddr("glNamedFramebufferTextureLayerEXT")) - gpNamedProgramLocalParameter4dEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4DEXT)(getProcAddr("glNamedProgramLocalParameter4dEXT")) - gpNamedProgramLocalParameter4dvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4DVEXT)(getProcAddr("glNamedProgramLocalParameter4dvEXT")) - gpNamedProgramLocalParameter4fEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4FEXT)(getProcAddr("glNamedProgramLocalParameter4fEXT")) - gpNamedProgramLocalParameter4fvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETER4FVEXT)(getProcAddr("glNamedProgramLocalParameter4fvEXT")) - gpNamedProgramLocalParameterI4iEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4IEXT)(getProcAddr("glNamedProgramLocalParameterI4iEXT")) - gpNamedProgramLocalParameterI4ivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4IVEXT)(getProcAddr("glNamedProgramLocalParameterI4ivEXT")) - gpNamedProgramLocalParameterI4uiEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4UIEXT)(getProcAddr("glNamedProgramLocalParameterI4uiEXT")) - gpNamedProgramLocalParameterI4uivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERI4UIVEXT)(getProcAddr("glNamedProgramLocalParameterI4uivEXT")) - gpNamedProgramLocalParameters4fvEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERS4FVEXT)(getProcAddr("glNamedProgramLocalParameters4fvEXT")) - gpNamedProgramLocalParametersI4ivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERSI4IVEXT)(getProcAddr("glNamedProgramLocalParametersI4ivEXT")) - gpNamedProgramLocalParametersI4uivEXT = (C.GPNAMEDPROGRAMLOCALPARAMETERSI4UIVEXT)(getProcAddr("glNamedProgramLocalParametersI4uivEXT")) - gpNamedProgramStringEXT = (C.GPNAMEDPROGRAMSTRINGEXT)(getProcAddr("glNamedProgramStringEXT")) - gpNamedRenderbufferStorage = (C.GPNAMEDRENDERBUFFERSTORAGE)(getProcAddr("glNamedRenderbufferStorage")) - gpNamedRenderbufferStorageEXT = (C.GPNAMEDRENDERBUFFERSTORAGEEXT)(getProcAddr("glNamedRenderbufferStorageEXT")) - gpNamedRenderbufferStorageMultisample = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLE)(getProcAddr("glNamedRenderbufferStorageMultisample")) - gpNamedRenderbufferStorageMultisampleCoverageEXT = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXT)(getProcAddr("glNamedRenderbufferStorageMultisampleCoverageEXT")) - gpNamedRenderbufferStorageMultisampleEXT = (C.GPNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXT)(getProcAddr("glNamedRenderbufferStorageMultisampleEXT")) - gpNamedStringARB = (C.GPNAMEDSTRINGARB)(getProcAddr("glNamedStringARB")) - gpNewList = (C.GPNEWLIST)(getProcAddr("glNewList")) - if gpNewList == nil { - return errors.New("glNewList") - } - gpNewObjectBufferATI = (C.GPNEWOBJECTBUFFERATI)(getProcAddr("glNewObjectBufferATI")) - gpNormal3b = (C.GPNORMAL3B)(getProcAddr("glNormal3b")) - if gpNormal3b == nil { - return errors.New("glNormal3b") - } - gpNormal3bv = (C.GPNORMAL3BV)(getProcAddr("glNormal3bv")) - if gpNormal3bv == nil { - return errors.New("glNormal3bv") - } - gpNormal3d = (C.GPNORMAL3D)(getProcAddr("glNormal3d")) - if gpNormal3d == nil { - return errors.New("glNormal3d") - } - gpNormal3dv = (C.GPNORMAL3DV)(getProcAddr("glNormal3dv")) - if gpNormal3dv == nil { - return errors.New("glNormal3dv") - } - gpNormal3f = (C.GPNORMAL3F)(getProcAddr("glNormal3f")) - if gpNormal3f == nil { - return errors.New("glNormal3f") - } - gpNormal3fVertex3fSUN = (C.GPNORMAL3FVERTEX3FSUN)(getProcAddr("glNormal3fVertex3fSUN")) - gpNormal3fVertex3fvSUN = (C.GPNORMAL3FVERTEX3FVSUN)(getProcAddr("glNormal3fVertex3fvSUN")) - gpNormal3fv = (C.GPNORMAL3FV)(getProcAddr("glNormal3fv")) - if gpNormal3fv == nil { - return errors.New("glNormal3fv") - } - gpNormal3hNV = (C.GPNORMAL3HNV)(getProcAddr("glNormal3hNV")) - gpNormal3hvNV = (C.GPNORMAL3HVNV)(getProcAddr("glNormal3hvNV")) - gpNormal3i = (C.GPNORMAL3I)(getProcAddr("glNormal3i")) - if gpNormal3i == nil { - return errors.New("glNormal3i") - } - gpNormal3iv = (C.GPNORMAL3IV)(getProcAddr("glNormal3iv")) - if gpNormal3iv == nil { - return errors.New("glNormal3iv") - } - gpNormal3s = (C.GPNORMAL3S)(getProcAddr("glNormal3s")) - if gpNormal3s == nil { - return errors.New("glNormal3s") - } - gpNormal3sv = (C.GPNORMAL3SV)(getProcAddr("glNormal3sv")) - if gpNormal3sv == nil { - return errors.New("glNormal3sv") - } - gpNormal3xOES = (C.GPNORMAL3XOES)(getProcAddr("glNormal3xOES")) - gpNormal3xvOES = (C.GPNORMAL3XVOES)(getProcAddr("glNormal3xvOES")) - gpNormalFormatNV = (C.GPNORMALFORMATNV)(getProcAddr("glNormalFormatNV")) - gpNormalPointer = (C.GPNORMALPOINTER)(getProcAddr("glNormalPointer")) - if gpNormalPointer == nil { - return errors.New("glNormalPointer") - } - gpNormalPointerEXT = (C.GPNORMALPOINTEREXT)(getProcAddr("glNormalPointerEXT")) - gpNormalPointerListIBM = (C.GPNORMALPOINTERLISTIBM)(getProcAddr("glNormalPointerListIBM")) - gpNormalPointervINTEL = (C.GPNORMALPOINTERVINTEL)(getProcAddr("glNormalPointervINTEL")) - gpNormalStream3bATI = (C.GPNORMALSTREAM3BATI)(getProcAddr("glNormalStream3bATI")) - gpNormalStream3bvATI = (C.GPNORMALSTREAM3BVATI)(getProcAddr("glNormalStream3bvATI")) - gpNormalStream3dATI = (C.GPNORMALSTREAM3DATI)(getProcAddr("glNormalStream3dATI")) - gpNormalStream3dvATI = (C.GPNORMALSTREAM3DVATI)(getProcAddr("glNormalStream3dvATI")) - gpNormalStream3fATI = (C.GPNORMALSTREAM3FATI)(getProcAddr("glNormalStream3fATI")) - gpNormalStream3fvATI = (C.GPNORMALSTREAM3FVATI)(getProcAddr("glNormalStream3fvATI")) - gpNormalStream3iATI = (C.GPNORMALSTREAM3IATI)(getProcAddr("glNormalStream3iATI")) - gpNormalStream3ivATI = (C.GPNORMALSTREAM3IVATI)(getProcAddr("glNormalStream3ivATI")) - gpNormalStream3sATI = (C.GPNORMALSTREAM3SATI)(getProcAddr("glNormalStream3sATI")) - gpNormalStream3svATI = (C.GPNORMALSTREAM3SVATI)(getProcAddr("glNormalStream3svATI")) - gpObjectLabel = (C.GPOBJECTLABEL)(getProcAddr("glObjectLabel")) - gpObjectLabelKHR = (C.GPOBJECTLABELKHR)(getProcAddr("glObjectLabelKHR")) - gpObjectPtrLabel = (C.GPOBJECTPTRLABEL)(getProcAddr("glObjectPtrLabel")) - gpObjectPtrLabelKHR = (C.GPOBJECTPTRLABELKHR)(getProcAddr("glObjectPtrLabelKHR")) - gpObjectPurgeableAPPLE = (C.GPOBJECTPURGEABLEAPPLE)(getProcAddr("glObjectPurgeableAPPLE")) - gpObjectUnpurgeableAPPLE = (C.GPOBJECTUNPURGEABLEAPPLE)(getProcAddr("glObjectUnpurgeableAPPLE")) - gpOrtho = (C.GPORTHO)(getProcAddr("glOrtho")) - if gpOrtho == nil { - return errors.New("glOrtho") - } - gpOrthofOES = (C.GPORTHOFOES)(getProcAddr("glOrthofOES")) - gpOrthoxOES = (C.GPORTHOXOES)(getProcAddr("glOrthoxOES")) - gpPNTrianglesfATI = (C.GPPNTRIANGLESFATI)(getProcAddr("glPNTrianglesfATI")) - gpPNTrianglesiATI = (C.GPPNTRIANGLESIATI)(getProcAddr("glPNTrianglesiATI")) - gpPassTexCoordATI = (C.GPPASSTEXCOORDATI)(getProcAddr("glPassTexCoordATI")) - gpPassThrough = (C.GPPASSTHROUGH)(getProcAddr("glPassThrough")) - if gpPassThrough == nil { - return errors.New("glPassThrough") - } - gpPassThroughxOES = (C.GPPASSTHROUGHXOES)(getProcAddr("glPassThroughxOES")) - gpPatchParameterfv = (C.GPPATCHPARAMETERFV)(getProcAddr("glPatchParameterfv")) - gpPatchParameteri = (C.GPPATCHPARAMETERI)(getProcAddr("glPatchParameteri")) - gpPathColorGenNV = (C.GPPATHCOLORGENNV)(getProcAddr("glPathColorGenNV")) - gpPathCommandsNV = (C.GPPATHCOMMANDSNV)(getProcAddr("glPathCommandsNV")) - gpPathCoordsNV = (C.GPPATHCOORDSNV)(getProcAddr("glPathCoordsNV")) - gpPathCoverDepthFuncNV = (C.GPPATHCOVERDEPTHFUNCNV)(getProcAddr("glPathCoverDepthFuncNV")) - gpPathDashArrayNV = (C.GPPATHDASHARRAYNV)(getProcAddr("glPathDashArrayNV")) - gpPathFogGenNV = (C.GPPATHFOGGENNV)(getProcAddr("glPathFogGenNV")) - gpPathGlyphIndexArrayNV = (C.GPPATHGLYPHINDEXARRAYNV)(getProcAddr("glPathGlyphIndexArrayNV")) - gpPathGlyphIndexRangeNV = (C.GPPATHGLYPHINDEXRANGENV)(getProcAddr("glPathGlyphIndexRangeNV")) - gpPathGlyphRangeNV = (C.GPPATHGLYPHRANGENV)(getProcAddr("glPathGlyphRangeNV")) - gpPathGlyphsNV = (C.GPPATHGLYPHSNV)(getProcAddr("glPathGlyphsNV")) - gpPathMemoryGlyphIndexArrayNV = (C.GPPATHMEMORYGLYPHINDEXARRAYNV)(getProcAddr("glPathMemoryGlyphIndexArrayNV")) - gpPathParameterfNV = (C.GPPATHPARAMETERFNV)(getProcAddr("glPathParameterfNV")) - gpPathParameterfvNV = (C.GPPATHPARAMETERFVNV)(getProcAddr("glPathParameterfvNV")) - gpPathParameteriNV = (C.GPPATHPARAMETERINV)(getProcAddr("glPathParameteriNV")) - gpPathParameterivNV = (C.GPPATHPARAMETERIVNV)(getProcAddr("glPathParameterivNV")) - gpPathStencilDepthOffsetNV = (C.GPPATHSTENCILDEPTHOFFSETNV)(getProcAddr("glPathStencilDepthOffsetNV")) - gpPathStencilFuncNV = (C.GPPATHSTENCILFUNCNV)(getProcAddr("glPathStencilFuncNV")) - gpPathStringNV = (C.GPPATHSTRINGNV)(getProcAddr("glPathStringNV")) - gpPathSubCommandsNV = (C.GPPATHSUBCOMMANDSNV)(getProcAddr("glPathSubCommandsNV")) - gpPathSubCoordsNV = (C.GPPATHSUBCOORDSNV)(getProcAddr("glPathSubCoordsNV")) - gpPathTexGenNV = (C.GPPATHTEXGENNV)(getProcAddr("glPathTexGenNV")) - gpPauseTransformFeedback = (C.GPPAUSETRANSFORMFEEDBACK)(getProcAddr("glPauseTransformFeedback")) - gpPauseTransformFeedbackNV = (C.GPPAUSETRANSFORMFEEDBACKNV)(getProcAddr("glPauseTransformFeedbackNV")) - gpPixelDataRangeNV = (C.GPPIXELDATARANGENV)(getProcAddr("glPixelDataRangeNV")) - gpPixelMapfv = (C.GPPIXELMAPFV)(getProcAddr("glPixelMapfv")) - if gpPixelMapfv == nil { - return errors.New("glPixelMapfv") - } - gpPixelMapuiv = (C.GPPIXELMAPUIV)(getProcAddr("glPixelMapuiv")) - if gpPixelMapuiv == nil { - return errors.New("glPixelMapuiv") - } - gpPixelMapusv = (C.GPPIXELMAPUSV)(getProcAddr("glPixelMapusv")) - if gpPixelMapusv == nil { - return errors.New("glPixelMapusv") - } - gpPixelMapx = (C.GPPIXELMAPX)(getProcAddr("glPixelMapx")) - gpPixelStoref = (C.GPPIXELSTOREF)(getProcAddr("glPixelStoref")) - if gpPixelStoref == nil { - return errors.New("glPixelStoref") - } - gpPixelStorei = (C.GPPIXELSTOREI)(getProcAddr("glPixelStorei")) - if gpPixelStorei == nil { - return errors.New("glPixelStorei") - } - gpPixelStorex = (C.GPPIXELSTOREX)(getProcAddr("glPixelStorex")) - gpPixelTexGenParameterfSGIS = (C.GPPIXELTEXGENPARAMETERFSGIS)(getProcAddr("glPixelTexGenParameterfSGIS")) - gpPixelTexGenParameterfvSGIS = (C.GPPIXELTEXGENPARAMETERFVSGIS)(getProcAddr("glPixelTexGenParameterfvSGIS")) - gpPixelTexGenParameteriSGIS = (C.GPPIXELTEXGENPARAMETERISGIS)(getProcAddr("glPixelTexGenParameteriSGIS")) - gpPixelTexGenParameterivSGIS = (C.GPPIXELTEXGENPARAMETERIVSGIS)(getProcAddr("glPixelTexGenParameterivSGIS")) - gpPixelTexGenSGIX = (C.GPPIXELTEXGENSGIX)(getProcAddr("glPixelTexGenSGIX")) - gpPixelTransferf = (C.GPPIXELTRANSFERF)(getProcAddr("glPixelTransferf")) - if gpPixelTransferf == nil { - return errors.New("glPixelTransferf") - } - gpPixelTransferi = (C.GPPIXELTRANSFERI)(getProcAddr("glPixelTransferi")) - if gpPixelTransferi == nil { - return errors.New("glPixelTransferi") - } - gpPixelTransferxOES = (C.GPPIXELTRANSFERXOES)(getProcAddr("glPixelTransferxOES")) - gpPixelTransformParameterfEXT = (C.GPPIXELTRANSFORMPARAMETERFEXT)(getProcAddr("glPixelTransformParameterfEXT")) - gpPixelTransformParameterfvEXT = (C.GPPIXELTRANSFORMPARAMETERFVEXT)(getProcAddr("glPixelTransformParameterfvEXT")) - gpPixelTransformParameteriEXT = (C.GPPIXELTRANSFORMPARAMETERIEXT)(getProcAddr("glPixelTransformParameteriEXT")) - gpPixelTransformParameterivEXT = (C.GPPIXELTRANSFORMPARAMETERIVEXT)(getProcAddr("glPixelTransformParameterivEXT")) - gpPixelZoom = (C.GPPIXELZOOM)(getProcAddr("glPixelZoom")) - if gpPixelZoom == nil { - return errors.New("glPixelZoom") - } - gpPixelZoomxOES = (C.GPPIXELZOOMXOES)(getProcAddr("glPixelZoomxOES")) - gpPointAlongPathNV = (C.GPPOINTALONGPATHNV)(getProcAddr("glPointAlongPathNV")) - gpPointParameterf = (C.GPPOINTPARAMETERF)(getProcAddr("glPointParameterf")) - if gpPointParameterf == nil { - return errors.New("glPointParameterf") - } - gpPointParameterfARB = (C.GPPOINTPARAMETERFARB)(getProcAddr("glPointParameterfARB")) - gpPointParameterfEXT = (C.GPPOINTPARAMETERFEXT)(getProcAddr("glPointParameterfEXT")) - gpPointParameterfSGIS = (C.GPPOINTPARAMETERFSGIS)(getProcAddr("glPointParameterfSGIS")) - gpPointParameterfv = (C.GPPOINTPARAMETERFV)(getProcAddr("glPointParameterfv")) - if gpPointParameterfv == nil { - return errors.New("glPointParameterfv") - } - gpPointParameterfvARB = (C.GPPOINTPARAMETERFVARB)(getProcAddr("glPointParameterfvARB")) - gpPointParameterfvEXT = (C.GPPOINTPARAMETERFVEXT)(getProcAddr("glPointParameterfvEXT")) - gpPointParameterfvSGIS = (C.GPPOINTPARAMETERFVSGIS)(getProcAddr("glPointParameterfvSGIS")) - gpPointParameteri = (C.GPPOINTPARAMETERI)(getProcAddr("glPointParameteri")) - if gpPointParameteri == nil { - return errors.New("glPointParameteri") - } - gpPointParameteriNV = (C.GPPOINTPARAMETERINV)(getProcAddr("glPointParameteriNV")) - gpPointParameteriv = (C.GPPOINTPARAMETERIV)(getProcAddr("glPointParameteriv")) - if gpPointParameteriv == nil { - return errors.New("glPointParameteriv") - } - gpPointParameterivNV = (C.GPPOINTPARAMETERIVNV)(getProcAddr("glPointParameterivNV")) - gpPointParameterxOES = (C.GPPOINTPARAMETERXOES)(getProcAddr("glPointParameterxOES")) - gpPointParameterxvOES = (C.GPPOINTPARAMETERXVOES)(getProcAddr("glPointParameterxvOES")) - gpPointSize = (C.GPPOINTSIZE)(getProcAddr("glPointSize")) - if gpPointSize == nil { - return errors.New("glPointSize") - } - gpPointSizexOES = (C.GPPOINTSIZEXOES)(getProcAddr("glPointSizexOES")) - gpPollAsyncSGIX = (C.GPPOLLASYNCSGIX)(getProcAddr("glPollAsyncSGIX")) - gpPollInstrumentsSGIX = (C.GPPOLLINSTRUMENTSSGIX)(getProcAddr("glPollInstrumentsSGIX")) - gpPolygonMode = (C.GPPOLYGONMODE)(getProcAddr("glPolygonMode")) - if gpPolygonMode == nil { - return errors.New("glPolygonMode") - } - gpPolygonOffset = (C.GPPOLYGONOFFSET)(getProcAddr("glPolygonOffset")) - if gpPolygonOffset == nil { - return errors.New("glPolygonOffset") - } - gpPolygonOffsetEXT = (C.GPPOLYGONOFFSETEXT)(getProcAddr("glPolygonOffsetEXT")) - gpPolygonOffsetxOES = (C.GPPOLYGONOFFSETXOES)(getProcAddr("glPolygonOffsetxOES")) - gpPolygonStipple = (C.GPPOLYGONSTIPPLE)(getProcAddr("glPolygonStipple")) - if gpPolygonStipple == nil { - return errors.New("glPolygonStipple") - } - gpPopAttrib = (C.GPPOPATTRIB)(getProcAddr("glPopAttrib")) - if gpPopAttrib == nil { - return errors.New("glPopAttrib") - } - gpPopClientAttrib = (C.GPPOPCLIENTATTRIB)(getProcAddr("glPopClientAttrib")) - if gpPopClientAttrib == nil { - return errors.New("glPopClientAttrib") - } - gpPopDebugGroup = (C.GPPOPDEBUGGROUP)(getProcAddr("glPopDebugGroup")) - gpPopDebugGroupKHR = (C.GPPOPDEBUGGROUPKHR)(getProcAddr("glPopDebugGroupKHR")) - gpPopGroupMarkerEXT = (C.GPPOPGROUPMARKEREXT)(getProcAddr("glPopGroupMarkerEXT")) - gpPopMatrix = (C.GPPOPMATRIX)(getProcAddr("glPopMatrix")) - if gpPopMatrix == nil { - return errors.New("glPopMatrix") - } - gpPopName = (C.GPPOPNAME)(getProcAddr("glPopName")) - if gpPopName == nil { - return errors.New("glPopName") - } - gpPresentFrameDualFillNV = (C.GPPRESENTFRAMEDUALFILLNV)(getProcAddr("glPresentFrameDualFillNV")) - gpPresentFrameKeyedNV = (C.GPPRESENTFRAMEKEYEDNV)(getProcAddr("glPresentFrameKeyedNV")) - gpPrimitiveRestartIndexNV = (C.GPPRIMITIVERESTARTINDEXNV)(getProcAddr("glPrimitiveRestartIndexNV")) - gpPrimitiveRestartNV = (C.GPPRIMITIVERESTARTNV)(getProcAddr("glPrimitiveRestartNV")) - gpPrioritizeTextures = (C.GPPRIORITIZETEXTURES)(getProcAddr("glPrioritizeTextures")) - if gpPrioritizeTextures == nil { - return errors.New("glPrioritizeTextures") - } - gpPrioritizeTexturesEXT = (C.GPPRIORITIZETEXTURESEXT)(getProcAddr("glPrioritizeTexturesEXT")) - gpPrioritizeTexturesxOES = (C.GPPRIORITIZETEXTURESXOES)(getProcAddr("glPrioritizeTexturesxOES")) - gpProgramBinary = (C.GPPROGRAMBINARY)(getProcAddr("glProgramBinary")) - gpProgramBufferParametersIivNV = (C.GPPROGRAMBUFFERPARAMETERSIIVNV)(getProcAddr("glProgramBufferParametersIivNV")) - gpProgramBufferParametersIuivNV = (C.GPPROGRAMBUFFERPARAMETERSIUIVNV)(getProcAddr("glProgramBufferParametersIuivNV")) - gpProgramBufferParametersfvNV = (C.GPPROGRAMBUFFERPARAMETERSFVNV)(getProcAddr("glProgramBufferParametersfvNV")) - gpProgramEnvParameter4dARB = (C.GPPROGRAMENVPARAMETER4DARB)(getProcAddr("glProgramEnvParameter4dARB")) - gpProgramEnvParameter4dvARB = (C.GPPROGRAMENVPARAMETER4DVARB)(getProcAddr("glProgramEnvParameter4dvARB")) - gpProgramEnvParameter4fARB = (C.GPPROGRAMENVPARAMETER4FARB)(getProcAddr("glProgramEnvParameter4fARB")) - gpProgramEnvParameter4fvARB = (C.GPPROGRAMENVPARAMETER4FVARB)(getProcAddr("glProgramEnvParameter4fvARB")) - gpProgramEnvParameterI4iNV = (C.GPPROGRAMENVPARAMETERI4INV)(getProcAddr("glProgramEnvParameterI4iNV")) - gpProgramEnvParameterI4ivNV = (C.GPPROGRAMENVPARAMETERI4IVNV)(getProcAddr("glProgramEnvParameterI4ivNV")) - gpProgramEnvParameterI4uiNV = (C.GPPROGRAMENVPARAMETERI4UINV)(getProcAddr("glProgramEnvParameterI4uiNV")) - gpProgramEnvParameterI4uivNV = (C.GPPROGRAMENVPARAMETERI4UIVNV)(getProcAddr("glProgramEnvParameterI4uivNV")) - gpProgramEnvParameters4fvEXT = (C.GPPROGRAMENVPARAMETERS4FVEXT)(getProcAddr("glProgramEnvParameters4fvEXT")) - gpProgramEnvParametersI4ivNV = (C.GPPROGRAMENVPARAMETERSI4IVNV)(getProcAddr("glProgramEnvParametersI4ivNV")) - gpProgramEnvParametersI4uivNV = (C.GPPROGRAMENVPARAMETERSI4UIVNV)(getProcAddr("glProgramEnvParametersI4uivNV")) - gpProgramLocalParameter4dARB = (C.GPPROGRAMLOCALPARAMETER4DARB)(getProcAddr("glProgramLocalParameter4dARB")) - gpProgramLocalParameter4dvARB = (C.GPPROGRAMLOCALPARAMETER4DVARB)(getProcAddr("glProgramLocalParameter4dvARB")) - gpProgramLocalParameter4fARB = (C.GPPROGRAMLOCALPARAMETER4FARB)(getProcAddr("glProgramLocalParameter4fARB")) - gpProgramLocalParameter4fvARB = (C.GPPROGRAMLOCALPARAMETER4FVARB)(getProcAddr("glProgramLocalParameter4fvARB")) - gpProgramLocalParameterI4iNV = (C.GPPROGRAMLOCALPARAMETERI4INV)(getProcAddr("glProgramLocalParameterI4iNV")) - gpProgramLocalParameterI4ivNV = (C.GPPROGRAMLOCALPARAMETERI4IVNV)(getProcAddr("glProgramLocalParameterI4ivNV")) - gpProgramLocalParameterI4uiNV = (C.GPPROGRAMLOCALPARAMETERI4UINV)(getProcAddr("glProgramLocalParameterI4uiNV")) - gpProgramLocalParameterI4uivNV = (C.GPPROGRAMLOCALPARAMETERI4UIVNV)(getProcAddr("glProgramLocalParameterI4uivNV")) - gpProgramLocalParameters4fvEXT = (C.GPPROGRAMLOCALPARAMETERS4FVEXT)(getProcAddr("glProgramLocalParameters4fvEXT")) - gpProgramLocalParametersI4ivNV = (C.GPPROGRAMLOCALPARAMETERSI4IVNV)(getProcAddr("glProgramLocalParametersI4ivNV")) - gpProgramLocalParametersI4uivNV = (C.GPPROGRAMLOCALPARAMETERSI4UIVNV)(getProcAddr("glProgramLocalParametersI4uivNV")) - gpProgramNamedParameter4dNV = (C.GPPROGRAMNAMEDPARAMETER4DNV)(getProcAddr("glProgramNamedParameter4dNV")) - gpProgramNamedParameter4dvNV = (C.GPPROGRAMNAMEDPARAMETER4DVNV)(getProcAddr("glProgramNamedParameter4dvNV")) - gpProgramNamedParameter4fNV = (C.GPPROGRAMNAMEDPARAMETER4FNV)(getProcAddr("glProgramNamedParameter4fNV")) - gpProgramNamedParameter4fvNV = (C.GPPROGRAMNAMEDPARAMETER4FVNV)(getProcAddr("glProgramNamedParameter4fvNV")) - gpProgramParameter4dNV = (C.GPPROGRAMPARAMETER4DNV)(getProcAddr("glProgramParameter4dNV")) - gpProgramParameter4dvNV = (C.GPPROGRAMPARAMETER4DVNV)(getProcAddr("glProgramParameter4dvNV")) - gpProgramParameter4fNV = (C.GPPROGRAMPARAMETER4FNV)(getProcAddr("glProgramParameter4fNV")) - gpProgramParameter4fvNV = (C.GPPROGRAMPARAMETER4FVNV)(getProcAddr("glProgramParameter4fvNV")) - gpProgramParameteri = (C.GPPROGRAMPARAMETERI)(getProcAddr("glProgramParameteri")) - gpProgramParameteriARB = (C.GPPROGRAMPARAMETERIARB)(getProcAddr("glProgramParameteriARB")) - gpProgramParameteriEXT = (C.GPPROGRAMPARAMETERIEXT)(getProcAddr("glProgramParameteriEXT")) - gpProgramParameters4dvNV = (C.GPPROGRAMPARAMETERS4DVNV)(getProcAddr("glProgramParameters4dvNV")) - gpProgramParameters4fvNV = (C.GPPROGRAMPARAMETERS4FVNV)(getProcAddr("glProgramParameters4fvNV")) - gpProgramPathFragmentInputGenNV = (C.GPPROGRAMPATHFRAGMENTINPUTGENNV)(getProcAddr("glProgramPathFragmentInputGenNV")) - gpProgramStringARB = (C.GPPROGRAMSTRINGARB)(getProcAddr("glProgramStringARB")) - gpProgramSubroutineParametersuivNV = (C.GPPROGRAMSUBROUTINEPARAMETERSUIVNV)(getProcAddr("glProgramSubroutineParametersuivNV")) - gpProgramUniform1d = (C.GPPROGRAMUNIFORM1D)(getProcAddr("glProgramUniform1d")) - gpProgramUniform1dEXT = (C.GPPROGRAMUNIFORM1DEXT)(getProcAddr("glProgramUniform1dEXT")) - gpProgramUniform1dv = (C.GPPROGRAMUNIFORM1DV)(getProcAddr("glProgramUniform1dv")) - gpProgramUniform1dvEXT = (C.GPPROGRAMUNIFORM1DVEXT)(getProcAddr("glProgramUniform1dvEXT")) - gpProgramUniform1f = (C.GPPROGRAMUNIFORM1F)(getProcAddr("glProgramUniform1f")) - gpProgramUniform1fEXT = (C.GPPROGRAMUNIFORM1FEXT)(getProcAddr("glProgramUniform1fEXT")) - gpProgramUniform1fv = (C.GPPROGRAMUNIFORM1FV)(getProcAddr("glProgramUniform1fv")) - gpProgramUniform1fvEXT = (C.GPPROGRAMUNIFORM1FVEXT)(getProcAddr("glProgramUniform1fvEXT")) - gpProgramUniform1i = (C.GPPROGRAMUNIFORM1I)(getProcAddr("glProgramUniform1i")) - gpProgramUniform1i64NV = (C.GPPROGRAMUNIFORM1I64NV)(getProcAddr("glProgramUniform1i64NV")) - gpProgramUniform1i64vNV = (C.GPPROGRAMUNIFORM1I64VNV)(getProcAddr("glProgramUniform1i64vNV")) - gpProgramUniform1iEXT = (C.GPPROGRAMUNIFORM1IEXT)(getProcAddr("glProgramUniform1iEXT")) - gpProgramUniform1iv = (C.GPPROGRAMUNIFORM1IV)(getProcAddr("glProgramUniform1iv")) - gpProgramUniform1ivEXT = (C.GPPROGRAMUNIFORM1IVEXT)(getProcAddr("glProgramUniform1ivEXT")) - gpProgramUniform1ui = (C.GPPROGRAMUNIFORM1UI)(getProcAddr("glProgramUniform1ui")) - gpProgramUniform1ui64NV = (C.GPPROGRAMUNIFORM1UI64NV)(getProcAddr("glProgramUniform1ui64NV")) - gpProgramUniform1ui64vNV = (C.GPPROGRAMUNIFORM1UI64VNV)(getProcAddr("glProgramUniform1ui64vNV")) - gpProgramUniform1uiEXT = (C.GPPROGRAMUNIFORM1UIEXT)(getProcAddr("glProgramUniform1uiEXT")) - gpProgramUniform1uiv = (C.GPPROGRAMUNIFORM1UIV)(getProcAddr("glProgramUniform1uiv")) - gpProgramUniform1uivEXT = (C.GPPROGRAMUNIFORM1UIVEXT)(getProcAddr("glProgramUniform1uivEXT")) - gpProgramUniform2d = (C.GPPROGRAMUNIFORM2D)(getProcAddr("glProgramUniform2d")) - gpProgramUniform2dEXT = (C.GPPROGRAMUNIFORM2DEXT)(getProcAddr("glProgramUniform2dEXT")) - gpProgramUniform2dv = (C.GPPROGRAMUNIFORM2DV)(getProcAddr("glProgramUniform2dv")) - gpProgramUniform2dvEXT = (C.GPPROGRAMUNIFORM2DVEXT)(getProcAddr("glProgramUniform2dvEXT")) - gpProgramUniform2f = (C.GPPROGRAMUNIFORM2F)(getProcAddr("glProgramUniform2f")) - gpProgramUniform2fEXT = (C.GPPROGRAMUNIFORM2FEXT)(getProcAddr("glProgramUniform2fEXT")) - gpProgramUniform2fv = (C.GPPROGRAMUNIFORM2FV)(getProcAddr("glProgramUniform2fv")) - gpProgramUniform2fvEXT = (C.GPPROGRAMUNIFORM2FVEXT)(getProcAddr("glProgramUniform2fvEXT")) - gpProgramUniform2i = (C.GPPROGRAMUNIFORM2I)(getProcAddr("glProgramUniform2i")) - gpProgramUniform2i64NV = (C.GPPROGRAMUNIFORM2I64NV)(getProcAddr("glProgramUniform2i64NV")) - gpProgramUniform2i64vNV = (C.GPPROGRAMUNIFORM2I64VNV)(getProcAddr("glProgramUniform2i64vNV")) - gpProgramUniform2iEXT = (C.GPPROGRAMUNIFORM2IEXT)(getProcAddr("glProgramUniform2iEXT")) - gpProgramUniform2iv = (C.GPPROGRAMUNIFORM2IV)(getProcAddr("glProgramUniform2iv")) - gpProgramUniform2ivEXT = (C.GPPROGRAMUNIFORM2IVEXT)(getProcAddr("glProgramUniform2ivEXT")) - gpProgramUniform2ui = (C.GPPROGRAMUNIFORM2UI)(getProcAddr("glProgramUniform2ui")) - gpProgramUniform2ui64NV = (C.GPPROGRAMUNIFORM2UI64NV)(getProcAddr("glProgramUniform2ui64NV")) - gpProgramUniform2ui64vNV = (C.GPPROGRAMUNIFORM2UI64VNV)(getProcAddr("glProgramUniform2ui64vNV")) - gpProgramUniform2uiEXT = (C.GPPROGRAMUNIFORM2UIEXT)(getProcAddr("glProgramUniform2uiEXT")) - gpProgramUniform2uiv = (C.GPPROGRAMUNIFORM2UIV)(getProcAddr("glProgramUniform2uiv")) - gpProgramUniform2uivEXT = (C.GPPROGRAMUNIFORM2UIVEXT)(getProcAddr("glProgramUniform2uivEXT")) - gpProgramUniform3d = (C.GPPROGRAMUNIFORM3D)(getProcAddr("glProgramUniform3d")) - gpProgramUniform3dEXT = (C.GPPROGRAMUNIFORM3DEXT)(getProcAddr("glProgramUniform3dEXT")) - gpProgramUniform3dv = (C.GPPROGRAMUNIFORM3DV)(getProcAddr("glProgramUniform3dv")) - gpProgramUniform3dvEXT = (C.GPPROGRAMUNIFORM3DVEXT)(getProcAddr("glProgramUniform3dvEXT")) - gpProgramUniform3f = (C.GPPROGRAMUNIFORM3F)(getProcAddr("glProgramUniform3f")) - gpProgramUniform3fEXT = (C.GPPROGRAMUNIFORM3FEXT)(getProcAddr("glProgramUniform3fEXT")) - gpProgramUniform3fv = (C.GPPROGRAMUNIFORM3FV)(getProcAddr("glProgramUniform3fv")) - gpProgramUniform3fvEXT = (C.GPPROGRAMUNIFORM3FVEXT)(getProcAddr("glProgramUniform3fvEXT")) - gpProgramUniform3i = (C.GPPROGRAMUNIFORM3I)(getProcAddr("glProgramUniform3i")) - gpProgramUniform3i64NV = (C.GPPROGRAMUNIFORM3I64NV)(getProcAddr("glProgramUniform3i64NV")) - gpProgramUniform3i64vNV = (C.GPPROGRAMUNIFORM3I64VNV)(getProcAddr("glProgramUniform3i64vNV")) - gpProgramUniform3iEXT = (C.GPPROGRAMUNIFORM3IEXT)(getProcAddr("glProgramUniform3iEXT")) - gpProgramUniform3iv = (C.GPPROGRAMUNIFORM3IV)(getProcAddr("glProgramUniform3iv")) - gpProgramUniform3ivEXT = (C.GPPROGRAMUNIFORM3IVEXT)(getProcAddr("glProgramUniform3ivEXT")) - gpProgramUniform3ui = (C.GPPROGRAMUNIFORM3UI)(getProcAddr("glProgramUniform3ui")) - gpProgramUniform3ui64NV = (C.GPPROGRAMUNIFORM3UI64NV)(getProcAddr("glProgramUniform3ui64NV")) - gpProgramUniform3ui64vNV = (C.GPPROGRAMUNIFORM3UI64VNV)(getProcAddr("glProgramUniform3ui64vNV")) - gpProgramUniform3uiEXT = (C.GPPROGRAMUNIFORM3UIEXT)(getProcAddr("glProgramUniform3uiEXT")) - gpProgramUniform3uiv = (C.GPPROGRAMUNIFORM3UIV)(getProcAddr("glProgramUniform3uiv")) - gpProgramUniform3uivEXT = (C.GPPROGRAMUNIFORM3UIVEXT)(getProcAddr("glProgramUniform3uivEXT")) - gpProgramUniform4d = (C.GPPROGRAMUNIFORM4D)(getProcAddr("glProgramUniform4d")) - gpProgramUniform4dEXT = (C.GPPROGRAMUNIFORM4DEXT)(getProcAddr("glProgramUniform4dEXT")) - gpProgramUniform4dv = (C.GPPROGRAMUNIFORM4DV)(getProcAddr("glProgramUniform4dv")) - gpProgramUniform4dvEXT = (C.GPPROGRAMUNIFORM4DVEXT)(getProcAddr("glProgramUniform4dvEXT")) - gpProgramUniform4f = (C.GPPROGRAMUNIFORM4F)(getProcAddr("glProgramUniform4f")) - gpProgramUniform4fEXT = (C.GPPROGRAMUNIFORM4FEXT)(getProcAddr("glProgramUniform4fEXT")) - gpProgramUniform4fv = (C.GPPROGRAMUNIFORM4FV)(getProcAddr("glProgramUniform4fv")) - gpProgramUniform4fvEXT = (C.GPPROGRAMUNIFORM4FVEXT)(getProcAddr("glProgramUniform4fvEXT")) - gpProgramUniform4i = (C.GPPROGRAMUNIFORM4I)(getProcAddr("glProgramUniform4i")) - gpProgramUniform4i64NV = (C.GPPROGRAMUNIFORM4I64NV)(getProcAddr("glProgramUniform4i64NV")) - gpProgramUniform4i64vNV = (C.GPPROGRAMUNIFORM4I64VNV)(getProcAddr("glProgramUniform4i64vNV")) - gpProgramUniform4iEXT = (C.GPPROGRAMUNIFORM4IEXT)(getProcAddr("glProgramUniform4iEXT")) - gpProgramUniform4iv = (C.GPPROGRAMUNIFORM4IV)(getProcAddr("glProgramUniform4iv")) - gpProgramUniform4ivEXT = (C.GPPROGRAMUNIFORM4IVEXT)(getProcAddr("glProgramUniform4ivEXT")) - gpProgramUniform4ui = (C.GPPROGRAMUNIFORM4UI)(getProcAddr("glProgramUniform4ui")) - gpProgramUniform4ui64NV = (C.GPPROGRAMUNIFORM4UI64NV)(getProcAddr("glProgramUniform4ui64NV")) - gpProgramUniform4ui64vNV = (C.GPPROGRAMUNIFORM4UI64VNV)(getProcAddr("glProgramUniform4ui64vNV")) - gpProgramUniform4uiEXT = (C.GPPROGRAMUNIFORM4UIEXT)(getProcAddr("glProgramUniform4uiEXT")) - gpProgramUniform4uiv = (C.GPPROGRAMUNIFORM4UIV)(getProcAddr("glProgramUniform4uiv")) - gpProgramUniform4uivEXT = (C.GPPROGRAMUNIFORM4UIVEXT)(getProcAddr("glProgramUniform4uivEXT")) - gpProgramUniformHandleui64ARB = (C.GPPROGRAMUNIFORMHANDLEUI64ARB)(getProcAddr("glProgramUniformHandleui64ARB")) - gpProgramUniformHandleui64NV = (C.GPPROGRAMUNIFORMHANDLEUI64NV)(getProcAddr("glProgramUniformHandleui64NV")) - gpProgramUniformHandleui64vARB = (C.GPPROGRAMUNIFORMHANDLEUI64VARB)(getProcAddr("glProgramUniformHandleui64vARB")) - gpProgramUniformHandleui64vNV = (C.GPPROGRAMUNIFORMHANDLEUI64VNV)(getProcAddr("glProgramUniformHandleui64vNV")) - gpProgramUniformMatrix2dv = (C.GPPROGRAMUNIFORMMATRIX2DV)(getProcAddr("glProgramUniformMatrix2dv")) - gpProgramUniformMatrix2dvEXT = (C.GPPROGRAMUNIFORMMATRIX2DVEXT)(getProcAddr("glProgramUniformMatrix2dvEXT")) - gpProgramUniformMatrix2fv = (C.GPPROGRAMUNIFORMMATRIX2FV)(getProcAddr("glProgramUniformMatrix2fv")) - gpProgramUniformMatrix2fvEXT = (C.GPPROGRAMUNIFORMMATRIX2FVEXT)(getProcAddr("glProgramUniformMatrix2fvEXT")) - gpProgramUniformMatrix2x3dv = (C.GPPROGRAMUNIFORMMATRIX2X3DV)(getProcAddr("glProgramUniformMatrix2x3dv")) - gpProgramUniformMatrix2x3dvEXT = (C.GPPROGRAMUNIFORMMATRIX2X3DVEXT)(getProcAddr("glProgramUniformMatrix2x3dvEXT")) - gpProgramUniformMatrix2x3fv = (C.GPPROGRAMUNIFORMMATRIX2X3FV)(getProcAddr("glProgramUniformMatrix2x3fv")) - gpProgramUniformMatrix2x3fvEXT = (C.GPPROGRAMUNIFORMMATRIX2X3FVEXT)(getProcAddr("glProgramUniformMatrix2x3fvEXT")) - gpProgramUniformMatrix2x4dv = (C.GPPROGRAMUNIFORMMATRIX2X4DV)(getProcAddr("glProgramUniformMatrix2x4dv")) - gpProgramUniformMatrix2x4dvEXT = (C.GPPROGRAMUNIFORMMATRIX2X4DVEXT)(getProcAddr("glProgramUniformMatrix2x4dvEXT")) - gpProgramUniformMatrix2x4fv = (C.GPPROGRAMUNIFORMMATRIX2X4FV)(getProcAddr("glProgramUniformMatrix2x4fv")) - gpProgramUniformMatrix2x4fvEXT = (C.GPPROGRAMUNIFORMMATRIX2X4FVEXT)(getProcAddr("glProgramUniformMatrix2x4fvEXT")) - gpProgramUniformMatrix3dv = (C.GPPROGRAMUNIFORMMATRIX3DV)(getProcAddr("glProgramUniformMatrix3dv")) - gpProgramUniformMatrix3dvEXT = (C.GPPROGRAMUNIFORMMATRIX3DVEXT)(getProcAddr("glProgramUniformMatrix3dvEXT")) - gpProgramUniformMatrix3fv = (C.GPPROGRAMUNIFORMMATRIX3FV)(getProcAddr("glProgramUniformMatrix3fv")) - gpProgramUniformMatrix3fvEXT = (C.GPPROGRAMUNIFORMMATRIX3FVEXT)(getProcAddr("glProgramUniformMatrix3fvEXT")) - gpProgramUniformMatrix3x2dv = (C.GPPROGRAMUNIFORMMATRIX3X2DV)(getProcAddr("glProgramUniformMatrix3x2dv")) - gpProgramUniformMatrix3x2dvEXT = (C.GPPROGRAMUNIFORMMATRIX3X2DVEXT)(getProcAddr("glProgramUniformMatrix3x2dvEXT")) - gpProgramUniformMatrix3x2fv = (C.GPPROGRAMUNIFORMMATRIX3X2FV)(getProcAddr("glProgramUniformMatrix3x2fv")) - gpProgramUniformMatrix3x2fvEXT = (C.GPPROGRAMUNIFORMMATRIX3X2FVEXT)(getProcAddr("glProgramUniformMatrix3x2fvEXT")) - gpProgramUniformMatrix3x4dv = (C.GPPROGRAMUNIFORMMATRIX3X4DV)(getProcAddr("glProgramUniformMatrix3x4dv")) - gpProgramUniformMatrix3x4dvEXT = (C.GPPROGRAMUNIFORMMATRIX3X4DVEXT)(getProcAddr("glProgramUniformMatrix3x4dvEXT")) - gpProgramUniformMatrix3x4fv = (C.GPPROGRAMUNIFORMMATRIX3X4FV)(getProcAddr("glProgramUniformMatrix3x4fv")) - gpProgramUniformMatrix3x4fvEXT = (C.GPPROGRAMUNIFORMMATRIX3X4FVEXT)(getProcAddr("glProgramUniformMatrix3x4fvEXT")) - gpProgramUniformMatrix4dv = (C.GPPROGRAMUNIFORMMATRIX4DV)(getProcAddr("glProgramUniformMatrix4dv")) - gpProgramUniformMatrix4dvEXT = (C.GPPROGRAMUNIFORMMATRIX4DVEXT)(getProcAddr("glProgramUniformMatrix4dvEXT")) - gpProgramUniformMatrix4fv = (C.GPPROGRAMUNIFORMMATRIX4FV)(getProcAddr("glProgramUniformMatrix4fv")) - gpProgramUniformMatrix4fvEXT = (C.GPPROGRAMUNIFORMMATRIX4FVEXT)(getProcAddr("glProgramUniformMatrix4fvEXT")) - gpProgramUniformMatrix4x2dv = (C.GPPROGRAMUNIFORMMATRIX4X2DV)(getProcAddr("glProgramUniformMatrix4x2dv")) - gpProgramUniformMatrix4x2dvEXT = (C.GPPROGRAMUNIFORMMATRIX4X2DVEXT)(getProcAddr("glProgramUniformMatrix4x2dvEXT")) - gpProgramUniformMatrix4x2fv = (C.GPPROGRAMUNIFORMMATRIX4X2FV)(getProcAddr("glProgramUniformMatrix4x2fv")) - gpProgramUniformMatrix4x2fvEXT = (C.GPPROGRAMUNIFORMMATRIX4X2FVEXT)(getProcAddr("glProgramUniformMatrix4x2fvEXT")) - gpProgramUniformMatrix4x3dv = (C.GPPROGRAMUNIFORMMATRIX4X3DV)(getProcAddr("glProgramUniformMatrix4x3dv")) - gpProgramUniformMatrix4x3dvEXT = (C.GPPROGRAMUNIFORMMATRIX4X3DVEXT)(getProcAddr("glProgramUniformMatrix4x3dvEXT")) - gpProgramUniformMatrix4x3fv = (C.GPPROGRAMUNIFORMMATRIX4X3FV)(getProcAddr("glProgramUniformMatrix4x3fv")) - gpProgramUniformMatrix4x3fvEXT = (C.GPPROGRAMUNIFORMMATRIX4X3FVEXT)(getProcAddr("glProgramUniformMatrix4x3fvEXT")) - gpProgramUniformui64NV = (C.GPPROGRAMUNIFORMUI64NV)(getProcAddr("glProgramUniformui64NV")) - gpProgramUniformui64vNV = (C.GPPROGRAMUNIFORMUI64VNV)(getProcAddr("glProgramUniformui64vNV")) - gpProgramVertexLimitNV = (C.GPPROGRAMVERTEXLIMITNV)(getProcAddr("glProgramVertexLimitNV")) - gpProvokingVertex = (C.GPPROVOKINGVERTEX)(getProcAddr("glProvokingVertex")) - gpProvokingVertexEXT = (C.GPPROVOKINGVERTEXEXT)(getProcAddr("glProvokingVertexEXT")) - gpPushAttrib = (C.GPPUSHATTRIB)(getProcAddr("glPushAttrib")) - if gpPushAttrib == nil { - return errors.New("glPushAttrib") - } - gpPushClientAttrib = (C.GPPUSHCLIENTATTRIB)(getProcAddr("glPushClientAttrib")) - if gpPushClientAttrib == nil { - return errors.New("glPushClientAttrib") - } - gpPushClientAttribDefaultEXT = (C.GPPUSHCLIENTATTRIBDEFAULTEXT)(getProcAddr("glPushClientAttribDefaultEXT")) - gpPushDebugGroup = (C.GPPUSHDEBUGGROUP)(getProcAddr("glPushDebugGroup")) - gpPushDebugGroupKHR = (C.GPPUSHDEBUGGROUPKHR)(getProcAddr("glPushDebugGroupKHR")) - gpPushGroupMarkerEXT = (C.GPPUSHGROUPMARKEREXT)(getProcAddr("glPushGroupMarkerEXT")) - gpPushMatrix = (C.GPPUSHMATRIX)(getProcAddr("glPushMatrix")) - if gpPushMatrix == nil { - return errors.New("glPushMatrix") - } - gpPushName = (C.GPPUSHNAME)(getProcAddr("glPushName")) - if gpPushName == nil { - return errors.New("glPushName") - } - gpQueryCounter = (C.GPQUERYCOUNTER)(getProcAddr("glQueryCounter")) - gpQueryMatrixxOES = (C.GPQUERYMATRIXXOES)(getProcAddr("glQueryMatrixxOES")) - gpQueryObjectParameteruiAMD = (C.GPQUERYOBJECTPARAMETERUIAMD)(getProcAddr("glQueryObjectParameteruiAMD")) - gpRasterPos2d = (C.GPRASTERPOS2D)(getProcAddr("glRasterPos2d")) - if gpRasterPos2d == nil { - return errors.New("glRasterPos2d") - } - gpRasterPos2dv = (C.GPRASTERPOS2DV)(getProcAddr("glRasterPos2dv")) - if gpRasterPos2dv == nil { - return errors.New("glRasterPos2dv") - } - gpRasterPos2f = (C.GPRASTERPOS2F)(getProcAddr("glRasterPos2f")) - if gpRasterPos2f == nil { - return errors.New("glRasterPos2f") - } - gpRasterPos2fv = (C.GPRASTERPOS2FV)(getProcAddr("glRasterPos2fv")) - if gpRasterPos2fv == nil { - return errors.New("glRasterPos2fv") - } - gpRasterPos2i = (C.GPRASTERPOS2I)(getProcAddr("glRasterPos2i")) - if gpRasterPos2i == nil { - return errors.New("glRasterPos2i") - } - gpRasterPos2iv = (C.GPRASTERPOS2IV)(getProcAddr("glRasterPos2iv")) - if gpRasterPos2iv == nil { - return errors.New("glRasterPos2iv") - } - gpRasterPos2s = (C.GPRASTERPOS2S)(getProcAddr("glRasterPos2s")) - if gpRasterPos2s == nil { - return errors.New("glRasterPos2s") - } - gpRasterPos2sv = (C.GPRASTERPOS2SV)(getProcAddr("glRasterPos2sv")) - if gpRasterPos2sv == nil { - return errors.New("glRasterPos2sv") - } - gpRasterPos2xOES = (C.GPRASTERPOS2XOES)(getProcAddr("glRasterPos2xOES")) - gpRasterPos2xvOES = (C.GPRASTERPOS2XVOES)(getProcAddr("glRasterPos2xvOES")) - gpRasterPos3d = (C.GPRASTERPOS3D)(getProcAddr("glRasterPos3d")) - if gpRasterPos3d == nil { - return errors.New("glRasterPos3d") - } - gpRasterPos3dv = (C.GPRASTERPOS3DV)(getProcAddr("glRasterPos3dv")) - if gpRasterPos3dv == nil { - return errors.New("glRasterPos3dv") - } - gpRasterPos3f = (C.GPRASTERPOS3F)(getProcAddr("glRasterPos3f")) - if gpRasterPos3f == nil { - return errors.New("glRasterPos3f") - } - gpRasterPos3fv = (C.GPRASTERPOS3FV)(getProcAddr("glRasterPos3fv")) - if gpRasterPos3fv == nil { - return errors.New("glRasterPos3fv") - } - gpRasterPos3i = (C.GPRASTERPOS3I)(getProcAddr("glRasterPos3i")) - if gpRasterPos3i == nil { - return errors.New("glRasterPos3i") - } - gpRasterPos3iv = (C.GPRASTERPOS3IV)(getProcAddr("glRasterPos3iv")) - if gpRasterPos3iv == nil { - return errors.New("glRasterPos3iv") - } - gpRasterPos3s = (C.GPRASTERPOS3S)(getProcAddr("glRasterPos3s")) - if gpRasterPos3s == nil { - return errors.New("glRasterPos3s") - } - gpRasterPos3sv = (C.GPRASTERPOS3SV)(getProcAddr("glRasterPos3sv")) - if gpRasterPos3sv == nil { - return errors.New("glRasterPos3sv") - } - gpRasterPos3xOES = (C.GPRASTERPOS3XOES)(getProcAddr("glRasterPos3xOES")) - gpRasterPos3xvOES = (C.GPRASTERPOS3XVOES)(getProcAddr("glRasterPos3xvOES")) - gpRasterPos4d = (C.GPRASTERPOS4D)(getProcAddr("glRasterPos4d")) - if gpRasterPos4d == nil { - return errors.New("glRasterPos4d") - } - gpRasterPos4dv = (C.GPRASTERPOS4DV)(getProcAddr("glRasterPos4dv")) - if gpRasterPos4dv == nil { - return errors.New("glRasterPos4dv") - } - gpRasterPos4f = (C.GPRASTERPOS4F)(getProcAddr("glRasterPos4f")) - if gpRasterPos4f == nil { - return errors.New("glRasterPos4f") - } - gpRasterPos4fv = (C.GPRASTERPOS4FV)(getProcAddr("glRasterPos4fv")) - if gpRasterPos4fv == nil { - return errors.New("glRasterPos4fv") - } - gpRasterPos4i = (C.GPRASTERPOS4I)(getProcAddr("glRasterPos4i")) - if gpRasterPos4i == nil { - return errors.New("glRasterPos4i") - } - gpRasterPos4iv = (C.GPRASTERPOS4IV)(getProcAddr("glRasterPos4iv")) - if gpRasterPos4iv == nil { - return errors.New("glRasterPos4iv") - } - gpRasterPos4s = (C.GPRASTERPOS4S)(getProcAddr("glRasterPos4s")) - if gpRasterPos4s == nil { - return errors.New("glRasterPos4s") - } - gpRasterPos4sv = (C.GPRASTERPOS4SV)(getProcAddr("glRasterPos4sv")) - if gpRasterPos4sv == nil { - return errors.New("glRasterPos4sv") - } - gpRasterPos4xOES = (C.GPRASTERPOS4XOES)(getProcAddr("glRasterPos4xOES")) - gpRasterPos4xvOES = (C.GPRASTERPOS4XVOES)(getProcAddr("glRasterPos4xvOES")) - gpReadBuffer = (C.GPREADBUFFER)(getProcAddr("glReadBuffer")) - if gpReadBuffer == nil { - return errors.New("glReadBuffer") - } - gpReadInstrumentsSGIX = (C.GPREADINSTRUMENTSSGIX)(getProcAddr("glReadInstrumentsSGIX")) - gpReadPixels = (C.GPREADPIXELS)(getProcAddr("glReadPixels")) - if gpReadPixels == nil { - return errors.New("glReadPixels") - } - gpReadnPixels = (C.GPREADNPIXELS)(getProcAddr("glReadnPixels")) - gpReadnPixelsARB = (C.GPREADNPIXELSARB)(getProcAddr("glReadnPixelsARB")) - gpReadnPixelsKHR = (C.GPREADNPIXELSKHR)(getProcAddr("glReadnPixelsKHR")) - gpRectd = (C.GPRECTD)(getProcAddr("glRectd")) - if gpRectd == nil { - return errors.New("glRectd") - } - gpRectdv = (C.GPRECTDV)(getProcAddr("glRectdv")) - if gpRectdv == nil { - return errors.New("glRectdv") - } - gpRectf = (C.GPRECTF)(getProcAddr("glRectf")) - if gpRectf == nil { - return errors.New("glRectf") - } - gpRectfv = (C.GPRECTFV)(getProcAddr("glRectfv")) - if gpRectfv == nil { - return errors.New("glRectfv") - } - gpRecti = (C.GPRECTI)(getProcAddr("glRecti")) - if gpRecti == nil { - return errors.New("glRecti") - } - gpRectiv = (C.GPRECTIV)(getProcAddr("glRectiv")) - if gpRectiv == nil { - return errors.New("glRectiv") - } - gpRects = (C.GPRECTS)(getProcAddr("glRects")) - if gpRects == nil { - return errors.New("glRects") - } - gpRectsv = (C.GPRECTSV)(getProcAddr("glRectsv")) - if gpRectsv == nil { - return errors.New("glRectsv") - } - gpRectxOES = (C.GPRECTXOES)(getProcAddr("glRectxOES")) - gpRectxvOES = (C.GPRECTXVOES)(getProcAddr("glRectxvOES")) - gpReferencePlaneSGIX = (C.GPREFERENCEPLANESGIX)(getProcAddr("glReferencePlaneSGIX")) - gpReleaseShaderCompiler = (C.GPRELEASESHADERCOMPILER)(getProcAddr("glReleaseShaderCompiler")) - gpRenderMode = (C.GPRENDERMODE)(getProcAddr("glRenderMode")) - if gpRenderMode == nil { - return errors.New("glRenderMode") - } - gpRenderbufferStorage = (C.GPRENDERBUFFERSTORAGE)(getProcAddr("glRenderbufferStorage")) - gpRenderbufferStorageEXT = (C.GPRENDERBUFFERSTORAGEEXT)(getProcAddr("glRenderbufferStorageEXT")) - gpRenderbufferStorageMultisample = (C.GPRENDERBUFFERSTORAGEMULTISAMPLE)(getProcAddr("glRenderbufferStorageMultisample")) - gpRenderbufferStorageMultisampleCoverageNV = (C.GPRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENV)(getProcAddr("glRenderbufferStorageMultisampleCoverageNV")) - gpRenderbufferStorageMultisampleEXT = (C.GPRENDERBUFFERSTORAGEMULTISAMPLEEXT)(getProcAddr("glRenderbufferStorageMultisampleEXT")) - gpReplacementCodePointerSUN = (C.GPREPLACEMENTCODEPOINTERSUN)(getProcAddr("glReplacementCodePointerSUN")) - gpReplacementCodeubSUN = (C.GPREPLACEMENTCODEUBSUN)(getProcAddr("glReplacementCodeubSUN")) - gpReplacementCodeubvSUN = (C.GPREPLACEMENTCODEUBVSUN)(getProcAddr("glReplacementCodeubvSUN")) - gpReplacementCodeuiColor3fVertex3fSUN = (C.GPREPLACEMENTCODEUICOLOR3FVERTEX3FSUN)(getProcAddr("glReplacementCodeuiColor3fVertex3fSUN")) - gpReplacementCodeuiColor3fVertex3fvSUN = (C.GPREPLACEMENTCODEUICOLOR3FVERTEX3FVSUN)(getProcAddr("glReplacementCodeuiColor3fVertex3fvSUN")) - gpReplacementCodeuiColor4fNormal3fVertex3fSUN = (C.GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUN)(getProcAddr("glReplacementCodeuiColor4fNormal3fVertex3fSUN")) - gpReplacementCodeuiColor4fNormal3fVertex3fvSUN = (C.GPREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUN)(getProcAddr("glReplacementCodeuiColor4fNormal3fVertex3fvSUN")) - gpReplacementCodeuiColor4ubVertex3fSUN = (C.GPREPLACEMENTCODEUICOLOR4UBVERTEX3FSUN)(getProcAddr("glReplacementCodeuiColor4ubVertex3fSUN")) - gpReplacementCodeuiColor4ubVertex3fvSUN = (C.GPREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUN)(getProcAddr("glReplacementCodeuiColor4ubVertex3fvSUN")) - gpReplacementCodeuiNormal3fVertex3fSUN = (C.GPREPLACEMENTCODEUINORMAL3FVERTEX3FSUN)(getProcAddr("glReplacementCodeuiNormal3fVertex3fSUN")) - gpReplacementCodeuiNormal3fVertex3fvSUN = (C.GPREPLACEMENTCODEUINORMAL3FVERTEX3FVSUN)(getProcAddr("glReplacementCodeuiNormal3fVertex3fvSUN")) - gpReplacementCodeuiSUN = (C.GPREPLACEMENTCODEUISUN)(getProcAddr("glReplacementCodeuiSUN")) - gpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN)(getProcAddr("glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN")) - gpReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN)(getProcAddr("glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN")) - gpReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUN)(getProcAddr("glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN")) - gpReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUN)(getProcAddr("glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN")) - gpReplacementCodeuiTexCoord2fVertex3fSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUN)(getProcAddr("glReplacementCodeuiTexCoord2fVertex3fSUN")) - gpReplacementCodeuiTexCoord2fVertex3fvSUN = (C.GPREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUN)(getProcAddr("glReplacementCodeuiTexCoord2fVertex3fvSUN")) - gpReplacementCodeuiVertex3fSUN = (C.GPREPLACEMENTCODEUIVERTEX3FSUN)(getProcAddr("glReplacementCodeuiVertex3fSUN")) - gpReplacementCodeuiVertex3fvSUN = (C.GPREPLACEMENTCODEUIVERTEX3FVSUN)(getProcAddr("glReplacementCodeuiVertex3fvSUN")) - gpReplacementCodeuivSUN = (C.GPREPLACEMENTCODEUIVSUN)(getProcAddr("glReplacementCodeuivSUN")) - gpReplacementCodeusSUN = (C.GPREPLACEMENTCODEUSSUN)(getProcAddr("glReplacementCodeusSUN")) - gpReplacementCodeusvSUN = (C.GPREPLACEMENTCODEUSVSUN)(getProcAddr("glReplacementCodeusvSUN")) - gpRequestResidentProgramsNV = (C.GPREQUESTRESIDENTPROGRAMSNV)(getProcAddr("glRequestResidentProgramsNV")) - gpResetHistogramEXT = (C.GPRESETHISTOGRAMEXT)(getProcAddr("glResetHistogramEXT")) - gpResetMinmaxEXT = (C.GPRESETMINMAXEXT)(getProcAddr("glResetMinmaxEXT")) - gpResizeBuffersMESA = (C.GPRESIZEBUFFERSMESA)(getProcAddr("glResizeBuffersMESA")) - gpResumeTransformFeedback = (C.GPRESUMETRANSFORMFEEDBACK)(getProcAddr("glResumeTransformFeedback")) - gpResumeTransformFeedbackNV = (C.GPRESUMETRANSFORMFEEDBACKNV)(getProcAddr("glResumeTransformFeedbackNV")) - gpRotated = (C.GPROTATED)(getProcAddr("glRotated")) - if gpRotated == nil { - return errors.New("glRotated") - } - gpRotatef = (C.GPROTATEF)(getProcAddr("glRotatef")) - if gpRotatef == nil { - return errors.New("glRotatef") - } - gpRotatexOES = (C.GPROTATEXOES)(getProcAddr("glRotatexOES")) - gpSampleCoverage = (C.GPSAMPLECOVERAGE)(getProcAddr("glSampleCoverage")) - if gpSampleCoverage == nil { - return errors.New("glSampleCoverage") - } - gpSampleCoverageARB = (C.GPSAMPLECOVERAGEARB)(getProcAddr("glSampleCoverageARB")) - gpSampleCoverageOES = (C.GPSAMPLECOVERAGEOES)(getProcAddr("glSampleCoverageOES")) - gpSampleCoveragexOES = (C.GPSAMPLECOVERAGEXOES)(getProcAddr("glSampleCoveragexOES")) - gpSampleMapATI = (C.GPSAMPLEMAPATI)(getProcAddr("glSampleMapATI")) - gpSampleMaskEXT = (C.GPSAMPLEMASKEXT)(getProcAddr("glSampleMaskEXT")) - gpSampleMaskIndexedNV = (C.GPSAMPLEMASKINDEXEDNV)(getProcAddr("glSampleMaskIndexedNV")) - gpSampleMaskSGIS = (C.GPSAMPLEMASKSGIS)(getProcAddr("glSampleMaskSGIS")) - gpSampleMaski = (C.GPSAMPLEMASKI)(getProcAddr("glSampleMaski")) - gpSamplePatternEXT = (C.GPSAMPLEPATTERNEXT)(getProcAddr("glSamplePatternEXT")) - gpSamplePatternSGIS = (C.GPSAMPLEPATTERNSGIS)(getProcAddr("glSamplePatternSGIS")) - gpSamplerParameterIiv = (C.GPSAMPLERPARAMETERIIV)(getProcAddr("glSamplerParameterIiv")) - gpSamplerParameterIuiv = (C.GPSAMPLERPARAMETERIUIV)(getProcAddr("glSamplerParameterIuiv")) - gpSamplerParameterf = (C.GPSAMPLERPARAMETERF)(getProcAddr("glSamplerParameterf")) - gpSamplerParameterfv = (C.GPSAMPLERPARAMETERFV)(getProcAddr("glSamplerParameterfv")) - gpSamplerParameteri = (C.GPSAMPLERPARAMETERI)(getProcAddr("glSamplerParameteri")) - gpSamplerParameteriv = (C.GPSAMPLERPARAMETERIV)(getProcAddr("glSamplerParameteriv")) - gpScaled = (C.GPSCALED)(getProcAddr("glScaled")) - if gpScaled == nil { - return errors.New("glScaled") - } - gpScalef = (C.GPSCALEF)(getProcAddr("glScalef")) - if gpScalef == nil { - return errors.New("glScalef") - } - gpScalexOES = (C.GPSCALEXOES)(getProcAddr("glScalexOES")) - gpScissor = (C.GPSCISSOR)(getProcAddr("glScissor")) - if gpScissor == nil { - return errors.New("glScissor") - } - gpScissorArrayv = (C.GPSCISSORARRAYV)(getProcAddr("glScissorArrayv")) - gpScissorIndexed = (C.GPSCISSORINDEXED)(getProcAddr("glScissorIndexed")) - gpScissorIndexedv = (C.GPSCISSORINDEXEDV)(getProcAddr("glScissorIndexedv")) - gpSecondaryColor3b = (C.GPSECONDARYCOLOR3B)(getProcAddr("glSecondaryColor3b")) - if gpSecondaryColor3b == nil { - return errors.New("glSecondaryColor3b") - } - gpSecondaryColor3bEXT = (C.GPSECONDARYCOLOR3BEXT)(getProcAddr("glSecondaryColor3bEXT")) - gpSecondaryColor3bv = (C.GPSECONDARYCOLOR3BV)(getProcAddr("glSecondaryColor3bv")) - if gpSecondaryColor3bv == nil { - return errors.New("glSecondaryColor3bv") - } - gpSecondaryColor3bvEXT = (C.GPSECONDARYCOLOR3BVEXT)(getProcAddr("glSecondaryColor3bvEXT")) - gpSecondaryColor3d = (C.GPSECONDARYCOLOR3D)(getProcAddr("glSecondaryColor3d")) - if gpSecondaryColor3d == nil { - return errors.New("glSecondaryColor3d") - } - gpSecondaryColor3dEXT = (C.GPSECONDARYCOLOR3DEXT)(getProcAddr("glSecondaryColor3dEXT")) - gpSecondaryColor3dv = (C.GPSECONDARYCOLOR3DV)(getProcAddr("glSecondaryColor3dv")) - if gpSecondaryColor3dv == nil { - return errors.New("glSecondaryColor3dv") - } - gpSecondaryColor3dvEXT = (C.GPSECONDARYCOLOR3DVEXT)(getProcAddr("glSecondaryColor3dvEXT")) - gpSecondaryColor3f = (C.GPSECONDARYCOLOR3F)(getProcAddr("glSecondaryColor3f")) - if gpSecondaryColor3f == nil { - return errors.New("glSecondaryColor3f") - } - gpSecondaryColor3fEXT = (C.GPSECONDARYCOLOR3FEXT)(getProcAddr("glSecondaryColor3fEXT")) - gpSecondaryColor3fv = (C.GPSECONDARYCOLOR3FV)(getProcAddr("glSecondaryColor3fv")) - if gpSecondaryColor3fv == nil { - return errors.New("glSecondaryColor3fv") - } - gpSecondaryColor3fvEXT = (C.GPSECONDARYCOLOR3FVEXT)(getProcAddr("glSecondaryColor3fvEXT")) - gpSecondaryColor3hNV = (C.GPSECONDARYCOLOR3HNV)(getProcAddr("glSecondaryColor3hNV")) - gpSecondaryColor3hvNV = (C.GPSECONDARYCOLOR3HVNV)(getProcAddr("glSecondaryColor3hvNV")) - gpSecondaryColor3i = (C.GPSECONDARYCOLOR3I)(getProcAddr("glSecondaryColor3i")) - if gpSecondaryColor3i == nil { - return errors.New("glSecondaryColor3i") - } - gpSecondaryColor3iEXT = (C.GPSECONDARYCOLOR3IEXT)(getProcAddr("glSecondaryColor3iEXT")) - gpSecondaryColor3iv = (C.GPSECONDARYCOLOR3IV)(getProcAddr("glSecondaryColor3iv")) - if gpSecondaryColor3iv == nil { - return errors.New("glSecondaryColor3iv") - } - gpSecondaryColor3ivEXT = (C.GPSECONDARYCOLOR3IVEXT)(getProcAddr("glSecondaryColor3ivEXT")) - gpSecondaryColor3s = (C.GPSECONDARYCOLOR3S)(getProcAddr("glSecondaryColor3s")) - if gpSecondaryColor3s == nil { - return errors.New("glSecondaryColor3s") - } - gpSecondaryColor3sEXT = (C.GPSECONDARYCOLOR3SEXT)(getProcAddr("glSecondaryColor3sEXT")) - gpSecondaryColor3sv = (C.GPSECONDARYCOLOR3SV)(getProcAddr("glSecondaryColor3sv")) - if gpSecondaryColor3sv == nil { - return errors.New("glSecondaryColor3sv") - } - gpSecondaryColor3svEXT = (C.GPSECONDARYCOLOR3SVEXT)(getProcAddr("glSecondaryColor3svEXT")) - gpSecondaryColor3ub = (C.GPSECONDARYCOLOR3UB)(getProcAddr("glSecondaryColor3ub")) - if gpSecondaryColor3ub == nil { - return errors.New("glSecondaryColor3ub") - } - gpSecondaryColor3ubEXT = (C.GPSECONDARYCOLOR3UBEXT)(getProcAddr("glSecondaryColor3ubEXT")) - gpSecondaryColor3ubv = (C.GPSECONDARYCOLOR3UBV)(getProcAddr("glSecondaryColor3ubv")) - if gpSecondaryColor3ubv == nil { - return errors.New("glSecondaryColor3ubv") - } - gpSecondaryColor3ubvEXT = (C.GPSECONDARYCOLOR3UBVEXT)(getProcAddr("glSecondaryColor3ubvEXT")) - gpSecondaryColor3ui = (C.GPSECONDARYCOLOR3UI)(getProcAddr("glSecondaryColor3ui")) - if gpSecondaryColor3ui == nil { - return errors.New("glSecondaryColor3ui") - } - gpSecondaryColor3uiEXT = (C.GPSECONDARYCOLOR3UIEXT)(getProcAddr("glSecondaryColor3uiEXT")) - gpSecondaryColor3uiv = (C.GPSECONDARYCOLOR3UIV)(getProcAddr("glSecondaryColor3uiv")) - if gpSecondaryColor3uiv == nil { - return errors.New("glSecondaryColor3uiv") - } - gpSecondaryColor3uivEXT = (C.GPSECONDARYCOLOR3UIVEXT)(getProcAddr("glSecondaryColor3uivEXT")) - gpSecondaryColor3us = (C.GPSECONDARYCOLOR3US)(getProcAddr("glSecondaryColor3us")) - if gpSecondaryColor3us == nil { - return errors.New("glSecondaryColor3us") - } - gpSecondaryColor3usEXT = (C.GPSECONDARYCOLOR3USEXT)(getProcAddr("glSecondaryColor3usEXT")) - gpSecondaryColor3usv = (C.GPSECONDARYCOLOR3USV)(getProcAddr("glSecondaryColor3usv")) - if gpSecondaryColor3usv == nil { - return errors.New("glSecondaryColor3usv") - } - gpSecondaryColor3usvEXT = (C.GPSECONDARYCOLOR3USVEXT)(getProcAddr("glSecondaryColor3usvEXT")) - gpSecondaryColorFormatNV = (C.GPSECONDARYCOLORFORMATNV)(getProcAddr("glSecondaryColorFormatNV")) - gpSecondaryColorPointer = (C.GPSECONDARYCOLORPOINTER)(getProcAddr("glSecondaryColorPointer")) - if gpSecondaryColorPointer == nil { - return errors.New("glSecondaryColorPointer") - } - gpSecondaryColorPointerEXT = (C.GPSECONDARYCOLORPOINTEREXT)(getProcAddr("glSecondaryColorPointerEXT")) - gpSecondaryColorPointerListIBM = (C.GPSECONDARYCOLORPOINTERLISTIBM)(getProcAddr("glSecondaryColorPointerListIBM")) - gpSelectBuffer = (C.GPSELECTBUFFER)(getProcAddr("glSelectBuffer")) - if gpSelectBuffer == nil { - return errors.New("glSelectBuffer") - } - gpSelectPerfMonitorCountersAMD = (C.GPSELECTPERFMONITORCOUNTERSAMD)(getProcAddr("glSelectPerfMonitorCountersAMD")) - gpSeparableFilter2DEXT = (C.GPSEPARABLEFILTER2DEXT)(getProcAddr("glSeparableFilter2DEXT")) - gpSetFenceAPPLE = (C.GPSETFENCEAPPLE)(getProcAddr("glSetFenceAPPLE")) - gpSetFenceNV = (C.GPSETFENCENV)(getProcAddr("glSetFenceNV")) - gpSetFragmentShaderConstantATI = (C.GPSETFRAGMENTSHADERCONSTANTATI)(getProcAddr("glSetFragmentShaderConstantATI")) - gpSetInvariantEXT = (C.GPSETINVARIANTEXT)(getProcAddr("glSetInvariantEXT")) - gpSetLocalConstantEXT = (C.GPSETLOCALCONSTANTEXT)(getProcAddr("glSetLocalConstantEXT")) - gpSetMultisamplefvAMD = (C.GPSETMULTISAMPLEFVAMD)(getProcAddr("glSetMultisamplefvAMD")) - gpShadeModel = (C.GPSHADEMODEL)(getProcAddr("glShadeModel")) - if gpShadeModel == nil { - return errors.New("glShadeModel") - } - gpShaderBinary = (C.GPSHADERBINARY)(getProcAddr("glShaderBinary")) - gpShaderOp1EXT = (C.GPSHADEROP1EXT)(getProcAddr("glShaderOp1EXT")) - gpShaderOp2EXT = (C.GPSHADEROP2EXT)(getProcAddr("glShaderOp2EXT")) - gpShaderOp3EXT = (C.GPSHADEROP3EXT)(getProcAddr("glShaderOp3EXT")) - gpShaderSource = (C.GPSHADERSOURCE)(getProcAddr("glShaderSource")) - if gpShaderSource == nil { - return errors.New("glShaderSource") - } - gpShaderSourceARB = (C.GPSHADERSOURCEARB)(getProcAddr("glShaderSourceARB")) - gpShaderStorageBlockBinding = (C.GPSHADERSTORAGEBLOCKBINDING)(getProcAddr("glShaderStorageBlockBinding")) - gpSharpenTexFuncSGIS = (C.GPSHARPENTEXFUNCSGIS)(getProcAddr("glSharpenTexFuncSGIS")) - gpSpriteParameterfSGIX = (C.GPSPRITEPARAMETERFSGIX)(getProcAddr("glSpriteParameterfSGIX")) - gpSpriteParameterfvSGIX = (C.GPSPRITEPARAMETERFVSGIX)(getProcAddr("glSpriteParameterfvSGIX")) - gpSpriteParameteriSGIX = (C.GPSPRITEPARAMETERISGIX)(getProcAddr("glSpriteParameteriSGIX")) - gpSpriteParameterivSGIX = (C.GPSPRITEPARAMETERIVSGIX)(getProcAddr("glSpriteParameterivSGIX")) - gpStartInstrumentsSGIX = (C.GPSTARTINSTRUMENTSSGIX)(getProcAddr("glStartInstrumentsSGIX")) - gpStencilClearTagEXT = (C.GPSTENCILCLEARTAGEXT)(getProcAddr("glStencilClearTagEXT")) - gpStencilFillPathInstancedNV = (C.GPSTENCILFILLPATHINSTANCEDNV)(getProcAddr("glStencilFillPathInstancedNV")) - gpStencilFillPathNV = (C.GPSTENCILFILLPATHNV)(getProcAddr("glStencilFillPathNV")) - gpStencilFunc = (C.GPSTENCILFUNC)(getProcAddr("glStencilFunc")) - if gpStencilFunc == nil { - return errors.New("glStencilFunc") - } - gpStencilFuncSeparate = (C.GPSTENCILFUNCSEPARATE)(getProcAddr("glStencilFuncSeparate")) - if gpStencilFuncSeparate == nil { - return errors.New("glStencilFuncSeparate") - } - gpStencilFuncSeparateATI = (C.GPSTENCILFUNCSEPARATEATI)(getProcAddr("glStencilFuncSeparateATI")) - gpStencilMask = (C.GPSTENCILMASK)(getProcAddr("glStencilMask")) - if gpStencilMask == nil { - return errors.New("glStencilMask") - } - gpStencilMaskSeparate = (C.GPSTENCILMASKSEPARATE)(getProcAddr("glStencilMaskSeparate")) - if gpStencilMaskSeparate == nil { - return errors.New("glStencilMaskSeparate") - } - gpStencilOp = (C.GPSTENCILOP)(getProcAddr("glStencilOp")) - if gpStencilOp == nil { - return errors.New("glStencilOp") - } - gpStencilOpSeparate = (C.GPSTENCILOPSEPARATE)(getProcAddr("glStencilOpSeparate")) - if gpStencilOpSeparate == nil { - return errors.New("glStencilOpSeparate") - } - gpStencilOpSeparateATI = (C.GPSTENCILOPSEPARATEATI)(getProcAddr("glStencilOpSeparateATI")) - gpStencilOpValueAMD = (C.GPSTENCILOPVALUEAMD)(getProcAddr("glStencilOpValueAMD")) - gpStencilStrokePathInstancedNV = (C.GPSTENCILSTROKEPATHINSTANCEDNV)(getProcAddr("glStencilStrokePathInstancedNV")) - gpStencilStrokePathNV = (C.GPSTENCILSTROKEPATHNV)(getProcAddr("glStencilStrokePathNV")) - gpStencilThenCoverFillPathInstancedNV = (C.GPSTENCILTHENCOVERFILLPATHINSTANCEDNV)(getProcAddr("glStencilThenCoverFillPathInstancedNV")) - gpStencilThenCoverFillPathNV = (C.GPSTENCILTHENCOVERFILLPATHNV)(getProcAddr("glStencilThenCoverFillPathNV")) - gpStencilThenCoverStrokePathInstancedNV = (C.GPSTENCILTHENCOVERSTROKEPATHINSTANCEDNV)(getProcAddr("glStencilThenCoverStrokePathInstancedNV")) - gpStencilThenCoverStrokePathNV = (C.GPSTENCILTHENCOVERSTROKEPATHNV)(getProcAddr("glStencilThenCoverStrokePathNV")) - gpStopInstrumentsSGIX = (C.GPSTOPINSTRUMENTSSGIX)(getProcAddr("glStopInstrumentsSGIX")) - gpStringMarkerGREMEDY = (C.GPSTRINGMARKERGREMEDY)(getProcAddr("glStringMarkerGREMEDY")) - gpSwizzleEXT = (C.GPSWIZZLEEXT)(getProcAddr("glSwizzleEXT")) - gpSyncTextureINTEL = (C.GPSYNCTEXTUREINTEL)(getProcAddr("glSyncTextureINTEL")) - gpTagSampleBufferSGIX = (C.GPTAGSAMPLEBUFFERSGIX)(getProcAddr("glTagSampleBufferSGIX")) - gpTangent3bEXT = (C.GPTANGENT3BEXT)(getProcAddr("glTangent3bEXT")) - gpTangent3bvEXT = (C.GPTANGENT3BVEXT)(getProcAddr("glTangent3bvEXT")) - gpTangent3dEXT = (C.GPTANGENT3DEXT)(getProcAddr("glTangent3dEXT")) - gpTangent3dvEXT = (C.GPTANGENT3DVEXT)(getProcAddr("glTangent3dvEXT")) - gpTangent3fEXT = (C.GPTANGENT3FEXT)(getProcAddr("glTangent3fEXT")) - gpTangent3fvEXT = (C.GPTANGENT3FVEXT)(getProcAddr("glTangent3fvEXT")) - gpTangent3iEXT = (C.GPTANGENT3IEXT)(getProcAddr("glTangent3iEXT")) - gpTangent3ivEXT = (C.GPTANGENT3IVEXT)(getProcAddr("glTangent3ivEXT")) - gpTangent3sEXT = (C.GPTANGENT3SEXT)(getProcAddr("glTangent3sEXT")) - gpTangent3svEXT = (C.GPTANGENT3SVEXT)(getProcAddr("glTangent3svEXT")) - gpTangentPointerEXT = (C.GPTANGENTPOINTEREXT)(getProcAddr("glTangentPointerEXT")) - gpTbufferMask3DFX = (C.GPTBUFFERMASK3DFX)(getProcAddr("glTbufferMask3DFX")) - gpTessellationFactorAMD = (C.GPTESSELLATIONFACTORAMD)(getProcAddr("glTessellationFactorAMD")) - gpTessellationModeAMD = (C.GPTESSELLATIONMODEAMD)(getProcAddr("glTessellationModeAMD")) - gpTestFenceAPPLE = (C.GPTESTFENCEAPPLE)(getProcAddr("glTestFenceAPPLE")) - gpTestFenceNV = (C.GPTESTFENCENV)(getProcAddr("glTestFenceNV")) - gpTestObjectAPPLE = (C.GPTESTOBJECTAPPLE)(getProcAddr("glTestObjectAPPLE")) - gpTexBufferARB = (C.GPTEXBUFFERARB)(getProcAddr("glTexBufferARB")) - gpTexBufferEXT = (C.GPTEXBUFFEREXT)(getProcAddr("glTexBufferEXT")) - gpTexBufferRange = (C.GPTEXBUFFERRANGE)(getProcAddr("glTexBufferRange")) - gpTexBumpParameterfvATI = (C.GPTEXBUMPPARAMETERFVATI)(getProcAddr("glTexBumpParameterfvATI")) - gpTexBumpParameterivATI = (C.GPTEXBUMPPARAMETERIVATI)(getProcAddr("glTexBumpParameterivATI")) - gpTexCoord1bOES = (C.GPTEXCOORD1BOES)(getProcAddr("glTexCoord1bOES")) - gpTexCoord1bvOES = (C.GPTEXCOORD1BVOES)(getProcAddr("glTexCoord1bvOES")) - gpTexCoord1d = (C.GPTEXCOORD1D)(getProcAddr("glTexCoord1d")) - if gpTexCoord1d == nil { - return errors.New("glTexCoord1d") - } - gpTexCoord1dv = (C.GPTEXCOORD1DV)(getProcAddr("glTexCoord1dv")) - if gpTexCoord1dv == nil { - return errors.New("glTexCoord1dv") - } - gpTexCoord1f = (C.GPTEXCOORD1F)(getProcAddr("glTexCoord1f")) - if gpTexCoord1f == nil { - return errors.New("glTexCoord1f") - } - gpTexCoord1fv = (C.GPTEXCOORD1FV)(getProcAddr("glTexCoord1fv")) - if gpTexCoord1fv == nil { - return errors.New("glTexCoord1fv") - } - gpTexCoord1hNV = (C.GPTEXCOORD1HNV)(getProcAddr("glTexCoord1hNV")) - gpTexCoord1hvNV = (C.GPTEXCOORD1HVNV)(getProcAddr("glTexCoord1hvNV")) - gpTexCoord1i = (C.GPTEXCOORD1I)(getProcAddr("glTexCoord1i")) - if gpTexCoord1i == nil { - return errors.New("glTexCoord1i") - } - gpTexCoord1iv = (C.GPTEXCOORD1IV)(getProcAddr("glTexCoord1iv")) - if gpTexCoord1iv == nil { - return errors.New("glTexCoord1iv") - } - gpTexCoord1s = (C.GPTEXCOORD1S)(getProcAddr("glTexCoord1s")) - if gpTexCoord1s == nil { - return errors.New("glTexCoord1s") - } - gpTexCoord1sv = (C.GPTEXCOORD1SV)(getProcAddr("glTexCoord1sv")) - if gpTexCoord1sv == nil { - return errors.New("glTexCoord1sv") - } - gpTexCoord1xOES = (C.GPTEXCOORD1XOES)(getProcAddr("glTexCoord1xOES")) - gpTexCoord1xvOES = (C.GPTEXCOORD1XVOES)(getProcAddr("glTexCoord1xvOES")) - gpTexCoord2bOES = (C.GPTEXCOORD2BOES)(getProcAddr("glTexCoord2bOES")) - gpTexCoord2bvOES = (C.GPTEXCOORD2BVOES)(getProcAddr("glTexCoord2bvOES")) - gpTexCoord2d = (C.GPTEXCOORD2D)(getProcAddr("glTexCoord2d")) - if gpTexCoord2d == nil { - return errors.New("glTexCoord2d") - } - gpTexCoord2dv = (C.GPTEXCOORD2DV)(getProcAddr("glTexCoord2dv")) - if gpTexCoord2dv == nil { - return errors.New("glTexCoord2dv") - } - gpTexCoord2f = (C.GPTEXCOORD2F)(getProcAddr("glTexCoord2f")) - if gpTexCoord2f == nil { - return errors.New("glTexCoord2f") - } - gpTexCoord2fColor3fVertex3fSUN = (C.GPTEXCOORD2FCOLOR3FVERTEX3FSUN)(getProcAddr("glTexCoord2fColor3fVertex3fSUN")) - gpTexCoord2fColor3fVertex3fvSUN = (C.GPTEXCOORD2FCOLOR3FVERTEX3FVSUN)(getProcAddr("glTexCoord2fColor3fVertex3fvSUN")) - gpTexCoord2fColor4fNormal3fVertex3fSUN = (C.GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN)(getProcAddr("glTexCoord2fColor4fNormal3fVertex3fSUN")) - gpTexCoord2fColor4fNormal3fVertex3fvSUN = (C.GPTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN)(getProcAddr("glTexCoord2fColor4fNormal3fVertex3fvSUN")) - gpTexCoord2fColor4ubVertex3fSUN = (C.GPTEXCOORD2FCOLOR4UBVERTEX3FSUN)(getProcAddr("glTexCoord2fColor4ubVertex3fSUN")) - gpTexCoord2fColor4ubVertex3fvSUN = (C.GPTEXCOORD2FCOLOR4UBVERTEX3FVSUN)(getProcAddr("glTexCoord2fColor4ubVertex3fvSUN")) - gpTexCoord2fNormal3fVertex3fSUN = (C.GPTEXCOORD2FNORMAL3FVERTEX3FSUN)(getProcAddr("glTexCoord2fNormal3fVertex3fSUN")) - gpTexCoord2fNormal3fVertex3fvSUN = (C.GPTEXCOORD2FNORMAL3FVERTEX3FVSUN)(getProcAddr("glTexCoord2fNormal3fVertex3fvSUN")) - gpTexCoord2fVertex3fSUN = (C.GPTEXCOORD2FVERTEX3FSUN)(getProcAddr("glTexCoord2fVertex3fSUN")) - gpTexCoord2fVertex3fvSUN = (C.GPTEXCOORD2FVERTEX3FVSUN)(getProcAddr("glTexCoord2fVertex3fvSUN")) - gpTexCoord2fv = (C.GPTEXCOORD2FV)(getProcAddr("glTexCoord2fv")) - if gpTexCoord2fv == nil { - return errors.New("glTexCoord2fv") - } - gpTexCoord2hNV = (C.GPTEXCOORD2HNV)(getProcAddr("glTexCoord2hNV")) - gpTexCoord2hvNV = (C.GPTEXCOORD2HVNV)(getProcAddr("glTexCoord2hvNV")) - gpTexCoord2i = (C.GPTEXCOORD2I)(getProcAddr("glTexCoord2i")) - if gpTexCoord2i == nil { - return errors.New("glTexCoord2i") - } - gpTexCoord2iv = (C.GPTEXCOORD2IV)(getProcAddr("glTexCoord2iv")) - if gpTexCoord2iv == nil { - return errors.New("glTexCoord2iv") - } - gpTexCoord2s = (C.GPTEXCOORD2S)(getProcAddr("glTexCoord2s")) - if gpTexCoord2s == nil { - return errors.New("glTexCoord2s") - } - gpTexCoord2sv = (C.GPTEXCOORD2SV)(getProcAddr("glTexCoord2sv")) - if gpTexCoord2sv == nil { - return errors.New("glTexCoord2sv") - } - gpTexCoord2xOES = (C.GPTEXCOORD2XOES)(getProcAddr("glTexCoord2xOES")) - gpTexCoord2xvOES = (C.GPTEXCOORD2XVOES)(getProcAddr("glTexCoord2xvOES")) - gpTexCoord3bOES = (C.GPTEXCOORD3BOES)(getProcAddr("glTexCoord3bOES")) - gpTexCoord3bvOES = (C.GPTEXCOORD3BVOES)(getProcAddr("glTexCoord3bvOES")) - gpTexCoord3d = (C.GPTEXCOORD3D)(getProcAddr("glTexCoord3d")) - if gpTexCoord3d == nil { - return errors.New("glTexCoord3d") - } - gpTexCoord3dv = (C.GPTEXCOORD3DV)(getProcAddr("glTexCoord3dv")) - if gpTexCoord3dv == nil { - return errors.New("glTexCoord3dv") - } - gpTexCoord3f = (C.GPTEXCOORD3F)(getProcAddr("glTexCoord3f")) - if gpTexCoord3f == nil { - return errors.New("glTexCoord3f") - } - gpTexCoord3fv = (C.GPTEXCOORD3FV)(getProcAddr("glTexCoord3fv")) - if gpTexCoord3fv == nil { - return errors.New("glTexCoord3fv") - } - gpTexCoord3hNV = (C.GPTEXCOORD3HNV)(getProcAddr("glTexCoord3hNV")) - gpTexCoord3hvNV = (C.GPTEXCOORD3HVNV)(getProcAddr("glTexCoord3hvNV")) - gpTexCoord3i = (C.GPTEXCOORD3I)(getProcAddr("glTexCoord3i")) - if gpTexCoord3i == nil { - return errors.New("glTexCoord3i") - } - gpTexCoord3iv = (C.GPTEXCOORD3IV)(getProcAddr("glTexCoord3iv")) - if gpTexCoord3iv == nil { - return errors.New("glTexCoord3iv") - } - gpTexCoord3s = (C.GPTEXCOORD3S)(getProcAddr("glTexCoord3s")) - if gpTexCoord3s == nil { - return errors.New("glTexCoord3s") - } - gpTexCoord3sv = (C.GPTEXCOORD3SV)(getProcAddr("glTexCoord3sv")) - if gpTexCoord3sv == nil { - return errors.New("glTexCoord3sv") - } - gpTexCoord3xOES = (C.GPTEXCOORD3XOES)(getProcAddr("glTexCoord3xOES")) - gpTexCoord3xvOES = (C.GPTEXCOORD3XVOES)(getProcAddr("glTexCoord3xvOES")) - gpTexCoord4bOES = (C.GPTEXCOORD4BOES)(getProcAddr("glTexCoord4bOES")) - gpTexCoord4bvOES = (C.GPTEXCOORD4BVOES)(getProcAddr("glTexCoord4bvOES")) - gpTexCoord4d = (C.GPTEXCOORD4D)(getProcAddr("glTexCoord4d")) - if gpTexCoord4d == nil { - return errors.New("glTexCoord4d") - } - gpTexCoord4dv = (C.GPTEXCOORD4DV)(getProcAddr("glTexCoord4dv")) - if gpTexCoord4dv == nil { - return errors.New("glTexCoord4dv") - } - gpTexCoord4f = (C.GPTEXCOORD4F)(getProcAddr("glTexCoord4f")) - if gpTexCoord4f == nil { - return errors.New("glTexCoord4f") - } - gpTexCoord4fColor4fNormal3fVertex4fSUN = (C.GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUN)(getProcAddr("glTexCoord4fColor4fNormal3fVertex4fSUN")) - gpTexCoord4fColor4fNormal3fVertex4fvSUN = (C.GPTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUN)(getProcAddr("glTexCoord4fColor4fNormal3fVertex4fvSUN")) - gpTexCoord4fVertex4fSUN = (C.GPTEXCOORD4FVERTEX4FSUN)(getProcAddr("glTexCoord4fVertex4fSUN")) - gpTexCoord4fVertex4fvSUN = (C.GPTEXCOORD4FVERTEX4FVSUN)(getProcAddr("glTexCoord4fVertex4fvSUN")) - gpTexCoord4fv = (C.GPTEXCOORD4FV)(getProcAddr("glTexCoord4fv")) - if gpTexCoord4fv == nil { - return errors.New("glTexCoord4fv") - } - gpTexCoord4hNV = (C.GPTEXCOORD4HNV)(getProcAddr("glTexCoord4hNV")) - gpTexCoord4hvNV = (C.GPTEXCOORD4HVNV)(getProcAddr("glTexCoord4hvNV")) - gpTexCoord4i = (C.GPTEXCOORD4I)(getProcAddr("glTexCoord4i")) - if gpTexCoord4i == nil { - return errors.New("glTexCoord4i") - } - gpTexCoord4iv = (C.GPTEXCOORD4IV)(getProcAddr("glTexCoord4iv")) - if gpTexCoord4iv == nil { - return errors.New("glTexCoord4iv") - } - gpTexCoord4s = (C.GPTEXCOORD4S)(getProcAddr("glTexCoord4s")) - if gpTexCoord4s == nil { - return errors.New("glTexCoord4s") - } - gpTexCoord4sv = (C.GPTEXCOORD4SV)(getProcAddr("glTexCoord4sv")) - if gpTexCoord4sv == nil { - return errors.New("glTexCoord4sv") - } - gpTexCoord4xOES = (C.GPTEXCOORD4XOES)(getProcAddr("glTexCoord4xOES")) - gpTexCoord4xvOES = (C.GPTEXCOORD4XVOES)(getProcAddr("glTexCoord4xvOES")) - gpTexCoordFormatNV = (C.GPTEXCOORDFORMATNV)(getProcAddr("glTexCoordFormatNV")) - gpTexCoordPointer = (C.GPTEXCOORDPOINTER)(getProcAddr("glTexCoordPointer")) - if gpTexCoordPointer == nil { - return errors.New("glTexCoordPointer") - } - gpTexCoordPointerEXT = (C.GPTEXCOORDPOINTEREXT)(getProcAddr("glTexCoordPointerEXT")) - gpTexCoordPointerListIBM = (C.GPTEXCOORDPOINTERLISTIBM)(getProcAddr("glTexCoordPointerListIBM")) - gpTexCoordPointervINTEL = (C.GPTEXCOORDPOINTERVINTEL)(getProcAddr("glTexCoordPointervINTEL")) - gpTexEnvf = (C.GPTEXENVF)(getProcAddr("glTexEnvf")) - if gpTexEnvf == nil { - return errors.New("glTexEnvf") - } - gpTexEnvfv = (C.GPTEXENVFV)(getProcAddr("glTexEnvfv")) - if gpTexEnvfv == nil { - return errors.New("glTexEnvfv") - } - gpTexEnvi = (C.GPTEXENVI)(getProcAddr("glTexEnvi")) - if gpTexEnvi == nil { - return errors.New("glTexEnvi") - } - gpTexEnviv = (C.GPTEXENVIV)(getProcAddr("glTexEnviv")) - if gpTexEnviv == nil { - return errors.New("glTexEnviv") - } - gpTexEnvxOES = (C.GPTEXENVXOES)(getProcAddr("glTexEnvxOES")) - gpTexEnvxvOES = (C.GPTEXENVXVOES)(getProcAddr("glTexEnvxvOES")) - gpTexFilterFuncSGIS = (C.GPTEXFILTERFUNCSGIS)(getProcAddr("glTexFilterFuncSGIS")) - gpTexGend = (C.GPTEXGEND)(getProcAddr("glTexGend")) - if gpTexGend == nil { - return errors.New("glTexGend") - } - gpTexGendv = (C.GPTEXGENDV)(getProcAddr("glTexGendv")) - if gpTexGendv == nil { - return errors.New("glTexGendv") - } - gpTexGenf = (C.GPTEXGENF)(getProcAddr("glTexGenf")) - if gpTexGenf == nil { - return errors.New("glTexGenf") - } - gpTexGenfv = (C.GPTEXGENFV)(getProcAddr("glTexGenfv")) - if gpTexGenfv == nil { - return errors.New("glTexGenfv") - } - gpTexGeni = (C.GPTEXGENI)(getProcAddr("glTexGeni")) - if gpTexGeni == nil { - return errors.New("glTexGeni") - } - gpTexGeniv = (C.GPTEXGENIV)(getProcAddr("glTexGeniv")) - if gpTexGeniv == nil { - return errors.New("glTexGeniv") - } - gpTexGenxOES = (C.GPTEXGENXOES)(getProcAddr("glTexGenxOES")) - gpTexGenxvOES = (C.GPTEXGENXVOES)(getProcAddr("glTexGenxvOES")) - gpTexImage1D = (C.GPTEXIMAGE1D)(getProcAddr("glTexImage1D")) - if gpTexImage1D == nil { - return errors.New("glTexImage1D") - } - gpTexImage2D = (C.GPTEXIMAGE2D)(getProcAddr("glTexImage2D")) - if gpTexImage2D == nil { - return errors.New("glTexImage2D") - } - gpTexImage2DMultisample = (C.GPTEXIMAGE2DMULTISAMPLE)(getProcAddr("glTexImage2DMultisample")) - gpTexImage2DMultisampleCoverageNV = (C.GPTEXIMAGE2DMULTISAMPLECOVERAGENV)(getProcAddr("glTexImage2DMultisampleCoverageNV")) - gpTexImage3D = (C.GPTEXIMAGE3D)(getProcAddr("glTexImage3D")) - if gpTexImage3D == nil { - return errors.New("glTexImage3D") - } - gpTexImage3DEXT = (C.GPTEXIMAGE3DEXT)(getProcAddr("glTexImage3DEXT")) - gpTexImage3DMultisample = (C.GPTEXIMAGE3DMULTISAMPLE)(getProcAddr("glTexImage3DMultisample")) - gpTexImage3DMultisampleCoverageNV = (C.GPTEXIMAGE3DMULTISAMPLECOVERAGENV)(getProcAddr("glTexImage3DMultisampleCoverageNV")) - gpTexImage4DSGIS = (C.GPTEXIMAGE4DSGIS)(getProcAddr("glTexImage4DSGIS")) - gpTexPageCommitmentARB = (C.GPTEXPAGECOMMITMENTARB)(getProcAddr("glTexPageCommitmentARB")) - gpTexParameterIivEXT = (C.GPTEXPARAMETERIIVEXT)(getProcAddr("glTexParameterIivEXT")) - gpTexParameterIuivEXT = (C.GPTEXPARAMETERIUIVEXT)(getProcAddr("glTexParameterIuivEXT")) - gpTexParameterf = (C.GPTEXPARAMETERF)(getProcAddr("glTexParameterf")) - if gpTexParameterf == nil { - return errors.New("glTexParameterf") - } - gpTexParameterfv = (C.GPTEXPARAMETERFV)(getProcAddr("glTexParameterfv")) - if gpTexParameterfv == nil { - return errors.New("glTexParameterfv") - } - gpTexParameteri = (C.GPTEXPARAMETERI)(getProcAddr("glTexParameteri")) - if gpTexParameteri == nil { - return errors.New("glTexParameteri") - } - gpTexParameteriv = (C.GPTEXPARAMETERIV)(getProcAddr("glTexParameteriv")) - if gpTexParameteriv == nil { - return errors.New("glTexParameteriv") - } - gpTexParameterxOES = (C.GPTEXPARAMETERXOES)(getProcAddr("glTexParameterxOES")) - gpTexParameterxvOES = (C.GPTEXPARAMETERXVOES)(getProcAddr("glTexParameterxvOES")) - gpTexRenderbufferNV = (C.GPTEXRENDERBUFFERNV)(getProcAddr("glTexRenderbufferNV")) - gpTexStorage1D = (C.GPTEXSTORAGE1D)(getProcAddr("glTexStorage1D")) - gpTexStorage2D = (C.GPTEXSTORAGE2D)(getProcAddr("glTexStorage2D")) - gpTexStorage2DMultisample = (C.GPTEXSTORAGE2DMULTISAMPLE)(getProcAddr("glTexStorage2DMultisample")) - gpTexStorage3D = (C.GPTEXSTORAGE3D)(getProcAddr("glTexStorage3D")) - gpTexStorage3DMultisample = (C.GPTEXSTORAGE3DMULTISAMPLE)(getProcAddr("glTexStorage3DMultisample")) - gpTexStorageSparseAMD = (C.GPTEXSTORAGESPARSEAMD)(getProcAddr("glTexStorageSparseAMD")) - gpTexSubImage1D = (C.GPTEXSUBIMAGE1D)(getProcAddr("glTexSubImage1D")) - if gpTexSubImage1D == nil { - return errors.New("glTexSubImage1D") - } - gpTexSubImage1DEXT = (C.GPTEXSUBIMAGE1DEXT)(getProcAddr("glTexSubImage1DEXT")) - gpTexSubImage2D = (C.GPTEXSUBIMAGE2D)(getProcAddr("glTexSubImage2D")) - if gpTexSubImage2D == nil { - return errors.New("glTexSubImage2D") - } - gpTexSubImage2DEXT = (C.GPTEXSUBIMAGE2DEXT)(getProcAddr("glTexSubImage2DEXT")) - gpTexSubImage3D = (C.GPTEXSUBIMAGE3D)(getProcAddr("glTexSubImage3D")) - if gpTexSubImage3D == nil { - return errors.New("glTexSubImage3D") - } - gpTexSubImage3DEXT = (C.GPTEXSUBIMAGE3DEXT)(getProcAddr("glTexSubImage3DEXT")) - gpTexSubImage4DSGIS = (C.GPTEXSUBIMAGE4DSGIS)(getProcAddr("glTexSubImage4DSGIS")) - gpTextureBarrier = (C.GPTEXTUREBARRIER)(getProcAddr("glTextureBarrier")) - gpTextureBarrierNV = (C.GPTEXTUREBARRIERNV)(getProcAddr("glTextureBarrierNV")) - gpTextureBuffer = (C.GPTEXTUREBUFFER)(getProcAddr("glTextureBuffer")) - gpTextureBufferEXT = (C.GPTEXTUREBUFFEREXT)(getProcAddr("glTextureBufferEXT")) - gpTextureBufferRange = (C.GPTEXTUREBUFFERRANGE)(getProcAddr("glTextureBufferRange")) - gpTextureBufferRangeEXT = (C.GPTEXTUREBUFFERRANGEEXT)(getProcAddr("glTextureBufferRangeEXT")) - gpTextureColorMaskSGIS = (C.GPTEXTURECOLORMASKSGIS)(getProcAddr("glTextureColorMaskSGIS")) - gpTextureImage1DEXT = (C.GPTEXTUREIMAGE1DEXT)(getProcAddr("glTextureImage1DEXT")) - gpTextureImage2DEXT = (C.GPTEXTUREIMAGE2DEXT)(getProcAddr("glTextureImage2DEXT")) - gpTextureImage2DMultisampleCoverageNV = (C.GPTEXTUREIMAGE2DMULTISAMPLECOVERAGENV)(getProcAddr("glTextureImage2DMultisampleCoverageNV")) - gpTextureImage2DMultisampleNV = (C.GPTEXTUREIMAGE2DMULTISAMPLENV)(getProcAddr("glTextureImage2DMultisampleNV")) - gpTextureImage3DEXT = (C.GPTEXTUREIMAGE3DEXT)(getProcAddr("glTextureImage3DEXT")) - gpTextureImage3DMultisampleCoverageNV = (C.GPTEXTUREIMAGE3DMULTISAMPLECOVERAGENV)(getProcAddr("glTextureImage3DMultisampleCoverageNV")) - gpTextureImage3DMultisampleNV = (C.GPTEXTUREIMAGE3DMULTISAMPLENV)(getProcAddr("glTextureImage3DMultisampleNV")) - gpTextureLightEXT = (C.GPTEXTURELIGHTEXT)(getProcAddr("glTextureLightEXT")) - gpTextureMaterialEXT = (C.GPTEXTUREMATERIALEXT)(getProcAddr("glTextureMaterialEXT")) - gpTextureNormalEXT = (C.GPTEXTURENORMALEXT)(getProcAddr("glTextureNormalEXT")) - gpTexturePageCommitmentEXT = (C.GPTEXTUREPAGECOMMITMENTEXT)(getProcAddr("glTexturePageCommitmentEXT")) - gpTextureParameterIiv = (C.GPTEXTUREPARAMETERIIV)(getProcAddr("glTextureParameterIiv")) - gpTextureParameterIivEXT = (C.GPTEXTUREPARAMETERIIVEXT)(getProcAddr("glTextureParameterIivEXT")) - gpTextureParameterIuiv = (C.GPTEXTUREPARAMETERIUIV)(getProcAddr("glTextureParameterIuiv")) - gpTextureParameterIuivEXT = (C.GPTEXTUREPARAMETERIUIVEXT)(getProcAddr("glTextureParameterIuivEXT")) - gpTextureParameterf = (C.GPTEXTUREPARAMETERF)(getProcAddr("glTextureParameterf")) - gpTextureParameterfEXT = (C.GPTEXTUREPARAMETERFEXT)(getProcAddr("glTextureParameterfEXT")) - gpTextureParameterfv = (C.GPTEXTUREPARAMETERFV)(getProcAddr("glTextureParameterfv")) - gpTextureParameterfvEXT = (C.GPTEXTUREPARAMETERFVEXT)(getProcAddr("glTextureParameterfvEXT")) - gpTextureParameteri = (C.GPTEXTUREPARAMETERI)(getProcAddr("glTextureParameteri")) - gpTextureParameteriEXT = (C.GPTEXTUREPARAMETERIEXT)(getProcAddr("glTextureParameteriEXT")) - gpTextureParameteriv = (C.GPTEXTUREPARAMETERIV)(getProcAddr("glTextureParameteriv")) - gpTextureParameterivEXT = (C.GPTEXTUREPARAMETERIVEXT)(getProcAddr("glTextureParameterivEXT")) - gpTextureRangeAPPLE = (C.GPTEXTURERANGEAPPLE)(getProcAddr("glTextureRangeAPPLE")) - gpTextureRenderbufferEXT = (C.GPTEXTURERENDERBUFFEREXT)(getProcAddr("glTextureRenderbufferEXT")) - gpTextureStorage1D = (C.GPTEXTURESTORAGE1D)(getProcAddr("glTextureStorage1D")) - gpTextureStorage1DEXT = (C.GPTEXTURESTORAGE1DEXT)(getProcAddr("glTextureStorage1DEXT")) - gpTextureStorage2D = (C.GPTEXTURESTORAGE2D)(getProcAddr("glTextureStorage2D")) - gpTextureStorage2DEXT = (C.GPTEXTURESTORAGE2DEXT)(getProcAddr("glTextureStorage2DEXT")) - gpTextureStorage2DMultisample = (C.GPTEXTURESTORAGE2DMULTISAMPLE)(getProcAddr("glTextureStorage2DMultisample")) - gpTextureStorage2DMultisampleEXT = (C.GPTEXTURESTORAGE2DMULTISAMPLEEXT)(getProcAddr("glTextureStorage2DMultisampleEXT")) - gpTextureStorage3D = (C.GPTEXTURESTORAGE3D)(getProcAddr("glTextureStorage3D")) - gpTextureStorage3DEXT = (C.GPTEXTURESTORAGE3DEXT)(getProcAddr("glTextureStorage3DEXT")) - gpTextureStorage3DMultisample = (C.GPTEXTURESTORAGE3DMULTISAMPLE)(getProcAddr("glTextureStorage3DMultisample")) - gpTextureStorage3DMultisampleEXT = (C.GPTEXTURESTORAGE3DMULTISAMPLEEXT)(getProcAddr("glTextureStorage3DMultisampleEXT")) - gpTextureStorageSparseAMD = (C.GPTEXTURESTORAGESPARSEAMD)(getProcAddr("glTextureStorageSparseAMD")) - gpTextureSubImage1D = (C.GPTEXTURESUBIMAGE1D)(getProcAddr("glTextureSubImage1D")) - gpTextureSubImage1DEXT = (C.GPTEXTURESUBIMAGE1DEXT)(getProcAddr("glTextureSubImage1DEXT")) - gpTextureSubImage2D = (C.GPTEXTURESUBIMAGE2D)(getProcAddr("glTextureSubImage2D")) - gpTextureSubImage2DEXT = (C.GPTEXTURESUBIMAGE2DEXT)(getProcAddr("glTextureSubImage2DEXT")) - gpTextureSubImage3D = (C.GPTEXTURESUBIMAGE3D)(getProcAddr("glTextureSubImage3D")) - gpTextureSubImage3DEXT = (C.GPTEXTURESUBIMAGE3DEXT)(getProcAddr("glTextureSubImage3DEXT")) - gpTextureView = (C.GPTEXTUREVIEW)(getProcAddr("glTextureView")) - gpTrackMatrixNV = (C.GPTRACKMATRIXNV)(getProcAddr("glTrackMatrixNV")) - gpTransformFeedbackAttribsNV = (C.GPTRANSFORMFEEDBACKATTRIBSNV)(getProcAddr("glTransformFeedbackAttribsNV")) - gpTransformFeedbackBufferBase = (C.GPTRANSFORMFEEDBACKBUFFERBASE)(getProcAddr("glTransformFeedbackBufferBase")) - gpTransformFeedbackBufferRange = (C.GPTRANSFORMFEEDBACKBUFFERRANGE)(getProcAddr("glTransformFeedbackBufferRange")) - gpTransformFeedbackStreamAttribsNV = (C.GPTRANSFORMFEEDBACKSTREAMATTRIBSNV)(getProcAddr("glTransformFeedbackStreamAttribsNV")) - gpTransformFeedbackVaryingsEXT = (C.GPTRANSFORMFEEDBACKVARYINGSEXT)(getProcAddr("glTransformFeedbackVaryingsEXT")) - gpTransformFeedbackVaryingsNV = (C.GPTRANSFORMFEEDBACKVARYINGSNV)(getProcAddr("glTransformFeedbackVaryingsNV")) - gpTransformPathNV = (C.GPTRANSFORMPATHNV)(getProcAddr("glTransformPathNV")) - gpTranslated = (C.GPTRANSLATED)(getProcAddr("glTranslated")) - if gpTranslated == nil { - return errors.New("glTranslated") - } - gpTranslatef = (C.GPTRANSLATEF)(getProcAddr("glTranslatef")) - if gpTranslatef == nil { - return errors.New("glTranslatef") - } - gpTranslatexOES = (C.GPTRANSLATEXOES)(getProcAddr("glTranslatexOES")) - gpUniform1d = (C.GPUNIFORM1D)(getProcAddr("glUniform1d")) - gpUniform1dv = (C.GPUNIFORM1DV)(getProcAddr("glUniform1dv")) - gpUniform1f = (C.GPUNIFORM1F)(getProcAddr("glUniform1f")) - if gpUniform1f == nil { - return errors.New("glUniform1f") - } - gpUniform1fARB = (C.GPUNIFORM1FARB)(getProcAddr("glUniform1fARB")) - gpUniform1fv = (C.GPUNIFORM1FV)(getProcAddr("glUniform1fv")) - if gpUniform1fv == nil { - return errors.New("glUniform1fv") - } - gpUniform1fvARB = (C.GPUNIFORM1FVARB)(getProcAddr("glUniform1fvARB")) - gpUniform1i = (C.GPUNIFORM1I)(getProcAddr("glUniform1i")) - if gpUniform1i == nil { - return errors.New("glUniform1i") - } - gpUniform1i64NV = (C.GPUNIFORM1I64NV)(getProcAddr("glUniform1i64NV")) - gpUniform1i64vNV = (C.GPUNIFORM1I64VNV)(getProcAddr("glUniform1i64vNV")) - gpUniform1iARB = (C.GPUNIFORM1IARB)(getProcAddr("glUniform1iARB")) - gpUniform1iv = (C.GPUNIFORM1IV)(getProcAddr("glUniform1iv")) - if gpUniform1iv == nil { - return errors.New("glUniform1iv") - } - gpUniform1ivARB = (C.GPUNIFORM1IVARB)(getProcAddr("glUniform1ivARB")) - gpUniform1ui64NV = (C.GPUNIFORM1UI64NV)(getProcAddr("glUniform1ui64NV")) - gpUniform1ui64vNV = (C.GPUNIFORM1UI64VNV)(getProcAddr("glUniform1ui64vNV")) - gpUniform1uiEXT = (C.GPUNIFORM1UIEXT)(getProcAddr("glUniform1uiEXT")) - gpUniform1uivEXT = (C.GPUNIFORM1UIVEXT)(getProcAddr("glUniform1uivEXT")) - gpUniform2d = (C.GPUNIFORM2D)(getProcAddr("glUniform2d")) - gpUniform2dv = (C.GPUNIFORM2DV)(getProcAddr("glUniform2dv")) - gpUniform2f = (C.GPUNIFORM2F)(getProcAddr("glUniform2f")) - if gpUniform2f == nil { - return errors.New("glUniform2f") - } - gpUniform2fARB = (C.GPUNIFORM2FARB)(getProcAddr("glUniform2fARB")) - gpUniform2fv = (C.GPUNIFORM2FV)(getProcAddr("glUniform2fv")) - if gpUniform2fv == nil { - return errors.New("glUniform2fv") - } - gpUniform2fvARB = (C.GPUNIFORM2FVARB)(getProcAddr("glUniform2fvARB")) - gpUniform2i = (C.GPUNIFORM2I)(getProcAddr("glUniform2i")) - if gpUniform2i == nil { - return errors.New("glUniform2i") - } - gpUniform2i64NV = (C.GPUNIFORM2I64NV)(getProcAddr("glUniform2i64NV")) - gpUniform2i64vNV = (C.GPUNIFORM2I64VNV)(getProcAddr("glUniform2i64vNV")) - gpUniform2iARB = (C.GPUNIFORM2IARB)(getProcAddr("glUniform2iARB")) - gpUniform2iv = (C.GPUNIFORM2IV)(getProcAddr("glUniform2iv")) - if gpUniform2iv == nil { - return errors.New("glUniform2iv") - } - gpUniform2ivARB = (C.GPUNIFORM2IVARB)(getProcAddr("glUniform2ivARB")) - gpUniform2ui64NV = (C.GPUNIFORM2UI64NV)(getProcAddr("glUniform2ui64NV")) - gpUniform2ui64vNV = (C.GPUNIFORM2UI64VNV)(getProcAddr("glUniform2ui64vNV")) - gpUniform2uiEXT = (C.GPUNIFORM2UIEXT)(getProcAddr("glUniform2uiEXT")) - gpUniform2uivEXT = (C.GPUNIFORM2UIVEXT)(getProcAddr("glUniform2uivEXT")) - gpUniform3d = (C.GPUNIFORM3D)(getProcAddr("glUniform3d")) - gpUniform3dv = (C.GPUNIFORM3DV)(getProcAddr("glUniform3dv")) - gpUniform3f = (C.GPUNIFORM3F)(getProcAddr("glUniform3f")) - if gpUniform3f == nil { - return errors.New("glUniform3f") - } - gpUniform3fARB = (C.GPUNIFORM3FARB)(getProcAddr("glUniform3fARB")) - gpUniform3fv = (C.GPUNIFORM3FV)(getProcAddr("glUniform3fv")) - if gpUniform3fv == nil { - return errors.New("glUniform3fv") - } - gpUniform3fvARB = (C.GPUNIFORM3FVARB)(getProcAddr("glUniform3fvARB")) - gpUniform3i = (C.GPUNIFORM3I)(getProcAddr("glUniform3i")) - if gpUniform3i == nil { - return errors.New("glUniform3i") - } - gpUniform3i64NV = (C.GPUNIFORM3I64NV)(getProcAddr("glUniform3i64NV")) - gpUniform3i64vNV = (C.GPUNIFORM3I64VNV)(getProcAddr("glUniform3i64vNV")) - gpUniform3iARB = (C.GPUNIFORM3IARB)(getProcAddr("glUniform3iARB")) - gpUniform3iv = (C.GPUNIFORM3IV)(getProcAddr("glUniform3iv")) - if gpUniform3iv == nil { - return errors.New("glUniform3iv") - } - gpUniform3ivARB = (C.GPUNIFORM3IVARB)(getProcAddr("glUniform3ivARB")) - gpUniform3ui64NV = (C.GPUNIFORM3UI64NV)(getProcAddr("glUniform3ui64NV")) - gpUniform3ui64vNV = (C.GPUNIFORM3UI64VNV)(getProcAddr("glUniform3ui64vNV")) - gpUniform3uiEXT = (C.GPUNIFORM3UIEXT)(getProcAddr("glUniform3uiEXT")) - gpUniform3uivEXT = (C.GPUNIFORM3UIVEXT)(getProcAddr("glUniform3uivEXT")) - gpUniform4d = (C.GPUNIFORM4D)(getProcAddr("glUniform4d")) - gpUniform4dv = (C.GPUNIFORM4DV)(getProcAddr("glUniform4dv")) - gpUniform4f = (C.GPUNIFORM4F)(getProcAddr("glUniform4f")) - if gpUniform4f == nil { - return errors.New("glUniform4f") - } - gpUniform4fARB = (C.GPUNIFORM4FARB)(getProcAddr("glUniform4fARB")) - gpUniform4fv = (C.GPUNIFORM4FV)(getProcAddr("glUniform4fv")) - if gpUniform4fv == nil { - return errors.New("glUniform4fv") - } - gpUniform4fvARB = (C.GPUNIFORM4FVARB)(getProcAddr("glUniform4fvARB")) - gpUniform4i = (C.GPUNIFORM4I)(getProcAddr("glUniform4i")) - if gpUniform4i == nil { - return errors.New("glUniform4i") - } - gpUniform4i64NV = (C.GPUNIFORM4I64NV)(getProcAddr("glUniform4i64NV")) - gpUniform4i64vNV = (C.GPUNIFORM4I64VNV)(getProcAddr("glUniform4i64vNV")) - gpUniform4iARB = (C.GPUNIFORM4IARB)(getProcAddr("glUniform4iARB")) - gpUniform4iv = (C.GPUNIFORM4IV)(getProcAddr("glUniform4iv")) - if gpUniform4iv == nil { - return errors.New("glUniform4iv") - } - gpUniform4ivARB = (C.GPUNIFORM4IVARB)(getProcAddr("glUniform4ivARB")) - gpUniform4ui64NV = (C.GPUNIFORM4UI64NV)(getProcAddr("glUniform4ui64NV")) - gpUniform4ui64vNV = (C.GPUNIFORM4UI64VNV)(getProcAddr("glUniform4ui64vNV")) - gpUniform4uiEXT = (C.GPUNIFORM4UIEXT)(getProcAddr("glUniform4uiEXT")) - gpUniform4uivEXT = (C.GPUNIFORM4UIVEXT)(getProcAddr("glUniform4uivEXT")) - gpUniformBlockBinding = (C.GPUNIFORMBLOCKBINDING)(getProcAddr("glUniformBlockBinding")) - gpUniformBufferEXT = (C.GPUNIFORMBUFFEREXT)(getProcAddr("glUniformBufferEXT")) - gpUniformHandleui64ARB = (C.GPUNIFORMHANDLEUI64ARB)(getProcAddr("glUniformHandleui64ARB")) - gpUniformHandleui64NV = (C.GPUNIFORMHANDLEUI64NV)(getProcAddr("glUniformHandleui64NV")) - gpUniformHandleui64vARB = (C.GPUNIFORMHANDLEUI64VARB)(getProcAddr("glUniformHandleui64vARB")) - gpUniformHandleui64vNV = (C.GPUNIFORMHANDLEUI64VNV)(getProcAddr("glUniformHandleui64vNV")) - gpUniformMatrix2dv = (C.GPUNIFORMMATRIX2DV)(getProcAddr("glUniformMatrix2dv")) - gpUniformMatrix2fv = (C.GPUNIFORMMATRIX2FV)(getProcAddr("glUniformMatrix2fv")) - if gpUniformMatrix2fv == nil { - return errors.New("glUniformMatrix2fv") - } - gpUniformMatrix2fvARB = (C.GPUNIFORMMATRIX2FVARB)(getProcAddr("glUniformMatrix2fvARB")) - gpUniformMatrix2x3dv = (C.GPUNIFORMMATRIX2X3DV)(getProcAddr("glUniformMatrix2x3dv")) - gpUniformMatrix2x3fv = (C.GPUNIFORMMATRIX2X3FV)(getProcAddr("glUniformMatrix2x3fv")) - if gpUniformMatrix2x3fv == nil { - return errors.New("glUniformMatrix2x3fv") - } - gpUniformMatrix2x4dv = (C.GPUNIFORMMATRIX2X4DV)(getProcAddr("glUniformMatrix2x4dv")) - gpUniformMatrix2x4fv = (C.GPUNIFORMMATRIX2X4FV)(getProcAddr("glUniformMatrix2x4fv")) - if gpUniformMatrix2x4fv == nil { - return errors.New("glUniformMatrix2x4fv") - } - gpUniformMatrix3dv = (C.GPUNIFORMMATRIX3DV)(getProcAddr("glUniformMatrix3dv")) - gpUniformMatrix3fv = (C.GPUNIFORMMATRIX3FV)(getProcAddr("glUniformMatrix3fv")) - if gpUniformMatrix3fv == nil { - return errors.New("glUniformMatrix3fv") - } - gpUniformMatrix3fvARB = (C.GPUNIFORMMATRIX3FVARB)(getProcAddr("glUniformMatrix3fvARB")) - gpUniformMatrix3x2dv = (C.GPUNIFORMMATRIX3X2DV)(getProcAddr("glUniformMatrix3x2dv")) - gpUniformMatrix3x2fv = (C.GPUNIFORMMATRIX3X2FV)(getProcAddr("glUniformMatrix3x2fv")) - if gpUniformMatrix3x2fv == nil { - return errors.New("glUniformMatrix3x2fv") - } - gpUniformMatrix3x4dv = (C.GPUNIFORMMATRIX3X4DV)(getProcAddr("glUniformMatrix3x4dv")) - gpUniformMatrix3x4fv = (C.GPUNIFORMMATRIX3X4FV)(getProcAddr("glUniformMatrix3x4fv")) - if gpUniformMatrix3x4fv == nil { - return errors.New("glUniformMatrix3x4fv") - } - gpUniformMatrix4dv = (C.GPUNIFORMMATRIX4DV)(getProcAddr("glUniformMatrix4dv")) - gpUniformMatrix4fv = (C.GPUNIFORMMATRIX4FV)(getProcAddr("glUniformMatrix4fv")) - if gpUniformMatrix4fv == nil { - return errors.New("glUniformMatrix4fv") - } - gpUniformMatrix4fvARB = (C.GPUNIFORMMATRIX4FVARB)(getProcAddr("glUniformMatrix4fvARB")) - gpUniformMatrix4x2dv = (C.GPUNIFORMMATRIX4X2DV)(getProcAddr("glUniformMatrix4x2dv")) - gpUniformMatrix4x2fv = (C.GPUNIFORMMATRIX4X2FV)(getProcAddr("glUniformMatrix4x2fv")) - if gpUniformMatrix4x2fv == nil { - return errors.New("glUniformMatrix4x2fv") - } - gpUniformMatrix4x3dv = (C.GPUNIFORMMATRIX4X3DV)(getProcAddr("glUniformMatrix4x3dv")) - gpUniformMatrix4x3fv = (C.GPUNIFORMMATRIX4X3FV)(getProcAddr("glUniformMatrix4x3fv")) - if gpUniformMatrix4x3fv == nil { - return errors.New("glUniformMatrix4x3fv") - } - gpUniformSubroutinesuiv = (C.GPUNIFORMSUBROUTINESUIV)(getProcAddr("glUniformSubroutinesuiv")) - gpUniformui64NV = (C.GPUNIFORMUI64NV)(getProcAddr("glUniformui64NV")) - gpUniformui64vNV = (C.GPUNIFORMUI64VNV)(getProcAddr("glUniformui64vNV")) - gpUnlockArraysEXT = (C.GPUNLOCKARRAYSEXT)(getProcAddr("glUnlockArraysEXT")) - gpUnmapBuffer = (C.GPUNMAPBUFFER)(getProcAddr("glUnmapBuffer")) - if gpUnmapBuffer == nil { - return errors.New("glUnmapBuffer") - } - gpUnmapBufferARB = (C.GPUNMAPBUFFERARB)(getProcAddr("glUnmapBufferARB")) - gpUnmapNamedBuffer = (C.GPUNMAPNAMEDBUFFER)(getProcAddr("glUnmapNamedBuffer")) - gpUnmapNamedBufferEXT = (C.GPUNMAPNAMEDBUFFEREXT)(getProcAddr("glUnmapNamedBufferEXT")) - gpUnmapObjectBufferATI = (C.GPUNMAPOBJECTBUFFERATI)(getProcAddr("glUnmapObjectBufferATI")) - gpUnmapTexture2DINTEL = (C.GPUNMAPTEXTURE2DINTEL)(getProcAddr("glUnmapTexture2DINTEL")) - gpUpdateObjectBufferATI = (C.GPUPDATEOBJECTBUFFERATI)(getProcAddr("glUpdateObjectBufferATI")) - gpUseProgram = (C.GPUSEPROGRAM)(getProcAddr("glUseProgram")) - if gpUseProgram == nil { - return errors.New("glUseProgram") - } - gpUseProgramObjectARB = (C.GPUSEPROGRAMOBJECTARB)(getProcAddr("glUseProgramObjectARB")) - gpUseProgramStages = (C.GPUSEPROGRAMSTAGES)(getProcAddr("glUseProgramStages")) - gpUseProgramStagesEXT = (C.GPUSEPROGRAMSTAGESEXT)(getProcAddr("glUseProgramStagesEXT")) - gpUseShaderProgramEXT = (C.GPUSESHADERPROGRAMEXT)(getProcAddr("glUseShaderProgramEXT")) - gpVDPAUFiniNV = (C.GPVDPAUFININV)(getProcAddr("glVDPAUFiniNV")) - gpVDPAUGetSurfaceivNV = (C.GPVDPAUGETSURFACEIVNV)(getProcAddr("glVDPAUGetSurfaceivNV")) - gpVDPAUInitNV = (C.GPVDPAUINITNV)(getProcAddr("glVDPAUInitNV")) - gpVDPAUIsSurfaceNV = (C.GPVDPAUISSURFACENV)(getProcAddr("glVDPAUIsSurfaceNV")) - gpVDPAUMapSurfacesNV = (C.GPVDPAUMAPSURFACESNV)(getProcAddr("glVDPAUMapSurfacesNV")) - gpVDPAURegisterOutputSurfaceNV = (C.GPVDPAUREGISTEROUTPUTSURFACENV)(getProcAddr("glVDPAURegisterOutputSurfaceNV")) - gpVDPAURegisterVideoSurfaceNV = (C.GPVDPAUREGISTERVIDEOSURFACENV)(getProcAddr("glVDPAURegisterVideoSurfaceNV")) - gpVDPAUSurfaceAccessNV = (C.GPVDPAUSURFACEACCESSNV)(getProcAddr("glVDPAUSurfaceAccessNV")) - gpVDPAUUnmapSurfacesNV = (C.GPVDPAUUNMAPSURFACESNV)(getProcAddr("glVDPAUUnmapSurfacesNV")) - gpVDPAUUnregisterSurfaceNV = (C.GPVDPAUUNREGISTERSURFACENV)(getProcAddr("glVDPAUUnregisterSurfaceNV")) - gpValidateProgram = (C.GPVALIDATEPROGRAM)(getProcAddr("glValidateProgram")) - if gpValidateProgram == nil { - return errors.New("glValidateProgram") - } - gpValidateProgramARB = (C.GPVALIDATEPROGRAMARB)(getProcAddr("glValidateProgramARB")) - gpValidateProgramPipeline = (C.GPVALIDATEPROGRAMPIPELINE)(getProcAddr("glValidateProgramPipeline")) - gpValidateProgramPipelineEXT = (C.GPVALIDATEPROGRAMPIPELINEEXT)(getProcAddr("glValidateProgramPipelineEXT")) - gpVariantArrayObjectATI = (C.GPVARIANTARRAYOBJECTATI)(getProcAddr("glVariantArrayObjectATI")) - gpVariantPointerEXT = (C.GPVARIANTPOINTEREXT)(getProcAddr("glVariantPointerEXT")) - gpVariantbvEXT = (C.GPVARIANTBVEXT)(getProcAddr("glVariantbvEXT")) - gpVariantdvEXT = (C.GPVARIANTDVEXT)(getProcAddr("glVariantdvEXT")) - gpVariantfvEXT = (C.GPVARIANTFVEXT)(getProcAddr("glVariantfvEXT")) - gpVariantivEXT = (C.GPVARIANTIVEXT)(getProcAddr("glVariantivEXT")) - gpVariantsvEXT = (C.GPVARIANTSVEXT)(getProcAddr("glVariantsvEXT")) - gpVariantubvEXT = (C.GPVARIANTUBVEXT)(getProcAddr("glVariantubvEXT")) - gpVariantuivEXT = (C.GPVARIANTUIVEXT)(getProcAddr("glVariantuivEXT")) - gpVariantusvEXT = (C.GPVARIANTUSVEXT)(getProcAddr("glVariantusvEXT")) - gpVertex2bOES = (C.GPVERTEX2BOES)(getProcAddr("glVertex2bOES")) - gpVertex2bvOES = (C.GPVERTEX2BVOES)(getProcAddr("glVertex2bvOES")) - gpVertex2d = (C.GPVERTEX2D)(getProcAddr("glVertex2d")) - if gpVertex2d == nil { - return errors.New("glVertex2d") - } - gpVertex2dv = (C.GPVERTEX2DV)(getProcAddr("glVertex2dv")) - if gpVertex2dv == nil { - return errors.New("glVertex2dv") - } - gpVertex2f = (C.GPVERTEX2F)(getProcAddr("glVertex2f")) - if gpVertex2f == nil { - return errors.New("glVertex2f") - } - gpVertex2fv = (C.GPVERTEX2FV)(getProcAddr("glVertex2fv")) - if gpVertex2fv == nil { - return errors.New("glVertex2fv") - } - gpVertex2hNV = (C.GPVERTEX2HNV)(getProcAddr("glVertex2hNV")) - gpVertex2hvNV = (C.GPVERTEX2HVNV)(getProcAddr("glVertex2hvNV")) - gpVertex2i = (C.GPVERTEX2I)(getProcAddr("glVertex2i")) - if gpVertex2i == nil { - return errors.New("glVertex2i") - } - gpVertex2iv = (C.GPVERTEX2IV)(getProcAddr("glVertex2iv")) - if gpVertex2iv == nil { - return errors.New("glVertex2iv") - } - gpVertex2s = (C.GPVERTEX2S)(getProcAddr("glVertex2s")) - if gpVertex2s == nil { - return errors.New("glVertex2s") - } - gpVertex2sv = (C.GPVERTEX2SV)(getProcAddr("glVertex2sv")) - if gpVertex2sv == nil { - return errors.New("glVertex2sv") - } - gpVertex2xOES = (C.GPVERTEX2XOES)(getProcAddr("glVertex2xOES")) - gpVertex2xvOES = (C.GPVERTEX2XVOES)(getProcAddr("glVertex2xvOES")) - gpVertex3bOES = (C.GPVERTEX3BOES)(getProcAddr("glVertex3bOES")) - gpVertex3bvOES = (C.GPVERTEX3BVOES)(getProcAddr("glVertex3bvOES")) - gpVertex3d = (C.GPVERTEX3D)(getProcAddr("glVertex3d")) - if gpVertex3d == nil { - return errors.New("glVertex3d") - } - gpVertex3dv = (C.GPVERTEX3DV)(getProcAddr("glVertex3dv")) - if gpVertex3dv == nil { - return errors.New("glVertex3dv") - } - gpVertex3f = (C.GPVERTEX3F)(getProcAddr("glVertex3f")) - if gpVertex3f == nil { - return errors.New("glVertex3f") - } - gpVertex3fv = (C.GPVERTEX3FV)(getProcAddr("glVertex3fv")) - if gpVertex3fv == nil { - return errors.New("glVertex3fv") - } - gpVertex3hNV = (C.GPVERTEX3HNV)(getProcAddr("glVertex3hNV")) - gpVertex3hvNV = (C.GPVERTEX3HVNV)(getProcAddr("glVertex3hvNV")) - gpVertex3i = (C.GPVERTEX3I)(getProcAddr("glVertex3i")) - if gpVertex3i == nil { - return errors.New("glVertex3i") - } - gpVertex3iv = (C.GPVERTEX3IV)(getProcAddr("glVertex3iv")) - if gpVertex3iv == nil { - return errors.New("glVertex3iv") - } - gpVertex3s = (C.GPVERTEX3S)(getProcAddr("glVertex3s")) - if gpVertex3s == nil { - return errors.New("glVertex3s") - } - gpVertex3sv = (C.GPVERTEX3SV)(getProcAddr("glVertex3sv")) - if gpVertex3sv == nil { - return errors.New("glVertex3sv") - } - gpVertex3xOES = (C.GPVERTEX3XOES)(getProcAddr("glVertex3xOES")) - gpVertex3xvOES = (C.GPVERTEX3XVOES)(getProcAddr("glVertex3xvOES")) - gpVertex4bOES = (C.GPVERTEX4BOES)(getProcAddr("glVertex4bOES")) - gpVertex4bvOES = (C.GPVERTEX4BVOES)(getProcAddr("glVertex4bvOES")) - gpVertex4d = (C.GPVERTEX4D)(getProcAddr("glVertex4d")) - if gpVertex4d == nil { - return errors.New("glVertex4d") - } - gpVertex4dv = (C.GPVERTEX4DV)(getProcAddr("glVertex4dv")) - if gpVertex4dv == nil { - return errors.New("glVertex4dv") - } - gpVertex4f = (C.GPVERTEX4F)(getProcAddr("glVertex4f")) - if gpVertex4f == nil { - return errors.New("glVertex4f") - } - gpVertex4fv = (C.GPVERTEX4FV)(getProcAddr("glVertex4fv")) - if gpVertex4fv == nil { - return errors.New("glVertex4fv") - } - gpVertex4hNV = (C.GPVERTEX4HNV)(getProcAddr("glVertex4hNV")) - gpVertex4hvNV = (C.GPVERTEX4HVNV)(getProcAddr("glVertex4hvNV")) - gpVertex4i = (C.GPVERTEX4I)(getProcAddr("glVertex4i")) - if gpVertex4i == nil { - return errors.New("glVertex4i") - } - gpVertex4iv = (C.GPVERTEX4IV)(getProcAddr("glVertex4iv")) - if gpVertex4iv == nil { - return errors.New("glVertex4iv") - } - gpVertex4s = (C.GPVERTEX4S)(getProcAddr("glVertex4s")) - if gpVertex4s == nil { - return errors.New("glVertex4s") - } - gpVertex4sv = (C.GPVERTEX4SV)(getProcAddr("glVertex4sv")) - if gpVertex4sv == nil { - return errors.New("glVertex4sv") - } - gpVertex4xOES = (C.GPVERTEX4XOES)(getProcAddr("glVertex4xOES")) - gpVertex4xvOES = (C.GPVERTEX4XVOES)(getProcAddr("glVertex4xvOES")) - gpVertexArrayAttribBinding = (C.GPVERTEXARRAYATTRIBBINDING)(getProcAddr("glVertexArrayAttribBinding")) - gpVertexArrayAttribFormat = (C.GPVERTEXARRAYATTRIBFORMAT)(getProcAddr("glVertexArrayAttribFormat")) - gpVertexArrayAttribIFormat = (C.GPVERTEXARRAYATTRIBIFORMAT)(getProcAddr("glVertexArrayAttribIFormat")) - gpVertexArrayAttribLFormat = (C.GPVERTEXARRAYATTRIBLFORMAT)(getProcAddr("glVertexArrayAttribLFormat")) - gpVertexArrayBindVertexBufferEXT = (C.GPVERTEXARRAYBINDVERTEXBUFFEREXT)(getProcAddr("glVertexArrayBindVertexBufferEXT")) - gpVertexArrayBindingDivisor = (C.GPVERTEXARRAYBINDINGDIVISOR)(getProcAddr("glVertexArrayBindingDivisor")) - gpVertexArrayColorOffsetEXT = (C.GPVERTEXARRAYCOLOROFFSETEXT)(getProcAddr("glVertexArrayColorOffsetEXT")) - gpVertexArrayEdgeFlagOffsetEXT = (C.GPVERTEXARRAYEDGEFLAGOFFSETEXT)(getProcAddr("glVertexArrayEdgeFlagOffsetEXT")) - gpVertexArrayElementBuffer = (C.GPVERTEXARRAYELEMENTBUFFER)(getProcAddr("glVertexArrayElementBuffer")) - gpVertexArrayFogCoordOffsetEXT = (C.GPVERTEXARRAYFOGCOORDOFFSETEXT)(getProcAddr("glVertexArrayFogCoordOffsetEXT")) - gpVertexArrayIndexOffsetEXT = (C.GPVERTEXARRAYINDEXOFFSETEXT)(getProcAddr("glVertexArrayIndexOffsetEXT")) - gpVertexArrayMultiTexCoordOffsetEXT = (C.GPVERTEXARRAYMULTITEXCOORDOFFSETEXT)(getProcAddr("glVertexArrayMultiTexCoordOffsetEXT")) - gpVertexArrayNormalOffsetEXT = (C.GPVERTEXARRAYNORMALOFFSETEXT)(getProcAddr("glVertexArrayNormalOffsetEXT")) - gpVertexArrayParameteriAPPLE = (C.GPVERTEXARRAYPARAMETERIAPPLE)(getProcAddr("glVertexArrayParameteriAPPLE")) - gpVertexArrayRangeAPPLE = (C.GPVERTEXARRAYRANGEAPPLE)(getProcAddr("glVertexArrayRangeAPPLE")) - gpVertexArrayRangeNV = (C.GPVERTEXARRAYRANGENV)(getProcAddr("glVertexArrayRangeNV")) - gpVertexArraySecondaryColorOffsetEXT = (C.GPVERTEXARRAYSECONDARYCOLOROFFSETEXT)(getProcAddr("glVertexArraySecondaryColorOffsetEXT")) - gpVertexArrayTexCoordOffsetEXT = (C.GPVERTEXARRAYTEXCOORDOFFSETEXT)(getProcAddr("glVertexArrayTexCoordOffsetEXT")) - gpVertexArrayVertexAttribBindingEXT = (C.GPVERTEXARRAYVERTEXATTRIBBINDINGEXT)(getProcAddr("glVertexArrayVertexAttribBindingEXT")) - gpVertexArrayVertexAttribDivisorEXT = (C.GPVERTEXARRAYVERTEXATTRIBDIVISOREXT)(getProcAddr("glVertexArrayVertexAttribDivisorEXT")) - gpVertexArrayVertexAttribFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBFORMATEXT)(getProcAddr("glVertexArrayVertexAttribFormatEXT")) - gpVertexArrayVertexAttribIFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBIFORMATEXT)(getProcAddr("glVertexArrayVertexAttribIFormatEXT")) - gpVertexArrayVertexAttribIOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBIOFFSETEXT)(getProcAddr("glVertexArrayVertexAttribIOffsetEXT")) - gpVertexArrayVertexAttribLFormatEXT = (C.GPVERTEXARRAYVERTEXATTRIBLFORMATEXT)(getProcAddr("glVertexArrayVertexAttribLFormatEXT")) - gpVertexArrayVertexAttribLOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBLOFFSETEXT)(getProcAddr("glVertexArrayVertexAttribLOffsetEXT")) - gpVertexArrayVertexAttribOffsetEXT = (C.GPVERTEXARRAYVERTEXATTRIBOFFSETEXT)(getProcAddr("glVertexArrayVertexAttribOffsetEXT")) - gpVertexArrayVertexBindingDivisorEXT = (C.GPVERTEXARRAYVERTEXBINDINGDIVISOREXT)(getProcAddr("glVertexArrayVertexBindingDivisorEXT")) - gpVertexArrayVertexBuffer = (C.GPVERTEXARRAYVERTEXBUFFER)(getProcAddr("glVertexArrayVertexBuffer")) - gpVertexArrayVertexBuffers = (C.GPVERTEXARRAYVERTEXBUFFERS)(getProcAddr("glVertexArrayVertexBuffers")) - gpVertexArrayVertexOffsetEXT = (C.GPVERTEXARRAYVERTEXOFFSETEXT)(getProcAddr("glVertexArrayVertexOffsetEXT")) - gpVertexAttrib1d = (C.GPVERTEXATTRIB1D)(getProcAddr("glVertexAttrib1d")) - if gpVertexAttrib1d == nil { - return errors.New("glVertexAttrib1d") - } - gpVertexAttrib1dARB = (C.GPVERTEXATTRIB1DARB)(getProcAddr("glVertexAttrib1dARB")) - gpVertexAttrib1dNV = (C.GPVERTEXATTRIB1DNV)(getProcAddr("glVertexAttrib1dNV")) - gpVertexAttrib1dv = (C.GPVERTEXATTRIB1DV)(getProcAddr("glVertexAttrib1dv")) - if gpVertexAttrib1dv == nil { - return errors.New("glVertexAttrib1dv") - } - gpVertexAttrib1dvARB = (C.GPVERTEXATTRIB1DVARB)(getProcAddr("glVertexAttrib1dvARB")) - gpVertexAttrib1dvNV = (C.GPVERTEXATTRIB1DVNV)(getProcAddr("glVertexAttrib1dvNV")) - gpVertexAttrib1f = (C.GPVERTEXATTRIB1F)(getProcAddr("glVertexAttrib1f")) - if gpVertexAttrib1f == nil { - return errors.New("glVertexAttrib1f") - } - gpVertexAttrib1fARB = (C.GPVERTEXATTRIB1FARB)(getProcAddr("glVertexAttrib1fARB")) - gpVertexAttrib1fNV = (C.GPVERTEXATTRIB1FNV)(getProcAddr("glVertexAttrib1fNV")) - gpVertexAttrib1fv = (C.GPVERTEXATTRIB1FV)(getProcAddr("glVertexAttrib1fv")) - if gpVertexAttrib1fv == nil { - return errors.New("glVertexAttrib1fv") - } - gpVertexAttrib1fvARB = (C.GPVERTEXATTRIB1FVARB)(getProcAddr("glVertexAttrib1fvARB")) - gpVertexAttrib1fvNV = (C.GPVERTEXATTRIB1FVNV)(getProcAddr("glVertexAttrib1fvNV")) - gpVertexAttrib1hNV = (C.GPVERTEXATTRIB1HNV)(getProcAddr("glVertexAttrib1hNV")) - gpVertexAttrib1hvNV = (C.GPVERTEXATTRIB1HVNV)(getProcAddr("glVertexAttrib1hvNV")) - gpVertexAttrib1s = (C.GPVERTEXATTRIB1S)(getProcAddr("glVertexAttrib1s")) - if gpVertexAttrib1s == nil { - return errors.New("glVertexAttrib1s") - } - gpVertexAttrib1sARB = (C.GPVERTEXATTRIB1SARB)(getProcAddr("glVertexAttrib1sARB")) - gpVertexAttrib1sNV = (C.GPVERTEXATTRIB1SNV)(getProcAddr("glVertexAttrib1sNV")) - gpVertexAttrib1sv = (C.GPVERTEXATTRIB1SV)(getProcAddr("glVertexAttrib1sv")) - if gpVertexAttrib1sv == nil { - return errors.New("glVertexAttrib1sv") - } - gpVertexAttrib1svARB = (C.GPVERTEXATTRIB1SVARB)(getProcAddr("glVertexAttrib1svARB")) - gpVertexAttrib1svNV = (C.GPVERTEXATTRIB1SVNV)(getProcAddr("glVertexAttrib1svNV")) - gpVertexAttrib2d = (C.GPVERTEXATTRIB2D)(getProcAddr("glVertexAttrib2d")) - if gpVertexAttrib2d == nil { - return errors.New("glVertexAttrib2d") - } - gpVertexAttrib2dARB = (C.GPVERTEXATTRIB2DARB)(getProcAddr("glVertexAttrib2dARB")) - gpVertexAttrib2dNV = (C.GPVERTEXATTRIB2DNV)(getProcAddr("glVertexAttrib2dNV")) - gpVertexAttrib2dv = (C.GPVERTEXATTRIB2DV)(getProcAddr("glVertexAttrib2dv")) - if gpVertexAttrib2dv == nil { - return errors.New("glVertexAttrib2dv") - } - gpVertexAttrib2dvARB = (C.GPVERTEXATTRIB2DVARB)(getProcAddr("glVertexAttrib2dvARB")) - gpVertexAttrib2dvNV = (C.GPVERTEXATTRIB2DVNV)(getProcAddr("glVertexAttrib2dvNV")) - gpVertexAttrib2f = (C.GPVERTEXATTRIB2F)(getProcAddr("glVertexAttrib2f")) - if gpVertexAttrib2f == nil { - return errors.New("glVertexAttrib2f") - } - gpVertexAttrib2fARB = (C.GPVERTEXATTRIB2FARB)(getProcAddr("glVertexAttrib2fARB")) - gpVertexAttrib2fNV = (C.GPVERTEXATTRIB2FNV)(getProcAddr("glVertexAttrib2fNV")) - gpVertexAttrib2fv = (C.GPVERTEXATTRIB2FV)(getProcAddr("glVertexAttrib2fv")) - if gpVertexAttrib2fv == nil { - return errors.New("glVertexAttrib2fv") - } - gpVertexAttrib2fvARB = (C.GPVERTEXATTRIB2FVARB)(getProcAddr("glVertexAttrib2fvARB")) - gpVertexAttrib2fvNV = (C.GPVERTEXATTRIB2FVNV)(getProcAddr("glVertexAttrib2fvNV")) - gpVertexAttrib2hNV = (C.GPVERTEXATTRIB2HNV)(getProcAddr("glVertexAttrib2hNV")) - gpVertexAttrib2hvNV = (C.GPVERTEXATTRIB2HVNV)(getProcAddr("glVertexAttrib2hvNV")) - gpVertexAttrib2s = (C.GPVERTEXATTRIB2S)(getProcAddr("glVertexAttrib2s")) - if gpVertexAttrib2s == nil { - return errors.New("glVertexAttrib2s") - } - gpVertexAttrib2sARB = (C.GPVERTEXATTRIB2SARB)(getProcAddr("glVertexAttrib2sARB")) - gpVertexAttrib2sNV = (C.GPVERTEXATTRIB2SNV)(getProcAddr("glVertexAttrib2sNV")) - gpVertexAttrib2sv = (C.GPVERTEXATTRIB2SV)(getProcAddr("glVertexAttrib2sv")) - if gpVertexAttrib2sv == nil { - return errors.New("glVertexAttrib2sv") - } - gpVertexAttrib2svARB = (C.GPVERTEXATTRIB2SVARB)(getProcAddr("glVertexAttrib2svARB")) - gpVertexAttrib2svNV = (C.GPVERTEXATTRIB2SVNV)(getProcAddr("glVertexAttrib2svNV")) - gpVertexAttrib3d = (C.GPVERTEXATTRIB3D)(getProcAddr("glVertexAttrib3d")) - if gpVertexAttrib3d == nil { - return errors.New("glVertexAttrib3d") - } - gpVertexAttrib3dARB = (C.GPVERTEXATTRIB3DARB)(getProcAddr("glVertexAttrib3dARB")) - gpVertexAttrib3dNV = (C.GPVERTEXATTRIB3DNV)(getProcAddr("glVertexAttrib3dNV")) - gpVertexAttrib3dv = (C.GPVERTEXATTRIB3DV)(getProcAddr("glVertexAttrib3dv")) - if gpVertexAttrib3dv == nil { - return errors.New("glVertexAttrib3dv") - } - gpVertexAttrib3dvARB = (C.GPVERTEXATTRIB3DVARB)(getProcAddr("glVertexAttrib3dvARB")) - gpVertexAttrib3dvNV = (C.GPVERTEXATTRIB3DVNV)(getProcAddr("glVertexAttrib3dvNV")) - gpVertexAttrib3f = (C.GPVERTEXATTRIB3F)(getProcAddr("glVertexAttrib3f")) - if gpVertexAttrib3f == nil { - return errors.New("glVertexAttrib3f") - } - gpVertexAttrib3fARB = (C.GPVERTEXATTRIB3FARB)(getProcAddr("glVertexAttrib3fARB")) - gpVertexAttrib3fNV = (C.GPVERTEXATTRIB3FNV)(getProcAddr("glVertexAttrib3fNV")) - gpVertexAttrib3fv = (C.GPVERTEXATTRIB3FV)(getProcAddr("glVertexAttrib3fv")) - if gpVertexAttrib3fv == nil { - return errors.New("glVertexAttrib3fv") - } - gpVertexAttrib3fvARB = (C.GPVERTEXATTRIB3FVARB)(getProcAddr("glVertexAttrib3fvARB")) - gpVertexAttrib3fvNV = (C.GPVERTEXATTRIB3FVNV)(getProcAddr("glVertexAttrib3fvNV")) - gpVertexAttrib3hNV = (C.GPVERTEXATTRIB3HNV)(getProcAddr("glVertexAttrib3hNV")) - gpVertexAttrib3hvNV = (C.GPVERTEXATTRIB3HVNV)(getProcAddr("glVertexAttrib3hvNV")) - gpVertexAttrib3s = (C.GPVERTEXATTRIB3S)(getProcAddr("glVertexAttrib3s")) - if gpVertexAttrib3s == nil { - return errors.New("glVertexAttrib3s") - } - gpVertexAttrib3sARB = (C.GPVERTEXATTRIB3SARB)(getProcAddr("glVertexAttrib3sARB")) - gpVertexAttrib3sNV = (C.GPVERTEXATTRIB3SNV)(getProcAddr("glVertexAttrib3sNV")) - gpVertexAttrib3sv = (C.GPVERTEXATTRIB3SV)(getProcAddr("glVertexAttrib3sv")) - if gpVertexAttrib3sv == nil { - return errors.New("glVertexAttrib3sv") - } - gpVertexAttrib3svARB = (C.GPVERTEXATTRIB3SVARB)(getProcAddr("glVertexAttrib3svARB")) - gpVertexAttrib3svNV = (C.GPVERTEXATTRIB3SVNV)(getProcAddr("glVertexAttrib3svNV")) - gpVertexAttrib4Nbv = (C.GPVERTEXATTRIB4NBV)(getProcAddr("glVertexAttrib4Nbv")) - if gpVertexAttrib4Nbv == nil { - return errors.New("glVertexAttrib4Nbv") - } - gpVertexAttrib4NbvARB = (C.GPVERTEXATTRIB4NBVARB)(getProcAddr("glVertexAttrib4NbvARB")) - gpVertexAttrib4Niv = (C.GPVERTEXATTRIB4NIV)(getProcAddr("glVertexAttrib4Niv")) - if gpVertexAttrib4Niv == nil { - return errors.New("glVertexAttrib4Niv") - } - gpVertexAttrib4NivARB = (C.GPVERTEXATTRIB4NIVARB)(getProcAddr("glVertexAttrib4NivARB")) - gpVertexAttrib4Nsv = (C.GPVERTEXATTRIB4NSV)(getProcAddr("glVertexAttrib4Nsv")) - if gpVertexAttrib4Nsv == nil { - return errors.New("glVertexAttrib4Nsv") - } - gpVertexAttrib4NsvARB = (C.GPVERTEXATTRIB4NSVARB)(getProcAddr("glVertexAttrib4NsvARB")) - gpVertexAttrib4Nub = (C.GPVERTEXATTRIB4NUB)(getProcAddr("glVertexAttrib4Nub")) - if gpVertexAttrib4Nub == nil { - return errors.New("glVertexAttrib4Nub") - } - gpVertexAttrib4NubARB = (C.GPVERTEXATTRIB4NUBARB)(getProcAddr("glVertexAttrib4NubARB")) - gpVertexAttrib4Nubv = (C.GPVERTEXATTRIB4NUBV)(getProcAddr("glVertexAttrib4Nubv")) - if gpVertexAttrib4Nubv == nil { - return errors.New("glVertexAttrib4Nubv") - } - gpVertexAttrib4NubvARB = (C.GPVERTEXATTRIB4NUBVARB)(getProcAddr("glVertexAttrib4NubvARB")) - gpVertexAttrib4Nuiv = (C.GPVERTEXATTRIB4NUIV)(getProcAddr("glVertexAttrib4Nuiv")) - if gpVertexAttrib4Nuiv == nil { - return errors.New("glVertexAttrib4Nuiv") - } - gpVertexAttrib4NuivARB = (C.GPVERTEXATTRIB4NUIVARB)(getProcAddr("glVertexAttrib4NuivARB")) - gpVertexAttrib4Nusv = (C.GPVERTEXATTRIB4NUSV)(getProcAddr("glVertexAttrib4Nusv")) - if gpVertexAttrib4Nusv == nil { - return errors.New("glVertexAttrib4Nusv") - } - gpVertexAttrib4NusvARB = (C.GPVERTEXATTRIB4NUSVARB)(getProcAddr("glVertexAttrib4NusvARB")) - gpVertexAttrib4bv = (C.GPVERTEXATTRIB4BV)(getProcAddr("glVertexAttrib4bv")) - if gpVertexAttrib4bv == nil { - return errors.New("glVertexAttrib4bv") - } - gpVertexAttrib4bvARB = (C.GPVERTEXATTRIB4BVARB)(getProcAddr("glVertexAttrib4bvARB")) - gpVertexAttrib4d = (C.GPVERTEXATTRIB4D)(getProcAddr("glVertexAttrib4d")) - if gpVertexAttrib4d == nil { - return errors.New("glVertexAttrib4d") - } - gpVertexAttrib4dARB = (C.GPVERTEXATTRIB4DARB)(getProcAddr("glVertexAttrib4dARB")) - gpVertexAttrib4dNV = (C.GPVERTEXATTRIB4DNV)(getProcAddr("glVertexAttrib4dNV")) - gpVertexAttrib4dv = (C.GPVERTEXATTRIB4DV)(getProcAddr("glVertexAttrib4dv")) - if gpVertexAttrib4dv == nil { - return errors.New("glVertexAttrib4dv") - } - gpVertexAttrib4dvARB = (C.GPVERTEXATTRIB4DVARB)(getProcAddr("glVertexAttrib4dvARB")) - gpVertexAttrib4dvNV = (C.GPVERTEXATTRIB4DVNV)(getProcAddr("glVertexAttrib4dvNV")) - gpVertexAttrib4f = (C.GPVERTEXATTRIB4F)(getProcAddr("glVertexAttrib4f")) - if gpVertexAttrib4f == nil { - return errors.New("glVertexAttrib4f") - } - gpVertexAttrib4fARB = (C.GPVERTEXATTRIB4FARB)(getProcAddr("glVertexAttrib4fARB")) - gpVertexAttrib4fNV = (C.GPVERTEXATTRIB4FNV)(getProcAddr("glVertexAttrib4fNV")) - gpVertexAttrib4fv = (C.GPVERTEXATTRIB4FV)(getProcAddr("glVertexAttrib4fv")) - if gpVertexAttrib4fv == nil { - return errors.New("glVertexAttrib4fv") - } - gpVertexAttrib4fvARB = (C.GPVERTEXATTRIB4FVARB)(getProcAddr("glVertexAttrib4fvARB")) - gpVertexAttrib4fvNV = (C.GPVERTEXATTRIB4FVNV)(getProcAddr("glVertexAttrib4fvNV")) - gpVertexAttrib4hNV = (C.GPVERTEXATTRIB4HNV)(getProcAddr("glVertexAttrib4hNV")) - gpVertexAttrib4hvNV = (C.GPVERTEXATTRIB4HVNV)(getProcAddr("glVertexAttrib4hvNV")) - gpVertexAttrib4iv = (C.GPVERTEXATTRIB4IV)(getProcAddr("glVertexAttrib4iv")) - if gpVertexAttrib4iv == nil { - return errors.New("glVertexAttrib4iv") - } - gpVertexAttrib4ivARB = (C.GPVERTEXATTRIB4IVARB)(getProcAddr("glVertexAttrib4ivARB")) - gpVertexAttrib4s = (C.GPVERTEXATTRIB4S)(getProcAddr("glVertexAttrib4s")) - if gpVertexAttrib4s == nil { - return errors.New("glVertexAttrib4s") - } - gpVertexAttrib4sARB = (C.GPVERTEXATTRIB4SARB)(getProcAddr("glVertexAttrib4sARB")) - gpVertexAttrib4sNV = (C.GPVERTEXATTRIB4SNV)(getProcAddr("glVertexAttrib4sNV")) - gpVertexAttrib4sv = (C.GPVERTEXATTRIB4SV)(getProcAddr("glVertexAttrib4sv")) - if gpVertexAttrib4sv == nil { - return errors.New("glVertexAttrib4sv") - } - gpVertexAttrib4svARB = (C.GPVERTEXATTRIB4SVARB)(getProcAddr("glVertexAttrib4svARB")) - gpVertexAttrib4svNV = (C.GPVERTEXATTRIB4SVNV)(getProcAddr("glVertexAttrib4svNV")) - gpVertexAttrib4ubNV = (C.GPVERTEXATTRIB4UBNV)(getProcAddr("glVertexAttrib4ubNV")) - gpVertexAttrib4ubv = (C.GPVERTEXATTRIB4UBV)(getProcAddr("glVertexAttrib4ubv")) - if gpVertexAttrib4ubv == nil { - return errors.New("glVertexAttrib4ubv") - } - gpVertexAttrib4ubvARB = (C.GPVERTEXATTRIB4UBVARB)(getProcAddr("glVertexAttrib4ubvARB")) - gpVertexAttrib4ubvNV = (C.GPVERTEXATTRIB4UBVNV)(getProcAddr("glVertexAttrib4ubvNV")) - gpVertexAttrib4uiv = (C.GPVERTEXATTRIB4UIV)(getProcAddr("glVertexAttrib4uiv")) - if gpVertexAttrib4uiv == nil { - return errors.New("glVertexAttrib4uiv") - } - gpVertexAttrib4uivARB = (C.GPVERTEXATTRIB4UIVARB)(getProcAddr("glVertexAttrib4uivARB")) - gpVertexAttrib4usv = (C.GPVERTEXATTRIB4USV)(getProcAddr("glVertexAttrib4usv")) - if gpVertexAttrib4usv == nil { - return errors.New("glVertexAttrib4usv") - } - gpVertexAttrib4usvARB = (C.GPVERTEXATTRIB4USVARB)(getProcAddr("glVertexAttrib4usvARB")) - gpVertexAttribArrayObjectATI = (C.GPVERTEXATTRIBARRAYOBJECTATI)(getProcAddr("glVertexAttribArrayObjectATI")) - gpVertexAttribBinding = (C.GPVERTEXATTRIBBINDING)(getProcAddr("glVertexAttribBinding")) - gpVertexAttribDivisorARB = (C.GPVERTEXATTRIBDIVISORARB)(getProcAddr("glVertexAttribDivisorARB")) - gpVertexAttribFormat = (C.GPVERTEXATTRIBFORMAT)(getProcAddr("glVertexAttribFormat")) - gpVertexAttribFormatNV = (C.GPVERTEXATTRIBFORMATNV)(getProcAddr("glVertexAttribFormatNV")) - gpVertexAttribI1iEXT = (C.GPVERTEXATTRIBI1IEXT)(getProcAddr("glVertexAttribI1iEXT")) - gpVertexAttribI1ivEXT = (C.GPVERTEXATTRIBI1IVEXT)(getProcAddr("glVertexAttribI1ivEXT")) - gpVertexAttribI1uiEXT = (C.GPVERTEXATTRIBI1UIEXT)(getProcAddr("glVertexAttribI1uiEXT")) - gpVertexAttribI1uivEXT = (C.GPVERTEXATTRIBI1UIVEXT)(getProcAddr("glVertexAttribI1uivEXT")) - gpVertexAttribI2iEXT = (C.GPVERTEXATTRIBI2IEXT)(getProcAddr("glVertexAttribI2iEXT")) - gpVertexAttribI2ivEXT = (C.GPVERTEXATTRIBI2IVEXT)(getProcAddr("glVertexAttribI2ivEXT")) - gpVertexAttribI2uiEXT = (C.GPVERTEXATTRIBI2UIEXT)(getProcAddr("glVertexAttribI2uiEXT")) - gpVertexAttribI2uivEXT = (C.GPVERTEXATTRIBI2UIVEXT)(getProcAddr("glVertexAttribI2uivEXT")) - gpVertexAttribI3iEXT = (C.GPVERTEXATTRIBI3IEXT)(getProcAddr("glVertexAttribI3iEXT")) - gpVertexAttribI3ivEXT = (C.GPVERTEXATTRIBI3IVEXT)(getProcAddr("glVertexAttribI3ivEXT")) - gpVertexAttribI3uiEXT = (C.GPVERTEXATTRIBI3UIEXT)(getProcAddr("glVertexAttribI3uiEXT")) - gpVertexAttribI3uivEXT = (C.GPVERTEXATTRIBI3UIVEXT)(getProcAddr("glVertexAttribI3uivEXT")) - gpVertexAttribI4bvEXT = (C.GPVERTEXATTRIBI4BVEXT)(getProcAddr("glVertexAttribI4bvEXT")) - gpVertexAttribI4iEXT = (C.GPVERTEXATTRIBI4IEXT)(getProcAddr("glVertexAttribI4iEXT")) - gpVertexAttribI4ivEXT = (C.GPVERTEXATTRIBI4IVEXT)(getProcAddr("glVertexAttribI4ivEXT")) - gpVertexAttribI4svEXT = (C.GPVERTEXATTRIBI4SVEXT)(getProcAddr("glVertexAttribI4svEXT")) - gpVertexAttribI4ubvEXT = (C.GPVERTEXATTRIBI4UBVEXT)(getProcAddr("glVertexAttribI4ubvEXT")) - gpVertexAttribI4uiEXT = (C.GPVERTEXATTRIBI4UIEXT)(getProcAddr("glVertexAttribI4uiEXT")) - gpVertexAttribI4uivEXT = (C.GPVERTEXATTRIBI4UIVEXT)(getProcAddr("glVertexAttribI4uivEXT")) - gpVertexAttribI4usvEXT = (C.GPVERTEXATTRIBI4USVEXT)(getProcAddr("glVertexAttribI4usvEXT")) - gpVertexAttribIFormat = (C.GPVERTEXATTRIBIFORMAT)(getProcAddr("glVertexAttribIFormat")) - gpVertexAttribIFormatNV = (C.GPVERTEXATTRIBIFORMATNV)(getProcAddr("glVertexAttribIFormatNV")) - gpVertexAttribIPointerEXT = (C.GPVERTEXATTRIBIPOINTEREXT)(getProcAddr("glVertexAttribIPointerEXT")) - gpVertexAttribL1d = (C.GPVERTEXATTRIBL1D)(getProcAddr("glVertexAttribL1d")) - gpVertexAttribL1dEXT = (C.GPVERTEXATTRIBL1DEXT)(getProcAddr("glVertexAttribL1dEXT")) - gpVertexAttribL1dv = (C.GPVERTEXATTRIBL1DV)(getProcAddr("glVertexAttribL1dv")) - gpVertexAttribL1dvEXT = (C.GPVERTEXATTRIBL1DVEXT)(getProcAddr("glVertexAttribL1dvEXT")) - gpVertexAttribL1i64NV = (C.GPVERTEXATTRIBL1I64NV)(getProcAddr("glVertexAttribL1i64NV")) - gpVertexAttribL1i64vNV = (C.GPVERTEXATTRIBL1I64VNV)(getProcAddr("glVertexAttribL1i64vNV")) - gpVertexAttribL1ui64ARB = (C.GPVERTEXATTRIBL1UI64ARB)(getProcAddr("glVertexAttribL1ui64ARB")) - gpVertexAttribL1ui64NV = (C.GPVERTEXATTRIBL1UI64NV)(getProcAddr("glVertexAttribL1ui64NV")) - gpVertexAttribL1ui64vARB = (C.GPVERTEXATTRIBL1UI64VARB)(getProcAddr("glVertexAttribL1ui64vARB")) - gpVertexAttribL1ui64vNV = (C.GPVERTEXATTRIBL1UI64VNV)(getProcAddr("glVertexAttribL1ui64vNV")) - gpVertexAttribL2d = (C.GPVERTEXATTRIBL2D)(getProcAddr("glVertexAttribL2d")) - gpVertexAttribL2dEXT = (C.GPVERTEXATTRIBL2DEXT)(getProcAddr("glVertexAttribL2dEXT")) - gpVertexAttribL2dv = (C.GPVERTEXATTRIBL2DV)(getProcAddr("glVertexAttribL2dv")) - gpVertexAttribL2dvEXT = (C.GPVERTEXATTRIBL2DVEXT)(getProcAddr("glVertexAttribL2dvEXT")) - gpVertexAttribL2i64NV = (C.GPVERTEXATTRIBL2I64NV)(getProcAddr("glVertexAttribL2i64NV")) - gpVertexAttribL2i64vNV = (C.GPVERTEXATTRIBL2I64VNV)(getProcAddr("glVertexAttribL2i64vNV")) - gpVertexAttribL2ui64NV = (C.GPVERTEXATTRIBL2UI64NV)(getProcAddr("glVertexAttribL2ui64NV")) - gpVertexAttribL2ui64vNV = (C.GPVERTEXATTRIBL2UI64VNV)(getProcAddr("glVertexAttribL2ui64vNV")) - gpVertexAttribL3d = (C.GPVERTEXATTRIBL3D)(getProcAddr("glVertexAttribL3d")) - gpVertexAttribL3dEXT = (C.GPVERTEXATTRIBL3DEXT)(getProcAddr("glVertexAttribL3dEXT")) - gpVertexAttribL3dv = (C.GPVERTEXATTRIBL3DV)(getProcAddr("glVertexAttribL3dv")) - gpVertexAttribL3dvEXT = (C.GPVERTEXATTRIBL3DVEXT)(getProcAddr("glVertexAttribL3dvEXT")) - gpVertexAttribL3i64NV = (C.GPVERTEXATTRIBL3I64NV)(getProcAddr("glVertexAttribL3i64NV")) - gpVertexAttribL3i64vNV = (C.GPVERTEXATTRIBL3I64VNV)(getProcAddr("glVertexAttribL3i64vNV")) - gpVertexAttribL3ui64NV = (C.GPVERTEXATTRIBL3UI64NV)(getProcAddr("glVertexAttribL3ui64NV")) - gpVertexAttribL3ui64vNV = (C.GPVERTEXATTRIBL3UI64VNV)(getProcAddr("glVertexAttribL3ui64vNV")) - gpVertexAttribL4d = (C.GPVERTEXATTRIBL4D)(getProcAddr("glVertexAttribL4d")) - gpVertexAttribL4dEXT = (C.GPVERTEXATTRIBL4DEXT)(getProcAddr("glVertexAttribL4dEXT")) - gpVertexAttribL4dv = (C.GPVERTEXATTRIBL4DV)(getProcAddr("glVertexAttribL4dv")) - gpVertexAttribL4dvEXT = (C.GPVERTEXATTRIBL4DVEXT)(getProcAddr("glVertexAttribL4dvEXT")) - gpVertexAttribL4i64NV = (C.GPVERTEXATTRIBL4I64NV)(getProcAddr("glVertexAttribL4i64NV")) - gpVertexAttribL4i64vNV = (C.GPVERTEXATTRIBL4I64VNV)(getProcAddr("glVertexAttribL4i64vNV")) - gpVertexAttribL4ui64NV = (C.GPVERTEXATTRIBL4UI64NV)(getProcAddr("glVertexAttribL4ui64NV")) - gpVertexAttribL4ui64vNV = (C.GPVERTEXATTRIBL4UI64VNV)(getProcAddr("glVertexAttribL4ui64vNV")) - gpVertexAttribLFormat = (C.GPVERTEXATTRIBLFORMAT)(getProcAddr("glVertexAttribLFormat")) - gpVertexAttribLFormatNV = (C.GPVERTEXATTRIBLFORMATNV)(getProcAddr("glVertexAttribLFormatNV")) - gpVertexAttribLPointer = (C.GPVERTEXATTRIBLPOINTER)(getProcAddr("glVertexAttribLPointer")) - gpVertexAttribLPointerEXT = (C.GPVERTEXATTRIBLPOINTEREXT)(getProcAddr("glVertexAttribLPointerEXT")) - gpVertexAttribP1ui = (C.GPVERTEXATTRIBP1UI)(getProcAddr("glVertexAttribP1ui")) - gpVertexAttribP1uiv = (C.GPVERTEXATTRIBP1UIV)(getProcAddr("glVertexAttribP1uiv")) - gpVertexAttribP2ui = (C.GPVERTEXATTRIBP2UI)(getProcAddr("glVertexAttribP2ui")) - gpVertexAttribP2uiv = (C.GPVERTEXATTRIBP2UIV)(getProcAddr("glVertexAttribP2uiv")) - gpVertexAttribP3ui = (C.GPVERTEXATTRIBP3UI)(getProcAddr("glVertexAttribP3ui")) - gpVertexAttribP3uiv = (C.GPVERTEXATTRIBP3UIV)(getProcAddr("glVertexAttribP3uiv")) - gpVertexAttribP4ui = (C.GPVERTEXATTRIBP4UI)(getProcAddr("glVertexAttribP4ui")) - gpVertexAttribP4uiv = (C.GPVERTEXATTRIBP4UIV)(getProcAddr("glVertexAttribP4uiv")) - gpVertexAttribParameteriAMD = (C.GPVERTEXATTRIBPARAMETERIAMD)(getProcAddr("glVertexAttribParameteriAMD")) - gpVertexAttribPointer = (C.GPVERTEXATTRIBPOINTER)(getProcAddr("glVertexAttribPointer")) - if gpVertexAttribPointer == nil { - return errors.New("glVertexAttribPointer") - } - gpVertexAttribPointerARB = (C.GPVERTEXATTRIBPOINTERARB)(getProcAddr("glVertexAttribPointerARB")) - gpVertexAttribPointerNV = (C.GPVERTEXATTRIBPOINTERNV)(getProcAddr("glVertexAttribPointerNV")) - gpVertexAttribs1dvNV = (C.GPVERTEXATTRIBS1DVNV)(getProcAddr("glVertexAttribs1dvNV")) - gpVertexAttribs1fvNV = (C.GPVERTEXATTRIBS1FVNV)(getProcAddr("glVertexAttribs1fvNV")) - gpVertexAttribs1hvNV = (C.GPVERTEXATTRIBS1HVNV)(getProcAddr("glVertexAttribs1hvNV")) - gpVertexAttribs1svNV = (C.GPVERTEXATTRIBS1SVNV)(getProcAddr("glVertexAttribs1svNV")) - gpVertexAttribs2dvNV = (C.GPVERTEXATTRIBS2DVNV)(getProcAddr("glVertexAttribs2dvNV")) - gpVertexAttribs2fvNV = (C.GPVERTEXATTRIBS2FVNV)(getProcAddr("glVertexAttribs2fvNV")) - gpVertexAttribs2hvNV = (C.GPVERTEXATTRIBS2HVNV)(getProcAddr("glVertexAttribs2hvNV")) - gpVertexAttribs2svNV = (C.GPVERTEXATTRIBS2SVNV)(getProcAddr("glVertexAttribs2svNV")) - gpVertexAttribs3dvNV = (C.GPVERTEXATTRIBS3DVNV)(getProcAddr("glVertexAttribs3dvNV")) - gpVertexAttribs3fvNV = (C.GPVERTEXATTRIBS3FVNV)(getProcAddr("glVertexAttribs3fvNV")) - gpVertexAttribs3hvNV = (C.GPVERTEXATTRIBS3HVNV)(getProcAddr("glVertexAttribs3hvNV")) - gpVertexAttribs3svNV = (C.GPVERTEXATTRIBS3SVNV)(getProcAddr("glVertexAttribs3svNV")) - gpVertexAttribs4dvNV = (C.GPVERTEXATTRIBS4DVNV)(getProcAddr("glVertexAttribs4dvNV")) - gpVertexAttribs4fvNV = (C.GPVERTEXATTRIBS4FVNV)(getProcAddr("glVertexAttribs4fvNV")) - gpVertexAttribs4hvNV = (C.GPVERTEXATTRIBS4HVNV)(getProcAddr("glVertexAttribs4hvNV")) - gpVertexAttribs4svNV = (C.GPVERTEXATTRIBS4SVNV)(getProcAddr("glVertexAttribs4svNV")) - gpVertexAttribs4ubvNV = (C.GPVERTEXATTRIBS4UBVNV)(getProcAddr("glVertexAttribs4ubvNV")) - gpVertexBindingDivisor = (C.GPVERTEXBINDINGDIVISOR)(getProcAddr("glVertexBindingDivisor")) - gpVertexBlendARB = (C.GPVERTEXBLENDARB)(getProcAddr("glVertexBlendARB")) - gpVertexBlendEnvfATI = (C.GPVERTEXBLENDENVFATI)(getProcAddr("glVertexBlendEnvfATI")) - gpVertexBlendEnviATI = (C.GPVERTEXBLENDENVIATI)(getProcAddr("glVertexBlendEnviATI")) - gpVertexFormatNV = (C.GPVERTEXFORMATNV)(getProcAddr("glVertexFormatNV")) - gpVertexPointer = (C.GPVERTEXPOINTER)(getProcAddr("glVertexPointer")) - if gpVertexPointer == nil { - return errors.New("glVertexPointer") - } - gpVertexPointerEXT = (C.GPVERTEXPOINTEREXT)(getProcAddr("glVertexPointerEXT")) - gpVertexPointerListIBM = (C.GPVERTEXPOINTERLISTIBM)(getProcAddr("glVertexPointerListIBM")) - gpVertexPointervINTEL = (C.GPVERTEXPOINTERVINTEL)(getProcAddr("glVertexPointervINTEL")) - gpVertexStream1dATI = (C.GPVERTEXSTREAM1DATI)(getProcAddr("glVertexStream1dATI")) - gpVertexStream1dvATI = (C.GPVERTEXSTREAM1DVATI)(getProcAddr("glVertexStream1dvATI")) - gpVertexStream1fATI = (C.GPVERTEXSTREAM1FATI)(getProcAddr("glVertexStream1fATI")) - gpVertexStream1fvATI = (C.GPVERTEXSTREAM1FVATI)(getProcAddr("glVertexStream1fvATI")) - gpVertexStream1iATI = (C.GPVERTEXSTREAM1IATI)(getProcAddr("glVertexStream1iATI")) - gpVertexStream1ivATI = (C.GPVERTEXSTREAM1IVATI)(getProcAddr("glVertexStream1ivATI")) - gpVertexStream1sATI = (C.GPVERTEXSTREAM1SATI)(getProcAddr("glVertexStream1sATI")) - gpVertexStream1svATI = (C.GPVERTEXSTREAM1SVATI)(getProcAddr("glVertexStream1svATI")) - gpVertexStream2dATI = (C.GPVERTEXSTREAM2DATI)(getProcAddr("glVertexStream2dATI")) - gpVertexStream2dvATI = (C.GPVERTEXSTREAM2DVATI)(getProcAddr("glVertexStream2dvATI")) - gpVertexStream2fATI = (C.GPVERTEXSTREAM2FATI)(getProcAddr("glVertexStream2fATI")) - gpVertexStream2fvATI = (C.GPVERTEXSTREAM2FVATI)(getProcAddr("glVertexStream2fvATI")) - gpVertexStream2iATI = (C.GPVERTEXSTREAM2IATI)(getProcAddr("glVertexStream2iATI")) - gpVertexStream2ivATI = (C.GPVERTEXSTREAM2IVATI)(getProcAddr("glVertexStream2ivATI")) - gpVertexStream2sATI = (C.GPVERTEXSTREAM2SATI)(getProcAddr("glVertexStream2sATI")) - gpVertexStream2svATI = (C.GPVERTEXSTREAM2SVATI)(getProcAddr("glVertexStream2svATI")) - gpVertexStream3dATI = (C.GPVERTEXSTREAM3DATI)(getProcAddr("glVertexStream3dATI")) - gpVertexStream3dvATI = (C.GPVERTEXSTREAM3DVATI)(getProcAddr("glVertexStream3dvATI")) - gpVertexStream3fATI = (C.GPVERTEXSTREAM3FATI)(getProcAddr("glVertexStream3fATI")) - gpVertexStream3fvATI = (C.GPVERTEXSTREAM3FVATI)(getProcAddr("glVertexStream3fvATI")) - gpVertexStream3iATI = (C.GPVERTEXSTREAM3IATI)(getProcAddr("glVertexStream3iATI")) - gpVertexStream3ivATI = (C.GPVERTEXSTREAM3IVATI)(getProcAddr("glVertexStream3ivATI")) - gpVertexStream3sATI = (C.GPVERTEXSTREAM3SATI)(getProcAddr("glVertexStream3sATI")) - gpVertexStream3svATI = (C.GPVERTEXSTREAM3SVATI)(getProcAddr("glVertexStream3svATI")) - gpVertexStream4dATI = (C.GPVERTEXSTREAM4DATI)(getProcAddr("glVertexStream4dATI")) - gpVertexStream4dvATI = (C.GPVERTEXSTREAM4DVATI)(getProcAddr("glVertexStream4dvATI")) - gpVertexStream4fATI = (C.GPVERTEXSTREAM4FATI)(getProcAddr("glVertexStream4fATI")) - gpVertexStream4fvATI = (C.GPVERTEXSTREAM4FVATI)(getProcAddr("glVertexStream4fvATI")) - gpVertexStream4iATI = (C.GPVERTEXSTREAM4IATI)(getProcAddr("glVertexStream4iATI")) - gpVertexStream4ivATI = (C.GPVERTEXSTREAM4IVATI)(getProcAddr("glVertexStream4ivATI")) - gpVertexStream4sATI = (C.GPVERTEXSTREAM4SATI)(getProcAddr("glVertexStream4sATI")) - gpVertexStream4svATI = (C.GPVERTEXSTREAM4SVATI)(getProcAddr("glVertexStream4svATI")) - gpVertexWeightPointerEXT = (C.GPVERTEXWEIGHTPOINTEREXT)(getProcAddr("glVertexWeightPointerEXT")) - gpVertexWeightfEXT = (C.GPVERTEXWEIGHTFEXT)(getProcAddr("glVertexWeightfEXT")) - gpVertexWeightfvEXT = (C.GPVERTEXWEIGHTFVEXT)(getProcAddr("glVertexWeightfvEXT")) - gpVertexWeighthNV = (C.GPVERTEXWEIGHTHNV)(getProcAddr("glVertexWeighthNV")) - gpVertexWeighthvNV = (C.GPVERTEXWEIGHTHVNV)(getProcAddr("glVertexWeighthvNV")) - gpVideoCaptureNV = (C.GPVIDEOCAPTURENV)(getProcAddr("glVideoCaptureNV")) - gpVideoCaptureStreamParameterdvNV = (C.GPVIDEOCAPTURESTREAMPARAMETERDVNV)(getProcAddr("glVideoCaptureStreamParameterdvNV")) - gpVideoCaptureStreamParameterfvNV = (C.GPVIDEOCAPTURESTREAMPARAMETERFVNV)(getProcAddr("glVideoCaptureStreamParameterfvNV")) - gpVideoCaptureStreamParameterivNV = (C.GPVIDEOCAPTURESTREAMPARAMETERIVNV)(getProcAddr("glVideoCaptureStreamParameterivNV")) - gpViewport = (C.GPVIEWPORT)(getProcAddr("glViewport")) - if gpViewport == nil { - return errors.New("glViewport") - } - gpViewportArrayv = (C.GPVIEWPORTARRAYV)(getProcAddr("glViewportArrayv")) - gpViewportIndexedf = (C.GPVIEWPORTINDEXEDF)(getProcAddr("glViewportIndexedf")) - gpViewportIndexedfv = (C.GPVIEWPORTINDEXEDFV)(getProcAddr("glViewportIndexedfv")) - gpWaitSync = (C.GPWAITSYNC)(getProcAddr("glWaitSync")) - gpWeightPathsNV = (C.GPWEIGHTPATHSNV)(getProcAddr("glWeightPathsNV")) - gpWeightPointerARB = (C.GPWEIGHTPOINTERARB)(getProcAddr("glWeightPointerARB")) - gpWeightbvARB = (C.GPWEIGHTBVARB)(getProcAddr("glWeightbvARB")) - gpWeightdvARB = (C.GPWEIGHTDVARB)(getProcAddr("glWeightdvARB")) - gpWeightfvARB = (C.GPWEIGHTFVARB)(getProcAddr("glWeightfvARB")) - gpWeightivARB = (C.GPWEIGHTIVARB)(getProcAddr("glWeightivARB")) - gpWeightsvARB = (C.GPWEIGHTSVARB)(getProcAddr("glWeightsvARB")) - gpWeightubvARB = (C.GPWEIGHTUBVARB)(getProcAddr("glWeightubvARB")) - gpWeightuivARB = (C.GPWEIGHTUIVARB)(getProcAddr("glWeightuivARB")) - gpWeightusvARB = (C.GPWEIGHTUSVARB)(getProcAddr("glWeightusvARB")) - gpWindowPos2d = (C.GPWINDOWPOS2D)(getProcAddr("glWindowPos2d")) - if gpWindowPos2d == nil { - return errors.New("glWindowPos2d") - } - gpWindowPos2dARB = (C.GPWINDOWPOS2DARB)(getProcAddr("glWindowPos2dARB")) - gpWindowPos2dMESA = (C.GPWINDOWPOS2DMESA)(getProcAddr("glWindowPos2dMESA")) - gpWindowPos2dv = (C.GPWINDOWPOS2DV)(getProcAddr("glWindowPos2dv")) - if gpWindowPos2dv == nil { - return errors.New("glWindowPos2dv") - } - gpWindowPos2dvARB = (C.GPWINDOWPOS2DVARB)(getProcAddr("glWindowPos2dvARB")) - gpWindowPos2dvMESA = (C.GPWINDOWPOS2DVMESA)(getProcAddr("glWindowPos2dvMESA")) - gpWindowPos2f = (C.GPWINDOWPOS2F)(getProcAddr("glWindowPos2f")) - if gpWindowPos2f == nil { - return errors.New("glWindowPos2f") - } - gpWindowPos2fARB = (C.GPWINDOWPOS2FARB)(getProcAddr("glWindowPos2fARB")) - gpWindowPos2fMESA = (C.GPWINDOWPOS2FMESA)(getProcAddr("glWindowPos2fMESA")) - gpWindowPos2fv = (C.GPWINDOWPOS2FV)(getProcAddr("glWindowPos2fv")) - if gpWindowPos2fv == nil { - return errors.New("glWindowPos2fv") - } - gpWindowPos2fvARB = (C.GPWINDOWPOS2FVARB)(getProcAddr("glWindowPos2fvARB")) - gpWindowPos2fvMESA = (C.GPWINDOWPOS2FVMESA)(getProcAddr("glWindowPos2fvMESA")) - gpWindowPos2i = (C.GPWINDOWPOS2I)(getProcAddr("glWindowPos2i")) - if gpWindowPos2i == nil { - return errors.New("glWindowPos2i") - } - gpWindowPos2iARB = (C.GPWINDOWPOS2IARB)(getProcAddr("glWindowPos2iARB")) - gpWindowPos2iMESA = (C.GPWINDOWPOS2IMESA)(getProcAddr("glWindowPos2iMESA")) - gpWindowPos2iv = (C.GPWINDOWPOS2IV)(getProcAddr("glWindowPos2iv")) - if gpWindowPos2iv == nil { - return errors.New("glWindowPos2iv") - } - gpWindowPos2ivARB = (C.GPWINDOWPOS2IVARB)(getProcAddr("glWindowPos2ivARB")) - gpWindowPos2ivMESA = (C.GPWINDOWPOS2IVMESA)(getProcAddr("glWindowPos2ivMESA")) - gpWindowPos2s = (C.GPWINDOWPOS2S)(getProcAddr("glWindowPos2s")) - if gpWindowPos2s == nil { - return errors.New("glWindowPos2s") - } - gpWindowPos2sARB = (C.GPWINDOWPOS2SARB)(getProcAddr("glWindowPos2sARB")) - gpWindowPos2sMESA = (C.GPWINDOWPOS2SMESA)(getProcAddr("glWindowPos2sMESA")) - gpWindowPos2sv = (C.GPWINDOWPOS2SV)(getProcAddr("glWindowPos2sv")) - if gpWindowPos2sv == nil { - return errors.New("glWindowPos2sv") - } - gpWindowPos2svARB = (C.GPWINDOWPOS2SVARB)(getProcAddr("glWindowPos2svARB")) - gpWindowPos2svMESA = (C.GPWINDOWPOS2SVMESA)(getProcAddr("glWindowPos2svMESA")) - gpWindowPos3d = (C.GPWINDOWPOS3D)(getProcAddr("glWindowPos3d")) - if gpWindowPos3d == nil { - return errors.New("glWindowPos3d") - } - gpWindowPos3dARB = (C.GPWINDOWPOS3DARB)(getProcAddr("glWindowPos3dARB")) - gpWindowPos3dMESA = (C.GPWINDOWPOS3DMESA)(getProcAddr("glWindowPos3dMESA")) - gpWindowPos3dv = (C.GPWINDOWPOS3DV)(getProcAddr("glWindowPos3dv")) - if gpWindowPos3dv == nil { - return errors.New("glWindowPos3dv") - } - gpWindowPos3dvARB = (C.GPWINDOWPOS3DVARB)(getProcAddr("glWindowPos3dvARB")) - gpWindowPos3dvMESA = (C.GPWINDOWPOS3DVMESA)(getProcAddr("glWindowPos3dvMESA")) - gpWindowPos3f = (C.GPWINDOWPOS3F)(getProcAddr("glWindowPos3f")) - if gpWindowPos3f == nil { - return errors.New("glWindowPos3f") - } - gpWindowPos3fARB = (C.GPWINDOWPOS3FARB)(getProcAddr("glWindowPos3fARB")) - gpWindowPos3fMESA = (C.GPWINDOWPOS3FMESA)(getProcAddr("glWindowPos3fMESA")) - gpWindowPos3fv = (C.GPWINDOWPOS3FV)(getProcAddr("glWindowPos3fv")) - if gpWindowPos3fv == nil { - return errors.New("glWindowPos3fv") - } - gpWindowPos3fvARB = (C.GPWINDOWPOS3FVARB)(getProcAddr("glWindowPos3fvARB")) - gpWindowPos3fvMESA = (C.GPWINDOWPOS3FVMESA)(getProcAddr("glWindowPos3fvMESA")) - gpWindowPos3i = (C.GPWINDOWPOS3I)(getProcAddr("glWindowPos3i")) - if gpWindowPos3i == nil { - return errors.New("glWindowPos3i") - } - gpWindowPos3iARB = (C.GPWINDOWPOS3IARB)(getProcAddr("glWindowPos3iARB")) - gpWindowPos3iMESA = (C.GPWINDOWPOS3IMESA)(getProcAddr("glWindowPos3iMESA")) - gpWindowPos3iv = (C.GPWINDOWPOS3IV)(getProcAddr("glWindowPos3iv")) - if gpWindowPos3iv == nil { - return errors.New("glWindowPos3iv") - } - gpWindowPos3ivARB = (C.GPWINDOWPOS3IVARB)(getProcAddr("glWindowPos3ivARB")) - gpWindowPos3ivMESA = (C.GPWINDOWPOS3IVMESA)(getProcAddr("glWindowPos3ivMESA")) - gpWindowPos3s = (C.GPWINDOWPOS3S)(getProcAddr("glWindowPos3s")) - if gpWindowPos3s == nil { - return errors.New("glWindowPos3s") - } - gpWindowPos3sARB = (C.GPWINDOWPOS3SARB)(getProcAddr("glWindowPos3sARB")) - gpWindowPos3sMESA = (C.GPWINDOWPOS3SMESA)(getProcAddr("glWindowPos3sMESA")) - gpWindowPos3sv = (C.GPWINDOWPOS3SV)(getProcAddr("glWindowPos3sv")) - if gpWindowPos3sv == nil { - return errors.New("glWindowPos3sv") - } - gpWindowPos3svARB = (C.GPWINDOWPOS3SVARB)(getProcAddr("glWindowPos3svARB")) - gpWindowPos3svMESA = (C.GPWINDOWPOS3SVMESA)(getProcAddr("glWindowPos3svMESA")) - gpWindowPos4dMESA = (C.GPWINDOWPOS4DMESA)(getProcAddr("glWindowPos4dMESA")) - gpWindowPos4dvMESA = (C.GPWINDOWPOS4DVMESA)(getProcAddr("glWindowPos4dvMESA")) - gpWindowPos4fMESA = (C.GPWINDOWPOS4FMESA)(getProcAddr("glWindowPos4fMESA")) - gpWindowPos4fvMESA = (C.GPWINDOWPOS4FVMESA)(getProcAddr("glWindowPos4fvMESA")) - gpWindowPos4iMESA = (C.GPWINDOWPOS4IMESA)(getProcAddr("glWindowPos4iMESA")) - gpWindowPos4ivMESA = (C.GPWINDOWPOS4IVMESA)(getProcAddr("glWindowPos4ivMESA")) - gpWindowPos4sMESA = (C.GPWINDOWPOS4SMESA)(getProcAddr("glWindowPos4sMESA")) - gpWindowPos4svMESA = (C.GPWINDOWPOS4SVMESA)(getProcAddr("glWindowPos4svMESA")) - gpWriteMaskEXT = (C.GPWRITEMASKEXT)(getProcAddr("glWriteMaskEXT")) - return nil -} diff --git a/vendor/github.com/go-gl/gl/v2.1/gl/procaddr.go b/vendor/github.com/go-gl/gl/v2.1/gl/procaddr.go deleted file mode 100644 index ed14115..0000000 --- a/vendor/github.com/go-gl/gl/v2.1/gl/procaddr.go +++ /dev/null @@ -1,65 +0,0 @@ -// This file implements GlowGetProcAddress for every supported platform. The -// correct version is chosen automatically based on build tags: -// windows: WGL -// darwin: CGL -// linux freebsd: GLX -// Use of EGL instead of the platform's default (listed above) is made possible -// via the "egl" build tag. -// It is also possible to install your own function outside this package for -// retrieving OpenGL function pointers, to do this see InitWithProcAddrFunc. -package gl - -/* -#cgo windows CFLAGS: -DTAG_WINDOWS -#cgo windows LDFLAGS: -lopengl32 -#cgo darwin CFLAGS: -DTAG_DARWIN -#cgo darwin LDFLAGS: -framework OpenGL -#cgo linux freebsd CFLAGS: -DTAG_POSIX -#cgo linux freebsd LDFLAGS: -lGL -#cgo egl CFLAGS: -DTAG_EGL -#cgo egl LDFLAGS: -lEGL -// Check the EGL tag first as it takes priority over the platform's default -// configuration of WGL/GLX/CGL. -#if defined(TAG_EGL) - #include - #include - void* GlowGetProcAddress_gl21(const char* name) { - return eglGetProcAddress(name); - } -#elif defined(TAG_WINDOWS) - #define WIN32_LEAN_AND_MEAN 1 - #include - #include - static HMODULE ogl32dll = NULL; - void* GlowGetProcAddress_gl21(const char* name) { - void* pf = wglGetProcAddress((LPCSTR) name); - if (pf) { - return pf; - } - if (ogl32dll == NULL) { - ogl32dll = LoadLibraryA("opengl32.dll"); - } - return GetProcAddress(ogl32dll, (LPCSTR) name); - } -#elif defined(TAG_DARWIN) - #include - #include - void* GlowGetProcAddress_gl21(const char* name) { - return dlsym(RTLD_DEFAULT, name); - } -#elif defined(TAG_POSIX) - #include - #include - void* GlowGetProcAddress_gl21(const char* name) { - return glXGetProcAddress(name); - } -#endif -*/ -import "C" -import "unsafe" - -func getProcAddress(namea string) unsafe.Pointer { - cname := C.CString(namea) - defer C.free(unsafe.Pointer(cname)) - return C.GlowGetProcAddress_gl21(cname) -} diff --git a/vendor/github.com/go-gl/glfw/AUTHORS b/vendor/github.com/go-gl/glfw/AUTHORS deleted file mode 100644 index 852c0da..0000000 --- a/vendor/github.com/go-gl/glfw/AUTHORS +++ /dev/null @@ -1,10 +0,0 @@ -# This is the official list of glfw3-go authors for copyright purposes. - -# Please keep the list sorted. - -Coşku Baş -Dmitri Shuralyov -James Gray -Peter Waller (github:pwaller) -Robin Eklind -Stephen Gutekanst diff --git a/vendor/github.com/go-gl/glfw/LICENSE b/vendor/github.com/go-gl/glfw/LICENSE deleted file mode 100644 index d3afbe2..0000000 --- a/vendor/github.com/go-gl/glfw/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2012 The glfw3-go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/GLFW_C_REVISION.txt b/vendor/github.com/go-gl/glfw/v3.1/glfw/GLFW_C_REVISION.txt deleted file mode 100644 index 6fc91d3..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/GLFW_C_REVISION.txt +++ /dev/null @@ -1 +0,0 @@ -30306e54705c3adae9fe082c816a3be71963485c diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/build.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/build.go deleted file mode 100644 index 1406bbc..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/build.go +++ /dev/null @@ -1,52 +0,0 @@ -package glfw - -/* -// Standard OpenGL client is used on 386 and amd64 architectures, except when -// explicitly asked for gles2 or wayland. -#cgo 386,!gles2,!wayland CFLAGS: -D_GLFW_USE_OPENGL -#cgo amd64,!gles2,!wayland CFLAGS: -D_GLFW_USE_OPENGL - -// Choose OpenGL ES V2 on arm, or when explicitly asked for gles2/wayland. -#cgo arm gles2 wayland CFLAGS: -D_GLFW_USE_GLESV2 - - -// Windows Build Tags -// ---------------- -// GLFW Options: -#cgo windows CFLAGS: -D_GLFW_WIN32 -D_GLFW_WGL - -// Linker Options: -#cgo windows LDFLAGS: -lopengl32 -lgdi32 - - -// Darwin Build Tags -// ---------------- -// GLFW Options: -#cgo darwin CFLAGS: -D_GLFW_COCOA -D_GLFW_NSGL -D_GLFW_USE_CHDIR -D_GLFW_USE_MENUBAR -D_GLFW_USE_RETINA -Wno-deprecated-declarations - -// Linker Options: -#cgo darwin LDFLAGS: -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo - - -// Linux Build Tags -// ---------------- -// GLFW Options: -#cgo linux,!wayland CFLAGS: -D_GLFW_X11 -D_GLFW_GLX -#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND -D_GLFW_EGL - -// Linker Options: -#cgo linux,!wayland LDFLAGS: -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -ldl -lrt -#cgo linux,wayland LDFLAGS: -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -ldl -lrt - - -// FreeBSD Build Tags -// ---------------- -// GLFW Options: -#cgo freebsd,!wayland CFLAGS: -D_GLFW_X11 -D_GLFW_GLX -D_GLFW_HAS_GLXGETPROCADDRESSARB -D_GLFW_HAS_DLOPEN -#cgo freebsd,wayland CFLAGS: -D_GLFW_WAYLAND -D_GLFW_EGL -D_GLFW_HAS_DLOPEN - -// Linker Options: -#cgo freebsd,!wayland LDFLAGS: -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -#cgo freebsd,wayland LDFLAGS: -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoainit_darwin.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoainit_darwin.go deleted file mode 100644 index 6fa0b18..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoainit_darwin.go +++ /dev/null @@ -1,9 +0,0 @@ -package glfw - -/* -#cgo CFLAGS: -x objective-c -#ifdef _GLFW_COCOA - #include "glfw/src/cocoa_init.m" -#endif -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoamonitor_darwin.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoamonitor_darwin.go deleted file mode 100644 index e4e838d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoamonitor_darwin.go +++ /dev/null @@ -1,9 +0,0 @@ -package glfw - -/* -#cgo CFLAGS: -x objective-c -#ifdef _GLFW_COCOA - #include "glfw/src/cocoa_monitor.m" -#endif -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoawindow_darwin.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoawindow_darwin.go deleted file mode 100644 index c139f1d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/cocoawindow_darwin.go +++ /dev/null @@ -1,9 +0,0 @@ -package glfw - -/* -#cgo CFLAGS: -x objective-c -#ifdef _GLFW_COCOA - #include "glfw/src/cocoa_window.m" -#endif -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/context.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/context.go deleted file mode 100644 index 3e0db2f..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/context.go +++ /dev/null @@ -1,77 +0,0 @@ -package glfw - -//#include -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -import ( - "unsafe" -) - -// MakeContextCurrent makes the context of the window current. -// Originally GLFW 3 passes a null pointer to detach the context. -// But since we're using receievers, DetachCurrentContext should -// be used instead. -func (w *Window) MakeContextCurrent() { - C.glfwMakeContextCurrent(w.data) - panicError() -} - -// DetachCurrentContext detaches the current context. -func DetachCurrentContext() { - C.glfwMakeContextCurrent(nil) - panicError() -} - -// GetCurrentContext returns the window whose context is current. -func GetCurrentContext() *Window { - w := C.glfwGetCurrentContext() - panicError() - if w == nil { - return nil - } - return windows.get(w) -} - -// SwapBuffers swaps the front and back buffers of the window. If the -// swap interval is greater than zero, the GPU driver waits the specified number -// of screen updates before swapping the buffers. -func (w *Window) SwapBuffers() { - C.glfwSwapBuffers(w.data) - panicError() -} - -// SwapInterval sets the swap interval for the current context, i.e. the number -// of screen updates to wait before swapping the buffers of a window and -// returning from SwapBuffers. This is sometimes called -// 'vertical synchronization', 'vertical retrace synchronization' or 'vsync'. -// -// Contexts that support either of the WGL_EXT_swap_control_tear and -// GLX_EXT_swap_control_tear extensions also accept negative swap intervals, -// which allow the driver to swap even if a frame arrives a little bit late. -// You can check for the presence of these extensions using -// ExtensionSupported. For more information about swap tearing, -// see the extension specifications. -// -// Some GPU drivers do not honor the requested swap interval, either because of -// user settings that override the request or due to bugs in the driver. -func SwapInterval(interval int) { - C.glfwSwapInterval(C.int(interval)) - panicError() -} - -// ExtensionSupported returns whether the specified OpenGL or context creation -// API extension is supported by the current context. For example, on Windows -// both the OpenGL and WGL extension strings are checked. -// -// As this functions searches one or more extension strings on each call, it is -// recommended that you cache its results if it's going to be used frequently. -// The extension strings will not change during the lifetime of a context, so -// there is no danger in doing this. -func ExtensionSupported(extension string) bool { - e := C.CString(extension) - defer C.free(unsafe.Pointer(e)) - ret := glfwbool(C.glfwExtensionSupported(e)) - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/error.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/error.c deleted file mode 100644 index cb20a30..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/error.c +++ /dev/null @@ -1,9 +0,0 @@ -#include "_cgo_export.h" - -void glfwErrorCB(int code, const char *desc) { - goErrorCB(code, (char*)desc); -} - -void glfwSetErrorCallbackCB() { - glfwSetErrorCallback(glfwErrorCB); -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/error.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/error.go deleted file mode 100644 index d7127c3..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/error.go +++ /dev/null @@ -1,199 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -//void glfwSetErrorCallbackCB(); -import "C" - -import ( - "fmt" - "log" -) - -// ErrorCode corresponds to an error code. -type ErrorCode int - -// Error codes that are translated to panics and the programmer should not -// expect to handle. -const ( - notInitialized ErrorCode = C.GLFW_NOT_INITIALIZED // GLFW has not been initialized. - noCurrentContext ErrorCode = C.GLFW_NO_CURRENT_CONTEXT // No context is current. - invalidEnum ErrorCode = C.GLFW_INVALID_ENUM // One of the enum parameters for the function was given an invalid enum. - invalidValue ErrorCode = C.GLFW_INVALID_VALUE // One of the parameters for the function was given an invalid value. - outOfMemory ErrorCode = C.GLFW_OUT_OF_MEMORY // A memory allocation failed. - platformError ErrorCode = C.GLFW_PLATFORM_ERROR // A platform-specific error occurred that does not match any of the more specific categories. -) - -const ( - // APIUnavailable is the error code used when GLFW could not find support - // for the requested client API on the system. - // - // The installed graphics driver does not support the requested client API, - // or does not support it via the chosen context creation backend. Below - // are a few examples. - // - // Some pre-installed Windows graphics drivers do not support OpenGL. AMD - // only supports OpenGL ES via EGL, while Nvidia and Intel only supports it - // via a WGL or GLX extension. OS X does not provide OpenGL ES at all. The - // Mesa EGL, OpenGL and OpenGL ES libraries do not interface with the - // Nvidia binary driver. - APIUnavailable ErrorCode = C.GLFW_API_UNAVAILABLE - - // VersionUnavailable is the error code used when the requested OpenGL or - // OpenGL ES (including any requested profile or context option) is not - // available on this machine. - // - // The machine does not support your requirements. If your application is - // sufficiently flexible, downgrade your requirements and try again. - // Otherwise, inform the user that their machine does not match your - // requirements. - // - // Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if - // 5.0 comes out before the 4.x series gets that far, also fail with this - // error and not GLFW_INVALID_VALUE, because GLFW cannot know what future - // versions will exist. - VersionUnavailable ErrorCode = C.GLFW_VERSION_UNAVAILABLE - - // FormatUnavailable is the error code used for both window creation and - // clipboard querying format errors. - // - // If emitted during window creation, the requested pixel format is not - // supported. This means one or more hard constraints did not match any of - // the available pixel formats. If your application is sufficiently - // flexible, downgrade your requirements and try again. Otherwise, inform - // the user that their machine does not match your requirements. - // - // If emitted when querying the clipboard, the contents of the clipboard - // could not be converted to the requested format. You should ignore the - // error or report it to the user, as appropriate. - FormatUnavailable ErrorCode = C.GLFW_FORMAT_UNAVAILABLE -) - -func (e ErrorCode) String() string { - switch e { - case notInitialized: - return "NotInitialized" - case noCurrentContext: - return "NoCurrentContext" - case invalidEnum: - return "InvalidEnum" - case invalidValue: - return "InvalidValue" - case outOfMemory: - return "OutOfMemory" - case platformError: - return "PlatformError" - case APIUnavailable: - return "APIUnavailable" - case VersionUnavailable: - return "VersionUnavailable" - case FormatUnavailable: - return "FormatUnavailable" - default: - return fmt.Sprintf("ErrorCode(%d)", e) - } -} - -// Error holds error code and description. -type Error struct { - Code ErrorCode - Desc string -} - -// Error prints the error code and description in a readable format. -func (e *Error) Error() string { - return fmt.Sprintf("%s: %s", e.Code.String(), e.Desc) -} - -// Note: There are many cryptic caveats to proper error handling here. -// See: https://github.com/go-gl/glfw3/pull/86 - -// Holds the value of the last error. -var lastError = make(chan *Error, 1) - -//export goErrorCB -func goErrorCB(code C.int, desc *C.char) { - flushErrors() - err := &Error{ErrorCode(code), C.GoString(desc)} - select { - case lastError <- err: - default: - fmt.Println("GLFW: An uncaught error has occurred:", err) - fmt.Println("GLFW: Please report this bug in the Go package immediately.") - } -} - -// Set the glfw callback internally -func init() { - C.glfwSetErrorCallbackCB() -} - -// flushErrors is called by Terminate before it actually calls C.glfwTerminate, -// this ensures that any uncaught errors buffered in lastError are printed -// before the program exits. -func flushErrors() { - err := fetchError() - if err != nil { - fmt.Println("GLFW: An uncaught error has occurred:", err) - fmt.Println("GLFW: Please report this bug in the Go package immediately.") - } -} - -// acceptError fetches the next error from the error channel, it accepts only -// errors with one of the given error codes. If any other error is encountered, -// a panic will occur. -// -// Platform errors are always printed, for information why please see: -// -// https://github.com/go-gl/glfw/issues/127 -// -func acceptError(codes ...ErrorCode) error { - // Grab the next error, if there is one. - err := fetchError() - if err == nil { - return nil - } - - // Only if the error has the specific error code accepted by the caller, do - // we return the error. - for _, code := range codes { - if err.Code == code { - return err - } - } - - // The error isn't accepted by the caller. If the error code is not a code - // defined in the GLFW C documentation as a programmer error, then the - // caller should have accepted it. This is effectively a bug in this - // package. - switch err.Code { - case platformError: - log.Println(err) - return nil - case notInitialized, noCurrentContext, invalidEnum, invalidValue, outOfMemory: - panic(err) - default: - fmt.Println("GLFW: An invalid error was not accepted by the caller:", err) - fmt.Println("GLFW: Please report this bug in the Go package immediately.") - panic(err) - } -} - -// panicError is a helper used by functions which expect no errors (except -// programmer errors) to occur. It will panic if it finds any such error. -func panicError() { - err := acceptError() - if err != nil { - panic(err) - } -} - -// fetchError fetches the next error from the error channel, it does not block -// and returns nil if there is no error present. -func fetchError() *Error { - select { - case err := <-lastError: - return err - default: - return nil - } -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw.go deleted file mode 100644 index 43fce64..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw.go +++ /dev/null @@ -1,75 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -const ( - VersionMajor = C.GLFW_VERSION_MAJOR // This is incremented when the API is changed in non-compatible ways. - VersionMinor = C.GLFW_VERSION_MINOR // This is incremented when features are added to the API but it remains backward-compatible. - VersionRevision = C.GLFW_VERSION_REVISION // This is incremented when a bug fix release is made that does not contain any API changes. -) - -// Init initializes the GLFW library. Before most GLFW functions can be used, -// GLFW must be initialized, and before a program terminates GLFW should be -// terminated in order to free any resources allocated during or after -// initialization. -// -// If this function fails, it calls Terminate before returning. If it succeeds, -// you should call Terminate before the program exits. -// -// Additional calls to this function after successful initialization but before -// termination will succeed but will do nothing. -// -// This function may take several seconds to complete on some systems, while on -// other systems it may take only a fraction of a second to complete. -// -// On Mac OS X, this function will change the current directory of the -// application to the Contents/Resources subdirectory of the application's -// bundle, if present. -// -// This function may only be called from the main thread. -func Init() error { - C.glfwInit() - return acceptError(APIUnavailable) -} - -// Terminate destroys all remaining windows, frees any allocated resources and -// sets the library to an uninitialized state. Once this is called, you must -// again call Init successfully before you will be able to use most GLFW -// functions. -// -// If GLFW has been successfully initialized, this function should be called -// before the program exits. If initialization fails, there is no need to call -// this function, as it is called by Init before it returns failure. -// -// This function may only be called from the main thread. -func Terminate() { - flushErrors() - C.glfwTerminate() -} - -// GetVersion 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. -// -// This function may be called before Init. -func GetVersion() (major, minor, revision int) { - var ( - maj C.int - min C.int - rev C.int - ) - - C.glfwGetVersion(&maj, &min, &rev) - return int(maj), int(min), int(rev) -} - -// GetVersionString returns a static string generated at compile-time according -// to which configuration macros were defined. This is intended for use when -// submitting bug reports, to allow developers to see which code paths are -// enabled in a binary. -// -// This function may be called before Init. -func GetVersionString() string { - return C.GoString(C.glfwGetVersionString()) -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/COPYING.txt b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/COPYING.txt deleted file mode 100644 index b30c701..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/COPYING.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2002-2006 Marcus Geelnard -Copyright (c) 2006-2010 Camilla Berglund - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would - be appreciated but is not required. - -2. Altered source versions must be plainly marked as such, and must not - be misrepresented as being the original software. - -3. This notice may not be removed or altered from any source - distribution. - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/EGL/eglext.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/EGL/eglext.h deleted file mode 100644 index bd51114..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/EGL/eglext.h +++ /dev/null @@ -1,565 +0,0 @@ -#ifndef __eglext_h_ -#define __eglext_h_ - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** Copyright (c) 2007-2013 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ - -#include - -/*************************************************************/ - -/* Header file version number */ -/* Current version at http://www.khronos.org/registry/egl/ */ -/* $Revision: 20690 $ on $Date: 2013-02-22 17:15:05 -0800 (Fri, 22 Feb 2013) $ */ -#define EGL_EGLEXT_VERSION 15 - -#ifndef EGL_KHR_config_attribs -#define EGL_KHR_config_attribs 1 -#define EGL_CONFORMANT_KHR 0x3042 /* EGLConfig attribute */ -#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020 /* EGL_SURFACE_TYPE bitfield */ -#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040 /* EGL_SURFACE_TYPE bitfield */ -#endif - -#ifndef EGL_KHR_lock_surface -#define EGL_KHR_lock_surface 1 -#define EGL_READ_SURFACE_BIT_KHR 0x0001 /* EGL_LOCK_USAGE_HINT_KHR bitfield */ -#define EGL_WRITE_SURFACE_BIT_KHR 0x0002 /* EGL_LOCK_USAGE_HINT_KHR bitfield */ -#define EGL_LOCK_SURFACE_BIT_KHR 0x0080 /* EGL_SURFACE_TYPE bitfield */ -#define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 /* EGL_SURFACE_TYPE bitfield */ -#define EGL_MATCH_FORMAT_KHR 0x3043 /* EGLConfig attribute */ -#define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 /* EGL_MATCH_FORMAT_KHR value */ -#define EGL_FORMAT_RGB_565_KHR 0x30C1 /* EGL_MATCH_FORMAT_KHR value */ -#define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 /* EGL_MATCH_FORMAT_KHR value */ -#define EGL_FORMAT_RGBA_8888_KHR 0x30C3 /* EGL_MATCH_FORMAT_KHR value */ -#define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 /* eglLockSurfaceKHR attribute */ -#define EGL_LOCK_USAGE_HINT_KHR 0x30C5 /* eglLockSurfaceKHR attribute */ -#define EGL_BITMAP_POINTER_KHR 0x30C6 /* eglQuerySurface attribute */ -#define EGL_BITMAP_PITCH_KHR 0x30C7 /* eglQuerySurface attribute */ -#define EGL_BITMAP_ORIGIN_KHR 0x30C8 /* eglQuerySurface attribute */ -#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 /* eglQuerySurface attribute */ -#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA /* eglQuerySurface attribute */ -#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB /* eglQuerySurface attribute */ -#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC /* eglQuerySurface attribute */ -#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD /* eglQuerySurface attribute */ -#define EGL_LOWER_LEFT_KHR 0x30CE /* EGL_BITMAP_ORIGIN_KHR value */ -#define EGL_UPPER_LEFT_KHR 0x30CF /* EGL_BITMAP_ORIGIN_KHR value */ -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); -EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurface surface); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface); -#endif - -#ifndef EGL_KHR_image -#define EGL_KHR_image 1 -#define EGL_NATIVE_PIXMAP_KHR 0x30B0 /* eglCreateImageKHR target */ -typedef void *EGLImageKHR; -#define EGL_NO_IMAGE_KHR ((EGLImageKHR)0) -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); -EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image); -#endif - -#ifndef EGL_KHR_vg_parent_image -#define EGL_KHR_vg_parent_image 1 -#define EGL_VG_PARENT_IMAGE_KHR 0x30BA /* eglCreateImageKHR target */ -#endif - -#ifndef EGL_KHR_gl_texture_2D_image -#define EGL_KHR_gl_texture_2D_image 1 -#define EGL_GL_TEXTURE_2D_KHR 0x30B1 /* eglCreateImageKHR target */ -#define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC /* eglCreateImageKHR attribute */ -#endif - -#ifndef EGL_KHR_gl_texture_cubemap_image -#define EGL_KHR_gl_texture_cubemap_image 1 -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3 /* eglCreateImageKHR target */ -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4 /* eglCreateImageKHR target */ -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5 /* eglCreateImageKHR target */ -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6 /* eglCreateImageKHR target */ -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7 /* eglCreateImageKHR target */ -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8 /* eglCreateImageKHR target */ -#endif - -#ifndef EGL_KHR_gl_texture_3D_image -#define EGL_KHR_gl_texture_3D_image 1 -#define EGL_GL_TEXTURE_3D_KHR 0x30B2 /* eglCreateImageKHR target */ -#define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD /* eglCreateImageKHR attribute */ -#endif - -#ifndef EGL_KHR_gl_renderbuffer_image -#define EGL_KHR_gl_renderbuffer_image 1 -#define EGL_GL_RENDERBUFFER_KHR 0x30B9 /* eglCreateImageKHR target */ -#endif - -#if KHRONOS_SUPPORT_INT64 /* EGLTimeKHR requires 64-bit uint support */ -#ifndef EGL_KHR_reusable_sync -#define EGL_KHR_reusable_sync 1 - -typedef void* EGLSyncKHR; -typedef khronos_utime_nanoseconds_t EGLTimeKHR; - -#define EGL_SYNC_STATUS_KHR 0x30F1 -#define EGL_SIGNALED_KHR 0x30F2 -#define EGL_UNSIGNALED_KHR 0x30F3 -#define EGL_TIMEOUT_EXPIRED_KHR 0x30F5 -#define EGL_CONDITION_SATISFIED_KHR 0x30F6 -#define EGL_SYNC_TYPE_KHR 0x30F7 -#define EGL_SYNC_REUSABLE_KHR 0x30FA -#define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 /* eglClientWaitSyncKHR bitfield */ -#define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull -#define EGL_NO_SYNC_KHR ((EGLSyncKHR)0) -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); -EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync); -EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); -EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); -EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync); -typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); -#endif -#endif - -#ifndef EGL_KHR_image_base -#define EGL_KHR_image_base 1 -/* Most interfaces defined by EGL_KHR_image_pixmap above */ -#define EGL_IMAGE_PRESERVED_KHR 0x30D2 /* eglCreateImageKHR attribute */ -#endif - -#ifndef EGL_KHR_image_pixmap -#define EGL_KHR_image_pixmap 1 -/* Interfaces defined by EGL_KHR_image above */ -#endif - -#ifndef EGL_IMG_context_priority -#define EGL_IMG_context_priority 1 -#define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100 -#define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101 -#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102 -#define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103 -#endif - -#ifndef EGL_KHR_lock_surface2 -#define EGL_KHR_lock_surface2 1 -#define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110 -#endif - -#ifndef EGL_NV_coverage_sample -#define EGL_NV_coverage_sample 1 -#define EGL_COVERAGE_BUFFERS_NV 0x30E0 -#define EGL_COVERAGE_SAMPLES_NV 0x30E1 -#endif - -#ifndef EGL_NV_depth_nonlinear -#define EGL_NV_depth_nonlinear 1 -#define EGL_DEPTH_ENCODING_NV 0x30E2 -#define EGL_DEPTH_ENCODING_NONE_NV 0 -#define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3 -#endif - -#if KHRONOS_SUPPORT_INT64 /* EGLTimeNV requires 64-bit uint support */ -#ifndef EGL_NV_sync -#define EGL_NV_sync 1 -#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6 -#define EGL_SYNC_STATUS_NV 0x30E7 -#define EGL_SIGNALED_NV 0x30E8 -#define EGL_UNSIGNALED_NV 0x30E9 -#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001 -#define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull -#define EGL_ALREADY_SIGNALED_NV 0x30EA -#define EGL_TIMEOUT_EXPIRED_NV 0x30EB -#define EGL_CONDITION_SATISFIED_NV 0x30EC -#define EGL_SYNC_TYPE_NV 0x30ED -#define EGL_SYNC_CONDITION_NV 0x30EE -#define EGL_SYNC_FENCE_NV 0x30EF -#define EGL_NO_SYNC_NV ((EGLSyncNV)0) -typedef void* EGLSyncNV; -typedef khronos_utime_nanoseconds_t EGLTimeNV; -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); -EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync); -EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync); -EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); -EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode); -EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync); -typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value); -#endif -#endif - -#if KHRONOS_SUPPORT_INT64 /* Dependent on EGL_KHR_reusable_sync which requires 64-bit uint support */ -#ifndef EGL_KHR_fence_sync -#define EGL_KHR_fence_sync 1 -/* Reuses most tokens and entry points from EGL_KHR_reusable_sync */ -#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 -#define EGL_SYNC_CONDITION_KHR 0x30F8 -#define EGL_SYNC_FENCE_KHR 0x30F9 -#endif -#endif - -#ifndef EGL_HI_clientpixmap -#define EGL_HI_clientpixmap 1 - -/* Surface Attribute */ -#define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74 -/* - * Structure representing a client pixmap - * (pixmap's data is in client-space memory). - */ -struct EGLClientPixmapHI -{ - void* pData; - EGLint iWidth; - EGLint iHeight; - EGLint iStride; -}; -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI(EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap); -#endif /* EGL_HI_clientpixmap */ - -#ifndef EGL_HI_colorformats -#define EGL_HI_colorformats 1 -/* Config Attribute */ -#define EGL_COLOR_FORMAT_HI 0x8F70 -/* Color Formats */ -#define EGL_COLOR_RGB_HI 0x8F71 -#define EGL_COLOR_RGBA_HI 0x8F72 -#define EGL_COLOR_ARGB_HI 0x8F73 -#endif /* EGL_HI_colorformats */ - -#ifndef EGL_MESA_drm_image -#define EGL_MESA_drm_image 1 -#define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0 /* CreateDRMImageMESA attribute */ -#define EGL_DRM_BUFFER_USE_MESA 0x31D1 /* CreateDRMImageMESA attribute */ -#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2 /* EGL_IMAGE_FORMAT_MESA attribute value */ -#define EGL_DRM_BUFFER_MESA 0x31D3 /* eglCreateImageKHR target */ -#define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4 -#define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001 /* EGL_DRM_BUFFER_USE_MESA bits */ -#define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002 /* EGL_DRM_BUFFER_USE_MESA bits */ -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list); -EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); -#endif - -#ifndef EGL_NV_post_sub_buffer -#define EGL_NV_post_sub_buffer 1 -#define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); -#endif - -#ifndef EGL_ANGLE_query_surface_pointer -#define EGL_ANGLE_query_surface_pointer 1 -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLBoolean eglQuerySurfacePointerANGLE(EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); -#endif -typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); -#endif - -#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle -#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1 -#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200 -#endif - -#ifndef EGL_NV_coverage_sample_resolve -#define EGL_NV_coverage_sample_resolve 1 -#define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131 -#define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132 -#define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133 -#endif - -#if KHRONOS_SUPPORT_INT64 /* EGLuint64NV requires 64-bit uint support */ -#ifndef EGL_NV_system_time -#define EGL_NV_system_time 1 -typedef khronos_utime_nanoseconds_t EGLuint64NV; -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV(void); -EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV(void); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void); -typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void); -#endif -#endif - -#if KHRONOS_SUPPORT_INT64 /* EGLuint64KHR requires 64-bit uint support */ -#ifndef EGL_KHR_stream -#define EGL_KHR_stream 1 -typedef void* EGLStreamKHR; -typedef khronos_uint64_t EGLuint64KHR; -#define EGL_NO_STREAM_KHR ((EGLStreamKHR)0) -#define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210 -#define EGL_PRODUCER_FRAME_KHR 0x3212 -#define EGL_CONSUMER_FRAME_KHR 0x3213 -#define EGL_STREAM_STATE_KHR 0x3214 -#define EGL_STREAM_STATE_CREATED_KHR 0x3215 -#define EGL_STREAM_STATE_CONNECTING_KHR 0x3216 -#define EGL_STREAM_STATE_EMPTY_KHR 0x3217 -#define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218 -#define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219 -#define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A -#define EGL_BAD_STREAM_KHR 0x321B -#define EGL_BAD_STATE_KHR 0x321C -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR(EGLDisplay dpy, const EGLint *attrib_list); -EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR(EGLDisplay dpy, EGLStreamKHR stream); -EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); -EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); -EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC)(EGLDisplay dpy, const EGLint *attrib_list); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); -#endif -#endif - -#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ -#ifndef EGL_KHR_stream_consumer_gltexture -#define EGL_KHR_stream_consumer_gltexture 1 -#define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR(EGLDisplay dpy, EGLStreamKHR stream); -EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR(EGLDisplay dpy, EGLStreamKHR stream); -EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR(EGLDisplay dpy, EGLStreamKHR stream); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -#endif -#endif - -#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ -#ifndef EGL_KHR_stream_producer_eglsurface -#define EGL_KHR_stream_producer_eglsurface 1 -#define EGL_STREAM_BIT_KHR 0x0800 -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR(EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); -#endif -#endif - -#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ -#ifndef EGL_KHR_stream_producer_aldatalocator -#define EGL_KHR_stream_producer_aldatalocator 1 -#endif -#endif - -#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ -#ifndef EGL_KHR_stream_fifo -#define EGL_KHR_stream_fifo 1 -/* reuse EGLTimeKHR */ -#define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC -#define EGL_STREAM_TIME_NOW_KHR 0x31FD -#define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE -#define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); -#endif -#endif - -#ifndef EGL_EXT_create_context_robustness -#define EGL_EXT_create_context_robustness 1 -#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF -#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138 -#define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE -#define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF -#endif - -#ifndef EGL_ANGLE_d3d_share_handle_client_buffer -#define EGL_ANGLE_d3d_share_handle_client_buffer 1 -/* reuse EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE */ -#endif - -#ifndef EGL_KHR_create_context -#define EGL_KHR_create_context 1 -#define EGL_CONTEXT_MAJOR_VERSION_KHR EGL_CONTEXT_CLIENT_VERSION -#define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB -#define EGL_CONTEXT_FLAGS_KHR 0x30FC -#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD -#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD -#define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE -#define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF -#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 -#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002 -#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004 -#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001 -#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002 -#define EGL_OPENGL_ES3_BIT_KHR 0x00000040 -#endif - -#ifndef EGL_KHR_surfaceless_context -#define EGL_KHR_surfaceless_context 1 -/* No tokens/entry points, just relaxes an error condition */ -#endif - -#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ -#ifndef EGL_KHR_stream_cross_process_fd -#define EGL_KHR_stream_cross_process_fd 1 -typedef int EGLNativeFileDescriptorKHR; -#define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1)) -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR(EGLDisplay dpy, EGLStreamKHR stream); -EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR(EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC)(EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); -#endif -#endif - -#ifndef EGL_EXT_multiview_window -#define EGL_EXT_multiview_window 1 -#define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134 -#endif - -#ifndef EGL_KHR_wait_sync -#define EGL_KHR_wait_sync 1 -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); -#endif - -#ifndef EGL_NV_post_convert_rounding -#define EGL_NV_post_convert_rounding 1 -/* No tokens or entry points, just relaxes behavior of SwapBuffers */ -#endif - -#ifndef EGL_NV_native_query -#define EGL_NV_native_query 1 -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV( EGLDisplay dpy, EGLNativeDisplayType* display_id); -EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV( EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType* window); -EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV( EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType* pixmap); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC)(EGLDisplay dpy, EGLNativeDisplayType *display_id); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window); -typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap); -#endif - -#ifndef EGL_NV_3dvision_surface -#define EGL_NV_3dvision_surface 1 -#define EGL_AUTO_STEREO_NV 0x3136 -#endif - -#ifndef EGL_ANDROID_framebuffer_target -#define EGL_ANDROID_framebuffer_target 1 -#define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147 -#endif - -#ifndef EGL_ANDROID_blob_cache -#define EGL_ANDROID_blob_cache 1 -typedef khronos_ssize_t EGLsizeiANDROID; -typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize); -typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize); -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID(EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC)(EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); -#endif - -#ifndef EGL_ANDROID_image_native_buffer -#define EGL_ANDROID_image_native_buffer 1 -#define EGL_NATIVE_BUFFER_ANDROID 0x3140 -#endif - -#ifndef EGL_ANDROID_native_fence_sync -#define EGL_ANDROID_native_fence_sync 1 -#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144 -#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145 -#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146 -#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1 -#ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID( EGLDisplay dpy, EGLSyncKHR); -#endif /* EGL_EGLEXT_PROTOTYPES */ -typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC)(EGLDisplay dpy, EGLSyncKHR); -#endif - -#ifndef EGL_ANDROID_recordable -#define EGL_ANDROID_recordable 1 -#define EGL_RECORDABLE_ANDROID 0x3142 -#endif - -#ifndef EGL_EXT_buffer_age -#define EGL_EXT_buffer_age 1 -#define EGL_BUFFER_AGE_EXT 0x313D -#endif - -#ifndef EGL_EXT_image_dma_buf_import -#define EGL_EXT_image_dma_buf_import 1 -#define EGL_LINUX_DMA_BUF_EXT 0x3270 -#define EGL_LINUX_DRM_FOURCC_EXT 0x3271 -#define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272 -#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273 -#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 -#define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275 -#define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276 -#define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277 -#define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278 -#define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279 -#define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A -#define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B -#define EGL_SAMPLE_RANGE_HINT_EXT 0x327C -#define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D -#define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E -#define EGL_ITU_REC601_EXT 0x327F -#define EGL_ITU_REC709_EXT 0x3280 -#define EGL_ITU_REC2020_EXT 0x3281 -#define EGL_YUV_FULL_RANGE_EXT 0x3282 -#define EGL_YUV_NARROW_RANGE_EXT 0x3283 -#define EGL_YUV_CHROMA_SITING_0_EXT 0x3284 -#define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285 -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* __eglext_h_ */ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/glext.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/glext.h deleted file mode 100644 index e619fa3..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/glext.h +++ /dev/null @@ -1,11626 +0,0 @@ -#ifndef __glext_h_ -#define __glext_h_ 1 - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** Copyright (c) 2013-2014 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ -/* -** This header is generated from the Khronos OpenGL / OpenGL ES XML -** API Registry. The current version of the Registry, generator scripts -** used to make the header, and the header can be found at -** http://www.opengl.org/registry/ -** -** Khronos $Revision: 27684 $ on $Date: 2014-08-11 01:21:35 -0700 (Mon, 11 Aug 2014) $ -*/ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN 1 -#endif -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif -#ifndef GLAPI -#define GLAPI extern -#endif - -#define GL_GLEXT_VERSION 20140810 - -/* Generated C header for: - * API: gl - * Profile: compatibility - * Versions considered: .* - * Versions emitted: 1\.[2-9]|[234]\.[0-9] - * Default extensions included: gl - * Additional extensions included: _nomatch_^ - * Extensions removed: _nomatch_^ - */ - -#ifndef GL_VERSION_1_2 -#define GL_VERSION_1_2 1 -#define GL_UNSIGNED_BYTE_3_3_2 0x8032 -#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 -#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 -#define GL_UNSIGNED_INT_8_8_8_8 0x8035 -#define GL_UNSIGNED_INT_10_10_10_2 0x8036 -#define GL_TEXTURE_BINDING_3D 0x806A -#define GL_PACK_SKIP_IMAGES 0x806B -#define GL_PACK_IMAGE_HEIGHT 0x806C -#define GL_UNPACK_SKIP_IMAGES 0x806D -#define GL_UNPACK_IMAGE_HEIGHT 0x806E -#define GL_TEXTURE_3D 0x806F -#define GL_PROXY_TEXTURE_3D 0x8070 -#define GL_TEXTURE_DEPTH 0x8071 -#define GL_TEXTURE_WRAP_R 0x8072 -#define GL_MAX_3D_TEXTURE_SIZE 0x8073 -#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 -#define GL_UNSIGNED_SHORT_5_6_5 0x8363 -#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 -#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 -#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 -#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 -#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 -#define GL_BGR 0x80E0 -#define GL_BGRA 0x80E1 -#define GL_MAX_ELEMENTS_VERTICES 0x80E8 -#define GL_MAX_ELEMENTS_INDICES 0x80E9 -#define GL_CLAMP_TO_EDGE 0x812F -#define GL_TEXTURE_MIN_LOD 0x813A -#define GL_TEXTURE_MAX_LOD 0x813B -#define GL_TEXTURE_BASE_LEVEL 0x813C -#define GL_TEXTURE_MAX_LEVEL 0x813D -#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 -#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 -#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E -#define GL_RESCALE_NORMAL 0x803A -#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 -#define GL_SINGLE_COLOR 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR 0x81FA -#define GL_ALIASED_POINT_SIZE_RANGE 0x846D -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); -typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); -GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -#endif -#endif /* GL_VERSION_1_2 */ - -#ifndef GL_VERSION_1_3 -#define GL_VERSION_1_3 1 -#define GL_TEXTURE0 0x84C0 -#define GL_TEXTURE1 0x84C1 -#define GL_TEXTURE2 0x84C2 -#define GL_TEXTURE3 0x84C3 -#define GL_TEXTURE4 0x84C4 -#define GL_TEXTURE5 0x84C5 -#define GL_TEXTURE6 0x84C6 -#define GL_TEXTURE7 0x84C7 -#define GL_TEXTURE8 0x84C8 -#define GL_TEXTURE9 0x84C9 -#define GL_TEXTURE10 0x84CA -#define GL_TEXTURE11 0x84CB -#define GL_TEXTURE12 0x84CC -#define GL_TEXTURE13 0x84CD -#define GL_TEXTURE14 0x84CE -#define GL_TEXTURE15 0x84CF -#define GL_TEXTURE16 0x84D0 -#define GL_TEXTURE17 0x84D1 -#define GL_TEXTURE18 0x84D2 -#define GL_TEXTURE19 0x84D3 -#define GL_TEXTURE20 0x84D4 -#define GL_TEXTURE21 0x84D5 -#define GL_TEXTURE22 0x84D6 -#define GL_TEXTURE23 0x84D7 -#define GL_TEXTURE24 0x84D8 -#define GL_TEXTURE25 0x84D9 -#define GL_TEXTURE26 0x84DA -#define GL_TEXTURE27 0x84DB -#define GL_TEXTURE28 0x84DC -#define GL_TEXTURE29 0x84DD -#define GL_TEXTURE30 0x84DE -#define GL_TEXTURE31 0x84DF -#define GL_ACTIVE_TEXTURE 0x84E0 -#define GL_MULTISAMPLE 0x809D -#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE 0x809F -#define GL_SAMPLE_COVERAGE 0x80A0 -#define GL_SAMPLE_BUFFERS 0x80A8 -#define GL_SAMPLES 0x80A9 -#define GL_SAMPLE_COVERAGE_VALUE 0x80AA -#define GL_SAMPLE_COVERAGE_INVERT 0x80AB -#define GL_TEXTURE_CUBE_MAP 0x8513 -#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A -#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B -#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C -#define GL_COMPRESSED_RGB 0x84ED -#define GL_COMPRESSED_RGBA 0x84EE -#define GL_TEXTURE_COMPRESSION_HINT 0x84EF -#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 -#define GL_TEXTURE_COMPRESSED 0x86A1 -#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 -#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 -#define GL_CLAMP_TO_BORDER 0x812D -#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 -#define GL_MAX_TEXTURE_UNITS 0x84E2 -#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 -#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 -#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 -#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 -#define GL_MULTISAMPLE_BIT 0x20000000 -#define GL_NORMAL_MAP 0x8511 -#define GL_REFLECTION_MAP 0x8512 -#define GL_COMPRESSED_ALPHA 0x84E9 -#define GL_COMPRESSED_LUMINANCE 0x84EA -#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB -#define GL_COMPRESSED_INTENSITY 0x84EC -#define GL_COMBINE 0x8570 -#define GL_COMBINE_RGB 0x8571 -#define GL_COMBINE_ALPHA 0x8572 -#define GL_SOURCE0_RGB 0x8580 -#define GL_SOURCE1_RGB 0x8581 -#define GL_SOURCE2_RGB 0x8582 -#define GL_SOURCE0_ALPHA 0x8588 -#define GL_SOURCE1_ALPHA 0x8589 -#define GL_SOURCE2_ALPHA 0x858A -#define GL_OPERAND0_RGB 0x8590 -#define GL_OPERAND1_RGB 0x8591 -#define GL_OPERAND2_RGB 0x8592 -#define GL_OPERAND0_ALPHA 0x8598 -#define GL_OPERAND1_ALPHA 0x8599 -#define GL_OPERAND2_ALPHA 0x859A -#define GL_RGB_SCALE 0x8573 -#define GL_ADD_SIGNED 0x8574 -#define GL_INTERPOLATE 0x8575 -#define GL_SUBTRACT 0x84E7 -#define GL_CONSTANT 0x8576 -#define GL_PRIMARY_COLOR 0x8577 -#define GL_PREVIOUS 0x8578 -#define GL_DOT3_RGB 0x86AE -#define GL_DOT3_RGBA 0x86AF -typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img); -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m); -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glActiveTexture (GLenum texture); -GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert); -GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img); -GLAPI void APIENTRY glClientActiveTexture (GLenum texture); -GLAPI void APIENTRY glMultiTexCoord1d (GLenum target, GLdouble s); -GLAPI void APIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v); -GLAPI void APIENTRY glMultiTexCoord1f (GLenum target, GLfloat s); -GLAPI void APIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v); -GLAPI void APIENTRY glMultiTexCoord1i (GLenum target, GLint s); -GLAPI void APIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v); -GLAPI void APIENTRY glMultiTexCoord1s (GLenum target, GLshort s); -GLAPI void APIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v); -GLAPI void APIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t); -GLAPI void APIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v); -GLAPI void APIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t); -GLAPI void APIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v); -GLAPI void APIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t); -GLAPI void APIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v); -GLAPI void APIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t); -GLAPI void APIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v); -GLAPI void APIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r); -GLAPI void APIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v); -GLAPI void APIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r); -GLAPI void APIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v); -GLAPI void APIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r); -GLAPI void APIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v); -GLAPI void APIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r); -GLAPI void APIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v); -GLAPI void APIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI void APIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v); -GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI void APIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v); -GLAPI void APIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q); -GLAPI void APIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v); -GLAPI void APIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI void APIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v); -GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *m); -GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *m); -GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *m); -GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *m); -#endif -#endif /* GL_VERSION_1_3 */ - -#ifndef GL_VERSION_1_4 -#define GL_VERSION_1_4 1 -#define GL_BLEND_DST_RGB 0x80C8 -#define GL_BLEND_SRC_RGB 0x80C9 -#define GL_BLEND_DST_ALPHA 0x80CA -#define GL_BLEND_SRC_ALPHA 0x80CB -#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 -#define GL_DEPTH_COMPONENT16 0x81A5 -#define GL_DEPTH_COMPONENT24 0x81A6 -#define GL_DEPTH_COMPONENT32 0x81A7 -#define GL_MIRRORED_REPEAT 0x8370 -#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD -#define GL_TEXTURE_LOD_BIAS 0x8501 -#define GL_INCR_WRAP 0x8507 -#define GL_DECR_WRAP 0x8508 -#define GL_TEXTURE_DEPTH_SIZE 0x884A -#define GL_TEXTURE_COMPARE_MODE 0x884C -#define GL_TEXTURE_COMPARE_FUNC 0x884D -#define GL_POINT_SIZE_MIN 0x8126 -#define GL_POINT_SIZE_MAX 0x8127 -#define GL_POINT_DISTANCE_ATTENUATION 0x8129 -#define GL_GENERATE_MIPMAP 0x8191 -#define GL_GENERATE_MIPMAP_HINT 0x8192 -#define GL_FOG_COORDINATE_SOURCE 0x8450 -#define GL_FOG_COORDINATE 0x8451 -#define GL_FRAGMENT_DEPTH 0x8452 -#define GL_CURRENT_FOG_COORDINATE 0x8453 -#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 -#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 -#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 -#define GL_FOG_COORDINATE_ARRAY 0x8457 -#define GL_COLOR_SUM 0x8458 -#define GL_CURRENT_SECONDARY_COLOR 0x8459 -#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A -#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B -#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C -#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D -#define GL_SECONDARY_COLOR_ARRAY 0x845E -#define GL_TEXTURE_FILTER_CONTROL 0x8500 -#define GL_DEPTH_TEXTURE_MODE 0x884B -#define GL_COMPARE_R_TO_TEXTURE 0x884E -#define GL_FUNC_ADD 0x8006 -#define GL_FUNC_SUBTRACT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT 0x800B -#define GL_MIN 0x8007 -#define GL_MAX 0x8008 -#define GL_CONSTANT_COLOR 0x8001 -#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 -#define GL_CONSTANT_ALPHA 0x8003 -#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord); -typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord); -typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord); -typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord); -typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); -typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); -GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount); -GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param); -GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param); -GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params); -GLAPI void APIENTRY glFogCoordf (GLfloat coord); -GLAPI void APIENTRY glFogCoordfv (const GLfloat *coord); -GLAPI void APIENTRY glFogCoordd (GLdouble coord); -GLAPI void APIENTRY glFogCoorddv (const GLdouble *coord); -GLAPI void APIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue); -GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *v); -GLAPI void APIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue); -GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *v); -GLAPI void APIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue); -GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *v); -GLAPI void APIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue); -GLAPI void APIENTRY glSecondaryColor3iv (const GLint *v); -GLAPI void APIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue); -GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *v); -GLAPI void APIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue); -GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *v); -GLAPI void APIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue); -GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *v); -GLAPI void APIENTRY glSecondaryColor3us (GLushort red, GLushort green, GLushort blue); -GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *v); -GLAPI void APIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glWindowPos2d (GLdouble x, GLdouble y); -GLAPI void APIENTRY glWindowPos2dv (const GLdouble *v); -GLAPI void APIENTRY glWindowPos2f (GLfloat x, GLfloat y); -GLAPI void APIENTRY glWindowPos2fv (const GLfloat *v); -GLAPI void APIENTRY glWindowPos2i (GLint x, GLint y); -GLAPI void APIENTRY glWindowPos2iv (const GLint *v); -GLAPI void APIENTRY glWindowPos2s (GLshort x, GLshort y); -GLAPI void APIENTRY glWindowPos2sv (const GLshort *v); -GLAPI void APIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glWindowPos3dv (const GLdouble *v); -GLAPI void APIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glWindowPos3fv (const GLfloat *v); -GLAPI void APIENTRY glWindowPos3i (GLint x, GLint y, GLint z); -GLAPI void APIENTRY glWindowPos3iv (const GLint *v); -GLAPI void APIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z); -GLAPI void APIENTRY glWindowPos3sv (const GLshort *v); -GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI void APIENTRY glBlendEquation (GLenum mode); -#endif -#endif /* GL_VERSION_1_4 */ - -#ifndef GL_VERSION_1_5 -#define GL_VERSION_1_5 1 -#include -typedef ptrdiff_t GLsizeiptr; -typedef ptrdiff_t GLintptr; -#define GL_BUFFER_SIZE 0x8764 -#define GL_BUFFER_USAGE 0x8765 -#define GL_QUERY_COUNTER_BITS 0x8864 -#define GL_CURRENT_QUERY 0x8865 -#define GL_QUERY_RESULT 0x8866 -#define GL_QUERY_RESULT_AVAILABLE 0x8867 -#define GL_ARRAY_BUFFER 0x8892 -#define GL_ELEMENT_ARRAY_BUFFER 0x8893 -#define GL_ARRAY_BUFFER_BINDING 0x8894 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 -#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F -#define GL_READ_ONLY 0x88B8 -#define GL_WRITE_ONLY 0x88B9 -#define GL_READ_WRITE 0x88BA -#define GL_BUFFER_ACCESS 0x88BB -#define GL_BUFFER_MAPPED 0x88BC -#define GL_BUFFER_MAP_POINTER 0x88BD -#define GL_STREAM_DRAW 0x88E0 -#define GL_STREAM_READ 0x88E1 -#define GL_STREAM_COPY 0x88E2 -#define GL_STATIC_DRAW 0x88E4 -#define GL_STATIC_READ 0x88E5 -#define GL_STATIC_COPY 0x88E6 -#define GL_DYNAMIC_DRAW 0x88E8 -#define GL_DYNAMIC_READ 0x88E9 -#define GL_DYNAMIC_COPY 0x88EA -#define GL_SAMPLES_PASSED 0x8914 -#define GL_SRC1_ALPHA 0x8589 -#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 -#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 -#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 -#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A -#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B -#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C -#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D -#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E -#define GL_FOG_COORD_SRC 0x8450 -#define GL_FOG_COORD 0x8451 -#define GL_CURRENT_FOG_COORD 0x8453 -#define GL_FOG_COORD_ARRAY_TYPE 0x8454 -#define GL_FOG_COORD_ARRAY_STRIDE 0x8455 -#define GL_FOG_COORD_ARRAY_POINTER 0x8456 -#define GL_FOG_COORD_ARRAY 0x8457 -#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D -#define GL_SRC0_RGB 0x8580 -#define GL_SRC1_RGB 0x8581 -#define GL_SRC2_RGB 0x8582 -#define GL_SRC0_ALPHA 0x8588 -#define GL_SRC2_ALPHA 0x858A -typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id); -typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target); -typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); -typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); -typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); -typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage); -typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data); -typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids); -GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids); -GLAPI GLboolean APIENTRY glIsQuery (GLuint id); -GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id); -GLAPI void APIENTRY glEndQuery (GLenum target); -GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params); -GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer); -GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); -GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); -GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer); -GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage); -GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); -GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data); -GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access); -GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target); -GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params); -#endif -#endif /* GL_VERSION_1_5 */ - -#ifndef GL_VERSION_2_0 -#define GL_VERSION_2_0 1 -typedef char GLchar; -#define GL_BLEND_EQUATION_RGB 0x8009 -#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 -#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 -#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 -#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 -#define GL_CURRENT_VERTEX_ATTRIB 0x8626 -#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 -#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 -#define GL_STENCIL_BACK_FUNC 0x8800 -#define GL_STENCIL_BACK_FAIL 0x8801 -#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 -#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 -#define GL_MAX_DRAW_BUFFERS 0x8824 -#define GL_DRAW_BUFFER0 0x8825 -#define GL_DRAW_BUFFER1 0x8826 -#define GL_DRAW_BUFFER2 0x8827 -#define GL_DRAW_BUFFER3 0x8828 -#define GL_DRAW_BUFFER4 0x8829 -#define GL_DRAW_BUFFER5 0x882A -#define GL_DRAW_BUFFER6 0x882B -#define GL_DRAW_BUFFER7 0x882C -#define GL_DRAW_BUFFER8 0x882D -#define GL_DRAW_BUFFER9 0x882E -#define GL_DRAW_BUFFER10 0x882F -#define GL_DRAW_BUFFER11 0x8830 -#define GL_DRAW_BUFFER12 0x8831 -#define GL_DRAW_BUFFER13 0x8832 -#define GL_DRAW_BUFFER14 0x8833 -#define GL_DRAW_BUFFER15 0x8834 -#define GL_BLEND_EQUATION_ALPHA 0x883D -#define GL_MAX_VERTEX_ATTRIBS 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A -#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 -#define GL_FRAGMENT_SHADER 0x8B30 -#define GL_VERTEX_SHADER 0x8B31 -#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 -#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A -#define GL_MAX_VARYING_FLOATS 0x8B4B -#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C -#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D -#define GL_SHADER_TYPE 0x8B4F -#define GL_FLOAT_VEC2 0x8B50 -#define GL_FLOAT_VEC3 0x8B51 -#define GL_FLOAT_VEC4 0x8B52 -#define GL_INT_VEC2 0x8B53 -#define GL_INT_VEC3 0x8B54 -#define GL_INT_VEC4 0x8B55 -#define GL_BOOL 0x8B56 -#define GL_BOOL_VEC2 0x8B57 -#define GL_BOOL_VEC3 0x8B58 -#define GL_BOOL_VEC4 0x8B59 -#define GL_FLOAT_MAT2 0x8B5A -#define GL_FLOAT_MAT3 0x8B5B -#define GL_FLOAT_MAT4 0x8B5C -#define GL_SAMPLER_1D 0x8B5D -#define GL_SAMPLER_2D 0x8B5E -#define GL_SAMPLER_3D 0x8B5F -#define GL_SAMPLER_CUBE 0x8B60 -#define GL_SAMPLER_1D_SHADOW 0x8B61 -#define GL_SAMPLER_2D_SHADOW 0x8B62 -#define GL_DELETE_STATUS 0x8B80 -#define GL_COMPILE_STATUS 0x8B81 -#define GL_LINK_STATUS 0x8B82 -#define GL_VALIDATE_STATUS 0x8B83 -#define GL_INFO_LOG_LENGTH 0x8B84 -#define GL_ATTACHED_SHADERS 0x8B85 -#define GL_ACTIVE_UNIFORMS 0x8B86 -#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 -#define GL_SHADER_SOURCE_LENGTH 0x8B88 -#define GL_ACTIVE_ATTRIBUTES 0x8B89 -#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B -#define GL_SHADING_LANGUAGE_VERSION 0x8B8C -#define GL_CURRENT_PROGRAM 0x8B8D -#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 -#define GL_LOWER_LEFT 0x8CA1 -#define GL_UPPER_LEFT 0x8CA2 -#define GL_STENCIL_BACK_REF 0x8CA3 -#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 -#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 -#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 -#define GL_POINT_SPRITE 0x8861 -#define GL_COORD_REPLACE 0x8862 -#define GL_MAX_TEXTURE_COORDS 0x8871 -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); -typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs); -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask); -typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask); -typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name); -typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); -typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); -typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); -typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); -typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params); -typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer); -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); -typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader); -typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); -typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); -typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); -typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); -typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); -typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); -typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); -typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); -typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha); -GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs); -GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask); -GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask); -GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader); -GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name); -GLAPI void APIENTRY glCompileShader (GLuint shader); -GLAPI GLuint APIENTRY glCreateProgram (void); -GLAPI GLuint APIENTRY glCreateShader (GLenum type); -GLAPI void APIENTRY glDeleteProgram (GLuint program); -GLAPI void APIENTRY glDeleteShader (GLuint shader); -GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader); -GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index); -GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index); -GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); -GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name); -GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); -GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name); -GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params); -GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params); -GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params); -GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer); -GLAPI GLboolean APIENTRY glIsProgram (GLuint program); -GLAPI GLboolean APIENTRY glIsShader (GLuint shader); -GLAPI void APIENTRY glLinkProgram (GLuint program); -GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); -GLAPI void APIENTRY glUseProgram (GLuint program); -GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0); -GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1); -GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI void APIENTRY glUniform1i (GLint location, GLint v0); -GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1); -GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2); -GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glValidateProgram (GLuint program); -GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x); -GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x); -GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x); -GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y); -GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y); -GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y); -GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z); -GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v); -GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v); -GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); -#endif -#endif /* GL_VERSION_2_0 */ - -#ifndef GL_VERSION_2_1 -#define GL_VERSION_2_1 1 -#define GL_PIXEL_PACK_BUFFER 0x88EB -#define GL_PIXEL_UNPACK_BUFFER 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF -#define GL_FLOAT_MAT2x3 0x8B65 -#define GL_FLOAT_MAT2x4 0x8B66 -#define GL_FLOAT_MAT3x2 0x8B67 -#define GL_FLOAT_MAT3x4 0x8B68 -#define GL_FLOAT_MAT4x2 0x8B69 -#define GL_FLOAT_MAT4x3 0x8B6A -#define GL_SRGB 0x8C40 -#define GL_SRGB8 0x8C41 -#define GL_SRGB_ALPHA 0x8C42 -#define GL_SRGB8_ALPHA8 0x8C43 -#define GL_COMPRESSED_SRGB 0x8C48 -#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 -#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F -#define GL_SLUMINANCE_ALPHA 0x8C44 -#define GL_SLUMINANCE8_ALPHA8 0x8C45 -#define GL_SLUMINANCE 0x8C46 -#define GL_SLUMINANCE8 0x8C47 -#define GL_COMPRESSED_SLUMINANCE 0x8C4A -#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -#endif -#endif /* GL_VERSION_2_1 */ - -#ifndef GL_VERSION_3_0 -#define GL_VERSION_3_0 1 -typedef unsigned short GLhalf; -#define GL_COMPARE_REF_TO_TEXTURE 0x884E -#define GL_CLIP_DISTANCE0 0x3000 -#define GL_CLIP_DISTANCE1 0x3001 -#define GL_CLIP_DISTANCE2 0x3002 -#define GL_CLIP_DISTANCE3 0x3003 -#define GL_CLIP_DISTANCE4 0x3004 -#define GL_CLIP_DISTANCE5 0x3005 -#define GL_CLIP_DISTANCE6 0x3006 -#define GL_CLIP_DISTANCE7 0x3007 -#define GL_MAX_CLIP_DISTANCES 0x0D32 -#define GL_MAJOR_VERSION 0x821B -#define GL_MINOR_VERSION 0x821C -#define GL_NUM_EXTENSIONS 0x821D -#define GL_CONTEXT_FLAGS 0x821E -#define GL_COMPRESSED_RED 0x8225 -#define GL_COMPRESSED_RG 0x8226 -#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 -#define GL_RGBA32F 0x8814 -#define GL_RGB32F 0x8815 -#define GL_RGBA16F 0x881A -#define GL_RGB16F 0x881B -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD -#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF -#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 -#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 -#define GL_CLAMP_READ_COLOR 0x891C -#define GL_FIXED_ONLY 0x891D -#define GL_MAX_VARYING_COMPONENTS 0x8B4B -#define GL_TEXTURE_1D_ARRAY 0x8C18 -#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 -#define GL_TEXTURE_2D_ARRAY 0x8C1A -#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B -#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C -#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D -#define GL_R11F_G11F_B10F 0x8C3A -#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B -#define GL_RGB9_E5 0x8C3D -#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E -#define GL_TEXTURE_SHARED_SIZE 0x8C3F -#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 -#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 -#define GL_PRIMITIVES_GENERATED 0x8C87 -#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 -#define GL_RASTERIZER_DISCARD 0x8C89 -#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B -#define GL_INTERLEAVED_ATTRIBS 0x8C8C -#define GL_SEPARATE_ATTRIBS 0x8C8D -#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F -#define GL_RGBA32UI 0x8D70 -#define GL_RGB32UI 0x8D71 -#define GL_RGBA16UI 0x8D76 -#define GL_RGB16UI 0x8D77 -#define GL_RGBA8UI 0x8D7C -#define GL_RGB8UI 0x8D7D -#define GL_RGBA32I 0x8D82 -#define GL_RGB32I 0x8D83 -#define GL_RGBA16I 0x8D88 -#define GL_RGB16I 0x8D89 -#define GL_RGBA8I 0x8D8E -#define GL_RGB8I 0x8D8F -#define GL_RED_INTEGER 0x8D94 -#define GL_GREEN_INTEGER 0x8D95 -#define GL_BLUE_INTEGER 0x8D96 -#define GL_RGB_INTEGER 0x8D98 -#define GL_RGBA_INTEGER 0x8D99 -#define GL_BGR_INTEGER 0x8D9A -#define GL_BGRA_INTEGER 0x8D9B -#define GL_SAMPLER_1D_ARRAY 0x8DC0 -#define GL_SAMPLER_2D_ARRAY 0x8DC1 -#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 -#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 -#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 -#define GL_UNSIGNED_INT_VEC2 0x8DC6 -#define GL_UNSIGNED_INT_VEC3 0x8DC7 -#define GL_UNSIGNED_INT_VEC4 0x8DC8 -#define GL_INT_SAMPLER_1D 0x8DC9 -#define GL_INT_SAMPLER_2D 0x8DCA -#define GL_INT_SAMPLER_3D 0x8DCB -#define GL_INT_SAMPLER_CUBE 0x8DCC -#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE -#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF -#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 -#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 -#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 -#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 -#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 -#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 -#define GL_QUERY_WAIT 0x8E13 -#define GL_QUERY_NO_WAIT 0x8E14 -#define GL_QUERY_BY_REGION_WAIT 0x8E15 -#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 -#define GL_BUFFER_ACCESS_FLAGS 0x911F -#define GL_BUFFER_MAP_LENGTH 0x9120 -#define GL_BUFFER_MAP_OFFSET 0x9121 -#define GL_DEPTH_COMPONENT32F 0x8CAC -#define GL_DEPTH32F_STENCIL8 0x8CAD -#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD -#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 -#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 -#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 -#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 -#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 -#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 -#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 -#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 -#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 -#define GL_FRAMEBUFFER_DEFAULT 0x8218 -#define GL_FRAMEBUFFER_UNDEFINED 0x8219 -#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A -#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 -#define GL_DEPTH_STENCIL 0x84F9 -#define GL_UNSIGNED_INT_24_8 0x84FA -#define GL_DEPTH24_STENCIL8 0x88F0 -#define GL_TEXTURE_STENCIL_SIZE 0x88F1 -#define GL_TEXTURE_RED_TYPE 0x8C10 -#define GL_TEXTURE_GREEN_TYPE 0x8C11 -#define GL_TEXTURE_BLUE_TYPE 0x8C12 -#define GL_TEXTURE_ALPHA_TYPE 0x8C13 -#define GL_TEXTURE_DEPTH_TYPE 0x8C16 -#define GL_UNSIGNED_NORMALIZED 0x8C17 -#define GL_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_RENDERBUFFER_BINDING 0x8CA7 -#define GL_READ_FRAMEBUFFER 0x8CA8 -#define GL_DRAW_FRAMEBUFFER 0x8CA9 -#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA -#define GL_RENDERBUFFER_SAMPLES 0x8CAB -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 -#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 -#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 -#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 -#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB -#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC -#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD -#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF -#define GL_COLOR_ATTACHMENT0 0x8CE0 -#define GL_COLOR_ATTACHMENT1 0x8CE1 -#define GL_COLOR_ATTACHMENT2 0x8CE2 -#define GL_COLOR_ATTACHMENT3 0x8CE3 -#define GL_COLOR_ATTACHMENT4 0x8CE4 -#define GL_COLOR_ATTACHMENT5 0x8CE5 -#define GL_COLOR_ATTACHMENT6 0x8CE6 -#define GL_COLOR_ATTACHMENT7 0x8CE7 -#define GL_COLOR_ATTACHMENT8 0x8CE8 -#define GL_COLOR_ATTACHMENT9 0x8CE9 -#define GL_COLOR_ATTACHMENT10 0x8CEA -#define GL_COLOR_ATTACHMENT11 0x8CEB -#define GL_COLOR_ATTACHMENT12 0x8CEC -#define GL_COLOR_ATTACHMENT13 0x8CED -#define GL_COLOR_ATTACHMENT14 0x8CEE -#define GL_COLOR_ATTACHMENT15 0x8CEF -#define GL_DEPTH_ATTACHMENT 0x8D00 -#define GL_STENCIL_ATTACHMENT 0x8D20 -#define GL_FRAMEBUFFER 0x8D40 -#define GL_RENDERBUFFER 0x8D41 -#define GL_RENDERBUFFER_WIDTH 0x8D42 -#define GL_RENDERBUFFER_HEIGHT 0x8D43 -#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 -#define GL_STENCIL_INDEX1 0x8D46 -#define GL_STENCIL_INDEX4 0x8D47 -#define GL_STENCIL_INDEX8 0x8D48 -#define GL_STENCIL_INDEX16 0x8D49 -#define GL_RENDERBUFFER_RED_SIZE 0x8D50 -#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 -#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 -#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 -#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 -#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 -#define GL_MAX_SAMPLES 0x8D57 -#define GL_INDEX 0x8222 -#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14 -#define GL_TEXTURE_INTENSITY_TYPE 0x8C15 -#define GL_FRAMEBUFFER_SRGB 0x8DB9 -#define GL_HALF_FLOAT 0x140B -#define GL_MAP_READ_BIT 0x0001 -#define GL_MAP_WRITE_BIT 0x0002 -#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 -#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 -#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 -#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 -#define GL_COMPRESSED_RED_RGTC1 0x8DBB -#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC -#define GL_COMPRESSED_RG_RGTC2 0x8DBD -#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE -#define GL_RG 0x8227 -#define GL_RG_INTEGER 0x8228 -#define GL_R8 0x8229 -#define GL_R16 0x822A -#define GL_RG8 0x822B -#define GL_RG16 0x822C -#define GL_R16F 0x822D -#define GL_R32F 0x822E -#define GL_RG16F 0x822F -#define GL_RG32F 0x8230 -#define GL_R8I 0x8231 -#define GL_R8UI 0x8232 -#define GL_R16I 0x8233 -#define GL_R16UI 0x8234 -#define GL_R32I 0x8235 -#define GL_R32UI 0x8236 -#define GL_RG8I 0x8237 -#define GL_RG8UI 0x8238 -#define GL_RG16I 0x8239 -#define GL_RG16UI 0x823A -#define GL_RG32I 0x823B -#define GL_RG32UI 0x823C -#define GL_VERTEX_ARRAY_BINDING 0x85B5 -#define GL_CLAMP_VERTEX_COLOR 0x891A -#define GL_CLAMP_FRAGMENT_COLOR 0x891B -#define GL_ALPHA_INTEGER 0x8D97 -typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data); -typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data); -typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index); -typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode); -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void); -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp); -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode); -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void); -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params); -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); -typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); -typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers); -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target); -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays); -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data); -GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data); -GLAPI void APIENTRY glEnablei (GLenum target, GLuint index); -GLAPI void APIENTRY glDisablei (GLenum target, GLuint index); -GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index); -GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode); -GLAPI void APIENTRY glEndTransformFeedback (void); -GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer); -GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); -GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp); -GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode); -GLAPI void APIENTRY glEndConditionalRender (void); -GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params); -GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x); -GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y); -GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z); -GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x); -GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y); -GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z); -GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v); -GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params); -GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name); -GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name); -GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0); -GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1); -GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params); -GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params); -GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value); -GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value); -GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value); -GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); -GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index); -GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer); -GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer); -GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers); -GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers); -GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer); -GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer); -GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers); -GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers); -GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target); -GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params); -GLAPI void APIENTRY glGenerateMipmap (GLenum target); -GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length); -GLAPI void APIENTRY glBindVertexArray (GLuint array); -GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays); -GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays); -GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array); -#endif -#endif /* GL_VERSION_3_0 */ - -#ifndef GL_VERSION_3_1 -#define GL_VERSION_3_1 1 -#define GL_SAMPLER_2D_RECT 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 -#define GL_SAMPLER_BUFFER 0x8DC2 -#define GL_INT_SAMPLER_2D_RECT 0x8DCD -#define GL_INT_SAMPLER_BUFFER 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 -#define GL_TEXTURE_BUFFER 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D -#define GL_TEXTURE_RECTANGLE 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 -#define GL_R8_SNORM 0x8F94 -#define GL_RG8_SNORM 0x8F95 -#define GL_RGB8_SNORM 0x8F96 -#define GL_RGBA8_SNORM 0x8F97 -#define GL_R16_SNORM 0x8F98 -#define GL_RG16_SNORM 0x8F99 -#define GL_RGB16_SNORM 0x8F9A -#define GL_RGBA16_SNORM 0x8F9B -#define GL_SIGNED_NORMALIZED 0x8F9C -#define GL_PRIMITIVE_RESTART 0x8F9D -#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E -#define GL_COPY_READ_BUFFER 0x8F36 -#define GL_COPY_WRITE_BUFFER 0x8F37 -#define GL_UNIFORM_BUFFER 0x8A11 -#define GL_UNIFORM_BUFFER_BINDING 0x8A28 -#define GL_UNIFORM_BUFFER_START 0x8A29 -#define GL_UNIFORM_BUFFER_SIZE 0x8A2A -#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B -#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C -#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D -#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E -#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F -#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 -#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 -#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 -#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 -#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 -#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 -#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 -#define GL_UNIFORM_TYPE 0x8A37 -#define GL_UNIFORM_SIZE 0x8A38 -#define GL_UNIFORM_NAME_LENGTH 0x8A39 -#define GL_UNIFORM_BLOCK_INDEX 0x8A3A -#define GL_UNIFORM_OFFSET 0x8A3B -#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C -#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D -#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E -#define GL_UNIFORM_BLOCK_BINDING 0x8A3F -#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 -#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 -#define GL_INVALID_INDEX 0xFFFFFFFFu -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount); -typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer); -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index); -typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); -typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); -typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); -GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount); -GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer); -GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index); -GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices); -GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); -GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName); -GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); -GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); -#endif -#endif /* GL_VERSION_3_1 */ - -#ifndef GL_VERSION_3_2 -#define GL_VERSION_3_2 1 -typedef struct __GLsync *GLsync; -#ifndef GLEXT_64_TYPES_DEFINED -/* This code block is duplicated in glxext.h, so must be protected */ -#define GLEXT_64_TYPES_DEFINED -/* Define int32_t, int64_t, and uint64_t types for UST/MSC */ -/* (as used in the GL_EXT_timer_query extension). */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#include -#elif defined(__sun__) || defined(__digital__) -#include -#if defined(__STDC__) -#if defined(__arch64__) || defined(_LP64) -typedef long int int64_t; -typedef unsigned long int uint64_t; -#else -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#endif /* __arch64__ */ -#endif /* __STDC__ */ -#elif defined( __VMS ) || defined(__sgi) -#include -#elif defined(__SCO__) || defined(__USLC__) -#include -#elif defined(__UNIXOS2__) || defined(__SOL64__) -typedef long int int32_t; -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#elif defined(_WIN32) && defined(__GNUC__) -#include -#elif defined(_WIN32) -typedef __int32 int32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -/* Fallback if nothing above works */ -#include -#endif -#endif -typedef uint64_t GLuint64; -typedef int64_t GLint64; -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define GL_LINES_ADJACENCY 0x000A -#define GL_LINE_STRIP_ADJACENCY 0x000B -#define GL_TRIANGLES_ADJACENCY 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D -#define GL_PROGRAM_POINT_SIZE 0x8642 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 -#define GL_GEOMETRY_SHADER 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT 0x8916 -#define GL_GEOMETRY_INPUT_TYPE 0x8917 -#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 -#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 -#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 -#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 -#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 -#define GL_CONTEXT_PROFILE_MASK 0x9126 -#define GL_DEPTH_CLAMP 0x864F -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION 0x8E4D -#define GL_LAST_VERTEX_CONVENTION 0x8E4E -#define GL_PROVOKING_VERTEX 0x8E4F -#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F -#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 -#define GL_OBJECT_TYPE 0x9112 -#define GL_SYNC_CONDITION 0x9113 -#define GL_SYNC_STATUS 0x9114 -#define GL_SYNC_FLAGS 0x9115 -#define GL_SYNC_FENCE 0x9116 -#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 -#define GL_UNSIGNALED 0x9118 -#define GL_SIGNALED 0x9119 -#define GL_ALREADY_SIGNALED 0x911A -#define GL_TIMEOUT_EXPIRED 0x911B -#define GL_CONDITION_SATISFIED 0x911C -#define GL_WAIT_FAILED 0x911D -#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull -#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 -#define GL_SAMPLE_POSITION 0x8E50 -#define GL_SAMPLE_MASK 0x8E51 -#define GL_SAMPLE_MASK_VALUE 0x8E52 -#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 -#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 -#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 -#define GL_TEXTURE_SAMPLES 0x9106 -#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 -#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 -#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A -#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B -#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D -#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E -#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F -#define GL_MAX_INTEGER_SAMPLES 0x9110 -typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex); -typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode); -typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags); -typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync); -typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync); -typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); -typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); -typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data); -typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data); -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val); -typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); -GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); -GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); -GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex); -GLAPI void APIENTRY glProvokingVertex (GLenum mode); -GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags); -GLAPI GLboolean APIENTRY glIsSync (GLsync sync); -GLAPI void APIENTRY glDeleteSync (GLsync sync); -GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data); -GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data); -GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params); -GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level); -GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val); -GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask); -#endif -#endif /* GL_VERSION_3_2 */ - -#ifndef GL_VERSION_3_3 -#define GL_VERSION_3_3 1 -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE -#define GL_SRC1_COLOR 0x88F9 -#define GL_ONE_MINUS_SRC1_COLOR 0x88FA -#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB -#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC -#define GL_ANY_SAMPLES_PASSED 0x8C2F -#define GL_SAMPLER_BINDING 0x8919 -#define GL_RGB10_A2UI 0x906F -#define GL_TEXTURE_SWIZZLE_R 0x8E42 -#define GL_TEXTURE_SWIZZLE_G 0x8E43 -#define GL_TEXTURE_SWIZZLE_B 0x8E44 -#define GL_TEXTURE_SWIZZLE_A 0x8E45 -#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 -#define GL_TIME_ELAPSED 0x88BF -#define GL_TIMESTAMP 0x8E28 -#define GL_INT_2_10_10_10_REV 0x8D9F -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers); -typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers); -typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler); -typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param); -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params); -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value); -typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color); -typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color); -typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color); -typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color); -typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color); -typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); -GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name); -GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers); -GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers); -GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler); -GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler); -GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param); -GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param); -GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param); -GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param); -GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param); -GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param); -GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params); -GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target); -GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params); -GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params); -GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor); -GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value); -GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value); -GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value); -GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value); -GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value); -GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value); -GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords); -GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords); -GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords); -GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords); -GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords); -GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords); -GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords); -GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords); -GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color); -GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color); -GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color); -GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color); -GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color); -GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color); -#endif -#endif /* GL_VERSION_3_3 */ - -#ifndef GL_VERSION_4_0 -#define GL_VERSION_4_0 1 -#define GL_SAMPLE_SHADING 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F -#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B -#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F -#define GL_DRAW_INDIRECT_BUFFER 0x8F3F -#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43 -#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F -#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C -#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D -#define GL_MAX_VERTEX_STREAMS 0x8E71 -#define GL_DOUBLE_VEC2 0x8FFC -#define GL_DOUBLE_VEC3 0x8FFD -#define GL_DOUBLE_VEC4 0x8FFE -#define GL_DOUBLE_MAT2 0x8F46 -#define GL_DOUBLE_MAT3 0x8F47 -#define GL_DOUBLE_MAT4 0x8F48 -#define GL_DOUBLE_MAT2x3 0x8F49 -#define GL_DOUBLE_MAT2x4 0x8F4A -#define GL_DOUBLE_MAT3x2 0x8F4B -#define GL_DOUBLE_MAT3x4 0x8F4C -#define GL_DOUBLE_MAT4x2 0x8F4D -#define GL_DOUBLE_MAT4x3 0x8F4E -#define GL_ACTIVE_SUBROUTINES 0x8DE5 -#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6 -#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47 -#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48 -#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49 -#define GL_MAX_SUBROUTINES 0x8DE7 -#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8 -#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A -#define GL_COMPATIBLE_SUBROUTINES 0x8E4B -#define GL_PATCHES 0x000E -#define GL_PATCH_VERTICES 0x8E72 -#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73 -#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74 -#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75 -#define GL_TESS_GEN_MODE 0x8E76 -#define GL_TESS_GEN_SPACING 0x8E77 -#define GL_TESS_GEN_VERTEX_ORDER 0x8E78 -#define GL_TESS_GEN_POINT_MODE 0x8E79 -#define GL_ISOLINES 0x8E7A -#define GL_FRACTIONAL_ODD 0x8E7B -#define GL_FRACTIONAL_EVEN 0x8E7C -#define GL_MAX_PATCH_VERTICES 0x8E7D -#define GL_MAX_TESS_GEN_LEVEL 0x8E7E -#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F -#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80 -#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81 -#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82 -#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83 -#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84 -#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85 -#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86 -#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89 -#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A -#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C -#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D -#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E -#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F -#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1 -#define GL_TESS_EVALUATION_SHADER 0x8E87 -#define GL_TESS_CONTROL_SHADER 0x8E88 -#define GL_TRANSFORM_FEEDBACK 0x8E22 -#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23 -#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24 -#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25 -#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70 -typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value); -typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect); -typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x); -typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params); -typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name); -typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name); -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices); -typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values); -typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value); -typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values); -typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids); -typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id); -typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void); -typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void); -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id); -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream); -typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id); -typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMinSampleShading (GLfloat value); -GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode); -GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst); -GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect); -GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect); -GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x); -GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y); -GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params); -GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name); -GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name); -GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); -GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices); -GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params); -GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values); -GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value); -GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values); -GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id); -GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids); -GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids); -GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id); -GLAPI void APIENTRY glPauseTransformFeedback (void); -GLAPI void APIENTRY glResumeTransformFeedback (void); -GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id); -GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream); -GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id); -GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index); -GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params); -#endif -#endif /* GL_VERSION_4_0 */ - -#ifndef GL_VERSION_4_1 -#define GL_VERSION_4_1 1 -#define GL_FIXED 0x140C -#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B -#define GL_LOW_FLOAT 0x8DF0 -#define GL_MEDIUM_FLOAT 0x8DF1 -#define GL_HIGH_FLOAT 0x8DF2 -#define GL_LOW_INT 0x8DF3 -#define GL_MEDIUM_INT 0x8DF4 -#define GL_HIGH_INT 0x8DF5 -#define GL_SHADER_COMPILER 0x8DFA -#define GL_SHADER_BINARY_FORMATS 0x8DF8 -#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 -#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB -#define GL_MAX_VARYING_VECTORS 0x8DFC -#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD -#define GL_RGB565 0x8D62 -#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 -#define GL_PROGRAM_BINARY_LENGTH 0x8741 -#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE -#define GL_PROGRAM_BINARY_FORMATS 0x87FF -#define GL_VERTEX_SHADER_BIT 0x00000001 -#define GL_FRAGMENT_SHADER_BIT 0x00000002 -#define GL_GEOMETRY_SHADER_BIT 0x00000004 -#define GL_TESS_CONTROL_SHADER_BIT 0x00000008 -#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010 -#define GL_ALL_SHADER_BITS 0xFFFFFFFF -#define GL_PROGRAM_SEPARABLE 0x8258 -#define GL_ACTIVE_PROGRAM 0x8259 -#define GL_PROGRAM_PIPELINE_BINDING 0x825A -#define GL_MAX_VIEWPORTS 0x825B -#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C -#define GL_VIEWPORT_BOUNDS_RANGE 0x825D -#define GL_LAYER_PROVOKING_VERTEX 0x825E -#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F -#define GL_UNDEFINED_VERTEX 0x8260 -typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void); -typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length); -typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); -typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f); -typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d); -typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); -typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value); -typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program); -typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program); -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings); -typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline); -typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines); -typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines); -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline); -typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline); -typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v); -typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f); -typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data); -typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glReleaseShaderCompiler (void); -GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length); -GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); -GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f); -GLAPI void APIENTRY glClearDepthf (GLfloat d); -GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); -GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length); -GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value); -GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program); -GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program); -GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings); -GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline); -GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines); -GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines); -GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline); -GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params); -GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0); -GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0); -GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0); -GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0); -GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1); -GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1); -GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1); -GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1); -GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); -GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); -GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline); -GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x); -GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y); -GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params); -GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v); -GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v); -GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v); -GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v); -GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f); -GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data); -GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data); -#endif -#endif /* GL_VERSION_4_1 */ - -#ifndef GL_VERSION_4_2 -#define GL_VERSION_4_2 1 -#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127 -#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128 -#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129 -#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A -#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B -#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C -#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D -#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E -#define GL_NUM_SAMPLE_COUNTS 0x9380 -#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC -#define GL_ATOMIC_COUNTER_BUFFER 0x92C0 -#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1 -#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2 -#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3 -#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4 -#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5 -#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB -#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE -#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF -#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0 -#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1 -#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2 -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3 -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4 -#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5 -#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6 -#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7 -#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8 -#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC -#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9 -#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA -#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB -#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001 -#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002 -#define GL_UNIFORM_BARRIER_BIT 0x00000004 -#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008 -#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020 -#define GL_COMMAND_BARRIER_BIT 0x00000040 -#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080 -#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100 -#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200 -#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400 -#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800 -#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000 -#define GL_ALL_BARRIER_BITS 0xFFFFFFFF -#define GL_MAX_IMAGE_UNITS 0x8F38 -#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39 -#define GL_IMAGE_BINDING_NAME 0x8F3A -#define GL_IMAGE_BINDING_LEVEL 0x8F3B -#define GL_IMAGE_BINDING_LAYERED 0x8F3C -#define GL_IMAGE_BINDING_LAYER 0x8F3D -#define GL_IMAGE_BINDING_ACCESS 0x8F3E -#define GL_IMAGE_1D 0x904C -#define GL_IMAGE_2D 0x904D -#define GL_IMAGE_3D 0x904E -#define GL_IMAGE_2D_RECT 0x904F -#define GL_IMAGE_CUBE 0x9050 -#define GL_IMAGE_BUFFER 0x9051 -#define GL_IMAGE_1D_ARRAY 0x9052 -#define GL_IMAGE_2D_ARRAY 0x9053 -#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054 -#define GL_IMAGE_2D_MULTISAMPLE 0x9055 -#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056 -#define GL_INT_IMAGE_1D 0x9057 -#define GL_INT_IMAGE_2D 0x9058 -#define GL_INT_IMAGE_3D 0x9059 -#define GL_INT_IMAGE_2D_RECT 0x905A -#define GL_INT_IMAGE_CUBE 0x905B -#define GL_INT_IMAGE_BUFFER 0x905C -#define GL_INT_IMAGE_1D_ARRAY 0x905D -#define GL_INT_IMAGE_2D_ARRAY 0x905E -#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F -#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060 -#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061 -#define GL_UNSIGNED_INT_IMAGE_1D 0x9062 -#define GL_UNSIGNED_INT_IMAGE_2D 0x9063 -#define GL_UNSIGNED_INT_IMAGE_3D 0x9064 -#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065 -#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066 -#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067 -#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068 -#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069 -#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C -#define GL_MAX_IMAGE_SAMPLES 0x906D -#define GL_IMAGE_BINDING_FORMAT 0x906E -#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7 -#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8 -#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9 -#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA -#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB -#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC -#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD -#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE -#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF -#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C -#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D -#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E -#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F -#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); -typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params); -typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); -typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers); -typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount); -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); -GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); -GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); -GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params); -GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); -GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); -GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers); -GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount); -GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); -#endif -#endif /* GL_VERSION_4_2 */ - -#ifndef GL_VERSION_4_3 -#define GL_VERSION_4_3 1 -typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9 -#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E -#define GL_COMPRESSED_RGB8_ETC2 0x9274 -#define GL_COMPRESSED_SRGB8_ETC2 0x9275 -#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276 -#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277 -#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278 -#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279 -#define GL_COMPRESSED_R11_EAC 0x9270 -#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271 -#define GL_COMPRESSED_RG11_EAC 0x9272 -#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273 -#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69 -#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A -#define GL_MAX_ELEMENT_INDEX 0x8D6B -#define GL_COMPUTE_SHADER 0x91B9 -#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB -#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC -#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD -#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262 -#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263 -#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264 -#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265 -#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266 -#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB -#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE -#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF -#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED -#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE -#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF -#define GL_COMPUTE_SHADER_BIT 0x00000020 -#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242 -#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243 -#define GL_DEBUG_CALLBACK_FUNCTION 0x8244 -#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245 -#define GL_DEBUG_SOURCE_API 0x8246 -#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247 -#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248 -#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249 -#define GL_DEBUG_SOURCE_APPLICATION 0x824A -#define GL_DEBUG_SOURCE_OTHER 0x824B -#define GL_DEBUG_TYPE_ERROR 0x824C -#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D -#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E -#define GL_DEBUG_TYPE_PORTABILITY 0x824F -#define GL_DEBUG_TYPE_PERFORMANCE 0x8250 -#define GL_DEBUG_TYPE_OTHER 0x8251 -#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES 0x9145 -#define GL_DEBUG_SEVERITY_HIGH 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM 0x9147 -#define GL_DEBUG_SEVERITY_LOW 0x9148 -#define GL_DEBUG_TYPE_MARKER 0x8268 -#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 -#define GL_DEBUG_TYPE_POP_GROUP 0x826A -#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B -#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C -#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D -#define GL_BUFFER 0x82E0 -#define GL_SHADER 0x82E1 -#define GL_PROGRAM 0x82E2 -#define GL_QUERY 0x82E3 -#define GL_PROGRAM_PIPELINE 0x82E4 -#define GL_SAMPLER 0x82E6 -#define GL_MAX_LABEL_LENGTH 0x82E8 -#define GL_DEBUG_OUTPUT 0x92E0 -#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 -#define GL_MAX_UNIFORM_LOCATIONS 0x826E -#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310 -#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311 -#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312 -#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313 -#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314 -#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315 -#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316 -#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317 -#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318 -#define GL_INTERNALFORMAT_SUPPORTED 0x826F -#define GL_INTERNALFORMAT_PREFERRED 0x8270 -#define GL_INTERNALFORMAT_RED_SIZE 0x8271 -#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272 -#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273 -#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274 -#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275 -#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276 -#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277 -#define GL_INTERNALFORMAT_RED_TYPE 0x8278 -#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279 -#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A -#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B -#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C -#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D -#define GL_MAX_WIDTH 0x827E -#define GL_MAX_HEIGHT 0x827F -#define GL_MAX_DEPTH 0x8280 -#define GL_MAX_LAYERS 0x8281 -#define GL_MAX_COMBINED_DIMENSIONS 0x8282 -#define GL_COLOR_COMPONENTS 0x8283 -#define GL_DEPTH_COMPONENTS 0x8284 -#define GL_STENCIL_COMPONENTS 0x8285 -#define GL_COLOR_RENDERABLE 0x8286 -#define GL_DEPTH_RENDERABLE 0x8287 -#define GL_STENCIL_RENDERABLE 0x8288 -#define GL_FRAMEBUFFER_RENDERABLE 0x8289 -#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A -#define GL_FRAMEBUFFER_BLEND 0x828B -#define GL_READ_PIXELS 0x828C -#define GL_READ_PIXELS_FORMAT 0x828D -#define GL_READ_PIXELS_TYPE 0x828E -#define GL_TEXTURE_IMAGE_FORMAT 0x828F -#define GL_TEXTURE_IMAGE_TYPE 0x8290 -#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291 -#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292 -#define GL_MIPMAP 0x8293 -#define GL_MANUAL_GENERATE_MIPMAP 0x8294 -#define GL_AUTO_GENERATE_MIPMAP 0x8295 -#define GL_COLOR_ENCODING 0x8296 -#define GL_SRGB_READ 0x8297 -#define GL_SRGB_WRITE 0x8298 -#define GL_FILTER 0x829A -#define GL_VERTEX_TEXTURE 0x829B -#define GL_TESS_CONTROL_TEXTURE 0x829C -#define GL_TESS_EVALUATION_TEXTURE 0x829D -#define GL_GEOMETRY_TEXTURE 0x829E -#define GL_FRAGMENT_TEXTURE 0x829F -#define GL_COMPUTE_TEXTURE 0x82A0 -#define GL_TEXTURE_SHADOW 0x82A1 -#define GL_TEXTURE_GATHER 0x82A2 -#define GL_TEXTURE_GATHER_SHADOW 0x82A3 -#define GL_SHADER_IMAGE_LOAD 0x82A4 -#define GL_SHADER_IMAGE_STORE 0x82A5 -#define GL_SHADER_IMAGE_ATOMIC 0x82A6 -#define GL_IMAGE_TEXEL_SIZE 0x82A7 -#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8 -#define GL_IMAGE_PIXEL_FORMAT 0x82A9 -#define GL_IMAGE_PIXEL_TYPE 0x82AA -#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC -#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD -#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE -#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF -#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1 -#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2 -#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3 -#define GL_CLEAR_BUFFER 0x82B4 -#define GL_TEXTURE_VIEW 0x82B5 -#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6 -#define GL_FULL_SUPPORT 0x82B7 -#define GL_CAVEAT_SUPPORT 0x82B8 -#define GL_IMAGE_CLASS_4_X_32 0x82B9 -#define GL_IMAGE_CLASS_2_X_32 0x82BA -#define GL_IMAGE_CLASS_1_X_32 0x82BB -#define GL_IMAGE_CLASS_4_X_16 0x82BC -#define GL_IMAGE_CLASS_2_X_16 0x82BD -#define GL_IMAGE_CLASS_1_X_16 0x82BE -#define GL_IMAGE_CLASS_4_X_8 0x82BF -#define GL_IMAGE_CLASS_2_X_8 0x82C0 -#define GL_IMAGE_CLASS_1_X_8 0x82C1 -#define GL_IMAGE_CLASS_11_11_10 0x82C2 -#define GL_IMAGE_CLASS_10_10_10_2 0x82C3 -#define GL_VIEW_CLASS_128_BITS 0x82C4 -#define GL_VIEW_CLASS_96_BITS 0x82C5 -#define GL_VIEW_CLASS_64_BITS 0x82C6 -#define GL_VIEW_CLASS_48_BITS 0x82C7 -#define GL_VIEW_CLASS_32_BITS 0x82C8 -#define GL_VIEW_CLASS_24_BITS 0x82C9 -#define GL_VIEW_CLASS_16_BITS 0x82CA -#define GL_VIEW_CLASS_8_BITS 0x82CB -#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC -#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD -#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE -#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF -#define GL_VIEW_CLASS_RGTC1_RED 0x82D0 -#define GL_VIEW_CLASS_RGTC2_RG 0x82D1 -#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2 -#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3 -#define GL_UNIFORM 0x92E1 -#define GL_UNIFORM_BLOCK 0x92E2 -#define GL_PROGRAM_INPUT 0x92E3 -#define GL_PROGRAM_OUTPUT 0x92E4 -#define GL_BUFFER_VARIABLE 0x92E5 -#define GL_SHADER_STORAGE_BLOCK 0x92E6 -#define GL_VERTEX_SUBROUTINE 0x92E8 -#define GL_TESS_CONTROL_SUBROUTINE 0x92E9 -#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA -#define GL_GEOMETRY_SUBROUTINE 0x92EB -#define GL_FRAGMENT_SUBROUTINE 0x92EC -#define GL_COMPUTE_SUBROUTINE 0x92ED -#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE -#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF -#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0 -#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1 -#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2 -#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3 -#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4 -#define GL_ACTIVE_RESOURCES 0x92F5 -#define GL_MAX_NAME_LENGTH 0x92F6 -#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7 -#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8 -#define GL_NAME_LENGTH 0x92F9 -#define GL_TYPE 0x92FA -#define GL_ARRAY_SIZE 0x92FB -#define GL_OFFSET 0x92FC -#define GL_BLOCK_INDEX 0x92FD -#define GL_ARRAY_STRIDE 0x92FE -#define GL_MATRIX_STRIDE 0x92FF -#define GL_IS_ROW_MAJOR 0x9300 -#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301 -#define GL_BUFFER_BINDING 0x9302 -#define GL_BUFFER_DATA_SIZE 0x9303 -#define GL_NUM_ACTIVE_VARIABLES 0x9304 -#define GL_ACTIVE_VARIABLES 0x9305 -#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306 -#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307 -#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308 -#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309 -#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A -#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B -#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C -#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D -#define GL_LOCATION 0x930E -#define GL_LOCATION_INDEX 0x930F -#define GL_IS_PER_PATCH 0x92E7 -#define GL_SHADER_STORAGE_BUFFER 0x90D2 -#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3 -#define GL_SHADER_STORAGE_BUFFER_START 0x90D4 -#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5 -#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6 -#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7 -#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8 -#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9 -#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA -#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB -#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC -#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD -#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE -#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF -#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000 -#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39 -#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA -#define GL_TEXTURE_BUFFER_OFFSET 0x919D -#define GL_TEXTURE_BUFFER_SIZE 0x919E -#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F -#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB -#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC -#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD -#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE -#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF -#define GL_VERTEX_ATTRIB_BINDING 0x82D4 -#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5 -#define GL_VERTEX_BINDING_DIVISOR 0x82D6 -#define GL_VERTEX_BINDING_OFFSET 0x82D7 -#define GL_VERTEX_BINDING_STRIDE 0x82D8 -#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9 -#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA -#define GL_VERTEX_BINDING_BUFFER 0x8F4F -#define GL_DISPLAY_LIST 0x82E7 -typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); -typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect); -typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params); -typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); -typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); -typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments); -typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); -typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params); -typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name); -typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); -typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params); -typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name); -typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); -typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); -typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex); -typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor); -typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam); -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message); -typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void); -typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label); -typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); -typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label); -typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); -GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect); -GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params); -GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); -GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level); -GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length); -GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer); -GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments); -GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); -GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); -GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params); -GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name); -GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); -GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params); -GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name); -GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name); -GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); -GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); -GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex); -GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor); -GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam); -GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message); -GLAPI void APIENTRY glPopDebugGroup (void); -GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label); -GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); -GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label); -GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); -#endif -#endif /* GL_VERSION_4_3 */ - -#ifndef GL_VERSION_4_4 -#define GL_VERSION_4_4 1 -#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 -#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221 -#define GL_TEXTURE_BUFFER_BINDING 0x8C2A -#define GL_MAP_PERSISTENT_BIT 0x0040 -#define GL_MAP_COHERENT_BIT 0x0080 -#define GL_DYNAMIC_STORAGE_BIT 0x0100 -#define GL_CLIENT_STORAGE_BIT 0x0200 -#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000 -#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F -#define GL_BUFFER_STORAGE_FLAGS 0x8220 -#define GL_CLEAR_TEXTURE 0x9365 -#define GL_LOCATION_COMPONENT 0x934A -#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B -#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C -#define GL_QUERY_BUFFER 0x9192 -#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000 -#define GL_QUERY_BUFFER_BINDING 0x9193 -#define GL_QUERY_RESULT_NO_WAIT 0x9194 -#define GL_MIRROR_CLAMP_TO_EDGE 0x8743 -typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); -typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers); -typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes); -typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures); -typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers); -typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures); -typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); -GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers); -GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes); -GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures); -GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers); -GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures); -GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); -#endif -#endif /* GL_VERSION_4_4 */ - -#ifndef GL_VERSION_4_5 -#define GL_VERSION_4_5 1 -#define GL_CONTEXT_LOST 0x0507 -#define GL_NEGATIVE_ONE_TO_ONE 0x935E -#define GL_ZERO_TO_ONE 0x935F -#define GL_CLIP_ORIGIN 0x935C -#define GL_CLIP_DEPTH_MODE 0x935D -#define GL_QUERY_WAIT_INVERTED 0x8E17 -#define GL_QUERY_NO_WAIT_INVERTED 0x8E18 -#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19 -#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A -#define GL_MAX_CULL_DISTANCES 0x82F9 -#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA -#define GL_TEXTURE_TARGET 0x1006 -#define GL_QUERY_TARGET 0x82EA -#define GL_TEXTURE_BINDING 0x82EB -#define GL_GUILTY_CONTEXT_RESET 0x8253 -#define GL_INNOCENT_CONTEXT_RESET 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET 0x8255 -#define GL_RESET_NOTIFICATION_STRATEGY 0x8256 -#define GL_LOSE_CONTEXT_ON_RESET 0x8252 -#define GL_NO_RESET_NOTIFICATION 0x8261 -#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004 -#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB -#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC -typedef void (APIENTRYP PFNGLCLIPCONTROLPROC) (GLenum origin, GLenum depth); -typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC) (GLuint xfb, GLuint index, GLuint buffer); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC) (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizei size); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC) (GLuint xfb, GLenum pname, GLint *param); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param); -typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC) (GLsizei n, GLuint *buffers); -typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC) (GLuint buffer, GLsizei size, const void *data, GLbitfield flags); -typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC) (GLuint buffer, GLsizei size, const void *data, GLenum usage); -typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizei size, const void *data); -typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizei size); -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizei size, GLenum format, GLenum type, const void *data); -typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access); -typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizei length, GLbitfield access); -typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizei length); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC) (GLuint buffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC) (GLuint buffer, GLenum pname, GLint64 *params); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC) (GLuint buffer, GLenum pname, void **params); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizei size, void *data); -typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC) (GLuint framebuffer, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC) (GLuint framebuffer, GLenum buf); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC) (GLuint framebuffer, GLenum src); -typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments); -typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value); -typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); -typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value); -typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC) (GLuint framebuffer, GLenum buffer, const GLfloat depth, GLint stencil); -typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC) (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC) (GLuint framebuffer, GLenum target); -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC) (GLuint framebuffer, GLenum pname, GLint *param); -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC) (GLuint renderbuffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLCREATETEXTURESPROC) (GLenum target, GLsizei n, GLuint *textures); -typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC) (GLuint texture, GLenum internalformat, GLuint buffer); -typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC) (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizei size); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC) (GLuint texture, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, const GLfloat *param); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC) (GLuint texture, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, const GLint *param); -typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC) (GLuint texture); -typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC) (GLuint unit, GLuint texture); -typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLsizei bufSize, void *pixels); -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC) (GLuint texture, GLint level, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC) (GLuint texture, GLint level, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); -typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index); -typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index); -typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC) (GLuint vaobj, GLuint buffer); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC) (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); -typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); -typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); -typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC) (GLuint vaobj, GLenum pname, GLint *param); -typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param); -typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param); -typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC) (GLsizei n, GLuint *samplers); -typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines); -typedef void (APIENTRYP PFNGLCREATEQUERIESPROC) (GLenum target, GLsizei n, GLuint *ids); -typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC) (GLbitfield barriers); -typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels); -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC) (void); -typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLsizei bufSize, void *pixels); -typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params); -typedef void (APIENTRYP PFNGLREADNPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); -typedef void (APIENTRYP PFNGLGETNMAPDVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v); -typedef void (APIENTRYP PFNGLGETNMAPFVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v); -typedef void (APIENTRYP PFNGLGETNMAPIVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v); -typedef void (APIENTRYP PFNGLGETNPIXELMAPFVPROC) (GLenum map, GLsizei bufSize, GLfloat *values); -typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVPROC) (GLenum map, GLsizei bufSize, GLuint *values); -typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVPROC) (GLenum map, GLsizei bufSize, GLushort *values); -typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEPROC) (GLsizei bufSize, GLubyte *pattern); -typedef void (APIENTRYP PFNGLGETNCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table); -typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image); -typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span); -typedef void (APIENTRYP PFNGLGETNHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -typedef void (APIENTRYP PFNGLGETNMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glClipControl (GLenum origin, GLenum depth); -GLAPI void APIENTRY glCreateTransformFeedbacks (GLsizei n, GLuint *ids); -GLAPI void APIENTRY glTransformFeedbackBufferBase (GLuint xfb, GLuint index, GLuint buffer); -GLAPI void APIENTRY glTransformFeedbackBufferRange (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizei size); -GLAPI void APIENTRY glGetTransformFeedbackiv (GLuint xfb, GLenum pname, GLint *param); -GLAPI void APIENTRY glGetTransformFeedbacki_v (GLuint xfb, GLenum pname, GLuint index, GLint *param); -GLAPI void APIENTRY glGetTransformFeedbacki64_v (GLuint xfb, GLenum pname, GLuint index, GLint64 *param); -GLAPI void APIENTRY glCreateBuffers (GLsizei n, GLuint *buffers); -GLAPI void APIENTRY glNamedBufferStorage (GLuint buffer, GLsizei size, const void *data, GLbitfield flags); -GLAPI void APIENTRY glNamedBufferData (GLuint buffer, GLsizei size, const void *data, GLenum usage); -GLAPI void APIENTRY glNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizei size, const void *data); -GLAPI void APIENTRY glCopyNamedBufferSubData (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizei size); -GLAPI void APIENTRY glClearNamedBufferData (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glClearNamedBufferSubData (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizei size, GLenum format, GLenum type, const void *data); -GLAPI void *APIENTRY glMapNamedBuffer (GLuint buffer, GLenum access); -GLAPI void *APIENTRY glMapNamedBufferRange (GLuint buffer, GLintptr offset, GLsizei length, GLbitfield access); -GLAPI GLboolean APIENTRY glUnmapNamedBuffer (GLuint buffer); -GLAPI void APIENTRY glFlushMappedNamedBufferRange (GLuint buffer, GLintptr offset, GLsizei length); -GLAPI void APIENTRY glGetNamedBufferParameteriv (GLuint buffer, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetNamedBufferParameteri64v (GLuint buffer, GLenum pname, GLint64 *params); -GLAPI void APIENTRY glGetNamedBufferPointerv (GLuint buffer, GLenum pname, void **params); -GLAPI void APIENTRY glGetNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizei size, void *data); -GLAPI void APIENTRY glCreateFramebuffers (GLsizei n, GLuint *framebuffers); -GLAPI void APIENTRY glNamedFramebufferRenderbuffer (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI void APIENTRY glNamedFramebufferParameteri (GLuint framebuffer, GLenum pname, GLint param); -GLAPI void APIENTRY glNamedFramebufferTexture (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -GLAPI void APIENTRY glNamedFramebufferTextureLayer (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI void APIENTRY glNamedFramebufferDrawBuffer (GLuint framebuffer, GLenum buf); -GLAPI void APIENTRY glNamedFramebufferDrawBuffers (GLuint framebuffer, GLsizei n, const GLenum *bufs); -GLAPI void APIENTRY glNamedFramebufferReadBuffer (GLuint framebuffer, GLenum src); -GLAPI void APIENTRY glInvalidateNamedFramebufferData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments); -GLAPI void APIENTRY glInvalidateNamedFramebufferSubData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glClearNamedFramebufferiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value); -GLAPI void APIENTRY glClearNamedFramebufferuiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); -GLAPI void APIENTRY glClearNamedFramebufferfv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value); -GLAPI void APIENTRY glClearNamedFramebufferfi (GLuint framebuffer, GLenum buffer, const GLfloat depth, GLint stencil); -GLAPI void APIENTRY glBlitNamedFramebuffer (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI GLenum APIENTRY glCheckNamedFramebufferStatus (GLuint framebuffer, GLenum target); -GLAPI void APIENTRY glGetNamedFramebufferParameteriv (GLuint framebuffer, GLenum pname, GLint *param); -GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameteriv (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); -GLAPI void APIENTRY glCreateRenderbuffers (GLsizei n, GLuint *renderbuffers); -GLAPI void APIENTRY glNamedRenderbufferStorage (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glNamedRenderbufferStorageMultisample (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetNamedRenderbufferParameteriv (GLuint renderbuffer, GLenum pname, GLint *params); -GLAPI void APIENTRY glCreateTextures (GLenum target, GLsizei n, GLuint *textures); -GLAPI void APIENTRY glTextureBuffer (GLuint texture, GLenum internalformat, GLuint buffer); -GLAPI void APIENTRY glTextureBufferRange (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizei size); -GLAPI void APIENTRY glTextureStorage1D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI void APIENTRY glTextureStorage2D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glTextureStorage3D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -GLAPI void APIENTRY glTextureStorage2DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTextureStorage3DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glCompressedTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCopyTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glCopyTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glCopyTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glTextureParameterf (GLuint texture, GLenum pname, GLfloat param); -GLAPI void APIENTRY glTextureParameterfv (GLuint texture, GLenum pname, const GLfloat *param); -GLAPI void APIENTRY glTextureParameteri (GLuint texture, GLenum pname, GLint param); -GLAPI void APIENTRY glTextureParameterIiv (GLuint texture, GLenum pname, const GLint *params); -GLAPI void APIENTRY glTextureParameterIuiv (GLuint texture, GLenum pname, const GLuint *params); -GLAPI void APIENTRY glTextureParameteriv (GLuint texture, GLenum pname, const GLint *param); -GLAPI void APIENTRY glGenerateTextureMipmap (GLuint texture); -GLAPI void APIENTRY glBindTextureUnit (GLuint unit, GLuint texture); -GLAPI void APIENTRY glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -GLAPI void APIENTRY glGetCompressedTextureImage (GLuint texture, GLint level, GLsizei bufSize, void *pixels); -GLAPI void APIENTRY glGetTextureLevelParameterfv (GLuint texture, GLint level, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetTextureLevelParameteriv (GLuint texture, GLint level, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetTextureParameterfv (GLuint texture, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetTextureParameterIiv (GLuint texture, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetTextureParameterIuiv (GLuint texture, GLenum pname, GLuint *params); -GLAPI void APIENTRY glGetTextureParameteriv (GLuint texture, GLenum pname, GLint *params); -GLAPI void APIENTRY glCreateVertexArrays (GLsizei n, GLuint *arrays); -GLAPI void APIENTRY glDisableVertexArrayAttrib (GLuint vaobj, GLuint index); -GLAPI void APIENTRY glEnableVertexArrayAttrib (GLuint vaobj, GLuint index); -GLAPI void APIENTRY glVertexArrayElementBuffer (GLuint vaobj, GLuint buffer); -GLAPI void APIENTRY glVertexArrayVertexBuffer (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -GLAPI void APIENTRY glVertexArrayVertexBuffers (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); -GLAPI void APIENTRY glVertexArrayAttribBinding (GLuint vaobj, GLuint attribindex, GLuint bindingindex); -GLAPI void APIENTRY glVertexArrayAttribFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayAttribIFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayAttribLFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayBindingDivisor (GLuint vaobj, GLuint bindingindex, GLuint divisor); -GLAPI void APIENTRY glGetVertexArrayiv (GLuint vaobj, GLenum pname, GLint *param); -GLAPI void APIENTRY glGetVertexArrayIndexediv (GLuint vaobj, GLuint index, GLenum pname, GLint *param); -GLAPI void APIENTRY glGetVertexArrayIndexed64iv (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param); -GLAPI void APIENTRY glCreateSamplers (GLsizei n, GLuint *samplers); -GLAPI void APIENTRY glCreateProgramPipelines (GLsizei n, GLuint *pipelines); -GLAPI void APIENTRY glCreateQueries (GLenum target, GLsizei n, GLuint *ids); -GLAPI void APIENTRY glMemoryBarrierByRegion (GLbitfield barriers); -GLAPI void APIENTRY glGetTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -GLAPI void APIENTRY glGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels); -GLAPI GLenum APIENTRY glGetGraphicsResetStatus (void); -GLAPI void APIENTRY glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, void *pixels); -GLAPI void APIENTRY glGetnTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -GLAPI void APIENTRY glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); -GLAPI void APIENTRY glGetnUniformfv (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -GLAPI void APIENTRY glGetnUniformiv (GLuint program, GLint location, GLsizei bufSize, GLint *params); -GLAPI void APIENTRY glGetnUniformuiv (GLuint program, GLint location, GLsizei bufSize, GLuint *params); -GLAPI void APIENTRY glReadnPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); -GLAPI void APIENTRY glGetnMapdv (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v); -GLAPI void APIENTRY glGetnMapfv (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v); -GLAPI void APIENTRY glGetnMapiv (GLenum target, GLenum query, GLsizei bufSize, GLint *v); -GLAPI void APIENTRY glGetnPixelMapfv (GLenum map, GLsizei bufSize, GLfloat *values); -GLAPI void APIENTRY glGetnPixelMapuiv (GLenum map, GLsizei bufSize, GLuint *values); -GLAPI void APIENTRY glGetnPixelMapusv (GLenum map, GLsizei bufSize, GLushort *values); -GLAPI void APIENTRY glGetnPolygonStipple (GLsizei bufSize, GLubyte *pattern); -GLAPI void APIENTRY glGetnColorTable (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table); -GLAPI void APIENTRY glGetnConvolutionFilter (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image); -GLAPI void APIENTRY glGetnSeparableFilter (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span); -GLAPI void APIENTRY glGetnHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -GLAPI void APIENTRY glGetnMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -GLAPI void APIENTRY glTextureBarrier (void); -#endif -#endif /* GL_VERSION_4_5 */ - -#ifndef GL_ARB_ES2_compatibility -#define GL_ARB_ES2_compatibility 1 -#endif /* GL_ARB_ES2_compatibility */ - -#ifndef GL_ARB_ES3_1_compatibility -#define GL_ARB_ES3_1_compatibility 1 -#endif /* GL_ARB_ES3_1_compatibility */ - -#ifndef GL_ARB_ES3_compatibility -#define GL_ARB_ES3_compatibility 1 -#endif /* GL_ARB_ES3_compatibility */ - -#ifndef GL_ARB_arrays_of_arrays -#define GL_ARB_arrays_of_arrays 1 -#endif /* GL_ARB_arrays_of_arrays */ - -#ifndef GL_ARB_base_instance -#define GL_ARB_base_instance 1 -#endif /* GL_ARB_base_instance */ - -#ifndef GL_ARB_bindless_texture -#define GL_ARB_bindless_texture 1 -typedef uint64_t GLuint64EXT; -#define GL_UNSIGNED_INT64_ARB 0x140F -typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture); -typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler); -typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle); -typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle); -typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); -typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access); -typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle); -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value); -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values); -typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle); -typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLuint64 APIENTRY glGetTextureHandleARB (GLuint texture); -GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB (GLuint texture, GLuint sampler); -GLAPI void APIENTRY glMakeTextureHandleResidentARB (GLuint64 handle); -GLAPI void APIENTRY glMakeTextureHandleNonResidentARB (GLuint64 handle); -GLAPI GLuint64 APIENTRY glGetImageHandleARB (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); -GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access); -GLAPI void APIENTRY glMakeImageHandleNonResidentARB (GLuint64 handle); -GLAPI void APIENTRY glUniformHandleui64ARB (GLint location, GLuint64 value); -GLAPI void APIENTRY glUniformHandleui64vARB (GLint location, GLsizei count, const GLuint64 *value); -GLAPI void APIENTRY glProgramUniformHandleui64ARB (GLuint program, GLint location, GLuint64 value); -GLAPI void APIENTRY glProgramUniformHandleui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *values); -GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB (GLuint64 handle); -GLAPI GLboolean APIENTRY glIsImageHandleResidentARB (GLuint64 handle); -GLAPI void APIENTRY glVertexAttribL1ui64ARB (GLuint index, GLuint64EXT x); -GLAPI void APIENTRY glVertexAttribL1ui64vARB (GLuint index, const GLuint64EXT *v); -GLAPI void APIENTRY glGetVertexAttribLui64vARB (GLuint index, GLenum pname, GLuint64EXT *params); -#endif -#endif /* GL_ARB_bindless_texture */ - -#ifndef GL_ARB_blend_func_extended -#define GL_ARB_blend_func_extended 1 -#endif /* GL_ARB_blend_func_extended */ - -#ifndef GL_ARB_buffer_storage -#define GL_ARB_buffer_storage 1 -#endif /* GL_ARB_buffer_storage */ - -#ifndef GL_ARB_cl_event -#define GL_ARB_cl_event 1 -struct _cl_context; -struct _cl_event; -#define GL_SYNC_CL_EVENT_ARB 0x8240 -#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241 -typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context *context, struct _cl_event *event, GLbitfield flags); -#endif -#endif /* GL_ARB_cl_event */ - -#ifndef GL_ARB_clear_buffer_object -#define GL_ARB_clear_buffer_object 1 -#endif /* GL_ARB_clear_buffer_object */ - -#ifndef GL_ARB_clear_texture -#define GL_ARB_clear_texture 1 -#endif /* GL_ARB_clear_texture */ - -#ifndef GL_ARB_clip_control -#define GL_ARB_clip_control 1 -#endif /* GL_ARB_clip_control */ - -#ifndef GL_ARB_color_buffer_float -#define GL_ARB_color_buffer_float 1 -#define GL_RGBA_FLOAT_MODE_ARB 0x8820 -#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A -#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B -#define GL_CLAMP_READ_COLOR_ARB 0x891C -#define GL_FIXED_ONLY_ARB 0x891D -typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glClampColorARB (GLenum target, GLenum clamp); -#endif -#endif /* GL_ARB_color_buffer_float */ - -#ifndef GL_ARB_compatibility -#define GL_ARB_compatibility 1 -#endif /* GL_ARB_compatibility */ - -#ifndef GL_ARB_compressed_texture_pixel_storage -#define GL_ARB_compressed_texture_pixel_storage 1 -#endif /* GL_ARB_compressed_texture_pixel_storage */ - -#ifndef GL_ARB_compute_shader -#define GL_ARB_compute_shader 1 -#endif /* GL_ARB_compute_shader */ - -#ifndef GL_ARB_compute_variable_group_size -#define GL_ARB_compute_variable_group_size 1 -#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344 -#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB -#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345 -#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF -typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDispatchComputeGroupSizeARB (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); -#endif -#endif /* GL_ARB_compute_variable_group_size */ - -#ifndef GL_ARB_conditional_render_inverted -#define GL_ARB_conditional_render_inverted 1 -#endif /* GL_ARB_conditional_render_inverted */ - -#ifndef GL_ARB_conservative_depth -#define GL_ARB_conservative_depth 1 -#endif /* GL_ARB_conservative_depth */ - -#ifndef GL_ARB_copy_buffer -#define GL_ARB_copy_buffer 1 -#define GL_COPY_READ_BUFFER_BINDING 0x8F36 -#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37 -#endif /* GL_ARB_copy_buffer */ - -#ifndef GL_ARB_copy_image -#define GL_ARB_copy_image 1 -#endif /* GL_ARB_copy_image */ - -#ifndef GL_ARB_cull_distance -#define GL_ARB_cull_distance 1 -#endif /* GL_ARB_cull_distance */ - -#ifndef GL_ARB_debug_output -#define GL_ARB_debug_output 1 -typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 -#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 -#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 -#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 -#define GL_DEBUG_SOURCE_API_ARB 0x8246 -#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 -#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 -#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 -#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A -#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B -#define GL_DEBUG_TYPE_ERROR_ARB 0x824C -#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D -#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E -#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F -#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 -#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 -#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 -#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 -#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 -typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam); -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const void *userParam); -GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -#endif -#endif /* GL_ARB_debug_output */ - -#ifndef GL_ARB_depth_buffer_float -#define GL_ARB_depth_buffer_float 1 -#endif /* GL_ARB_depth_buffer_float */ - -#ifndef GL_ARB_depth_clamp -#define GL_ARB_depth_clamp 1 -#endif /* GL_ARB_depth_clamp */ - -#ifndef GL_ARB_depth_texture -#define GL_ARB_depth_texture 1 -#define GL_DEPTH_COMPONENT16_ARB 0x81A5 -#define GL_DEPTH_COMPONENT24_ARB 0x81A6 -#define GL_DEPTH_COMPONENT32_ARB 0x81A7 -#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A -#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B -#endif /* GL_ARB_depth_texture */ - -#ifndef GL_ARB_derivative_control -#define GL_ARB_derivative_control 1 -#endif /* GL_ARB_derivative_control */ - -#ifndef GL_ARB_direct_state_access -#define GL_ARB_direct_state_access 1 -#endif /* GL_ARB_direct_state_access */ - -#ifndef GL_ARB_draw_buffers -#define GL_ARB_draw_buffers 1 -#define GL_MAX_DRAW_BUFFERS_ARB 0x8824 -#define GL_DRAW_BUFFER0_ARB 0x8825 -#define GL_DRAW_BUFFER1_ARB 0x8826 -#define GL_DRAW_BUFFER2_ARB 0x8827 -#define GL_DRAW_BUFFER3_ARB 0x8828 -#define GL_DRAW_BUFFER4_ARB 0x8829 -#define GL_DRAW_BUFFER5_ARB 0x882A -#define GL_DRAW_BUFFER6_ARB 0x882B -#define GL_DRAW_BUFFER7_ARB 0x882C -#define GL_DRAW_BUFFER8_ARB 0x882D -#define GL_DRAW_BUFFER9_ARB 0x882E -#define GL_DRAW_BUFFER10_ARB 0x882F -#define GL_DRAW_BUFFER11_ARB 0x8830 -#define GL_DRAW_BUFFER12_ARB 0x8831 -#define GL_DRAW_BUFFER13_ARB 0x8832 -#define GL_DRAW_BUFFER14_ARB 0x8833 -#define GL_DRAW_BUFFER15_ARB 0x8834 -typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawBuffersARB (GLsizei n, const GLenum *bufs); -#endif -#endif /* GL_ARB_draw_buffers */ - -#ifndef GL_ARB_draw_buffers_blend -#define GL_ARB_draw_buffers_blend 1 -typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode); -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst); -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode); -GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst); -GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -#endif -#endif /* GL_ARB_draw_buffers_blend */ - -#ifndef GL_ARB_draw_elements_base_vertex -#define GL_ARB_draw_elements_base_vertex 1 -#endif /* GL_ARB_draw_elements_base_vertex */ - -#ifndef GL_ARB_draw_indirect -#define GL_ARB_draw_indirect 1 -#endif /* GL_ARB_draw_indirect */ - -#ifndef GL_ARB_draw_instanced -#define GL_ARB_draw_instanced 1 -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount); -GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); -#endif -#endif /* GL_ARB_draw_instanced */ - -#ifndef GL_ARB_enhanced_layouts -#define GL_ARB_enhanced_layouts 1 -#endif /* GL_ARB_enhanced_layouts */ - -#ifndef GL_ARB_explicit_attrib_location -#define GL_ARB_explicit_attrib_location 1 -#endif /* GL_ARB_explicit_attrib_location */ - -#ifndef GL_ARB_explicit_uniform_location -#define GL_ARB_explicit_uniform_location 1 -#endif /* GL_ARB_explicit_uniform_location */ - -#ifndef GL_ARB_fragment_coord_conventions -#define GL_ARB_fragment_coord_conventions 1 -#endif /* GL_ARB_fragment_coord_conventions */ - -#ifndef GL_ARB_fragment_layer_viewport -#define GL_ARB_fragment_layer_viewport 1 -#endif /* GL_ARB_fragment_layer_viewport */ - -#ifndef GL_ARB_fragment_program -#define GL_ARB_fragment_program 1 -#define GL_FRAGMENT_PROGRAM_ARB 0x8804 -#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875 -#define GL_PROGRAM_LENGTH_ARB 0x8627 -#define GL_PROGRAM_FORMAT_ARB 0x8876 -#define GL_PROGRAM_BINDING_ARB 0x8677 -#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0 -#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1 -#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2 -#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3 -#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4 -#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5 -#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6 -#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7 -#define GL_PROGRAM_PARAMETERS_ARB 0x88A8 -#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9 -#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA -#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB -#define GL_PROGRAM_ATTRIBS_ARB 0x88AC -#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD -#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE -#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF -#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4 -#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5 -#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6 -#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805 -#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806 -#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807 -#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808 -#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809 -#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A -#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B -#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C -#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D -#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E -#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F -#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810 -#define GL_PROGRAM_STRING_ARB 0x8628 -#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B -#define GL_CURRENT_MATRIX_ARB 0x8641 -#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7 -#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640 -#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F -#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E -#define GL_MAX_TEXTURE_COORDS_ARB 0x8871 -#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872 -#define GL_PROGRAM_ERROR_STRING_ARB 0x8874 -#define GL_MATRIX0_ARB 0x88C0 -#define GL_MATRIX1_ARB 0x88C1 -#define GL_MATRIX2_ARB 0x88C2 -#define GL_MATRIX3_ARB 0x88C3 -#define GL_MATRIX4_ARB 0x88C4 -#define GL_MATRIX5_ARB 0x88C5 -#define GL_MATRIX6_ARB 0x88C6 -#define GL_MATRIX7_ARB 0x88C7 -#define GL_MATRIX8_ARB 0x88C8 -#define GL_MATRIX9_ARB 0x88C9 -#define GL_MATRIX10_ARB 0x88CA -#define GL_MATRIX11_ARB 0x88CB -#define GL_MATRIX12_ARB 0x88CC -#define GL_MATRIX13_ARB 0x88CD -#define GL_MATRIX14_ARB 0x88CE -#define GL_MATRIX15_ARB 0x88CF -#define GL_MATRIX16_ARB 0x88D0 -#define GL_MATRIX17_ARB 0x88D1 -#define GL_MATRIX18_ARB 0x88D2 -#define GL_MATRIX19_ARB 0x88D3 -#define GL_MATRIX20_ARB 0x88D4 -#define GL_MATRIX21_ARB 0x88D5 -#define GL_MATRIX22_ARB 0x88D6 -#define GL_MATRIX23_ARB 0x88D7 -#define GL_MATRIX24_ARB 0x88D8 -#define GL_MATRIX25_ARB 0x88D9 -#define GL_MATRIX26_ARB 0x88DA -#define GL_MATRIX27_ARB 0x88DB -#define GL_MATRIX28_ARB 0x88DC -#define GL_MATRIX29_ARB 0x88DD -#define GL_MATRIX30_ARB 0x88DE -#define GL_MATRIX31_ARB 0x88DF -typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void *string); -typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); -typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs); -typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void *string); -typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramStringARB (GLenum target, GLenum format, GLsizei len, const void *string); -GLAPI void APIENTRY glBindProgramARB (GLenum target, GLuint program); -GLAPI void APIENTRY glDeleteProgramsARB (GLsizei n, const GLuint *programs); -GLAPI void APIENTRY glGenProgramsARB (GLsizei n, GLuint *programs); -GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params); -GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params); -GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params); -GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params); -GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params); -GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params); -GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params); -GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params); -GLAPI void APIENTRY glGetProgramivARB (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetProgramStringARB (GLenum target, GLenum pname, void *string); -GLAPI GLboolean APIENTRY glIsProgramARB (GLuint program); -#endif -#endif /* GL_ARB_fragment_program */ - -#ifndef GL_ARB_fragment_program_shadow -#define GL_ARB_fragment_program_shadow 1 -#endif /* GL_ARB_fragment_program_shadow */ - -#ifndef GL_ARB_fragment_shader -#define GL_ARB_fragment_shader 1 -#define GL_FRAGMENT_SHADER_ARB 0x8B30 -#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B -#endif /* GL_ARB_fragment_shader */ - -#ifndef GL_ARB_framebuffer_no_attachments -#define GL_ARB_framebuffer_no_attachments 1 -#endif /* GL_ARB_framebuffer_no_attachments */ - -#ifndef GL_ARB_framebuffer_object -#define GL_ARB_framebuffer_object 1 -#endif /* GL_ARB_framebuffer_object */ - -#ifndef GL_ARB_framebuffer_sRGB -#define GL_ARB_framebuffer_sRGB 1 -#endif /* GL_ARB_framebuffer_sRGB */ - -#ifndef GL_ARB_geometry_shader4 -#define GL_ARB_geometry_shader4 1 -#define GL_LINES_ADJACENCY_ARB 0x000A -#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B -#define GL_TRIANGLES_ADJACENCY_ARB 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D -#define GL_PROGRAM_POINT_SIZE_ARB 0x8642 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9 -#define GL_GEOMETRY_SHADER_ARB 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA -#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB -#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC -#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD -#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1 -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value); -GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level); -GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -#endif -#endif /* GL_ARB_geometry_shader4 */ - -#ifndef GL_ARB_get_program_binary -#define GL_ARB_get_program_binary 1 -#endif /* GL_ARB_get_program_binary */ - -#ifndef GL_ARB_get_texture_sub_image -#define GL_ARB_get_texture_sub_image 1 -#endif /* GL_ARB_get_texture_sub_image */ - -#ifndef GL_ARB_gpu_shader5 -#define GL_ARB_gpu_shader5 1 -#endif /* GL_ARB_gpu_shader5 */ - -#ifndef GL_ARB_gpu_shader_fp64 -#define GL_ARB_gpu_shader_fp64 1 -#endif /* GL_ARB_gpu_shader_fp64 */ - -#ifndef GL_ARB_half_float_pixel -#define GL_ARB_half_float_pixel 1 -typedef unsigned short GLhalfARB; -#define GL_HALF_FLOAT_ARB 0x140B -#endif /* GL_ARB_half_float_pixel */ - -#ifndef GL_ARB_half_float_vertex -#define GL_ARB_half_float_vertex 1 -#endif /* GL_ARB_half_float_vertex */ - -#ifndef GL_ARB_imaging -#define GL_ARB_imaging 1 -#define GL_BLEND_COLOR 0x8005 -#define GL_BLEND_EQUATION 0x8009 -#define GL_CONVOLUTION_1D 0x8010 -#define GL_CONVOLUTION_2D 0x8011 -#define GL_SEPARABLE_2D 0x8012 -#define GL_CONVOLUTION_BORDER_MODE 0x8013 -#define GL_CONVOLUTION_FILTER_SCALE 0x8014 -#define GL_CONVOLUTION_FILTER_BIAS 0x8015 -#define GL_REDUCE 0x8016 -#define GL_CONVOLUTION_FORMAT 0x8017 -#define GL_CONVOLUTION_WIDTH 0x8018 -#define GL_CONVOLUTION_HEIGHT 0x8019 -#define GL_MAX_CONVOLUTION_WIDTH 0x801A -#define GL_MAX_CONVOLUTION_HEIGHT 0x801B -#define GL_POST_CONVOLUTION_RED_SCALE 0x801C -#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D -#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E -#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F -#define GL_POST_CONVOLUTION_RED_BIAS 0x8020 -#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021 -#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022 -#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023 -#define GL_HISTOGRAM 0x8024 -#define GL_PROXY_HISTOGRAM 0x8025 -#define GL_HISTOGRAM_WIDTH 0x8026 -#define GL_HISTOGRAM_FORMAT 0x8027 -#define GL_HISTOGRAM_RED_SIZE 0x8028 -#define GL_HISTOGRAM_GREEN_SIZE 0x8029 -#define GL_HISTOGRAM_BLUE_SIZE 0x802A -#define GL_HISTOGRAM_ALPHA_SIZE 0x802B -#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C -#define GL_HISTOGRAM_SINK 0x802D -#define GL_MINMAX 0x802E -#define GL_MINMAX_FORMAT 0x802F -#define GL_MINMAX_SINK 0x8030 -#define GL_TABLE_TOO_LARGE 0x8031 -#define GL_COLOR_MATRIX 0x80B1 -#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 -#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3 -#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4 -#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5 -#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6 -#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7 -#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 -#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 -#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA -#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB -#define GL_COLOR_TABLE 0x80D0 -#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 -#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 -#define GL_PROXY_COLOR_TABLE 0x80D3 -#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4 -#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5 -#define GL_COLOR_TABLE_SCALE 0x80D6 -#define GL_COLOR_TABLE_BIAS 0x80D7 -#define GL_COLOR_TABLE_FORMAT 0x80D8 -#define GL_COLOR_TABLE_WIDTH 0x80D9 -#define GL_COLOR_TABLE_RED_SIZE 0x80DA -#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB -#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC -#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD -#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE -#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF -#define GL_CONSTANT_BORDER 0x8151 -#define GL_REPLICATE_BORDER 0x8153 -#define GL_CONVOLUTION_BORDER_COLOR 0x8154 -typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table); -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, void *table); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image); -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, void *image); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span); -typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); -typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target); -typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table); -GLAPI void APIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, void *table); -GLAPI void APIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image); -GLAPI void APIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image); -GLAPI void APIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params); -GLAPI void APIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params); -GLAPI void APIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, void *image); -GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span); -GLAPI void APIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column); -GLAPI void APIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -GLAPI void APIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -GLAPI void APIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink); -GLAPI void APIENTRY glResetHistogram (GLenum target); -GLAPI void APIENTRY glResetMinmax (GLenum target); -#endif -#endif /* GL_ARB_imaging */ - -#ifndef GL_ARB_indirect_parameters -#define GL_ARB_indirect_parameters 1 -#define GL_PARAMETER_BUFFER_ARB 0x80EE -#define GL_PARAMETER_BUFFER_BINDING_ARB 0x80EF -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB (GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB (GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -#endif -#endif /* GL_ARB_indirect_parameters */ - -#ifndef GL_ARB_instanced_arrays -#define GL_ARB_instanced_arrays 1 -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor); -#endif -#endif /* GL_ARB_instanced_arrays */ - -#ifndef GL_ARB_internalformat_query -#define GL_ARB_internalformat_query 1 -#endif /* GL_ARB_internalformat_query */ - -#ifndef GL_ARB_internalformat_query2 -#define GL_ARB_internalformat_query2 1 -#define GL_SRGB_DECODE_ARB 0x8299 -#endif /* GL_ARB_internalformat_query2 */ - -#ifndef GL_ARB_invalidate_subdata -#define GL_ARB_invalidate_subdata 1 -#endif /* GL_ARB_invalidate_subdata */ - -#ifndef GL_ARB_map_buffer_alignment -#define GL_ARB_map_buffer_alignment 1 -#endif /* GL_ARB_map_buffer_alignment */ - -#ifndef GL_ARB_map_buffer_range -#define GL_ARB_map_buffer_range 1 -#endif /* GL_ARB_map_buffer_range */ - -#ifndef GL_ARB_matrix_palette -#define GL_ARB_matrix_palette 1 -#define GL_MATRIX_PALETTE_ARB 0x8840 -#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841 -#define GL_MAX_PALETTE_MATRICES_ARB 0x8842 -#define GL_CURRENT_PALETTE_MATRIX_ARB 0x8843 -#define GL_MATRIX_INDEX_ARRAY_ARB 0x8844 -#define GL_CURRENT_MATRIX_INDEX_ARB 0x8845 -#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846 -#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847 -#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848 -#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849 -typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); -typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices); -typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices); -typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices); -typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint index); -GLAPI void APIENTRY glMatrixIndexubvARB (GLint size, const GLubyte *indices); -GLAPI void APIENTRY glMatrixIndexusvARB (GLint size, const GLushort *indices); -GLAPI void APIENTRY glMatrixIndexuivARB (GLint size, const GLuint *indices); -GLAPI void APIENTRY glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, const void *pointer); -#endif -#endif /* GL_ARB_matrix_palette */ - -#ifndef GL_ARB_multi_bind -#define GL_ARB_multi_bind 1 -#endif /* GL_ARB_multi_bind */ - -#ifndef GL_ARB_multi_draw_indirect -#define GL_ARB_multi_draw_indirect 1 -#endif /* GL_ARB_multi_draw_indirect */ - -#ifndef GL_ARB_multisample -#define GL_ARB_multisample 1 -#define GL_MULTISAMPLE_ARB 0x809D -#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F -#define GL_SAMPLE_COVERAGE_ARB 0x80A0 -#define GL_SAMPLE_BUFFERS_ARB 0x80A8 -#define GL_SAMPLES_ARB 0x80A9 -#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA -#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB -#define GL_MULTISAMPLE_BIT_ARB 0x20000000 -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLfloat value, GLboolean invert); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSampleCoverageARB (GLfloat value, GLboolean invert); -#endif -#endif /* GL_ARB_multisample */ - -#ifndef GL_ARB_multitexture -#define GL_ARB_multitexture 1 -#define GL_TEXTURE0_ARB 0x84C0 -#define GL_TEXTURE1_ARB 0x84C1 -#define GL_TEXTURE2_ARB 0x84C2 -#define GL_TEXTURE3_ARB 0x84C3 -#define GL_TEXTURE4_ARB 0x84C4 -#define GL_TEXTURE5_ARB 0x84C5 -#define GL_TEXTURE6_ARB 0x84C6 -#define GL_TEXTURE7_ARB 0x84C7 -#define GL_TEXTURE8_ARB 0x84C8 -#define GL_TEXTURE9_ARB 0x84C9 -#define GL_TEXTURE10_ARB 0x84CA -#define GL_TEXTURE11_ARB 0x84CB -#define GL_TEXTURE12_ARB 0x84CC -#define GL_TEXTURE13_ARB 0x84CD -#define GL_TEXTURE14_ARB 0x84CE -#define GL_TEXTURE15_ARB 0x84CF -#define GL_TEXTURE16_ARB 0x84D0 -#define GL_TEXTURE17_ARB 0x84D1 -#define GL_TEXTURE18_ARB 0x84D2 -#define GL_TEXTURE19_ARB 0x84D3 -#define GL_TEXTURE20_ARB 0x84D4 -#define GL_TEXTURE21_ARB 0x84D5 -#define GL_TEXTURE22_ARB 0x84D6 -#define GL_TEXTURE23_ARB 0x84D7 -#define GL_TEXTURE24_ARB 0x84D8 -#define GL_TEXTURE25_ARB 0x84D9 -#define GL_TEXTURE26_ARB 0x84DA -#define GL_TEXTURE27_ARB 0x84DB -#define GL_TEXTURE28_ARB 0x84DC -#define GL_TEXTURE29_ARB 0x84DD -#define GL_TEXTURE30_ARB 0x84DE -#define GL_TEXTURE31_ARB 0x84DF -#define GL_ACTIVE_TEXTURE_ARB 0x84E0 -#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 -#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 -typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glActiveTextureARB (GLenum texture); -GLAPI void APIENTRY glClientActiveTextureARB (GLenum texture); -GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum target, GLdouble s); -GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum target, const GLdouble *v); -GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum target, GLfloat s); -GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum target, const GLfloat *v); -GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum target, GLint s); -GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum target, const GLint *v); -GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum target, GLshort s); -GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum target, const GLshort *v); -GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum target, GLdouble s, GLdouble t); -GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum target, const GLdouble *v); -GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t); -GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum target, const GLfloat *v); -GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum target, GLint s, GLint t); -GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum target, const GLint *v); -GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum target, GLshort s, GLshort t); -GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum target, const GLshort *v); -GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r); -GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum target, const GLdouble *v); -GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r); -GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum target, const GLfloat *v); -GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum target, GLint s, GLint t, GLint r); -GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum target, const GLint *v); -GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum target, GLshort s, GLshort t, GLshort r); -GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum target, const GLshort *v); -GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum target, const GLdouble *v); -GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum target, const GLfloat *v); -GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum target, GLint s, GLint t, GLint r, GLint q); -GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum target, const GLint *v); -GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum target, const GLshort *v); -#endif -#endif /* GL_ARB_multitexture */ - -#ifndef GL_ARB_occlusion_query -#define GL_ARB_occlusion_query 1 -#define GL_QUERY_COUNTER_BITS_ARB 0x8864 -#define GL_CURRENT_QUERY_ARB 0x8865 -#define GL_QUERY_RESULT_ARB 0x8866 -#define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867 -#define GL_SAMPLES_PASSED_ARB 0x8914 -typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id); -typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target); -typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenQueriesARB (GLsizei n, GLuint *ids); -GLAPI void APIENTRY glDeleteQueriesARB (GLsizei n, const GLuint *ids); -GLAPI GLboolean APIENTRY glIsQueryARB (GLuint id); -GLAPI void APIENTRY glBeginQueryARB (GLenum target, GLuint id); -GLAPI void APIENTRY glEndQueryARB (GLenum target); -GLAPI void APIENTRY glGetQueryivARB (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetQueryObjectivARB (GLuint id, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint id, GLenum pname, GLuint *params); -#endif -#endif /* GL_ARB_occlusion_query */ - -#ifndef GL_ARB_occlusion_query2 -#define GL_ARB_occlusion_query2 1 -#endif /* GL_ARB_occlusion_query2 */ - -#ifndef GL_ARB_pipeline_statistics_query -#define GL_ARB_pipeline_statistics_query 1 -#define GL_VERTICES_SUBMITTED_ARB 0x82EE -#define GL_PRIMITIVES_SUBMITTED_ARB 0x82EF -#define GL_VERTEX_SHADER_INVOCATIONS_ARB 0x82F0 -#define GL_TESS_CONTROL_SHADER_PATCHES_ARB 0x82F1 -#define GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB 0x82F2 -#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB 0x82F3 -#define GL_FRAGMENT_SHADER_INVOCATIONS_ARB 0x82F4 -#define GL_COMPUTE_SHADER_INVOCATIONS_ARB 0x82F5 -#define GL_CLIPPING_INPUT_PRIMITIVES_ARB 0x82F6 -#define GL_CLIPPING_OUTPUT_PRIMITIVES_ARB 0x82F7 -#endif /* GL_ARB_pipeline_statistics_query */ - -#ifndef GL_ARB_pixel_buffer_object -#define GL_ARB_pixel_buffer_object 1 -#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB -#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF -#endif /* GL_ARB_pixel_buffer_object */ - -#ifndef GL_ARB_point_parameters -#define GL_ARB_point_parameters 1 -#define GL_POINT_SIZE_MIN_ARB 0x8126 -#define GL_POINT_SIZE_MAX_ARB 0x8127 -#define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128 -#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129 -typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPointParameterfARB (GLenum pname, GLfloat param); -GLAPI void APIENTRY glPointParameterfvARB (GLenum pname, const GLfloat *params); -#endif -#endif /* GL_ARB_point_parameters */ - -#ifndef GL_ARB_point_sprite -#define GL_ARB_point_sprite 1 -#define GL_POINT_SPRITE_ARB 0x8861 -#define GL_COORD_REPLACE_ARB 0x8862 -#endif /* GL_ARB_point_sprite */ - -#ifndef GL_ARB_program_interface_query -#define GL_ARB_program_interface_query 1 -#endif /* GL_ARB_program_interface_query */ - -#ifndef GL_ARB_provoking_vertex -#define GL_ARB_provoking_vertex 1 -#endif /* GL_ARB_provoking_vertex */ - -#ifndef GL_ARB_query_buffer_object -#define GL_ARB_query_buffer_object 1 -#endif /* GL_ARB_query_buffer_object */ - -#ifndef GL_ARB_robust_buffer_access_behavior -#define GL_ARB_robust_buffer_access_behavior 1 -#endif /* GL_ARB_robust_buffer_access_behavior */ - -#ifndef GL_ARB_robustness -#define GL_ARB_robustness 1 -#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 -#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 -#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void); -typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img); -typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); -typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void *img); -typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); -typedef void (APIENTRYP PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v); -typedef void (APIENTRYP PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v); -typedef void (APIENTRYP PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v); -typedef void (APIENTRYP PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat *values); -typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint *values); -typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort *values); -typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte *pattern); -typedef void (APIENTRYP PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table); -typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image); -typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span); -typedef void (APIENTRYP PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -typedef void (APIENTRYP PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void); -GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img); -GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); -GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void *img); -GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params); -GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params); -GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); -GLAPI void APIENTRY glGetnMapdvARB (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v); -GLAPI void APIENTRY glGetnMapfvARB (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v); -GLAPI void APIENTRY glGetnMapivARB (GLenum target, GLenum query, GLsizei bufSize, GLint *v); -GLAPI void APIENTRY glGetnPixelMapfvARB (GLenum map, GLsizei bufSize, GLfloat *values); -GLAPI void APIENTRY glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint *values); -GLAPI void APIENTRY glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort *values); -GLAPI void APIENTRY glGetnPolygonStippleARB (GLsizei bufSize, GLubyte *pattern); -GLAPI void APIENTRY glGetnColorTableARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table); -GLAPI void APIENTRY glGetnConvolutionFilterARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image); -GLAPI void APIENTRY glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span); -GLAPI void APIENTRY glGetnHistogramARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -GLAPI void APIENTRY glGetnMinmaxARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -#endif -#endif /* GL_ARB_robustness */ - -#ifndef GL_ARB_robustness_isolation -#define GL_ARB_robustness_isolation 1 -#endif /* GL_ARB_robustness_isolation */ - -#ifndef GL_ARB_sample_shading -#define GL_ARB_sample_shading 1 -#define GL_SAMPLE_SHADING_ARB 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37 -typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value); -#endif -#endif /* GL_ARB_sample_shading */ - -#ifndef GL_ARB_sampler_objects -#define GL_ARB_sampler_objects 1 -#endif /* GL_ARB_sampler_objects */ - -#ifndef GL_ARB_seamless_cube_map -#define GL_ARB_seamless_cube_map 1 -#endif /* GL_ARB_seamless_cube_map */ - -#ifndef GL_ARB_seamless_cubemap_per_texture -#define GL_ARB_seamless_cubemap_per_texture 1 -#endif /* GL_ARB_seamless_cubemap_per_texture */ - -#ifndef GL_ARB_separate_shader_objects -#define GL_ARB_separate_shader_objects 1 -#endif /* GL_ARB_separate_shader_objects */ - -#ifndef GL_ARB_shader_atomic_counters -#define GL_ARB_shader_atomic_counters 1 -#endif /* GL_ARB_shader_atomic_counters */ - -#ifndef GL_ARB_shader_bit_encoding -#define GL_ARB_shader_bit_encoding 1 -#endif /* GL_ARB_shader_bit_encoding */ - -#ifndef GL_ARB_shader_draw_parameters -#define GL_ARB_shader_draw_parameters 1 -#endif /* GL_ARB_shader_draw_parameters */ - -#ifndef GL_ARB_shader_group_vote -#define GL_ARB_shader_group_vote 1 -#endif /* GL_ARB_shader_group_vote */ - -#ifndef GL_ARB_shader_image_load_store -#define GL_ARB_shader_image_load_store 1 -#endif /* GL_ARB_shader_image_load_store */ - -#ifndef GL_ARB_shader_image_size -#define GL_ARB_shader_image_size 1 -#endif /* GL_ARB_shader_image_size */ - -#ifndef GL_ARB_shader_objects -#define GL_ARB_shader_objects 1 -#ifdef __APPLE__ -typedef void *GLhandleARB; -#else -typedef unsigned int GLhandleARB; -#endif -typedef char GLcharARB; -#define GL_PROGRAM_OBJECT_ARB 0x8B40 -#define GL_SHADER_OBJECT_ARB 0x8B48 -#define GL_OBJECT_TYPE_ARB 0x8B4E -#define GL_OBJECT_SUBTYPE_ARB 0x8B4F -#define GL_FLOAT_VEC2_ARB 0x8B50 -#define GL_FLOAT_VEC3_ARB 0x8B51 -#define GL_FLOAT_VEC4_ARB 0x8B52 -#define GL_INT_VEC2_ARB 0x8B53 -#define GL_INT_VEC3_ARB 0x8B54 -#define GL_INT_VEC4_ARB 0x8B55 -#define GL_BOOL_ARB 0x8B56 -#define GL_BOOL_VEC2_ARB 0x8B57 -#define GL_BOOL_VEC3_ARB 0x8B58 -#define GL_BOOL_VEC4_ARB 0x8B59 -#define GL_FLOAT_MAT2_ARB 0x8B5A -#define GL_FLOAT_MAT3_ARB 0x8B5B -#define GL_FLOAT_MAT4_ARB 0x8B5C -#define GL_SAMPLER_1D_ARB 0x8B5D -#define GL_SAMPLER_2D_ARB 0x8B5E -#define GL_SAMPLER_3D_ARB 0x8B5F -#define GL_SAMPLER_CUBE_ARB 0x8B60 -#define GL_SAMPLER_1D_SHADOW_ARB 0x8B61 -#define GL_SAMPLER_2D_SHADOW_ARB 0x8B62 -#define GL_SAMPLER_2D_RECT_ARB 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64 -#define GL_OBJECT_DELETE_STATUS_ARB 0x8B80 -#define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81 -#define GL_OBJECT_LINK_STATUS_ARB 0x8B82 -#define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83 -#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84 -#define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85 -#define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86 -#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87 -#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88 -typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj); -typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname); -typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj); -typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); -typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length); -typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj); -typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void); -typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj); -typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj); -typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj); -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj); -typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); -typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); -typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); -typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); -typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); -typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog); -typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj); -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); -typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params); -typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params); -typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDeleteObjectARB (GLhandleARB obj); -GLAPI GLhandleARB APIENTRY glGetHandleARB (GLenum pname); -GLAPI void APIENTRY glDetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj); -GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB (GLenum shaderType); -GLAPI void APIENTRY glShaderSourceARB (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length); -GLAPI void APIENTRY glCompileShaderARB (GLhandleARB shaderObj); -GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB (void); -GLAPI void APIENTRY glAttachObjectARB (GLhandleARB containerObj, GLhandleARB obj); -GLAPI void APIENTRY glLinkProgramARB (GLhandleARB programObj); -GLAPI void APIENTRY glUseProgramObjectARB (GLhandleARB programObj); -GLAPI void APIENTRY glValidateProgramARB (GLhandleARB programObj); -GLAPI void APIENTRY glUniform1fARB (GLint location, GLfloat v0); -GLAPI void APIENTRY glUniform2fARB (GLint location, GLfloat v0, GLfloat v1); -GLAPI void APIENTRY glUniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI void APIENTRY glUniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI void APIENTRY glUniform1iARB (GLint location, GLint v0); -GLAPI void APIENTRY glUniform2iARB (GLint location, GLint v0, GLint v1); -GLAPI void APIENTRY glUniform3iARB (GLint location, GLint v0, GLint v1, GLint v2); -GLAPI void APIENTRY glUniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI void APIENTRY glUniform1fvARB (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform2fvARB (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform3fvARB (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform4fvARB (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform1ivARB (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform2ivARB (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform3ivARB (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform4ivARB (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glGetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog); -GLAPI void APIENTRY glGetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj); -GLAPI GLint APIENTRY glGetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name); -GLAPI void APIENTRY glGetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); -GLAPI void APIENTRY glGetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params); -GLAPI void APIENTRY glGetUniformivARB (GLhandleARB programObj, GLint location, GLint *params); -GLAPI void APIENTRY glGetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source); -#endif -#endif /* GL_ARB_shader_objects */ - -#ifndef GL_ARB_shader_precision -#define GL_ARB_shader_precision 1 -#endif /* GL_ARB_shader_precision */ - -#ifndef GL_ARB_shader_stencil_export -#define GL_ARB_shader_stencil_export 1 -#endif /* GL_ARB_shader_stencil_export */ - -#ifndef GL_ARB_shader_storage_buffer_object -#define GL_ARB_shader_storage_buffer_object 1 -#endif /* GL_ARB_shader_storage_buffer_object */ - -#ifndef GL_ARB_shader_subroutine -#define GL_ARB_shader_subroutine 1 -#endif /* GL_ARB_shader_subroutine */ - -#ifndef GL_ARB_shader_texture_image_samples -#define GL_ARB_shader_texture_image_samples 1 -#endif /* GL_ARB_shader_texture_image_samples */ - -#ifndef GL_ARB_shader_texture_lod -#define GL_ARB_shader_texture_lod 1 -#endif /* GL_ARB_shader_texture_lod */ - -#ifndef GL_ARB_shading_language_100 -#define GL_ARB_shading_language_100 1 -#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C -#endif /* GL_ARB_shading_language_100 */ - -#ifndef GL_ARB_shading_language_420pack -#define GL_ARB_shading_language_420pack 1 -#endif /* GL_ARB_shading_language_420pack */ - -#ifndef GL_ARB_shading_language_include -#define GL_ARB_shading_language_include 1 -#define GL_SHADER_INCLUDE_ARB 0x8DAE -#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9 -#define GL_NAMED_STRING_TYPE_ARB 0x8DEA -typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); -typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); -typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length); -typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); -typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); -typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); -GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name); -GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length); -GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name); -GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); -GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params); -#endif -#endif /* GL_ARB_shading_language_include */ - -#ifndef GL_ARB_shading_language_packing -#define GL_ARB_shading_language_packing 1 -#endif /* GL_ARB_shading_language_packing */ - -#ifndef GL_ARB_shadow -#define GL_ARB_shadow 1 -#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C -#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D -#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E -#endif /* GL_ARB_shadow */ - -#ifndef GL_ARB_shadow_ambient -#define GL_ARB_shadow_ambient 1 -#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF -#endif /* GL_ARB_shadow_ambient */ - -#ifndef GL_ARB_sparse_buffer -#define GL_ARB_sparse_buffer 1 -#define GL_SPARSE_STORAGE_BIT_ARB 0x0400 -#define GL_SPARSE_BUFFER_PAGE_SIZE_ARB 0x82F8 -typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTARBPROC) (GLenum target, GLintptr offset, GLsizei size, GLboolean commit); -typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC) (GLuint buffer, GLintptr offset, GLsizei size, GLboolean commit); -typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC) (GLuint buffer, GLintptr offset, GLsizei size, GLboolean commit); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBufferPageCommitmentARB (GLenum target, GLintptr offset, GLsizei size, GLboolean commit); -GLAPI void APIENTRY glNamedBufferPageCommitmentEXT (GLuint buffer, GLintptr offset, GLsizei size, GLboolean commit); -GLAPI void APIENTRY glNamedBufferPageCommitmentARB (GLuint buffer, GLintptr offset, GLsizei size, GLboolean commit); -#endif -#endif /* GL_ARB_sparse_buffer */ - -#ifndef GL_ARB_sparse_texture -#define GL_ARB_sparse_texture 1 -#define GL_TEXTURE_SPARSE_ARB 0x91A6 -#define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB 0x91A7 -#define GL_MIN_SPARSE_LEVEL_ARB 0x919B -#define GL_NUM_VIRTUAL_PAGE_SIZES_ARB 0x91A8 -#define GL_VIRTUAL_PAGE_SIZE_X_ARB 0x9195 -#define GL_VIRTUAL_PAGE_SIZE_Y_ARB 0x9196 -#define GL_VIRTUAL_PAGE_SIZE_Z_ARB 0x9197 -#define GL_MAX_SPARSE_TEXTURE_SIZE_ARB 0x9198 -#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199 -#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A -#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9 -typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexPageCommitmentARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident); -#endif -#endif /* GL_ARB_sparse_texture */ - -#ifndef GL_ARB_stencil_texturing -#define GL_ARB_stencil_texturing 1 -#endif /* GL_ARB_stencil_texturing */ - -#ifndef GL_ARB_sync -#define GL_ARB_sync 1 -#endif /* GL_ARB_sync */ - -#ifndef GL_ARB_tessellation_shader -#define GL_ARB_tessellation_shader 1 -#endif /* GL_ARB_tessellation_shader */ - -#ifndef GL_ARB_texture_barrier -#define GL_ARB_texture_barrier 1 -#endif /* GL_ARB_texture_barrier */ - -#ifndef GL_ARB_texture_border_clamp -#define GL_ARB_texture_border_clamp 1 -#define GL_CLAMP_TO_BORDER_ARB 0x812D -#endif /* GL_ARB_texture_border_clamp */ - -#ifndef GL_ARB_texture_buffer_object -#define GL_ARB_texture_buffer_object 1 -#define GL_TEXTURE_BUFFER_ARB 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D -#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E -typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer); -#endif -#endif /* GL_ARB_texture_buffer_object */ - -#ifndef GL_ARB_texture_buffer_object_rgb32 -#define GL_ARB_texture_buffer_object_rgb32 1 -#endif /* GL_ARB_texture_buffer_object_rgb32 */ - -#ifndef GL_ARB_texture_buffer_range -#define GL_ARB_texture_buffer_range 1 -#endif /* GL_ARB_texture_buffer_range */ - -#ifndef GL_ARB_texture_compression -#define GL_ARB_texture_compression 1 -#define GL_COMPRESSED_ALPHA_ARB 0x84E9 -#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA -#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB -#define GL_COMPRESSED_INTENSITY_ARB 0x84EC -#define GL_COMPRESSED_RGB_ARB 0x84ED -#define GL_COMPRESSED_RGBA_ARB 0x84EE -#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF -#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0 -#define GL_TEXTURE_COMPRESSED_ARB 0x86A1 -#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2 -#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, void *img); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum target, GLint level, void *img); -#endif -#endif /* GL_ARB_texture_compression */ - -#ifndef GL_ARB_texture_compression_bptc -#define GL_ARB_texture_compression_bptc 1 -#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C -#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D -#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E -#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F -#endif /* GL_ARB_texture_compression_bptc */ - -#ifndef GL_ARB_texture_compression_rgtc -#define GL_ARB_texture_compression_rgtc 1 -#endif /* GL_ARB_texture_compression_rgtc */ - -#ifndef GL_ARB_texture_cube_map -#define GL_ARB_texture_cube_map 1 -#define GL_NORMAL_MAP_ARB 0x8511 -#define GL_REFLECTION_MAP_ARB 0x8512 -#define GL_TEXTURE_CUBE_MAP_ARB 0x8513 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B -#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C -#endif /* GL_ARB_texture_cube_map */ - -#ifndef GL_ARB_texture_cube_map_array -#define GL_ARB_texture_cube_map_array 1 -#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B -#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F -#endif /* GL_ARB_texture_cube_map_array */ - -#ifndef GL_ARB_texture_env_add -#define GL_ARB_texture_env_add 1 -#endif /* GL_ARB_texture_env_add */ - -#ifndef GL_ARB_texture_env_combine -#define GL_ARB_texture_env_combine 1 -#define GL_COMBINE_ARB 0x8570 -#define GL_COMBINE_RGB_ARB 0x8571 -#define GL_COMBINE_ALPHA_ARB 0x8572 -#define GL_SOURCE0_RGB_ARB 0x8580 -#define GL_SOURCE1_RGB_ARB 0x8581 -#define GL_SOURCE2_RGB_ARB 0x8582 -#define GL_SOURCE0_ALPHA_ARB 0x8588 -#define GL_SOURCE1_ALPHA_ARB 0x8589 -#define GL_SOURCE2_ALPHA_ARB 0x858A -#define GL_OPERAND0_RGB_ARB 0x8590 -#define GL_OPERAND1_RGB_ARB 0x8591 -#define GL_OPERAND2_RGB_ARB 0x8592 -#define GL_OPERAND0_ALPHA_ARB 0x8598 -#define GL_OPERAND1_ALPHA_ARB 0x8599 -#define GL_OPERAND2_ALPHA_ARB 0x859A -#define GL_RGB_SCALE_ARB 0x8573 -#define GL_ADD_SIGNED_ARB 0x8574 -#define GL_INTERPOLATE_ARB 0x8575 -#define GL_SUBTRACT_ARB 0x84E7 -#define GL_CONSTANT_ARB 0x8576 -#define GL_PRIMARY_COLOR_ARB 0x8577 -#define GL_PREVIOUS_ARB 0x8578 -#endif /* GL_ARB_texture_env_combine */ - -#ifndef GL_ARB_texture_env_crossbar -#define GL_ARB_texture_env_crossbar 1 -#endif /* GL_ARB_texture_env_crossbar */ - -#ifndef GL_ARB_texture_env_dot3 -#define GL_ARB_texture_env_dot3 1 -#define GL_DOT3_RGB_ARB 0x86AE -#define GL_DOT3_RGBA_ARB 0x86AF -#endif /* GL_ARB_texture_env_dot3 */ - -#ifndef GL_ARB_texture_float -#define GL_ARB_texture_float 1 -#define GL_TEXTURE_RED_TYPE_ARB 0x8C10 -#define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11 -#define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12 -#define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13 -#define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14 -#define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15 -#define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16 -#define GL_UNSIGNED_NORMALIZED_ARB 0x8C17 -#define GL_RGBA32F_ARB 0x8814 -#define GL_RGB32F_ARB 0x8815 -#define GL_ALPHA32F_ARB 0x8816 -#define GL_INTENSITY32F_ARB 0x8817 -#define GL_LUMINANCE32F_ARB 0x8818 -#define GL_LUMINANCE_ALPHA32F_ARB 0x8819 -#define GL_RGBA16F_ARB 0x881A -#define GL_RGB16F_ARB 0x881B -#define GL_ALPHA16F_ARB 0x881C -#define GL_INTENSITY16F_ARB 0x881D -#define GL_LUMINANCE16F_ARB 0x881E -#define GL_LUMINANCE_ALPHA16F_ARB 0x881F -#endif /* GL_ARB_texture_float */ - -#ifndef GL_ARB_texture_gather -#define GL_ARB_texture_gather 1 -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F -#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F -#endif /* GL_ARB_texture_gather */ - -#ifndef GL_ARB_texture_mirror_clamp_to_edge -#define GL_ARB_texture_mirror_clamp_to_edge 1 -#endif /* GL_ARB_texture_mirror_clamp_to_edge */ - -#ifndef GL_ARB_texture_mirrored_repeat -#define GL_ARB_texture_mirrored_repeat 1 -#define GL_MIRRORED_REPEAT_ARB 0x8370 -#endif /* GL_ARB_texture_mirrored_repeat */ - -#ifndef GL_ARB_texture_multisample -#define GL_ARB_texture_multisample 1 -#endif /* GL_ARB_texture_multisample */ - -#ifndef GL_ARB_texture_non_power_of_two -#define GL_ARB_texture_non_power_of_two 1 -#endif /* GL_ARB_texture_non_power_of_two */ - -#ifndef GL_ARB_texture_query_levels -#define GL_ARB_texture_query_levels 1 -#endif /* GL_ARB_texture_query_levels */ - -#ifndef GL_ARB_texture_query_lod -#define GL_ARB_texture_query_lod 1 -#endif /* GL_ARB_texture_query_lod */ - -#ifndef GL_ARB_texture_rectangle -#define GL_ARB_texture_rectangle 1 -#define GL_TEXTURE_RECTANGLE_ARB 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 -#endif /* GL_ARB_texture_rectangle */ - -#ifndef GL_ARB_texture_rg -#define GL_ARB_texture_rg 1 -#endif /* GL_ARB_texture_rg */ - -#ifndef GL_ARB_texture_rgb10_a2ui -#define GL_ARB_texture_rgb10_a2ui 1 -#endif /* GL_ARB_texture_rgb10_a2ui */ - -#ifndef GL_ARB_texture_stencil8 -#define GL_ARB_texture_stencil8 1 -#endif /* GL_ARB_texture_stencil8 */ - -#ifndef GL_ARB_texture_storage -#define GL_ARB_texture_storage 1 -#endif /* GL_ARB_texture_storage */ - -#ifndef GL_ARB_texture_storage_multisample -#define GL_ARB_texture_storage_multisample 1 -#endif /* GL_ARB_texture_storage_multisample */ - -#ifndef GL_ARB_texture_swizzle -#define GL_ARB_texture_swizzle 1 -#endif /* GL_ARB_texture_swizzle */ - -#ifndef GL_ARB_texture_view -#define GL_ARB_texture_view 1 -#endif /* GL_ARB_texture_view */ - -#ifndef GL_ARB_timer_query -#define GL_ARB_timer_query 1 -#endif /* GL_ARB_timer_query */ - -#ifndef GL_ARB_transform_feedback2 -#define GL_ARB_transform_feedback2 1 -#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23 -#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24 -#endif /* GL_ARB_transform_feedback2 */ - -#ifndef GL_ARB_transform_feedback3 -#define GL_ARB_transform_feedback3 1 -#endif /* GL_ARB_transform_feedback3 */ - -#ifndef GL_ARB_transform_feedback_instanced -#define GL_ARB_transform_feedback_instanced 1 -#endif /* GL_ARB_transform_feedback_instanced */ - -#ifndef GL_ARB_transform_feedback_overflow_query -#define GL_ARB_transform_feedback_overflow_query 1 -#define GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB 0x82EC -#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB 0x82ED -#endif /* GL_ARB_transform_feedback_overflow_query */ - -#ifndef GL_ARB_transpose_matrix -#define GL_ARB_transpose_matrix 1 -#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3 -#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4 -#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5 -#define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6 -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *m); -GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *m); -GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *m); -GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *m); -#endif -#endif /* GL_ARB_transpose_matrix */ - -#ifndef GL_ARB_uniform_buffer_object -#define GL_ARB_uniform_buffer_object 1 -#endif /* GL_ARB_uniform_buffer_object */ - -#ifndef GL_ARB_vertex_array_bgra -#define GL_ARB_vertex_array_bgra 1 -#endif /* GL_ARB_vertex_array_bgra */ - -#ifndef GL_ARB_vertex_array_object -#define GL_ARB_vertex_array_object 1 -#endif /* GL_ARB_vertex_array_object */ - -#ifndef GL_ARB_vertex_attrib_64bit -#define GL_ARB_vertex_attrib_64bit 1 -#endif /* GL_ARB_vertex_attrib_64bit */ - -#ifndef GL_ARB_vertex_attrib_binding -#define GL_ARB_vertex_attrib_binding 1 -#endif /* GL_ARB_vertex_attrib_binding */ - -#ifndef GL_ARB_vertex_blend -#define GL_ARB_vertex_blend 1 -#define GL_MAX_VERTEX_UNITS_ARB 0x86A4 -#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5 -#define GL_WEIGHT_SUM_UNITY_ARB 0x86A6 -#define GL_VERTEX_BLEND_ARB 0x86A7 -#define GL_CURRENT_WEIGHT_ARB 0x86A8 -#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9 -#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA -#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB -#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC -#define GL_WEIGHT_ARRAY_ARB 0x86AD -#define GL_MODELVIEW0_ARB 0x1700 -#define GL_MODELVIEW1_ARB 0x850A -#define GL_MODELVIEW2_ARB 0x8722 -#define GL_MODELVIEW3_ARB 0x8723 -#define GL_MODELVIEW4_ARB 0x8724 -#define GL_MODELVIEW5_ARB 0x8725 -#define GL_MODELVIEW6_ARB 0x8726 -#define GL_MODELVIEW7_ARB 0x8727 -#define GL_MODELVIEW8_ARB 0x8728 -#define GL_MODELVIEW9_ARB 0x8729 -#define GL_MODELVIEW10_ARB 0x872A -#define GL_MODELVIEW11_ARB 0x872B -#define GL_MODELVIEW12_ARB 0x872C -#define GL_MODELVIEW13_ARB 0x872D -#define GL_MODELVIEW14_ARB 0x872E -#define GL_MODELVIEW15_ARB 0x872F -#define GL_MODELVIEW16_ARB 0x8730 -#define GL_MODELVIEW17_ARB 0x8731 -#define GL_MODELVIEW18_ARB 0x8732 -#define GL_MODELVIEW19_ARB 0x8733 -#define GL_MODELVIEW20_ARB 0x8734 -#define GL_MODELVIEW21_ARB 0x8735 -#define GL_MODELVIEW22_ARB 0x8736 -#define GL_MODELVIEW23_ARB 0x8737 -#define GL_MODELVIEW24_ARB 0x8738 -#define GL_MODELVIEW25_ARB 0x8739 -#define GL_MODELVIEW26_ARB 0x873A -#define GL_MODELVIEW27_ARB 0x873B -#define GL_MODELVIEW28_ARB 0x873C -#define GL_MODELVIEW29_ARB 0x873D -#define GL_MODELVIEW30_ARB 0x873E -#define GL_MODELVIEW31_ARB 0x873F -typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights); -typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights); -typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights); -typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights); -typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights); -typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights); -typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights); -typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights); -typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glWeightbvARB (GLint size, const GLbyte *weights); -GLAPI void APIENTRY glWeightsvARB (GLint size, const GLshort *weights); -GLAPI void APIENTRY glWeightivARB (GLint size, const GLint *weights); -GLAPI void APIENTRY glWeightfvARB (GLint size, const GLfloat *weights); -GLAPI void APIENTRY glWeightdvARB (GLint size, const GLdouble *weights); -GLAPI void APIENTRY glWeightubvARB (GLint size, const GLubyte *weights); -GLAPI void APIENTRY glWeightusvARB (GLint size, const GLushort *weights); -GLAPI void APIENTRY glWeightuivARB (GLint size, const GLuint *weights); -GLAPI void APIENTRY glWeightPointerARB (GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glVertexBlendARB (GLint count); -#endif -#endif /* GL_ARB_vertex_blend */ - -#ifndef GL_ARB_vertex_buffer_object -#define GL_ARB_vertex_buffer_object 1 -/* HACK: This is a workaround for gltypes.h on OS X 10.9 defining these types as - * long instead of ptrdiff_t - */ -#if defined(__APPLE__) -typedef long GLsizeiptrARB; -typedef long GLintptrARB; -#else -typedef ptrdiff_t GLsizeiptrARB; -typedef ptrdiff_t GLintptrARB; -#endif -#define GL_BUFFER_SIZE_ARB 0x8764 -#define GL_BUFFER_USAGE_ARB 0x8765 -#define GL_ARRAY_BUFFER_ARB 0x8892 -#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 -#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895 -#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896 -#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897 -#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898 -#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A -#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B -#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C -#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D -#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E -#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F -#define GL_READ_ONLY_ARB 0x88B8 -#define GL_WRITE_ONLY_ARB 0x88B9 -#define GL_READ_WRITE_ARB 0x88BA -#define GL_BUFFER_ACCESS_ARB 0x88BB -#define GL_BUFFER_MAPPED_ARB 0x88BC -#define GL_BUFFER_MAP_POINTER_ARB 0x88BD -#define GL_STREAM_DRAW_ARB 0x88E0 -#define GL_STREAM_READ_ARB 0x88E1 -#define GL_STREAM_COPY_ARB 0x88E2 -#define GL_STATIC_DRAW_ARB 0x88E4 -#define GL_STATIC_READ_ARB 0x88E5 -#define GL_STATIC_COPY_ARB 0x88E6 -#define GL_DYNAMIC_DRAW_ARB 0x88E8 -#define GL_DYNAMIC_READ_ARB 0x88E9 -#define GL_DYNAMIC_COPY_ARB 0x88EA -typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); -typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers); -typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers); -typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const void *data, GLenum usage); -typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data); -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data); -typedef void *(APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target); -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, void **params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindBufferARB (GLenum target, GLuint buffer); -GLAPI void APIENTRY glDeleteBuffersARB (GLsizei n, const GLuint *buffers); -GLAPI void APIENTRY glGenBuffersARB (GLsizei n, GLuint *buffers); -GLAPI GLboolean APIENTRY glIsBufferARB (GLuint buffer); -GLAPI void APIENTRY glBufferDataARB (GLenum target, GLsizeiptrARB size, const void *data, GLenum usage); -GLAPI void APIENTRY glBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data); -GLAPI void APIENTRY glGetBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data); -GLAPI void *APIENTRY glMapBufferARB (GLenum target, GLenum access); -GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum target); -GLAPI void APIENTRY glGetBufferParameterivARB (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetBufferPointervARB (GLenum target, GLenum pname, void **params); -#endif -#endif /* GL_ARB_vertex_buffer_object */ - -#ifndef GL_ARB_vertex_program -#define GL_ARB_vertex_program 1 -#define GL_COLOR_SUM_ARB 0x8458 -#define GL_VERTEX_PROGRAM_ARB 0x8620 -#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622 -#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623 -#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624 -#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625 -#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626 -#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642 -#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643 -#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645 -#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A -#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0 -#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1 -#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2 -#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3 -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, void **pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttrib1dARB (GLuint index, GLdouble x); -GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib1fARB (GLuint index, GLfloat x); -GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib1sARB (GLuint index, GLshort x); -GLAPI void APIENTRY glVertexAttrib1svARB (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib2dARB (GLuint index, GLdouble x, GLdouble y); -GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib2fARB (GLuint index, GLfloat x, GLfloat y); -GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib2sARB (GLuint index, GLshort x, GLshort y); -GLAPI void APIENTRY glVertexAttrib2svARB (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib3dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib3fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib3sARB (GLuint index, GLshort x, GLshort y, GLshort z); -GLAPI void APIENTRY glVertexAttrib3svARB (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint index, const GLushort *v); -GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttrib4dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib4fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttrib4sARB (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void APIENTRY glVertexAttrib4svARB (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint index, const GLushort *v); -GLAPI void APIENTRY glVertexAttribPointerARB (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint index); -GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint index); -GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint index, GLenum pname, GLdouble *params); -GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint index, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetVertexAttribivARB (GLuint index, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint index, GLenum pname, void **pointer); -#endif -#endif /* GL_ARB_vertex_program */ - -#ifndef GL_ARB_vertex_shader -#define GL_ARB_vertex_shader 1 -#define GL_VERTEX_SHADER_ARB 0x8B31 -#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A -#define GL_MAX_VARYING_FLOATS_ARB 0x8B4B -#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C -#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D -#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89 -#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name); -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name); -GLAPI void APIENTRY glGetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); -GLAPI GLint APIENTRY glGetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name); -#endif -#endif /* GL_ARB_vertex_shader */ - -#ifndef GL_ARB_vertex_type_10f_11f_11f_rev -#define GL_ARB_vertex_type_10f_11f_11f_rev 1 -#endif /* GL_ARB_vertex_type_10f_11f_11f_rev */ - -#ifndef GL_ARB_vertex_type_2_10_10_10_rev -#define GL_ARB_vertex_type_2_10_10_10_rev 1 -#endif /* GL_ARB_vertex_type_2_10_10_10_rev */ - -#ifndef GL_ARB_viewport_array -#define GL_ARB_viewport_array 1 -#endif /* GL_ARB_viewport_array */ - -#ifndef GL_ARB_window_pos -#define GL_ARB_window_pos 1 -typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); -typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glWindowPos2dARB (GLdouble x, GLdouble y); -GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *v); -GLAPI void APIENTRY glWindowPos2fARB (GLfloat x, GLfloat y); -GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *v); -GLAPI void APIENTRY glWindowPos2iARB (GLint x, GLint y); -GLAPI void APIENTRY glWindowPos2ivARB (const GLint *v); -GLAPI void APIENTRY glWindowPos2sARB (GLshort x, GLshort y); -GLAPI void APIENTRY glWindowPos2svARB (const GLshort *v); -GLAPI void APIENTRY glWindowPos3dARB (GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *v); -GLAPI void APIENTRY glWindowPos3fARB (GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *v); -GLAPI void APIENTRY glWindowPos3iARB (GLint x, GLint y, GLint z); -GLAPI void APIENTRY glWindowPos3ivARB (const GLint *v); -GLAPI void APIENTRY glWindowPos3sARB (GLshort x, GLshort y, GLshort z); -GLAPI void APIENTRY glWindowPos3svARB (const GLshort *v); -#endif -#endif /* GL_ARB_window_pos */ - -#ifndef GL_KHR_blend_equation_advanced -#define GL_KHR_blend_equation_advanced 1 -#define GL_MULTIPLY_KHR 0x9294 -#define GL_SCREEN_KHR 0x9295 -#define GL_OVERLAY_KHR 0x9296 -#define GL_DARKEN_KHR 0x9297 -#define GL_LIGHTEN_KHR 0x9298 -#define GL_COLORDODGE_KHR 0x9299 -#define GL_COLORBURN_KHR 0x929A -#define GL_HARDLIGHT_KHR 0x929B -#define GL_SOFTLIGHT_KHR 0x929C -#define GL_DIFFERENCE_KHR 0x929E -#define GL_EXCLUSION_KHR 0x92A0 -#define GL_HSL_HUE_KHR 0x92AD -#define GL_HSL_SATURATION_KHR 0x92AE -#define GL_HSL_COLOR_KHR 0x92AF -#define GL_HSL_LUMINOSITY_KHR 0x92B0 -typedef void (APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendBarrierKHR (void); -#endif -#endif /* GL_KHR_blend_equation_advanced */ - -#ifndef GL_KHR_blend_equation_advanced_coherent -#define GL_KHR_blend_equation_advanced_coherent 1 -#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285 -#endif /* GL_KHR_blend_equation_advanced_coherent */ - -#ifndef GL_KHR_context_flush_control -#define GL_KHR_context_flush_control 1 -#endif /* GL_KHR_context_flush_control */ - -#ifndef GL_KHR_debug -#define GL_KHR_debug 1 -#endif /* GL_KHR_debug */ - -#ifndef GL_KHR_robust_buffer_access_behavior -#define GL_KHR_robust_buffer_access_behavior 1 -#endif /* GL_KHR_robust_buffer_access_behavior */ - -#ifndef GL_KHR_robustness -#define GL_KHR_robustness 1 -#define GL_CONTEXT_ROBUST_ACCESS 0x90F3 -#endif /* GL_KHR_robustness */ - -#ifndef GL_KHR_texture_compression_astc_hdr -#define GL_KHR_texture_compression_astc_hdr 1 -#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0 -#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1 -#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2 -#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3 -#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4 -#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5 -#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6 -#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7 -#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8 -#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9 -#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA -#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB -#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC -#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD -#endif /* GL_KHR_texture_compression_astc_hdr */ - -#ifndef GL_KHR_texture_compression_astc_ldr -#define GL_KHR_texture_compression_astc_ldr 1 -#endif /* GL_KHR_texture_compression_astc_ldr */ - -#ifndef GL_OES_byte_coordinates -#define GL_OES_byte_coordinates 1 -typedef void (APIENTRYP PFNGLMULTITEXCOORD1BOESPROC) (GLenum texture, GLbyte s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1BVOESPROC) (GLenum texture, const GLbyte *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2BOESPROC) (GLenum texture, GLbyte s, GLbyte t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2BVOESPROC) (GLenum texture, const GLbyte *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3BVOESPROC) (GLenum texture, const GLbyte *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4BVOESPROC) (GLenum texture, const GLbyte *coords); -typedef void (APIENTRYP PFNGLTEXCOORD1BOESPROC) (GLbyte s); -typedef void (APIENTRYP PFNGLTEXCOORD1BVOESPROC) (const GLbyte *coords); -typedef void (APIENTRYP PFNGLTEXCOORD2BOESPROC) (GLbyte s, GLbyte t); -typedef void (APIENTRYP PFNGLTEXCOORD2BVOESPROC) (const GLbyte *coords); -typedef void (APIENTRYP PFNGLTEXCOORD3BOESPROC) (GLbyte s, GLbyte t, GLbyte r); -typedef void (APIENTRYP PFNGLTEXCOORD3BVOESPROC) (const GLbyte *coords); -typedef void (APIENTRYP PFNGLTEXCOORD4BOESPROC) (GLbyte s, GLbyte t, GLbyte r, GLbyte q); -typedef void (APIENTRYP PFNGLTEXCOORD4BVOESPROC) (const GLbyte *coords); -typedef void (APIENTRYP PFNGLVERTEX2BOESPROC) (GLbyte x, GLbyte y); -typedef void (APIENTRYP PFNGLVERTEX2BVOESPROC) (const GLbyte *coords); -typedef void (APIENTRYP PFNGLVERTEX3BOESPROC) (GLbyte x, GLbyte y, GLbyte z); -typedef void (APIENTRYP PFNGLVERTEX3BVOESPROC) (const GLbyte *coords); -typedef void (APIENTRYP PFNGLVERTEX4BOESPROC) (GLbyte x, GLbyte y, GLbyte z, GLbyte w); -typedef void (APIENTRYP PFNGLVERTEX4BVOESPROC) (const GLbyte *coords); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiTexCoord1bOES (GLenum texture, GLbyte s); -GLAPI void APIENTRY glMultiTexCoord1bvOES (GLenum texture, const GLbyte *coords); -GLAPI void APIENTRY glMultiTexCoord2bOES (GLenum texture, GLbyte s, GLbyte t); -GLAPI void APIENTRY glMultiTexCoord2bvOES (GLenum texture, const GLbyte *coords); -GLAPI void APIENTRY glMultiTexCoord3bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r); -GLAPI void APIENTRY glMultiTexCoord3bvOES (GLenum texture, const GLbyte *coords); -GLAPI void APIENTRY glMultiTexCoord4bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q); -GLAPI void APIENTRY glMultiTexCoord4bvOES (GLenum texture, const GLbyte *coords); -GLAPI void APIENTRY glTexCoord1bOES (GLbyte s); -GLAPI void APIENTRY glTexCoord1bvOES (const GLbyte *coords); -GLAPI void APIENTRY glTexCoord2bOES (GLbyte s, GLbyte t); -GLAPI void APIENTRY glTexCoord2bvOES (const GLbyte *coords); -GLAPI void APIENTRY glTexCoord3bOES (GLbyte s, GLbyte t, GLbyte r); -GLAPI void APIENTRY glTexCoord3bvOES (const GLbyte *coords); -GLAPI void APIENTRY glTexCoord4bOES (GLbyte s, GLbyte t, GLbyte r, GLbyte q); -GLAPI void APIENTRY glTexCoord4bvOES (const GLbyte *coords); -GLAPI void APIENTRY glVertex2bOES (GLbyte x, GLbyte y); -GLAPI void APIENTRY glVertex2bvOES (const GLbyte *coords); -GLAPI void APIENTRY glVertex3bOES (GLbyte x, GLbyte y, GLbyte z); -GLAPI void APIENTRY glVertex3bvOES (const GLbyte *coords); -GLAPI void APIENTRY glVertex4bOES (GLbyte x, GLbyte y, GLbyte z, GLbyte w); -GLAPI void APIENTRY glVertex4bvOES (const GLbyte *coords); -#endif -#endif /* GL_OES_byte_coordinates */ - -#ifndef GL_OES_compressed_paletted_texture -#define GL_OES_compressed_paletted_texture 1 -#define GL_PALETTE4_RGB8_OES 0x8B90 -#define GL_PALETTE4_RGBA8_OES 0x8B91 -#define GL_PALETTE4_R5_G6_B5_OES 0x8B92 -#define GL_PALETTE4_RGBA4_OES 0x8B93 -#define GL_PALETTE4_RGB5_A1_OES 0x8B94 -#define GL_PALETTE8_RGB8_OES 0x8B95 -#define GL_PALETTE8_RGBA8_OES 0x8B96 -#define GL_PALETTE8_R5_G6_B5_OES 0x8B97 -#define GL_PALETTE8_RGBA4_OES 0x8B98 -#define GL_PALETTE8_RGB5_A1_OES 0x8B99 -#endif /* GL_OES_compressed_paletted_texture */ - -#ifndef GL_OES_fixed_point -#define GL_OES_fixed_point 1 -typedef GLint GLfixed; -#define GL_FIXED_OES 0x140C -typedef void (APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLfixed ref); -typedef void (APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -typedef void (APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLfixed depth); -typedef void (APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation); -typedef void (APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -typedef void (APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLfixed n, GLfixed f); -typedef void (APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *param); -typedef void (APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -typedef void (APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum plane, GLfixed *equation); -typedef void (APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params); -typedef void (APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum target, GLenum pname, GLfixed *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params); -typedef void (APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *param); -typedef void (APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params); -typedef void (APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width); -typedef void (APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m); -typedef void (APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *param); -typedef void (APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q); -typedef void (APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz); -typedef void (APIENTRYP PFNGLORTHOXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -typedef void (APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params); -typedef void (APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size); -typedef void (APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units); -typedef void (APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEOESPROC) (GLfixed value, GLboolean invert); -typedef void (APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z); -typedef void (APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params); -typedef void (APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params); -typedef void (APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z); -typedef void (APIENTRYP PFNGLACCUMXOESPROC) (GLenum op, GLfixed value); -typedef void (APIENTRYP PFNGLBITMAPXOESPROC) (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap); -typedef void (APIENTRYP PFNGLBLENDCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -typedef void (APIENTRYP PFNGLCLEARACCUMXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -typedef void (APIENTRYP PFNGLCOLOR3XOESPROC) (GLfixed red, GLfixed green, GLfixed blue); -typedef void (APIENTRYP PFNGLCOLOR3XVOESPROC) (const GLfixed *components); -typedef void (APIENTRYP PFNGLCOLOR4XVOESPROC) (const GLfixed *components); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params); -typedef void (APIENTRYP PFNGLEVALCOORD1XOESPROC) (GLfixed u); -typedef void (APIENTRYP PFNGLEVALCOORD1XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLEVALCOORD2XOESPROC) (GLfixed u, GLfixed v); -typedef void (APIENTRYP PFNGLEVALCOORD2XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLFEEDBACKBUFFERXOESPROC) (GLsizei n, GLenum type, const GLfixed *buffer); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params); -typedef void (APIENTRYP PFNGLGETLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed *params); -typedef void (APIENTRYP PFNGLGETMAPXVOESPROC) (GLenum target, GLenum query, GLfixed *v); -typedef void (APIENTRYP PFNGLGETMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLGETPIXELMAPXVPROC) (GLenum map, GLint size, GLfixed *values); -typedef void (APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params); -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERXVOESPROC) (GLenum target, GLint level, GLenum pname, GLfixed *params); -typedef void (APIENTRYP PFNGLINDEXXOESPROC) (GLfixed component); -typedef void (APIENTRYP PFNGLINDEXXVOESPROC) (const GLfixed *component); -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXXOESPROC) (const GLfixed *m); -typedef void (APIENTRYP PFNGLMAP1XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points); -typedef void (APIENTRYP PFNGLMAP2XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points); -typedef void (APIENTRYP PFNGLMAPGRID1XOESPROC) (GLint n, GLfixed u1, GLfixed u2); -typedef void (APIENTRYP PFNGLMAPGRID2XOESPROC) (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXXOESPROC) (const GLfixed *m); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1XOESPROC) (GLenum texture, GLfixed s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1XVOESPROC) (GLenum texture, const GLfixed *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2XOESPROC) (GLenum texture, GLfixed s, GLfixed t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2XVOESPROC) (GLenum texture, const GLfixed *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3XVOESPROC) (GLenum texture, const GLfixed *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4XVOESPROC) (GLenum texture, const GLfixed *coords); -typedef void (APIENTRYP PFNGLNORMAL3XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLPASSTHROUGHXOESPROC) (GLfixed token); -typedef void (APIENTRYP PFNGLPIXELMAPXPROC) (GLenum map, GLint size, const GLfixed *values); -typedef void (APIENTRYP PFNGLPIXELSTOREXPROC) (GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLPIXELTRANSFERXOESPROC) (GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLPIXELZOOMXOESPROC) (GLfixed xfactor, GLfixed yfactor); -typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESXOESPROC) (GLsizei n, const GLuint *textures, const GLfixed *priorities); -typedef void (APIENTRYP PFNGLRASTERPOS2XOESPROC) (GLfixed x, GLfixed y); -typedef void (APIENTRYP PFNGLRASTERPOS2XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLRASTERPOS3XOESPROC) (GLfixed x, GLfixed y, GLfixed z); -typedef void (APIENTRYP PFNGLRASTERPOS3XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLRASTERPOS4XOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed w); -typedef void (APIENTRYP PFNGLRASTERPOS4XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLRECTXOESPROC) (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2); -typedef void (APIENTRYP PFNGLRECTXVOESPROC) (const GLfixed *v1, const GLfixed *v2); -typedef void (APIENTRYP PFNGLTEXCOORD1XOESPROC) (GLfixed s); -typedef void (APIENTRYP PFNGLTEXCOORD1XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLTEXCOORD2XOESPROC) (GLfixed s, GLfixed t); -typedef void (APIENTRYP PFNGLTEXCOORD2XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLTEXCOORD3XOESPROC) (GLfixed s, GLfixed t, GLfixed r); -typedef void (APIENTRYP PFNGLTEXCOORD3XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLTEXCOORD4XOESPROC) (GLfixed s, GLfixed t, GLfixed r, GLfixed q); -typedef void (APIENTRYP PFNGLTEXCOORD4XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param); -typedef void (APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params); -typedef void (APIENTRYP PFNGLVERTEX2XOESPROC) (GLfixed x); -typedef void (APIENTRYP PFNGLVERTEX2XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLVERTEX3XOESPROC) (GLfixed x, GLfixed y); -typedef void (APIENTRYP PFNGLVERTEX3XVOESPROC) (const GLfixed *coords); -typedef void (APIENTRYP PFNGLVERTEX4XOESPROC) (GLfixed x, GLfixed y, GLfixed z); -typedef void (APIENTRYP PFNGLVERTEX4XVOESPROC) (const GLfixed *coords); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glAlphaFuncxOES (GLenum func, GLfixed ref); -GLAPI void APIENTRY glClearColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -GLAPI void APIENTRY glClearDepthxOES (GLfixed depth); -GLAPI void APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation); -GLAPI void APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -GLAPI void APIENTRY glDepthRangexOES (GLfixed n, GLfixed f); -GLAPI void APIENTRY glFogxOES (GLenum pname, GLfixed param); -GLAPI void APIENTRY glFogxvOES (GLenum pname, const GLfixed *param); -GLAPI void APIENTRY glFrustumxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -GLAPI void APIENTRY glGetClipPlanexOES (GLenum plane, GLfixed *equation); -GLAPI void APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params); -GLAPI void APIENTRY glGetTexEnvxvOES (GLenum target, GLenum pname, GLfixed *params); -GLAPI void APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params); -GLAPI void APIENTRY glLightModelxOES (GLenum pname, GLfixed param); -GLAPI void APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *param); -GLAPI void APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param); -GLAPI void APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params); -GLAPI void APIENTRY glLineWidthxOES (GLfixed width); -GLAPI void APIENTRY glLoadMatrixxOES (const GLfixed *m); -GLAPI void APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param); -GLAPI void APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *param); -GLAPI void APIENTRY glMultMatrixxOES (const GLfixed *m); -GLAPI void APIENTRY glMultiTexCoord4xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q); -GLAPI void APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz); -GLAPI void APIENTRY glOrthoxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -GLAPI void APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params); -GLAPI void APIENTRY glPointSizexOES (GLfixed size); -GLAPI void APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units); -GLAPI void APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); -GLAPI void APIENTRY glSampleCoverageOES (GLfixed value, GLboolean invert); -GLAPI void APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z); -GLAPI void APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param); -GLAPI void APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params); -GLAPI void APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param); -GLAPI void APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params); -GLAPI void APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z); -GLAPI void APIENTRY glAccumxOES (GLenum op, GLfixed value); -GLAPI void APIENTRY glBitmapxOES (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap); -GLAPI void APIENTRY glBlendColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -GLAPI void APIENTRY glClearAccumxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -GLAPI void APIENTRY glColor3xOES (GLfixed red, GLfixed green, GLfixed blue); -GLAPI void APIENTRY glColor3xvOES (const GLfixed *components); -GLAPI void APIENTRY glColor4xvOES (const GLfixed *components); -GLAPI void APIENTRY glConvolutionParameterxOES (GLenum target, GLenum pname, GLfixed param); -GLAPI void APIENTRY glConvolutionParameterxvOES (GLenum target, GLenum pname, const GLfixed *params); -GLAPI void APIENTRY glEvalCoord1xOES (GLfixed u); -GLAPI void APIENTRY glEvalCoord1xvOES (const GLfixed *coords); -GLAPI void APIENTRY glEvalCoord2xOES (GLfixed u, GLfixed v); -GLAPI void APIENTRY glEvalCoord2xvOES (const GLfixed *coords); -GLAPI void APIENTRY glFeedbackBufferxOES (GLsizei n, GLenum type, const GLfixed *buffer); -GLAPI void APIENTRY glGetConvolutionParameterxvOES (GLenum target, GLenum pname, GLfixed *params); -GLAPI void APIENTRY glGetHistogramParameterxvOES (GLenum target, GLenum pname, GLfixed *params); -GLAPI void APIENTRY glGetLightxOES (GLenum light, GLenum pname, GLfixed *params); -GLAPI void APIENTRY glGetMapxvOES (GLenum target, GLenum query, GLfixed *v); -GLAPI void APIENTRY glGetMaterialxOES (GLenum face, GLenum pname, GLfixed param); -GLAPI void APIENTRY glGetPixelMapxv (GLenum map, GLint size, GLfixed *values); -GLAPI void APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params); -GLAPI void APIENTRY glGetTexLevelParameterxvOES (GLenum target, GLint level, GLenum pname, GLfixed *params); -GLAPI void APIENTRY glIndexxOES (GLfixed component); -GLAPI void APIENTRY glIndexxvOES (const GLfixed *component); -GLAPI void APIENTRY glLoadTransposeMatrixxOES (const GLfixed *m); -GLAPI void APIENTRY glMap1xOES (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points); -GLAPI void APIENTRY glMap2xOES (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points); -GLAPI void APIENTRY glMapGrid1xOES (GLint n, GLfixed u1, GLfixed u2); -GLAPI void APIENTRY glMapGrid2xOES (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2); -GLAPI void APIENTRY glMultTransposeMatrixxOES (const GLfixed *m); -GLAPI void APIENTRY glMultiTexCoord1xOES (GLenum texture, GLfixed s); -GLAPI void APIENTRY glMultiTexCoord1xvOES (GLenum texture, const GLfixed *coords); -GLAPI void APIENTRY glMultiTexCoord2xOES (GLenum texture, GLfixed s, GLfixed t); -GLAPI void APIENTRY glMultiTexCoord2xvOES (GLenum texture, const GLfixed *coords); -GLAPI void APIENTRY glMultiTexCoord3xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r); -GLAPI void APIENTRY glMultiTexCoord3xvOES (GLenum texture, const GLfixed *coords); -GLAPI void APIENTRY glMultiTexCoord4xvOES (GLenum texture, const GLfixed *coords); -GLAPI void APIENTRY glNormal3xvOES (const GLfixed *coords); -GLAPI void APIENTRY glPassThroughxOES (GLfixed token); -GLAPI void APIENTRY glPixelMapx (GLenum map, GLint size, const GLfixed *values); -GLAPI void APIENTRY glPixelStorex (GLenum pname, GLfixed param); -GLAPI void APIENTRY glPixelTransferxOES (GLenum pname, GLfixed param); -GLAPI void APIENTRY glPixelZoomxOES (GLfixed xfactor, GLfixed yfactor); -GLAPI void APIENTRY glPrioritizeTexturesxOES (GLsizei n, const GLuint *textures, const GLfixed *priorities); -GLAPI void APIENTRY glRasterPos2xOES (GLfixed x, GLfixed y); -GLAPI void APIENTRY glRasterPos2xvOES (const GLfixed *coords); -GLAPI void APIENTRY glRasterPos3xOES (GLfixed x, GLfixed y, GLfixed z); -GLAPI void APIENTRY glRasterPos3xvOES (const GLfixed *coords); -GLAPI void APIENTRY glRasterPos4xOES (GLfixed x, GLfixed y, GLfixed z, GLfixed w); -GLAPI void APIENTRY glRasterPos4xvOES (const GLfixed *coords); -GLAPI void APIENTRY glRectxOES (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2); -GLAPI void APIENTRY glRectxvOES (const GLfixed *v1, const GLfixed *v2); -GLAPI void APIENTRY glTexCoord1xOES (GLfixed s); -GLAPI void APIENTRY glTexCoord1xvOES (const GLfixed *coords); -GLAPI void APIENTRY glTexCoord2xOES (GLfixed s, GLfixed t); -GLAPI void APIENTRY glTexCoord2xvOES (const GLfixed *coords); -GLAPI void APIENTRY glTexCoord3xOES (GLfixed s, GLfixed t, GLfixed r); -GLAPI void APIENTRY glTexCoord3xvOES (const GLfixed *coords); -GLAPI void APIENTRY glTexCoord4xOES (GLfixed s, GLfixed t, GLfixed r, GLfixed q); -GLAPI void APIENTRY glTexCoord4xvOES (const GLfixed *coords); -GLAPI void APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param); -GLAPI void APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params); -GLAPI void APIENTRY glVertex2xOES (GLfixed x); -GLAPI void APIENTRY glVertex2xvOES (const GLfixed *coords); -GLAPI void APIENTRY glVertex3xOES (GLfixed x, GLfixed y); -GLAPI void APIENTRY glVertex3xvOES (const GLfixed *coords); -GLAPI void APIENTRY glVertex4xOES (GLfixed x, GLfixed y, GLfixed z); -GLAPI void APIENTRY glVertex4xvOES (const GLfixed *coords); -#endif -#endif /* GL_OES_fixed_point */ - -#ifndef GL_OES_query_matrix -#define GL_OES_query_matrix 1 -typedef GLbitfield (APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed *mantissa, GLint *exponent); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLbitfield APIENTRY glQueryMatrixxOES (GLfixed *mantissa, GLint *exponent); -#endif -#endif /* GL_OES_query_matrix */ - -#ifndef GL_OES_read_format -#define GL_OES_read_format 1 -#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B -#endif /* GL_OES_read_format */ - -#ifndef GL_OES_single_precision -#define GL_OES_single_precision 1 -typedef void (APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth); -typedef void (APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation); -typedef void (APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f); -typedef void (APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -typedef void (APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat *equation); -typedef void (APIENTRYP PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glClearDepthfOES (GLclampf depth); -GLAPI void APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation); -GLAPI void APIENTRY glDepthRangefOES (GLclampf n, GLclampf f); -GLAPI void APIENTRY glFrustumfOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -GLAPI void APIENTRY glGetClipPlanefOES (GLenum plane, GLfloat *equation); -GLAPI void APIENTRY glOrthofOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -#endif -#endif /* GL_OES_single_precision */ - -#ifndef GL_3DFX_multisample -#define GL_3DFX_multisample 1 -#define GL_MULTISAMPLE_3DFX 0x86B2 -#define GL_SAMPLE_BUFFERS_3DFX 0x86B3 -#define GL_SAMPLES_3DFX 0x86B4 -#define GL_MULTISAMPLE_BIT_3DFX 0x20000000 -#endif /* GL_3DFX_multisample */ - -#ifndef GL_3DFX_tbuffer -#define GL_3DFX_tbuffer 1 -typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTbufferMask3DFX (GLuint mask); -#endif -#endif /* GL_3DFX_tbuffer */ - -#ifndef GL_3DFX_texture_compression_FXT1 -#define GL_3DFX_texture_compression_FXT1 1 -#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0 -#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1 -#endif /* GL_3DFX_texture_compression_FXT1 */ - -#ifndef GL_AMD_blend_minmax_factor -#define GL_AMD_blend_minmax_factor 1 -#define GL_FACTOR_MIN_AMD 0x901C -#define GL_FACTOR_MAX_AMD 0x901D -#endif /* GL_AMD_blend_minmax_factor */ - -#ifndef GL_AMD_conservative_depth -#define GL_AMD_conservative_depth 1 -#endif /* GL_AMD_conservative_depth */ - -#ifndef GL_AMD_debug_output -#define GL_AMD_debug_output 1 -typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); -#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145 -#define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM_AMD 0x9147 -#define GL_DEBUG_SEVERITY_LOW_AMD 0x9148 -#define GL_DEBUG_CATEGORY_API_ERROR_AMD 0x9149 -#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A -#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B -#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C -#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D -#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E -#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F -#define GL_DEBUG_CATEGORY_OTHER_AMD 0x9150 -typedef void (APIENTRYP PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf); -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, void *userParam); -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDebugMessageEnableAMD (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI void APIENTRY glDebugMessageInsertAMD (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf); -GLAPI void APIENTRY glDebugMessageCallbackAMD (GLDEBUGPROCAMD callback, void *userParam); -GLAPI GLuint APIENTRY glGetDebugMessageLogAMD (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message); -#endif -#endif /* GL_AMD_debug_output */ - -#ifndef GL_AMD_depth_clamp_separate -#define GL_AMD_depth_clamp_separate 1 -#define GL_DEPTH_CLAMP_NEAR_AMD 0x901E -#define GL_DEPTH_CLAMP_FAR_AMD 0x901F -#endif /* GL_AMD_depth_clamp_separate */ - -#ifndef GL_AMD_draw_buffers_blend -#define GL_AMD_draw_buffers_blend 1 -typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst); -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode); -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendFuncIndexedAMD (GLuint buf, GLenum src, GLenum dst); -GLAPI void APIENTRY glBlendFuncSeparateIndexedAMD (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -GLAPI void APIENTRY glBlendEquationIndexedAMD (GLuint buf, GLenum mode); -GLAPI void APIENTRY glBlendEquationSeparateIndexedAMD (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -#endif -#endif /* GL_AMD_draw_buffers_blend */ - -#ifndef GL_AMD_gcn_shader -#define GL_AMD_gcn_shader 1 -#endif /* GL_AMD_gcn_shader */ - -#ifndef GL_AMD_gpu_shader_int64 -#define GL_AMD_gpu_shader_int64 1 -typedef int64_t GLint64EXT; -#define GL_INT64_NV 0x140E -#define GL_UNSIGNED_INT64_NV 0x140F -#define GL_INT8_NV 0x8FE0 -#define GL_INT8_VEC2_NV 0x8FE1 -#define GL_INT8_VEC3_NV 0x8FE2 -#define GL_INT8_VEC4_NV 0x8FE3 -#define GL_INT16_NV 0x8FE4 -#define GL_INT16_VEC2_NV 0x8FE5 -#define GL_INT16_VEC3_NV 0x8FE6 -#define GL_INT16_VEC4_NV 0x8FE7 -#define GL_INT64_VEC2_NV 0x8FE9 -#define GL_INT64_VEC3_NV 0x8FEA -#define GL_INT64_VEC4_NV 0x8FEB -#define GL_UNSIGNED_INT8_NV 0x8FEC -#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED -#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE -#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF -#define GL_UNSIGNED_INT16_NV 0x8FF0 -#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1 -#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2 -#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3 -#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5 -#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6 -#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7 -#define GL_FLOAT16_NV 0x8FF8 -#define GL_FLOAT16_VEC2_NV 0x8FF9 -#define GL_FLOAT16_VEC3_NV 0x8FFA -#define GL_FLOAT16_VEC4_NV 0x8FFB -typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x); -typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y); -typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); -typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); -typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); -typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); -typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x); -typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y); -typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); -typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); -typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); -typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); -typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params); -typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glUniform1i64NV (GLint location, GLint64EXT x); -GLAPI void APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y); -GLAPI void APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -GLAPI void APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -GLAPI void APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value); -GLAPI void APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value); -GLAPI void APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value); -GLAPI void APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value); -GLAPI void APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x); -GLAPI void APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y); -GLAPI void APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -GLAPI void APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -GLAPI void APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI void APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI void APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI void APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI void APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params); -GLAPI void APIENTRY glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params); -GLAPI void APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x); -GLAPI void APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); -GLAPI void APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -GLAPI void APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -GLAPI void APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -GLAPI void APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -GLAPI void APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -GLAPI void APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -GLAPI void APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x); -GLAPI void APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); -GLAPI void APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -GLAPI void APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -GLAPI void APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI void APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI void APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI void APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -#endif -#endif /* GL_AMD_gpu_shader_int64 */ - -#ifndef GL_AMD_interleaved_elements -#define GL_AMD_interleaved_elements 1 -#define GL_VERTEX_ELEMENT_SWIZZLE_AMD 0x91A4 -#define GL_VERTEX_ID_SWIZZLE_AMD 0x91A5 -typedef void (APIENTRYP PFNGLVERTEXATTRIBPARAMETERIAMDPROC) (GLuint index, GLenum pname, GLint param); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribParameteriAMD (GLuint index, GLenum pname, GLint param); -#endif -#endif /* GL_AMD_interleaved_elements */ - -#ifndef GL_AMD_multi_draw_indirect -#define GL_AMD_multi_draw_indirect 1 -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC) (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiDrawArraysIndirectAMD (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride); -GLAPI void APIENTRY glMultiDrawElementsIndirectAMD (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride); -#endif -#endif /* GL_AMD_multi_draw_indirect */ - -#ifndef GL_AMD_name_gen_delete -#define GL_AMD_name_gen_delete 1 -#define GL_DATA_BUFFER_AMD 0x9151 -#define GL_PERFORMANCE_MONITOR_AMD 0x9152 -#define GL_QUERY_OBJECT_AMD 0x9153 -#define GL_VERTEX_ARRAY_OBJECT_AMD 0x9154 -#define GL_SAMPLER_OBJECT_AMD 0x9155 -typedef void (APIENTRYP PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint *names); -typedef void (APIENTRYP PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint *names); -typedef GLboolean (APIENTRYP PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenNamesAMD (GLenum identifier, GLuint num, GLuint *names); -GLAPI void APIENTRY glDeleteNamesAMD (GLenum identifier, GLuint num, const GLuint *names); -GLAPI GLboolean APIENTRY glIsNameAMD (GLenum identifier, GLuint name); -#endif -#endif /* GL_AMD_name_gen_delete */ - -#ifndef GL_AMD_occlusion_query_event -#define GL_AMD_occlusion_query_event 1 -#define GL_OCCLUSION_QUERY_EVENT_MASK_AMD 0x874F -#define GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD 0x00000001 -#define GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD 0x00000002 -#define GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD 0x00000004 -#define GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD 0x00000008 -#define GL_QUERY_ALL_EVENT_BITS_AMD 0xFFFFFFFF -typedef void (APIENTRYP PFNGLQUERYOBJECTPARAMETERUIAMDPROC) (GLenum target, GLuint id, GLenum pname, GLuint param); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glQueryObjectParameteruiAMD (GLenum target, GLuint id, GLenum pname, GLuint param); -#endif -#endif /* GL_AMD_occlusion_query_event */ - -#ifndef GL_AMD_performance_monitor -#define GL_AMD_performance_monitor 1 -#define GL_COUNTER_TYPE_AMD 0x8BC0 -#define GL_COUNTER_RANGE_AMD 0x8BC1 -#define GL_UNSIGNED_INT64_AMD 0x8BC2 -#define GL_PERCENTAGE_AMD 0x8BC3 -#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4 -#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5 -#define GL_PERFMON_RESULT_AMD 0x8BC6 -typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups); -typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); -typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); -typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); -typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data); -typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors); -typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors); -typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList); -typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor); -typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor); -typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups); -GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); -GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); -GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); -GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data); -GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors); -GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors); -GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList); -GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint monitor); -GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint monitor); -GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); -#endif -#endif /* GL_AMD_performance_monitor */ - -#ifndef GL_AMD_pinned_memory -#define GL_AMD_pinned_memory 1 -#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160 -#endif /* GL_AMD_pinned_memory */ - -#ifndef GL_AMD_query_buffer_object -#define GL_AMD_query_buffer_object 1 -#define GL_QUERY_BUFFER_AMD 0x9192 -#define GL_QUERY_BUFFER_BINDING_AMD 0x9193 -#define GL_QUERY_RESULT_NO_WAIT_AMD 0x9194 -#endif /* GL_AMD_query_buffer_object */ - -#ifndef GL_AMD_sample_positions -#define GL_AMD_sample_positions 1 -#define GL_SUBSAMPLE_DISTANCE_AMD 0x883F -typedef void (APIENTRYP PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat *val); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSetMultisamplefvAMD (GLenum pname, GLuint index, const GLfloat *val); -#endif -#endif /* GL_AMD_sample_positions */ - -#ifndef GL_AMD_seamless_cubemap_per_texture -#define GL_AMD_seamless_cubemap_per_texture 1 -#endif /* GL_AMD_seamless_cubemap_per_texture */ - -#ifndef GL_AMD_shader_atomic_counter_ops -#define GL_AMD_shader_atomic_counter_ops 1 -#endif /* GL_AMD_shader_atomic_counter_ops */ - -#ifndef GL_AMD_shader_stencil_export -#define GL_AMD_shader_stencil_export 1 -#endif /* GL_AMD_shader_stencil_export */ - -#ifndef GL_AMD_shader_trinary_minmax -#define GL_AMD_shader_trinary_minmax 1 -#endif /* GL_AMD_shader_trinary_minmax */ - -#ifndef GL_AMD_sparse_texture -#define GL_AMD_sparse_texture 1 -#define GL_VIRTUAL_PAGE_SIZE_X_AMD 0x9195 -#define GL_VIRTUAL_PAGE_SIZE_Y_AMD 0x9196 -#define GL_VIRTUAL_PAGE_SIZE_Z_AMD 0x9197 -#define GL_MAX_SPARSE_TEXTURE_SIZE_AMD 0x9198 -#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199 -#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A -#define GL_MIN_SPARSE_LEVEL_AMD 0x919B -#define GL_MIN_LOD_WARNING_AMD 0x919C -#define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001 -typedef void (APIENTRYP PFNGLTEXSTORAGESPARSEAMDPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); -typedef void (APIENTRYP PFNGLTEXTURESTORAGESPARSEAMDPROC) (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexStorageSparseAMD (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); -GLAPI void APIENTRY glTextureStorageSparseAMD (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); -#endif -#endif /* GL_AMD_sparse_texture */ - -#ifndef GL_AMD_stencil_operation_extended -#define GL_AMD_stencil_operation_extended 1 -#define GL_SET_AMD 0x874A -#define GL_REPLACE_VALUE_AMD 0x874B -#define GL_STENCIL_OP_VALUE_AMD 0x874C -#define GL_STENCIL_BACK_OP_VALUE_AMD 0x874D -typedef void (APIENTRYP PFNGLSTENCILOPVALUEAMDPROC) (GLenum face, GLuint value); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glStencilOpValueAMD (GLenum face, GLuint value); -#endif -#endif /* GL_AMD_stencil_operation_extended */ - -#ifndef GL_AMD_texture_texture4 -#define GL_AMD_texture_texture4 1 -#endif /* GL_AMD_texture_texture4 */ - -#ifndef GL_AMD_transform_feedback3_lines_triangles -#define GL_AMD_transform_feedback3_lines_triangles 1 -#endif /* GL_AMD_transform_feedback3_lines_triangles */ - -#ifndef GL_AMD_transform_feedback4 -#define GL_AMD_transform_feedback4 1 -#define GL_STREAM_RASTERIZATION_AMD 0x91A0 -#endif /* GL_AMD_transform_feedback4 */ - -#ifndef GL_AMD_vertex_shader_layer -#define GL_AMD_vertex_shader_layer 1 -#endif /* GL_AMD_vertex_shader_layer */ - -#ifndef GL_AMD_vertex_shader_tessellator -#define GL_AMD_vertex_shader_tessellator 1 -#define GL_SAMPLER_BUFFER_AMD 0x9001 -#define GL_INT_SAMPLER_BUFFER_AMD 0x9002 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003 -#define GL_TESSELLATION_MODE_AMD 0x9004 -#define GL_TESSELLATION_FACTOR_AMD 0x9005 -#define GL_DISCRETE_AMD 0x9006 -#define GL_CONTINUOUS_AMD 0x9007 -typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor); -typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTessellationFactorAMD (GLfloat factor); -GLAPI void APIENTRY glTessellationModeAMD (GLenum mode); -#endif -#endif /* GL_AMD_vertex_shader_tessellator */ - -#ifndef GL_AMD_vertex_shader_viewport_index -#define GL_AMD_vertex_shader_viewport_index 1 -#endif /* GL_AMD_vertex_shader_viewport_index */ - -#ifndef GL_APPLE_aux_depth_stencil -#define GL_APPLE_aux_depth_stencil 1 -#define GL_AUX_DEPTH_STENCIL_APPLE 0x8A14 -#endif /* GL_APPLE_aux_depth_stencil */ - -#ifndef GL_APPLE_client_storage -#define GL_APPLE_client_storage 1 -#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 -#endif /* GL_APPLE_client_storage */ - -#ifndef GL_APPLE_element_array -#define GL_APPLE_element_array 1 -#define GL_ELEMENT_ARRAY_APPLE 0x8A0C -#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8A0D -#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x8A0E -typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void *pointer); -typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); -typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glElementPointerAPPLE (GLenum type, const void *pointer); -GLAPI void APIENTRY glDrawElementArrayAPPLE (GLenum mode, GLint first, GLsizei count); -GLAPI void APIENTRY glDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); -GLAPI void APIENTRY glMultiDrawElementArrayAPPLE (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); -GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount); -#endif -#endif /* GL_APPLE_element_array */ - -#ifndef GL_APPLE_fence -#define GL_APPLE_fence 1 -#define GL_DRAW_PIXELS_APPLE 0x8A0A -#define GL_FENCE_APPLE 0x8A0B -typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences); -typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences); -typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence); -typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence); -typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence); -typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); -typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); -typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenFencesAPPLE (GLsizei n, GLuint *fences); -GLAPI void APIENTRY glDeleteFencesAPPLE (GLsizei n, const GLuint *fences); -GLAPI void APIENTRY glSetFenceAPPLE (GLuint fence); -GLAPI GLboolean APIENTRY glIsFenceAPPLE (GLuint fence); -GLAPI GLboolean APIENTRY glTestFenceAPPLE (GLuint fence); -GLAPI void APIENTRY glFinishFenceAPPLE (GLuint fence); -GLAPI GLboolean APIENTRY glTestObjectAPPLE (GLenum object, GLuint name); -GLAPI void APIENTRY glFinishObjectAPPLE (GLenum object, GLint name); -#endif -#endif /* GL_APPLE_fence */ - -#ifndef GL_APPLE_float_pixels -#define GL_APPLE_float_pixels 1 -#define GL_HALF_APPLE 0x140B -#define GL_RGBA_FLOAT32_APPLE 0x8814 -#define GL_RGB_FLOAT32_APPLE 0x8815 -#define GL_ALPHA_FLOAT32_APPLE 0x8816 -#define GL_INTENSITY_FLOAT32_APPLE 0x8817 -#define GL_LUMINANCE_FLOAT32_APPLE 0x8818 -#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819 -#define GL_RGBA_FLOAT16_APPLE 0x881A -#define GL_RGB_FLOAT16_APPLE 0x881B -#define GL_ALPHA_FLOAT16_APPLE 0x881C -#define GL_INTENSITY_FLOAT16_APPLE 0x881D -#define GL_LUMINANCE_FLOAT16_APPLE 0x881E -#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F -#define GL_COLOR_FLOAT_APPLE 0x8A0F -#endif /* GL_APPLE_float_pixels */ - -#ifndef GL_APPLE_flush_buffer_range -#define GL_APPLE_flush_buffer_range 1 -#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12 -#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13 -typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBufferParameteriAPPLE (GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glFlushMappedBufferRangeAPPLE (GLenum target, GLintptr offset, GLsizeiptr size); -#endif -#endif /* GL_APPLE_flush_buffer_range */ - -#ifndef GL_APPLE_object_purgeable -#define GL_APPLE_object_purgeable 1 -#define GL_BUFFER_OBJECT_APPLE 0x85B3 -#define GL_RELEASED_APPLE 0x8A19 -#define GL_VOLATILE_APPLE 0x8A1A -#define GL_RETAINED_APPLE 0x8A1B -#define GL_UNDEFINED_APPLE 0x8A1C -#define GL_PURGEABLE_APPLE 0x8A1D -typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); -typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); -typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLenum APIENTRY glObjectPurgeableAPPLE (GLenum objectType, GLuint name, GLenum option); -GLAPI GLenum APIENTRY glObjectUnpurgeableAPPLE (GLenum objectType, GLuint name, GLenum option); -GLAPI void APIENTRY glGetObjectParameterivAPPLE (GLenum objectType, GLuint name, GLenum pname, GLint *params); -#endif -#endif /* GL_APPLE_object_purgeable */ - -#ifndef GL_APPLE_rgb_422 -#define GL_APPLE_rgb_422 1 -#define GL_RGB_422_APPLE 0x8A1F -#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB -#define GL_RGB_RAW_422_APPLE 0x8A51 -#endif /* GL_APPLE_rgb_422 */ - -#ifndef GL_APPLE_row_bytes -#define GL_APPLE_row_bytes 1 -#define GL_PACK_ROW_BYTES_APPLE 0x8A15 -#define GL_UNPACK_ROW_BYTES_APPLE 0x8A16 -#endif /* GL_APPLE_row_bytes */ - -#ifndef GL_APPLE_specular_vector -#define GL_APPLE_specular_vector 1 -#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0 -#endif /* GL_APPLE_specular_vector */ - -#ifndef GL_APPLE_texture_range -#define GL_APPLE_texture_range 1 -#define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7 -#define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8 -#define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC -#define GL_STORAGE_PRIVATE_APPLE 0x85BD -#define GL_STORAGE_CACHED_APPLE 0x85BE -#define GL_STORAGE_SHARED_APPLE 0x85BF -typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const void *pointer); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, void **params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTextureRangeAPPLE (GLenum target, GLsizei length, const void *pointer); -GLAPI void APIENTRY glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, void **params); -#endif -#endif /* GL_APPLE_texture_range */ - -#ifndef GL_APPLE_transform_hint -#define GL_APPLE_transform_hint 1 -#define GL_TRANSFORM_HINT_APPLE 0x85B1 -#endif /* GL_APPLE_transform_hint */ - -#ifndef GL_APPLE_vertex_array_object -#define GL_APPLE_vertex_array_object 1 -#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5 -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays); -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays); -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindVertexArrayAPPLE (GLuint array); -GLAPI void APIENTRY glDeleteVertexArraysAPPLE (GLsizei n, const GLuint *arrays); -GLAPI void APIENTRY glGenVertexArraysAPPLE (GLsizei n, GLuint *arrays); -GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE (GLuint array); -#endif -#endif /* GL_APPLE_vertex_array_object */ - -#ifndef GL_APPLE_vertex_array_range -#define GL_APPLE_vertex_array_range 1 -#define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D -#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E -#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F -#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521 -#define GL_STORAGE_CLIENT_APPLE 0x85B4 -typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void *pointer); -typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void *pointer); -typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexArrayRangeAPPLE (GLsizei length, void *pointer); -GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE (GLsizei length, void *pointer); -GLAPI void APIENTRY glVertexArrayParameteriAPPLE (GLenum pname, GLint param); -#endif -#endif /* GL_APPLE_vertex_array_range */ - -#ifndef GL_APPLE_vertex_program_evaluators -#define GL_APPLE_vertex_program_evaluators 1 -#define GL_VERTEX_ATTRIB_MAP1_APPLE 0x8A00 -#define GL_VERTEX_ATTRIB_MAP2_APPLE 0x8A01 -#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE 0x8A02 -#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03 -#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04 -#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05 -#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE 0x8A06 -#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07 -#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08 -#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09 -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); -typedef GLboolean (APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname); -typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); -typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); -typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); -typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glEnableVertexAttribAPPLE (GLuint index, GLenum pname); -GLAPI void APIENTRY glDisableVertexAttribAPPLE (GLuint index, GLenum pname); -GLAPI GLboolean APIENTRY glIsVertexAttribEnabledAPPLE (GLuint index, GLenum pname); -GLAPI void APIENTRY glMapVertexAttrib1dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); -GLAPI void APIENTRY glMapVertexAttrib1fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); -GLAPI void APIENTRY glMapVertexAttrib2dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); -GLAPI void APIENTRY glMapVertexAttrib2fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); -#endif -#endif /* GL_APPLE_vertex_program_evaluators */ - -#ifndef GL_APPLE_ycbcr_422 -#define GL_APPLE_ycbcr_422 1 -#define GL_YCBCR_422_APPLE 0x85B9 -#endif /* GL_APPLE_ycbcr_422 */ - -#ifndef GL_ATI_draw_buffers -#define GL_ATI_draw_buffers 1 -#define GL_MAX_DRAW_BUFFERS_ATI 0x8824 -#define GL_DRAW_BUFFER0_ATI 0x8825 -#define GL_DRAW_BUFFER1_ATI 0x8826 -#define GL_DRAW_BUFFER2_ATI 0x8827 -#define GL_DRAW_BUFFER3_ATI 0x8828 -#define GL_DRAW_BUFFER4_ATI 0x8829 -#define GL_DRAW_BUFFER5_ATI 0x882A -#define GL_DRAW_BUFFER6_ATI 0x882B -#define GL_DRAW_BUFFER7_ATI 0x882C -#define GL_DRAW_BUFFER8_ATI 0x882D -#define GL_DRAW_BUFFER9_ATI 0x882E -#define GL_DRAW_BUFFER10_ATI 0x882F -#define GL_DRAW_BUFFER11_ATI 0x8830 -#define GL_DRAW_BUFFER12_ATI 0x8831 -#define GL_DRAW_BUFFER13_ATI 0x8832 -#define GL_DRAW_BUFFER14_ATI 0x8833 -#define GL_DRAW_BUFFER15_ATI 0x8834 -typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawBuffersATI (GLsizei n, const GLenum *bufs); -#endif -#endif /* GL_ATI_draw_buffers */ - -#ifndef GL_ATI_element_array -#define GL_ATI_element_array 1 -#define GL_ELEMENT_ARRAY_ATI 0x8768 -#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769 -#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A -typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const void *pointer); -typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glElementPointerATI (GLenum type, const void *pointer); -GLAPI void APIENTRY glDrawElementArrayATI (GLenum mode, GLsizei count); -GLAPI void APIENTRY glDrawRangeElementArrayATI (GLenum mode, GLuint start, GLuint end, GLsizei count); -#endif -#endif /* GL_ATI_element_array */ - -#ifndef GL_ATI_envmap_bumpmap -#define GL_ATI_envmap_bumpmap 1 -#define GL_BUMP_ROT_MATRIX_ATI 0x8775 -#define GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776 -#define GL_BUMP_NUM_TEX_UNITS_ATI 0x8777 -#define GL_BUMP_TEX_UNITS_ATI 0x8778 -#define GL_DUDV_ATI 0x8779 -#define GL_DU8DV8_ATI 0x877A -#define GL_BUMP_ENVMAP_ATI 0x877B -#define GL_BUMP_TARGET_ATI 0x877C -typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param); -typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param); -typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); -typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexBumpParameterivATI (GLenum pname, const GLint *param); -GLAPI void APIENTRY glTexBumpParameterfvATI (GLenum pname, const GLfloat *param); -GLAPI void APIENTRY glGetTexBumpParameterivATI (GLenum pname, GLint *param); -GLAPI void APIENTRY glGetTexBumpParameterfvATI (GLenum pname, GLfloat *param); -#endif -#endif /* GL_ATI_envmap_bumpmap */ - -#ifndef GL_ATI_fragment_shader -#define GL_ATI_fragment_shader 1 -#define GL_FRAGMENT_SHADER_ATI 0x8920 -#define GL_REG_0_ATI 0x8921 -#define GL_REG_1_ATI 0x8922 -#define GL_REG_2_ATI 0x8923 -#define GL_REG_3_ATI 0x8924 -#define GL_REG_4_ATI 0x8925 -#define GL_REG_5_ATI 0x8926 -#define GL_REG_6_ATI 0x8927 -#define GL_REG_7_ATI 0x8928 -#define GL_REG_8_ATI 0x8929 -#define GL_REG_9_ATI 0x892A -#define GL_REG_10_ATI 0x892B -#define GL_REG_11_ATI 0x892C -#define GL_REG_12_ATI 0x892D -#define GL_REG_13_ATI 0x892E -#define GL_REG_14_ATI 0x892F -#define GL_REG_15_ATI 0x8930 -#define GL_REG_16_ATI 0x8931 -#define GL_REG_17_ATI 0x8932 -#define GL_REG_18_ATI 0x8933 -#define GL_REG_19_ATI 0x8934 -#define GL_REG_20_ATI 0x8935 -#define GL_REG_21_ATI 0x8936 -#define GL_REG_22_ATI 0x8937 -#define GL_REG_23_ATI 0x8938 -#define GL_REG_24_ATI 0x8939 -#define GL_REG_25_ATI 0x893A -#define GL_REG_26_ATI 0x893B -#define GL_REG_27_ATI 0x893C -#define GL_REG_28_ATI 0x893D -#define GL_REG_29_ATI 0x893E -#define GL_REG_30_ATI 0x893F -#define GL_REG_31_ATI 0x8940 -#define GL_CON_0_ATI 0x8941 -#define GL_CON_1_ATI 0x8942 -#define GL_CON_2_ATI 0x8943 -#define GL_CON_3_ATI 0x8944 -#define GL_CON_4_ATI 0x8945 -#define GL_CON_5_ATI 0x8946 -#define GL_CON_6_ATI 0x8947 -#define GL_CON_7_ATI 0x8948 -#define GL_CON_8_ATI 0x8949 -#define GL_CON_9_ATI 0x894A -#define GL_CON_10_ATI 0x894B -#define GL_CON_11_ATI 0x894C -#define GL_CON_12_ATI 0x894D -#define GL_CON_13_ATI 0x894E -#define GL_CON_14_ATI 0x894F -#define GL_CON_15_ATI 0x8950 -#define GL_CON_16_ATI 0x8951 -#define GL_CON_17_ATI 0x8952 -#define GL_CON_18_ATI 0x8953 -#define GL_CON_19_ATI 0x8954 -#define GL_CON_20_ATI 0x8955 -#define GL_CON_21_ATI 0x8956 -#define GL_CON_22_ATI 0x8957 -#define GL_CON_23_ATI 0x8958 -#define GL_CON_24_ATI 0x8959 -#define GL_CON_25_ATI 0x895A -#define GL_CON_26_ATI 0x895B -#define GL_CON_27_ATI 0x895C -#define GL_CON_28_ATI 0x895D -#define GL_CON_29_ATI 0x895E -#define GL_CON_30_ATI 0x895F -#define GL_CON_31_ATI 0x8960 -#define GL_MOV_ATI 0x8961 -#define GL_ADD_ATI 0x8963 -#define GL_MUL_ATI 0x8964 -#define GL_SUB_ATI 0x8965 -#define GL_DOT3_ATI 0x8966 -#define GL_DOT4_ATI 0x8967 -#define GL_MAD_ATI 0x8968 -#define GL_LERP_ATI 0x8969 -#define GL_CND_ATI 0x896A -#define GL_CND0_ATI 0x896B -#define GL_DOT2_ADD_ATI 0x896C -#define GL_SECONDARY_INTERPOLATOR_ATI 0x896D -#define GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E -#define GL_NUM_FRAGMENT_CONSTANTS_ATI 0x896F -#define GL_NUM_PASSES_ATI 0x8970 -#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI 0x8971 -#define GL_NUM_INSTRUCTIONS_TOTAL_ATI 0x8972 -#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973 -#define GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974 -#define GL_COLOR_ALPHA_PAIRING_ATI 0x8975 -#define GL_SWIZZLE_STR_ATI 0x8976 -#define GL_SWIZZLE_STQ_ATI 0x8977 -#define GL_SWIZZLE_STR_DR_ATI 0x8978 -#define GL_SWIZZLE_STQ_DQ_ATI 0x8979 -#define GL_SWIZZLE_STRQ_ATI 0x897A -#define GL_SWIZZLE_STRQ_DQ_ATI 0x897B -#define GL_RED_BIT_ATI 0x00000001 -#define GL_GREEN_BIT_ATI 0x00000002 -#define GL_BLUE_BIT_ATI 0x00000004 -#define GL_2X_BIT_ATI 0x00000001 -#define GL_4X_BIT_ATI 0x00000002 -#define GL_8X_BIT_ATI 0x00000004 -#define GL_HALF_BIT_ATI 0x00000008 -#define GL_QUARTER_BIT_ATI 0x00000010 -#define GL_EIGHTH_BIT_ATI 0x00000020 -#define GL_SATURATE_BIT_ATI 0x00000040 -#define GL_COMP_BIT_ATI 0x00000002 -#define GL_NEGATE_BIT_ATI 0x00000004 -#define GL_BIAS_BIT_ATI 0x00000008 -typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); -typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); -typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); -typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void); -typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void); -typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); -typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); -typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); -typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); -typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLuint APIENTRY glGenFragmentShadersATI (GLuint range); -GLAPI void APIENTRY glBindFragmentShaderATI (GLuint id); -GLAPI void APIENTRY glDeleteFragmentShaderATI (GLuint id); -GLAPI void APIENTRY glBeginFragmentShaderATI (void); -GLAPI void APIENTRY glEndFragmentShaderATI (void); -GLAPI void APIENTRY glPassTexCoordATI (GLuint dst, GLuint coord, GLenum swizzle); -GLAPI void APIENTRY glSampleMapATI (GLuint dst, GLuint interp, GLenum swizzle); -GLAPI void APIENTRY glColorFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -GLAPI void APIENTRY glColorFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -GLAPI void APIENTRY glColorFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); -GLAPI void APIENTRY glAlphaFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -GLAPI void APIENTRY glAlphaFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -GLAPI void APIENTRY glAlphaFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); -GLAPI void APIENTRY glSetFragmentShaderConstantATI (GLuint dst, const GLfloat *value); -#endif -#endif /* GL_ATI_fragment_shader */ - -#ifndef GL_ATI_map_object_buffer -#define GL_ATI_map_object_buffer 1 -typedef void *(APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void *APIENTRY glMapObjectBufferATI (GLuint buffer); -GLAPI void APIENTRY glUnmapObjectBufferATI (GLuint buffer); -#endif -#endif /* GL_ATI_map_object_buffer */ - -#ifndef GL_ATI_meminfo -#define GL_ATI_meminfo 1 -#define GL_VBO_FREE_MEMORY_ATI 0x87FB -#define GL_TEXTURE_FREE_MEMORY_ATI 0x87FC -#define GL_RENDERBUFFER_FREE_MEMORY_ATI 0x87FD -#endif /* GL_ATI_meminfo */ - -#ifndef GL_ATI_pixel_format_float -#define GL_ATI_pixel_format_float 1 -#define GL_RGBA_FLOAT_MODE_ATI 0x8820 -#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 -#endif /* GL_ATI_pixel_format_float */ - -#ifndef GL_ATI_pn_triangles -#define GL_ATI_pn_triangles 1 -#define GL_PN_TRIANGLES_ATI 0x87F0 -#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1 -#define GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2 -#define GL_PN_TRIANGLES_NORMAL_MODE_ATI 0x87F3 -#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4 -#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5 -#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6 -#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7 -#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8 -typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPNTrianglesiATI (GLenum pname, GLint param); -GLAPI void APIENTRY glPNTrianglesfATI (GLenum pname, GLfloat param); -#endif -#endif /* GL_ATI_pn_triangles */ - -#ifndef GL_ATI_separate_stencil -#define GL_ATI_separate_stencil 1 -#define GL_STENCIL_BACK_FUNC_ATI 0x8800 -#define GL_STENCIL_BACK_FAIL_ATI 0x8801 -#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802 -#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803 -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glStencilOpSeparateATI (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -GLAPI void APIENTRY glStencilFuncSeparateATI (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); -#endif -#endif /* GL_ATI_separate_stencil */ - -#ifndef GL_ATI_text_fragment_shader -#define GL_ATI_text_fragment_shader 1 -#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200 -#endif /* GL_ATI_text_fragment_shader */ - -#ifndef GL_ATI_texture_env_combine3 -#define GL_ATI_texture_env_combine3 1 -#define GL_MODULATE_ADD_ATI 0x8744 -#define GL_MODULATE_SIGNED_ADD_ATI 0x8745 -#define GL_MODULATE_SUBTRACT_ATI 0x8746 -#endif /* GL_ATI_texture_env_combine3 */ - -#ifndef GL_ATI_texture_float -#define GL_ATI_texture_float 1 -#define GL_RGBA_FLOAT32_ATI 0x8814 -#define GL_RGB_FLOAT32_ATI 0x8815 -#define GL_ALPHA_FLOAT32_ATI 0x8816 -#define GL_INTENSITY_FLOAT32_ATI 0x8817 -#define GL_LUMINANCE_FLOAT32_ATI 0x8818 -#define GL_LUMINANCE_ALPHA_FLOAT32_ATI 0x8819 -#define GL_RGBA_FLOAT16_ATI 0x881A -#define GL_RGB_FLOAT16_ATI 0x881B -#define GL_ALPHA_FLOAT16_ATI 0x881C -#define GL_INTENSITY_FLOAT16_ATI 0x881D -#define GL_LUMINANCE_FLOAT16_ATI 0x881E -#define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F -#endif /* GL_ATI_texture_float */ - -#ifndef GL_ATI_texture_mirror_once -#define GL_ATI_texture_mirror_once 1 -#define GL_MIRROR_CLAMP_ATI 0x8742 -#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 -#endif /* GL_ATI_texture_mirror_once */ - -#ifndef GL_ATI_vertex_array_object -#define GL_ATI_vertex_array_object 1 -#define GL_STATIC_ATI 0x8760 -#define GL_DYNAMIC_ATI 0x8761 -#define GL_PRESERVE_ATI 0x8762 -#define GL_DISCARD_ATI 0x8763 -#define GL_OBJECT_BUFFER_SIZE_ATI 0x8764 -#define GL_OBJECT_BUFFER_USAGE_ATI 0x8765 -#define GL_ARRAY_OBJECT_BUFFER_ATI 0x8766 -#define GL_ARRAY_OBJECT_OFFSET_ATI 0x8767 -typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const void *pointer, GLenum usage); -typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const void *pointer, GLenum preserve); -typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLuint APIENTRY glNewObjectBufferATI (GLsizei size, const void *pointer, GLenum usage); -GLAPI GLboolean APIENTRY glIsObjectBufferATI (GLuint buffer); -GLAPI void APIENTRY glUpdateObjectBufferATI (GLuint buffer, GLuint offset, GLsizei size, const void *pointer, GLenum preserve); -GLAPI void APIENTRY glGetObjectBufferfvATI (GLuint buffer, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetObjectBufferivATI (GLuint buffer, GLenum pname, GLint *params); -GLAPI void APIENTRY glFreeObjectBufferATI (GLuint buffer); -GLAPI void APIENTRY glArrayObjectATI (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -GLAPI void APIENTRY glGetArrayObjectfvATI (GLenum array, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetArrayObjectivATI (GLenum array, GLenum pname, GLint *params); -GLAPI void APIENTRY glVariantArrayObjectATI (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -GLAPI void APIENTRY glGetVariantArrayObjectfvATI (GLuint id, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetVariantArrayObjectivATI (GLuint id, GLenum pname, GLint *params); -#endif -#endif /* GL_ATI_vertex_array_object */ - -#ifndef GL_ATI_vertex_attrib_array_object -#define GL_ATI_vertex_attrib_array_object 1 -typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribArrayObjectATI (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); -GLAPI void APIENTRY glGetVertexAttribArrayObjectfvATI (GLuint index, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetVertexAttribArrayObjectivATI (GLuint index, GLenum pname, GLint *params); -#endif -#endif /* GL_ATI_vertex_attrib_array_object */ - -#ifndef GL_ATI_vertex_streams -#define GL_ATI_vertex_streams 1 -#define GL_MAX_VERTEX_STREAMS_ATI 0x876B -#define GL_VERTEX_STREAM0_ATI 0x876C -#define GL_VERTEX_STREAM1_ATI 0x876D -#define GL_VERTEX_STREAM2_ATI 0x876E -#define GL_VERTEX_STREAM3_ATI 0x876F -#define GL_VERTEX_STREAM4_ATI 0x8770 -#define GL_VERTEX_STREAM5_ATI 0x8771 -#define GL_VERTEX_STREAM6_ATI 0x8772 -#define GL_VERTEX_STREAM7_ATI 0x8773 -#define GL_VERTEX_SOURCE_ATI 0x8774 -typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); -typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexStream1sATI (GLenum stream, GLshort x); -GLAPI void APIENTRY glVertexStream1svATI (GLenum stream, const GLshort *coords); -GLAPI void APIENTRY glVertexStream1iATI (GLenum stream, GLint x); -GLAPI void APIENTRY glVertexStream1ivATI (GLenum stream, const GLint *coords); -GLAPI void APIENTRY glVertexStream1fATI (GLenum stream, GLfloat x); -GLAPI void APIENTRY glVertexStream1fvATI (GLenum stream, const GLfloat *coords); -GLAPI void APIENTRY glVertexStream1dATI (GLenum stream, GLdouble x); -GLAPI void APIENTRY glVertexStream1dvATI (GLenum stream, const GLdouble *coords); -GLAPI void APIENTRY glVertexStream2sATI (GLenum stream, GLshort x, GLshort y); -GLAPI void APIENTRY glVertexStream2svATI (GLenum stream, const GLshort *coords); -GLAPI void APIENTRY glVertexStream2iATI (GLenum stream, GLint x, GLint y); -GLAPI void APIENTRY glVertexStream2ivATI (GLenum stream, const GLint *coords); -GLAPI void APIENTRY glVertexStream2fATI (GLenum stream, GLfloat x, GLfloat y); -GLAPI void APIENTRY glVertexStream2fvATI (GLenum stream, const GLfloat *coords); -GLAPI void APIENTRY glVertexStream2dATI (GLenum stream, GLdouble x, GLdouble y); -GLAPI void APIENTRY glVertexStream2dvATI (GLenum stream, const GLdouble *coords); -GLAPI void APIENTRY glVertexStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z); -GLAPI void APIENTRY glVertexStream3svATI (GLenum stream, const GLshort *coords); -GLAPI void APIENTRY glVertexStream3iATI (GLenum stream, GLint x, GLint y, GLint z); -GLAPI void APIENTRY glVertexStream3ivATI (GLenum stream, const GLint *coords); -GLAPI void APIENTRY glVertexStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glVertexStream3fvATI (GLenum stream, const GLfloat *coords); -GLAPI void APIENTRY glVertexStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glVertexStream3dvATI (GLenum stream, const GLdouble *coords); -GLAPI void APIENTRY glVertexStream4sATI (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void APIENTRY glVertexStream4svATI (GLenum stream, const GLshort *coords); -GLAPI void APIENTRY glVertexStream4iATI (GLenum stream, GLint x, GLint y, GLint z, GLint w); -GLAPI void APIENTRY glVertexStream4ivATI (GLenum stream, const GLint *coords); -GLAPI void APIENTRY glVertexStream4fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glVertexStream4fvATI (GLenum stream, const GLfloat *coords); -GLAPI void APIENTRY glVertexStream4dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glVertexStream4dvATI (GLenum stream, const GLdouble *coords); -GLAPI void APIENTRY glNormalStream3bATI (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); -GLAPI void APIENTRY glNormalStream3bvATI (GLenum stream, const GLbyte *coords); -GLAPI void APIENTRY glNormalStream3sATI (GLenum stream, GLshort nx, GLshort ny, GLshort nz); -GLAPI void APIENTRY glNormalStream3svATI (GLenum stream, const GLshort *coords); -GLAPI void APIENTRY glNormalStream3iATI (GLenum stream, GLint nx, GLint ny, GLint nz); -GLAPI void APIENTRY glNormalStream3ivATI (GLenum stream, const GLint *coords); -GLAPI void APIENTRY glNormalStream3fATI (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); -GLAPI void APIENTRY glNormalStream3fvATI (GLenum stream, const GLfloat *coords); -GLAPI void APIENTRY glNormalStream3dATI (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); -GLAPI void APIENTRY glNormalStream3dvATI (GLenum stream, const GLdouble *coords); -GLAPI void APIENTRY glClientActiveVertexStreamATI (GLenum stream); -GLAPI void APIENTRY glVertexBlendEnviATI (GLenum pname, GLint param); -GLAPI void APIENTRY glVertexBlendEnvfATI (GLenum pname, GLfloat param); -#endif -#endif /* GL_ATI_vertex_streams */ - -#ifndef GL_EXT_422_pixels -#define GL_EXT_422_pixels 1 -#define GL_422_EXT 0x80CC -#define GL_422_REV_EXT 0x80CD -#define GL_422_AVERAGE_EXT 0x80CE -#define GL_422_REV_AVERAGE_EXT 0x80CF -#endif /* GL_EXT_422_pixels */ - -#ifndef GL_EXT_abgr -#define GL_EXT_abgr 1 -#define GL_ABGR_EXT 0x8000 -#endif /* GL_EXT_abgr */ - -#ifndef GL_EXT_bgra -#define GL_EXT_bgra 1 -#define GL_BGR_EXT 0x80E0 -#define GL_BGRA_EXT 0x80E1 -#endif /* GL_EXT_bgra */ - -#ifndef GL_EXT_bindable_uniform -#define GL_EXT_bindable_uniform 1 -#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2 -#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3 -#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4 -#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED -#define GL_UNIFORM_BUFFER_EXT 0x8DEE -#define GL_UNIFORM_BUFFER_BINDING_EXT 0x8DEF -typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer); -typedef GLint (APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location); -typedef GLintptr (APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glUniformBufferEXT (GLuint program, GLint location, GLuint buffer); -GLAPI GLint APIENTRY glGetUniformBufferSizeEXT (GLuint program, GLint location); -GLAPI GLintptr APIENTRY glGetUniformOffsetEXT (GLuint program, GLint location); -#endif -#endif /* GL_EXT_bindable_uniform */ - -#ifndef GL_EXT_blend_color -#define GL_EXT_blend_color 1 -#define GL_CONSTANT_COLOR_EXT 0x8001 -#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002 -#define GL_CONSTANT_ALPHA_EXT 0x8003 -#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004 -#define GL_BLEND_COLOR_EXT 0x8005 -typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendColorEXT (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -#endif -#endif /* GL_EXT_blend_color */ - -#ifndef GL_EXT_blend_equation_separate -#define GL_EXT_blend_equation_separate 1 -#define GL_BLEND_EQUATION_RGB_EXT 0x8009 -#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendEquationSeparateEXT (GLenum modeRGB, GLenum modeAlpha); -#endif -#endif /* GL_EXT_blend_equation_separate */ - -#ifndef GL_EXT_blend_func_separate -#define GL_EXT_blend_func_separate 1 -#define GL_BLEND_DST_RGB_EXT 0x80C8 -#define GL_BLEND_SRC_RGB_EXT 0x80C9 -#define GL_BLEND_DST_ALPHA_EXT 0x80CA -#define GL_BLEND_SRC_ALPHA_EXT 0x80CB -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendFuncSeparateEXT (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -#endif -#endif /* GL_EXT_blend_func_separate */ - -#ifndef GL_EXT_blend_logic_op -#define GL_EXT_blend_logic_op 1 -#endif /* GL_EXT_blend_logic_op */ - -#ifndef GL_EXT_blend_minmax -#define GL_EXT_blend_minmax 1 -#define GL_MIN_EXT 0x8007 -#define GL_MAX_EXT 0x8008 -#define GL_FUNC_ADD_EXT 0x8006 -#define GL_BLEND_EQUATION_EXT 0x8009 -typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendEquationEXT (GLenum mode); -#endif -#endif /* GL_EXT_blend_minmax */ - -#ifndef GL_EXT_blend_subtract -#define GL_EXT_blend_subtract 1 -#define GL_FUNC_SUBTRACT_EXT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B -#endif /* GL_EXT_blend_subtract */ - -#ifndef GL_EXT_clip_volume_hint -#define GL_EXT_clip_volume_hint 1 -#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0 -#endif /* GL_EXT_clip_volume_hint */ - -#ifndef GL_EXT_cmyka -#define GL_EXT_cmyka 1 -#define GL_CMYK_EXT 0x800C -#define GL_CMYKA_EXT 0x800D -#define GL_PACK_CMYK_HINT_EXT 0x800E -#define GL_UNPACK_CMYK_HINT_EXT 0x800F -#endif /* GL_EXT_cmyka */ - -#ifndef GL_EXT_color_subtable -#define GL_EXT_color_subtable 1 -typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorSubTableEXT (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glCopyColorSubTableEXT (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -#endif -#endif /* GL_EXT_color_subtable */ - -#ifndef GL_EXT_compiled_vertex_array -#define GL_EXT_compiled_vertex_array 1 -#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8 -#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9 -typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glLockArraysEXT (GLint first, GLsizei count); -GLAPI void APIENTRY glUnlockArraysEXT (void); -#endif -#endif /* GL_EXT_compiled_vertex_array */ - -#ifndef GL_EXT_convolution -#define GL_EXT_convolution 1 -#define GL_CONVOLUTION_1D_EXT 0x8010 -#define GL_CONVOLUTION_2D_EXT 0x8011 -#define GL_SEPARABLE_2D_EXT 0x8012 -#define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013 -#define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014 -#define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015 -#define GL_REDUCE_EXT 0x8016 -#define GL_CONVOLUTION_FORMAT_EXT 0x8017 -#define GL_CONVOLUTION_WIDTH_EXT 0x8018 -#define GL_CONVOLUTION_HEIGHT_EXT 0x8019 -#define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A -#define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B -#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C -#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D -#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E -#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F -#define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020 -#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021 -#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022 -#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023 -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image); -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void *image); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span); -typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image); -GLAPI void APIENTRY glConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image); -GLAPI void APIENTRY glConvolutionParameterfEXT (GLenum target, GLenum pname, GLfloat params); -GLAPI void APIENTRY glConvolutionParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glConvolutionParameteriEXT (GLenum target, GLenum pname, GLint params); -GLAPI void APIENTRY glConvolutionParameterivEXT (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glCopyConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glCopyConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum target, GLenum format, GLenum type, void *image); -GLAPI void APIENTRY glGetConvolutionParameterfvEXT (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetConvolutionParameterivEXT (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetSeparableFilterEXT (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span); -GLAPI void APIENTRY glSeparableFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column); -#endif -#endif /* GL_EXT_convolution */ - -#ifndef GL_EXT_coordinate_frame -#define GL_EXT_coordinate_frame 1 -#define GL_TANGENT_ARRAY_EXT 0x8439 -#define GL_BINORMAL_ARRAY_EXT 0x843A -#define GL_CURRENT_TANGENT_EXT 0x843B -#define GL_CURRENT_BINORMAL_EXT 0x843C -#define GL_TANGENT_ARRAY_TYPE_EXT 0x843E -#define GL_TANGENT_ARRAY_STRIDE_EXT 0x843F -#define GL_BINORMAL_ARRAY_TYPE_EXT 0x8440 -#define GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441 -#define GL_TANGENT_ARRAY_POINTER_EXT 0x8442 -#define GL_BINORMAL_ARRAY_POINTER_EXT 0x8443 -#define GL_MAP1_TANGENT_EXT 0x8444 -#define GL_MAP2_TANGENT_EXT 0x8445 -#define GL_MAP1_BINORMAL_EXT 0x8446 -#define GL_MAP2_BINORMAL_EXT 0x8447 -typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz); -typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz); -typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz); -typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz); -typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz); -typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz); -typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz); -typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz); -typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz); -typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz); -typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTangent3bEXT (GLbyte tx, GLbyte ty, GLbyte tz); -GLAPI void APIENTRY glTangent3bvEXT (const GLbyte *v); -GLAPI void APIENTRY glTangent3dEXT (GLdouble tx, GLdouble ty, GLdouble tz); -GLAPI void APIENTRY glTangent3dvEXT (const GLdouble *v); -GLAPI void APIENTRY glTangent3fEXT (GLfloat tx, GLfloat ty, GLfloat tz); -GLAPI void APIENTRY glTangent3fvEXT (const GLfloat *v); -GLAPI void APIENTRY glTangent3iEXT (GLint tx, GLint ty, GLint tz); -GLAPI void APIENTRY glTangent3ivEXT (const GLint *v); -GLAPI void APIENTRY glTangent3sEXT (GLshort tx, GLshort ty, GLshort tz); -GLAPI void APIENTRY glTangent3svEXT (const GLshort *v); -GLAPI void APIENTRY glBinormal3bEXT (GLbyte bx, GLbyte by, GLbyte bz); -GLAPI void APIENTRY glBinormal3bvEXT (const GLbyte *v); -GLAPI void APIENTRY glBinormal3dEXT (GLdouble bx, GLdouble by, GLdouble bz); -GLAPI void APIENTRY glBinormal3dvEXT (const GLdouble *v); -GLAPI void APIENTRY glBinormal3fEXT (GLfloat bx, GLfloat by, GLfloat bz); -GLAPI void APIENTRY glBinormal3fvEXT (const GLfloat *v); -GLAPI void APIENTRY glBinormal3iEXT (GLint bx, GLint by, GLint bz); -GLAPI void APIENTRY glBinormal3ivEXT (const GLint *v); -GLAPI void APIENTRY glBinormal3sEXT (GLshort bx, GLshort by, GLshort bz); -GLAPI void APIENTRY glBinormal3svEXT (const GLshort *v); -GLAPI void APIENTRY glTangentPointerEXT (GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glBinormalPointerEXT (GLenum type, GLsizei stride, const void *pointer); -#endif -#endif /* GL_EXT_coordinate_frame */ - -#ifndef GL_EXT_copy_texture -#define GL_EXT_copy_texture 1 -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCopyTexImage1DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI void APIENTRY glCopyTexImage2DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI void APIENTRY glCopyTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glCopyTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glCopyTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -#endif -#endif /* GL_EXT_copy_texture */ - -#ifndef GL_EXT_cull_vertex -#define GL_EXT_cull_vertex 1 -#define GL_CULL_VERTEX_EXT 0x81AA -#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB -#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC -typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCullParameterdvEXT (GLenum pname, GLdouble *params); -GLAPI void APIENTRY glCullParameterfvEXT (GLenum pname, GLfloat *params); -#endif -#endif /* GL_EXT_cull_vertex */ - -#ifndef GL_EXT_debug_label -#define GL_EXT_debug_label 1 -#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F -#define GL_PROGRAM_OBJECT_EXT 0x8B40 -#define GL_SHADER_OBJECT_EXT 0x8B48 -#define GL_BUFFER_OBJECT_EXT 0x9151 -#define GL_QUERY_OBJECT_EXT 0x9153 -#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154 -typedef void (APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label); -typedef void (APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label); -GLAPI void APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label); -#endif -#endif /* GL_EXT_debug_label */ - -#ifndef GL_EXT_debug_marker -#define GL_EXT_debug_marker 1 -typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker); -typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker); -typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker); -GLAPI void APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker); -GLAPI void APIENTRY glPopGroupMarkerEXT (void); -#endif -#endif /* GL_EXT_debug_marker */ - -#ifndef GL_EXT_depth_bounds_test -#define GL_EXT_depth_bounds_test 1 -#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 -#define GL_DEPTH_BOUNDS_EXT 0x8891 -typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDepthBoundsEXT (GLclampd zmin, GLclampd zmax); -#endif -#endif /* GL_EXT_depth_bounds_test */ - -#ifndef GL_EXT_direct_state_access -#define GL_EXT_direct_state_access 1 -#define GL_PROGRAM_MATRIX_EXT 0x8E2D -#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E -#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F -typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m); -typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m); -typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); -typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture); -typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); -typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); -typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); -typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); -typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data); -typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data); -typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, void **data); -typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); -typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data); -typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, void *img); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, void *img); -typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); -typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); -typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); -typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); -typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); -typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void **params); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); -typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params); -typedef void (APIENTRYP PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); -typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); -typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat *params); -typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble *params); -typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void **params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void *string); -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target); -typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target); -typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); -typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs); -typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); -typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); -typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); -typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); -typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); -typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint *param); -typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, void **param); -typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param); -typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void **param); -typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); -typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); -typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC) (GLuint vaobj, GLuint index, GLuint divisor); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMatrixLoadfEXT (GLenum mode, const GLfloat *m); -GLAPI void APIENTRY glMatrixLoaddEXT (GLenum mode, const GLdouble *m); -GLAPI void APIENTRY glMatrixMultfEXT (GLenum mode, const GLfloat *m); -GLAPI void APIENTRY glMatrixMultdEXT (GLenum mode, const GLdouble *m); -GLAPI void APIENTRY glMatrixLoadIdentityEXT (GLenum mode); -GLAPI void APIENTRY glMatrixRotatefEXT (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glMatrixRotatedEXT (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glMatrixScalefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glMatrixScaledEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glMatrixTranslatefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glMatrixTranslatedEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glMatrixFrustumEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI void APIENTRY glMatrixOrthoEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI void APIENTRY glMatrixPopEXT (GLenum mode); -GLAPI void APIENTRY glMatrixPushEXT (GLenum mode); -GLAPI void APIENTRY glClientAttribDefaultEXT (GLbitfield mask); -GLAPI void APIENTRY glPushClientAttribDefaultEXT (GLbitfield mask); -GLAPI void APIENTRY glTextureParameterfEXT (GLuint texture, GLenum target, GLenum pname, GLfloat param); -GLAPI void APIENTRY glTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glTextureParameteriEXT (GLuint texture, GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI void APIENTRY glCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI void APIENTRY glCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetTextureImageEXT (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); -GLAPI void APIENTRY glGetTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetTextureLevelParameterfvEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetTextureLevelParameterivEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); -GLAPI void APIENTRY glTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture); -GLAPI void APIENTRY glMultiTexCoordPointerEXT (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glMultiTexEnvfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param); -GLAPI void APIENTRY glMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glMultiTexEnviEXT (GLenum texunit, GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glMultiTexGendEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); -GLAPI void APIENTRY glMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); -GLAPI void APIENTRY glMultiTexGenfEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); -GLAPI void APIENTRY glMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glMultiTexGeniEXT (GLenum texunit, GLenum coord, GLenum pname, GLint param); -GLAPI void APIENTRY glMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, const GLint *params); -GLAPI void APIENTRY glGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); -GLAPI void APIENTRY glGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params); -GLAPI void APIENTRY glMultiTexParameteriEXT (GLenum texunit, GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glMultiTexParameterfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param); -GLAPI void APIENTRY glMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI void APIENTRY glCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); -GLAPI void APIENTRY glGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); -GLAPI void APIENTRY glMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glEnableClientStateIndexedEXT (GLenum array, GLuint index); -GLAPI void APIENTRY glDisableClientStateIndexedEXT (GLenum array, GLuint index); -GLAPI void APIENTRY glGetFloatIndexedvEXT (GLenum target, GLuint index, GLfloat *data); -GLAPI void APIENTRY glGetDoubleIndexedvEXT (GLenum target, GLuint index, GLdouble *data); -GLAPI void APIENTRY glGetPointerIndexedvEXT (GLenum target, GLuint index, void **data); -GLAPI void APIENTRY glEnableIndexedEXT (GLenum target, GLuint index); -GLAPI void APIENTRY glDisableIndexedEXT (GLenum target, GLuint index); -GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum target, GLuint index); -GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum target, GLuint index, GLint *data); -GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum target, GLuint index, GLboolean *data); -GLAPI void APIENTRY glCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, void *img); -GLAPI void APIENTRY glCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); -GLAPI void APIENTRY glGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, void *img); -GLAPI void APIENTRY glMatrixLoadTransposefEXT (GLenum mode, const GLfloat *m); -GLAPI void APIENTRY glMatrixLoadTransposedEXT (GLenum mode, const GLdouble *m); -GLAPI void APIENTRY glMatrixMultTransposefEXT (GLenum mode, const GLfloat *m); -GLAPI void APIENTRY glMatrixMultTransposedEXT (GLenum mode, const GLdouble *m); -GLAPI void APIENTRY glNamedBufferDataEXT (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); -GLAPI void APIENTRY glNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); -GLAPI void *APIENTRY glMapNamedBufferEXT (GLuint buffer, GLenum access); -GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT (GLuint buffer); -GLAPI void APIENTRY glGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, void **params); -GLAPI void APIENTRY glGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); -GLAPI void APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0); -GLAPI void APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1); -GLAPI void APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI void APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI void APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0); -GLAPI void APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1); -GLAPI void APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -GLAPI void APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI void APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glTextureBufferEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); -GLAPI void APIENTRY glMultiTexBufferEXT (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); -GLAPI void APIENTRY glTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, const GLuint *params); -GLAPI void APIENTRY glGetTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, GLuint *params); -GLAPI void APIENTRY glMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, const GLuint *params); -GLAPI void APIENTRY glGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params); -GLAPI void APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0); -GLAPI void APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1); -GLAPI void APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI void APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI void APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); -GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT (GLuint program, GLenum target, GLuint index, const GLint *params); -GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); -GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT (GLuint program, GLenum target, GLuint index, const GLuint *params); -GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); -GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params); -GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params); -GLAPI void APIENTRY glEnableClientStateiEXT (GLenum array, GLuint index); -GLAPI void APIENTRY glDisableClientStateiEXT (GLenum array, GLuint index); -GLAPI void APIENTRY glGetFloati_vEXT (GLenum pname, GLuint index, GLfloat *params); -GLAPI void APIENTRY glGetDoublei_vEXT (GLenum pname, GLuint index, GLdouble *params); -GLAPI void APIENTRY glGetPointeri_vEXT (GLenum pname, GLuint index, void **params); -GLAPI void APIENTRY glNamedProgramStringEXT (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string); -GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT (GLuint program, GLenum target, GLuint index, const GLdouble *params); -GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT (GLuint program, GLenum target, GLuint index, const GLfloat *params); -GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params); -GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params); -GLAPI void APIENTRY glGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, void *string); -GLAPI void APIENTRY glNamedRenderbufferStorageEXT (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params); -GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target); -GLAPI void APIENTRY glNamedFramebufferTexture1DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI void APIENTRY glNamedFramebufferTexture2DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI void APIENTRY glNamedFramebufferTexture3DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); -GLAPI void APIENTRY glGenerateTextureMipmapEXT (GLuint texture, GLenum target); -GLAPI void APIENTRY glGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target); -GLAPI void APIENTRY glFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode); -GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs); -GLAPI void APIENTRY glFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode); -GLAPI void APIENTRY glGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params); -GLAPI void APIENTRY glNamedCopyBufferSubDataEXT (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI void APIENTRY glNamedFramebufferTextureEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); -GLAPI void APIENTRY glTextureRenderbufferEXT (GLuint texture, GLenum target, GLuint renderbuffer); -GLAPI void APIENTRY glMultiTexRenderbufferEXT (GLenum texunit, GLenum target, GLuint renderbuffer); -GLAPI void APIENTRY glVertexArrayVertexOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayEdgeFlagOffsetEXT (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayIndexOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayNormalOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayMultiTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayFogCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArraySecondaryColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayVertexAttribOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glVertexArrayVertexAttribIOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glEnableVertexArrayEXT (GLuint vaobj, GLenum array); -GLAPI void APIENTRY glDisableVertexArrayEXT (GLuint vaobj, GLenum array); -GLAPI void APIENTRY glEnableVertexArrayAttribEXT (GLuint vaobj, GLuint index); -GLAPI void APIENTRY glDisableVertexArrayAttribEXT (GLuint vaobj, GLuint index); -GLAPI void APIENTRY glGetVertexArrayIntegervEXT (GLuint vaobj, GLenum pname, GLint *param); -GLAPI void APIENTRY glGetVertexArrayPointervEXT (GLuint vaobj, GLenum pname, void **param); -GLAPI void APIENTRY glGetVertexArrayIntegeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, GLint *param); -GLAPI void APIENTRY glGetVertexArrayPointeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, void **param); -GLAPI void *APIENTRY glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); -GLAPI void APIENTRY glFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length); -GLAPI void APIENTRY glNamedBufferStorageEXT (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); -GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param); -GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params); -GLAPI void APIENTRY glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x); -GLAPI void APIENTRY glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y); -GLAPI void APIENTRY glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex); -GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor); -GLAPI void APIENTRY glVertexArrayVertexAttribLOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI void APIENTRY glTexturePageCommitmentEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident); -GLAPI void APIENTRY glVertexArrayVertexAttribDivisorEXT (GLuint vaobj, GLuint index, GLuint divisor); -#endif -#endif /* GL_EXT_direct_state_access */ - -#ifndef GL_EXT_draw_buffers2 -#define GL_EXT_draw_buffers2 1 -typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorMaskIndexedEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -#endif -#endif /* GL_EXT_draw_buffers2 */ - -#ifndef GL_EXT_draw_instanced -#define GL_EXT_draw_instanced 1 -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount); -GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); -#endif -#endif /* GL_EXT_draw_instanced */ - -#ifndef GL_EXT_draw_range_elements -#define GL_EXT_draw_range_elements 1 -#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 -#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); -#endif -#endif /* GL_EXT_draw_range_elements */ - -#ifndef GL_EXT_fog_coord -#define GL_EXT_fog_coord 1 -#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450 -#define GL_FOG_COORDINATE_EXT 0x8451 -#define GL_FRAGMENT_DEPTH_EXT 0x8452 -#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453 -#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454 -#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455 -#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456 -#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457 -typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord); -typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); -typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord); -typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); -typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const void *pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFogCoordfEXT (GLfloat coord); -GLAPI void APIENTRY glFogCoordfvEXT (const GLfloat *coord); -GLAPI void APIENTRY glFogCoorddEXT (GLdouble coord); -GLAPI void APIENTRY glFogCoorddvEXT (const GLdouble *coord); -GLAPI void APIENTRY glFogCoordPointerEXT (GLenum type, GLsizei stride, const void *pointer); -#endif -#endif /* GL_EXT_fog_coord */ - -#ifndef GL_EXT_framebuffer_blit -#define GL_EXT_framebuffer_blit 1 -#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 -#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 -#define GL_DRAW_FRAMEBUFFER_BINDING_EXT 0x8CA6 -#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -#endif -#endif /* GL_EXT_framebuffer_blit */ - -#ifndef GL_EXT_framebuffer_multisample -#define GL_EXT_framebuffer_multisample 1 -#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 -#define GL_MAX_SAMPLES_EXT 0x8D57 -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -#endif -#endif /* GL_EXT_framebuffer_multisample */ - -#ifndef GL_EXT_framebuffer_multisample_blit_scaled -#define GL_EXT_framebuffer_multisample_blit_scaled 1 -#define GL_SCALED_RESOLVE_FASTEST_EXT 0x90BA -#define GL_SCALED_RESOLVE_NICEST_EXT 0x90BB -#endif /* GL_EXT_framebuffer_multisample_blit_scaled */ - -#ifndef GL_EXT_framebuffer_object -#define GL_EXT_framebuffer_object 1 -#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 -#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 -#define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 -#define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 -#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 -#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 -#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 -#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 -#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA -#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB -#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC -#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD -#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF -#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 -#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 -#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 -#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 -#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 -#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 -#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 -#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 -#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 -#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 -#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA -#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB -#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC -#define GL_COLOR_ATTACHMENT13_EXT 0x8CED -#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE -#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF -#define GL_DEPTH_ATTACHMENT_EXT 0x8D00 -#define GL_STENCIL_ATTACHMENT_EXT 0x8D20 -#define GL_FRAMEBUFFER_EXT 0x8D40 -#define GL_RENDERBUFFER_EXT 0x8D41 -#define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 -#define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 -#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 -#define GL_STENCIL_INDEX1_EXT 0x8D46 -#define GL_STENCIL_INDEX4_EXT 0x8D47 -#define GL_STENCIL_INDEX8_EXT 0x8D48 -#define GL_STENCIL_INDEX16_EXT 0x8D49 -#define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50 -#define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51 -#define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52 -#define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53 -#define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54 -#define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55 -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer); -typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer); -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer); -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers); -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers); -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLboolean APIENTRY glIsRenderbufferEXT (GLuint renderbuffer); -GLAPI void APIENTRY glBindRenderbufferEXT (GLenum target, GLuint renderbuffer); -GLAPI void APIENTRY glDeleteRenderbuffersEXT (GLsizei n, const GLuint *renderbuffers); -GLAPI void APIENTRY glGenRenderbuffersEXT (GLsizei n, GLuint *renderbuffers); -GLAPI void APIENTRY glRenderbufferStorageEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetRenderbufferParameterivEXT (GLenum target, GLenum pname, GLint *params); -GLAPI GLboolean APIENTRY glIsFramebufferEXT (GLuint framebuffer); -GLAPI void APIENTRY glBindFramebufferEXT (GLenum target, GLuint framebuffer); -GLAPI void APIENTRY glDeleteFramebuffersEXT (GLsizei n, const GLuint *framebuffers); -GLAPI void APIENTRY glGenFramebuffersEXT (GLsizei n, GLuint *framebuffers); -GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT (GLenum target); -GLAPI void APIENTRY glFramebufferTexture1DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI void APIENTRY glFramebufferTexture2DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI void APIENTRY glFramebufferTexture3DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI void APIENTRY glFramebufferRenderbufferEXT (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT (GLenum target, GLenum attachment, GLenum pname, GLint *params); -GLAPI void APIENTRY glGenerateMipmapEXT (GLenum target); -#endif -#endif /* GL_EXT_framebuffer_object */ - -#ifndef GL_EXT_framebuffer_sRGB -#define GL_EXT_framebuffer_sRGB 1 -#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 -#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA -#endif /* GL_EXT_framebuffer_sRGB */ - -#ifndef GL_EXT_geometry_shader4 -#define GL_EXT_geometry_shader4 1 -#define GL_GEOMETRY_SHADER_EXT 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA -#define GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB -#define GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29 -#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD -#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE -#define GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1 -#define GL_LINES_ADJACENCY_EXT 0x000A -#define GL_LINE_STRIP_ADJACENCY_EXT 0x000B -#define GL_TRIANGLES_ADJACENCY_EXT 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0x000D -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 -#define GL_PROGRAM_POINT_SIZE_EXT 0x8642 -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value); -#endif -#endif /* GL_EXT_geometry_shader4 */ - -#ifndef GL_EXT_gpu_program_parameters -#define GL_EXT_gpu_program_parameters 1 -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params); -GLAPI void APIENTRY glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params); -#endif -#endif /* GL_EXT_gpu_program_parameters */ - -#ifndef GL_EXT_gpu_shader4 -#define GL_EXT_gpu_shader4 1 -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD -#define GL_SAMPLER_1D_ARRAY_EXT 0x8DC0 -#define GL_SAMPLER_2D_ARRAY_EXT 0x8DC1 -#define GL_SAMPLER_BUFFER_EXT 0x8DC2 -#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3 -#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4 -#define GL_SAMPLER_CUBE_SHADOW_EXT 0x8DC5 -#define GL_UNSIGNED_INT_VEC2_EXT 0x8DC6 -#define GL_UNSIGNED_INT_VEC3_EXT 0x8DC7 -#define GL_UNSIGNED_INT_VEC4_EXT 0x8DC8 -#define GL_INT_SAMPLER_1D_EXT 0x8DC9 -#define GL_INT_SAMPLER_2D_EXT 0x8DCA -#define GL_INT_SAMPLER_3D_EXT 0x8DCB -#define GL_INT_SAMPLER_CUBE_EXT 0x8DCC -#define GL_INT_SAMPLER_2D_RECT_EXT 0x8DCD -#define GL_INT_SAMPLER_1D_ARRAY_EXT 0x8DCE -#define GL_INT_SAMPLER_2D_ARRAY_EXT 0x8DCF -#define GL_INT_SAMPLER_BUFFER_EXT 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1 -#define GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2 -#define GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3 -#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4 -#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5 -#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6 -#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8 -#define GL_MIN_PROGRAM_TEXEL_OFFSET_EXT 0x8904 -#define GL_MAX_PROGRAM_TEXEL_OFFSET_EXT 0x8905 -typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params); -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetUniformuivEXT (GLuint program, GLint location, GLuint *params); -GLAPI void APIENTRY glBindFragDataLocationEXT (GLuint program, GLuint color, const GLchar *name); -GLAPI GLint APIENTRY glGetFragDataLocationEXT (GLuint program, const GLchar *name); -GLAPI void APIENTRY glUniform1uiEXT (GLint location, GLuint v0); -GLAPI void APIENTRY glUniform2uiEXT (GLint location, GLuint v0, GLuint v1); -GLAPI void APIENTRY glUniform3uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI void APIENTRY glUniform4uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI void APIENTRY glUniform1uivEXT (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform2uivEXT (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform3uivEXT (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform4uivEXT (GLint location, GLsizei count, const GLuint *value); -#endif -#endif /* GL_EXT_gpu_shader4 */ - -#ifndef GL_EXT_histogram -#define GL_EXT_histogram 1 -#define GL_HISTOGRAM_EXT 0x8024 -#define GL_PROXY_HISTOGRAM_EXT 0x8025 -#define GL_HISTOGRAM_WIDTH_EXT 0x8026 -#define GL_HISTOGRAM_FORMAT_EXT 0x8027 -#define GL_HISTOGRAM_RED_SIZE_EXT 0x8028 -#define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029 -#define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A -#define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B -#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C -#define GL_HISTOGRAM_SINK_EXT 0x802D -#define GL_MINMAX_EXT 0x802E -#define GL_MINMAX_FORMAT_EXT 0x802F -#define GL_MINMAX_SINK_EXT 0x8030 -#define GL_TABLE_TOO_LARGE_EXT 0x8031 -typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); -typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); -typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetHistogramEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -GLAPI void APIENTRY glGetHistogramParameterfvEXT (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetHistogramParameterivEXT (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetMinmaxEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -GLAPI void APIENTRY glGetMinmaxParameterfvEXT (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetMinmaxParameterivEXT (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glHistogramEXT (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -GLAPI void APIENTRY glMinmaxEXT (GLenum target, GLenum internalformat, GLboolean sink); -GLAPI void APIENTRY glResetHistogramEXT (GLenum target); -GLAPI void APIENTRY glResetMinmaxEXT (GLenum target); -#endif -#endif /* GL_EXT_histogram */ - -#ifndef GL_EXT_index_array_formats -#define GL_EXT_index_array_formats 1 -#define GL_IUI_V2F_EXT 0x81AD -#define GL_IUI_V3F_EXT 0x81AE -#define GL_IUI_N3F_V2F_EXT 0x81AF -#define GL_IUI_N3F_V3F_EXT 0x81B0 -#define GL_T2F_IUI_V2F_EXT 0x81B1 -#define GL_T2F_IUI_V3F_EXT 0x81B2 -#define GL_T2F_IUI_N3F_V2F_EXT 0x81B3 -#define GL_T2F_IUI_N3F_V3F_EXT 0x81B4 -#endif /* GL_EXT_index_array_formats */ - -#ifndef GL_EXT_index_func -#define GL_EXT_index_func 1 -#define GL_INDEX_TEST_EXT 0x81B5 -#define GL_INDEX_TEST_FUNC_EXT 0x81B6 -#define GL_INDEX_TEST_REF_EXT 0x81B7 -typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glIndexFuncEXT (GLenum func, GLclampf ref); -#endif -#endif /* GL_EXT_index_func */ - -#ifndef GL_EXT_index_material -#define GL_EXT_index_material 1 -#define GL_INDEX_MATERIAL_EXT 0x81B8 -#define GL_INDEX_MATERIAL_PARAMETER_EXT 0x81B9 -#define GL_INDEX_MATERIAL_FACE_EXT 0x81BA -typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glIndexMaterialEXT (GLenum face, GLenum mode); -#endif -#endif /* GL_EXT_index_material */ - -#ifndef GL_EXT_index_texture -#define GL_EXT_index_texture 1 -#endif /* GL_EXT_index_texture */ - -#ifndef GL_EXT_light_texture -#define GL_EXT_light_texture 1 -#define GL_FRAGMENT_MATERIAL_EXT 0x8349 -#define GL_FRAGMENT_NORMAL_EXT 0x834A -#define GL_FRAGMENT_COLOR_EXT 0x834C -#define GL_ATTENUATION_EXT 0x834D -#define GL_SHADOW_ATTENUATION_EXT 0x834E -#define GL_TEXTURE_APPLICATION_MODE_EXT 0x834F -#define GL_TEXTURE_LIGHT_EXT 0x8350 -#define GL_TEXTURE_MATERIAL_FACE_EXT 0x8351 -#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352 -typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); -typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glApplyTextureEXT (GLenum mode); -GLAPI void APIENTRY glTextureLightEXT (GLenum pname); -GLAPI void APIENTRY glTextureMaterialEXT (GLenum face, GLenum mode); -#endif -#endif /* GL_EXT_light_texture */ - -#ifndef GL_EXT_misc_attribute -#define GL_EXT_misc_attribute 1 -#endif /* GL_EXT_misc_attribute */ - -#ifndef GL_EXT_multi_draw_arrays -#define GL_EXT_multi_draw_arrays 1 -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); -GLAPI void APIENTRY glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount); -#endif -#endif /* GL_EXT_multi_draw_arrays */ - -#ifndef GL_EXT_multisample -#define GL_EXT_multisample 1 -#define GL_MULTISAMPLE_EXT 0x809D -#define GL_SAMPLE_ALPHA_TO_MASK_EXT 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F -#define GL_SAMPLE_MASK_EXT 0x80A0 -#define GL_1PASS_EXT 0x80A1 -#define GL_2PASS_0_EXT 0x80A2 -#define GL_2PASS_1_EXT 0x80A3 -#define GL_4PASS_0_EXT 0x80A4 -#define GL_4PASS_1_EXT 0x80A5 -#define GL_4PASS_2_EXT 0x80A6 -#define GL_4PASS_3_EXT 0x80A7 -#define GL_SAMPLE_BUFFERS_EXT 0x80A8 -#define GL_SAMPLES_EXT 0x80A9 -#define GL_SAMPLE_MASK_VALUE_EXT 0x80AA -#define GL_SAMPLE_MASK_INVERT_EXT 0x80AB -#define GL_SAMPLE_PATTERN_EXT 0x80AC -#define GL_MULTISAMPLE_BIT_EXT 0x20000000 -typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); -typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSampleMaskEXT (GLclampf value, GLboolean invert); -GLAPI void APIENTRY glSamplePatternEXT (GLenum pattern); -#endif -#endif /* GL_EXT_multisample */ - -#ifndef GL_EXT_packed_depth_stencil -#define GL_EXT_packed_depth_stencil 1 -#define GL_DEPTH_STENCIL_EXT 0x84F9 -#define GL_UNSIGNED_INT_24_8_EXT 0x84FA -#define GL_DEPTH24_STENCIL8_EXT 0x88F0 -#define GL_TEXTURE_STENCIL_SIZE_EXT 0x88F1 -#endif /* GL_EXT_packed_depth_stencil */ - -#ifndef GL_EXT_packed_float -#define GL_EXT_packed_float 1 -#define GL_R11F_G11F_B10F_EXT 0x8C3A -#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B -#define GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C -#endif /* GL_EXT_packed_float */ - -#ifndef GL_EXT_packed_pixels -#define GL_EXT_packed_pixels 1 -#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032 -#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033 -#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034 -#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035 -#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036 -#endif /* GL_EXT_packed_pixels */ - -#ifndef GL_EXT_paletted_texture -#define GL_EXT_paletted_texture 1 -#define GL_COLOR_INDEX1_EXT 0x80E2 -#define GL_COLOR_INDEX2_EXT 0x80E3 -#define GL_COLOR_INDEX4_EXT 0x80E4 -#define GL_COLOR_INDEX8_EXT 0x80E5 -#define GL_COLOR_INDEX12_EXT 0x80E6 -#define GL_COLOR_INDEX16_EXT 0x80E7 -#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED -typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void *table); -typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, void *data); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorTableEXT (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void *table); -GLAPI void APIENTRY glGetColorTableEXT (GLenum target, GLenum format, GLenum type, void *data); -GLAPI void APIENTRY glGetColorTableParameterivEXT (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetColorTableParameterfvEXT (GLenum target, GLenum pname, GLfloat *params); -#endif -#endif /* GL_EXT_paletted_texture */ - -#ifndef GL_EXT_pixel_buffer_object -#define GL_EXT_pixel_buffer_object 1 -#define GL_PIXEL_PACK_BUFFER_EXT 0x88EB -#define GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF -#endif /* GL_EXT_pixel_buffer_object */ - -#ifndef GL_EXT_pixel_transform -#define GL_EXT_pixel_transform 1 -#define GL_PIXEL_TRANSFORM_2D_EXT 0x8330 -#define GL_PIXEL_MAG_FILTER_EXT 0x8331 -#define GL_PIXEL_MIN_FILTER_EXT 0x8332 -#define GL_PIXEL_CUBIC_WEIGHT_EXT 0x8333 -#define GL_CUBIC_EXT 0x8334 -#define GL_AVERAGE_EXT 0x8335 -#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336 -#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337 -#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT 0x8338 -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPixelTransformParameteriEXT (GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glPixelTransformParameterfEXT (GLenum target, GLenum pname, GLfloat param); -GLAPI void APIENTRY glPixelTransformParameterivEXT (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glPixelTransformParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glGetPixelTransformParameterivEXT (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetPixelTransformParameterfvEXT (GLenum target, GLenum pname, GLfloat *params); -#endif -#endif /* GL_EXT_pixel_transform */ - -#ifndef GL_EXT_pixel_transform_color_table -#define GL_EXT_pixel_transform_color_table 1 -#endif /* GL_EXT_pixel_transform_color_table */ - -#ifndef GL_EXT_point_parameters -#define GL_EXT_point_parameters 1 -#define GL_POINT_SIZE_MIN_EXT 0x8126 -#define GL_POINT_SIZE_MAX_EXT 0x8127 -#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 -#define GL_DISTANCE_ATTENUATION_EXT 0x8129 -typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPointParameterfEXT (GLenum pname, GLfloat param); -GLAPI void APIENTRY glPointParameterfvEXT (GLenum pname, const GLfloat *params); -#endif -#endif /* GL_EXT_point_parameters */ - -#ifndef GL_EXT_polygon_offset -#define GL_EXT_polygon_offset 1 -#define GL_POLYGON_OFFSET_EXT 0x8037 -#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 -#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 -typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPolygonOffsetEXT (GLfloat factor, GLfloat bias); -#endif -#endif /* GL_EXT_polygon_offset */ - -#ifndef GL_EXT_provoking_vertex -#define GL_EXT_provoking_vertex 1 -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D -#define GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E -#define GL_PROVOKING_VERTEX_EXT 0x8E4F -typedef void (APIENTRYP PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProvokingVertexEXT (GLenum mode); -#endif -#endif /* GL_EXT_provoking_vertex */ - -#ifndef GL_EXT_rescale_normal -#define GL_EXT_rescale_normal 1 -#define GL_RESCALE_NORMAL_EXT 0x803A -#endif /* GL_EXT_rescale_normal */ - -#ifndef GL_EXT_secondary_color -#define GL_EXT_secondary_color 1 -#define GL_COLOR_SUM_EXT 0x8458 -#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459 -#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A -#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B -#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C -#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D -#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSecondaryColor3bEXT (GLbyte red, GLbyte green, GLbyte blue); -GLAPI void APIENTRY glSecondaryColor3bvEXT (const GLbyte *v); -GLAPI void APIENTRY glSecondaryColor3dEXT (GLdouble red, GLdouble green, GLdouble blue); -GLAPI void APIENTRY glSecondaryColor3dvEXT (const GLdouble *v); -GLAPI void APIENTRY glSecondaryColor3fEXT (GLfloat red, GLfloat green, GLfloat blue); -GLAPI void APIENTRY glSecondaryColor3fvEXT (const GLfloat *v); -GLAPI void APIENTRY glSecondaryColor3iEXT (GLint red, GLint green, GLint blue); -GLAPI void APIENTRY glSecondaryColor3ivEXT (const GLint *v); -GLAPI void APIENTRY glSecondaryColor3sEXT (GLshort red, GLshort green, GLshort blue); -GLAPI void APIENTRY glSecondaryColor3svEXT (const GLshort *v); -GLAPI void APIENTRY glSecondaryColor3ubEXT (GLubyte red, GLubyte green, GLubyte blue); -GLAPI void APIENTRY glSecondaryColor3ubvEXT (const GLubyte *v); -GLAPI void APIENTRY glSecondaryColor3uiEXT (GLuint red, GLuint green, GLuint blue); -GLAPI void APIENTRY glSecondaryColor3uivEXT (const GLuint *v); -GLAPI void APIENTRY glSecondaryColor3usEXT (GLushort red, GLushort green, GLushort blue); -GLAPI void APIENTRY glSecondaryColor3usvEXT (const GLushort *v); -GLAPI void APIENTRY glSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const void *pointer); -#endif -#endif /* GL_EXT_secondary_color */ - -#ifndef GL_EXT_separate_shader_objects -#define GL_EXT_separate_shader_objects 1 -#define GL_ACTIVE_PROGRAM_EXT 0x8B8D -typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program); -typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program); -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glUseShaderProgramEXT (GLenum type, GLuint program); -GLAPI void APIENTRY glActiveProgramEXT (GLuint program); -GLAPI GLuint APIENTRY glCreateShaderProgramEXT (GLenum type, const GLchar *string); -#endif -#endif /* GL_EXT_separate_shader_objects */ - -#ifndef GL_EXT_separate_specular_color -#define GL_EXT_separate_specular_color 1 -#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 -#define GL_SINGLE_COLOR_EXT 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA -#endif /* GL_EXT_separate_specular_color */ - -#ifndef GL_EXT_shader_image_load_formatted -#define GL_EXT_shader_image_load_formatted 1 -#endif /* GL_EXT_shader_image_load_formatted */ - -#ifndef GL_EXT_shader_image_load_store -#define GL_EXT_shader_image_load_store 1 -#define GL_MAX_IMAGE_UNITS_EXT 0x8F38 -#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39 -#define GL_IMAGE_BINDING_NAME_EXT 0x8F3A -#define GL_IMAGE_BINDING_LEVEL_EXT 0x8F3B -#define GL_IMAGE_BINDING_LAYERED_EXT 0x8F3C -#define GL_IMAGE_BINDING_LAYER_EXT 0x8F3D -#define GL_IMAGE_BINDING_ACCESS_EXT 0x8F3E -#define GL_IMAGE_1D_EXT 0x904C -#define GL_IMAGE_2D_EXT 0x904D -#define GL_IMAGE_3D_EXT 0x904E -#define GL_IMAGE_2D_RECT_EXT 0x904F -#define GL_IMAGE_CUBE_EXT 0x9050 -#define GL_IMAGE_BUFFER_EXT 0x9051 -#define GL_IMAGE_1D_ARRAY_EXT 0x9052 -#define GL_IMAGE_2D_ARRAY_EXT 0x9053 -#define GL_IMAGE_CUBE_MAP_ARRAY_EXT 0x9054 -#define GL_IMAGE_2D_MULTISAMPLE_EXT 0x9055 -#define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056 -#define GL_INT_IMAGE_1D_EXT 0x9057 -#define GL_INT_IMAGE_2D_EXT 0x9058 -#define GL_INT_IMAGE_3D_EXT 0x9059 -#define GL_INT_IMAGE_2D_RECT_EXT 0x905A -#define GL_INT_IMAGE_CUBE_EXT 0x905B -#define GL_INT_IMAGE_BUFFER_EXT 0x905C -#define GL_INT_IMAGE_1D_ARRAY_EXT 0x905D -#define GL_INT_IMAGE_2D_ARRAY_EXT 0x905E -#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x905F -#define GL_INT_IMAGE_2D_MULTISAMPLE_EXT 0x9060 -#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061 -#define GL_UNSIGNED_INT_IMAGE_1D_EXT 0x9062 -#define GL_UNSIGNED_INT_IMAGE_2D_EXT 0x9063 -#define GL_UNSIGNED_INT_IMAGE_3D_EXT 0x9064 -#define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065 -#define GL_UNSIGNED_INT_IMAGE_CUBE_EXT 0x9066 -#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT 0x9067 -#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068 -#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069 -#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C -#define GL_MAX_IMAGE_SAMPLES_EXT 0x906D -#define GL_IMAGE_BINDING_FORMAT_EXT 0x906E -#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001 -#define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT 0x00000002 -#define GL_UNIFORM_BARRIER_BIT_EXT 0x00000004 -#define GL_TEXTURE_FETCH_BARRIER_BIT_EXT 0x00000008 -#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020 -#define GL_COMMAND_BARRIER_BIT_EXT 0x00000040 -#define GL_PIXEL_BUFFER_BARRIER_BIT_EXT 0x00000080 -#define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100 -#define GL_BUFFER_UPDATE_BARRIER_BIT_EXT 0x00000200 -#define GL_FRAMEBUFFER_BARRIER_BIT_EXT 0x00000400 -#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800 -#define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000 -#define GL_ALL_BARRIER_BITS_EXT 0xFFFFFFFF -typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); -typedef void (APIENTRYP PFNGLMEMORYBARRIEREXTPROC) (GLbitfield barriers); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindImageTextureEXT (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); -GLAPI void APIENTRY glMemoryBarrierEXT (GLbitfield barriers); -#endif -#endif /* GL_EXT_shader_image_load_store */ - -#ifndef GL_EXT_shader_integer_mix -#define GL_EXT_shader_integer_mix 1 -#endif /* GL_EXT_shader_integer_mix */ - -#ifndef GL_EXT_shadow_funcs -#define GL_EXT_shadow_funcs 1 -#endif /* GL_EXT_shadow_funcs */ - -#ifndef GL_EXT_shared_texture_palette -#define GL_EXT_shared_texture_palette 1 -#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB -#endif /* GL_EXT_shared_texture_palette */ - -#ifndef GL_EXT_stencil_clear_tag -#define GL_EXT_stencil_clear_tag 1 -#define GL_STENCIL_TAG_BITS_EXT 0x88F2 -#define GL_STENCIL_CLEAR_TAG_VALUE_EXT 0x88F3 -typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glStencilClearTagEXT (GLsizei stencilTagBits, GLuint stencilClearTag); -#endif -#endif /* GL_EXT_stencil_clear_tag */ - -#ifndef GL_EXT_stencil_two_side -#define GL_EXT_stencil_two_side 1 -#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 -#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911 -typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glActiveStencilFaceEXT (GLenum face); -#endif -#endif /* GL_EXT_stencil_two_side */ - -#ifndef GL_EXT_stencil_wrap -#define GL_EXT_stencil_wrap 1 -#define GL_INCR_WRAP_EXT 0x8507 -#define GL_DECR_WRAP_EXT 0x8508 -#endif /* GL_EXT_stencil_wrap */ - -#ifndef GL_EXT_subtexture -#define GL_EXT_subtexture 1 -typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -#endif -#endif /* GL_EXT_subtexture */ - -#ifndef GL_EXT_texture -#define GL_EXT_texture 1 -#define GL_ALPHA4_EXT 0x803B -#define GL_ALPHA8_EXT 0x803C -#define GL_ALPHA12_EXT 0x803D -#define GL_ALPHA16_EXT 0x803E -#define GL_LUMINANCE4_EXT 0x803F -#define GL_LUMINANCE8_EXT 0x8040 -#define GL_LUMINANCE12_EXT 0x8041 -#define GL_LUMINANCE16_EXT 0x8042 -#define GL_LUMINANCE4_ALPHA4_EXT 0x8043 -#define GL_LUMINANCE6_ALPHA2_EXT 0x8044 -#define GL_LUMINANCE8_ALPHA8_EXT 0x8045 -#define GL_LUMINANCE12_ALPHA4_EXT 0x8046 -#define GL_LUMINANCE12_ALPHA12_EXT 0x8047 -#define GL_LUMINANCE16_ALPHA16_EXT 0x8048 -#define GL_INTENSITY_EXT 0x8049 -#define GL_INTENSITY4_EXT 0x804A -#define GL_INTENSITY8_EXT 0x804B -#define GL_INTENSITY12_EXT 0x804C -#define GL_INTENSITY16_EXT 0x804D -#define GL_RGB2_EXT 0x804E -#define GL_RGB4_EXT 0x804F -#define GL_RGB5_EXT 0x8050 -#define GL_RGB8_EXT 0x8051 -#define GL_RGB10_EXT 0x8052 -#define GL_RGB12_EXT 0x8053 -#define GL_RGB16_EXT 0x8054 -#define GL_RGBA2_EXT 0x8055 -#define GL_RGBA4_EXT 0x8056 -#define GL_RGB5_A1_EXT 0x8057 -#define GL_RGBA8_EXT 0x8058 -#define GL_RGB10_A2_EXT 0x8059 -#define GL_RGBA12_EXT 0x805A -#define GL_RGBA16_EXT 0x805B -#define GL_TEXTURE_RED_SIZE_EXT 0x805C -#define GL_TEXTURE_GREEN_SIZE_EXT 0x805D -#define GL_TEXTURE_BLUE_SIZE_EXT 0x805E -#define GL_TEXTURE_ALPHA_SIZE_EXT 0x805F -#define GL_TEXTURE_LUMINANCE_SIZE_EXT 0x8060 -#define GL_TEXTURE_INTENSITY_SIZE_EXT 0x8061 -#define GL_REPLACE_EXT 0x8062 -#define GL_PROXY_TEXTURE_1D_EXT 0x8063 -#define GL_PROXY_TEXTURE_2D_EXT 0x8064 -#define GL_TEXTURE_TOO_LARGE_EXT 0x8065 -#endif /* GL_EXT_texture */ - -#ifndef GL_EXT_texture3D -#define GL_EXT_texture3D 1 -#define GL_PACK_SKIP_IMAGES_EXT 0x806B -#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C -#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D -#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E -#define GL_TEXTURE_3D_EXT 0x806F -#define GL_PROXY_TEXTURE_3D_EXT 0x8070 -#define GL_TEXTURE_DEPTH_EXT 0x8071 -#define GL_TEXTURE_WRAP_R_EXT 0x8072 -#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073 -typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexImage3DEXT (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -#endif -#endif /* GL_EXT_texture3D */ - -#ifndef GL_EXT_texture_array -#define GL_EXT_texture_array 1 -#define GL_TEXTURE_1D_ARRAY_EXT 0x8C18 -#define GL_PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19 -#define GL_TEXTURE_2D_ARRAY_EXT 0x8C1A -#define GL_PROXY_TEXTURE_2D_ARRAY_EXT 0x8C1B -#define GL_TEXTURE_BINDING_1D_ARRAY_EXT 0x8C1C -#define GL_TEXTURE_BINDING_2D_ARRAY_EXT 0x8C1D -#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF -#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFramebufferTextureLayerEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -#endif -#endif /* GL_EXT_texture_array */ - -#ifndef GL_EXT_texture_buffer_object -#define GL_EXT_texture_buffer_object 1 -#define GL_TEXTURE_BUFFER_EXT 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D -#define GL_TEXTURE_BUFFER_FORMAT_EXT 0x8C2E -typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer); -#endif -#endif /* GL_EXT_texture_buffer_object */ - -#ifndef GL_EXT_texture_compression_latc -#define GL_EXT_texture_compression_latc 1 -#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70 -#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71 -#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72 -#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73 -#endif /* GL_EXT_texture_compression_latc */ - -#ifndef GL_EXT_texture_compression_rgtc -#define GL_EXT_texture_compression_rgtc 1 -#define GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB -#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC -#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD -#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE -#endif /* GL_EXT_texture_compression_rgtc */ - -#ifndef GL_EXT_texture_compression_s3tc -#define GL_EXT_texture_compression_s3tc 1 -#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 -#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 -#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 -#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 -#endif /* GL_EXT_texture_compression_s3tc */ - -#ifndef GL_EXT_texture_cube_map -#define GL_EXT_texture_cube_map 1 -#define GL_NORMAL_MAP_EXT 0x8511 -#define GL_REFLECTION_MAP_EXT 0x8512 -#define GL_TEXTURE_CUBE_MAP_EXT 0x8513 -#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A -#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B -#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C -#endif /* GL_EXT_texture_cube_map */ - -#ifndef GL_EXT_texture_env_add -#define GL_EXT_texture_env_add 1 -#endif /* GL_EXT_texture_env_add */ - -#ifndef GL_EXT_texture_env_combine -#define GL_EXT_texture_env_combine 1 -#define GL_COMBINE_EXT 0x8570 -#define GL_COMBINE_RGB_EXT 0x8571 -#define GL_COMBINE_ALPHA_EXT 0x8572 -#define GL_RGB_SCALE_EXT 0x8573 -#define GL_ADD_SIGNED_EXT 0x8574 -#define GL_INTERPOLATE_EXT 0x8575 -#define GL_CONSTANT_EXT 0x8576 -#define GL_PRIMARY_COLOR_EXT 0x8577 -#define GL_PREVIOUS_EXT 0x8578 -#define GL_SOURCE0_RGB_EXT 0x8580 -#define GL_SOURCE1_RGB_EXT 0x8581 -#define GL_SOURCE2_RGB_EXT 0x8582 -#define GL_SOURCE0_ALPHA_EXT 0x8588 -#define GL_SOURCE1_ALPHA_EXT 0x8589 -#define GL_SOURCE2_ALPHA_EXT 0x858A -#define GL_OPERAND0_RGB_EXT 0x8590 -#define GL_OPERAND1_RGB_EXT 0x8591 -#define GL_OPERAND2_RGB_EXT 0x8592 -#define GL_OPERAND0_ALPHA_EXT 0x8598 -#define GL_OPERAND1_ALPHA_EXT 0x8599 -#define GL_OPERAND2_ALPHA_EXT 0x859A -#endif /* GL_EXT_texture_env_combine */ - -#ifndef GL_EXT_texture_env_dot3 -#define GL_EXT_texture_env_dot3 1 -#define GL_DOT3_RGB_EXT 0x8740 -#define GL_DOT3_RGBA_EXT 0x8741 -#endif /* GL_EXT_texture_env_dot3 */ - -#ifndef GL_EXT_texture_filter_anisotropic -#define GL_EXT_texture_filter_anisotropic 1 -#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE -#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF -#endif /* GL_EXT_texture_filter_anisotropic */ - -#ifndef GL_EXT_texture_integer -#define GL_EXT_texture_integer 1 -#define GL_RGBA32UI_EXT 0x8D70 -#define GL_RGB32UI_EXT 0x8D71 -#define GL_ALPHA32UI_EXT 0x8D72 -#define GL_INTENSITY32UI_EXT 0x8D73 -#define GL_LUMINANCE32UI_EXT 0x8D74 -#define GL_LUMINANCE_ALPHA32UI_EXT 0x8D75 -#define GL_RGBA16UI_EXT 0x8D76 -#define GL_RGB16UI_EXT 0x8D77 -#define GL_ALPHA16UI_EXT 0x8D78 -#define GL_INTENSITY16UI_EXT 0x8D79 -#define GL_LUMINANCE16UI_EXT 0x8D7A -#define GL_LUMINANCE_ALPHA16UI_EXT 0x8D7B -#define GL_RGBA8UI_EXT 0x8D7C -#define GL_RGB8UI_EXT 0x8D7D -#define GL_ALPHA8UI_EXT 0x8D7E -#define GL_INTENSITY8UI_EXT 0x8D7F -#define GL_LUMINANCE8UI_EXT 0x8D80 -#define GL_LUMINANCE_ALPHA8UI_EXT 0x8D81 -#define GL_RGBA32I_EXT 0x8D82 -#define GL_RGB32I_EXT 0x8D83 -#define GL_ALPHA32I_EXT 0x8D84 -#define GL_INTENSITY32I_EXT 0x8D85 -#define GL_LUMINANCE32I_EXT 0x8D86 -#define GL_LUMINANCE_ALPHA32I_EXT 0x8D87 -#define GL_RGBA16I_EXT 0x8D88 -#define GL_RGB16I_EXT 0x8D89 -#define GL_ALPHA16I_EXT 0x8D8A -#define GL_INTENSITY16I_EXT 0x8D8B -#define GL_LUMINANCE16I_EXT 0x8D8C -#define GL_LUMINANCE_ALPHA16I_EXT 0x8D8D -#define GL_RGBA8I_EXT 0x8D8E -#define GL_RGB8I_EXT 0x8D8F -#define GL_ALPHA8I_EXT 0x8D90 -#define GL_INTENSITY8I_EXT 0x8D91 -#define GL_LUMINANCE8I_EXT 0x8D92 -#define GL_LUMINANCE_ALPHA8I_EXT 0x8D93 -#define GL_RED_INTEGER_EXT 0x8D94 -#define GL_GREEN_INTEGER_EXT 0x8D95 -#define GL_BLUE_INTEGER_EXT 0x8D96 -#define GL_ALPHA_INTEGER_EXT 0x8D97 -#define GL_RGB_INTEGER_EXT 0x8D98 -#define GL_RGBA_INTEGER_EXT 0x8D99 -#define GL_BGR_INTEGER_EXT 0x8D9A -#define GL_BGRA_INTEGER_EXT 0x8D9B -#define GL_LUMINANCE_INTEGER_EXT 0x8D9C -#define GL_LUMINANCE_ALPHA_INTEGER_EXT 0x8D9D -#define GL_RGBA_INTEGER_MODE_EXT 0x8D9E -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha); -typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params); -GLAPI void APIENTRY glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params); -GLAPI void APIENTRY glClearColorIiEXT (GLint red, GLint green, GLint blue, GLint alpha); -GLAPI void APIENTRY glClearColorIuiEXT (GLuint red, GLuint green, GLuint blue, GLuint alpha); -#endif -#endif /* GL_EXT_texture_integer */ - -#ifndef GL_EXT_texture_lod_bias -#define GL_EXT_texture_lod_bias 1 -#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD -#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 -#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 -#endif /* GL_EXT_texture_lod_bias */ - -#ifndef GL_EXT_texture_mirror_clamp -#define GL_EXT_texture_mirror_clamp 1 -#define GL_MIRROR_CLAMP_EXT 0x8742 -#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743 -#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912 -#endif /* GL_EXT_texture_mirror_clamp */ - -#ifndef GL_EXT_texture_object -#define GL_EXT_texture_object 1 -#define GL_TEXTURE_PRIORITY_EXT 0x8066 -#define GL_TEXTURE_RESIDENT_EXT 0x8067 -#define GL_TEXTURE_1D_BINDING_EXT 0x8068 -#define GL_TEXTURE_2D_BINDING_EXT 0x8069 -#define GL_TEXTURE_3D_BINDING_EXT 0x806A -typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); -typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); -typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures); -typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures); -typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture); -typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei n, const GLuint *textures, GLboolean *residences); -GLAPI void APIENTRY glBindTextureEXT (GLenum target, GLuint texture); -GLAPI void APIENTRY glDeleteTexturesEXT (GLsizei n, const GLuint *textures); -GLAPI void APIENTRY glGenTexturesEXT (GLsizei n, GLuint *textures); -GLAPI GLboolean APIENTRY glIsTextureEXT (GLuint texture); -GLAPI void APIENTRY glPrioritizeTexturesEXT (GLsizei n, const GLuint *textures, const GLclampf *priorities); -#endif -#endif /* GL_EXT_texture_object */ - -#ifndef GL_EXT_texture_perturb_normal -#define GL_EXT_texture_perturb_normal 1 -#define GL_PERTURB_EXT 0x85AE -#define GL_TEXTURE_NORMAL_EXT 0x85AF -typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTextureNormalEXT (GLenum mode); -#endif -#endif /* GL_EXT_texture_perturb_normal */ - -#ifndef GL_EXT_texture_sRGB -#define GL_EXT_texture_sRGB 1 -#define GL_SRGB_EXT 0x8C40 -#define GL_SRGB8_EXT 0x8C41 -#define GL_SRGB_ALPHA_EXT 0x8C42 -#define GL_SRGB8_ALPHA8_EXT 0x8C43 -#define GL_SLUMINANCE_ALPHA_EXT 0x8C44 -#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45 -#define GL_SLUMINANCE_EXT 0x8C46 -#define GL_SLUMINANCE8_EXT 0x8C47 -#define GL_COMPRESSED_SRGB_EXT 0x8C48 -#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49 -#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A -#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B -#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F -#endif /* GL_EXT_texture_sRGB */ - -#ifndef GL_EXT_texture_sRGB_decode -#define GL_EXT_texture_sRGB_decode 1 -#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48 -#define GL_DECODE_EXT 0x8A49 -#define GL_SKIP_DECODE_EXT 0x8A4A -#endif /* GL_EXT_texture_sRGB_decode */ - -#ifndef GL_EXT_texture_shared_exponent -#define GL_EXT_texture_shared_exponent 1 -#define GL_RGB9_E5_EXT 0x8C3D -#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E -#define GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F -#endif /* GL_EXT_texture_shared_exponent */ - -#ifndef GL_EXT_texture_snorm -#define GL_EXT_texture_snorm 1 -#define GL_ALPHA_SNORM 0x9010 -#define GL_LUMINANCE_SNORM 0x9011 -#define GL_LUMINANCE_ALPHA_SNORM 0x9012 -#define GL_INTENSITY_SNORM 0x9013 -#define GL_ALPHA8_SNORM 0x9014 -#define GL_LUMINANCE8_SNORM 0x9015 -#define GL_LUMINANCE8_ALPHA8_SNORM 0x9016 -#define GL_INTENSITY8_SNORM 0x9017 -#define GL_ALPHA16_SNORM 0x9018 -#define GL_LUMINANCE16_SNORM 0x9019 -#define GL_LUMINANCE16_ALPHA16_SNORM 0x901A -#define GL_INTENSITY16_SNORM 0x901B -#define GL_RED_SNORM 0x8F90 -#define GL_RG_SNORM 0x8F91 -#define GL_RGB_SNORM 0x8F92 -#define GL_RGBA_SNORM 0x8F93 -#endif /* GL_EXT_texture_snorm */ - -#ifndef GL_EXT_texture_swizzle -#define GL_EXT_texture_swizzle 1 -#define GL_TEXTURE_SWIZZLE_R_EXT 0x8E42 -#define GL_TEXTURE_SWIZZLE_G_EXT 0x8E43 -#define GL_TEXTURE_SWIZZLE_B_EXT 0x8E44 -#define GL_TEXTURE_SWIZZLE_A_EXT 0x8E45 -#define GL_TEXTURE_SWIZZLE_RGBA_EXT 0x8E46 -#endif /* GL_EXT_texture_swizzle */ - -#ifndef GL_EXT_timer_query -#define GL_EXT_timer_query 1 -#define GL_TIME_ELAPSED_EXT 0x88BF -typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params); -GLAPI void APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params); -#endif -#endif /* GL_EXT_timer_query */ - -#ifndef GL_EXT_transform_feedback -#define GL_EXT_transform_feedback 1 -#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85 -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F -#define GL_INTERLEAVED_ATTRIBS_EXT 0x8C8C -#define GL_SEPARATE_ATTRIBS_EXT 0x8C8D -#define GL_PRIMITIVES_GENERATED_EXT 0x8C87 -#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88 -#define GL_RASTERIZER_DISCARD_EXT 0x8C89 -#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80 -#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F -#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76 -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode); -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void); -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginTransformFeedbackEXT (GLenum primitiveMode); -GLAPI void APIENTRY glEndTransformFeedbackEXT (void); -GLAPI void APIENTRY glBindBufferRangeEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI void APIENTRY glBindBufferOffsetEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -GLAPI void APIENTRY glBindBufferBaseEXT (GLenum target, GLuint index, GLuint buffer); -GLAPI void APIENTRY glTransformFeedbackVaryingsEXT (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); -GLAPI void APIENTRY glGetTransformFeedbackVaryingEXT (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -#endif -#endif /* GL_EXT_transform_feedback */ - -#ifndef GL_EXT_vertex_array -#define GL_EXT_vertex_array 1 -#define GL_VERTEX_ARRAY_EXT 0x8074 -#define GL_NORMAL_ARRAY_EXT 0x8075 -#define GL_COLOR_ARRAY_EXT 0x8076 -#define GL_INDEX_ARRAY_EXT 0x8077 -#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 -#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 -#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A -#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B -#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C -#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D -#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E -#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F -#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 -#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 -#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 -#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 -#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 -#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 -#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 -#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 -#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 -#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 -#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A -#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B -#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C -#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D -#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E -#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F -#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 -#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 -#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 -#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 -typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i); -typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer); -typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, void **params); -typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void *pointer); -typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void *pointer); -typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glArrayElementEXT (GLint i); -GLAPI void APIENTRY glColorPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI void APIENTRY glDrawArraysEXT (GLenum mode, GLint first, GLsizei count); -GLAPI void APIENTRY glEdgeFlagPointerEXT (GLsizei stride, GLsizei count, const GLboolean *pointer); -GLAPI void APIENTRY glGetPointervEXT (GLenum pname, void **params); -GLAPI void APIENTRY glIndexPointerEXT (GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI void APIENTRY glNormalPointerEXT (GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI void APIENTRY glTexCoordPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI void APIENTRY glVertexPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -#endif -#endif /* GL_EXT_vertex_array */ - -#ifndef GL_EXT_vertex_array_bgra -#define GL_EXT_vertex_array_bgra 1 -#endif /* GL_EXT_vertex_array_bgra */ - -#ifndef GL_EXT_vertex_attrib_64bit -#define GL_EXT_vertex_attrib_64bit 1 -#define GL_DOUBLE_VEC2_EXT 0x8FFC -#define GL_DOUBLE_VEC3_EXT 0x8FFD -#define GL_DOUBLE_VEC4_EXT 0x8FFE -#define GL_DOUBLE_MAT2_EXT 0x8F46 -#define GL_DOUBLE_MAT3_EXT 0x8F47 -#define GL_DOUBLE_MAT4_EXT 0x8F48 -#define GL_DOUBLE_MAT2x3_EXT 0x8F49 -#define GL_DOUBLE_MAT2x4_EXT 0x8F4A -#define GL_DOUBLE_MAT3x2_EXT 0x8F4B -#define GL_DOUBLE_MAT3x4_EXT 0x8F4C -#define GL_DOUBLE_MAT4x2_EXT 0x8F4D -#define GL_DOUBLE_MAT4x3_EXT 0x8F4E -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DEXTPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DEXTPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVEXTPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVEXTPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVEXTPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVEXTPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVEXTPROC) (GLuint index, GLenum pname, GLdouble *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribL1dEXT (GLuint index, GLdouble x); -GLAPI void APIENTRY glVertexAttribL2dEXT (GLuint index, GLdouble x, GLdouble y); -GLAPI void APIENTRY glVertexAttribL3dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glVertexAttribL4dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glVertexAttribL1dvEXT (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL2dvEXT (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL3dvEXT (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL4dvEXT (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribLPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glGetVertexAttribLdvEXT (GLuint index, GLenum pname, GLdouble *params); -#endif -#endif /* GL_EXT_vertex_attrib_64bit */ - -#ifndef GL_EXT_vertex_shader -#define GL_EXT_vertex_shader 1 -#define GL_VERTEX_SHADER_EXT 0x8780 -#define GL_VERTEX_SHADER_BINDING_EXT 0x8781 -#define GL_OP_INDEX_EXT 0x8782 -#define GL_OP_NEGATE_EXT 0x8783 -#define GL_OP_DOT3_EXT 0x8784 -#define GL_OP_DOT4_EXT 0x8785 -#define GL_OP_MUL_EXT 0x8786 -#define GL_OP_ADD_EXT 0x8787 -#define GL_OP_MADD_EXT 0x8788 -#define GL_OP_FRAC_EXT 0x8789 -#define GL_OP_MAX_EXT 0x878A -#define GL_OP_MIN_EXT 0x878B -#define GL_OP_SET_GE_EXT 0x878C -#define GL_OP_SET_LT_EXT 0x878D -#define GL_OP_CLAMP_EXT 0x878E -#define GL_OP_FLOOR_EXT 0x878F -#define GL_OP_ROUND_EXT 0x8790 -#define GL_OP_EXP_BASE_2_EXT 0x8791 -#define GL_OP_LOG_BASE_2_EXT 0x8792 -#define GL_OP_POWER_EXT 0x8793 -#define GL_OP_RECIP_EXT 0x8794 -#define GL_OP_RECIP_SQRT_EXT 0x8795 -#define GL_OP_SUB_EXT 0x8796 -#define GL_OP_CROSS_PRODUCT_EXT 0x8797 -#define GL_OP_MULTIPLY_MATRIX_EXT 0x8798 -#define GL_OP_MOV_EXT 0x8799 -#define GL_OUTPUT_VERTEX_EXT 0x879A -#define GL_OUTPUT_COLOR0_EXT 0x879B -#define GL_OUTPUT_COLOR1_EXT 0x879C -#define GL_OUTPUT_TEXTURE_COORD0_EXT 0x879D -#define GL_OUTPUT_TEXTURE_COORD1_EXT 0x879E -#define GL_OUTPUT_TEXTURE_COORD2_EXT 0x879F -#define GL_OUTPUT_TEXTURE_COORD3_EXT 0x87A0 -#define GL_OUTPUT_TEXTURE_COORD4_EXT 0x87A1 -#define GL_OUTPUT_TEXTURE_COORD5_EXT 0x87A2 -#define GL_OUTPUT_TEXTURE_COORD6_EXT 0x87A3 -#define GL_OUTPUT_TEXTURE_COORD7_EXT 0x87A4 -#define GL_OUTPUT_TEXTURE_COORD8_EXT 0x87A5 -#define GL_OUTPUT_TEXTURE_COORD9_EXT 0x87A6 -#define GL_OUTPUT_TEXTURE_COORD10_EXT 0x87A7 -#define GL_OUTPUT_TEXTURE_COORD11_EXT 0x87A8 -#define GL_OUTPUT_TEXTURE_COORD12_EXT 0x87A9 -#define GL_OUTPUT_TEXTURE_COORD13_EXT 0x87AA -#define GL_OUTPUT_TEXTURE_COORD14_EXT 0x87AB -#define GL_OUTPUT_TEXTURE_COORD15_EXT 0x87AC -#define GL_OUTPUT_TEXTURE_COORD16_EXT 0x87AD -#define GL_OUTPUT_TEXTURE_COORD17_EXT 0x87AE -#define GL_OUTPUT_TEXTURE_COORD18_EXT 0x87AF -#define GL_OUTPUT_TEXTURE_COORD19_EXT 0x87B0 -#define GL_OUTPUT_TEXTURE_COORD20_EXT 0x87B1 -#define GL_OUTPUT_TEXTURE_COORD21_EXT 0x87B2 -#define GL_OUTPUT_TEXTURE_COORD22_EXT 0x87B3 -#define GL_OUTPUT_TEXTURE_COORD23_EXT 0x87B4 -#define GL_OUTPUT_TEXTURE_COORD24_EXT 0x87B5 -#define GL_OUTPUT_TEXTURE_COORD25_EXT 0x87B6 -#define GL_OUTPUT_TEXTURE_COORD26_EXT 0x87B7 -#define GL_OUTPUT_TEXTURE_COORD27_EXT 0x87B8 -#define GL_OUTPUT_TEXTURE_COORD28_EXT 0x87B9 -#define GL_OUTPUT_TEXTURE_COORD29_EXT 0x87BA -#define GL_OUTPUT_TEXTURE_COORD30_EXT 0x87BB -#define GL_OUTPUT_TEXTURE_COORD31_EXT 0x87BC -#define GL_OUTPUT_FOG_EXT 0x87BD -#define GL_SCALAR_EXT 0x87BE -#define GL_VECTOR_EXT 0x87BF -#define GL_MATRIX_EXT 0x87C0 -#define GL_VARIANT_EXT 0x87C1 -#define GL_INVARIANT_EXT 0x87C2 -#define GL_LOCAL_CONSTANT_EXT 0x87C3 -#define GL_LOCAL_EXT 0x87C4 -#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5 -#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6 -#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7 -#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8 -#define GL_MAX_VERTEX_SHADER_LOCALS_EXT 0x87C9 -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE -#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF -#define GL_VERTEX_SHADER_VARIANTS_EXT 0x87D0 -#define GL_VERTEX_SHADER_INVARIANTS_EXT 0x87D1 -#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2 -#define GL_VERTEX_SHADER_LOCALS_EXT 0x87D3 -#define GL_VERTEX_SHADER_OPTIMIZED_EXT 0x87D4 -#define GL_X_EXT 0x87D5 -#define GL_Y_EXT 0x87D6 -#define GL_Z_EXT 0x87D7 -#define GL_W_EXT 0x87D8 -#define GL_NEGATIVE_X_EXT 0x87D9 -#define GL_NEGATIVE_Y_EXT 0x87DA -#define GL_NEGATIVE_Z_EXT 0x87DB -#define GL_NEGATIVE_W_EXT 0x87DC -#define GL_ZERO_EXT 0x87DD -#define GL_ONE_EXT 0x87DE -#define GL_NEGATIVE_ONE_EXT 0x87DF -#define GL_NORMALIZED_RANGE_EXT 0x87E0 -#define GL_FULL_RANGE_EXT 0x87E1 -#define GL_CURRENT_VERTEX_EXT 0x87E2 -#define GL_MVP_MATRIX_EXT 0x87E3 -#define GL_VARIANT_VALUE_EXT 0x87E4 -#define GL_VARIANT_DATATYPE_EXT 0x87E5 -#define GL_VARIANT_ARRAY_STRIDE_EXT 0x87E6 -#define GL_VARIANT_ARRAY_TYPE_EXT 0x87E7 -#define GL_VARIANT_ARRAY_EXT 0x87E8 -#define GL_VARIANT_ARRAY_POINTER_EXT 0x87E9 -#define GL_INVARIANT_VALUE_EXT 0x87EA -#define GL_INVARIANT_DATATYPE_EXT 0x87EB -#define GL_LOCAL_CONSTANT_VALUE_EXT 0x87EC -#define GL_LOCAL_CONSTANT_DATATYPE_EXT 0x87ED -typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void); -typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void); -typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); -typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); -typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); -typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); -typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); -typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); -typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); -typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); -typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components); -typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const void *addr); -typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const void *addr); -typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr); -typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr); -typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr); -typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr); -typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr); -typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr); -typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr); -typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr); -typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const void *addr); -typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); -typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); -typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); -typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); -typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); -typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); -typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value); -typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); -typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, void **data); -typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginVertexShaderEXT (void); -GLAPI void APIENTRY glEndVertexShaderEXT (void); -GLAPI void APIENTRY glBindVertexShaderEXT (GLuint id); -GLAPI GLuint APIENTRY glGenVertexShadersEXT (GLuint range); -GLAPI void APIENTRY glDeleteVertexShaderEXT (GLuint id); -GLAPI void APIENTRY glShaderOp1EXT (GLenum op, GLuint res, GLuint arg1); -GLAPI void APIENTRY glShaderOp2EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2); -GLAPI void APIENTRY glShaderOp3EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); -GLAPI void APIENTRY glSwizzleEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -GLAPI void APIENTRY glWriteMaskEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -GLAPI void APIENTRY glInsertComponentEXT (GLuint res, GLuint src, GLuint num); -GLAPI void APIENTRY glExtractComponentEXT (GLuint res, GLuint src, GLuint num); -GLAPI GLuint APIENTRY glGenSymbolsEXT (GLenum datatype, GLenum storagetype, GLenum range, GLuint components); -GLAPI void APIENTRY glSetInvariantEXT (GLuint id, GLenum type, const void *addr); -GLAPI void APIENTRY glSetLocalConstantEXT (GLuint id, GLenum type, const void *addr); -GLAPI void APIENTRY glVariantbvEXT (GLuint id, const GLbyte *addr); -GLAPI void APIENTRY glVariantsvEXT (GLuint id, const GLshort *addr); -GLAPI void APIENTRY glVariantivEXT (GLuint id, const GLint *addr); -GLAPI void APIENTRY glVariantfvEXT (GLuint id, const GLfloat *addr); -GLAPI void APIENTRY glVariantdvEXT (GLuint id, const GLdouble *addr); -GLAPI void APIENTRY glVariantubvEXT (GLuint id, const GLubyte *addr); -GLAPI void APIENTRY glVariantusvEXT (GLuint id, const GLushort *addr); -GLAPI void APIENTRY glVariantuivEXT (GLuint id, const GLuint *addr); -GLAPI void APIENTRY glVariantPointerEXT (GLuint id, GLenum type, GLuint stride, const void *addr); -GLAPI void APIENTRY glEnableVariantClientStateEXT (GLuint id); -GLAPI void APIENTRY glDisableVariantClientStateEXT (GLuint id); -GLAPI GLuint APIENTRY glBindLightParameterEXT (GLenum light, GLenum value); -GLAPI GLuint APIENTRY glBindMaterialParameterEXT (GLenum face, GLenum value); -GLAPI GLuint APIENTRY glBindTexGenParameterEXT (GLenum unit, GLenum coord, GLenum value); -GLAPI GLuint APIENTRY glBindTextureUnitParameterEXT (GLenum unit, GLenum value); -GLAPI GLuint APIENTRY glBindParameterEXT (GLenum value); -GLAPI GLboolean APIENTRY glIsVariantEnabledEXT (GLuint id, GLenum cap); -GLAPI void APIENTRY glGetVariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data); -GLAPI void APIENTRY glGetVariantIntegervEXT (GLuint id, GLenum value, GLint *data); -GLAPI void APIENTRY glGetVariantFloatvEXT (GLuint id, GLenum value, GLfloat *data); -GLAPI void APIENTRY glGetVariantPointervEXT (GLuint id, GLenum value, void **data); -GLAPI void APIENTRY glGetInvariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data); -GLAPI void APIENTRY glGetInvariantIntegervEXT (GLuint id, GLenum value, GLint *data); -GLAPI void APIENTRY glGetInvariantFloatvEXT (GLuint id, GLenum value, GLfloat *data); -GLAPI void APIENTRY glGetLocalConstantBooleanvEXT (GLuint id, GLenum value, GLboolean *data); -GLAPI void APIENTRY glGetLocalConstantIntegervEXT (GLuint id, GLenum value, GLint *data); -GLAPI void APIENTRY glGetLocalConstantFloatvEXT (GLuint id, GLenum value, GLfloat *data); -#endif -#endif /* GL_EXT_vertex_shader */ - -#ifndef GL_EXT_vertex_weighting -#define GL_EXT_vertex_weighting 1 -#define GL_MODELVIEW0_STACK_DEPTH_EXT 0x0BA3 -#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502 -#define GL_MODELVIEW0_MATRIX_EXT 0x0BA6 -#define GL_MODELVIEW1_MATRIX_EXT 0x8506 -#define GL_VERTEX_WEIGHTING_EXT 0x8509 -#define GL_MODELVIEW0_EXT 0x1700 -#define GL_MODELVIEW1_EXT 0x850A -#define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850B -#define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850C -#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850D -#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850E -#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F -#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510 -typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); -typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight); -typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexWeightfEXT (GLfloat weight); -GLAPI void APIENTRY glVertexWeightfvEXT (const GLfloat *weight); -GLAPI void APIENTRY glVertexWeightPointerEXT (GLint size, GLenum type, GLsizei stride, const void *pointer); -#endif -#endif /* GL_EXT_vertex_weighting */ - -#ifndef GL_EXT_x11_sync_object -#define GL_EXT_x11_sync_object 1 -#define GL_SYNC_X11_FENCE_EXT 0x90E1 -typedef GLsync (APIENTRYP PFNGLIMPORTSYNCEXTPROC) (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLsync APIENTRY glImportSyncEXT (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags); -#endif -#endif /* GL_EXT_x11_sync_object */ - -#ifndef GL_GREMEDY_frame_terminator -#define GL_GREMEDY_frame_terminator 1 -typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFrameTerminatorGREMEDY (void); -#endif -#endif /* GL_GREMEDY_frame_terminator */ - -#ifndef GL_GREMEDY_string_marker -#define GL_GREMEDY_string_marker 1 -typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const void *string); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glStringMarkerGREMEDY (GLsizei len, const void *string); -#endif -#endif /* GL_GREMEDY_string_marker */ - -#ifndef GL_HP_convolution_border_modes -#define GL_HP_convolution_border_modes 1 -#define GL_IGNORE_BORDER_HP 0x8150 -#define GL_CONSTANT_BORDER_HP 0x8151 -#define GL_REPLICATE_BORDER_HP 0x8153 -#define GL_CONVOLUTION_BORDER_COLOR_HP 0x8154 -#endif /* GL_HP_convolution_border_modes */ - -#ifndef GL_HP_image_transform -#define GL_HP_image_transform 1 -#define GL_IMAGE_SCALE_X_HP 0x8155 -#define GL_IMAGE_SCALE_Y_HP 0x8156 -#define GL_IMAGE_TRANSLATE_X_HP 0x8157 -#define GL_IMAGE_TRANSLATE_Y_HP 0x8158 -#define GL_IMAGE_ROTATE_ANGLE_HP 0x8159 -#define GL_IMAGE_ROTATE_ORIGIN_X_HP 0x815A -#define GL_IMAGE_ROTATE_ORIGIN_Y_HP 0x815B -#define GL_IMAGE_MAG_FILTER_HP 0x815C -#define GL_IMAGE_MIN_FILTER_HP 0x815D -#define GL_IMAGE_CUBIC_WEIGHT_HP 0x815E -#define GL_CUBIC_HP 0x815F -#define GL_AVERAGE_HP 0x8160 -#define GL_IMAGE_TRANSFORM_2D_HP 0x8161 -#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162 -#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163 -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glImageTransformParameteriHP (GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glImageTransformParameterfHP (GLenum target, GLenum pname, GLfloat param); -GLAPI void APIENTRY glImageTransformParameterivHP (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glImageTransformParameterfvHP (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glGetImageTransformParameterivHP (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetImageTransformParameterfvHP (GLenum target, GLenum pname, GLfloat *params); -#endif -#endif /* GL_HP_image_transform */ - -#ifndef GL_HP_occlusion_test -#define GL_HP_occlusion_test 1 -#define GL_OCCLUSION_TEST_HP 0x8165 -#define GL_OCCLUSION_TEST_RESULT_HP 0x8166 -#endif /* GL_HP_occlusion_test */ - -#ifndef GL_HP_texture_lighting -#define GL_HP_texture_lighting 1 -#define GL_TEXTURE_LIGHTING_MODE_HP 0x8167 -#define GL_TEXTURE_POST_SPECULAR_HP 0x8168 -#define GL_TEXTURE_PRE_SPECULAR_HP 0x8169 -#endif /* GL_HP_texture_lighting */ - -#ifndef GL_IBM_cull_vertex -#define GL_IBM_cull_vertex 1 -#define GL_CULL_VERTEX_IBM 103050 -#endif /* GL_IBM_cull_vertex */ - -#ifndef GL_IBM_multimode_draw_arrays -#define GL_IBM_multimode_draw_arrays 1 -typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); -typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, GLint modestride); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiModeDrawArraysIBM (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); -GLAPI void APIENTRY glMultiModeDrawElementsIBM (const GLenum *mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, GLint modestride); -#endif -#endif /* GL_IBM_multimode_draw_arrays */ - -#ifndef GL_IBM_rasterpos_clip -#define GL_IBM_rasterpos_clip 1 -#define GL_RASTER_POSITION_UNCLIPPED_IBM 0x19262 -#endif /* GL_IBM_rasterpos_clip */ - -#ifndef GL_IBM_static_data -#define GL_IBM_static_data 1 -#define GL_ALL_STATIC_DATA_IBM 103060 -#define GL_STATIC_VERTEX_ARRAY_IBM 103061 -typedef void (APIENTRYP PFNGLFLUSHSTATICDATAIBMPROC) (GLenum target); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFlushStaticDataIBM (GLenum target); -#endif -#endif /* GL_IBM_static_data */ - -#ifndef GL_IBM_texture_mirrored_repeat -#define GL_IBM_texture_mirrored_repeat 1 -#define GL_MIRRORED_REPEAT_IBM 0x8370 -#endif /* GL_IBM_texture_mirrored_repeat */ - -#ifndef GL_IBM_vertex_array_lists -#define GL_IBM_vertex_array_lists 1 -#define GL_VERTEX_ARRAY_LIST_IBM 103070 -#define GL_NORMAL_ARRAY_LIST_IBM 103071 -#define GL_COLOR_ARRAY_LIST_IBM 103072 -#define GL_INDEX_ARRAY_LIST_IBM 103073 -#define GL_TEXTURE_COORD_ARRAY_LIST_IBM 103074 -#define GL_EDGE_FLAG_ARRAY_LIST_IBM 103075 -#define GL_FOG_COORDINATE_ARRAY_LIST_IBM 103076 -#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077 -#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM 103080 -#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM 103081 -#define GL_COLOR_ARRAY_LIST_STRIDE_IBM 103082 -#define GL_INDEX_ARRAY_LIST_STRIDE_IBM 103083 -#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084 -#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085 -#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086 -#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087 -typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean **pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void **pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI void APIENTRY glSecondaryColorPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI void APIENTRY glEdgeFlagPointerListIBM (GLint stride, const GLboolean **pointer, GLint ptrstride); -GLAPI void APIENTRY glFogCoordPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI void APIENTRY glIndexPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI void APIENTRY glNormalPointerListIBM (GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI void APIENTRY glTexCoordPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI void APIENTRY glVertexPointerListIBM (GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -#endif -#endif /* GL_IBM_vertex_array_lists */ - -#ifndef GL_INGR_blend_func_separate -#define GL_INGR_blend_func_separate 1 -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendFuncSeparateINGR (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -#endif -#endif /* GL_INGR_blend_func_separate */ - -#ifndef GL_INGR_color_clamp -#define GL_INGR_color_clamp 1 -#define GL_RED_MIN_CLAMP_INGR 0x8560 -#define GL_GREEN_MIN_CLAMP_INGR 0x8561 -#define GL_BLUE_MIN_CLAMP_INGR 0x8562 -#define GL_ALPHA_MIN_CLAMP_INGR 0x8563 -#define GL_RED_MAX_CLAMP_INGR 0x8564 -#define GL_GREEN_MAX_CLAMP_INGR 0x8565 -#define GL_BLUE_MAX_CLAMP_INGR 0x8566 -#define GL_ALPHA_MAX_CLAMP_INGR 0x8567 -#endif /* GL_INGR_color_clamp */ - -#ifndef GL_INGR_interlace_read -#define GL_INGR_interlace_read 1 -#define GL_INTERLACE_READ_INGR 0x8568 -#endif /* GL_INGR_interlace_read */ - -#ifndef GL_INTEL_fragment_shader_ordering -#define GL_INTEL_fragment_shader_ordering 1 -#endif /* GL_INTEL_fragment_shader_ordering */ - -#ifndef GL_INTEL_map_texture -#define GL_INTEL_map_texture 1 -#define GL_TEXTURE_MEMORY_LAYOUT_INTEL 0x83FF -#define GL_LAYOUT_DEFAULT_INTEL 0 -#define GL_LAYOUT_LINEAR_INTEL 1 -#define GL_LAYOUT_LINEAR_CPU_CACHED_INTEL 2 -typedef void (APIENTRYP PFNGLSYNCTEXTUREINTELPROC) (GLuint texture); -typedef void (APIENTRYP PFNGLUNMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level); -typedef void *(APIENTRYP PFNGLMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSyncTextureINTEL (GLuint texture); -GLAPI void APIENTRY glUnmapTexture2DINTEL (GLuint texture, GLint level); -GLAPI void *APIENTRY glMapTexture2DINTEL (GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout); -#endif -#endif /* GL_INTEL_map_texture */ - -#ifndef GL_INTEL_parallel_arrays -#define GL_INTEL_parallel_arrays 1 -#define GL_PARALLEL_ARRAYS_INTEL 0x83F4 -#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5 -#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6 -#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7 -#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8 -typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer); -typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const void **pointer); -typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer); -typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const void **pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexPointervINTEL (GLint size, GLenum type, const void **pointer); -GLAPI void APIENTRY glNormalPointervINTEL (GLenum type, const void **pointer); -GLAPI void APIENTRY glColorPointervINTEL (GLint size, GLenum type, const void **pointer); -GLAPI void APIENTRY glTexCoordPointervINTEL (GLint size, GLenum type, const void **pointer); -#endif -#endif /* GL_INTEL_parallel_arrays */ - -#ifndef GL_INTEL_performance_query -#define GL_INTEL_performance_query 1 -#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000 -#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001 -#define GL_PERFQUERY_WAIT_INTEL 0x83FB -#define GL_PERFQUERY_FLUSH_INTEL 0x83FA -#define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9 -#define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0 -#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1 -#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2 -#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3 -#define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4 -#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5 -#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8 -#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9 -#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA -#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB -#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC -#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD -#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE -#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF -#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500 -typedef void (APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle); -typedef void (APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle); -typedef void (APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle); -typedef void (APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle); -typedef void (APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId); -typedef void (APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId); -typedef void (APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue); -typedef void (APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten); -typedef void (APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId); -typedef void (APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle); -GLAPI void APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle); -GLAPI void APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle); -GLAPI void APIENTRY glEndPerfQueryINTEL (GLuint queryHandle); -GLAPI void APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId); -GLAPI void APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId); -GLAPI void APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue); -GLAPI void APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten); -GLAPI void APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId); -GLAPI void APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask); -#endif -#endif /* GL_INTEL_performance_query */ - -#ifndef GL_MESAX_texture_stack -#define GL_MESAX_texture_stack 1 -#define GL_TEXTURE_1D_STACK_MESAX 0x8759 -#define GL_TEXTURE_2D_STACK_MESAX 0x875A -#define GL_PROXY_TEXTURE_1D_STACK_MESAX 0x875B -#define GL_PROXY_TEXTURE_2D_STACK_MESAX 0x875C -#define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D -#define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E -#endif /* GL_MESAX_texture_stack */ - -#ifndef GL_MESA_pack_invert -#define GL_MESA_pack_invert 1 -#define GL_PACK_INVERT_MESA 0x8758 -#endif /* GL_MESA_pack_invert */ - -#ifndef GL_MESA_resize_buffers -#define GL_MESA_resize_buffers 1 -typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glResizeBuffersMESA (void); -#endif -#endif /* GL_MESA_resize_buffers */ - -#ifndef GL_MESA_window_pos -#define GL_MESA_window_pos 1 -typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); -typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glWindowPos2dMESA (GLdouble x, GLdouble y); -GLAPI void APIENTRY glWindowPos2dvMESA (const GLdouble *v); -GLAPI void APIENTRY glWindowPos2fMESA (GLfloat x, GLfloat y); -GLAPI void APIENTRY glWindowPos2fvMESA (const GLfloat *v); -GLAPI void APIENTRY glWindowPos2iMESA (GLint x, GLint y); -GLAPI void APIENTRY glWindowPos2ivMESA (const GLint *v); -GLAPI void APIENTRY glWindowPos2sMESA (GLshort x, GLshort y); -GLAPI void APIENTRY glWindowPos2svMESA (const GLshort *v); -GLAPI void APIENTRY glWindowPos3dMESA (GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glWindowPos3dvMESA (const GLdouble *v); -GLAPI void APIENTRY glWindowPos3fMESA (GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glWindowPos3fvMESA (const GLfloat *v); -GLAPI void APIENTRY glWindowPos3iMESA (GLint x, GLint y, GLint z); -GLAPI void APIENTRY glWindowPos3ivMESA (const GLint *v); -GLAPI void APIENTRY glWindowPos3sMESA (GLshort x, GLshort y, GLshort z); -GLAPI void APIENTRY glWindowPos3svMESA (const GLshort *v); -GLAPI void APIENTRY glWindowPos4dMESA (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glWindowPos4dvMESA (const GLdouble *v); -GLAPI void APIENTRY glWindowPos4fMESA (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glWindowPos4fvMESA (const GLfloat *v); -GLAPI void APIENTRY glWindowPos4iMESA (GLint x, GLint y, GLint z, GLint w); -GLAPI void APIENTRY glWindowPos4ivMESA (const GLint *v); -GLAPI void APIENTRY glWindowPos4sMESA (GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void APIENTRY glWindowPos4svMESA (const GLshort *v); -#endif -#endif /* GL_MESA_window_pos */ - -#ifndef GL_MESA_ycbcr_texture -#define GL_MESA_ycbcr_texture 1 -#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB -#define GL_YCBCR_MESA 0x8757 -#endif /* GL_MESA_ycbcr_texture */ - -#ifndef GL_NVX_conditional_render -#define GL_NVX_conditional_render 1 -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVXPROC) (GLuint id); -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVXPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginConditionalRenderNVX (GLuint id); -GLAPI void APIENTRY glEndConditionalRenderNVX (void); -#endif -#endif /* GL_NVX_conditional_render */ - -#ifndef GL_NVX_gpu_memory_info -#define GL_NVX_gpu_memory_info 1 -#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047 -#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048 -#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049 -#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A -#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B -#endif /* GL_NVX_gpu_memory_info */ - -#ifndef GL_NV_bindless_multi_draw_indirect -#define GL_NV_bindless_multi_draw_indirect 1 -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); -GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); -#endif -#endif /* GL_NV_bindless_multi_draw_indirect */ - -#ifndef GL_NV_bindless_multi_draw_indirect_count -#define GL_NV_bindless_multi_draw_indirect_count 1 -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessCountNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); -GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessCountNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); -#endif -#endif /* GL_NV_bindless_multi_draw_indirect_count */ - -#ifndef GL_NV_bindless_texture -#define GL_NV_bindless_texture 1 -typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture); -typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler); -typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle); -typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle); -typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); -typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access); -typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle); -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value); -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values); -typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle); -typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLuint64 APIENTRY glGetTextureHandleNV (GLuint texture); -GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler); -GLAPI void APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle); -GLAPI void APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle); -GLAPI GLuint64 APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); -GLAPI void APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access); -GLAPI void APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle); -GLAPI void APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value); -GLAPI void APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value); -GLAPI void APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value); -GLAPI void APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values); -GLAPI GLboolean APIENTRY glIsTextureHandleResidentNV (GLuint64 handle); -GLAPI GLboolean APIENTRY glIsImageHandleResidentNV (GLuint64 handle); -#endif -#endif /* GL_NV_bindless_texture */ - -#ifndef GL_NV_blend_equation_advanced -#define GL_NV_blend_equation_advanced 1 -#define GL_BLEND_OVERLAP_NV 0x9281 -#define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280 -#define GL_BLUE_NV 0x1905 -#define GL_COLORBURN_NV 0x929A -#define GL_COLORDODGE_NV 0x9299 -#define GL_CONJOINT_NV 0x9284 -#define GL_CONTRAST_NV 0x92A1 -#define GL_DARKEN_NV 0x9297 -#define GL_DIFFERENCE_NV 0x929E -#define GL_DISJOINT_NV 0x9283 -#define GL_DST_ATOP_NV 0x928F -#define GL_DST_IN_NV 0x928B -#define GL_DST_NV 0x9287 -#define GL_DST_OUT_NV 0x928D -#define GL_DST_OVER_NV 0x9289 -#define GL_EXCLUSION_NV 0x92A0 -#define GL_GREEN_NV 0x1904 -#define GL_HARDLIGHT_NV 0x929B -#define GL_HARDMIX_NV 0x92A9 -#define GL_HSL_COLOR_NV 0x92AF -#define GL_HSL_HUE_NV 0x92AD -#define GL_HSL_LUMINOSITY_NV 0x92B0 -#define GL_HSL_SATURATION_NV 0x92AE -#define GL_INVERT_OVG_NV 0x92B4 -#define GL_INVERT_RGB_NV 0x92A3 -#define GL_LIGHTEN_NV 0x9298 -#define GL_LINEARBURN_NV 0x92A5 -#define GL_LINEARDODGE_NV 0x92A4 -#define GL_LINEARLIGHT_NV 0x92A7 -#define GL_MINUS_CLAMPED_NV 0x92B3 -#define GL_MINUS_NV 0x929F -#define GL_MULTIPLY_NV 0x9294 -#define GL_OVERLAY_NV 0x9296 -#define GL_PINLIGHT_NV 0x92A8 -#define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2 -#define GL_PLUS_CLAMPED_NV 0x92B1 -#define GL_PLUS_DARKER_NV 0x9292 -#define GL_PLUS_NV 0x9291 -#define GL_RED_NV 0x1903 -#define GL_SCREEN_NV 0x9295 -#define GL_SOFTLIGHT_NV 0x929C -#define GL_SRC_ATOP_NV 0x928E -#define GL_SRC_IN_NV 0x928A -#define GL_SRC_NV 0x9286 -#define GL_SRC_OUT_NV 0x928C -#define GL_SRC_OVER_NV 0x9288 -#define GL_UNCORRELATED_NV 0x9282 -#define GL_VIVIDLIGHT_NV 0x92A6 -#define GL_XOR_NV 0x1506 -typedef void (APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value); -typedef void (APIENTRYP PFNGLBLENDBARRIERNVPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendParameteriNV (GLenum pname, GLint value); -GLAPI void APIENTRY glBlendBarrierNV (void); -#endif -#endif /* GL_NV_blend_equation_advanced */ - -#ifndef GL_NV_blend_equation_advanced_coherent -#define GL_NV_blend_equation_advanced_coherent 1 -#define GL_BLEND_ADVANCED_COHERENT_NV 0x9285 -#endif /* GL_NV_blend_equation_advanced_coherent */ - -#ifndef GL_NV_blend_square -#define GL_NV_blend_square 1 -#endif /* GL_NV_blend_square */ - -#ifndef GL_NV_compute_program5 -#define GL_NV_compute_program5 1 -#define GL_COMPUTE_PROGRAM_NV 0x90FB -#define GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV 0x90FC -#endif /* GL_NV_compute_program5 */ - -#ifndef GL_NV_conditional_render -#define GL_NV_conditional_render 1 -#define GL_QUERY_WAIT_NV 0x8E13 -#define GL_QUERY_NO_WAIT_NV 0x8E14 -#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15 -#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16 -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode); -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode); -GLAPI void APIENTRY glEndConditionalRenderNV (void); -#endif -#endif /* GL_NV_conditional_render */ - -#ifndef GL_NV_copy_depth_to_color -#define GL_NV_copy_depth_to_color 1 -#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E -#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F -#endif /* GL_NV_copy_depth_to_color */ - -#ifndef GL_NV_copy_image -#define GL_NV_copy_image 1 -typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCopyImageSubDataNV (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -#endif -#endif /* GL_NV_copy_image */ - -#ifndef GL_NV_deep_texture3D -#define GL_NV_deep_texture3D 1 -#define GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV 0x90D0 -#define GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV 0x90D1 -#endif /* GL_NV_deep_texture3D */ - -#ifndef GL_NV_depth_buffer_float -#define GL_NV_depth_buffer_float 1 -#define GL_DEPTH_COMPONENT32F_NV 0x8DAB -#define GL_DEPTH32F_STENCIL8_NV 0x8DAC -#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD -#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF -typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); -typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); -typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDepthRangedNV (GLdouble zNear, GLdouble zFar); -GLAPI void APIENTRY glClearDepthdNV (GLdouble depth); -GLAPI void APIENTRY glDepthBoundsdNV (GLdouble zmin, GLdouble zmax); -#endif -#endif /* GL_NV_depth_buffer_float */ - -#ifndef GL_NV_depth_clamp -#define GL_NV_depth_clamp 1 -#define GL_DEPTH_CLAMP_NV 0x864F -#endif /* GL_NV_depth_clamp */ - -#ifndef GL_NV_draw_texture -#define GL_NV_draw_texture 1 -typedef void (APIENTRYP PFNGLDRAWTEXTURENVPROC) (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawTextureNV (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); -#endif -#endif /* GL_NV_draw_texture */ - -#ifndef GL_NV_evaluators -#define GL_NV_evaluators 1 -#define GL_EVAL_2D_NV 0x86C0 -#define GL_EVAL_TRIANGULAR_2D_NV 0x86C1 -#define GL_MAP_TESSELLATION_NV 0x86C2 -#define GL_MAP_ATTRIB_U_ORDER_NV 0x86C3 -#define GL_MAP_ATTRIB_V_ORDER_NV 0x86C4 -#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5 -#define GL_EVAL_VERTEX_ATTRIB0_NV 0x86C6 -#define GL_EVAL_VERTEX_ATTRIB1_NV 0x86C7 -#define GL_EVAL_VERTEX_ATTRIB2_NV 0x86C8 -#define GL_EVAL_VERTEX_ATTRIB3_NV 0x86C9 -#define GL_EVAL_VERTEX_ATTRIB4_NV 0x86CA -#define GL_EVAL_VERTEX_ATTRIB5_NV 0x86CB -#define GL_EVAL_VERTEX_ATTRIB6_NV 0x86CC -#define GL_EVAL_VERTEX_ATTRIB7_NV 0x86CD -#define GL_EVAL_VERTEX_ATTRIB8_NV 0x86CE -#define GL_EVAL_VERTEX_ATTRIB9_NV 0x86CF -#define GL_EVAL_VERTEX_ATTRIB10_NV 0x86D0 -#define GL_EVAL_VERTEX_ATTRIB11_NV 0x86D1 -#define GL_EVAL_VERTEX_ATTRIB12_NV 0x86D2 -#define GL_EVAL_VERTEX_ATTRIB13_NV 0x86D3 -#define GL_EVAL_VERTEX_ATTRIB14_NV 0x86D4 -#define GL_EVAL_VERTEX_ATTRIB15_NV 0x86D5 -#define GL_MAX_MAP_TESSELLATION_NV 0x86D6 -#define GL_MAX_RATIONAL_EVAL_ORDER_NV 0x86D7 -typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void *points); -typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void *points); -typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void *points); -GLAPI void APIENTRY glMapParameterivNV (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glMapParameterfvNV (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glGetMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void *points); -GLAPI void APIENTRY glGetMapParameterivNV (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetMapParameterfvNV (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetMapAttribParameterivNV (GLenum target, GLuint index, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetMapAttribParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glEvalMapsNV (GLenum target, GLenum mode); -#endif -#endif /* GL_NV_evaluators */ - -#ifndef GL_NV_explicit_multisample -#define GL_NV_explicit_multisample 1 -#define GL_SAMPLE_POSITION_NV 0x8E50 -#define GL_SAMPLE_MASK_NV 0x8E51 -#define GL_SAMPLE_MASK_VALUE_NV 0x8E52 -#define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53 -#define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54 -#define GL_TEXTURE_RENDERBUFFER_NV 0x8E55 -#define GL_SAMPLER_RENDERBUFFER_NV 0x8E56 -#define GL_INT_SAMPLER_RENDERBUFFER_NV 0x8E57 -#define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58 -#define GL_MAX_SAMPLE_MASK_WORDS_NV 0x8E59 -typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat *val); -typedef void (APIENTRYP PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask); -typedef void (APIENTRYP PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetMultisamplefvNV (GLenum pname, GLuint index, GLfloat *val); -GLAPI void APIENTRY glSampleMaskIndexedNV (GLuint index, GLbitfield mask); -GLAPI void APIENTRY glTexRenderbufferNV (GLenum target, GLuint renderbuffer); -#endif -#endif /* GL_NV_explicit_multisample */ - -#ifndef GL_NV_fence -#define GL_NV_fence 1 -#define GL_ALL_COMPLETED_NV 0x84F2 -#define GL_FENCE_STATUS_NV 0x84F3 -#define GL_FENCE_CONDITION_NV 0x84F4 -typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences); -typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); -typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC) (GLuint fence); -typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence); -typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence); -typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences); -GLAPI void APIENTRY glGenFencesNV (GLsizei n, GLuint *fences); -GLAPI GLboolean APIENTRY glIsFenceNV (GLuint fence); -GLAPI GLboolean APIENTRY glTestFenceNV (GLuint fence); -GLAPI void APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params); -GLAPI void APIENTRY glFinishFenceNV (GLuint fence); -GLAPI void APIENTRY glSetFenceNV (GLuint fence, GLenum condition); -#endif -#endif /* GL_NV_fence */ - -#ifndef GL_NV_float_buffer -#define GL_NV_float_buffer 1 -#define GL_FLOAT_R_NV 0x8880 -#define GL_FLOAT_RG_NV 0x8881 -#define GL_FLOAT_RGB_NV 0x8882 -#define GL_FLOAT_RGBA_NV 0x8883 -#define GL_FLOAT_R16_NV 0x8884 -#define GL_FLOAT_R32_NV 0x8885 -#define GL_FLOAT_RG16_NV 0x8886 -#define GL_FLOAT_RG32_NV 0x8887 -#define GL_FLOAT_RGB16_NV 0x8888 -#define GL_FLOAT_RGB32_NV 0x8889 -#define GL_FLOAT_RGBA16_NV 0x888A -#define GL_FLOAT_RGBA32_NV 0x888B -#define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C -#define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D -#define GL_FLOAT_RGBA_MODE_NV 0x888E -#endif /* GL_NV_float_buffer */ - -#ifndef GL_NV_fog_distance -#define GL_NV_fog_distance 1 -#define GL_FOG_DISTANCE_MODE_NV 0x855A -#define GL_EYE_RADIAL_NV 0x855B -#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C -#endif /* GL_NV_fog_distance */ - -#ifndef GL_NV_fragment_program -#define GL_NV_fragment_program 1 -#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868 -#define GL_FRAGMENT_PROGRAM_NV 0x8870 -#define GL_MAX_TEXTURE_COORDS_NV 0x8871 -#define GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872 -#define GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873 -#define GL_PROGRAM_ERROR_STRING_NV 0x8874 -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v); -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v); -typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramNamedParameter4fNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glProgramNamedParameter4fvNV (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v); -GLAPI void APIENTRY glProgramNamedParameter4dNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glProgramNamedParameter4dvNV (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v); -GLAPI void APIENTRY glGetProgramNamedParameterfvNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); -GLAPI void APIENTRY glGetProgramNamedParameterdvNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params); -#endif -#endif /* GL_NV_fragment_program */ - -#ifndef GL_NV_fragment_program2 -#define GL_NV_fragment_program2 1 -#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 -#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 -#define GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6 -#define GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7 -#define GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8 -#endif /* GL_NV_fragment_program2 */ - -#ifndef GL_NV_fragment_program4 -#define GL_NV_fragment_program4 1 -#endif /* GL_NV_fragment_program4 */ - -#ifndef GL_NV_fragment_program_option -#define GL_NV_fragment_program_option 1 -#endif /* GL_NV_fragment_program_option */ - -#ifndef GL_NV_framebuffer_multisample_coverage -#define GL_NV_framebuffer_multisample_coverage 1 -#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB -#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10 -#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11 -#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12 -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -#endif -#endif /* GL_NV_framebuffer_multisample_coverage */ - -#ifndef GL_NV_geometry_program4 -#define GL_NV_geometry_program4 1 -#define GL_GEOMETRY_PROGRAM_NV 0x8C26 -#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27 -#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28 -typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramVertexLimitNV (GLenum target, GLint limit); -GLAPI void APIENTRY glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level); -GLAPI void APIENTRY glFramebufferTextureFaceEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -#endif -#endif /* GL_NV_geometry_program4 */ - -#ifndef GL_NV_geometry_shader4 -#define GL_NV_geometry_shader4 1 -#endif /* GL_NV_geometry_shader4 */ - -#ifndef GL_NV_gpu_program4 -#define GL_NV_gpu_program4 1 -#define GL_MIN_PROGRAM_TEXEL_OFFSET_NV 0x8904 -#define GL_MAX_PROGRAM_TEXEL_OFFSET_NV 0x8905 -#define GL_PROGRAM_ATTRIB_COMPONENTS_NV 0x8906 -#define GL_PROGRAM_RESULT_COMPONENTS_NV 0x8907 -#define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908 -#define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909 -#define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5 -#define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6 -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramLocalParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI void APIENTRY glProgramLocalParameterI4ivNV (GLenum target, GLuint index, const GLint *params); -GLAPI void APIENTRY glProgramLocalParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params); -GLAPI void APIENTRY glProgramLocalParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI void APIENTRY glProgramLocalParameterI4uivNV (GLenum target, GLuint index, const GLuint *params); -GLAPI void APIENTRY glProgramLocalParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params); -GLAPI void APIENTRY glProgramEnvParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI void APIENTRY glProgramEnvParameterI4ivNV (GLenum target, GLuint index, const GLint *params); -GLAPI void APIENTRY glProgramEnvParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params); -GLAPI void APIENTRY glProgramEnvParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI void APIENTRY glProgramEnvParameterI4uivNV (GLenum target, GLuint index, const GLuint *params); -GLAPI void APIENTRY glProgramEnvParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params); -GLAPI void APIENTRY glGetProgramLocalParameterIivNV (GLenum target, GLuint index, GLint *params); -GLAPI void APIENTRY glGetProgramLocalParameterIuivNV (GLenum target, GLuint index, GLuint *params); -GLAPI void APIENTRY glGetProgramEnvParameterIivNV (GLenum target, GLuint index, GLint *params); -GLAPI void APIENTRY glGetProgramEnvParameterIuivNV (GLenum target, GLuint index, GLuint *params); -#endif -#endif /* GL_NV_gpu_program4 */ - -#ifndef GL_NV_gpu_program5 -#define GL_NV_gpu_program5 1 -#define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C -#define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F -#define GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV 0x8F44 -#define GL_MAX_PROGRAM_SUBROUTINE_NUM_NV 0x8F45 -typedef void (APIENTRYP PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC) (GLenum target, GLsizei count, const GLuint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC) (GLenum target, GLuint index, GLuint *param); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramSubroutineParametersuivNV (GLenum target, GLsizei count, const GLuint *params); -GLAPI void APIENTRY glGetProgramSubroutineParameteruivNV (GLenum target, GLuint index, GLuint *param); -#endif -#endif /* GL_NV_gpu_program5 */ - -#ifndef GL_NV_gpu_program5_mem_extended -#define GL_NV_gpu_program5_mem_extended 1 -#endif /* GL_NV_gpu_program5_mem_extended */ - -#ifndef GL_NV_gpu_shader5 -#define GL_NV_gpu_shader5 1 -#endif /* GL_NV_gpu_shader5 */ - -#ifndef GL_NV_half_float -#define GL_NV_half_float 1 -typedef unsigned short GLhalfNV; -#define GL_HALF_FLOAT_NV 0x140B -typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y); -typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z); -typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); -typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); -typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); -typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s); -typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t); -typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r); -typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog); -typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight); -typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertex2hNV (GLhalfNV x, GLhalfNV y); -GLAPI void APIENTRY glVertex2hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glVertex3hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z); -GLAPI void APIENTRY glVertex3hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glVertex4hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -GLAPI void APIENTRY glVertex4hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glNormal3hNV (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); -GLAPI void APIENTRY glNormal3hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue); -GLAPI void APIENTRY glColor3hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glColor4hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); -GLAPI void APIENTRY glColor4hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glTexCoord1hNV (GLhalfNV s); -GLAPI void APIENTRY glTexCoord1hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glTexCoord2hNV (GLhalfNV s, GLhalfNV t); -GLAPI void APIENTRY glTexCoord2hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glTexCoord3hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r); -GLAPI void APIENTRY glTexCoord3hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glTexCoord4hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -GLAPI void APIENTRY glTexCoord4hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glMultiTexCoord1hNV (GLenum target, GLhalfNV s); -GLAPI void APIENTRY glMultiTexCoord1hvNV (GLenum target, const GLhalfNV *v); -GLAPI void APIENTRY glMultiTexCoord2hNV (GLenum target, GLhalfNV s, GLhalfNV t); -GLAPI void APIENTRY glMultiTexCoord2hvNV (GLenum target, const GLhalfNV *v); -GLAPI void APIENTRY glMultiTexCoord3hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); -GLAPI void APIENTRY glMultiTexCoord3hvNV (GLenum target, const GLhalfNV *v); -GLAPI void APIENTRY glMultiTexCoord4hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -GLAPI void APIENTRY glMultiTexCoord4hvNV (GLenum target, const GLhalfNV *v); -GLAPI void APIENTRY glFogCoordhNV (GLhalfNV fog); -GLAPI void APIENTRY glFogCoordhvNV (const GLhalfNV *fog); -GLAPI void APIENTRY glSecondaryColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue); -GLAPI void APIENTRY glSecondaryColor3hvNV (const GLhalfNV *v); -GLAPI void APIENTRY glVertexWeighthNV (GLhalfNV weight); -GLAPI void APIENTRY glVertexWeighthvNV (const GLhalfNV *weight); -GLAPI void APIENTRY glVertexAttrib1hNV (GLuint index, GLhalfNV x); -GLAPI void APIENTRY glVertexAttrib1hvNV (GLuint index, const GLhalfNV *v); -GLAPI void APIENTRY glVertexAttrib2hNV (GLuint index, GLhalfNV x, GLhalfNV y); -GLAPI void APIENTRY glVertexAttrib2hvNV (GLuint index, const GLhalfNV *v); -GLAPI void APIENTRY glVertexAttrib3hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); -GLAPI void APIENTRY glVertexAttrib3hvNV (GLuint index, const GLhalfNV *v); -GLAPI void APIENTRY glVertexAttrib4hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -GLAPI void APIENTRY glVertexAttrib4hvNV (GLuint index, const GLhalfNV *v); -GLAPI void APIENTRY glVertexAttribs1hvNV (GLuint index, GLsizei n, const GLhalfNV *v); -GLAPI void APIENTRY glVertexAttribs2hvNV (GLuint index, GLsizei n, const GLhalfNV *v); -GLAPI void APIENTRY glVertexAttribs3hvNV (GLuint index, GLsizei n, const GLhalfNV *v); -GLAPI void APIENTRY glVertexAttribs4hvNV (GLuint index, GLsizei n, const GLhalfNV *v); -#endif -#endif /* GL_NV_half_float */ - -#ifndef GL_NV_light_max_exponent -#define GL_NV_light_max_exponent 1 -#define GL_MAX_SHININESS_NV 0x8504 -#define GL_MAX_SPOT_EXPONENT_NV 0x8505 -#endif /* GL_NV_light_max_exponent */ - -#ifndef GL_NV_multisample_coverage -#define GL_NV_multisample_coverage 1 -#define GL_COLOR_SAMPLES_NV 0x8E20 -#endif /* GL_NV_multisample_coverage */ - -#ifndef GL_NV_multisample_filter_hint -#define GL_NV_multisample_filter_hint 1 -#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 -#endif /* GL_NV_multisample_filter_hint */ - -#ifndef GL_NV_occlusion_query -#define GL_NV_occlusion_query 1 -#define GL_PIXEL_COUNTER_BITS_NV 0x8864 -#define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865 -#define GL_PIXEL_COUNT_NV 0x8866 -#define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867 -typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); -typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); -typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void); -typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenOcclusionQueriesNV (GLsizei n, GLuint *ids); -GLAPI void APIENTRY glDeleteOcclusionQueriesNV (GLsizei n, const GLuint *ids); -GLAPI GLboolean APIENTRY glIsOcclusionQueryNV (GLuint id); -GLAPI void APIENTRY glBeginOcclusionQueryNV (GLuint id); -GLAPI void APIENTRY glEndOcclusionQueryNV (void); -GLAPI void APIENTRY glGetOcclusionQueryivNV (GLuint id, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetOcclusionQueryuivNV (GLuint id, GLenum pname, GLuint *params); -#endif -#endif /* GL_NV_occlusion_query */ - -#ifndef GL_NV_packed_depth_stencil -#define GL_NV_packed_depth_stencil 1 -#define GL_DEPTH_STENCIL_NV 0x84F9 -#define GL_UNSIGNED_INT_24_8_NV 0x84FA -#endif /* GL_NV_packed_depth_stencil */ - -#ifndef GL_NV_parameter_buffer_object -#define GL_NV_parameter_buffer_object 1 -#define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0 -#define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1 -#define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2 -#define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3 -#define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4 -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params); -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramBufferParametersfvNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params); -GLAPI void APIENTRY glProgramBufferParametersIivNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params); -GLAPI void APIENTRY glProgramBufferParametersIuivNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params); -#endif -#endif /* GL_NV_parameter_buffer_object */ - -#ifndef GL_NV_parameter_buffer_object2 -#define GL_NV_parameter_buffer_object2 1 -#endif /* GL_NV_parameter_buffer_object2 */ - -#ifndef GL_NV_path_rendering -#define GL_NV_path_rendering 1 -#define GL_PATH_FORMAT_SVG_NV 0x9070 -#define GL_PATH_FORMAT_PS_NV 0x9071 -#define GL_STANDARD_FONT_NAME_NV 0x9072 -#define GL_SYSTEM_FONT_NAME_NV 0x9073 -#define GL_FILE_NAME_NV 0x9074 -#define GL_PATH_STROKE_WIDTH_NV 0x9075 -#define GL_PATH_END_CAPS_NV 0x9076 -#define GL_PATH_INITIAL_END_CAP_NV 0x9077 -#define GL_PATH_TERMINAL_END_CAP_NV 0x9078 -#define GL_PATH_JOIN_STYLE_NV 0x9079 -#define GL_PATH_MITER_LIMIT_NV 0x907A -#define GL_PATH_DASH_CAPS_NV 0x907B -#define GL_PATH_INITIAL_DASH_CAP_NV 0x907C -#define GL_PATH_TERMINAL_DASH_CAP_NV 0x907D -#define GL_PATH_DASH_OFFSET_NV 0x907E -#define GL_PATH_CLIENT_LENGTH_NV 0x907F -#define GL_PATH_FILL_MODE_NV 0x9080 -#define GL_PATH_FILL_MASK_NV 0x9081 -#define GL_PATH_FILL_COVER_MODE_NV 0x9082 -#define GL_PATH_STROKE_COVER_MODE_NV 0x9083 -#define GL_PATH_STROKE_MASK_NV 0x9084 -#define GL_COUNT_UP_NV 0x9088 -#define GL_COUNT_DOWN_NV 0x9089 -#define GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A -#define GL_CONVEX_HULL_NV 0x908B -#define GL_BOUNDING_BOX_NV 0x908D -#define GL_TRANSLATE_X_NV 0x908E -#define GL_TRANSLATE_Y_NV 0x908F -#define GL_TRANSLATE_2D_NV 0x9090 -#define GL_TRANSLATE_3D_NV 0x9091 -#define GL_AFFINE_2D_NV 0x9092 -#define GL_AFFINE_3D_NV 0x9094 -#define GL_TRANSPOSE_AFFINE_2D_NV 0x9096 -#define GL_TRANSPOSE_AFFINE_3D_NV 0x9098 -#define GL_UTF8_NV 0x909A -#define GL_UTF16_NV 0x909B -#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C -#define GL_PATH_COMMAND_COUNT_NV 0x909D -#define GL_PATH_COORD_COUNT_NV 0x909E -#define GL_PATH_DASH_ARRAY_COUNT_NV 0x909F -#define GL_PATH_COMPUTED_LENGTH_NV 0x90A0 -#define GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1 -#define GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2 -#define GL_SQUARE_NV 0x90A3 -#define GL_ROUND_NV 0x90A4 -#define GL_TRIANGULAR_NV 0x90A5 -#define GL_BEVEL_NV 0x90A6 -#define GL_MITER_REVERT_NV 0x90A7 -#define GL_MITER_TRUNCATE_NV 0x90A8 -#define GL_SKIP_MISSING_GLYPH_NV 0x90A9 -#define GL_USE_MISSING_GLYPH_NV 0x90AA -#define GL_PATH_ERROR_POSITION_NV 0x90AB -#define GL_PATH_FOG_GEN_MODE_NV 0x90AC -#define GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD -#define GL_ADJACENT_PAIRS_NV 0x90AE -#define GL_FIRST_TO_REST_NV 0x90AF -#define GL_PATH_GEN_MODE_NV 0x90B0 -#define GL_PATH_GEN_COEFF_NV 0x90B1 -#define GL_PATH_GEN_COLOR_FORMAT_NV 0x90B2 -#define GL_PATH_GEN_COMPONENTS_NV 0x90B3 -#define GL_PATH_STENCIL_FUNC_NV 0x90B7 -#define GL_PATH_STENCIL_REF_NV 0x90B8 -#define GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9 -#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD -#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE -#define GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF -#define GL_PATH_DASH_OFFSET_RESET_NV 0x90B4 -#define GL_MOVE_TO_RESETS_NV 0x90B5 -#define GL_MOVE_TO_CONTINUES_NV 0x90B6 -#define GL_CLOSE_PATH_NV 0x00 -#define GL_MOVE_TO_NV 0x02 -#define GL_RELATIVE_MOVE_TO_NV 0x03 -#define GL_LINE_TO_NV 0x04 -#define GL_RELATIVE_LINE_TO_NV 0x05 -#define GL_HORIZONTAL_LINE_TO_NV 0x06 -#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07 -#define GL_VERTICAL_LINE_TO_NV 0x08 -#define GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09 -#define GL_QUADRATIC_CURVE_TO_NV 0x0A -#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B -#define GL_CUBIC_CURVE_TO_NV 0x0C -#define GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D -#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E -#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F -#define GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10 -#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11 -#define GL_SMALL_CCW_ARC_TO_NV 0x12 -#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13 -#define GL_SMALL_CW_ARC_TO_NV 0x14 -#define GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15 -#define GL_LARGE_CCW_ARC_TO_NV 0x16 -#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17 -#define GL_LARGE_CW_ARC_TO_NV 0x18 -#define GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19 -#define GL_RESTART_PATH_NV 0xF0 -#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2 -#define GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4 -#define GL_RECT_NV 0xF6 -#define GL_CIRCULAR_CCW_ARC_TO_NV 0xF8 -#define GL_CIRCULAR_CW_ARC_TO_NV 0xFA -#define GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC -#define GL_ARC_TO_NV 0xFE -#define GL_RELATIVE_ARC_TO_NV 0xFF -#define GL_BOLD_BIT_NV 0x01 -#define GL_ITALIC_BIT_NV 0x02 -#define GL_GLYPH_WIDTH_BIT_NV 0x01 -#define GL_GLYPH_HEIGHT_BIT_NV 0x02 -#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04 -#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08 -#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10 -#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20 -#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40 -#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80 -#define GL_GLYPH_HAS_KERNING_BIT_NV 0x100 -#define GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000 -#define GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000 -#define GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000 -#define GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000 -#define GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000 -#define GL_FONT_ASCENDER_BIT_NV 0x00200000 -#define GL_FONT_DESCENDER_BIT_NV 0x00400000 -#define GL_FONT_HEIGHT_BIT_NV 0x00800000 -#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000 -#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000 -#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000 -#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000 -#define GL_FONT_HAS_KERNING_BIT_NV 0x10000000 -#define GL_PRIMARY_COLOR_NV 0x852C -#define GL_SECONDARY_COLOR_NV 0x852D -#define GL_ROUNDED_RECT_NV 0xE8 -#define GL_RELATIVE_ROUNDED_RECT_NV 0xE9 -#define GL_ROUNDED_RECT2_NV 0xEA -#define GL_RELATIVE_ROUNDED_RECT2_NV 0xEB -#define GL_ROUNDED_RECT4_NV 0xEC -#define GL_RELATIVE_ROUNDED_RECT4_NV 0xED -#define GL_ROUNDED_RECT8_NV 0xEE -#define GL_RELATIVE_ROUNDED_RECT8_NV 0xEF -#define GL_RELATIVE_RECT_NV 0xF7 -#define GL_FONT_GLYPHS_AVAILABLE_NV 0x9368 -#define GL_FONT_TARGET_UNAVAILABLE_NV 0x9369 -#define GL_FONT_UNAVAILABLE_NV 0x936A -#define GL_FONT_UNINTELLIGIBLE_NV 0x936B -#define GL_CONIC_CURVE_TO_NV 0x1A -#define GL_RELATIVE_CONIC_CURVE_TO_NV 0x1B -#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV 0x20000000 -#define GL_STANDARD_FONT_FORMAT_NV 0x936C -#define GL_2_BYTES_NV 0x1407 -#define GL_3_BYTES_NV 0x1408 -#define GL_4_BYTES_NV 0x1409 -#define GL_EYE_LINEAR_NV 0x2400 -#define GL_OBJECT_LINEAR_NV 0x2401 -#define GL_CONSTANT_NV 0x8576 -#define GL_PATH_PROJECTION_NV 0x1701 -#define GL_PATH_MODELVIEW_NV 0x1700 -#define GL_PATH_MODELVIEW_STACK_DEPTH_NV 0x0BA3 -#define GL_PATH_MODELVIEW_MATRIX_NV 0x0BA6 -#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36 -#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3 -#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4 -#define GL_PATH_PROJECTION_MATRIX_NV 0x0BA7 -#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38 -#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4 -#define GL_FRAGMENT_INPUT_NV 0x936D -typedef GLuint (APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range); -typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range); -typedef GLboolean (APIENTRYP PFNGLISPATHNVPROC) (GLuint path); -typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); -typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords); -typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); -typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords); -typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void *pathString); -typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights); -typedef void (APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath); -typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); -typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues); -typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value); -typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value); -typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value); -typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value); -typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray); -typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask); -typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units); -typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask); -typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask); -typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues); -typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues); -typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func); -typedef void (APIENTRYP PFNGLPATHCOLORGENNVPROC) (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs); -typedef void (APIENTRYP PFNGLPATHTEXGENNVPROC) (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs); -typedef void (APIENTRYP PFNGLPATHFOGGENNVPROC) (GLenum genMode); -typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode); -typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode); -typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value); -typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value); -typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands); -typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords); -typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray); -typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics); -typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics); -typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing); -typedef void (APIENTRYP PFNGLGETPATHCOLORGENIVNVPROC) (GLenum color, GLenum pname, GLint *value); -typedef void (APIENTRYP PFNGLGETPATHCOLORGENFVNVPROC) (GLenum color, GLenum pname, GLfloat *value); -typedef void (APIENTRYP PFNGLGETPATHTEXGENIVNVPROC) (GLenum texCoordSet, GLenum pname, GLint *value); -typedef void (APIENTRYP PFNGLGETPATHTEXGENFVNVPROC) (GLenum texCoordSet, GLenum pname, GLfloat *value); -typedef GLboolean (APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y); -typedef GLboolean (APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y); -typedef GLfloat (APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments); -typedef GLboolean (APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY); -typedef void (APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC) (GLenum matrixMode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXMULT3X2FNVPROC) (GLenum matrixMode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXMULT3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); -typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); -typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask, GLenum coverMode); -typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC) (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount[2]); -typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -typedef GLenum (APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -typedef void (APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC) (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs); -typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLuint APIENTRY glGenPathsNV (GLsizei range); -GLAPI void APIENTRY glDeletePathsNV (GLuint path, GLsizei range); -GLAPI GLboolean APIENTRY glIsPathNV (GLuint path); -GLAPI void APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); -GLAPI void APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords); -GLAPI void APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); -GLAPI void APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords); -GLAPI void APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const void *pathString); -GLAPI void APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -GLAPI void APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -GLAPI void APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights); -GLAPI void APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath); -GLAPI void APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); -GLAPI void APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues); -GLAPI void APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value); -GLAPI void APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value); -GLAPI void APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value); -GLAPI void APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value); -GLAPI void APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray); -GLAPI void APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask); -GLAPI void APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units); -GLAPI void APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask); -GLAPI void APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask); -GLAPI void APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues); -GLAPI void APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues); -GLAPI void APIENTRY glPathCoverDepthFuncNV (GLenum func); -GLAPI void APIENTRY glPathColorGenNV (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs); -GLAPI void APIENTRY glPathTexGenNV (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs); -GLAPI void APIENTRY glPathFogGenNV (GLenum genMode); -GLAPI void APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode); -GLAPI void APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode); -GLAPI void APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -GLAPI void APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -GLAPI void APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value); -GLAPI void APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value); -GLAPI void APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands); -GLAPI void APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords); -GLAPI void APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray); -GLAPI void APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics); -GLAPI void APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics); -GLAPI void APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing); -GLAPI void APIENTRY glGetPathColorGenivNV (GLenum color, GLenum pname, GLint *value); -GLAPI void APIENTRY glGetPathColorGenfvNV (GLenum color, GLenum pname, GLfloat *value); -GLAPI void APIENTRY glGetPathTexGenivNV (GLenum texCoordSet, GLenum pname, GLint *value); -GLAPI void APIENTRY glGetPathTexGenfvNV (GLenum texCoordSet, GLenum pname, GLfloat *value); -GLAPI GLboolean APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y); -GLAPI GLboolean APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y); -GLAPI GLfloat APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments); -GLAPI GLboolean APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY); -GLAPI void APIENTRY glMatrixLoad3x2fNV (GLenum matrixMode, const GLfloat *m); -GLAPI void APIENTRY glMatrixLoad3x3fNV (GLenum matrixMode, const GLfloat *m); -GLAPI void APIENTRY glMatrixLoadTranspose3x3fNV (GLenum matrixMode, const GLfloat *m); -GLAPI void APIENTRY glMatrixMult3x2fNV (GLenum matrixMode, const GLfloat *m); -GLAPI void APIENTRY glMatrixMult3x3fNV (GLenum matrixMode, const GLfloat *m); -GLAPI void APIENTRY glMatrixMultTranspose3x3fNV (GLenum matrixMode, const GLfloat *m); -GLAPI void APIENTRY glStencilThenCoverFillPathNV (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); -GLAPI void APIENTRY glStencilThenCoverStrokePathNV (GLuint path, GLint reference, GLuint mask, GLenum coverMode); -GLAPI void APIENTRY glStencilThenCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -GLAPI void APIENTRY glStencilThenCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -GLAPI GLenum APIENTRY glPathGlyphIndexRangeNV (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount[2]); -GLAPI GLenum APIENTRY glPathGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -GLAPI GLenum APIENTRY glPathMemoryGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -GLAPI void APIENTRY glProgramPathFragmentInputGenNV (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs); -GLAPI void APIENTRY glGetProgramResourcefvNV (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLfloat *params); -#endif -#endif /* GL_NV_path_rendering */ - -#ifndef GL_NV_pixel_data_range -#define GL_NV_pixel_data_range 1 -#define GL_WRITE_PIXEL_DATA_RANGE_NV 0x8878 -#define GL_READ_PIXEL_DATA_RANGE_NV 0x8879 -#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A -#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B -#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C -#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D -typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, const void *pointer); -typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPixelDataRangeNV (GLenum target, GLsizei length, const void *pointer); -GLAPI void APIENTRY glFlushPixelDataRangeNV (GLenum target); -#endif -#endif /* GL_NV_pixel_data_range */ - -#ifndef GL_NV_point_sprite -#define GL_NV_point_sprite 1 -#define GL_POINT_SPRITE_NV 0x8861 -#define GL_COORD_REPLACE_NV 0x8862 -#define GL_POINT_SPRITE_R_MODE_NV 0x8863 -typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPointParameteriNV (GLenum pname, GLint param); -GLAPI void APIENTRY glPointParameterivNV (GLenum pname, const GLint *params); -#endif -#endif /* GL_NV_point_sprite */ - -#ifndef GL_NV_present_video -#define GL_NV_present_video 1 -#define GL_FRAME_NV 0x8E26 -#define GL_FIELDS_NV 0x8E27 -#define GL_CURRENT_TIME_NV 0x8E28 -#define GL_NUM_FILL_STREAMS_NV 0x8E29 -#define GL_PRESENT_TIME_NV 0x8E2A -#define GL_PRESENT_DURATION_NV 0x8E2B -typedef void (APIENTRYP PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); -typedef void (APIENTRYP PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3); -typedef void (APIENTRYP PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT *params); -typedef void (APIENTRYP PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPresentFrameKeyedNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); -GLAPI void APIENTRY glPresentFrameDualFillNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3); -GLAPI void APIENTRY glGetVideoivNV (GLuint video_slot, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVideouivNV (GLuint video_slot, GLenum pname, GLuint *params); -GLAPI void APIENTRY glGetVideoi64vNV (GLuint video_slot, GLenum pname, GLint64EXT *params); -GLAPI void APIENTRY glGetVideoui64vNV (GLuint video_slot, GLenum pname, GLuint64EXT *params); -#endif -#endif /* GL_NV_present_video */ - -#ifndef GL_NV_primitive_restart -#define GL_NV_primitive_restart 1 -#define GL_PRIMITIVE_RESTART_NV 0x8558 -#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559 -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void); -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPrimitiveRestartNV (void); -GLAPI void APIENTRY glPrimitiveRestartIndexNV (GLuint index); -#endif -#endif /* GL_NV_primitive_restart */ - -#ifndef GL_NV_register_combiners -#define GL_NV_register_combiners 1 -#define GL_REGISTER_COMBINERS_NV 0x8522 -#define GL_VARIABLE_A_NV 0x8523 -#define GL_VARIABLE_B_NV 0x8524 -#define GL_VARIABLE_C_NV 0x8525 -#define GL_VARIABLE_D_NV 0x8526 -#define GL_VARIABLE_E_NV 0x8527 -#define GL_VARIABLE_F_NV 0x8528 -#define GL_VARIABLE_G_NV 0x8529 -#define GL_CONSTANT_COLOR0_NV 0x852A -#define GL_CONSTANT_COLOR1_NV 0x852B -#define GL_SPARE0_NV 0x852E -#define GL_SPARE1_NV 0x852F -#define GL_DISCARD_NV 0x8530 -#define GL_E_TIMES_F_NV 0x8531 -#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532 -#define GL_UNSIGNED_IDENTITY_NV 0x8536 -#define GL_UNSIGNED_INVERT_NV 0x8537 -#define GL_EXPAND_NORMAL_NV 0x8538 -#define GL_EXPAND_NEGATE_NV 0x8539 -#define GL_HALF_BIAS_NORMAL_NV 0x853A -#define GL_HALF_BIAS_NEGATE_NV 0x853B -#define GL_SIGNED_IDENTITY_NV 0x853C -#define GL_SIGNED_NEGATE_NV 0x853D -#define GL_SCALE_BY_TWO_NV 0x853E -#define GL_SCALE_BY_FOUR_NV 0x853F -#define GL_SCALE_BY_ONE_HALF_NV 0x8540 -#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541 -#define GL_COMBINER_INPUT_NV 0x8542 -#define GL_COMBINER_MAPPING_NV 0x8543 -#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544 -#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545 -#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546 -#define GL_COMBINER_MUX_SUM_NV 0x8547 -#define GL_COMBINER_SCALE_NV 0x8548 -#define GL_COMBINER_BIAS_NV 0x8549 -#define GL_COMBINER_AB_OUTPUT_NV 0x854A -#define GL_COMBINER_CD_OUTPUT_NV 0x854B -#define GL_COMBINER_SUM_OUTPUT_NV 0x854C -#define GL_MAX_GENERAL_COMBINERS_NV 0x854D -#define GL_NUM_GENERAL_COMBINERS_NV 0x854E -#define GL_COLOR_SUM_CLAMP_NV 0x854F -#define GL_COMBINER0_NV 0x8550 -#define GL_COMBINER1_NV 0x8551 -#define GL_COMBINER2_NV 0x8552 -#define GL_COMBINER3_NV 0x8553 -#define GL_COMBINER4_NV 0x8554 -#define GL_COMBINER5_NV 0x8555 -#define GL_COMBINER6_NV 0x8556 -#define GL_COMBINER7_NV 0x8557 -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); -typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCombinerParameterfvNV (GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glCombinerParameterfNV (GLenum pname, GLfloat param); -GLAPI void APIENTRY glCombinerParameterivNV (GLenum pname, const GLint *params); -GLAPI void APIENTRY glCombinerParameteriNV (GLenum pname, GLint param); -GLAPI void APIENTRY glCombinerInputNV (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -GLAPI void APIENTRY glCombinerOutputNV (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); -GLAPI void APIENTRY glFinalCombinerInputNV (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -GLAPI void APIENTRY glGetCombinerInputParameterfvNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetCombinerInputParameterivNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetCombinerOutputParameterfvNV (GLenum stage, GLenum portion, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetCombinerOutputParameterivNV (GLenum stage, GLenum portion, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV (GLenum variable, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV (GLenum variable, GLenum pname, GLint *params); -#endif -#endif /* GL_NV_register_combiners */ - -#ifndef GL_NV_register_combiners2 -#define GL_NV_register_combiners2 1 -#define GL_PER_STAGE_CONSTANTS_NV 0x8535 -typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCombinerStageParameterfvNV (GLenum stage, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glGetCombinerStageParameterfvNV (GLenum stage, GLenum pname, GLfloat *params); -#endif -#endif /* GL_NV_register_combiners2 */ - -#ifndef GL_NV_shader_atomic_counters -#define GL_NV_shader_atomic_counters 1 -#endif /* GL_NV_shader_atomic_counters */ - -#ifndef GL_NV_shader_atomic_float -#define GL_NV_shader_atomic_float 1 -#endif /* GL_NV_shader_atomic_float */ - -#ifndef GL_NV_shader_atomic_int64 -#define GL_NV_shader_atomic_int64 1 -#endif /* GL_NV_shader_atomic_int64 */ - -#ifndef GL_NV_shader_buffer_load -#define GL_NV_shader_buffer_load 1 -#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D -#define GL_GPU_ADDRESS_NV 0x8F34 -#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35 -typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access); -typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target); -typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target); -typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access); -typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer); -typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params); -typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result); -typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value); -typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMakeBufferResidentNV (GLenum target, GLenum access); -GLAPI void APIENTRY glMakeBufferNonResidentNV (GLenum target); -GLAPI GLboolean APIENTRY glIsBufferResidentNV (GLenum target); -GLAPI void APIENTRY glMakeNamedBufferResidentNV (GLuint buffer, GLenum access); -GLAPI void APIENTRY glMakeNamedBufferNonResidentNV (GLuint buffer); -GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV (GLuint buffer); -GLAPI void APIENTRY glGetBufferParameterui64vNV (GLenum target, GLenum pname, GLuint64EXT *params); -GLAPI void APIENTRY glGetNamedBufferParameterui64vNV (GLuint buffer, GLenum pname, GLuint64EXT *params); -GLAPI void APIENTRY glGetIntegerui64vNV (GLenum value, GLuint64EXT *result); -GLAPI void APIENTRY glUniformui64NV (GLint location, GLuint64EXT value); -GLAPI void APIENTRY glUniformui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI void APIENTRY glProgramUniformui64NV (GLuint program, GLint location, GLuint64EXT value); -GLAPI void APIENTRY glProgramUniformui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -#endif -#endif /* GL_NV_shader_buffer_load */ - -#ifndef GL_NV_shader_buffer_store -#define GL_NV_shader_buffer_store 1 -#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010 -#endif /* GL_NV_shader_buffer_store */ - -#ifndef GL_NV_shader_storage_buffer_object -#define GL_NV_shader_storage_buffer_object 1 -#endif /* GL_NV_shader_storage_buffer_object */ - -#ifndef GL_NV_shader_thread_group -#define GL_NV_shader_thread_group 1 -#define GL_WARP_SIZE_NV 0x9339 -#define GL_WARPS_PER_SM_NV 0x933A -#define GL_SM_COUNT_NV 0x933B -#endif /* GL_NV_shader_thread_group */ - -#ifndef GL_NV_shader_thread_shuffle -#define GL_NV_shader_thread_shuffle 1 -#endif /* GL_NV_shader_thread_shuffle */ - -#ifndef GL_NV_tessellation_program5 -#define GL_NV_tessellation_program5 1 -#define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV 0x86D8 -#define GL_TESS_CONTROL_PROGRAM_NV 0x891E -#define GL_TESS_EVALUATION_PROGRAM_NV 0x891F -#define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74 -#define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75 -#endif /* GL_NV_tessellation_program5 */ - -#ifndef GL_NV_texgen_emboss -#define GL_NV_texgen_emboss 1 -#define GL_EMBOSS_LIGHT_NV 0x855D -#define GL_EMBOSS_CONSTANT_NV 0x855E -#define GL_EMBOSS_MAP_NV 0x855F -#endif /* GL_NV_texgen_emboss */ - -#ifndef GL_NV_texgen_reflection -#define GL_NV_texgen_reflection 1 -#define GL_NORMAL_MAP_NV 0x8511 -#define GL_REFLECTION_MAP_NV 0x8512 -#endif /* GL_NV_texgen_reflection */ - -#ifndef GL_NV_texture_barrier -#define GL_NV_texture_barrier 1 -typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTextureBarrierNV (void); -#endif -#endif /* GL_NV_texture_barrier */ - -#ifndef GL_NV_texture_compression_vtc -#define GL_NV_texture_compression_vtc 1 -#endif /* GL_NV_texture_compression_vtc */ - -#ifndef GL_NV_texture_env_combine4 -#define GL_NV_texture_env_combine4 1 -#define GL_COMBINE4_NV 0x8503 -#define GL_SOURCE3_RGB_NV 0x8583 -#define GL_SOURCE3_ALPHA_NV 0x858B -#define GL_OPERAND3_RGB_NV 0x8593 -#define GL_OPERAND3_ALPHA_NV 0x859B -#endif /* GL_NV_texture_env_combine4 */ - -#ifndef GL_NV_texture_expand_normal -#define GL_NV_texture_expand_normal 1 -#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F -#endif /* GL_NV_texture_expand_normal */ - -#ifndef GL_NV_texture_multisample -#define GL_NV_texture_multisample 1 -#define GL_TEXTURE_COVERAGE_SAMPLES_NV 0x9045 -#define GL_TEXTURE_COLOR_SAMPLES_NV 0x9046 -typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexImage2DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -GLAPI void APIENTRY glTexImage3DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -GLAPI void APIENTRY glTextureImage2DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -GLAPI void APIENTRY glTextureImage3DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -GLAPI void APIENTRY glTextureImage2DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -GLAPI void APIENTRY glTextureImage3DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -#endif -#endif /* GL_NV_texture_multisample */ - -#ifndef GL_NV_texture_rectangle -#define GL_NV_texture_rectangle 1 -#define GL_TEXTURE_RECTANGLE_NV 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8 -#endif /* GL_NV_texture_rectangle */ - -#ifndef GL_NV_texture_shader -#define GL_NV_texture_shader 1 -#define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C -#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D -#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E -#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9 -#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA -#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB -#define GL_DSDT_MAG_INTENSITY_NV 0x86DC -#define GL_SHADER_CONSISTENT_NV 0x86DD -#define GL_TEXTURE_SHADER_NV 0x86DE -#define GL_SHADER_OPERATION_NV 0x86DF -#define GL_CULL_MODES_NV 0x86E0 -#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1 -#define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2 -#define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3 -#define GL_OFFSET_TEXTURE_2D_MATRIX_NV 0x86E1 -#define GL_OFFSET_TEXTURE_2D_SCALE_NV 0x86E2 -#define GL_OFFSET_TEXTURE_2D_BIAS_NV 0x86E3 -#define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4 -#define GL_CONST_EYE_NV 0x86E5 -#define GL_PASS_THROUGH_NV 0x86E6 -#define GL_CULL_FRAGMENT_NV 0x86E7 -#define GL_OFFSET_TEXTURE_2D_NV 0x86E8 -#define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9 -#define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA -#define GL_DOT_PRODUCT_NV 0x86EC -#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED -#define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE -#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0 -#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1 -#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2 -#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3 -#define GL_HILO_NV 0x86F4 -#define GL_DSDT_NV 0x86F5 -#define GL_DSDT_MAG_NV 0x86F6 -#define GL_DSDT_MAG_VIB_NV 0x86F7 -#define GL_HILO16_NV 0x86F8 -#define GL_SIGNED_HILO_NV 0x86F9 -#define GL_SIGNED_HILO16_NV 0x86FA -#define GL_SIGNED_RGBA_NV 0x86FB -#define GL_SIGNED_RGBA8_NV 0x86FC -#define GL_SIGNED_RGB_NV 0x86FE -#define GL_SIGNED_RGB8_NV 0x86FF -#define GL_SIGNED_LUMINANCE_NV 0x8701 -#define GL_SIGNED_LUMINANCE8_NV 0x8702 -#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703 -#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704 -#define GL_SIGNED_ALPHA_NV 0x8705 -#define GL_SIGNED_ALPHA8_NV 0x8706 -#define GL_SIGNED_INTENSITY_NV 0x8707 -#define GL_SIGNED_INTENSITY8_NV 0x8708 -#define GL_DSDT8_NV 0x8709 -#define GL_DSDT8_MAG8_NV 0x870A -#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B -#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C -#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D -#define GL_HI_SCALE_NV 0x870E -#define GL_LO_SCALE_NV 0x870F -#define GL_DS_SCALE_NV 0x8710 -#define GL_DT_SCALE_NV 0x8711 -#define GL_MAGNITUDE_SCALE_NV 0x8712 -#define GL_VIBRANCE_SCALE_NV 0x8713 -#define GL_HI_BIAS_NV 0x8714 -#define GL_LO_BIAS_NV 0x8715 -#define GL_DS_BIAS_NV 0x8716 -#define GL_DT_BIAS_NV 0x8717 -#define GL_MAGNITUDE_BIAS_NV 0x8718 -#define GL_VIBRANCE_BIAS_NV 0x8719 -#define GL_TEXTURE_BORDER_VALUES_NV 0x871A -#define GL_TEXTURE_HI_SIZE_NV 0x871B -#define GL_TEXTURE_LO_SIZE_NV 0x871C -#define GL_TEXTURE_DS_SIZE_NV 0x871D -#define GL_TEXTURE_DT_SIZE_NV 0x871E -#define GL_TEXTURE_MAG_SIZE_NV 0x871F -#endif /* GL_NV_texture_shader */ - -#ifndef GL_NV_texture_shader2 -#define GL_NV_texture_shader2 1 -#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF -#endif /* GL_NV_texture_shader2 */ - -#ifndef GL_NV_texture_shader3 -#define GL_NV_texture_shader3 1 -#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850 -#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851 -#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852 -#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853 -#define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854 -#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855 -#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856 -#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857 -#define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858 -#define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859 -#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A -#define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B -#define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C -#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D -#define GL_HILO8_NV 0x885E -#define GL_SIGNED_HILO8_NV 0x885F -#define GL_FORCE_BLUE_TO_ONE_NV 0x8860 -#endif /* GL_NV_texture_shader3 */ - -#ifndef GL_NV_transform_feedback -#define GL_NV_transform_feedback 1 -#define GL_BACK_PRIMARY_COLOR_NV 0x8C77 -#define GL_BACK_SECONDARY_COLOR_NV 0x8C78 -#define GL_TEXTURE_COORD_NV 0x8C79 -#define GL_CLIP_DISTANCE_NV 0x8C7A -#define GL_VERTEX_ID_NV 0x8C7B -#define GL_PRIMITIVE_ID_NV 0x8C7C -#define GL_GENERIC_ATTRIB_NV 0x8C7D -#define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV 0x8C7E -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80 -#define GL_ACTIVE_VARYINGS_NV 0x8C81 -#define GL_ACTIVE_VARYING_MAX_LENGTH_NV 0x8C82 -#define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85 -#define GL_TRANSFORM_FEEDBACK_RECORD_NV 0x8C86 -#define GL_PRIMITIVES_GENERATED_NV 0x8C87 -#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88 -#define GL_RASTERIZER_DISCARD_NV 0x8C89 -#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B -#define GL_INTERLEAVED_ATTRIBS_NV 0x8C8C -#define GL_SEPARATE_ATTRIBS_NV 0x8C8D -#define GL_TRANSFORM_FEEDBACK_BUFFER_NV 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F -#define GL_LAYER_NV 0x8DAA -#define GL_NEXT_BUFFER_NV -2 -#define GL_SKIP_COMPONENTS4_NV -3 -#define GL_SKIP_COMPONENTS3_NV -4 -#define GL_SKIP_COMPONENTS2_NV -5 -#define GL_SKIP_COMPONENTS1_NV -6 -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode); -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC) (void); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLsizei count, const GLint *attribs, GLenum bufferMode); -typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); -typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC) (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginTransformFeedbackNV (GLenum primitiveMode); -GLAPI void APIENTRY glEndTransformFeedbackNV (void); -GLAPI void APIENTRY glTransformFeedbackAttribsNV (GLsizei count, const GLint *attribs, GLenum bufferMode); -GLAPI void APIENTRY glBindBufferRangeNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI void APIENTRY glBindBufferOffsetNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -GLAPI void APIENTRY glBindBufferBaseNV (GLenum target, GLuint index, GLuint buffer); -GLAPI void APIENTRY glTransformFeedbackVaryingsNV (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); -GLAPI void APIENTRY glActiveVaryingNV (GLuint program, const GLchar *name); -GLAPI GLint APIENTRY glGetVaryingLocationNV (GLuint program, const GLchar *name); -GLAPI void APIENTRY glGetActiveVaryingNV (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -GLAPI void APIENTRY glGetTransformFeedbackVaryingNV (GLuint program, GLuint index, GLint *location); -GLAPI void APIENTRY glTransformFeedbackStreamAttribsNV (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode); -#endif -#endif /* GL_NV_transform_feedback */ - -#ifndef GL_NV_transform_feedback2 -#define GL_NV_transform_feedback2 1 -#define GL_TRANSFORM_FEEDBACK_NV 0x8E22 -#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23 -#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24 -#define GL_TRANSFORM_FEEDBACK_BINDING_NV 0x8E25 -typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint *ids); -typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id); -typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void); -typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void); -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindTransformFeedbackNV (GLenum target, GLuint id); -GLAPI void APIENTRY glDeleteTransformFeedbacksNV (GLsizei n, const GLuint *ids); -GLAPI void APIENTRY glGenTransformFeedbacksNV (GLsizei n, GLuint *ids); -GLAPI GLboolean APIENTRY glIsTransformFeedbackNV (GLuint id); -GLAPI void APIENTRY glPauseTransformFeedbackNV (void); -GLAPI void APIENTRY glResumeTransformFeedbackNV (void); -GLAPI void APIENTRY glDrawTransformFeedbackNV (GLenum mode, GLuint id); -#endif -#endif /* GL_NV_transform_feedback2 */ - -#ifndef GL_NV_vdpau_interop -#define GL_NV_vdpau_interop 1 -typedef GLintptr GLvdpauSurfaceNV; -#define GL_SURFACE_STATE_NV 0x86EB -#define GL_SURFACE_REGISTERED_NV 0x86FD -#define GL_SURFACE_MAPPED_NV 0x8700 -#define GL_WRITE_DISCARD_NV 0x88BE -typedef void (APIENTRYP PFNGLVDPAUINITNVPROC) (const void *vdpDevice, const void *getProcAddress); -typedef void (APIENTRYP PFNGLVDPAUFININVPROC) (void); -typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTERVIDEOSURFACENVPROC) (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); -typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC) (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); -typedef GLboolean (APIENTRYP PFNGLVDPAUISSURFACENVPROC) (GLvdpauSurfaceNV surface); -typedef void (APIENTRYP PFNGLVDPAUUNREGISTERSURFACENVPROC) (GLvdpauSurfaceNV surface); -typedef void (APIENTRYP PFNGLVDPAUGETSURFACEIVNVPROC) (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -typedef void (APIENTRYP PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access); -typedef void (APIENTRYP PFNGLVDPAUMAPSURFACESNVPROC) (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces); -typedef void (APIENTRYP PFNGLVDPAUUNMAPSURFACESNVPROC) (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVDPAUInitNV (const void *vdpDevice, const void *getProcAddress); -GLAPI void APIENTRY glVDPAUFiniNV (void); -GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterVideoSurfaceNV (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); -GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterOutputSurfaceNV (const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); -GLAPI GLboolean APIENTRY glVDPAUIsSurfaceNV (GLvdpauSurfaceNV surface); -GLAPI void APIENTRY glVDPAUUnregisterSurfaceNV (GLvdpauSurfaceNV surface); -GLAPI void APIENTRY glVDPAUGetSurfaceivNV (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -GLAPI void APIENTRY glVDPAUSurfaceAccessNV (GLvdpauSurfaceNV surface, GLenum access); -GLAPI void APIENTRY glVDPAUMapSurfacesNV (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces); -GLAPI void APIENTRY glVDPAUUnmapSurfacesNV (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces); -#endif -#endif /* GL_NV_vdpau_interop */ - -#ifndef GL_NV_vertex_array_range -#define GL_NV_vertex_array_range 1 -#define GL_VERTEX_ARRAY_RANGE_NV 0x851D -#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E -#define GL_VERTEX_ARRAY_RANGE_VALID_NV 0x851F -#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520 -#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521 -typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); -typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const void *pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFlushVertexArrayRangeNV (void); -GLAPI void APIENTRY glVertexArrayRangeNV (GLsizei length, const void *pointer); -#endif -#endif /* GL_NV_vertex_array_range */ - -#ifndef GL_NV_vertex_array_range2 -#define GL_NV_vertex_array_range2 1 -#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 -#endif /* GL_NV_vertex_array_range2 */ - -#ifndef GL_NV_vertex_attrib_integer_64bit -#define GL_NV_vertex_attrib_integer_64bit 1 -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT *v); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT *params); -typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribL1i64NV (GLuint index, GLint64EXT x); -GLAPI void APIENTRY glVertexAttribL2i64NV (GLuint index, GLint64EXT x, GLint64EXT y); -GLAPI void APIENTRY glVertexAttribL3i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); -GLAPI void APIENTRY glVertexAttribL4i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -GLAPI void APIENTRY glVertexAttribL1i64vNV (GLuint index, const GLint64EXT *v); -GLAPI void APIENTRY glVertexAttribL2i64vNV (GLuint index, const GLint64EXT *v); -GLAPI void APIENTRY glVertexAttribL3i64vNV (GLuint index, const GLint64EXT *v); -GLAPI void APIENTRY glVertexAttribL4i64vNV (GLuint index, const GLint64EXT *v); -GLAPI void APIENTRY glVertexAttribL1ui64NV (GLuint index, GLuint64EXT x); -GLAPI void APIENTRY glVertexAttribL2ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y); -GLAPI void APIENTRY glVertexAttribL3ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -GLAPI void APIENTRY glVertexAttribL4ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -GLAPI void APIENTRY glVertexAttribL1ui64vNV (GLuint index, const GLuint64EXT *v); -GLAPI void APIENTRY glVertexAttribL2ui64vNV (GLuint index, const GLuint64EXT *v); -GLAPI void APIENTRY glVertexAttribL3ui64vNV (GLuint index, const GLuint64EXT *v); -GLAPI void APIENTRY glVertexAttribL4ui64vNV (GLuint index, const GLuint64EXT *v); -GLAPI void APIENTRY glGetVertexAttribLi64vNV (GLuint index, GLenum pname, GLint64EXT *params); -GLAPI void APIENTRY glGetVertexAttribLui64vNV (GLuint index, GLenum pname, GLuint64EXT *params); -GLAPI void APIENTRY glVertexAttribLFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride); -#endif -#endif /* GL_NV_vertex_attrib_integer_64bit */ - -#ifndef GL_NV_vertex_buffer_unified_memory -#define GL_NV_vertex_buffer_unified_memory 1 -#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E -#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F -#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20 -#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21 -#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22 -#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23 -#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24 -#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25 -#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26 -#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27 -#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28 -#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29 -#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A -#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B -#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C -#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D -#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E -#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F -#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30 -#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31 -#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32 -#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33 -#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40 -#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41 -#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42 -typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); -typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); -typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride); -typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); -typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride); -typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); -typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride); -typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); -typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride); -typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); -typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); -typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBufferAddressRangeNV (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); -GLAPI void APIENTRY glVertexFormatNV (GLint size, GLenum type, GLsizei stride); -GLAPI void APIENTRY glNormalFormatNV (GLenum type, GLsizei stride); -GLAPI void APIENTRY glColorFormatNV (GLint size, GLenum type, GLsizei stride); -GLAPI void APIENTRY glIndexFormatNV (GLenum type, GLsizei stride); -GLAPI void APIENTRY glTexCoordFormatNV (GLint size, GLenum type, GLsizei stride); -GLAPI void APIENTRY glEdgeFlagFormatNV (GLsizei stride); -GLAPI void APIENTRY glSecondaryColorFormatNV (GLint size, GLenum type, GLsizei stride); -GLAPI void APIENTRY glFogCoordFormatNV (GLenum type, GLsizei stride); -GLAPI void APIENTRY glVertexAttribFormatNV (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); -GLAPI void APIENTRY glVertexAttribIFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride); -GLAPI void APIENTRY glGetIntegerui64i_vNV (GLenum value, GLuint index, GLuint64EXT *result); -#endif -#endif /* GL_NV_vertex_buffer_unified_memory */ - -#ifndef GL_NV_vertex_program -#define GL_NV_vertex_program 1 -#define GL_VERTEX_PROGRAM_NV 0x8620 -#define GL_VERTEX_STATE_PROGRAM_NV 0x8621 -#define GL_ATTRIB_ARRAY_SIZE_NV 0x8623 -#define GL_ATTRIB_ARRAY_STRIDE_NV 0x8624 -#define GL_ATTRIB_ARRAY_TYPE_NV 0x8625 -#define GL_CURRENT_ATTRIB_NV 0x8626 -#define GL_PROGRAM_LENGTH_NV 0x8627 -#define GL_PROGRAM_STRING_NV 0x8628 -#define GL_MODELVIEW_PROJECTION_NV 0x8629 -#define GL_IDENTITY_NV 0x862A -#define GL_INVERSE_NV 0x862B -#define GL_TRANSPOSE_NV 0x862C -#define GL_INVERSE_TRANSPOSE_NV 0x862D -#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E -#define GL_MAX_TRACK_MATRICES_NV 0x862F -#define GL_MATRIX0_NV 0x8630 -#define GL_MATRIX1_NV 0x8631 -#define GL_MATRIX2_NV 0x8632 -#define GL_MATRIX3_NV 0x8633 -#define GL_MATRIX4_NV 0x8634 -#define GL_MATRIX5_NV 0x8635 -#define GL_MATRIX6_NV 0x8636 -#define GL_MATRIX7_NV 0x8637 -#define GL_CURRENT_MATRIX_STACK_DEPTH_NV 0x8640 -#define GL_CURRENT_MATRIX_NV 0x8641 -#define GL_VERTEX_PROGRAM_POINT_SIZE_NV 0x8642 -#define GL_VERTEX_PROGRAM_TWO_SIDE_NV 0x8643 -#define GL_PROGRAM_PARAMETER_NV 0x8644 -#define GL_ATTRIB_ARRAY_POINTER_NV 0x8645 -#define GL_PROGRAM_TARGET_NV 0x8646 -#define GL_PROGRAM_RESIDENT_NV 0x8647 -#define GL_TRACK_MATRIX_NV 0x8648 -#define GL_TRACK_MATRIX_TRANSFORM_NV 0x8649 -#define GL_VERTEX_PROGRAM_BINDING_NV 0x864A -#define GL_PROGRAM_ERROR_POSITION_NV 0x864B -#define GL_VERTEX_ATTRIB_ARRAY0_NV 0x8650 -#define GL_VERTEX_ATTRIB_ARRAY1_NV 0x8651 -#define GL_VERTEX_ATTRIB_ARRAY2_NV 0x8652 -#define GL_VERTEX_ATTRIB_ARRAY3_NV 0x8653 -#define GL_VERTEX_ATTRIB_ARRAY4_NV 0x8654 -#define GL_VERTEX_ATTRIB_ARRAY5_NV 0x8655 -#define GL_VERTEX_ATTRIB_ARRAY6_NV 0x8656 -#define GL_VERTEX_ATTRIB_ARRAY7_NV 0x8657 -#define GL_VERTEX_ATTRIB_ARRAY8_NV 0x8658 -#define GL_VERTEX_ATTRIB_ARRAY9_NV 0x8659 -#define GL_VERTEX_ATTRIB_ARRAY10_NV 0x865A -#define GL_VERTEX_ATTRIB_ARRAY11_NV 0x865B -#define GL_VERTEX_ATTRIB_ARRAY12_NV 0x865C -#define GL_VERTEX_ATTRIB_ARRAY13_NV 0x865D -#define GL_VERTEX_ATTRIB_ARRAY14_NV 0x865E -#define GL_VERTEX_ATTRIB_ARRAY15_NV 0x865F -#define GL_MAP1_VERTEX_ATTRIB0_4_NV 0x8660 -#define GL_MAP1_VERTEX_ATTRIB1_4_NV 0x8661 -#define GL_MAP1_VERTEX_ATTRIB2_4_NV 0x8662 -#define GL_MAP1_VERTEX_ATTRIB3_4_NV 0x8663 -#define GL_MAP1_VERTEX_ATTRIB4_4_NV 0x8664 -#define GL_MAP1_VERTEX_ATTRIB5_4_NV 0x8665 -#define GL_MAP1_VERTEX_ATTRIB6_4_NV 0x8666 -#define GL_MAP1_VERTEX_ATTRIB7_4_NV 0x8667 -#define GL_MAP1_VERTEX_ATTRIB8_4_NV 0x8668 -#define GL_MAP1_VERTEX_ATTRIB9_4_NV 0x8669 -#define GL_MAP1_VERTEX_ATTRIB10_4_NV 0x866A -#define GL_MAP1_VERTEX_ATTRIB11_4_NV 0x866B -#define GL_MAP1_VERTEX_ATTRIB12_4_NV 0x866C -#define GL_MAP1_VERTEX_ATTRIB13_4_NV 0x866D -#define GL_MAP1_VERTEX_ATTRIB14_4_NV 0x866E -#define GL_MAP1_VERTEX_ATTRIB15_4_NV 0x866F -#define GL_MAP2_VERTEX_ATTRIB0_4_NV 0x8670 -#define GL_MAP2_VERTEX_ATTRIB1_4_NV 0x8671 -#define GL_MAP2_VERTEX_ATTRIB2_4_NV 0x8672 -#define GL_MAP2_VERTEX_ATTRIB3_4_NV 0x8673 -#define GL_MAP2_VERTEX_ATTRIB4_4_NV 0x8674 -#define GL_MAP2_VERTEX_ATTRIB5_4_NV 0x8675 -#define GL_MAP2_VERTEX_ATTRIB6_4_NV 0x8676 -#define GL_MAP2_VERTEX_ATTRIB7_4_NV 0x8677 -#define GL_MAP2_VERTEX_ATTRIB8_4_NV 0x8678 -#define GL_MAP2_VERTEX_ATTRIB9_4_NV 0x8679 -#define GL_MAP2_VERTEX_ATTRIB10_4_NV 0x867A -#define GL_MAP2_VERTEX_ATTRIB11_4_NV 0x867B -#define GL_MAP2_VERTEX_ATTRIB12_4_NV 0x867C -#define GL_MAP2_VERTEX_ATTRIB13_4_NV 0x867D -#define GL_MAP2_VERTEX_ATTRIB14_4_NV 0x867E -#define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F -typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences); -typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); -typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params); -typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs); -typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program); -typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, void **pointer); -typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id); -typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); -typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLboolean APIENTRY glAreProgramsResidentNV (GLsizei n, const GLuint *programs, GLboolean *residences); -GLAPI void APIENTRY glBindProgramNV (GLenum target, GLuint id); -GLAPI void APIENTRY glDeleteProgramsNV (GLsizei n, const GLuint *programs); -GLAPI void APIENTRY glExecuteProgramNV (GLenum target, GLuint id, const GLfloat *params); -GLAPI void APIENTRY glGenProgramsNV (GLsizei n, GLuint *programs); -GLAPI void APIENTRY glGetProgramParameterdvNV (GLenum target, GLuint index, GLenum pname, GLdouble *params); -GLAPI void APIENTRY glGetProgramParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetProgramivNV (GLuint id, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetProgramStringNV (GLuint id, GLenum pname, GLubyte *program); -GLAPI void APIENTRY glGetTrackMatrixivNV (GLenum target, GLuint address, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVertexAttribdvNV (GLuint index, GLenum pname, GLdouble *params); -GLAPI void APIENTRY glGetVertexAttribfvNV (GLuint index, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetVertexAttribivNV (GLuint index, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVertexAttribPointervNV (GLuint index, GLenum pname, void **pointer); -GLAPI GLboolean APIENTRY glIsProgramNV (GLuint id); -GLAPI void APIENTRY glLoadProgramNV (GLenum target, GLuint id, GLsizei len, const GLubyte *program); -GLAPI void APIENTRY glProgramParameter4dNV (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glProgramParameter4dvNV (GLenum target, GLuint index, const GLdouble *v); -GLAPI void APIENTRY glProgramParameter4fNV (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glProgramParameter4fvNV (GLenum target, GLuint index, const GLfloat *v); -GLAPI void APIENTRY glProgramParameters4dvNV (GLenum target, GLuint index, GLsizei count, const GLdouble *v); -GLAPI void APIENTRY glProgramParameters4fvNV (GLenum target, GLuint index, GLsizei count, const GLfloat *v); -GLAPI void APIENTRY glRequestResidentProgramsNV (GLsizei n, const GLuint *programs); -GLAPI void APIENTRY glTrackMatrixNV (GLenum target, GLuint address, GLenum matrix, GLenum transform); -GLAPI void APIENTRY glVertexAttribPointerNV (GLuint index, GLint fsize, GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glVertexAttrib1dNV (GLuint index, GLdouble x); -GLAPI void APIENTRY glVertexAttrib1dvNV (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib1fNV (GLuint index, GLfloat x); -GLAPI void APIENTRY glVertexAttrib1fvNV (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib1sNV (GLuint index, GLshort x); -GLAPI void APIENTRY glVertexAttrib1svNV (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib2dNV (GLuint index, GLdouble x, GLdouble y); -GLAPI void APIENTRY glVertexAttrib2dvNV (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib2fNV (GLuint index, GLfloat x, GLfloat y); -GLAPI void APIENTRY glVertexAttrib2fvNV (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib2sNV (GLuint index, GLshort x, GLshort y); -GLAPI void APIENTRY glVertexAttrib2svNV (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib3dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glVertexAttrib3dvNV (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib3fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glVertexAttrib3fvNV (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib3sNV (GLuint index, GLshort x, GLshort y, GLshort z); -GLAPI void APIENTRY glVertexAttrib3svNV (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glVertexAttrib4dvNV (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib4fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glVertexAttrib4fvNV (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib4sNV (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void APIENTRY glVertexAttrib4svNV (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4ubNV (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -GLAPI void APIENTRY glVertexAttrib4ubvNV (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttribs1dvNV (GLuint index, GLsizei count, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribs1fvNV (GLuint index, GLsizei count, const GLfloat *v); -GLAPI void APIENTRY glVertexAttribs1svNV (GLuint index, GLsizei count, const GLshort *v); -GLAPI void APIENTRY glVertexAttribs2dvNV (GLuint index, GLsizei count, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribs2fvNV (GLuint index, GLsizei count, const GLfloat *v); -GLAPI void APIENTRY glVertexAttribs2svNV (GLuint index, GLsizei count, const GLshort *v); -GLAPI void APIENTRY glVertexAttribs3dvNV (GLuint index, GLsizei count, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribs3fvNV (GLuint index, GLsizei count, const GLfloat *v); -GLAPI void APIENTRY glVertexAttribs3svNV (GLuint index, GLsizei count, const GLshort *v); -GLAPI void APIENTRY glVertexAttribs4dvNV (GLuint index, GLsizei count, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribs4fvNV (GLuint index, GLsizei count, const GLfloat *v); -GLAPI void APIENTRY glVertexAttribs4svNV (GLuint index, GLsizei count, const GLshort *v); -GLAPI void APIENTRY glVertexAttribs4ubvNV (GLuint index, GLsizei count, const GLubyte *v); -#endif -#endif /* GL_NV_vertex_program */ - -#ifndef GL_NV_vertex_program1_1 -#define GL_NV_vertex_program1_1 1 -#endif /* GL_NV_vertex_program1_1 */ - -#ifndef GL_NV_vertex_program2 -#define GL_NV_vertex_program2 1 -#endif /* GL_NV_vertex_program2 */ - -#ifndef GL_NV_vertex_program2_option -#define GL_NV_vertex_program2_option 1 -#endif /* GL_NV_vertex_program2_option */ - -#ifndef GL_NV_vertex_program3 -#define GL_NV_vertex_program3 1 -#endif /* GL_NV_vertex_program3 */ - -#ifndef GL_NV_vertex_program4 -#define GL_NV_vertex_program4 1 -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribI1iEXT (GLuint index, GLint x); -GLAPI void APIENTRY glVertexAttribI2iEXT (GLuint index, GLint x, GLint y); -GLAPI void APIENTRY glVertexAttribI3iEXT (GLuint index, GLint x, GLint y, GLint z); -GLAPI void APIENTRY glVertexAttribI4iEXT (GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI void APIENTRY glVertexAttribI1uiEXT (GLuint index, GLuint x); -GLAPI void APIENTRY glVertexAttribI2uiEXT (GLuint index, GLuint x, GLuint y); -GLAPI void APIENTRY glVertexAttribI3uiEXT (GLuint index, GLuint x, GLuint y, GLuint z); -GLAPI void APIENTRY glVertexAttribI4uiEXT (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI void APIENTRY glVertexAttribI1ivEXT (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI2ivEXT (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI3ivEXT (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI4ivEXT (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI1uivEXT (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI2uivEXT (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI3uivEXT (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI4uivEXT (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI4bvEXT (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttribI4svEXT (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttribI4ubvEXT (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttribI4usvEXT (GLuint index, const GLushort *v); -GLAPI void APIENTRY glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI void APIENTRY glGetVertexAttribIivEXT (GLuint index, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVertexAttribIuivEXT (GLuint index, GLenum pname, GLuint *params); -#endif -#endif /* GL_NV_vertex_program4 */ - -#ifndef GL_NV_video_capture -#define GL_NV_video_capture 1 -#define GL_VIDEO_BUFFER_NV 0x9020 -#define GL_VIDEO_BUFFER_BINDING_NV 0x9021 -#define GL_FIELD_UPPER_NV 0x9022 -#define GL_FIELD_LOWER_NV 0x9023 -#define GL_NUM_VIDEO_CAPTURE_STREAMS_NV 0x9024 -#define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025 -#define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026 -#define GL_LAST_VIDEO_CAPTURE_STATUS_NV 0x9027 -#define GL_VIDEO_BUFFER_PITCH_NV 0x9028 -#define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029 -#define GL_VIDEO_COLOR_CONVERSION_MAX_NV 0x902A -#define GL_VIDEO_COLOR_CONVERSION_MIN_NV 0x902B -#define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C -#define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D -#define GL_PARTIAL_SUCCESS_NV 0x902E -#define GL_SUCCESS_NV 0x902F -#define GL_FAILURE_NV 0x9030 -#define GL_YCBYCR8_422_NV 0x9031 -#define GL_YCBAYCR8A_4224_NV 0x9032 -#define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV 0x9033 -#define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034 -#define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV 0x9035 -#define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036 -#define GL_Z4Y12Z4CB12Z4CR12_444_NV 0x9037 -#define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV 0x9038 -#define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV 0x9039 -#define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A -#define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B -#define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C -typedef void (APIENTRYP PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot); -typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset); -typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture); -typedef void (APIENTRYP PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot); -typedef void (APIENTRYP PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params); -typedef GLenum (APIENTRYP PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time); -typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginVideoCaptureNV (GLuint video_capture_slot); -GLAPI void APIENTRY glBindVideoCaptureStreamBufferNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset); -GLAPI void APIENTRY glBindVideoCaptureStreamTextureNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture); -GLAPI void APIENTRY glEndVideoCaptureNV (GLuint video_capture_slot); -GLAPI void APIENTRY glGetVideoCaptureivNV (GLuint video_capture_slot, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVideoCaptureStreamivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVideoCaptureStreamfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetVideoCaptureStreamdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params); -GLAPI GLenum APIENTRY glVideoCaptureNV (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time); -GLAPI void APIENTRY glVideoCaptureStreamParameterivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params); -GLAPI void APIENTRY glVideoCaptureStreamParameterfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glVideoCaptureStreamParameterdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params); -#endif -#endif /* GL_NV_video_capture */ - -#ifndef GL_OML_interlace -#define GL_OML_interlace 1 -#define GL_INTERLACE_OML 0x8980 -#define GL_INTERLACE_READ_OML 0x8981 -#endif /* GL_OML_interlace */ - -#ifndef GL_OML_resample -#define GL_OML_resample 1 -#define GL_PACK_RESAMPLE_OML 0x8984 -#define GL_UNPACK_RESAMPLE_OML 0x8985 -#define GL_RESAMPLE_REPLICATE_OML 0x8986 -#define GL_RESAMPLE_ZERO_FILL_OML 0x8987 -#define GL_RESAMPLE_AVERAGE_OML 0x8988 -#define GL_RESAMPLE_DECIMATE_OML 0x8989 -#endif /* GL_OML_resample */ - -#ifndef GL_OML_subsample -#define GL_OML_subsample 1 -#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982 -#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983 -#endif /* GL_OML_subsample */ - -#ifndef GL_PGI_misc_hints -#define GL_PGI_misc_hints 1 -#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 0x1A1F8 -#define GL_CONSERVE_MEMORY_HINT_PGI 0x1A1FD -#define GL_RECLAIM_MEMORY_HINT_PGI 0x1A1FE -#define GL_NATIVE_GRAPHICS_HANDLE_PGI 0x1A202 -#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203 -#define GL_NATIVE_GRAPHICS_END_HINT_PGI 0x1A204 -#define GL_ALWAYS_FAST_HINT_PGI 0x1A20C -#define GL_ALWAYS_SOFT_HINT_PGI 0x1A20D -#define GL_ALLOW_DRAW_OBJ_HINT_PGI 0x1A20E -#define GL_ALLOW_DRAW_WIN_HINT_PGI 0x1A20F -#define GL_ALLOW_DRAW_FRG_HINT_PGI 0x1A210 -#define GL_ALLOW_DRAW_MEM_HINT_PGI 0x1A211 -#define GL_STRICT_DEPTHFUNC_HINT_PGI 0x1A216 -#define GL_STRICT_LIGHTING_HINT_PGI 0x1A217 -#define GL_STRICT_SCISSOR_HINT_PGI 0x1A218 -#define GL_FULL_STIPPLE_HINT_PGI 0x1A219 -#define GL_CLIP_NEAR_HINT_PGI 0x1A220 -#define GL_CLIP_FAR_HINT_PGI 0x1A221 -#define GL_WIDE_LINE_HINT_PGI 0x1A222 -#define GL_BACK_NORMALS_HINT_PGI 0x1A223 -typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glHintPGI (GLenum target, GLint mode); -#endif -#endif /* GL_PGI_misc_hints */ - -#ifndef GL_PGI_vertex_hints -#define GL_PGI_vertex_hints 1 -#define GL_VERTEX_DATA_HINT_PGI 0x1A22A -#define GL_VERTEX_CONSISTENT_HINT_PGI 0x1A22B -#define GL_MATERIAL_SIDE_HINT_PGI 0x1A22C -#define GL_MAX_VERTEX_HINT_PGI 0x1A22D -#define GL_COLOR3_BIT_PGI 0x00010000 -#define GL_COLOR4_BIT_PGI 0x00020000 -#define GL_EDGEFLAG_BIT_PGI 0x00040000 -#define GL_INDEX_BIT_PGI 0x00080000 -#define GL_MAT_AMBIENT_BIT_PGI 0x00100000 -#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000 -#define GL_MAT_DIFFUSE_BIT_PGI 0x00400000 -#define GL_MAT_EMISSION_BIT_PGI 0x00800000 -#define GL_MAT_COLOR_INDEXES_BIT_PGI 0x01000000 -#define GL_MAT_SHININESS_BIT_PGI 0x02000000 -#define GL_MAT_SPECULAR_BIT_PGI 0x04000000 -#define GL_NORMAL_BIT_PGI 0x08000000 -#define GL_TEXCOORD1_BIT_PGI 0x10000000 -#define GL_TEXCOORD2_BIT_PGI 0x20000000 -#define GL_TEXCOORD3_BIT_PGI 0x40000000 -#define GL_TEXCOORD4_BIT_PGI 0x80000000 -#define GL_VERTEX23_BIT_PGI 0x00000004 -#define GL_VERTEX4_BIT_PGI 0x00000008 -#endif /* GL_PGI_vertex_hints */ - -#ifndef GL_REND_screen_coordinates -#define GL_REND_screen_coordinates 1 -#define GL_SCREEN_COORDINATES_REND 0x8490 -#define GL_INVERTED_SCREEN_W_REND 0x8491 -#endif /* GL_REND_screen_coordinates */ - -#ifndef GL_S3_s3tc -#define GL_S3_s3tc 1 -#define GL_RGB_S3TC 0x83A0 -#define GL_RGB4_S3TC 0x83A1 -#define GL_RGBA_S3TC 0x83A2 -#define GL_RGBA4_S3TC 0x83A3 -#define GL_RGBA_DXT5_S3TC 0x83A4 -#define GL_RGBA4_DXT5_S3TC 0x83A5 -#endif /* GL_S3_s3tc */ - -#ifndef GL_SGIS_detail_texture -#define GL_SGIS_detail_texture 1 -#define GL_DETAIL_TEXTURE_2D_SGIS 0x8095 -#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096 -#define GL_LINEAR_DETAIL_SGIS 0x8097 -#define GL_LINEAR_DETAIL_ALPHA_SGIS 0x8098 -#define GL_LINEAR_DETAIL_COLOR_SGIS 0x8099 -#define GL_DETAIL_TEXTURE_LEVEL_SGIS 0x809A -#define GL_DETAIL_TEXTURE_MODE_SGIS 0x809B -#define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C -typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); -typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDetailTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points); -GLAPI void APIENTRY glGetDetailTexFuncSGIS (GLenum target, GLfloat *points); -#endif -#endif /* GL_SGIS_detail_texture */ - -#ifndef GL_SGIS_fog_function -#define GL_SGIS_fog_function 1 -#define GL_FOG_FUNC_SGIS 0x812A -#define GL_FOG_FUNC_POINTS_SGIS 0x812B -#define GL_MAX_FOG_FUNC_POINTS_SGIS 0x812C -typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points); -typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat *points); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFogFuncSGIS (GLsizei n, const GLfloat *points); -GLAPI void APIENTRY glGetFogFuncSGIS (GLfloat *points); -#endif -#endif /* GL_SGIS_fog_function */ - -#ifndef GL_SGIS_generate_mipmap -#define GL_SGIS_generate_mipmap 1 -#define GL_GENERATE_MIPMAP_SGIS 0x8191 -#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 -#endif /* GL_SGIS_generate_mipmap */ - -#ifndef GL_SGIS_multisample -#define GL_SGIS_multisample 1 -#define GL_MULTISAMPLE_SGIS 0x809D -#define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F -#define GL_SAMPLE_MASK_SGIS 0x80A0 -#define GL_1PASS_SGIS 0x80A1 -#define GL_2PASS_0_SGIS 0x80A2 -#define GL_2PASS_1_SGIS 0x80A3 -#define GL_4PASS_0_SGIS 0x80A4 -#define GL_4PASS_1_SGIS 0x80A5 -#define GL_4PASS_2_SGIS 0x80A6 -#define GL_4PASS_3_SGIS 0x80A7 -#define GL_SAMPLE_BUFFERS_SGIS 0x80A8 -#define GL_SAMPLES_SGIS 0x80A9 -#define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA -#define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB -#define GL_SAMPLE_PATTERN_SGIS 0x80AC -typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); -typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSampleMaskSGIS (GLclampf value, GLboolean invert); -GLAPI void APIENTRY glSamplePatternSGIS (GLenum pattern); -#endif -#endif /* GL_SGIS_multisample */ - -#ifndef GL_SGIS_pixel_texture -#define GL_SGIS_pixel_texture 1 -#define GL_PIXEL_TEXTURE_SGIS 0x8353 -#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354 -#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355 -#define GL_PIXEL_GROUP_COLOR_SGIS 0x8356 -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPixelTexGenParameteriSGIS (GLenum pname, GLint param); -GLAPI void APIENTRY glPixelTexGenParameterivSGIS (GLenum pname, const GLint *params); -GLAPI void APIENTRY glPixelTexGenParameterfSGIS (GLenum pname, GLfloat param); -GLAPI void APIENTRY glPixelTexGenParameterfvSGIS (GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum pname, GLint *params); -GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum pname, GLfloat *params); -#endif -#endif /* GL_SGIS_pixel_texture */ - -#ifndef GL_SGIS_point_line_texgen -#define GL_SGIS_point_line_texgen 1 -#define GL_EYE_DISTANCE_TO_POINT_SGIS 0x81F0 -#define GL_OBJECT_DISTANCE_TO_POINT_SGIS 0x81F1 -#define GL_EYE_DISTANCE_TO_LINE_SGIS 0x81F2 -#define GL_OBJECT_DISTANCE_TO_LINE_SGIS 0x81F3 -#define GL_EYE_POINT_SGIS 0x81F4 -#define GL_OBJECT_POINT_SGIS 0x81F5 -#define GL_EYE_LINE_SGIS 0x81F6 -#define GL_OBJECT_LINE_SGIS 0x81F7 -#endif /* GL_SGIS_point_line_texgen */ - -#ifndef GL_SGIS_point_parameters -#define GL_SGIS_point_parameters 1 -#define GL_POINT_SIZE_MIN_SGIS 0x8126 -#define GL_POINT_SIZE_MAX_SGIS 0x8127 -#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128 -#define GL_DISTANCE_ATTENUATION_SGIS 0x8129 -typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPointParameterfSGIS (GLenum pname, GLfloat param); -GLAPI void APIENTRY glPointParameterfvSGIS (GLenum pname, const GLfloat *params); -#endif -#endif /* GL_SGIS_point_parameters */ - -#ifndef GL_SGIS_sharpen_texture -#define GL_SGIS_sharpen_texture 1 -#define GL_LINEAR_SHARPEN_SGIS 0x80AD -#define GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE -#define GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF -#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0 -typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); -typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSharpenTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points); -GLAPI void APIENTRY glGetSharpenTexFuncSGIS (GLenum target, GLfloat *points); -#endif -#endif /* GL_SGIS_sharpen_texture */ - -#ifndef GL_SGIS_texture4D -#define GL_SGIS_texture4D 1 -#define GL_PACK_SKIP_VOLUMES_SGIS 0x8130 -#define GL_PACK_IMAGE_DEPTH_SGIS 0x8131 -#define GL_UNPACK_SKIP_VOLUMES_SGIS 0x8132 -#define GL_UNPACK_IMAGE_DEPTH_SGIS 0x8133 -#define GL_TEXTURE_4D_SGIS 0x8134 -#define GL_PROXY_TEXTURE_4D_SGIS 0x8135 -#define GL_TEXTURE_4DSIZE_SGIS 0x8136 -#define GL_TEXTURE_WRAP_Q_SGIS 0x8137 -#define GL_MAX_4D_TEXTURE_SIZE_SGIS 0x8138 -#define GL_TEXTURE_4D_BINDING_SGIS 0x814F -typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void *pixels); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexImage4DSGIS (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI void APIENTRY glTexSubImage4DSGIS (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void *pixels); -#endif -#endif /* GL_SGIS_texture4D */ - -#ifndef GL_SGIS_texture_border_clamp -#define GL_SGIS_texture_border_clamp 1 -#define GL_CLAMP_TO_BORDER_SGIS 0x812D -#endif /* GL_SGIS_texture_border_clamp */ - -#ifndef GL_SGIS_texture_color_mask -#define GL_SGIS_texture_color_mask 1 -#define GL_TEXTURE_COLOR_WRITEMASK_SGIS 0x81EF -typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTextureColorMaskSGIS (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -#endif -#endif /* GL_SGIS_texture_color_mask */ - -#ifndef GL_SGIS_texture_edge_clamp -#define GL_SGIS_texture_edge_clamp 1 -#define GL_CLAMP_TO_EDGE_SGIS 0x812F -#endif /* GL_SGIS_texture_edge_clamp */ - -#ifndef GL_SGIS_texture_filter4 -#define GL_SGIS_texture_filter4 1 -#define GL_FILTER4_SGIS 0x8146 -#define GL_TEXTURE_FILTER4_SIZE_SGIS 0x8147 -typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights); -typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetTexFilterFuncSGIS (GLenum target, GLenum filter, GLfloat *weights); -GLAPI void APIENTRY glTexFilterFuncSGIS (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); -#endif -#endif /* GL_SGIS_texture_filter4 */ - -#ifndef GL_SGIS_texture_lod -#define GL_SGIS_texture_lod 1 -#define GL_TEXTURE_MIN_LOD_SGIS 0x813A -#define GL_TEXTURE_MAX_LOD_SGIS 0x813B -#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C -#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D -#endif /* GL_SGIS_texture_lod */ - -#ifndef GL_SGIS_texture_select -#define GL_SGIS_texture_select 1 -#define GL_DUAL_ALPHA4_SGIS 0x8110 -#define GL_DUAL_ALPHA8_SGIS 0x8111 -#define GL_DUAL_ALPHA12_SGIS 0x8112 -#define GL_DUAL_ALPHA16_SGIS 0x8113 -#define GL_DUAL_LUMINANCE4_SGIS 0x8114 -#define GL_DUAL_LUMINANCE8_SGIS 0x8115 -#define GL_DUAL_LUMINANCE12_SGIS 0x8116 -#define GL_DUAL_LUMINANCE16_SGIS 0x8117 -#define GL_DUAL_INTENSITY4_SGIS 0x8118 -#define GL_DUAL_INTENSITY8_SGIS 0x8119 -#define GL_DUAL_INTENSITY12_SGIS 0x811A -#define GL_DUAL_INTENSITY16_SGIS 0x811B -#define GL_DUAL_LUMINANCE_ALPHA4_SGIS 0x811C -#define GL_DUAL_LUMINANCE_ALPHA8_SGIS 0x811D -#define GL_QUAD_ALPHA4_SGIS 0x811E -#define GL_QUAD_ALPHA8_SGIS 0x811F -#define GL_QUAD_LUMINANCE4_SGIS 0x8120 -#define GL_QUAD_LUMINANCE8_SGIS 0x8121 -#define GL_QUAD_INTENSITY4_SGIS 0x8122 -#define GL_QUAD_INTENSITY8_SGIS 0x8123 -#define GL_DUAL_TEXTURE_SELECT_SGIS 0x8124 -#define GL_QUAD_TEXTURE_SELECT_SGIS 0x8125 -#endif /* GL_SGIS_texture_select */ - -#ifndef GL_SGIX_async -#define GL_SGIX_async 1 -#define GL_ASYNC_MARKER_SGIX 0x8329 -typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker); -typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp); -typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp); -typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); -typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); -typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glAsyncMarkerSGIX (GLuint marker); -GLAPI GLint APIENTRY glFinishAsyncSGIX (GLuint *markerp); -GLAPI GLint APIENTRY glPollAsyncSGIX (GLuint *markerp); -GLAPI GLuint APIENTRY glGenAsyncMarkersSGIX (GLsizei range); -GLAPI void APIENTRY glDeleteAsyncMarkersSGIX (GLuint marker, GLsizei range); -GLAPI GLboolean APIENTRY glIsAsyncMarkerSGIX (GLuint marker); -#endif -#endif /* GL_SGIX_async */ - -#ifndef GL_SGIX_async_histogram -#define GL_SGIX_async_histogram 1 -#define GL_ASYNC_HISTOGRAM_SGIX 0x832C -#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D -#endif /* GL_SGIX_async_histogram */ - -#ifndef GL_SGIX_async_pixel -#define GL_SGIX_async_pixel 1 -#define GL_ASYNC_TEX_IMAGE_SGIX 0x835C -#define GL_ASYNC_DRAW_PIXELS_SGIX 0x835D -#define GL_ASYNC_READ_PIXELS_SGIX 0x835E -#define GL_MAX_ASYNC_TEX_IMAGE_SGIX 0x835F -#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX 0x8360 -#define GL_MAX_ASYNC_READ_PIXELS_SGIX 0x8361 -#endif /* GL_SGIX_async_pixel */ - -#ifndef GL_SGIX_blend_alpha_minmax -#define GL_SGIX_blend_alpha_minmax 1 -#define GL_ALPHA_MIN_SGIX 0x8320 -#define GL_ALPHA_MAX_SGIX 0x8321 -#endif /* GL_SGIX_blend_alpha_minmax */ - -#ifndef GL_SGIX_calligraphic_fragment -#define GL_SGIX_calligraphic_fragment 1 -#define GL_CALLIGRAPHIC_FRAGMENT_SGIX 0x8183 -#endif /* GL_SGIX_calligraphic_fragment */ - -#ifndef GL_SGIX_clipmap -#define GL_SGIX_clipmap 1 -#define GL_LINEAR_CLIPMAP_LINEAR_SGIX 0x8170 -#define GL_TEXTURE_CLIPMAP_CENTER_SGIX 0x8171 -#define GL_TEXTURE_CLIPMAP_FRAME_SGIX 0x8172 -#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX 0x8173 -#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174 -#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175 -#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX 0x8176 -#define GL_MAX_CLIPMAP_DEPTH_SGIX 0x8177 -#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178 -#define GL_NEAREST_CLIPMAP_NEAREST_SGIX 0x844D -#define GL_NEAREST_CLIPMAP_LINEAR_SGIX 0x844E -#define GL_LINEAR_CLIPMAP_NEAREST_SGIX 0x844F -#endif /* GL_SGIX_clipmap */ - -#ifndef GL_SGIX_convolution_accuracy -#define GL_SGIX_convolution_accuracy 1 -#define GL_CONVOLUTION_HINT_SGIX 0x8316 -#endif /* GL_SGIX_convolution_accuracy */ - -#ifndef GL_SGIX_depth_pass_instrument -#define GL_SGIX_depth_pass_instrument 1 -#endif /* GL_SGIX_depth_pass_instrument */ - -#ifndef GL_SGIX_depth_texture -#define GL_SGIX_depth_texture 1 -#define GL_DEPTH_COMPONENT16_SGIX 0x81A5 -#define GL_DEPTH_COMPONENT24_SGIX 0x81A6 -#define GL_DEPTH_COMPONENT32_SGIX 0x81A7 -#endif /* GL_SGIX_depth_texture */ - -#ifndef GL_SGIX_flush_raster -#define GL_SGIX_flush_raster 1 -typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFlushRasterSGIX (void); -#endif -#endif /* GL_SGIX_flush_raster */ - -#ifndef GL_SGIX_fog_offset -#define GL_SGIX_fog_offset 1 -#define GL_FOG_OFFSET_SGIX 0x8198 -#define GL_FOG_OFFSET_VALUE_SGIX 0x8199 -#endif /* GL_SGIX_fog_offset */ - -#ifndef GL_SGIX_fragment_lighting -#define GL_SGIX_fragment_lighting 1 -#define GL_FRAGMENT_LIGHTING_SGIX 0x8400 -#define GL_FRAGMENT_COLOR_MATERIAL_SGIX 0x8401 -#define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402 -#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403 -#define GL_MAX_FRAGMENT_LIGHTS_SGIX 0x8404 -#define GL_MAX_ACTIVE_LIGHTS_SGIX 0x8405 -#define GL_CURRENT_RASTER_NORMAL_SGIX 0x8406 -#define GL_LIGHT_ENV_MODE_SGIX 0x8407 -#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408 -#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409 -#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A -#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B -#define GL_FRAGMENT_LIGHT0_SGIX 0x840C -#define GL_FRAGMENT_LIGHT1_SGIX 0x840D -#define GL_FRAGMENT_LIGHT2_SGIX 0x840E -#define GL_FRAGMENT_LIGHT3_SGIX 0x840F -#define GL_FRAGMENT_LIGHT4_SGIX 0x8410 -#define GL_FRAGMENT_LIGHT5_SGIX 0x8411 -#define GL_FRAGMENT_LIGHT6_SGIX 0x8412 -#define GL_FRAGMENT_LIGHT7_SGIX 0x8413 -typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFragmentColorMaterialSGIX (GLenum face, GLenum mode); -GLAPI void APIENTRY glFragmentLightfSGIX (GLenum light, GLenum pname, GLfloat param); -GLAPI void APIENTRY glFragmentLightfvSGIX (GLenum light, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glFragmentLightiSGIX (GLenum light, GLenum pname, GLint param); -GLAPI void APIENTRY glFragmentLightivSGIX (GLenum light, GLenum pname, const GLint *params); -GLAPI void APIENTRY glFragmentLightModelfSGIX (GLenum pname, GLfloat param); -GLAPI void APIENTRY glFragmentLightModelfvSGIX (GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glFragmentLightModeliSGIX (GLenum pname, GLint param); -GLAPI void APIENTRY glFragmentLightModelivSGIX (GLenum pname, const GLint *params); -GLAPI void APIENTRY glFragmentMaterialfSGIX (GLenum face, GLenum pname, GLfloat param); -GLAPI void APIENTRY glFragmentMaterialfvSGIX (GLenum face, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glFragmentMaterialiSGIX (GLenum face, GLenum pname, GLint param); -GLAPI void APIENTRY glFragmentMaterialivSGIX (GLenum face, GLenum pname, const GLint *params); -GLAPI void APIENTRY glGetFragmentLightfvSGIX (GLenum light, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetFragmentLightivSGIX (GLenum light, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetFragmentMaterialfvSGIX (GLenum face, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params); -GLAPI void APIENTRY glLightEnviSGIX (GLenum pname, GLint param); -#endif -#endif /* GL_SGIX_fragment_lighting */ - -#ifndef GL_SGIX_framezoom -#define GL_SGIX_framezoom 1 -#define GL_FRAMEZOOM_SGIX 0x818B -#define GL_FRAMEZOOM_FACTOR_SGIX 0x818C -#define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D -typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFrameZoomSGIX (GLint factor); -#endif -#endif /* GL_SGIX_framezoom */ - -#ifndef GL_SGIX_igloo_interface -#define GL_SGIX_igloo_interface 1 -typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const void *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glIglooInterfaceSGIX (GLenum pname, const void *params); -#endif -#endif /* GL_SGIX_igloo_interface */ - -#ifndef GL_SGIX_instruments -#define GL_SGIX_instruments 1 -#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180 -#define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181 -typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void); -typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer); -typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p); -typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker); -typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void); -typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLint APIENTRY glGetInstrumentsSGIX (void); -GLAPI void APIENTRY glInstrumentsBufferSGIX (GLsizei size, GLint *buffer); -GLAPI GLint APIENTRY glPollInstrumentsSGIX (GLint *marker_p); -GLAPI void APIENTRY glReadInstrumentsSGIX (GLint marker); -GLAPI void APIENTRY glStartInstrumentsSGIX (void); -GLAPI void APIENTRY glStopInstrumentsSGIX (GLint marker); -#endif -#endif /* GL_SGIX_instruments */ - -#ifndef GL_SGIX_interlace -#define GL_SGIX_interlace 1 -#define GL_INTERLACE_SGIX 0x8094 -#endif /* GL_SGIX_interlace */ - -#ifndef GL_SGIX_ir_instrument1 -#define GL_SGIX_ir_instrument1 1 -#define GL_IR_INSTRUMENT1_SGIX 0x817F -#endif /* GL_SGIX_ir_instrument1 */ - -#ifndef GL_SGIX_list_priority -#define GL_SGIX_list_priority 1 -#define GL_LIST_PRIORITY_SGIX 0x8182 -typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetListParameterfvSGIX (GLuint list, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetListParameterivSGIX (GLuint list, GLenum pname, GLint *params); -GLAPI void APIENTRY glListParameterfSGIX (GLuint list, GLenum pname, GLfloat param); -GLAPI void APIENTRY glListParameterfvSGIX (GLuint list, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glListParameteriSGIX (GLuint list, GLenum pname, GLint param); -GLAPI void APIENTRY glListParameterivSGIX (GLuint list, GLenum pname, const GLint *params); -#endif -#endif /* GL_SGIX_list_priority */ - -#ifndef GL_SGIX_pixel_texture -#define GL_SGIX_pixel_texture 1 -#define GL_PIXEL_TEX_GEN_SGIX 0x8139 -#define GL_PIXEL_TEX_GEN_MODE_SGIX 0x832B -typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPixelTexGenSGIX (GLenum mode); -#endif -#endif /* GL_SGIX_pixel_texture */ - -#ifndef GL_SGIX_pixel_tiles -#define GL_SGIX_pixel_tiles 1 -#define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E -#define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F -#define GL_PIXEL_TILE_WIDTH_SGIX 0x8140 -#define GL_PIXEL_TILE_HEIGHT_SGIX 0x8141 -#define GL_PIXEL_TILE_GRID_WIDTH_SGIX 0x8142 -#define GL_PIXEL_TILE_GRID_HEIGHT_SGIX 0x8143 -#define GL_PIXEL_TILE_GRID_DEPTH_SGIX 0x8144 -#define GL_PIXEL_TILE_CACHE_SIZE_SGIX 0x8145 -#endif /* GL_SGIX_pixel_tiles */ - -#ifndef GL_SGIX_polynomial_ffd -#define GL_SGIX_polynomial_ffd 1 -#define GL_TEXTURE_DEFORMATION_BIT_SGIX 0x00000001 -#define GL_GEOMETRY_DEFORMATION_BIT_SGIX 0x00000002 -#define GL_GEOMETRY_DEFORMATION_SGIX 0x8194 -#define GL_TEXTURE_DEFORMATION_SGIX 0x8195 -#define GL_DEFORMATIONS_MASK_SGIX 0x8196 -#define GL_MAX_DEFORMATION_ORDER_SGIX 0x8197 -typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points); -typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points); -typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask); -typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDeformationMap3dSGIX (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points); -GLAPI void APIENTRY glDeformationMap3fSGIX (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points); -GLAPI void APIENTRY glDeformSGIX (GLbitfield mask); -GLAPI void APIENTRY glLoadIdentityDeformationMapSGIX (GLbitfield mask); -#endif -#endif /* GL_SGIX_polynomial_ffd */ - -#ifndef GL_SGIX_reference_plane -#define GL_SGIX_reference_plane 1 -#define GL_REFERENCE_PLANE_SGIX 0x817D -#define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E -typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glReferencePlaneSGIX (const GLdouble *equation); -#endif -#endif /* GL_SGIX_reference_plane */ - -#ifndef GL_SGIX_resample -#define GL_SGIX_resample 1 -#define GL_PACK_RESAMPLE_SGIX 0x842C -#define GL_UNPACK_RESAMPLE_SGIX 0x842D -#define GL_RESAMPLE_REPLICATE_SGIX 0x842E -#define GL_RESAMPLE_ZERO_FILL_SGIX 0x842F -#define GL_RESAMPLE_DECIMATE_SGIX 0x8430 -#endif /* GL_SGIX_resample */ - -#ifndef GL_SGIX_scalebias_hint -#define GL_SGIX_scalebias_hint 1 -#define GL_SCALEBIAS_HINT_SGIX 0x8322 -#endif /* GL_SGIX_scalebias_hint */ - -#ifndef GL_SGIX_shadow -#define GL_SGIX_shadow 1 -#define GL_TEXTURE_COMPARE_SGIX 0x819A -#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B -#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C -#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D -#endif /* GL_SGIX_shadow */ - -#ifndef GL_SGIX_shadow_ambient -#define GL_SGIX_shadow_ambient 1 -#define GL_SHADOW_AMBIENT_SGIX 0x80BF -#endif /* GL_SGIX_shadow_ambient */ - -#ifndef GL_SGIX_sprite -#define GL_SGIX_sprite 1 -#define GL_SPRITE_SGIX 0x8148 -#define GL_SPRITE_MODE_SGIX 0x8149 -#define GL_SPRITE_AXIS_SGIX 0x814A -#define GL_SPRITE_TRANSLATION_SGIX 0x814B -#define GL_SPRITE_AXIAL_SGIX 0x814C -#define GL_SPRITE_OBJECT_ALIGNED_SGIX 0x814D -#define GL_SPRITE_EYE_ALIGNED_SGIX 0x814E -typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSpriteParameterfSGIX (GLenum pname, GLfloat param); -GLAPI void APIENTRY glSpriteParameterfvSGIX (GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glSpriteParameteriSGIX (GLenum pname, GLint param); -GLAPI void APIENTRY glSpriteParameterivSGIX (GLenum pname, const GLint *params); -#endif -#endif /* GL_SGIX_sprite */ - -#ifndef GL_SGIX_subsample -#define GL_SGIX_subsample 1 -#define GL_PACK_SUBSAMPLE_RATE_SGIX 0x85A0 -#define GL_UNPACK_SUBSAMPLE_RATE_SGIX 0x85A1 -#define GL_PIXEL_SUBSAMPLE_4444_SGIX 0x85A2 -#define GL_PIXEL_SUBSAMPLE_2424_SGIX 0x85A3 -#define GL_PIXEL_SUBSAMPLE_4242_SGIX 0x85A4 -#endif /* GL_SGIX_subsample */ - -#ifndef GL_SGIX_tag_sample_buffer -#define GL_SGIX_tag_sample_buffer 1 -typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTagSampleBufferSGIX (void); -#endif -#endif /* GL_SGIX_tag_sample_buffer */ - -#ifndef GL_SGIX_texture_add_env -#define GL_SGIX_texture_add_env 1 -#define GL_TEXTURE_ENV_BIAS_SGIX 0x80BE -#endif /* GL_SGIX_texture_add_env */ - -#ifndef GL_SGIX_texture_coordinate_clamp -#define GL_SGIX_texture_coordinate_clamp 1 -#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369 -#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A -#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B -#endif /* GL_SGIX_texture_coordinate_clamp */ - -#ifndef GL_SGIX_texture_lod_bias -#define GL_SGIX_texture_lod_bias 1 -#define GL_TEXTURE_LOD_BIAS_S_SGIX 0x818E -#define GL_TEXTURE_LOD_BIAS_T_SGIX 0x818F -#define GL_TEXTURE_LOD_BIAS_R_SGIX 0x8190 -#endif /* GL_SGIX_texture_lod_bias */ - -#ifndef GL_SGIX_texture_multi_buffer -#define GL_SGIX_texture_multi_buffer 1 -#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E -#endif /* GL_SGIX_texture_multi_buffer */ - -#ifndef GL_SGIX_texture_scale_bias -#define GL_SGIX_texture_scale_bias 1 -#define GL_POST_TEXTURE_FILTER_BIAS_SGIX 0x8179 -#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A -#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B -#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C -#endif /* GL_SGIX_texture_scale_bias */ - -#ifndef GL_SGIX_vertex_preclip -#define GL_SGIX_vertex_preclip 1 -#define GL_VERTEX_PRECLIP_SGIX 0x83EE -#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF -#endif /* GL_SGIX_vertex_preclip */ - -#ifndef GL_SGIX_ycrcb -#define GL_SGIX_ycrcb 1 -#define GL_YCRCB_422_SGIX 0x81BB -#define GL_YCRCB_444_SGIX 0x81BC -#endif /* GL_SGIX_ycrcb */ - -#ifndef GL_SGIX_ycrcb_subsample -#define GL_SGIX_ycrcb_subsample 1 -#endif /* GL_SGIX_ycrcb_subsample */ - -#ifndef GL_SGIX_ycrcba -#define GL_SGIX_ycrcba 1 -#define GL_YCRCB_SGIX 0x8318 -#define GL_YCRCBA_SGIX 0x8319 -#endif /* GL_SGIX_ycrcba */ - -#ifndef GL_SGI_color_matrix -#define GL_SGI_color_matrix 1 -#define GL_COLOR_MATRIX_SGI 0x80B1 -#define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2 -#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3 -#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4 -#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5 -#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6 -#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7 -#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8 -#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9 -#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA -#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB -#endif /* GL_SGI_color_matrix */ - -#ifndef GL_SGI_color_table -#define GL_SGI_color_table 1 -#define GL_COLOR_TABLE_SGI 0x80D0 -#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1 -#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2 -#define GL_PROXY_COLOR_TABLE_SGI 0x80D3 -#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4 -#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5 -#define GL_COLOR_TABLE_SCALE_SGI 0x80D6 -#define GL_COLOR_TABLE_BIAS_SGI 0x80D7 -#define GL_COLOR_TABLE_FORMAT_SGI 0x80D8 -#define GL_COLOR_TABLE_WIDTH_SGI 0x80D9 -#define GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA -#define GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB -#define GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC -#define GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD -#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE -#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF -typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table); -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, void *table); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorTableSGI (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table); -GLAPI void APIENTRY glColorTableParameterfvSGI (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glColorTableParameterivSGI (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glCopyColorTableSGI (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glGetColorTableSGI (GLenum target, GLenum format, GLenum type, void *table); -GLAPI void APIENTRY glGetColorTableParameterfvSGI (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetColorTableParameterivSGI (GLenum target, GLenum pname, GLint *params); -#endif -#endif /* GL_SGI_color_table */ - -#ifndef GL_SGI_texture_color_table -#define GL_SGI_texture_color_table 1 -#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC -#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD -#endif /* GL_SGI_texture_color_table */ - -#ifndef GL_SUNX_constant_data -#define GL_SUNX_constant_data 1 -#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5 -#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6 -typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFinishTextureSUNX (void); -#endif -#endif /* GL_SUNX_constant_data */ - -#ifndef GL_SUN_convolution_border_modes -#define GL_SUN_convolution_border_modes 1 -#define GL_WRAP_BORDER_SUN 0x81D4 -#endif /* GL_SUN_convolution_border_modes */ - -#ifndef GL_SUN_global_alpha -#define GL_SUN_global_alpha 1 -#define GL_GLOBAL_ALPHA_SUN 0x81D9 -#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGlobalAlphaFactorbSUN (GLbyte factor); -GLAPI void APIENTRY glGlobalAlphaFactorsSUN (GLshort factor); -GLAPI void APIENTRY glGlobalAlphaFactoriSUN (GLint factor); -GLAPI void APIENTRY glGlobalAlphaFactorfSUN (GLfloat factor); -GLAPI void APIENTRY glGlobalAlphaFactordSUN (GLdouble factor); -GLAPI void APIENTRY glGlobalAlphaFactorubSUN (GLubyte factor); -GLAPI void APIENTRY glGlobalAlphaFactorusSUN (GLushort factor); -GLAPI void APIENTRY glGlobalAlphaFactoruiSUN (GLuint factor); -#endif -#endif /* GL_SUN_global_alpha */ - -#ifndef GL_SUN_mesh_array -#define GL_SUN_mesh_array 1 -#define GL_QUAD_MESH_SUN 0x8614 -#define GL_TRIANGLE_MESH_SUN 0x8615 -typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawMeshArraysSUN (GLenum mode, GLint first, GLsizei count, GLsizei width); -#endif -#endif /* GL_SUN_mesh_array */ - -#ifndef GL_SUN_slice_accum -#define GL_SUN_slice_accum 1 -#define GL_SLICE_ACCUM_SUN 0x85CC -#endif /* GL_SUN_slice_accum */ - -#ifndef GL_SUN_triangle_list -#define GL_SUN_triangle_list 1 -#define GL_RESTART_SUN 0x0001 -#define GL_REPLACE_MIDDLE_SUN 0x0002 -#define GL_REPLACE_OLDEST_SUN 0x0003 -#define GL_TRIANGLE_LIST_SUN 0x81D7 -#define GL_REPLACEMENT_CODE_SUN 0x81D8 -#define GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0 -#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1 -#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2 -#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3 -#define GL_R1UI_V3F_SUN 0x85C4 -#define GL_R1UI_C4UB_V3F_SUN 0x85C5 -#define GL_R1UI_C3F_V3F_SUN 0x85C6 -#define GL_R1UI_N3F_V3F_SUN 0x85C7 -#define GL_R1UI_C4F_N3F_V3F_SUN 0x85C8 -#define GL_R1UI_T2F_V3F_SUN 0x85C9 -#define GL_R1UI_T2F_N3F_V3F_SUN 0x85CA -#define GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const void **pointer); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glReplacementCodeuiSUN (GLuint code); -GLAPI void APIENTRY glReplacementCodeusSUN (GLushort code); -GLAPI void APIENTRY glReplacementCodeubSUN (GLubyte code); -GLAPI void APIENTRY glReplacementCodeuivSUN (const GLuint *code); -GLAPI void APIENTRY glReplacementCodeusvSUN (const GLushort *code); -GLAPI void APIENTRY glReplacementCodeubvSUN (const GLubyte *code); -GLAPI void APIENTRY glReplacementCodePointerSUN (GLenum type, GLsizei stride, const void **pointer); -#endif -#endif /* GL_SUN_triangle_list */ - -#ifndef GL_SUN_vertex -#define GL_SUN_vertex 1 -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColor4ubVertex2fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); -GLAPI void APIENTRY glColor4ubVertex2fvSUN (const GLubyte *c, const GLfloat *v); -GLAPI void APIENTRY glColor4ubVertex3fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glColor4ubVertex3fvSUN (const GLubyte *c, const GLfloat *v); -GLAPI void APIENTRY glColor3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glColor3fVertex3fvSUN (const GLfloat *c, const GLfloat *v); -GLAPI void APIENTRY glNormal3fVertex3fSUN (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glNormal3fVertex3fvSUN (const GLfloat *n, const GLfloat *v); -GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN (const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI void APIENTRY glTexCoord2fVertex3fSUN (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glTexCoord2fVertex3fvSUN (const GLfloat *tc, const GLfloat *v); -GLAPI void APIENTRY glTexCoord4fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glTexCoord4fVertex4fvSUN (const GLfloat *tc, const GLfloat *v); -GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *tc, const GLubyte *c, const GLfloat *v); -GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *v); -GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *n, const GLfloat *v); -GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN (GLuint rc, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN (const GLuint *rc, const GLfloat *v); -GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *rc, const GLubyte *c, const GLfloat *v); -GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *v); -GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *n, const GLfloat *v); -GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *v); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -#endif -#endif /* GL_SUN_vertex */ - -#ifndef GL_WIN_phong_shading -#define GL_WIN_phong_shading 1 -#define GL_PHONG_WIN 0x80EA -#define GL_PHONG_HINT_WIN 0x80EB -#endif /* GL_WIN_phong_shading */ - -#ifndef GL_WIN_specular_fog -#define GL_WIN_specular_fog 1 -#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC -#endif /* GL_WIN_specular_fog */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/glxext.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/glxext.h deleted file mode 100644 index 174fc21..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/glxext.h +++ /dev/null @@ -1,906 +0,0 @@ -#ifndef __glxext_h_ -#define __glxext_h_ 1 - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** Copyright (c) 2013-2014 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ -/* -** This header is generated from the Khronos OpenGL / OpenGL ES XML -** API Registry. The current version of the Registry, generator scripts -** used to make the header, and the header can be found at -** http://www.opengl.org/registry/ -** -** Khronos $Revision: 27684 $ on $Date: 2014-08-11 01:21:35 -0700 (Mon, 11 Aug 2014) $ -*/ - -#define GLX_GLXEXT_VERSION 20140810 - -/* Generated C header for: - * API: glx - * Versions considered: .* - * Versions emitted: 1\.[3-9] - * Default extensions included: glx - * Additional extensions included: _nomatch_^ - * Extensions removed: _nomatch_^ - */ - -#ifndef GLX_VERSION_1_3 -#define GLX_VERSION_1_3 1 -typedef XID GLXContextID; -typedef struct __GLXFBConfigRec *GLXFBConfig; -typedef XID GLXWindow; -typedef XID GLXPbuffer; -#define GLX_WINDOW_BIT 0x00000001 -#define GLX_PIXMAP_BIT 0x00000002 -#define GLX_PBUFFER_BIT 0x00000004 -#define GLX_RGBA_BIT 0x00000001 -#define GLX_COLOR_INDEX_BIT 0x00000002 -#define GLX_PBUFFER_CLOBBER_MASK 0x08000000 -#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 -#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 -#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 -#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 -#define GLX_AUX_BUFFERS_BIT 0x00000010 -#define GLX_DEPTH_BUFFER_BIT 0x00000020 -#define GLX_STENCIL_BUFFER_BIT 0x00000040 -#define GLX_ACCUM_BUFFER_BIT 0x00000080 -#define GLX_CONFIG_CAVEAT 0x20 -#define GLX_X_VISUAL_TYPE 0x22 -#define GLX_TRANSPARENT_TYPE 0x23 -#define GLX_TRANSPARENT_INDEX_VALUE 0x24 -#define GLX_TRANSPARENT_RED_VALUE 0x25 -#define GLX_TRANSPARENT_GREEN_VALUE 0x26 -#define GLX_TRANSPARENT_BLUE_VALUE 0x27 -#define GLX_TRANSPARENT_ALPHA_VALUE 0x28 -#define GLX_DONT_CARE 0xFFFFFFFF -#define GLX_NONE 0x8000 -#define GLX_SLOW_CONFIG 0x8001 -#define GLX_TRUE_COLOR 0x8002 -#define GLX_DIRECT_COLOR 0x8003 -#define GLX_PSEUDO_COLOR 0x8004 -#define GLX_STATIC_COLOR 0x8005 -#define GLX_GRAY_SCALE 0x8006 -#define GLX_STATIC_GRAY 0x8007 -#define GLX_TRANSPARENT_RGB 0x8008 -#define GLX_TRANSPARENT_INDEX 0x8009 -#define GLX_VISUAL_ID 0x800B -#define GLX_SCREEN 0x800C -#define GLX_NON_CONFORMANT_CONFIG 0x800D -#define GLX_DRAWABLE_TYPE 0x8010 -#define GLX_RENDER_TYPE 0x8011 -#define GLX_X_RENDERABLE 0x8012 -#define GLX_FBCONFIG_ID 0x8013 -#define GLX_RGBA_TYPE 0x8014 -#define GLX_COLOR_INDEX_TYPE 0x8015 -#define GLX_MAX_PBUFFER_WIDTH 0x8016 -#define GLX_MAX_PBUFFER_HEIGHT 0x8017 -#define GLX_MAX_PBUFFER_PIXELS 0x8018 -#define GLX_PRESERVED_CONTENTS 0x801B -#define GLX_LARGEST_PBUFFER 0x801C -#define GLX_WIDTH 0x801D -#define GLX_HEIGHT 0x801E -#define GLX_EVENT_MASK 0x801F -#define GLX_DAMAGED 0x8020 -#define GLX_SAVED 0x8021 -#define GLX_WINDOW 0x8022 -#define GLX_PBUFFER 0x8023 -#define GLX_PBUFFER_HEIGHT 0x8040 -#define GLX_PBUFFER_WIDTH 0x8041 -typedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); -typedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); -typedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); -typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); -typedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); -typedef void ( *PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); -typedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); -typedef void ( *PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); -typedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); -typedef void ( *PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); -typedef void ( *PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); -typedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); -typedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void); -typedef int ( *PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); -typedef void ( *PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); -typedef void ( *PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); -#ifdef GLX_GLXEXT_PROTOTYPES -GLXFBConfig *glXGetFBConfigs (Display *dpy, int screen, int *nelements); -GLXFBConfig *glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements); -int glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value); -XVisualInfo *glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config); -GLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); -void glXDestroyWindow (Display *dpy, GLXWindow win); -GLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); -void glXDestroyPixmap (Display *dpy, GLXPixmap pixmap); -GLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list); -void glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf); -void glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); -GLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); -Bool glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -GLXDrawable glXGetCurrentReadDrawable (void); -int glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value); -void glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask); -void glXGetSelectedEvent (Display *dpy, GLXDrawable draw, unsigned long *event_mask); -#endif -#endif /* GLX_VERSION_1_3 */ - -#ifndef GLX_VERSION_1_4 -#define GLX_VERSION_1_4 1 -typedef void ( *__GLXextFuncPtr)(void); -#define GLX_SAMPLE_BUFFERS 100000 -#define GLX_SAMPLES 100001 -typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName); -#ifdef GLX_GLXEXT_PROTOTYPES -__GLXextFuncPtr glXGetProcAddress (const GLubyte *procName); -#endif -#endif /* GLX_VERSION_1_4 */ - -#ifndef GLX_ARB_context_flush_control -#define GLX_ARB_context_flush_control 1 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 -#endif /* GLX_ARB_context_flush_control */ - -#ifndef GLX_ARB_create_context -#define GLX_ARB_create_context 1 -#define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001 -#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 -#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define GLX_CONTEXT_FLAGS_ARB 0x2094 -typedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); -#ifdef GLX_GLXEXT_PROTOTYPES -GLXContext glXCreateContextAttribsARB (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); -#endif -#endif /* GLX_ARB_create_context */ - -#ifndef GLX_ARB_create_context_profile -#define GLX_ARB_create_context_profile 1 -#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 -#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 -#endif /* GLX_ARB_create_context_profile */ - -#ifndef GLX_ARB_create_context_robustness -#define GLX_ARB_create_context_robustness 1 -#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 -#endif /* GLX_ARB_create_context_robustness */ - -#ifndef GLX_ARB_fbconfig_float -#define GLX_ARB_fbconfig_float 1 -#define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9 -#define GLX_RGBA_FLOAT_BIT_ARB 0x00000004 -#endif /* GLX_ARB_fbconfig_float */ - -#ifndef GLX_ARB_framebuffer_sRGB -#define GLX_ARB_framebuffer_sRGB 1 -#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2 -#endif /* GLX_ARB_framebuffer_sRGB */ - -#ifndef GLX_ARB_get_proc_address -#define GLX_ARB_get_proc_address 1 -typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName); -#ifdef GLX_GLXEXT_PROTOTYPES -__GLXextFuncPtr glXGetProcAddressARB (const GLubyte *procName); -#endif -#endif /* GLX_ARB_get_proc_address */ - -#ifndef GLX_ARB_multisample -#define GLX_ARB_multisample 1 -#define GLX_SAMPLE_BUFFERS_ARB 100000 -#define GLX_SAMPLES_ARB 100001 -#endif /* GLX_ARB_multisample */ - -#ifndef GLX_ARB_robustness_application_isolation -#define GLX_ARB_robustness_application_isolation 1 -#define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 -#endif /* GLX_ARB_robustness_application_isolation */ - -#ifndef GLX_ARB_robustness_share_group_isolation -#define GLX_ARB_robustness_share_group_isolation 1 -#endif /* GLX_ARB_robustness_share_group_isolation */ - -#ifndef GLX_ARB_vertex_buffer_object -#define GLX_ARB_vertex_buffer_object 1 -#define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095 -#endif /* GLX_ARB_vertex_buffer_object */ - -#ifndef GLX_3DFX_multisample -#define GLX_3DFX_multisample 1 -#define GLX_SAMPLE_BUFFERS_3DFX 0x8050 -#define GLX_SAMPLES_3DFX 0x8051 -#endif /* GLX_3DFX_multisample */ - -#ifndef GLX_AMD_gpu_association -#define GLX_AMD_gpu_association 1 -#define GLX_GPU_VENDOR_AMD 0x1F00 -#define GLX_GPU_RENDERER_STRING_AMD 0x1F01 -#define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 -#define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 -#define GLX_GPU_RAM_AMD 0x21A3 -#define GLX_GPU_CLOCK_AMD 0x21A4 -#define GLX_GPU_NUM_PIPES_AMD 0x21A5 -#define GLX_GPU_NUM_SIMD_AMD 0x21A6 -#define GLX_GPU_NUM_RB_AMD 0x21A7 -#define GLX_GPU_NUM_SPI_AMD 0x21A8 -#endif /* GLX_AMD_gpu_association */ - -#ifndef GLX_EXT_buffer_age -#define GLX_EXT_buffer_age 1 -#define GLX_BACK_BUFFER_AGE_EXT 0x20F4 -#endif /* GLX_EXT_buffer_age */ - -#ifndef GLX_EXT_create_context_es2_profile -#define GLX_EXT_create_context_es2_profile 1 -#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 -#endif /* GLX_EXT_create_context_es2_profile */ - -#ifndef GLX_EXT_create_context_es_profile -#define GLX_EXT_create_context_es_profile 1 -#define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004 -#endif /* GLX_EXT_create_context_es_profile */ - -#ifndef GLX_EXT_fbconfig_packed_float -#define GLX_EXT_fbconfig_packed_float 1 -#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1 -#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008 -#endif /* GLX_EXT_fbconfig_packed_float */ - -#ifndef GLX_EXT_framebuffer_sRGB -#define GLX_EXT_framebuffer_sRGB 1 -#define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2 -#endif /* GLX_EXT_framebuffer_sRGB */ - -#ifndef GLX_EXT_import_context -#define GLX_EXT_import_context 1 -#define GLX_SHARE_CONTEXT_EXT 0x800A -#define GLX_VISUAL_ID_EXT 0x800B -#define GLX_SCREEN_EXT 0x800C -typedef Display *( *PFNGLXGETCURRENTDISPLAYEXTPROC) (void); -typedef int ( *PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value); -typedef GLXContextID ( *PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context); -typedef GLXContext ( *PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID); -typedef void ( *PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context); -#ifdef GLX_GLXEXT_PROTOTYPES -Display *glXGetCurrentDisplayEXT (void); -int glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value); -GLXContextID glXGetContextIDEXT (const GLXContext context); -GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID); -void glXFreeContextEXT (Display *dpy, GLXContext context); -#endif -#endif /* GLX_EXT_import_context */ - -#ifndef GLX_EXT_stereo_tree -#define GLX_EXT_stereo_tree 1 -typedef struct { - int type; - unsigned long serial; - Bool send_event; - Display *display; - int extension; - int evtype; - GLXDrawable window; - Bool stereo_tree; -} GLXStereoNotifyEventEXT; -#define GLX_STEREO_TREE_EXT 0x20F5 -#define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001 -#define GLX_STEREO_NOTIFY_EXT 0x00000000 -#endif /* GLX_EXT_stereo_tree */ - -#ifndef GLX_EXT_swap_control -#define GLX_EXT_swap_control 1 -#define GLX_SWAP_INTERVAL_EXT 0x20F1 -#define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2 -typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval); -#ifdef GLX_GLXEXT_PROTOTYPES -void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval); -#endif -#endif /* GLX_EXT_swap_control */ - -#ifndef GLX_EXT_swap_control_tear -#define GLX_EXT_swap_control_tear 1 -#define GLX_LATE_SWAPS_TEAR_EXT 0x20F3 -#endif /* GLX_EXT_swap_control_tear */ - -#ifndef GLX_EXT_texture_from_pixmap -#define GLX_EXT_texture_from_pixmap 1 -#define GLX_TEXTURE_1D_BIT_EXT 0x00000001 -#define GLX_TEXTURE_2D_BIT_EXT 0x00000002 -#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 -#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 -#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 -#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 -#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 -#define GLX_Y_INVERTED_EXT 0x20D4 -#define GLX_TEXTURE_FORMAT_EXT 0x20D5 -#define GLX_TEXTURE_TARGET_EXT 0x20D6 -#define GLX_MIPMAP_TEXTURE_EXT 0x20D7 -#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 -#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 -#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA -#define GLX_TEXTURE_1D_EXT 0x20DB -#define GLX_TEXTURE_2D_EXT 0x20DC -#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD -#define GLX_FRONT_LEFT_EXT 0x20DE -#define GLX_FRONT_RIGHT_EXT 0x20DF -#define GLX_BACK_LEFT_EXT 0x20E0 -#define GLX_BACK_RIGHT_EXT 0x20E1 -#define GLX_FRONT_EXT 0x20DE -#define GLX_BACK_EXT 0x20E0 -#define GLX_AUX0_EXT 0x20E2 -#define GLX_AUX1_EXT 0x20E3 -#define GLX_AUX2_EXT 0x20E4 -#define GLX_AUX3_EXT 0x20E5 -#define GLX_AUX4_EXT 0x20E6 -#define GLX_AUX5_EXT 0x20E7 -#define GLX_AUX6_EXT 0x20E8 -#define GLX_AUX7_EXT 0x20E9 -#define GLX_AUX8_EXT 0x20EA -#define GLX_AUX9_EXT 0x20EB -typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list); -typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer); -#ifdef GLX_GLXEXT_PROTOTYPES -void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list); -void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer); -#endif -#endif /* GLX_EXT_texture_from_pixmap */ - -#ifndef GLX_EXT_visual_info -#define GLX_EXT_visual_info 1 -#define GLX_X_VISUAL_TYPE_EXT 0x22 -#define GLX_TRANSPARENT_TYPE_EXT 0x23 -#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 -#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 -#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 -#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 -#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 -#define GLX_NONE_EXT 0x8000 -#define GLX_TRUE_COLOR_EXT 0x8002 -#define GLX_DIRECT_COLOR_EXT 0x8003 -#define GLX_PSEUDO_COLOR_EXT 0x8004 -#define GLX_STATIC_COLOR_EXT 0x8005 -#define GLX_GRAY_SCALE_EXT 0x8006 -#define GLX_STATIC_GRAY_EXT 0x8007 -#define GLX_TRANSPARENT_RGB_EXT 0x8008 -#define GLX_TRANSPARENT_INDEX_EXT 0x8009 -#endif /* GLX_EXT_visual_info */ - -#ifndef GLX_EXT_visual_rating -#define GLX_EXT_visual_rating 1 -#define GLX_VISUAL_CAVEAT_EXT 0x20 -#define GLX_SLOW_VISUAL_EXT 0x8001 -#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D -#endif /* GLX_EXT_visual_rating */ - -#ifndef GLX_INTEL_swap_event -#define GLX_INTEL_swap_event 1 -#define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000 -#define GLX_EXCHANGE_COMPLETE_INTEL 0x8180 -#define GLX_COPY_COMPLETE_INTEL 0x8181 -#define GLX_FLIP_COMPLETE_INTEL 0x8182 -#endif /* GLX_INTEL_swap_event */ - -#ifndef GLX_MESA_agp_offset -#define GLX_MESA_agp_offset 1 -typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer); -#ifdef GLX_GLXEXT_PROTOTYPES -unsigned int glXGetAGPOffsetMESA (const void *pointer); -#endif -#endif /* GLX_MESA_agp_offset */ - -#ifndef GLX_MESA_copy_sub_buffer -#define GLX_MESA_copy_sub_buffer 1 -typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); -#ifdef GLX_GLXEXT_PROTOTYPES -void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); -#endif -#endif /* GLX_MESA_copy_sub_buffer */ - -#ifndef GLX_MESA_pixmap_colormap -#define GLX_MESA_pixmap_colormap 1 -typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); -#ifdef GLX_GLXEXT_PROTOTYPES -GLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); -#endif -#endif /* GLX_MESA_pixmap_colormap */ - -#ifndef GLX_MESA_query_renderer -#define GLX_MESA_query_renderer 1 -#define GLX_RENDERER_VENDOR_ID_MESA 0x8183 -#define GLX_RENDERER_DEVICE_ID_MESA 0x8184 -#define GLX_RENDERER_VERSION_MESA 0x8185 -#define GLX_RENDERER_ACCELERATED_MESA 0x8186 -#define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187 -#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188 -#define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189 -#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A -#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B -#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C -#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D -#define GLX_RENDERER_ID_MESA 0x818E -typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value); -typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute); -typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value); -typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute); -#ifdef GLX_GLXEXT_PROTOTYPES -Bool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value); -const char *glXQueryCurrentRendererStringMESA (int attribute); -Bool glXQueryRendererIntegerMESA (Display *dpy, int screen, int renderer, int attribute, unsigned int *value); -const char *glXQueryRendererStringMESA (Display *dpy, int screen, int renderer, int attribute); -#endif -#endif /* GLX_MESA_query_renderer */ - -#ifndef GLX_MESA_release_buffers -#define GLX_MESA_release_buffers 1 -typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable); -#ifdef GLX_GLXEXT_PROTOTYPES -Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable); -#endif -#endif /* GLX_MESA_release_buffers */ - -#ifndef GLX_MESA_set_3dfx_mode -#define GLX_MESA_set_3dfx_mode 1 -#define GLX_3DFX_WINDOW_MODE_MESA 0x1 -#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 -typedef Bool ( *PFNGLXSET3DFXMODEMESAPROC) (int mode); -#ifdef GLX_GLXEXT_PROTOTYPES -Bool glXSet3DfxModeMESA (int mode); -#endif -#endif /* GLX_MESA_set_3dfx_mode */ - -#ifndef GLX_NV_copy_buffer -#define GLX_NV_copy_buffer 1 -typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -#ifdef GLX_GLXEXT_PROTOTYPES -void glXCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -void glXNamedCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -#endif -#endif /* GLX_NV_copy_buffer */ - -#ifndef GLX_NV_copy_image -#define GLX_NV_copy_image 1 -typedef void ( *PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -#ifdef GLX_GLXEXT_PROTOTYPES -void glXCopyImageSubDataNV (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -#endif -#endif /* GLX_NV_copy_image */ - -#ifndef GLX_NV_delay_before_swap -#define GLX_NV_delay_before_swap 1 -typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (Display *dpy, GLXDrawable drawable, GLfloat seconds); -#ifdef GLX_GLXEXT_PROTOTYPES -Bool glXDelayBeforeSwapNV (Display *dpy, GLXDrawable drawable, GLfloat seconds); -#endif -#endif /* GLX_NV_delay_before_swap */ - -#ifndef GLX_NV_float_buffer -#define GLX_NV_float_buffer 1 -#define GLX_FLOAT_COMPONENTS_NV 0x20B0 -#endif /* GLX_NV_float_buffer */ - -#ifndef GLX_NV_multisample_coverage -#define GLX_NV_multisample_coverage 1 -#define GLX_COVERAGE_SAMPLES_NV 100001 -#define GLX_COLOR_SAMPLES_NV 0x20B3 -#endif /* GLX_NV_multisample_coverage */ - -#ifndef GLX_NV_present_video -#define GLX_NV_present_video 1 -#define GLX_NUM_VIDEO_SLOTS_NV 0x20F0 -typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements); -typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); -#ifdef GLX_GLXEXT_PROTOTYPES -unsigned int *glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements); -int glXBindVideoDeviceNV (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); -#endif -#endif /* GLX_NV_present_video */ - -#ifndef GLX_NV_swap_group -#define GLX_NV_swap_group 1 -typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group); -typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier); -typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); -typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); -typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count); -typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen); -#ifdef GLX_GLXEXT_PROTOTYPES -Bool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group); -Bool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier); -Bool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); -Bool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); -Bool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count); -Bool glXResetFrameCountNV (Display *dpy, int screen); -#endif -#endif /* GLX_NV_swap_group */ - -#ifndef GLX_NV_video_capture -#define GLX_NV_video_capture 1 -typedef XID GLXVideoCaptureDeviceNV; -#define GLX_DEVICE_ID_NV 0x20CD -#define GLX_UNIQUE_ID_NV 0x20CE -#define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF -typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); -typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements); -typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device); -typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); -typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device); -#ifdef GLX_GLXEXT_PROTOTYPES -int glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); -GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements); -void glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device); -int glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); -void glXReleaseVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device); -#endif -#endif /* GLX_NV_video_capture */ - -#ifndef GLX_NV_video_out -#define GLX_NV_video_out 1 -typedef unsigned int GLXVideoDeviceNV; -#define GLX_VIDEO_OUT_COLOR_NV 0x20C3 -#define GLX_VIDEO_OUT_ALPHA_NV 0x20C4 -#define GLX_VIDEO_OUT_DEPTH_NV 0x20C5 -#define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 -#define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 -#define GLX_VIDEO_OUT_FRAME_NV 0x20C8 -#define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9 -#define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA -#define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB -#define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC -typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); -typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice); -typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); -typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf); -typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); -typedef int ( *PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); -#ifdef GLX_GLXEXT_PROTOTYPES -int glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); -int glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice); -int glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); -int glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf); -int glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); -int glXGetVideoInfoNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); -#endif -#endif /* GLX_NV_video_out */ - -#ifndef GLX_OML_swap_method -#define GLX_OML_swap_method 1 -#define GLX_SWAP_METHOD_OML 0x8060 -#define GLX_SWAP_EXCHANGE_OML 0x8061 -#define GLX_SWAP_COPY_OML 0x8062 -#define GLX_SWAP_UNDEFINED_OML 0x8063 -#endif /* GLX_OML_swap_method */ - -#ifndef GLX_OML_sync_control -#define GLX_OML_sync_control 1 -#ifndef GLEXT_64_TYPES_DEFINED -/* This code block is duplicated in glext.h, so must be protected */ -#define GLEXT_64_TYPES_DEFINED -/* Define int32_t, int64_t, and uint64_t types for UST/MSC */ -/* (as used in the GLX_OML_sync_control extension). */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#include -#elif defined(__sun__) || defined(__digital__) -#include -#if defined(__STDC__) -#if defined(__arch64__) || defined(_LP64) -typedef long int int64_t; -typedef unsigned long int uint64_t; -#else -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#endif /* __arch64__ */ -#endif /* __STDC__ */ -#elif defined( __VMS ) || defined(__sgi) -#include -#elif defined(__SCO__) || defined(__USLC__) -#include -#elif defined(__UNIXOS2__) || defined(__SOL64__) -typedef long int int32_t; -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#elif defined(_WIN32) && defined(__GNUC__) -#include -#elif defined(_WIN32) -typedef __int32 int32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -/* Fallback if nothing above works */ -#include -#endif -#endif -typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc); -typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator); -typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); -typedef Bool ( *PFNGLXWAITFORMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc); -typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc); -#ifdef GLX_GLXEXT_PROTOTYPES -Bool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc); -Bool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator); -int64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); -Bool glXWaitForMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc); -Bool glXWaitForSbcOML (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc); -#endif -#endif /* GLX_OML_sync_control */ - -#ifndef GLX_SGIS_blended_overlay -#define GLX_SGIS_blended_overlay 1 -#define GLX_BLENDED_RGBA_SGIS 0x8025 -#endif /* GLX_SGIS_blended_overlay */ - -#ifndef GLX_SGIS_multisample -#define GLX_SGIS_multisample 1 -#define GLX_SAMPLE_BUFFERS_SGIS 100000 -#define GLX_SAMPLES_SGIS 100001 -#endif /* GLX_SGIS_multisample */ - -#ifndef GLX_SGIS_shared_multisample -#define GLX_SGIS_shared_multisample 1 -#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 -#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 -#endif /* GLX_SGIS_shared_multisample */ - -#ifndef GLX_SGIX_dmbuffer -#define GLX_SGIX_dmbuffer 1 -typedef XID GLXPbufferSGIX; -#ifdef _DM_BUFFER_H_ -#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024 -typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer); -#ifdef GLX_GLXEXT_PROTOTYPES -Bool glXAssociateDMPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer); -#endif -#endif /* _DM_BUFFER_H_ */ -#endif /* GLX_SGIX_dmbuffer */ - -#ifndef GLX_SGIX_fbconfig -#define GLX_SGIX_fbconfig 1 -typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; -#define GLX_WINDOW_BIT_SGIX 0x00000001 -#define GLX_PIXMAP_BIT_SGIX 0x00000002 -#define GLX_RGBA_BIT_SGIX 0x00000001 -#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 -#define GLX_DRAWABLE_TYPE_SGIX 0x8010 -#define GLX_RENDER_TYPE_SGIX 0x8011 -#define GLX_X_RENDERABLE_SGIX 0x8012 -#define GLX_FBCONFIG_ID_SGIX 0x8013 -#define GLX_RGBA_TYPE_SGIX 0x8014 -#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 -typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); -typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements); -typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap); -typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); -typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config); -typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis); -#ifdef GLX_GLXEXT_PROTOTYPES -int glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); -GLXFBConfigSGIX *glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements); -GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap); -GLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); -XVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config); -GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis); -#endif -#endif /* GLX_SGIX_fbconfig */ - -#ifndef GLX_SGIX_hyperpipe -#define GLX_SGIX_hyperpipe 1 -typedef struct { - char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ - int networkId; -} GLXHyperpipeNetworkSGIX; -typedef struct { - char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ - int channel; - unsigned int participationType; - int timeSlice; -} GLXHyperpipeConfigSGIX; -typedef struct { - char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ - int srcXOrigin, srcYOrigin, srcWidth, srcHeight; - int destXOrigin, destYOrigin, destWidth, destHeight; -} GLXPipeRect; -typedef struct { - char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ - int XOrigin, YOrigin, maxHeight, maxWidth; -} GLXPipeRectLimits; -#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80 -#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91 -#define GLX_BAD_HYPERPIPE_SGIX 92 -#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001 -#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002 -#define GLX_PIPE_RECT_SGIX 0x00000001 -#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002 -#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003 -#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004 -#define GLX_HYPERPIPE_ID_SGIX 0x8030 -typedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes); -typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); -typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes); -typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId); -typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId); -typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); -typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList); -typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); -#ifdef GLX_GLXEXT_PROTOTYPES -GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes); -int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); -GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes); -int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId); -int glXBindHyperpipeSGIX (Display *dpy, int hpId); -int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); -int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList); -int glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); -#endif -#endif /* GLX_SGIX_hyperpipe */ - -#ifndef GLX_SGIX_pbuffer -#define GLX_SGIX_pbuffer 1 -#define GLX_PBUFFER_BIT_SGIX 0x00000004 -#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 -#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 -#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 -#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 -#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 -#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 -#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 -#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 -#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 -#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 -#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 -#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 -#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 -#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 -#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A -#define GLX_PRESERVED_CONTENTS_SGIX 0x801B -#define GLX_LARGEST_PBUFFER_SGIX 0x801C -#define GLX_WIDTH_SGIX 0x801D -#define GLX_HEIGHT_SGIX 0x801E -#define GLX_EVENT_MASK_SGIX 0x801F -#define GLX_DAMAGED_SGIX 0x8020 -#define GLX_SAVED_SGIX 0x8021 -#define GLX_WINDOW_SGIX 0x8022 -#define GLX_PBUFFER_SGIX 0x8023 -typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list); -typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf); -typedef int ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value); -typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask); -typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask); -#ifdef GLX_GLXEXT_PROTOTYPES -GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list); -void glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf); -int glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value); -void glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask); -void glXGetSelectedEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long *mask); -#endif -#endif /* GLX_SGIX_pbuffer */ - -#ifndef GLX_SGIX_swap_barrier -#define GLX_SGIX_swap_barrier 1 -typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); -typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); -#ifdef GLX_GLXEXT_PROTOTYPES -void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier); -Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max); -#endif -#endif /* GLX_SGIX_swap_barrier */ - -#ifndef GLX_SGIX_swap_group -#define GLX_SGIX_swap_group 1 -typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); -#ifdef GLX_GLXEXT_PROTOTYPES -void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member); -#endif -#endif /* GLX_SGIX_swap_group */ - -#ifndef GLX_SGIX_video_resize -#define GLX_SGIX_video_resize 1 -#define GLX_SYNC_FRAME_SGIX 0x00000000 -#define GLX_SYNC_SWAP_SGIX 0x00000001 -typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window); -typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h); -typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); -typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h); -typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype); -#ifdef GLX_GLXEXT_PROTOTYPES -int glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window); -int glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h); -int glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); -int glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h); -int glXChannelRectSyncSGIX (Display *display, int screen, int channel, GLenum synctype); -#endif -#endif /* GLX_SGIX_video_resize */ - -#ifndef GLX_SGIX_video_source -#define GLX_SGIX_video_source 1 -typedef XID GLXVideoSourceSGIX; -#ifdef _VL_H -typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode); -typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource); -#ifdef GLX_GLXEXT_PROTOTYPES -GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode); -void glXDestroyGLXVideoSourceSGIX (Display *dpy, GLXVideoSourceSGIX glxvideosource); -#endif -#endif /* _VL_H */ -#endif /* GLX_SGIX_video_source */ - -#ifndef GLX_SGIX_visual_select_group -#define GLX_SGIX_visual_select_group 1 -#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 -#endif /* GLX_SGIX_visual_select_group */ - -#ifndef GLX_SGI_cushion -#define GLX_SGI_cushion 1 -typedef void ( *PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion); -#ifdef GLX_GLXEXT_PROTOTYPES -void glXCushionSGI (Display *dpy, Window window, float cushion); -#endif -#endif /* GLX_SGI_cushion */ - -#ifndef GLX_SGI_make_current_read -#define GLX_SGI_make_current_read 1 -typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); -#ifdef GLX_GLXEXT_PROTOTYPES -Bool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -GLXDrawable glXGetCurrentReadDrawableSGI (void); -#endif -#endif /* GLX_SGI_make_current_read */ - -#ifndef GLX_SGI_swap_control -#define GLX_SGI_swap_control 1 -typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval); -#ifdef GLX_GLXEXT_PROTOTYPES -int glXSwapIntervalSGI (int interval); -#endif -#endif /* GLX_SGI_swap_control */ - -#ifndef GLX_SGI_video_sync -#define GLX_SGI_video_sync 1 -typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count); -typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count); -#ifdef GLX_GLXEXT_PROTOTYPES -int glXGetVideoSyncSGI (unsigned int *count); -int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count); -#endif -#endif /* GLX_SGI_video_sync */ - -#ifndef GLX_SUN_get_transparent_index -#define GLX_SUN_get_transparent_index 1 -typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex); -#ifdef GLX_GLXEXT_PROTOTYPES -Status glXGetTransparentIndexSUN (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex); -#endif -#endif /* GLX_SUN_get_transparent_index */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/wglext.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/wglext.h deleted file mode 100644 index daba410..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/GL/wglext.h +++ /dev/null @@ -1,840 +0,0 @@ -#ifndef __wglext_h_ -#define __wglext_h_ 1 - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** Copyright (c) 2013-2014 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ -/* -** This header is generated from the Khronos OpenGL / OpenGL ES XML -** API Registry. The current version of the Registry, generator scripts -** used to make the header, and the header can be found at -** http://www.opengl.org/registry/ -** -** Khronos $Revision: 27684 $ on $Date: 2014-08-11 01:21:35 -0700 (Mon, 11 Aug 2014) $ -*/ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#define WIN32_LEAN_AND_MEAN 1 -#include -#endif - -#define WGL_WGLEXT_VERSION 20140810 - -/* Generated C header for: - * API: wgl - * Versions considered: .* - * Versions emitted: _nomatch_^ - * Default extensions included: wgl - * Additional extensions included: _nomatch_^ - * Extensions removed: _nomatch_^ - */ - -#ifndef WGL_ARB_buffer_region -#define WGL_ARB_buffer_region 1 -#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 -#define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 -#define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 -#define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 -typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType); -typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion); -typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height); -typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); -#ifdef WGL_WGLEXT_PROTOTYPES -HANDLE WINAPI wglCreateBufferRegionARB (HDC hDC, int iLayerPlane, UINT uType); -VOID WINAPI wglDeleteBufferRegionARB (HANDLE hRegion); -BOOL WINAPI wglSaveBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height); -BOOL WINAPI wglRestoreBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); -#endif -#endif /* WGL_ARB_buffer_region */ - -#ifndef WGL_ARB_context_flush_control -#define WGL_ARB_context_flush_control 1 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 -#endif /* WGL_ARB_context_flush_control */ - -#ifndef WGL_ARB_create_context -#define WGL_ARB_create_context 1 -#define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 -#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 -#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 -#define WGL_CONTEXT_FLAGS_ARB 0x2094 -#define ERROR_INVALID_VERSION_ARB 0x2095 -typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList); -#ifdef WGL_WGLEXT_PROTOTYPES -HGLRC WINAPI wglCreateContextAttribsARB (HDC hDC, HGLRC hShareContext, const int *attribList); -#endif -#endif /* WGL_ARB_create_context */ - -#ifndef WGL_ARB_create_context_profile -#define WGL_ARB_create_context_profile 1 -#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 -#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 -#define ERROR_INVALID_PROFILE_ARB 0x2096 -#endif /* WGL_ARB_create_context_profile */ - -#ifndef WGL_ARB_create_context_robustness -#define WGL_ARB_create_context_robustness 1 -#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 -#endif /* WGL_ARB_create_context_robustness */ - -#ifndef WGL_ARB_extensions_string -#define WGL_ARB_extensions_string 1 -typedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); -#ifdef WGL_WGLEXT_PROTOTYPES -const char *WINAPI wglGetExtensionsStringARB (HDC hdc); -#endif -#endif /* WGL_ARB_extensions_string */ - -#ifndef WGL_ARB_framebuffer_sRGB -#define WGL_ARB_framebuffer_sRGB 1 -#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9 -#endif /* WGL_ARB_framebuffer_sRGB */ - -#ifndef WGL_ARB_make_current_read -#define WGL_ARB_make_current_read 1 -#define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 -#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 -typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); -typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglMakeContextCurrentARB (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); -HDC WINAPI wglGetCurrentReadDCARB (void); -#endif -#endif /* WGL_ARB_make_current_read */ - -#ifndef WGL_ARB_multisample -#define WGL_ARB_multisample 1 -#define WGL_SAMPLE_BUFFERS_ARB 0x2041 -#define WGL_SAMPLES_ARB 0x2042 -#endif /* WGL_ARB_multisample */ - -#ifndef WGL_ARB_pbuffer -#define WGL_ARB_pbuffer 1 -DECLARE_HANDLE(HPBUFFERARB); -#define WGL_DRAW_TO_PBUFFER_ARB 0x202D -#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E -#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F -#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 -#define WGL_PBUFFER_LARGEST_ARB 0x2033 -#define WGL_PBUFFER_WIDTH_ARB 0x2034 -#define WGL_PBUFFER_HEIGHT_ARB 0x2035 -#define WGL_PBUFFER_LOST_ARB 0x2036 -typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); -typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); -typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC); -typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); -typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue); -#ifdef WGL_WGLEXT_PROTOTYPES -HPBUFFERARB WINAPI wglCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); -HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB hPbuffer); -int WINAPI wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC); -BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB hPbuffer); -BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue); -#endif -#endif /* WGL_ARB_pbuffer */ - -#ifndef WGL_ARB_pixel_format -#define WGL_ARB_pixel_format 1 -#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 -#define WGL_DRAW_TO_WINDOW_ARB 0x2001 -#define WGL_DRAW_TO_BITMAP_ARB 0x2002 -#define WGL_ACCELERATION_ARB 0x2003 -#define WGL_NEED_PALETTE_ARB 0x2004 -#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 -#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 -#define WGL_SWAP_METHOD_ARB 0x2007 -#define WGL_NUMBER_OVERLAYS_ARB 0x2008 -#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 -#define WGL_TRANSPARENT_ARB 0x200A -#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 -#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 -#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 -#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A -#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B -#define WGL_SHARE_DEPTH_ARB 0x200C -#define WGL_SHARE_STENCIL_ARB 0x200D -#define WGL_SHARE_ACCUM_ARB 0x200E -#define WGL_SUPPORT_GDI_ARB 0x200F -#define WGL_SUPPORT_OPENGL_ARB 0x2010 -#define WGL_DOUBLE_BUFFER_ARB 0x2011 -#define WGL_STEREO_ARB 0x2012 -#define WGL_PIXEL_TYPE_ARB 0x2013 -#define WGL_COLOR_BITS_ARB 0x2014 -#define WGL_RED_BITS_ARB 0x2015 -#define WGL_RED_SHIFT_ARB 0x2016 -#define WGL_GREEN_BITS_ARB 0x2017 -#define WGL_GREEN_SHIFT_ARB 0x2018 -#define WGL_BLUE_BITS_ARB 0x2019 -#define WGL_BLUE_SHIFT_ARB 0x201A -#define WGL_ALPHA_BITS_ARB 0x201B -#define WGL_ALPHA_SHIFT_ARB 0x201C -#define WGL_ACCUM_BITS_ARB 0x201D -#define WGL_ACCUM_RED_BITS_ARB 0x201E -#define WGL_ACCUM_GREEN_BITS_ARB 0x201F -#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 -#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 -#define WGL_DEPTH_BITS_ARB 0x2022 -#define WGL_STENCIL_BITS_ARB 0x2023 -#define WGL_AUX_BUFFERS_ARB 0x2024 -#define WGL_NO_ACCELERATION_ARB 0x2025 -#define WGL_GENERIC_ACCELERATION_ARB 0x2026 -#define WGL_FULL_ACCELERATION_ARB 0x2027 -#define WGL_SWAP_EXCHANGE_ARB 0x2028 -#define WGL_SWAP_COPY_ARB 0x2029 -#define WGL_SWAP_UNDEFINED_ARB 0x202A -#define WGL_TYPE_RGBA_ARB 0x202B -#define WGL_TYPE_COLORINDEX_ARB 0x202C -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues); -typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues); -BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues); -BOOL WINAPI wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -#endif -#endif /* WGL_ARB_pixel_format */ - -#ifndef WGL_ARB_pixel_format_float -#define WGL_ARB_pixel_format_float 1 -#define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0 -#endif /* WGL_ARB_pixel_format_float */ - -#ifndef WGL_ARB_render_texture -#define WGL_ARB_render_texture 1 -#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 -#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 -#define WGL_TEXTURE_FORMAT_ARB 0x2072 -#define WGL_TEXTURE_TARGET_ARB 0x2073 -#define WGL_MIPMAP_TEXTURE_ARB 0x2074 -#define WGL_TEXTURE_RGB_ARB 0x2075 -#define WGL_TEXTURE_RGBA_ARB 0x2076 -#define WGL_NO_TEXTURE_ARB 0x2077 -#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 -#define WGL_TEXTURE_1D_ARB 0x2079 -#define WGL_TEXTURE_2D_ARB 0x207A -#define WGL_MIPMAP_LEVEL_ARB 0x207B -#define WGL_CUBE_MAP_FACE_ARB 0x207C -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 -#define WGL_FRONT_LEFT_ARB 0x2083 -#define WGL_FRONT_RIGHT_ARB 0x2084 -#define WGL_BACK_LEFT_ARB 0x2085 -#define WGL_BACK_RIGHT_ARB 0x2086 -#define WGL_AUX0_ARB 0x2087 -#define WGL_AUX1_ARB 0x2088 -#define WGL_AUX2_ARB 0x2089 -#define WGL_AUX3_ARB 0x208A -#define WGL_AUX4_ARB 0x208B -#define WGL_AUX5_ARB 0x208C -#define WGL_AUX6_ARB 0x208D -#define WGL_AUX7_ARB 0x208E -#define WGL_AUX8_ARB 0x208F -#define WGL_AUX9_ARB 0x2090 -typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); -typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); -typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer); -BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer); -BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB hPbuffer, const int *piAttribList); -#endif -#endif /* WGL_ARB_render_texture */ - -#ifndef WGL_ARB_robustness_application_isolation -#define WGL_ARB_robustness_application_isolation 1 -#define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 -#endif /* WGL_ARB_robustness_application_isolation */ - -#ifndef WGL_ARB_robustness_share_group_isolation -#define WGL_ARB_robustness_share_group_isolation 1 -#endif /* WGL_ARB_robustness_share_group_isolation */ - -#ifndef WGL_3DFX_multisample -#define WGL_3DFX_multisample 1 -#define WGL_SAMPLE_BUFFERS_3DFX 0x2060 -#define WGL_SAMPLES_3DFX 0x2061 -#endif /* WGL_3DFX_multisample */ - -#ifndef WGL_3DL_stereo_control -#define WGL_3DL_stereo_control 1 -#define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055 -#define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056 -#define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057 -#define WGL_STEREO_POLARITY_INVERT_3DL 0x2058 -typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglSetStereoEmitterState3DL (HDC hDC, UINT uState); -#endif -#endif /* WGL_3DL_stereo_control */ - -#ifndef WGL_AMD_gpu_association -#define WGL_AMD_gpu_association 1 -#define WGL_GPU_VENDOR_AMD 0x1F00 -#define WGL_GPU_RENDERER_STRING_AMD 0x1F01 -#define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 -#define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 -#define WGL_GPU_RAM_AMD 0x21A3 -#define WGL_GPU_CLOCK_AMD 0x21A4 -#define WGL_GPU_NUM_PIPES_AMD 0x21A5 -#define WGL_GPU_NUM_SIMD_AMD 0x21A6 -#define WGL_GPU_NUM_RB_AMD 0x21A7 -#define WGL_GPU_NUM_SPI_AMD 0x21A8 -typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT *ids); -typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, int property, GLenum dataType, UINT size, void *data); -typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc); -typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id); -typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int *attribList); -typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc); -typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc); -typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void); -typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -#ifdef WGL_WGLEXT_PROTOTYPES -UINT WINAPI wglGetGPUIDsAMD (UINT maxCount, UINT *ids); -INT WINAPI wglGetGPUInfoAMD (UINT id, int property, GLenum dataType, UINT size, void *data); -UINT WINAPI wglGetContextGPUIDAMD (HGLRC hglrc); -HGLRC WINAPI wglCreateAssociatedContextAMD (UINT id); -HGLRC WINAPI wglCreateAssociatedContextAttribsAMD (UINT id, HGLRC hShareContext, const int *attribList); -BOOL WINAPI wglDeleteAssociatedContextAMD (HGLRC hglrc); -BOOL WINAPI wglMakeAssociatedContextCurrentAMD (HGLRC hglrc); -HGLRC WINAPI wglGetCurrentAssociatedContextAMD (void); -VOID WINAPI wglBlitContextFramebufferAMD (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -#endif -#endif /* WGL_AMD_gpu_association */ - -#ifndef WGL_ATI_pixel_format_float -#define WGL_ATI_pixel_format_float 1 -#define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0 -#endif /* WGL_ATI_pixel_format_float */ - -#ifndef WGL_EXT_create_context_es2_profile -#define WGL_EXT_create_context_es2_profile 1 -#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 -#endif /* WGL_EXT_create_context_es2_profile */ - -#ifndef WGL_EXT_create_context_es_profile -#define WGL_EXT_create_context_es_profile 1 -#define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004 -#endif /* WGL_EXT_create_context_es_profile */ - -#ifndef WGL_EXT_depth_float -#define WGL_EXT_depth_float 1 -#define WGL_DEPTH_FLOAT_EXT 0x2040 -#endif /* WGL_EXT_depth_float */ - -#ifndef WGL_EXT_display_color_table -#define WGL_EXT_display_color_table 1 -typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); -typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length); -typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); -typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); -#ifdef WGL_WGLEXT_PROTOTYPES -GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort id); -GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *table, GLuint length); -GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort id); -VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort id); -#endif -#endif /* WGL_EXT_display_color_table */ - -#ifndef WGL_EXT_extensions_string -#define WGL_EXT_extensions_string 1 -typedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); -#ifdef WGL_WGLEXT_PROTOTYPES -const char *WINAPI wglGetExtensionsStringEXT (void); -#endif -#endif /* WGL_EXT_extensions_string */ - -#ifndef WGL_EXT_framebuffer_sRGB -#define WGL_EXT_framebuffer_sRGB 1 -#define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9 -#endif /* WGL_EXT_framebuffer_sRGB */ - -#ifndef WGL_EXT_make_current_read -#define WGL_EXT_make_current_read 1 -#define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 -typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); -typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglMakeContextCurrentEXT (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); -HDC WINAPI wglGetCurrentReadDCEXT (void); -#endif -#endif /* WGL_EXT_make_current_read */ - -#ifndef WGL_EXT_multisample -#define WGL_EXT_multisample 1 -#define WGL_SAMPLE_BUFFERS_EXT 0x2041 -#define WGL_SAMPLES_EXT 0x2042 -#endif /* WGL_EXT_multisample */ - -#ifndef WGL_EXT_pbuffer -#define WGL_EXT_pbuffer 1 -DECLARE_HANDLE(HPBUFFEREXT); -#define WGL_DRAW_TO_PBUFFER_EXT 0x202D -#define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E -#define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F -#define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 -#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 -#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 -#define WGL_PBUFFER_LARGEST_EXT 0x2033 -#define WGL_PBUFFER_WIDTH_EXT 0x2034 -#define WGL_PBUFFER_HEIGHT_EXT 0x2035 -typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); -typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); -typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC); -typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); -typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue); -#ifdef WGL_WGLEXT_PROTOTYPES -HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); -HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT hPbuffer); -int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT hPbuffer, HDC hDC); -BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT hPbuffer); -BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue); -#endif -#endif /* WGL_EXT_pbuffer */ - -#ifndef WGL_EXT_pixel_format -#define WGL_EXT_pixel_format 1 -#define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 -#define WGL_DRAW_TO_WINDOW_EXT 0x2001 -#define WGL_DRAW_TO_BITMAP_EXT 0x2002 -#define WGL_ACCELERATION_EXT 0x2003 -#define WGL_NEED_PALETTE_EXT 0x2004 -#define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 -#define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 -#define WGL_SWAP_METHOD_EXT 0x2007 -#define WGL_NUMBER_OVERLAYS_EXT 0x2008 -#define WGL_NUMBER_UNDERLAYS_EXT 0x2009 -#define WGL_TRANSPARENT_EXT 0x200A -#define WGL_TRANSPARENT_VALUE_EXT 0x200B -#define WGL_SHARE_DEPTH_EXT 0x200C -#define WGL_SHARE_STENCIL_EXT 0x200D -#define WGL_SHARE_ACCUM_EXT 0x200E -#define WGL_SUPPORT_GDI_EXT 0x200F -#define WGL_SUPPORT_OPENGL_EXT 0x2010 -#define WGL_DOUBLE_BUFFER_EXT 0x2011 -#define WGL_STEREO_EXT 0x2012 -#define WGL_PIXEL_TYPE_EXT 0x2013 -#define WGL_COLOR_BITS_EXT 0x2014 -#define WGL_RED_BITS_EXT 0x2015 -#define WGL_RED_SHIFT_EXT 0x2016 -#define WGL_GREEN_BITS_EXT 0x2017 -#define WGL_GREEN_SHIFT_EXT 0x2018 -#define WGL_BLUE_BITS_EXT 0x2019 -#define WGL_BLUE_SHIFT_EXT 0x201A -#define WGL_ALPHA_BITS_EXT 0x201B -#define WGL_ALPHA_SHIFT_EXT 0x201C -#define WGL_ACCUM_BITS_EXT 0x201D -#define WGL_ACCUM_RED_BITS_EXT 0x201E -#define WGL_ACCUM_GREEN_BITS_EXT 0x201F -#define WGL_ACCUM_BLUE_BITS_EXT 0x2020 -#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 -#define WGL_DEPTH_BITS_EXT 0x2022 -#define WGL_STENCIL_BITS_EXT 0x2023 -#define WGL_AUX_BUFFERS_EXT 0x2024 -#define WGL_NO_ACCELERATION_EXT 0x2025 -#define WGL_GENERIC_ACCELERATION_EXT 0x2026 -#define WGL_FULL_ACCELERATION_EXT 0x2027 -#define WGL_SWAP_EXCHANGE_EXT 0x2028 -#define WGL_SWAP_COPY_EXT 0x2029 -#define WGL_SWAP_UNDEFINED_EXT 0x202A -#define WGL_TYPE_RGBA_EXT 0x202B -#define WGL_TYPE_COLORINDEX_EXT 0x202C -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues); -typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues); -BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues); -BOOL WINAPI wglChoosePixelFormatEXT (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -#endif -#endif /* WGL_EXT_pixel_format */ - -#ifndef WGL_EXT_pixel_format_packed_float -#define WGL_EXT_pixel_format_packed_float 1 -#define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8 -#endif /* WGL_EXT_pixel_format_packed_float */ - -#ifndef WGL_EXT_swap_control -#define WGL_EXT_swap_control 1 -typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); -typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglSwapIntervalEXT (int interval); -int WINAPI wglGetSwapIntervalEXT (void); -#endif -#endif /* WGL_EXT_swap_control */ - -#ifndef WGL_EXT_swap_control_tear -#define WGL_EXT_swap_control_tear 1 -#endif /* WGL_EXT_swap_control_tear */ - -#ifndef WGL_I3D_digital_video_control -#define WGL_I3D_digital_video_control 1 -#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 -#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 -#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 -#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 -typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue); -typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC hDC, int iAttribute, int *piValue); -BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC hDC, int iAttribute, const int *piValue); -#endif -#endif /* WGL_I3D_digital_video_control */ - -#ifndef WGL_I3D_gamma -#define WGL_I3D_gamma 1 -#define WGL_GAMMA_TABLE_SIZE_I3D 0x204E -#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F -typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue); -typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue); -typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue); -typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglGetGammaTableParametersI3D (HDC hDC, int iAttribute, int *piValue); -BOOL WINAPI wglSetGammaTableParametersI3D (HDC hDC, int iAttribute, const int *piValue); -BOOL WINAPI wglGetGammaTableI3D (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue); -BOOL WINAPI wglSetGammaTableI3D (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue); -#endif -#endif /* WGL_I3D_gamma */ - -#ifndef WGL_I3D_genlock -#define WGL_I3D_genlock 1 -#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 -#define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045 -#define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046 -#define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047 -#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 -#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 -#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A -#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B -#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C -typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC); -typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC); -typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag); -typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource); -typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource); -typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge); -typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge); -typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate); -typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate); -typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay); -typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay); -typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglEnableGenlockI3D (HDC hDC); -BOOL WINAPI wglDisableGenlockI3D (HDC hDC); -BOOL WINAPI wglIsEnabledGenlockI3D (HDC hDC, BOOL *pFlag); -BOOL WINAPI wglGenlockSourceI3D (HDC hDC, UINT uSource); -BOOL WINAPI wglGetGenlockSourceI3D (HDC hDC, UINT *uSource); -BOOL WINAPI wglGenlockSourceEdgeI3D (HDC hDC, UINT uEdge); -BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC hDC, UINT *uEdge); -BOOL WINAPI wglGenlockSampleRateI3D (HDC hDC, UINT uRate); -BOOL WINAPI wglGetGenlockSampleRateI3D (HDC hDC, UINT *uRate); -BOOL WINAPI wglGenlockSourceDelayI3D (HDC hDC, UINT uDelay); -BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC hDC, UINT *uDelay); -BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay); -#endif -#endif /* WGL_I3D_genlock */ - -#ifndef WGL_I3D_image_buffer -#define WGL_I3D_image_buffer 1 -#define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 -#define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 -typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags); -typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress); -typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count); -typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count); -#ifdef WGL_WGLEXT_PROTOTYPES -LPVOID WINAPI wglCreateImageBufferI3D (HDC hDC, DWORD dwSize, UINT uFlags); -BOOL WINAPI wglDestroyImageBufferI3D (HDC hDC, LPVOID pAddress); -BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count); -BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC hDC, const LPVOID *pAddress, UINT count); -#endif -#endif /* WGL_I3D_image_buffer */ - -#ifndef WGL_I3D_swap_frame_lock -#define WGL_I3D_swap_frame_lock 1 -typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void); -typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void); -typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag); -typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglEnableFrameLockI3D (void); -BOOL WINAPI wglDisableFrameLockI3D (void); -BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *pFlag); -BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *pFlag); -#endif -#endif /* WGL_I3D_swap_frame_lock */ - -#ifndef WGL_I3D_swap_frame_usage -#define WGL_I3D_swap_frame_usage 1 -typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage); -typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void); -typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void); -typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglGetFrameUsageI3D (float *pUsage); -BOOL WINAPI wglBeginFrameTrackingI3D (void); -BOOL WINAPI wglEndFrameTrackingI3D (void); -BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); -#endif -#endif /* WGL_I3D_swap_frame_usage */ - -#ifndef WGL_NV_DX_interop -#define WGL_NV_DX_interop 1 -#define WGL_ACCESS_READ_ONLY_NV 0x00000000 -#define WGL_ACCESS_READ_WRITE_NV 0x00000001 -#define WGL_ACCESS_WRITE_DISCARD_NV 0x00000002 -typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void *dxObject, HANDLE shareHandle); -typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void *dxDevice); -typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice); -typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access); -typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject); -typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access); -typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects); -typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglDXSetResourceShareHandleNV (void *dxObject, HANDLE shareHandle); -HANDLE WINAPI wglDXOpenDeviceNV (void *dxDevice); -BOOL WINAPI wglDXCloseDeviceNV (HANDLE hDevice); -HANDLE WINAPI wglDXRegisterObjectNV (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access); -BOOL WINAPI wglDXUnregisterObjectNV (HANDLE hDevice, HANDLE hObject); -BOOL WINAPI wglDXObjectAccessNV (HANDLE hObject, GLenum access); -BOOL WINAPI wglDXLockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects); -BOOL WINAPI wglDXUnlockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects); -#endif -#endif /* WGL_NV_DX_interop */ - -#ifndef WGL_NV_DX_interop2 -#define WGL_NV_DX_interop2 1 -#endif /* WGL_NV_DX_interop2 */ - -#ifndef WGL_NV_copy_image -#define WGL_NV_copy_image 1 -typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglCopyImageSubDataNV (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -#endif -#endif /* WGL_NV_copy_image */ - -#ifndef WGL_NV_delay_before_swap -#define WGL_NV_delay_before_swap 1 -typedef BOOL (WINAPI * PFNWGLDELAYBEFORESWAPNVPROC) (HDC hDC, GLfloat seconds); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglDelayBeforeSwapNV (HDC hDC, GLfloat seconds); -#endif -#endif /* WGL_NV_delay_before_swap */ - -#ifndef WGL_NV_float_buffer -#define WGL_NV_float_buffer 1 -#define WGL_FLOAT_COMPONENTS_NV 0x20B0 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 -#define WGL_TEXTURE_FLOAT_R_NV 0x20B5 -#define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 -#define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 -#define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 -#endif /* WGL_NV_float_buffer */ - -#ifndef WGL_NV_gpu_affinity -#define WGL_NV_gpu_affinity 1 -DECLARE_HANDLE(HGPUNV); -struct _GPU_DEVICE { - DWORD cb; - CHAR DeviceName[32]; - CHAR DeviceString[128]; - DWORD Flags; - RECT rcVirtualScreen; -}; -typedef struct _GPU_DEVICE *PGPU_DEVICE; -#define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 -#define ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 -typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu); -typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice); -typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList); -typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu); -typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglEnumGpusNV (UINT iGpuIndex, HGPUNV *phGpu); -BOOL WINAPI wglEnumGpuDevicesNV (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice); -HDC WINAPI wglCreateAffinityDCNV (const HGPUNV *phGpuList); -BOOL WINAPI wglEnumGpusFromAffinityDCNV (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu); -BOOL WINAPI wglDeleteDCNV (HDC hdc); -#endif -#endif /* WGL_NV_gpu_affinity */ - -#ifndef WGL_NV_multisample_coverage -#define WGL_NV_multisample_coverage 1 -#define WGL_COVERAGE_SAMPLES_NV 0x2042 -#define WGL_COLOR_SAMPLES_NV 0x20B9 -#endif /* WGL_NV_multisample_coverage */ - -#ifndef WGL_NV_present_video -#define WGL_NV_present_video 1 -DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); -#define WGL_NUM_VIDEO_SLOTS_NV 0x20F0 -typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDC, HVIDEOOUTPUTDEVICENV *phDeviceList); -typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDC, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList); -typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int *piValue); -#ifdef WGL_WGLEXT_PROTOTYPES -int WINAPI wglEnumerateVideoDevicesNV (HDC hDC, HVIDEOOUTPUTDEVICENV *phDeviceList); -BOOL WINAPI wglBindVideoDeviceNV (HDC hDC, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList); -BOOL WINAPI wglQueryCurrentContextNV (int iAttribute, int *piValue); -#endif -#endif /* WGL_NV_present_video */ - -#ifndef WGL_NV_render_depth_texture -#define WGL_NV_render_depth_texture 1 -#define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 -#define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 -#define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 -#define WGL_DEPTH_COMPONENT_NV 0x20A7 -#endif /* WGL_NV_render_depth_texture */ - -#ifndef WGL_NV_render_texture_rectangle -#define WGL_NV_render_texture_rectangle 1 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 -#define WGL_TEXTURE_RECTANGLE_NV 0x20A2 -#endif /* WGL_NV_render_texture_rectangle */ - -#ifndef WGL_NV_swap_group -#define WGL_NV_swap_group 1 -typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group); -typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier); -typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint *group, GLuint *barrier); -typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers); -typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint *count); -typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglJoinSwapGroupNV (HDC hDC, GLuint group); -BOOL WINAPI wglBindSwapBarrierNV (GLuint group, GLuint barrier); -BOOL WINAPI wglQuerySwapGroupNV (HDC hDC, GLuint *group, GLuint *barrier); -BOOL WINAPI wglQueryMaxSwapGroupsNV (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers); -BOOL WINAPI wglQueryFrameCountNV (HDC hDC, GLuint *count); -BOOL WINAPI wglResetFrameCountNV (HDC hDC); -#endif -#endif /* WGL_NV_swap_group */ - -#ifndef WGL_NV_vertex_array_range -#define WGL_NV_vertex_array_range 1 -typedef void *(WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); -typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer); -#ifdef WGL_WGLEXT_PROTOTYPES -void *WINAPI wglAllocateMemoryNV (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); -void WINAPI wglFreeMemoryNV (void *pointer); -#endif -#endif /* WGL_NV_vertex_array_range */ - -#ifndef WGL_NV_video_capture -#define WGL_NV_video_capture 1 -DECLARE_HANDLE(HVIDEOINPUTDEVICENV); -#define WGL_UNIQUE_ID_NV 0x20CE -#define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF -typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice); -typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList); -typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice); -typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue); -typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglBindVideoCaptureDeviceNV (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice); -UINT WINAPI wglEnumerateVideoCaptureDevicesNV (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList); -BOOL WINAPI wglLockVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice); -BOOL WINAPI wglQueryVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue); -BOOL WINAPI wglReleaseVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice); -#endif -#endif /* WGL_NV_video_capture */ - -#ifndef WGL_NV_video_output -#define WGL_NV_video_output 1 -DECLARE_HANDLE(HPVIDEODEV); -#define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0 -#define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1 -#define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2 -#define WGL_VIDEO_OUT_COLOR_NV 0x20C3 -#define WGL_VIDEO_OUT_ALPHA_NV 0x20C4 -#define WGL_VIDEO_OUT_DEPTH_NV 0x20C5 -#define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 -#define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 -#define WGL_VIDEO_OUT_FRAME 0x20C8 -#define WGL_VIDEO_OUT_FIELD_1 0x20C9 -#define WGL_VIDEO_OUT_FIELD_2 0x20CA -#define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB -#define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC -typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice); -typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice); -typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer); -typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer); -typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock); -typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglGetVideoDeviceNV (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice); -BOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV hVideoDevice); -BOOL WINAPI wglBindVideoImageNV (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer); -BOOL WINAPI wglReleaseVideoImageNV (HPBUFFERARB hPbuffer, int iVideoBuffer); -BOOL WINAPI wglSendPbufferToVideoNV (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock); -BOOL WINAPI wglGetVideoInfoNV (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); -#endif -#endif /* WGL_NV_video_output */ - -#ifndef WGL_OML_sync_control -#define WGL_OML_sync_control 1 -typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc); -typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator); -typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); -typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); -typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc); -typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc); -#ifdef WGL_WGLEXT_PROTOTYPES -BOOL WINAPI wglGetSyncValuesOML (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc); -BOOL WINAPI wglGetMscRateOML (HDC hdc, INT32 *numerator, INT32 *denominator); -INT64 WINAPI wglSwapBuffersMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); -INT64 WINAPI wglSwapLayerBuffersMscOML (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); -BOOL WINAPI wglWaitForMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc); -BOOL WINAPI wglWaitForSbcOML (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc); -#endif -#endif /* WGL_OML_sync_control */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/KHR/khrplatform.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/KHR/khrplatform.h deleted file mode 100644 index c9e6f17..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/KHR/khrplatform.h +++ /dev/null @@ -1,282 +0,0 @@ -#ifndef __khrplatform_h_ -#define __khrplatform_h_ - -/* -** Copyright (c) 2008-2009 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ - -/* Khronos platform-specific types and definitions. - * - * $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $ - * - * Adopters may modify this file to suit their platform. Adopters are - * encouraged to submit platform specific modifications to the Khronos - * group so that they can be included in future versions of this file. - * Please submit changes by sending them to the public Khronos Bugzilla - * (http://khronos.org/bugzilla) by filing a bug against product - * "Khronos (general)" component "Registry". - * - * A predefined template which fills in some of the bug fields can be - * reached using http://tinyurl.com/khrplatform-h-bugreport, but you - * must create a Bugzilla login first. - * - * - * See the Implementer's Guidelines for information about where this file - * should be located on your system and for more details of its use: - * http://www.khronos.org/registry/implementers_guide.pdf - * - * This file should be included as - * #include - * by Khronos client API header files that use its types and defines. - * - * The types in khrplatform.h should only be used to define API-specific types. - * - * Types defined in khrplatform.h: - * khronos_int8_t signed 8 bit - * khronos_uint8_t unsigned 8 bit - * khronos_int16_t signed 16 bit - * khronos_uint16_t unsigned 16 bit - * khronos_int32_t signed 32 bit - * khronos_uint32_t unsigned 32 bit - * khronos_int64_t signed 64 bit - * khronos_uint64_t unsigned 64 bit - * khronos_intptr_t signed same number of bits as a pointer - * khronos_uintptr_t unsigned same number of bits as a pointer - * khronos_ssize_t signed size - * khronos_usize_t unsigned size - * khronos_float_t signed 32 bit floating point - * khronos_time_ns_t unsigned 64 bit time in nanoseconds - * khronos_utime_nanoseconds_t unsigned time interval or absolute time in - * nanoseconds - * khronos_stime_nanoseconds_t signed time interval in nanoseconds - * khronos_boolean_enum_t enumerated boolean type. This should - * only be used as a base type when a client API's boolean type is - * an enum. Client APIs which use an integer or other type for - * booleans cannot use this as the base type for their boolean. - * - * Tokens defined in khrplatform.h: - * - * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values. - * - * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0. - * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0. - * - * Calling convention macros defined in this file: - * KHRONOS_APICALL - * KHRONOS_APIENTRY - * KHRONOS_APIATTRIBUTES - * - * These may be used in function prototypes as: - * - * KHRONOS_APICALL void KHRONOS_APIENTRY funcname( - * int arg1, - * int arg2) KHRONOS_APIATTRIBUTES; - */ - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APICALL - *------------------------------------------------------------------------- - * This precedes the return type of the function in the function prototype. - */ -#if defined(_WIN32) && !defined(__SCITECH_SNAP__) -# define KHRONOS_APICALL __declspec(dllimport) -#elif defined (__SYMBIAN32__) -# define KHRONOS_APICALL IMPORT_C -#else -# define KHRONOS_APICALL -#endif - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APIENTRY - *------------------------------------------------------------------------- - * This follows the return type of the function and precedes the function - * name in the function prototype. - */ -#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) - /* Win32 but not WinCE */ -# define KHRONOS_APIENTRY __stdcall -#else -# define KHRONOS_APIENTRY -#endif - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APIATTRIBUTES - *------------------------------------------------------------------------- - * This follows the closing parenthesis of the function prototype arguments. - */ -#if defined (__ARMCC_2__) -#define KHRONOS_APIATTRIBUTES __softfp -#else -#define KHRONOS_APIATTRIBUTES -#endif - -/*------------------------------------------------------------------------- - * basic type definitions - *-----------------------------------------------------------------------*/ -#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__) - - -/* - * Using - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif defined(__VMS ) || defined(__sgi) - -/* - * Using - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif defined(_WIN32) && !defined(__SCITECH_SNAP__) - -/* - * Win32 - */ -typedef __int32 khronos_int32_t; -typedef unsigned __int32 khronos_uint32_t; -typedef __int64 khronos_int64_t; -typedef unsigned __int64 khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif defined(__sun__) || defined(__digital__) - -/* - * Sun or Digital - */ -typedef int khronos_int32_t; -typedef unsigned int khronos_uint32_t; -#if defined(__arch64__) || defined(_LP64) -typedef long int khronos_int64_t; -typedef unsigned long int khronos_uint64_t; -#else -typedef long long int khronos_int64_t; -typedef unsigned long long int khronos_uint64_t; -#endif /* __arch64__ */ -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif 0 - -/* - * Hypothetical platform with no float or int64 support - */ -typedef int khronos_int32_t; -typedef unsigned int khronos_uint32_t; -#define KHRONOS_SUPPORT_INT64 0 -#define KHRONOS_SUPPORT_FLOAT 0 - -#else - -/* - * Generic fallback - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#endif - - -/* - * Types that are (so far) the same on all platforms - */ -typedef signed char khronos_int8_t; -typedef unsigned char khronos_uint8_t; -typedef signed short int khronos_int16_t; -typedef unsigned short int khronos_uint16_t; - -/* - * Types that differ between LLP64 and LP64 architectures - in LLP64, - * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears - * to be the only LLP64 architecture in current use. - */ -#ifdef _WIN64 -typedef signed long long int khronos_intptr_t; -typedef unsigned long long int khronos_uintptr_t; -typedef signed long long int khronos_ssize_t; -typedef unsigned long long int khronos_usize_t; -#else -typedef signed long int khronos_intptr_t; -typedef unsigned long int khronos_uintptr_t; -typedef signed long int khronos_ssize_t; -typedef unsigned long int khronos_usize_t; -#endif - -#if KHRONOS_SUPPORT_FLOAT -/* - * Float type - */ -typedef float khronos_float_t; -#endif - -#if KHRONOS_SUPPORT_INT64 -/* Time types - * - * These types can be used to represent a time interval in nanoseconds or - * an absolute Unadjusted System Time. Unadjusted System Time is the number - * of nanoseconds since some arbitrary system event (e.g. since the last - * time the system booted). The Unadjusted System Time is an unsigned - * 64 bit value that wraps back to 0 every 584 years. Time intervals - * may be either signed or unsigned. - */ -typedef khronos_uint64_t khronos_utime_nanoseconds_t; -typedef khronos_int64_t khronos_stime_nanoseconds_t; -#endif - -/* - * Dummy value used to pad enum types to 32 bits. - */ -#ifndef KHRONOS_MAX_ENUM -#define KHRONOS_MAX_ENUM 0x7FFFFFFF -#endif - -/* - * Enumerated boolean type - * - * Values other than zero should be considered to be true. Therefore - * comparisons should not be made against KHRONOS_TRUE. - */ -typedef enum { - KHRONOS_FALSE = 0, - KHRONOS_TRUE = 1, - KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM -} khronos_boolean_enum_t; - -#endif /* __khrplatform_h_ */ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/getopt.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/getopt.c deleted file mode 100644 index 9743046..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/getopt.c +++ /dev/null @@ -1,230 +0,0 @@ -/* Copyright (c) 2012, Kim Gräsman - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * * Neither the name of Kim Gräsman nor the names of contributors may be used - * to endorse or promote products derived from this software without specific - * prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL KIM GRÄSMAN BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "getopt.h" - -#include -#include - -const int no_argument = 0; -const int required_argument = 1; -const int optional_argument = 2; - -char* optarg; -int optopt; -/* The variable optind [...] shall be initialized to 1 by the system. */ -int optind = 1; -int opterr; - -static char* optcursor = NULL; - -/* Implemented based on [1] and [2] for optional arguments. - optopt is handled FreeBSD-style, per [3]. - Other GNU and FreeBSD extensions are purely accidental. - -[1] http://pubs.opengroup.org/onlinepubs/000095399/functions/getopt.html -[2] http://www.kernel.org/doc/man-pages/online/pages/man3/getopt.3.html -[3] http://www.freebsd.org/cgi/man.cgi?query=getopt&sektion=3&manpath=FreeBSD+9.0-RELEASE -*/ -int getopt(int argc, char* const argv[], const char* optstring) { - int optchar = -1; - const char* optdecl = NULL; - - optarg = NULL; - opterr = 0; - optopt = 0; - - /* Unspecified, but we need it to avoid overrunning the argv bounds. */ - if (optind >= argc) - goto no_more_optchars; - - /* If, when getopt() is called argv[optind] is a null pointer, getopt() - shall return -1 without changing optind. */ - if (argv[optind] == NULL) - goto no_more_optchars; - - /* If, when getopt() is called *argv[optind] is not the character '-', - getopt() shall return -1 without changing optind. */ - if (*argv[optind] != '-') - goto no_more_optchars; - - /* If, when getopt() is called argv[optind] points to the string "-", - getopt() shall return -1 without changing optind. */ - if (strcmp(argv[optind], "-") == 0) - goto no_more_optchars; - - /* If, when getopt() is called argv[optind] points to the string "--", - getopt() shall return -1 after incrementing optind. */ - if (strcmp(argv[optind], "--") == 0) { - ++optind; - goto no_more_optchars; - } - - if (optcursor == NULL || *optcursor == '\0') - optcursor = argv[optind] + 1; - - optchar = *optcursor; - - /* FreeBSD: The variable optopt saves the last known option character - returned by getopt(). */ - optopt = optchar; - - /* The getopt() function shall return the next option character (if one is - found) from argv that matches a character in optstring, if there is - one that matches. */ - optdecl = strchr(optstring, optchar); - if (optdecl) { - /* [I]f a character is followed by a colon, the option takes an - argument. */ - if (optdecl[1] == ':') { - optarg = ++optcursor; - if (*optarg == '\0') { - /* GNU extension: Two colons mean an option takes an - optional arg; if there is text in the current argv-element - (i.e., in the same word as the option name itself, for example, - "-oarg"), then it is returned in optarg, otherwise optarg is set - to zero. */ - if (optdecl[2] != ':') { - /* If the option was the last character in the string pointed to by - an element of argv, then optarg shall contain the next element - of argv, and optind shall be incremented by 2. If the resulting - value of optind is greater than argc, this indicates a missing - option-argument, and getopt() shall return an error indication. - - Otherwise, optarg shall point to the string following the - option character in that element of argv, and optind shall be - incremented by 1. - */ - if (++optind < argc) { - optarg = argv[optind]; - } else { - /* If it detects a missing option-argument, it shall return the - colon character ( ':' ) if the first character of optstring - was a colon, or a question-mark character ( '?' ) otherwise. - */ - optarg = NULL; - optchar = (optstring[0] == ':') ? ':' : '?'; - } - } else { - optarg = NULL; - } - } - - optcursor = NULL; - } - } else { - /* If getopt() encounters an option character that is not contained in - optstring, it shall return the question-mark ( '?' ) character. */ - optchar = '?'; - } - - if (optcursor == NULL || *++optcursor == '\0') - ++optind; - - return optchar; - -no_more_optchars: - optcursor = NULL; - return -1; -} - -/* Implementation based on [1]. - -[1] http://www.kernel.org/doc/man-pages/online/pages/man3/getopt.3.html -*/ -int getopt_long(int argc, char* const argv[], const char* optstring, - const struct option* longopts, int* longindex) { - const struct option* o = longopts; - const struct option* match = NULL; - int num_matches = 0; - size_t argument_name_length = 0; - const char* current_argument = NULL; - int retval = -1; - - optarg = NULL; - optopt = 0; - - if (optind >= argc) - return -1; - - if (strlen(argv[optind]) < 3 || strncmp(argv[optind], "--", 2) != 0) - return getopt(argc, argv, optstring); - - /* It's an option; starts with -- and is longer than two chars. */ - current_argument = argv[optind] + 2; - argument_name_length = strcspn(current_argument, "="); - for (; o->name; ++o) { - if (strncmp(o->name, current_argument, argument_name_length) == 0) { - match = o; - ++num_matches; - } - } - - if (num_matches == 1) { - /* If longindex is not NULL, it points to a variable which is set to the - index of the long option relative to longopts. */ - if (longindex) - *longindex = (int) (match - longopts); - - /* If flag is NULL, then getopt_long() shall return val. - Otherwise, getopt_long() returns 0, and flag shall point to a variable - which shall be set to val if the option is found, but left unchanged if - the option is not found. */ - if (match->flag) - *(match->flag) = match->val; - - retval = match->flag ? 0 : match->val; - - if (match->has_arg != no_argument) { - optarg = strchr(argv[optind], '='); - if (optarg != NULL) - ++optarg; - - if (match->has_arg == required_argument) { - /* Only scan the next argv for required arguments. Behavior is not - specified, but has been observed with Ubuntu and Mac OSX. */ - if (optarg == NULL && ++optind < argc) { - optarg = argv[optind]; - } - - if (optarg == NULL) - retval = ':'; - } - } else if (strchr(argv[optind], '=')) { - /* An argument was provided to a non-argument option. - I haven't seen this specified explicitly, but both GNU and BSD-based - implementations show this behavior. - */ - retval = '?'; - } - } else { - /* Unknown option or ambiguous match. */ - retval = '?'; - } - - ++optind; - return retval; -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/getopt.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/getopt.h deleted file mode 100644 index e1eb540..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/getopt.h +++ /dev/null @@ -1,57 +0,0 @@ -/* Copyright (c) 2012, Kim Gräsman - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * * Neither the name of Kim Gräsman nor the names of contributors may be used - * to endorse or promote products derived from this software without specific - * prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL KIM GRÄSMAN BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef INCLUDED_GETOPT_PORT_H -#define INCLUDED_GETOPT_PORT_H - -#if defined(__cplusplus) -extern "C" { -#endif - -extern const int no_argument; -extern const int required_argument; -extern const int optional_argument; - -extern char* optarg; -extern int optind, opterr, optopt; - -struct option { - const char* name; - int has_arg; - int* flag; - int val; -}; - -int getopt(int argc, char* const argv[], const char* optstring); - -int getopt_long(int argc, char* const argv[], - const char* optstring, const struct option* longopts, int* longindex); - -#if defined(__cplusplus) -} -#endif - -#endif // INCLUDED_GETOPT_PORT_H diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/glad.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/glad.c deleted file mode 100644 index e5b643f..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/glad.c +++ /dev/null @@ -1,753 +0,0 @@ -#include -#include -#include - -struct gladGLversionStruct GLVersion; - -#if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0) -#define _GLAD_IS_SOME_NEW_VERSION 1 -#endif - -int GLAD_GL_VERSION_1_0; -int GLAD_GL_VERSION_1_1; -int GLAD_GL_VERSION_1_2; -int GLAD_GL_VERSION_1_3; -int GLAD_GL_VERSION_1_4; -int GLAD_GL_VERSION_1_5; -int GLAD_GL_VERSION_2_0; -int GLAD_GL_VERSION_2_1; -int GLAD_GL_VERSION_3_0; -int GLAD_GL_VERSION_3_1; -int GLAD_GL_VERSION_3_2; -PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -PFNGLFLUSHPROC glad_glFlush; -PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -PFNGLCLEARCOLORPROC glad_glClearColor; -PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; -PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -PFNGLLINKPROGRAMPROC glad_glLinkProgram; -PFNGLBINDTEXTUREPROC glad_glBindTexture; -PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -PFNGLFENCESYNCPROC glad_glFenceSync; -PFNGLUNIFORM3UIPROC glad_glUniform3ui; -PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -PFNGLGETSTRINGPROC glad_glGetString; -PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -PFNGLDETACHSHADERPROC glad_glDetachShader; -PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -PFNGLGENBUFFERSPROC glad_glGenBuffers; -PFNGLENDQUERYPROC glad_glEndQuery; -PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -PFNGLLINEWIDTHPROC glad_glLineWidth; -PFNGLUNIFORM2FVPROC glad_glUniform2fv; -PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -PFNGLCOMPILESHADERPROC glad_glCompileShader; -PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -PFNGLPOLYGONMODEPROC glad_glPolygonMode; -PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; -PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; -PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; -PFNGLISSYNCPROC glad_glIsSync; -PFNGLCLAMPCOLORPROC glad_glClampColor; -PFNGLUNIFORM4IVPROC glad_glUniform4iv; -PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -PFNGLCLEARSTENCILPROC glad_glClearStencil; -PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -PFNGLENABLEIPROC glad_glEnablei; -PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -PFNGLGENTEXTURESPROC glad_glGenTextures; -PFNGLDEPTHFUNCPROC glad_glDepthFunc; -PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -PFNGLUNIFORM1FPROC glad_glUniform1f; -PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -PFNGLCREATESHADERPROC glad_glCreateShader; -PFNGLISBUFFERPROC glad_glIsBuffer; -PFNGLUNIFORM1IPROC glad_glUniform1i; -PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; -PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; -PFNGLDISABLEPROC glad_glDisable; -PFNGLUNIFORM2IPROC glad_glUniform2i; -PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -PFNGLLOGICOPPROC glad_glLogicOp; -PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -PFNGLCOLORMASKPROC glad_glColorMask; -PFNGLHINTPROC glad_glHint; -PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -PFNGLBLENDEQUATIONPROC glad_glBlendEquation; -PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -PFNGLCULLFACEPROC glad_glCullFace; -PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -PFNGLUNIFORM4FVPROC glad_glUniform4fv; -PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; -PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -PFNGLPOINTSIZEPROC glad_glPointSize; -PFNGLGETSTRINGIPROC glad_glGetStringi; -PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -PFNGLGENQUERIESPROC glad_glGenQueries; -PFNGLWAITSYNCPROC glad_glWaitSync; -PFNGLATTACHSHADERPROC glad_glAttachShader; -PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; -PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -PFNGLUNIFORM3IPROC glad_glUniform3i; -PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; -PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -PFNGLUNIFORM3FPROC glad_glUniform3f; -PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; -PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; -PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -PFNGLDRAWELEMENTSPROC glad_glDrawElements; -PFNGLCOLORMASKIPROC glad_glColorMaski; -PFNGLISENABLEDIPROC glad_glIsEnabledi; -PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -PFNGLUNIFORM1IVPROC glad_glUniform1iv; -PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -PFNGLREADBUFFERPROC glad_glReadBuffer; -PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; -PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; -PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -PFNGLGETSHADERIVPROC glad_glGetShaderiv; -PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; -PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; -PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -PFNGLBLENDCOLORPROC glad_glBlendColor; -PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; -PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -PFNGLDEPTHMASKPROC glad_glDepthMask; -PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -PFNGLDISABLEIPROC glad_glDisablei; -PFNGLGETDOUBLEVPROC glad_glGetDoublev; -PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -PFNGLSHADERSOURCEPROC glad_glShaderSource; -PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -PFNGLDRAWARRAYSPROC glad_glDrawArrays; -PFNGLUNIFORM1UIPROC glad_glUniform1ui; -PFNGLISPROGRAMPROC glad_glIsProgram; -PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -PFNGLGETSYNCIVPROC glad_glGetSynciv; -PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; -PFNGLUNIFORM4IPROC glad_glUniform4i; -PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -PFNGLCLEARPROC glad_glClear; -PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; -PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -PFNGLUNIFORM2FPROC glad_glUniform2f; -PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -PFNGLBEGINQUERYPROC glad_glBeginQuery; -PFNGLUNIFORM2IVPROC glad_glUniform2iv; -PFNGLBINDBUFFERPROC glad_glBindBuffer; -PFNGLISENABLEDPROC glad_glIsEnabled; -PFNGLSTENCILOPPROC glad_glStencilOp; -PFNGLREADPIXELSPROC glad_glReadPixels; -PFNGLCLEARDEPTHPROC glad_glClearDepth; -PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -PFNGLUNIFORM4FPROC glad_glUniform4f; -PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -PFNGLMAPBUFFERPROC glad_glMapBuffer; -PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -PFNGLUNIFORM3FVPROC glad_glUniform3fv; -PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -PFNGLBUFFERDATAPROC glad_glBufferData; -PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -PFNGLDELETESYNCPROC glad_glDeleteSync; -PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -PFNGLGETERRORPROC glad_glGetError; -PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -PFNGLGETFLOATVPROC glad_glGetFloatv; -PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -PFNGLUNIFORM3IVPROC glad_glUniform3iv; -PFNGLGETTEXIMAGEPROC glad_glGetTexImage; -PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -PFNGLUSEPROGRAMPROC glad_glUseProgram; -PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; -PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; -PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; -PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; -PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; -PFNGLSTENCILFUNCPROC glad_glStencilFunc; -PFNGLGETINTEGERVPROC glad_glGetIntegerv; -PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -PFNGLUNIFORM1FVPROC glad_glUniform1fv; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; -PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -PFNGLISQUERYPROC glad_glIsQuery; -PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; -PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -PFNGLGETQUERYIVPROC glad_glGetQueryiv; -PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -PFNGLSTENCILMASKPROC glad_glStencilMask; -PFNGLUNIFORM4UIPROC glad_glUniform4ui; -PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; -PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -PFNGLISTEXTUREPROC glad_glIsTexture; -PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -PFNGLISSHADERPROC glad_glIsShader; -PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; -PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; -PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; -PFNGLENABLEPROC glad_glEnable; -PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; -PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -PFNGLDELETEQUERIESPROC glad_glDeleteQueries; -PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -PFNGLFINISHPROC glad_glFinish; -PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; -PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -PFNGLDELETESHADERPROC glad_glDeleteShader; -PFNGLBLENDFUNCPROC glad_glBlendFunc; -PFNGLCREATEPROGRAMPROC glad_glCreateProgram; -PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -PFNGLVIEWPORTPROC glad_glViewport; -PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; -PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -PFNGLUNIFORM2UIPROC glad_glUniform2ui; -PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; -PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; -PFNGLDEPTHRANGEPROC glad_glDepthRange; -PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -PFNGLTEXPARAMETERFPROC glad_glTexParameterf; -PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -PFNGLFRONTFACEPROC glad_glFrontFace; -PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -PFNGLSCISSORPROC glad_glScissor; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -PFNGLTEXBUFFERPROC glad_glTexBuffer; -PFNGLPIXELSTOREIPROC glad_glPixelStorei; -PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -PFNGLPIXELSTOREFPROC glad_glPixelStoref; -PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -static void load_GL_VERSION_1_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_0) return; - glad_glCullFace = (PFNGLCULLFACEPROC)load("glCullFace"); - glad_glFrontFace = (PFNGLFRONTFACEPROC)load("glFrontFace"); - glad_glHint = (PFNGLHINTPROC)load("glHint"); - glad_glLineWidth = (PFNGLLINEWIDTHPROC)load("glLineWidth"); - glad_glPointSize = (PFNGLPOINTSIZEPROC)load("glPointSize"); - glad_glPolygonMode = (PFNGLPOLYGONMODEPROC)load("glPolygonMode"); - glad_glScissor = (PFNGLSCISSORPROC)load("glScissor"); - glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC)load("glTexParameterf"); - glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)load("glTexParameterfv"); - glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC)load("glTexParameteri"); - glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)load("glTexParameteriv"); - glad_glTexImage1D = (PFNGLTEXIMAGE1DPROC)load("glTexImage1D"); - glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC)load("glTexImage2D"); - glad_glDrawBuffer = (PFNGLDRAWBUFFERPROC)load("glDrawBuffer"); - glad_glClear = (PFNGLCLEARPROC)load("glClear"); - glad_glClearColor = (PFNGLCLEARCOLORPROC)load("glClearColor"); - glad_glClearStencil = (PFNGLCLEARSTENCILPROC)load("glClearStencil"); - glad_glClearDepth = (PFNGLCLEARDEPTHPROC)load("glClearDepth"); - glad_glStencilMask = (PFNGLSTENCILMASKPROC)load("glStencilMask"); - glad_glColorMask = (PFNGLCOLORMASKPROC)load("glColorMask"); - glad_glDepthMask = (PFNGLDEPTHMASKPROC)load("glDepthMask"); - glad_glDisable = (PFNGLDISABLEPROC)load("glDisable"); - glad_glEnable = (PFNGLENABLEPROC)load("glEnable"); - glad_glFinish = (PFNGLFINISHPROC)load("glFinish"); - glad_glFlush = (PFNGLFLUSHPROC)load("glFlush"); - glad_glBlendFunc = (PFNGLBLENDFUNCPROC)load("glBlendFunc"); - glad_glLogicOp = (PFNGLLOGICOPPROC)load("glLogicOp"); - glad_glStencilFunc = (PFNGLSTENCILFUNCPROC)load("glStencilFunc"); - glad_glStencilOp = (PFNGLSTENCILOPPROC)load("glStencilOp"); - glad_glDepthFunc = (PFNGLDEPTHFUNCPROC)load("glDepthFunc"); - glad_glPixelStoref = (PFNGLPIXELSTOREFPROC)load("glPixelStoref"); - glad_glPixelStorei = (PFNGLPIXELSTOREIPROC)load("glPixelStorei"); - glad_glReadBuffer = (PFNGLREADBUFFERPROC)load("glReadBuffer"); - glad_glReadPixels = (PFNGLREADPIXELSPROC)load("glReadPixels"); - glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC)load("glGetBooleanv"); - glad_glGetDoublev = (PFNGLGETDOUBLEVPROC)load("glGetDoublev"); - glad_glGetError = (PFNGLGETERRORPROC)load("glGetError"); - glad_glGetFloatv = (PFNGLGETFLOATVPROC)load("glGetFloatv"); - glad_glGetIntegerv = (PFNGLGETINTEGERVPROC)load("glGetIntegerv"); - glad_glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); - glad_glGetTexImage = (PFNGLGETTEXIMAGEPROC)load("glGetTexImage"); - glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)load("glGetTexParameterfv"); - glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)load("glGetTexParameteriv"); - glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)load("glGetTexLevelParameterfv"); - glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)load("glGetTexLevelParameteriv"); - glad_glIsEnabled = (PFNGLISENABLEDPROC)load("glIsEnabled"); - glad_glDepthRange = (PFNGLDEPTHRANGEPROC)load("glDepthRange"); - glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport"); -} -static void load_GL_VERSION_1_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_1) return; - glad_glDrawArrays = (PFNGLDRAWARRAYSPROC)load("glDrawArrays"); - glad_glDrawElements = (PFNGLDRAWELEMENTSPROC)load("glDrawElements"); - glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)load("glPolygonOffset"); - glad_glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC)load("glCopyTexImage1D"); - glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)load("glCopyTexImage2D"); - glad_glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC)load("glCopyTexSubImage1D"); - glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)load("glCopyTexSubImage2D"); - glad_glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC)load("glTexSubImage1D"); - glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)load("glTexSubImage2D"); - glad_glBindTexture = (PFNGLBINDTEXTUREPROC)load("glBindTexture"); - glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC)load("glDeleteTextures"); - glad_glGenTextures = (PFNGLGENTEXTURESPROC)load("glGenTextures"); - glad_glIsTexture = (PFNGLISTEXTUREPROC)load("glIsTexture"); -} -static void load_GL_VERSION_1_2(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_2) return; - glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)load("glDrawRangeElements"); - glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC)load("glTexImage3D"); - glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)load("glTexSubImage3D"); - glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)load("glCopyTexSubImage3D"); -} -static void load_GL_VERSION_1_3(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_3) return; - glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC)load("glActiveTexture"); - glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)load("glSampleCoverage"); - glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)load("glCompressedTexImage3D"); - glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)load("glCompressedTexImage2D"); - glad_glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC)load("glCompressedTexImage1D"); - glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)load("glCompressedTexSubImage3D"); - glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)load("glCompressedTexSubImage2D"); - glad_glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)load("glCompressedTexSubImage1D"); - glad_glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC)load("glGetCompressedTexImage"); -} -static void load_GL_VERSION_1_4(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_4) return; - glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)load("glBlendFuncSeparate"); - glad_glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC)load("glMultiDrawArrays"); - glad_glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC)load("glMultiDrawElements"); - glad_glPointParameterf = (PFNGLPOINTPARAMETERFPROC)load("glPointParameterf"); - glad_glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC)load("glPointParameterfv"); - glad_glPointParameteri = (PFNGLPOINTPARAMETERIPROC)load("glPointParameteri"); - glad_glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC)load("glPointParameteriv"); - glad_glBlendColor = (PFNGLBLENDCOLORPROC)load("glBlendColor"); - glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC)load("glBlendEquation"); -} -static void load_GL_VERSION_1_5(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_5) return; - glad_glGenQueries = (PFNGLGENQUERIESPROC)load("glGenQueries"); - glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC)load("glDeleteQueries"); - glad_glIsQuery = (PFNGLISQUERYPROC)load("glIsQuery"); - glad_glBeginQuery = (PFNGLBEGINQUERYPROC)load("glBeginQuery"); - glad_glEndQuery = (PFNGLENDQUERYPROC)load("glEndQuery"); - glad_glGetQueryiv = (PFNGLGETQUERYIVPROC)load("glGetQueryiv"); - glad_glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC)load("glGetQueryObjectiv"); - glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)load("glGetQueryObjectuiv"); - glad_glBindBuffer = (PFNGLBINDBUFFERPROC)load("glBindBuffer"); - glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)load("glDeleteBuffers"); - glad_glGenBuffers = (PFNGLGENBUFFERSPROC)load("glGenBuffers"); - glad_glIsBuffer = (PFNGLISBUFFERPROC)load("glIsBuffer"); - glad_glBufferData = (PFNGLBUFFERDATAPROC)load("glBufferData"); - glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC)load("glBufferSubData"); - glad_glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC)load("glGetBufferSubData"); - glad_glMapBuffer = (PFNGLMAPBUFFERPROC)load("glMapBuffer"); - glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)load("glUnmapBuffer"); - glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)load("glGetBufferParameteriv"); - glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)load("glGetBufferPointerv"); -} -static void load_GL_VERSION_2_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_2_0) return; - glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)load("glBlendEquationSeparate"); - glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC)load("glDrawBuffers"); - glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)load("glStencilOpSeparate"); - glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)load("glStencilFuncSeparate"); - glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)load("glStencilMaskSeparate"); - glad_glAttachShader = (PFNGLATTACHSHADERPROC)load("glAttachShader"); - glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)load("glBindAttribLocation"); - glad_glCompileShader = (PFNGLCOMPILESHADERPROC)load("glCompileShader"); - glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC)load("glCreateProgram"); - glad_glCreateShader = (PFNGLCREATESHADERPROC)load("glCreateShader"); - glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC)load("glDeleteProgram"); - glad_glDeleteShader = (PFNGLDELETESHADERPROC)load("glDeleteShader"); - glad_glDetachShader = (PFNGLDETACHSHADERPROC)load("glDetachShader"); - glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)load("glDisableVertexAttribArray"); - glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)load("glEnableVertexAttribArray"); - glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)load("glGetActiveAttrib"); - glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)load("glGetActiveUniform"); - glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)load("glGetAttachedShaders"); - glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)load("glGetAttribLocation"); - glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC)load("glGetProgramiv"); - glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)load("glGetProgramInfoLog"); - glad_glGetShaderiv = (PFNGLGETSHADERIVPROC)load("glGetShaderiv"); - glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)load("glGetShaderInfoLog"); - glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)load("glGetShaderSource"); - glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)load("glGetUniformLocation"); - glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC)load("glGetUniformfv"); - glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC)load("glGetUniformiv"); - glad_glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC)load("glGetVertexAttribdv"); - glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)load("glGetVertexAttribfv"); - glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)load("glGetVertexAttribiv"); - glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)load("glGetVertexAttribPointerv"); - glad_glIsProgram = (PFNGLISPROGRAMPROC)load("glIsProgram"); - glad_glIsShader = (PFNGLISSHADERPROC)load("glIsShader"); - glad_glLinkProgram = (PFNGLLINKPROGRAMPROC)load("glLinkProgram"); - glad_glShaderSource = (PFNGLSHADERSOURCEPROC)load("glShaderSource"); - glad_glUseProgram = (PFNGLUSEPROGRAMPROC)load("glUseProgram"); - glad_glUniform1f = (PFNGLUNIFORM1FPROC)load("glUniform1f"); - glad_glUniform2f = (PFNGLUNIFORM2FPROC)load("glUniform2f"); - glad_glUniform3f = (PFNGLUNIFORM3FPROC)load("glUniform3f"); - glad_glUniform4f = (PFNGLUNIFORM4FPROC)load("glUniform4f"); - glad_glUniform1i = (PFNGLUNIFORM1IPROC)load("glUniform1i"); - glad_glUniform2i = (PFNGLUNIFORM2IPROC)load("glUniform2i"); - glad_glUniform3i = (PFNGLUNIFORM3IPROC)load("glUniform3i"); - glad_glUniform4i = (PFNGLUNIFORM4IPROC)load("glUniform4i"); - glad_glUniform1fv = (PFNGLUNIFORM1FVPROC)load("glUniform1fv"); - glad_glUniform2fv = (PFNGLUNIFORM2FVPROC)load("glUniform2fv"); - glad_glUniform3fv = (PFNGLUNIFORM3FVPROC)load("glUniform3fv"); - glad_glUniform4fv = (PFNGLUNIFORM4FVPROC)load("glUniform4fv"); - glad_glUniform1iv = (PFNGLUNIFORM1IVPROC)load("glUniform1iv"); - glad_glUniform2iv = (PFNGLUNIFORM2IVPROC)load("glUniform2iv"); - glad_glUniform3iv = (PFNGLUNIFORM3IVPROC)load("glUniform3iv"); - glad_glUniform4iv = (PFNGLUNIFORM4IVPROC)load("glUniform4iv"); - glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)load("glUniformMatrix2fv"); - glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)load("glUniformMatrix3fv"); - glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)load("glUniformMatrix4fv"); - glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)load("glValidateProgram"); - glad_glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC)load("glVertexAttrib1d"); - glad_glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC)load("glVertexAttrib1dv"); - glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)load("glVertexAttrib1f"); - glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)load("glVertexAttrib1fv"); - glad_glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC)load("glVertexAttrib1s"); - glad_glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC)load("glVertexAttrib1sv"); - glad_glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC)load("glVertexAttrib2d"); - glad_glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC)load("glVertexAttrib2dv"); - glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)load("glVertexAttrib2f"); - glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)load("glVertexAttrib2fv"); - glad_glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC)load("glVertexAttrib2s"); - glad_glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC)load("glVertexAttrib2sv"); - glad_glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC)load("glVertexAttrib3d"); - glad_glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC)load("glVertexAttrib3dv"); - glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)load("glVertexAttrib3f"); - glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)load("glVertexAttrib3fv"); - glad_glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC)load("glVertexAttrib3s"); - glad_glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC)load("glVertexAttrib3sv"); - glad_glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC)load("glVertexAttrib4Nbv"); - glad_glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC)load("glVertexAttrib4Niv"); - glad_glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC)load("glVertexAttrib4Nsv"); - glad_glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC)load("glVertexAttrib4Nub"); - glad_glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC)load("glVertexAttrib4Nubv"); - glad_glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC)load("glVertexAttrib4Nuiv"); - glad_glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC)load("glVertexAttrib4Nusv"); - glad_glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC)load("glVertexAttrib4bv"); - glad_glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC)load("glVertexAttrib4d"); - glad_glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC)load("glVertexAttrib4dv"); - glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)load("glVertexAttrib4f"); - glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)load("glVertexAttrib4fv"); - glad_glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC)load("glVertexAttrib4iv"); - glad_glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC)load("glVertexAttrib4s"); - glad_glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC)load("glVertexAttrib4sv"); - glad_glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC)load("glVertexAttrib4ubv"); - glad_glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC)load("glVertexAttrib4uiv"); - glad_glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC)load("glVertexAttrib4usv"); - glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)load("glVertexAttribPointer"); -} -static void load_GL_VERSION_2_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_2_1) return; - glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)load("glUniformMatrix2x3fv"); - glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)load("glUniformMatrix3x2fv"); - glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)load("glUniformMatrix2x4fv"); - glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)load("glUniformMatrix4x2fv"); - glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)load("glUniformMatrix3x4fv"); - glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)load("glUniformMatrix4x3fv"); -} -static void load_GL_VERSION_3_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_0) return; - glad_glColorMaski = (PFNGLCOLORMASKIPROC)load("glColorMaski"); - glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC)load("glGetBooleani_v"); - glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v"); - glad_glEnablei = (PFNGLENABLEIPROC)load("glEnablei"); - glad_glDisablei = (PFNGLDISABLEIPROC)load("glDisablei"); - glad_glIsEnabledi = (PFNGLISENABLEDIPROC)load("glIsEnabledi"); - glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC)load("glBeginTransformFeedback"); - glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC)load("glEndTransformFeedback"); - glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange"); - glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase"); - glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC)load("glTransformFeedbackVaryings"); - glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)load("glGetTransformFeedbackVarying"); - glad_glClampColor = (PFNGLCLAMPCOLORPROC)load("glClampColor"); - glad_glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC)load("glBeginConditionalRender"); - glad_glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC)load("glEndConditionalRender"); - glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC)load("glVertexAttribIPointer"); - glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC)load("glGetVertexAttribIiv"); - glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC)load("glGetVertexAttribIuiv"); - glad_glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC)load("glVertexAttribI1i"); - glad_glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC)load("glVertexAttribI2i"); - glad_glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC)load("glVertexAttribI3i"); - glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC)load("glVertexAttribI4i"); - glad_glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC)load("glVertexAttribI1ui"); - glad_glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC)load("glVertexAttribI2ui"); - glad_glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC)load("glVertexAttribI3ui"); - glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC)load("glVertexAttribI4ui"); - glad_glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC)load("glVertexAttribI1iv"); - glad_glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC)load("glVertexAttribI2iv"); - glad_glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC)load("glVertexAttribI3iv"); - glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC)load("glVertexAttribI4iv"); - glad_glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC)load("glVertexAttribI1uiv"); - glad_glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC)load("glVertexAttribI2uiv"); - glad_glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC)load("glVertexAttribI3uiv"); - glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC)load("glVertexAttribI4uiv"); - glad_glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC)load("glVertexAttribI4bv"); - glad_glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC)load("glVertexAttribI4sv"); - glad_glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC)load("glVertexAttribI4ubv"); - glad_glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC)load("glVertexAttribI4usv"); - glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC)load("glGetUniformuiv"); - glad_glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC)load("glBindFragDataLocation"); - glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC)load("glGetFragDataLocation"); - glad_glUniform1ui = (PFNGLUNIFORM1UIPROC)load("glUniform1ui"); - glad_glUniform2ui = (PFNGLUNIFORM2UIPROC)load("glUniform2ui"); - glad_glUniform3ui = (PFNGLUNIFORM3UIPROC)load("glUniform3ui"); - glad_glUniform4ui = (PFNGLUNIFORM4UIPROC)load("glUniform4ui"); - glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC)load("glUniform1uiv"); - glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC)load("glUniform2uiv"); - glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC)load("glUniform3uiv"); - glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC)load("glUniform4uiv"); - glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC)load("glTexParameterIiv"); - glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC)load("glTexParameterIuiv"); - glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC)load("glGetTexParameterIiv"); - glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC)load("glGetTexParameterIuiv"); - glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC)load("glClearBufferiv"); - glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC)load("glClearBufferuiv"); - glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC)load("glClearBufferfv"); - glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC)load("glClearBufferfi"); - glad_glGetStringi = (PFNGLGETSTRINGIPROC)load("glGetStringi"); - glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer"); - glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)load("glBindRenderbuffer"); - glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)load("glDeleteRenderbuffers"); - glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)load("glGenRenderbuffers"); - glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)load("glRenderbufferStorage"); - glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)load("glGetRenderbufferParameteriv"); - glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)load("glIsFramebuffer"); - glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)load("glBindFramebuffer"); - glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)load("glDeleteFramebuffers"); - glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)load("glGenFramebuffers"); - glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)load("glCheckFramebufferStatus"); - glad_glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC)load("glFramebufferTexture1D"); - glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)load("glFramebufferTexture2D"); - glad_glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC)load("glFramebufferTexture3D"); - glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)load("glFramebufferRenderbuffer"); - glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetFramebufferAttachmentParameteriv"); - glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)load("glGenerateMipmap"); - glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)load("glBlitFramebuffer"); - glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glRenderbufferStorageMultisample"); - glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)load("glFramebufferTextureLayer"); - glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)load("glMapBufferRange"); - glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)load("glFlushMappedBufferRange"); - glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)load("glBindVertexArray"); - glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)load("glDeleteVertexArrays"); - glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)load("glGenVertexArrays"); - glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC)load("glIsVertexArray"); -} -static void load_GL_VERSION_3_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_1) return; - glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)load("glDrawArraysInstanced"); - glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC)load("glDrawElementsInstanced"); - glad_glTexBuffer = (PFNGLTEXBUFFERPROC)load("glTexBuffer"); - glad_glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC)load("glPrimitiveRestartIndex"); - glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)load("glCopyBufferSubData"); - glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)load("glGetUniformIndices"); - glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)load("glGetActiveUniformsiv"); - glad_glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC)load("glGetActiveUniformName"); - glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)load("glGetUniformBlockIndex"); - glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)load("glGetActiveUniformBlockiv"); - glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)load("glGetActiveUniformBlockName"); - glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)load("glUniformBlockBinding"); -} -static void load_GL_VERSION_3_2(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_2) return; - glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)load("glDrawElementsBaseVertex"); - glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)load("glDrawRangeElementsBaseVertex"); - glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)load("glDrawElementsInstancedBaseVertex"); - glad_glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)load("glMultiDrawElementsBaseVertex"); - glad_glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC)load("glProvokingVertex"); - glad_glFenceSync = (PFNGLFENCESYNCPROC)load("glFenceSync"); - glad_glIsSync = (PFNGLISSYNCPROC)load("glIsSync"); - glad_glDeleteSync = (PFNGLDELETESYNCPROC)load("glDeleteSync"); - glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)load("glClientWaitSync"); - glad_glWaitSync = (PFNGLWAITSYNCPROC)load("glWaitSync"); - glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC)load("glGetInteger64v"); - glad_glGetSynciv = (PFNGLGETSYNCIVPROC)load("glGetSynciv"); - glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)load("glGetInteger64i_v"); - glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)load("glGetBufferParameteri64v"); - glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)load("glFramebufferTexture"); - glad_glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)load("glTexImage2DMultisample"); - glad_glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC)load("glTexImage3DMultisample"); - glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)load("glGetMultisamplefv"); - glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC)load("glSampleMaski"); -} -static void find_extensionsGL(void) { -} - -static void find_coreGL(void) { - - /* Thank you @elmindreda - * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176 - * https://github.com/glfw/glfw/blob/master/src/context.c#L36 - */ - int i, major, minor; - - const char* version; - const char* prefixes[] = { - "OpenGL ES-CM ", - "OpenGL ES-CL ", - "OpenGL ES ", - NULL - }; - - version = (const char*) glGetString(GL_VERSION); - if (!version) return; - - for (i = 0; prefixes[i]; i++) { - const size_t length = strlen(prefixes[i]); - if (strncmp(version, prefixes[i], length) == 0) { - version += length; - break; - } - } - - sscanf(version, "%d.%d", &major, &minor); - GLVersion.major = major; GLVersion.minor = minor; - GLAD_GL_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1; - GLAD_GL_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1; - GLAD_GL_VERSION_1_2 = (major == 1 && minor >= 2) || major > 1; - GLAD_GL_VERSION_1_3 = (major == 1 && minor >= 3) || major > 1; - GLAD_GL_VERSION_1_4 = (major == 1 && minor >= 4) || major > 1; - GLAD_GL_VERSION_1_5 = (major == 1 && minor >= 5) || major > 1; - GLAD_GL_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2; - GLAD_GL_VERSION_2_1 = (major == 2 && minor >= 1) || major > 2; - GLAD_GL_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3; - GLAD_GL_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3; - GLAD_GL_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3; -} - -int gladLoadGLLoader(GLADloadproc load) { - GLVersion.major = 0; GLVersion.minor = 0; - glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); - if(glGetString == NULL) return 0; - if(glGetString(GL_VERSION) == NULL) return 0; - find_coreGL(); - load_GL_VERSION_1_0(load); - load_GL_VERSION_1_1(load); - load_GL_VERSION_1_2(load); - load_GL_VERSION_1_3(load); - load_GL_VERSION_1_4(load); - load_GL_VERSION_1_5(load); - load_GL_VERSION_2_0(load); - load_GL_VERSION_2_1(load); - load_GL_VERSION_3_0(load); - load_GL_VERSION_3_1(load); - load_GL_VERSION_3_2(load); - - find_extensionsGL(); - return GLVersion.major != 0 || GLVersion.minor != 0; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/glad/glad.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/glad/glad.h deleted file mode 100644 index 8ede052..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/glad/glad.h +++ /dev/null @@ -1,1930 +0,0 @@ - -#ifndef __glad_h_ - -#ifdef __gl_h_ -#error OpenGL header already included, remove this include, glad already provides it -#endif - -#define __glad_h_ -#define __gl_h_ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN 1 -#endif -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -struct gladGLversionStruct { - int major; - int minor; -}; - -extern struct gladGLversionStruct GLVersion; - -typedef void* (* GLADloadproc)(const char *name); - -#ifndef GLAPI -# if defined(GLAD_GLAPI_EXPORT) -# if defined(WIN32) || defined(__CYGWIN__) -# if defined(GLAD_GLAPI_EXPORT_BUILD) -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllexport)) extern -# else -# define GLAPI __declspec(dllexport) extern -# endif -# else -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllimport)) extern -# else -# define GLAPI __declspec(dllimport) extern -# endif -# endif -# elif defined(__GNUC__) && defined(GLAD_GLAPI_EXPORT_BUILD) -# define GLAPI __attribute__ ((visibility ("default"))) extern -# else -# define GLAPI extern -# endif -# else -# define GLAPI extern -# endif -#endif -GLAPI int gladLoadGLLoader(GLADloadproc); - -#include -#include -#ifndef GLEXT_64_TYPES_DEFINED -/* This code block is duplicated in glxext.h, so must be protected */ -#define GLEXT_64_TYPES_DEFINED -/* Define int32_t, int64_t, and uint64_t types for UST/MSC */ -/* (as used in the GL_EXT_timer_query extension). */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#include -#elif defined(__sun__) || defined(__digital__) -#include -#if defined(__STDC__) -#if defined(__arch64__) || defined(_LP64) -typedef long int int64_t; -typedef unsigned long int uint64_t; -#else -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#endif /* __arch64__ */ -#endif /* __STDC__ */ -#elif defined( __VMS ) || defined(__sgi) -#include -#elif defined(__SCO__) || defined(__USLC__) -#include -#elif defined(__UNIXOS2__) || defined(__SOL64__) -typedef long int int32_t; -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#elif defined(_WIN32) && defined(__GNUC__) -#include -#elif defined(_WIN32) -typedef __int32 int32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -/* Fallback if nothing above works */ -#include -#endif -#endif -typedef unsigned int GLenum; -typedef unsigned char GLboolean; -typedef unsigned int GLbitfield; -typedef void GLvoid; -typedef signed char GLbyte; -typedef short GLshort; -typedef int GLint; -typedef int GLclampx; -typedef unsigned char GLubyte; -typedef unsigned short GLushort; -typedef unsigned int GLuint; -typedef int GLsizei; -typedef float GLfloat; -typedef float GLclampf; -typedef double GLdouble; -typedef double GLclampd; -typedef void *GLeglImageOES; -typedef char GLchar; -typedef char GLcharARB; -#ifdef __APPLE__ -typedef void *GLhandleARB; -#else -typedef unsigned int GLhandleARB; -#endif -typedef unsigned short GLhalfARB; -typedef unsigned short GLhalf; -typedef GLint GLfixed; -typedef ptrdiff_t GLintptr; -typedef ptrdiff_t GLsizeiptr; -typedef int64_t GLint64; -typedef uint64_t GLuint64; -typedef ptrdiff_t GLintptrARB; -typedef ptrdiff_t GLsizeiptrARB; -typedef int64_t GLint64EXT; -typedef uint64_t GLuint64EXT; -typedef struct __GLsync *GLsync; -struct _cl_context; -struct _cl_event; -typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); -typedef unsigned short GLhalfNV; -typedef GLintptr GLvdpauSurfaceNV; -#define GL_DEPTH_BUFFER_BIT 0x00000100 -#define GL_STENCIL_BUFFER_BIT 0x00000400 -#define GL_COLOR_BUFFER_BIT 0x00004000 -#define GL_FALSE 0 -#define GL_TRUE 1 -#define GL_POINTS 0x0000 -#define GL_LINES 0x0001 -#define GL_LINE_LOOP 0x0002 -#define GL_LINE_STRIP 0x0003 -#define GL_TRIANGLES 0x0004 -#define GL_TRIANGLE_STRIP 0x0005 -#define GL_TRIANGLE_FAN 0x0006 -#define GL_NEVER 0x0200 -#define GL_LESS 0x0201 -#define GL_EQUAL 0x0202 -#define GL_LEQUAL 0x0203 -#define GL_GREATER 0x0204 -#define GL_NOTEQUAL 0x0205 -#define GL_GEQUAL 0x0206 -#define GL_ALWAYS 0x0207 -#define GL_ZERO 0 -#define GL_ONE 1 -#define GL_SRC_COLOR 0x0300 -#define GL_ONE_MINUS_SRC_COLOR 0x0301 -#define GL_SRC_ALPHA 0x0302 -#define GL_ONE_MINUS_SRC_ALPHA 0x0303 -#define GL_DST_ALPHA 0x0304 -#define GL_ONE_MINUS_DST_ALPHA 0x0305 -#define GL_DST_COLOR 0x0306 -#define GL_ONE_MINUS_DST_COLOR 0x0307 -#define GL_SRC_ALPHA_SATURATE 0x0308 -#define GL_NONE 0 -#define GL_FRONT_LEFT 0x0400 -#define GL_FRONT_RIGHT 0x0401 -#define GL_BACK_LEFT 0x0402 -#define GL_BACK_RIGHT 0x0403 -#define GL_FRONT 0x0404 -#define GL_BACK 0x0405 -#define GL_LEFT 0x0406 -#define GL_RIGHT 0x0407 -#define GL_FRONT_AND_BACK 0x0408 -#define GL_NO_ERROR 0 -#define GL_INVALID_ENUM 0x0500 -#define GL_INVALID_VALUE 0x0501 -#define GL_INVALID_OPERATION 0x0502 -#define GL_OUT_OF_MEMORY 0x0505 -#define GL_CW 0x0900 -#define GL_CCW 0x0901 -#define GL_POINT_SIZE 0x0B11 -#define GL_POINT_SIZE_RANGE 0x0B12 -#define GL_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_LINE_SMOOTH 0x0B20 -#define GL_LINE_WIDTH 0x0B21 -#define GL_LINE_WIDTH_RANGE 0x0B22 -#define GL_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_POLYGON_MODE 0x0B40 -#define GL_POLYGON_SMOOTH 0x0B41 -#define GL_CULL_FACE 0x0B44 -#define GL_CULL_FACE_MODE 0x0B45 -#define GL_FRONT_FACE 0x0B46 -#define GL_DEPTH_RANGE 0x0B70 -#define GL_DEPTH_TEST 0x0B71 -#define GL_DEPTH_WRITEMASK 0x0B72 -#define GL_DEPTH_CLEAR_VALUE 0x0B73 -#define GL_DEPTH_FUNC 0x0B74 -#define GL_STENCIL_TEST 0x0B90 -#define GL_STENCIL_CLEAR_VALUE 0x0B91 -#define GL_STENCIL_FUNC 0x0B92 -#define GL_STENCIL_VALUE_MASK 0x0B93 -#define GL_STENCIL_FAIL 0x0B94 -#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 -#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 -#define GL_STENCIL_REF 0x0B97 -#define GL_STENCIL_WRITEMASK 0x0B98 -#define GL_VIEWPORT 0x0BA2 -#define GL_DITHER 0x0BD0 -#define GL_BLEND_DST 0x0BE0 -#define GL_BLEND_SRC 0x0BE1 -#define GL_BLEND 0x0BE2 -#define GL_LOGIC_OP_MODE 0x0BF0 -#define GL_COLOR_LOGIC_OP 0x0BF2 -#define GL_DRAW_BUFFER 0x0C01 -#define GL_READ_BUFFER 0x0C02 -#define GL_SCISSOR_BOX 0x0C10 -#define GL_SCISSOR_TEST 0x0C11 -#define GL_COLOR_CLEAR_VALUE 0x0C22 -#define GL_COLOR_WRITEMASK 0x0C23 -#define GL_DOUBLEBUFFER 0x0C32 -#define GL_STEREO 0x0C33 -#define GL_LINE_SMOOTH_HINT 0x0C52 -#define GL_POLYGON_SMOOTH_HINT 0x0C53 -#define GL_UNPACK_SWAP_BYTES 0x0CF0 -#define GL_UNPACK_LSB_FIRST 0x0CF1 -#define GL_UNPACK_ROW_LENGTH 0x0CF2 -#define GL_UNPACK_SKIP_ROWS 0x0CF3 -#define GL_UNPACK_SKIP_PIXELS 0x0CF4 -#define GL_UNPACK_ALIGNMENT 0x0CF5 -#define GL_PACK_SWAP_BYTES 0x0D00 -#define GL_PACK_LSB_FIRST 0x0D01 -#define GL_PACK_ROW_LENGTH 0x0D02 -#define GL_PACK_SKIP_ROWS 0x0D03 -#define GL_PACK_SKIP_PIXELS 0x0D04 -#define GL_PACK_ALIGNMENT 0x0D05 -#define GL_MAX_TEXTURE_SIZE 0x0D33 -#define GL_MAX_VIEWPORT_DIMS 0x0D3A -#define GL_SUBPIXEL_BITS 0x0D50 -#define GL_TEXTURE_1D 0x0DE0 -#define GL_TEXTURE_2D 0x0DE1 -#define GL_POLYGON_OFFSET_UNITS 0x2A00 -#define GL_POLYGON_OFFSET_POINT 0x2A01 -#define GL_POLYGON_OFFSET_LINE 0x2A02 -#define GL_POLYGON_OFFSET_FILL 0x8037 -#define GL_POLYGON_OFFSET_FACTOR 0x8038 -#define GL_TEXTURE_BINDING_1D 0x8068 -#define GL_TEXTURE_BINDING_2D 0x8069 -#define GL_TEXTURE_WIDTH 0x1000 -#define GL_TEXTURE_HEIGHT 0x1001 -#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 -#define GL_TEXTURE_BORDER_COLOR 0x1004 -#define GL_TEXTURE_RED_SIZE 0x805C -#define GL_TEXTURE_GREEN_SIZE 0x805D -#define GL_TEXTURE_BLUE_SIZE 0x805E -#define GL_TEXTURE_ALPHA_SIZE 0x805F -#define GL_DONT_CARE 0x1100 -#define GL_FASTEST 0x1101 -#define GL_NICEST 0x1102 -#define GL_BYTE 0x1400 -#define GL_UNSIGNED_BYTE 0x1401 -#define GL_SHORT 0x1402 -#define GL_UNSIGNED_SHORT 0x1403 -#define GL_INT 0x1404 -#define GL_UNSIGNED_INT 0x1405 -#define GL_FLOAT 0x1406 -#define GL_DOUBLE 0x140A -#define GL_CLEAR 0x1500 -#define GL_AND 0x1501 -#define GL_AND_REVERSE 0x1502 -#define GL_COPY 0x1503 -#define GL_AND_INVERTED 0x1504 -#define GL_NOOP 0x1505 -#define GL_XOR 0x1506 -#define GL_OR 0x1507 -#define GL_NOR 0x1508 -#define GL_EQUIV 0x1509 -#define GL_INVERT 0x150A -#define GL_OR_REVERSE 0x150B -#define GL_COPY_INVERTED 0x150C -#define GL_OR_INVERTED 0x150D -#define GL_NAND 0x150E -#define GL_SET 0x150F -#define GL_TEXTURE 0x1702 -#define GL_COLOR 0x1800 -#define GL_DEPTH 0x1801 -#define GL_STENCIL 0x1802 -#define GL_STENCIL_INDEX 0x1901 -#define GL_DEPTH_COMPONENT 0x1902 -#define GL_RED 0x1903 -#define GL_GREEN 0x1904 -#define GL_BLUE 0x1905 -#define GL_ALPHA 0x1906 -#define GL_RGB 0x1907 -#define GL_RGBA 0x1908 -#define GL_POINT 0x1B00 -#define GL_LINE 0x1B01 -#define GL_FILL 0x1B02 -#define GL_KEEP 0x1E00 -#define GL_REPLACE 0x1E01 -#define GL_INCR 0x1E02 -#define GL_DECR 0x1E03 -#define GL_VENDOR 0x1F00 -#define GL_RENDERER 0x1F01 -#define GL_VERSION 0x1F02 -#define GL_EXTENSIONS 0x1F03 -#define GL_NEAREST 0x2600 -#define GL_LINEAR 0x2601 -#define GL_NEAREST_MIPMAP_NEAREST 0x2700 -#define GL_LINEAR_MIPMAP_NEAREST 0x2701 -#define GL_NEAREST_MIPMAP_LINEAR 0x2702 -#define GL_LINEAR_MIPMAP_LINEAR 0x2703 -#define GL_TEXTURE_MAG_FILTER 0x2800 -#define GL_TEXTURE_MIN_FILTER 0x2801 -#define GL_TEXTURE_WRAP_S 0x2802 -#define GL_TEXTURE_WRAP_T 0x2803 -#define GL_PROXY_TEXTURE_1D 0x8063 -#define GL_PROXY_TEXTURE_2D 0x8064 -#define GL_REPEAT 0x2901 -#define GL_R3_G3_B2 0x2A10 -#define GL_RGB4 0x804F -#define GL_RGB5 0x8050 -#define GL_RGB8 0x8051 -#define GL_RGB10 0x8052 -#define GL_RGB12 0x8053 -#define GL_RGB16 0x8054 -#define GL_RGBA2 0x8055 -#define GL_RGBA4 0x8056 -#define GL_RGB5_A1 0x8057 -#define GL_RGBA8 0x8058 -#define GL_RGB10_A2 0x8059 -#define GL_RGBA12 0x805A -#define GL_RGBA16 0x805B -#define GL_UNSIGNED_BYTE_3_3_2 0x8032 -#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 -#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 -#define GL_UNSIGNED_INT_8_8_8_8 0x8035 -#define GL_UNSIGNED_INT_10_10_10_2 0x8036 -#define GL_TEXTURE_BINDING_3D 0x806A -#define GL_PACK_SKIP_IMAGES 0x806B -#define GL_PACK_IMAGE_HEIGHT 0x806C -#define GL_UNPACK_SKIP_IMAGES 0x806D -#define GL_UNPACK_IMAGE_HEIGHT 0x806E -#define GL_TEXTURE_3D 0x806F -#define GL_PROXY_TEXTURE_3D 0x8070 -#define GL_TEXTURE_DEPTH 0x8071 -#define GL_TEXTURE_WRAP_R 0x8072 -#define GL_MAX_3D_TEXTURE_SIZE 0x8073 -#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 -#define GL_UNSIGNED_SHORT_5_6_5 0x8363 -#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 -#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 -#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 -#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 -#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 -#define GL_BGR 0x80E0 -#define GL_BGRA 0x80E1 -#define GL_MAX_ELEMENTS_VERTICES 0x80E8 -#define GL_MAX_ELEMENTS_INDICES 0x80E9 -#define GL_CLAMP_TO_EDGE 0x812F -#define GL_TEXTURE_MIN_LOD 0x813A -#define GL_TEXTURE_MAX_LOD 0x813B -#define GL_TEXTURE_BASE_LEVEL 0x813C -#define GL_TEXTURE_MAX_LEVEL 0x813D -#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 -#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 -#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E -#define GL_TEXTURE0 0x84C0 -#define GL_TEXTURE1 0x84C1 -#define GL_TEXTURE2 0x84C2 -#define GL_TEXTURE3 0x84C3 -#define GL_TEXTURE4 0x84C4 -#define GL_TEXTURE5 0x84C5 -#define GL_TEXTURE6 0x84C6 -#define GL_TEXTURE7 0x84C7 -#define GL_TEXTURE8 0x84C8 -#define GL_TEXTURE9 0x84C9 -#define GL_TEXTURE10 0x84CA -#define GL_TEXTURE11 0x84CB -#define GL_TEXTURE12 0x84CC -#define GL_TEXTURE13 0x84CD -#define GL_TEXTURE14 0x84CE -#define GL_TEXTURE15 0x84CF -#define GL_TEXTURE16 0x84D0 -#define GL_TEXTURE17 0x84D1 -#define GL_TEXTURE18 0x84D2 -#define GL_TEXTURE19 0x84D3 -#define GL_TEXTURE20 0x84D4 -#define GL_TEXTURE21 0x84D5 -#define GL_TEXTURE22 0x84D6 -#define GL_TEXTURE23 0x84D7 -#define GL_TEXTURE24 0x84D8 -#define GL_TEXTURE25 0x84D9 -#define GL_TEXTURE26 0x84DA -#define GL_TEXTURE27 0x84DB -#define GL_TEXTURE28 0x84DC -#define GL_TEXTURE29 0x84DD -#define GL_TEXTURE30 0x84DE -#define GL_TEXTURE31 0x84DF -#define GL_ACTIVE_TEXTURE 0x84E0 -#define GL_MULTISAMPLE 0x809D -#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE 0x809F -#define GL_SAMPLE_COVERAGE 0x80A0 -#define GL_SAMPLE_BUFFERS 0x80A8 -#define GL_SAMPLES 0x80A9 -#define GL_SAMPLE_COVERAGE_VALUE 0x80AA -#define GL_SAMPLE_COVERAGE_INVERT 0x80AB -#define GL_TEXTURE_CUBE_MAP 0x8513 -#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A -#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B -#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C -#define GL_COMPRESSED_RGB 0x84ED -#define GL_COMPRESSED_RGBA 0x84EE -#define GL_TEXTURE_COMPRESSION_HINT 0x84EF -#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 -#define GL_TEXTURE_COMPRESSED 0x86A1 -#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 -#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 -#define GL_CLAMP_TO_BORDER 0x812D -#define GL_BLEND_DST_RGB 0x80C8 -#define GL_BLEND_SRC_RGB 0x80C9 -#define GL_BLEND_DST_ALPHA 0x80CA -#define GL_BLEND_SRC_ALPHA 0x80CB -#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 -#define GL_DEPTH_COMPONENT16 0x81A5 -#define GL_DEPTH_COMPONENT24 0x81A6 -#define GL_DEPTH_COMPONENT32 0x81A7 -#define GL_MIRRORED_REPEAT 0x8370 -#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD -#define GL_TEXTURE_LOD_BIAS 0x8501 -#define GL_INCR_WRAP 0x8507 -#define GL_DECR_WRAP 0x8508 -#define GL_TEXTURE_DEPTH_SIZE 0x884A -#define GL_TEXTURE_COMPARE_MODE 0x884C -#define GL_TEXTURE_COMPARE_FUNC 0x884D -#define GL_FUNC_ADD 0x8006 -#define GL_FUNC_SUBTRACT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT 0x800B -#define GL_MIN 0x8007 -#define GL_MAX 0x8008 -#define GL_CONSTANT_COLOR 0x8001 -#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 -#define GL_CONSTANT_ALPHA 0x8003 -#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 -#define GL_BUFFER_SIZE 0x8764 -#define GL_BUFFER_USAGE 0x8765 -#define GL_QUERY_COUNTER_BITS 0x8864 -#define GL_CURRENT_QUERY 0x8865 -#define GL_QUERY_RESULT 0x8866 -#define GL_QUERY_RESULT_AVAILABLE 0x8867 -#define GL_ARRAY_BUFFER 0x8892 -#define GL_ELEMENT_ARRAY_BUFFER 0x8893 -#define GL_ARRAY_BUFFER_BINDING 0x8894 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 -#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F -#define GL_READ_ONLY 0x88B8 -#define GL_WRITE_ONLY 0x88B9 -#define GL_READ_WRITE 0x88BA -#define GL_BUFFER_ACCESS 0x88BB -#define GL_BUFFER_MAPPED 0x88BC -#define GL_BUFFER_MAP_POINTER 0x88BD -#define GL_STREAM_DRAW 0x88E0 -#define GL_STREAM_READ 0x88E1 -#define GL_STREAM_COPY 0x88E2 -#define GL_STATIC_DRAW 0x88E4 -#define GL_STATIC_READ 0x88E5 -#define GL_STATIC_COPY 0x88E6 -#define GL_DYNAMIC_DRAW 0x88E8 -#define GL_DYNAMIC_READ 0x88E9 -#define GL_DYNAMIC_COPY 0x88EA -#define GL_SAMPLES_PASSED 0x8914 -#define GL_SRC1_ALPHA 0x8589 -#define GL_BLEND_EQUATION_RGB 0x8009 -#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 -#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 -#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 -#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 -#define GL_CURRENT_VERTEX_ATTRIB 0x8626 -#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 -#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 -#define GL_STENCIL_BACK_FUNC 0x8800 -#define GL_STENCIL_BACK_FAIL 0x8801 -#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 -#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 -#define GL_MAX_DRAW_BUFFERS 0x8824 -#define GL_DRAW_BUFFER0 0x8825 -#define GL_DRAW_BUFFER1 0x8826 -#define GL_DRAW_BUFFER2 0x8827 -#define GL_DRAW_BUFFER3 0x8828 -#define GL_DRAW_BUFFER4 0x8829 -#define GL_DRAW_BUFFER5 0x882A -#define GL_DRAW_BUFFER6 0x882B -#define GL_DRAW_BUFFER7 0x882C -#define GL_DRAW_BUFFER8 0x882D -#define GL_DRAW_BUFFER9 0x882E -#define GL_DRAW_BUFFER10 0x882F -#define GL_DRAW_BUFFER11 0x8830 -#define GL_DRAW_BUFFER12 0x8831 -#define GL_DRAW_BUFFER13 0x8832 -#define GL_DRAW_BUFFER14 0x8833 -#define GL_DRAW_BUFFER15 0x8834 -#define GL_BLEND_EQUATION_ALPHA 0x883D -#define GL_MAX_VERTEX_ATTRIBS 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A -#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 -#define GL_FRAGMENT_SHADER 0x8B30 -#define GL_VERTEX_SHADER 0x8B31 -#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 -#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A -#define GL_MAX_VARYING_FLOATS 0x8B4B -#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C -#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D -#define GL_SHADER_TYPE 0x8B4F -#define GL_FLOAT_VEC2 0x8B50 -#define GL_FLOAT_VEC3 0x8B51 -#define GL_FLOAT_VEC4 0x8B52 -#define GL_INT_VEC2 0x8B53 -#define GL_INT_VEC3 0x8B54 -#define GL_INT_VEC4 0x8B55 -#define GL_BOOL 0x8B56 -#define GL_BOOL_VEC2 0x8B57 -#define GL_BOOL_VEC3 0x8B58 -#define GL_BOOL_VEC4 0x8B59 -#define GL_FLOAT_MAT2 0x8B5A -#define GL_FLOAT_MAT3 0x8B5B -#define GL_FLOAT_MAT4 0x8B5C -#define GL_SAMPLER_1D 0x8B5D -#define GL_SAMPLER_2D 0x8B5E -#define GL_SAMPLER_3D 0x8B5F -#define GL_SAMPLER_CUBE 0x8B60 -#define GL_SAMPLER_1D_SHADOW 0x8B61 -#define GL_SAMPLER_2D_SHADOW 0x8B62 -#define GL_DELETE_STATUS 0x8B80 -#define GL_COMPILE_STATUS 0x8B81 -#define GL_LINK_STATUS 0x8B82 -#define GL_VALIDATE_STATUS 0x8B83 -#define GL_INFO_LOG_LENGTH 0x8B84 -#define GL_ATTACHED_SHADERS 0x8B85 -#define GL_ACTIVE_UNIFORMS 0x8B86 -#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 -#define GL_SHADER_SOURCE_LENGTH 0x8B88 -#define GL_ACTIVE_ATTRIBUTES 0x8B89 -#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B -#define GL_SHADING_LANGUAGE_VERSION 0x8B8C -#define GL_CURRENT_PROGRAM 0x8B8D -#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 -#define GL_LOWER_LEFT 0x8CA1 -#define GL_UPPER_LEFT 0x8CA2 -#define GL_STENCIL_BACK_REF 0x8CA3 -#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 -#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 -#define GL_PIXEL_PACK_BUFFER 0x88EB -#define GL_PIXEL_UNPACK_BUFFER 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF -#define GL_FLOAT_MAT2x3 0x8B65 -#define GL_FLOAT_MAT2x4 0x8B66 -#define GL_FLOAT_MAT3x2 0x8B67 -#define GL_FLOAT_MAT3x4 0x8B68 -#define GL_FLOAT_MAT4x2 0x8B69 -#define GL_FLOAT_MAT4x3 0x8B6A -#define GL_SRGB 0x8C40 -#define GL_SRGB8 0x8C41 -#define GL_SRGB_ALPHA 0x8C42 -#define GL_SRGB8_ALPHA8 0x8C43 -#define GL_COMPRESSED_SRGB 0x8C48 -#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 -#define GL_COMPARE_REF_TO_TEXTURE 0x884E -#define GL_CLIP_DISTANCE0 0x3000 -#define GL_CLIP_DISTANCE1 0x3001 -#define GL_CLIP_DISTANCE2 0x3002 -#define GL_CLIP_DISTANCE3 0x3003 -#define GL_CLIP_DISTANCE4 0x3004 -#define GL_CLIP_DISTANCE5 0x3005 -#define GL_CLIP_DISTANCE6 0x3006 -#define GL_CLIP_DISTANCE7 0x3007 -#define GL_MAX_CLIP_DISTANCES 0x0D32 -#define GL_MAJOR_VERSION 0x821B -#define GL_MINOR_VERSION 0x821C -#define GL_NUM_EXTENSIONS 0x821D -#define GL_CONTEXT_FLAGS 0x821E -#define GL_COMPRESSED_RED 0x8225 -#define GL_COMPRESSED_RG 0x8226 -#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 -#define GL_RGBA32F 0x8814 -#define GL_RGB32F 0x8815 -#define GL_RGBA16F 0x881A -#define GL_RGB16F 0x881B -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD -#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF -#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 -#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 -#define GL_CLAMP_READ_COLOR 0x891C -#define GL_FIXED_ONLY 0x891D -#define GL_MAX_VARYING_COMPONENTS 0x8B4B -#define GL_TEXTURE_1D_ARRAY 0x8C18 -#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 -#define GL_TEXTURE_2D_ARRAY 0x8C1A -#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B -#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C -#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D -#define GL_R11F_G11F_B10F 0x8C3A -#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B -#define GL_RGB9_E5 0x8C3D -#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E -#define GL_TEXTURE_SHARED_SIZE 0x8C3F -#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 -#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 -#define GL_PRIMITIVES_GENERATED 0x8C87 -#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 -#define GL_RASTERIZER_DISCARD 0x8C89 -#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B -#define GL_INTERLEAVED_ATTRIBS 0x8C8C -#define GL_SEPARATE_ATTRIBS 0x8C8D -#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F -#define GL_RGBA32UI 0x8D70 -#define GL_RGB32UI 0x8D71 -#define GL_RGBA16UI 0x8D76 -#define GL_RGB16UI 0x8D77 -#define GL_RGBA8UI 0x8D7C -#define GL_RGB8UI 0x8D7D -#define GL_RGBA32I 0x8D82 -#define GL_RGB32I 0x8D83 -#define GL_RGBA16I 0x8D88 -#define GL_RGB16I 0x8D89 -#define GL_RGBA8I 0x8D8E -#define GL_RGB8I 0x8D8F -#define GL_RED_INTEGER 0x8D94 -#define GL_GREEN_INTEGER 0x8D95 -#define GL_BLUE_INTEGER 0x8D96 -#define GL_RGB_INTEGER 0x8D98 -#define GL_RGBA_INTEGER 0x8D99 -#define GL_BGR_INTEGER 0x8D9A -#define GL_BGRA_INTEGER 0x8D9B -#define GL_SAMPLER_1D_ARRAY 0x8DC0 -#define GL_SAMPLER_2D_ARRAY 0x8DC1 -#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 -#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 -#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 -#define GL_UNSIGNED_INT_VEC2 0x8DC6 -#define GL_UNSIGNED_INT_VEC3 0x8DC7 -#define GL_UNSIGNED_INT_VEC4 0x8DC8 -#define GL_INT_SAMPLER_1D 0x8DC9 -#define GL_INT_SAMPLER_2D 0x8DCA -#define GL_INT_SAMPLER_3D 0x8DCB -#define GL_INT_SAMPLER_CUBE 0x8DCC -#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE -#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF -#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 -#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 -#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 -#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 -#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 -#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 -#define GL_QUERY_WAIT 0x8E13 -#define GL_QUERY_NO_WAIT 0x8E14 -#define GL_QUERY_BY_REGION_WAIT 0x8E15 -#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 -#define GL_BUFFER_ACCESS_FLAGS 0x911F -#define GL_BUFFER_MAP_LENGTH 0x9120 -#define GL_BUFFER_MAP_OFFSET 0x9121 -#define GL_DEPTH_COMPONENT32F 0x8CAC -#define GL_DEPTH32F_STENCIL8 0x8CAD -#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD -#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 -#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 -#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 -#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 -#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 -#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 -#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 -#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 -#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 -#define GL_FRAMEBUFFER_DEFAULT 0x8218 -#define GL_FRAMEBUFFER_UNDEFINED 0x8219 -#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A -#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 -#define GL_DEPTH_STENCIL 0x84F9 -#define GL_UNSIGNED_INT_24_8 0x84FA -#define GL_DEPTH24_STENCIL8 0x88F0 -#define GL_TEXTURE_STENCIL_SIZE 0x88F1 -#define GL_TEXTURE_RED_TYPE 0x8C10 -#define GL_TEXTURE_GREEN_TYPE 0x8C11 -#define GL_TEXTURE_BLUE_TYPE 0x8C12 -#define GL_TEXTURE_ALPHA_TYPE 0x8C13 -#define GL_TEXTURE_DEPTH_TYPE 0x8C16 -#define GL_UNSIGNED_NORMALIZED 0x8C17 -#define GL_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_RENDERBUFFER_BINDING 0x8CA7 -#define GL_READ_FRAMEBUFFER 0x8CA8 -#define GL_DRAW_FRAMEBUFFER 0x8CA9 -#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA -#define GL_RENDERBUFFER_SAMPLES 0x8CAB -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 -#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 -#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 -#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 -#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB -#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC -#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD -#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF -#define GL_COLOR_ATTACHMENT0 0x8CE0 -#define GL_COLOR_ATTACHMENT1 0x8CE1 -#define GL_COLOR_ATTACHMENT2 0x8CE2 -#define GL_COLOR_ATTACHMENT3 0x8CE3 -#define GL_COLOR_ATTACHMENT4 0x8CE4 -#define GL_COLOR_ATTACHMENT5 0x8CE5 -#define GL_COLOR_ATTACHMENT6 0x8CE6 -#define GL_COLOR_ATTACHMENT7 0x8CE7 -#define GL_COLOR_ATTACHMENT8 0x8CE8 -#define GL_COLOR_ATTACHMENT9 0x8CE9 -#define GL_COLOR_ATTACHMENT10 0x8CEA -#define GL_COLOR_ATTACHMENT11 0x8CEB -#define GL_COLOR_ATTACHMENT12 0x8CEC -#define GL_COLOR_ATTACHMENT13 0x8CED -#define GL_COLOR_ATTACHMENT14 0x8CEE -#define GL_COLOR_ATTACHMENT15 0x8CEF -#define GL_DEPTH_ATTACHMENT 0x8D00 -#define GL_STENCIL_ATTACHMENT 0x8D20 -#define GL_FRAMEBUFFER 0x8D40 -#define GL_RENDERBUFFER 0x8D41 -#define GL_RENDERBUFFER_WIDTH 0x8D42 -#define GL_RENDERBUFFER_HEIGHT 0x8D43 -#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 -#define GL_STENCIL_INDEX1 0x8D46 -#define GL_STENCIL_INDEX4 0x8D47 -#define GL_STENCIL_INDEX8 0x8D48 -#define GL_STENCIL_INDEX16 0x8D49 -#define GL_RENDERBUFFER_RED_SIZE 0x8D50 -#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 -#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 -#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 -#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 -#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 -#define GL_MAX_SAMPLES 0x8D57 -#define GL_INDEX 0x8222 -#define GL_FRAMEBUFFER_SRGB 0x8DB9 -#define GL_HALF_FLOAT 0x140B -#define GL_MAP_READ_BIT 0x0001 -#define GL_MAP_WRITE_BIT 0x0002 -#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 -#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 -#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 -#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 -#define GL_COMPRESSED_RED_RGTC1 0x8DBB -#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC -#define GL_COMPRESSED_RG_RGTC2 0x8DBD -#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE -#define GL_RG 0x8227 -#define GL_RG_INTEGER 0x8228 -#define GL_R8 0x8229 -#define GL_R16 0x822A -#define GL_RG8 0x822B -#define GL_RG16 0x822C -#define GL_R16F 0x822D -#define GL_R32F 0x822E -#define GL_RG16F 0x822F -#define GL_RG32F 0x8230 -#define GL_R8I 0x8231 -#define GL_R8UI 0x8232 -#define GL_R16I 0x8233 -#define GL_R16UI 0x8234 -#define GL_R32I 0x8235 -#define GL_R32UI 0x8236 -#define GL_RG8I 0x8237 -#define GL_RG8UI 0x8238 -#define GL_RG16I 0x8239 -#define GL_RG16UI 0x823A -#define GL_RG32I 0x823B -#define GL_RG32UI 0x823C -#define GL_VERTEX_ARRAY_BINDING 0x85B5 -#define GL_SAMPLER_2D_RECT 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 -#define GL_SAMPLER_BUFFER 0x8DC2 -#define GL_INT_SAMPLER_2D_RECT 0x8DCD -#define GL_INT_SAMPLER_BUFFER 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 -#define GL_TEXTURE_BUFFER 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D -#define GL_TEXTURE_RECTANGLE 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 -#define GL_R8_SNORM 0x8F94 -#define GL_RG8_SNORM 0x8F95 -#define GL_RGB8_SNORM 0x8F96 -#define GL_RGBA8_SNORM 0x8F97 -#define GL_R16_SNORM 0x8F98 -#define GL_RG16_SNORM 0x8F99 -#define GL_RGB16_SNORM 0x8F9A -#define GL_RGBA16_SNORM 0x8F9B -#define GL_SIGNED_NORMALIZED 0x8F9C -#define GL_PRIMITIVE_RESTART 0x8F9D -#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E -#define GL_COPY_READ_BUFFER 0x8F36 -#define GL_COPY_WRITE_BUFFER 0x8F37 -#define GL_UNIFORM_BUFFER 0x8A11 -#define GL_UNIFORM_BUFFER_BINDING 0x8A28 -#define GL_UNIFORM_BUFFER_START 0x8A29 -#define GL_UNIFORM_BUFFER_SIZE 0x8A2A -#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B -#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C -#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D -#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E -#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F -#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 -#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 -#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 -#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 -#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 -#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 -#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 -#define GL_UNIFORM_TYPE 0x8A37 -#define GL_UNIFORM_SIZE 0x8A38 -#define GL_UNIFORM_NAME_LENGTH 0x8A39 -#define GL_UNIFORM_BLOCK_INDEX 0x8A3A -#define GL_UNIFORM_OFFSET 0x8A3B -#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C -#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D -#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E -#define GL_UNIFORM_BLOCK_BINDING 0x8A3F -#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 -#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 -#define GL_INVALID_INDEX 0xFFFFFFFF -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define GL_LINES_ADJACENCY 0x000A -#define GL_LINE_STRIP_ADJACENCY 0x000B -#define GL_TRIANGLES_ADJACENCY 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D -#define GL_PROGRAM_POINT_SIZE 0x8642 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 -#define GL_GEOMETRY_SHADER 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT 0x8916 -#define GL_GEOMETRY_INPUT_TYPE 0x8917 -#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 -#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 -#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 -#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 -#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 -#define GL_CONTEXT_PROFILE_MASK 0x9126 -#define GL_DEPTH_CLAMP 0x864F -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION 0x8E4D -#define GL_LAST_VERTEX_CONVENTION 0x8E4E -#define GL_PROVOKING_VERTEX 0x8E4F -#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F -#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 -#define GL_OBJECT_TYPE 0x9112 -#define GL_SYNC_CONDITION 0x9113 -#define GL_SYNC_STATUS 0x9114 -#define GL_SYNC_FLAGS 0x9115 -#define GL_SYNC_FENCE 0x9116 -#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 -#define GL_UNSIGNALED 0x9118 -#define GL_SIGNALED 0x9119 -#define GL_ALREADY_SIGNALED 0x911A -#define GL_TIMEOUT_EXPIRED 0x911B -#define GL_CONDITION_SATISFIED 0x911C -#define GL_WAIT_FAILED 0x911D -#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFF -#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 -#define GL_SAMPLE_POSITION 0x8E50 -#define GL_SAMPLE_MASK 0x8E51 -#define GL_SAMPLE_MASK_VALUE 0x8E52 -#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 -#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 -#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 -#define GL_TEXTURE_SAMPLES 0x9106 -#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 -#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 -#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A -#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B -#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D -#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E -#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F -#define GL_MAX_INTEGER_SAMPLES 0x9110 -#ifndef GL_VERSION_1_0 -#define GL_VERSION_1_0 1 -GLAPI int GLAD_GL_VERSION_1_0; -typedef void (APIENTRYP PFNGLCULLFACEPROC)(GLenum); -GLAPI PFNGLCULLFACEPROC glad_glCullFace; -#define glCullFace glad_glCullFace -typedef void (APIENTRYP PFNGLFRONTFACEPROC)(GLenum); -GLAPI PFNGLFRONTFACEPROC glad_glFrontFace; -#define glFrontFace glad_glFrontFace -typedef void (APIENTRYP PFNGLHINTPROC)(GLenum, GLenum); -GLAPI PFNGLHINTPROC glad_glHint; -#define glHint glad_glHint -typedef void (APIENTRYP PFNGLLINEWIDTHPROC)(GLfloat); -GLAPI PFNGLLINEWIDTHPROC glad_glLineWidth; -#define glLineWidth glad_glLineWidth -typedef void (APIENTRYP PFNGLPOINTSIZEPROC)(GLfloat); -GLAPI PFNGLPOINTSIZEPROC glad_glPointSize; -#define glPointSize glad_glPointSize -typedef void (APIENTRYP PFNGLPOLYGONMODEPROC)(GLenum, GLenum); -GLAPI PFNGLPOLYGONMODEPROC glad_glPolygonMode; -#define glPolygonMode glad_glPolygonMode -typedef void (APIENTRYP PFNGLSCISSORPROC)(GLint, GLint, GLsizei, GLsizei); -GLAPI PFNGLSCISSORPROC glad_glScissor; -#define glScissor glad_glScissor -typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC)(GLenum, GLenum, GLfloat); -GLAPI PFNGLTEXPARAMETERFPROC glad_glTexParameterf; -#define glTexParameterf glad_glTexParameterf -typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC)(GLenum, GLenum, const GLfloat*); -GLAPI PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -#define glTexParameterfv glad_glTexParameterfv -typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC)(GLenum, GLenum, GLint); -GLAPI PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -#define glTexParameteri glad_glTexParameteri -typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC)(GLenum, GLenum, const GLint*); -GLAPI PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -#define glTexParameteriv glad_glTexParameteriv -typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const void*); -GLAPI PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -#define glTexImage1D glad_glTexImage1D -typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void*); -GLAPI PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -#define glTexImage2D glad_glTexImage2D -typedef void (APIENTRYP PFNGLDRAWBUFFERPROC)(GLenum); -GLAPI PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -#define glDrawBuffer glad_glDrawBuffer -typedef void (APIENTRYP PFNGLCLEARPROC)(GLbitfield); -GLAPI PFNGLCLEARPROC glad_glClear; -#define glClear glad_glClear -typedef void (APIENTRYP PFNGLCLEARCOLORPROC)(GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI PFNGLCLEARCOLORPROC glad_glClearColor; -#define glClearColor glad_glClearColor -typedef void (APIENTRYP PFNGLCLEARSTENCILPROC)(GLint); -GLAPI PFNGLCLEARSTENCILPROC glad_glClearStencil; -#define glClearStencil glad_glClearStencil -typedef void (APIENTRYP PFNGLCLEARDEPTHPROC)(GLdouble); -GLAPI PFNGLCLEARDEPTHPROC glad_glClearDepth; -#define glClearDepth glad_glClearDepth -typedef void (APIENTRYP PFNGLSTENCILMASKPROC)(GLuint); -GLAPI PFNGLSTENCILMASKPROC glad_glStencilMask; -#define glStencilMask glad_glStencilMask -typedef void (APIENTRYP PFNGLCOLORMASKPROC)(GLboolean, GLboolean, GLboolean, GLboolean); -GLAPI PFNGLCOLORMASKPROC glad_glColorMask; -#define glColorMask glad_glColorMask -typedef void (APIENTRYP PFNGLDEPTHMASKPROC)(GLboolean); -GLAPI PFNGLDEPTHMASKPROC glad_glDepthMask; -#define glDepthMask glad_glDepthMask -typedef void (APIENTRYP PFNGLDISABLEPROC)(GLenum); -GLAPI PFNGLDISABLEPROC glad_glDisable; -#define glDisable glad_glDisable -typedef void (APIENTRYP PFNGLENABLEPROC)(GLenum); -GLAPI PFNGLENABLEPROC glad_glEnable; -#define glEnable glad_glEnable -typedef void (APIENTRYP PFNGLFINISHPROC)(); -GLAPI PFNGLFINISHPROC glad_glFinish; -#define glFinish glad_glFinish -typedef void (APIENTRYP PFNGLFLUSHPROC)(); -GLAPI PFNGLFLUSHPROC glad_glFlush; -#define glFlush glad_glFlush -typedef void (APIENTRYP PFNGLBLENDFUNCPROC)(GLenum, GLenum); -GLAPI PFNGLBLENDFUNCPROC glad_glBlendFunc; -#define glBlendFunc glad_glBlendFunc -typedef void (APIENTRYP PFNGLLOGICOPPROC)(GLenum); -GLAPI PFNGLLOGICOPPROC glad_glLogicOp; -#define glLogicOp glad_glLogicOp -typedef void (APIENTRYP PFNGLSTENCILFUNCPROC)(GLenum, GLint, GLuint); -GLAPI PFNGLSTENCILFUNCPROC glad_glStencilFunc; -#define glStencilFunc glad_glStencilFunc -typedef void (APIENTRYP PFNGLSTENCILOPPROC)(GLenum, GLenum, GLenum); -GLAPI PFNGLSTENCILOPPROC glad_glStencilOp; -#define glStencilOp glad_glStencilOp -typedef void (APIENTRYP PFNGLDEPTHFUNCPROC)(GLenum); -GLAPI PFNGLDEPTHFUNCPROC glad_glDepthFunc; -#define glDepthFunc glad_glDepthFunc -typedef void (APIENTRYP PFNGLPIXELSTOREFPROC)(GLenum, GLfloat); -GLAPI PFNGLPIXELSTOREFPROC glad_glPixelStoref; -#define glPixelStoref glad_glPixelStoref -typedef void (APIENTRYP PFNGLPIXELSTOREIPROC)(GLenum, GLint); -GLAPI PFNGLPIXELSTOREIPROC glad_glPixelStorei; -#define glPixelStorei glad_glPixelStorei -typedef void (APIENTRYP PFNGLREADBUFFERPROC)(GLenum); -GLAPI PFNGLREADBUFFERPROC glad_glReadBuffer; -#define glReadBuffer glad_glReadBuffer -typedef void (APIENTRYP PFNGLREADPIXELSPROC)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, void*); -GLAPI PFNGLREADPIXELSPROC glad_glReadPixels; -#define glReadPixels glad_glReadPixels -typedef void (APIENTRYP PFNGLGETBOOLEANVPROC)(GLenum, GLboolean*); -GLAPI PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -#define glGetBooleanv glad_glGetBooleanv -typedef void (APIENTRYP PFNGLGETDOUBLEVPROC)(GLenum, GLdouble*); -GLAPI PFNGLGETDOUBLEVPROC glad_glGetDoublev; -#define glGetDoublev glad_glGetDoublev -typedef GLenum (APIENTRYP PFNGLGETERRORPROC)(); -GLAPI PFNGLGETERRORPROC glad_glGetError; -#define glGetError glad_glGetError -typedef void (APIENTRYP PFNGLGETFLOATVPROC)(GLenum, GLfloat*); -GLAPI PFNGLGETFLOATVPROC glad_glGetFloatv; -#define glGetFloatv glad_glGetFloatv -typedef void (APIENTRYP PFNGLGETINTEGERVPROC)(GLenum, GLint*); -GLAPI PFNGLGETINTEGERVPROC glad_glGetIntegerv; -#define glGetIntegerv glad_glGetIntegerv -typedef const GLubyte* (APIENTRYP PFNGLGETSTRINGPROC)(GLenum); -GLAPI PFNGLGETSTRINGPROC glad_glGetString; -#define glGetString glad_glGetString -typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC)(GLenum, GLint, GLenum, GLenum, void*); -GLAPI PFNGLGETTEXIMAGEPROC glad_glGetTexImage; -#define glGetTexImage glad_glGetTexImage -typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC)(GLenum, GLenum, GLfloat*); -GLAPI PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -#define glGetTexParameterfv glad_glGetTexParameterfv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC)(GLenum, GLenum, GLint*); -GLAPI PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -#define glGetTexParameteriv glad_glGetTexParameteriv -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC)(GLenum, GLint, GLenum, GLfloat*); -GLAPI PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; -#define glGetTexLevelParameterfv glad_glGetTexLevelParameterfv -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC)(GLenum, GLint, GLenum, GLint*); -GLAPI PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -#define glGetTexLevelParameteriv glad_glGetTexLevelParameteriv -typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC)(GLenum); -GLAPI PFNGLISENABLEDPROC glad_glIsEnabled; -#define glIsEnabled glad_glIsEnabled -typedef void (APIENTRYP PFNGLDEPTHRANGEPROC)(GLdouble, GLdouble); -GLAPI PFNGLDEPTHRANGEPROC glad_glDepthRange; -#define glDepthRange glad_glDepthRange -typedef void (APIENTRYP PFNGLVIEWPORTPROC)(GLint, GLint, GLsizei, GLsizei); -GLAPI PFNGLVIEWPORTPROC glad_glViewport; -#define glViewport glad_glViewport -#endif -#ifndef GL_VERSION_1_1 -#define GL_VERSION_1_1 1 -GLAPI int GLAD_GL_VERSION_1_1; -typedef void (APIENTRYP PFNGLDRAWARRAYSPROC)(GLenum, GLint, GLsizei); -GLAPI PFNGLDRAWARRAYSPROC glad_glDrawArrays; -#define glDrawArrays glad_glDrawArrays -typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC)(GLenum, GLsizei, GLenum, const void*); -GLAPI PFNGLDRAWELEMENTSPROC glad_glDrawElements; -#define glDrawElements glad_glDrawElements -typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC)(GLfloat, GLfloat); -GLAPI PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -#define glPolygonOffset glad_glPolygonOffset -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); -GLAPI PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -#define glCopyTexImage1D glad_glCopyTexImage1D -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); -GLAPI PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -#define glCopyTexImage2D glad_glCopyTexImage2D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC)(GLenum, GLint, GLint, GLint, GLint, GLsizei); -GLAPI PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; -#define glCopyTexSubImage1D glad_glCopyTexSubImage1D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -GLAPI PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -#define glCopyTexSubImage2D glad_glCopyTexSubImage2D -typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const void*); -GLAPI PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -#define glTexSubImage1D glad_glTexSubImage1D -typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const void*); -GLAPI PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; -#define glTexSubImage2D glad_glTexSubImage2D -typedef void (APIENTRYP PFNGLBINDTEXTUREPROC)(GLenum, GLuint); -GLAPI PFNGLBINDTEXTUREPROC glad_glBindTexture; -#define glBindTexture glad_glBindTexture -typedef void (APIENTRYP PFNGLDELETETEXTURESPROC)(GLsizei, const GLuint*); -GLAPI PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -#define glDeleteTextures glad_glDeleteTextures -typedef void (APIENTRYP PFNGLGENTEXTURESPROC)(GLsizei, GLuint*); -GLAPI PFNGLGENTEXTURESPROC glad_glGenTextures; -#define glGenTextures glad_glGenTextures -typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC)(GLuint); -GLAPI PFNGLISTEXTUREPROC glad_glIsTexture; -#define glIsTexture glad_glIsTexture -#endif -#ifndef GL_VERSION_1_2 -#define GL_VERSION_1_2 1 -GLAPI int GLAD_GL_VERSION_1_2; -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC)(GLenum, GLuint, GLuint, GLsizei, GLenum, const void*); -GLAPI PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -#define glDrawRangeElements glad_glDrawRangeElements -typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const void*); -GLAPI PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -#define glTexImage3D glad_glTexImage3D -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const void*); -GLAPI PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -#define glTexSubImage3D glad_glTexSubImage3D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -GLAPI PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -#define glCopyTexSubImage3D glad_glCopyTexSubImage3D -#endif -#ifndef GL_VERSION_1_3 -#define GL_VERSION_1_3 1 -GLAPI int GLAD_GL_VERSION_1_3; -typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum); -GLAPI PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -#define glActiveTexture glad_glActiveTexture -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC)(GLfloat, GLboolean); -GLAPI PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -#define glSampleCoverage glad_glSampleCoverage -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const void*); -GLAPI PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -#define glCompressedTexImage3D glad_glCompressedTexImage3D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const void*); -GLAPI PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -#define glCompressedTexImage2D glad_glCompressedTexImage2D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC)(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const void*); -GLAPI PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -#define glCompressedTexImage1D glad_glCompressedTexImage1D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const void*); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -#define glCompressedTexSubImage3D glad_glCompressedTexSubImage3D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const void*); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -#define glCompressedTexSubImage2D glad_glCompressedTexSubImage2D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const void*); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -#define glCompressedTexSubImage1D glad_glCompressedTexSubImage1D -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC)(GLenum, GLint, void*); -GLAPI PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -#define glGetCompressedTexImage glad_glGetCompressedTexImage -#endif -#ifndef GL_VERSION_1_4 -#define GL_VERSION_1_4 1 -GLAPI int GLAD_GL_VERSION_1_4; -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC)(GLenum, GLenum, GLenum, GLenum); -GLAPI PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -#define glBlendFuncSeparate glad_glBlendFuncSeparate -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC)(GLenum, const GLint*, const GLsizei*, GLsizei); -GLAPI PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -#define glMultiDrawArrays glad_glMultiDrawArrays -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC)(GLenum, const GLsizei*, GLenum, const void**, GLsizei); -GLAPI PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -#define glMultiDrawElements glad_glMultiDrawElements -typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC)(GLenum, GLfloat); -GLAPI PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -#define glPointParameterf glad_glPointParameterf -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC)(GLenum, const GLfloat*); -GLAPI PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -#define glPointParameterfv glad_glPointParameterfv -typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC)(GLenum, GLint); -GLAPI PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -#define glPointParameteri glad_glPointParameteri -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC)(GLenum, const GLint*); -GLAPI PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -#define glPointParameteriv glad_glPointParameteriv -typedef void (APIENTRYP PFNGLBLENDCOLORPROC)(GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI PFNGLBLENDCOLORPROC glad_glBlendColor; -#define glBlendColor glad_glBlendColor -typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC)(GLenum); -GLAPI PFNGLBLENDEQUATIONPROC glad_glBlendEquation; -#define glBlendEquation glad_glBlendEquation -#endif -#ifndef GL_VERSION_1_5 -#define GL_VERSION_1_5 1 -GLAPI int GLAD_GL_VERSION_1_5; -typedef void (APIENTRYP PFNGLGENQUERIESPROC)(GLsizei, GLuint*); -GLAPI PFNGLGENQUERIESPROC glad_glGenQueries; -#define glGenQueries glad_glGenQueries -typedef void (APIENTRYP PFNGLDELETEQUERIESPROC)(GLsizei, const GLuint*); -GLAPI PFNGLDELETEQUERIESPROC glad_glDeleteQueries; -#define glDeleteQueries glad_glDeleteQueries -typedef GLboolean (APIENTRYP PFNGLISQUERYPROC)(GLuint); -GLAPI PFNGLISQUERYPROC glad_glIsQuery; -#define glIsQuery glad_glIsQuery -typedef void (APIENTRYP PFNGLBEGINQUERYPROC)(GLenum, GLuint); -GLAPI PFNGLBEGINQUERYPROC glad_glBeginQuery; -#define glBeginQuery glad_glBeginQuery -typedef void (APIENTRYP PFNGLENDQUERYPROC)(GLenum); -GLAPI PFNGLENDQUERYPROC glad_glEndQuery; -#define glEndQuery glad_glEndQuery -typedef void (APIENTRYP PFNGLGETQUERYIVPROC)(GLenum, GLenum, GLint*); -GLAPI PFNGLGETQUERYIVPROC glad_glGetQueryiv; -#define glGetQueryiv glad_glGetQueryiv -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC)(GLuint, GLenum, GLint*); -GLAPI PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -#define glGetQueryObjectiv glad_glGetQueryObjectiv -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC)(GLuint, GLenum, GLuint*); -GLAPI PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -#define glGetQueryObjectuiv glad_glGetQueryObjectuiv -typedef void (APIENTRYP PFNGLBINDBUFFERPROC)(GLenum, GLuint); -GLAPI PFNGLBINDBUFFERPROC glad_glBindBuffer; -#define glBindBuffer glad_glBindBuffer -typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC)(GLsizei, const GLuint*); -GLAPI PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -#define glDeleteBuffers glad_glDeleteBuffers -typedef void (APIENTRYP PFNGLGENBUFFERSPROC)(GLsizei, GLuint*); -GLAPI PFNGLGENBUFFERSPROC glad_glGenBuffers; -#define glGenBuffers glad_glGenBuffers -typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC)(GLuint); -GLAPI PFNGLISBUFFERPROC glad_glIsBuffer; -#define glIsBuffer glad_glIsBuffer -typedef void (APIENTRYP PFNGLBUFFERDATAPROC)(GLenum, GLsizeiptr, const void*, GLenum); -GLAPI PFNGLBUFFERDATAPROC glad_glBufferData; -#define glBufferData glad_glBufferData -typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC)(GLenum, GLintptr, GLsizeiptr, const void*); -GLAPI PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -#define glBufferSubData glad_glBufferSubData -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC)(GLenum, GLintptr, GLsizeiptr, void*); -GLAPI PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -#define glGetBufferSubData glad_glGetBufferSubData -typedef void* (APIENTRYP PFNGLMAPBUFFERPROC)(GLenum, GLenum); -GLAPI PFNGLMAPBUFFERPROC glad_glMapBuffer; -#define glMapBuffer glad_glMapBuffer -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC)(GLenum); -GLAPI PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -#define glUnmapBuffer glad_glUnmapBuffer -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC)(GLenum, GLenum, GLint*); -GLAPI PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; -#define glGetBufferParameteriv glad_glGetBufferParameteriv -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC)(GLenum, GLenum, void**); -GLAPI PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -#define glGetBufferPointerv glad_glGetBufferPointerv -#endif -#ifndef GL_VERSION_2_0 -#define GL_VERSION_2_0 1 -GLAPI int GLAD_GL_VERSION_2_0; -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC)(GLenum, GLenum); -GLAPI PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -#define glBlendEquationSeparate glad_glBlendEquationSeparate -typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC)(GLsizei, const GLenum*); -GLAPI PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; -#define glDrawBuffers glad_glDrawBuffers -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC)(GLenum, GLenum, GLenum, GLenum); -GLAPI PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -#define glStencilOpSeparate glad_glStencilOpSeparate -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC)(GLenum, GLenum, GLint, GLuint); -GLAPI PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -#define glStencilFuncSeparate glad_glStencilFuncSeparate -typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC)(GLenum, GLuint); -GLAPI PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -#define glStencilMaskSeparate glad_glStencilMaskSeparate -typedef void (APIENTRYP PFNGLATTACHSHADERPROC)(GLuint, GLuint); -GLAPI PFNGLATTACHSHADERPROC glad_glAttachShader; -#define glAttachShader glad_glAttachShader -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC)(GLuint, GLuint, const GLchar*); -GLAPI PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -#define glBindAttribLocation glad_glBindAttribLocation -typedef void (APIENTRYP PFNGLCOMPILESHADERPROC)(GLuint); -GLAPI PFNGLCOMPILESHADERPROC glad_glCompileShader; -#define glCompileShader glad_glCompileShader -typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC)(); -GLAPI PFNGLCREATEPROGRAMPROC glad_glCreateProgram; -#define glCreateProgram glad_glCreateProgram -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC)(GLenum); -GLAPI PFNGLCREATESHADERPROC glad_glCreateShader; -#define glCreateShader glad_glCreateShader -typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC)(GLuint); -GLAPI PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -#define glDeleteProgram glad_glDeleteProgram -typedef void (APIENTRYP PFNGLDELETESHADERPROC)(GLuint); -GLAPI PFNGLDELETESHADERPROC glad_glDeleteShader; -#define glDeleteShader glad_glDeleteShader -typedef void (APIENTRYP PFNGLDETACHSHADERPROC)(GLuint, GLuint); -GLAPI PFNGLDETACHSHADERPROC glad_glDetachShader; -#define glDetachShader glad_glDetachShader -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC)(GLuint); -GLAPI PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -#define glDisableVertexAttribArray glad_glDisableVertexAttribArray -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC)(GLuint); -GLAPI PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; -#define glEnableVertexAttribArray glad_glEnableVertexAttribArray -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC)(GLuint, GLuint, GLsizei, GLsizei*, GLint*, GLenum*, GLchar*); -GLAPI PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -#define glGetActiveAttrib glad_glGetActiveAttrib -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC)(GLuint, GLuint, GLsizei, GLsizei*, GLint*, GLenum*, GLchar*); -GLAPI PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -#define glGetActiveUniform glad_glGetActiveUniform -typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC)(GLuint, GLsizei, GLsizei*, GLuint*); -GLAPI PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -#define glGetAttachedShaders glad_glGetAttachedShaders -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC)(GLuint, const GLchar*); -GLAPI PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; -#define glGetAttribLocation glad_glGetAttribLocation -typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC)(GLuint, GLenum, GLint*); -GLAPI PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -#define glGetProgramiv glad_glGetProgramiv -typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC)(GLuint, GLsizei, GLsizei*, GLchar*); -GLAPI PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -#define glGetProgramInfoLog glad_glGetProgramInfoLog -typedef void (APIENTRYP PFNGLGETSHADERIVPROC)(GLuint, GLenum, GLint*); -GLAPI PFNGLGETSHADERIVPROC glad_glGetShaderiv; -#define glGetShaderiv glad_glGetShaderiv -typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC)(GLuint, GLsizei, GLsizei*, GLchar*); -GLAPI PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -#define glGetShaderInfoLog glad_glGetShaderInfoLog -typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC)(GLuint, GLsizei, GLsizei*, GLchar*); -GLAPI PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; -#define glGetShaderSource glad_glGetShaderSource -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC)(GLuint, const GLchar*); -GLAPI PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -#define glGetUniformLocation glad_glGetUniformLocation -typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC)(GLuint, GLint, GLfloat*); -GLAPI PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -#define glGetUniformfv glad_glGetUniformfv -typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC)(GLuint, GLint, GLint*); -GLAPI PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -#define glGetUniformiv glad_glGetUniformiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC)(GLuint, GLenum, GLdouble*); -GLAPI PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -#define glGetVertexAttribdv glad_glGetVertexAttribdv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC)(GLuint, GLenum, GLfloat*); -GLAPI PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -#define glGetVertexAttribfv glad_glGetVertexAttribfv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC)(GLuint, GLenum, GLint*); -GLAPI PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -#define glGetVertexAttribiv glad_glGetVertexAttribiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint, GLenum, void**); -GLAPI PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -#define glGetVertexAttribPointerv glad_glGetVertexAttribPointerv -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC)(GLuint); -GLAPI PFNGLISPROGRAMPROC glad_glIsProgram; -#define glIsProgram glad_glIsProgram -typedef GLboolean (APIENTRYP PFNGLISSHADERPROC)(GLuint); -GLAPI PFNGLISSHADERPROC glad_glIsShader; -#define glIsShader glad_glIsShader -typedef void (APIENTRYP PFNGLLINKPROGRAMPROC)(GLuint); -GLAPI PFNGLLINKPROGRAMPROC glad_glLinkProgram; -#define glLinkProgram glad_glLinkProgram -typedef void (APIENTRYP PFNGLSHADERSOURCEPROC)(GLuint, GLsizei, const GLchar**, const GLint*); -GLAPI PFNGLSHADERSOURCEPROC glad_glShaderSource; -#define glShaderSource glad_glShaderSource -typedef void (APIENTRYP PFNGLUSEPROGRAMPROC)(GLuint); -GLAPI PFNGLUSEPROGRAMPROC glad_glUseProgram; -#define glUseProgram glad_glUseProgram -typedef void (APIENTRYP PFNGLUNIFORM1FPROC)(GLint, GLfloat); -GLAPI PFNGLUNIFORM1FPROC glad_glUniform1f; -#define glUniform1f glad_glUniform1f -typedef void (APIENTRYP PFNGLUNIFORM2FPROC)(GLint, GLfloat, GLfloat); -GLAPI PFNGLUNIFORM2FPROC glad_glUniform2f; -#define glUniform2f glad_glUniform2f -typedef void (APIENTRYP PFNGLUNIFORM3FPROC)(GLint, GLfloat, GLfloat, GLfloat); -GLAPI PFNGLUNIFORM3FPROC glad_glUniform3f; -#define glUniform3f glad_glUniform3f -typedef void (APIENTRYP PFNGLUNIFORM4FPROC)(GLint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI PFNGLUNIFORM4FPROC glad_glUniform4f; -#define glUniform4f glad_glUniform4f -typedef void (APIENTRYP PFNGLUNIFORM1IPROC)(GLint, GLint); -GLAPI PFNGLUNIFORM1IPROC glad_glUniform1i; -#define glUniform1i glad_glUniform1i -typedef void (APIENTRYP PFNGLUNIFORM2IPROC)(GLint, GLint, GLint); -GLAPI PFNGLUNIFORM2IPROC glad_glUniform2i; -#define glUniform2i glad_glUniform2i -typedef void (APIENTRYP PFNGLUNIFORM3IPROC)(GLint, GLint, GLint, GLint); -GLAPI PFNGLUNIFORM3IPROC glad_glUniform3i; -#define glUniform3i glad_glUniform3i -typedef void (APIENTRYP PFNGLUNIFORM4IPROC)(GLint, GLint, GLint, GLint, GLint); -GLAPI PFNGLUNIFORM4IPROC glad_glUniform4i; -#define glUniform4i glad_glUniform4i -typedef void (APIENTRYP PFNGLUNIFORM1FVPROC)(GLint, GLsizei, const GLfloat*); -GLAPI PFNGLUNIFORM1FVPROC glad_glUniform1fv; -#define glUniform1fv glad_glUniform1fv -typedef void (APIENTRYP PFNGLUNIFORM2FVPROC)(GLint, GLsizei, const GLfloat*); -GLAPI PFNGLUNIFORM2FVPROC glad_glUniform2fv; -#define glUniform2fv glad_glUniform2fv -typedef void (APIENTRYP PFNGLUNIFORM3FVPROC)(GLint, GLsizei, const GLfloat*); -GLAPI PFNGLUNIFORM3FVPROC glad_glUniform3fv; -#define glUniform3fv glad_glUniform3fv -typedef void (APIENTRYP PFNGLUNIFORM4FVPROC)(GLint, GLsizei, const GLfloat*); -GLAPI PFNGLUNIFORM4FVPROC glad_glUniform4fv; -#define glUniform4fv glad_glUniform4fv -typedef void (APIENTRYP PFNGLUNIFORM1IVPROC)(GLint, GLsizei, const GLint*); -GLAPI PFNGLUNIFORM1IVPROC glad_glUniform1iv; -#define glUniform1iv glad_glUniform1iv -typedef void (APIENTRYP PFNGLUNIFORM2IVPROC)(GLint, GLsizei, const GLint*); -GLAPI PFNGLUNIFORM2IVPROC glad_glUniform2iv; -#define glUniform2iv glad_glUniform2iv -typedef void (APIENTRYP PFNGLUNIFORM3IVPROC)(GLint, GLsizei, const GLint*); -GLAPI PFNGLUNIFORM3IVPROC glad_glUniform3iv; -#define glUniform3iv glad_glUniform3iv -typedef void (APIENTRYP PFNGLUNIFORM4IVPROC)(GLint, GLsizei, const GLint*); -GLAPI PFNGLUNIFORM4IVPROC glad_glUniform4iv; -#define glUniform4iv glad_glUniform4iv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; -#define glUniformMatrix2fv glad_glUniformMatrix2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -#define glUniformMatrix3fv glad_glUniformMatrix3fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; -#define glUniformMatrix4fv glad_glUniformMatrix4fv -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC)(GLuint); -GLAPI PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -#define glValidateProgram glad_glValidateProgram -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC)(GLuint, GLdouble); -GLAPI PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -#define glVertexAttrib1d glad_glVertexAttrib1d -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC)(GLuint, const GLdouble*); -GLAPI PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -#define glVertexAttrib1dv glad_glVertexAttrib1dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC)(GLuint, GLfloat); -GLAPI PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; -#define glVertexAttrib1f glad_glVertexAttrib1f -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC)(GLuint, const GLfloat*); -GLAPI PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; -#define glVertexAttrib1fv glad_glVertexAttrib1fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC)(GLuint, GLshort); -GLAPI PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -#define glVertexAttrib1s glad_glVertexAttrib1s -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC)(GLuint, const GLshort*); -GLAPI PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -#define glVertexAttrib1sv glad_glVertexAttrib1sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC)(GLuint, GLdouble, GLdouble); -GLAPI PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -#define glVertexAttrib2d glad_glVertexAttrib2d -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC)(GLuint, const GLdouble*); -GLAPI PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -#define glVertexAttrib2dv glad_glVertexAttrib2dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC)(GLuint, GLfloat, GLfloat); -GLAPI PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -#define glVertexAttrib2f glad_glVertexAttrib2f -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC)(GLuint, const GLfloat*); -GLAPI PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -#define glVertexAttrib2fv glad_glVertexAttrib2fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC)(GLuint, GLshort, GLshort); -GLAPI PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -#define glVertexAttrib2s glad_glVertexAttrib2s -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC)(GLuint, const GLshort*); -GLAPI PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -#define glVertexAttrib2sv glad_glVertexAttrib2sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC)(GLuint, GLdouble, GLdouble, GLdouble); -GLAPI PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -#define glVertexAttrib3d glad_glVertexAttrib3d -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC)(GLuint, const GLdouble*); -GLAPI PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; -#define glVertexAttrib3dv glad_glVertexAttrib3dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC)(GLuint, GLfloat, GLfloat, GLfloat); -GLAPI PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; -#define glVertexAttrib3f glad_glVertexAttrib3f -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC)(GLuint, const GLfloat*); -GLAPI PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -#define glVertexAttrib3fv glad_glVertexAttrib3fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC)(GLuint, GLshort, GLshort, GLshort); -GLAPI PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -#define glVertexAttrib3s glad_glVertexAttrib3s -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC)(GLuint, const GLshort*); -GLAPI PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -#define glVertexAttrib3sv glad_glVertexAttrib3sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC)(GLuint, const GLbyte*); -GLAPI PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -#define glVertexAttrib4Nbv glad_glVertexAttrib4Nbv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC)(GLuint, const GLint*); -GLAPI PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -#define glVertexAttrib4Niv glad_glVertexAttrib4Niv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC)(GLuint, const GLshort*); -GLAPI PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -#define glVertexAttrib4Nsv glad_glVertexAttrib4Nsv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte); -GLAPI PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -#define glVertexAttrib4Nub glad_glVertexAttrib4Nub -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC)(GLuint, const GLubyte*); -GLAPI PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -#define glVertexAttrib4Nubv glad_glVertexAttrib4Nubv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC)(GLuint, const GLuint*); -GLAPI PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -#define glVertexAttrib4Nuiv glad_glVertexAttrib4Nuiv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC)(GLuint, const GLushort*); -GLAPI PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -#define glVertexAttrib4Nusv glad_glVertexAttrib4Nusv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC)(GLuint, const GLbyte*); -GLAPI PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -#define glVertexAttrib4bv glad_glVertexAttrib4bv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; -#define glVertexAttrib4d glad_glVertexAttrib4d -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC)(GLuint, const GLdouble*); -GLAPI PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -#define glVertexAttrib4dv glad_glVertexAttrib4dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -#define glVertexAttrib4f glad_glVertexAttrib4f -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC)(GLuint, const GLfloat*); -GLAPI PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; -#define glVertexAttrib4fv glad_glVertexAttrib4fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC)(GLuint, const GLint*); -GLAPI PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; -#define glVertexAttrib4iv glad_glVertexAttrib4iv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC)(GLuint, GLshort, GLshort, GLshort, GLshort); -GLAPI PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -#define glVertexAttrib4s glad_glVertexAttrib4s -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC)(GLuint, const GLshort*); -GLAPI PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -#define glVertexAttrib4sv glad_glVertexAttrib4sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC)(GLuint, const GLubyte*); -GLAPI PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; -#define glVertexAttrib4ubv glad_glVertexAttrib4ubv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC)(GLuint, const GLuint*); -GLAPI PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -#define glVertexAttrib4uiv glad_glVertexAttrib4uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC)(GLuint, const GLushort*); -GLAPI PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -#define glVertexAttrib4usv glad_glVertexAttrib4usv -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void*); -GLAPI PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -#define glVertexAttribPointer glad_glVertexAttribPointer -#endif -#ifndef GL_VERSION_2_1 -#define GL_VERSION_2_1 1 -GLAPI int GLAD_GL_VERSION_2_1; -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -#define glUniformMatrix2x3fv glad_glUniformMatrix2x3fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -#define glUniformMatrix3x2fv glad_glUniformMatrix3x2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; -#define glUniformMatrix2x4fv glad_glUniformMatrix2x4fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -#define glUniformMatrix4x2fv glad_glUniformMatrix4x2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -#define glUniformMatrix3x4fv glad_glUniformMatrix3x4fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC)(GLint, GLsizei, GLboolean, const GLfloat*); -GLAPI PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -#define glUniformMatrix4x3fv glad_glUniformMatrix4x3fv -#endif -#ifndef GL_VERSION_3_0 -#define GL_VERSION_3_0 1 -GLAPI int GLAD_GL_VERSION_3_0; -typedef void (APIENTRYP PFNGLCOLORMASKIPROC)(GLuint, GLboolean, GLboolean, GLboolean, GLboolean); -GLAPI PFNGLCOLORMASKIPROC glad_glColorMaski; -#define glColorMaski glad_glColorMaski -typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC)(GLenum, GLuint, GLboolean*); -GLAPI PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -#define glGetBooleani_v glad_glGetBooleani_v -typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC)(GLenum, GLuint, GLint*); -GLAPI PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -#define glGetIntegeri_v glad_glGetIntegeri_v -typedef void (APIENTRYP PFNGLENABLEIPROC)(GLenum, GLuint); -GLAPI PFNGLENABLEIPROC glad_glEnablei; -#define glEnablei glad_glEnablei -typedef void (APIENTRYP PFNGLDISABLEIPROC)(GLenum, GLuint); -GLAPI PFNGLDISABLEIPROC glad_glDisablei; -#define glDisablei glad_glDisablei -typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC)(GLenum, GLuint); -GLAPI PFNGLISENABLEDIPROC glad_glIsEnabledi; -#define glIsEnabledi glad_glIsEnabledi -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC)(GLenum); -GLAPI PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -#define glBeginTransformFeedback glad_glBeginTransformFeedback -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC)(); -GLAPI PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -#define glEndTransformFeedback glad_glEndTransformFeedback -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC)(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr); -GLAPI PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -#define glBindBufferRange glad_glBindBufferRange -typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC)(GLenum, GLuint, GLuint); -GLAPI PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -#define glBindBufferBase glad_glBindBufferBase -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC)(GLuint, GLsizei, const GLchar**, GLenum); -GLAPI PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -#define glTransformFeedbackVaryings glad_glTransformFeedbackVaryings -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)(GLuint, GLuint, GLsizei, GLsizei*, GLsizei*, GLenum*, GLchar*); -GLAPI PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -#define glGetTransformFeedbackVarying glad_glGetTransformFeedbackVarying -typedef void (APIENTRYP PFNGLCLAMPCOLORPROC)(GLenum, GLenum); -GLAPI PFNGLCLAMPCOLORPROC glad_glClampColor; -#define glClampColor glad_glClampColor -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC)(GLuint, GLenum); -GLAPI PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; -#define glBeginConditionalRender glad_glBeginConditionalRender -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC)(); -GLAPI PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -#define glEndConditionalRender glad_glEndConditionalRender -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC)(GLuint, GLint, GLenum, GLsizei, const void*); -GLAPI PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -#define glVertexAttribIPointer glad_glVertexAttribIPointer -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC)(GLuint, GLenum, GLint*); -GLAPI PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -#define glGetVertexAttribIiv glad_glGetVertexAttribIiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC)(GLuint, GLenum, GLuint*); -GLAPI PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -#define glGetVertexAttribIuiv glad_glGetVertexAttribIuiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC)(GLuint, GLint); -GLAPI PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; -#define glVertexAttribI1i glad_glVertexAttribI1i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC)(GLuint, GLint, GLint); -GLAPI PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; -#define glVertexAttribI2i glad_glVertexAttribI2i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC)(GLuint, GLint, GLint, GLint); -GLAPI PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -#define glVertexAttribI3i glad_glVertexAttribI3i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC)(GLuint, GLint, GLint, GLint, GLint); -GLAPI PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -#define glVertexAttribI4i glad_glVertexAttribI4i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC)(GLuint, GLuint); -GLAPI PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -#define glVertexAttribI1ui glad_glVertexAttribI1ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC)(GLuint, GLuint, GLuint); -GLAPI PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -#define glVertexAttribI2ui glad_glVertexAttribI2ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC)(GLuint, GLuint, GLuint, GLuint); -GLAPI PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -#define glVertexAttribI3ui glad_glVertexAttribI3ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC)(GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -#define glVertexAttribI4ui glad_glVertexAttribI4ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC)(GLuint, const GLint*); -GLAPI PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -#define glVertexAttribI1iv glad_glVertexAttribI1iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC)(GLuint, const GLint*); -GLAPI PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -#define glVertexAttribI2iv glad_glVertexAttribI2iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC)(GLuint, const GLint*); -GLAPI PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -#define glVertexAttribI3iv glad_glVertexAttribI3iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC)(GLuint, const GLint*); -GLAPI PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -#define glVertexAttribI4iv glad_glVertexAttribI4iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC)(GLuint, const GLuint*); -GLAPI PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -#define glVertexAttribI1uiv glad_glVertexAttribI1uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC)(GLuint, const GLuint*); -GLAPI PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -#define glVertexAttribI2uiv glad_glVertexAttribI2uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC)(GLuint, const GLuint*); -GLAPI PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -#define glVertexAttribI3uiv glad_glVertexAttribI3uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC)(GLuint, const GLuint*); -GLAPI PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -#define glVertexAttribI4uiv glad_glVertexAttribI4uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC)(GLuint, const GLbyte*); -GLAPI PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -#define glVertexAttribI4bv glad_glVertexAttribI4bv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC)(GLuint, const GLshort*); -GLAPI PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -#define glVertexAttribI4sv glad_glVertexAttribI4sv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC)(GLuint, const GLubyte*); -GLAPI PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -#define glVertexAttribI4ubv glad_glVertexAttribI4ubv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC)(GLuint, const GLushort*); -GLAPI PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -#define glVertexAttribI4usv glad_glVertexAttribI4usv -typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC)(GLuint, GLint, GLuint*); -GLAPI PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; -#define glGetUniformuiv glad_glGetUniformuiv -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC)(GLuint, GLuint, const GLchar*); -GLAPI PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -#define glBindFragDataLocation glad_glBindFragDataLocation -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC)(GLuint, const GLchar*); -GLAPI PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -#define glGetFragDataLocation glad_glGetFragDataLocation -typedef void (APIENTRYP PFNGLUNIFORM1UIPROC)(GLint, GLuint); -GLAPI PFNGLUNIFORM1UIPROC glad_glUniform1ui; -#define glUniform1ui glad_glUniform1ui -typedef void (APIENTRYP PFNGLUNIFORM2UIPROC)(GLint, GLuint, GLuint); -GLAPI PFNGLUNIFORM2UIPROC glad_glUniform2ui; -#define glUniform2ui glad_glUniform2ui -typedef void (APIENTRYP PFNGLUNIFORM3UIPROC)(GLint, GLuint, GLuint, GLuint); -GLAPI PFNGLUNIFORM3UIPROC glad_glUniform3ui; -#define glUniform3ui glad_glUniform3ui -typedef void (APIENTRYP PFNGLUNIFORM4UIPROC)(GLint, GLuint, GLuint, GLuint, GLuint); -GLAPI PFNGLUNIFORM4UIPROC glad_glUniform4ui; -#define glUniform4ui glad_glUniform4ui -typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC)(GLint, GLsizei, const GLuint*); -GLAPI PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -#define glUniform1uiv glad_glUniform1uiv -typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC)(GLint, GLsizei, const GLuint*); -GLAPI PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -#define glUniform2uiv glad_glUniform2uiv -typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC)(GLint, GLsizei, const GLuint*); -GLAPI PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -#define glUniform3uiv glad_glUniform3uiv -typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC)(GLint, GLsizei, const GLuint*); -GLAPI PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -#define glUniform4uiv glad_glUniform4uiv -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC)(GLenum, GLenum, const GLint*); -GLAPI PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -#define glTexParameterIiv glad_glTexParameterIiv -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC)(GLenum, GLenum, const GLuint*); -GLAPI PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; -#define glTexParameterIuiv glad_glTexParameterIuiv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC)(GLenum, GLenum, GLint*); -GLAPI PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -#define glGetTexParameterIiv glad_glGetTexParameterIiv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC)(GLenum, GLenum, GLuint*); -GLAPI PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; -#define glGetTexParameterIuiv glad_glGetTexParameterIuiv -typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC)(GLenum, GLint, const GLint*); -GLAPI PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -#define glClearBufferiv glad_glClearBufferiv -typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC)(GLenum, GLint, const GLuint*); -GLAPI PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -#define glClearBufferuiv glad_glClearBufferuiv -typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC)(GLenum, GLint, const GLfloat*); -GLAPI PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; -#define glClearBufferfv glad_glClearBufferfv -typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC)(GLenum, GLint, GLfloat, GLint); -GLAPI PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -#define glClearBufferfi glad_glClearBufferfi -typedef const GLubyte* (APIENTRYP PFNGLGETSTRINGIPROC)(GLenum, GLuint); -GLAPI PFNGLGETSTRINGIPROC glad_glGetStringi; -#define glGetStringi glad_glGetStringi -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC)(GLuint); -GLAPI PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -#define glIsRenderbuffer glad_glIsRenderbuffer -typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC)(GLenum, GLuint); -GLAPI PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -#define glBindRenderbuffer glad_glBindRenderbuffer -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC)(GLsizei, const GLuint*); -GLAPI PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -#define glDeleteRenderbuffers glad_glDeleteRenderbuffers -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC)(GLsizei, GLuint*); -GLAPI PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -#define glGenRenderbuffers glad_glGenRenderbuffers -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC)(GLenum, GLenum, GLsizei, GLsizei); -GLAPI PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -#define glRenderbufferStorage glad_glRenderbufferStorage -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC)(GLenum, GLenum, GLint*); -GLAPI PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -#define glGetRenderbufferParameteriv glad_glGetRenderbufferParameteriv -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC)(GLuint); -GLAPI PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -#define glIsFramebuffer glad_glIsFramebuffer -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC)(GLenum, GLuint); -GLAPI PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -#define glBindFramebuffer glad_glBindFramebuffer -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC)(GLsizei, const GLuint*); -GLAPI PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -#define glDeleteFramebuffers glad_glDeleteFramebuffers -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC)(GLsizei, GLuint*); -GLAPI PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -#define glGenFramebuffers glad_glGenFramebuffers -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum); -GLAPI PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -#define glCheckFramebufferStatus glad_glCheckFramebufferStatus -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC)(GLenum, GLenum, GLenum, GLuint, GLint); -GLAPI PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -#define glFramebufferTexture1D glad_glFramebufferTexture1D -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC)(GLenum, GLenum, GLenum, GLuint, GLint); -GLAPI PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -#define glFramebufferTexture2D glad_glFramebufferTexture2D -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC)(GLenum, GLenum, GLenum, GLuint, GLint, GLint); -GLAPI PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -#define glFramebufferTexture3D glad_glFramebufferTexture3D -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC)(GLenum, GLenum, GLenum, GLuint); -GLAPI PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -#define glFramebufferRenderbuffer glad_glFramebufferRenderbuffer -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)(GLenum, GLenum, GLenum, GLint*); -GLAPI PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -#define glGetFramebufferAttachmentParameteriv glad_glGetFramebufferAttachmentParameteriv -typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC)(GLenum); -GLAPI PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -#define glGenerateMipmap glad_glGenerateMipmap -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC)(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum); -GLAPI PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; -#define glBlitFramebuffer glad_glBlitFramebuffer -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)(GLenum, GLsizei, GLenum, GLsizei, GLsizei); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; -#define glRenderbufferStorageMultisample glad_glRenderbufferStorageMultisample -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC)(GLenum, GLenum, GLuint, GLint, GLint); -GLAPI PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -#define glFramebufferTextureLayer glad_glFramebufferTextureLayer -typedef void* (APIENTRYP PFNGLMAPBUFFERRANGEPROC)(GLenum, GLintptr, GLsizeiptr, GLbitfield); -GLAPI PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -#define glMapBufferRange glad_glMapBufferRange -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC)(GLenum, GLintptr, GLsizeiptr); -GLAPI PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -#define glFlushMappedBufferRange glad_glFlushMappedBufferRange -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC)(GLuint); -GLAPI PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -#define glBindVertexArray glad_glBindVertexArray -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC)(GLsizei, const GLuint*); -GLAPI PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -#define glDeleteVertexArrays glad_glDeleteVertexArrays -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC)(GLsizei, GLuint*); -GLAPI PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -#define glGenVertexArrays glad_glGenVertexArrays -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC)(GLuint); -GLAPI PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -#define glIsVertexArray glad_glIsVertexArray -#endif -#ifndef GL_VERSION_3_1 -#define GL_VERSION_3_1 1 -GLAPI int GLAD_GL_VERSION_3_1; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC)(GLenum, GLint, GLsizei, GLsizei); -GLAPI PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; -#define glDrawArraysInstanced glad_glDrawArraysInstanced -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC)(GLenum, GLsizei, GLenum, const void*, GLsizei); -GLAPI PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -#define glDrawElementsInstanced glad_glDrawElementsInstanced -typedef void (APIENTRYP PFNGLTEXBUFFERPROC)(GLenum, GLenum, GLuint); -GLAPI PFNGLTEXBUFFERPROC glad_glTexBuffer; -#define glTexBuffer glad_glTexBuffer -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC)(GLuint); -GLAPI PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -#define glPrimitiveRestartIndex glad_glPrimitiveRestartIndex -typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC)(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr); -GLAPI PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; -#define glCopyBufferSubData glad_glCopyBufferSubData -typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC)(GLuint, GLsizei, const GLchar**, GLuint*); -GLAPI PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -#define glGetUniformIndices glad_glGetUniformIndices -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC)(GLuint, GLsizei, const GLuint*, GLenum, GLint*); -GLAPI PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -#define glGetActiveUniformsiv glad_glGetActiveUniformsiv -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC)(GLuint, GLuint, GLsizei, GLsizei*, GLchar*); -GLAPI PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -#define glGetActiveUniformName glad_glGetActiveUniformName -typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC)(GLuint, const GLchar*); -GLAPI PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; -#define glGetUniformBlockIndex glad_glGetUniformBlockIndex -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC)(GLuint, GLuint, GLenum, GLint*); -GLAPI PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; -#define glGetActiveUniformBlockiv glad_glGetActiveUniformBlockiv -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)(GLuint, GLuint, GLsizei, GLsizei*, GLchar*); -GLAPI PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -#define glGetActiveUniformBlockName glad_glGetActiveUniformBlockName -typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC)(GLuint, GLuint, GLuint); -GLAPI PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -#define glUniformBlockBinding glad_glUniformBlockBinding -#endif -#ifndef GL_VERSION_3_2 -#define GL_VERSION_3_2 1 -GLAPI int GLAD_GL_VERSION_3_2; -typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC)(GLenum, GLsizei, GLenum, const void*, GLint); -GLAPI PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -#define glDrawElementsBaseVertex glad_glDrawElementsBaseVertex -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)(GLenum, GLuint, GLuint, GLsizei, GLenum, const void*, GLint); -GLAPI PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -#define glDrawRangeElementsBaseVertex glad_glDrawRangeElementsBaseVertex -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)(GLenum, GLsizei, GLenum, const void*, GLsizei, GLint); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -#define glDrawElementsInstancedBaseVertex glad_glDrawElementsInstancedBaseVertex -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)(GLenum, const GLsizei*, GLenum, const void**, GLsizei, const GLint*); -GLAPI PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; -#define glMultiDrawElementsBaseVertex glad_glMultiDrawElementsBaseVertex -typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC)(GLenum); -GLAPI PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -#define glProvokingVertex glad_glProvokingVertex -typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC)(GLenum, GLbitfield); -GLAPI PFNGLFENCESYNCPROC glad_glFenceSync; -#define glFenceSync glad_glFenceSync -typedef GLboolean (APIENTRYP PFNGLISSYNCPROC)(GLsync); -GLAPI PFNGLISSYNCPROC glad_glIsSync; -#define glIsSync glad_glIsSync -typedef void (APIENTRYP PFNGLDELETESYNCPROC)(GLsync); -GLAPI PFNGLDELETESYNCPROC glad_glDeleteSync; -#define glDeleteSync glad_glDeleteSync -typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC)(GLsync, GLbitfield, GLuint64); -GLAPI PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -#define glClientWaitSync glad_glClientWaitSync -typedef void (APIENTRYP PFNGLWAITSYNCPROC)(GLsync, GLbitfield, GLuint64); -GLAPI PFNGLWAITSYNCPROC glad_glWaitSync; -#define glWaitSync glad_glWaitSync -typedef void (APIENTRYP PFNGLGETINTEGER64VPROC)(GLenum, GLint64*); -GLAPI PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -#define glGetInteger64v glad_glGetInteger64v -typedef void (APIENTRYP PFNGLGETSYNCIVPROC)(GLsync, GLenum, GLsizei, GLsizei*, GLint*); -GLAPI PFNGLGETSYNCIVPROC glad_glGetSynciv; -#define glGetSynciv glad_glGetSynciv -typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC)(GLenum, GLuint, GLint64*); -GLAPI PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -#define glGetInteger64i_v glad_glGetInteger64i_v -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC)(GLenum, GLenum, GLint64*); -GLAPI PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; -#define glGetBufferParameteri64v glad_glGetBufferParameteri64v -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC)(GLenum, GLenum, GLuint, GLint); -GLAPI PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -#define glFramebufferTexture glad_glFramebufferTexture -typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean); -GLAPI PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -#define glTexImage2DMultisample glad_glTexImage2DMultisample -typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean); -GLAPI PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -#define glTexImage3DMultisample glad_glTexImage3DMultisample -typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC)(GLenum, GLuint, GLfloat*); -GLAPI PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -#define glGetMultisamplefv glad_glGetMultisamplefv -typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC)(GLuint, GLbitfield); -GLAPI PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -#define glSampleMaski glad_glSampleMaski -#endif - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/linmath.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/linmath.h deleted file mode 100644 index ec63a04..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/linmath.h +++ /dev/null @@ -1,571 +0,0 @@ -#ifndef LINMATH_H -#define LINMATH_H - -#include - -#ifdef _MSC_VER -#define inline __inline -#endif - -#define LINMATH_H_DEFINE_VEC(n) \ -typedef float vec##n[n]; \ -static inline void vec##n##_add(vec##n r, vec##n const a, vec##n const b) \ -{ \ - int i; \ - for(i=0; i 1e-4) { - vec3_norm(u, u); - mat4x4 T; - mat4x4_from_vec3_mul_outer(T, u, u); - - mat4x4 S = { - { 0, u[2], -u[1], 0}, - {-u[2], 0, u[0], 0}, - { u[1], -u[0], 0, 0}, - { 0, 0, 0, 0} - }; - mat4x4_scale(S, S, s); - - mat4x4 C; - mat4x4_identity(C); - mat4x4_sub(C, C, T); - - mat4x4_scale(C, C, c); - - mat4x4_add(T, T, C); - mat4x4_add(T, T, S); - - T[3][3] = 1.; - mat4x4_mul(R, M, T); - } else { - mat4x4_dup(R, M); - } -} -static inline void mat4x4_rotate_X(mat4x4 Q, mat4x4 M, float angle) -{ - float s = sinf(angle); - float c = cosf(angle); - mat4x4 R = { - {1.f, 0.f, 0.f, 0.f}, - {0.f, c, s, 0.f}, - {0.f, -s, c, 0.f}, - {0.f, 0.f, 0.f, 1.f} - }; - mat4x4_mul(Q, M, R); -} -static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 M, float angle) -{ - float s = sinf(angle); - float c = cosf(angle); - mat4x4 R = { - { c, 0.f, s, 0.f}, - { 0.f, 1.f, 0.f, 0.f}, - { -s, 0.f, c, 0.f}, - { 0.f, 0.f, 0.f, 1.f} - }; - mat4x4_mul(Q, M, R); -} -static inline void mat4x4_rotate_Z(mat4x4 Q, mat4x4 M, float angle) -{ - float s = sinf(angle); - float c = cosf(angle); - mat4x4 R = { - { c, s, 0.f, 0.f}, - { -s, c, 0.f, 0.f}, - { 0.f, 0.f, 1.f, 0.f}, - { 0.f, 0.f, 0.f, 1.f} - }; - mat4x4_mul(Q, M, R); -} -static inline void mat4x4_invert(mat4x4 T, mat4x4 M) -{ - float s[6]; - float c[6]; - s[0] = M[0][0]*M[1][1] - M[1][0]*M[0][1]; - s[1] = M[0][0]*M[1][2] - M[1][0]*M[0][2]; - s[2] = M[0][0]*M[1][3] - M[1][0]*M[0][3]; - s[3] = M[0][1]*M[1][2] - M[1][1]*M[0][2]; - s[4] = M[0][1]*M[1][3] - M[1][1]*M[0][3]; - s[5] = M[0][2]*M[1][3] - M[1][2]*M[0][3]; - - c[0] = M[2][0]*M[3][1] - M[3][0]*M[2][1]; - c[1] = M[2][0]*M[3][2] - M[3][0]*M[2][2]; - c[2] = M[2][0]*M[3][3] - M[3][0]*M[2][3]; - c[3] = M[2][1]*M[3][2] - M[3][1]*M[2][2]; - c[4] = M[2][1]*M[3][3] - M[3][1]*M[2][3]; - c[5] = M[2][2]*M[3][3] - M[3][2]*M[2][3]; - - /* Assumes it is invertible */ - float idet = 1.0f/( s[0]*c[5]-s[1]*c[4]+s[2]*c[3]+s[3]*c[2]-s[4]*c[1]+s[5]*c[0] ); - - T[0][0] = ( M[1][1] * c[5] - M[1][2] * c[4] + M[1][3] * c[3]) * idet; - T[0][1] = (-M[0][1] * c[5] + M[0][2] * c[4] - M[0][3] * c[3]) * idet; - T[0][2] = ( M[3][1] * s[5] - M[3][2] * s[4] + M[3][3] * s[3]) * idet; - T[0][3] = (-M[2][1] * s[5] + M[2][2] * s[4] - M[2][3] * s[3]) * idet; - - T[1][0] = (-M[1][0] * c[5] + M[1][2] * c[2] - M[1][3] * c[1]) * idet; - T[1][1] = ( M[0][0] * c[5] - M[0][2] * c[2] + M[0][3] * c[1]) * idet; - T[1][2] = (-M[3][0] * s[5] + M[3][2] * s[2] - M[3][3] * s[1]) * idet; - T[1][3] = ( M[2][0] * s[5] - M[2][2] * s[2] + M[2][3] * s[1]) * idet; - - T[2][0] = ( M[1][0] * c[4] - M[1][1] * c[2] + M[1][3] * c[0]) * idet; - T[2][1] = (-M[0][0] * c[4] + M[0][1] * c[2] - M[0][3] * c[0]) * idet; - T[2][2] = ( M[3][0] * s[4] - M[3][1] * s[2] + M[3][3] * s[0]) * idet; - T[2][3] = (-M[2][0] * s[4] + M[2][1] * s[2] - M[2][3] * s[0]) * idet; - - T[3][0] = (-M[1][0] * c[3] + M[1][1] * c[1] - M[1][2] * c[0]) * idet; - T[3][1] = ( M[0][0] * c[3] - M[0][1] * c[1] + M[0][2] * c[0]) * idet; - T[3][2] = (-M[3][0] * s[3] + M[3][1] * s[1] - M[3][2] * s[0]) * idet; - T[3][3] = ( M[2][0] * s[3] - M[2][1] * s[1] + M[2][2] * s[0]) * idet; -} -static inline void mat4x4_orthonormalize(mat4x4 R, mat4x4 M) -{ - mat4x4_dup(R, M); - float s = 1.; - vec3 h; - - vec3_norm(R[2], R[2]); - - s = vec3_mul_inner(R[1], R[2]); - vec3_scale(h, R[2], s); - vec3_sub(R[1], R[1], h); - vec3_norm(R[2], R[2]); - - s = vec3_mul_inner(R[1], R[2]); - vec3_scale(h, R[2], s); - vec3_sub(R[1], R[1], h); - vec3_norm(R[1], R[1]); - - s = vec3_mul_inner(R[0], R[1]); - vec3_scale(h, R[1], s); - vec3_sub(R[0], R[0], h); - vec3_norm(R[0], R[0]); -} - -static inline void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f) -{ - M[0][0] = 2.f*n/(r-l); - M[0][1] = M[0][2] = M[0][3] = 0.f; - - M[1][1] = 2.f*n/(t-b); - M[1][0] = M[1][2] = M[1][3] = 0.f; - - M[2][0] = (r+l)/(r-l); - M[2][1] = (t+b)/(t-b); - M[2][2] = -(f+n)/(f-n); - M[2][3] = -1.f; - - M[3][2] = -2.f*(f*n)/(f-n); - M[3][0] = M[3][1] = M[3][3] = 0.f; -} -static inline void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f) -{ - M[0][0] = 2.f/(r-l); - M[0][1] = M[0][2] = M[0][3] = 0.f; - - M[1][1] = 2.f/(t-b); - M[1][0] = M[1][2] = M[1][3] = 0.f; - - M[2][2] = -2.f/(f-n); - M[2][0] = M[2][1] = M[2][3] = 0.f; - - M[3][0] = -(r+l)/(r-l); - M[3][1] = -(t+b)/(t-b); - M[3][2] = -(f+n)/(f-n); - M[3][3] = 1.f; -} -static inline void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f) -{ - /* NOTE: Degrees are an unhandy unit to work with. - * linmath.h uses radians for everything! */ - float const a = 1.f / (float) tan(y_fov / 2.f); - - m[0][0] = a / aspect; - m[0][1] = 0.f; - m[0][2] = 0.f; - m[0][3] = 0.f; - - m[1][0] = 0.f; - m[1][1] = a; - m[1][2] = 0.f; - m[1][3] = 0.f; - - m[2][0] = 0.f; - m[2][1] = 0.f; - m[2][2] = -((f + n) / (f - n)); - m[2][3] = -1.f; - - m[3][0] = 0.f; - m[3][1] = 0.f; - m[3][2] = -((2.f * f * n) / (f - n)); - m[3][3] = 0.f; -} -static inline void mat4x4_look_at(mat4x4 m, vec3 eye, vec3 center, vec3 up) -{ - /* Adapted from Android's OpenGL Matrix.java. */ - /* See the OpenGL GLUT documentation for gluLookAt for a description */ - /* of the algorithm. We implement it in a straightforward way: */ - - /* TODO: The negation of of can be spared by swapping the order of - * operands in the following cross products in the right way. */ - vec3 f; - vec3_sub(f, center, eye); - vec3_norm(f, f); - - vec3 s; - vec3_mul_cross(s, f, up); - vec3_norm(s, s); - - vec3 t; - vec3_mul_cross(t, s, f); - - m[0][0] = s[0]; - m[0][1] = t[0]; - m[0][2] = -f[0]; - m[0][3] = 0.f; - - m[1][0] = s[1]; - m[1][1] = t[1]; - m[1][2] = -f[1]; - m[1][3] = 0.f; - - m[2][0] = s[2]; - m[2][1] = t[2]; - m[2][2] = -f[2]; - m[2][3] = 0.f; - - m[3][0] = 0.f; - m[3][1] = 0.f; - m[3][2] = 0.f; - m[3][3] = 1.f; - - mat4x4_translate_in_place(m, -eye[0], -eye[1], -eye[2]); -} - -typedef float quat[4]; -static inline void quat_identity(quat q) -{ - q[0] = q[1] = q[2] = 0.f; - q[3] = 1.f; -} -static inline void quat_add(quat r, quat a, quat b) -{ - int i; - for(i=0; i<4; ++i) - r[i] = a[i] + b[i]; -} -static inline void quat_sub(quat r, quat a, quat b) -{ - int i; - for(i=0; i<4; ++i) - r[i] = a[i] - b[i]; -} -static inline void quat_mul(quat r, quat p, quat q) -{ - vec3 w; - vec3_mul_cross(r, p, q); - vec3_scale(w, p, q[3]); - vec3_add(r, r, w); - vec3_scale(w, q, p[3]); - vec3_add(r, r, w); - r[3] = p[3]*q[3] - vec3_mul_inner(p, q); -} -static inline void quat_scale(quat r, quat v, float s) -{ - int i; - for(i=0; i<4; ++i) - r[i] = v[i] * s; -} -static inline float quat_inner_product(quat a, quat b) -{ - float p = 0.f; - int i; - for(i=0; i<4; ++i) - p += b[i]*a[i]; - return p; -} -static inline void quat_conj(quat r, quat q) -{ - int i; - for(i=0; i<3; ++i) - r[i] = -q[i]; - r[3] = q[3]; -} -static inline void quat_rotate(quat r, float angle, vec3 axis) { - vec3 v; - vec3_scale(v, axis, sinf(angle / 2)); - int i; - for(i=0; i<3; ++i) - r[i] = v[i]; - r[3] = cosf(angle / 2); -} -#define quat_norm vec4_norm -static inline void quat_mul_vec3(vec3 r, quat q, vec3 v) -{ -/* - * Method by Fabian 'ryg' Giessen (of Farbrausch) -t = 2 * cross(q.xyz, v) -v' = v + q.w * t + cross(q.xyz, t) - */ - vec3 t = {q[0], q[1], q[2]}; - vec3 u = {q[0], q[1], q[2]}; - - vec3_mul_cross(t, t, v); - vec3_scale(t, t, 2); - - vec3_mul_cross(u, u, t); - vec3_scale(t, t, q[3]); - - vec3_add(r, v, t); - vec3_add(r, r, u); -} -static inline void mat4x4_from_quat(mat4x4 M, quat q) -{ - float a = q[3]; - float b = q[0]; - float c = q[1]; - float d = q[2]; - float a2 = a*a; - float b2 = b*b; - float c2 = c*c; - float d2 = d*d; - - M[0][0] = a2 + b2 - c2 - d2; - M[0][1] = 2.f*(b*c + a*d); - M[0][2] = 2.f*(b*d - a*c); - M[0][3] = 0.f; - - M[1][0] = 2*(b*c - a*d); - M[1][1] = a2 - b2 + c2 - d2; - M[1][2] = 2.f*(c*d + a*b); - M[1][3] = 0.f; - - M[2][0] = 2.f*(b*d + a*c); - M[2][1] = 2.f*(c*d - a*b); - M[2][2] = a2 - b2 - c2 + d2; - M[2][3] = 0.f; - - M[3][0] = M[3][1] = M[3][2] = 0.f; - M[3][3] = 1.f; -} - -static inline void mat4x4o_mul_quat(mat4x4 R, mat4x4 M, quat q) -{ -/* XXX: The way this is written only works for othogonal matrices. */ -/* TODO: Take care of non-orthogonal case. */ - quat_mul_vec3(R[0], q, M[0]); - quat_mul_vec3(R[1], q, M[1]); - quat_mul_vec3(R[2], q, M[2]); - - R[3][0] = R[3][1] = R[3][2] = 0.f; - R[3][3] = 1.f; -} -static inline void quat_from_mat4x4(quat q, mat4x4 M) -{ - float r=0.f; - int i; - - int perm[] = { 0, 1, 2, 0, 1 }; - int *p = perm; - - for(i = 0; i<3; i++) { - float m = M[i][i]; - if( m < r ) - continue; - m = r; - p = &perm[i]; - } - - r = sqrtf(1.f + M[p[0]][p[0]] - M[p[1]][p[1]] - M[p[2]][p[2]] ); - - if(r < 1e-6) { - q[0] = 1.f; - q[1] = q[2] = q[3] = 0.f; - return; - } - - q[0] = r/2.f; - q[1] = (M[p[0]][p[1]] - M[p[1]][p[0]])/(2.f*r); - q[2] = (M[p[2]][p[0]] - M[p[0]][p[2]])/(2.f*r); - q[3] = (M[p[2]][p[1]] - M[p[1]][p[2]])/(2.f*r); -} - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/tinycthread.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/tinycthread.c deleted file mode 100644 index 5d4018d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/tinycthread.c +++ /dev/null @@ -1,594 +0,0 @@ -/* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; -*- -Copyright (c) 2012 Marcus Geelnard - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. - - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source - distribution. -*/ - -/* 2013-01-06 Camilla Berglund - * - * Added casts from time_t to DWORD to avoid warnings on VC++. - * Fixed time retrieval on POSIX systems. - */ - -#include "tinycthread.h" -#include - -/* Platform specific includes */ -#if defined(_TTHREAD_POSIX_) - #include - #include - #include - #include - #include -#elif defined(_TTHREAD_WIN32_) - #include - #include -#endif - -/* Standard, good-to-have defines */ -#ifndef NULL - #define NULL (void*)0 -#endif -#ifndef TRUE - #define TRUE 1 -#endif -#ifndef FALSE - #define FALSE 0 -#endif - -int mtx_init(mtx_t *mtx, int type) -{ -#if defined(_TTHREAD_WIN32_) - mtx->mAlreadyLocked = FALSE; - mtx->mRecursive = type & mtx_recursive; - InitializeCriticalSection(&mtx->mHandle); - return thrd_success; -#else - int ret; - pthread_mutexattr_t attr; - pthread_mutexattr_init(&attr); - if (type & mtx_recursive) - { - pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); - } - ret = pthread_mutex_init(mtx, &attr); - pthread_mutexattr_destroy(&attr); - return ret == 0 ? thrd_success : thrd_error; -#endif -} - -void mtx_destroy(mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - DeleteCriticalSection(&mtx->mHandle); -#else - pthread_mutex_destroy(mtx); -#endif -} - -int mtx_lock(mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - EnterCriticalSection(&mtx->mHandle); - if (!mtx->mRecursive) - { - while(mtx->mAlreadyLocked) Sleep(1000); /* Simulate deadlock... */ - mtx->mAlreadyLocked = TRUE; - } - return thrd_success; -#else - return pthread_mutex_lock(mtx) == 0 ? thrd_success : thrd_error; -#endif -} - -int mtx_timedlock(mtx_t *mtx, const struct timespec *ts) -{ - /* FIXME! */ - (void)mtx; - (void)ts; - return thrd_error; -} - -int mtx_trylock(mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - int ret = TryEnterCriticalSection(&mtx->mHandle) ? thrd_success : thrd_busy; - if ((!mtx->mRecursive) && (ret == thrd_success) && mtx->mAlreadyLocked) - { - LeaveCriticalSection(&mtx->mHandle); - ret = thrd_busy; - } - return ret; -#else - return (pthread_mutex_trylock(mtx) == 0) ? thrd_success : thrd_busy; -#endif -} - -int mtx_unlock(mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - mtx->mAlreadyLocked = FALSE; - LeaveCriticalSection(&mtx->mHandle); - return thrd_success; -#else - return pthread_mutex_unlock(mtx) == 0 ? thrd_success : thrd_error;; -#endif -} - -#if defined(_TTHREAD_WIN32_) -#define _CONDITION_EVENT_ONE 0 -#define _CONDITION_EVENT_ALL 1 -#endif - -int cnd_init(cnd_t *cond) -{ -#if defined(_TTHREAD_WIN32_) - cond->mWaitersCount = 0; - - /* Init critical section */ - InitializeCriticalSection(&cond->mWaitersCountLock); - - /* Init events */ - cond->mEvents[_CONDITION_EVENT_ONE] = CreateEvent(NULL, FALSE, FALSE, NULL); - if (cond->mEvents[_CONDITION_EVENT_ONE] == NULL) - { - cond->mEvents[_CONDITION_EVENT_ALL] = NULL; - return thrd_error; - } - cond->mEvents[_CONDITION_EVENT_ALL] = CreateEvent(NULL, TRUE, FALSE, NULL); - if (cond->mEvents[_CONDITION_EVENT_ALL] == NULL) - { - CloseHandle(cond->mEvents[_CONDITION_EVENT_ONE]); - cond->mEvents[_CONDITION_EVENT_ONE] = NULL; - return thrd_error; - } - - return thrd_success; -#else - return pthread_cond_init(cond, NULL) == 0 ? thrd_success : thrd_error; -#endif -} - -void cnd_destroy(cnd_t *cond) -{ -#if defined(_TTHREAD_WIN32_) - if (cond->mEvents[_CONDITION_EVENT_ONE] != NULL) - { - CloseHandle(cond->mEvents[_CONDITION_EVENT_ONE]); - } - if (cond->mEvents[_CONDITION_EVENT_ALL] != NULL) - { - CloseHandle(cond->mEvents[_CONDITION_EVENT_ALL]); - } - DeleteCriticalSection(&cond->mWaitersCountLock); -#else - pthread_cond_destroy(cond); -#endif -} - -int cnd_signal(cnd_t *cond) -{ -#if defined(_TTHREAD_WIN32_) - int haveWaiters; - - /* Are there any waiters? */ - EnterCriticalSection(&cond->mWaitersCountLock); - haveWaiters = (cond->mWaitersCount > 0); - LeaveCriticalSection(&cond->mWaitersCountLock); - - /* If we have any waiting threads, send them a signal */ - if(haveWaiters) - { - if (SetEvent(cond->mEvents[_CONDITION_EVENT_ONE]) == 0) - { - return thrd_error; - } - } - - return thrd_success; -#else - return pthread_cond_signal(cond) == 0 ? thrd_success : thrd_error; -#endif -} - -int cnd_broadcast(cnd_t *cond) -{ -#if defined(_TTHREAD_WIN32_) - int haveWaiters; - - /* Are there any waiters? */ - EnterCriticalSection(&cond->mWaitersCountLock); - haveWaiters = (cond->mWaitersCount > 0); - LeaveCriticalSection(&cond->mWaitersCountLock); - - /* If we have any waiting threads, send them a signal */ - if(haveWaiters) - { - if (SetEvent(cond->mEvents[_CONDITION_EVENT_ALL]) == 0) - { - return thrd_error; - } - } - - return thrd_success; -#else - return pthread_cond_signal(cond) == 0 ? thrd_success : thrd_error; -#endif -} - -#if defined(_TTHREAD_WIN32_) -static int _cnd_timedwait_win32(cnd_t *cond, mtx_t *mtx, DWORD timeout) -{ - int result, lastWaiter; - - /* Increment number of waiters */ - EnterCriticalSection(&cond->mWaitersCountLock); - ++ cond->mWaitersCount; - LeaveCriticalSection(&cond->mWaitersCountLock); - - /* Release the mutex while waiting for the condition (will decrease - the number of waiters when done)... */ - mtx_unlock(mtx); - - /* Wait for either event to become signaled due to cnd_signal() or - cnd_broadcast() being called */ - result = WaitForMultipleObjects(2, cond->mEvents, FALSE, timeout); - if (result == WAIT_TIMEOUT) - { - return thrd_timeout; - } - else if (result == (int)WAIT_FAILED) - { - return thrd_error; - } - - /* Check if we are the last waiter */ - EnterCriticalSection(&cond->mWaitersCountLock); - -- cond->mWaitersCount; - lastWaiter = (result == (WAIT_OBJECT_0 + _CONDITION_EVENT_ALL)) && - (cond->mWaitersCount == 0); - LeaveCriticalSection(&cond->mWaitersCountLock); - - /* If we are the last waiter to be notified to stop waiting, reset the event */ - if (lastWaiter) - { - if (ResetEvent(cond->mEvents[_CONDITION_EVENT_ALL]) == 0) - { - return thrd_error; - } - } - - /* Re-acquire the mutex */ - mtx_lock(mtx); - - return thrd_success; -} -#endif - -int cnd_wait(cnd_t *cond, mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - return _cnd_timedwait_win32(cond, mtx, INFINITE); -#else - return pthread_cond_wait(cond, mtx) == 0 ? thrd_success : thrd_error; -#endif -} - -int cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *ts) -{ -#if defined(_TTHREAD_WIN32_) - struct timespec now; - if (clock_gettime(CLOCK_REALTIME, &now) == 0) - { - DWORD delta = (DWORD) ((ts->tv_sec - now.tv_sec) * 1000 + - (ts->tv_nsec - now.tv_nsec + 500000) / 1000000); - return _cnd_timedwait_win32(cond, mtx, delta); - } - else - return thrd_error; -#else - int ret; - ret = pthread_cond_timedwait(cond, mtx, ts); - if (ret == ETIMEDOUT) - { - return thrd_timeout; - } - return ret == 0 ? thrd_success : thrd_error; -#endif -} - - -/** Information to pass to the new thread (what to run). */ -typedef struct { - thrd_start_t mFunction; /**< Pointer to the function to be executed. */ - void * mArg; /**< Function argument for the thread function. */ -} _thread_start_info; - -/* Thread wrapper function. */ -#if defined(_TTHREAD_WIN32_) -static unsigned WINAPI _thrd_wrapper_function(void * aArg) -#elif defined(_TTHREAD_POSIX_) -static void * _thrd_wrapper_function(void * aArg) -#endif -{ - thrd_start_t fun; - void *arg; - int res; -#if defined(_TTHREAD_POSIX_) - void *pres; -#endif - - /* Get thread startup information */ - _thread_start_info *ti = (_thread_start_info *) aArg; - fun = ti->mFunction; - arg = ti->mArg; - - /* The thread is responsible for freeing the startup information */ - free((void *)ti); - - /* Call the actual client thread function */ - res = fun(arg); - -#if defined(_TTHREAD_WIN32_) - return res; -#else - pres = malloc(sizeof(int)); - if (pres != NULL) - { - *(int*)pres = res; - } - return pres; -#endif -} - -int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) -{ - /* Fill out the thread startup information (passed to the thread wrapper, - which will eventually free it) */ - _thread_start_info* ti = (_thread_start_info*)malloc(sizeof(_thread_start_info)); - if (ti == NULL) - { - return thrd_nomem; - } - ti->mFunction = func; - ti->mArg = arg; - - /* Create the thread */ -#if defined(_TTHREAD_WIN32_) - *thr = (HANDLE)_beginthreadex(NULL, 0, _thrd_wrapper_function, (void *)ti, 0, NULL); -#elif defined(_TTHREAD_POSIX_) - if(pthread_create(thr, NULL, _thrd_wrapper_function, (void *)ti) != 0) - { - *thr = 0; - } -#endif - - /* Did we fail to create the thread? */ - if(!*thr) - { - free(ti); - return thrd_error; - } - - return thrd_success; -} - -thrd_t thrd_current(void) -{ -#if defined(_TTHREAD_WIN32_) - return GetCurrentThread(); -#else - return pthread_self(); -#endif -} - -int thrd_detach(thrd_t thr) -{ - /* FIXME! */ - (void)thr; - return thrd_error; -} - -int thrd_equal(thrd_t thr0, thrd_t thr1) -{ -#if defined(_TTHREAD_WIN32_) - return thr0 == thr1; -#else - return pthread_equal(thr0, thr1); -#endif -} - -void thrd_exit(int res) -{ -#if defined(_TTHREAD_WIN32_) - ExitThread(res); -#else - void *pres = malloc(sizeof(int)); - if (pres != NULL) - { - *(int*)pres = res; - } - pthread_exit(pres); -#endif -} - -int thrd_join(thrd_t thr, int *res) -{ -#if defined(_TTHREAD_WIN32_) - if (WaitForSingleObject(thr, INFINITE) == WAIT_FAILED) - { - return thrd_error; - } - if (res != NULL) - { - DWORD dwRes; - GetExitCodeThread(thr, &dwRes); - *res = dwRes; - } -#elif defined(_TTHREAD_POSIX_) - void *pres; - int ires = 0; - if (pthread_join(thr, &pres) != 0) - { - return thrd_error; - } - if (pres != NULL) - { - ires = *(int*)pres; - free(pres); - } - if (res != NULL) - { - *res = ires; - } -#endif - return thrd_success; -} - -int thrd_sleep(const struct timespec *time_point, struct timespec *remaining) -{ - struct timespec now; -#if defined(_TTHREAD_WIN32_) - DWORD delta; -#else - long delta; -#endif - - /* Get the current time */ - if (clock_gettime(CLOCK_REALTIME, &now) != 0) - return -2; // FIXME: Some specific error code? - -#if defined(_TTHREAD_WIN32_) - /* Delta in milliseconds */ - delta = (DWORD) ((time_point->tv_sec - now.tv_sec) * 1000 + - (time_point->tv_nsec - now.tv_nsec + 500000) / 1000000); - if (delta > 0) - { - Sleep(delta); - } -#else - /* Delta in microseconds */ - delta = (time_point->tv_sec - now.tv_sec) * 1000000L + - (time_point->tv_nsec - now.tv_nsec + 500L) / 1000L; - - /* On some systems, the usleep argument must be < 1000000 */ - while (delta > 999999L) - { - usleep(999999); - delta -= 999999L; - } - if (delta > 0L) - { - usleep((useconds_t)delta); - } -#endif - - /* We don't support waking up prematurely (yet) */ - if (remaining) - { - remaining->tv_sec = 0; - remaining->tv_nsec = 0; - } - return 0; -} - -void thrd_yield(void) -{ -#if defined(_TTHREAD_WIN32_) - Sleep(0); -#else - sched_yield(); -#endif -} - -int tss_create(tss_t *key, tss_dtor_t dtor) -{ -#if defined(_TTHREAD_WIN32_) - /* FIXME: The destructor function is not supported yet... */ - if (dtor != NULL) - { - return thrd_error; - } - *key = TlsAlloc(); - if (*key == TLS_OUT_OF_INDEXES) - { - return thrd_error; - } -#else - if (pthread_key_create(key, dtor) != 0) - { - return thrd_error; - } -#endif - return thrd_success; -} - -void tss_delete(tss_t key) -{ -#if defined(_TTHREAD_WIN32_) - TlsFree(key); -#else - pthread_key_delete(key); -#endif -} - -void *tss_get(tss_t key) -{ -#if defined(_TTHREAD_WIN32_) - return TlsGetValue(key); -#else - return pthread_getspecific(key); -#endif -} - -int tss_set(tss_t key, void *val) -{ -#if defined(_TTHREAD_WIN32_) - if (TlsSetValue(key, val) == 0) - { - return thrd_error; - } -#else - if (pthread_setspecific(key, val) != 0) - { - return thrd_error; - } -#endif - return thrd_success; -} - -#if defined(_TTHREAD_EMULATE_CLOCK_GETTIME_) -int _tthread_clock_gettime(clockid_t clk_id, struct timespec *ts) -{ -#if defined(_TTHREAD_WIN32_) - struct _timeb tb; - _ftime(&tb); - ts->tv_sec = (time_t)tb.time; - ts->tv_nsec = 1000000L * (long)tb.millitm; -#else - struct timeval tv; - gettimeofday(&tv, NULL); - ts->tv_sec = (time_t)tv.tv_sec; - ts->tv_nsec = 1000L * (long)tv.tv_usec; -#endif - return 0; -} -#endif // _TTHREAD_EMULATE_CLOCK_GETTIME_ - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/tinycthread.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/tinycthread.h deleted file mode 100644 index 86a9080..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/deps/tinycthread.h +++ /dev/null @@ -1,440 +0,0 @@ -/* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; -*- -Copyright (c) 2012 Marcus Geelnard - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. - - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source - distribution. -*/ - -#ifndef _TINYCTHREAD_H_ -#define _TINYCTHREAD_H_ - -/** -* @file -* @mainpage TinyCThread API Reference -* -* @section intro_sec Introduction -* TinyCThread is a minimal, portable implementation of basic threading -* classes for C. -* -* They closely mimic the functionality and naming of the C11 standard, and -* should be easily replaceable with the corresponding standard variants. -* -* @section port_sec Portability -* The Win32 variant uses the native Win32 API for implementing the thread -* classes, while for other systems, the POSIX threads API (pthread) is used. -* -* @section misc_sec Miscellaneous -* The following special keywords are available: #_Thread_local. -* -* For more detailed information, browse the different sections of this -* documentation. A good place to start is: -* tinycthread.h. -*/ - -/* Which platform are we on? */ -#if !defined(_TTHREAD_PLATFORM_DEFINED_) - #if defined(_WIN32) || defined(__WIN32__) || defined(__WINDOWS__) - #define _TTHREAD_WIN32_ - #else - #define _TTHREAD_POSIX_ - #endif - #define _TTHREAD_PLATFORM_DEFINED_ -#endif - -/* Activate some POSIX functionality (e.g. clock_gettime and recursive mutexes) */ -#if defined(_TTHREAD_POSIX_) - #undef _FEATURES_H - #if !defined(_GNU_SOURCE) - #define _GNU_SOURCE - #endif - #if !defined(_POSIX_C_SOURCE) || ((_POSIX_C_SOURCE - 0) < 199309L) - #undef _POSIX_C_SOURCE - #define _POSIX_C_SOURCE 199309L - #endif - #if !defined(_XOPEN_SOURCE) || ((_XOPEN_SOURCE - 0) < 500) - #undef _XOPEN_SOURCE - #define _XOPEN_SOURCE 500 - #endif -#endif - -/* Generic includes */ -#include - -/* Platform specific includes */ -#if defined(_TTHREAD_POSIX_) - #include -#elif defined(_TTHREAD_WIN32_) - #ifndef WIN32_LEAN_AND_MEAN - #define WIN32_LEAN_AND_MEAN - #define __UNDEF_LEAN_AND_MEAN - #endif - #include - #ifdef __UNDEF_LEAN_AND_MEAN - #undef WIN32_LEAN_AND_MEAN - #undef __UNDEF_LEAN_AND_MEAN - #endif -#endif - -/* Workaround for missing TIME_UTC: If time.h doesn't provide TIME_UTC, - it's quite likely that libc does not support it either. Hence, fall back to - the only other supported time specifier: CLOCK_REALTIME (and if that fails, - we're probably emulating clock_gettime anyway, so anything goes). */ -#ifndef TIME_UTC - #ifdef CLOCK_REALTIME - #define TIME_UTC CLOCK_REALTIME - #else - #define TIME_UTC 0 - #endif -#endif - -/* Workaround for missing clock_gettime (most Windows compilers, afaik) */ -#if defined(_TTHREAD_WIN32_) || defined(__APPLE_CC__) -#define _TTHREAD_EMULATE_CLOCK_GETTIME_ -/* Emulate struct timespec */ -#if defined(_TTHREAD_WIN32_) -struct _ttherad_timespec { - time_t tv_sec; - long tv_nsec; -}; -#define timespec _ttherad_timespec -#endif - -/* Emulate clockid_t */ -typedef int _tthread_clockid_t; -#define clockid_t _tthread_clockid_t - -/* Emulate clock_gettime */ -int _tthread_clock_gettime(clockid_t clk_id, struct timespec *ts); -#define clock_gettime _tthread_clock_gettime -#define CLOCK_REALTIME 0 -#endif - - -/** TinyCThread version (major number). */ -#define TINYCTHREAD_VERSION_MAJOR 1 -/** TinyCThread version (minor number). */ -#define TINYCTHREAD_VERSION_MINOR 1 -/** TinyCThread version (full version). */ -#define TINYCTHREAD_VERSION (TINYCTHREAD_VERSION_MAJOR * 100 + TINYCTHREAD_VERSION_MINOR) - -/** -* @def _Thread_local -* Thread local storage keyword. -* A variable that is declared with the @c _Thread_local keyword makes the -* value of the variable local to each thread (known as thread-local storage, -* or TLS). Example usage: -* @code -* // This variable is local to each thread. -* _Thread_local int variable; -* @endcode -* @note The @c _Thread_local keyword is a macro that maps to the corresponding -* compiler directive (e.g. @c __declspec(thread)). -* @note This directive is currently not supported on Mac OS X (it will give -* a compiler error), since compile-time TLS is not supported in the Mac OS X -* executable format. Also, some older versions of MinGW (before GCC 4.x) do -* not support this directive. -* @hideinitializer -*/ - -/* FIXME: Check for a PROPER value of __STDC_VERSION__ to know if we have C11 */ -#if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201102L)) && !defined(_Thread_local) - #if defined(__GNUC__) || defined(__INTEL_COMPILER) || defined(__SUNPRO_CC) || defined(__IBMCPP__) - #define _Thread_local __thread - #else - #define _Thread_local __declspec(thread) - #endif -#endif - -/* Macros */ -#define TSS_DTOR_ITERATIONS 0 - -/* Function return values */ -#define thrd_error 0 /**< The requested operation failed */ -#define thrd_success 1 /**< The requested operation succeeded */ -#define thrd_timeout 2 /**< The time specified in the call was reached without acquiring the requested resource */ -#define thrd_busy 3 /**< The requested operation failed because a tesource requested by a test and return function is already in use */ -#define thrd_nomem 4 /**< The requested operation failed because it was unable to allocate memory */ - -/* Mutex types */ -#define mtx_plain 1 -#define mtx_timed 2 -#define mtx_try 4 -#define mtx_recursive 8 - -/* Mutex */ -#if defined(_TTHREAD_WIN32_) -typedef struct { - CRITICAL_SECTION mHandle; /* Critical section handle */ - int mAlreadyLocked; /* TRUE if the mutex is already locked */ - int mRecursive; /* TRUE if the mutex is recursive */ -} mtx_t; -#else -typedef pthread_mutex_t mtx_t; -#endif - -/** Create a mutex object. -* @param mtx A mutex object. -* @param type Bit-mask that must have one of the following six values: -* @li @c mtx_plain for a simple non-recursive mutex -* @li @c mtx_timed for a non-recursive mutex that supports timeout -* @li @c mtx_try for a non-recursive mutex that supports test and return -* @li @c mtx_plain | @c mtx_recursive (same as @c mtx_plain, but recursive) -* @li @c mtx_timed | @c mtx_recursive (same as @c mtx_timed, but recursive) -* @li @c mtx_try | @c mtx_recursive (same as @c mtx_try, but recursive) -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int mtx_init(mtx_t *mtx, int type); - -/** Release any resources used by the given mutex. -* @param mtx A mutex object. -*/ -void mtx_destroy(mtx_t *mtx); - -/** Lock the given mutex. -* Blocks until the given mutex can be locked. If the mutex is non-recursive, and -* the calling thread already has a lock on the mutex, this call will block -* forever. -* @param mtx A mutex object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int mtx_lock(mtx_t *mtx); - -/** NOT YET IMPLEMENTED. -*/ -int mtx_timedlock(mtx_t *mtx, const struct timespec *ts); - -/** Try to lock the given mutex. -* The specified mutex shall support either test and return or timeout. If the -* mutex is already locked, the function returns without blocking. -* @param mtx A mutex object. -* @return @ref thrd_success on success, or @ref thrd_busy if the resource -* requested is already in use, or @ref thrd_error if the request could not be -* honored. -*/ -int mtx_trylock(mtx_t *mtx); - -/** Unlock the given mutex. -* @param mtx A mutex object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int mtx_unlock(mtx_t *mtx); - -/* Condition variable */ -#if defined(_TTHREAD_WIN32_) -typedef struct { - HANDLE mEvents[2]; /* Signal and broadcast event HANDLEs. */ - unsigned int mWaitersCount; /* Count of the number of waiters. */ - CRITICAL_SECTION mWaitersCountLock; /* Serialize access to mWaitersCount. */ -} cnd_t; -#else -typedef pthread_cond_t cnd_t; -#endif - -/** Create a condition variable object. -* @param cond A condition variable object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int cnd_init(cnd_t *cond); - -/** Release any resources used by the given condition variable. -* @param cond A condition variable object. -*/ -void cnd_destroy(cnd_t *cond); - -/** Signal a condition variable. -* Unblocks one of the threads that are blocked on the given condition variable -* at the time of the call. If no threads are blocked on the condition variable -* at the time of the call, the function does nothing and return success. -* @param cond A condition variable object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int cnd_signal(cnd_t *cond); - -/** Broadcast a condition variable. -* Unblocks all of the threads that are blocked on the given condition variable -* at the time of the call. If no threads are blocked on the condition variable -* at the time of the call, the function does nothing and return success. -* @param cond A condition variable object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int cnd_broadcast(cnd_t *cond); - -/** Wait for a condition variable to become signaled. -* The function atomically unlocks the given mutex and endeavors to block until -* the given condition variable is signaled by a call to cnd_signal or to -* cnd_broadcast. When the calling thread becomes unblocked it locks the mutex -* before it returns. -* @param cond A condition variable object. -* @param mtx A mutex object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int cnd_wait(cnd_t *cond, mtx_t *mtx); - -/** Wait for a condition variable to become signaled. -* The function atomically unlocks the given mutex and endeavors to block until -* the given condition variable is signaled by a call to cnd_signal or to -* cnd_broadcast, or until after the specified time. When the calling thread -* becomes unblocked it locks the mutex before it returns. -* @param cond A condition variable object. -* @param mtx A mutex object. -* @param xt A point in time at which the request will time out (absolute time). -* @return @ref thrd_success upon success, or @ref thrd_timeout if the time -* specified in the call was reached without acquiring the requested resource, or -* @ref thrd_error if the request could not be honored. -*/ -int cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *ts); - -/* Thread */ -#if defined(_TTHREAD_WIN32_) -typedef HANDLE thrd_t; -#else -typedef pthread_t thrd_t; -#endif - -/** Thread start function. -* Any thread that is started with the @ref thrd_create() function must be -* started through a function of this type. -* @param arg The thread argument (the @c arg argument of the corresponding -* @ref thrd_create() call). -* @return The thread return value, which can be obtained by another thread -* by using the @ref thrd_join() function. -*/ -typedef int (*thrd_start_t)(void *arg); - -/** Create a new thread. -* @param thr Identifier of the newly created thread. -* @param func A function pointer to the function that will be executed in -* the new thread. -* @param arg An argument to the thread function. -* @return @ref thrd_success on success, or @ref thrd_nomem if no memory could -* be allocated for the thread requested, or @ref thrd_error if the request -* could not be honored. -* @note A thread’s identifier may be reused for a different thread once the -* original thread has exited and either been detached or joined to another -* thread. -*/ -int thrd_create(thrd_t *thr, thrd_start_t func, void *arg); - -/** Identify the calling thread. -* @return The identifier of the calling thread. -*/ -thrd_t thrd_current(void); - -/** NOT YET IMPLEMENTED. -*/ -int thrd_detach(thrd_t thr); - -/** Compare two thread identifiers. -* The function determines if two thread identifiers refer to the same thread. -* @return Zero if the two thread identifiers refer to different threads. -* Otherwise a nonzero value is returned. -*/ -int thrd_equal(thrd_t thr0, thrd_t thr1); - -/** Terminate execution of the calling thread. -* @param res Result code of the calling thread. -*/ -void thrd_exit(int res); - -/** Wait for a thread to terminate. -* The function joins the given thread with the current thread by blocking -* until the other thread has terminated. -* @param thr The thread to join with. -* @param res If this pointer is not NULL, the function will store the result -* code of the given thread in the integer pointed to by @c res. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int thrd_join(thrd_t thr, int *res); - -/** Put the calling thread to sleep. -* Suspend execution of the calling thread. -* @param time_point A point in time at which the thread will resume (absolute time). -* @param remaining If non-NULL, this parameter will hold the remaining time until -* time_point upon return. This will typically be zero, but if -* the thread was woken up by a signal that is not ignored before -* time_point was reached @c remaining will hold a positive -* time. -* @return 0 (zero) on successful sleep, or -1 if an interrupt occurred. -*/ -int thrd_sleep(const struct timespec *time_point, struct timespec *remaining); - -/** Yield execution to another thread. -* Permit other threads to run, even if the current thread would ordinarily -* continue to run. -*/ -void thrd_yield(void); - -/* Thread local storage */ -#if defined(_TTHREAD_WIN32_) -typedef DWORD tss_t; -#else -typedef pthread_key_t tss_t; -#endif - -/** Destructor function for a thread-specific storage. -* @param val The value of the destructed thread-specific storage. -*/ -typedef void (*tss_dtor_t)(void *val); - -/** Create a thread-specific storage. -* @param key The unique key identifier that will be set if the function is -* successful. -* @param dtor Destructor function. This can be NULL. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -* @note The destructor function is not supported under Windows. If @c dtor is -* not NULL when calling this function under Windows, the function will fail -* and return @ref thrd_error. -*/ -int tss_create(tss_t *key, tss_dtor_t dtor); - -/** Delete a thread-specific storage. -* The function releases any resources used by the given thread-specific -* storage. -* @param key The key that shall be deleted. -*/ -void tss_delete(tss_t key); - -/** Get the value for a thread-specific storage. -* @param key The thread-specific storage identifier. -* @return The value for the current thread held in the given thread-specific -* storage. -*/ -void *tss_get(tss_t key); - -/** Set the value for a thread-specific storage. -* @param key The thread-specific storage identifier. -* @param val The value of the thread-specific storage to set for the current -* thread. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int tss_set(tss_t key, void *val); - - -#endif /* _TINYTHREAD_H_ */ - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/include/GLFW/glfw3.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/include/GLFW/glfw3.h deleted file mode 100644 index 6623209..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/include/GLFW/glfw3.h +++ /dev/null @@ -1,3358 +0,0 @@ -/************************************************************************* - * GLFW 3.1 - www.glfw.org - * A library for OpenGL, window and input - *------------------------------------------------------------------------ - * Copyright (c) 2002-2006 Marcus Geelnard - * Copyright (c) 2006-2010 Camilla Berglund - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would - * be appreciated but is not required. - * - * 2. Altered source versions must be plainly marked as such, and must not - * be misrepresented as being the original software. - * - * 3. This notice may not be removed or altered from any source - * distribution. - * - *************************************************************************/ - -#ifndef _glfw3_h_ -#define _glfw3_h_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/************************************************************************* - * Doxygen documentation - *************************************************************************/ - -/*! @defgroup context Context handling - * - * This is the reference documentation for context related functions. For more - * information, see the @ref context. - */ -/*! @defgroup init Initialization, version and errors - * - * This is the reference documentation for initialization and termination of - * the library, version management and error handling. For more information, - * see the @ref intro. - */ -/*! @defgroup input Input handling - * - * This is the reference documentation for input related functions and types. - * For more information, see the @ref input. - */ -/*! @defgroup monitor Monitor handling - * - * This is the reference documentation for monitor related functions and types. - * For more information, see the @ref monitor. - */ -/*! @defgroup window Window handling - * - * This is the reference documentation for window related functions and types, - * including creation, deletion and event polling. For more information, see - * the @ref window. - */ - - -/************************************************************************* - * Compiler- and platform-specific preprocessor work - *************************************************************************/ - -/* If we are we on Windows, we want a single define for it. - */ -#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)) - #define _WIN32 -#endif /* _WIN32 */ - -/* It is customary to use APIENTRY for OpenGL function pointer declarations on - * all platforms. Additionally, the Windows OpenGL header needs APIENTRY. - */ -#ifndef APIENTRY - #ifdef _WIN32 - #define APIENTRY __stdcall - #else - #define APIENTRY - #endif -#endif /* APIENTRY */ - -/* Some Windows OpenGL headers need this. - */ -#if !defined(WINGDIAPI) && defined(_WIN32) - #define WINGDIAPI __declspec(dllimport) - #define GLFW_WINGDIAPI_DEFINED -#endif /* WINGDIAPI */ - -/* Some Windows GLU headers need this. - */ -#if !defined(CALLBACK) && defined(_WIN32) - #define CALLBACK __stdcall - #define GLFW_CALLBACK_DEFINED -#endif /* CALLBACK */ - -/* Most Windows GLU headers need wchar_t. - * The OS X OpenGL header blocks the definition of ptrdiff_t by glext.h. - */ -#if !defined(GLFW_INCLUDE_NONE) - #include -#endif - -/* Include the chosen client API headers. - */ -#if defined(__APPLE_CC__) - #if defined(GLFW_INCLUDE_GLCOREARB) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif !defined(GLFW_INCLUDE_NONE) - #if !defined(GLFW_INCLUDE_GLEXT) - #define GL_GLEXT_LEGACY - #endif - #include - #endif - #if defined(GLFW_INCLUDE_GLU) - #include - #endif -#else - #if defined(GLFW_INCLUDE_GLCOREARB) - #include - #elif defined(GLFW_INCLUDE_ES1) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES2) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES3) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES31) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif !defined(GLFW_INCLUDE_NONE) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #endif - #if defined(GLFW_INCLUDE_GLU) - #include - #endif -#endif - -#if defined(GLFW_DLL) && defined(_GLFW_BUILD_DLL) - /* GLFW_DLL must be defined by applications that are linking against the DLL - * version of the GLFW library. _GLFW_BUILD_DLL is defined by the GLFW - * configuration header when compiling the DLL version of the library. - */ - #error "You may not have both GLFW_DLL and _GLFW_BUILD_DLL defined" -#endif - -/* GLFWAPI is used to declare public API functions for export - * from the DLL / shared library / dynamic library. - */ -#if defined(_WIN32) && defined(_GLFW_BUILD_DLL) - /* We are building GLFW as a Win32 DLL */ - #define GLFWAPI __declspec(dllexport) -#elif defined(_WIN32) && defined(GLFW_DLL) - /* We are calling GLFW as a Win32 DLL */ - #define GLFWAPI __declspec(dllimport) -#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL) - /* We are building GLFW as a shared / dynamic library */ - #define GLFWAPI __attribute__((visibility("default"))) -#else - /* We are building or calling GLFW as a static library */ - #define GLFWAPI -#endif - - -/************************************************************************* - * GLFW API tokens - *************************************************************************/ - -/*! @name GLFW version macros - * @{ */ -/*! @brief The major version number of the GLFW library. - * - * This is incremented when the API is changed in non-compatible ways. - * @ingroup init - */ -#define GLFW_VERSION_MAJOR 3 -/*! @brief The minor version number of the GLFW library. - * - * This is incremented when features are added to the API but it remains - * backward-compatible. - * @ingroup init - */ -#define GLFW_VERSION_MINOR 1 -/*! @brief The revision number of the GLFW library. - * - * This is incremented when a bug fix release is made that does not contain any - * API changes. - * @ingroup init - */ -#define GLFW_VERSION_REVISION 2 -/*! @} */ - -/*! @name Key and button actions - * @{ */ -/*! @brief The key or mouse button was released. - * - * The key or mouse button was released. - * - * @ingroup input - */ -#define GLFW_RELEASE 0 -/*! @brief The key or mouse button was pressed. - * - * The key or mouse button was pressed. - * - * @ingroup input - */ -#define GLFW_PRESS 1 -/*! @brief The key was held down until it repeated. - * - * The key was held down until it repeated. - * - * @ingroup input - */ -#define GLFW_REPEAT 2 -/*! @} */ - -/*! @defgroup keys Keyboard keys - * - * See [key input](@ref input_key) for how these are used. - * - * These key codes are inspired by the _USB HID Usage Tables v1.12_ (p. 53-60), - * but re-arranged to map to 7-bit ASCII for printable keys (function keys are - * put in the 256+ range). - * - * The naming of the key codes follow these rules: - * - The US keyboard layout is used - * - Names of printable alpha-numeric characters are used (e.g. "A", "R", - * "3", etc.) - * - For non-alphanumeric characters, Unicode:ish names are used (e.g. - * "COMMA", "LEFT_SQUARE_BRACKET", etc.). Note that some names do not - * correspond to the Unicode standard (usually for brevity) - * - Keys that lack a clear US mapping are named "WORLD_x" - * - For non-printable keys, custom names are used (e.g. "F4", - * "BACKSPACE", etc.) - * - * @ingroup input - * @{ - */ - -/* The unknown key */ -#define GLFW_KEY_UNKNOWN -1 - -/* Printable keys */ -#define GLFW_KEY_SPACE 32 -#define GLFW_KEY_APOSTROPHE 39 /* ' */ -#define GLFW_KEY_COMMA 44 /* , */ -#define GLFW_KEY_MINUS 45 /* - */ -#define GLFW_KEY_PERIOD 46 /* . */ -#define GLFW_KEY_SLASH 47 /* / */ -#define GLFW_KEY_0 48 -#define GLFW_KEY_1 49 -#define GLFW_KEY_2 50 -#define GLFW_KEY_3 51 -#define GLFW_KEY_4 52 -#define GLFW_KEY_5 53 -#define GLFW_KEY_6 54 -#define GLFW_KEY_7 55 -#define GLFW_KEY_8 56 -#define GLFW_KEY_9 57 -#define GLFW_KEY_SEMICOLON 59 /* ; */ -#define GLFW_KEY_EQUAL 61 /* = */ -#define GLFW_KEY_A 65 -#define GLFW_KEY_B 66 -#define GLFW_KEY_C 67 -#define GLFW_KEY_D 68 -#define GLFW_KEY_E 69 -#define GLFW_KEY_F 70 -#define GLFW_KEY_G 71 -#define GLFW_KEY_H 72 -#define GLFW_KEY_I 73 -#define GLFW_KEY_J 74 -#define GLFW_KEY_K 75 -#define GLFW_KEY_L 76 -#define GLFW_KEY_M 77 -#define GLFW_KEY_N 78 -#define GLFW_KEY_O 79 -#define GLFW_KEY_P 80 -#define GLFW_KEY_Q 81 -#define GLFW_KEY_R 82 -#define GLFW_KEY_S 83 -#define GLFW_KEY_T 84 -#define GLFW_KEY_U 85 -#define GLFW_KEY_V 86 -#define GLFW_KEY_W 87 -#define GLFW_KEY_X 88 -#define GLFW_KEY_Y 89 -#define GLFW_KEY_Z 90 -#define GLFW_KEY_LEFT_BRACKET 91 /* [ */ -#define GLFW_KEY_BACKSLASH 92 /* \ */ -#define GLFW_KEY_RIGHT_BRACKET 93 /* ] */ -#define GLFW_KEY_GRAVE_ACCENT 96 /* ` */ -#define GLFW_KEY_WORLD_1 161 /* non-US #1 */ -#define GLFW_KEY_WORLD_2 162 /* non-US #2 */ - -/* Function keys */ -#define GLFW_KEY_ESCAPE 256 -#define GLFW_KEY_ENTER 257 -#define GLFW_KEY_TAB 258 -#define GLFW_KEY_BACKSPACE 259 -#define GLFW_KEY_INSERT 260 -#define GLFW_KEY_DELETE 261 -#define GLFW_KEY_RIGHT 262 -#define GLFW_KEY_LEFT 263 -#define GLFW_KEY_DOWN 264 -#define GLFW_KEY_UP 265 -#define GLFW_KEY_PAGE_UP 266 -#define GLFW_KEY_PAGE_DOWN 267 -#define GLFW_KEY_HOME 268 -#define GLFW_KEY_END 269 -#define GLFW_KEY_CAPS_LOCK 280 -#define GLFW_KEY_SCROLL_LOCK 281 -#define GLFW_KEY_NUM_LOCK 282 -#define GLFW_KEY_PRINT_SCREEN 283 -#define GLFW_KEY_PAUSE 284 -#define GLFW_KEY_F1 290 -#define GLFW_KEY_F2 291 -#define GLFW_KEY_F3 292 -#define GLFW_KEY_F4 293 -#define GLFW_KEY_F5 294 -#define GLFW_KEY_F6 295 -#define GLFW_KEY_F7 296 -#define GLFW_KEY_F8 297 -#define GLFW_KEY_F9 298 -#define GLFW_KEY_F10 299 -#define GLFW_KEY_F11 300 -#define GLFW_KEY_F12 301 -#define GLFW_KEY_F13 302 -#define GLFW_KEY_F14 303 -#define GLFW_KEY_F15 304 -#define GLFW_KEY_F16 305 -#define GLFW_KEY_F17 306 -#define GLFW_KEY_F18 307 -#define GLFW_KEY_F19 308 -#define GLFW_KEY_F20 309 -#define GLFW_KEY_F21 310 -#define GLFW_KEY_F22 311 -#define GLFW_KEY_F23 312 -#define GLFW_KEY_F24 313 -#define GLFW_KEY_F25 314 -#define GLFW_KEY_KP_0 320 -#define GLFW_KEY_KP_1 321 -#define GLFW_KEY_KP_2 322 -#define GLFW_KEY_KP_3 323 -#define GLFW_KEY_KP_4 324 -#define GLFW_KEY_KP_5 325 -#define GLFW_KEY_KP_6 326 -#define GLFW_KEY_KP_7 327 -#define GLFW_KEY_KP_8 328 -#define GLFW_KEY_KP_9 329 -#define GLFW_KEY_KP_DECIMAL 330 -#define GLFW_KEY_KP_DIVIDE 331 -#define GLFW_KEY_KP_MULTIPLY 332 -#define GLFW_KEY_KP_SUBTRACT 333 -#define GLFW_KEY_KP_ADD 334 -#define GLFW_KEY_KP_ENTER 335 -#define GLFW_KEY_KP_EQUAL 336 -#define GLFW_KEY_LEFT_SHIFT 340 -#define GLFW_KEY_LEFT_CONTROL 341 -#define GLFW_KEY_LEFT_ALT 342 -#define GLFW_KEY_LEFT_SUPER 343 -#define GLFW_KEY_RIGHT_SHIFT 344 -#define GLFW_KEY_RIGHT_CONTROL 345 -#define GLFW_KEY_RIGHT_ALT 346 -#define GLFW_KEY_RIGHT_SUPER 347 -#define GLFW_KEY_MENU 348 -#define GLFW_KEY_LAST GLFW_KEY_MENU - -/*! @} */ - -/*! @defgroup mods Modifier key flags - * - * See [key input](@ref input_key) for how these are used. - * - * @ingroup input - * @{ */ - -/*! @brief If this bit is set one or more Shift keys were held down. - */ -#define GLFW_MOD_SHIFT 0x0001 -/*! @brief If this bit is set one or more Control keys were held down. - */ -#define GLFW_MOD_CONTROL 0x0002 -/*! @brief If this bit is set one or more Alt keys were held down. - */ -#define GLFW_MOD_ALT 0x0004 -/*! @brief If this bit is set one or more Super keys were held down. - */ -#define GLFW_MOD_SUPER 0x0008 - -/*! @} */ - -/*! @defgroup buttons Mouse buttons - * - * See [mouse button input](@ref input_mouse_button) for how these are used. - * - * @ingroup input - * @{ */ -#define GLFW_MOUSE_BUTTON_1 0 -#define GLFW_MOUSE_BUTTON_2 1 -#define GLFW_MOUSE_BUTTON_3 2 -#define GLFW_MOUSE_BUTTON_4 3 -#define GLFW_MOUSE_BUTTON_5 4 -#define GLFW_MOUSE_BUTTON_6 5 -#define GLFW_MOUSE_BUTTON_7 6 -#define GLFW_MOUSE_BUTTON_8 7 -#define GLFW_MOUSE_BUTTON_LAST GLFW_MOUSE_BUTTON_8 -#define GLFW_MOUSE_BUTTON_LEFT GLFW_MOUSE_BUTTON_1 -#define GLFW_MOUSE_BUTTON_RIGHT GLFW_MOUSE_BUTTON_2 -#define GLFW_MOUSE_BUTTON_MIDDLE GLFW_MOUSE_BUTTON_3 -/*! @} */ - -/*! @defgroup joysticks Joysticks - * - * See [joystick input](@ref joystick) for how these are used. - * - * @ingroup input - * @{ */ -#define GLFW_JOYSTICK_1 0 -#define GLFW_JOYSTICK_2 1 -#define GLFW_JOYSTICK_3 2 -#define GLFW_JOYSTICK_4 3 -#define GLFW_JOYSTICK_5 4 -#define GLFW_JOYSTICK_6 5 -#define GLFW_JOYSTICK_7 6 -#define GLFW_JOYSTICK_8 7 -#define GLFW_JOYSTICK_9 8 -#define GLFW_JOYSTICK_10 9 -#define GLFW_JOYSTICK_11 10 -#define GLFW_JOYSTICK_12 11 -#define GLFW_JOYSTICK_13 12 -#define GLFW_JOYSTICK_14 13 -#define GLFW_JOYSTICK_15 14 -#define GLFW_JOYSTICK_16 15 -#define GLFW_JOYSTICK_LAST GLFW_JOYSTICK_16 -/*! @} */ - -/*! @defgroup errors Error codes - * - * See [error handling](@ref error_handling) for how these are used. - * - * @ingroup init - * @{ */ -/*! @brief GLFW has not been initialized. - * - * This occurs if a GLFW function was called that may not be called unless the - * library is [initialized](@ref intro_init). - * - * @par Analysis - * Application programmer error. Initialize GLFW before calling any function - * that requires initialization. - */ -#define GLFW_NOT_INITIALIZED 0x00010001 -/*! @brief No context is current for this thread. - * - * This occurs if a GLFW function was called that needs and operates on the - * current OpenGL or OpenGL ES context but no context is current on the calling - * thread. One such function is @ref glfwSwapInterval. - * - * @par Analysis - * Application programmer error. Ensure a context is current before calling - * functions that require a current context. - */ -#define GLFW_NO_CURRENT_CONTEXT 0x00010002 -/*! @brief One of the arguments to the function was an invalid enum value. - * - * One of the arguments to the function was an invalid enum value, for example - * requesting [GLFW_RED_BITS](@ref window_hints_fb) with @ref - * glfwGetWindowAttrib. - * - * @par Analysis - * Application programmer error. Fix the offending call. - */ -#define GLFW_INVALID_ENUM 0x00010003 -/*! @brief One of the arguments to the function was an invalid value. - * - * One of the arguments to the function was an invalid value, for example - * requesting a non-existent OpenGL or OpenGL ES version like 2.7. - * - * Requesting a valid but unavailable OpenGL or OpenGL ES version will instead - * result in a @ref GLFW_VERSION_UNAVAILABLE error. - * - * @par Analysis - * Application programmer error. Fix the offending call. - */ -#define GLFW_INVALID_VALUE 0x00010004 -/*! @brief A memory allocation failed. - * - * A memory allocation failed. - * - * @par Analysis - * A bug in GLFW or the underlying operating system. Report the bug to our - * [issue tracker](https://github.com/glfw/glfw/issues). - */ -#define GLFW_OUT_OF_MEMORY 0x00010005 -/*! @brief GLFW could not find support for the requested client API on the - * system. - * - * GLFW could not find support for the requested client API on the system. If - * emitted by functions other than @ref glfwCreateWindow, no supported client - * API was found. - * - * @par Analysis - * The installed graphics driver does not support the requested client API, or - * does not support it via the chosen context creation backend. Below are - * a few examples. - * - * @par - * Some pre-installed Windows graphics drivers do not support OpenGL. AMD only - * supports OpenGL ES via EGL, while Nvidia and Intel only support it via - * a WGL or GLX extension. OS X does not provide OpenGL ES at all. The Mesa - * EGL, OpenGL and OpenGL ES libraries do not interface with the Nvidia binary - * driver. - */ -#define GLFW_API_UNAVAILABLE 0x00010006 -/*! @brief The requested OpenGL or OpenGL ES version is not available. - * - * The requested OpenGL or OpenGL ES version (including any requested context - * or framebuffer hints) is not available on this machine. - * - * @par Analysis - * The machine does not support your requirements. If your application is - * sufficiently flexible, downgrade your requirements and try again. - * Otherwise, inform the user that their machine does not match your - * requirements. - * - * @par - * Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if 5.0 - * comes out before the 4.x series gets that far, also fail with this error and - * not @ref GLFW_INVALID_VALUE, because GLFW cannot know what future versions - * will exist. - */ -#define GLFW_VERSION_UNAVAILABLE 0x00010007 -/*! @brief A platform-specific error occurred that does not match any of the - * more specific categories. - * - * A platform-specific error occurred that does not match any of the more - * specific categories. - * - * @par Analysis - * A bug or configuration error in GLFW, the underlying operating system or - * its drivers, or a lack of required resources. Report the issue to our - * [issue tracker](https://github.com/glfw/glfw/issues). - */ -#define GLFW_PLATFORM_ERROR 0x00010008 -/*! @brief The requested format is not supported or available. - * - * If emitted during window creation, the requested pixel format is not - * supported. - * - * If emitted when querying the clipboard, the contents of the clipboard could - * not be converted to the requested format. - * - * @par Analysis - * If emitted during window creation, one or more - * [hard constraints](@ref window_hints_hard) did not match any of the - * available pixel formats. If your application is sufficiently flexible, - * downgrade your requirements and try again. Otherwise, inform the user that - * their machine does not match your requirements. - * - * @par - * If emitted when querying the clipboard, ignore the error or report it to - * the user, as appropriate. - */ -#define GLFW_FORMAT_UNAVAILABLE 0x00010009 -/*! @} */ - -#define GLFW_FOCUSED 0x00020001 -#define GLFW_ICONIFIED 0x00020002 -#define GLFW_RESIZABLE 0x00020003 -#define GLFW_VISIBLE 0x00020004 -#define GLFW_DECORATED 0x00020005 -#define GLFW_AUTO_ICONIFY 0x00020006 -#define GLFW_FLOATING 0x00020007 - -#define GLFW_RED_BITS 0x00021001 -#define GLFW_GREEN_BITS 0x00021002 -#define GLFW_BLUE_BITS 0x00021003 -#define GLFW_ALPHA_BITS 0x00021004 -#define GLFW_DEPTH_BITS 0x00021005 -#define GLFW_STENCIL_BITS 0x00021006 -#define GLFW_ACCUM_RED_BITS 0x00021007 -#define GLFW_ACCUM_GREEN_BITS 0x00021008 -#define GLFW_ACCUM_BLUE_BITS 0x00021009 -#define GLFW_ACCUM_ALPHA_BITS 0x0002100A -#define GLFW_AUX_BUFFERS 0x0002100B -#define GLFW_STEREO 0x0002100C -#define GLFW_SAMPLES 0x0002100D -#define GLFW_SRGB_CAPABLE 0x0002100E -#define GLFW_REFRESH_RATE 0x0002100F -#define GLFW_DOUBLEBUFFER 0x00021010 - -#define GLFW_CLIENT_API 0x00022001 -#define GLFW_CONTEXT_VERSION_MAJOR 0x00022002 -#define GLFW_CONTEXT_VERSION_MINOR 0x00022003 -#define GLFW_CONTEXT_REVISION 0x00022004 -#define GLFW_CONTEXT_ROBUSTNESS 0x00022005 -#define GLFW_OPENGL_FORWARD_COMPAT 0x00022006 -#define GLFW_OPENGL_DEBUG_CONTEXT 0x00022007 -#define GLFW_OPENGL_PROFILE 0x00022008 -#define GLFW_CONTEXT_RELEASE_BEHAVIOR 0x00022009 - -#define GLFW_OPENGL_API 0x00030001 -#define GLFW_OPENGL_ES_API 0x00030002 - -#define GLFW_NO_ROBUSTNESS 0 -#define GLFW_NO_RESET_NOTIFICATION 0x00031001 -#define GLFW_LOSE_CONTEXT_ON_RESET 0x00031002 - -#define GLFW_OPENGL_ANY_PROFILE 0 -#define GLFW_OPENGL_CORE_PROFILE 0x00032001 -#define GLFW_OPENGL_COMPAT_PROFILE 0x00032002 - -#define GLFW_CURSOR 0x00033001 -#define GLFW_STICKY_KEYS 0x00033002 -#define GLFW_STICKY_MOUSE_BUTTONS 0x00033003 - -#define GLFW_CURSOR_NORMAL 0x00034001 -#define GLFW_CURSOR_HIDDEN 0x00034002 -#define GLFW_CURSOR_DISABLED 0x00034003 - -#define GLFW_ANY_RELEASE_BEHAVIOR 0 -#define GLFW_RELEASE_BEHAVIOR_FLUSH 0x00035001 -#define GLFW_RELEASE_BEHAVIOR_NONE 0x00035002 - -/*! @defgroup shapes Standard cursor shapes - * - * See [standard cursor creation](@ref cursor_standard) for how these are used. - * - * @ingroup input - * @{ */ - -/*! @brief The regular arrow cursor shape. - * - * The regular arrow cursor. - */ -#define GLFW_ARROW_CURSOR 0x00036001 -/*! @brief The text input I-beam cursor shape. - * - * The text input I-beam cursor shape. - */ -#define GLFW_IBEAM_CURSOR 0x00036002 -/*! @brief The crosshair shape. - * - * The crosshair shape. - */ -#define GLFW_CROSSHAIR_CURSOR 0x00036003 -/*! @brief The hand shape. - * - * The hand shape. - */ -#define GLFW_HAND_CURSOR 0x00036004 -/*! @brief The horizontal resize arrow shape. - * - * The horizontal resize arrow shape. - */ -#define GLFW_HRESIZE_CURSOR 0x00036005 -/*! @brief The vertical resize arrow shape. - * - * The vertical resize arrow shape. - */ -#define GLFW_VRESIZE_CURSOR 0x00036006 -/*! @} */ - -#define GLFW_CONNECTED 0x00040001 -#define GLFW_DISCONNECTED 0x00040002 - -#define GLFW_DONT_CARE -1 - - -/************************************************************************* - * GLFW API types - *************************************************************************/ - -/*! @brief Client API function pointer type. - * - * Generic function pointer used for returning client API function pointers - * without forcing a cast from a regular pointer. - * - * @ingroup context - */ -typedef void (*GLFWglproc)(void); - -/*! @brief Opaque monitor object. - * - * Opaque monitor object. - * - * @ingroup monitor - */ -typedef struct GLFWmonitor GLFWmonitor; - -/*! @brief Opaque window object. - * - * Opaque window object. - * - * @ingroup window - */ -typedef struct GLFWwindow GLFWwindow; - -/*! @brief Opaque cursor object. - * - * Opaque cursor object. - * - * @ingroup cursor - */ -typedef struct GLFWcursor GLFWcursor; - -/*! @brief The function signature for error callbacks. - * - * This is the function signature for error callback functions. - * - * @param[in] error An [error code](@ref errors). - * @param[in] description A UTF-8 encoded string describing the error. - * - * @sa glfwSetErrorCallback - * - * @ingroup init - */ -typedef void (* GLFWerrorfun)(int,const char*); - -/*! @brief The function signature for window position callbacks. - * - * This is the function signature for window position callback functions. - * - * @param[in] window The window that was moved. - * @param[in] xpos The new x-coordinate, in screen coordinates, of the - * upper-left corner of the client area of the window. - * @param[in] ypos The new y-coordinate, in screen coordinates, of the - * upper-left corner of the client area of the window. - * - * @sa glfwSetWindowPosCallback - * - * @ingroup window - */ -typedef void (* GLFWwindowposfun)(GLFWwindow*,int,int); - -/*! @brief The function signature for window resize callbacks. - * - * This is the function signature for window size callback functions. - * - * @param[in] window The window that was resized. - * @param[in] width The new width, in screen coordinates, of the window. - * @param[in] height The new height, in screen coordinates, of the window. - * - * @sa glfwSetWindowSizeCallback - * - * @ingroup window - */ -typedef void (* GLFWwindowsizefun)(GLFWwindow*,int,int); - -/*! @brief The function signature for window close callbacks. - * - * This is the function signature for window close callback functions. - * - * @param[in] window The window that the user attempted to close. - * - * @sa glfwSetWindowCloseCallback - * - * @ingroup window - */ -typedef void (* GLFWwindowclosefun)(GLFWwindow*); - -/*! @brief The function signature for window content refresh callbacks. - * - * This is the function signature for window refresh callback functions. - * - * @param[in] window The window whose content needs to be refreshed. - * - * @sa glfwSetWindowRefreshCallback - * - * @ingroup window - */ -typedef void (* GLFWwindowrefreshfun)(GLFWwindow*); - -/*! @brief The function signature for window focus/defocus callbacks. - * - * This is the function signature for window focus callback functions. - * - * @param[in] window The window that gained or lost input focus. - * @param[in] focused `GL_TRUE` if the window was given input focus, or - * `GL_FALSE` if it lost it. - * - * @sa glfwSetWindowFocusCallback - * - * @ingroup window - */ -typedef void (* GLFWwindowfocusfun)(GLFWwindow*,int); - -/*! @brief The function signature for window iconify/restore callbacks. - * - * This is the function signature for window iconify/restore callback - * functions. - * - * @param[in] window The window that was iconified or restored. - * @param[in] iconified `GL_TRUE` if the window was iconified, or `GL_FALSE` - * if it was restored. - * - * @sa glfwSetWindowIconifyCallback - * - * @ingroup window - */ -typedef void (* GLFWwindowiconifyfun)(GLFWwindow*,int); - -/*! @brief The function signature for framebuffer resize callbacks. - * - * This is the function signature for framebuffer resize callback - * functions. - * - * @param[in] window The window whose framebuffer was resized. - * @param[in] width The new width, in pixels, of the framebuffer. - * @param[in] height The new height, in pixels, of the framebuffer. - * - * @sa glfwSetFramebufferSizeCallback - * - * @ingroup window - */ -typedef void (* GLFWframebuffersizefun)(GLFWwindow*,int,int); - -/*! @brief The function signature for mouse button callbacks. - * - * This is the function signature for mouse button callback functions. - * - * @param[in] window The window that received the event. - * @param[in] button The [mouse button](@ref buttons) that was pressed or - * released. - * @param[in] action One of `GLFW_PRESS` or `GLFW_RELEASE`. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa glfwSetMouseButtonCallback - * - * @ingroup input - */ -typedef void (* GLFWmousebuttonfun)(GLFWwindow*,int,int,int); - -/*! @brief The function signature for cursor position callbacks. - * - * This is the function signature for cursor position callback functions. - * - * @param[in] window The window that received the event. - * @param[in] xpos The new x-coordinate, in screen coordinates, of the cursor. - * @param[in] ypos The new y-coordinate, in screen coordinates, of the cursor. - * - * @sa glfwSetCursorPosCallback - * - * @ingroup input - */ -typedef void (* GLFWcursorposfun)(GLFWwindow*,double,double); - -/*! @brief The function signature for cursor enter/leave callbacks. - * - * This is the function signature for cursor enter/leave callback functions. - * - * @param[in] window The window that received the event. - * @param[in] entered `GL_TRUE` if the cursor entered the window's client - * area, or `GL_FALSE` if it left it. - * - * @sa glfwSetCursorEnterCallback - * - * @ingroup input - */ -typedef void (* GLFWcursorenterfun)(GLFWwindow*,int); - -/*! @brief The function signature for scroll callbacks. - * - * This is the function signature for scroll callback functions. - * - * @param[in] window The window that received the event. - * @param[in] xoffset The scroll offset along the x-axis. - * @param[in] yoffset The scroll offset along the y-axis. - * - * @sa glfwSetScrollCallback - * - * @ingroup input - */ -typedef void (* GLFWscrollfun)(GLFWwindow*,double,double); - -/*! @brief The function signature for keyboard key callbacks. - * - * This is the function signature for keyboard key callback functions. - * - * @param[in] window The window that received the event. - * @param[in] key The [keyboard key](@ref keys) that was pressed or released. - * @param[in] scancode The system-specific scancode of the key. - * @param[in] action `GLFW_PRESS`, `GLFW_RELEASE` or `GLFW_REPEAT`. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa glfwSetKeyCallback - * - * @ingroup input - */ -typedef void (* GLFWkeyfun)(GLFWwindow*,int,int,int,int); - -/*! @brief The function signature for Unicode character callbacks. - * - * This is the function signature for Unicode character callback functions. - * - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the character. - * - * @sa glfwSetCharCallback - * - * @ingroup input - */ -typedef void (* GLFWcharfun)(GLFWwindow*,unsigned int); - -/*! @brief The function signature for Unicode character with modifiers - * callbacks. - * - * This is the function signature for Unicode character with modifiers callback - * functions. It is called for each input character, regardless of what - * modifier keys are held down. - * - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the character. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa glfwSetCharModsCallback - * - * @ingroup input - */ -typedef void (* GLFWcharmodsfun)(GLFWwindow*,unsigned int,int); - -/*! @brief The function signature for file drop callbacks. - * - * This is the function signature for file drop callbacks. - * - * @param[in] window The window that received the event. - * @param[in] count The number of dropped files. - * @param[in] paths The UTF-8 encoded file and/or directory path names. - * - * @sa glfwSetDropCallback - * - * @ingroup input - */ -typedef void (* GLFWdropfun)(GLFWwindow*,int,const char**); - -/*! @brief The function signature for monitor configuration callbacks. - * - * This is the function signature for monitor configuration callback functions. - * - * @param[in] monitor The monitor that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. - * - * @sa glfwSetMonitorCallback - * - * @ingroup monitor - */ -typedef void (* GLFWmonitorfun)(GLFWmonitor*,int); - -/*! @brief Video mode type. - * - * This describes a single video mode. - * - * @ingroup monitor - */ -typedef struct GLFWvidmode -{ - /*! The width, in screen coordinates, of the video mode. - */ - int width; - /*! The height, in screen coordinates, of the video mode. - */ - int height; - /*! The bit depth of the red channel of the video mode. - */ - int redBits; - /*! The bit depth of the green channel of the video mode. - */ - int greenBits; - /*! The bit depth of the blue channel of the video mode. - */ - int blueBits; - /*! The refresh rate, in Hz, of the video mode. - */ - int refreshRate; -} GLFWvidmode; - -/*! @brief Gamma ramp. - * - * This describes the gamma ramp for a monitor. - * - * @sa glfwGetGammaRamp glfwSetGammaRamp - * - * @ingroup monitor - */ -typedef struct GLFWgammaramp -{ - /*! An array of value describing the response of the red channel. - */ - unsigned short* red; - /*! An array of value describing the response of the green channel. - */ - unsigned short* green; - /*! An array of value describing the response of the blue channel. - */ - unsigned short* blue; - /*! The number of elements in each array. - */ - unsigned int size; -} GLFWgammaramp; - -/*! @brief Image data. - */ -typedef struct GLFWimage -{ - /*! The width, in pixels, of this image. - */ - int width; - /*! The height, in pixels, of this image. - */ - int height; - /*! The pixel data of this image, arranged left-to-right, top-to-bottom. - */ - unsigned char* pixels; -} GLFWimage; - - -/************************************************************************* - * GLFW API functions - *************************************************************************/ - -/*! @brief Initializes the GLFW library. - * - * 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. - * - * If this function fails, it calls @ref glfwTerminate before returning. If it - * succeeds, you should call @ref glfwTerminate before the application exits. - * - * Additional calls to this function after successful initialization but before - * termination will return `GL_TRUE` immediately. - * - * @return `GL_TRUE` if successful, or `GL_FALSE` if an - * [error](@ref error_handling) occurred. - * - * @remarks __OS X:__ This function will change the current directory of the - * application to the `Contents/Resources` subdirectory of the application's - * bundle, if present. This can be disabled with a - * [compile-time option](@ref compile_options_osx). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref intro_init - * @sa glfwTerminate - * - * @since Added in GLFW 1.0. - * - * @ingroup init - */ -GLFWAPI int glfwInit(void); - -/*! @brief Terminates the GLFW library. - * - * 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 @ref glfwInit successfully before - * you will be able to use most GLFW functions. - * - * 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 @ref glfwInit before it returns - * failure. - * - * @remarks This function may be called before @ref glfwInit. - * - * @warning No window's context may be current on another thread when this - * function is called. - * - * @par Reentrancy - * This function may not be called from a callback. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref intro_init - * @sa glfwInit - * - * @since Added in GLFW 1.0. - * - * @ingroup init - */ -GLFWAPI void glfwTerminate(void); - -/*! @brief Retrieves the version of the GLFW library. - * - * 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. - * - * Any or all of the version arguments may be `NULL`. This function always - * succeeds. - * - * @param[out] major Where to store the major version number, or `NULL`. - * @param[out] minor Where to store the minor version number, or `NULL`. - * @param[out] rev Where to store the revision number, or `NULL`. - * - * @remarks This function may be called before @ref glfwInit. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref intro_version - * @sa glfwGetVersionString - * - * @since Added in GLFW 1.0. - * - * @ingroup init - */ -GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev); - -/*! @brief Returns a string describing the compile-time configuration. - * - * This function returns the compile-time generated - * [version string](@ref intro_version_string) of the GLFW library binary. It - * describes the version, platform, compiler and any platform-specific - * compile-time options. - * - * __Do not use the version string__ to parse the GLFW library version. The - * @ref glfwGetVersion function already provides the version of the running - * library binary. - * - * This function always succeeds. - * - * @return The GLFW version string. - * - * @remarks This function may be called before @ref glfwInit. - * - * @par Pointer Lifetime - * The returned string is static and compile-time generated. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref intro_version - * @sa glfwGetVersion - * - * @since Added in GLFW 3.0. - * - * @ingroup init - */ -GLFWAPI const char* glfwGetVersionString(void); - -/*! @brief Sets the error callback. - * - * This function sets the error callback, which is called with an error code - * and a human-readable description each time a GLFW error occurs. - * - * 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. - * - * 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. - * - * Once set, the error callback remains set even after the library has been - * terminated. - * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set. - * - * @remarks This function may be called before @ref glfwInit. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref error_handling - * - * @since Added in GLFW 3.0. - * - * @ingroup init - */ -GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun); - -/*! @brief Returns the currently connected monitors. - * - * This function returns an array of handles for all currently connected - * monitors. The primary monitor is always first in the returned array. If no - * monitors were found, this function returns `NULL`. - * - * @param[out] count Where to store the number of monitors in the returned - * array. This is set to zero if an error occurred. - * @return An array of monitor handles, or `NULL` if no monitors were found or - * if an [error](@ref error_handling) occurred. - * - * @par Pointer Lifetime - * The returned array is allocated and freed by GLFW. You should not free it - * yourself. It is guaranteed to be valid only until the monitor configuration - * changes or the library is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_monitors - * @sa @ref monitor_event - * @sa glfwGetPrimaryMonitor - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitor** glfwGetMonitors(int* count); - -/*! @brief Returns the primary monitor. - * - * This function returns the primary monitor. This is usually the monitor - * where elements like the task bar or global menu bar are located. - * - * @return The primary monitor, or `NULL` if no monitors were found or if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @remarks The primary monitor is always first in the array returned by @ref - * glfwGetMonitors. - * - * @sa @ref monitor_monitors - * @sa glfwGetMonitors - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void); - -/*! @brief Returns the position of the monitor's viewport on the virtual screen. - * - * This function returns the position, in screen coordinates, of the upper-left - * corner of the specified monitor. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] monitor The monitor to query. - * @param[out] xpos Where to store the monitor x-coordinate, or `NULL`. - * @param[out] ypos Where to store the monitor y-coordinate, or `NULL`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos); - -/*! @brief Returns the physical size of the monitor. - * - * This function returns the size, in millimetres, of the display area of the - * specified monitor. - * - * Some systems do not provide accurate monitor size information, either - * because the monitor - * [EDID](https://en.wikipedia.org/wiki/Extended_display_identification_data) - * data is incorrect or because the driver does not report it accurately. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] monitor The monitor to query. - * @param[out] widthMM Where to store the width, in millimetres, of the - * monitor's display area, or `NULL`. - * @param[out] heightMM Where to store the height, in millimetres, of the - * monitor's display area, or `NULL`. - * - * @remarks __Windows:__ The OS calculates the returned physical size from the - * current resolution and system DPI instead of querying the monitor EDID data. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM); - -/*! @brief Returns the name of the specified monitor. - * - * This function returns a human-readable name, encoded as UTF-8, of the - * specified monitor. The name typically reflects the make and model of the - * monitor and is not guaranteed to be unique among the connected monitors. - * - * @param[in] monitor The monitor to query. - * @return The UTF-8 encoded name of the monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Pointer Lifetime - * The returned string is allocated and freed by GLFW. You should not free it - * yourself. It is valid until the specified monitor is disconnected or the - * library is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor); - -/*! @brief Sets the monitor configuration callback. - * - * This function sets the monitor configuration callback, or removes the - * currently set callback. This is called when a monitor is connected to or - * disconnected from the system. - * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @bug __X11:__ This callback is not yet called on monitor configuration - * changes. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_event - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun); - -/*! @brief Returns the available video modes for the specified monitor. - * - * This function returns an array of all video modes supported by the specified - * monitor. The returned array is sorted in ascending order, first by color - * bit depth (the sum of all channel depths) and then by resolution area (the - * product of width and height). - * - * @param[in] monitor The monitor to query. - * @param[out] count Where to store the number of video modes in the returned - * array. This is set to zero if an error occurred. - * @return An array of video modes, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Pointer Lifetime - * The returned array is allocated and freed by GLFW. You should not free it - * yourself. It is valid until the specified monitor is disconnected, this - * function is called again for that monitor or the library is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_modes - * @sa glfwGetVideoMode - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Changed to return an array of modes for a specific monitor. - * - * @ingroup monitor - */ -GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* monitor, int* count); - -/*! @brief Returns the current mode of the specified monitor. - * - * This function returns the current video mode of the specified monitor. If - * you have created a full screen window for that monitor, the return value - * will depend on whether that window is iconified. - * - * @param[in] monitor The monitor to query. - * @return The current mode of the monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Pointer Lifetime - * The returned array is allocated and freed by GLFW. You should not free it - * yourself. It is valid until the specified monitor is disconnected or the - * library is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_modes - * @sa glfwGetVideoModes - * - * @since Added in GLFW 3.0. Replaces `glfwGetDesktopMode`. - * - * @ingroup monitor - */ -GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor); - -/*! @brief Generates a gamma ramp and sets it for the specified monitor. - * - * This function generates a 256-element gamma ramp from the specified exponent - * and then calls @ref glfwSetGammaRamp with it. The value must be a finite - * number greater than zero. - * - * @param[in] monitor The monitor whose gamma ramp to set. - * @param[in] gamma The desired exponent. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma); - -/*! @brief Returns the current gamma ramp for the specified monitor. - * - * This function returns the current gamma ramp of the specified monitor. - * - * @param[in] monitor The monitor to query. - * @return The current gamma ramp, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Pointer Lifetime - * The returned structure and its arrays are allocated and freed by GLFW. You - * should not free them yourself. They are valid until the specified monitor - * is disconnected, this function is called again for that monitor or the - * library is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor); - -/*! @brief Sets the current gamma ramp for the specified monitor. - * - * This function sets the current gamma ramp for the specified monitor. The - * original gamma ramp for that monitor is saved by GLFW the first time this - * function is called and is restored by @ref glfwTerminate. - * - * @param[in] monitor The monitor whose gamma ramp to set. - * @param[in] ramp The gamma ramp to use. - * - * @remarks Gamma ramp sizes other than 256 are not supported by all platforms - * or graphics hardware. - * - * @remarks __Windows:__ The gamma ramp size must be 256. - * - * @par Pointer Lifetime - * The specified gamma ramp is copied before this function returns. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in GLFW 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp); - -/*! @brief Resets all window hints to their default values. - * - * This function resets all window hints to their - * [default values](@ref window_hints_values). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_hints - * @sa glfwWindowHint - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwDefaultWindowHints(void); - -/*! @brief Sets the specified window hint to the desired value. - * - * This function sets hints for the next call to @ref glfwCreateWindow. The - * hints, once set, retain their values until changed by a call to @ref - * glfwWindowHint or @ref glfwDefaultWindowHints, or until the library is - * terminated. - * - * @param[in] target The [window hint](@ref window_hints) to set. - * @param[in] hint The new value of the window hint. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_hints - * @sa glfwDefaultWindowHints - * - * @since Added in GLFW 3.0. Replaces `glfwOpenWindowHint`. - * - * @ingroup window - */ -GLFWAPI void glfwWindowHint(int target, int hint); - -/*! @brief Creates a window and its associated context. - * - * This function creates a window and its associated OpenGL or OpenGL ES - * context. Most of the options controlling how the window and its context - * should be created are specified with [window hints](@ref window_hints). - * - * Successful creation does not change which context is current. Before you - * can use the newly created context, you need to - * [make it current](@ref context_current). For information about the `share` - * parameter, see @ref context_sharing. - * - * The created window, framebuffer and context may differ from what you - * requested, as not all parameters and hints are - * [hard constraints](@ref window_hints_hard). This includes the size of the - * window, especially for full screen windows. To query the actual attributes - * of the created window, framebuffer and context, see @ref - * glfwGetWindowAttrib, @ref glfwGetWindowSize and @ref glfwGetFramebufferSize. - * - * To create a full screen window, you need to specify the monitor the window - * will cover. If no monitor is specified, windowed mode will be used. Unless - * you have a way for the user to choose a specific monitor, it is recommended - * that you pick the primary monitor. For more information on how to query - * connected monitors, see @ref monitor_monitors. - * - * For full screen windows, the specified size becomes the resolution of the - * window's _desired video mode_. As long as a full screen window has input - * focus, the supported video mode most closely matching the desired video mode - * is set for the specified monitor. For more information about full screen - * windows, including the creation of so called _windowed full screen_ or - * _borderless full screen_ windows, see @ref window_windowed_full_screen. - * - * By default, newly created windows use the placement recommended by the - * window system. To create the window at a specific position, make it - * initially invisible using the [GLFW_VISIBLE](@ref window_hints_wnd) window - * hint, set its [position](@ref window_pos) and then [show](@ref window_hide) - * it. - * - * If a full screen window has input focus, the screensaver is prohibited from - * starting. - * - * Window systems put limits on window sizes. Very large or very small window - * dimensions may be overridden by the window system on creation. Check the - * actual [size](@ref window_size) after creation. - * - * The [swap interval](@ref buffer_swap) is not set during window creation and - * the initial value may vary depending on driver settings and defaults. - * - * @param[in] width The desired width, in screen coordinates, of the window. - * This must be greater than zero. - * @param[in] height The desired height, in screen coordinates, of the window. - * This must be greater than zero. - * @param[in] title The initial, UTF-8 encoded window title. - * @param[in] monitor The monitor to use for full screen mode, or `NULL` to use - * windowed mode. - * @param[in] share The window whose context to share resources with, or `NULL` - * to not share resources. - * @return The handle of the created window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @remarks __Windows:__ Window creation will fail if the Microsoft GDI - * software OpenGL implementation is the only one available. - * - * @remarks __Windows:__ If the executable has an icon resource named - * `GLFW_ICON,` it will be set as the icon for the window. If no such icon is - * present, the `IDI_WINLOGO` icon will be used instead. - * - * @remarks __Windows:__ The context to share resources with may not be current - * on any other thread. - * - * @remarks __OS X:__ The GLFW window has no icon, as it is not a document - * window, but the dock icon will be the same as the application bundle's icon. - * For more information on bundles, see the - * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) - * in the Mac Developer Library. - * - * @remarks __OS X:__ The first time a window is created the menu bar is - * populated 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 can be disabled with a - * [compile-time option](@ref compile_options_osx). - * - * @remarks __OS X:__ On OS X 10.10 and later the window frame will not be - * rendered at full resolution on Retina displays unless the - * `NSHighResolutionCapable` key is enabled in the application bundle's - * `Info.plist`. For more information, see - * [High Resolution Guidelines for OS X](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html) - * in the Mac Developer Library. The GLFW test and example programs use - * a custom `Info.plist` template for this, which can be found as - * `CMake/MacOSXBundleInfo.plist.in` in the source tree. - * - * @remarks __X11:__ There is no mechanism for setting the window icon yet. - * - * @remarks __X11:__ Some window managers will not respect the placement of - * initially hidden windows. - * - * @remarks __X11:__ Due to the asynchronous nature of X11, it may take - * a moment for a window to reach its requested state. This means you may not - * be able to query the final size, position or other attributes directly after - * window creation. - * - * @par Reentrancy - * This function may not be called from a callback. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_creation - * @sa glfwDestroyWindow - * - * @since Added in GLFW 3.0. Replaces `glfwOpenWindow`. - * - * @ingroup window - */ -GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share); - -/*! @brief Destroys the specified window and its context. - * - * This function destroys the specified window and its context. On calling - * this function, no further callbacks will be called for that window. - * - * If the context of the specified window is current on the main thread, it is - * detached before being destroyed. - * - * @param[in] window The window to destroy. - * - * @note The context of the specified window must not be current on any other - * thread when this function is called. - * - * @par Reentrancy - * This function may not be called from a callback. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_creation - * @sa glfwCreateWindow - * - * @since Added in GLFW 3.0. Replaces `glfwCloseWindow`. - * - * @ingroup window - */ -GLFWAPI void glfwDestroyWindow(GLFWwindow* window); - -/*! @brief Checks the close flag of the specified window. - * - * This function returns the value of the close flag of the specified window. - * - * @param[in] window The window to query. - * @return The value of the close flag. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @sa @ref window_close - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI int glfwWindowShouldClose(GLFWwindow* window); - -/*! @brief Sets the close flag of the specified window. - * - * This function sets the value of the close flag of the specified window. - * This can be used to override the user's attempt to close the window, or - * to signal that it should be closed. - * - * @param[in] window The window whose flag to change. - * @param[in] value The new value. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @sa @ref window_close - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value); - -/*! @brief Sets the title of the specified window. - * - * This function sets the window title, encoded as UTF-8, of the specified - * window. - * - * @param[in] window The window whose title to change. - * @param[in] title The UTF-8 encoded window title. - * - * @remarks __OS X:__ The window title will not be updated until the next time - * you process events. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_title - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title); - -/*! @brief Retrieves the position of the client area of the specified window. - * - * This function retrieves the position, in screen coordinates, of the - * upper-left corner of the client area of the specified window. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] window The window to query. - * @param[out] xpos Where to store the x-coordinate of the upper-left corner of - * the client area, or `NULL`. - * @param[out] ypos Where to store the y-coordinate of the upper-left corner of - * the client area, or `NULL`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_pos - * @sa glfwSetWindowPos - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos); - -/*! @brief Sets the position of the client area of the specified window. - * - * This function sets the position, in screen coordinates, of the upper-left - * corner of the client area of the specified windowed mode window. If the - * window is a full screen window, this function does nothing. - * - * __Do not use this function__ to move an already visible window unless you - * have very good reasons for doing so, as it will confuse and annoy the user. - * - * The window manager may put limits on what positions are allowed. GLFW - * cannot and should not override these limits. - * - * @param[in] window The window to query. - * @param[in] xpos The x-coordinate of the upper-left corner of the client area. - * @param[in] ypos The y-coordinate of the upper-left corner of the client area. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_pos - * @sa glfwGetWindowPos - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos); - -/*! @brief Retrieves the size of the client area of the specified window. - * - * This function retrieves the size, in screen coordinates, of the client area - * of the specified window. If you wish to retrieve the size of the - * framebuffer of the window in pixels, see @ref glfwGetFramebufferSize. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose size to retrieve. - * @param[out] width Where to store the width, in screen coordinates, of the - * client area, or `NULL`. - * @param[out] height Where to store the height, in screen coordinates, of the - * client area, or `NULL`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_size - * @sa glfwSetWindowSize - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowSize(GLFWwindow* window, int* width, int* height); - -/*! @brief Sets the size of the client area of the specified window. - * - * This function sets the size, in screen coordinates, of the client area of - * the specified window. - * - * For full screen windows, this function selects and switches to the resolution - * closest to the specified size, without affecting the window's context. As - * the context is unaffected, the bit depths of the framebuffer remain - * unchanged. - * - * The window manager may put limits on what sizes are allowed. GLFW cannot - * and should not override these limits. - * - * @param[in] window The window to resize. - * @param[in] width The desired width of the specified window. - * @param[in] height The desired height of the specified window. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_size - * @sa glfwGetWindowSize - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowSize(GLFWwindow* window, int width, int height); - -/*! @brief Retrieves the size of the framebuffer of the specified window. - * - * This function retrieves the size, in pixels, of the framebuffer of the - * specified window. If you wish to retrieve the size of the window in screen - * coordinates, see @ref glfwGetWindowSize. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose framebuffer to query. - * @param[out] width Where to store the width, in pixels, of the framebuffer, - * or `NULL`. - * @param[out] height Where to store the height, in pixels, of the framebuffer, - * or `NULL`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_fbsize - * @sa glfwSetFramebufferSizeCallback - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height); - -/*! @brief Retrieves the size of the frame of the window. - * - * This function retrieves the size, in screen coordinates, of each edge of the - * frame of the specified window. This size includes the title bar, if the - * window has one. The size of the frame may vary depending on the - * [window-related hints](@ref window_hints_wnd) used to create it. - * - * Because this function retrieves the size of each window frame edge and not - * the offset along a particular coordinate axis, the retrieved values will - * always be zero or positive. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose frame size to query. - * @param[out] left Where to store the size, in screen coordinates, of the left - * edge of the window frame, or `NULL`. - * @param[out] top Where to store the size, in screen coordinates, of the top - * edge of the window frame, or `NULL`. - * @param[out] right Where to store the size, in screen coordinates, of the - * right edge of the window frame, or `NULL`. - * @param[out] bottom Where to store the size, in screen coordinates, of the - * bottom edge of the window frame, or `NULL`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_size - * - * @since Added in GLFW 3.1. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom); - -/*! @brief Iconifies the specified window. - * - * This function iconifies (minimizes) the specified window if it was - * previously restored. If the window is already iconified, this function does - * nothing. - * - * If the specified window is a full screen window, the original monitor - * resolution is restored until the window is restored. - * - * @param[in] window The window to iconify. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_iconify - * @sa glfwRestoreWindow - * - * @since Added in GLFW 2.1. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwIconifyWindow(GLFWwindow* window); - -/*! @brief Restores the specified window. - * - * This function restores the specified window if it was previously iconified - * (minimized). If the window is already restored, this function does nothing. - * - * If the specified window is a full screen window, the resolution chosen for - * the window is restored on the selected monitor. - * - * @param[in] window The window to restore. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_iconify - * @sa glfwIconifyWindow - * - * @since Added in GLFW 2.1. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwRestoreWindow(GLFWwindow* window); - -/*! @brief Makes the specified window visible. - * - * This function makes the specified window visible if it was previously - * hidden. If the window is already visible or is in full screen mode, this - * function does nothing. - * - * @param[in] window The window to make visible. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_hide - * @sa glfwHideWindow - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwShowWindow(GLFWwindow* window); - -/*! @brief Hides the specified window. - * - * This function hides the specified window if it was previously visible. If - * the window is already hidden or is in full screen mode, this function does - * nothing. - * - * @param[in] window The window to hide. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_hide - * @sa glfwShowWindow - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwHideWindow(GLFWwindow* window); - -/*! @brief Returns the monitor that the window uses for full screen mode. - * - * This function returns the handle of the monitor that the specified window is - * in full screen on. - * - * @param[in] window The window to query. - * @return The monitor, or `NULL` if the window is in windowed mode or an error - * occurred. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_monitor - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window); - -/*! @brief Returns an attribute of the specified window. - * - * This function returns the value of an attribute of the specified window or - * its OpenGL or OpenGL ES context. - * - * @param[in] window The window to query. - * @param[in] attrib The [window attribute](@ref window_attribs) whose value to - * return. - * @return The value of the attribute, or zero if an - * [error](@ref error_handling) occurred. - * - * @remarks Framebuffer related hints are not window attributes. See @ref - * window_attribs_fb for more information. - * - * @remarks Zero is a valid value for many window and context related - * attributes so you cannot use a return value of zero as an indication of - * errors. However, this function should not fail as long as it is passed - * valid arguments and the library has been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_attribs - * - * @since Added in GLFW 3.0. Replaces `glfwGetWindowParam` and - * `glfwGetGLVersion`. - * - * @ingroup window - */ -GLFWAPI int glfwGetWindowAttrib(GLFWwindow* window, int attrib); - -/*! @brief Sets the user pointer of the specified window. - * - * This function sets the user-defined pointer of the specified window. The - * current value is retained until the window is destroyed. The initial value - * is `NULL`. - * - * @param[in] window The window whose pointer to set. - * @param[in] pointer The new value. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @sa @ref window_userptr - * @sa glfwGetWindowUserPointer - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* window, void* pointer); - -/*! @brief Returns the user pointer of the specified window. - * - * This function returns the current value of the user-defined pointer of the - * specified window. The initial value is `NULL`. - * - * @param[in] window The window whose pointer to return. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @sa @ref window_userptr - * @sa glfwSetWindowUserPointer - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window); - -/*! @brief Sets the position callback for the specified window. - * - * This function sets the position callback of the specified window, which is - * called when the window is moved. The callback is provided with the screen - * position of the upper-left corner of the client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_pos - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindowposfun cbfun); - -/*! @brief Sets the size callback for the specified window. - * - * This function sets the size callback of the specified window, which is - * called when the window is resized. The callback is provided with the size, - * in screen coordinates, of the client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_size - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. Updated callback signature. - * - * @ingroup window - */ -GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwindowsizefun cbfun); - -/*! @brief Sets the close callback for the specified window. - * - * This function sets the close callback of the specified window, which is - * called when the user attempts to close the window, for example by clicking - * the close widget in the title bar. - * - * The close flag is set before this callback is called, but you can modify it - * at any time with @ref glfwSetWindowShouldClose. - * - * The close callback is not triggered by @ref glfwDestroyWindow. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @remarks __OS X:__ Selecting Quit from the application menu will - * trigger the close callback for all windows. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_close - * - * @since Added in GLFW 2.5. - * - * @par - * __GLFW 3:__ Added window handle parameter. Updated callback signature. - * - * @ingroup window - */ -GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun cbfun); - -/*! @brief Sets the refresh callback for the specified window. - * - * This function sets the refresh callback of the specified window, which is - * called when the client area of the window needs to be redrawn, for example - * if the window has been exposed after having been covered by another window. - * - * On compositing window systems such as Aero, Compiz or Aqua, where the window - * contents are saved off-screen, this callback may be called only very - * infrequently or never at all. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_refresh - * - * @since Added in GLFW 2.5. - * - * @par - * __GLFW 3:__ Added window handle parameter. Updated callback signature. - * - * @ingroup window - */ -GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun cbfun); - -/*! @brief Sets the focus callback for the specified window. - * - * This function sets the focus callback of the specified window, which is - * called when the window gains or loses input focus. - * - * After the focus callback is called for a window that lost input focus, - * synthetic key and mouse button release events will be generated for all such - * that had been pressed. For more information, see @ref glfwSetKeyCallback - * and @ref glfwSetMouseButtonCallback. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_focus - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun cbfun); - -/*! @brief Sets the iconify callback for the specified window. - * - * This function sets the iconification callback of the specified window, which - * is called when the window is iconified or restored. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_iconify - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyfun cbfun); - -/*! @brief Sets the framebuffer resize callback for the specified window. - * - * This function sets the framebuffer resize callback of the specified window, - * which is called when the framebuffer of the specified window is resized. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_fbsize - * - * @since Added in GLFW 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun cbfun); - -/*! @brief Processes all pending events. - * - * This function processes only those events that are already in the event - * queue and then returns immediately. Processing events will cause the window - * and input callbacks associated with those events to be called. - * - * On some platforms, a window move, resize or menu operation will cause event - * processing to block. This is due to how event processing is designed on - * those platforms. You can use the - * [window refresh callback](@ref window_refresh) to redraw the contents of - * your window when necessary during such operations. - * - * On some platforms, certain events are sent directly to the application - * without going through the event queue, causing callbacks to be called - * outside of a call to one of the event processing functions. - * - * Event processing is not required for joystick input to work. - * - * @par Reentrancy - * This function may not be called from a callback. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref events - * @sa glfwWaitEvents - * - * @since Added in GLFW 1.0. - * - * @ingroup window - */ -GLFWAPI void glfwPollEvents(void); - -/*! @brief Waits until events are queued and processes them. - * - * This function puts the calling thread to sleep until at least one event is - * available in the event queue. Once one or more events are available, - * it behaves exactly like @ref glfwPollEvents, i.e. the events in the queue - * are processed and the function then returns immediately. Processing events - * will cause the window and input callbacks associated with those events to be - * called. - * - * Since not all events are associated with callbacks, this function may return - * without a callback having been called even if you are monitoring all - * callbacks. - * - * On some platforms, a window move, resize or menu operation will cause event - * processing to block. This is due to how event processing is designed on - * those platforms. You can use the - * [window refresh callback](@ref window_refresh) to redraw the contents of - * your window when necessary during such operations. - * - * On some platforms, certain callbacks may be called outside of a call to one - * of the event processing functions. - * - * If no windows exist, this function returns immediately. For synchronization - * of threads in applications that do not create windows, use your threading - * library of choice. - * - * Event processing is not required for joystick input to work. - * - * @par Reentrancy - * This function may not be called from a callback. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref events - * @sa glfwPollEvents - * - * @since Added in GLFW 2.5. - * - * @ingroup window - */ -GLFWAPI void glfwWaitEvents(void); - -/*! @brief Posts an empty event to the event queue. - * - * This function posts an empty event from the current thread to the event - * queue, causing @ref glfwWaitEvents to return. - * - * If no windows exist, this function returns immediately. For synchronization - * of threads in applications that do not create windows, use your threading - * library of choice. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref events - * @sa glfwWaitEvents - * - * @since Added in GLFW 3.1. - * - * @ingroup window - */ -GLFWAPI void glfwPostEmptyEvent(void); - -/*! @brief Returns the value of an input option for the specified window. - * - * This function returns the value of an input option for the specified window. - * The mode must be one of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * @param[in] window The window to query. - * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa glfwSetInputMode - * - * @since Added in GLFW 3.0. - * - * @ingroup input - */ -GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode); - -/*! @brief Sets an input option for the specified window. - * - * This function sets an input mode option for the specified window. The mode - * must be one of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * If the mode is `GLFW_CURSOR`, the value must be one of the following cursor - * modes: - * - `GLFW_CURSOR_NORMAL` makes the cursor visible and behaving normally. - * - `GLFW_CURSOR_HIDDEN` makes the cursor invisible when it is over the client - * area of the window but does not restrict the cursor from leaving. - * - `GLFW_CURSOR_DISABLED` hides and grabs the cursor, providing virtual - * and unlimited cursor movement. This is useful for implementing for - * example 3D camera controls. - * - * If the mode is `GLFW_STICKY_KEYS`, the value must be either `GL_TRUE` to - * enable sticky keys, or `GL_FALSE` to disable it. If sticky keys are - * enabled, a key press will ensure that @ref glfwGetKey returns `GLFW_PRESS` - * the next time it is called even if the key had been released before the - * call. This is useful when you are only interested in whether keys have been - * pressed but not when or in which order. - * - * If the mode is `GLFW_STICKY_MOUSE_BUTTONS`, the value must be either - * `GL_TRUE` to enable sticky mouse buttons, or `GL_FALSE` to disable it. If - * sticky mouse buttons are enabled, a mouse button press will ensure that @ref - * glfwGetMouseButton returns `GLFW_PRESS` the next time it is called even if - * the mouse button had been released before the call. This is useful when you - * are only interested in whether mouse buttons have been pressed but not when - * or in which order. - * - * @param[in] window The window whose input mode to set. - * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * @param[in] value The new value of the specified input mode. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa glfwGetInputMode - * - * @since Added in GLFW 3.0. Replaces `glfwEnable` and `glfwDisable`. - * - * @ingroup input - */ -GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value); - -/*! @brief Returns the last reported state of a keyboard key for the specified - * window. - * - * This function returns the last state reported for the specified key to the - * specified window. The returned state is one of `GLFW_PRESS` or - * `GLFW_RELEASE`. The higher-level action `GLFW_REPEAT` is only reported to - * the key callback. - * - * If the `GLFW_STICKY_KEYS` input mode is enabled, this function returns - * `GLFW_PRESS` the first time you call it for a key that was pressed, even if - * that key has already been released. - * - * The key functions deal with physical keys, with [key tokens](@ref keys) - * named after their use on the standard US keyboard layout. If you want to - * input text, use the Unicode character callback instead. - * - * The [modifier key bit masks](@ref mods) are not key tokens and cannot be - * used with this function. - * - * @param[in] window The desired window. - * @param[in] key The desired [keyboard key](@ref keys). `GLFW_KEY_UNKNOWN` is - * not a valid key for this function. - * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref input_key - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup input - */ -GLFWAPI int glfwGetKey(GLFWwindow* window, int key); - -/*! @brief Returns the last reported state of a mouse button for the specified - * window. - * - * This function returns the last state reported for the specified mouse button - * to the specified window. The returned state is one of `GLFW_PRESS` or - * `GLFW_RELEASE`. - * - * If the `GLFW_STICKY_MOUSE_BUTTONS` input mode is enabled, this function - * `GLFW_PRESS` the first time you call it for a mouse button that was pressed, - * even if that mouse button has already been released. - * - * @param[in] window The desired window. - * @param[in] button The desired [mouse button](@ref buttons). - * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref input_mouse_button - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup input - */ -GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); - -/*! @brief Retrieves the position of the cursor relative to the client area of - * the window. - * - * This function returns the position of the cursor, in screen coordinates, - * relative to the upper-left corner of the client area of the specified - * window. - * - * If the cursor is disabled (with `GLFW_CURSOR_DISABLED`) then the cursor - * position is unbounded and limited only by the minimum and maximum values of - * a `double`. - * - * The coordinate can be converted to their integer equivalents with the - * `floor` function. Casting directly to an integer type works for positive - * coordinates, but fails for negative ones. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] window The desired window. - * @param[out] xpos Where to store the cursor x-coordinate, relative to the - * left edge of the client area, or `NULL`. - * @param[out] ypos Where to store the cursor y-coordinate, relative to the to - * top edge of the client area, or `NULL`. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref cursor_pos - * @sa glfwSetCursorPos - * - * @since Added in GLFW 3.0. Replaces `glfwGetMousePos`. - * - * @ingroup input - */ -GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos); - -/*! @brief Sets the position of the cursor, relative to the client area of the - * window. - * - * This function sets the position, in screen coordinates, of the cursor - * relative to the upper-left corner of the client area of the specified - * window. The window must have input focus. If the window does not have - * input focus when this function is called, it fails silently. - * - * __Do not use this function__ to implement things like camera controls. GLFW - * already provides the `GLFW_CURSOR_DISABLED` cursor mode that hides the - * cursor, transparently re-centers it and provides unconstrained cursor - * motion. See @ref glfwSetInputMode for more information. - * - * If the cursor mode is `GLFW_CURSOR_DISABLED` then the cursor position is - * unconstrained and limited only by the minimum and maximum values of - * a `double`. - * - * @param[in] window The desired window. - * @param[in] xpos The desired x-coordinate, relative to the left edge of the - * client area. - * @param[in] ypos The desired y-coordinate, relative to the top edge of the - * client area. - * - * @remarks __X11:__ Due to the asynchronous nature of X11, it may take - * a moment for the window focus event to arrive. This means you may not be - * able to set the cursor position directly after window creation. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref cursor_pos - * @sa glfwGetCursorPos - * - * @since Added in GLFW 3.0. Replaces `glfwSetMousePos`. - * - * @ingroup input - */ -GLFWAPI void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos); - -/*! @brief Creates a custom cursor. - * - * Creates a new custom cursor image that can be set for a window with @ref - * glfwSetCursor. The cursor can be destroyed with @ref glfwDestroyCursor. - * Any remaining cursors are destroyed by @ref glfwTerminate. - * - * The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight - * bits per channel. They are arranged canonically as packed sequential rows, - * starting from the top-left corner. - * - * The cursor hotspot is specified in pixels, relative to the upper-left corner - * of the cursor image. Like all other coordinate systems in GLFW, the X-axis - * points to the right and the Y-axis points down. - * - * @param[in] image The desired cursor image. - * @param[in] xhot The desired x-coordinate, in pixels, of the cursor hotspot. - * @param[in] yhot The desired y-coordinate, in pixels, of the cursor hotspot. - * - * @return The handle of the created cursor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Pointer Lifetime - * The specified image data is copied before this function returns. - * - * @par Reentrancy - * This function may not be called from a callback. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwDestroyCursor - * @sa glfwCreateStandardCursor - * - * @since Added in GLFW 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot); - -/*! @brief Creates a cursor with a standard shape. - * - * Returns a cursor with a [standard shape](@ref shapes), that can be set for - * a window with @ref glfwSetCursor. - * - * @param[in] shape One of the [standard shapes](@ref shapes). - * - * @return A new cursor ready to use or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Reentrancy - * This function may not be called from a callback. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwCreateCursor - * - * @since Added in GLFW 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape); - -/*! @brief Destroys a cursor. - * - * This function destroys a cursor previously created with @ref - * glfwCreateCursor. Any remaining cursors will be destroyed by @ref - * glfwTerminate. - * - * @param[in] cursor The cursor object to destroy. - * - * @par Reentrancy - * This function may not be called from a callback. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwCreateCursor - * - * @since Added in GLFW 3.1. - * - * @ingroup input - */ -GLFWAPI void glfwDestroyCursor(GLFWcursor* cursor); - -/*! @brief Sets the cursor for the window. - * - * This function sets the cursor image to be used when the cursor is over the - * client area of the specified window. The set cursor will only be visible - * when the [cursor mode](@ref cursor_mode) of the window is - * `GLFW_CURSOR_NORMAL`. - * - * On some platforms, the set cursor may not be visible unless the window also - * has input focus. - * - * @param[in] window The window to set the cursor for. - * @param[in] cursor The cursor to set, or `NULL` to switch back to the default - * arrow cursor. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref cursor_object - * - * @since Added in GLFW 3.1. - * - * @ingroup input - */ -GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor); - -/*! @brief Sets the key callback. - * - * This function sets the key callback of the specified window, which is called - * when a key is pressed, repeated or released. - * - * The key functions deal with physical keys, with layout independent - * [key tokens](@ref keys) named after their values in the standard US keyboard - * layout. If you want to input text, use the - * [character callback](@ref glfwSetCharCallback) instead. - * - * When a window loses input focus, it will generate synthetic key release - * events for all pressed keys. You can tell these events from user-generated - * events by the fact that the synthetic ones are generated after the focus - * loss event has been processed, i.e. after the - * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. - * - * The scancode of a key is specific to that platform or sometimes even to that - * machine. Scancodes are intended to allow users to bind keys that don't have - * a GLFW key token. Such keys have `key` set to `GLFW_KEY_UNKNOWN`, their - * state is not saved and so it cannot be queried with @ref glfwGetKey. - * - * Sometimes GLFW needs to generate synthetic key events, in which case the - * scancode may be zero. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new key callback, or `NULL` to remove the currently - * set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref input_key - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. Updated callback signature. - * - * @ingroup input - */ -GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun cbfun); - -/*! @brief Sets the Unicode character callback. - * - * This function sets the character callback of the specified window, which is - * called when a Unicode character is input. - * - * The character callback is intended for Unicode text input. As it deals with - * characters, it is keyboard layout dependent, whereas the - * [key callback](@ref glfwSetKeyCallback) is not. Characters do not map 1:1 - * to physical keys, as a key may produce zero, one or more characters. If you - * want to know whether a specific physical key was pressed or released, see - * the key callback instead. - * - * The character callback behaves as system text input normally does and will - * not be called if modifier keys are held down that would prevent normal text - * input on that platform, for example a Super (Command) key on OS X or Alt key - * on Windows. There is a - * [character with modifiers callback](@ref glfwSetCharModsCallback) that - * receives these events. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref input_char - * - * @since Added in GLFW 2.4. - * - * @par - * __GLFW 3:__ Added window handle parameter. Updated callback signature. - * - * @ingroup input - */ -GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun cbfun); - -/*! @brief Sets the Unicode character with modifiers callback. - * - * This function sets the character with modifiers callback of the specified - * window, which is called when a Unicode character is input regardless of what - * modifier keys are used. - * - * The character with modifiers callback is intended for implementing custom - * Unicode character input. For regular Unicode text input, see the - * [character callback](@ref glfwSetCharCallback). Like the character - * callback, the character with modifiers callback deals with characters and is - * keyboard layout dependent. Characters do not map 1:1 to physical keys, as - * a key may produce zero, one or more characters. If you want to know whether - * a specific physical key was pressed or released, see the - * [key callback](@ref glfwSetKeyCallback) instead. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or an - * error occurred. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref input_char - * - * @since Added in GLFW 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmodsfun cbfun); - -/*! @brief Sets the mouse button callback. - * - * This function sets the mouse button callback of the specified window, which - * is called when a mouse button is pressed or released. - * - * When a window loses input focus, it will generate synthetic mouse button - * release events for all pressed mouse buttons. You can tell these events - * from user-generated events by the fact that the synthetic ones are generated - * after the focus loss event has been processed, i.e. after the - * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref input_mouse_button - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. Updated callback signature. - * - * @ingroup input - */ -GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmousebuttonfun cbfun); - -/*! @brief Sets the cursor position callback. - * - * This function sets the cursor position callback of the specified window, - * which is called when the cursor is moved. The callback is provided with the - * position, in screen coordinates, relative to the upper-left corner of the - * client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref cursor_pos - * - * @since Added in GLFW 3.0. Replaces `glfwSetMousePosCallback`. - * - * @ingroup input - */ -GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursorposfun cbfun); - -/*! @brief Sets the cursor enter/exit callback. - * - * This function sets the cursor boundary crossing callback of the specified - * window, which is called when the cursor enters or leaves the client area of - * the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref cursor_enter - * - * @since Added in GLFW 3.0. - * - * @ingroup input - */ -GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcursorenterfun cbfun); - -/*! @brief Sets the scroll callback. - * - * This function sets the scroll callback of the specified window, which is - * called when a scrolling device is used, such as a mouse wheel or scrolling - * area of a touchpad. - * - * The scroll callback receives all scrolling input, like that from a mouse - * wheel or a touchpad scrolling area. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new scroll callback, or `NULL` to remove the currently - * set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref scrolling - * - * @since Added in GLFW 3.0. Replaces `glfwSetMouseWheelCallback`. - * - * @ingroup input - */ -GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun cbfun); - -/*! @brief Sets the file drop callback. - * - * This function sets the file drop callback of the specified window, which is - * called when one or more dragged files are dropped on the window. - * - * Because the path array and its strings may have been generated specifically - * for that event, they are not guaranteed to be valid after the callback has - * returned. If you wish to use them after the callback returns, you need to - * make a deep copy. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new file drop callback, or `NULL` to remove the - * currently set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref path_drop - * - * @since Added in GLFW 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun cbfun); - -/*! @brief Returns whether the specified joystick is present. - * - * This function returns whether the specified joystick is present. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @return `GL_TRUE` if the joystick is present, or `GL_FALSE` otherwise. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref joystick - * - * @since Added in GLFW 3.0. Replaces `glfwGetJoystickParam`. - * - * @ingroup input - */ -GLFWAPI int glfwJoystickPresent(int joy); - -/*! @brief Returns the values of all axes of the specified joystick. - * - * This function returns the values of all axes of the specified joystick. - * Each element in the array is a value between -1.0 and 1.0. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @param[out] count Where to store the number of axis values in the returned - * array. This is set to zero if an error occurred. - * @return An array of axis values, or `NULL` if the joystick is not present. - * - * @par Pointer Lifetime - * The returned array is allocated and freed by GLFW. You should not free it - * yourself. It is valid until the specified joystick is disconnected, this - * function is called again for that joystick or the library is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref joystick_axis - * - * @since Added in GLFW 3.0. Replaces `glfwGetJoystickPos`. - * - * @ingroup input - */ -GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count); - -/*! @brief Returns the state of all buttons of the specified joystick. - * - * This function returns the state of all buttons of the specified joystick. - * Each element in the array is either `GLFW_PRESS` or `GLFW_RELEASE`. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @param[out] count Where to store the number of button states in the returned - * array. This is set to zero if an error occurred. - * @return An array of button states, or `NULL` if the joystick is not present. - * - * @par Pointer Lifetime - * The returned array is allocated and freed by GLFW. You should not free it - * yourself. It is valid until the specified joystick is disconnected, this - * function is called again for that joystick or the library is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref joystick_button - * - * @since Added in GLFW 2.2. - * - * @par - * __GLFW 3:__ Changed to return a dynamic array. - * - * @ingroup input - */ -GLFWAPI const unsigned char* glfwGetJoystickButtons(int joy, int* count); - -/*! @brief Returns the name of the specified joystick. - * - * This function returns the name, encoded as UTF-8, of the specified joystick. - * The returned string is allocated and freed by GLFW. You should not free it - * yourself. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @return The UTF-8 encoded name of the joystick, or `NULL` if the joystick - * is not present. - * - * @par Pointer Lifetime - * The returned string is allocated and freed by GLFW. You should not free it - * yourself. It is valid until the specified joystick is disconnected, this - * function is called again for that joystick or the library is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref joystick_name - * - * @since Added in GLFW 3.0. - * - * @ingroup input - */ -GLFWAPI const char* glfwGetJoystickName(int joy); - -/*! @brief Sets the clipboard to the specified string. - * - * This function sets the system clipboard to the specified, UTF-8 encoded - * string. - * - * @param[in] window The window that will own the clipboard contents. - * @param[in] string A UTF-8 encoded string. - * - * @par Pointer Lifetime - * The specified string is copied before this function returns. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref clipboard - * @sa glfwGetClipboardString - * - * @since Added in GLFW 3.0. - * - * @ingroup input - */ -GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string); - -/*! @brief Returns the contents of the clipboard as a string. - * - * This function returns the contents of the system clipboard, if it contains - * or is convertible to a UTF-8 encoded string. If the clipboard is empty or - * if its contents cannot be converted, `NULL` is returned and a @ref - * GLFW_FORMAT_UNAVAILABLE error is generated. - * - * @param[in] window The window that will request the clipboard contents. - * @return The contents of the clipboard as a UTF-8 encoded string, or `NULL` - * if an [error](@ref error_handling) occurred. - * - * @par Pointer Lifetime - * The returned string is allocated and freed by GLFW. You should not free it - * yourself. It is valid until the next call to @ref - * glfwGetClipboardString or @ref glfwSetClipboardString, or until the library - * is terminated. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref clipboard - * @sa glfwSetClipboardString - * - * @since Added in GLFW 3.0. - * - * @ingroup input - */ -GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window); - -/*! @brief Returns the value of the GLFW timer. - * - * This function returns the value of the GLFW timer. Unless the timer has - * been set using @ref glfwSetTime, the timer measures time elapsed since GLFW - * was initialized. - * - * The resolution of the timer is system dependent, but is usually on the order - * of a few micro- or nanoseconds. It uses the highest-resolution monotonic - * time source on each supported platform. - * - * @return The current value, in seconds, or zero if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @sa @ref time - * - * @since Added in GLFW 1.0. - * - * @ingroup input - */ -GLFWAPI double glfwGetTime(void); - -/*! @brief Sets the GLFW timer. - * - * This function sets the value of the GLFW timer. It then continues to count - * up from that value. The value must be a positive finite number less than - * or equal to 18446744073.0, which is approximately 584.5 years. - * - * @param[in] time The new value, in seconds. - * - * @remarks The upper limit of the timer is calculated as - * floor((264 - 1) / 109) and is due to implementations - * storing nanoseconds in 64 bits. The limit may be increased in the future. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref time - * - * @since Added in GLFW 2.2. - * - * @ingroup input - */ -GLFWAPI void glfwSetTime(double time); - -/*! @brief Makes the context of the specified window current for the calling - * thread. - * - * This function makes the OpenGL or OpenGL ES context of the specified window - * current on the calling thread. A context can only be made current on - * a single thread at a time and each thread can have only a single current - * context at a time. - * - * By default, making a context non-current implicitly forces a pipeline flush. - * On machines that support `GL_KHR_context_flush_control`, you can control - * whether a context performs this flush by setting the - * [GLFW_CONTEXT_RELEASE_BEHAVIOR](@ref window_hints_ctx) window hint. - * - * @param[in] window The window whose context to make current, or `NULL` to - * detach the current context. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref context_current - * @sa glfwGetCurrentContext - * - * @since Added in GLFW 3.0. - * - * @ingroup context - */ -GLFWAPI void glfwMakeContextCurrent(GLFWwindow* window); - -/*! @brief Returns the window whose context is current on the calling thread. - * - * This function returns the window whose OpenGL or OpenGL ES context is - * current on the calling thread. - * - * @return The window whose context is current, or `NULL` if no window's - * context is current. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref context_current - * @sa glfwMakeContextCurrent - * - * @since Added in GLFW 3.0. - * - * @ingroup context - */ -GLFWAPI GLFWwindow* glfwGetCurrentContext(void); - -/*! @brief Swaps the front and back buffers of the specified window. - * - * This function swaps the front and back buffers of the specified window. If - * the swap interval is greater than zero, the GPU driver waits the specified - * number of screen updates before swapping the buffers. - * - * @param[in] window The window whose buffers to swap. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref buffer_swap - * @sa glfwSwapInterval - * - * @since Added in GLFW 1.0. - * - * @par - * __GLFW 3:__ Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSwapBuffers(GLFWwindow* window); - -/*! @brief Sets the swap interval for the current context. - * - * This function sets the swap interval for the current context, i.e. the - * number of screen updates to wait from the time @ref glfwSwapBuffers was - * called before swapping the buffers and returning. This is sometimes called - * _vertical synchronization_, _vertical retrace synchronization_ or just - * _vsync_. - * - * Contexts that support either of the `WGL_EXT_swap_control_tear` and - * `GLX_EXT_swap_control_tear` extensions also accept negative swap intervals, - * which allow the driver to swap even if a frame arrives a little bit late. - * You can check for the presence of these extensions using @ref - * glfwExtensionSupported. For more information about swap tearing, see the - * extension specifications. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * @param[in] interval The minimum number of screen updates to wait for - * until the buffers are swapped by @ref glfwSwapBuffers. - * - * @remarks This function is not called during context creation, leaving the - * swap interval set to whatever is the default on that platform. This is done - * because some swap interval extensions used by GLFW do not allow the swap - * interval to be reset to zero once it has been set to a non-zero value. - * - * @remarks Some GPU drivers do not honor the requested swap interval, either - * because of a user setting that overrides the application's request or due to - * bugs in the driver. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref buffer_swap - * @sa glfwSwapBuffers - * - * @since Added in GLFW 1.0. - * - * @ingroup context - */ -GLFWAPI void glfwSwapInterval(int interval); - -/*! @brief Returns whether the specified extension is available. - * - * This function returns whether the specified - * [client API extension](@ref context_glext) is supported by the current - * OpenGL or OpenGL ES context. It searches both for OpenGL and OpenGL ES - * extension and platform-specific context creation API extensions. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * As this functions retrieves and searches one or more extension strings each - * call, it is recommended that you cache its results if it is going to be used - * frequently. The extension strings will not change during the lifetime of - * a context, so there is no danger in doing this. - * - * @param[in] extension The ASCII encoded name of the extension. - * @return `GL_TRUE` if the extension is available, or `GL_FALSE` otherwise. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref context_glext - * @sa glfwGetProcAddress - * - * @since Added in GLFW 1.0. - * - * @ingroup context - */ -GLFWAPI int glfwExtensionSupported(const char* extension); - -/*! @brief Returns the address of the specified function for the current - * context. - * - * This function returns the address of the specified - * [core or extension function](@ref context_glext), if it is supported - * by the current context. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * @param[in] procname The ASCII encoded name of the function. - * @return The address of the function, or `NULL` if an [error](@ref - * error_handling) occurred. - * - * @remarks The address of a given function is not guaranteed to be the same - * between contexts. - * - * @remarks This function may return a non-`NULL` address despite the - * associated version or extension not being available. Always check the - * context version or extension string first. - * - * @par Pointer Lifetime - * The returned function pointer is valid until the context is destroyed or the - * library is terminated. - * - * @par Thread Safety - * This function may be called from any thread. - * - * @sa @ref context_glext - * @sa glfwExtensionSupported - * - * @since Added in GLFW 1.0. - * - * @ingroup context - */ -GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname); - - -/************************************************************************* - * Global definition cleanup - *************************************************************************/ - -/* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */ - -#ifdef GLFW_WINGDIAPI_DEFINED - #undef WINGDIAPI - #undef GLFW_WINGDIAPI_DEFINED -#endif - -#ifdef GLFW_CALLBACK_DEFINED - #undef CALLBACK - #undef GLFW_CALLBACK_DEFINED -#endif - -/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */ - - -#ifdef __cplusplus -} -#endif - -#endif /* _glfw3_h_ */ - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/include/GLFW/glfw3native.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/include/GLFW/glfw3native.h deleted file mode 100644 index b3ce748..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/include/GLFW/glfw3native.h +++ /dev/null @@ -1,356 +0,0 @@ -/************************************************************************* - * GLFW 3.1 - www.glfw.org - * A library for OpenGL, window and input - *------------------------------------------------------------------------ - * Copyright (c) 2002-2006 Marcus Geelnard - * Copyright (c) 2006-2010 Camilla Berglund - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would - * be appreciated but is not required. - * - * 2. Altered source versions must be plainly marked as such, and must not - * be misrepresented as being the original software. - * - * 3. This notice may not be removed or altered from any source - * distribution. - * - *************************************************************************/ - -#ifndef _glfw3_native_h_ -#define _glfw3_native_h_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/************************************************************************* - * Doxygen documentation - *************************************************************************/ - -/*! @defgroup native Native access - * - * **By using the native access functions you assert that you know what you're - * doing and how to fix problems caused by using them. If you don't, you - * shouldn't be using them.** - * - * Before the inclusion of @ref glfw3native.h, you must define exactly one - * window system API macro and exactly one context creation API macro. Failure - * to do this will cause a compile-time error. - * - * The available window API macros are: - * * `GLFW_EXPOSE_NATIVE_WIN32` - * * `GLFW_EXPOSE_NATIVE_COCOA` - * * `GLFW_EXPOSE_NATIVE_X11` - * - * The available context API macros are: - * * `GLFW_EXPOSE_NATIVE_WGL` - * * `GLFW_EXPOSE_NATIVE_NSGL` - * * `GLFW_EXPOSE_NATIVE_GLX` - * * `GLFW_EXPOSE_NATIVE_EGL` - * - * These macros select which of the native access functions that are declared - * and which platform-specific headers to include. It is then up your (by - * definition platform-specific) code to handle which of these should be - * defined. - */ - - -/************************************************************************* - * System headers and types - *************************************************************************/ - -#if defined(GLFW_EXPOSE_NATIVE_WIN32) - // This is a workaround for the fact that glfw3.h needs to export APIENTRY (for - // example to allow applications to correctly declare a GL_ARB_debug_output - // callback) but windows.h assumes no one will define APIENTRY before it does - #undef APIENTRY - #include -#elif defined(GLFW_EXPOSE_NATIVE_COCOA) - #include - #if defined(__OBJC__) - #import - #else - typedef void* id; - #endif -#elif defined(GLFW_EXPOSE_NATIVE_X11) - #include - #include -#else - #error "No window API selected" -#endif - -#if defined(GLFW_EXPOSE_NATIVE_WGL) - /* WGL is declared by windows.h */ -#elif defined(GLFW_EXPOSE_NATIVE_NSGL) - /* NSGL is declared by Cocoa.h */ -#elif defined(GLFW_EXPOSE_NATIVE_GLX) - #include -#elif defined(GLFW_EXPOSE_NATIVE_EGL) - #include -#else - #error "No context API selected" -#endif - - -/************************************************************************* - * Functions - *************************************************************************/ - -#if defined(GLFW_EXPOSE_NATIVE_WIN32) -/*! @brief Returns the adapter device name of the specified monitor. - * - * @return The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`) - * of the specified monitor, or `NULL` if an [error](@ref error_handling) - * occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.1. - * - * @ingroup native - */ -GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor); - -/*! @brief Returns the display device name of the specified monitor. - * - * @return The UTF-8 encoded display device name (for example - * `\\.\DISPLAY1\Monitor0`) of the specified monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.1. - * - * @ingroup native - */ -GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor); - -/*! @brief Returns the `HWND` of the specified window. - * - * @return The `HWND` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_WGL) -/*! @brief Returns the `HGLRC` of the specified window. - * - * @return The `HGLRC` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_COCOA) -/*! @brief Returns the `CGDirectDisplayID` of the specified monitor. - * - * @return The `CGDirectDisplayID` of the specified monitor, or - * `kCGNullDirectDisplay` if an [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.1. - * - * @ingroup native - */ -GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor); - -/*! @brief Returns the `NSWindow` of the specified window. - * - * @return The `NSWindow` of the specified window, or `nil` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_NSGL) -/*! @brief Returns the `NSOpenGLContext` of the specified window. - * - * @return The `NSOpenGLContext` of the specified window, or `nil` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI id glfwGetNSGLContext(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_X11) -/*! @brief Returns the `Display` used by GLFW. - * - * @return The `Display` used by GLFW, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI Display* glfwGetX11Display(void); - -/*! @brief Returns the `RRCrtc` of the specified monitor. - * - * @return The `RRCrtc` of the specified monitor, or `None` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.1. - * - * @ingroup native - */ -GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor); - -/*! @brief Returns the `RROutput` of the specified monitor. - * - * @return The `RROutput` of the specified monitor, or `None` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.1. - * - * @ingroup native - */ -GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor); - -/*! @brief Returns the `Window` of the specified window. - * - * @return The `Window` of the specified window, or `None` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI Window glfwGetX11Window(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_GLX) -/*! @brief Returns the `GLXContext` of the specified window. - * - * @return The `GLXContext` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_EGL) -/*! @brief Returns the `EGLDisplay` used by GLFW. - * - * @return The `EGLDisplay` used by GLFW, or `EGL_NO_DISPLAY` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI EGLDisplay glfwGetEGLDisplay(void); - -/*! @brief Returns the `EGLContext` of the specified window. - * - * @return The `EGLContext` of the specified window, or `EGL_NO_CONTEXT` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window); - -/*! @brief Returns the `EGLSurface` of the specified window. - * - * @return The `EGLSurface` of the specified window, or `EGL_NO_SURFACE` if an - * [error](@ref error_handling) occurred. - * - * @par Thread Safety - * This function may be called from any thread. Access is not synchronized. - * - * @par History - * Added in GLFW 3.0. - * - * @ingroup native - */ -GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _glfw3_native_h_ */ - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_init.m b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_init.m deleted file mode 100644 index 8bb6b42..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_init.m +++ /dev/null @@ -1,270 +0,0 @@ -//======================================================================== -// GLFW 3.1 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" -#include // For MAXPATHLEN - - -#if defined(_GLFW_USE_CHDIR) - -// Change to our application bundle's resources directory, if present -// -static void changeToResourcesDirectory(void) -{ - char resourcesPath[MAXPATHLEN]; - - CFBundleRef bundle = CFBundleGetMainBundle(); - if (!bundle) - return; - - CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(bundle); - - CFStringRef last = CFURLCopyLastPathComponent(resourcesURL); - if (CFStringCompare(CFSTR("Resources"), last, 0) != kCFCompareEqualTo) - { - CFRelease(last); - CFRelease(resourcesURL); - return; - } - - CFRelease(last); - - if (!CFURLGetFileSystemRepresentation(resourcesURL, - true, - (UInt8*) resourcesPath, - MAXPATHLEN)) - { - CFRelease(resourcesURL); - return; - } - - CFRelease(resourcesURL); - - chdir(resourcesPath); -} - -#endif /* _GLFW_USE_CHDIR */ - -// Create key code translation tables -// -static void createKeyTables(void) -{ - memset(_glfw.ns.publicKeys, -1, sizeof(_glfw.ns.publicKeys)); - - _glfw.ns.publicKeys[0x1D] = GLFW_KEY_0; - _glfw.ns.publicKeys[0x12] = GLFW_KEY_1; - _glfw.ns.publicKeys[0x13] = GLFW_KEY_2; - _glfw.ns.publicKeys[0x14] = GLFW_KEY_3; - _glfw.ns.publicKeys[0x15] = GLFW_KEY_4; - _glfw.ns.publicKeys[0x17] = GLFW_KEY_5; - _glfw.ns.publicKeys[0x16] = GLFW_KEY_6; - _glfw.ns.publicKeys[0x1A] = GLFW_KEY_7; - _glfw.ns.publicKeys[0x1C] = GLFW_KEY_8; - _glfw.ns.publicKeys[0x19] = GLFW_KEY_9; - _glfw.ns.publicKeys[0x00] = GLFW_KEY_A; - _glfw.ns.publicKeys[0x0B] = GLFW_KEY_B; - _glfw.ns.publicKeys[0x08] = GLFW_KEY_C; - _glfw.ns.publicKeys[0x02] = GLFW_KEY_D; - _glfw.ns.publicKeys[0x0E] = GLFW_KEY_E; - _glfw.ns.publicKeys[0x03] = GLFW_KEY_F; - _glfw.ns.publicKeys[0x05] = GLFW_KEY_G; - _glfw.ns.publicKeys[0x04] = GLFW_KEY_H; - _glfw.ns.publicKeys[0x22] = GLFW_KEY_I; - _glfw.ns.publicKeys[0x26] = GLFW_KEY_J; - _glfw.ns.publicKeys[0x28] = GLFW_KEY_K; - _glfw.ns.publicKeys[0x25] = GLFW_KEY_L; - _glfw.ns.publicKeys[0x2E] = GLFW_KEY_M; - _glfw.ns.publicKeys[0x2D] = GLFW_KEY_N; - _glfw.ns.publicKeys[0x1F] = GLFW_KEY_O; - _glfw.ns.publicKeys[0x23] = GLFW_KEY_P; - _glfw.ns.publicKeys[0x0C] = GLFW_KEY_Q; - _glfw.ns.publicKeys[0x0F] = GLFW_KEY_R; - _glfw.ns.publicKeys[0x01] = GLFW_KEY_S; - _glfw.ns.publicKeys[0x11] = GLFW_KEY_T; - _glfw.ns.publicKeys[0x20] = GLFW_KEY_U; - _glfw.ns.publicKeys[0x09] = GLFW_KEY_V; - _glfw.ns.publicKeys[0x0D] = GLFW_KEY_W; - _glfw.ns.publicKeys[0x07] = GLFW_KEY_X; - _glfw.ns.publicKeys[0x10] = GLFW_KEY_Y; - _glfw.ns.publicKeys[0x06] = GLFW_KEY_Z; - - _glfw.ns.publicKeys[0x27] = GLFW_KEY_APOSTROPHE; - _glfw.ns.publicKeys[0x2A] = GLFW_KEY_BACKSLASH; - _glfw.ns.publicKeys[0x2B] = GLFW_KEY_COMMA; - _glfw.ns.publicKeys[0x18] = GLFW_KEY_EQUAL; - _glfw.ns.publicKeys[0x32] = GLFW_KEY_GRAVE_ACCENT; - _glfw.ns.publicKeys[0x21] = GLFW_KEY_LEFT_BRACKET; - _glfw.ns.publicKeys[0x1B] = GLFW_KEY_MINUS; - _glfw.ns.publicKeys[0x2F] = GLFW_KEY_PERIOD; - _glfw.ns.publicKeys[0x1E] = GLFW_KEY_RIGHT_BRACKET; - _glfw.ns.publicKeys[0x29] = GLFW_KEY_SEMICOLON; - _glfw.ns.publicKeys[0x2C] = GLFW_KEY_SLASH; - _glfw.ns.publicKeys[0x0A] = GLFW_KEY_WORLD_1; - - _glfw.ns.publicKeys[0x33] = GLFW_KEY_BACKSPACE; - _glfw.ns.publicKeys[0x39] = GLFW_KEY_CAPS_LOCK; - _glfw.ns.publicKeys[0x75] = GLFW_KEY_DELETE; - _glfw.ns.publicKeys[0x7D] = GLFW_KEY_DOWN; - _glfw.ns.publicKeys[0x77] = GLFW_KEY_END; - _glfw.ns.publicKeys[0x24] = GLFW_KEY_ENTER; - _glfw.ns.publicKeys[0x35] = GLFW_KEY_ESCAPE; - _glfw.ns.publicKeys[0x7A] = GLFW_KEY_F1; - _glfw.ns.publicKeys[0x78] = GLFW_KEY_F2; - _glfw.ns.publicKeys[0x63] = GLFW_KEY_F3; - _glfw.ns.publicKeys[0x76] = GLFW_KEY_F4; - _glfw.ns.publicKeys[0x60] = GLFW_KEY_F5; - _glfw.ns.publicKeys[0x61] = GLFW_KEY_F6; - _glfw.ns.publicKeys[0x62] = GLFW_KEY_F7; - _glfw.ns.publicKeys[0x64] = GLFW_KEY_F8; - _glfw.ns.publicKeys[0x65] = GLFW_KEY_F9; - _glfw.ns.publicKeys[0x6D] = GLFW_KEY_F10; - _glfw.ns.publicKeys[0x67] = GLFW_KEY_F11; - _glfw.ns.publicKeys[0x6F] = GLFW_KEY_F12; - _glfw.ns.publicKeys[0x69] = GLFW_KEY_F13; - _glfw.ns.publicKeys[0x6B] = GLFW_KEY_F14; - _glfw.ns.publicKeys[0x71] = GLFW_KEY_F15; - _glfw.ns.publicKeys[0x6A] = GLFW_KEY_F16; - _glfw.ns.publicKeys[0x40] = GLFW_KEY_F17; - _glfw.ns.publicKeys[0x4F] = GLFW_KEY_F18; - _glfw.ns.publicKeys[0x50] = GLFW_KEY_F19; - _glfw.ns.publicKeys[0x5A] = GLFW_KEY_F20; - _glfw.ns.publicKeys[0x73] = GLFW_KEY_HOME; - _glfw.ns.publicKeys[0x72] = GLFW_KEY_INSERT; - _glfw.ns.publicKeys[0x7B] = GLFW_KEY_LEFT; - _glfw.ns.publicKeys[0x3A] = GLFW_KEY_LEFT_ALT; - _glfw.ns.publicKeys[0x3B] = GLFW_KEY_LEFT_CONTROL; - _glfw.ns.publicKeys[0x38] = GLFW_KEY_LEFT_SHIFT; - _glfw.ns.publicKeys[0x37] = GLFW_KEY_LEFT_SUPER; - _glfw.ns.publicKeys[0x6E] = GLFW_KEY_MENU; - _glfw.ns.publicKeys[0x47] = GLFW_KEY_NUM_LOCK; - _glfw.ns.publicKeys[0x79] = GLFW_KEY_PAGE_DOWN; - _glfw.ns.publicKeys[0x74] = GLFW_KEY_PAGE_UP; - _glfw.ns.publicKeys[0x7C] = GLFW_KEY_RIGHT; - _glfw.ns.publicKeys[0x3D] = GLFW_KEY_RIGHT_ALT; - _glfw.ns.publicKeys[0x3E] = GLFW_KEY_RIGHT_CONTROL; - _glfw.ns.publicKeys[0x3C] = GLFW_KEY_RIGHT_SHIFT; - _glfw.ns.publicKeys[0x36] = GLFW_KEY_RIGHT_SUPER; - _glfw.ns.publicKeys[0x31] = GLFW_KEY_SPACE; - _glfw.ns.publicKeys[0x30] = GLFW_KEY_TAB; - _glfw.ns.publicKeys[0x7E] = GLFW_KEY_UP; - - _glfw.ns.publicKeys[0x52] = GLFW_KEY_KP_0; - _glfw.ns.publicKeys[0x53] = GLFW_KEY_KP_1; - _glfw.ns.publicKeys[0x54] = GLFW_KEY_KP_2; - _glfw.ns.publicKeys[0x55] = GLFW_KEY_KP_3; - _glfw.ns.publicKeys[0x56] = GLFW_KEY_KP_4; - _glfw.ns.publicKeys[0x57] = GLFW_KEY_KP_5; - _glfw.ns.publicKeys[0x58] = GLFW_KEY_KP_6; - _glfw.ns.publicKeys[0x59] = GLFW_KEY_KP_7; - _glfw.ns.publicKeys[0x5B] = GLFW_KEY_KP_8; - _glfw.ns.publicKeys[0x5C] = GLFW_KEY_KP_9; - _glfw.ns.publicKeys[0x45] = GLFW_KEY_KP_ADD; - _glfw.ns.publicKeys[0x41] = GLFW_KEY_KP_DECIMAL; - _glfw.ns.publicKeys[0x4B] = GLFW_KEY_KP_DIVIDE; - _glfw.ns.publicKeys[0x4C] = GLFW_KEY_KP_ENTER; - _glfw.ns.publicKeys[0x51] = GLFW_KEY_KP_EQUAL; - _glfw.ns.publicKeys[0x43] = GLFW_KEY_KP_MULTIPLY; - _glfw.ns.publicKeys[0x4E] = GLFW_KEY_KP_SUBTRACT; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - _glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; - -#if defined(_GLFW_USE_CHDIR) - changeToResourcesDirectory(); -#endif - - createKeyTables(); - - _glfw.ns.eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState); - if (!_glfw.ns.eventSource) - return GL_FALSE; - - CGEventSourceSetLocalEventsSuppressionInterval(_glfw.ns.eventSource, 0.0); - - if (!_glfwInitContextAPI()) - return GL_FALSE; - - _glfwInitTimer(); - _glfwInitJoysticks(); - - return GL_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - if (_glfw.ns.eventSource) - { - CFRelease(_glfw.ns.eventSource); - _glfw.ns.eventSource = NULL; - } - - if (_glfw.ns.delegate) - { - [NSApp setDelegate:nil]; - [_glfw.ns.delegate release]; - _glfw.ns.delegate = nil; - } - - [_glfw.ns.autoreleasePool release]; - _glfw.ns.autoreleasePool = nil; - - [_glfw.ns.cursor release]; - _glfw.ns.cursor = nil; - - free(_glfw.ns.clipboardString); - - _glfwTerminateJoysticks(); - _glfwTerminateContextAPI(); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Cocoa" -#if defined(_GLFW_NSGL) - " NSGL" -#endif -#if defined(_GLFW_USE_CHDIR) - " chdir" -#endif -#if defined(_GLFW_USE_MENUBAR) - " menubar" -#endif -#if defined(_GLFW_USE_RETINA) - " retina" -#endif -#if defined(_GLFW_BUILD_DLL) - " dynamic" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_monitor.m b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_monitor.m deleted file mode 100644 index 82409e5..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_monitor.m +++ /dev/null @@ -1,415 +0,0 @@ -//======================================================================== -// GLFW 3.1 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - -#include -#include -#include -#include -#include - - -// Get the name of the specified display -// -static char* getDisplayName(CGDirectDisplayID displayID) -{ - char* name; - CFDictionaryRef info, names; - CFStringRef value; - CFIndex size; - - // NOTE: This uses a deprecated function because Apple has - // (as of January 2015) not provided any alternative - info = IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID), - kIODisplayOnlyPreferredName); - names = CFDictionaryGetValue(info, CFSTR(kDisplayProductName)); - - if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"), - (const void**) &value)) - { - // This may happen if a desktop Mac is running headless - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve display name"); - - CFRelease(info); - return strdup("Unknown"); - } - - size = CFStringGetMaximumSizeForEncoding(CFStringGetLength(value), - kCFStringEncodingUTF8); - name = calloc(size + 1, sizeof(char)); - CFStringGetCString(value, name, size, kCFStringEncodingUTF8); - - CFRelease(info); - - return name; -} - -// Check whether the display mode should be included in enumeration -// -static GLboolean modeIsGood(CGDisplayModeRef mode) -{ - uint32_t flags = CGDisplayModeGetIOFlags(mode); - if (!(flags & kDisplayModeValidFlag) || !(flags & kDisplayModeSafeFlag)) - return GL_FALSE; - - if (flags & kDisplayModeInterlacedFlag) - return GL_FALSE; - - if (flags & kDisplayModeStretchedFlag) - return GL_FALSE; - - CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); - if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) && - CFStringCompare(format, CFSTR(IO32BitDirectPixels), 0)) - { - CFRelease(format); - return GL_FALSE; - } - - CFRelease(format); - return GL_TRUE; -} - -// Convert Core Graphics display mode to GLFW video mode -// -static GLFWvidmode vidmodeFromCGDisplayMode(CGDisplayModeRef mode, - CVDisplayLinkRef link) -{ - GLFWvidmode result; - result.width = (int) CGDisplayModeGetWidth(mode); - result.height = (int) CGDisplayModeGetHeight(mode); - result.refreshRate = (int) CGDisplayModeGetRefreshRate(mode); - - if (result.refreshRate == 0) - { - const CVTime time = CVDisplayLinkGetNominalOutputVideoRefreshPeriod(link); - if (!(time.flags & kCVTimeIsIndefinite)) - result.refreshRate = (int) (time.timeScale / (double) time.timeValue); - } - - CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); - - if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) == 0) - { - result.redBits = 5; - result.greenBits = 5; - result.blueBits = 5; - } - else - { - result.redBits = 8; - result.greenBits = 8; - result.blueBits = 8; - } - - CFRelease(format); - return result; -} - -// Starts reservation for display fading -// -static CGDisplayFadeReservationToken beginFadeReservation(void) -{ - CGDisplayFadeReservationToken token = kCGDisplayFadeReservationInvalidToken; - - if (CGAcquireDisplayFadeReservation(5, &token) == kCGErrorSuccess) - CGDisplayFade(token, 0.3, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0.0, 0.0, 0.0, TRUE); - - return token; -} - -// Ends reservation for display fading -// -static void endFadeReservation(CGDisplayFadeReservationToken token) -{ - if (token != kCGDisplayFadeReservationInvalidToken) - { - CGDisplayFade(token, 0.5, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0.0, 0.0, 0.0, FALSE); - CGReleaseDisplayFadeReservation(token); - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Change the current video mode -// -GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired) -{ - CFArrayRef modes; - CFIndex count, i; - CVDisplayLinkRef link; - CGDisplayModeRef native = NULL; - GLFWvidmode current; - const GLFWvidmode* best; - - best = _glfwChooseVideoMode(monitor, desired); - _glfwPlatformGetVideoMode(monitor, ¤t); - if (_glfwCompareVideoModes(¤t, best) == 0) - return GL_TRUE; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); - count = CFArrayGetCount(modes); - - for (i = 0; i < count; i++) - { - CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); - if (!modeIsGood(dm)) - continue; - - const GLFWvidmode mode = vidmodeFromCGDisplayMode(dm, link); - if (_glfwCompareVideoModes(best, &mode) == 0) - { - native = dm; - break; - } - } - - if (native) - { - if (monitor->ns.previousMode == NULL) - monitor->ns.previousMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); - - CGDisplayFadeReservationToken token = beginFadeReservation(); - CGDisplaySetDisplayMode(monitor->ns.displayID, native, NULL); - endFadeReservation(token); - } - - CFRelease(modes); - CVDisplayLinkRelease(link); - - if (!native) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Monitor mode list changed"); - return GL_FALSE; - } - - return GL_TRUE; -} - -// Restore the previously saved (original) video mode -// -void _glfwRestoreVideoMode(_GLFWmonitor* monitor) -{ - if (monitor->ns.previousMode) - { - CGDisplayFadeReservationToken token = beginFadeReservation(); - CGDisplaySetDisplayMode(monitor->ns.displayID, - monitor->ns.previousMode, NULL); - endFadeReservation(token); - - CGDisplayModeRelease(monitor->ns.previousMode); - monitor->ns.previousMode = NULL; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - uint32_t i, found = 0, displayCount; - _GLFWmonitor** monitors; - CGDirectDisplayID* displays; - - *count = 0; - - CGGetOnlineDisplayList(0, NULL, &displayCount); - displays = calloc(displayCount, sizeof(CGDirectDisplayID)); - monitors = calloc(displayCount, sizeof(_GLFWmonitor*)); - - CGGetOnlineDisplayList(displayCount, displays, &displayCount); - - for (i = 0; i < displayCount; i++) - { - _GLFWmonitor* monitor; - - if (CGDisplayIsAsleep(displays[i])) - continue; - - const CGSize size = CGDisplayScreenSize(displays[i]); - char* name = getDisplayName(displays[i]); - - monitor = _glfwAllocMonitor(name, size.width, size.height); - monitor->ns.displayID = displays[i]; - monitor->ns.unitNumber = CGDisplayUnitNumber(displays[i]); - - free(name); - - found++; - monitors[found - 1] = monitor; - } - - free(displays); - - *count = found; - return monitors; -} - -GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - // HACK: Compare unit numbers instead of display IDs to work around display - // replacement on machines with automatic graphics switching - return first->ns.unitNumber == second->ns.unitNumber; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - const CGRect bounds = CGDisplayBounds(monitor->ns.displayID); - - if (xpos) - *xpos = (int) bounds.origin.x; - if (ypos) - *ypos = (int) bounds.origin.y; -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) -{ - CFArrayRef modes; - CFIndex found, i, j; - GLFWvidmode* result; - CVDisplayLinkRef link; - - *count = 0; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); - found = CFArrayGetCount(modes); - result = calloc(found, sizeof(GLFWvidmode)); - - for (i = 0; i < found; i++) - { - CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); - if (!modeIsGood(dm)) - continue; - - const GLFWvidmode mode = vidmodeFromCGDisplayMode(dm, link); - - for (j = 0; j < *count; j++) - { - if (_glfwCompareVideoModes(result + j, &mode) == 0) - break; - } - - // Skip duplicate modes - if (i < *count) - continue; - - (*count)++; - result[*count - 1] = mode; - } - - CFRelease(modes); - CVDisplayLinkRelease(link); - return result; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode *mode) -{ - CGDisplayModeRef displayMode; - CVDisplayLinkRef link; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - displayMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); - *mode = vidmodeFromCGDisplayMode(displayMode, link); - CGDisplayModeRelease(displayMode); - - CVDisplayLinkRelease(link); -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - uint32_t i, size = CGDisplayGammaTableCapacity(monitor->ns.displayID); - CGGammaValue* values = calloc(size * 3, sizeof(CGGammaValue)); - - CGGetDisplayTransferByTable(monitor->ns.displayID, - size, - values, - values + size, - values + size * 2, - &size); - - _glfwAllocGammaArrays(ramp, size); - - for (i = 0; i < size; i++) - { - ramp->red[i] = (unsigned short) (values[i] * 65535); - ramp->green[i] = (unsigned short) (values[i + size] * 65535); - ramp->blue[i] = (unsigned short) (values[i + size * 2] * 65535); - } - - free(values); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - int i; - CGGammaValue* values = calloc(ramp->size * 3, sizeof(CGGammaValue)); - - for (i = 0; i < ramp->size; i++) - { - values[i] = ramp->red[i] / 65535.f; - values[i + ramp->size] = ramp->green[i] / 65535.f; - values[i + ramp->size * 2] = ramp->blue[i] / 65535.f; - } - - CGSetDisplayTransferByTable(monitor->ns.displayID, - ramp->size, - values, - values + ramp->size, - values + ramp->size * 2); - - free(values); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(kCGNullDirectDisplay); - return monitor->ns.displayID; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_platform.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_platform.h deleted file mode 100644 index dea7a31..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_platform.h +++ /dev/null @@ -1,122 +0,0 @@ -//======================================================================== -// GLFW 3.1 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_cocoa_platform_h_ -#define _glfw3_cocoa_platform_h_ - -#include - -#if defined(__OBJC__) -#import -#else -#include -typedef void* id; -#endif - -#include "posix_tls.h" -#include "iokit_joystick.h" - -#if defined(_GLFW_NSGL) - #include "nsgl_context.h" -#else - #error "The Cocoa backend depends on NSGL platform support" -#endif - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowNS ns -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryNS ns -#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeNS ns_time -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorNS ns -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorNS ns - - -// Cocoa-specific per-window data -// -typedef struct _GLFWwindowNS -{ - id object; - id delegate; - id view; - unsigned int modifierFlags; - - // The total sum of the distances the cursor has been warped - // since the last cursor motion event was processed - // This is kept to counteract Cocoa doing the same internally - double warpDeltaX, warpDeltaY; - -} _GLFWwindowNS; - - -// Cocoa-specific global data -// -typedef struct _GLFWlibraryNS -{ - CGEventSourceRef eventSource; - id delegate; - id autoreleasePool; - id cursor; - - short int publicKeys[256]; - char* clipboardString; - -} _GLFWlibraryNS; - - -// Cocoa-specific per-monitor data -// -typedef struct _GLFWmonitorNS -{ - CGDirectDisplayID displayID; - CGDisplayModeRef previousMode; - uint32_t unitNumber; - -} _GLFWmonitorNS; - - -// Cocoa-specific per-cursor data -// -typedef struct _GLFWcursorNS -{ - id object; - -} _GLFWcursorNS; - - -// Cocoa-specific global timer data -// -typedef struct _GLFWtimeNS -{ - double base; - double resolution; - -} _GLFWtimeNS; - - -void _glfwInitTimer(void); - -GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired); -void _glfwRestoreVideoMode(_GLFWmonitor* monitor); - -#endif // _glfw3_cocoa_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_window.m b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_window.m deleted file mode 100644 index b7486ad..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/cocoa_window.m +++ /dev/null @@ -1,1324 +0,0 @@ -//======================================================================== -// GLFW 3.1 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - -// Needed for _NSGetProgname -#include - - -// Returns the specified standard cursor -// -static NSCursor* getStandardCursor(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return [NSCursor arrowCursor]; - case GLFW_IBEAM_CURSOR: - return [NSCursor IBeamCursor]; - case GLFW_CROSSHAIR_CURSOR: - return [NSCursor crosshairCursor]; - case GLFW_HAND_CURSOR: - return [NSCursor pointingHandCursor]; - case GLFW_HRESIZE_CURSOR: - return [NSCursor resizeLeftRightCursor]; - case GLFW_VRESIZE_CURSOR: - return [NSCursor resizeUpDownCursor]; - } - - return nil; -} - -// Center the cursor in the view of the window -// -static void centerCursor(_GLFWwindow *window) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); -} - -// Update the cursor to match the specified cursor mode -// -static void updateModeCursor(_GLFWwindow* window) -{ - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (window->cursor) - [(NSCursor*) window->cursor->ns.object set]; - else - [[NSCursor arrowCursor] set]; - } - else - [(NSCursor*) _glfw.ns.cursor set]; -} - -// Enter full screen mode -// -static GLboolean enterFullscreenMode(_GLFWwindow* window) -{ - GLFWvidmode mode; - GLboolean status; - int xpos, ypos; - - status = _glfwSetVideoMode(window->monitor, &window->videoMode); - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - [window->ns.object setFrame:NSMakeRect(xpos, ypos, mode.width, mode.height) - display:YES]; - - return status; -} - -// Leave full screen mode -// -static void leaveFullscreenMode(_GLFWwindow* window) -{ - _glfwRestoreVideoMode(window->monitor); -} - -// Transforms the specified y-coordinate between the CG display and NS screen -// coordinate systems -// -static float transformY(float y) -{ - const float height = CGDisplayBounds(CGMainDisplayID()).size.height; - return height - y; -} - -// Returns the backing rect of the specified window -// -static NSRect convertRectToBacking(_GLFWwindow* window, NSRect contentRect) -{ -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) - return [window->ns.view convertRectToBacking:contentRect]; - else -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - return contentRect; -} - -// Translates OS X key modifiers into GLFW ones -// -static int translateFlags(NSUInteger flags) -{ - int mods = 0; - - if (flags & NSShiftKeyMask) - mods |= GLFW_MOD_SHIFT; - if (flags & NSControlKeyMask) - mods |= GLFW_MOD_CONTROL; - if (flags & NSAlternateKeyMask) - mods |= GLFW_MOD_ALT; - if (flags & NSCommandKeyMask) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Translates a OS X keycode to a GLFW keycode -// -static int translateKey(unsigned int key) -{ - if (key >= sizeof(_glfw.ns.publicKeys) / sizeof(_glfw.ns.publicKeys[0])) - return GLFW_KEY_UNKNOWN; - - return _glfw.ns.publicKeys[key]; -} - - -//------------------------------------------------------------------------ -// Delegate for window related notifications -//------------------------------------------------------------------------ - -@interface GLFWWindowDelegate : NSObject -{ - _GLFWwindow* window; -} - -- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow; - -@end - -@implementation GLFWWindowDelegate - -- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow -{ - self = [super init]; - if (self != nil) - window = initWindow; - - return self; -} - -- (BOOL)windowShouldClose:(id)sender -{ - _glfwInputWindowCloseRequest(window); - return NO; -} - -- (void)windowDidResize:(NSNotification *)notification -{ - [window->nsgl.context update]; - - if (_glfw.cursorWindow == window && - window->cursorMode == GLFW_CURSOR_DISABLED) - { - centerCursor(window); - } - - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = convertRectToBacking(window, contentRect); - - _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); - _glfwInputWindowSize(window, contentRect.size.width, contentRect.size.height); -} - -- (void)windowDidMove:(NSNotification *)notification -{ - [window->nsgl.context update]; - - if (_glfw.cursorWindow == window && - window->cursorMode == GLFW_CURSOR_DISABLED) - { - centerCursor(window); - } - - int x, y; - _glfwPlatformGetWindowPos(window, &x, &y); - _glfwInputWindowPos(window, x, y); -} - -- (void)windowDidMiniaturize:(NSNotification *)notification -{ - if (window->monitor) - leaveFullscreenMode(window); - - _glfwInputWindowIconify(window, GL_TRUE); -} - -- (void)windowDidDeminiaturize:(NSNotification *)notification -{ - if (window->monitor) - enterFullscreenMode(window); - - _glfwInputWindowIconify(window, GL_FALSE); -} - -- (void)windowDidBecomeKey:(NSNotification *)notification -{ - if (_glfw.cursorWindow == window && - window->cursorMode == GLFW_CURSOR_DISABLED) - { - centerCursor(window); - } - - _glfwInputWindowFocus(window, GL_TRUE); - _glfwPlatformApplyCursorMode(window); -} - -- (void)windowDidResignKey:(NSNotification *)notification -{ - if (window->monitor && window->autoIconify) - _glfwPlatformIconifyWindow(window); - - _glfwInputWindowFocus(window, GL_FALSE); -} - -@end - - -//------------------------------------------------------------------------ -// Delegate for application related notifications -//------------------------------------------------------------------------ - -@interface GLFWApplicationDelegate : NSObject -@end - -@implementation GLFWApplicationDelegate - -- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender -{ - _GLFWwindow* window; - - for (window = _glfw.windowListHead; window; window = window->next) - _glfwInputWindowCloseRequest(window); - - return NSTerminateCancel; -} - -- (void)applicationDidChangeScreenParameters:(NSNotification *) notification -{ - _glfwInputMonitorChange(); -} - -- (void)applicationDidFinishLaunching:(NSNotification *)notification -{ - [NSApp stop:nil]; - - _glfwPlatformPostEmptyEvent(); -} - -- (void)applicationDidHide:(NSNotification *)notification -{ - int i; - - for (i = 0; i < _glfw.monitorCount; i++) - _glfwRestoreVideoMode(_glfw.monitors[i]); -} - -@end - - -//------------------------------------------------------------------------ -// Content view class for the GLFW window -//------------------------------------------------------------------------ - -@interface GLFWContentView : NSView -{ - _GLFWwindow* window; - NSTrackingArea* trackingArea; -} - -- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow; - -@end - -@implementation GLFWContentView - -+ (void)initialize -{ - if (self == [GLFWContentView class]) - { - if (_glfw.ns.cursor == nil) - { - NSImage* data = [[NSImage alloc] initWithSize:NSMakeSize(16, 16)]; - _glfw.ns.cursor = [[NSCursor alloc] initWithImage:data - hotSpot:NSZeroPoint]; - [data release]; - } - } -} - -- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow -{ - self = [super init]; - if (self != nil) - { - window = initWindow; - trackingArea = nil; - - [self updateTrackingAreas]; - [self registerForDraggedTypes:[NSArray arrayWithObjects: - NSFilenamesPboardType, nil]]; - } - - return self; -} - --(void)dealloc -{ - [trackingArea release]; - [super dealloc]; -} - -- (BOOL)isOpaque -{ - return YES; -} - -- (BOOL)canBecomeKeyView -{ - return YES; -} - -- (BOOL)acceptsFirstResponder -{ - return YES; -} - -- (void)cursorUpdate:(NSEvent *)event -{ - updateModeCursor(window); -} - -- (void)mouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_LEFT, - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)mouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)mouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_LEFT, - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)mouseMoved:(NSEvent *)event -{ - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - _glfwInputCursorMotion(window, - [event deltaX] - window->ns.warpDeltaX, - [event deltaY] - window->ns.warpDeltaY); - } - else - { - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [event locationInWindow]; - - _glfwInputCursorMotion(window, pos.x, contentRect.size.height - pos.y); - } - - window->ns.warpDeltaX = 0; - window->ns.warpDeltaY = 0; -} - -- (void)rightMouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_RIGHT, - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)rightMouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)rightMouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_RIGHT, - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)otherMouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - (int) [event buttonNumber], - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)otherMouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)otherMouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - (int) [event buttonNumber], - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)mouseExited:(NSEvent *)event -{ - _glfwInputCursorEnter(window, GL_FALSE); -} - -- (void)mouseEntered:(NSEvent *)event -{ - _glfwInputCursorEnter(window, GL_TRUE); -} - -- (void)viewDidChangeBackingProperties -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = convertRectToBacking(window, contentRect); - - _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); -} - -- (void)drawRect:(NSRect)rect -{ - _glfwInputWindowDamage(window); -} - -- (void)updateTrackingAreas -{ - if (trackingArea != nil) - { - [self removeTrackingArea:trackingArea]; - [trackingArea release]; - } - - const NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | - NSTrackingActiveInKeyWindow | - NSTrackingEnabledDuringMouseDrag | - NSTrackingCursorUpdate | - NSTrackingInVisibleRect | - NSTrackingAssumeInside; - - trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] - options:options - owner:self - userInfo:nil]; - - [self addTrackingArea:trackingArea]; - [super updateTrackingAreas]; -} - -- (void)keyDown:(NSEvent *)event -{ - const int key = translateKey([event keyCode]); - const int mods = translateFlags([event modifierFlags]); - - _glfwInputKey(window, key, [event keyCode], GLFW_PRESS, mods); - - NSString* characters = [event characters]; - NSUInteger i, length = [characters length]; - const int plain = !(mods & GLFW_MOD_SUPER); - - for (i = 0; i < length; i++) - { - const unichar codepoint = [characters characterAtIndex:i]; - if ((codepoint & 0xff00) == 0xf700) - continue; - - _glfwInputChar(window, codepoint, mods, plain); - } -} - -- (void)flagsChanged:(NSEvent *)event -{ - int action; - const unsigned int modifierFlags = - [event modifierFlags] & NSDeviceIndependentModifierFlagsMask; - const int key = translateKey([event keyCode]); - const int mods = translateFlags(modifierFlags); - - if (modifierFlags == window->ns.modifierFlags) - { - if (window->keys[key] == GLFW_PRESS) - action = GLFW_RELEASE; - else - action = GLFW_PRESS; - } - else if (modifierFlags > window->ns.modifierFlags) - action = GLFW_PRESS; - else - action = GLFW_RELEASE; - - window->ns.modifierFlags = modifierFlags; - - _glfwInputKey(window, key, [event keyCode], action, mods); -} - -- (void)keyUp:(NSEvent *)event -{ - const int key = translateKey([event keyCode]); - const int mods = translateFlags([event modifierFlags]); - _glfwInputKey(window, key, [event keyCode], GLFW_RELEASE, mods); -} - -- (void)scrollWheel:(NSEvent *)event -{ - double deltaX, deltaY; - -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) - { - deltaX = [event scrollingDeltaX]; - deltaY = [event scrollingDeltaY]; - - if ([event hasPreciseScrollingDeltas]) - { - deltaX *= 0.1; - deltaY *= 0.1; - } - } - else -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - { - deltaX = [event deltaX]; - deltaY = [event deltaY]; - } - - if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0) - _glfwInputScroll(window, deltaX, deltaY); -} - -- (NSDragOperation)draggingEntered:(id )sender -{ - if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) - == NSDragOperationGeneric) - { - [self setNeedsDisplay:YES]; - return NSDragOperationGeneric; - } - - return NSDragOperationNone; -} - -- (BOOL)prepareForDragOperation:(id )sender -{ - [self setNeedsDisplay:YES]; - return YES; -} - -- (BOOL)performDragOperation:(id )sender -{ - NSPasteboard* pasteboard = [sender draggingPasteboard]; - NSArray* files = [pasteboard propertyListForType:NSFilenamesPboardType]; - - const NSRect contentRect = [window->ns.view frame]; - _glfwInputCursorMotion(window, - [sender draggingLocation].x, - contentRect.size.height - [sender draggingLocation].y); - - const int count = [files count]; - if (count) - { - NSEnumerator* e = [files objectEnumerator]; - char** paths = calloc(count, sizeof(char*)); - int i; - - for (i = 0; i < count; i++) - paths[i] = strdup([[e nextObject] UTF8String]); - - _glfwInputDrop(window, count, (const char**) paths); - - for (i = 0; i < count; i++) - free(paths[i]); - free(paths); - } - - return YES; -} - -- (void)concludeDragOperation:(id )sender -{ - [self setNeedsDisplay:YES]; -} - -@end - - -//------------------------------------------------------------------------ -// GLFW window class -//------------------------------------------------------------------------ - -@interface GLFWWindow : NSWindow {} -@end - -@implementation GLFWWindow - -- (BOOL)canBecomeKeyWindow -{ - // Required for NSBorderlessWindowMask windows - return YES; -} - -@end - - -//------------------------------------------------------------------------ -// GLFW application class -//------------------------------------------------------------------------ - -@interface GLFWApplication : NSApplication -@end - -@implementation GLFWApplication - -// From http://cocoadev.com/index.pl?GameKeyboardHandlingAlmost -// This works around an AppKit bug, where key up events while holding -// down the command key don't get sent to the key window. -- (void)sendEvent:(NSEvent *)event -{ - if ([event type] == NSKeyUp && ([event modifierFlags] & NSCommandKeyMask)) - [[self keyWindow] sendEvent:event]; - else - [super sendEvent:event]; -} - -@end - -#if defined(_GLFW_USE_MENUBAR) - -// Try to figure out what the calling application is called -// -static NSString* findAppName(void) -{ - size_t i; - NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; - - // Keys to search for as potential application names - NSString* GLFWNameKeys[] = - { - @"CFBundleDisplayName", - @"CFBundleName", - @"CFBundleExecutable", - }; - - for (i = 0; i < sizeof(GLFWNameKeys) / sizeof(GLFWNameKeys[0]); i++) - { - id name = [infoDictionary objectForKey:GLFWNameKeys[i]]; - if (name && - [name isKindOfClass:[NSString class]] && - ![name isEqualToString:@""]) - { - return name; - } - } - - char** progname = _NSGetProgname(); - if (progname && *progname) - return [NSString stringWithUTF8String:*progname]; - - // Really shouldn't get here - return @"GLFW Application"; -} - -// Set up the menu bar (manually) -// This is nasty, nasty stuff -- calls to undocumented semi-private APIs that -// could go away at any moment, lots of stuff that really should be -// localize(d|able), etc. Loading a nib would save us this horror, but that -// doesn't seem like a good thing to require of GLFW users. -// -static void createMenuBar(void) -{ - NSString* appName = findAppName(); - - NSMenu* bar = [[NSMenu alloc] init]; - [NSApp setMainMenu:bar]; - - NSMenuItem* appMenuItem = - [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; - NSMenu* appMenu = [[NSMenu alloc] init]; - [appMenuItem setSubmenu:appMenu]; - - [appMenu addItemWithTitle:[NSString stringWithFormat:@"About %@", appName] - action:@selector(orderFrontStandardAboutPanel:) - keyEquivalent:@""]; - [appMenu addItem:[NSMenuItem separatorItem]]; - NSMenu* servicesMenu = [[NSMenu alloc] init]; - [NSApp setServicesMenu:servicesMenu]; - [[appMenu addItemWithTitle:@"Services" - action:NULL - keyEquivalent:@""] setSubmenu:servicesMenu]; - [servicesMenu release]; - [appMenu addItem:[NSMenuItem separatorItem]]; - [appMenu addItemWithTitle:[NSString stringWithFormat:@"Hide %@", appName] - action:@selector(hide:) - keyEquivalent:@"h"]; - [[appMenu addItemWithTitle:@"Hide Others" - action:@selector(hideOtherApplications:) - keyEquivalent:@"h"] - setKeyEquivalentModifierMask:NSAlternateKeyMask | NSCommandKeyMask]; - [appMenu addItemWithTitle:@"Show All" - action:@selector(unhideAllApplications:) - keyEquivalent:@""]; - [appMenu addItem:[NSMenuItem separatorItem]]; - [appMenu addItemWithTitle:[NSString stringWithFormat:@"Quit %@", appName] - action:@selector(terminate:) - keyEquivalent:@"q"]; - - NSMenuItem* windowMenuItem = - [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; - [bar release]; - NSMenu* windowMenu = [[NSMenu alloc] initWithTitle:@"Window"]; - [NSApp setWindowsMenu:windowMenu]; - [windowMenuItem setSubmenu:windowMenu]; - - [windowMenu addItemWithTitle:@"Minimize" - action:@selector(performMiniaturize:) - keyEquivalent:@"m"]; - [windowMenu addItemWithTitle:@"Zoom" - action:@selector(performZoom:) - keyEquivalent:@""]; - [windowMenu addItem:[NSMenuItem separatorItem]]; - [windowMenu addItemWithTitle:@"Bring All to Front" - action:@selector(arrangeInFront:) - keyEquivalent:@""]; - -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) - { - // TODO: Make this appear at the bottom of the menu (for consistency) - - [windowMenu addItem:[NSMenuItem separatorItem]]; - [[windowMenu addItemWithTitle:@"Enter Full Screen" - action:@selector(toggleFullScreen:) - keyEquivalent:@"f"] - setKeyEquivalentModifierMask:NSControlKeyMask | NSCommandKeyMask]; - } -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - - // Prior to Snow Leopard, we need to use this oddly-named semi-private API - // to get the application menu working properly. - SEL setAppleMenuSelector = NSSelectorFromString(@"setAppleMenu:"); - [NSApp performSelector:setAppleMenuSelector withObject:appMenu]; -} - -#endif /* _GLFW_USE_MENUBAR */ - -// Initialize the Cocoa Application Kit -// -static GLboolean initializeAppKit(void) -{ - if (NSApp) - return GL_TRUE; - - // Implicitly create shared NSApplication instance - [GLFWApplication sharedApplication]; - - // In case we are unbundled, make us a proper UI application - [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; - -#if defined(_GLFW_USE_MENUBAR) - // Menu bar setup must go between sharedApplication above and - // finishLaunching below, in order to properly emulate the behavior - // of NSApplicationMain - createMenuBar(); -#endif - - // There can only be one application delegate, but we allocate it the - // first time a window is created to keep all window code in this file - _glfw.ns.delegate = [[GLFWApplicationDelegate alloc] init]; - if (_glfw.ns.delegate == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to create application delegate"); - return GL_FALSE; - } - - [NSApp setDelegate:_glfw.ns.delegate]; - [NSApp run]; - - return GL_TRUE; -} - -// Create the Cocoa window -// -static GLboolean createWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig) -{ - window->ns.delegate = [[GLFWWindowDelegate alloc] initWithGlfwWindow:window]; - if (window->ns.delegate == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to create window delegate"); - return GL_FALSE; - } - - unsigned int styleMask = 0; - - if (wndconfig->monitor || !wndconfig->decorated) - styleMask = NSBorderlessWindowMask; - else - { - styleMask = NSTitledWindowMask | NSClosableWindowMask | - NSMiniaturizableWindowMask; - - if (wndconfig->resizable) - styleMask |= NSResizableWindowMask; - } - - NSRect contentRect; - - if (wndconfig->monitor) - { - GLFWvidmode mode; - int xpos, ypos; - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - contentRect = NSMakeRect(xpos, ypos, mode.width, mode.height); - } - else - contentRect = NSMakeRect(0, 0, wndconfig->width, wndconfig->height); - - window->ns.object = [[GLFWWindow alloc] - initWithContentRect:contentRect - styleMask:styleMask - backing:NSBackingStoreBuffered - defer:NO]; - - if (window->ns.object == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Cocoa: Failed to create window"); - return GL_FALSE; - } - -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) - { - if (wndconfig->resizable) - [window->ns.object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; - } -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - - if (wndconfig->monitor) - { - [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; - } - else - { - [window->ns.object center]; - - if (wndconfig->floating) - [window->ns.object setLevel:NSFloatingWindowLevel]; - } - - window->ns.view = [[GLFWContentView alloc] initWithGlfwWindow:window]; - -#if defined(_GLFW_USE_RETINA) -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) - [window->ns.view setWantsBestResolutionOpenGLSurface:YES]; -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ -#endif /*_GLFW_USE_RETINA*/ - - [window->ns.object setTitle:[NSString stringWithUTF8String:wndconfig->title]]; - [window->ns.object setDelegate:window->ns.delegate]; - [window->ns.object setAcceptsMouseMovedEvents:YES]; - [window->ns.object setContentView:window->ns.view]; - -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) - [window->ns.object setRestorable:NO]; -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - - return GL_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!initializeAppKit()) - return GL_FALSE; - - if (!createWindow(window, wndconfig)) - return GL_FALSE; - - if (!_glfwCreateContext(window, ctxconfig, fbconfig)) - return GL_FALSE; - - [window->nsgl.context setView:window->ns.view]; - - if (wndconfig->monitor) - { - _glfwPlatformShowWindow(window); - if (!enterFullscreenMode(window)) - return GL_FALSE; - } - - return GL_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - [window->ns.object orderOut:nil]; - - if (window->monitor) - leaveFullscreenMode(window); - - _glfwDestroyContext(window); - - [window->ns.object setDelegate:nil]; - [window->ns.delegate release]; - window->ns.delegate = nil; - - [window->ns.view release]; - window->ns.view = nil; - - [window->ns.object close]; - window->ns.object = nil; -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char *title) -{ - [window->ns.object setTitle:[NSString stringWithUTF8String:title]]; -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - const NSRect contentRect = - [window->ns.object contentRectForFrameRect:[window->ns.object frame]]; - - if (xpos) - *xpos = contentRect.origin.x; - if (ypos) - *ypos = transformY(contentRect.origin.y + contentRect.size.height); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int x, int y) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect dummyRect = NSMakeRect(x, transformY(y + contentRect.size.height), 0, 0); - const NSRect frameRect = [window->ns.object frameRectForContentRect:dummyRect]; - [window->ns.object setFrameOrigin:frameRect.origin]; -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - const NSRect contentRect = [window->ns.view frame]; - - if (width) - *width = contentRect.size.width; - if (height) - *height = contentRect.size.height; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->monitor) - enterFullscreenMode(window); - else - [window->ns.object setContentSize:NSMakeSize(width, height)]; -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = convertRectToBacking(window, contentRect); - - if (width) - *width = (int) fbRect.size.width; - if (height) - *height = (int) fbRect.size.height; -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect]; - - if (left) - *left = contentRect.origin.x - frameRect.origin.x; - if (top) - *top = frameRect.origin.y + frameRect.size.height - - contentRect.origin.y - contentRect.size.height; - if (right) - *right = frameRect.origin.x + frameRect.size.width - - contentRect.origin.x - contentRect.size.width; - if (bottom) - *bottom = contentRect.origin.y - frameRect.origin.y; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - [window->ns.object miniaturize:nil]; -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - [window->ns.object deminiaturize:nil]; -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - // Make us the active application - // HACK: This has been moved here from initializeAppKit to prevent - // applications using only hidden windows from being activated, but - // should probably not be done every time any window is shown - [NSApp activateIgnoringOtherApps:YES]; - - [window->ns.object makeKeyAndOrderFront:nil]; -} - -void _glfwPlatformUnhideWindow(_GLFWwindow* window) -{ - [window->ns.object orderFront:nil]; -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - [window->ns.object orderOut:nil]; -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return [window->ns.object isKeyWindow]; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - return [window->ns.object isMiniaturized]; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return [window->ns.object isVisible]; -} - -void _glfwPlatformPollEvents(void) -{ - for (;;) - { - NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask - untilDate:[NSDate distantPast] - inMode:NSDefaultRunLoopMode - dequeue:YES]; - if (event == nil) - break; - - [NSApp sendEvent:event]; - } - - [_glfw.ns.autoreleasePool drain]; - _glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; -} - -void _glfwPlatformWaitEvents(void) -{ - // I wanted to pass NO to dequeue:, and rely on PollEvents to - // dequeue and send. For reasons not at all clear to me, passing - // NO to dequeue: causes this method never to return. - NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask - untilDate:[NSDate distantFuture] - inMode:NSDefaultRunLoopMode - dequeue:YES]; - [NSApp sendEvent:event]; - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; - NSEvent* event = [NSEvent otherEventWithType:NSApplicationDefined - location:NSMakePoint(0, 0) - modifierFlags:0 - timestamp:0 - windowNumber:0 - context:nil - subtype:0 - data1:0 - data2:0]; - [NSApp postEvent:event atStart:YES]; - [pool drain]; -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = contentRect.size.height - pos.y - 1; -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) -{ - updateModeCursor(window); - - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - - window->ns.warpDeltaX += x - pos.x; - window->ns.warpDeltaY += y - contentRect.size.height + pos.y; - - if (window->monitor) - { - CGDisplayMoveCursorToPoint(window->monitor->ns.displayID, - CGPointMake(x, y)); - } - else - { -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - const NSRect localRect = NSMakeRect(x, contentRect.size.height - y - 1, 0, 0); - const NSRect globalRect = [window->ns.object convertRectToScreen:localRect]; - const NSPoint globalPoint = globalRect.origin; -#else - const NSPoint localPoint = NSMakePoint(x, contentRect.size.height - y - 1); - const NSPoint globalPoint = [window->ns.object convertBaseToScreen:localPoint]; -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - - CGWarpMouseCursorPosition(CGPointMake(globalPoint.x, - transformY(globalPoint.y))); - } -} - -void _glfwPlatformApplyCursorMode(_GLFWwindow* window) -{ - updateModeCursor(window); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - CGAssociateMouseAndMouseCursorPosition(false); - else - CGAssociateMouseAndMouseCursorPosition(true); -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - NSImage* native; - NSBitmapImageRep* rep; - - if (!initializeAppKit()) - return GL_FALSE; - - rep = [[NSBitmapImageRep alloc] - initWithBitmapDataPlanes:NULL - pixelsWide:image->width - pixelsHigh:image->height - bitsPerSample:8 - samplesPerPixel:4 - hasAlpha:YES - isPlanar:NO - colorSpaceName:NSCalibratedRGBColorSpace - bitmapFormat:NSAlphaNonpremultipliedBitmapFormat - bytesPerRow:image->width * 4 - bitsPerPixel:32]; - - if (rep == nil) - return GL_FALSE; - - memcpy([rep bitmapData], image->pixels, image->width * image->height * 4); - - native = [[NSImage alloc] initWithSize:NSMakeSize(image->width, image->height)]; - [native addRepresentation: rep]; - - cursor->ns.object = [[NSCursor alloc] initWithImage:native - hotSpot:NSMakePoint(xhot, yhot)]; - - [native release]; - [rep release]; - - if (cursor->ns.object == nil) - return GL_FALSE; - - return GL_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - if (!initializeAppKit()) - return GL_FALSE; - - cursor->ns.object = getStandardCursor(shape); - if (!cursor->ns.object) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve standard cursor"); - return GL_FALSE; - } - - [cursor->ns.object retain]; - return GL_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->ns.object) - [(NSCursor*) cursor->ns.object release]; -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - - if (window->cursorMode == GLFW_CURSOR_NORMAL && - [window->ns.view mouse:pos inRect:[window->ns.view frame]]) - { - if (cursor) - [(NSCursor*) cursor->ns.object set]; - else - [[NSCursor arrowCursor] set]; - } -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - NSArray* types = [NSArray arrayWithObjects:NSStringPboardType, nil]; - - NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; - [pasteboard declareTypes:types owner:nil]; - [pasteboard setString:[NSString stringWithUTF8String:string] - forType:NSStringPboardType]; -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; - - if (![[pasteboard types] containsObject:NSStringPboardType]) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "Cocoa: Failed to retrieve string from pasteboard"); - return NULL; - } - - NSString* object = [pasteboard stringForType:NSStringPboardType]; - if (!object) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve object from pasteboard"); - return NULL; - } - - free(_glfw.ns.clipboardString); - _glfw.ns.clipboardString = strdup([object UTF8String]); - - return _glfw.ns.clipboardString; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI id glfwGetCocoaWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(nil); - return window->ns.object; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/context.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/context.c deleted file mode 100644 index 53c273b..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/context.c +++ /dev/null @@ -1,640 +0,0 @@ -//======================================================================== -// GLFW 3.1 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - - -// Parses the client API version string and extracts the version number -// -static GLboolean parseVersionString(int* api, int* major, int* minor, int* rev) -{ - int i; - _GLFWwindow* window; - const char* version; - const char* prefixes[] = - { - "OpenGL ES-CM ", - "OpenGL ES-CL ", - "OpenGL ES ", - NULL - }; - - *api = GLFW_OPENGL_API; - - window = _glfwPlatformGetCurrentContext(); - - version = (const char*) window->GetString(GL_VERSION); - if (!version) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Failed to retrieve context version string"); - return GL_FALSE; - } - - for (i = 0; prefixes[i]; i++) - { - const size_t length = strlen(prefixes[i]); - - if (strncmp(version, prefixes[i], length) == 0) - { - version += length; - *api = GLFW_OPENGL_ES_API; - break; - } - } - - if (!sscanf(version, "%d.%d.%d", major, minor, rev)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "No version found in context version string"); - return GL_FALSE; - } - - return GL_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -GLboolean _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig) -{ - if (ctxconfig->api != GLFW_OPENGL_API && - ctxconfig->api != GLFW_OPENGL_ES_API) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid client API"); - return GL_FALSE; - } - - if (ctxconfig->api == GLFW_OPENGL_API) - { - if ((ctxconfig->major < 1 || ctxconfig->minor < 0) || - (ctxconfig->major == 1 && ctxconfig->minor > 5) || - (ctxconfig->major == 2 && ctxconfig->minor > 1) || - (ctxconfig->major == 3 && ctxconfig->minor > 3)) - { - // OpenGL 1.0 is the smallest valid version - // OpenGL 1.x series ended with version 1.5 - // OpenGL 2.x series ended with version 2.1 - // OpenGL 3.x series ended with version 3.3 - // For now, let everything else through - - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid OpenGL version %i.%i", - ctxconfig->major, ctxconfig->minor); - return GL_FALSE; - } - - if (ctxconfig->profile) - { - if (ctxconfig->profile != GLFW_OPENGL_CORE_PROFILE && - ctxconfig->profile != GLFW_OPENGL_COMPAT_PROFILE) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid OpenGL profile"); - return GL_FALSE; - } - - if (ctxconfig->major < 3 || - (ctxconfig->major == 3 && ctxconfig->minor < 2)) - { - // Desktop OpenGL context profiles are only defined for version 3.2 - // and above - - _glfwInputError(GLFW_INVALID_VALUE, - "Context profiles are only defined for OpenGL version 3.2 and above"); - return GL_FALSE; - } - } - - if (ctxconfig->forward && ctxconfig->major < 3) - { - // Forward-compatible contexts are only defined for OpenGL version 3.0 and above - _glfwInputError(GLFW_INVALID_VALUE, - "Forward-compatibility is only defined for OpenGL version 3.0 and above"); - return GL_FALSE; - } - } - else if (ctxconfig->api == GLFW_OPENGL_ES_API) - { - if (ctxconfig->major < 1 || ctxconfig->minor < 0 || - (ctxconfig->major == 1 && ctxconfig->minor > 1) || - (ctxconfig->major == 2 && ctxconfig->minor > 0)) - { - // OpenGL ES 1.0 is the smallest valid version - // OpenGL ES 1.x series ended with version 1.1 - // OpenGL ES 2.x series ended with version 2.0 - // For now, let everything else through - - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid OpenGL ES version %i.%i", - ctxconfig->major, ctxconfig->minor); - return GL_FALSE; - } - } - - if (ctxconfig->robustness) - { - if (ctxconfig->robustness != GLFW_NO_RESET_NOTIFICATION && - ctxconfig->robustness != GLFW_LOSE_CONTEXT_ON_RESET) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid context robustness mode"); - return GL_FALSE; - } - } - - if (ctxconfig->release) - { - if (ctxconfig->release != GLFW_RELEASE_BEHAVIOR_NONE && - ctxconfig->release != GLFW_RELEASE_BEHAVIOR_FLUSH) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid context release behavior"); - return GL_FALSE; - } - } - - return GL_TRUE; -} - -const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, - const _GLFWfbconfig* alternatives, - unsigned int count) -{ - unsigned int i; - unsigned int missing, leastMissing = UINT_MAX; - unsigned int colorDiff, leastColorDiff = UINT_MAX; - unsigned int extraDiff, leastExtraDiff = UINT_MAX; - const _GLFWfbconfig* current; - const _GLFWfbconfig* closest = NULL; - - for (i = 0; i < count; i++) - { - current = alternatives + i; - - if (desired->stereo > 0 && current->stereo == 0) - { - // Stereo is a hard constraint - continue; - } - - if (desired->doublebuffer != current->doublebuffer) - { - // Double buffering is a hard constraint - continue; - } - - // Count number of missing buffers - { - missing = 0; - - if (desired->alphaBits > 0 && current->alphaBits == 0) - missing++; - - if (desired->depthBits > 0 && current->depthBits == 0) - missing++; - - if (desired->stencilBits > 0 && current->stencilBits == 0) - missing++; - - if (desired->auxBuffers > 0 && - current->auxBuffers < desired->auxBuffers) - { - missing += desired->auxBuffers - current->auxBuffers; - } - - if (desired->samples > 0 && current->samples == 0) - { - // Technically, several multisampling buffers could be - // involved, but that's a lower level implementation detail and - // not important to us here, so we count them as one - missing++; - } - } - - // These polynomials make many small channel size differences matter - // less than one large channel size difference - - // Calculate color channel size difference value - { - colorDiff = 0; - - if (desired->redBits != GLFW_DONT_CARE) - { - colorDiff += (desired->redBits - current->redBits) * - (desired->redBits - current->redBits); - } - - if (desired->greenBits != GLFW_DONT_CARE) - { - colorDiff += (desired->greenBits - current->greenBits) * - (desired->greenBits - current->greenBits); - } - - if (desired->blueBits != GLFW_DONT_CARE) - { - colorDiff += (desired->blueBits - current->blueBits) * - (desired->blueBits - current->blueBits); - } - } - - // Calculate non-color channel size difference value - { - extraDiff = 0; - - if (desired->alphaBits != GLFW_DONT_CARE) - { - extraDiff += (desired->alphaBits - current->alphaBits) * - (desired->alphaBits - current->alphaBits); - } - - if (desired->depthBits != GLFW_DONT_CARE) - { - extraDiff += (desired->depthBits - current->depthBits) * - (desired->depthBits - current->depthBits); - } - - if (desired->stencilBits != GLFW_DONT_CARE) - { - extraDiff += (desired->stencilBits - current->stencilBits) * - (desired->stencilBits - current->stencilBits); - } - - if (desired->accumRedBits != GLFW_DONT_CARE) - { - extraDiff += (desired->accumRedBits - current->accumRedBits) * - (desired->accumRedBits - current->accumRedBits); - } - - if (desired->accumGreenBits != GLFW_DONT_CARE) - { - extraDiff += (desired->accumGreenBits - current->accumGreenBits) * - (desired->accumGreenBits - current->accumGreenBits); - } - - if (desired->accumBlueBits != GLFW_DONT_CARE) - { - extraDiff += (desired->accumBlueBits - current->accumBlueBits) * - (desired->accumBlueBits - current->accumBlueBits); - } - - if (desired->accumAlphaBits != GLFW_DONT_CARE) - { - extraDiff += (desired->accumAlphaBits - current->accumAlphaBits) * - (desired->accumAlphaBits - current->accumAlphaBits); - } - - if (desired->samples != GLFW_DONT_CARE) - { - extraDiff += (desired->samples - current->samples) * - (desired->samples - current->samples); - } - - if (desired->sRGB && !current->sRGB) - extraDiff++; - } - - // Figure out if the current one is better than the best one found so far - // Least number of missing buffers is the most important heuristic, - // then color buffer size match and lastly size match for other buffers - - if (missing < leastMissing) - closest = current; - else if (missing == leastMissing) - { - if ((colorDiff < leastColorDiff) || - (colorDiff == leastColorDiff && extraDiff < leastExtraDiff)) - { - closest = current; - } - } - - if (current == closest) - { - leastMissing = missing; - leastColorDiff = colorDiff; - leastExtraDiff = extraDiff; - } - } - - return closest; -} - -GLboolean _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - window->GetIntegerv = (PFNGLGETINTEGERVPROC) glfwGetProcAddress("glGetIntegerv"); - window->GetString = (PFNGLGETSTRINGPROC) glfwGetProcAddress("glGetString"); - window->Clear = (PFNGLCLEARPROC) glfwGetProcAddress("glClear"); - - if (!parseVersionString(&window->context.api, - &window->context.major, - &window->context.minor, - &window->context.revision)) - { - return GL_FALSE; - } - -#if defined(_GLFW_USE_OPENGL) - if (window->context.major > 2) - { - // OpenGL 3.0+ uses a different function for extension string retrieval - // We cache it here instead of in glfwExtensionSupported mostly to alert - // users as early as possible that their build may be broken - - window->GetStringi = (PFNGLGETSTRINGIPROC) glfwGetProcAddress("glGetStringi"); - if (!window->GetStringi) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Entry point retrieval is broken"); - return GL_FALSE; - } - } - - if (window->context.api == GLFW_OPENGL_API) - { - // Read back context flags (OpenGL 3.0 and above) - if (window->context.major >= 3) - { - GLint flags; - window->GetIntegerv(GL_CONTEXT_FLAGS, &flags); - - if (flags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT) - window->context.forward = GL_TRUE; - - if (flags & GL_CONTEXT_FLAG_DEBUG_BIT) - window->context.debug = GL_TRUE; - else if (glfwExtensionSupported("GL_ARB_debug_output") && - ctxconfig->debug) - { - // HACK: This is a workaround for older drivers (pre KHR_debug) - // not setting the debug bit in the context flags for - // debug contexts - window->context.debug = GL_TRUE; - } - } - - // Read back OpenGL context profile (OpenGL 3.2 and above) - if (window->context.major > 3 || - (window->context.major == 3 && window->context.minor >= 2)) - { - GLint mask; - window->GetIntegerv(GL_CONTEXT_PROFILE_MASK, &mask); - - if (mask & GL_CONTEXT_COMPATIBILITY_PROFILE_BIT) - window->context.profile = GLFW_OPENGL_COMPAT_PROFILE; - else if (mask & GL_CONTEXT_CORE_PROFILE_BIT) - window->context.profile = GLFW_OPENGL_CORE_PROFILE; - else if (glfwExtensionSupported("GL_ARB_compatibility")) - { - // HACK: This is a workaround for the compatibility profile bit - // not being set in the context flags if an OpenGL 3.2+ - // context was created without having requested a specific - // version - window->context.profile = GLFW_OPENGL_COMPAT_PROFILE; - } - } - - // Read back robustness strategy - if (glfwExtensionSupported("GL_ARB_robustness")) - { - // NOTE: We avoid using the context flags for detection, as they are - // only present from 3.0 while the extension applies from 1.1 - - GLint strategy; - window->GetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, &strategy); - - if (strategy == GL_LOSE_CONTEXT_ON_RESET_ARB) - window->context.robustness = GLFW_LOSE_CONTEXT_ON_RESET; - else if (strategy == GL_NO_RESET_NOTIFICATION_ARB) - window->context.robustness = GLFW_NO_RESET_NOTIFICATION; - } - } - else - { - // Read back robustness strategy - if (glfwExtensionSupported("GL_EXT_robustness")) - { - // NOTE: The values of these constants match those of the OpenGL ARB - // one, so we can reuse them here - - GLint strategy; - window->GetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, &strategy); - - if (strategy == GL_LOSE_CONTEXT_ON_RESET_ARB) - window->context.robustness = GLFW_LOSE_CONTEXT_ON_RESET; - else if (strategy == GL_NO_RESET_NOTIFICATION_ARB) - window->context.robustness = GLFW_NO_RESET_NOTIFICATION; - } - } - - if (glfwExtensionSupported("GL_KHR_context_flush_control")) - { - GLint behavior; - window->GetIntegerv(GL_CONTEXT_RELEASE_BEHAVIOR, &behavior); - - if (behavior == GL_NONE) - window->context.release = GLFW_RELEASE_BEHAVIOR_NONE; - else if (behavior == GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH) - window->context.release = GLFW_RELEASE_BEHAVIOR_FLUSH; - } -#endif // _GLFW_USE_OPENGL - - return GL_TRUE; -} - -GLboolean _glfwIsValidContext(const _GLFWctxconfig* ctxconfig) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - if (window->context.major < ctxconfig->major || - (window->context.major == ctxconfig->major && - window->context.minor < ctxconfig->minor)) - { - // The desired OpenGL version is greater than the actual version - // This only happens if the machine lacks {GLX|WGL}_ARB_create_context - // /and/ the user has requested an OpenGL version greater than 1.0 - - // For API consistency, we emulate the behavior of the - // {GLX|WGL}_ARB_create_context extension and fail here - - _glfwInputError(GLFW_VERSION_UNAVAILABLE, NULL); - return GL_FALSE; - } - - return GL_TRUE; -} - -int _glfwStringInExtensionString(const char* string, const char* extensions) -{ - const char* start = extensions; - - for (;;) - { - const char* where; - const char* terminator; - - where = strstr(start, string); - if (!where) - return GL_FALSE; - - terminator = where + strlen(string); - if (where == start || *(where - 1) == ' ') - { - if (*terminator == ' ' || *terminator == '\0') - break; - } - - start = terminator; - } - - return GL_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI void glfwMakeContextCurrent(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - _glfwPlatformMakeContextCurrent(window); -} - -GLFWAPI GLFWwindow* glfwGetCurrentContext(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return (GLFWwindow*) _glfwPlatformGetCurrentContext(); -} - -GLFWAPI void glfwSwapBuffers(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - _glfwPlatformSwapBuffers(window); -} - -GLFWAPI void glfwSwapInterval(int interval) -{ - _GLFW_REQUIRE_INIT(); - - if (!_glfwPlatformGetCurrentContext()) - { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); - return; - } - - _glfwPlatformSwapInterval(interval); -} - -GLFWAPI int glfwExtensionSupported(const char* extension) -{ - _GLFWwindow* window; - - _GLFW_REQUIRE_INIT_OR_RETURN(GL_FALSE); - - window = _glfwPlatformGetCurrentContext(); - if (!window) - { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); - return GL_FALSE; - } - - if (*extension == '\0') - { - _glfwInputError(GLFW_INVALID_VALUE, NULL); - return GL_FALSE; - } - -#if defined(_GLFW_USE_OPENGL) - if (window->context.major >= 3) - { - int i; - GLint count; - - // Check if extension is in the modern OpenGL extensions string list - - window->GetIntegerv(GL_NUM_EXTENSIONS, &count); - - for (i = 0; i < count; i++) - { - const char* en = (const char*) window->GetStringi(GL_EXTENSIONS, i); - if (!en) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Failed to retrieve extension string %i", i); - return GL_FALSE; - } - - if (strcmp(en, extension) == 0) - return GL_TRUE; - } - } - else -#endif // _GLFW_USE_OPENGL - { - // Check if extension is in the old style OpenGL extensions string - - const char* extensions = (const char*) window->GetString(GL_EXTENSIONS); - if (!extensions) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Failed to retrieve extension string"); - return GL_FALSE; - } - - if (_glfwStringInExtensionString(extension, extensions)) - return GL_TRUE; - } - - // Check if extension is in the platform-specific string - return _glfwPlatformExtensionSupported(extension); -} - -GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!_glfwPlatformGetCurrentContext()) - { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); - return NULL; - } - - return _glfwPlatformGetProcAddress(procname); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/egl_context.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/egl_context.c deleted file mode 100644 index f284a70..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/egl_context.c +++ /dev/null @@ -1,679 +0,0 @@ -//======================================================================== -// GLFW 3.1 EGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -// Return a description of the specified EGL error -// -static const char* getErrorString(EGLint error) -{ - switch (error) - { - case EGL_SUCCESS: - return "Success"; - case EGL_NOT_INITIALIZED: - return "EGL is not or could not be initialized"; - case EGL_BAD_ACCESS: - return "EGL cannot access a requested resource"; - case EGL_BAD_ALLOC: - return "EGL failed to allocate resources for the requested operation"; - case EGL_BAD_ATTRIBUTE: - return "An unrecognized attribute or attribute value was passed in the attribute list"; - case EGL_BAD_CONTEXT: - return "An EGLContext argument does not name a valid EGL rendering context"; - case EGL_BAD_CONFIG: - return "An EGLConfig argument does not name a valid EGL frame buffer configuration"; - case EGL_BAD_CURRENT_SURFACE: - return "The current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid"; - case EGL_BAD_DISPLAY: - return "An EGLDisplay argument does not name a valid EGL display connection"; - case EGL_BAD_SURFACE: - return "An EGLSurface argument does not name a valid surface configured for GL rendering"; - case EGL_BAD_MATCH: - return "Arguments are inconsistent"; - case EGL_BAD_PARAMETER: - return "One or more argument values are invalid"; - case EGL_BAD_NATIVE_PIXMAP: - return "A NativePixmapType argument does not refer to a valid native pixmap"; - case EGL_BAD_NATIVE_WINDOW: - return "A NativeWindowType argument does not refer to a valid native window"; - case EGL_CONTEXT_LOST: - return "The application must destroy all contexts and reinitialise"; - } - - return "UNKNOWN EGL ERROR"; -} - -// Returns the specified attribute of the specified EGLConfig -// -static int getConfigAttrib(EGLConfig config, int attrib) -{ - int value; - _glfw_eglGetConfigAttrib(_glfw.egl.display, config, attrib, &value); - return value; -} - -// Return a list of available and usable framebuffer configs -// -static GLboolean chooseFBConfigs(const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* desired, - EGLConfig* result) -{ - EGLConfig* nativeConfigs; - _GLFWfbconfig* usableConfigs; - const _GLFWfbconfig* closest; - int i, nativeCount, usableCount; - - _glfw_eglGetConfigs(_glfw.egl.display, NULL, 0, &nativeCount); - if (!nativeCount) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: No EGLConfigs returned"); - return GL_FALSE; - } - - nativeConfigs = calloc(nativeCount, sizeof(EGLConfig)); - _glfw_eglGetConfigs(_glfw.egl.display, nativeConfigs, - nativeCount, &nativeCount); - - usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); - usableCount = 0; - - for (i = 0; i < nativeCount; i++) - { - const EGLConfig n = nativeConfigs[i]; - _GLFWfbconfig* u = usableConfigs + usableCount; - -#if defined(_GLFW_X11) - // Only consider EGLConfigs with associated visuals - if (!getConfigAttrib(n, EGL_NATIVE_VISUAL_ID)) - continue; -#endif // _GLFW_X11 - - // Only consider RGB(A) EGLConfigs - if (!(getConfigAttrib(n, EGL_COLOR_BUFFER_TYPE) & EGL_RGB_BUFFER)) - continue; - - // Only consider window EGLConfigs - if (!(getConfigAttrib(n, EGL_SURFACE_TYPE) & EGL_WINDOW_BIT)) - continue; - - if (ctxconfig->api == GLFW_OPENGL_ES_API) - { - if (ctxconfig->major == 1) - { - if (!(getConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_ES_BIT)) - continue; - } - else - { - if (!(getConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_ES2_BIT)) - continue; - } - } - else if (ctxconfig->api == GLFW_OPENGL_API) - { - if (!(getConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_BIT)) - continue; - } - - u->redBits = getConfigAttrib(n, EGL_RED_SIZE); - u->greenBits = getConfigAttrib(n, EGL_GREEN_SIZE); - u->blueBits = getConfigAttrib(n, EGL_BLUE_SIZE); - - u->alphaBits = getConfigAttrib(n, EGL_ALPHA_SIZE); - u->depthBits = getConfigAttrib(n, EGL_DEPTH_SIZE); - u->stencilBits = getConfigAttrib(n, EGL_STENCIL_SIZE); - - u->samples = getConfigAttrib(n, EGL_SAMPLES); - u->doublebuffer = GL_TRUE; - - u->egl = n; - usableCount++; - } - - closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); - if (closest) - *result = closest->egl; - - free(nativeConfigs); - free(usableConfigs); - - return closest ? GL_TRUE : GL_FALSE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize EGL -// -int _glfwInitContextAPI(void) -{ - int i; - const char* sonames[] = - { -#if defined(_GLFW_WIN32) - "libEGL.dll", - "EGL.dll", -#elif defined(_GLFW_COCOA) - "libEGL.dylib", -#else - "libEGL.so.1", -#endif - NULL - }; - - if (!_glfwCreateContextTLS()) - return GL_FALSE; - - for (i = 0; sonames[i]; i++) - { - _glfw.egl.handle = _glfw_dlopen(sonames[i]); - if (_glfw.egl.handle) - break; - } - - if (!_glfw.egl.handle) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: Failed to load EGL"); - return GL_FALSE; - } - - _glfw.egl.GetConfigAttrib = - _glfw_dlsym(_glfw.egl.handle, "eglGetConfigAttrib"); - _glfw.egl.GetConfigs = - _glfw_dlsym(_glfw.egl.handle, "eglGetConfigs"); - _glfw.egl.GetDisplay = - _glfw_dlsym(_glfw.egl.handle, "eglGetDisplay"); - _glfw.egl.GetError = - _glfw_dlsym(_glfw.egl.handle, "eglGetError"); - _glfw.egl.Initialize = - _glfw_dlsym(_glfw.egl.handle, "eglInitialize"); - _glfw.egl.Terminate = - _glfw_dlsym(_glfw.egl.handle, "eglTerminate"); - _glfw.egl.BindAPI = - _glfw_dlsym(_glfw.egl.handle, "eglBindAPI"); - _glfw.egl.CreateContext = - _glfw_dlsym(_glfw.egl.handle, "eglCreateContext"); - _glfw.egl.DestroySurface = - _glfw_dlsym(_glfw.egl.handle, "eglDestroySurface"); - _glfw.egl.DestroyContext = - _glfw_dlsym(_glfw.egl.handle, "eglDestroyContext"); - _glfw.egl.CreateWindowSurface = - _glfw_dlsym(_glfw.egl.handle, "eglCreateWindowSurface"); - _glfw.egl.MakeCurrent = - _glfw_dlsym(_glfw.egl.handle, "eglMakeCurrent"); - _glfw.egl.SwapBuffers = - _glfw_dlsym(_glfw.egl.handle, "eglSwapBuffers"); - _glfw.egl.SwapInterval = - _glfw_dlsym(_glfw.egl.handle, "eglSwapInterval"); - _glfw.egl.QueryString = - _glfw_dlsym(_glfw.egl.handle, "eglQueryString"); - _glfw.egl.GetProcAddress = - _glfw_dlsym(_glfw.egl.handle, "eglGetProcAddress"); - - _glfw.egl.display = - _glfw_eglGetDisplay((EGLNativeDisplayType)_GLFW_EGL_NATIVE_DISPLAY); - if (_glfw.egl.display == EGL_NO_DISPLAY) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to get EGL display: %s", - getErrorString(_glfw_eglGetError())); - return GL_FALSE; - } - - if (!_glfw_eglInitialize(_glfw.egl.display, - &_glfw.egl.major, - &_glfw.egl.minor)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to initialize EGL: %s", - getErrorString(_glfw_eglGetError())); - return GL_FALSE; - } - - _glfw.egl.KHR_create_context = - _glfwPlatformExtensionSupported("EGL_KHR_create_context"); - - return GL_TRUE; -} - -// Terminate EGL -// -void _glfwTerminateContextAPI(void) -{ - if (_glfw_eglTerminate) - _glfw_eglTerminate(_glfw.egl.display); - - if (_glfw.egl.handle) - { - _glfw_dlclose(_glfw.egl.handle); - _glfw.egl.handle = NULL; - } - - _glfwDestroyContextTLS(); -} - -#define setEGLattrib(attribName, attribValue) \ -{ \ - attribs[index++] = attribName; \ - attribs[index++] = attribValue; \ - assert((size_t) index < sizeof(attribs) / sizeof(attribs[0])); \ -} - -// Create the OpenGL or OpenGL ES context -// -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - int attribs[40]; - EGLConfig config; - EGLContext share = NULL; - - if (ctxconfig->share) - share = ctxconfig->share->egl.context; - - if (!chooseFBConfigs(ctxconfig, fbconfig, &config)) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "EGL: Failed to find a suitable EGLConfig"); - return GL_FALSE; - } - -#if defined(_GLFW_X11) - // Retrieve the visual corresponding to the chosen EGL config - { - EGLint count = 0; - int mask; - EGLint redBits, greenBits, blueBits, alphaBits, visualID = 0; - XVisualInfo info; - - _glfw_eglGetConfigAttrib(_glfw.egl.display, config, - EGL_NATIVE_VISUAL_ID, &visualID); - - info.screen = _glfw.x11.screen; - mask = VisualScreenMask; - - if (visualID) - { - // The X window visual must match the EGL config - info.visualid = visualID; - mask |= VisualIDMask; - } - else - { - // Some EGL drivers do not implement the EGL_NATIVE_VISUAL_ID - // attribute, so attempt to find the closest match - - _glfw_eglGetConfigAttrib(_glfw.egl.display, config, - EGL_RED_SIZE, &redBits); - _glfw_eglGetConfigAttrib(_glfw.egl.display, config, - EGL_GREEN_SIZE, &greenBits); - _glfw_eglGetConfigAttrib(_glfw.egl.display, config, - EGL_BLUE_SIZE, &blueBits); - _glfw_eglGetConfigAttrib(_glfw.egl.display, config, - EGL_ALPHA_SIZE, &alphaBits); - - info.depth = redBits + greenBits + blueBits + alphaBits; - mask |= VisualDepthMask; - } - - window->egl.visual = XGetVisualInfo(_glfw.x11.display, - mask, &info, &count); - if (!window->egl.visual) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "EGL: Failed to retrieve visual for EGLConfig"); - return GL_FALSE; - } - } -#endif // _GLFW_X11 - - if (ctxconfig->api == GLFW_OPENGL_ES_API) - { - if (!_glfw_eglBindAPI(EGL_OPENGL_ES_API)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to bind OpenGL ES: %s", - getErrorString(_glfw_eglGetError())); - return GL_FALSE; - } - } - else - { - if (!_glfw_eglBindAPI(EGL_OPENGL_API)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to bind OpenGL: %s", - getErrorString(_glfw_eglGetError())); - return GL_FALSE; - } - } - - if (_glfw.egl.KHR_create_context) - { - int index = 0, mask = 0, flags = 0; - - if (ctxconfig->api == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - flags |= EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR; - - if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) - mask |= EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR; - else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) - mask |= EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR; - } - - if (ctxconfig->debug) - flags |= EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR; - - if (ctxconfig->robustness) - { - if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) - { - setEGLattrib(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR, - EGL_NO_RESET_NOTIFICATION_KHR); - } - else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) - { - setEGLattrib(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR, - EGL_LOSE_CONTEXT_ON_RESET_KHR); - } - - flags |= EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR; - } - - if (ctxconfig->major != 1 || ctxconfig->minor != 0) - { - setEGLattrib(EGL_CONTEXT_MAJOR_VERSION_KHR, ctxconfig->major); - setEGLattrib(EGL_CONTEXT_MINOR_VERSION_KHR, ctxconfig->minor); - } - - if (mask) - setEGLattrib(EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR, mask); - - if (flags) - setEGLattrib(EGL_CONTEXT_FLAGS_KHR, flags); - - setEGLattrib(EGL_NONE, EGL_NONE); - } - else - { - int index = 0; - - if (ctxconfig->api == GLFW_OPENGL_ES_API) - setEGLattrib(EGL_CONTEXT_CLIENT_VERSION, ctxconfig->major); - - setEGLattrib(EGL_NONE, EGL_NONE); - } - - // Context release behaviors (GL_KHR_context_flush_control) are not yet - // supported on EGL but are not a hard constraint, so ignore and continue - - window->egl.context = _glfw_eglCreateContext(_glfw.egl.display, - config, share, attribs); - - if (window->egl.context == EGL_NO_CONTEXT) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "EGL: Failed to create context: %s", - getErrorString(_glfw_eglGetError())); - return GL_FALSE; - } - - window->egl.config = config; - - // Load the appropriate client library - { - int i; - const char** sonames; - const char* es1sonames[] = - { -#if defined(_GLFW_WIN32) - "GLESv1_CM.dll", - "libGLES_CM.dll", -#elif defined(_GLFW_COCOA) - "libGLESv1_CM.dylib", -#else - "libGLESv1_CM.so.1", - "libGLES_CM.so.1", -#endif - NULL - }; - const char* es2sonames[] = - { -#if defined(_GLFW_WIN32) - "GLESv2.dll", - "libGLESv2.dll", -#elif defined(_GLFW_COCOA) - "libGLESv2.dylib", -#else - "libGLESv2.so.2", -#endif - NULL - }; - const char* glsonames[] = - { -#if defined(_GLFW_WIN32) -#elif defined(_GLFW_COCOA) -#else - "libGL.so.1", -#endif - NULL - }; - - if (ctxconfig->api == GLFW_OPENGL_ES_API) - { - if (ctxconfig->major == 1) - sonames = es1sonames; - else - sonames = es2sonames; - } - else - sonames = glsonames; - - for (i = 0; sonames[i]; i++) - { - window->egl.client = _glfw_dlopen(sonames[i]); - if (window->egl.client) - break; - } - - if (!window->egl.client) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to load client library"); - return GL_FALSE; - } - } - - return GL_TRUE; -} - -#undef setEGLattrib - -// Destroy the OpenGL context -// -void _glfwDestroyContext(_GLFWwindow* window) -{ -#if defined(_GLFW_X11) - // NOTE: Do not unload libGL.so.1 while the X11 display is still open, - // as it will make XCloseDisplay segfault - if (window->context.api != GLFW_OPENGL_API) -#endif // _GLFW_X11 - { - if (window->egl.client) - { - _glfw_dlclose(window->egl.client); - window->egl.client = NULL; - } - } - -#if defined(_GLFW_X11) - if (window->egl.visual) - { - XFree(window->egl.visual); - window->egl.visual = NULL; - } -#endif // _GLFW_X11 - - if (window->egl.surface) - { - _glfw_eglDestroySurface(_glfw.egl.display, window->egl.surface); - window->egl.surface = EGL_NO_SURFACE; - } - - if (window->egl.context) - { - _glfw_eglDestroyContext(_glfw.egl.display, window->egl.context); - window->egl.context = EGL_NO_CONTEXT; - } -} - -// Analyzes the specified context for possible recreation -// -int _glfwAnalyzeContext(const _GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ -#if defined(_GLFW_WIN32) - return _GLFW_RECREATION_NOT_NEEDED; -#else - return 0; -#endif -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformMakeContextCurrent(_GLFWwindow* window) -{ - if (window) - { - if (window->egl.surface == EGL_NO_SURFACE) - { - window->egl.surface = - _glfw_eglCreateWindowSurface(_glfw.egl.display, - window->egl.config, - (EGLNativeWindowType)_GLFW_EGL_NATIVE_WINDOW, - NULL); - if (window->egl.surface == EGL_NO_SURFACE) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "EGL: Failed to create window surface: %s", - getErrorString(_glfw_eglGetError())); - } - } - - _glfw_eglMakeCurrent(_glfw.egl.display, - window->egl.surface, - window->egl.surface, - window->egl.context); - } - else - { - _glfw_eglMakeCurrent(_glfw.egl.display, - EGL_NO_SURFACE, - EGL_NO_SURFACE, - EGL_NO_CONTEXT); - } - - _glfwSetContextTLS(window); -} - -void _glfwPlatformSwapBuffers(_GLFWwindow* window) -{ - _glfw_eglSwapBuffers(_glfw.egl.display, window->egl.surface); -} - -void _glfwPlatformSwapInterval(int interval) -{ - _glfw_eglSwapInterval(_glfw.egl.display, interval); -} - -int _glfwPlatformExtensionSupported(const char* extension) -{ - const char* extensions = _glfw_eglQueryString(_glfw.egl.display, - EGL_EXTENSIONS); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GL_TRUE; - } - - return GL_FALSE; -} - -GLFWglproc _glfwPlatformGetProcAddress(const char* procname) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - if (window->egl.client) - { - GLFWglproc proc = (GLFWglproc) _glfw_dlsym(window->egl.client, procname); - if (proc) - return proc; - } - - return _glfw_eglGetProcAddress(procname); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI EGLDisplay glfwGetEGLDisplay(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_DISPLAY); - return _glfw.egl.display; -} - -GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_CONTEXT); - return window->egl.context; -} - -GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_SURFACE); - return window->egl.surface; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/egl_context.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/egl_context.h deleted file mode 100644 index a37cbc6..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/egl_context.h +++ /dev/null @@ -1,146 +0,0 @@ -//======================================================================== -// GLFW 3.1 EGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_egl_context_h_ -#define _glfw3_egl_context_h_ - -#if defined(_GLFW_WIN32) - #define _glfw_dlopen(name) LoadLibraryA(name) - #define _glfw_dlclose(handle) FreeLibrary((HMODULE) handle) - #define _glfw_dlsym(handle, name) GetProcAddress((HMODULE) handle, name) -#else - #include - #define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) - #define _glfw_dlclose(handle) dlclose(handle) - #define _glfw_dlsym(handle, name) dlsym(handle, name) -#endif - -#include - -// This path may need to be changed if you build GLFW using your own setup -// We ship and use our own copy of eglext.h since GLFW uses fairly new -// extensions and not all operating systems come with an up-to-date version -#include "../deps/EGL/eglext.h" - -// EGL function pointer typedefs -typedef EGLBoolean (EGLAPIENTRY * PFNEGLGETCONFIGATTRIBPROC)(EGLDisplay,EGLConfig,EGLint,EGLint*); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLGETCONFIGSPROC)(EGLDisplay,EGLConfig*,EGLint,EGLint*); -typedef EGLDisplay (EGLAPIENTRY * PFNEGLGETDISPLAYPROC)(EGLNativeDisplayType); -typedef EGLint (EGLAPIENTRY * PFNEGLGETERRORPROC)(void); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLINITIALIZEPROC)(EGLDisplay,EGLint*,EGLint*); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLTERMINATEPROC)(EGLDisplay); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLBINDAPIPROC)(EGLenum); -typedef EGLContext (EGLAPIENTRY * PFNEGLCREATECONTEXTPROC)(EGLDisplay,EGLConfig,EGLContext,const EGLint*); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLDESTROYSURFACEPROC)(EGLDisplay,EGLSurface); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLDESTROYCONTEXTPROC)(EGLDisplay,EGLContext); -typedef EGLSurface (EGLAPIENTRY * PFNEGLCREATEWINDOWSURFACEPROC)(EGLDisplay,EGLConfig,EGLNativeWindowType,const EGLint*); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLMAKECURRENTPROC)(EGLDisplay,EGLSurface,EGLSurface,EGLContext); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLSWAPBUFFERSPROC)(EGLDisplay,EGLSurface); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLSWAPINTERVALPROC)(EGLDisplay,EGLint); -typedef const char* (EGLAPIENTRY * PFNEGLQUERYSTRINGPROC)(EGLDisplay,EGLint); -typedef GLFWglproc (EGLAPIENTRY * PFNEGLGETPROCADDRESSPROC)(const char*); -#define _glfw_eglGetConfigAttrib _glfw.egl.GetConfigAttrib -#define _glfw_eglGetConfigs _glfw.egl.GetConfigs -#define _glfw_eglGetDisplay _glfw.egl.GetDisplay -#define _glfw_eglGetError _glfw.egl.GetError -#define _glfw_eglInitialize _glfw.egl.Initialize -#define _glfw_eglTerminate _glfw.egl.Terminate -#define _glfw_eglBindAPI _glfw.egl.BindAPI -#define _glfw_eglCreateContext _glfw.egl.CreateContext -#define _glfw_eglDestroySurface _glfw.egl.DestroySurface -#define _glfw_eglDestroyContext _glfw.egl.DestroyContext -#define _glfw_eglCreateWindowSurface _glfw.egl.CreateWindowSurface -#define _glfw_eglMakeCurrent _glfw.egl.MakeCurrent -#define _glfw_eglSwapBuffers _glfw.egl.SwapBuffers -#define _glfw_eglSwapInterval _glfw.egl.SwapInterval -#define _glfw_eglQueryString _glfw.egl.QueryString -#define _glfw_eglGetProcAddress _glfw.egl.GetProcAddress - -#define _GLFW_PLATFORM_FBCONFIG EGLConfig egl -#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextEGL egl -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryEGL egl - - -// EGL-specific per-context data -// -typedef struct _GLFWcontextEGL -{ - EGLConfig config; - EGLContext context; - EGLSurface surface; - -#if defined(_GLFW_X11) - XVisualInfo* visual; -#endif - - void* client; - -} _GLFWcontextEGL; - - -// EGL-specific global data -// -typedef struct _GLFWlibraryEGL -{ - EGLDisplay display; - EGLint major, minor; - - GLboolean KHR_create_context; - - void* handle; - - PFNEGLGETCONFIGATTRIBPROC GetConfigAttrib; - PFNEGLGETCONFIGSPROC GetConfigs; - PFNEGLGETDISPLAYPROC GetDisplay; - PFNEGLGETERRORPROC GetError; - PFNEGLINITIALIZEPROC Initialize; - PFNEGLTERMINATEPROC Terminate; - PFNEGLBINDAPIPROC BindAPI; - PFNEGLCREATECONTEXTPROC CreateContext; - PFNEGLDESTROYSURFACEPROC DestroySurface; - PFNEGLDESTROYCONTEXTPROC DestroyContext; - PFNEGLCREATEWINDOWSURFACEPROC CreateWindowSurface; - PFNEGLMAKECURRENTPROC MakeCurrent; - PFNEGLSWAPBUFFERSPROC SwapBuffers; - PFNEGLSWAPINTERVALPROC SwapInterval; - PFNEGLQUERYSTRINGPROC QueryString; - PFNEGLGETPROCADDRESSPROC GetProcAddress; - -} _GLFWlibraryEGL; - - -int _glfwInitContextAPI(void); -void _glfwTerminateContextAPI(void); -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContext(_GLFWwindow* window); -int _glfwAnalyzeContext(const _GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); - -#endif // _glfw3_egl_context_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/glx_context.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/glx_context.c deleted file mode 100644 index 443addc..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/glx_context.c +++ /dev/null @@ -1,578 +0,0 @@ -//======================================================================== -// GLFW 3.1 GLX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - -#ifndef GLXBadProfileARB - #define GLXBadProfileARB 13 -#endif - - -// Returns the specified attribute of the specified GLXFBConfig -// -static int getFBConfigAttrib(GLXFBConfig fbconfig, int attrib) -{ - int value; - _glfw_glXGetFBConfigAttrib(_glfw.x11.display, fbconfig, attrib, &value); - return value; -} - -// Return a list of available and usable framebuffer configs -// -static GLboolean chooseFBConfig(const _GLFWfbconfig* desired, GLXFBConfig* result) -{ - GLXFBConfig* nativeConfigs; - _GLFWfbconfig* usableConfigs; - const _GLFWfbconfig* closest; - int i, nativeCount, usableCount; - const char* vendor; - GLboolean trustWindowBit = GL_TRUE; - - // HACK: This is a (hopefully temporary) workaround for Chromium - // (VirtualBox GL) not setting the window bit on any GLXFBConfigs - vendor = _glfw_glXGetClientString(_glfw.x11.display, GLX_VENDOR); - if (strcmp(vendor, "Chromium") == 0) - trustWindowBit = GL_FALSE; - - nativeConfigs = _glfw_glXGetFBConfigs(_glfw.x11.display, _glfw.x11.screen, - &nativeCount); - if (!nativeCount) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: No GLXFBConfigs returned"); - return GL_FALSE; - } - - usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); - usableCount = 0; - - for (i = 0; i < nativeCount; i++) - { - const GLXFBConfig n = nativeConfigs[i]; - _GLFWfbconfig* u = usableConfigs + usableCount; - - // Only consider GLXFBConfigs with associated visuals - if (!getFBConfigAttrib(n, GLX_VISUAL_ID)) - continue; - - // Only consider RGBA GLXFBConfigs - if (!(getFBConfigAttrib(n, GLX_RENDER_TYPE) & GLX_RGBA_BIT)) - continue; - - // Only consider window GLXFBConfigs - if (!(getFBConfigAttrib(n, GLX_DRAWABLE_TYPE) & GLX_WINDOW_BIT)) - { - if (trustWindowBit) - continue; - } - - u->redBits = getFBConfigAttrib(n, GLX_RED_SIZE); - u->greenBits = getFBConfigAttrib(n, GLX_GREEN_SIZE); - u->blueBits = getFBConfigAttrib(n, GLX_BLUE_SIZE); - - u->alphaBits = getFBConfigAttrib(n, GLX_ALPHA_SIZE); - u->depthBits = getFBConfigAttrib(n, GLX_DEPTH_SIZE); - u->stencilBits = getFBConfigAttrib(n, GLX_STENCIL_SIZE); - - u->accumRedBits = getFBConfigAttrib(n, GLX_ACCUM_RED_SIZE); - u->accumGreenBits = getFBConfigAttrib(n, GLX_ACCUM_GREEN_SIZE); - u->accumBlueBits = getFBConfigAttrib(n, GLX_ACCUM_BLUE_SIZE); - u->accumAlphaBits = getFBConfigAttrib(n, GLX_ACCUM_ALPHA_SIZE); - - u->auxBuffers = getFBConfigAttrib(n, GLX_AUX_BUFFERS); - - if (getFBConfigAttrib(n, GLX_STEREO)) - u->stereo = GL_TRUE; - if (getFBConfigAttrib(n, GLX_DOUBLEBUFFER)) - u->doublebuffer = GL_TRUE; - - if (_glfw.glx.ARB_multisample) - u->samples = getFBConfigAttrib(n, GLX_SAMPLES); - - if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB) - u->sRGB = getFBConfigAttrib(n, GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB); - - u->glx = n; - usableCount++; - } - - closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); - if (closest) - *result = closest->glx; - - XFree(nativeConfigs); - free(usableConfigs); - - return closest ? GL_TRUE : GL_FALSE; -} - -// Create the OpenGL context using legacy API -// -static GLXContext createLegacyContext(_GLFWwindow* window, - GLXFBConfig fbconfig, - GLXContext share) -{ - return _glfw_glXCreateNewContext(_glfw.x11.display, - fbconfig, - GLX_RGBA_TYPE, - share, - True); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize GLX -// -int _glfwInitContextAPI(void) -{ -#if defined(__CYGWIN__) - const char* soname = "libGL-1.so"; -#else - const char* soname = "libGL.so.1"; -#endif - - if (!_glfwCreateContextTLS()) - return GL_FALSE; - - _glfw.glx.handle = dlopen(soname, RTLD_LAZY | RTLD_GLOBAL); - if (!_glfw.glx.handle) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: %s", dlerror()); - return GL_FALSE; - } - - _glfw.glx.GetFBConfigs = - dlsym(_glfw.glx.handle, "glXGetFBConfigs"); - _glfw.glx.GetFBConfigAttrib = - dlsym(_glfw.glx.handle, "glXGetFBConfigAttrib"); - _glfw.glx.GetClientString = - dlsym(_glfw.glx.handle, "glXGetClientString"); - _glfw.glx.QueryExtension = - dlsym(_glfw.glx.handle, "glXQueryExtension"); - _glfw.glx.QueryVersion = - dlsym(_glfw.glx.handle, "glXQueryVersion"); - _glfw.glx.DestroyContext = - dlsym(_glfw.glx.handle, "glXDestroyContext"); - _glfw.glx.MakeCurrent = - dlsym(_glfw.glx.handle, "glXMakeCurrent"); - _glfw.glx.SwapBuffers = - dlsym(_glfw.glx.handle, "glXSwapBuffers"); - _glfw.glx.QueryExtensionsString = - dlsym(_glfw.glx.handle, "glXQueryExtensionsString"); - _glfw.glx.CreateNewContext = - dlsym(_glfw.glx.handle, "glXCreateNewContext"); - _glfw.glx.GetVisualFromFBConfig = - dlsym(_glfw.glx.handle, "glXGetVisualFromFBConfig"); - _glfw.glx.GetProcAddress = - dlsym(_glfw.glx.handle, "glXGetProcAddress"); - _glfw.glx.GetProcAddressARB = - dlsym(_glfw.glx.handle, "glXGetProcAddressARB"); - - if (!_glfw_glXQueryExtension(_glfw.x11.display, - &_glfw.glx.errorBase, - &_glfw.glx.eventBase)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: GLX extension not found"); - return GL_FALSE; - } - - if (!_glfw_glXQueryVersion(_glfw.x11.display, - &_glfw.glx.major, - &_glfw.glx.minor)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "GLX: Failed to query GLX version"); - return GL_FALSE; - } - - if (_glfw.glx.major == 1 && _glfw.glx.minor < 3) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "GLX: GLX version 1.3 is required"); - return GL_FALSE; - } - - if (_glfwPlatformExtensionSupported("GLX_EXT_swap_control")) - { - _glfw.glx.SwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC) - _glfwPlatformGetProcAddress("glXSwapIntervalEXT"); - - if (_glfw.glx.SwapIntervalEXT) - _glfw.glx.EXT_swap_control = GL_TRUE; - } - - if (_glfwPlatformExtensionSupported("GLX_SGI_swap_control")) - { - _glfw.glx.SwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC) - _glfwPlatformGetProcAddress("glXSwapIntervalSGI"); - - if (_glfw.glx.SwapIntervalSGI) - _glfw.glx.SGI_swap_control = GL_TRUE; - } - - if (_glfwPlatformExtensionSupported("GLX_MESA_swap_control")) - { - _glfw.glx.SwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC) - _glfwPlatformGetProcAddress("glXSwapIntervalMESA"); - - if (_glfw.glx.SwapIntervalMESA) - _glfw.glx.MESA_swap_control = GL_TRUE; - } - - if (_glfwPlatformExtensionSupported("GLX_ARB_multisample")) - _glfw.glx.ARB_multisample = GL_TRUE; - - if (_glfwPlatformExtensionSupported("GLX_ARB_framebuffer_sRGB")) - _glfw.glx.ARB_framebuffer_sRGB = GL_TRUE; - - if (_glfwPlatformExtensionSupported("GLX_EXT_framebuffer_sRGB")) - _glfw.glx.EXT_framebuffer_sRGB = GL_TRUE; - - if (_glfwPlatformExtensionSupported("GLX_ARB_create_context")) - { - _glfw.glx.CreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC) - _glfwPlatformGetProcAddress("glXCreateContextAttribsARB"); - - if (_glfw.glx.CreateContextAttribsARB) - _glfw.glx.ARB_create_context = GL_TRUE; - } - - if (_glfwPlatformExtensionSupported("GLX_ARB_create_context_robustness")) - _glfw.glx.ARB_create_context_robustness = GL_TRUE; - - if (_glfwPlatformExtensionSupported("GLX_ARB_create_context_profile")) - _glfw.glx.ARB_create_context_profile = GL_TRUE; - - if (_glfwPlatformExtensionSupported("GLX_EXT_create_context_es2_profile")) - _glfw.glx.EXT_create_context_es2_profile = GL_TRUE; - - if (_glfwPlatformExtensionSupported("GLX_ARB_context_flush_control")) - _glfw.glx.ARB_context_flush_control = GL_TRUE; - - return GL_TRUE; -} - -// Terminate GLX -// -void _glfwTerminateContextAPI(void) -{ - // NOTE: This function may not call any X11 functions, as it is called after - // XCloseDisplay (see _glfwPlatformTerminate for details) - - if (_glfw.glx.handle) - { - dlclose(_glfw.glx.handle); - _glfw.glx.handle = NULL; - } - - _glfwDestroyContextTLS(); -} - -#define setGLXattrib(attribName, attribValue) \ -{ \ - attribs[index++] = attribName; \ - attribs[index++] = attribValue; \ - assert((size_t) index < sizeof(attribs) / sizeof(attribs[0])); \ -} - -// Create the OpenGL or OpenGL ES context -// -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - int attribs[40]; - GLXFBConfig native = NULL; - GLXContext share = NULL; - - if (ctxconfig->share) - share = ctxconfig->share->glx.context; - - if (!chooseFBConfig(fbconfig, &native)) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "GLX: Failed to find a suitable GLXFBConfig"); - return GL_FALSE; - } - - window->glx.visual = _glfw_glXGetVisualFromFBConfig(_glfw.x11.display, - native); - if (!window->glx.visual) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "GLX: Failed to retrieve visual for GLXFBConfig"); - return GL_FALSE; - } - - if (ctxconfig->api == GLFW_OPENGL_ES_API) - { - if (!_glfw.glx.ARB_create_context || - !_glfw.glx.ARB_create_context_profile || - !_glfw.glx.EXT_create_context_es2_profile) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "GLX: OpenGL ES requested but GLX_EXT_create_context_es2_profile is unavailable"); - return GL_FALSE; - } - } - - if (ctxconfig->forward) - { - if (!_glfw.glx.ARB_create_context) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "GLX: Forward compatibility requested but GLX_ARB_create_context_profile is unavailable"); - return GL_FALSE; - } - } - - if (ctxconfig->profile) - { - if (!_glfw.glx.ARB_create_context || - !_glfw.glx.ARB_create_context_profile) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "GLX: An OpenGL profile requested but GLX_ARB_create_context_profile is unavailable"); - return GL_FALSE; - } - } - - _glfwGrabXErrorHandler(); - - if (_glfw.glx.ARB_create_context) - { - int index = 0, mask = 0, flags = 0; - - if (ctxconfig->api == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - flags |= GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; - - if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) - mask |= GLX_CONTEXT_CORE_PROFILE_BIT_ARB; - else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) - mask |= GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; - } - else - mask |= GLX_CONTEXT_ES2_PROFILE_BIT_EXT; - - if (ctxconfig->debug) - flags |= GLX_CONTEXT_DEBUG_BIT_ARB; - - if (ctxconfig->robustness) - { - if (_glfw.glx.ARB_create_context_robustness) - { - if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) - { - setGLXattrib(GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - GLX_NO_RESET_NOTIFICATION_ARB); - } - else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) - { - setGLXattrib(GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - GLX_LOSE_CONTEXT_ON_RESET_ARB); - } - - flags |= GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB; - } - } - - if (ctxconfig->release) - { - if (_glfw.glx.ARB_context_flush_control) - { - if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) - { - setGLXattrib(GLX_CONTEXT_RELEASE_BEHAVIOR_ARB, - GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB); - } - else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) - { - setGLXattrib(GLX_CONTEXT_RELEASE_BEHAVIOR_ARB, - GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB); - } - } - } - - // NOTE: Only request an explicitly versioned context when necessary, as - // explicitly requesting version 1.0 does not always return the - // highest version supported by the driver - if (ctxconfig->major != 1 || ctxconfig->minor != 0) - { - setGLXattrib(GLX_CONTEXT_MAJOR_VERSION_ARB, ctxconfig->major); - setGLXattrib(GLX_CONTEXT_MINOR_VERSION_ARB, ctxconfig->minor); - } - - if (mask) - setGLXattrib(GLX_CONTEXT_PROFILE_MASK_ARB, mask); - - if (flags) - setGLXattrib(GLX_CONTEXT_FLAGS_ARB, flags); - - setGLXattrib(None, None); - - window->glx.context = - _glfw.glx.CreateContextAttribsARB(_glfw.x11.display, - native, - share, - True, - attribs); - - // HACK: This is a fallback for broken versions of the Mesa - // implementation of GLX_ARB_create_context_profile that fail - // default 1.0 context creation with a GLXBadProfileARB error in - // violation of the extension spec - if (!window->glx.context) - { - if (_glfw.x11.errorCode == _glfw.glx.errorBase + GLXBadProfileARB && - ctxconfig->api == GLFW_OPENGL_API && - ctxconfig->profile == GLFW_OPENGL_ANY_PROFILE && - ctxconfig->forward == GL_FALSE) - { - window->glx.context = createLegacyContext(window, native, share); - } - } - } - else - window->glx.context = createLegacyContext(window, native, share); - - _glfwReleaseXErrorHandler(); - - if (!window->glx.context) - { - _glfwInputXError(GLFW_VERSION_UNAVAILABLE, "GLX: Failed to create context"); - return GL_FALSE; - } - - return GL_TRUE; -} - -#undef setGLXattrib - -// Destroy the OpenGL context -// -void _glfwDestroyContext(_GLFWwindow* window) -{ - if (window->glx.visual) - { - XFree(window->glx.visual); - window->glx.visual = NULL; - } - - if (window->glx.context) - { - _glfw_glXDestroyContext(_glfw.x11.display, window->glx.context); - window->glx.context = NULL; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformMakeContextCurrent(_GLFWwindow* window) -{ - if (window) - { - _glfw_glXMakeCurrent(_glfw.x11.display, - window->x11.handle, - window->glx.context); - } - else - _glfw_glXMakeCurrent(_glfw.x11.display, None, NULL); - - _glfwSetContextTLS(window); -} - -void _glfwPlatformSwapBuffers(_GLFWwindow* window) -{ - _glfw_glXSwapBuffers(_glfw.x11.display, window->x11.handle); -} - -void _glfwPlatformSwapInterval(int interval) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - if (_glfw.glx.EXT_swap_control) - { - _glfw.glx.SwapIntervalEXT(_glfw.x11.display, - window->x11.handle, - interval); - } - else if (_glfw.glx.MESA_swap_control) - _glfw.glx.SwapIntervalMESA(interval); - else if (_glfw.glx.SGI_swap_control) - { - if (interval > 0) - _glfw.glx.SwapIntervalSGI(interval); - } -} - -int _glfwPlatformExtensionSupported(const char* extension) -{ - const char* extensions = - _glfw_glXQueryExtensionsString(_glfw.x11.display, _glfw.x11.screen); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GL_TRUE; - } - - return GL_FALSE; -} - -GLFWglproc _glfwPlatformGetProcAddress(const char* procname) -{ - if (_glfw.glx.GetProcAddress) - return _glfw.glx.GetProcAddress((const GLubyte*) procname); - else if (_glfw.glx.GetProcAddressARB) - return _glfw.glx.GetProcAddressARB((const GLubyte*) procname); - else - return dlsym(_glfw.glx.handle, procname); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->glx.context; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/glx_context.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/glx_context.h deleted file mode 100644 index c774976..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/glx_context.h +++ /dev/null @@ -1,135 +0,0 @@ -//======================================================================== -// GLFW 3.1 GLX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_glx_context_h_ -#define _glfw3_glx_context_h_ - -#define GLX_GLXEXT_LEGACY -#include - -// This path may need to be changed if you build GLFW using your own setup -// We ship and use our own copy of glxext.h since GLFW uses fairly new -// extensions and not all operating systems come with an up-to-date version -#define GLX_GLXEXT_PROTOTYPES -#include "../deps/GL/glxext.h" - -// libGL.so function pointer typedefs -typedef int (*PFNGLXGETFBCONFIGATTRIBPROC)(Display*,GLXFBConfig,int,int*); -typedef const char* (*PFNGLXGETCLIENTSTRINGPROC)(Display*,int); -typedef Bool (*PFNGLXQUERYEXTENSIONPROC)(Display*,int*,int*); -typedef Bool (*PFNGLXQUERYVERSIONPROC)(Display*,int*,int*); -typedef void (*PFNGLXDESTROYCONTEXTPROC)(Display*,GLXContext); -typedef Bool (*PFNGLXMAKECURRENTPROC)(Display*,GLXDrawable,GLXContext); -typedef void (*PFNGLXSWAPBUFFERSPROC)(Display*,GLXDrawable); -typedef const char* (*PFNGLXQUERYEXTENSIONSSTRINGPROC)(Display*,int); -#define _glfw_glXGetFBConfigs _glfw.glx.GetFBConfigs -#define _glfw_glXGetFBConfigAttrib _glfw.glx.GetFBConfigAttrib -#define _glfw_glXGetClientString _glfw.glx.GetClientString -#define _glfw_glXQueryExtension _glfw.glx.QueryExtension -#define _glfw_glXQueryVersion _glfw.glx.QueryVersion -#define _glfw_glXDestroyContext _glfw.glx.DestroyContext -#define _glfw_glXMakeCurrent _glfw.glx.MakeCurrent -#define _glfw_glXSwapBuffers _glfw.glx.SwapBuffers -#define _glfw_glXQueryExtensionsString _glfw.glx.QueryExtensionsString -#define _glfw_glXCreateNewContext _glfw.glx.CreateNewContext -#define _glfw_glXGetVisualFromFBConfig _glfw.glx.GetVisualFromFBConfig - -#define _GLFW_PLATFORM_FBCONFIG GLXFBConfig glx -#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextGLX glx -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryGLX glx - -#ifndef GLX_MESA_swap_control -typedef int (*PFNGLXSWAPINTERVALMESAPROC)(int); -#endif - - -// GLX-specific per-context data -// -typedef struct _GLFWcontextGLX -{ - // Rendering context - GLXContext context; - // Visual of selected GLXFBConfig - XVisualInfo* visual; - -} _GLFWcontextGLX; - - -// GLX-specific global data -// -typedef struct _GLFWlibraryGLX -{ - int major, minor; - int eventBase; - int errorBase; - - // dlopen handle for libGL.so.1 - void* handle; - - // GLX 1.3 functions - PFNGLXGETFBCONFIGSPROC GetFBConfigs; - PFNGLXGETFBCONFIGATTRIBPROC GetFBConfigAttrib; - PFNGLXGETCLIENTSTRINGPROC GetClientString; - PFNGLXQUERYEXTENSIONPROC QueryExtension; - PFNGLXQUERYVERSIONPROC QueryVersion; - PFNGLXDESTROYCONTEXTPROC DestroyContext; - PFNGLXMAKECURRENTPROC MakeCurrent; - PFNGLXSWAPBUFFERSPROC SwapBuffers; - PFNGLXQUERYEXTENSIONSSTRINGPROC QueryExtensionsString; - PFNGLXCREATENEWCONTEXTPROC CreateNewContext; - PFNGLXGETVISUALFROMFBCONFIGPROC GetVisualFromFBConfig; - - // GLX 1.4 and extension functions - PFNGLXGETPROCADDRESSPROC GetProcAddress; - PFNGLXGETPROCADDRESSPROC GetProcAddressARB; - PFNGLXSWAPINTERVALSGIPROC SwapIntervalSGI; - PFNGLXSWAPINTERVALEXTPROC SwapIntervalEXT; - PFNGLXSWAPINTERVALMESAPROC SwapIntervalMESA; - PFNGLXCREATECONTEXTATTRIBSARBPROC CreateContextAttribsARB; - GLboolean SGI_swap_control; - GLboolean EXT_swap_control; - GLboolean MESA_swap_control; - GLboolean ARB_multisample; - GLboolean ARB_framebuffer_sRGB; - GLboolean EXT_framebuffer_sRGB; - GLboolean ARB_create_context; - GLboolean ARB_create_context_profile; - GLboolean ARB_create_context_robustness; - GLboolean EXT_create_context_es2_profile; - GLboolean ARB_context_flush_control; - -} _GLFWlibraryGLX; - - -int _glfwInitContextAPI(void); -void _glfwTerminateContextAPI(void); -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContext(_GLFWwindow* window); - -#endif // _glfw3_glx_context_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/init.c deleted file mode 100644 index c85de90..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/init.c +++ /dev/null @@ -1,194 +0,0 @@ -//======================================================================== -// GLFW 3.1 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - - -// The three global variables below comprise all global data in GLFW. -// Any other global variable is a bug. - -// Global state shared between compilation units of GLFW -// These are documented in internal.h -// -GLboolean _glfwInitialized = GL_FALSE; -_GLFWlibrary _glfw; - -// This is outside of _glfw so it can be initialized and usable before -// glfwInit is called, which lets that function report errors -// -static GLFWerrorfun _glfwErrorCallback = NULL; - - -// Returns a generic string representation of the specified error -// -static const char* getErrorString(int error) -{ - switch (error) - { - case GLFW_NOT_INITIALIZED: - return "The GLFW library is not initialized"; - case GLFW_NO_CURRENT_CONTEXT: - return "There is no current context"; - case GLFW_INVALID_ENUM: - return "Invalid argument for enum parameter"; - case GLFW_INVALID_VALUE: - return "Invalid value for parameter"; - case GLFW_OUT_OF_MEMORY: - return "Out of memory"; - case GLFW_API_UNAVAILABLE: - return "The requested client API is unavailable"; - case GLFW_VERSION_UNAVAILABLE: - return "The requested client API version is unavailable"; - case GLFW_PLATFORM_ERROR: - return "A platform-specific error occurred"; - case GLFW_FORMAT_UNAVAILABLE: - return "The requested format is unavailable"; - } - - return "ERROR: UNKNOWN ERROR TOKEN PASSED TO glfwErrorString"; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputError(int error, const char* format, ...) -{ - if (_glfwErrorCallback) - { - char buffer[8192]; - const char* description; - - if (format) - { - int count; - va_list vl; - - va_start(vl, format); - count = vsnprintf(buffer, sizeof(buffer), format, vl); - va_end(vl); - - if (count < 0) - buffer[sizeof(buffer) - 1] = '\0'; - - description = buffer; - } - else - description = getErrorString(error); - - _glfwErrorCallback(error, description); - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwInit(void) -{ - if (_glfwInitialized) - return GL_TRUE; - - memset(&_glfw, 0, sizeof(_glfw)); - - if (!_glfwPlatformInit()) - { - _glfwPlatformTerminate(); - return GL_FALSE; - } - - _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); - _glfwInitialized = GL_TRUE; - - // Not all window hints have zero as their default value - glfwDefaultWindowHints(); - - return GL_TRUE; -} - -GLFWAPI void glfwTerminate(void) -{ - int i; - - if (!_glfwInitialized) - return; - - memset(&_glfw.callbacks, 0, sizeof(_glfw.callbacks)); - - while (_glfw.windowListHead) - glfwDestroyWindow((GLFWwindow*) _glfw.windowListHead); - - while (_glfw.cursorListHead) - glfwDestroyCursor((GLFWcursor*) _glfw.cursorListHead); - - for (i = 0; i < _glfw.monitorCount; i++) - { - _GLFWmonitor* monitor = _glfw.monitors[i]; - if (monitor->originalRamp.size) - _glfwPlatformSetGammaRamp(monitor, &monitor->originalRamp); - } - - _glfwFreeMonitors(_glfw.monitors, _glfw.monitorCount); - _glfw.monitors = NULL; - _glfw.monitorCount = 0; - - _glfwPlatformTerminate(); - - memset(&_glfw, 0, sizeof(_glfw)); - _glfwInitialized = GL_FALSE; -} - -GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev) -{ - if (major != NULL) - *major = GLFW_VERSION_MAJOR; - - if (minor != NULL) - *minor = GLFW_VERSION_MINOR; - - if (rev != NULL) - *rev = GLFW_VERSION_REVISION; -} - -GLFWAPI const char* glfwGetVersionString(void) -{ - return _glfwPlatformGetVersionString(); -} - -GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun) -{ - _GLFW_SWAP_POINTERS(_glfwErrorCallback, cbfun); - return cbfun; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/input.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/input.c deleted file mode 100644 index eefbf08..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/input.c +++ /dev/null @@ -1,614 +0,0 @@ -//======================================================================== -// GLFW 3.1 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#if defined(_MSC_VER) - #include -#endif - -// Internal key state used for sticky keys -#define _GLFW_STICK 3 - - -// Sets the cursor mode for the specified window -// -static void setCursorMode(_GLFWwindow* window, int newMode) -{ - const int oldMode = window->cursorMode; - - if (newMode != GLFW_CURSOR_NORMAL && - newMode != GLFW_CURSOR_HIDDEN && - newMode != GLFW_CURSOR_DISABLED) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid cursor mode"); - return; - } - - if (oldMode == newMode) - return; - - window->cursorMode = newMode; - - if (_glfw.cursorWindow == window) - { - if (oldMode == GLFW_CURSOR_DISABLED) - { - _glfwPlatformSetCursorPos(window, - _glfw.cursorPosX, - _glfw.cursorPosY); - } - else if (newMode == GLFW_CURSOR_DISABLED) - { - int width, height; - - _glfwPlatformGetCursorPos(window, - &_glfw.cursorPosX, - &_glfw.cursorPosY); - - window->cursorPosX = _glfw.cursorPosX; - window->cursorPosY = _glfw.cursorPosY; - - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2, height / 2); - } - - _glfwPlatformApplyCursorMode(window); - } -} - -// Set sticky keys mode for the specified window -// -static void setStickyKeys(_GLFWwindow* window, int enabled) -{ - if (window->stickyKeys == enabled) - return; - - if (!enabled) - { - int i; - - // Release all sticky keys - for (i = 0; i <= GLFW_KEY_LAST; i++) - { - if (window->keys[i] == _GLFW_STICK) - window->keys[i] = GLFW_RELEASE; - } - } - - window->stickyKeys = enabled; -} - -// Set sticky mouse buttons mode for the specified window -// -static void setStickyMouseButtons(_GLFWwindow* window, int enabled) -{ - if (window->stickyMouseButtons == enabled) - return; - - if (!enabled) - { - int i; - - // Release all sticky mouse buttons - for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) - { - if (window->mouseButtons[i] == _GLFW_STICK) - window->mouseButtons[i] = GLFW_RELEASE; - } - } - - window->stickyMouseButtons = enabled; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods) -{ - if (key >= 0 && key <= GLFW_KEY_LAST) - { - GLboolean repeated = GL_FALSE; - - if (action == GLFW_RELEASE && window->keys[key] == GLFW_RELEASE) - return; - - if (action == GLFW_PRESS && window->keys[key] == GLFW_PRESS) - repeated = GL_TRUE; - - if (action == GLFW_RELEASE && window->stickyKeys) - window->keys[key] = _GLFW_STICK; - else - window->keys[key] = (char) action; - - if (repeated) - action = GLFW_REPEAT; - } - - if (window->callbacks.key) - window->callbacks.key((GLFWwindow*) window, key, scancode, action, mods); -} - -void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, int plain) -{ - if (codepoint < 32 || (codepoint > 126 && codepoint < 160)) - return; - - if (window->callbacks.charmods) - window->callbacks.charmods((GLFWwindow*) window, codepoint, mods); - - if (plain) - { - if (window->callbacks.character) - window->callbacks.character((GLFWwindow*) window, codepoint); - } -} - -void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset) -{ - if (window->callbacks.scroll) - window->callbacks.scroll((GLFWwindow*) window, xoffset, yoffset); -} - -void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods) -{ - if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST) - return; - - // Register mouse button action - if (action == GLFW_RELEASE && window->stickyMouseButtons) - window->mouseButtons[button] = _GLFW_STICK; - else - window->mouseButtons[button] = (char) action; - - if (window->callbacks.mouseButton) - window->callbacks.mouseButton((GLFWwindow*) window, button, action, mods); -} - -void _glfwInputCursorMotion(_GLFWwindow* window, double x, double y) -{ - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (x == 0.0 && y == 0.0) - return; - - window->cursorPosX += x; - window->cursorPosY += y; - - x = window->cursorPosX; - y = window->cursorPosY; - } - - if (window->callbacks.cursorPos) - window->callbacks.cursorPos((GLFWwindow*) window, x, y); -} - -void _glfwInputCursorEnter(_GLFWwindow* window, int entered) -{ - if (window->callbacks.cursorEnter) - window->callbacks.cursorEnter((GLFWwindow*) window, entered); -} - -void _glfwInputDrop(_GLFWwindow* window, int count, const char** paths) -{ - if (window->callbacks.drop) - window->callbacks.drop((GLFWwindow*) window, count, paths); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwGetInputMode(GLFWwindow* handle, int mode) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT_OR_RETURN(0); - - switch (mode) - { - case GLFW_CURSOR: - return window->cursorMode; - case GLFW_STICKY_KEYS: - return window->stickyKeys; - case GLFW_STICKY_MOUSE_BUTTONS: - return window->stickyMouseButtons; - default: - _glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode"); - return 0; - } -} - -GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT(); - - switch (mode) - { - case GLFW_CURSOR: - setCursorMode(window, value); - break; - case GLFW_STICKY_KEYS: - setStickyKeys(window, value ? GL_TRUE : GL_FALSE); - break; - case GLFW_STICKY_MOUSE_BUTTONS: - setStickyMouseButtons(window, value ? GL_TRUE : GL_FALSE); - break; - default: - _glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode"); - break; - } -} - -GLFWAPI int glfwGetKey(GLFWwindow* handle, int key) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_RELEASE); - - if (key < 0 || key > GLFW_KEY_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid key"); - return GLFW_RELEASE; - } - - if (window->keys[key] == _GLFW_STICK) - { - // Sticky mode: release key now - window->keys[key] = GLFW_RELEASE; - return GLFW_PRESS; - } - - return (int) window->keys[key]; -} - -GLFWAPI int glfwGetMouseButton(GLFWwindow* handle, int button) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_RELEASE); - - if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid mouse button"); - return GLFW_RELEASE; - } - - if (window->mouseButtons[button] == _GLFW_STICK) - { - // Sticky mode: release mouse button now - window->mouseButtons[button] = GLFW_RELEASE; - return GLFW_PRESS; - } - - return (int) window->mouseButtons[button]; -} - -GLFWAPI void glfwGetCursorPos(GLFWwindow* handle, double* xpos, double* ypos) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; - - _GLFW_REQUIRE_INIT(); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (xpos) - *xpos = window->cursorPosX; - if (ypos) - *ypos = window->cursorPosY; - } - else - _glfwPlatformGetCursorPos(window, xpos, ypos); -} - -GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT(); - - if (_glfw.cursorWindow != window) - return; - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - // Only update the accumulated position if the cursor is disabled - window->cursorPosX = xpos; - window->cursorPosY = ypos; - } - else - { - // Update system cursor position - _glfwPlatformSetCursorPos(window, xpos, ypos); - } -} - -GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot) -{ - _GLFWcursor* cursor; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - cursor = calloc(1, sizeof(_GLFWcursor)); - cursor->next = _glfw.cursorListHead; - _glfw.cursorListHead = cursor; - - if (!_glfwPlatformCreateCursor(cursor, image, xhot, yhot)) - { - glfwDestroyCursor((GLFWcursor*) cursor); - return NULL; - } - - return (GLFWcursor*) cursor; -} - -GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape) -{ - _GLFWcursor* cursor; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (shape != GLFW_ARROW_CURSOR && - shape != GLFW_IBEAM_CURSOR && - shape != GLFW_CROSSHAIR_CURSOR && - shape != GLFW_HAND_CURSOR && - shape != GLFW_HRESIZE_CURSOR && - shape != GLFW_VRESIZE_CURSOR) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid standard cursor"); - return NULL; - } - - cursor = calloc(1, sizeof(_GLFWcursor)); - cursor->next = _glfw.cursorListHead; - _glfw.cursorListHead = cursor; - - if (!_glfwPlatformCreateStandardCursor(cursor, shape)) - { - glfwDestroyCursor((GLFWcursor*) cursor); - return NULL; - } - - return (GLFWcursor*) cursor; -} - -GLFWAPI void glfwDestroyCursor(GLFWcursor* handle) -{ - _GLFWcursor* cursor = (_GLFWcursor*) handle; - - _GLFW_REQUIRE_INIT(); - - if (cursor == NULL) - return; - - // Make sure the cursor is not being used by any window - { - _GLFWwindow* window; - - for (window = _glfw.windowListHead; window; window = window->next) - { - if (window->cursor == cursor) - glfwSetCursor((GLFWwindow*) window, NULL); - } - } - - _glfwPlatformDestroyCursor(cursor); - - // Unlink cursor from global linked list - { - _GLFWcursor** prev = &_glfw.cursorListHead; - - while (*prev != cursor) - prev = &((*prev)->next); - - *prev = cursor->next; - } - - free(cursor); -} - -GLFWAPI void glfwSetCursor(GLFWwindow* windowHandle, GLFWcursor* cursorHandle) -{ - _GLFWwindow* window = (_GLFWwindow*) windowHandle; - _GLFWcursor* cursor = (_GLFWcursor*) cursorHandle; - - _GLFW_REQUIRE_INIT(); - - _glfwPlatformSetCursor(window, cursor); - - window->cursor = cursor; -} - -GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* handle, GLFWkeyfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.key, cbfun); - return cbfun; -} - -GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* handle, GLFWcharfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.character, cbfun); - return cbfun; -} - -GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* handle, GLFWcharmodsfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.charmods, cbfun); - return cbfun; -} - -GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* handle, - GLFWmousebuttonfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.mouseButton, cbfun); - return cbfun; -} - -GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* handle, - GLFWcursorposfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.cursorPos, cbfun); - return cbfun; -} - -GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* handle, - GLFWcursorenterfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.cursorEnter, cbfun); - return cbfun; -} - -GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* handle, - GLFWscrollfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.scroll, cbfun); - return cbfun; -} - -GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* handle, GLFWdropfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.drop, cbfun); - return cbfun; -} - -GLFWAPI int glfwJoystickPresent(int joy) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(0); - - if (joy < 0 || joy > GLFW_JOYSTICK_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick"); - return 0; - } - - return _glfwPlatformJoystickPresent(joy); -} - -GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count) -{ - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (joy < 0 || joy > GLFW_JOYSTICK_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick"); - return NULL; - } - - return _glfwPlatformGetJoystickAxes(joy, count); -} - -GLFWAPI const unsigned char* glfwGetJoystickButtons(int joy, int* count) -{ - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (joy < 0 || joy > GLFW_JOYSTICK_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick"); - return NULL; - } - - return _glfwPlatformGetJoystickButtons(joy, count); -} - -GLFWAPI const char* glfwGetJoystickName(int joy) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (joy < 0 || joy > GLFW_JOYSTICK_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick"); - return NULL; - } - - return _glfwPlatformGetJoystickName(joy); -} - -GLFWAPI void glfwSetClipboardString(GLFWwindow* handle, const char* string) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - _glfwPlatformSetClipboardString(window, string); -} - -GLFWAPI const char* glfwGetClipboardString(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfwPlatformGetClipboardString(window); -} - -GLFWAPI double glfwGetTime(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(0.0); - return _glfwPlatformGetTime(); -} - -GLFWAPI void glfwSetTime(double time) -{ - _GLFW_REQUIRE_INIT(); - - if (time != time || time < 0.0 || time > 18446744073.0) - { - _glfwInputError(GLFW_INVALID_VALUE, "Invalid time"); - return; - } - - _glfwPlatformSetTime(time); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/internal.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/internal.h deleted file mode 100644 index 51387fd..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/internal.h +++ /dev/null @@ -1,878 +0,0 @@ -//======================================================================== -// GLFW 3.1 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_internal_h_ -#define _glfw3_internal_h_ - - -#if defined(_GLFW_USE_CONFIG_H) - #include "glfw_config.h" -#endif - -#define _GLFW_VERSION_NUMBER "3.1.2" - -#if defined(GLFW_INCLUDE_GLCOREARB) || \ - defined(GLFW_INCLUDE_ES1) || \ - defined(GLFW_INCLUDE_ES2) || \ - defined(GLFW_INCLUDE_ES3) || \ - defined(GLFW_INCLUDE_NONE) || \ - defined(GLFW_INCLUDE_GLEXT) || \ - defined(GLFW_INCLUDE_GLU) || \ - defined(GLFW_DLL) - #error "You may not define any header option macros when compiling GLFW" -#endif - -#if defined(_GLFW_USE_OPENGL) - // This is the default for glfw3.h -#elif defined(_GLFW_USE_GLESV1) - #define GLFW_INCLUDE_ES1 -#elif defined(_GLFW_USE_GLESV2) - #define GLFW_INCLUDE_ES2 -#else - #error "No supported client library selected" -#endif - -// Disable the inclusion of the platform glext.h by gl.h to allow proper -// inclusion of our own, newer glext.h below -#define GL_GLEXT_LEGACY - -#include "../include/GLFW/glfw3.h" - -#if defined(_GLFW_USE_OPENGL) - // This path may need to be changed if you build GLFW using your own setup - // GLFW comes with its own copy of glext.h since it uses fairly new extensions - // and not all development environments come with an up-to-date version - #include "../deps/GL/glext.h" -#endif - -typedef void (APIENTRY * PFNGLCLEARPROC)(GLbitfield); -typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGPROC)(GLenum); -typedef void (APIENTRY * PFNGLGETINTEGERVPROC)(GLenum,GLint*); - -typedef struct _GLFWwndconfig _GLFWwndconfig; -typedef struct _GLFWctxconfig _GLFWctxconfig; -typedef struct _GLFWfbconfig _GLFWfbconfig; -typedef struct _GLFWwindow _GLFWwindow; -typedef struct _GLFWlibrary _GLFWlibrary; -typedef struct _GLFWmonitor _GLFWmonitor; -typedef struct _GLFWcursor _GLFWcursor; - -#if defined(_GLFW_COCOA) - #include "cocoa_platform.h" -#elif defined(_GLFW_WIN32) - #include "win32_platform.h" -#elif defined(_GLFW_X11) - #include "x11_platform.h" -#elif defined(_GLFW_WAYLAND) - #include "wl_platform.h" -#elif defined(_GLFW_MIR) - #include "mir_platform.h" -#else - #error "No supported window creation API selected" -#endif - - -//======================================================================== -// Doxygen group definitions -//======================================================================== - -/*! @defgroup platform Platform interface - * @brief The interface implemented by the platform-specific code. - * - * The platform API is the interface exposed by the platform-specific code for - * each platform and is called by the shared code of the public API It mirrors - * the public API except it uses objects instead of handles. - */ -/*! @defgroup event Event interface - * @brief The interface used by the platform-specific code to report events. - * - * The event API is used by the platform-specific code to notify the shared - * code of events that can be translated into state changes and/or callback - * calls. - */ -/*! @defgroup utility Utility functions - * @brief Various utility functions for internal use. - * - * These functions are shared code and may be used by any part of GLFW - * Each platform may add its own utility functions, but those may only be - * called by the platform-specific code - */ - - -//======================================================================== -// Helper macros -//======================================================================== - -// Checks for whether the library has been initialized -#define _GLFW_REQUIRE_INIT() \ - if (!_glfwInitialized) \ - { \ - _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ - return; \ - } -#define _GLFW_REQUIRE_INIT_OR_RETURN(x) \ - if (!_glfwInitialized) \ - { \ - _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ - return x; \ - } - -// Swaps the provided pointers -#define _GLFW_SWAP_POINTERS(x, y) \ - { \ - void* t; \ - t = x; \ - x = y; \ - y = t; \ - } - - -//======================================================================== -// Platform-independent structures -//======================================================================== - -/*! @brief Window configuration. - * - * Parameters relating to the creation of the window but not directly related - * to the framebuffer. This is used to pass window creation parameters from - * shared code to the platform API. - */ -struct _GLFWwndconfig -{ - int width; - int height; - const char* title; - GLboolean resizable; - GLboolean visible; - GLboolean decorated; - GLboolean focused; - GLboolean autoIconify; - GLboolean floating; - _GLFWmonitor* monitor; -}; - - -/*! @brief Context configuration. - * - * Parameters relating to the creation of the context but not directly related - * to the framebuffer. This is used to pass context creation parameters from - * shared code to the platform API. - */ -struct _GLFWctxconfig -{ - int api; - int major; - int minor; - GLboolean forward; - GLboolean debug; - int profile; - int robustness; - int release; - _GLFWwindow* share; -}; - - -/*! @brief Framebuffer configuration. - * - * This describes buffers and their sizes. It also contains - * a platform-specific ID used to map back to the backend API object. - * - * It is used to pass framebuffer parameters from shared code to the platform - * API and also to enumerate and select available framebuffer configs. - */ -struct _GLFWfbconfig -{ - int redBits; - int greenBits; - int blueBits; - int alphaBits; - int depthBits; - int stencilBits; - int accumRedBits; - int accumGreenBits; - int accumBlueBits; - int accumAlphaBits; - int auxBuffers; - int stereo; - int samples; - int sRGB; - int doublebuffer; - - // This is defined in the context API's context.h - _GLFW_PLATFORM_FBCONFIG; -}; - - -/*! @brief Window and context structure. - */ -struct _GLFWwindow -{ - struct _GLFWwindow* next; - - // Window settings and state - GLboolean resizable; - GLboolean decorated; - GLboolean autoIconify; - GLboolean floating; - GLboolean closed; - void* userPointer; - GLFWvidmode videoMode; - _GLFWmonitor* monitor; - _GLFWcursor* cursor; - - // Window input state - GLboolean stickyKeys; - GLboolean stickyMouseButtons; - double cursorPosX, cursorPosY; - int cursorMode; - char mouseButtons[GLFW_MOUSE_BUTTON_LAST + 1]; - char keys[GLFW_KEY_LAST + 1]; - - // OpenGL extensions and context attributes - struct { - int api; - int major, minor, revision; - GLboolean forward, debug; - int profile; - int robustness; - int release; - } context; - -#if defined(_GLFW_USE_OPENGL) - PFNGLGETSTRINGIPROC GetStringi; -#endif - PFNGLGETINTEGERVPROC GetIntegerv; - PFNGLGETSTRINGPROC GetString; - PFNGLCLEARPROC Clear; - - struct { - GLFWwindowposfun pos; - GLFWwindowsizefun size; - GLFWwindowclosefun close; - GLFWwindowrefreshfun refresh; - GLFWwindowfocusfun focus; - GLFWwindowiconifyfun iconify; - GLFWframebuffersizefun fbsize; - GLFWmousebuttonfun mouseButton; - GLFWcursorposfun cursorPos; - GLFWcursorenterfun cursorEnter; - GLFWscrollfun scroll; - GLFWkeyfun key; - GLFWcharfun character; - GLFWcharmodsfun charmods; - GLFWdropfun drop; - } callbacks; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_WINDOW_STATE; - // This is defined in the context API's context.h - _GLFW_PLATFORM_CONTEXT_STATE; -}; - - -/*! @brief Monitor structure. - */ -struct _GLFWmonitor -{ - char* name; - - // Physical dimensions in millimeters. - int widthMM, heightMM; - - GLFWvidmode* modes; - int modeCount; - GLFWvidmode currentMode; - - GLFWgammaramp originalRamp; - GLFWgammaramp currentRamp; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_MONITOR_STATE; -}; - - -/*! @brief Cursor structure - */ -struct _GLFWcursor -{ - _GLFWcursor* next; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_CURSOR_STATE; -}; - -/*! @brief Library global data. - */ -struct _GLFWlibrary -{ - struct { - _GLFWfbconfig framebuffer; - _GLFWwndconfig window; - _GLFWctxconfig context; - int refreshRate; - } hints; - - double cursorPosX, cursorPosY; - - _GLFWcursor* cursorListHead; - - _GLFWwindow* windowListHead; - _GLFWwindow* cursorWindow; - - _GLFWmonitor** monitors; - int monitorCount; - - struct { - GLFWmonitorfun monitor; - } callbacks; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_LIBRARY_WINDOW_STATE; - // This is defined in the context API's context.h - _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE; - // This is defined in the platform's time.h - _GLFW_PLATFORM_LIBRARY_TIME_STATE; - // This is defined in the platform's joystick.h - _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE; - // This is defined in the platform's tls.h - _GLFW_PLATFORM_LIBRARY_TLS_STATE; -}; - - -//======================================================================== -// Global state shared between compilation units of GLFW -//======================================================================== - -/*! @brief Flag indicating whether GLFW has been successfully initialized. - */ -extern GLboolean _glfwInitialized; - -/*! @brief All global data protected by @ref _glfwInitialized. - * This should only be touched after a call to @ref glfwInit that has not been - * followed by a call to @ref glfwTerminate. - */ -extern _GLFWlibrary _glfw; - - -//======================================================================== -// Platform API functions -//======================================================================== - -/*! @brief Initializes the platform-specific part of the library. - * @return `GL_TRUE` if successful, or `GL_FALSE` if an error occurred. - * @ingroup platform - */ -int _glfwPlatformInit(void); - -/*! @brief Terminates the platform-specific part of the library. - * @ingroup platform - */ -void _glfwPlatformTerminate(void); - -/*! @copydoc glfwGetVersionString - * @ingroup platform - * - * @note The returned string must be available for the duration of the program. - * - * @note The returned string must not change for the duration of the program. - */ -const char* _glfwPlatformGetVersionString(void); - -/*! @copydoc glfwGetCursorPos - * @ingroup platform - */ -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos); - -/*! @copydoc glfwSetCursorPos - * @ingroup platform - */ -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos); - -/*! @brief Applies the cursor mode of the specified window to the system. - * @param[in] window The window whose cursor mode to apply. - * @ingroup platform - */ -void _glfwPlatformApplyCursorMode(_GLFWwindow* window); - -/*! @copydoc glfwGetMonitors - * @ingroup platform - */ -_GLFWmonitor** _glfwPlatformGetMonitors(int* count); - -/*! @brief Checks whether two monitor objects represent the same monitor. - * - * @param[in] first The first monitor. - * @param[in] second The second monitor. - * @return @c GL_TRUE if the monitor objects represent the same monitor, or @c - * GL_FALSE otherwise. - * @ingroup platform - */ -GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second); - -/*! @copydoc glfwGetMonitorPos - * @ingroup platform - */ -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos); - -/*! @copydoc glfwGetVideoModes - * @ingroup platform - */ -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count); - -/*! @ingroup platform - */ -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode); - -/*! @copydoc glfwGetGammaRamp - * @ingroup platform - */ -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp); - -/*! @copydoc glfwSetGammaRamp - * @ingroup platform - */ -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); - -/*! @copydoc glfwSetClipboardString - * @ingroup platform - */ -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string); - -/*! @copydoc glfwGetClipboardString - * @ingroup platform - * - * @note The returned string must be valid until the next call to @ref - * _glfwPlatformGetClipboardString or @ref _glfwPlatformSetClipboardString. - */ -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window); - -/*! @copydoc glfwJoystickPresent - * @ingroup platform - */ -int _glfwPlatformJoystickPresent(int joy); - -/*! @copydoc glfwGetJoystickAxes - * @ingroup platform - */ -const float* _glfwPlatformGetJoystickAxes(int joy, int* count); - -/*! @copydoc glfwGetJoystickButtons - * @ingroup platform - */ -const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count); - -/*! @copydoc glfwGetJoystickName - * @ingroup platform - */ -const char* _glfwPlatformGetJoystickName(int joy); - -/*! @copydoc glfwGetTime - * @ingroup platform - */ -double _glfwPlatformGetTime(void); - -/*! @copydoc glfwSetTime - * @ingroup platform - */ -void _glfwPlatformSetTime(double time); - -/*! @ingroup platform - */ -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); - -/*! @ingroup platform - */ -void _glfwPlatformDestroyWindow(_GLFWwindow* window); - -/*! @copydoc glfwSetWindowTitle - * @ingroup platform - */ -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title); - -/*! @copydoc glfwGetWindowPos - * @ingroup platform - */ -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos); - -/*! @copydoc glfwSetWindowPos - * @ingroup platform - */ -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos); - -/*! @copydoc glfwGetWindowSize - * @ingroup platform - */ -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height); - -/*! @copydoc glfwSetWindowSize - * @ingroup platform - */ -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height); - -/*! @copydoc glfwGetFramebufferSize - * @ingroup platform - */ -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height); - -/*! @copydoc glfwGetWindowFrameSize - * @ingroup platform - */ -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, int* left, int* top, int* right, int* bottom); - -/*! @copydoc glfwIconifyWindow - * @ingroup platform - */ -void _glfwPlatformIconifyWindow(_GLFWwindow* window); - -/*! @copydoc glfwRestoreWindow - * @ingroup platform - */ -void _glfwPlatformRestoreWindow(_GLFWwindow* window); - -/*! @copydoc glfwShowWindow - * @ingroup platform - */ -void _glfwPlatformShowWindow(_GLFWwindow* window); - -/*! @ingroup platform - */ -void _glfwPlatformUnhideWindow(_GLFWwindow* window); - -/*! @copydoc glfwHideWindow - * @ingroup platform - */ -void _glfwPlatformHideWindow(_GLFWwindow* window); - -/*! @brief Returns whether the window is focused. - * @ingroup platform - */ -int _glfwPlatformWindowFocused(_GLFWwindow* window); - -/*! @brief Returns whether the window is iconified. - * @ingroup platform - */ -int _glfwPlatformWindowIconified(_GLFWwindow* window); - -/*! @brief Returns whether the window is visible. - * @ingroup platform - */ -int _glfwPlatformWindowVisible(_GLFWwindow* window); - -/*! @copydoc glfwPollEvents - * @ingroup platform - */ -void _glfwPlatformPollEvents(void); - -/*! @copydoc glfwWaitEvents - * @ingroup platform - */ -void _glfwPlatformWaitEvents(void); - -/*! @copydoc glfwPostEmptyEvent - * @ingroup platform - */ -void _glfwPlatformPostEmptyEvent(void); - -/*! @copydoc glfwMakeContextCurrent - * @ingroup platform - */ -void _glfwPlatformMakeContextCurrent(_GLFWwindow* window); - -/*! @copydoc glfwGetCurrentContext - * @ingroup platform - */ -_GLFWwindow* _glfwPlatformGetCurrentContext(void); - -/*! @copydoc glfwSwapBuffers - * @ingroup platform - */ -void _glfwPlatformSwapBuffers(_GLFWwindow* window); - -/*! @copydoc glfwSwapInterval - * @ingroup platform - */ -void _glfwPlatformSwapInterval(int interval); - -/*! @copydoc glfwExtensionSupported - * @ingroup platform - */ -int _glfwPlatformExtensionSupported(const char* extension); - -/*! @copydoc glfwGetProcAddress - * @ingroup platform - */ -GLFWglproc _glfwPlatformGetProcAddress(const char* procname); - -/*! @copydoc glfwCreateCursor - * @ingroup platform - */ -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot); - -/*! @copydoc glfwCreateStandardCursor - * @ingroup platform - */ -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape); - -/*! @copydoc glfwDestroyCursor - * @ingroup platform - */ -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor); - -/*! @copydoc glfwSetCursor - * @ingroup platform - */ -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor); - - -//======================================================================== -// Event API functions -//======================================================================== - -/*! @brief Notifies shared code of a window focus event. - * @param[in] window The window that received the event. - * @param[in] focused `GL_TRUE` if the window received focus, or `GL_FALSE` - * if it lost focus. - * @ingroup event - */ -void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused); - -/*! @brief Notifies shared code of a window movement event. - * @param[in] window The window that received the event. - * @param[in] xpos The new x-coordinate of the client area of the window. - * @param[in] ypos The new y-coordinate of the client area of the window. - * @ingroup event - */ -void _glfwInputWindowPos(_GLFWwindow* window, int xpos, int ypos); - -/*! @brief Notifies shared code of a window resize event. - * @param[in] window The window that received the event. - * @param[in] width The new width of the client area of the window. - * @param[in] height The new height of the client area of the window. - * @ingroup event - */ -void _glfwInputWindowSize(_GLFWwindow* window, int width, int height); - -/*! @brief Notifies shared code of a framebuffer resize event. - * @param[in] window The window that received the event. - * @param[in] width The new width, in pixels, of the framebuffer. - * @param[in] height The new height, in pixels, of the framebuffer. - * @ingroup event - */ -void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height); - -/*! @brief Notifies shared code of a window iconification event. - * @param[in] window The window that received the event. - * @param[in] iconified `GL_TRUE` if the window was iconified, or `GL_FALSE` - * if it was restored. - * @ingroup event - */ -void _glfwInputWindowIconify(_GLFWwindow* window, int iconified); - -/*! @brief Notifies shared code of a window damage event. - * @param[in] window The window that received the event. - */ -void _glfwInputWindowDamage(_GLFWwindow* window); - -/*! @brief Notifies shared code of a window close request event - * @param[in] window The window that received the event. - * @ingroup event - */ -void _glfwInputWindowCloseRequest(_GLFWwindow* window); - -/*! @brief Notifies shared code of a physical key event. - * @param[in] window The window that received the event. - * @param[in] key The key that was pressed or released. - * @param[in] scancode The system-specific scan code of the key. - * @param[in] action @ref GLFW_PRESS or @ref GLFW_RELEASE. - * @param[in] mods The modifiers pressed when the event was generated. - * @ingroup event - */ -void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods); - -/*! @brief Notifies shared code of a Unicode character input event. - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the input character. - * @param[in] mods Bit field describing which modifier keys were held down. - * @param[in] plain `GL_TRUE` if the character is regular text input, or - * `GL_FALSE` otherwise. - * @ingroup event - */ -void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, int plain); - -/*! @brief Notifies shared code of a scroll event. - * @param[in] window The window that received the event. - * @param[in] x The scroll offset along the x-axis. - * @param[in] y The scroll offset along the y-axis. - * @ingroup event - */ -void _glfwInputScroll(_GLFWwindow* window, double x, double y); - -/*! @brief Notifies shared code of a mouse button click event. - * @param[in] window The window that received the event. - * @param[in] button The button that was pressed or released. - * @param[in] action @ref GLFW_PRESS or @ref GLFW_RELEASE. - * @ingroup event - */ -void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods); - -/*! @brief Notifies shared code of a cursor motion event. - * @param[in] window The window that received the event. - * @param[in] x The new x-coordinate of the cursor, relative to the left edge - * of the client area of the window. - * @param[in] y The new y-coordinate of the cursor, relative to the top edge - * of the client area of the window. - * @ingroup event - */ -void _glfwInputCursorMotion(_GLFWwindow* window, double x, double y); - -/*! @brief Notifies shared code of a cursor enter/leave event. - * @param[in] window The window that received the event. - * @param[in] entered `GL_TRUE` if the cursor entered the client area of the - * window, or `GL_FALSE` if it left it. - * @ingroup event - */ -void _glfwInputCursorEnter(_GLFWwindow* window, int entered); - -/*! @ingroup event - */ -void _glfwInputMonitorChange(void); - -/*! @brief Notifies shared code of an error. - * @param[in] error The error code most suitable for the error. - * @param[in] format The `printf` style format string of the error - * description. - * @ingroup event - */ -void _glfwInputError(int error, const char* format, ...); - -/*! @brief Notifies dropped object over window. - * @param[in] window The window that received the event. - * @param[in] count The number of dropped objects. - * @param[in] names The names of the dropped objects. - * @ingroup event - */ -void _glfwInputDrop(_GLFWwindow* window, int count, const char** names); - - -//======================================================================== -// Utility functions -//======================================================================== - -/*! @ingroup utility - */ -const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, - const GLFWvidmode* desired); - -/*! @brief Performs lexical comparison between two @ref GLFWvidmode structures. - * @ingroup utility - */ -int _glfwCompareVideoModes(const GLFWvidmode* first, const GLFWvidmode* second); - -/*! @brief Splits a color depth into red, green and blue bit depths. - * @ingroup utility - */ -void _glfwSplitBPP(int bpp, int* red, int* green, int* blue); - -/*! @brief Searches an extension string for the specified extension. - * @param[in] string The extension string to search. - * @param[in] extensions The extension to search for. - * @return `GL_TRUE` if the extension was found, or `GL_FALSE` otherwise. - * @ingroup utility - */ -int _glfwStringInExtensionString(const char* string, const char* extensions); - -/*! @brief Chooses the framebuffer config that best matches the desired one. - * @param[in] desired The desired framebuffer config. - * @param[in] alternatives The framebuffer configs supported by the system. - * @param[in] count The number of entries in the alternatives array. - * @return The framebuffer config most closely matching the desired one, or @c - * NULL if none fulfilled the hard constraints of the desired values. - * @ingroup utility - */ -const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, - const _GLFWfbconfig* alternatives, - unsigned int count); - -/*! @brief Retrieves the attributes of the current context. - * @param[in] ctxconfig The desired context attributes. - * @return `GL_TRUE` if successful, or `GL_FALSE` if the context is unusable. - * @ingroup utility - */ -GLboolean _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig); - -/*! @brief Checks whether the desired context attributes are valid. - * @param[in] ctxconfig The context attributes to check. - * @return `GL_TRUE` if the context attributes are valid, or `GL_FALSE` - * otherwise. - * @ingroup utility - * - * This function checks things like whether the specified client API version - * exists and whether all relevant options have supported and non-conflicting - * values. - */ -GLboolean _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig); - -/*! @brief Checks whether the current context fulfils the specified hard - * constraints. - * @param[in] ctxconfig The desired context attributes. - * @return `GL_TRUE` if the context fulfils the hard constraints, or `GL_FALSE` - * otherwise. - * @ingroup utility - */ -GLboolean _glfwIsValidContext(const _GLFWctxconfig* ctxconfig); - -/*! @ingroup utility - */ -void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size); - -/*! @ingroup utility - */ -void _glfwFreeGammaArrays(GLFWgammaramp* ramp); - -/*! @brief Allocates and returns a monitor object with the specified name - * and dimensions. - * @param[in] name The name of the monitor. - * @param[in] widthMM The width, in mm, of the monitor's display area. - * @param[in] heightMM The height, in mm, of the monitor's display area. - * @return The newly created object. - * @ingroup utility - */ -_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM); - -/*! @brief Frees a monitor object and any data associated with it. - * @ingroup utility - */ -void _glfwFreeMonitor(_GLFWmonitor* monitor); - -/*! @ingroup utility - */ -void _glfwFreeMonitors(_GLFWmonitor** monitors, int count); - -#endif // _glfw3_internal_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/iokit_joystick.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/iokit_joystick.h deleted file mode 100644 index beb888d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/iokit_joystick.h +++ /dev/null @@ -1,68 +0,0 @@ -//======================================================================== -// GLFW 3.1 IOKit - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2006-2014 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_iokit_joystick_h_ -#define _glfw3_iokit_joystick_h_ - -#include -#include -#include -#include - -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE \ - _GLFWjoystickIOKit iokit_js - - -// IOKit-specific per-joystick data -// -typedef struct _GLFWjoydevice -{ - int present; - char name[256]; - - IOHIDDeviceRef deviceRef; - - CFMutableArrayRef axisElements; - CFMutableArrayRef buttonElements; - CFMutableArrayRef hatElements; - - float* axes; - unsigned char* buttons; -} _GLFWjoydevice; - -// IOKit-specific joystick API data -// -typedef struct _GLFWjoystickIOKit -{ - _GLFWjoydevice devices[GLFW_JOYSTICK_LAST + 1]; - - IOHIDManagerRef managerRef; -} _GLFWjoystickIOKit; - -void _glfwInitJoysticks(void); -void _glfwTerminateJoysticks(void); - -#endif // _glfw3_iokit_joystick_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/iokit_joystick.m b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/iokit_joystick.m deleted file mode 100644 index f21b2bf..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/iokit_joystick.m +++ /dev/null @@ -1,507 +0,0 @@ -//======================================================================== -// GLFW 3.1 IOKit - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2010 Camilla Berglund -// Copyright (c) 2012 Torsten Walluhn -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - -#include -#include - -#include -#include - - -//------------------------------------------------------------------------ -// Joystick element information -//------------------------------------------------------------------------ -typedef struct -{ - IOHIDElementRef elementRef; - - long min; - long max; - - long minReport; - long maxReport; - -} _GLFWjoyelement; - - -static void getElementsCFArrayHandler(const void* value, void* parameter); - -// Adds an element to the specified joystick -// -static void addJoystickElement(_GLFWjoydevice* joystick, - IOHIDElementRef elementRef) -{ - IOHIDElementType elementType; - long usagePage, usage; - CFMutableArrayRef elementsArray = NULL; - - elementType = IOHIDElementGetType(elementRef); - usagePage = IOHIDElementGetUsagePage(elementRef); - usage = IOHIDElementGetUsage(elementRef); - - if ((elementType != kIOHIDElementTypeInput_Axis) && - (elementType != kIOHIDElementTypeInput_Button) && - (elementType != kIOHIDElementTypeInput_Misc)) - { - return; - } - - switch (usagePage) - { - case kHIDPage_GenericDesktop: - { - switch (usage) - { - case kHIDUsage_GD_X: - case kHIDUsage_GD_Y: - case kHIDUsage_GD_Z: - case kHIDUsage_GD_Rx: - case kHIDUsage_GD_Ry: - case kHIDUsage_GD_Rz: - case kHIDUsage_GD_Slider: - case kHIDUsage_GD_Dial: - case kHIDUsage_GD_Wheel: - elementsArray = joystick->axisElements; - break; - case kHIDUsage_GD_Hatswitch: - elementsArray = joystick->hatElements; - break; - } - - break; - } - - case kHIDPage_Button: - elementsArray = joystick->buttonElements; - break; - default: - break; - } - - if (elementsArray) - { - _GLFWjoyelement* element = calloc(1, sizeof(_GLFWjoyelement)); - - CFArrayAppendValue(elementsArray, element); - - element->elementRef = elementRef; - - element->minReport = IOHIDElementGetLogicalMin(elementRef); - element->maxReport = IOHIDElementGetLogicalMax(elementRef); - } -} - -// Adds an element to the specified joystick -// -static void getElementsCFArrayHandler(const void* value, void* parameter) -{ - if (CFGetTypeID(value) == IOHIDElementGetTypeID()) - { - addJoystickElement((_GLFWjoydevice*) parameter, - (IOHIDElementRef) value); - } -} - -// Returns the value of the specified element of the specified joystick -// -static long getElementValue(_GLFWjoydevice* joystick, _GLFWjoyelement* element) -{ - IOReturn result = kIOReturnSuccess; - IOHIDValueRef valueRef; - long value = 0; - - if (joystick && element && joystick->deviceRef) - { - result = IOHIDDeviceGetValue(joystick->deviceRef, - element->elementRef, - &valueRef); - - if (kIOReturnSuccess == result) - { - value = IOHIDValueGetIntegerValue(valueRef); - - // Record min and max for auto calibration - if (value < element->minReport) - element->minReport = value; - if (value > element->maxReport) - element->maxReport = value; - } - } - - // Auto user scale - return value; -} - -// Removes the specified joystick -// -static void removeJoystick(_GLFWjoydevice* joystick) -{ - int i; - - if (!joystick->present) - return; - - for (i = 0; i < CFArrayGetCount(joystick->axisElements); i++) - free((void*) CFArrayGetValueAtIndex(joystick->axisElements, i)); - CFArrayRemoveAllValues(joystick->axisElements); - CFRelease(joystick->axisElements); - - for (i = 0; i < CFArrayGetCount(joystick->buttonElements); i++) - free((void*) CFArrayGetValueAtIndex(joystick->buttonElements, i)); - CFArrayRemoveAllValues(joystick->buttonElements); - CFRelease(joystick->buttonElements); - - for (i = 0; i < CFArrayGetCount(joystick->hatElements); i++) - free((void*) CFArrayGetValueAtIndex(joystick->hatElements, i)); - CFArrayRemoveAllValues(joystick->hatElements); - CFRelease(joystick->hatElements); - - free(joystick->axes); - free(joystick->buttons); - - memset(joystick, 0, sizeof(_GLFWjoydevice)); -} - -// Polls for joystick events and updates GLFW state -// -static void pollJoystickEvents(void) -{ - int joy; - - for (joy = 0; joy <= GLFW_JOYSTICK_LAST; joy++) - { - CFIndex i; - int buttonIndex = 0; - _GLFWjoydevice* joystick = _glfw.iokit_js.devices + joy; - - if (!joystick->present) - continue; - - for (i = 0; i < CFArrayGetCount(joystick->buttonElements); i++) - { - _GLFWjoyelement* button = (_GLFWjoyelement*) - CFArrayGetValueAtIndex(joystick->buttonElements, i); - - if (getElementValue(joystick, button)) - joystick->buttons[buttonIndex++] = GLFW_PRESS; - else - joystick->buttons[buttonIndex++] = GLFW_RELEASE; - } - - for (i = 0; i < CFArrayGetCount(joystick->axisElements); i++) - { - _GLFWjoyelement* axis = (_GLFWjoyelement*) - CFArrayGetValueAtIndex(joystick->axisElements, i); - - long value = getElementValue(joystick, axis); - long readScale = axis->maxReport - axis->minReport; - - if (readScale == 0) - joystick->axes[i] = value; - else - joystick->axes[i] = (2.f * (value - axis->minReport) / readScale) - 1.f; - } - - for (i = 0; i < CFArrayGetCount(joystick->hatElements); i++) - { - _GLFWjoyelement* hat = (_GLFWjoyelement*) - CFArrayGetValueAtIndex(joystick->hatElements, i); - - // Bit fields of button presses for each direction, including nil - const int directions[9] = { 1, 3, 2, 6, 4, 12, 8, 9, 0 }; - - long j, value = getElementValue(joystick, hat); - if (value < 0 || value > 8) - value = 8; - - for (j = 0; j < 4; j++) - { - if (directions[value] & (1 << j)) - joystick->buttons[buttonIndex++] = GLFW_PRESS; - else - joystick->buttons[buttonIndex++] = GLFW_RELEASE; - } - } - } -} - -// Callback for user-initiated joystick addition -// -static void matchCallback(void* context, - IOReturn result, - void* sender, - IOHIDDeviceRef deviceRef) -{ - _GLFWjoydevice* joystick; - int joy; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - joystick = _glfw.iokit_js.devices + joy; - - if (!joystick->present) - continue; - - if (joystick->deviceRef == deviceRef) - return; - } - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - joystick = _glfw.iokit_js.devices + joy; - - if (!joystick->present) - break; - } - - if (joy > GLFW_JOYSTICK_LAST) - return; - - joystick->present = GL_TRUE; - joystick->deviceRef = deviceRef; - - CFStringRef name = IOHIDDeviceGetProperty(deviceRef, - CFSTR(kIOHIDProductKey)); - CFStringGetCString(name, - joystick->name, - sizeof(joystick->name), - kCFStringEncodingUTF8); - - joystick->axisElements = CFArrayCreateMutable(NULL, 0, NULL); - joystick->buttonElements = CFArrayCreateMutable(NULL, 0, NULL); - joystick->hatElements = CFArrayCreateMutable(NULL, 0, NULL); - - CFArrayRef arrayRef = IOHIDDeviceCopyMatchingElements(deviceRef, - NULL, - kIOHIDOptionsTypeNone); - CFRange range = { 0, CFArrayGetCount(arrayRef) }; - CFArrayApplyFunction(arrayRef, - range, - getElementsCFArrayHandler, - (void*) joystick); - - CFRelease(arrayRef); - - joystick->axes = calloc(CFArrayGetCount(joystick->axisElements), - sizeof(float)); - joystick->buttons = calloc(CFArrayGetCount(joystick->buttonElements) + - CFArrayGetCount(joystick->hatElements) * 4, 1); -} - -// Callback for user-initiated joystick removal -// -static void removeCallback(void* context, - IOReturn result, - void* sender, - IOHIDDeviceRef deviceRef) -{ - int joy; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - _GLFWjoydevice* joystick = _glfw.iokit_js.devices + joy; - if (joystick->deviceRef == deviceRef) - { - removeJoystick(joystick); - break; - } - } -} - -// Creates a dictionary to match against devices with the specified usage page -// and usage -// -static CFMutableDictionaryRef createMatchingDictionary(long usagePage, - long usage) -{ - CFMutableDictionaryRef result = - CFDictionaryCreateMutable(kCFAllocatorDefault, - 0, - &kCFTypeDictionaryKeyCallBacks, - &kCFTypeDictionaryValueCallBacks); - - if (result) - { - CFNumberRef pageRef = CFNumberCreate(kCFAllocatorDefault, - kCFNumberLongType, - &usagePage); - if (pageRef) - { - CFDictionarySetValue(result, - CFSTR(kIOHIDDeviceUsagePageKey), - pageRef); - CFRelease(pageRef); - - CFNumberRef usageRef = CFNumberCreate(kCFAllocatorDefault, - kCFNumberLongType, - &usage); - if (usageRef) - { - CFDictionarySetValue(result, - CFSTR(kIOHIDDeviceUsageKey), - usageRef); - CFRelease(usageRef); - } - } - } - - return result; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize joystick interface -// -void _glfwInitJoysticks(void) -{ - CFMutableArrayRef matchingCFArrayRef; - - _glfw.iokit_js.managerRef = IOHIDManagerCreate(kCFAllocatorDefault, - kIOHIDOptionsTypeNone); - - matchingCFArrayRef = CFArrayCreateMutable(kCFAllocatorDefault, - 0, - &kCFTypeArrayCallBacks); - if (matchingCFArrayRef) - { - CFDictionaryRef matchingCFDictRef = - createMatchingDictionary(kHIDPage_GenericDesktop, - kHIDUsage_GD_Joystick); - if (matchingCFDictRef) - { - CFArrayAppendValue(matchingCFArrayRef, matchingCFDictRef); - CFRelease(matchingCFDictRef); - } - - matchingCFDictRef = createMatchingDictionary(kHIDPage_GenericDesktop, - kHIDUsage_GD_GamePad); - if (matchingCFDictRef) - { - CFArrayAppendValue(matchingCFArrayRef, matchingCFDictRef); - CFRelease(matchingCFDictRef); - } - - matchingCFDictRef = - createMatchingDictionary(kHIDPage_GenericDesktop, - kHIDUsage_GD_MultiAxisController); - if (matchingCFDictRef) - { - CFArrayAppendValue(matchingCFArrayRef, matchingCFDictRef); - CFRelease(matchingCFDictRef); - } - - IOHIDManagerSetDeviceMatchingMultiple(_glfw.iokit_js.managerRef, - matchingCFArrayRef); - CFRelease(matchingCFArrayRef); - } - - IOHIDManagerRegisterDeviceMatchingCallback(_glfw.iokit_js.managerRef, - &matchCallback, NULL); - IOHIDManagerRegisterDeviceRemovalCallback(_glfw.iokit_js.managerRef, - &removeCallback, NULL); - - IOHIDManagerScheduleWithRunLoop(_glfw.iokit_js.managerRef, - CFRunLoopGetMain(), - kCFRunLoopDefaultMode); - - IOHIDManagerOpen(_glfw.iokit_js.managerRef, kIOHIDOptionsTypeNone); - - // Execute the run loop once in order to register any initially-attached - // joysticks - CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); -} - -// Close all opened joystick handles -// -void _glfwTerminateJoysticks(void) -{ - int joy; - - for (joy = 0; joy <= GLFW_JOYSTICK_LAST; joy++) - { - _GLFWjoydevice* joystick = _glfw.iokit_js.devices + joy; - removeJoystick(joystick); - } - - CFRelease(_glfw.iokit_js.managerRef); - _glfw.iokit_js.managerRef = NULL; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformJoystickPresent(int joy) -{ - pollJoystickEvents(); - - return _glfw.iokit_js.devices[joy].present; -} - -const float* _glfwPlatformGetJoystickAxes(int joy, int* count) -{ - _GLFWjoydevice* joystick = _glfw.iokit_js.devices + joy; - - pollJoystickEvents(); - - if (!joystick->present) - return NULL; - - *count = (int) CFArrayGetCount(joystick->axisElements); - return joystick->axes; -} - -const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count) -{ - _GLFWjoydevice* joystick = _glfw.iokit_js.devices + joy; - - pollJoystickEvents(); - - if (!joystick->present) - return NULL; - - *count = (int) CFArrayGetCount(joystick->buttonElements) + - (int) CFArrayGetCount(joystick->hatElements) * 4; - return joystick->buttons; -} - -const char* _glfwPlatformGetJoystickName(int joy) -{ - pollJoystickEvents(); - - return _glfw.iokit_js.devices[joy].name; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/linux_joystick.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/linux_joystick.c deleted file mode 100644 index 5a9d8e2..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/linux_joystick.c +++ /dev/null @@ -1,324 +0,0 @@ -//======================================================================== -// GLFW 3.1 Linux - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#if defined(__linux__) -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif // __linux__ - - -// Attempt to open the specified joystick device -// -static void openJoystickDevice(const char* path) -{ -#if defined(__linux__) - char axisCount, buttonCount; - char name[256]; - int joy, fd, version; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (!_glfw.linux_js.js[joy].present) - continue; - - if (strcmp(_glfw.linux_js.js[joy].path, path) == 0) - return; - } - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (!_glfw.linux_js.js[joy].present) - break; - } - - if (joy > GLFW_JOYSTICK_LAST) - return; - - fd = open(path, O_RDONLY | O_NONBLOCK); - if (fd == -1) - return; - - _glfw.linux_js.js[joy].fd = fd; - - // Verify that the joystick driver version is at least 1.0 - ioctl(fd, JSIOCGVERSION, &version); - if (version < 0x010000) - { - // It's an old 0.x interface (we don't support it) - close(fd); - return; - } - - if (ioctl(fd, JSIOCGNAME(sizeof(name)), name) < 0) - strncpy(name, "Unknown", sizeof(name)); - - _glfw.linux_js.js[joy].name = strdup(name); - _glfw.linux_js.js[joy].path = strdup(path); - - ioctl(fd, JSIOCGAXES, &axisCount); - _glfw.linux_js.js[joy].axisCount = (int) axisCount; - - ioctl(fd, JSIOCGBUTTONS, &buttonCount); - _glfw.linux_js.js[joy].buttonCount = (int) buttonCount; - - _glfw.linux_js.js[joy].axes = calloc(axisCount, sizeof(float)); - _glfw.linux_js.js[joy].buttons = calloc(buttonCount, 1); - - _glfw.linux_js.js[joy].present = GL_TRUE; -#endif // __linux__ -} - -// Polls for and processes events for all present joysticks -// -static void pollJoystickEvents(void) -{ -#if defined(__linux__) - int i; - struct js_event e; - ssize_t offset = 0; - char buffer[16384]; - - const ssize_t size = read(_glfw.linux_js.inotify, buffer, sizeof(buffer)); - - while (size > offset) - { - regmatch_t match; - const struct inotify_event* e = (struct inotify_event*) (buffer + offset); - - if (regexec(&_glfw.linux_js.regex, e->name, 1, &match, 0) == 0) - { - char path[20]; - snprintf(path, sizeof(path), "/dev/input/%s", e->name); - openJoystickDevice(path); - } - - offset += sizeof(struct inotify_event) + e->len; - } - - for (i = 0; i <= GLFW_JOYSTICK_LAST; i++) - { - if (!_glfw.linux_js.js[i].present) - continue; - - // Read all queued events (non-blocking) - for (;;) - { - errno = 0; - if (read(_glfw.linux_js.js[i].fd, &e, sizeof(e)) < 0) - { - if (errno == ENODEV) - { - // The joystick was disconnected - - free(_glfw.linux_js.js[i].axes); - free(_glfw.linux_js.js[i].buttons); - free(_glfw.linux_js.js[i].name); - free(_glfw.linux_js.js[i].path); - - memset(&_glfw.linux_js.js[i], 0, sizeof(_glfw.linux_js.js[i])); - } - - break; - } - - // We don't care if it's an init event or not - e.type &= ~JS_EVENT_INIT; - - switch (e.type) - { - case JS_EVENT_AXIS: - _glfw.linux_js.js[i].axes[e.number] = - (float) e.value / 32767.0f; - break; - - case JS_EVENT_BUTTON: - _glfw.linux_js.js[i].buttons[e.number] = - e.value ? GLFW_PRESS : GLFW_RELEASE; - break; - - default: - break; - } - } - } -#endif // __linux__ -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize joystick interface -// -int _glfwInitJoysticks(void) -{ -#if defined(__linux__) - const char* dirname = "/dev/input"; - DIR* dir; - - _glfw.linux_js.inotify = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); - if (_glfw.linux_js.inotify == -1) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Linux: Failed to initialize inotify: %s", - strerror(errno)); - return GL_FALSE; - } - - // HACK: Register for IN_ATTRIB as well to get notified when udev is done - // This works well in practice but the true way is libudev - - _glfw.linux_js.watch = inotify_add_watch(_glfw.linux_js.inotify, - dirname, - IN_CREATE | IN_ATTRIB); - if (_glfw.linux_js.watch == -1) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Linux: Failed to watch for joystick connections in %s: %s", - dirname, - strerror(errno)); - // Continue without device connection notifications - } - - if (regcomp(&_glfw.linux_js.regex, "^js[0-9]\\+$", 0) != 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Linux: Failed to compile regex"); - return GL_FALSE; - } - - dir = opendir(dirname); - if (dir) - { - struct dirent* entry; - - while ((entry = readdir(dir))) - { - char path[20]; - regmatch_t match; - - if (regexec(&_glfw.linux_js.regex, entry->d_name, 1, &match, 0) != 0) - continue; - - snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name); - openJoystickDevice(path); - } - - closedir(dir); - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Linux: Failed to open joystick device directory %s: %s", - dirname, - strerror(errno)); - // Continue with no joysticks detected - } - -#endif // __linux__ - - return GL_TRUE; -} - -// Close all opened joystick handles -// -void _glfwTerminateJoysticks(void) -{ -#if defined(__linux__) - int i; - - for (i = 0; i <= GLFW_JOYSTICK_LAST; i++) - { - if (_glfw.linux_js.js[i].present) - { - close(_glfw.linux_js.js[i].fd); - free(_glfw.linux_js.js[i].axes); - free(_glfw.linux_js.js[i].buttons); - free(_glfw.linux_js.js[i].name); - free(_glfw.linux_js.js[i].path); - } - } - - regfree(&_glfw.linux_js.regex); - - if (_glfw.linux_js.inotify > 0) - { - if (_glfw.linux_js.watch > 0) - inotify_rm_watch(_glfw.linux_js.inotify, _glfw.linux_js.watch); - - close(_glfw.linux_js.inotify); - } -#endif // __linux__ -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformJoystickPresent(int joy) -{ - pollJoystickEvents(); - - return _glfw.linux_js.js[joy].present; -} - -const float* _glfwPlatformGetJoystickAxes(int joy, int* count) -{ - pollJoystickEvents(); - - *count = _glfw.linux_js.js[joy].axisCount; - return _glfw.linux_js.js[joy].axes; -} - -const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count) -{ - pollJoystickEvents(); - - *count = _glfw.linux_js.js[joy].buttonCount; - return _glfw.linux_js.js[joy].buttons; -} - -const char* _glfwPlatformGetJoystickName(int joy) -{ - pollJoystickEvents(); - - return _glfw.linux_js.js[joy].name; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/linux_joystick.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/linux_joystick.h deleted file mode 100644 index dca2a2d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/linux_joystick.h +++ /dev/null @@ -1,63 +0,0 @@ -//======================================================================== -// GLFW 3.1 Linux - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_linux_joystick_h_ -#define _glfw3_linux_joystick_h_ - -#include - -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE \ - _GLFWjoystickLinux linux_js - - -// Linux-specific joystick API data -// -typedef struct _GLFWjoystickLinux -{ - struct - { - int present; - int fd; - float* axes; - int axisCount; - unsigned char* buttons; - int buttonCount; - char* name; - char* path; - } js[GLFW_JOYSTICK_LAST + 1]; - -#if defined(__linux__) - int inotify; - int watch; - regex_t regex; -#endif /*__linux__*/ -} _GLFWjoystickLinux; - - -int _glfwInitJoysticks(void); -void _glfwTerminateJoysticks(void); - -#endif // _glfw3_linux_joystick_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mach_time.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mach_time.c deleted file mode 100644 index 59916bb..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mach_time.c +++ /dev/null @@ -1,71 +0,0 @@ -//======================================================================== -// GLFW 3.1 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - - -// Return raw time -// -static uint64_t getRawTime(void) -{ - return mach_absolute_time(); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialise timer -// -void _glfwInitTimer(void) -{ - mach_timebase_info_data_t info; - mach_timebase_info(&info); - - _glfw.ns_time.resolution = (double) info.numer / (info.denom * 1.0e9); - _glfw.ns_time.base = getRawTime(); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -double _glfwPlatformGetTime(void) -{ - return (double) (getRawTime() - _glfw.ns_time.base) * - _glfw.ns_time.resolution; -} - -void _glfwPlatformSetTime(double time) -{ - _glfw.ns_time.base = getRawTime() - - (uint64_t) (time / _glfw.ns_time.resolution); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_init.c deleted file mode 100644 index c4b8d1d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_init.c +++ /dev/null @@ -1,107 +0,0 @@ -//======================================================================== -// GLFW 3.1 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2015 Brandon Schaefer -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - int error; - - _glfw.mir.connection = mir_connect_sync(NULL, __PRETTY_FUNCTION__); - - if (!mir_connection_is_valid(_glfw.mir.connection)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to connect to server: %s", - mir_connection_get_error_message(_glfw.mir.connection)); - - return GL_FALSE; - } - - _glfw.mir.display = - mir_connection_get_egl_native_display(_glfw.mir.connection); - - if (!_glfwInitContextAPI()) - return GL_FALSE; - - // Need the default conf for when we set a NULL cursor - _glfw.mir.default_conf = mir_cursor_configuration_from_name(mir_arrow_cursor_name); - - _glfwInitTimer(); - _glfwInitJoysticks(); - - _glfw.mir.event_queue = calloc(1, sizeof(EventQueue)); - _glfwInitEventQueue(_glfw.mir.event_queue); - - error = pthread_mutex_init(&_glfw.mir.event_mutex, NULL); - if (error) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Failed to create event mutex: %s", - strerror(error)); - return GL_FALSE; - } - - return GL_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - _glfwTerminateContextAPI(); - _glfwTerminateJoysticks(); - - _glfwDeleteEventQueue(_glfw.mir.event_queue); - - pthread_mutex_destroy(&_glfw.mir.event_mutex); - - mir_connection_release(_glfw.mir.connection); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Mir EGL" -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif -#if defined(__linux__) - " /dev/js" -#endif -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_monitor.c deleted file mode 100644 index b068353..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_monitor.c +++ /dev/null @@ -1,170 +0,0 @@ -//======================================================================== -// GLFW 3.1 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2015 Brandon Schaefer -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - int i, found = 0; - _GLFWmonitor** monitors = NULL; - MirDisplayConfiguration* displayConfig = - mir_connection_create_display_config(_glfw.mir.connection); - - *count = 0; - - for (i = 0; i < displayConfig->num_outputs; i++) - { - const MirDisplayOutput* out = displayConfig->outputs + i; - - if (out->used && - out->connected && - out->num_modes && - out->current_mode < out->num_modes) - { - found++; - monitors = realloc(monitors, sizeof(_GLFWmonitor*) * found); - monitors[i] = _glfwAllocMonitor("Unknown", - out->physical_width_mm, - out->physical_height_mm); - - monitors[i]->mir.x = out->position_x; - monitors[i]->mir.y = out->position_y; - monitors[i]->mir.output_id = out->output_id; - monitors[i]->mir.cur_mode = out->current_mode; - - monitors[i]->modes = _glfwPlatformGetVideoModes(monitors[i], - &monitors[i]->modeCount); - } - } - - mir_display_config_destroy(displayConfig); - - *count = found; - return monitors; -} - -GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - return first->mir.output_id == second->mir.output_id; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (xpos) - *xpos = monitor->mir.x; - if (ypos) - *ypos = monitor->mir.y; -} - -void FillInRGBBitsFromPixelFormat(GLFWvidmode* mode, const MirPixelFormat pf) -{ - switch (pf) - { - case mir_pixel_format_rgb_565: - mode->redBits = 5; - mode->greenBits = 6; - mode->blueBits = 5; - break; - case mir_pixel_format_rgba_5551: - mode->redBits = 5; - mode->greenBits = 5; - mode->blueBits = 5; - break; - case mir_pixel_format_rgba_4444: - mode->redBits = 4; - mode->greenBits = 4; - mode->blueBits = 4; - break; - case mir_pixel_format_abgr_8888: - case mir_pixel_format_xbgr_8888: - case mir_pixel_format_argb_8888: - case mir_pixel_format_xrgb_8888: - case mir_pixel_format_bgr_888: - case mir_pixel_format_rgb_888: - default: - mode->redBits = 8; - mode->greenBits = 8; - mode->blueBits = 8; - break; - } -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) -{ - int i; - GLFWvidmode* modes = NULL; - MirDisplayConfiguration* displayConfig = - mir_connection_create_display_config(_glfw.mir.connection); - - for (i = 0; i < displayConfig->num_outputs; i++) - { - const MirDisplayOutput* out = displayConfig->outputs + i; - if (out->output_id != monitor->mir.output_id) - continue; - - modes = calloc(out->num_modes, sizeof(GLFWvidmode)); - - for (*found = 0; *found < out->num_modes; (*found)++) - { - modes[*found].width = out->modes[*found].horizontal_resolution; - modes[*found].height = out->modes[*found].vertical_resolution; - modes[*found].refreshRate = out->modes[*found].refresh_rate; - - FillInRGBBitsFromPixelFormat(&modes[*found], out->output_formats[*found]); - } - - break; - } - - mir_display_config_destroy(displayConfig); - - return modes; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - *mode = monitor->modes[monitor->mir.cur_mode]; -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_platform.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_platform.h deleted file mode 100644 index fbd8d81..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_platform.h +++ /dev/null @@ -1,114 +0,0 @@ -//======================================================================== -// GLFW 3.1 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2015 Brandon Schaefer -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_mir_platform_h_ -#define _glfw3_mir_platform_h_ - -#include -#include - -#include - -#include "posix_tls.h" -#include "posix_time.h" -#include "linux_joystick.h" -#include "xkb_unicode.h" - -#if defined(_GLFW_EGL) - #include "egl_context.h" -#else - #error "The Mir backend depends on EGL platform support" -#endif - -#define _GLFW_EGL_NATIVE_WINDOW window->mir.window -#define _GLFW_EGL_NATIVE_DISPLAY _glfw.mir.display - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowMir mir -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorMir mir -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryMir mir -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorMir mir - - -// Mir-specific Event Queue -// -typedef struct EventQueue -{ - TAILQ_HEAD(, EventNode) head; -} EventQueue; - -// Mir-specific per-window data -// -typedef struct _GLFWwindowMir -{ - MirSurface* surface; - int width; - int height; - MirEGLNativeWindowType window; - -} _GLFWwindowMir; - - -// Mir-specific per-monitor data -// -typedef struct _GLFWmonitorMir -{ - int cur_mode; - int output_id; - int x; - int y; - -} _GLFWmonitorMir; - - -// Mir-specific global data -// -typedef struct _GLFWlibraryMir -{ - MirConnection* connection; - MirEGLNativeDisplayType display; - MirCursorConfiguration* default_conf; - EventQueue* event_queue; - - pthread_mutex_t event_mutex; - pthread_cond_t event_cond; - -} _GLFWlibraryMir; - - -// Mir-specific per-cursor data -// TODO: Only system cursors are implemented in Mir atm. Need to wait for support. -// -typedef struct _GLFWcursorMir -{ - MirCursorConfiguration* conf; - MirBufferStream* custom_cursor; -} _GLFWcursorMir; - - -extern void _glfwInitEventQueue(EventQueue* queue); -extern void _glfwDeleteEventQueue(EventQueue* queue); - -#endif // _glfw3_mir_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_window.c deleted file mode 100644 index 3d08f6a..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/mir_window.c +++ /dev/null @@ -1,801 +0,0 @@ -//======================================================================== -// GLFW 3.1 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2015 Brandon Schaefer -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -typedef struct EventNode -{ - TAILQ_ENTRY(EventNode) entries; - const MirEvent* event; - _GLFWwindow* window; -} EventNode; - -static void deleteNode(EventQueue* queue, EventNode* node) -{ - mir_event_unref(node->event); - free(node); -} - -static int emptyEventQueue(EventQueue* queue) -{ - return queue->head.tqh_first == NULL ? GL_TRUE : GL_FALSE; -} - -// TODO The mir_event_ref is not supposed to be used but ... its needed -// in this case. Need to wait until we can read from an FD set up by mir -// for single threaded event handling. -static EventNode* newEventNode(const MirEvent* event, _GLFWwindow* context) -{ - EventNode* new_node = calloc(1, sizeof(EventNode)); - new_node->event = mir_event_ref(event); - new_node->window = context; - - return new_node; -} - -static void enqueueEvent(const MirEvent* event, _GLFWwindow* context) -{ - pthread_mutex_lock(&_glfw.mir.event_mutex); - - EventNode* new_node = newEventNode(event, context); - TAILQ_INSERT_TAIL(&_glfw.mir.event_queue->head, new_node, entries); - - pthread_cond_signal(&_glfw.mir.event_cond); - - pthread_mutex_unlock(&_glfw.mir.event_mutex); -} - -static EventNode* dequeueEvent(EventQueue* queue) -{ - EventNode* node = NULL; - - pthread_mutex_lock(&_glfw.mir.event_mutex); - - node = queue->head.tqh_first; - - if (node) - TAILQ_REMOVE(&queue->head, node, entries); - - pthread_mutex_unlock(&_glfw.mir.event_mutex); - - return node; -} - -/* FIXME Soon to be changed upstream mir! So we can use an egl config to figure out - the best pixel format! -*/ -static MirPixelFormat findValidPixelFormat(void) -{ - unsigned int i, validFormats, mirPixelFormats = 32; - MirPixelFormat formats[mir_pixel_formats]; - - mir_connection_get_available_surface_formats(_glfw.mir.connection, formats, - mirPixelFormats, &validFormats); - - for (i = 0; i < validFormats; i++) - { - if (formats[i] == mir_pixel_format_abgr_8888 || - formats[i] == mir_pixel_format_xbgr_8888 || - formats[i] == mir_pixel_format_argb_8888 || - formats[i] == mir_pixel_format_xrgb_8888) - { - return formats[i]; - } - } - - return mir_pixel_format_invalid; -} - -static int mirModToGLFWMod(uint32_t mods) -{ - int publicMods = 0x0; - - if (mods & mir_input_event_modifier_alt) - publicMods |= GLFW_MOD_ALT; - else if (mods & mir_input_event_modifier_shift) - publicMods |= GLFW_MOD_SHIFT; - else if (mods & mir_input_event_modifier_ctrl) - publicMods |= GLFW_MOD_CONTROL; - else if (mods & mir_input_event_modifier_meta) - publicMods |= GLFW_MOD_SUPER; - - return publicMods; -} - -// Taken from wl_init.c -static int toGLFWKeyCode(uint32_t key) -{ - switch (key) - { - case KEY_GRAVE: return GLFW_KEY_GRAVE_ACCENT; - case KEY_1: return GLFW_KEY_1; - case KEY_2: return GLFW_KEY_2; - case KEY_3: return GLFW_KEY_3; - case KEY_4: return GLFW_KEY_4; - case KEY_5: return GLFW_KEY_5; - case KEY_6: return GLFW_KEY_6; - case KEY_7: return GLFW_KEY_7; - case KEY_8: return GLFW_KEY_8; - case KEY_9: return GLFW_KEY_9; - case KEY_0: return GLFW_KEY_0; - case KEY_MINUS: return GLFW_KEY_MINUS; - case KEY_EQUAL: return GLFW_KEY_EQUAL; - case KEY_Q: return GLFW_KEY_Q; - case KEY_W: return GLFW_KEY_W; - case KEY_E: return GLFW_KEY_E; - case KEY_R: return GLFW_KEY_R; - case KEY_T: return GLFW_KEY_T; - case KEY_Y: return GLFW_KEY_Y; - case KEY_U: return GLFW_KEY_U; - case KEY_I: return GLFW_KEY_I; - case KEY_O: return GLFW_KEY_O; - case KEY_P: return GLFW_KEY_P; - case KEY_LEFTBRACE: return GLFW_KEY_LEFT_BRACKET; - case KEY_RIGHTBRACE: return GLFW_KEY_RIGHT_BRACKET; - case KEY_A: return GLFW_KEY_A; - case KEY_S: return GLFW_KEY_S; - case KEY_D: return GLFW_KEY_D; - case KEY_F: return GLFW_KEY_F; - case KEY_G: return GLFW_KEY_G; - case KEY_H: return GLFW_KEY_H; - case KEY_J: return GLFW_KEY_J; - case KEY_K: return GLFW_KEY_K; - case KEY_L: return GLFW_KEY_L; - case KEY_SEMICOLON: return GLFW_KEY_SEMICOLON; - case KEY_APOSTROPHE: return GLFW_KEY_APOSTROPHE; - case KEY_Z: return GLFW_KEY_Z; - case KEY_X: return GLFW_KEY_X; - case KEY_C: return GLFW_KEY_C; - case KEY_V: return GLFW_KEY_V; - case KEY_B: return GLFW_KEY_B; - case KEY_N: return GLFW_KEY_N; - case KEY_M: return GLFW_KEY_M; - case KEY_COMMA: return GLFW_KEY_COMMA; - case KEY_DOT: return GLFW_KEY_PERIOD; - case KEY_SLASH: return GLFW_KEY_SLASH; - case KEY_BACKSLASH: return GLFW_KEY_BACKSLASH; - case KEY_ESC: return GLFW_KEY_ESCAPE; - case KEY_TAB: return GLFW_KEY_TAB; - case KEY_LEFTSHIFT: return GLFW_KEY_LEFT_SHIFT; - case KEY_RIGHTSHIFT: return GLFW_KEY_RIGHT_SHIFT; - case KEY_LEFTCTRL: return GLFW_KEY_LEFT_CONTROL; - case KEY_RIGHTCTRL: return GLFW_KEY_RIGHT_CONTROL; - case KEY_LEFTALT: return GLFW_KEY_LEFT_ALT; - case KEY_RIGHTALT: return GLFW_KEY_RIGHT_ALT; - case KEY_LEFTMETA: return GLFW_KEY_LEFT_SUPER; - case KEY_RIGHTMETA: return GLFW_KEY_RIGHT_SUPER; - case KEY_MENU: return GLFW_KEY_MENU; - case KEY_NUMLOCK: return GLFW_KEY_NUM_LOCK; - case KEY_CAPSLOCK: return GLFW_KEY_CAPS_LOCK; - case KEY_PRINT: return GLFW_KEY_PRINT_SCREEN; - case KEY_SCROLLLOCK: return GLFW_KEY_SCROLL_LOCK; - case KEY_PAUSE: return GLFW_KEY_PAUSE; - case KEY_DELETE: return GLFW_KEY_DELETE; - case KEY_BACKSPACE: return GLFW_KEY_BACKSPACE; - case KEY_ENTER: return GLFW_KEY_ENTER; - case KEY_HOME: return GLFW_KEY_HOME; - case KEY_END: return GLFW_KEY_END; - case KEY_PAGEUP: return GLFW_KEY_PAGE_UP; - case KEY_PAGEDOWN: return GLFW_KEY_PAGE_DOWN; - case KEY_INSERT: return GLFW_KEY_INSERT; - case KEY_LEFT: return GLFW_KEY_LEFT; - case KEY_RIGHT: return GLFW_KEY_RIGHT; - case KEY_DOWN: return GLFW_KEY_DOWN; - case KEY_UP: return GLFW_KEY_UP; - case KEY_F1: return GLFW_KEY_F1; - case KEY_F2: return GLFW_KEY_F2; - case KEY_F3: return GLFW_KEY_F3; - case KEY_F4: return GLFW_KEY_F4; - case KEY_F5: return GLFW_KEY_F5; - case KEY_F6: return GLFW_KEY_F6; - case KEY_F7: return GLFW_KEY_F7; - case KEY_F8: return GLFW_KEY_F8; - case KEY_F9: return GLFW_KEY_F9; - case KEY_F10: return GLFW_KEY_F10; - case KEY_F11: return GLFW_KEY_F11; - case KEY_F12: return GLFW_KEY_F12; - case KEY_F13: return GLFW_KEY_F13; - case KEY_F14: return GLFW_KEY_F14; - case KEY_F15: return GLFW_KEY_F15; - case KEY_F16: return GLFW_KEY_F16; - case KEY_F17: return GLFW_KEY_F17; - case KEY_F18: return GLFW_KEY_F18; - case KEY_F19: return GLFW_KEY_F19; - case KEY_F20: return GLFW_KEY_F20; - case KEY_F21: return GLFW_KEY_F21; - case KEY_F22: return GLFW_KEY_F22; - case KEY_F23: return GLFW_KEY_F23; - case KEY_F24: return GLFW_KEY_F24; - case KEY_KPSLASH: return GLFW_KEY_KP_DIVIDE; - case KEY_KPDOT: return GLFW_KEY_KP_MULTIPLY; - case KEY_KPMINUS: return GLFW_KEY_KP_SUBTRACT; - case KEY_KPPLUS: return GLFW_KEY_KP_ADD; - case KEY_KP0: return GLFW_KEY_KP_0; - case KEY_KP1: return GLFW_KEY_KP_1; - case KEY_KP2: return GLFW_KEY_KP_2; - case KEY_KP3: return GLFW_KEY_KP_3; - case KEY_KP4: return GLFW_KEY_KP_4; - case KEY_KP5: return GLFW_KEY_KP_5; - case KEY_KP6: return GLFW_KEY_KP_6; - case KEY_KP7: return GLFW_KEY_KP_7; - case KEY_KP8: return GLFW_KEY_KP_8; - case KEY_KP9: return GLFW_KEY_KP_9; - case KEY_KPCOMMA: return GLFW_KEY_KP_DECIMAL; - case KEY_KPEQUAL: return GLFW_KEY_KP_EQUAL; - case KEY_KPENTER: return GLFW_KEY_KP_ENTER; - default: return GLFW_KEY_UNKNOWN; - } -} - -static void handleKeyEvent(const MirKeyboardEvent* key_event, _GLFWwindow* window) -{ - const int action = mir_keyboard_event_action (key_event); - const int scan_code = mir_keyboard_event_scan_code(key_event); - const int key_code = mir_keyboard_event_key_code (key_event); - const int modifiers = mir_keyboard_event_modifiers(key_event); - - const int pressed = action == mir_keyboard_action_up ? GLFW_RELEASE : GLFW_PRESS; - const int mods = mirModToGLFWMod(modifiers); - const long text = _glfwKeySym2Unicode(key_code); - const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); - - _glfwInputKey(window, toGLFWKeyCode(scan_code), scan_code, pressed, mods); - - if (text != -1) - _glfwInputChar(window, text, mods, plain); -} - -static void handlePointerButton(_GLFWwindow* window, - int pressed, - const MirPointerEvent* pointer_event) -{ - MirPointerButton button = mir_pointer_event_buttons (pointer_event); - int mods = mir_pointer_event_modifiers(pointer_event); - const int publicMods = mirModToGLFWMod(mods); - int publicButton; - - switch (button) - { - case mir_pointer_button_primary: - publicButton = GLFW_MOUSE_BUTTON_LEFT; - break; - case mir_pointer_button_secondary: - publicButton = GLFW_MOUSE_BUTTON_RIGHT; - break; - case mir_pointer_button_tertiary: - publicButton = GLFW_MOUSE_BUTTON_MIDDLE; - break; - case mir_pointer_button_forward: - // FIXME What is the forward button? - publicButton = GLFW_MOUSE_BUTTON_4; - break; - case mir_pointer_button_back: - // FIXME What is the back button? - publicButton = GLFW_MOUSE_BUTTON_5; - break; - default: - break; - } - - _glfwInputMouseClick(window, publicButton, pressed, publicMods); -} - -static void handlePointerMotion(_GLFWwindow* window, - const MirPointerEvent* pointer_event) -{ - int current_x = window->cursorPosX; - int current_y = window->cursorPosY; - int x = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_x); - int y = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_y); - int dx = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_hscroll); - int dy = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_vscroll); - - if (current_x != x || current_y != y) - _glfwInputCursorMotion(window, x, y); - if (dx != 0 || dy != 0) - _glfwInputScroll(window, dx, dy); -} - -static void handlePointerEvent(const MirPointerEvent* pointer_event, - _GLFWwindow* window) -{ - int action = mir_pointer_event_action(pointer_event); - - switch (action) - { - case mir_pointer_action_button_down: - handlePointerButton(window, GLFW_PRESS, pointer_event); - break; - case mir_pointer_action_button_up: - handlePointerButton(window, GLFW_RELEASE, pointer_event); - break; - case mir_pointer_action_motion: - handlePointerMotion(window, pointer_event); - break; - case mir_pointer_action_enter: - case mir_pointer_action_leave: - break; - default: - break; - - } -} - -static void handleInput(const MirInputEvent* input_event, _GLFWwindow* window) -{ - int type = mir_input_event_get_type(input_event); - - switch (type) - { - case mir_input_event_type_key: - handleKeyEvent(mir_input_event_get_keyboard_event(input_event), window); - break; - case mir_input_event_type_pointer: - handlePointerEvent(mir_input_event_get_pointer_event(input_event), window); - break; - default: - break; - } -} - -static void handleEvent(const MirEvent* event, _GLFWwindow* window) -{ - int type = mir_event_get_type(event); - - switch (type) - { - case mir_event_type_input: - handleInput(mir_event_get_input_event(event), window); - break; - default: - break; - } -} - -static void addNewEvent(MirSurface* surface, const MirEvent* event, void* context) -{ - enqueueEvent(event, context); -} - -static int createSurface(_GLFWwindow* window) -{ - MirSurfaceSpec* spec; - MirBufferUsage buffer_usage = mir_buffer_usage_hardware; - MirPixelFormat pixel_format = findValidPixelFormat(); - - if (pixel_format == mir_pixel_format_invalid) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to find a correct pixel format"); - return GL_FALSE; - } - - spec = mir_connection_create_spec_for_normal_surface(_glfw.mir.connection, - window->mir.width, - window->mir.height, - pixel_format); - - mir_surface_spec_set_buffer_usage(spec, buffer_usage); - mir_surface_spec_set_name(spec, "MirSurface"); - - window->mir.surface = mir_surface_create_sync(spec); - mir_surface_spec_release(spec); - - if (!mir_surface_is_valid(window->mir.surface)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to create surface: %s", - mir_surface_get_error_message(window->mir.surface)); - - return GL_FALSE; - } - - mir_surface_set_event_handler(window->mir.surface, addNewEvent, window); - - return GL_TRUE; -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInitEventQueue(EventQueue* queue) -{ - TAILQ_INIT(&queue->head); -} - -void _glfwDeleteEventQueue(EventQueue* queue) -{ - if (queue) - { - EventNode* node, *node_next; - node = queue->head.tqh_first; - - while (node != NULL) - { - node_next = node->entries.tqe_next; - - TAILQ_REMOVE(&queue->head, node, entries); - deleteNode(queue, node); - - node = node_next; - } - - free(queue); - } -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!_glfwCreateContext(window, ctxconfig, fbconfig)) - return GL_FALSE; - - if (wndconfig->monitor) - { - GLFWvidmode mode; - _glfwPlatformGetVideoMode(wndconfig->monitor, &mode); - - mir_surface_set_state(window->mir.surface, mir_surface_state_fullscreen); - - if (wndconfig->width > mode.width || wndconfig->height > mode.height) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Requested surface size too large: %ix%i", - wndconfig->width, wndconfig->height); - - return GL_FALSE; - } - } - - window->mir.width = wndconfig->width; - window->mir.height = wndconfig->height; - - if (!createSurface(window)) - return GL_FALSE; - - window->mir.window = mir_buffer_stream_get_egl_native_window( - mir_surface_get_buffer_stream(window->mir.surface)); - - return GL_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (mir_surface_is_valid(window->mir.surface)) - { - mir_surface_release_sync(window->mir.surface); - window->mir.surface = NULL; - } - - _glfwDestroyContext(window); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - MirSurfaceSpec* spec; - const char* e_title = title ? title : ""; - - spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_name(spec, e_title); - - mir_surface_apply_spec(window->mir.surface, spec); - mir_surface_spec_release(spec); -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - MirSurfaceSpec* spec; - - spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_width (spec, width); - mir_surface_spec_set_height(spec, height); - - mir_surface_apply_spec(window->mir.surface, spec); - mir_surface_spec_release(spec); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->mir.width; - if (height) - *height = window->mir.height; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - mir_surface_set_state(window->mir.surface, mir_surface_state_minimized); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - mir_surface_set_state(window->mir.surface, mir_surface_state_restored); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - MirSurfaceSpec* spec; - - spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_state(spec, mir_surface_state_hidden); - - mir_surface_apply_spec(window->mir.surface, spec); - mir_surface_spec_release(spec); -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - MirSurfaceSpec* spec; - - spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_state(spec, mir_surface_state_restored); - - mir_surface_apply_spec(window->mir.surface, spec); - mir_surface_spec_release(spec); -} - -void _glfwPlatformUnhideWindow(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return GL_FALSE; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return GL_FALSE; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return mir_surface_get_visibility(window->mir.surface) == mir_surface_visibility_exposed; -} - -void _glfwPlatformPollEvents(void) -{ - EventNode* node = NULL; - - while ((node = dequeueEvent(_glfw.mir.event_queue))) - { - handleEvent(node->event, node->window); - deleteNode(_glfw.mir.event_queue, node); - } -} - -void _glfwPlatformWaitEvents(void) -{ - pthread_mutex_lock(&_glfw.mir.event_mutex); - - if (emptyEventQueue(_glfw.mir.event_queue)) - pthread_cond_wait(&_glfw.mir.event_cond, &_glfw.mir.event_mutex); - - pthread_mutex_unlock(&_glfw.mir.event_mutex); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->mir.width; - if (height) - *height = window->mir.height; -} - -// FIXME implement -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - MirBufferStream* stream; - MirPixelFormat pixel_format = findValidPixelFormat(); - - int i_w = image->width; - int i_h = image->height; - - if (pixel_format == mir_pixel_format_invalid) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to find a correct pixel format"); - return GL_FALSE; - } - - stream = mir_connection_create_buffer_stream_sync(_glfw.mir.connection, - i_w, i_h, - pixel_format, - mir_buffer_usage_software); - - cursor->mir.conf = mir_cursor_configuration_from_buffer_stream(stream, xhot, yhot); - - char* dest; - unsigned char *pixels; - int i, r_stride, bytes_per_pixel, bytes_per_row; - - MirGraphicsRegion region; - mir_buffer_stream_get_graphics_region(stream, ®ion); - - // FIXME Figure this out based on the current_pf - bytes_per_pixel = 4; - bytes_per_row = bytes_per_pixel * i_w; - - dest = region.vaddr; - pixels = image->pixels; - - r_stride = region.stride; - - for (i = 0; i < i_h; i++) - { - memcpy(dest, pixels, bytes_per_row); - dest += r_stride; - pixels += r_stride; - } - - cursor->mir.custom_cursor = stream; - - return GL_TRUE; -} - -const char* getSystemCursorName(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return mir_arrow_cursor_name; - case GLFW_IBEAM_CURSOR: - return mir_caret_cursor_name; - case GLFW_CROSSHAIR_CURSOR: - return mir_crosshair_cursor_name; - case GLFW_HAND_CURSOR: - return mir_open_hand_cursor_name; - case GLFW_HRESIZE_CURSOR: - return mir_horizontal_resize_cursor_name; - case GLFW_VRESIZE_CURSOR: - return mir_vertical_resize_cursor_name; - } - - return NULL; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - const char* cursor_name = getSystemCursorName(shape); - - if (cursor_name) - { - cursor->mir.conf = mir_cursor_configuration_from_name(cursor_name); - cursor->mir.custom_cursor = NULL; - - return GL_TRUE; - } - - return GL_FALSE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->mir.conf) - mir_cursor_configuration_destroy(cursor->mir.conf); - if (cursor->mir.custom_cursor) - mir_buffer_stream_release_sync(cursor->mir.custom_cursor); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (cursor && cursor->mir.conf) - { - mir_wait_for(mir_surface_configure_cursor(window->mir.surface, cursor->mir.conf)); - if (cursor->mir.custom_cursor) - { - /* FIXME Bug https://bugs.launchpad.net/mir/+bug/1477285 - Requires a triple buffer swap to get the cursor buffer on top! (since mir is tripled buffered) - */ - mir_buffer_stream_swap_buffers_sync(cursor->mir.custom_cursor); - mir_buffer_stream_swap_buffers_sync(cursor->mir.custom_cursor); - mir_buffer_stream_swap_buffers_sync(cursor->mir.custom_cursor); - } - } - else - { - mir_wait_for(mir_surface_configure_cursor(window->mir.surface, _glfw.mir.default_conf)); - } -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformApplyCursorMode(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - - return NULL; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/monitor.c deleted file mode 100644 index 9a155bd..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/monitor.c +++ /dev/null @@ -1,446 +0,0 @@ -//======================================================================== -// GLFW 3.1 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include -#include - - -// Lexical comparison function for GLFW video modes, used by qsort -// -static int compareVideoModes(const void* firstPtr, const void* secondPtr) -{ - int firstBPP, secondBPP, firstSize, secondSize; - const GLFWvidmode* first = firstPtr; - const GLFWvidmode* second = secondPtr; - - // First sort on color bits per pixel - firstBPP = first->redBits + first->greenBits + first->blueBits; - secondBPP = second->redBits + second->greenBits + second->blueBits; - if (firstBPP != secondBPP) - return firstBPP - secondBPP; - - // Then sort on screen area, in pixels - firstSize = first->width * first->height; - secondSize = second->width * second->height; - if (firstSize != secondSize) - return firstSize - secondSize; - - // Lastly sort on refresh rate - return first->refreshRate - second->refreshRate; -} - -// Retrieves the available modes for the specified monitor -// -static int refreshVideoModes(_GLFWmonitor* monitor) -{ - int modeCount; - GLFWvidmode* modes; - - if (monitor->modes) - return GL_TRUE; - - modes = _glfwPlatformGetVideoModes(monitor, &modeCount); - if (!modes) - return GL_FALSE; - - qsort(modes, modeCount, sizeof(GLFWvidmode), compareVideoModes); - - free(monitor->modes); - monitor->modes = modes; - monitor->modeCount = modeCount; - - return GL_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputMonitorChange(void) -{ - int i, j, monitorCount = _glfw.monitorCount; - _GLFWmonitor** monitors = _glfw.monitors; - - _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); - - // Re-use still connected monitor objects - - for (i = 0; i < _glfw.monitorCount; i++) - { - for (j = 0; j < monitorCount; j++) - { - if (_glfwPlatformIsSameMonitor(_glfw.monitors[i], monitors[j])) - { - _glfwFreeMonitor(_glfw.monitors[i]); - _glfw.monitors[i] = monitors[j]; - break; - } - } - } - - // Find and report disconnected monitors (not in the new list) - - for (i = 0; i < monitorCount; i++) - { - _GLFWwindow* window; - - for (j = 0; j < _glfw.monitorCount; j++) - { - if (monitors[i] == _glfw.monitors[j]) - break; - } - - if (j < _glfw.monitorCount) - continue; - - for (window = _glfw.windowListHead; window; window = window->next) - { - if (window->monitor == monitors[i]) - window->monitor = NULL; - } - - if (_glfw.callbacks.monitor) - _glfw.callbacks.monitor((GLFWmonitor*) monitors[i], GLFW_DISCONNECTED); - } - - // Find and report newly connected monitors (not in the old list) - // Re-used monitor objects are then removed from the old list to avoid - // having them destroyed at the end of this function - - for (i = 0; i < _glfw.monitorCount; i++) - { - for (j = 0; j < monitorCount; j++) - { - if (_glfw.monitors[i] == monitors[j]) - { - monitors[j] = NULL; - break; - } - } - - if (j < monitorCount) - continue; - - if (_glfw.callbacks.monitor) - _glfw.callbacks.monitor((GLFWmonitor*) _glfw.monitors[i], GLFW_CONNECTED); - } - - _glfwFreeMonitors(monitors, monitorCount); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM) -{ - _GLFWmonitor* monitor = calloc(1, sizeof(_GLFWmonitor)); - monitor->name = strdup(name); - monitor->widthMM = widthMM; - monitor->heightMM = heightMM; - - return monitor; -} - -void _glfwFreeMonitor(_GLFWmonitor* monitor) -{ - if (monitor == NULL) - return; - - _glfwFreeGammaArrays(&monitor->originalRamp); - _glfwFreeGammaArrays(&monitor->currentRamp); - - free(monitor->modes); - free(monitor->name); - free(monitor); -} - -void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size) -{ - ramp->red = calloc(size, sizeof(unsigned short)); - ramp->green = calloc(size, sizeof(unsigned short)); - ramp->blue = calloc(size, sizeof(unsigned short)); - ramp->size = size; -} - -void _glfwFreeGammaArrays(GLFWgammaramp* ramp) -{ - free(ramp->red); - free(ramp->green); - free(ramp->blue); - - memset(ramp, 0, sizeof(GLFWgammaramp)); -} - -void _glfwFreeMonitors(_GLFWmonitor** monitors, int count) -{ - int i; - - for (i = 0; i < count; i++) - _glfwFreeMonitor(monitors[i]); - - free(monitors); -} - -const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, - const GLFWvidmode* desired) -{ - int i; - unsigned int sizeDiff, leastSizeDiff = UINT_MAX; - unsigned int rateDiff, leastRateDiff = UINT_MAX; - unsigned int colorDiff, leastColorDiff = UINT_MAX; - const GLFWvidmode* current; - const GLFWvidmode* closest = NULL; - - if (!refreshVideoModes(monitor)) - return NULL; - - for (i = 0; i < monitor->modeCount; i++) - { - current = monitor->modes + i; - - colorDiff = 0; - - if (desired->redBits != GLFW_DONT_CARE) - colorDiff += abs(current->redBits - desired->redBits); - if (desired->greenBits != GLFW_DONT_CARE) - colorDiff += abs(current->greenBits - desired->greenBits); - if (desired->blueBits != GLFW_DONT_CARE) - colorDiff += abs(current->blueBits - desired->blueBits); - - sizeDiff = abs((current->width - desired->width) * - (current->width - desired->width) + - (current->height - desired->height) * - (current->height - desired->height)); - - if (desired->refreshRate != GLFW_DONT_CARE) - rateDiff = abs(current->refreshRate - desired->refreshRate); - else - rateDiff = UINT_MAX - current->refreshRate; - - if ((colorDiff < leastColorDiff) || - (colorDiff == leastColorDiff && sizeDiff < leastSizeDiff) || - (colorDiff == leastColorDiff && sizeDiff == leastSizeDiff && rateDiff < leastRateDiff)) - { - closest = current; - leastSizeDiff = sizeDiff; - leastRateDiff = rateDiff; - leastColorDiff = colorDiff; - } - } - - return closest; -} - -int _glfwCompareVideoModes(const GLFWvidmode* first, const GLFWvidmode* second) -{ - return compareVideoModes(first, second); -} - -void _glfwSplitBPP(int bpp, int* red, int* green, int* blue) -{ - int delta; - - // We assume that by 32 the user really meant 24 - if (bpp == 32) - bpp = 24; - - // Convert "bits per pixel" to red, green & blue sizes - - *red = *green = *blue = bpp / 3; - delta = bpp - (*red * 3); - if (delta >= 1) - *green = *green + 1; - - if (delta == 2) - *red = *red + 1; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI GLFWmonitor** glfwGetMonitors(int* count) -{ - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - *count = _glfw.monitorCount; - return (GLFWmonitor**) _glfw.monitors; -} - -GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!_glfw.monitorCount) - return NULL; - - return (GLFWmonitor*) _glfw.monitors[0]; -} - -GLFWAPI void glfwGetMonitorPos(GLFWmonitor* handle, int* xpos, int* ypos) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; - - _GLFW_REQUIRE_INIT(); - - _glfwPlatformGetMonitorPos(monitor, xpos, ypos); -} - -GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* handle, int* widthMM, int* heightMM) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - - if (widthMM) - *widthMM = 0; - if (heightMM) - *heightMM = 0; - - _GLFW_REQUIRE_INIT(); - - if (widthMM) - *widthMM = monitor->widthMM; - if (heightMM) - *heightMM = monitor->heightMM; -} - -GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->name; -} - -GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(_glfw.callbacks.monitor, cbfun); - return cbfun; -} - -GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* handle, int* count) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!refreshVideoModes(monitor)) - return NULL; - - *count = monitor->modeCount; - return monitor->modes; -} - -GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - _glfwPlatformGetVideoMode(monitor, &monitor->currentMode); - return &monitor->currentMode; -} - -GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) -{ - int i; - unsigned short values[256]; - GLFWgammaramp ramp; - - _GLFW_REQUIRE_INIT(); - - if (gamma != gamma || gamma <= 0.f || gamma > FLT_MAX) - { - _glfwInputError(GLFW_INVALID_VALUE, "Invalid gamma value"); - return; - } - - for (i = 0; i < 256; i++) - { - double value; - - // Calculate intensity - value = i / 255.0; - // Apply gamma curve - value = pow(value, 1.0 / gamma) * 65535.0 + 0.5; - - // Clamp to value range - if (value > 65535.0) - value = 65535.0; - - values[i] = (unsigned short) value; - } - - ramp.red = values; - ramp.green = values; - ramp.blue = values; - ramp.size = 256; - - glfwSetGammaRamp(handle, &ramp); -} - -GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - _glfwFreeGammaArrays(&monitor->currentRamp); - _glfwPlatformGetGammaRamp(monitor, &monitor->currentRamp); - - return &monitor->currentRamp; -} - -GLFWAPI void glfwSetGammaRamp(GLFWmonitor* handle, const GLFWgammaramp* ramp) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - - _GLFW_REQUIRE_INIT(); - - if (!monitor->originalRamp.size) - _glfwPlatformGetGammaRamp(monitor, &monitor->originalRamp); - - _glfwPlatformSetGammaRamp(monitor, ramp); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/nsgl_context.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/nsgl_context.h deleted file mode 100644 index 2707baf..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/nsgl_context.h +++ /dev/null @@ -1,62 +0,0 @@ -//======================================================================== -// GLFW 3.1 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_nsgl_context_h_ -#define _glfw3_nsgl_context_h_ - -#define _GLFW_PLATFORM_FBCONFIG -#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextNSGL nsgl -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryNSGL nsgl - - -// NSGL-specific per-context data -// -typedef struct _GLFWcontextNSGL -{ - id pixelFormat; - id context; - -} _GLFWcontextNSGL; - - -// NSGL-specific global data -// -typedef struct _GLFWlibraryNSGL -{ - // dlopen handle for OpenGL.framework (for glfwGetProcAddress) - void* framework; - -} _GLFWlibraryNSGL; - - -int _glfwInitContextAPI(void); -void _glfwTerminateContextAPI(void); -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContext(_GLFWwindow* window); - -#endif // _glfw3_nsgl_context_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/nsgl_context.m b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/nsgl_context.m deleted file mode 100644 index f36c722..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/nsgl_context.m +++ /dev/null @@ -1,308 +0,0 @@ -//======================================================================== -// GLFW 3.1 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize OpenGL support -// -int _glfwInitContextAPI(void) -{ - if (!_glfwCreateContextTLS()) - return GL_FALSE; - - _glfw.nsgl.framework = - CFBundleGetBundleWithIdentifier(CFSTR("com.apple.opengl")); - if (_glfw.nsgl.framework == NULL) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "NSGL: Failed to locate OpenGL framework"); - return GL_FALSE; - } - - return GL_TRUE; -} - -// Terminate OpenGL support -// -void _glfwTerminateContextAPI(void) -{ - _glfwDestroyContextTLS(); -} - -// Create the OpenGL context -// -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - unsigned int attributeCount = 0; - - if (ctxconfig->api == GLFW_OPENGL_ES_API) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "NSGL: OpenGL ES is not available on OS X"); - return GL_FALSE; - } - -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (ctxconfig->major == 3 && ctxconfig->minor < 2) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: The targeted version of OS X does not support OpenGL 3.0 or 3.1"); - return GL_FALSE; - } - - if (ctxconfig->major > 2) - { - if (!ctxconfig->forward) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: The targeted version of OS X only supports forward-compatible contexts for OpenGL 3.2 and above"); - return GL_FALSE; - } - - if (ctxconfig->profile != GLFW_OPENGL_CORE_PROFILE) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: The targeted version of OS X only supports core profile contexts for OpenGL 3.2 and above"); - return GL_FALSE; - } - } -#else - // Fail if OpenGL 3.0 or above was requested - if (ctxconfig->major > 2) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: The targeted version of OS X does not support OpenGL version 3.0 or above"); - return GL_FALSE; - } -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - - // Context robustness modes (GL_KHR_robustness) are not yet supported on - // OS X but are not a hard constraint, so ignore and continue - - // Context release behaviors (GL_KHR_context_flush_control) are not yet - // supported on OS X but are not a hard constraint, so ignore and continue - -#define ADD_ATTR(x) { attributes[attributeCount++] = x; } -#define ADD_ATTR2(x, y) { ADD_ATTR(x); ADD_ATTR(y); } - - // Arbitrary array size here - NSOpenGLPixelFormatAttribute attributes[40]; - - ADD_ATTR(NSOpenGLPFAAccelerated); - ADD_ATTR(NSOpenGLPFAClosestPolicy); - -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 - if (ctxconfig->major >= 4) - { - ADD_ATTR2(NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion4_1Core); - } - else -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - if (ctxconfig->major >= 3) - { - ADD_ATTR2(NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core); - } -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - - if (ctxconfig->major <= 2) - { - if (fbconfig->auxBuffers != GLFW_DONT_CARE) - ADD_ATTR2(NSOpenGLPFAAuxBuffers, fbconfig->auxBuffers); - - if (fbconfig->accumRedBits != GLFW_DONT_CARE && - fbconfig->accumGreenBits != GLFW_DONT_CARE && - fbconfig->accumBlueBits != GLFW_DONT_CARE && - fbconfig->accumAlphaBits != GLFW_DONT_CARE) - { - const int accumBits = fbconfig->accumRedBits + - fbconfig->accumGreenBits + - fbconfig->accumBlueBits + - fbconfig->accumAlphaBits; - - ADD_ATTR2(NSOpenGLPFAAccumSize, accumBits); - } - } - - if (fbconfig->redBits != GLFW_DONT_CARE && - fbconfig->greenBits != GLFW_DONT_CARE && - fbconfig->blueBits != GLFW_DONT_CARE) - { - int colorBits = fbconfig->redBits + - fbconfig->greenBits + - fbconfig->blueBits; - - // OS X needs non-zero color size, so set reasonable values - if (colorBits == 0) - colorBits = 24; - else if (colorBits < 15) - colorBits = 15; - - ADD_ATTR2(NSOpenGLPFAColorSize, colorBits); - } - - if (fbconfig->alphaBits != GLFW_DONT_CARE) - ADD_ATTR2(NSOpenGLPFAAlphaSize, fbconfig->alphaBits); - - if (fbconfig->depthBits != GLFW_DONT_CARE) - ADD_ATTR2(NSOpenGLPFADepthSize, fbconfig->depthBits); - - if (fbconfig->stencilBits != GLFW_DONT_CARE) - ADD_ATTR2(NSOpenGLPFAStencilSize, fbconfig->stencilBits); - - if (fbconfig->stereo) - ADD_ATTR(NSOpenGLPFAStereo); - - if (fbconfig->doublebuffer) - ADD_ATTR(NSOpenGLPFADoubleBuffer); - - if (fbconfig->samples != GLFW_DONT_CARE) - { - if (fbconfig->samples == 0) - { - ADD_ATTR2(NSOpenGLPFASampleBuffers, 0); - } - else - { - ADD_ATTR2(NSOpenGLPFASampleBuffers, 1); - ADD_ATTR2(NSOpenGLPFASamples, fbconfig->samples); - } - } - - // NOTE: All NSOpenGLPixelFormats on the relevant cards support sRGB - // framebuffer, so there's no need (and no way) to request it - - ADD_ATTR(0); - -#undef ADD_ATTR -#undef ADD_ATTR2 - - window->nsgl.pixelFormat = - [[NSOpenGLPixelFormat alloc] initWithAttributes:attributes]; - if (window->nsgl.pixelFormat == nil) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "NSGL: Failed to find a suitable pixel format"); - return GL_FALSE; - } - - NSOpenGLContext* share = NULL; - - if (ctxconfig->share) - share = ctxconfig->share->nsgl.context; - - window->nsgl.context = - [[NSOpenGLContext alloc] initWithFormat:window->nsgl.pixelFormat - shareContext:share]; - if (window->nsgl.context == nil) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: Failed to create OpenGL context"); - return GL_FALSE; - } - - return GL_TRUE; -} - -// Destroy the OpenGL context -// -void _glfwDestroyContext(_GLFWwindow* window) -{ - [window->nsgl.pixelFormat release]; - window->nsgl.pixelFormat = nil; - - [window->nsgl.context release]; - window->nsgl.context = nil; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformMakeContextCurrent(_GLFWwindow* window) -{ - if (window) - [window->nsgl.context makeCurrentContext]; - else - [NSOpenGLContext clearCurrentContext]; - - _glfwSetContextTLS(window); -} - -void _glfwPlatformSwapBuffers(_GLFWwindow* window) -{ - // ARP appears to be unnecessary, but this is future-proof - [window->nsgl.context flushBuffer]; -} - -void _glfwPlatformSwapInterval(int interval) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - GLint sync = interval; - [window->nsgl.context setValues:&sync forParameter:NSOpenGLCPSwapInterval]; -} - -int _glfwPlatformExtensionSupported(const char* extension) -{ - // There are no NSGL extensions - return GL_FALSE; -} - -GLFWglproc _glfwPlatformGetProcAddress(const char* procname) -{ - CFStringRef symbolName = CFStringCreateWithCString(kCFAllocatorDefault, - procname, - kCFStringEncodingASCII); - - GLFWglproc symbol = CFBundleGetFunctionPointerForName(_glfw.nsgl.framework, - symbolName); - - CFRelease(symbolName); - - return symbol; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI id glfwGetNSGLContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(nil); - return window->nsgl.context; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_time.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_time.c deleted file mode 100644 index 53ea794..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_time.c +++ /dev/null @@ -1,97 +0,0 @@ -//======================================================================== -// GLFW 3.1 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - -// Return raw time -// -static uint64_t getRawTime(void) -{ -#if defined(CLOCK_MONOTONIC) - if (_glfw.posix_time.monotonic) - { - struct timespec ts; - - clock_gettime(CLOCK_MONOTONIC, &ts); - return (uint64_t) ts.tv_sec * (uint64_t) 1000000000 + (uint64_t) ts.tv_nsec; - } - else -#endif - { - struct timeval tv; - - gettimeofday(&tv, NULL); - return (uint64_t) tv.tv_sec * (uint64_t) 1000000 + (uint64_t) tv.tv_usec; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialise timer -// -void _glfwInitTimer(void) -{ -#if defined(CLOCK_MONOTONIC) - struct timespec ts; - - if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) - { - _glfw.posix_time.monotonic = GL_TRUE; - _glfw.posix_time.resolution = 1e-9; - } - else -#endif - { - _glfw.posix_time.resolution = 1e-6; - } - - _glfw.posix_time.base = getRawTime(); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -double _glfwPlatformGetTime(void) -{ - return (double) (getRawTime() - _glfw.posix_time.base) * - _glfw.posix_time.resolution; -} - -void _glfwPlatformSetTime(double time) -{ - _glfw.posix_time.base = getRawTime() - - (uint64_t) (time / _glfw.posix_time.resolution); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_time.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_time.h deleted file mode 100644 index 8e9c1df..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_time.h +++ /dev/null @@ -1,49 +0,0 @@ -//======================================================================== -// GLFW 3.1 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_posix_time_h_ -#define _glfw3_posix_time_h_ - -#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimePOSIX posix_time - -#include - - -// POSIX-specific global timer data -// -typedef struct _GLFWtimePOSIX -{ - GLboolean monotonic; - double resolution; - uint64_t base; - -} _GLFWtimePOSIX; - - -void _glfwInitTimer(void); - -#endif // _glfw3_posix_time_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.c deleted file mode 100644 index fe70355..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.c +++ /dev/null @@ -1,66 +0,0 @@ -//======================================================================== -// GLFW 3.1 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwCreateContextTLS(void) -{ - if (pthread_key_create(&_glfw.posix_tls.context, NULL) != 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "POSIX: Failed to create context TLS"); - return GL_FALSE; - } - - return GL_TRUE; -} - -void _glfwDestroyContextTLS(void) -{ - pthread_key_delete(_glfw.posix_tls.context); -} - -void _glfwSetContextTLS(_GLFWwindow* context) -{ - pthread_setspecific(_glfw.posix_tls.context, context); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWwindow* _glfwPlatformGetCurrentContext(void) -{ - return pthread_getspecific(_glfw.posix_tls.context); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.h deleted file mode 100644 index c4ff9e3..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/posix_tls.h +++ /dev/null @@ -1,49 +0,0 @@ -//======================================================================== -// GLFW 3.1 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_posix_tls_h_ -#define _glfw3_posix_tls_h_ - -#include - -#define _GLFW_PLATFORM_LIBRARY_TLS_STATE _GLFWtlsPOSIX posix_tls - - -// POSIX-specific global TLS data -// -typedef struct _GLFWtlsPOSIX -{ - pthread_key_t context; - -} _GLFWtlsPOSIX; - - -int _glfwCreateContextTLS(void); -void _glfwDestroyContextTLS(void); -void _glfwSetContextTLS(_GLFWwindow* context); - -#endif // _glfw3_posix_tls_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wgl_context.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wgl_context.c deleted file mode 100644 index e25b94e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wgl_context.c +++ /dev/null @@ -1,677 +0,0 @@ -//======================================================================== -// GLFW 3.1 WGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -// Initialize WGL-specific extensions -// -static void initWGLExtensions(_GLFWwindow* window) -{ - // Functions for WGL_EXT_extension_string - // NOTE: These are needed by _glfwPlatformExtensionSupported - window->wgl.GetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC) - _glfw_wglGetProcAddress("wglGetExtensionsStringEXT"); - window->wgl.GetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC) - _glfw_wglGetProcAddress("wglGetExtensionsStringARB"); - - // Functions for WGL_ARB_create_context - window->wgl.CreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC) - _glfw_wglGetProcAddress("wglCreateContextAttribsARB"); - - // Functions for WGL_EXT_swap_control - window->wgl.SwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) - _glfw_wglGetProcAddress("wglSwapIntervalEXT"); - - // Functions for WGL_ARB_pixel_format - window->wgl.GetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC) - _glfw_wglGetProcAddress("wglGetPixelFormatAttribivARB"); - - // This needs to include every extension used below except for - // WGL_ARB_extensions_string and WGL_EXT_extensions_string - window->wgl.ARB_multisample = - _glfwPlatformExtensionSupported("WGL_ARB_multisample"); - window->wgl.ARB_framebuffer_sRGB = - _glfwPlatformExtensionSupported("WGL_ARB_framebuffer_sRGB"); - window->wgl.EXT_framebuffer_sRGB = - _glfwPlatformExtensionSupported("WGL_EXT_framebuffer_sRGB"); - window->wgl.ARB_create_context = - _glfwPlatformExtensionSupported("WGL_ARB_create_context"); - window->wgl.ARB_create_context_profile = - _glfwPlatformExtensionSupported("WGL_ARB_create_context_profile"); - window->wgl.EXT_create_context_es2_profile = - _glfwPlatformExtensionSupported("WGL_EXT_create_context_es2_profile"); - window->wgl.ARB_create_context_robustness = - _glfwPlatformExtensionSupported("WGL_ARB_create_context_robustness"); - window->wgl.EXT_swap_control = - _glfwPlatformExtensionSupported("WGL_EXT_swap_control"); - window->wgl.ARB_pixel_format = - _glfwPlatformExtensionSupported("WGL_ARB_pixel_format"); - window->wgl.ARB_context_flush_control = - _glfwPlatformExtensionSupported("WGL_ARB_context_flush_control"); -} - -// Returns the specified attribute of the specified pixel format -// -static int getPixelFormatAttrib(_GLFWwindow* window, int pixelFormat, int attrib) -{ - int value = 0; - - assert(window->wgl.ARB_pixel_format); - - if (!window->wgl.GetPixelFormatAttribivARB(window->wgl.dc, - pixelFormat, - 0, 1, &attrib, &value)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve pixel format attribute %i", - attrib); - return 0; - } - - return value; -} - -// Return a list of available and usable framebuffer configs -// -static GLboolean choosePixelFormat(_GLFWwindow* window, - const _GLFWfbconfig* desired, - int* result) -{ - _GLFWfbconfig* usableConfigs; - const _GLFWfbconfig* closest; - int i, nativeCount, usableCount; - - if (window->wgl.ARB_pixel_format) - { - nativeCount = getPixelFormatAttrib(window, - 1, - WGL_NUMBER_PIXEL_FORMATS_ARB); - } - else - { - nativeCount = DescribePixelFormat(window->wgl.dc, - 1, - sizeof(PIXELFORMATDESCRIPTOR), - NULL); - } - - usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); - usableCount = 0; - - for (i = 0; i < nativeCount; i++) - { - const int n = i + 1; - _GLFWfbconfig* u = usableConfigs + usableCount; - - if (window->wgl.ARB_pixel_format) - { - // Get pixel format attributes through "modern" extension - - if (!getPixelFormatAttrib(window, n, WGL_SUPPORT_OPENGL_ARB) || - !getPixelFormatAttrib(window, n, WGL_DRAW_TO_WINDOW_ARB)) - { - continue; - } - - if (getPixelFormatAttrib(window, n, WGL_PIXEL_TYPE_ARB) != - WGL_TYPE_RGBA_ARB) - { - continue; - } - - if (getPixelFormatAttrib(window, n, WGL_ACCELERATION_ARB) == - WGL_NO_ACCELERATION_ARB) - { - continue; - } - - u->redBits = getPixelFormatAttrib(window, n, WGL_RED_BITS_ARB); - u->greenBits = getPixelFormatAttrib(window, n, WGL_GREEN_BITS_ARB); - u->blueBits = getPixelFormatAttrib(window, n, WGL_BLUE_BITS_ARB); - u->alphaBits = getPixelFormatAttrib(window, n, WGL_ALPHA_BITS_ARB); - - u->depthBits = getPixelFormatAttrib(window, n, WGL_DEPTH_BITS_ARB); - u->stencilBits = getPixelFormatAttrib(window, n, WGL_STENCIL_BITS_ARB); - - u->accumRedBits = getPixelFormatAttrib(window, n, WGL_ACCUM_RED_BITS_ARB); - u->accumGreenBits = getPixelFormatAttrib(window, n, WGL_ACCUM_GREEN_BITS_ARB); - u->accumBlueBits = getPixelFormatAttrib(window, n, WGL_ACCUM_BLUE_BITS_ARB); - u->accumAlphaBits = getPixelFormatAttrib(window, n, WGL_ACCUM_ALPHA_BITS_ARB); - - u->auxBuffers = getPixelFormatAttrib(window, n, WGL_AUX_BUFFERS_ARB); - - if (getPixelFormatAttrib(window, n, WGL_STEREO_ARB)) - u->stereo = GL_TRUE; - if (getPixelFormatAttrib(window, n, WGL_DOUBLE_BUFFER_ARB)) - u->doublebuffer = GL_TRUE; - - if (window->wgl.ARB_multisample) - u->samples = getPixelFormatAttrib(window, n, WGL_SAMPLES_ARB); - - if (window->wgl.ARB_framebuffer_sRGB || - window->wgl.EXT_framebuffer_sRGB) - { - if (getPixelFormatAttrib(window, n, WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB)) - u->sRGB = GL_TRUE; - } - } - else - { - PIXELFORMATDESCRIPTOR pfd; - - // Get pixel format attributes through legacy PFDs - - if (!DescribePixelFormat(window->wgl.dc, - n, - sizeof(PIXELFORMATDESCRIPTOR), - &pfd)) - { - continue; - } - - if (!(pfd.dwFlags & PFD_DRAW_TO_WINDOW) || - !(pfd.dwFlags & PFD_SUPPORT_OPENGL)) - { - continue; - } - - if (!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && - (pfd.dwFlags & PFD_GENERIC_FORMAT)) - { - continue; - } - - if (pfd.iPixelType != PFD_TYPE_RGBA) - continue; - - u->redBits = pfd.cRedBits; - u->greenBits = pfd.cGreenBits; - u->blueBits = pfd.cBlueBits; - u->alphaBits = pfd.cAlphaBits; - - u->depthBits = pfd.cDepthBits; - u->stencilBits = pfd.cStencilBits; - - u->accumRedBits = pfd.cAccumRedBits; - u->accumGreenBits = pfd.cAccumGreenBits; - u->accumBlueBits = pfd.cAccumBlueBits; - u->accumAlphaBits = pfd.cAccumAlphaBits; - - u->auxBuffers = pfd.cAuxBuffers; - - if (pfd.dwFlags & PFD_STEREO) - u->stereo = GL_TRUE; - if (pfd.dwFlags & PFD_DOUBLEBUFFER) - u->doublebuffer = GL_TRUE; - } - - u->wgl = n; - usableCount++; - } - - if (!usableCount) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "WGL: The driver does not appear to support OpenGL"); - - free(usableConfigs); - return GL_FALSE; - } - - closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); - if (!closest) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "WGL: Failed to find a suitable pixel format"); - - free(usableConfigs); - return GL_FALSE; - } - - *result = closest->wgl; - free(usableConfigs); - - return GL_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize WGL -// -int _glfwInitContextAPI(void) -{ - if (!_glfwCreateContextTLS()) - return GL_FALSE; - - _glfw.wgl.opengl32.instance = LoadLibraryW(L"opengl32.dll"); - if (!_glfw.wgl.opengl32.instance) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "WGL: Failed to load opengl32.dll"); - return GL_FALSE; - } - - _glfw.wgl.opengl32.CreateContext = (WGLCREATECONTEXT_T) - GetProcAddress(_glfw.wgl.opengl32.instance, "wglCreateContext"); - _glfw.wgl.opengl32.DeleteContext = (WGLDELETECONTEXT_T) - GetProcAddress(_glfw.wgl.opengl32.instance, "wglDeleteContext"); - _glfw.wgl.opengl32.GetProcAddress = (WGLGETPROCADDRESS_T) - GetProcAddress(_glfw.wgl.opengl32.instance, "wglGetProcAddress"); - _glfw.wgl.opengl32.MakeCurrent = (WGLMAKECURRENT_T) - GetProcAddress(_glfw.wgl.opengl32.instance, "wglMakeCurrent"); - _glfw.wgl.opengl32.ShareLists = (WGLSHARELISTS_T) - GetProcAddress(_glfw.wgl.opengl32.instance, "wglShareLists"); - - if (!_glfw.wgl.opengl32.CreateContext || - !_glfw.wgl.opengl32.DeleteContext || - !_glfw.wgl.opengl32.GetProcAddress || - !_glfw.wgl.opengl32.MakeCurrent || - !_glfw.wgl.opengl32.ShareLists) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to load opengl32 functions"); - return GL_FALSE; - } - - return GL_TRUE; -} - -// Terminate WGL -// -void _glfwTerminateContextAPI(void) -{ - if (_glfw.wgl.opengl32.instance) - FreeLibrary(_glfw.wgl.opengl32.instance); - - _glfwDestroyContextTLS(); -} - -#define setWGLattrib(attribName, attribValue) \ -{ \ - attribs[index++] = attribName; \ - attribs[index++] = attribValue; \ - assert((size_t) index < sizeof(attribs) / sizeof(attribs[0])); \ -} - -// Create the OpenGL or OpenGL ES context -// -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - int attribs[40]; - int pixelFormat = 0; - PIXELFORMATDESCRIPTOR pfd; - HGLRC share = NULL; - - if (ctxconfig->share) - share = ctxconfig->share->wgl.context; - - window->wgl.dc = GetDC(window->win32.handle); - if (!window->wgl.dc) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve DC for window"); - return GL_FALSE; - } - - if (!choosePixelFormat(window, fbconfig, &pixelFormat)) - return GL_FALSE; - - if (!DescribePixelFormat(window->wgl.dc, pixelFormat, sizeof(pfd), &pfd)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve PFD for selected pixel format"); - return GL_FALSE; - } - - if (!SetPixelFormat(window->wgl.dc, pixelFormat, &pfd)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to set selected pixel format"); - return GL_FALSE; - } - - if (window->wgl.ARB_create_context) - { - int index = 0, mask = 0, flags = 0; - - if (ctxconfig->api == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - flags |= WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; - - if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) - mask |= WGL_CONTEXT_CORE_PROFILE_BIT_ARB; - else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) - mask |= WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; - } - else - mask |= WGL_CONTEXT_ES2_PROFILE_BIT_EXT; - - if (ctxconfig->debug) - flags |= WGL_CONTEXT_DEBUG_BIT_ARB; - - if (ctxconfig->robustness) - { - if (window->wgl.ARB_create_context_robustness) - { - if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) - { - setWGLattrib(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - WGL_NO_RESET_NOTIFICATION_ARB); - } - else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) - { - setWGLattrib(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - WGL_LOSE_CONTEXT_ON_RESET_ARB); - } - - flags |= WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB; - } - } - - if (ctxconfig->release) - { - if (window->wgl.ARB_context_flush_control) - { - if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) - { - setWGLattrib(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, - WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB); - } - else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) - { - setWGLattrib(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, - WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB); - } - } - } - - // NOTE: Only request an explicitly versioned context when necessary, as - // explicitly requesting version 1.0 does not always return the - // highest version supported by the driver - if (ctxconfig->major != 1 || ctxconfig->minor != 0) - { - setWGLattrib(WGL_CONTEXT_MAJOR_VERSION_ARB, ctxconfig->major); - setWGLattrib(WGL_CONTEXT_MINOR_VERSION_ARB, ctxconfig->minor); - } - - if (flags) - setWGLattrib(WGL_CONTEXT_FLAGS_ARB, flags); - - if (mask) - setWGLattrib(WGL_CONTEXT_PROFILE_MASK_ARB, mask); - - setWGLattrib(0, 0); - - window->wgl.context = window->wgl.CreateContextAttribsARB(window->wgl.dc, - share, - attribs); - if (!window->wgl.context) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Failed to create OpenGL context"); - return GL_FALSE; - } - } - else - { - window->wgl.context = _glfw_wglCreateContext(window->wgl.dc); - if (!window->wgl.context) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Failed to create OpenGL context"); - return GL_FALSE; - } - - if (share) - { - if (!_glfw_wglShareLists(share, window->wgl.context)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to enable sharing with specified OpenGL context"); - return GL_FALSE; - } - } - } - - _glfwPlatformMakeContextCurrent(window); - initWGLExtensions(window); - - return GL_TRUE; -} - -#undef setWGLattrib - -// Destroy the OpenGL context -// -void _glfwDestroyContext(_GLFWwindow* window) -{ - if (window->wgl.context) - { - _glfw_wglDeleteContext(window->wgl.context); - window->wgl.context = NULL; - } - - if (window->wgl.dc) - { - ReleaseDC(window->win32.handle, window->wgl.dc); - window->wgl.dc = NULL; - } -} - -// Analyzes the specified context for possible recreation -// -int _glfwAnalyzeContext(const _GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - GLboolean required = GL_FALSE; - - if (ctxconfig->api == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - { - if (!window->wgl.ARB_create_context) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: A forward compatible OpenGL context requested but WGL_ARB_create_context is unavailable"); - return _GLFW_RECREATION_IMPOSSIBLE; - } - - required = GL_TRUE; - } - - if (ctxconfig->profile) - { - if (!window->wgl.ARB_create_context_profile) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: OpenGL profile requested but WGL_ARB_create_context_profile is unavailable"); - return _GLFW_RECREATION_IMPOSSIBLE; - } - - required = GL_TRUE; - } - - if (ctxconfig->release) - { - if (window->wgl.ARB_context_flush_control) - required = GL_TRUE; - } - } - else - { - if (!window->wgl.ARB_create_context || - !window->wgl.ARB_create_context_profile || - !window->wgl.EXT_create_context_es2_profile) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "WGL: OpenGL ES requested but WGL_ARB_create_context_es2_profile is unavailable"); - return _GLFW_RECREATION_IMPOSSIBLE; - } - - required = GL_TRUE; - } - - if (ctxconfig->major != 1 || ctxconfig->minor != 0) - { - if (window->wgl.ARB_create_context) - required = GL_TRUE; - } - - if (ctxconfig->debug) - { - if (window->wgl.ARB_create_context) - required = GL_TRUE; - } - - if (fbconfig->samples > 0) - { - // MSAA is not a hard constraint, so do nothing if it's not supported - if (window->wgl.ARB_multisample && window->wgl.ARB_pixel_format) - required = GL_TRUE; - } - - if (fbconfig->sRGB) - { - // sRGB is not a hard constraint, so do nothing if it's not supported - if ((window->wgl.ARB_framebuffer_sRGB || - window->wgl.EXT_framebuffer_sRGB) && - window->wgl.ARB_pixel_format) - { - required = GL_TRUE; - } - } - - if (required) - return _GLFW_RECREATION_REQUIRED; - - return _GLFW_RECREATION_NOT_NEEDED; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformMakeContextCurrent(_GLFWwindow* window) -{ - if (window) - _glfw_wglMakeCurrent(window->wgl.dc, window->wgl.context); - else - _glfw_wglMakeCurrent(NULL, NULL); - - _glfwSetContextTLS(window); -} - -void _glfwPlatformSwapBuffers(_GLFWwindow* window) -{ - // HACK: Use DwmFlush when desktop composition is enabled - if (_glfwIsCompositionEnabled() && !window->monitor) - { - int count = abs(window->wgl.interval); - while (count--) - _glfw_DwmFlush(); - } - - SwapBuffers(window->wgl.dc); -} - -void _glfwPlatformSwapInterval(int interval) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - window->wgl.interval = interval; - - // HACK: Disable WGL swap interval when desktop composition is enabled to - // avoid interfering with DWM vsync - if (_glfwIsCompositionEnabled() && !window->monitor) - interval = 0; - - if (window->wgl.EXT_swap_control) - window->wgl.SwapIntervalEXT(interval); -} - -int _glfwPlatformExtensionSupported(const char* extension) -{ - const char* extensions; - - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - if (window->wgl.GetExtensionsStringEXT != NULL) - { - extensions = window->wgl.GetExtensionsStringEXT(); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GL_TRUE; - } - } - - if (window->wgl.GetExtensionsStringARB != NULL) - { - extensions = window->wgl.GetExtensionsStringARB(window->wgl.dc); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GL_TRUE; - } - } - - return GL_FALSE; -} - -GLFWglproc _glfwPlatformGetProcAddress(const char* procname) -{ - const GLFWglproc proc = (GLFWglproc) _glfw_wglGetProcAddress(procname); - if (proc) - return proc; - - return (GLFWglproc) GetProcAddress(_glfw.wgl.opengl32.instance, procname); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->wgl.context; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wgl_context.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wgl_context.h deleted file mode 100644 index 12e305d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wgl_context.h +++ /dev/null @@ -1,107 +0,0 @@ -//======================================================================== -// GLFW 3.1 WGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_wgl_context_h_ -#define _glfw3_wgl_context_h_ - -// This path may need to be changed if you build GLFW using your own setup -// We ship and use our own copy of wglext.h since GLFW uses fairly new -// extensions and not all operating systems come with an up-to-date version -#include "../deps/GL/wglext.h" - -// opengl32.dll function pointer typedefs -typedef HGLRC (WINAPI * WGLCREATECONTEXT_T)(HDC); -typedef BOOL (WINAPI * WGLDELETECONTEXT_T)(HGLRC); -typedef PROC (WINAPI * WGLGETPROCADDRESS_T)(LPCSTR); -typedef BOOL (WINAPI * WGLMAKECURRENT_T)(HDC,HGLRC); -typedef BOOL (WINAPI * WGLSHARELISTS_T)(HGLRC,HGLRC); -#define _glfw_wglCreateContext _glfw.wgl.opengl32.CreateContext -#define _glfw_wglDeleteContext _glfw.wgl.opengl32.DeleteContext -#define _glfw_wglGetProcAddress _glfw.wgl.opengl32.GetProcAddress -#define _glfw_wglMakeCurrent _glfw.wgl.opengl32.MakeCurrent -#define _glfw_wglShareLists _glfw.wgl.opengl32.ShareLists - -#define _GLFW_PLATFORM_FBCONFIG int wgl -#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextWGL wgl -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryWGL wgl - - -// WGL-specific per-context data -// -typedef struct _GLFWcontextWGL -{ - HDC dc; // Private GDI device context - HGLRC context; // Permanent rendering context - int interval; - - // WGL extensions (context specific) - PFNWGLSWAPINTERVALEXTPROC SwapIntervalEXT; - PFNWGLGETPIXELFORMATATTRIBIVARBPROC GetPixelFormatAttribivARB; - PFNWGLGETEXTENSIONSSTRINGEXTPROC GetExtensionsStringEXT; - PFNWGLGETEXTENSIONSSTRINGARBPROC GetExtensionsStringARB; - PFNWGLCREATECONTEXTATTRIBSARBPROC CreateContextAttribsARB; - GLboolean EXT_swap_control; - GLboolean ARB_multisample; - GLboolean ARB_framebuffer_sRGB; - GLboolean EXT_framebuffer_sRGB; - GLboolean ARB_pixel_format; - GLboolean ARB_create_context; - GLboolean ARB_create_context_profile; - GLboolean EXT_create_context_es2_profile; - GLboolean ARB_create_context_robustness; - GLboolean ARB_context_flush_control; - -} _GLFWcontextWGL; - - -// WGL-specific global data -// -typedef struct _GLFWlibraryWGL -{ - struct { - HINSTANCE instance; - WGLCREATECONTEXT_T CreateContext; - WGLDELETECONTEXT_T DeleteContext; - WGLGETPROCADDRESS_T GetProcAddress; - WGLMAKECURRENT_T MakeCurrent; - WGLSHARELISTS_T ShareLists; - } opengl32; - -} _GLFWlibraryWGL; - - -int _glfwInitContextAPI(void); -void _glfwTerminateContextAPI(void); -int _glfwCreateContext(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContext(_GLFWwindow* window); -int _glfwAnalyzeContext(const _GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); - -#endif // _glfw3_wgl_context_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_init.c deleted file mode 100644 index 60110a8..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_init.c +++ /dev/null @@ -1,391 +0,0 @@ -//======================================================================== -// GLFW 3.1 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - - -#if defined(_GLFW_USE_HYBRID_HPG) || defined(_GLFW_USE_OPTIMUS_HPG) - -// Applications exporting this symbol with this value will be automatically -// directed to the high-performance GPU on Nvidia Optimus systems with -// up-to-date drivers -// -__declspec(dllexport) DWORD NvOptimusEnablement = 1; - -// Applications exporting this symbol with this value will be automatically -// directed to the high-performance GPU on AMD PowerXpress systems with -// up-to-date drivers -// -__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; - -#endif // _GLFW_USE_HYBRID_HPG - -#if defined(_GLFW_BUILD_DLL) - -// GLFW DLL entry point -// -BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) -{ - return TRUE; -} - -#endif // _GLFW_BUILD_DLL - -// Load necessary libraries (DLLs) -// -static GLboolean initLibraries(void) -{ - _glfw.win32.winmm.instance = LoadLibraryW(L"winmm.dll"); - if (!_glfw.win32.winmm.instance) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to load winmm.dll"); - return GL_FALSE; - } - - _glfw.win32.winmm.joyGetDevCaps = (JOYGETDEVCAPS_T) - GetProcAddress(_glfw.win32.winmm.instance, "joyGetDevCapsW"); - _glfw.win32.winmm.joyGetPos = (JOYGETPOS_T) - GetProcAddress(_glfw.win32.winmm.instance, "joyGetPos"); - _glfw.win32.winmm.joyGetPosEx = (JOYGETPOSEX_T) - GetProcAddress(_glfw.win32.winmm.instance, "joyGetPosEx"); - _glfw.win32.winmm.timeGetTime = (TIMEGETTIME_T) - GetProcAddress(_glfw.win32.winmm.instance, "timeGetTime"); - - if (!_glfw.win32.winmm.joyGetDevCaps || - !_glfw.win32.winmm.joyGetPos || - !_glfw.win32.winmm.joyGetPosEx || - !_glfw.win32.winmm.timeGetTime) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to load winmm functions"); - return GL_FALSE; - } - - _glfw.win32.user32.instance = LoadLibraryW(L"user32.dll"); - if (_glfw.win32.user32.instance) - { - _glfw.win32.user32.SetProcessDPIAware = (SETPROCESSDPIAWARE_T) - GetProcAddress(_glfw.win32.user32.instance, "SetProcessDPIAware"); - _glfw.win32.user32.ChangeWindowMessageFilterEx = (CHANGEWINDOWMESSAGEFILTEREX_T) - GetProcAddress(_glfw.win32.user32.instance, "ChangeWindowMessageFilterEx"); - } - - _glfw.win32.dwmapi.instance = LoadLibraryW(L"dwmapi.dll"); - if (_glfw.win32.dwmapi.instance) - { - _glfw.win32.dwmapi.DwmIsCompositionEnabled = (DWMISCOMPOSITIONENABLED_T) - GetProcAddress(_glfw.win32.dwmapi.instance, "DwmIsCompositionEnabled"); - _glfw.win32.dwmapi.DwmFlush = (DWMFLUSH_T) - GetProcAddress(_glfw.win32.dwmapi.instance, "DwmFlush"); - } - - return GL_TRUE; -} - -// Unload used libraries (DLLs) -// -static void terminateLibraries(void) -{ - if (_glfw.win32.winmm.instance) - FreeLibrary(_glfw.win32.winmm.instance); - - if (_glfw.win32.user32.instance) - FreeLibrary(_glfw.win32.user32.instance); - - if (_glfw.win32.dwmapi.instance) - FreeLibrary(_glfw.win32.dwmapi.instance); -} - -// Create key code translation tables -// -static void createKeyTables(void) -{ - memset(_glfw.win32.publicKeys, -1, sizeof(_glfw.win32.publicKeys)); - - _glfw.win32.publicKeys[0x00B] = GLFW_KEY_0; - _glfw.win32.publicKeys[0x002] = GLFW_KEY_1; - _glfw.win32.publicKeys[0x003] = GLFW_KEY_2; - _glfw.win32.publicKeys[0x004] = GLFW_KEY_3; - _glfw.win32.publicKeys[0x005] = GLFW_KEY_4; - _glfw.win32.publicKeys[0x006] = GLFW_KEY_5; - _glfw.win32.publicKeys[0x007] = GLFW_KEY_6; - _glfw.win32.publicKeys[0x008] = GLFW_KEY_7; - _glfw.win32.publicKeys[0x009] = GLFW_KEY_8; - _glfw.win32.publicKeys[0x00A] = GLFW_KEY_9; - _glfw.win32.publicKeys[0x01E] = GLFW_KEY_A; - _glfw.win32.publicKeys[0x030] = GLFW_KEY_B; - _glfw.win32.publicKeys[0x02E] = GLFW_KEY_C; - _glfw.win32.publicKeys[0x020] = GLFW_KEY_D; - _glfw.win32.publicKeys[0x012] = GLFW_KEY_E; - _glfw.win32.publicKeys[0x021] = GLFW_KEY_F; - _glfw.win32.publicKeys[0x022] = GLFW_KEY_G; - _glfw.win32.publicKeys[0x023] = GLFW_KEY_H; - _glfw.win32.publicKeys[0x017] = GLFW_KEY_I; - _glfw.win32.publicKeys[0x024] = GLFW_KEY_J; - _glfw.win32.publicKeys[0x025] = GLFW_KEY_K; - _glfw.win32.publicKeys[0x026] = GLFW_KEY_L; - _glfw.win32.publicKeys[0x032] = GLFW_KEY_M; - _glfw.win32.publicKeys[0x031] = GLFW_KEY_N; - _glfw.win32.publicKeys[0x018] = GLFW_KEY_O; - _glfw.win32.publicKeys[0x019] = GLFW_KEY_P; - _glfw.win32.publicKeys[0x010] = GLFW_KEY_Q; - _glfw.win32.publicKeys[0x013] = GLFW_KEY_R; - _glfw.win32.publicKeys[0x01F] = GLFW_KEY_S; - _glfw.win32.publicKeys[0x014] = GLFW_KEY_T; - _glfw.win32.publicKeys[0x016] = GLFW_KEY_U; - _glfw.win32.publicKeys[0x02F] = GLFW_KEY_V; - _glfw.win32.publicKeys[0x011] = GLFW_KEY_W; - _glfw.win32.publicKeys[0x02D] = GLFW_KEY_X; - _glfw.win32.publicKeys[0x015] = GLFW_KEY_Y; - _glfw.win32.publicKeys[0x02C] = GLFW_KEY_Z; - - _glfw.win32.publicKeys[0x028] = GLFW_KEY_APOSTROPHE; - _glfw.win32.publicKeys[0x02B] = GLFW_KEY_BACKSLASH; - _glfw.win32.publicKeys[0x033] = GLFW_KEY_COMMA; - _glfw.win32.publicKeys[0x00D] = GLFW_KEY_EQUAL; - _glfw.win32.publicKeys[0x029] = GLFW_KEY_GRAVE_ACCENT; - _glfw.win32.publicKeys[0x01A] = GLFW_KEY_LEFT_BRACKET; - _glfw.win32.publicKeys[0x00C] = GLFW_KEY_MINUS; - _glfw.win32.publicKeys[0x034] = GLFW_KEY_PERIOD; - _glfw.win32.publicKeys[0x01B] = GLFW_KEY_RIGHT_BRACKET; - _glfw.win32.publicKeys[0x027] = GLFW_KEY_SEMICOLON; - _glfw.win32.publicKeys[0x035] = GLFW_KEY_SLASH; - _glfw.win32.publicKeys[0x056] = GLFW_KEY_WORLD_2; - - _glfw.win32.publicKeys[0x00E] = GLFW_KEY_BACKSPACE; - _glfw.win32.publicKeys[0x153] = GLFW_KEY_DELETE; - _glfw.win32.publicKeys[0x14F] = GLFW_KEY_END; - _glfw.win32.publicKeys[0x01C] = GLFW_KEY_ENTER; - _glfw.win32.publicKeys[0x001] = GLFW_KEY_ESCAPE; - _glfw.win32.publicKeys[0x147] = GLFW_KEY_HOME; - _glfw.win32.publicKeys[0x152] = GLFW_KEY_INSERT; - _glfw.win32.publicKeys[0x15D] = GLFW_KEY_MENU; - _glfw.win32.publicKeys[0x151] = GLFW_KEY_PAGE_DOWN; - _glfw.win32.publicKeys[0x149] = GLFW_KEY_PAGE_UP; - _glfw.win32.publicKeys[0x045] = GLFW_KEY_PAUSE; - _glfw.win32.publicKeys[0x039] = GLFW_KEY_SPACE; - _glfw.win32.publicKeys[0x00F] = GLFW_KEY_TAB; - _glfw.win32.publicKeys[0x03A] = GLFW_KEY_CAPS_LOCK; - _glfw.win32.publicKeys[0x145] = GLFW_KEY_NUM_LOCK; - _glfw.win32.publicKeys[0x046] = GLFW_KEY_SCROLL_LOCK; - _glfw.win32.publicKeys[0x03B] = GLFW_KEY_F1; - _glfw.win32.publicKeys[0x03C] = GLFW_KEY_F2; - _glfw.win32.publicKeys[0x03D] = GLFW_KEY_F3; - _glfw.win32.publicKeys[0x03E] = GLFW_KEY_F4; - _glfw.win32.publicKeys[0x03F] = GLFW_KEY_F5; - _glfw.win32.publicKeys[0x040] = GLFW_KEY_F6; - _glfw.win32.publicKeys[0x041] = GLFW_KEY_F7; - _glfw.win32.publicKeys[0x042] = GLFW_KEY_F8; - _glfw.win32.publicKeys[0x043] = GLFW_KEY_F9; - _glfw.win32.publicKeys[0x044] = GLFW_KEY_F10; - _glfw.win32.publicKeys[0x057] = GLFW_KEY_F11; - _glfw.win32.publicKeys[0x058] = GLFW_KEY_F12; - _glfw.win32.publicKeys[0x064] = GLFW_KEY_F13; - _glfw.win32.publicKeys[0x065] = GLFW_KEY_F14; - _glfw.win32.publicKeys[0x066] = GLFW_KEY_F15; - _glfw.win32.publicKeys[0x067] = GLFW_KEY_F16; - _glfw.win32.publicKeys[0x068] = GLFW_KEY_F17; - _glfw.win32.publicKeys[0x069] = GLFW_KEY_F18; - _glfw.win32.publicKeys[0x06A] = GLFW_KEY_F19; - _glfw.win32.publicKeys[0x06B] = GLFW_KEY_F20; - _glfw.win32.publicKeys[0x06C] = GLFW_KEY_F21; - _glfw.win32.publicKeys[0x06D] = GLFW_KEY_F22; - _glfw.win32.publicKeys[0x06E] = GLFW_KEY_F23; - _glfw.win32.publicKeys[0x076] = GLFW_KEY_F24; - _glfw.win32.publicKeys[0x038] = GLFW_KEY_LEFT_ALT; - _glfw.win32.publicKeys[0x01D] = GLFW_KEY_LEFT_CONTROL; - _glfw.win32.publicKeys[0x02A] = GLFW_KEY_LEFT_SHIFT; - _glfw.win32.publicKeys[0x15B] = GLFW_KEY_LEFT_SUPER; - _glfw.win32.publicKeys[0x137] = GLFW_KEY_PRINT_SCREEN; - _glfw.win32.publicKeys[0x138] = GLFW_KEY_RIGHT_ALT; - _glfw.win32.publicKeys[0x11D] = GLFW_KEY_RIGHT_CONTROL; - _glfw.win32.publicKeys[0x036] = GLFW_KEY_RIGHT_SHIFT; - _glfw.win32.publicKeys[0x15C] = GLFW_KEY_RIGHT_SUPER; - _glfw.win32.publicKeys[0x150] = GLFW_KEY_DOWN; - _glfw.win32.publicKeys[0x14B] = GLFW_KEY_LEFT; - _glfw.win32.publicKeys[0x14D] = GLFW_KEY_RIGHT; - _glfw.win32.publicKeys[0x148] = GLFW_KEY_UP; - - _glfw.win32.publicKeys[0x052] = GLFW_KEY_KP_0; - _glfw.win32.publicKeys[0x04F] = GLFW_KEY_KP_1; - _glfw.win32.publicKeys[0x050] = GLFW_KEY_KP_2; - _glfw.win32.publicKeys[0x051] = GLFW_KEY_KP_3; - _glfw.win32.publicKeys[0x04B] = GLFW_KEY_KP_4; - _glfw.win32.publicKeys[0x04C] = GLFW_KEY_KP_5; - _glfw.win32.publicKeys[0x04D] = GLFW_KEY_KP_6; - _glfw.win32.publicKeys[0x047] = GLFW_KEY_KP_7; - _glfw.win32.publicKeys[0x048] = GLFW_KEY_KP_8; - _glfw.win32.publicKeys[0x049] = GLFW_KEY_KP_9; - _glfw.win32.publicKeys[0x04E] = GLFW_KEY_KP_ADD; - _glfw.win32.publicKeys[0x053] = GLFW_KEY_KP_DECIMAL; - _glfw.win32.publicKeys[0x135] = GLFW_KEY_KP_DIVIDE; - _glfw.win32.publicKeys[0x11C] = GLFW_KEY_KP_ENTER; - _glfw.win32.publicKeys[0x037] = GLFW_KEY_KP_MULTIPLY; - _glfw.win32.publicKeys[0x04A] = GLFW_KEY_KP_SUBTRACT; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Returns whether desktop compositing is enabled -// -BOOL _glfwIsCompositionEnabled(void) -{ - BOOL enabled; - - if (!_glfw_DwmIsCompositionEnabled) - return FALSE; - - if (_glfw_DwmIsCompositionEnabled(&enabled) != S_OK) - return FALSE; - - return enabled; -} - -// Returns a wide string version of the specified UTF-8 string -// -WCHAR* _glfwCreateWideStringFromUTF8(const char* source) -{ - WCHAR* target; - int length; - - length = MultiByteToWideChar(CP_UTF8, 0, source, -1, NULL, 0); - if (!length) - return NULL; - - target = calloc(length, sizeof(WCHAR)); - - if (!MultiByteToWideChar(CP_UTF8, 0, source, -1, target, length)) - { - free(target); - return NULL; - } - - return target; -} - -// Returns a UTF-8 string version of the specified wide string -// -char* _glfwCreateUTF8FromWideString(const WCHAR* source) -{ - char* target; - int length; - - length = WideCharToMultiByte(CP_UTF8, 0, source, -1, NULL, 0, NULL, NULL); - if (!length) - return NULL; - - target = calloc(length, sizeof(char)); - - if (!WideCharToMultiByte(CP_UTF8, 0, source, -1, target, length, NULL, NULL)) - { - free(target); - return NULL; - } - - return target; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - // To make SetForegroundWindow work as we want, we need to fiddle - // with the FOREGROUNDLOCKTIMEOUT system setting (we do this as early - // as possible in the hope of still being the foreground process) - SystemParametersInfoW(SPI_GETFOREGROUNDLOCKTIMEOUT, 0, - &_glfw.win32.foregroundLockTimeout, 0); - SystemParametersInfoW(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, UIntToPtr(0), - SPIF_SENDCHANGE); - - if (!initLibraries()) - return GL_FALSE; - - createKeyTables(); - - if (_glfw_SetProcessDPIAware) - _glfw_SetProcessDPIAware(); - - if (!_glfwRegisterWindowClass()) - return GL_FALSE; - - if (!_glfwInitContextAPI()) - return GL_FALSE; - - _glfwInitTimer(); - _glfwInitJoysticks(); - - return GL_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - _glfwUnregisterWindowClass(); - - // Restore previous foreground lock timeout system setting - SystemParametersInfoW(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, - UIntToPtr(_glfw.win32.foregroundLockTimeout), - SPIF_SENDCHANGE); - - free(_glfw.win32.clipboardString); - - _glfwTerminateJoysticks(); - _glfwTerminateContextAPI(); - terminateLibraries(); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Win32" -#if defined(_GLFW_WGL) - " WGL" -#elif defined(_GLFW_EGL) - " EGL" -#endif -#if defined(__MINGW32__) - " MinGW" -#elif defined(_MSC_VER) - " VisualC" -#endif -#if defined(_GLFW_USE_HYBRID_HPG) || defined(_GLFW_USE_OPTIMUS_HPG) - " hybrid-GPU" -#endif -#if defined(_GLFW_BUILD_DLL) - " DLL" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_monitor.c deleted file mode 100644 index 5b235db..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_monitor.c +++ /dev/null @@ -1,357 +0,0 @@ -//======================================================================== -// GLFW 3.1 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - -// These constants are missing on MinGW -#ifndef EDS_ROTATEDMODE - #define EDS_ROTATEDMODE 0x00000004 -#endif -#ifndef DISPLAY_DEVICE_ACTIVE - #define DISPLAY_DEVICE_ACTIVE 0x00000001 -#endif - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Change the current video mode -// -GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired) -{ - GLFWvidmode current; - const GLFWvidmode* best; - DEVMODEW dm; - - best = _glfwChooseVideoMode(monitor, desired); - _glfwPlatformGetVideoMode(monitor, ¤t); - if (_glfwCompareVideoModes(¤t, best) == 0) - return GL_TRUE; - - ZeroMemory(&dm, sizeof(dm)); - dm.dmSize = sizeof(DEVMODEW); - dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL | - DM_DISPLAYFREQUENCY; - dm.dmPelsWidth = best->width; - dm.dmPelsHeight = best->height; - dm.dmBitsPerPel = best->redBits + best->greenBits + best->blueBits; - dm.dmDisplayFrequency = best->refreshRate; - - if (dm.dmBitsPerPel < 15 || dm.dmBitsPerPel >= 24) - dm.dmBitsPerPel = 32; - - if (ChangeDisplaySettingsExW(monitor->win32.adapterName, - &dm, - NULL, - CDS_FULLSCREEN, - NULL) != DISP_CHANGE_SUCCESSFUL) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to set video mode"); - return GL_FALSE; - } - - monitor->win32.modeChanged = GL_TRUE; - return GL_TRUE; -} - -// Restore the previously saved (original) video mode -// -void _glfwRestoreVideoMode(_GLFWmonitor* monitor) -{ - if (monitor->win32.modeChanged) - { - ChangeDisplaySettingsExW(monitor->win32.adapterName, - NULL, NULL, CDS_FULLSCREEN, NULL); - monitor->win32.modeChanged = GL_FALSE; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - int found = 0; - _GLFWmonitor** monitors = NULL; - DWORD adapterIndex, displayIndex; - - *count = 0; - - for (adapterIndex = 0; ; adapterIndex++) - { - DISPLAY_DEVICEW adapter; - - ZeroMemory(&adapter, sizeof(DISPLAY_DEVICEW)); - adapter.cb = sizeof(DISPLAY_DEVICEW); - - if (!EnumDisplayDevicesW(NULL, adapterIndex, &adapter, 0)) - break; - - if (!(adapter.StateFlags & DISPLAY_DEVICE_ACTIVE)) - continue; - - for (displayIndex = 0; ; displayIndex++) - { - DISPLAY_DEVICEW display; - _GLFWmonitor* monitor; - char* name; - HDC dc; - - ZeroMemory(&display, sizeof(DISPLAY_DEVICEW)); - display.cb = sizeof(DISPLAY_DEVICEW); - - if (!EnumDisplayDevicesW(adapter.DeviceName, displayIndex, &display, 0)) - break; - - name = _glfwCreateUTF8FromWideString(display.DeviceString); - if (!name) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert string to UTF-8"); - continue; - } - - dc = CreateDCW(L"DISPLAY", adapter.DeviceName, NULL, NULL); - - monitor = _glfwAllocMonitor(name, - GetDeviceCaps(dc, HORZSIZE), - GetDeviceCaps(dc, VERTSIZE)); - - DeleteDC(dc); - free(name); - - if (adapter.StateFlags & DISPLAY_DEVICE_MODESPRUNED) - monitor->win32.modesPruned = GL_TRUE; - - wcscpy(monitor->win32.adapterName, adapter.DeviceName); - wcscpy(monitor->win32.displayName, display.DeviceName); - - WideCharToMultiByte(CP_UTF8, 0, - adapter.DeviceName, -1, - monitor->win32.publicAdapterName, - sizeof(monitor->win32.publicAdapterName), - NULL, NULL); - - WideCharToMultiByte(CP_UTF8, 0, - display.DeviceName, -1, - monitor->win32.publicDisplayName, - sizeof(monitor->win32.publicDisplayName), - NULL, NULL); - - found++; - monitors = realloc(monitors, sizeof(_GLFWmonitor*) * found); - monitors[found - 1] = monitor; - - if (adapter.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE && - displayIndex == 0) - { - _GLFW_SWAP_POINTERS(monitors[0], monitors[found - 1]); - } - } - } - - *count = found; - return monitors; -} - -GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - return wcscmp(first->win32.displayName, second->win32.displayName) == 0; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - DEVMODEW settings; - ZeroMemory(&settings, sizeof(DEVMODEW)); - settings.dmSize = sizeof(DEVMODEW); - - EnumDisplaySettingsExW(monitor->win32.adapterName, - ENUM_CURRENT_SETTINGS, - &settings, - EDS_ROTATEDMODE); - - if (xpos) - *xpos = settings.dmPosition.x; - if (ypos) - *ypos = settings.dmPosition.y; -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) -{ - int modeIndex = 0, size = 0; - GLFWvidmode* result = NULL; - - *count = 0; - - for (;;) - { - int i; - GLFWvidmode mode; - DEVMODEW dm; - - ZeroMemory(&dm, sizeof(DEVMODEW)); - dm.dmSize = sizeof(DEVMODEW); - - if (!EnumDisplaySettingsW(monitor->win32.adapterName, modeIndex, &dm)) - break; - - modeIndex++; - - // Skip modes with less than 15 BPP - if (dm.dmBitsPerPel < 15) - continue; - - mode.width = dm.dmPelsWidth; - mode.height = dm.dmPelsHeight; - mode.refreshRate = dm.dmDisplayFrequency; - _glfwSplitBPP(dm.dmBitsPerPel, - &mode.redBits, - &mode.greenBits, - &mode.blueBits); - - for (i = 0; i < *count; i++) - { - if (_glfwCompareVideoModes(result + i, &mode) == 0) - break; - } - - // Skip duplicate modes - if (i < *count) - continue; - - if (monitor->win32.modesPruned) - { - // Skip modes not supported by the connected displays - if (ChangeDisplaySettingsExW(monitor->win32.adapterName, - &dm, - NULL, - CDS_TEST, - NULL) != DISP_CHANGE_SUCCESSFUL) - { - continue; - } - } - - if (*count == size) - { - if (*count) - size *= 2; - else - size = 128; - - result = (GLFWvidmode*) realloc(result, size * sizeof(GLFWvidmode)); - } - - (*count)++; - result[*count - 1] = mode; - } - - return result; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - DEVMODEW dm; - - ZeroMemory(&dm, sizeof(DEVMODEW)); - dm.dmSize = sizeof(DEVMODEW); - - EnumDisplaySettingsW(monitor->win32.adapterName, ENUM_CURRENT_SETTINGS, &dm); - - mode->width = dm.dmPelsWidth; - mode->height = dm.dmPelsHeight; - mode->refreshRate = dm.dmDisplayFrequency; - _glfwSplitBPP(dm.dmBitsPerPel, - &mode->redBits, - &mode->greenBits, - &mode->blueBits); -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - HDC dc; - WORD values[768]; - - dc = CreateDCW(L"DISPLAY", monitor->win32.adapterName, NULL, NULL); - GetDeviceGammaRamp(dc, values); - DeleteDC(dc); - - _glfwAllocGammaArrays(ramp, 256); - - memcpy(ramp->red, values + 0, 256 * sizeof(unsigned short)); - memcpy(ramp->green, values + 256, 256 * sizeof(unsigned short)); - memcpy(ramp->blue, values + 512, 256 * sizeof(unsigned short)); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - HDC dc; - WORD values[768]; - - if (ramp->size != 256) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Gamma ramp size must be 256"); - return; - } - - memcpy(values + 0, ramp->red, 256 * sizeof(unsigned short)); - memcpy(values + 256, ramp->green, 256 * sizeof(unsigned short)); - memcpy(values + 512, ramp->blue, 256 * sizeof(unsigned short)); - - dc = CreateDCW(L"DISPLAY", monitor->win32.adapterName, NULL, NULL); - SetDeviceGammaRamp(dc, values); - DeleteDC(dc); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->win32.publicAdapterName; -} - -GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->win32.publicDisplayName; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_platform.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_platform.h deleted file mode 100644 index d3e190e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_platform.h +++ /dev/null @@ -1,245 +0,0 @@ -//======================================================================== -// GLFW 3.1 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_win32_platform_h_ -#define _glfw3_win32_platform_h_ - -// We don't need all the fancy stuff -#ifndef NOMINMAX - #define NOMINMAX -#endif - -#ifndef VC_EXTRALEAN - #define VC_EXTRALEAN -#endif - -#ifndef WIN32_LEAN_AND_MEAN - #define WIN32_LEAN_AND_MEAN -#endif - -// This is a workaround for the fact that glfw3.h needs to export APIENTRY (for -// example to allow applications to correctly declare a GL_ARB_debug_output -// callback) but windows.h assumes no one will define APIENTRY before it does -#undef APIENTRY - -// GLFW on Windows is Unicode only and does not work in MBCS mode -#ifndef UNICODE - #define UNICODE -#endif - -// GLFW requires Windows XP or later -#if WINVER < 0x0501 - #undef WINVER - #define WINVER 0x0501 -#endif -#if _WIN32_WINNT < 0x0501 - #undef _WIN32_WINNT - #define _WIN32_WINNT 0x0501 -#endif - -#include -#include -#include - -#if defined(_MSC_VER) - #include - #define strdup _strdup -#endif - -// HACK: Define macros that some older windows.h variants don't -#ifndef WM_MOUSEHWHEEL - #define WM_MOUSEHWHEEL 0x020E -#endif -#ifndef WM_DWMCOMPOSITIONCHANGED - #define WM_DWMCOMPOSITIONCHANGED 0x031E -#endif -#ifndef WM_COPYGLOBALDATA - #define WM_COPYGLOBALDATA 0x0049 -#endif -#ifndef WM_UNICHAR - #define WM_UNICHAR 0x0109 -#endif -#ifndef UNICODE_NOCHAR - #define UNICODE_NOCHAR 0xFFFF -#endif - -#if WINVER < 0x0601 -typedef struct tagCHANGEFILTERSTRUCT -{ - DWORD cbSize; - DWORD ExtStatus; - -} CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT; -#ifndef MSGFLT_ALLOW - #define MSGFLT_ALLOW 1 -#endif -#endif /*Windows 7*/ - -// winmm.dll function pointer typedefs -typedef MMRESULT (WINAPI * JOYGETDEVCAPS_T)(UINT,LPJOYCAPS,UINT); -typedef MMRESULT (WINAPI * JOYGETPOS_T)(UINT,LPJOYINFO); -typedef MMRESULT (WINAPI * JOYGETPOSEX_T)(UINT,LPJOYINFOEX); -typedef DWORD (WINAPI * TIMEGETTIME_T)(void); -#define _glfw_joyGetDevCaps _glfw.win32.winmm.joyGetDevCaps -#define _glfw_joyGetPos _glfw.win32.winmm.joyGetPos -#define _glfw_joyGetPosEx _glfw.win32.winmm.joyGetPosEx -#define _glfw_timeGetTime _glfw.win32.winmm.timeGetTime - -// user32.dll function pointer typedefs -typedef BOOL (WINAPI * SETPROCESSDPIAWARE_T)(void); -typedef BOOL (WINAPI * CHANGEWINDOWMESSAGEFILTEREX_T)(HWND,UINT,DWORD,PCHANGEFILTERSTRUCT); -#define _glfw_SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware -#define _glfw_ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx - -// dwmapi.dll function pointer typedefs -typedef HRESULT (WINAPI * DWMISCOMPOSITIONENABLED_T)(BOOL*); -typedef HRESULT (WINAPI * DWMFLUSH_T)(VOID); -#define _glfw_DwmIsCompositionEnabled _glfw.win32.dwmapi.DwmIsCompositionEnabled -#define _glfw_DwmFlush _glfw.win32.dwmapi.DwmFlush - -#define _GLFW_RECREATION_NOT_NEEDED 0 -#define _GLFW_RECREATION_REQUIRED 1 -#define _GLFW_RECREATION_IMPOSSIBLE 2 - -#include "win32_tls.h" -#include "winmm_joystick.h" - -#if defined(_GLFW_WGL) - #include "wgl_context.h" -#elif defined(_GLFW_EGL) - #define _GLFW_EGL_NATIVE_WINDOW window->win32.handle - #define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY - #include "egl_context.h" -#else - #error "No supported context creation API selected" -#endif - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 -#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeWin32 win32_time -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32 -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32 - - -// Win32-specific per-window data -// -typedef struct _GLFWwindowWin32 -{ - HWND handle; - - GLboolean cursorTracked; - GLboolean iconified; - - // The last received cursor position, regardless of source - int cursorPosX, cursorPosY; - -} _GLFWwindowWin32; - - -// Win32-specific global data -// -typedef struct _GLFWlibraryWin32 -{ - DWORD foregroundLockTimeout; - char* clipboardString; - short int publicKeys[512]; - - // winmm.dll - struct { - HINSTANCE instance; - JOYGETDEVCAPS_T joyGetDevCaps; - JOYGETPOS_T joyGetPos; - JOYGETPOSEX_T joyGetPosEx; - TIMEGETTIME_T timeGetTime; - } winmm; - - // user32.dll - struct { - HINSTANCE instance; - SETPROCESSDPIAWARE_T SetProcessDPIAware; - CHANGEWINDOWMESSAGEFILTEREX_T ChangeWindowMessageFilterEx; - } user32; - - // dwmapi.dll - struct { - HINSTANCE instance; - DWMISCOMPOSITIONENABLED_T DwmIsCompositionEnabled; - DWMFLUSH_T DwmFlush; - } dwmapi; - -} _GLFWlibraryWin32; - - -// Win32-specific per-monitor data -// -typedef struct _GLFWmonitorWin32 -{ - // This size matches the static size of DISPLAY_DEVICE.DeviceName - WCHAR adapterName[32]; - WCHAR displayName[32]; - char publicAdapterName[64]; - char publicDisplayName[64]; - GLboolean modesPruned; - GLboolean modeChanged; - -} _GLFWmonitorWin32; - - -// Win32-specific per-cursor data -// -typedef struct _GLFWcursorWin32 -{ - HCURSOR handle; - -} _GLFWcursorWin32; - - -// Win32-specific global timer data -// -typedef struct _GLFWtimeWin32 -{ - GLboolean hasPC; - double resolution; - unsigned __int64 base; - -} _GLFWtimeWin32; - - -GLboolean _glfwRegisterWindowClass(void); -void _glfwUnregisterWindowClass(void); - -BOOL _glfwIsCompositionEnabled(void); - -WCHAR* _glfwCreateWideStringFromUTF8(const char* source); -char* _glfwCreateUTF8FromWideString(const WCHAR* source); - -void _glfwInitTimer(void); - -GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired); -void _glfwRestoreVideoMode(_GLFWmonitor* monitor); - -#endif // _glfw3_win32_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_time.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_time.c deleted file mode 100644 index 5f7adf8..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_time.c +++ /dev/null @@ -1,86 +0,0 @@ -//======================================================================== -// GLFW 3.1 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -// Return raw time -// -static unsigned __int64 getRawTime(void) -{ - if (_glfw.win32_time.hasPC) - { - unsigned __int64 time; - QueryPerformanceCounter((LARGE_INTEGER*) &time); - return time; - } - else - return (unsigned __int64) _glfw_timeGetTime(); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialise timer -// -void _glfwInitTimer(void) -{ - unsigned __int64 frequency; - - if (QueryPerformanceFrequency((LARGE_INTEGER*) &frequency)) - { - _glfw.win32_time.hasPC = GL_TRUE; - _glfw.win32_time.resolution = 1.0 / (double) frequency; - } - else - { - _glfw.win32_time.hasPC = GL_FALSE; - _glfw.win32_time.resolution = 0.001; // winmm resolution is 1 ms - } - - _glfw.win32_time.base = getRawTime(); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -double _glfwPlatformGetTime(void) -{ - return (double) (getRawTime() - _glfw.win32_time.base) * - _glfw.win32_time.resolution; -} - -void _glfwPlatformSetTime(double time) -{ - _glfw.win32_time.base = getRawTime() - - (unsigned __int64) (time / _glfw.win32_time.resolution); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.c deleted file mode 100644 index 2e25e9b..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.c +++ /dev/null @@ -1,69 +0,0 @@ -//======================================================================== -// GLFW 3.1 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwCreateContextTLS(void) -{ - _glfw.win32_tls.context = TlsAlloc(); - if (_glfw.win32_tls.context == TLS_OUT_OF_INDEXES) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to allocate TLS index"); - return GL_FALSE; - } - - _glfw.win32_tls.allocated = GL_TRUE; - return GL_TRUE; -} - -void _glfwDestroyContextTLS(void) -{ - if (_glfw.win32_tls.allocated) - TlsFree(_glfw.win32_tls.context); -} - -void _glfwSetContextTLS(_GLFWwindow* context) -{ - TlsSetValue(_glfw.win32_tls.context, context); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWwindow* _glfwPlatformGetCurrentContext(void) -{ - return TlsGetValue(_glfw.win32_tls.context); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.h deleted file mode 100644 index fcc0be2..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_tls.h +++ /dev/null @@ -1,48 +0,0 @@ -//======================================================================== -// GLFW 3.1 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_win32_tls_h_ -#define _glfw3_win32_tls_h_ - -#define _GLFW_PLATFORM_LIBRARY_TLS_STATE _GLFWtlsWin32 win32_tls - - -// Win32-specific global TLS data -// -typedef struct _GLFWtlsWin32 -{ - GLboolean allocated; - DWORD context; - -} _GLFWtlsWin32; - - -int _glfwCreateContextTLS(void); -void _glfwDestroyContextTLS(void); -void _glfwSetContextTLS(_GLFWwindow* context); - -#endif // _glfw3_win32_tls_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_window.c deleted file mode 100644 index bd24cfb..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/win32_window.c +++ /dev/null @@ -1,1312 +0,0 @@ -//======================================================================== -// GLFW 3.1 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include -#include - -#define _GLFW_KEY_INVALID -2 - -#define _GLFW_WNDCLASSNAME L"GLFW30" - - -// Returns the window style for the specified window -// -static DWORD getWindowStyle(const _GLFWwindow* window) -{ - DWORD style = WS_CLIPSIBLINGS | WS_CLIPCHILDREN; - - if (window->decorated && !window->monitor) - { - style |= WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX; - - if (window->resizable) - style |= WS_MAXIMIZEBOX | WS_SIZEBOX; - } - else - style |= WS_POPUP; - - return style; -} - -// Returns the extended window style for the specified window -// -static DWORD getWindowExStyle(const _GLFWwindow* window) -{ - DWORD style = WS_EX_APPWINDOW; - - if (window->decorated && !window->monitor) - style |= WS_EX_WINDOWEDGE; - - return style; -} - -// Updates the cursor clip rect -// -static void updateClipRect(_GLFWwindow* window) -{ - RECT clipRect; - GetClientRect(window->win32.handle, &clipRect); - ClientToScreen(window->win32.handle, (POINT*) &clipRect.left); - ClientToScreen(window->win32.handle, (POINT*) &clipRect.right); - ClipCursor(&clipRect); -} - -// Hide the mouse cursor -// -static void hideCursor(_GLFWwindow* window) -{ - POINT pos; - - ClipCursor(NULL); - - if (GetCursorPos(&pos)) - { - if (WindowFromPoint(pos) == window->win32.handle) - SetCursor(NULL); - } -} - -// Disable the mouse cursor -// -static void disableCursor(_GLFWwindow* window) -{ - POINT pos; - - updateClipRect(window); - - if (GetCursorPos(&pos)) - { - if (WindowFromPoint(pos) == window->win32.handle) - SetCursor(NULL); - } -} - -// Restores the mouse cursor -// -static void restoreCursor(_GLFWwindow* window) -{ - POINT pos; - - ClipCursor(NULL); - - if (GetCursorPos(&pos)) - { - if (WindowFromPoint(pos) == window->win32.handle) - { - if (window->cursor) - SetCursor(window->cursor->win32.handle); - else - SetCursor(LoadCursorW(NULL, IDC_ARROW)); - } - } -} - -// Translates a GLFW standard cursor to a resource ID -// -static LPWSTR translateCursorShape(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return IDC_ARROW; - case GLFW_IBEAM_CURSOR: - return IDC_IBEAM; - case GLFW_CROSSHAIR_CURSOR: - return IDC_CROSS; - case GLFW_HAND_CURSOR: - return IDC_HAND; - case GLFW_HRESIZE_CURSOR: - return IDC_SIZEWE; - case GLFW_VRESIZE_CURSOR: - return IDC_SIZENS; - } - - return NULL; -} - -// Retrieves and translates modifier keys -// -static int getKeyMods(void) -{ - int mods = 0; - - if (GetKeyState(VK_SHIFT) & (1 << 31)) - mods |= GLFW_MOD_SHIFT; - if (GetKeyState(VK_CONTROL) & (1 << 31)) - mods |= GLFW_MOD_CONTROL; - if (GetKeyState(VK_MENU) & (1 << 31)) - mods |= GLFW_MOD_ALT; - if ((GetKeyState(VK_LWIN) | GetKeyState(VK_RWIN)) & (1 << 31)) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Retrieves and translates modifier keys -// -static int getAsyncKeyMods(void) -{ - int mods = 0; - - if (GetAsyncKeyState(VK_SHIFT) & (1 << 31)) - mods |= GLFW_MOD_SHIFT; - if (GetAsyncKeyState(VK_CONTROL) & (1 << 31)) - mods |= GLFW_MOD_CONTROL; - if (GetAsyncKeyState(VK_MENU) & (1 << 31)) - mods |= GLFW_MOD_ALT; - if ((GetAsyncKeyState(VK_LWIN) | GetAsyncKeyState(VK_RWIN)) & (1 << 31)) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Translates a Windows key to the corresponding GLFW key -// -static int translateKey(WPARAM wParam, LPARAM lParam) -{ - if (wParam == VK_CONTROL) - { - // The CTRL keys require special handling - - MSG next; - DWORD time; - - // Is this an extended key (i.e. right key)? - if (lParam & 0x01000000) - return GLFW_KEY_RIGHT_CONTROL; - - // Here is a trick: "Alt Gr" sends LCTRL, then RALT. We only - // want the RALT message, so we try to see if the next message - // is a RALT message. In that case, this is a false LCTRL! - time = GetMessageTime(); - - if (PeekMessageW(&next, NULL, 0, 0, PM_NOREMOVE)) - { - if (next.message == WM_KEYDOWN || - next.message == WM_SYSKEYDOWN || - next.message == WM_KEYUP || - next.message == WM_SYSKEYUP) - { - if (next.wParam == VK_MENU && - (next.lParam & 0x01000000) && - next.time == time) - { - // Next message is a RALT down message, which - // means that this is not a proper LCTRL message - return _GLFW_KEY_INVALID; - } - } - } - - return GLFW_KEY_LEFT_CONTROL; - } - - return _glfw.win32.publicKeys[HIWORD(lParam) & 0x1FF]; -} - -// Enter full screen mode -// -static GLboolean enterFullscreenMode(_GLFWwindow* window) -{ - GLFWvidmode mode; - GLboolean status; - int xpos, ypos; - - status = _glfwSetVideoMode(window->monitor, &window->videoMode); - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - SetWindowPos(window->win32.handle, HWND_TOPMOST, - xpos, ypos, mode.width, mode.height, SWP_NOCOPYBITS); - - return status; -} - -// Leave full screen mode -// -static void leaveFullscreenMode(_GLFWwindow* window) -{ - _glfwRestoreVideoMode(window->monitor); -} - -// Window callback function (handles window events) -// -static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, - WPARAM wParam, LPARAM lParam) -{ - _GLFWwindow* window = (_GLFWwindow*) GetWindowLongPtrW(hWnd, 0); - - switch (uMsg) - { - case WM_NCCREATE: - { - CREATESTRUCTW* cs = (CREATESTRUCTW*) lParam; - SetWindowLongPtrW(hWnd, 0, (LONG_PTR) cs->lpCreateParams); - break; - } - - case WM_SETFOCUS: - { - if (window->cursorMode != GLFW_CURSOR_NORMAL) - _glfwPlatformApplyCursorMode(window); - - _glfwInputWindowFocus(window, GL_TRUE); - return 0; - } - - case WM_KILLFOCUS: - { - if (window->cursorMode != GLFW_CURSOR_NORMAL) - restoreCursor(window); - - if (window->monitor && window->autoIconify) - _glfwPlatformIconifyWindow(window); - - _glfwInputWindowFocus(window, GL_FALSE); - return 0; - } - - case WM_SYSCOMMAND: - { - switch (wParam & 0xfff0) - { - case SC_SCREENSAVE: - case SC_MONITORPOWER: - { - if (window->monitor) - { - // We are running in full screen mode, so disallow - // screen saver and screen blanking - return 0; - } - else - break; - } - - // User trying to access application menu using ALT? - case SC_KEYMENU: - return 0; - } - break; - } - - case WM_CLOSE: - { - _glfwInputWindowCloseRequest(window); - return 0; - } - - case WM_KEYDOWN: - case WM_SYSKEYDOWN: - { - const int scancode = (lParam >> 16) & 0x1ff; - const int key = translateKey(wParam, lParam); - if (key == _GLFW_KEY_INVALID) - break; - - _glfwInputKey(window, key, scancode, GLFW_PRESS, getKeyMods()); - break; - } - - case WM_CHAR: - { - _glfwInputChar(window, (unsigned int) wParam, getKeyMods(), GL_TRUE); - return 0; - } - - case WM_SYSCHAR: - { - _glfwInputChar(window, (unsigned int) wParam, getKeyMods(), GL_FALSE); - return 0; - } - - case WM_UNICHAR: - { - // This message is not sent by Windows, but is sent by some - // third-party input method engines - - if (wParam == UNICODE_NOCHAR) - { - // Returning TRUE here announces support for this message - return TRUE; - } - - _glfwInputChar(window, (unsigned int) wParam, getKeyMods(), GL_TRUE); - return FALSE; - } - - case WM_KEYUP: - case WM_SYSKEYUP: - { - const int mods = getKeyMods(); - const int scancode = (lParam >> 16) & 0x1ff; - const int key = translateKey(wParam, lParam); - if (key == _GLFW_KEY_INVALID) - break; - - if (wParam == VK_SHIFT) - { - // Release both Shift keys on Shift up event, as only one event - // is sent even if both keys are released - _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, scancode, GLFW_RELEASE, mods); - _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, scancode, GLFW_RELEASE, mods); - } - else if (wParam == VK_SNAPSHOT) - { - // Key down is not reported for the print screen key - _glfwInputKey(window, key, scancode, GLFW_PRESS, mods); - _glfwInputKey(window, key, scancode, GLFW_RELEASE, mods); - } - else - _glfwInputKey(window, key, scancode, GLFW_RELEASE, mods); - - break; - } - - case WM_LBUTTONDOWN: - case WM_RBUTTONDOWN: - case WM_MBUTTONDOWN: - case WM_XBUTTONDOWN: - { - const int mods = getKeyMods(); - - SetCapture(hWnd); - - if (uMsg == WM_LBUTTONDOWN) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_LEFT, GLFW_PRESS, mods); - else if (uMsg == WM_RBUTTONDOWN) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_RIGHT, GLFW_PRESS, mods); - else if (uMsg == WM_MBUTTONDOWN) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_MIDDLE, GLFW_PRESS, mods); - else - { - if (HIWORD(wParam) == XBUTTON1) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_4, GLFW_PRESS, mods); - else if (HIWORD(wParam) == XBUTTON2) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_5, GLFW_PRESS, mods); - - return TRUE; - } - - return 0; - } - - case WM_LBUTTONUP: - case WM_RBUTTONUP: - case WM_MBUTTONUP: - case WM_XBUTTONUP: - { - const int mods = getKeyMods(); - - ReleaseCapture(); - - if (uMsg == WM_LBUTTONUP) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_LEFT, GLFW_RELEASE, mods); - else if (uMsg == WM_RBUTTONUP) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_RIGHT, GLFW_RELEASE, mods); - else if (uMsg == WM_MBUTTONUP) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_MIDDLE, GLFW_RELEASE, mods); - else - { - if (HIWORD(wParam) == XBUTTON1) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_4, GLFW_RELEASE, mods); - else if (HIWORD(wParam) == XBUTTON2) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_5, GLFW_RELEASE, mods); - - return TRUE; - } - - return 0; - } - - case WM_MOUSEMOVE: - { - const int x = GET_X_LPARAM(lParam); - const int y = GET_Y_LPARAM(lParam); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (_glfw.cursorWindow != window) - break; - - _glfwInputCursorMotion(window, - x - window->win32.cursorPosX, - y - window->win32.cursorPosY); - } - else - _glfwInputCursorMotion(window, x, y); - - window->win32.cursorPosX = x; - window->win32.cursorPosY = y; - - if (!window->win32.cursorTracked) - { - TRACKMOUSEEVENT tme; - ZeroMemory(&tme, sizeof(tme)); - tme.cbSize = sizeof(tme); - tme.dwFlags = TME_LEAVE; - tme.hwndTrack = window->win32.handle; - TrackMouseEvent(&tme); - - window->win32.cursorTracked = GL_TRUE; - _glfwInputCursorEnter(window, GL_TRUE); - } - - return 0; - } - - case WM_MOUSELEAVE: - { - window->win32.cursorTracked = GL_FALSE; - _glfwInputCursorEnter(window, GL_FALSE); - return 0; - } - - case WM_MOUSEWHEEL: - { - _glfwInputScroll(window, 0.0, (SHORT) HIWORD(wParam) / (double) WHEEL_DELTA); - return 0; - } - - case WM_MOUSEHWHEEL: - { - // This message is only sent on Windows Vista and later - // NOTE: The X-axis is inverted for consistency with OS X and X11. - _glfwInputScroll(window, -((SHORT) HIWORD(wParam) / (double) WHEEL_DELTA), 0.0); - return 0; - } - - case WM_SIZE: - { - if (_glfw.cursorWindow == window) - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - updateClipRect(window); - } - - if (!window->win32.iconified && wParam == SIZE_MINIMIZED) - { - window->win32.iconified = GL_TRUE; - if (window->monitor) - leaveFullscreenMode(window); - - _glfwInputWindowIconify(window, GL_TRUE); - } - else if (window->win32.iconified && - (wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED)) - { - window->win32.iconified = GL_FALSE; - if (window->monitor) - enterFullscreenMode(window); - - _glfwInputWindowIconify(window, GL_FALSE); - } - - _glfwInputFramebufferSize(window, LOWORD(lParam), HIWORD(lParam)); - _glfwInputWindowSize(window, LOWORD(lParam), HIWORD(lParam)); - return 0; - } - - case WM_MOVE: - { - if (_glfw.cursorWindow == window) - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - updateClipRect(window); - } - - // NOTE: This cannot use LOWORD/HIWORD recommended by MSDN, as - // those macros do not handle negative window positions correctly - _glfwInputWindowPos(window, - GET_X_LPARAM(lParam), - GET_Y_LPARAM(lParam)); - return 0; - } - - case WM_PAINT: - { - _glfwInputWindowDamage(window); - break; - } - - case WM_ERASEBKGND: - { - return TRUE; - } - - case WM_SETCURSOR: - { - if (_glfw.cursorWindow == window && LOWORD(lParam) == HTCLIENT) - { - if (window->cursorMode == GLFW_CURSOR_HIDDEN || - window->cursorMode == GLFW_CURSOR_DISABLED) - { - SetCursor(NULL); - return TRUE; - } - else if (window->cursor) - { - SetCursor(window->cursor->win32.handle); - return TRUE; - } - } - - break; - } - - case WM_DEVICECHANGE: - { - if (DBT_DEVNODES_CHANGED == wParam) - { - _glfwInputMonitorChange(); - return TRUE; - } - break; - } - - case WM_DROPFILES: - { - HDROP drop = (HDROP) wParam; - POINT pt; - int i; - - const int count = DragQueryFileW(drop, 0xffffffff, NULL, 0); - char** paths = calloc(count, sizeof(char*)); - - // Move the mouse to the position of the drop - DragQueryPoint(drop, &pt); - _glfwInputCursorMotion(window, pt.x, pt.y); - - for (i = 0; i < count; i++) - { - const UINT length = DragQueryFileW(drop, i, NULL, 0); - WCHAR* buffer = calloc(length + 1, sizeof(WCHAR)); - - DragQueryFileW(drop, i, buffer, length + 1); - paths[i] = _glfwCreateUTF8FromWideString(buffer); - - free(buffer); - } - - _glfwInputDrop(window, count, (const char**) paths); - - for (i = 0; i < count; i++) - free(paths[i]); - free(paths); - - DragFinish(drop); - return 0; - } - } - - return DefWindowProc(hWnd, uMsg, wParam, lParam); -} - -// Translate client window size to full window size (including window borders) -// -static void getFullWindowSize(_GLFWwindow* window, - int clientWidth, int clientHeight, - int* fullWidth, int* fullHeight) -{ - RECT rect = { 0, 0, clientWidth, clientHeight }; - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - *fullWidth = rect.right - rect.left; - *fullHeight = rect.bottom - rect.top; -} - -// Creates the GLFW window and rendering context -// -static int createWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - int xpos, ypos, fullWidth, fullHeight; - WCHAR* wideTitle; - - if (wndconfig->monitor) - { - GLFWvidmode mode; - - // NOTE: This window placement is temporary and approximate, as the - // correct position and size cannot be known until the monitor - // video mode has been set - _glfwPlatformGetMonitorPos(wndconfig->monitor, &xpos, &ypos); - _glfwPlatformGetVideoMode(wndconfig->monitor, &mode); - fullWidth = mode.width; - fullHeight = mode.height; - } - else - { - xpos = CW_USEDEFAULT; - ypos = CW_USEDEFAULT; - - getFullWindowSize(window, - wndconfig->width, wndconfig->height, - &fullWidth, &fullHeight); - } - - wideTitle = _glfwCreateWideStringFromUTF8(wndconfig->title); - if (!wideTitle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert window title to UTF-16"); - return GL_FALSE; - } - - window->win32.handle = CreateWindowExW(getWindowExStyle(window), - _GLFW_WNDCLASSNAME, - wideTitle, - getWindowStyle(window), - xpos, ypos, - fullWidth, fullHeight, - NULL, // No parent window - NULL, // No window menu - GetModuleHandleW(NULL), - window); // Pass object to WM_CREATE - - free(wideTitle); - - if (!window->win32.handle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to create window"); - return GL_FALSE; - } - - if (_glfw_ChangeWindowMessageFilterEx) - { - _glfw_ChangeWindowMessageFilterEx(window->win32.handle, - WM_DROPFILES, MSGFLT_ALLOW, NULL); - _glfw_ChangeWindowMessageFilterEx(window->win32.handle, - WM_COPYDATA, MSGFLT_ALLOW, NULL); - _glfw_ChangeWindowMessageFilterEx(window->win32.handle, - WM_COPYGLOBALDATA, MSGFLT_ALLOW, NULL); - } - - if (wndconfig->floating && !wndconfig->monitor) - { - SetWindowPos(window->win32.handle, - HWND_TOPMOST, - 0, 0, 0, 0, - SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); - } - - DragAcceptFiles(window->win32.handle, TRUE); - - if (!_glfwCreateContext(window, ctxconfig, fbconfig)) - return GL_FALSE; - - return GL_TRUE; -} - -// Destroys the GLFW window and rendering context -// -static void destroyWindow(_GLFWwindow* window) -{ - _glfwDestroyContext(window); - - if (window->win32.handle) - { - DestroyWindow(window->win32.handle); - window->win32.handle = NULL; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Registers the GLFW window class -// -GLboolean _glfwRegisterWindowClass(void) -{ - WNDCLASSW wc; - - wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; - wc.lpfnWndProc = (WNDPROC) windowProc; - wc.cbClsExtra = 0; // No extra class data - wc.cbWndExtra = sizeof(void*) + sizeof(int); // Make room for one pointer - wc.hInstance = GetModuleHandleW(NULL); - wc.hCursor = LoadCursorW(NULL, IDC_ARROW); - wc.hbrBackground = NULL; // No background - wc.lpszMenuName = NULL; // No menu - wc.lpszClassName = _GLFW_WNDCLASSNAME; - - // Load user-provided icon if available - wc.hIcon = LoadIconW(GetModuleHandleW(NULL), L"GLFW_ICON"); - if (!wc.hIcon) - { - // No user-provided icon found, load default icon - wc.hIcon = LoadIconW(NULL, IDI_WINLOGO); - } - - if (!RegisterClassW(&wc)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to register window class"); - return GL_FALSE; - } - - return GL_TRUE; -} - -// Unregisters the GLFW window class -// -void _glfwUnregisterWindowClass(void) -{ - UnregisterClassW(_GLFW_WNDCLASSNAME, GetModuleHandleW(NULL)); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - int status; - - if (!createWindow(window, wndconfig, ctxconfig, fbconfig)) - return GL_FALSE; - - status = _glfwAnalyzeContext(window, ctxconfig, fbconfig); - - if (status == _GLFW_RECREATION_IMPOSSIBLE) - return GL_FALSE; - - if (status == _GLFW_RECREATION_REQUIRED) - { - // Some window hints require us to re-create the context using WGL - // extensions retrieved through the current context, as we cannot check - // for WGL extensions or retrieve WGL entry points before we have a - // current context (actually until we have implicitly loaded the ICD) - - // Yes, this is strange, and yes, this is the proper way on Win32 - - // As Windows only allows you to set the pixel format once for a - // window, we need to destroy the current window and create a new one - // to be able to use the new pixel format - - // Technically, it may be possible to keep the old window around if - // we're just creating an OpenGL 3.0+ context with the same pixel - // format, but it's not worth the added code complexity - - // First we clear the current context (the one we just created) - // This is usually done by glfwDestroyWindow, but as we're not doing - // full GLFW window destruction, it's duplicated here - _glfwPlatformMakeContextCurrent(NULL); - - // Next destroy the Win32 window and WGL context (without resetting or - // destroying the GLFW window object) - destroyWindow(window); - - // ...and then create them again, this time with better APIs - if (!createWindow(window, wndconfig, ctxconfig, fbconfig)) - return GL_FALSE; - } - - if (window->monitor) - { - _glfwPlatformShowWindow(window); - if (!enterFullscreenMode(window)) - return GL_FALSE; - } - - return GL_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (window->monitor) - leaveFullscreenMode(window); - - destroyWindow(window); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - WCHAR* wideTitle = _glfwCreateWideStringFromUTF8(title); - if (!wideTitle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert window title to UTF-16"); - return; - } - - SetWindowTextW(window->win32.handle, wideTitle); - free(wideTitle); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - POINT pos = { 0, 0 }; - ClientToScreen(window->win32.handle, &pos); - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = pos.y; -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - RECT rect = { xpos, ypos, xpos, ypos }; - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, NULL, rect.left, rect.top, 0, 0, - SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSIZE); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - RECT area; - GetClientRect(window->win32.handle, &area); - - if (width) - *width = area.right; - if (height) - *height = area.bottom; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->monitor) - enterFullscreenMode(window); - else - { - int fullWidth, fullHeight; - getFullWindowSize(window, width, height, &fullWidth, &fullHeight); - - SetWindowPos(window->win32.handle, HWND_TOP, - 0, 0, fullWidth, fullHeight, - SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOZORDER); - } -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - _glfwPlatformGetWindowSize(window, width, height); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - RECT rect; - int width, height; - - _glfwPlatformGetWindowSize(window, &width, &height); - SetRect(&rect, 0, 0, width, height); - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - - if (left) - *left = -rect.left; - if (top) - *top = -rect.top; - if (right) - *right = rect.right - width; - if (bottom) - *bottom = rect.bottom - height; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_MINIMIZE); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_RESTORE); -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_SHOW); - BringWindowToTop(window->win32.handle); - SetForegroundWindow(window->win32.handle); - SetFocus(window->win32.handle); -} - -void _glfwPlatformUnhideWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_SHOW); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_HIDE); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return window->win32.handle == GetActiveWindow(); -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - return IsIconic(window->win32.handle); -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return IsWindowVisible(window->win32.handle); -} - -void _glfwPlatformPollEvents(void) -{ - MSG msg; - - while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) - { - if (msg.message == WM_QUIT) - { - // Treat WM_QUIT as a close on all windows - // While GLFW does not itself post WM_QUIT, other processes may post - // it to this one, for example Task Manager - - _GLFWwindow* window = _glfw.windowListHead; - while (window) - { - _glfwInputWindowCloseRequest(window); - window = window->next; - } - } - else - { - TranslateMessage(&msg); - DispatchMessageW(&msg); - } - } - - if (_glfw.cursorWindow) - { - _GLFWwindow* window = _glfw.cursorWindow; - - // LSHIFT/RSHIFT fixup (keys tend to "stick" without this fix) - // This is the only async event handling in GLFW, but it solves some - // nasty problems - { - const int mods = getAsyncKeyMods(); - - // Get current state of left and right shift keys - const int lshiftDown = (GetAsyncKeyState(VK_LSHIFT) >> 15) & 1; - const int rshiftDown = (GetAsyncKeyState(VK_RSHIFT) >> 15) & 1; - - // See if this differs from our belief of what has happened - // (we only have to check for lost key up events) - if (!lshiftDown && window->keys[GLFW_KEY_LEFT_SHIFT] == 1) - _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, 0, GLFW_RELEASE, mods); - - if (!rshiftDown && window->keys[GLFW_KEY_RIGHT_SHIFT] == 1) - _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, 0, GLFW_RELEASE, mods); - } - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - - // NOTE: Re-center the cursor only if it has moved since the last - // call, to avoid breaking glfwWaitEvents with WM_MOUSEMOVE - if (window->win32.cursorPosX != width / 2 || - window->win32.cursorPosY != height / 2) - { - _glfwPlatformSetCursorPos(window, width / 2, height / 2); - } - } - } -} - -void _glfwPlatformWaitEvents(void) -{ - WaitMessage(); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - _GLFWwindow* window = _glfw.windowListHead; - PostMessage(window->win32.handle, WM_NULL, 0, 0); -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - POINT pos; - - if (GetCursorPos(&pos)) - { - ScreenToClient(window->win32.handle, &pos); - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = pos.y; - } -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos) -{ - POINT pos = { (int) xpos, (int) ypos }; - - // Store the new position so it can be recognized later - window->win32.cursorPosX = pos.x; - window->win32.cursorPosY = pos.y; - - ClientToScreen(window->win32.handle, &pos); - SetCursorPos(pos.x, pos.y); -} - -void _glfwPlatformApplyCursorMode(_GLFWwindow* window) -{ - switch (window->cursorMode) - { - case GLFW_CURSOR_NORMAL: - restoreCursor(window); - break; - case GLFW_CURSOR_HIDDEN: - hideCursor(window); - break; - case GLFW_CURSOR_DISABLED: - disableCursor(window); - break; - } -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - HDC dc; - HBITMAP bitmap, mask; - BITMAPV5HEADER bi; - ICONINFO ii; - DWORD* target = 0; - BYTE* source = (BYTE*) image->pixels; - int i; - - ZeroMemory(&bi, sizeof(bi)); - bi.bV5Size = sizeof(BITMAPV5HEADER); - bi.bV5Width = image->width; - bi.bV5Height = -image->height; - bi.bV5Planes = 1; - bi.bV5BitCount = 32; - bi.bV5Compression = BI_BITFIELDS; - bi.bV5RedMask = 0x00ff0000; - bi.bV5GreenMask = 0x0000ff00; - bi.bV5BlueMask = 0x000000ff; - bi.bV5AlphaMask = 0xff000000; - - dc = GetDC(NULL); - bitmap = CreateDIBSection(dc, (BITMAPINFO*) &bi, DIB_RGB_COLORS, - (void**) &target, NULL, (DWORD) 0); - ReleaseDC(NULL, dc); - - if (!bitmap) - return GL_FALSE; - - mask = CreateBitmap(image->width, image->height, 1, 1, NULL); - if (!mask) - { - DeleteObject(bitmap); - return GL_FALSE; - } - - for (i = 0; i < image->width * image->height; i++, target++, source += 4) - { - *target = (source[3] << 24) | - (source[0] << 16) | - (source[1] << 8) | - source[2]; - } - - ZeroMemory(&ii, sizeof(ii)); - ii.fIcon = FALSE; - ii.xHotspot = xhot; - ii.yHotspot = yhot; - ii.hbmMask = mask; - ii.hbmColor = bitmap; - - cursor->win32.handle = (HCURSOR) CreateIconIndirect(&ii); - - DeleteObject(bitmap); - DeleteObject(mask); - - if (!cursor->win32.handle) - return GL_FALSE; - - return GL_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - cursor->win32.handle = - CopyCursor(LoadCursorW(NULL, translateCursorShape(shape))); - if (!cursor->win32.handle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to create standard cursor"); - return GL_FALSE; - } - - return GL_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->win32.handle) - DestroyIcon((HICON) cursor->win32.handle); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - POINT pos; - - if (_glfw.cursorWindow != window) - return; - - if (window->cursorMode != GLFW_CURSOR_NORMAL) - return; - - if (!GetCursorPos(&pos)) - return; - - if (WindowFromPoint(pos) != window->win32.handle) - return; - - if (cursor) - SetCursor(cursor->win32.handle); - else - SetCursor(LoadCursorW(NULL, IDC_ARROW)); -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - WCHAR* wideString; - HANDLE stringHandle; - size_t wideSize; - - wideString = _glfwCreateWideStringFromUTF8(string); - if (!wideString) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert string to UTF-16"); - return; - } - - wideSize = (wcslen(wideString) + 1) * sizeof(WCHAR); - - stringHandle = GlobalAlloc(GMEM_MOVEABLE, wideSize); - if (!stringHandle) - { - free(wideString); - - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to allocate global handle for clipboard"); - return; - } - - memcpy(GlobalLock(stringHandle), wideString, wideSize); - GlobalUnlock(stringHandle); - - if (!OpenClipboard(window->win32.handle)) - { - GlobalFree(stringHandle); - free(wideString); - - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to open clipboard"); - return; - } - - EmptyClipboard(); - SetClipboardData(CF_UNICODETEXT, stringHandle); - CloseClipboard(); - - free(wideString); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - HANDLE stringHandle; - - if (!OpenClipboard(window->win32.handle)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to open clipboard"); - return NULL; - } - - stringHandle = GetClipboardData(CF_UNICODETEXT); - if (!stringHandle) - { - CloseClipboard(); - - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "Win32: Failed to convert clipboard to string"); - return NULL; - } - - free(_glfw.win32.clipboardString); - _glfw.win32.clipboardString = - _glfwCreateUTF8FromWideString(GlobalLock(stringHandle)); - - GlobalUnlock(stringHandle); - CloseClipboard(); - - if (!_glfw.win32.clipboardString) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert wide string to UTF-8"); - return NULL; - } - - return _glfw.win32.clipboardString; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI HWND glfwGetWin32Window(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->win32.handle; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/window.c deleted file mode 100644 index b3ab45f..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/window.c +++ /dev/null @@ -1,707 +0,0 @@ -//======================================================================== -// GLFW 3.1 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// Copyright (c) 2012 Torsten Walluhn -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused) -{ - if (focused) - { - _glfw.cursorWindow = window; - - if (window->callbacks.focus) - window->callbacks.focus((GLFWwindow*) window, focused); - } - else - { - int i; - - _glfw.cursorWindow = NULL; - - if (window->callbacks.focus) - window->callbacks.focus((GLFWwindow*) window, focused); - - // Release all pressed keyboard keys - for (i = 0; i <= GLFW_KEY_LAST; i++) - { - if (window->keys[i] == GLFW_PRESS) - _glfwInputKey(window, i, 0, GLFW_RELEASE, 0); - } - - // Release all pressed mouse buttons - for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) - { - if (window->mouseButtons[i] == GLFW_PRESS) - _glfwInputMouseClick(window, i, GLFW_RELEASE, 0); - } - } -} - -void _glfwInputWindowPos(_GLFWwindow* window, int x, int y) -{ - if (window->callbacks.pos) - window->callbacks.pos((GLFWwindow*) window, x, y); -} - -void _glfwInputWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->callbacks.size) - window->callbacks.size((GLFWwindow*) window, width, height); -} - -void _glfwInputWindowIconify(_GLFWwindow* window, int iconified) -{ - if (window->callbacks.iconify) - window->callbacks.iconify((GLFWwindow*) window, iconified); -} - -void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height) -{ - if (window->callbacks.fbsize) - window->callbacks.fbsize((GLFWwindow*) window, width, height); -} - -void _glfwInputWindowDamage(_GLFWwindow* window) -{ - if (window->callbacks.refresh) - window->callbacks.refresh((GLFWwindow*) window); -} - -void _glfwInputWindowCloseRequest(_GLFWwindow* window) -{ - window->closed = GL_TRUE; - - if (window->callbacks.close) - window->callbacks.close((GLFWwindow*) window); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, - const char* title, - GLFWmonitor* monitor, - GLFWwindow* share) -{ - _GLFWfbconfig fbconfig; - _GLFWctxconfig ctxconfig; - _GLFWwndconfig wndconfig; - _GLFWwindow* window; - _GLFWwindow* previous; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (width <= 0 || height <= 0) - { - _glfwInputError(GLFW_INVALID_VALUE, "Invalid window size"); - return NULL; - } - - fbconfig = _glfw.hints.framebuffer; - ctxconfig = _glfw.hints.context; - wndconfig = _glfw.hints.window; - - wndconfig.width = width; - wndconfig.height = height; - wndconfig.title = title; - wndconfig.monitor = (_GLFWmonitor*) monitor; - ctxconfig.share = (_GLFWwindow*) share; - - if (wndconfig.monitor) - { - wndconfig.resizable = GL_TRUE; - wndconfig.visible = GL_TRUE; - wndconfig.focused = GL_TRUE; - } - - // Check the OpenGL bits of the window config - if (!_glfwIsValidContextConfig(&ctxconfig)) - return NULL; - - window = calloc(1, sizeof(_GLFWwindow)); - window->next = _glfw.windowListHead; - _glfw.windowListHead = window; - - window->videoMode.width = width; - window->videoMode.height = height; - window->videoMode.redBits = fbconfig.redBits; - window->videoMode.greenBits = fbconfig.greenBits; - window->videoMode.blueBits = fbconfig.blueBits; - window->videoMode.refreshRate = _glfw.hints.refreshRate; - - window->monitor = wndconfig.monitor; - window->resizable = wndconfig.resizable; - window->decorated = wndconfig.decorated; - window->autoIconify = wndconfig.autoIconify; - window->floating = wndconfig.floating; - window->cursorMode = GLFW_CURSOR_NORMAL; - - // Save the currently current context so it can be restored later - previous = _glfwPlatformGetCurrentContext(); - - // Open the actual window and create its context - if (!_glfwPlatformCreateWindow(window, &wndconfig, &ctxconfig, &fbconfig)) - { - glfwDestroyWindow((GLFWwindow*) window); - _glfwPlatformMakeContextCurrent(previous); - return NULL; - } - - _glfwPlatformMakeContextCurrent(window); - - // Retrieve the actual (as opposed to requested) context attributes - if (!_glfwRefreshContextAttribs(&ctxconfig)) - { - glfwDestroyWindow((GLFWwindow*) window); - _glfwPlatformMakeContextCurrent(previous); - return NULL; - } - - // Verify the context against the requested parameters - if (!_glfwIsValidContext(&ctxconfig)) - { - glfwDestroyWindow((GLFWwindow*) window); - _glfwPlatformMakeContextCurrent(previous); - return NULL; - } - - // Clearing the front buffer to black to avoid garbage pixels left over - // from previous uses of our bit of VRAM - window->Clear(GL_COLOR_BUFFER_BIT); - _glfwPlatformSwapBuffers(window); - - // Restore the previously current context (or NULL) - _glfwPlatformMakeContextCurrent(previous); - - if (wndconfig.monitor) - { - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - - window->cursorPosX = width / 2; - window->cursorPosY = height / 2; - - _glfwPlatformSetCursorPos(window, window->cursorPosX, window->cursorPosY); - } - else - { - if (wndconfig.visible) - { - if (wndconfig.focused) - _glfwPlatformShowWindow(window); - else - _glfwPlatformUnhideWindow(window); - } - } - - return (GLFWwindow*) window; -} - -void glfwDefaultWindowHints(void) -{ - _GLFW_REQUIRE_INIT(); - - memset(&_glfw.hints, 0, sizeof(_glfw.hints)); - - // The default is OpenGL with minimum version 1.0 - _glfw.hints.context.api = GLFW_OPENGL_API; - _glfw.hints.context.major = 1; - _glfw.hints.context.minor = 0; - - // The default is a focused, visible, resizable window with decorations - _glfw.hints.window.resizable = GL_TRUE; - _glfw.hints.window.visible = GL_TRUE; - _glfw.hints.window.decorated = GL_TRUE; - _glfw.hints.window.focused = GL_TRUE; - _glfw.hints.window.autoIconify = GL_TRUE; - - // The default is 24 bits of color, 24 bits of depth and 8 bits of stencil, - // double buffered - _glfw.hints.framebuffer.redBits = 8; - _glfw.hints.framebuffer.greenBits = 8; - _glfw.hints.framebuffer.blueBits = 8; - _glfw.hints.framebuffer.alphaBits = 8; - _glfw.hints.framebuffer.depthBits = 24; - _glfw.hints.framebuffer.stencilBits = 8; - _glfw.hints.framebuffer.doublebuffer = GL_TRUE; - - // The default is to select the highest available refresh rate - _glfw.hints.refreshRate = GLFW_DONT_CARE; -} - -GLFWAPI void glfwWindowHint(int target, int hint) -{ - _GLFW_REQUIRE_INIT(); - - switch (target) - { - case GLFW_RED_BITS: - _glfw.hints.framebuffer.redBits = hint; - break; - case GLFW_GREEN_BITS: - _glfw.hints.framebuffer.greenBits = hint; - break; - case GLFW_BLUE_BITS: - _glfw.hints.framebuffer.blueBits = hint; - break; - case GLFW_ALPHA_BITS: - _glfw.hints.framebuffer.alphaBits = hint; - break; - case GLFW_DEPTH_BITS: - _glfw.hints.framebuffer.depthBits = hint; - break; - case GLFW_STENCIL_BITS: - _glfw.hints.framebuffer.stencilBits = hint; - break; - case GLFW_ACCUM_RED_BITS: - _glfw.hints.framebuffer.accumRedBits = hint; - break; - case GLFW_ACCUM_GREEN_BITS: - _glfw.hints.framebuffer.accumGreenBits = hint; - break; - case GLFW_ACCUM_BLUE_BITS: - _glfw.hints.framebuffer.accumBlueBits = hint; - break; - case GLFW_ACCUM_ALPHA_BITS: - _glfw.hints.framebuffer.accumAlphaBits = hint; - break; - case GLFW_AUX_BUFFERS: - _glfw.hints.framebuffer.auxBuffers = hint; - break; - case GLFW_STEREO: - _glfw.hints.framebuffer.stereo = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_DOUBLEBUFFER: - _glfw.hints.framebuffer.doublebuffer = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_SAMPLES: - _glfw.hints.framebuffer.samples = hint; - break; - case GLFW_SRGB_CAPABLE: - _glfw.hints.framebuffer.sRGB = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_RESIZABLE: - _glfw.hints.window.resizable = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_DECORATED: - _glfw.hints.window.decorated = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_FOCUSED: - _glfw.hints.window.focused = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_AUTO_ICONIFY: - _glfw.hints.window.autoIconify = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_FLOATING: - _glfw.hints.window.floating = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_VISIBLE: - _glfw.hints.window.visible = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_CLIENT_API: - _glfw.hints.context.api = hint; - break; - case GLFW_CONTEXT_VERSION_MAJOR: - _glfw.hints.context.major = hint; - break; - case GLFW_CONTEXT_VERSION_MINOR: - _glfw.hints.context.minor = hint; - break; - case GLFW_CONTEXT_ROBUSTNESS: - _glfw.hints.context.robustness = hint; - break; - case GLFW_OPENGL_FORWARD_COMPAT: - _glfw.hints.context.forward = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_OPENGL_DEBUG_CONTEXT: - _glfw.hints.context.debug = hint ? GL_TRUE : GL_FALSE; - break; - case GLFW_OPENGL_PROFILE: - _glfw.hints.context.profile = hint; - break; - case GLFW_CONTEXT_RELEASE_BEHAVIOR: - _glfw.hints.context.release = hint; - break; - case GLFW_REFRESH_RATE: - _glfw.hints.refreshRate = hint; - break; - default: - _glfwInputError(GLFW_INVALID_ENUM, "Invalid window hint"); - break; - } -} - -GLFWAPI void glfwDestroyWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT(); - - // Allow closing of NULL (to match the behavior of free) - if (window == NULL) - return; - - // Clear all callbacks to avoid exposing a half torn-down window object - memset(&window->callbacks, 0, sizeof(window->callbacks)); - - // The window's context must not be current on another thread when the - // window is destroyed - if (window == _glfwPlatformGetCurrentContext()) - _glfwPlatformMakeContextCurrent(NULL); - - // Clear the focused window pointer if this is the focused window - if (_glfw.cursorWindow == window) - _glfw.cursorWindow = NULL; - - _glfwPlatformDestroyWindow(window); - - // Unlink window from global linked list - { - _GLFWwindow** prev = &_glfw.windowListHead; - - while (*prev != window) - prev = &((*prev)->next); - - *prev = window->next; - } - - free(window); -} - -GLFWAPI int glfwWindowShouldClose(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(0); - return window->closed; -} - -GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* handle, int value) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - window->closed = value; -} - -GLFWAPI void glfwSetWindowTitle(GLFWwindow* handle, const char* title) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - _glfwPlatformSetWindowTitle(window, title); -} - -GLFWAPI void glfwGetWindowPos(GLFWwindow* handle, int* xpos, int* ypos) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; - - _GLFW_REQUIRE_INIT(); - _glfwPlatformGetWindowPos(window, xpos, ypos); -} - -GLFWAPI void glfwSetWindowPos(GLFWwindow* handle, int xpos, int ypos) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT(); - - if (window->monitor) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Full screen windows cannot be moved"); - return; - } - - _glfwPlatformSetWindowPos(window, xpos, ypos); -} - -GLFWAPI void glfwGetWindowSize(GLFWwindow* handle, int* width, int* height) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - if (width) - *width = 0; - if (height) - *height = 0; - - _GLFW_REQUIRE_INIT(); - _glfwPlatformGetWindowSize(window, width, height); -} - -GLFWAPI void glfwSetWindowSize(GLFWwindow* handle, int width, int height) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT(); - - if (window->monitor) - { - window->videoMode.width = width; - window->videoMode.height = height; - } - - _glfwPlatformSetWindowSize(window, width, height); -} - -GLFWAPI void glfwGetFramebufferSize(GLFWwindow* handle, int* width, int* height) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - if (width) - *width = 0; - if (height) - *height = 0; - - _GLFW_REQUIRE_INIT(); - _glfwPlatformGetFramebufferSize(window, width, height); -} - -GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* handle, - int* left, int* top, - int* right, int* bottom) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - if (left) - *left = 0; - if (top) - *top = 0; - if (right) - *right = 0; - if (bottom) - *bottom = 0; - - _GLFW_REQUIRE_INIT(); - _glfwPlatformGetWindowFrameSize(window, left, top, right, bottom); -} - -GLFWAPI void glfwIconifyWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - _glfwPlatformIconifyWindow(window); -} - -GLFWAPI void glfwRestoreWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - _glfwPlatformRestoreWindow(window); -} - -GLFWAPI void glfwShowWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT(); - - if (window->monitor) - return; - - _glfwPlatformShowWindow(window); -} - -GLFWAPI void glfwHideWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT(); - - if (window->monitor) - return; - - _glfwPlatformHideWindow(window); -} - -GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT_OR_RETURN(0); - - switch (attrib) - { - case GLFW_FOCUSED: - return _glfwPlatformWindowFocused(window); - case GLFW_ICONIFIED: - return _glfwPlatformWindowIconified(window); - case GLFW_VISIBLE: - return _glfwPlatformWindowVisible(window); - case GLFW_RESIZABLE: - return window->resizable; - case GLFW_DECORATED: - return window->decorated; - case GLFW_FLOATING: - return window->floating; - case GLFW_CLIENT_API: - return window->context.api; - case GLFW_CONTEXT_VERSION_MAJOR: - return window->context.major; - case GLFW_CONTEXT_VERSION_MINOR: - return window->context.minor; - case GLFW_CONTEXT_REVISION: - return window->context.revision; - case GLFW_CONTEXT_ROBUSTNESS: - return window->context.robustness; - case GLFW_OPENGL_FORWARD_COMPAT: - return window->context.forward; - case GLFW_OPENGL_DEBUG_CONTEXT: - return window->context.debug; - case GLFW_OPENGL_PROFILE: - return window->context.profile; - case GLFW_CONTEXT_RELEASE_BEHAVIOR: - return window->context.release; - } - - _glfwInputError(GLFW_INVALID_ENUM, "Invalid window attribute"); - return 0; -} - -GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return (GLFWmonitor*) window->monitor; -} - -GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* handle, void* pointer) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - window->userPointer = pointer; -} - -GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->userPointer; -} - -GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* handle, - GLFWwindowposfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.pos, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* handle, - GLFWwindowsizefun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.size, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* handle, - GLFWwindowclosefun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.close, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* handle, - GLFWwindowrefreshfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.refresh, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* handle, - GLFWwindowfocusfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.focus, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* handle, - GLFWwindowiconifyfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.iconify, cbfun); - return cbfun; -} - -GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* handle, - GLFWframebuffersizefun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.fbsize, cbfun); - return cbfun; -} - -GLFWAPI void glfwPollEvents(void) -{ - _GLFW_REQUIRE_INIT(); - _glfwPlatformPollEvents(); -} - -GLFWAPI void glfwWaitEvents(void) -{ - _GLFW_REQUIRE_INIT(); - - if (!_glfw.windowListHead) - return; - - _glfwPlatformWaitEvents(); -} - -GLFWAPI void glfwPostEmptyEvent(void) -{ - _GLFW_REQUIRE_INIT(); - - if (!_glfw.windowListHead) - return; - - _glfwPlatformPostEmptyEvent(); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/winmm_joystick.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/winmm_joystick.c deleted file mode 100644 index fcf6d94..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/winmm_joystick.c +++ /dev/null @@ -1,177 +0,0 @@ -//======================================================================== -// GLFW 3.1 WinMM - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Convert axis value to the [-1,1] range -// -static float normalizeAxis(DWORD pos, DWORD min, DWORD max) -{ - float fpos = (float) pos; - float fmin = (float) min; - float fmax = (float) max; - - return (2.f * (fpos - fmin) / (fmax - fmin)) - 1.f; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize joystick interface -// -void _glfwInitJoysticks(void) -{ -} - -// Close all opened joystick handles -// -void _glfwTerminateJoysticks(void) -{ - int i; - - for (i = 0; i < GLFW_JOYSTICK_LAST; i++) - free(_glfw.winmm_js[i].name); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformJoystickPresent(int joy) -{ - JOYINFO ji; - - if (_glfw_joyGetPos(joy, &ji) != JOYERR_NOERROR) - return GL_FALSE; - - return GL_TRUE; -} - -const float* _glfwPlatformGetJoystickAxes(int joy, int* count) -{ - JOYCAPS jc; - JOYINFOEX ji; - float* axes = _glfw.winmm_js[joy].axes; - - if (_glfw_joyGetDevCaps(joy, &jc, sizeof(JOYCAPS)) != JOYERR_NOERROR) - return NULL; - - ji.dwSize = sizeof(JOYINFOEX); - ji.dwFlags = JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | - JOY_RETURNR | JOY_RETURNU | JOY_RETURNV; - if (_glfw_joyGetPosEx(joy, &ji) != JOYERR_NOERROR) - return NULL; - - axes[(*count)++] = normalizeAxis(ji.dwXpos, jc.wXmin, jc.wXmax); - axes[(*count)++] = normalizeAxis(ji.dwYpos, jc.wYmin, jc.wYmax); - - if (jc.wCaps & JOYCAPS_HASZ) - axes[(*count)++] = normalizeAxis(ji.dwZpos, jc.wZmin, jc.wZmax); - - if (jc.wCaps & JOYCAPS_HASR) - axes[(*count)++] = normalizeAxis(ji.dwRpos, jc.wRmin, jc.wRmax); - - if (jc.wCaps & JOYCAPS_HASU) - axes[(*count)++] = normalizeAxis(ji.dwUpos, jc.wUmin, jc.wUmax); - - if (jc.wCaps & JOYCAPS_HASV) - axes[(*count)++] = normalizeAxis(ji.dwVpos, jc.wVmin, jc.wVmax); - - return axes; -} - -const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count) -{ - JOYCAPS jc; - JOYINFOEX ji; - unsigned char* buttons = _glfw.winmm_js[joy].buttons; - - if (_glfw_joyGetDevCaps(joy, &jc, sizeof(JOYCAPS)) != JOYERR_NOERROR) - return NULL; - - ji.dwSize = sizeof(JOYINFOEX); - ji.dwFlags = JOY_RETURNBUTTONS | JOY_RETURNPOV; - if (_glfw_joyGetPosEx(joy, &ji) != JOYERR_NOERROR) - return NULL; - - while (*count < (int) jc.wNumButtons) - { - buttons[*count] = (unsigned char) - (ji.dwButtons & (1UL << *count) ? GLFW_PRESS : GLFW_RELEASE); - (*count)++; - } - - // Virtual buttons - Inject data from hats - // Each hat is exposed as 4 buttons which exposes 8 directions with - // concurrent button presses - // NOTE: this API exposes only one hat - - if ((jc.wCaps & JOYCAPS_HASPOV) && (jc.wCaps & JOYCAPS_POV4DIR)) - { - int i, value = ji.dwPOV / 100 / 45; - - // Bit fields of button presses for each direction, including nil - const int directions[9] = { 1, 3, 2, 6, 4, 12, 8, 9, 0 }; - - if (value < 0 || value > 8) - value = 8; - - for (i = 0; i < 4; i++) - { - if (directions[value] & (1 << i)) - buttons[(*count)++] = GLFW_PRESS; - else - buttons[(*count)++] = GLFW_RELEASE; - } - } - - return buttons; -} - -const char* _glfwPlatformGetJoystickName(int joy) -{ - JOYCAPS jc; - - if (_glfw_joyGetDevCaps(joy, &jc, sizeof(JOYCAPS)) != JOYERR_NOERROR) - return NULL; - - free(_glfw.winmm_js[joy].name); - _glfw.winmm_js[joy].name = _glfwCreateUTF8FromWideString(jc.szPname); - - return _glfw.winmm_js[joy].name; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/winmm_joystick.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/winmm_joystick.h deleted file mode 100644 index 74ea3ef..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/winmm_joystick.h +++ /dev/null @@ -1,47 +0,0 @@ -//======================================================================== -// GLFW 3.1 WinMM - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2006-2014 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_winmm_joystick_h_ -#define _glfw3_winmm_joystick_h_ - -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE \ - _GLFWjoystickWinMM winmm_js[GLFW_JOYSTICK_LAST + 1] - - -// WinMM-specific per-joystick data -// -typedef struct _GLFWjoystickWinMM -{ - float axes[6]; - unsigned char buttons[36]; // 32 buttons plus one hat - char* name; -} _GLFWjoystickWinMM; - - -void _glfwInitJoysticks(void); -void _glfwTerminateJoysticks(void); - -#endif // _glfw3_winmm_joystick_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_init.c deleted file mode 100644 index ea621f9..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_init.c +++ /dev/null @@ -1,637 +0,0 @@ -//======================================================================== -// GLFW 3.1 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include -#include -#include -#include -#include - - -static void pointerHandleEnter(void* data, - struct wl_pointer* pointer, - uint32_t serial, - struct wl_surface* surface, - wl_fixed_t sx, - wl_fixed_t sy) -{ - _GLFWwindow* window = wl_surface_get_user_data(surface); - - _glfw.wl.pointerSerial = serial; - _glfw.wl.pointerFocus = window; - - _glfwPlatformSetCursor(window, window->wl.currentCursor); - _glfwInputCursorEnter(window, GL_TRUE); -} - -static void pointerHandleLeave(void* data, - struct wl_pointer* pointer, - uint32_t serial, - struct wl_surface* surface) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - - if (!window) - return; - - _glfw.wl.pointerSerial = serial; - _glfw.wl.pointerFocus = NULL; - _glfwInputCursorEnter(window, GL_FALSE); -} - -static void pointerHandleMotion(void* data, - struct wl_pointer* pointer, - uint32_t time, - wl_fixed_t sx, - wl_fixed_t sy) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - - if (!window) - return; - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - /* TODO */ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: GLFW_CURSOR_DISABLED not supported"); - return; - } - else - { - window->wl.cursorPosX = wl_fixed_to_double(sx); - window->wl.cursorPosY = wl_fixed_to_double(sy); - } - - _glfwInputCursorMotion(window, - wl_fixed_to_double(sx), - wl_fixed_to_double(sy)); -} - -static void pointerHandleButton(void* data, - struct wl_pointer* wl_pointer, - uint32_t serial, - uint32_t time, - uint32_t button, - uint32_t state) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - int glfwButton; - - if (!window) - return; - - /* Makes left, right and middle 0, 1 and 2. Overall order follows evdev - * codes. */ - glfwButton = button - BTN_LEFT; - - _glfwInputMouseClick(window, - glfwButton, - state == WL_POINTER_BUTTON_STATE_PRESSED - ? GLFW_PRESS - : GLFW_RELEASE, - _glfw.wl.xkb.modifiers); -} - -static void pointerHandleAxis(void* data, - struct wl_pointer* wl_pointer, - uint32_t time, - uint32_t axis, - wl_fixed_t value) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - double scroll_factor; - double x, y; - - if (!window) - return; - - /* Wayland scroll events are in pointer motion coordinate space (think - * two finger scroll). The factor 10 is commonly used to convert to - * "scroll step means 1.0. */ - scroll_factor = 1.0/10.0; - - switch (axis) - { - case WL_POINTER_AXIS_HORIZONTAL_SCROLL: - x = wl_fixed_to_double(value) * scroll_factor; - y = 0.0; - break; - case WL_POINTER_AXIS_VERTICAL_SCROLL: - x = 0.0; - y = wl_fixed_to_double(value) * scroll_factor; - break; - default: - break; - } - - _glfwInputScroll(window, x, y); -} - -static const struct wl_pointer_listener pointerListener = { - pointerHandleEnter, - pointerHandleLeave, - pointerHandleMotion, - pointerHandleButton, - pointerHandleAxis, -}; - -static void keyboardHandleKeymap(void* data, - struct wl_keyboard* keyboard, - uint32_t format, - int fd, - uint32_t size) -{ - struct xkb_keymap* keymap; - struct xkb_state* state; - char* mapStr; - - if (format != WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1) - { - close(fd); - return; - } - - mapStr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); - if (mapStr == MAP_FAILED) { - close(fd); - return; - } - - keymap = xkb_map_new_from_string(_glfw.wl.xkb.context, - mapStr, - XKB_KEYMAP_FORMAT_TEXT_V1, - 0); - munmap(mapStr, size); - close(fd); - - if (!keymap) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to compile keymap"); - return; - } - - state = xkb_state_new(keymap); - if (!state) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to create XKB state"); - xkb_map_unref(keymap); - return; - } - - xkb_keymap_unref(_glfw.wl.xkb.keymap); - xkb_state_unref(_glfw.wl.xkb.state); - _glfw.wl.xkb.keymap = keymap; - _glfw.wl.xkb.state = state; - - _glfw.wl.xkb.control_mask = - 1 << xkb_map_mod_get_index(_glfw.wl.xkb.keymap, "Control"); - _glfw.wl.xkb.alt_mask = - 1 << xkb_map_mod_get_index(_glfw.wl.xkb.keymap, "Mod1"); - _glfw.wl.xkb.shift_mask = - 1 << xkb_map_mod_get_index(_glfw.wl.xkb.keymap, "Shift"); - _glfw.wl.xkb.super_mask = - 1 << xkb_map_mod_get_index(_glfw.wl.xkb.keymap, "Mod4"); -} - -static void keyboardHandleEnter(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - struct wl_surface* surface, - struct wl_array* keys) -{ - _GLFWwindow* window = wl_surface_get_user_data(surface); - - _glfw.wl.keyboardFocus = window; - _glfwInputWindowFocus(window, GL_TRUE); -} - -static void keyboardHandleLeave(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - struct wl_surface* surface) -{ - _GLFWwindow* window = _glfw.wl.keyboardFocus; - - if (!window) - return; - - _glfw.wl.keyboardFocus = NULL; - _glfwInputWindowFocus(window, GL_FALSE); -} - -static int toGLFWKeyCode(uint32_t key) -{ - switch (key) - { - case KEY_GRAVE: return GLFW_KEY_GRAVE_ACCENT; - case KEY_1: return GLFW_KEY_1; - case KEY_2: return GLFW_KEY_2; - case KEY_3: return GLFW_KEY_3; - case KEY_4: return GLFW_KEY_4; - case KEY_5: return GLFW_KEY_5; - case KEY_6: return GLFW_KEY_6; - case KEY_7: return GLFW_KEY_7; - case KEY_8: return GLFW_KEY_8; - case KEY_9: return GLFW_KEY_9; - case KEY_0: return GLFW_KEY_0; - case KEY_MINUS: return GLFW_KEY_MINUS; - case KEY_EQUAL: return GLFW_KEY_EQUAL; - case KEY_Q: return GLFW_KEY_Q; - case KEY_W: return GLFW_KEY_W; - case KEY_E: return GLFW_KEY_E; - case KEY_R: return GLFW_KEY_R; - case KEY_T: return GLFW_KEY_T; - case KEY_Y: return GLFW_KEY_Y; - case KEY_U: return GLFW_KEY_U; - case KEY_I: return GLFW_KEY_I; - case KEY_O: return GLFW_KEY_O; - case KEY_P: return GLFW_KEY_P; - case KEY_LEFTBRACE: return GLFW_KEY_LEFT_BRACKET; - case KEY_RIGHTBRACE: return GLFW_KEY_RIGHT_BRACKET; - case KEY_A: return GLFW_KEY_A; - case KEY_S: return GLFW_KEY_S; - case KEY_D: return GLFW_KEY_D; - case KEY_F: return GLFW_KEY_F; - case KEY_G: return GLFW_KEY_G; - case KEY_H: return GLFW_KEY_H; - case KEY_J: return GLFW_KEY_J; - case KEY_K: return GLFW_KEY_K; - case KEY_L: return GLFW_KEY_L; - case KEY_SEMICOLON: return GLFW_KEY_SEMICOLON; - case KEY_APOSTROPHE: return GLFW_KEY_APOSTROPHE; - case KEY_Z: return GLFW_KEY_Z; - case KEY_X: return GLFW_KEY_X; - case KEY_C: return GLFW_KEY_C; - case KEY_V: return GLFW_KEY_V; - case KEY_B: return GLFW_KEY_B; - case KEY_N: return GLFW_KEY_N; - case KEY_M: return GLFW_KEY_M; - case KEY_COMMA: return GLFW_KEY_COMMA; - case KEY_DOT: return GLFW_KEY_PERIOD; - case KEY_SLASH: return GLFW_KEY_SLASH; - case KEY_BACKSLASH: return GLFW_KEY_BACKSLASH; - case KEY_ESC: return GLFW_KEY_ESCAPE; - case KEY_TAB: return GLFW_KEY_TAB; - case KEY_LEFTSHIFT: return GLFW_KEY_LEFT_SHIFT; - case KEY_RIGHTSHIFT: return GLFW_KEY_RIGHT_SHIFT; - case KEY_LEFTCTRL: return GLFW_KEY_LEFT_CONTROL; - case KEY_RIGHTCTRL: return GLFW_KEY_RIGHT_CONTROL; - case KEY_LEFTALT: return GLFW_KEY_LEFT_ALT; - case KEY_RIGHTALT: return GLFW_KEY_RIGHT_ALT; - case KEY_LEFTMETA: return GLFW_KEY_LEFT_SUPER; - case KEY_RIGHTMETA: return GLFW_KEY_RIGHT_SUPER; - case KEY_MENU: return GLFW_KEY_MENU; - case KEY_NUMLOCK: return GLFW_KEY_NUM_LOCK; - case KEY_CAPSLOCK: return GLFW_KEY_CAPS_LOCK; - case KEY_PRINT: return GLFW_KEY_PRINT_SCREEN; - case KEY_SCROLLLOCK: return GLFW_KEY_SCROLL_LOCK; - case KEY_PAUSE: return GLFW_KEY_PAUSE; - case KEY_DELETE: return GLFW_KEY_DELETE; - case KEY_BACKSPACE: return GLFW_KEY_BACKSPACE; - case KEY_ENTER: return GLFW_KEY_ENTER; - case KEY_HOME: return GLFW_KEY_HOME; - case KEY_END: return GLFW_KEY_END; - case KEY_PAGEUP: return GLFW_KEY_PAGE_UP; - case KEY_PAGEDOWN: return GLFW_KEY_PAGE_DOWN; - case KEY_INSERT: return GLFW_KEY_INSERT; - case KEY_LEFT: return GLFW_KEY_LEFT; - case KEY_RIGHT: return GLFW_KEY_RIGHT; - case KEY_DOWN: return GLFW_KEY_DOWN; - case KEY_UP: return GLFW_KEY_UP; - case KEY_F1: return GLFW_KEY_F1; - case KEY_F2: return GLFW_KEY_F2; - case KEY_F3: return GLFW_KEY_F3; - case KEY_F4: return GLFW_KEY_F4; - case KEY_F5: return GLFW_KEY_F5; - case KEY_F6: return GLFW_KEY_F6; - case KEY_F7: return GLFW_KEY_F7; - case KEY_F8: return GLFW_KEY_F8; - case KEY_F9: return GLFW_KEY_F9; - case KEY_F10: return GLFW_KEY_F10; - case KEY_F11: return GLFW_KEY_F11; - case KEY_F12: return GLFW_KEY_F12; - case KEY_F13: return GLFW_KEY_F13; - case KEY_F14: return GLFW_KEY_F14; - case KEY_F15: return GLFW_KEY_F15; - case KEY_F16: return GLFW_KEY_F16; - case KEY_F17: return GLFW_KEY_F17; - case KEY_F18: return GLFW_KEY_F18; - case KEY_F19: return GLFW_KEY_F19; - case KEY_F20: return GLFW_KEY_F20; - case KEY_F21: return GLFW_KEY_F21; - case KEY_F22: return GLFW_KEY_F22; - case KEY_F23: return GLFW_KEY_F23; - case KEY_F24: return GLFW_KEY_F24; - case KEY_KPSLASH: return GLFW_KEY_KP_DIVIDE; - case KEY_KPDOT: return GLFW_KEY_KP_MULTIPLY; - case KEY_KPMINUS: return GLFW_KEY_KP_SUBTRACT; - case KEY_KPPLUS: return GLFW_KEY_KP_ADD; - case KEY_KP0: return GLFW_KEY_KP_0; - case KEY_KP1: return GLFW_KEY_KP_1; - case KEY_KP2: return GLFW_KEY_KP_2; - case KEY_KP3: return GLFW_KEY_KP_3; - case KEY_KP4: return GLFW_KEY_KP_4; - case KEY_KP5: return GLFW_KEY_KP_5; - case KEY_KP6: return GLFW_KEY_KP_6; - case KEY_KP7: return GLFW_KEY_KP_7; - case KEY_KP8: return GLFW_KEY_KP_8; - case KEY_KP9: return GLFW_KEY_KP_9; - case KEY_KPCOMMA: return GLFW_KEY_KP_DECIMAL; - case KEY_KPEQUAL: return GLFW_KEY_KP_EQUAL; - case KEY_KPENTER: return GLFW_KEY_KP_ENTER; - default: return GLFW_KEY_UNKNOWN; - } -} - -static void keyboardHandleKey(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - uint32_t time, - uint32_t key, - uint32_t state) -{ - uint32_t code, num_syms; - long cp; - int keyCode; - int action; - const xkb_keysym_t *syms; - _GLFWwindow* window = _glfw.wl.keyboardFocus; - - if (!window) - return; - - keyCode = toGLFWKeyCode(key); - action = state == WL_KEYBOARD_KEY_STATE_PRESSED - ? GLFW_PRESS : GLFW_RELEASE; - - _glfwInputKey(window, keyCode, key, action, - _glfw.wl.xkb.modifiers); - - code = key + 8; - num_syms = xkb_key_get_syms(_glfw.wl.xkb.state, code, &syms); - - if (num_syms == 1) - { - cp = _glfwKeySym2Unicode(syms[0]); - if (cp != -1) - { - const int mods = _glfw.wl.xkb.modifiers; - const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); - _glfwInputChar(window, cp, mods, plain); - } - } -} - -static void keyboardHandleModifiers(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - uint32_t modsDepressed, - uint32_t modsLatched, - uint32_t modsLocked, - uint32_t group) -{ - xkb_mod_mask_t mask; - unsigned int modifiers = 0; - - if (!_glfw.wl.xkb.keymap) - return; - - xkb_state_update_mask(_glfw.wl.xkb.state, - modsDepressed, - modsLatched, - modsLocked, - 0, - 0, - group); - - mask = xkb_state_serialize_mods(_glfw.wl.xkb.state, - XKB_STATE_DEPRESSED | - XKB_STATE_LATCHED); - if (mask & _glfw.wl.xkb.control_mask) - modifiers |= GLFW_MOD_CONTROL; - if (mask & _glfw.wl.xkb.alt_mask) - modifiers |= GLFW_MOD_ALT; - if (mask & _glfw.wl.xkb.shift_mask) - modifiers |= GLFW_MOD_SHIFT; - if (mask & _glfw.wl.xkb.super_mask) - modifiers |= GLFW_MOD_SUPER; - _glfw.wl.xkb.modifiers = modifiers; -} - -static const struct wl_keyboard_listener keyboardListener = { - keyboardHandleKeymap, - keyboardHandleEnter, - keyboardHandleLeave, - keyboardHandleKey, - keyboardHandleModifiers, -}; - -static void seatHandleCapabilities(void* data, - struct wl_seat* seat, - enum wl_seat_capability caps) -{ - if ((caps & WL_SEAT_CAPABILITY_POINTER) && !_glfw.wl.pointer) - { - _glfw.wl.pointer = wl_seat_get_pointer(seat); - wl_pointer_add_listener(_glfw.wl.pointer, &pointerListener, NULL); - } - else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && _glfw.wl.pointer) - { - wl_pointer_destroy(_glfw.wl.pointer); - _glfw.wl.pointer = NULL; - } - - if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !_glfw.wl.keyboard) - { - _glfw.wl.keyboard = wl_seat_get_keyboard(seat); - wl_keyboard_add_listener(_glfw.wl.keyboard, &keyboardListener, NULL); - } - else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && _glfw.wl.keyboard) - { - wl_keyboard_destroy(_glfw.wl.keyboard); - _glfw.wl.keyboard = NULL; - } -} - -static const struct wl_seat_listener seatListener = { - seatHandleCapabilities -}; - -static void registryHandleGlobal(void* data, - struct wl_registry* registry, - uint32_t name, - const char* interface, - uint32_t version) -{ - if (strcmp(interface, "wl_compositor") == 0) - { - _glfw.wl.compositor = - wl_registry_bind(registry, name, &wl_compositor_interface, 1); - } - else if (strcmp(interface, "wl_shm") == 0) - { - _glfw.wl.shm = - wl_registry_bind(registry, name, &wl_shm_interface, 1); - } - else if (strcmp(interface, "wl_shell") == 0) - { - _glfw.wl.shell = - wl_registry_bind(registry, name, &wl_shell_interface, 1); - } - else if (strcmp(interface, "wl_output") == 0) - { - _glfwAddOutput(name, version); - } - else if (strcmp(interface, "wl_seat") == 0) - { - if (!_glfw.wl.seat) - { - _glfw.wl.seat = - wl_registry_bind(registry, name, &wl_seat_interface, 1); - wl_seat_add_listener(_glfw.wl.seat, &seatListener, NULL); - } - } -} - -static void registryHandleGlobalRemove(void *data, - struct wl_registry *registry, - uint32_t name) -{ -} - - -static const struct wl_registry_listener registryListener = { - registryHandleGlobal, - registryHandleGlobalRemove -}; - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - _glfw.wl.display = wl_display_connect(NULL); - if (!_glfw.wl.display) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to connect to display"); - return GL_FALSE; - } - - _glfw.wl.registry = wl_display_get_registry(_glfw.wl.display); - wl_registry_add_listener(_glfw.wl.registry, ®istryListener, NULL); - - _glfw.wl.monitors = calloc(4, sizeof(_GLFWmonitor*)); - _glfw.wl.monitorsSize = 4; - - _glfw.wl.xkb.context = xkb_context_new(0); - if (!_glfw.wl.xkb.context) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to initialize xkb context"); - return GL_FALSE; - } - - // Sync so we got all registry objects - wl_display_roundtrip(_glfw.wl.display); - - // Sync so we got all initial output events - wl_display_roundtrip(_glfw.wl.display); - - if (!_glfwInitContextAPI()) - return GL_FALSE; - - _glfwInitTimer(); - _glfwInitJoysticks(); - - if (_glfw.wl.pointer && _glfw.wl.shm) - { - _glfw.wl.cursorTheme = wl_cursor_theme_load(NULL, 32, _glfw.wl.shm); - if (!_glfw.wl.cursorTheme) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Unable to load default cursor theme\n"); - return GL_FALSE; - } - _glfw.wl.defaultCursor = - wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, "left_ptr"); - if (!_glfw.wl.defaultCursor) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Unable to load default left pointer\n"); - return GL_FALSE; - } - _glfw.wl.cursorSurface = - wl_compositor_create_surface(_glfw.wl.compositor); - } - - return GL_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - _glfwTerminateContextAPI(); - _glfwTerminateJoysticks(); - - if (_glfw.wl.cursorTheme) - wl_cursor_theme_destroy(_glfw.wl.cursorTheme); - if (_glfw.wl.cursorSurface) - wl_surface_destroy(_glfw.wl.cursorSurface); - if (_glfw.wl.registry) - wl_registry_destroy(_glfw.wl.registry); - if (_glfw.wl.display) - wl_display_flush(_glfw.wl.display); - if (_glfw.wl.display) - wl_display_disconnect(_glfw.wl.display); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Wayland EGL" -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif -#if defined(__linux__) - " /dev/js" -#endif -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_monitor.c deleted file mode 100644 index fbcefd3..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_monitor.c +++ /dev/null @@ -1,250 +0,0 @@ -//======================================================================== -// GLFW 3.1 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - - -struct _GLFWvidmodeWayland -{ - GLFWvidmode base; - uint32_t flags; -}; - -static void geometry(void* data, - struct wl_output* output, - int32_t x, - int32_t y, - int32_t physicalWidth, - int32_t physicalHeight, - int32_t subpixel, - const char* make, - const char* model, - int32_t transform) -{ - struct _GLFWmonitor *monitor = data; - - monitor->wl.x = x; - monitor->wl.y = y; - monitor->widthMM = physicalWidth; - monitor->heightMM = physicalHeight; -} - -static void mode(void* data, - struct wl_output* output, - uint32_t flags, - int32_t width, - int32_t height, - int32_t refresh) -{ - struct _GLFWmonitor *monitor = data; - _GLFWvidmodeWayland mode = { { 0 }, }; - - mode.base.width = width; - mode.base.height = height; - mode.base.refreshRate = refresh; - mode.flags = flags; - - if (monitor->wl.modesCount + 1 >= monitor->wl.modesSize) - { - int size = monitor->wl.modesSize * 2; - _GLFWvidmodeWayland* modes = - realloc(monitor->wl.modes, - size * sizeof(_GLFWvidmodeWayland)); - monitor->wl.modes = modes; - monitor->wl.modesSize = size; - } - - monitor->wl.modes[monitor->wl.modesCount++] = mode; -} - -static void done(void* data, - struct wl_output* output) -{ - struct _GLFWmonitor *monitor = data; - - monitor->wl.done = GL_TRUE; -} - -static void scale(void* data, - struct wl_output* output, - int32_t factor) -{ -} - -static const struct wl_output_listener output_listener = { - geometry, - mode, - done, - scale, -}; - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwAddOutput(uint32_t name, uint32_t version) -{ - _GLFWmonitor *monitor; - struct wl_output *output; - char name_str[80]; - - memset(name_str, 0, 80 * sizeof(char)); - snprintf(name_str, 79, "wl_output@%u", name); - - if (version < 2) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Unsupported output interface version"); - return; - } - - monitor = _glfwAllocMonitor(name_str, 0, 0); - - output = wl_registry_bind(_glfw.wl.registry, - name, - &wl_output_interface, - 2); - if (!output) - { - _glfwFreeMonitor(monitor); - return; - } - - monitor->wl.modes = calloc(4, sizeof(_GLFWvidmodeWayland)); - monitor->wl.modesSize = 4; - - monitor->wl.output = output; - wl_output_add_listener(output, &output_listener, monitor); - - if (_glfw.wl.monitorsCount + 1 >= _glfw.wl.monitorsSize) - { - _GLFWmonitor** monitors = _glfw.wl.monitors; - int size = _glfw.wl.monitorsSize * 2; - - monitors = realloc(monitors, size * sizeof(_GLFWmonitor*)); - - _glfw.wl.monitors = monitors; - _glfw.wl.monitorsSize = size; - } - - _glfw.wl.monitors[_glfw.wl.monitorsCount++] = monitor; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - _GLFWmonitor** monitors; - _GLFWmonitor* monitor; - int i, monitorsCount = _glfw.wl.monitorsCount; - - if (_glfw.wl.monitorsCount == 0) - goto err; - - monitors = calloc(monitorsCount, sizeof(_GLFWmonitor*)); - - for (i = 0; i < monitorsCount; i++) - { - _GLFWmonitor* origMonitor = _glfw.wl.monitors[i]; - monitor = calloc(1, sizeof(_GLFWmonitor)); - - monitor->modes = - _glfwPlatformGetVideoModes(origMonitor, - &origMonitor->wl.modesCount); - *monitor = *_glfw.wl.monitors[i]; - monitors[i] = monitor; - } - - *count = monitorsCount; - return monitors; - -err: - *count = 0; - return NULL; -} - -GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - return first->wl.output == second->wl.output; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (xpos) - *xpos = monitor->wl.x; - if (ypos) - *ypos = monitor->wl.y; -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) -{ - GLFWvidmode *modes; - int i, modesCount = monitor->wl.modesCount; - - modes = calloc(modesCount, sizeof(GLFWvidmode)); - - for (i = 0; i < modesCount; i++) - modes[i] = monitor->wl.modes[i].base; - - *found = modesCount; - return modes; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - int i; - - for (i = 0; i < monitor->wl.modesCount; i++) - { - if (monitor->wl.modes[i].flags & WL_OUTPUT_MODE_CURRENT) - { - *mode = monitor->wl.modes[i].base; - return; - } - } -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - // TODO - fprintf(stderr, "_glfwPlatformGetGammaRamp not implemented yet\n"); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - // TODO - fprintf(stderr, "_glfwPlatformSetGammaRamp not implemented yet\n"); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_platform.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_platform.h deleted file mode 100644 index dfc29c3..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_platform.h +++ /dev/null @@ -1,141 +0,0 @@ -//======================================================================== -// GLFW 3.1 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_wayland_platform_h_ -#define _glfw3_wayland_platform_h_ - -#include -#include - -#include "posix_tls.h" -#include "posix_time.h" -#include "linux_joystick.h" -#include "xkb_unicode.h" - -#if defined(_GLFW_EGL) - #include "egl_context.h" -#else - #error "The Wayland backend depends on EGL platform support" -#endif - -#define _GLFW_EGL_NATIVE_WINDOW window->wl.native -#define _GLFW_EGL_NATIVE_DISPLAY _glfw.wl.display - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWayland wl -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWayland wl -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWayland wl - - -// Wayland-specific video mode data -// -typedef struct _GLFWvidmodeWayland _GLFWvidmodeWayland; - - -// Wayland-specific per-window data -// -typedef struct _GLFWwindowWayland -{ - int width, height; - GLboolean visible; - struct wl_surface* surface; - struct wl_egl_window* native; - struct wl_shell_surface* shell_surface; - struct wl_callback* callback; - _GLFWcursor* currentCursor; - double cursorPosX, cursorPosY; -} _GLFWwindowWayland; - - -// Wayland-specific global data -// -typedef struct _GLFWlibraryWayland -{ - struct wl_display* display; - struct wl_registry* registry; - struct wl_compositor* compositor; - struct wl_shell* shell; - struct wl_shm* shm; - struct wl_seat* seat; - struct wl_pointer* pointer; - struct wl_keyboard* keyboard; - - struct wl_cursor_theme* cursorTheme; - struct wl_cursor* defaultCursor; - struct wl_surface* cursorSurface; - uint32_t pointerSerial; - - _GLFWmonitor** monitors; - int monitorsCount; - int monitorsSize; - - struct { - struct xkb_context* context; - struct xkb_keymap* keymap; - struct xkb_state* state; - xkb_mod_mask_t control_mask; - xkb_mod_mask_t alt_mask; - xkb_mod_mask_t shift_mask; - xkb_mod_mask_t super_mask; - unsigned int modifiers; - } xkb; - - _GLFWwindow* pointerFocus; - _GLFWwindow* keyboardFocus; - -} _GLFWlibraryWayland; - - -// Wayland-specific per-monitor data -// -typedef struct _GLFWmonitorWayland -{ - struct wl_output* output; - - _GLFWvidmodeWayland* modes; - int modesCount; - int modesSize; - GLboolean done; - - int x; - int y; - -} _GLFWmonitorWayland; - - -// Wayland-specific per-cursor data -// -typedef struct _GLFWcursorWayland -{ - struct wl_buffer* buffer; - int width, height; - int xhot, yhot; -} _GLFWcursorWayland; - - -void _glfwAddOutput(uint32_t name, uint32_t version); - -#endif // _glfw3_wayland_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_window.c deleted file mode 100644 index 4f7ffab..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/wl_window.c +++ /dev/null @@ -1,531 +0,0 @@ -//======================================================================== -// GLFW 3.1 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#define _GNU_SOURCE - -#include "internal.h" - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - - -static void handlePing(void* data, - struct wl_shell_surface* shellSurface, - uint32_t serial) -{ - wl_shell_surface_pong(shellSurface, serial); -} - -static void handleConfigure(void* data, - struct wl_shell_surface* shellSurface, - uint32_t edges, - int32_t width, - int32_t height) -{ - _GLFWwindow* window = data; - _glfwInputFramebufferSize(window, width, height); - _glfwInputWindowSize(window, width, height); - _glfwPlatformSetWindowSize(window, width, height); - _glfwInputWindowDamage(window); -} - -static void handlePopupDone(void* data, - struct wl_shell_surface* shellSurface) -{ -} - -static const struct wl_shell_surface_listener shellSurfaceListener = { - handlePing, - handleConfigure, - handlePopupDone -}; - -static GLboolean createSurface(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig) -{ - window->wl.surface = wl_compositor_create_surface(_glfw.wl.compositor); - if (!window->wl.surface) - return GL_FALSE; - - wl_surface_set_user_data(window->wl.surface, window); - - window->wl.native = wl_egl_window_create(window->wl.surface, - wndconfig->width, - wndconfig->height); - if (!window->wl.native) - return GL_FALSE; - - window->wl.shell_surface = wl_shell_get_shell_surface(_glfw.wl.shell, - window->wl.surface); - if (!window->wl.shell_surface) - return GL_FALSE; - - wl_shell_surface_add_listener(window->wl.shell_surface, - &shellSurfaceListener, - window); - - window->wl.width = wndconfig->width; - window->wl.height = wndconfig->height; - - return GL_TRUE; -} - -static int -createTmpfileCloexec(char* tmpname) -{ - int fd; - - fd = mkostemp(tmpname, O_CLOEXEC); - if (fd >= 0) - unlink(tmpname); - - return fd; -} - -static void -handleEvents(int timeout) -{ - struct wl_display* display = _glfw.wl.display; - struct pollfd fds[] = { - { wl_display_get_fd(display), POLLIN }, - }; - - while (wl_display_prepare_read(display) != 0) - wl_display_dispatch_pending(display); - - // If an error different from EAGAIN happens, we have likely been - // disconnected from the Wayland session, try to handle that the best we - // can. - if (wl_display_flush(display) < 0 && errno != EAGAIN) - { - _GLFWwindow* window = _glfw.windowListHead; - while (window) - { - _glfwInputWindowCloseRequest(window); - window = window->next; - } - wl_display_cancel_read(display); - return; - } - - if (poll(fds, 1, timeout) > 0) - { - wl_display_read_events(display); - wl_display_dispatch_pending(display); - } - else - { - wl_display_cancel_read(display); - } -} - -/* - * Create a new, unique, anonymous file of the given size, and - * return the file descriptor for it. The file descriptor is set - * CLOEXEC. The file is immediately suitable for mmap()'ing - * the given size at offset zero. - * - * The file should not have a permanent backing store like a disk, - * but may have if XDG_RUNTIME_DIR is not properly implemented in OS. - * - * The file name is deleted from the file system. - * - * The file is suitable for buffer sharing between processes by - * transmitting the file descriptor over Unix sockets using the - * SCM_RIGHTS methods. - * - * posix_fallocate() is used to guarantee that disk space is available - * for the file at the given size. If disk space is insufficent, errno - * is set to ENOSPC. If posix_fallocate() is not supported, program may - * receive SIGBUS on accessing mmap()'ed file contents instead. - */ -int -createAnonymousFile(off_t size) -{ - static const char template[] = "/glfw-shared-XXXXXX"; - const char* path; - char* name; - int fd; - int ret; - - path = getenv("XDG_RUNTIME_DIR"); - if (!path) - { - errno = ENOENT; - return -1; - } - - name = calloc(strlen(path) + sizeof(template), 1); - strcpy(name, path); - strcat(name, template); - - fd = createTmpfileCloexec(name); - - free(name); - - if (fd < 0) - return -1; - ret = posix_fallocate(fd, 0, size); - if (ret != 0) - { - close(fd); - errno = ret; - return -1; - } - return fd; -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!_glfwCreateContext(window, ctxconfig, fbconfig)) - return GL_FALSE; - - if (!createSurface(window, wndconfig)) - return GL_FALSE; - - if (wndconfig->monitor) - { - wl_shell_surface_set_fullscreen( - window->wl.shell_surface, - WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, - 0, - wndconfig->monitor->wl.output); - } - else - { - wl_shell_surface_set_toplevel(window->wl.shell_surface); - } - - window->wl.currentCursor = NULL; - - return GL_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (window == _glfw.wl.pointerFocus) - { - _glfw.wl.pointerFocus = NULL; - _glfwInputCursorEnter(window, GL_FALSE); - } - if (window == _glfw.wl.keyboardFocus) - { - _glfw.wl.keyboardFocus = NULL; - _glfwInputWindowFocus(window, GL_FALSE); - } - - _glfwDestroyContext(window); - - if (window->wl.native) - wl_egl_window_destroy(window->wl.native); - - if (window->wl.shell_surface) - wl_shell_surface_destroy(window->wl.shell_surface); - - if (window->wl.surface) - wl_surface_destroy(window->wl.surface); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - wl_shell_surface_set_title(window->wl.shell_surface, title); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - // A Wayland client is not aware of its position, so just warn and leave it - // as (0, 0) - - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window position retrieval not supported"); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - // A Wayland client can not set its position, so just warn - - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window position setting not supported"); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->wl.width; - if (height) - *height = window->wl.height; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - wl_egl_window_resize(window->wl.native, width, height, 0, 0); - window->wl.width = width; - window->wl.height = height; -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - _glfwPlatformGetWindowSize(window, width, height); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - // TODO - fprintf(stderr, "_glfwPlatformGetWindowFrameSize not implemented yet\n"); -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - // TODO - fprintf(stderr, "_glfwPlatformIconifyWindow not implemented yet\n"); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - // TODO - fprintf(stderr, "_glfwPlatformRestoreWindow not implemented yet\n"); -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - wl_shell_surface_set_toplevel(window->wl.shell_surface); -} - -void _glfwPlatformUnhideWindow(_GLFWwindow* window) -{ - // TODO - fprintf(stderr, "_glfwPlatformUnhideWindow not implemented yet\n"); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - wl_surface_attach(window->wl.surface, NULL, 0, 0); - wl_surface_commit(window->wl.surface); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - // TODO - return GL_FALSE; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - // TODO - return GL_FALSE; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - // TODO - return GL_FALSE; -} - -void _glfwPlatformPollEvents(void) -{ - handleEvents(0); -} - -void _glfwPlatformWaitEvents(void) -{ - handleEvents(-1); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - wl_display_sync(_glfw.wl.display); -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - if (xpos) - *xpos = window->wl.cursorPosX; - if (ypos) - *ypos = window->wl.cursorPosY; -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) -{ - // A Wayland client can not set the cursor position - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Cursor position setting not supported"); -} - -void _glfwPlatformApplyCursorMode(_GLFWwindow* window) -{ - _glfwPlatformSetCursor(window, window->wl.currentCursor); -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - struct wl_shm_pool* pool; - int stride = image->width * 4; - int length = image->width * image->height * 4; - void* data; - int fd, i; - - fd = createAnonymousFile(length); - if (fd < 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Creating a buffer file for %d B failed: %m\n", - length); - return GL_FALSE; - } - - data = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); - if (data == MAP_FAILED) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Cursor mmap failed: %m\n"); - close(fd); - return GL_FALSE; - } - - pool = wl_shm_create_pool(_glfw.wl.shm, fd, length); - - close(fd); - unsigned char* source = (unsigned char*) image->pixels; - unsigned char* target = data; - for (i = 0; i < image->width * image->height; i++, source += 4) - { - *target++ = source[2]; - *target++ = source[1]; - *target++ = source[0]; - *target++ = source[3]; - } - - cursor->wl.buffer = - wl_shm_pool_create_buffer(pool, 0, - image->width, - image->height, - stride, WL_SHM_FORMAT_ARGB8888); - munmap(data, length); - wl_shm_pool_destroy(pool); - - cursor->wl.width = image->width; - cursor->wl.height = image->height; - cursor->wl.xhot = xhot; - cursor->wl.yhot = yhot; - return GL_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - // TODO - fprintf(stderr, "_glfwPlatformCreateStandardCursor not implemented yet\n"); - return GL_FALSE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - wl_buffer_destroy(cursor->wl.buffer); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - struct wl_buffer* buffer; - struct wl_cursor_image* image; - struct wl_surface* surface = _glfw.wl.cursorSurface; - - if (!_glfw.wl.pointer) - return; - - window->wl.currentCursor = cursor; - - // If we're not in the correct window just save the cursor - // the next time the pointer enters the window the cursor will change - if (window != _glfw.wl.pointerFocus) - return; - - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (cursor == NULL) - { - image = _glfw.wl.defaultCursor->images[0]; - buffer = wl_cursor_image_get_buffer(image); - if (!buffer) - return; - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - surface, - image->hotspot_x, - image->hotspot_y); - wl_surface_attach(surface, buffer, 0, 0); - wl_surface_damage(surface, 0, 0, - image->width, image->height); - wl_surface_commit(surface); - } - else - { - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - surface, - cursor->wl.xhot, - cursor->wl.yhot); - wl_surface_attach(surface, cursor->wl.buffer, 0, 0); - wl_surface_damage(surface, 0, 0, - cursor->wl.width, cursor->wl.height); - wl_surface_commit(surface); - } - } - else /* Cursor is hidden set cursor surface to NULL */ - { - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, NULL, 0, 0); - } -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - // TODO - fprintf(stderr, "_glfwPlatformSetClipboardString not implemented yet\n"); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - // TODO - fprintf(stderr, "_glfwPlatformGetClipboardString not implemented yet\n"); - return NULL; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_init.c deleted file mode 100644 index 7df3dde..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_init.c +++ /dev/null @@ -1,830 +0,0 @@ -//======================================================================== -// GLFW 3.1 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - -#include -#include -#include -#include -#include - - -// Translate an X11 key code to a GLFW key code. -// -static int translateKeyCode(int scancode) -{ - int keySym; - - // Valid key code range is [8,255], according to the Xlib manual - if (scancode < 8 || scancode > 255) - return GLFW_KEY_UNKNOWN; - - if (_glfw.x11.xkb.available) - { - // Try secondary keysym, for numeric keypad keys - // Note: This way we always force "NumLock = ON", which is intentional - // since the returned key code should correspond to a physical - // location. - keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 1); - switch (keySym) - { - case XK_KP_0: return GLFW_KEY_KP_0; - case XK_KP_1: return GLFW_KEY_KP_1; - case XK_KP_2: return GLFW_KEY_KP_2; - case XK_KP_3: return GLFW_KEY_KP_3; - case XK_KP_4: return GLFW_KEY_KP_4; - case XK_KP_5: return GLFW_KEY_KP_5; - case XK_KP_6: return GLFW_KEY_KP_6; - case XK_KP_7: return GLFW_KEY_KP_7; - case XK_KP_8: return GLFW_KEY_KP_8; - case XK_KP_9: return GLFW_KEY_KP_9; - case XK_KP_Separator: - case XK_KP_Decimal: return GLFW_KEY_KP_DECIMAL; - case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; - case XK_KP_Enter: return GLFW_KEY_KP_ENTER; - default: break; - } - - // Now try primary keysym for function keys (non-printable keys). These - // should not be layout dependent (i.e. US layout and international - // layouts should give the same result). - keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); - } - else - { - int dummy; - KeySym* keySyms; - - keySyms = XGetKeyboardMapping(_glfw.x11.display, scancode, 1, &dummy); - keySym = keySyms[0]; - XFree(keySyms); - } - - switch (keySym) - { - case XK_Escape: return GLFW_KEY_ESCAPE; - case XK_Tab: return GLFW_KEY_TAB; - case XK_Shift_L: return GLFW_KEY_LEFT_SHIFT; - case XK_Shift_R: return GLFW_KEY_RIGHT_SHIFT; - case XK_Control_L: return GLFW_KEY_LEFT_CONTROL; - case XK_Control_R: return GLFW_KEY_RIGHT_CONTROL; - case XK_Meta_L: - case XK_Alt_L: return GLFW_KEY_LEFT_ALT; - case XK_Mode_switch: // Mapped to Alt_R on many keyboards - case XK_ISO_Level3_Shift: // AltGr on at least some machines - case XK_Meta_R: - case XK_Alt_R: return GLFW_KEY_RIGHT_ALT; - case XK_Super_L: return GLFW_KEY_LEFT_SUPER; - case XK_Super_R: return GLFW_KEY_RIGHT_SUPER; - case XK_Menu: return GLFW_KEY_MENU; - case XK_Num_Lock: return GLFW_KEY_NUM_LOCK; - case XK_Caps_Lock: return GLFW_KEY_CAPS_LOCK; - case XK_Print: return GLFW_KEY_PRINT_SCREEN; - case XK_Scroll_Lock: return GLFW_KEY_SCROLL_LOCK; - case XK_Pause: return GLFW_KEY_PAUSE; - case XK_Delete: return GLFW_KEY_DELETE; - case XK_BackSpace: return GLFW_KEY_BACKSPACE; - case XK_Return: return GLFW_KEY_ENTER; - case XK_Home: return GLFW_KEY_HOME; - case XK_End: return GLFW_KEY_END; - case XK_Page_Up: return GLFW_KEY_PAGE_UP; - case XK_Page_Down: return GLFW_KEY_PAGE_DOWN; - case XK_Insert: return GLFW_KEY_INSERT; - case XK_Left: return GLFW_KEY_LEFT; - case XK_Right: return GLFW_KEY_RIGHT; - case XK_Down: return GLFW_KEY_DOWN; - case XK_Up: return GLFW_KEY_UP; - case XK_F1: return GLFW_KEY_F1; - case XK_F2: return GLFW_KEY_F2; - case XK_F3: return GLFW_KEY_F3; - case XK_F4: return GLFW_KEY_F4; - case XK_F5: return GLFW_KEY_F5; - case XK_F6: return GLFW_KEY_F6; - case XK_F7: return GLFW_KEY_F7; - case XK_F8: return GLFW_KEY_F8; - case XK_F9: return GLFW_KEY_F9; - case XK_F10: return GLFW_KEY_F10; - case XK_F11: return GLFW_KEY_F11; - case XK_F12: return GLFW_KEY_F12; - case XK_F13: return GLFW_KEY_F13; - case XK_F14: return GLFW_KEY_F14; - case XK_F15: return GLFW_KEY_F15; - case XK_F16: return GLFW_KEY_F16; - case XK_F17: return GLFW_KEY_F17; - case XK_F18: return GLFW_KEY_F18; - case XK_F19: return GLFW_KEY_F19; - case XK_F20: return GLFW_KEY_F20; - case XK_F21: return GLFW_KEY_F21; - case XK_F22: return GLFW_KEY_F22; - case XK_F23: return GLFW_KEY_F23; - case XK_F24: return GLFW_KEY_F24; - case XK_F25: return GLFW_KEY_F25; - - // Numeric keypad - case XK_KP_Divide: return GLFW_KEY_KP_DIVIDE; - case XK_KP_Multiply: return GLFW_KEY_KP_MULTIPLY; - case XK_KP_Subtract: return GLFW_KEY_KP_SUBTRACT; - case XK_KP_Add: return GLFW_KEY_KP_ADD; - - // These should have been detected in secondary keysym test above! - case XK_KP_Insert: return GLFW_KEY_KP_0; - case XK_KP_End: return GLFW_KEY_KP_1; - case XK_KP_Down: return GLFW_KEY_KP_2; - case XK_KP_Page_Down: return GLFW_KEY_KP_3; - case XK_KP_Left: return GLFW_KEY_KP_4; - case XK_KP_Right: return GLFW_KEY_KP_6; - case XK_KP_Home: return GLFW_KEY_KP_7; - case XK_KP_Up: return GLFW_KEY_KP_8; - case XK_KP_Page_Up: return GLFW_KEY_KP_9; - case XK_KP_Delete: return GLFW_KEY_KP_DECIMAL; - case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; - case XK_KP_Enter: return GLFW_KEY_KP_ENTER; - - // Last resort: Check for printable keys (should not happen if the XKB - // extension is available). This will give a layout dependent mapping - // (which is wrong, and we may miss some keys, especially on non-US - // keyboards), but it's better than nothing... - case XK_a: return GLFW_KEY_A; - case XK_b: return GLFW_KEY_B; - case XK_c: return GLFW_KEY_C; - case XK_d: return GLFW_KEY_D; - case XK_e: return GLFW_KEY_E; - case XK_f: return GLFW_KEY_F; - case XK_g: return GLFW_KEY_G; - case XK_h: return GLFW_KEY_H; - case XK_i: return GLFW_KEY_I; - case XK_j: return GLFW_KEY_J; - case XK_k: return GLFW_KEY_K; - case XK_l: return GLFW_KEY_L; - case XK_m: return GLFW_KEY_M; - case XK_n: return GLFW_KEY_N; - case XK_o: return GLFW_KEY_O; - case XK_p: return GLFW_KEY_P; - case XK_q: return GLFW_KEY_Q; - case XK_r: return GLFW_KEY_R; - case XK_s: return GLFW_KEY_S; - case XK_t: return GLFW_KEY_T; - case XK_u: return GLFW_KEY_U; - case XK_v: return GLFW_KEY_V; - case XK_w: return GLFW_KEY_W; - case XK_x: return GLFW_KEY_X; - case XK_y: return GLFW_KEY_Y; - case XK_z: return GLFW_KEY_Z; - case XK_1: return GLFW_KEY_1; - case XK_2: return GLFW_KEY_2; - case XK_3: return GLFW_KEY_3; - case XK_4: return GLFW_KEY_4; - case XK_5: return GLFW_KEY_5; - case XK_6: return GLFW_KEY_6; - case XK_7: return GLFW_KEY_7; - case XK_8: return GLFW_KEY_8; - case XK_9: return GLFW_KEY_9; - case XK_0: return GLFW_KEY_0; - case XK_space: return GLFW_KEY_SPACE; - case XK_minus: return GLFW_KEY_MINUS; - case XK_equal: return GLFW_KEY_EQUAL; - case XK_bracketleft: return GLFW_KEY_LEFT_BRACKET; - case XK_bracketright: return GLFW_KEY_RIGHT_BRACKET; - case XK_backslash: return GLFW_KEY_BACKSLASH; - case XK_semicolon: return GLFW_KEY_SEMICOLON; - case XK_apostrophe: return GLFW_KEY_APOSTROPHE; - case XK_grave: return GLFW_KEY_GRAVE_ACCENT; - case XK_comma: return GLFW_KEY_COMMA; - case XK_period: return GLFW_KEY_PERIOD; - case XK_slash: return GLFW_KEY_SLASH; - case XK_less: return GLFW_KEY_WORLD_1; // At least in some layouts... - default: break; - } - - // No matching translation was found - return GLFW_KEY_UNKNOWN; -} - -// Create key code translation tables -// -static void createKeyTables(void) -{ - int scancode, key; - - memset(_glfw.x11.publicKeys, -1, sizeof(_glfw.x11.publicKeys)); - - if (_glfw.x11.xkb.available) - { - // Use XKB to determine physical key locations independently of the current - // keyboard layout - - char name[XkbKeyNameLength + 1]; - XkbDescPtr desc = XkbGetMap(_glfw.x11.display, 0, XkbUseCoreKbd); - XkbGetNames(_glfw.x11.display, XkbKeyNamesMask, desc); - - // Find the X11 key code -> GLFW key code mapping - for (scancode = desc->min_key_code; scancode <= desc->max_key_code; scancode++) - { - memcpy(name, desc->names->keys[scancode].name, XkbKeyNameLength); - name[XkbKeyNameLength] = '\0'; - - // Map the key name to a GLFW key code. Note: We only map printable - // keys here, and we use the US keyboard layout. The rest of the - // keys (function keys) are mapped using traditional KeySym - // translations. - if (strcmp(name, "TLDE") == 0) key = GLFW_KEY_GRAVE_ACCENT; - else if (strcmp(name, "AE01") == 0) key = GLFW_KEY_1; - else if (strcmp(name, "AE02") == 0) key = GLFW_KEY_2; - else if (strcmp(name, "AE03") == 0) key = GLFW_KEY_3; - else if (strcmp(name, "AE04") == 0) key = GLFW_KEY_4; - else if (strcmp(name, "AE05") == 0) key = GLFW_KEY_5; - else if (strcmp(name, "AE06") == 0) key = GLFW_KEY_6; - else if (strcmp(name, "AE07") == 0) key = GLFW_KEY_7; - else if (strcmp(name, "AE08") == 0) key = GLFW_KEY_8; - else if (strcmp(name, "AE09") == 0) key = GLFW_KEY_9; - else if (strcmp(name, "AE10") == 0) key = GLFW_KEY_0; - else if (strcmp(name, "AE11") == 0) key = GLFW_KEY_MINUS; - else if (strcmp(name, "AE12") == 0) key = GLFW_KEY_EQUAL; - else if (strcmp(name, "AD01") == 0) key = GLFW_KEY_Q; - else if (strcmp(name, "AD02") == 0) key = GLFW_KEY_W; - else if (strcmp(name, "AD03") == 0) key = GLFW_KEY_E; - else if (strcmp(name, "AD04") == 0) key = GLFW_KEY_R; - else if (strcmp(name, "AD05") == 0) key = GLFW_KEY_T; - else if (strcmp(name, "AD06") == 0) key = GLFW_KEY_Y; - else if (strcmp(name, "AD07") == 0) key = GLFW_KEY_U; - else if (strcmp(name, "AD08") == 0) key = GLFW_KEY_I; - else if (strcmp(name, "AD09") == 0) key = GLFW_KEY_O; - else if (strcmp(name, "AD10") == 0) key = GLFW_KEY_P; - else if (strcmp(name, "AD11") == 0) key = GLFW_KEY_LEFT_BRACKET; - else if (strcmp(name, "AD12") == 0) key = GLFW_KEY_RIGHT_BRACKET; - else if (strcmp(name, "AC01") == 0) key = GLFW_KEY_A; - else if (strcmp(name, "AC02") == 0) key = GLFW_KEY_S; - else if (strcmp(name, "AC03") == 0) key = GLFW_KEY_D; - else if (strcmp(name, "AC04") == 0) key = GLFW_KEY_F; - else if (strcmp(name, "AC05") == 0) key = GLFW_KEY_G; - else if (strcmp(name, "AC06") == 0) key = GLFW_KEY_H; - else if (strcmp(name, "AC07") == 0) key = GLFW_KEY_J; - else if (strcmp(name, "AC08") == 0) key = GLFW_KEY_K; - else if (strcmp(name, "AC09") == 0) key = GLFW_KEY_L; - else if (strcmp(name, "AC10") == 0) key = GLFW_KEY_SEMICOLON; - else if (strcmp(name, "AC11") == 0) key = GLFW_KEY_APOSTROPHE; - else if (strcmp(name, "AB01") == 0) key = GLFW_KEY_Z; - else if (strcmp(name, "AB02") == 0) key = GLFW_KEY_X; - else if (strcmp(name, "AB03") == 0) key = GLFW_KEY_C; - else if (strcmp(name, "AB04") == 0) key = GLFW_KEY_V; - else if (strcmp(name, "AB05") == 0) key = GLFW_KEY_B; - else if (strcmp(name, "AB06") == 0) key = GLFW_KEY_N; - else if (strcmp(name, "AB07") == 0) key = GLFW_KEY_M; - else if (strcmp(name, "AB08") == 0) key = GLFW_KEY_COMMA; - else if (strcmp(name, "AB09") == 0) key = GLFW_KEY_PERIOD; - else if (strcmp(name, "AB10") == 0) key = GLFW_KEY_SLASH; - else if (strcmp(name, "BKSL") == 0) key = GLFW_KEY_BACKSLASH; - else if (strcmp(name, "LSGT") == 0) key = GLFW_KEY_WORLD_1; - else key = GLFW_KEY_UNKNOWN; - - if ((scancode >= 0) && (scancode < 256)) - _glfw.x11.publicKeys[scancode] = key; - } - - XkbFreeNames(desc, XkbKeyNamesMask, True); - XkbFreeClientMap(desc, 0, True); - } - - // Translate the un-translated key codes using traditional X11 KeySym - // lookups - for (scancode = 0; scancode < 256; scancode++) - { - if (_glfw.x11.publicKeys[scancode] < 0) - _glfw.x11.publicKeys[scancode] = translateKeyCode(scancode); - } -} - -// Check whether the IM has a usable style -// -static GLboolean hasUsableInputMethodStyle(void) -{ - unsigned int i; - GLboolean found = GL_FALSE; - XIMStyles* styles = NULL; - - if (XGetIMValues(_glfw.x11.im, XNQueryInputStyle, &styles, NULL) != NULL) - return GL_FALSE; - - for (i = 0; i < styles->count_styles; i++) - { - if (styles->supported_styles[i] == (XIMPreeditNothing | XIMStatusNothing)) - { - found = GL_TRUE; - break; - } - } - - XFree(styles); - return found; -} - -// Check whether the specified atom is supported -// -static Atom getSupportedAtom(Atom* supportedAtoms, - unsigned long atomCount, - const char* atomName) -{ - Atom atom = XInternAtom(_glfw.x11.display, atomName, True); - if (atom != None) - { - unsigned long i; - - for (i = 0; i < atomCount; i++) - { - if (supportedAtoms[i] == atom) - return atom; - } - } - - return None; -} - -// Check whether the running window manager is EWMH-compliant -// -static void detectEWMH(void) -{ - Window* windowFromRoot = NULL; - Window* windowFromChild = NULL; - - // First we need a couple of atoms, which should already be there - Atom supportingWmCheck = - XInternAtom(_glfw.x11.display, "_NET_SUPPORTING_WM_CHECK", True); - Atom wmSupported = - XInternAtom(_glfw.x11.display, "_NET_SUPPORTED", True); - if (supportingWmCheck == None || wmSupported == None) - return; - - // Then we look for the _NET_SUPPORTING_WM_CHECK property of the root window - if (_glfwGetWindowProperty(_glfw.x11.root, - supportingWmCheck, - XA_WINDOW, - (unsigned char**) &windowFromRoot) != 1) - { - if (windowFromRoot) - XFree(windowFromRoot); - return; - } - - _glfwGrabXErrorHandler(); - - // It should be the ID of a child window (of the root) - // Then we look for the same property on the child window - if (_glfwGetWindowProperty(*windowFromRoot, - supportingWmCheck, - XA_WINDOW, - (unsigned char**) &windowFromChild) != 1) - { - XFree(windowFromRoot); - if (windowFromChild) - XFree(windowFromChild); - return; - } - - _glfwReleaseXErrorHandler(); - - // It should be the ID of that same child window - if (*windowFromRoot != *windowFromChild) - { - XFree(windowFromRoot); - XFree(windowFromChild); - return; - } - - XFree(windowFromRoot); - XFree(windowFromChild); - - // We are now fairly sure that an EWMH-compliant window manager is running - - Atom* supportedAtoms; - unsigned long atomCount; - - // Now we need to check the _NET_SUPPORTED property of the root window - // It should be a list of supported WM protocol and state atoms - atomCount = _glfwGetWindowProperty(_glfw.x11.root, - wmSupported, - XA_ATOM, - (unsigned char**) &supportedAtoms); - - // See which of the atoms we support that are supported by the WM - _glfw.x11.NET_WM_STATE = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE"); - _glfw.x11.NET_WM_STATE_ABOVE = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_ABOVE"); - _glfw.x11.NET_WM_STATE_FULLSCREEN = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_FULLSCREEN"); - _glfw.x11.NET_WM_FULLSCREEN_MONITORS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_FULLSCREEN_MONITORS"); - _glfw.x11.NET_WM_NAME = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_NAME"); - _glfw.x11.NET_WM_ICON_NAME = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_ICON_NAME"); - _glfw.x11.NET_WM_PID = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_PID"); - _glfw.x11.NET_WM_PING = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_PING"); - _glfw.x11.NET_ACTIVE_WINDOW = - getSupportedAtom(supportedAtoms, atomCount, "_NET_ACTIVE_WINDOW"); - _glfw.x11.NET_FRAME_EXTENTS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_FRAME_EXTENTS"); - _glfw.x11.NET_REQUEST_FRAME_EXTENTS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_REQUEST_FRAME_EXTENTS"); - _glfw.x11.NET_WM_BYPASS_COMPOSITOR = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_BYPASS_COMPOSITOR"); - - XFree(supportedAtoms); -} - -// Initialize X11 display and look for supported X11 extensions -// -static GLboolean initExtensions(void) -{ - // Find or create window manager atoms - _glfw.x11.WM_PROTOCOLS = XInternAtom(_glfw.x11.display, - "WM_PROTOCOLS", - False); - _glfw.x11.WM_STATE = XInternAtom(_glfw.x11.display, "WM_STATE", False); - _glfw.x11.WM_DELETE_WINDOW = XInternAtom(_glfw.x11.display, - "WM_DELETE_WINDOW", - False); - _glfw.x11.MOTIF_WM_HINTS = XInternAtom(_glfw.x11.display, - "_MOTIF_WM_HINTS", - False); - -#if defined(_GLFW_HAS_XF86VM) - // Check for XF86VidMode extension - _glfw.x11.vidmode.available = - XF86VidModeQueryExtension(_glfw.x11.display, - &_glfw.x11.vidmode.eventBase, - &_glfw.x11.vidmode.errorBase); -#endif /*_GLFW_HAS_XF86VM*/ - - // Check for RandR extension - _glfw.x11.randr.available = - XRRQueryExtension(_glfw.x11.display, - &_glfw.x11.randr.eventBase, - &_glfw.x11.randr.errorBase); - - if (_glfw.x11.randr.available) - { - XRRScreenResources* sr; - - if (!XRRQueryVersion(_glfw.x11.display, - &_glfw.x11.randr.major, - &_glfw.x11.randr.minor)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to query RandR version"); - return GL_FALSE; - } - - // The GLFW RandR path requires at least version 1.3 - if (_glfw.x11.randr.major == 1 && _glfw.x11.randr.minor < 3) - _glfw.x11.randr.available = GL_FALSE; - - sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); - - if (!sr->ncrtc || !XRRGetCrtcGammaSize(_glfw.x11.display, sr->crtcs[0])) - { - // This is either a headless system or an older Nvidia binary driver - // with broken gamma support - // Flag it as useless and fall back to Xf86VidMode gamma, if - // available - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: RandR gamma ramp support seems broken"); - _glfw.x11.randr.gammaBroken = GL_TRUE; - } - - XRRFreeScreenResources(sr); - } - - if (XineramaQueryExtension(_glfw.x11.display, - &_glfw.x11.xinerama.major, - &_glfw.x11.xinerama.minor)) - { - if (XineramaIsActive(_glfw.x11.display)) - _glfw.x11.xinerama.available = GL_TRUE; - } - -#if defined(_GLFW_HAS_XINPUT) - if (XQueryExtension(_glfw.x11.display, - "XInputExtension", - &_glfw.x11.xi.majorOpcode, - &_glfw.x11.xi.eventBase, - &_glfw.x11.xi.errorBase)) - { - _glfw.x11.xi.major = 2; - _glfw.x11.xi.minor = 0; - - if (XIQueryVersion(_glfw.x11.display, - &_glfw.x11.xi.major, - &_glfw.x11.xi.minor) != BadRequest) - { - _glfw.x11.xi.available = GL_TRUE; - } - } -#endif /*_GLFW_HAS_XINPUT*/ - - // Check if Xkb is supported on this display - _glfw.x11.xkb.major = 1; - _glfw.x11.xkb.minor = 0; - _glfw.x11.xkb.available = - XkbQueryExtension(_glfw.x11.display, - &_glfw.x11.xkb.majorOpcode, - &_glfw.x11.xkb.eventBase, - &_glfw.x11.xkb.errorBase, - &_glfw.x11.xkb.major, - &_glfw.x11.xkb.minor); - - if (_glfw.x11.xkb.available) - { - Bool supported; - - if (XkbSetDetectableAutoRepeat(_glfw.x11.display, True, &supported)) - { - if (supported) - _glfw.x11.xkb.detectable = GL_TRUE; - } - } - - // Update the key code LUT - // FIXME: We should listen to XkbMapNotify events to track changes to - // the keyboard mapping. - createKeyTables(); - - // Detect whether an EWMH-conformant window manager is running - detectEWMH(); - - // Find or create string format atoms - _glfw.x11.NULL_ = XInternAtom(_glfw.x11.display, "NULL", False); - _glfw.x11.UTF8_STRING = - XInternAtom(_glfw.x11.display, "UTF8_STRING", False); - _glfw.x11.COMPOUND_STRING = - XInternAtom(_glfw.x11.display, "COMPOUND_STRING", False); - _glfw.x11.ATOM_PAIR = XInternAtom(_glfw.x11.display, "ATOM_PAIR", False); - - // Find or create selection property atom - _glfw.x11.GLFW_SELECTION = - XInternAtom(_glfw.x11.display, "GLFW_SELECTION", False); - - // Find or create standard clipboard atoms - _glfw.x11.TARGETS = XInternAtom(_glfw.x11.display, "TARGETS", False); - _glfw.x11.MULTIPLE = XInternAtom(_glfw.x11.display, "MULTIPLE", False); - _glfw.x11.CLIPBOARD = XInternAtom(_glfw.x11.display, "CLIPBOARD", False); - - // Find or create clipboard manager atoms - _glfw.x11.CLIPBOARD_MANAGER = - XInternAtom(_glfw.x11.display, "CLIPBOARD_MANAGER", False); - _glfw.x11.SAVE_TARGETS = - XInternAtom(_glfw.x11.display, "SAVE_TARGETS", False); - - // Find Xdnd (drag and drop) atoms, if available - _glfw.x11.XdndAware = XInternAtom(_glfw.x11.display, "XdndAware", True); - _glfw.x11.XdndEnter = XInternAtom(_glfw.x11.display, "XdndEnter", True); - _glfw.x11.XdndPosition = XInternAtom(_glfw.x11.display, "XdndPosition", True); - _glfw.x11.XdndStatus = XInternAtom(_glfw.x11.display, "XdndStatus", True); - _glfw.x11.XdndActionCopy = XInternAtom(_glfw.x11.display, "XdndActionCopy", True); - _glfw.x11.XdndDrop = XInternAtom(_glfw.x11.display, "XdndDrop", True); - _glfw.x11.XdndLeave = XInternAtom(_glfw.x11.display, "XdndLeave", True); - _glfw.x11.XdndFinished = XInternAtom(_glfw.x11.display, "XdndFinished", True); - _glfw.x11.XdndSelection = XInternAtom(_glfw.x11.display, "XdndSelection", True); - - return GL_TRUE; -} - -// Create a blank cursor for hidden and disabled cursor modes -// -static Cursor createNULLCursor(void) -{ - unsigned char pixels[16 * 16 * 4]; - GLFWimage image = { 16, 16, pixels }; - - memset(pixels, 0, sizeof(pixels)); - - return _glfwCreateCursor(&image, 0, 0); -} - -// X error handler -// -static int errorHandler(Display *display, XErrorEvent* event) -{ - _glfw.x11.errorCode = event->error_code; - return 0; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Sets the X error handler callback -// -void _glfwGrabXErrorHandler(void) -{ - _glfw.x11.errorCode = Success; - XSetErrorHandler(errorHandler); -} - -// Clears the X error handler callback -// -void _glfwReleaseXErrorHandler(void) -{ - // Synchronize to make sure all commands are processed - XSync(_glfw.x11.display, False); - XSetErrorHandler(NULL); -} - -// Reports the specified error, appending information about the last X error -// -void _glfwInputXError(int error, const char* message) -{ - char buffer[8192]; - XGetErrorText(_glfw.x11.display, _glfw.x11.errorCode, - buffer, sizeof(buffer)); - - _glfwInputError(error, "%s: %s", message, buffer); -} - -// Creates a native cursor object from the specified image and hotspot -// -Cursor _glfwCreateCursor(const GLFWimage* image, int xhot, int yhot) -{ - int i; - Cursor cursor; - - XcursorImage* native = XcursorImageCreate(image->width, image->height); - if (native == NULL) - return None; - - native->xhot = xhot; - native->yhot = yhot; - - unsigned char* source = (unsigned char*) image->pixels; - XcursorPixel* target = native->pixels; - - for (i = 0; i < image->width * image->height; i++, target++, source += 4) - { - *target = (source[3] << 24) | - (source[0] << 16) | - (source[1] << 8) | - source[2]; - } - - cursor = XcursorImageLoadCursor(_glfw.x11.display, native); - XcursorImageDestroy(native); - - return cursor; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ -#if !defined(X_HAVE_UTF8_STRING) - // HACK: If the current locale is C, apply the environment's locale - // This is done because the C locale breaks wide character input - if (strcmp(setlocale(LC_CTYPE, NULL), "C") == 0) - setlocale(LC_CTYPE, ""); -#endif - - XInitThreads(); - - _glfw.x11.display = XOpenDisplay(NULL); - if (!_glfw.x11.display) - { - const char* display = getenv("DISPLAY"); - if (display) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to open display %s", display); - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: The DISPLAY environment variable is missing"); - } - - return GL_FALSE; - } - - _glfw.x11.screen = DefaultScreen(_glfw.x11.display); - _glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen); - _glfw.x11.context = XUniqueContext(); - - if (!initExtensions()) - return GL_FALSE; - - _glfw.x11.cursor = createNULLCursor(); - - if (XSupportsLocale()) - { - XSetLocaleModifiers(""); - - _glfw.x11.im = XOpenIM(_glfw.x11.display, 0, NULL, NULL); - if (_glfw.x11.im) - { - if (!hasUsableInputMethodStyle()) - { - XCloseIM(_glfw.x11.im); - _glfw.x11.im = NULL; - } - } - } - - if (!_glfwInitContextAPI()) - return GL_FALSE; - - if (!_glfwInitJoysticks()) - return GL_FALSE; - - _glfwInitTimer(); - - return GL_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - if (_glfw.x11.cursor) - { - XFreeCursor(_glfw.x11.display, _glfw.x11.cursor); - _glfw.x11.cursor = (Cursor) 0; - } - - free(_glfw.x11.clipboardString); - - if (_glfw.x11.im) - { - XCloseIM(_glfw.x11.im); - _glfw.x11.im = NULL; - } - - _glfwTerminateJoysticks(); - - if (_glfw.x11.display) - { - XCloseDisplay(_glfw.x11.display); - _glfw.x11.display = NULL; - } - - // NOTE: This needs to be done after XCloseDisplay, as libGL registers - // internal cleanup callbacks in libX11 - _glfwTerminateContextAPI(); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " X11" -#if defined(_GLFW_GLX) - " GLX" -#elif defined(_GLFW_EGL) - " EGL" -#endif -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif -#if defined(__linux__) - " /dev/js" -#endif -#if defined(_GLFW_HAS_XINPUT) - " XI" -#endif -#if defined(_GLFW_HAS_XF86VM) - " Xf86vm" -#endif -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_monitor.c deleted file mode 100644 index 69d8725..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_monitor.c +++ /dev/null @@ -1,491 +0,0 @@ -//======================================================================== -// GLFW 3.1 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -// Check whether the display mode should be included in enumeration -// -static GLboolean modeIsGood(const XRRModeInfo* mi) -{ - return (mi->modeFlags & RR_Interlace) == 0; -} - -// Calculates the refresh rate, in Hz, from the specified RandR mode info -// -static int calculateRefreshRate(const XRRModeInfo* mi) -{ - if (mi->hTotal && mi->vTotal) - return (int) ((double) mi->dotClock / ((double) mi->hTotal * (double) mi->vTotal)); - else - return 0; -} - -// Returns the mode info for a RandR mode XID -// -static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id) -{ - int i; - - for (i = 0; i < sr->nmode; i++) - { - if (sr->modes[i].id == id) - return sr->modes + i; - } - - return NULL; -} - -// Convert RandR mode info to GLFW video mode -// -static GLFWvidmode vidmodeFromModeInfo(const XRRModeInfo* mi, - const XRRCrtcInfo* ci) -{ - GLFWvidmode mode; - - if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) - { - mode.width = mi->height; - mode.height = mi->width; - } - else - { - mode.width = mi->width; - mode.height = mi->height; - } - - mode.refreshRate = calculateRefreshRate(mi); - - _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), - &mode.redBits, &mode.greenBits, &mode.blueBits); - - return mode; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Set the current video mode for the specified monitor -// -GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - XRROutputInfo* oi; - GLFWvidmode current; - const GLFWvidmode* best; - RRMode native = None; - int i; - - best = _glfwChooseVideoMode(monitor, desired); - _glfwPlatformGetVideoMode(monitor, ¤t); - if (_glfwCompareVideoModes(¤t, best) == 0) - return GL_TRUE; - - sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); - - for (i = 0; i < oi->nmode; i++) - { - const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); - if (!modeIsGood(mi)) - continue; - - const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); - if (_glfwCompareVideoModes(best, &mode) == 0) - { - native = mi->id; - break; - } - } - - if (native) - { - if (monitor->x11.oldMode == None) - monitor->x11.oldMode = ci->mode; - - XRRSetCrtcConfig(_glfw.x11.display, - sr, monitor->x11.crtc, - CurrentTime, - ci->x, ci->y, - native, - ci->rotation, - ci->outputs, - ci->noutput); - } - - XRRFreeOutputInfo(oi); - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - - if (!native) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Monitor mode list changed"); - return GL_FALSE; - } - } - - return GL_TRUE; -} - -// Restore the saved (original) video mode for the specified monitor -// -void _glfwRestoreVideoMode(_GLFWmonitor* monitor) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - if (monitor->x11.oldMode == None) - return; - - sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - XRRSetCrtcConfig(_glfw.x11.display, - sr, monitor->x11.crtc, - CurrentTime, - ci->x, ci->y, - monitor->x11.oldMode, - ci->rotation, - ci->outputs, - ci->noutput); - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - - monitor->x11.oldMode = None; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - int i, j, k, found = 0; - _GLFWmonitor** monitors = NULL; - - *count = 0; - - if (_glfw.x11.randr.available) - { - int screenCount = 0; - XineramaScreenInfo* screens = NULL; - XRRScreenResources* sr = XRRGetScreenResources(_glfw.x11.display, - _glfw.x11.root); - RROutput primary = XRRGetOutputPrimary(_glfw.x11.display, - _glfw.x11.root); - - monitors = calloc(sr->noutput, sizeof(_GLFWmonitor*)); - - if (_glfw.x11.xinerama.available) - screens = XineramaQueryScreens(_glfw.x11.display, &screenCount); - - for (i = 0; i < sr->ncrtc; i++) - { - XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, - sr, sr->crtcs[i]); - - for (j = 0; j < ci->noutput; j++) - { - int widthMM, heightMM; - _GLFWmonitor* monitor; - XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, - sr, ci->outputs[j]); - if (oi->connection != RR_Connected) - { - XRRFreeOutputInfo(oi); - continue; - } - - if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) - { - widthMM = oi->mm_height; - heightMM = oi->mm_width; - } - else - { - widthMM = oi->mm_width; - heightMM = oi->mm_height; - } - - monitor = _glfwAllocMonitor(oi->name, widthMM, heightMM); - monitor->x11.output = ci->outputs[j]; - monitor->x11.crtc = oi->crtc; - - for (k = 0; k < screenCount; k++) - { - if (screens[k].x_org == ci->x && - screens[k].y_org == ci->y && - screens[k].width == ci->width && - screens[k].height == ci->height) - { - monitor->x11.index = k; - break; - } - } - - XRRFreeOutputInfo(oi); - - found++; - monitors[found - 1] = monitor; - - if (ci->outputs[j] == primary) - _GLFW_SWAP_POINTERS(monitors[0], monitors[found - 1]); - } - - XRRFreeCrtcInfo(ci); - } - - XRRFreeScreenResources(sr); - - if (screens) - XFree(screens); - - if (found == 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: RandR monitor support seems broken"); - - _glfw.x11.randr.monitorBroken = GL_TRUE; - free(monitors); - monitors = NULL; - } - } - - if (!monitors) - { - monitors = calloc(1, sizeof(_GLFWmonitor*)); - monitors[0] = _glfwAllocMonitor("Display", - DisplayWidthMM(_glfw.x11.display, - _glfw.x11.screen), - DisplayHeightMM(_glfw.x11.display, - _glfw.x11.screen)); - found = 1; - } - - *count = found; - return monitors; -} - -GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - return first->x11.crtc == second->x11.crtc; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - if (xpos) - *xpos = ci->x; - if (ypos) - *ypos = ci->y; - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) -{ - GLFWvidmode* result; - - *count = 0; - - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - int i, j; - XRRScreenResources* sr; - XRRCrtcInfo* ci; - XRROutputInfo* oi; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); - - result = calloc(oi->nmode, sizeof(GLFWvidmode)); - - for (i = 0; i < oi->nmode; i++) - { - const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); - if (!modeIsGood(mi)) - continue; - - const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); - - for (j = 0; j < *count; j++) - { - if (_glfwCompareVideoModes(result + j, &mode) == 0) - break; - } - - // Skip duplicate modes - if (j < *count) - continue; - - (*count)++; - result[*count - 1] = mode; - } - - XRRFreeOutputInfo(oi); - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } - else - { - *count = 1; - result = calloc(1, sizeof(GLFWvidmode)); - _glfwPlatformGetVideoMode(monitor, result); - } - - return result; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - *mode = vidmodeFromModeInfo(getModeInfo(sr, ci->mode), ci); - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } - else - { - mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen); - mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen); - mode->refreshRate = 0; - - _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), - &mode->redBits, &mode->greenBits, &mode->blueBits); - } -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) - { - const size_t size = XRRGetCrtcGammaSize(_glfw.x11.display, - monitor->x11.crtc); - XRRCrtcGamma* gamma = XRRGetCrtcGamma(_glfw.x11.display, - monitor->x11.crtc); - - _glfwAllocGammaArrays(ramp, size); - - memcpy(ramp->red, gamma->red, size * sizeof(unsigned short)); - memcpy(ramp->green, gamma->green, size * sizeof(unsigned short)); - memcpy(ramp->blue, gamma->blue, size * sizeof(unsigned short)); - - XRRFreeGamma(gamma); - } -#if defined(_GLFW_HAS_XF86VM) - else if (_glfw.x11.vidmode.available) - { - int size; - XF86VidModeGetGammaRampSize(_glfw.x11.display, _glfw.x11.screen, &size); - - _glfwAllocGammaArrays(ramp, size); - - XF86VidModeGetGammaRamp(_glfw.x11.display, - _glfw.x11.screen, - ramp->size, ramp->red, ramp->green, ramp->blue); - } -#endif /*_GLFW_HAS_XF86VM*/ -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) - { - XRRCrtcGamma* gamma = XRRAllocGamma(ramp->size); - - memcpy(gamma->red, ramp->red, ramp->size * sizeof(unsigned short)); - memcpy(gamma->green, ramp->green, ramp->size * sizeof(unsigned short)); - memcpy(gamma->blue, ramp->blue, ramp->size * sizeof(unsigned short)); - - XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma); - XRRFreeGamma(gamma); - } -#if defined(_GLFW_HAS_XF86VM) - else if (_glfw.x11.vidmode.available) - { - XF86VidModeSetGammaRamp(_glfw.x11.display, - _glfw.x11.screen, - ramp->size, - (unsigned short*) ramp->red, - (unsigned short*) ramp->green, - (unsigned short*) ramp->blue); - } -#endif /*_GLFW_HAS_XF86VM*/ -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - return monitor->x11.crtc; -} - -GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - return monitor->x11.output; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_platform.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_platform.h deleted file mode 100644 index 5f3b8c5..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_platform.h +++ /dev/null @@ -1,268 +0,0 @@ -//======================================================================== -// GLFW 3.1 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_x11_platform_h_ -#define _glfw3_x11_platform_h_ - -#include -#include -#include - -#include -#include -#include -#include - -// The XRandR extension provides mode setting and gamma control -#include - -// The Xkb extension provides improved keyboard support -#include - -// The Xinerama extension provides legacy monitor indices -#include - -#if defined(_GLFW_HAS_XINPUT) - // The XInput2 extension provides improved input events - #include -#endif - -#if defined(_GLFW_HAS_XF86VM) - // The Xf86VidMode extension provides fallback gamma control - #include -#endif - -#include "posix_tls.h" -#include "posix_time.h" -#include "linux_joystick.h" -#include "xkb_unicode.h" - -#if defined(_GLFW_GLX) - #define _GLFW_X11_CONTEXT_VISUAL window->glx.visual - #include "glx_context.h" -#elif defined(_GLFW_EGL) - #define _GLFW_X11_CONTEXT_VISUAL window->egl.visual - #define _GLFW_EGL_NATIVE_WINDOW window->x11.handle - #define _GLFW_EGL_NATIVE_DISPLAY _glfw.x11.display - #include "egl_context.h" -#else - #error "No supported context creation API selected" -#endif - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowX11 x11 -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryX11 x11 -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorX11 x11 -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorX11 x11 - - -// X11-specific per-window data -// -typedef struct _GLFWwindowX11 -{ - Colormap colormap; - Window handle; - XIC ic; - - // Cached position and size used to filter out duplicate events - int width, height; - int xpos, ypos; - - // The last received cursor position, regardless of source - double cursorPosX, cursorPosY; - // The last position the cursor was warped to by GLFW - int warpPosX, warpPosY; - - // The information from the last KeyPress event - struct { - unsigned int keycode; - Time time; - } last; - -} _GLFWwindowX11; - - -// X11-specific global data -// -typedef struct _GLFWlibraryX11 -{ - Display* display; - int screen; - Window root; - - // Invisible cursor for hidden cursor mode - Cursor cursor; - // Context for mapping window XIDs to _GLFWwindow pointers - XContext context; - // XIM input method - XIM im; - // Most recent error code received by X error handler - int errorCode; - // Clipboard string (while the selection is owned) - char* clipboardString; - // X11 keycode to GLFW key LUT - short int publicKeys[256]; - - // Window manager atoms - Atom WM_PROTOCOLS; - Atom WM_STATE; - Atom WM_DELETE_WINDOW; - Atom NET_WM_NAME; - Atom NET_WM_ICON_NAME; - Atom NET_WM_PID; - Atom NET_WM_PING; - Atom NET_WM_STATE; - Atom NET_WM_STATE_ABOVE; - Atom NET_WM_STATE_FULLSCREEN; - Atom NET_WM_BYPASS_COMPOSITOR; - Atom NET_WM_FULLSCREEN_MONITORS; - Atom NET_ACTIVE_WINDOW; - Atom NET_FRAME_EXTENTS; - Atom NET_REQUEST_FRAME_EXTENTS; - Atom MOTIF_WM_HINTS; - - // Xdnd (drag and drop) atoms - Atom XdndAware; - Atom XdndEnter; - Atom XdndPosition; - Atom XdndStatus; - Atom XdndActionCopy; - Atom XdndDrop; - Atom XdndLeave; - Atom XdndFinished; - Atom XdndSelection; - - // Selection (clipboard) atoms - Atom TARGETS; - Atom MULTIPLE; - Atom CLIPBOARD; - Atom CLIPBOARD_MANAGER; - Atom SAVE_TARGETS; - Atom NULL_; - Atom UTF8_STRING; - Atom COMPOUND_STRING; - Atom ATOM_PAIR; - Atom GLFW_SELECTION; - - struct { - GLboolean available; - int eventBase; - int errorBase; - int major; - int minor; - GLboolean gammaBroken; - GLboolean monitorBroken; - } randr; - - struct { - GLboolean available; - GLboolean detectable; - int majorOpcode; - int eventBase; - int errorBase; - int major; - int minor; - } xkb; - - struct { - int count; - int timeout; - int interval; - int blanking; - int exposure; - } saver; - - struct { - Window source; - } xdnd; - - struct { - GLboolean available; - int major; - int minor; - } xinerama; - -#if defined(_GLFW_HAS_XINPUT) - struct { - GLboolean available; - int majorOpcode; - int eventBase; - int errorBase; - int major; - int minor; - } xi; -#endif /*_GLFW_HAS_XINPUT*/ - -#if defined(_GLFW_HAS_XF86VM) - struct { - GLboolean available; - int eventBase; - int errorBase; - } vidmode; -#endif /*_GLFW_HAS_XF86VM*/ - -} _GLFWlibraryX11; - - -// X11-specific per-monitor data -// -typedef struct _GLFWmonitorX11 -{ - RROutput output; - RRCrtc crtc; - RRMode oldMode; - - // Index of corresponding Xinerama screen, - // for EWMH full screen window placement - int index; - -} _GLFWmonitorX11; - - -// X11-specific per-cursor data -// -typedef struct _GLFWcursorX11 -{ - Cursor handle; - -} _GLFWcursorX11; - - -GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired); -void _glfwRestoreVideoMode(_GLFWmonitor* monitor); - -Cursor _glfwCreateCursor(const GLFWimage* image, int xhot, int yhot); - -unsigned long _glfwGetWindowProperty(Window window, - Atom property, - Atom type, - unsigned char** value); - -void _glfwGrabXErrorHandler(void); -void _glfwReleaseXErrorHandler(void); -void _glfwInputXError(int error, const char* message); - -#endif // _glfw3_x11_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_window.c deleted file mode 100644 index d5c91f6..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/x11_window.c +++ /dev/null @@ -1,2038 +0,0 @@ -//======================================================================== -// GLFW 3.1 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - -#include - -#include -#include -#include -#include -#include -#include - -// Action for EWMH client messages -#define _NET_WM_STATE_REMOVE 0 -#define _NET_WM_STATE_ADD 1 -#define _NET_WM_STATE_TOGGLE 2 - -// Additional mouse button names for XButtonEvent -#define Button6 6 -#define Button7 7 - - -// Wait for data to arrive -// -void selectDisplayConnection(struct timeval* timeout) -{ - fd_set fds; - int result; - const int fd = ConnectionNumber(_glfw.x11.display); - - FD_ZERO(&fds); - FD_SET(fd, &fds); - - // NOTE: We use select instead of an X function like XNextEvent, as the - // wait inside those are guarded by the mutex protecting the display - // struct, locking out other threads from using X (including GLX) - // NOTE: Only retry on EINTR if there is no timeout, as select is not - // required to update it for the time elapsed - // TODO: Update timeout value manually - do - { - result = select(fd + 1, &fds, NULL, NULL, timeout); - } - while (result == -1 && errno == EINTR && timeout == NULL); -} - -// Returns whether the window is iconified -// -static int getWindowState(_GLFWwindow* window) -{ - int result = WithdrawnState; - struct { - CARD32 state; - Window icon; - } *state = NULL; - - if (_glfwGetWindowProperty(window->x11.handle, - _glfw.x11.WM_STATE, - _glfw.x11.WM_STATE, - (unsigned char**) &state) >= 2) - { - result = state->state; - } - - XFree(state); - return result; -} - -// Returns whether the event is a selection event -// -static Bool isFrameExtentsEvent(Display* display, XEvent* event, XPointer pointer) -{ - _GLFWwindow* window = (_GLFWwindow*) pointer; - return event->type == PropertyNotify && - event->xproperty.state == PropertyNewValue && - event->xproperty.window == window->x11.handle && - event->xproperty.atom == _glfw.x11.NET_FRAME_EXTENTS; -} - -// Translates a GLFW standard cursor to a font cursor shape -// -static int translateCursorShape(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return XC_left_ptr; - case GLFW_IBEAM_CURSOR: - return XC_xterm; - case GLFW_CROSSHAIR_CURSOR: - return XC_crosshair; - case GLFW_HAND_CURSOR: - return XC_hand1; - case GLFW_HRESIZE_CURSOR: - return XC_sb_h_double_arrow; - case GLFW_VRESIZE_CURSOR: - return XC_sb_v_double_arrow; - } - - return 0; -} - -// Translates an X event modifier state mask -// -static int translateState(int state) -{ - int mods = 0; - - if (state & ShiftMask) - mods |= GLFW_MOD_SHIFT; - if (state & ControlMask) - mods |= GLFW_MOD_CONTROL; - if (state & Mod1Mask) - mods |= GLFW_MOD_ALT; - if (state & Mod4Mask) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Translates an X11 key code to a GLFW key token -// -static int translateKey(int scancode) -{ - // Use the pre-filled LUT (see createKeyTables() in x11_init.c) - if (scancode < 0 || scancode > 255) - return GLFW_KEY_UNKNOWN; - - return _glfw.x11.publicKeys[scancode]; -} - -// Return the GLFW window corresponding to the specified X11 window -// -static _GLFWwindow* findWindowByHandle(Window handle) -{ - _GLFWwindow* window; - - if (XFindContext(_glfw.x11.display, - handle, - _glfw.x11.context, - (XPointer*) &window) != 0) - { - return NULL; - } - - return window; -} - -// Sends an EWMH or ICCCM event to the window manager -// -static void sendEventToWM(_GLFWwindow* window, Atom type, - long a, long b, long c, long d, long e) -{ - XEvent event; - memset(&event, 0, sizeof(event)); - - event.type = ClientMessage; - event.xclient.window = window->x11.handle; - event.xclient.format = 32; // Data is 32-bit longs - event.xclient.message_type = type; - event.xclient.data.l[0] = a; - event.xclient.data.l[1] = b; - event.xclient.data.l[2] = c; - event.xclient.data.l[3] = d; - event.xclient.data.l[4] = e; - - XSendEvent(_glfw.x11.display, _glfw.x11.root, - False, - SubstructureNotifyMask | SubstructureRedirectMask, - &event); -} - -// Splits and translates a text/uri-list into separate file paths -// NOTE: This function destroys the provided string -// -static char** parseUriList(char* text, int* count) -{ - const char* prefix = "file://"; - char** paths = NULL; - char* line; - - *count = 0; - - while ((line = strtok(text, "\r\n"))) - { - text = NULL; - - if (line[0] == '#') - continue; - - if (strncmp(line, prefix, strlen(prefix)) == 0) - line += strlen(prefix); - - (*count)++; - - char* path = calloc(strlen(line) + 1, 1); - paths = realloc(paths, *count * sizeof(char*)); - paths[*count - 1] = path; - - while (*line) - { - if (line[0] == '%' && line[1] && line[2]) - { - const char digits[3] = { line[1], line[2], '\0' }; - *path = strtol(digits, NULL, 16); - line += 2; - } - else - *path = *line; - - path++; - line++; - } - } - - return paths; -} - -// Create the X11 window (and its colormap) -// -static GLboolean createWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig) -{ - unsigned long wamask; - XSetWindowAttributes wa; - XVisualInfo* vi = _GLFW_X11_CONTEXT_VISUAL; - - // Every window needs a colormap - // Create one based on the visual used by the current context - // TODO: Decouple this from context creation - - window->x11.colormap = XCreateColormap(_glfw.x11.display, - _glfw.x11.root, - vi->visual, - AllocNone); - - // Create the actual window - { - wamask = CWBorderPixel | CWColormap | CWEventMask; - - wa.colormap = window->x11.colormap; - wa.border_pixel = 0; - wa.event_mask = StructureNotifyMask | KeyPressMask | KeyReleaseMask | - PointerMotionMask | ButtonPressMask | ButtonReleaseMask | - ExposureMask | FocusChangeMask | VisibilityChangeMask | - EnterWindowMask | LeaveWindowMask | PropertyChangeMask; - - _glfwGrabXErrorHandler(); - - window->x11.handle = XCreateWindow(_glfw.x11.display, - _glfw.x11.root, - 0, 0, - wndconfig->width, wndconfig->height, - 0, // Border width - vi->depth, // Color depth - InputOutput, - vi->visual, - wamask, - &wa); - - _glfwReleaseXErrorHandler(); - - if (!window->x11.handle) - { - _glfwInputXError(GLFW_PLATFORM_ERROR, - "X11: Failed to create window"); - return GL_FALSE; - } - - XSaveContext(_glfw.x11.display, - window->x11.handle, - _glfw.x11.context, - (XPointer) window); - } - - if (wndconfig->monitor) - { - if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_FULLSCREEN) - { - // This is the butcher's way of removing window decorations - // Setting the override-redirect attribute on a window makes the - // window manager ignore the window completely (ICCCM, section 4) - // The good thing is that this makes undecorated full screen windows - // easy to do; the bad thing is that we have to do everything - // manually and some things (like iconify/restore) won't work at - // all, as those are tasks usually performed by the window manager - - XSetWindowAttributes attributes; - attributes.override_redirect = True; - XChangeWindowAttributes(_glfw.x11.display, - window->x11.handle, - CWOverrideRedirect, - &attributes); - } - } - else - { - if (!wndconfig->decorated) - { - struct - { - unsigned long flags; - unsigned long functions; - unsigned long decorations; - long input_mode; - unsigned long status; - } hints; - - hints.flags = 2; // Set decorations - hints.decorations = 0; // No decorations - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.MOTIF_WM_HINTS, - _glfw.x11.MOTIF_WM_HINTS, 32, - PropModeReplace, - (unsigned char*) &hints, - sizeof(hints) / sizeof(long)); - } - - if (wndconfig->floating) - { - if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_ABOVE) - { - sendEventToWM(window, - _glfw.x11.NET_WM_STATE, - _NET_WM_STATE_ADD, - _glfw.x11.NET_WM_STATE_ABOVE, - 0, 1, 0); - } - } - } - - - // Declare the WM protocols supported by GLFW - { - int count = 0; - Atom protocols[2]; - - // The WM_DELETE_WINDOW ICCCM protocol - // Basic window close notification protocol - if (_glfw.x11.WM_DELETE_WINDOW) - protocols[count++] = _glfw.x11.WM_DELETE_WINDOW; - - // The _NET_WM_PING EWMH protocol - // Tells the WM to ping the GLFW window and flag the application as - // unresponsive if the WM doesn't get a reply within a few seconds - if (_glfw.x11.NET_WM_PING) - protocols[count++] = _glfw.x11.NET_WM_PING; - - if (count > 0) - { - XSetWMProtocols(_glfw.x11.display, window->x11.handle, - protocols, count); - } - } - - if (_glfw.x11.NET_WM_PID) - { - const pid_t pid = getpid(); - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_PID, XA_CARDINAL, 32, - PropModeReplace, - (unsigned char*) &pid, 1); - } - - // Set ICCCM WM_HINTS property - { - XWMHints* hints = XAllocWMHints(); - if (!hints) - { - _glfwInputError(GLFW_OUT_OF_MEMORY, - "X11: Failed to allocate WM hints"); - return GL_FALSE; - } - - hints->flags = StateHint; - hints->initial_state = NormalState; - - XSetWMHints(_glfw.x11.display, window->x11.handle, hints); - XFree(hints); - } - - // Set ICCCM WM_NORMAL_HINTS property (even if no parts are set) - { - XSizeHints* hints = XAllocSizeHints(); - hints->flags = 0; - - if (wndconfig->monitor) - { - hints->flags |= PPosition; - _glfwPlatformGetMonitorPos(wndconfig->monitor, &hints->x, &hints->y); - } - else - { - // HACK: Explicitly setting PPosition to any value causes some WMs, - // notably Compiz and Metacity, to honor the position of - // unmapped windows set by XMoveWindow - hints->flags |= PPosition; - hints->x = hints->y = 0; - } - - if (!wndconfig->resizable) - { - hints->flags |= (PMinSize | PMaxSize); - hints->min_width = hints->max_width = wndconfig->width; - hints->min_height = hints->max_height = wndconfig->height; - } - - XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); - XFree(hints); - } - - // Set ICCCM WM_CLASS property - // HACK: Until a mechanism for specifying the application name is added, the - // initial window title is used as the window class name - if (strlen(wndconfig->title)) - { - XClassHint* hint = XAllocClassHint(); - hint->res_name = (char*) wndconfig->title; - hint->res_class = (char*) wndconfig->title; - - XSetClassHint(_glfw.x11.display, window->x11.handle, hint); - XFree(hint); - } - -#if defined(_GLFW_HAS_XINPUT) - if (_glfw.x11.xi.available) - { - // Select for XInput2 events - - XIEventMask eventmask; - unsigned char mask[] = { 0 }; - - eventmask.deviceid = 2; - eventmask.mask_len = sizeof(mask); - eventmask.mask = mask; - XISetMask(mask, XI_Motion); - - XISelectEvents(_glfw.x11.display, window->x11.handle, &eventmask, 1); - } -#endif /*_GLFW_HAS_XINPUT*/ - - if (_glfw.x11.XdndAware) - { - // Announce support for Xdnd (drag and drop) - const Atom version = 5; - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.XdndAware, XA_ATOM, 32, - PropModeReplace, (unsigned char*) &version, 1); - } - - _glfwPlatformSetWindowTitle(window, wndconfig->title); - - XRRSelectInput(_glfw.x11.display, window->x11.handle, - RRScreenChangeNotifyMask); - - if (_glfw.x11.im) - { - window->x11.ic = XCreateIC(_glfw.x11.im, - XNInputStyle, - XIMPreeditNothing | XIMStatusNothing, - XNClientWindow, - window->x11.handle, - XNFocusWindow, - window->x11.handle, - NULL); - } - - _glfwPlatformGetWindowPos(window, &window->x11.xpos, &window->x11.ypos); - _glfwPlatformGetWindowSize(window, &window->x11.width, &window->x11.height); - - return GL_TRUE; -} - -// Hide the mouse cursor -// -static void hideCursor(_GLFWwindow* window) -{ - XUngrabPointer(_glfw.x11.display, CurrentTime); - XDefineCursor(_glfw.x11.display, window->x11.handle, _glfw.x11.cursor); -} - -// Disable the mouse cursor -// -static void disableCursor(_GLFWwindow* window) -{ - XGrabPointer(_glfw.x11.display, window->x11.handle, True, - ButtonPressMask | ButtonReleaseMask | PointerMotionMask, - GrabModeAsync, GrabModeAsync, - window->x11.handle, _glfw.x11.cursor, CurrentTime); -} - -// Restores the mouse cursor -// -static void restoreCursor(_GLFWwindow* window) -{ - XUngrabPointer(_glfw.x11.display, CurrentTime); - - if (window->cursor) - { - XDefineCursor(_glfw.x11.display, window->x11.handle, - window->cursor->x11.handle); - } - else - XUndefineCursor(_glfw.x11.display, window->x11.handle); -} - -// Returns whether the event is a selection event -// -static Bool isSelectionEvent(Display* display, XEvent* event, XPointer pointer) -{ - return event->type == SelectionRequest || - event->type == SelectionNotify || - event->type == SelectionClear; -} - -// Set the specified property to the selection converted to the requested target -// -static Atom writeTargetToProperty(const XSelectionRequestEvent* request) -{ - int i; - const Atom formats[] = { _glfw.x11.UTF8_STRING, - _glfw.x11.COMPOUND_STRING, - XA_STRING }; - const int formatCount = sizeof(formats) / sizeof(formats[0]); - - if (request->property == None) - { - // The requester is a legacy client (ICCCM section 2.2) - // We don't support legacy clients, so fail here - return None; - } - - if (request->target == _glfw.x11.TARGETS) - { - // The list of supported targets was requested - - const Atom targets[] = { _glfw.x11.TARGETS, - _glfw.x11.MULTIPLE, - _glfw.x11.UTF8_STRING, - _glfw.x11.COMPOUND_STRING, - XA_STRING }; - - XChangeProperty(_glfw.x11.display, - request->requestor, - request->property, - XA_ATOM, - 32, - PropModeReplace, - (unsigned char*) targets, - sizeof(targets) / sizeof(targets[0])); - - return request->property; - } - - if (request->target == _glfw.x11.MULTIPLE) - { - // Multiple conversions were requested - - Atom* targets; - unsigned long i, count; - - count = _glfwGetWindowProperty(request->requestor, - request->property, - _glfw.x11.ATOM_PAIR, - (unsigned char**) &targets); - - for (i = 0; i < count; i += 2) - { - int j; - - for (j = 0; j < formatCount; j++) - { - if (targets[i] == formats[j]) - break; - } - - if (j < formatCount) - { - XChangeProperty(_glfw.x11.display, - request->requestor, - targets[i + 1], - targets[i], - 8, - PropModeReplace, - (unsigned char*) _glfw.x11.clipboardString, - strlen(_glfw.x11.clipboardString)); - } - else - targets[i + 1] = None; - } - - XChangeProperty(_glfw.x11.display, - request->requestor, - request->property, - _glfw.x11.ATOM_PAIR, - 32, - PropModeReplace, - (unsigned char*) targets, - count); - - XFree(targets); - - return request->property; - } - - if (request->target == _glfw.x11.SAVE_TARGETS) - { - // The request is a check whether we support SAVE_TARGETS - // It should be handled as a no-op side effect target - - XChangeProperty(_glfw.x11.display, - request->requestor, - request->property, - _glfw.x11.NULL_, - 32, - PropModeReplace, - NULL, - 0); - - return request->property; - } - - // Conversion to a data target was requested - - for (i = 0; i < formatCount; i++) - { - if (request->target == formats[i]) - { - // The requested target is one we support - - XChangeProperty(_glfw.x11.display, - request->requestor, - request->property, - request->target, - 8, - PropModeReplace, - (unsigned char*) _glfw.x11.clipboardString, - strlen(_glfw.x11.clipboardString)); - - return request->property; - } - } - - // The requested target is not supported - - return None; -} - -static void handleSelectionClear(XEvent* event) -{ - free(_glfw.x11.clipboardString); - _glfw.x11.clipboardString = NULL; -} - -static void handleSelectionRequest(XEvent* event) -{ - const XSelectionRequestEvent* request = &event->xselectionrequest; - - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.xselection.property = writeTargetToProperty(request); - reply.xselection.type = SelectionNotify; - reply.xselection.display = request->display; - reply.xselection.requestor = request->requestor; - reply.xselection.selection = request->selection; - reply.xselection.target = request->target; - reply.xselection.time = request->time; - - XSendEvent(_glfw.x11.display, request->requestor, False, 0, &reply); -} - -static void pushSelectionToManager(_GLFWwindow* window) -{ - XConvertSelection(_glfw.x11.display, - _glfw.x11.CLIPBOARD_MANAGER, - _glfw.x11.SAVE_TARGETS, - None, - window->x11.handle, - CurrentTime); - - for (;;) - { - XEvent event; - - while (XCheckIfEvent(_glfw.x11.display, &event, isSelectionEvent, NULL)) - { - switch (event.type) - { - case SelectionRequest: - handleSelectionRequest(&event); - break; - - case SelectionClear: - handleSelectionClear(&event); - break; - - case SelectionNotify: - { - if (event.xselection.target == _glfw.x11.SAVE_TARGETS) - { - // This means one of two things; either the selection was - // not owned, which means there is no clipboard manager, or - // the transfer to the clipboard manager has completed - // In either case, it means we are done here - return; - } - - break; - } - } - } - - selectDisplayConnection(NULL); - } -} - -// Enter full screen mode -// -static void enterFullscreenMode(_GLFWwindow* window) -{ - if (_glfw.x11.saver.count == 0) - { - // Remember old screen saver settings - XGetScreenSaver(_glfw.x11.display, - &_glfw.x11.saver.timeout, - &_glfw.x11.saver.interval, - &_glfw.x11.saver.blanking, - &_glfw.x11.saver.exposure); - - // Disable screen saver - XSetScreenSaver(_glfw.x11.display, 0, 0, DontPreferBlanking, - DefaultExposures); - } - - _glfw.x11.saver.count++; - - _glfwSetVideoMode(window->monitor, &window->videoMode); - - if (_glfw.x11.NET_WM_BYPASS_COMPOSITOR) - { - const unsigned long value = 1; - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32, - PropModeReplace, (unsigned char*) &value, 1); - } - - // Position the window over its monitor - { - int xpos, ypos; - GLFWvidmode mode; - - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - _glfwPlatformGetVideoMode(window->monitor, &mode); - - XMoveResizeWindow(_glfw.x11.display, window->x11.handle, - xpos, ypos, mode.width, mode.height); - } - - if (_glfw.x11.xinerama.available && _glfw.x11.NET_WM_FULLSCREEN_MONITORS) - { - sendEventToWM(window, - _glfw.x11.NET_WM_FULLSCREEN_MONITORS, - window->monitor->x11.index, - window->monitor->x11.index, - window->monitor->x11.index, - window->monitor->x11.index, - 0); - } - - if (_glfw.x11.NET_ACTIVE_WINDOW) - { - // Ask the window manager to raise and focus the GLFW window - // Only focused windows with the _NET_WM_STATE_FULLSCREEN state end up - // on top of all other windows ("Stacking order" in EWMH spec) - sendEventToWM(window, _glfw.x11.NET_ACTIVE_WINDOW, 1, 0, 0, 0, 0); - } - else - { - XRaiseWindow(_glfw.x11.display, window->x11.handle); - XSetInputFocus(_glfw.x11.display, window->x11.handle, - RevertToParent, CurrentTime); - } - - if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_FULLSCREEN) - { - // Ask the window manager to make the GLFW window a full screen window - // Full screen windows are undecorated and, when focused, are kept - // on top of all other windows - sendEventToWM(window, - _glfw.x11.NET_WM_STATE, - _NET_WM_STATE_ADD, - _glfw.x11.NET_WM_STATE_FULLSCREEN, - 0, 1, 0); - } -} - -// Leave full screen mode -// -static void leaveFullscreenMode(_GLFWwindow* window) -{ - _glfwRestoreVideoMode(window->monitor); - - _glfw.x11.saver.count--; - - if (_glfw.x11.saver.count == 0) - { - // Restore old screen saver settings - XSetScreenSaver(_glfw.x11.display, - _glfw.x11.saver.timeout, - _glfw.x11.saver.interval, - _glfw.x11.saver.blanking, - _glfw.x11.saver.exposure); - } -} - -// Decode a Unicode code point from a UTF-8 stream -// Based on cutef8 by Jeff Bezanson (Public Domain) -// -#if defined(X_HAVE_UTF8_STRING) -static unsigned int decodeUTF8(const char** s) -{ - unsigned int ch = 0, count = 0; - static const unsigned int offsets[] = - { - 0x00000000u, 0x00003080u, 0x000e2080u, - 0x03c82080u, 0xfa082080u, 0x82082080u - }; - - do - { - ch = (ch << 6) + (unsigned char) **s; - (*s)++; - count++; - } while ((**s & 0xc0) == 0x80); - - assert(count <= 6); - return ch - offsets[count - 1]; -} -#endif /*X_HAVE_UTF8_STRING*/ - -// Process the specified X event -// -static void processEvent(XEvent *event) -{ - _GLFWwindow* window = NULL; - int keycode = 0; - Bool filtered = False; - - // HACK: Save scancode as some IMs clear the field in XFilterEvent - if (event->type == KeyPress || event->type == KeyRelease) - keycode = event->xkey.keycode; - - if (_glfw.x11.im) - filtered = XFilterEvent(event, None); - - if (event->type != GenericEvent) - { - window = findWindowByHandle(event->xany.window); - if (window == NULL) - { - // This is an event for a window that has already been destroyed - return; - } - } - - switch (event->type) - { - case KeyPress: - { - const int key = translateKey(keycode); - const int mods = translateState(event->xkey.state); - const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); - - if (window->x11.ic) - { - // HACK: Ignore duplicate key press events generated by ibus - // Corresponding release events are filtered out by the - // GLFW key repeat logic - if (window->x11.last.keycode != keycode || - window->x11.last.time != event->xkey.time) - { - if (keycode) - _glfwInputKey(window, key, keycode, GLFW_PRESS, mods); - } - - window->x11.last.keycode = keycode; - window->x11.last.time = event->xkey.time; - - if (!filtered) - { - int count; - Status status; -#if defined(X_HAVE_UTF8_STRING) - char buffer[96]; - char* chars = buffer; - - count = Xutf8LookupString(window->x11.ic, - &event->xkey, - buffer, sizeof(buffer), - NULL, &status); - - if (status == XBufferOverflow) - { - chars = calloc(count, 1); - count = Xutf8LookupString(window->x11.ic, - &event->xkey, - chars, count, - NULL, &status); - } - - if (status == XLookupChars || status == XLookupBoth) - { - const char* c = chars; - while (c - chars < count) - _glfwInputChar(window, decodeUTF8(&c), mods, plain); - } -#else - wchar_t buffer[16]; - wchar_t* chars = buffer; - - count = XwcLookupString(window->x11.ic, - &event->xkey, - buffer, sizeof(buffer) / sizeof(wchar_t), - NULL, &status); - - if (status == XBufferOverflow) - { - chars = calloc(count, sizeof(wchar_t)); - count = XwcLookupString(window->x11.ic, - &event->xkey, - chars, count, - NULL, &status); - } - - if (status == XLookupChars || status == XLookupBoth) - { - int i; - for (i = 0; i < count; i++) - _glfwInputChar(window, chars[i], mods, plain); - } -#endif - - if (chars != buffer) - free(chars); - } - } - else - { - KeySym keysym; - XLookupString(&event->xkey, NULL, 0, &keysym, NULL); - - _glfwInputKey(window, key, keycode, GLFW_PRESS, mods); - - const long character = _glfwKeySym2Unicode(keysym); - if (character != -1) - _glfwInputChar(window, character, mods, plain); - } - - return; - } - - case KeyRelease: - { - const int key = translateKey(keycode); - const int mods = translateState(event->xkey.state); - - if (!_glfw.x11.xkb.detectable) - { - // HACK: Key repeat events will arrive as KeyRelease/KeyPress - // pairs with similar or identical time stamps - // The key repeat logic in _glfwInputKey expects only key - // presses to repeat, so detect and discard release events - if (XEventsQueued(_glfw.x11.display, QueuedAfterReading)) - { - XEvent next; - XPeekEvent(_glfw.x11.display, &next); - - if (next.type == KeyPress && - next.xkey.window == event->xkey.window && - next.xkey.keycode == keycode) - { - // HACK: Repeat events sometimes leak through due to - // some sort of time drift, so add an epsilon - // Toshiyuki Takahashi can press a button 16 times - // per second so it's fairly safe to assume that - // no human is pressing the key 50 times per - // second (value is ms) - if ((next.xkey.time - event->xkey.time) < 20) - { - // This is very likely a server-generated key repeat - // event, so ignore it - return; - } - } - } - } - - _glfwInputKey(window, key, keycode, GLFW_RELEASE, mods); - return; - } - - case ButtonPress: - { - const int mods = translateState(event->xbutton.state); - - if (event->xbutton.button == Button1) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_LEFT, GLFW_PRESS, mods); - else if (event->xbutton.button == Button2) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_MIDDLE, GLFW_PRESS, mods); - else if (event->xbutton.button == Button3) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_RIGHT, GLFW_PRESS, mods); - - // Modern X provides scroll events as mouse button presses - else if (event->xbutton.button == Button4) - _glfwInputScroll(window, 0.0, 1.0); - else if (event->xbutton.button == Button5) - _glfwInputScroll(window, 0.0, -1.0); - else if (event->xbutton.button == Button6) - _glfwInputScroll(window, 1.0, 0.0); - else if (event->xbutton.button == Button7) - _glfwInputScroll(window, -1.0, 0.0); - - else - { - // Additional buttons after 7 are treated as regular buttons - // We subtract 4 to fill the gap left by scroll input above - _glfwInputMouseClick(window, - event->xbutton.button - Button1 - 4, - GLFW_PRESS, - mods); - } - - return; - } - - case ButtonRelease: - { - const int mods = translateState(event->xbutton.state); - - if (event->xbutton.button == Button1) - { - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_LEFT, - GLFW_RELEASE, - mods); - } - else if (event->xbutton.button == Button2) - { - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_MIDDLE, - GLFW_RELEASE, - mods); - } - else if (event->xbutton.button == Button3) - { - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_RIGHT, - GLFW_RELEASE, - mods); - } - else if (event->xbutton.button > Button7) - { - // Additional buttons after 7 are treated as regular buttons - // We subtract 4 to fill the gap left by scroll input above - _glfwInputMouseClick(window, - event->xbutton.button - Button1 - 4, - GLFW_RELEASE, - mods); - } - - return; - } - - case EnterNotify: - { - // HACK: This is a workaround for WMs (KWM, Fluxbox) that otherwise - // ignore the defined cursor for hidden cursor mode - if (window->cursorMode == GLFW_CURSOR_HIDDEN) - hideCursor(window); - - _glfwInputCursorEnter(window, GL_TRUE); - return; - } - - case LeaveNotify: - { - _glfwInputCursorEnter(window, GL_FALSE); - return; - } - - case MotionNotify: - { - const int x = event->xmotion.x; - const int y = event->xmotion.y; - - if (x != window->x11.warpPosX || y != window->x11.warpPosY) - { - // The cursor was moved by something other than GLFW - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (_glfw.cursorWindow != window) - return; - - _glfwInputCursorMotion(window, - x - window->x11.cursorPosX, - y - window->x11.cursorPosY); - } - else - _glfwInputCursorMotion(window, x, y); - } - - window->x11.cursorPosX = x; - window->x11.cursorPosY = y; - return; - } - - case ConfigureNotify: - { - if (event->xconfigure.width != window->x11.width || - event->xconfigure.height != window->x11.height) - { - _glfwInputFramebufferSize(window, - event->xconfigure.width, - event->xconfigure.height); - - _glfwInputWindowSize(window, - event->xconfigure.width, - event->xconfigure.height); - - window->x11.width = event->xconfigure.width; - window->x11.height = event->xconfigure.height; - } - - if (event->xconfigure.x != window->x11.xpos || - event->xconfigure.y != window->x11.ypos) - { - _glfwInputWindowPos(window, - event->xconfigure.x, - event->xconfigure.y); - - window->x11.xpos = event->xconfigure.x; - window->x11.ypos = event->xconfigure.y; - } - - return; - } - - case ClientMessage: - { - // Custom client message, probably from the window manager - - if (filtered) - return; - - if (event->xclient.message_type == None) - return; - - if (event->xclient.message_type == _glfw.x11.WM_PROTOCOLS) - { - const Atom protocol = event->xclient.data.l[0]; - if (protocol == None) - return; - - if (protocol == _glfw.x11.WM_DELETE_WINDOW) - { - // The window manager was asked to close the window, for example by - // the user pressing a 'close' window decoration button - _glfwInputWindowCloseRequest(window); - } - else if (protocol == _glfw.x11.NET_WM_PING) - { - // The window manager is pinging the application to ensure it's - // still responding to events - - XEvent reply = *event; - reply.xclient.window = _glfw.x11.root; - - XSendEvent(_glfw.x11.display, _glfw.x11.root, - False, - SubstructureNotifyMask | SubstructureRedirectMask, - &reply); - } - } - else if (event->xclient.message_type == _glfw.x11.XdndEnter) - { - // A drag operation has entered the window - // TODO: Check if UTF-8 string is supported by the source - } - else if (event->xclient.message_type == _glfw.x11.XdndDrop) - { - // The drag operation has finished dropping on - // the window, ask to convert it to a UTF-8 string - _glfw.x11.xdnd.source = event->xclient.data.l[0]; - XConvertSelection(_glfw.x11.display, - _glfw.x11.XdndSelection, - _glfw.x11.UTF8_STRING, - _glfw.x11.XdndSelection, - window->x11.handle, CurrentTime); - } - else if (event->xclient.message_type == _glfw.x11.XdndPosition) - { - // The drag operation has moved over the window - const int absX = (event->xclient.data.l[2] >> 16) & 0xFFFF; - const int absY = (event->xclient.data.l[2]) & 0xFFFF; - int x, y; - - _glfwPlatformGetWindowPos(window, &x, &y); - _glfwInputCursorMotion(window, absX - x, absY - y); - - // Reply that we are ready to copy the dragged data - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.type = ClientMessage; - reply.xclient.window = event->xclient.data.l[0]; - reply.xclient.message_type = _glfw.x11.XdndStatus; - reply.xclient.format = 32; - reply.xclient.data.l[0] = window->x11.handle; - reply.xclient.data.l[1] = 1; // Always accept the dnd with no rectangle - reply.xclient.data.l[2] = 0; // Specify an empty rectangle - reply.xclient.data.l[3] = 0; - reply.xclient.data.l[4] = _glfw.x11.XdndActionCopy; - - XSendEvent(_glfw.x11.display, event->xclient.data.l[0], - False, NoEventMask, &reply); - XFlush(_glfw.x11.display); - } - - return; - } - - case SelectionNotify: - { - if (event->xselection.property) - { - // The converted data from the drag operation has arrived - char* data; - const int result = - _glfwGetWindowProperty(event->xselection.requestor, - event->xselection.property, - event->xselection.target, - (unsigned char**) &data); - - if (result) - { - int i, count; - char** paths = parseUriList(data, &count); - - _glfwInputDrop(window, count, (const char**) paths); - - for (i = 0; i < count; i++) - free(paths[i]); - free(paths); - } - - XFree(data); - - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.type = ClientMessage; - reply.xclient.window = _glfw.x11.xdnd.source; - reply.xclient.message_type = _glfw.x11.XdndFinished; - reply.xclient.format = 32; - reply.xclient.data.l[0] = window->x11.handle; - reply.xclient.data.l[1] = result; - reply.xclient.data.l[2] = _glfw.x11.XdndActionCopy; - - // Reply that all is well - XSendEvent(_glfw.x11.display, _glfw.x11.xdnd.source, - False, NoEventMask, &reply); - XFlush(_glfw.x11.display); - } - - return; - } - - case FocusIn: - { - if (event->xfocus.mode == NotifyGrab || - event->xfocus.mode == NotifyUngrab) - { - // Ignore focus events from popup indicator windows, window menu - // key chords and window dragging - return; - } - - if (window->x11.ic) - XSetICFocus(window->x11.ic); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - disableCursor(window); - - _glfwInputWindowFocus(window, GL_TRUE); - return; - } - - case FocusOut: - { - if (event->xfocus.mode == NotifyGrab || - event->xfocus.mode == NotifyUngrab) - { - // Ignore focus events from popup indicator windows, window menu - // key chords and window dragging - return; - } - - if (window->x11.ic) - XUnsetICFocus(window->x11.ic); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - restoreCursor(window); - - if (window->monitor && window->autoIconify) - _glfwPlatformIconifyWindow(window); - - _glfwInputWindowFocus(window, GL_FALSE); - return; - } - - case Expose: - { - _glfwInputWindowDamage(window); - return; - } - - case PropertyNotify: - { - if (event->xproperty.atom == _glfw.x11.WM_STATE && - event->xproperty.state == PropertyNewValue) - { - const int state = getWindowState(window); - if (state == IconicState) - { - if (window->monitor) - leaveFullscreenMode(window); - - _glfwInputWindowIconify(window, GL_TRUE); - } - else if (state == NormalState) - { - if (window->monitor) - enterFullscreenMode(window); - - _glfwInputWindowIconify(window, GL_FALSE); - } - } - - return; - } - - case SelectionClear: - { - handleSelectionClear(event); - return; - } - - case SelectionRequest: - { - handleSelectionRequest(event); - return; - } - - case DestroyNotify: - return; - -#if defined(_GLFW_HAS_XINPUT) - case GenericEvent: - { - if (event->xcookie.extension == _glfw.x11.xi.majorOpcode && - XGetEventData(_glfw.x11.display, &event->xcookie)) - { - if (event->xcookie.evtype == XI_Motion) - { - XIDeviceEvent* data = (XIDeviceEvent*) event->xcookie.data; - - window = findWindowByHandle(data->event); - if (window) - { - if (data->event_x != window->x11.warpPosX || - data->event_y != window->x11.warpPosY) - { - // The cursor was moved by something other than GLFW - - double x, y; - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (_glfw.cursorWindow != window) - return; - - x = data->event_x - window->x11.cursorPosX; - y = data->event_y - window->x11.cursorPosY; - } - else - { - x = data->event_x; - y = data->event_y; - } - - _glfwInputCursorMotion(window, x, y); - } - - window->x11.cursorPosX = data->event_x; - window->x11.cursorPosY = data->event_y; - } - } - } - - XFreeEventData(_glfw.x11.display, &event->xcookie); - return; - } -#endif /*_GLFW_HAS_XINPUT*/ - } - - if (event->type - _glfw.x11.randr.eventBase == RRScreenChangeNotify) - { - XRRUpdateConfiguration(event); - return; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Retrieve a single window property of the specified type -// Inspired by fghGetWindowProperty from freeglut -// -unsigned long _glfwGetWindowProperty(Window window, - Atom property, - Atom type, - unsigned char** value) -{ - Atom actualType; - int actualFormat; - unsigned long itemCount, bytesAfter; - - XGetWindowProperty(_glfw.x11.display, - window, - property, - 0, - LONG_MAX, - False, - type, - &actualType, - &actualFormat, - &itemCount, - &bytesAfter, - value); - - if (type != AnyPropertyType && actualType != type) - return 0; - - return itemCount; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!_glfwCreateContext(window, ctxconfig, fbconfig)) - return GL_FALSE; - - if (!createWindow(window, wndconfig)) - return GL_FALSE; - - if (wndconfig->monitor) - { - _glfwPlatformShowWindow(window); - enterFullscreenMode(window); - } - - return GL_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (window->monitor) - leaveFullscreenMode(window); - - if (window->x11.ic) - { - XDestroyIC(window->x11.ic); - window->x11.ic = NULL; - } - - _glfwDestroyContext(window); - - if (window->x11.handle) - { - if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == - window->x11.handle) - { - pushSelectionToManager(window); - } - - XDeleteContext(_glfw.x11.display, window->x11.handle, _glfw.x11.context); - XUnmapWindow(_glfw.x11.display, window->x11.handle); - XDestroyWindow(_glfw.x11.display, window->x11.handle); - window->x11.handle = (Window) 0; - } - - if (window->x11.colormap) - { - XFreeColormap(_glfw.x11.display, window->x11.colormap); - window->x11.colormap = (Colormap) 0; - } - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ -#if defined(X_HAVE_UTF8_STRING) - Xutf8SetWMProperties(_glfw.x11.display, - window->x11.handle, - title, title, - NULL, 0, - NULL, NULL, NULL); -#else - // This may be a slightly better fallback than using XStoreName and - // XSetIconName, which always store their arguments using STRING - XmbSetWMProperties(_glfw.x11.display, - window->x11.handle, - title, title, - NULL, 0, - NULL, NULL, NULL); -#endif - - if (_glfw.x11.NET_WM_NAME) - { - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_NAME, _glfw.x11.UTF8_STRING, 8, - PropModeReplace, - (unsigned char*) title, strlen(title)); - } - - if (_glfw.x11.NET_WM_ICON_NAME) - { - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_ICON_NAME, _glfw.x11.UTF8_STRING, 8, - PropModeReplace, - (unsigned char*) title, strlen(title)); - } - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - Window child; - int x, y; - - XTranslateCoordinates(_glfw.x11.display, window->x11.handle, _glfw.x11.root, - 0, 0, &x, &y, &child); - - if (child) - { - int left, top; - XTranslateCoordinates(_glfw.x11.display, window->x11.handle, child, - 0, 0, &left, &top, &child); - - x -= left; - y -= top; - } - - if (xpos) - *xpos = x; - if (ypos) - *ypos = y; -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - XMoveWindow(_glfw.x11.display, window->x11.handle, xpos, ypos); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - XWindowAttributes attribs; - XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &attribs); - - if (width) - *width = attribs.width; - if (height) - *height = attribs.height; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->monitor) - { - _glfwSetVideoMode(window->monitor, &window->videoMode); - - if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_FULLSCREEN) - { - GLFWvidmode mode; - _glfwPlatformGetVideoMode(window->monitor, &mode); - XResizeWindow(_glfw.x11.display, window->x11.handle, - mode.width, mode.height); - } - } - else - { - if (!window->resizable) - { - // Update window size restrictions to match new window size - - XSizeHints* hints = XAllocSizeHints(); - - hints->flags |= (PMinSize | PMaxSize); - hints->min_width = hints->max_width = width; - hints->min_height = hints->max_height = height; - - XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); - XFree(hints); - } - - XResizeWindow(_glfw.x11.display, window->x11.handle, width, height); - } - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - _glfwPlatformGetWindowSize(window, width, height); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - long* extents = NULL; - - if (_glfw.x11.NET_FRAME_EXTENTS == None) - return; - - if (!_glfwPlatformWindowVisible(window) && - _glfw.x11.NET_REQUEST_FRAME_EXTENTS) - { - double base; - XEvent event; - - // Ensure _NET_FRAME_EXTENTS is set, allowing glfwGetWindowFrameSize to - // function before the window is mapped - sendEventToWM(window, _glfw.x11.NET_REQUEST_FRAME_EXTENTS, - 0, 0, 0, 0, 0); - - // HACK: Poll with timeout for the required reply instead of blocking - // This is done because some window managers (at least Unity, - // Fluxbox and Xfwm) failed to send the required reply - // They have been fixed but broken versions are still in the wild - // If you are affected by this and your window manager is NOT - // listed above, PLEASE report it to their and our issue trackers - base = _glfwPlatformGetTime(); - while (!XCheckIfEvent(_glfw.x11.display, - &event, - isFrameExtentsEvent, - (XPointer) window)) - { - double remaining; - struct timeval timeout; - - remaining = 0.5 + base - _glfwPlatformGetTime(); - if (remaining <= 0.0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: The window manager has a broken _NET_REQUEST_FRAME_EXTENTS implementation; please report this issue"); - return; - } - - timeout.tv_sec = 0; - timeout.tv_usec = (long) (remaining * 1e6); - selectDisplayConnection(&timeout); - } - } - - if (_glfwGetWindowProperty(window->x11.handle, - _glfw.x11.NET_FRAME_EXTENTS, - XA_CARDINAL, - (unsigned char**) &extents) == 4) - { - if (left) - *left = extents[0]; - if (top) - *top = extents[2]; - if (right) - *right = extents[1]; - if (bottom) - *bottom = extents[3]; - } - - if (extents) - XFree(extents); -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_FULLSCREEN) - { - // Override-redirect windows cannot be iconified or restored, as those - // tasks are performed by the window manager - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Iconification of full screen windows requires a WM that supports EWMH full screen"); - return; - } - - XIconifyWindow(_glfw.x11.display, window->x11.handle, _glfw.x11.screen); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_FULLSCREEN) - { - // Override-redirect windows cannot be iconified or restored, as those - // tasks are performed by the window manager - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Iconification of full screen windows requires a WM that supports EWMH full screen"); - return; - } - - XMapWindow(_glfw.x11.display, window->x11.handle); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - XMapRaised(_glfw.x11.display, window->x11.handle); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformUnhideWindow(_GLFWwindow* window) -{ - XMapWindow(_glfw.x11.display, window->x11.handle); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - XUnmapWindow(_glfw.x11.display, window->x11.handle); - XFlush(_glfw.x11.display); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - Window focused; - int state; - - XGetInputFocus(_glfw.x11.display, &focused, &state); - return window->x11.handle == focused; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - return getWindowState(window) == IconicState; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - XWindowAttributes wa; - XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &wa); - return wa.map_state == IsViewable; -} - -void _glfwPlatformPollEvents(void) -{ - int count = XPending(_glfw.x11.display); - while (count--) - { - XEvent event; - XNextEvent(_glfw.x11.display, &event); - processEvent(&event); - } - - _GLFWwindow* window = _glfw.cursorWindow; - if (window && window->cursorMode == GLFW_CURSOR_DISABLED) - { - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2, height / 2); - } -} - -void _glfwPlatformWaitEvents(void) -{ - while (!XPending(_glfw.x11.display)) - selectDisplayConnection(NULL); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - XEvent event; - _GLFWwindow* window = _glfw.windowListHead; - - memset(&event, 0, sizeof(event)); - event.type = ClientMessage; - event.xclient.window = window->x11.handle; - event.xclient.format = 32; // Data is 32-bit longs - event.xclient.message_type = _glfw.x11.NULL_; - - XSendEvent(_glfw.x11.display, window->x11.handle, False, 0, &event); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - Window root, child; - int rootX, rootY, childX, childY; - unsigned int mask; - - XQueryPointer(_glfw.x11.display, window->x11.handle, - &root, &child, - &rootX, &rootY, &childX, &childY, - &mask); - - if (xpos) - *xpos = childX; - if (ypos) - *ypos = childY; -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) -{ - // Store the new position so it can be recognized later - window->x11.warpPosX = (int) x; - window->x11.warpPosY = (int) y; - - XWarpPointer(_glfw.x11.display, None, window->x11.handle, - 0,0,0,0, (int) x, (int) y); -} - -void _glfwPlatformApplyCursorMode(_GLFWwindow* window) -{ - switch (window->cursorMode) - { - case GLFW_CURSOR_NORMAL: - restoreCursor(window); - break; - case GLFW_CURSOR_HIDDEN: - hideCursor(window); - break; - case GLFW_CURSOR_DISABLED: - disableCursor(window); - break; - } -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - cursor->x11.handle = _glfwCreateCursor(image, xhot, yhot); - if (!cursor->x11.handle) - return GL_FALSE; - - return GL_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - cursor->x11.handle = XCreateFontCursor(_glfw.x11.display, - translateCursorShape(shape)); - if (!cursor->x11.handle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to create standard cursor"); - return GL_FALSE; - } - - return GL_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->x11.handle) - XFreeCursor(_glfw.x11.display, cursor->x11.handle); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (cursor) - XDefineCursor(_glfw.x11.display, window->x11.handle, cursor->x11.handle); - else - XUndefineCursor(_glfw.x11.display, window->x11.handle); - - XFlush(_glfw.x11.display); - } -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - free(_glfw.x11.clipboardString); - _glfw.x11.clipboardString = strdup(string); - - XSetSelectionOwner(_glfw.x11.display, - _glfw.x11.CLIPBOARD, - window->x11.handle, CurrentTime); - - if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) != - window->x11.handle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to become owner of clipboard selection"); - } -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - size_t i; - const Atom formats[] = { _glfw.x11.UTF8_STRING, - _glfw.x11.COMPOUND_STRING, - XA_STRING }; - const size_t formatCount = sizeof(formats) / sizeof(formats[0]); - - if (findWindowByHandle(XGetSelectionOwner(_glfw.x11.display, - _glfw.x11.CLIPBOARD))) - { - // Instead of doing a large number of X round-trips just to put this - // string into a window property and then read it back, just return it - return _glfw.x11.clipboardString; - } - - free(_glfw.x11.clipboardString); - _glfw.x11.clipboardString = NULL; - - for (i = 0; i < formatCount; i++) - { - char* data; - XEvent event; - - XConvertSelection(_glfw.x11.display, - _glfw.x11.CLIPBOARD, - formats[i], - _glfw.x11.GLFW_SELECTION, - window->x11.handle, CurrentTime); - - // XCheckTypedEvent is used instead of XIfEvent in order not to lock - // other threads out from the display during the entire wait period - while (!XCheckTypedEvent(_glfw.x11.display, SelectionNotify, &event)) - selectDisplayConnection(NULL); - - if (event.xselection.property == None) - continue; - - if (_glfwGetWindowProperty(event.xselection.requestor, - event.xselection.property, - event.xselection.target, - (unsigned char**) &data)) - { - _glfw.x11.clipboardString = strdup(data); - } - - XFree(data); - - XDeleteProperty(_glfw.x11.display, - event.xselection.requestor, - event.xselection.property); - - if (_glfw.x11.clipboardString) - break; - } - - if (_glfw.x11.clipboardString == NULL) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "X11: Failed to convert clipboard to string"); - } - - return _glfw.x11.clipboardString; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI Display* glfwGetX11Display(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfw.x11.display; -} - -GLFWAPI Window glfwGetX11Window(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - return window->x11.handle; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/xkb_unicode.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/xkb_unicode.c deleted file mode 100644 index fbc25a2..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/xkb_unicode.c +++ /dev/null @@ -1,889 +0,0 @@ -//======================================================================== -// GLFW 3.1 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2010 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -/* - * Marcus: This code was originally written by Markus G. Kuhn. - * I have made some slight changes (trimmed it down a bit from >60 KB to - * 20 KB), but the functionality is the same. - */ - -/* - * This module converts keysym values into the corresponding ISO 10646 - * (UCS, Unicode) values. - * - * The array keysymtab[] contains pairs of X11 keysym values for graphical - * characters and the corresponding Unicode value. The function - * _glfwKeySym2Unicode() maps a keysym onto a Unicode value using a binary - * search, therefore keysymtab[] must remain SORTED by keysym value. - * - * We allow to represent any UCS character in the range U-00000000 to - * U-00FFFFFF by a keysym value in the range 0x01000000 to 0x01ffffff. - * This admittedly does not cover the entire 31-bit space of UCS, but - * it does cover all of the characters up to U-10FFFF, which can be - * represented by UTF-16, and more, and it is very unlikely that higher - * UCS codes will ever be assigned by ISO. So to get Unicode character - * U+ABCD you can directly use keysym 0x0100abcd. - * - * Original author: Markus G. Kuhn , University of - * Cambridge, April 2001 - * - * Special thanks to Richard Verhoeven for preparing - * an initial draft of the mapping table. - * - */ - - -//************************************************************************ -//**** KeySym to Unicode mapping table **** -//************************************************************************ - -static const struct codepair { - unsigned short keysym; - unsigned short ucs; -} keysymtab[] = { - { 0x01a1, 0x0104 }, - { 0x01a2, 0x02d8 }, - { 0x01a3, 0x0141 }, - { 0x01a5, 0x013d }, - { 0x01a6, 0x015a }, - { 0x01a9, 0x0160 }, - { 0x01aa, 0x015e }, - { 0x01ab, 0x0164 }, - { 0x01ac, 0x0179 }, - { 0x01ae, 0x017d }, - { 0x01af, 0x017b }, - { 0x01b1, 0x0105 }, - { 0x01b2, 0x02db }, - { 0x01b3, 0x0142 }, - { 0x01b5, 0x013e }, - { 0x01b6, 0x015b }, - { 0x01b7, 0x02c7 }, - { 0x01b9, 0x0161 }, - { 0x01ba, 0x015f }, - { 0x01bb, 0x0165 }, - { 0x01bc, 0x017a }, - { 0x01bd, 0x02dd }, - { 0x01be, 0x017e }, - { 0x01bf, 0x017c }, - { 0x01c0, 0x0154 }, - { 0x01c3, 0x0102 }, - { 0x01c5, 0x0139 }, - { 0x01c6, 0x0106 }, - { 0x01c8, 0x010c }, - { 0x01ca, 0x0118 }, - { 0x01cc, 0x011a }, - { 0x01cf, 0x010e }, - { 0x01d0, 0x0110 }, - { 0x01d1, 0x0143 }, - { 0x01d2, 0x0147 }, - { 0x01d5, 0x0150 }, - { 0x01d8, 0x0158 }, - { 0x01d9, 0x016e }, - { 0x01db, 0x0170 }, - { 0x01de, 0x0162 }, - { 0x01e0, 0x0155 }, - { 0x01e3, 0x0103 }, - { 0x01e5, 0x013a }, - { 0x01e6, 0x0107 }, - { 0x01e8, 0x010d }, - { 0x01ea, 0x0119 }, - { 0x01ec, 0x011b }, - { 0x01ef, 0x010f }, - { 0x01f0, 0x0111 }, - { 0x01f1, 0x0144 }, - { 0x01f2, 0x0148 }, - { 0x01f5, 0x0151 }, - { 0x01f8, 0x0159 }, - { 0x01f9, 0x016f }, - { 0x01fb, 0x0171 }, - { 0x01fe, 0x0163 }, - { 0x01ff, 0x02d9 }, - { 0x02a1, 0x0126 }, - { 0x02a6, 0x0124 }, - { 0x02a9, 0x0130 }, - { 0x02ab, 0x011e }, - { 0x02ac, 0x0134 }, - { 0x02b1, 0x0127 }, - { 0x02b6, 0x0125 }, - { 0x02b9, 0x0131 }, - { 0x02bb, 0x011f }, - { 0x02bc, 0x0135 }, - { 0x02c5, 0x010a }, - { 0x02c6, 0x0108 }, - { 0x02d5, 0x0120 }, - { 0x02d8, 0x011c }, - { 0x02dd, 0x016c }, - { 0x02de, 0x015c }, - { 0x02e5, 0x010b }, - { 0x02e6, 0x0109 }, - { 0x02f5, 0x0121 }, - { 0x02f8, 0x011d }, - { 0x02fd, 0x016d }, - { 0x02fe, 0x015d }, - { 0x03a2, 0x0138 }, - { 0x03a3, 0x0156 }, - { 0x03a5, 0x0128 }, - { 0x03a6, 0x013b }, - { 0x03aa, 0x0112 }, - { 0x03ab, 0x0122 }, - { 0x03ac, 0x0166 }, - { 0x03b3, 0x0157 }, - { 0x03b5, 0x0129 }, - { 0x03b6, 0x013c }, - { 0x03ba, 0x0113 }, - { 0x03bb, 0x0123 }, - { 0x03bc, 0x0167 }, - { 0x03bd, 0x014a }, - { 0x03bf, 0x014b }, - { 0x03c0, 0x0100 }, - { 0x03c7, 0x012e }, - { 0x03cc, 0x0116 }, - { 0x03cf, 0x012a }, - { 0x03d1, 0x0145 }, - { 0x03d2, 0x014c }, - { 0x03d3, 0x0136 }, - { 0x03d9, 0x0172 }, - { 0x03dd, 0x0168 }, - { 0x03de, 0x016a }, - { 0x03e0, 0x0101 }, - { 0x03e7, 0x012f }, - { 0x03ec, 0x0117 }, - { 0x03ef, 0x012b }, - { 0x03f1, 0x0146 }, - { 0x03f2, 0x014d }, - { 0x03f3, 0x0137 }, - { 0x03f9, 0x0173 }, - { 0x03fd, 0x0169 }, - { 0x03fe, 0x016b }, - { 0x047e, 0x203e }, - { 0x04a1, 0x3002 }, - { 0x04a2, 0x300c }, - { 0x04a3, 0x300d }, - { 0x04a4, 0x3001 }, - { 0x04a5, 0x30fb }, - { 0x04a6, 0x30f2 }, - { 0x04a7, 0x30a1 }, - { 0x04a8, 0x30a3 }, - { 0x04a9, 0x30a5 }, - { 0x04aa, 0x30a7 }, - { 0x04ab, 0x30a9 }, - { 0x04ac, 0x30e3 }, - { 0x04ad, 0x30e5 }, - { 0x04ae, 0x30e7 }, - { 0x04af, 0x30c3 }, - { 0x04b0, 0x30fc }, - { 0x04b1, 0x30a2 }, - { 0x04b2, 0x30a4 }, - { 0x04b3, 0x30a6 }, - { 0x04b4, 0x30a8 }, - { 0x04b5, 0x30aa }, - { 0x04b6, 0x30ab }, - { 0x04b7, 0x30ad }, - { 0x04b8, 0x30af }, - { 0x04b9, 0x30b1 }, - { 0x04ba, 0x30b3 }, - { 0x04bb, 0x30b5 }, - { 0x04bc, 0x30b7 }, - { 0x04bd, 0x30b9 }, - { 0x04be, 0x30bb }, - { 0x04bf, 0x30bd }, - { 0x04c0, 0x30bf }, - { 0x04c1, 0x30c1 }, - { 0x04c2, 0x30c4 }, - { 0x04c3, 0x30c6 }, - { 0x04c4, 0x30c8 }, - { 0x04c5, 0x30ca }, - { 0x04c6, 0x30cb }, - { 0x04c7, 0x30cc }, - { 0x04c8, 0x30cd }, - { 0x04c9, 0x30ce }, - { 0x04ca, 0x30cf }, - { 0x04cb, 0x30d2 }, - { 0x04cc, 0x30d5 }, - { 0x04cd, 0x30d8 }, - { 0x04ce, 0x30db }, - { 0x04cf, 0x30de }, - { 0x04d0, 0x30df }, - { 0x04d1, 0x30e0 }, - { 0x04d2, 0x30e1 }, - { 0x04d3, 0x30e2 }, - { 0x04d4, 0x30e4 }, - { 0x04d5, 0x30e6 }, - { 0x04d6, 0x30e8 }, - { 0x04d7, 0x30e9 }, - { 0x04d8, 0x30ea }, - { 0x04d9, 0x30eb }, - { 0x04da, 0x30ec }, - { 0x04db, 0x30ed }, - { 0x04dc, 0x30ef }, - { 0x04dd, 0x30f3 }, - { 0x04de, 0x309b }, - { 0x04df, 0x309c }, - { 0x05ac, 0x060c }, - { 0x05bb, 0x061b }, - { 0x05bf, 0x061f }, - { 0x05c1, 0x0621 }, - { 0x05c2, 0x0622 }, - { 0x05c3, 0x0623 }, - { 0x05c4, 0x0624 }, - { 0x05c5, 0x0625 }, - { 0x05c6, 0x0626 }, - { 0x05c7, 0x0627 }, - { 0x05c8, 0x0628 }, - { 0x05c9, 0x0629 }, - { 0x05ca, 0x062a }, - { 0x05cb, 0x062b }, - { 0x05cc, 0x062c }, - { 0x05cd, 0x062d }, - { 0x05ce, 0x062e }, - { 0x05cf, 0x062f }, - { 0x05d0, 0x0630 }, - { 0x05d1, 0x0631 }, - { 0x05d2, 0x0632 }, - { 0x05d3, 0x0633 }, - { 0x05d4, 0x0634 }, - { 0x05d5, 0x0635 }, - { 0x05d6, 0x0636 }, - { 0x05d7, 0x0637 }, - { 0x05d8, 0x0638 }, - { 0x05d9, 0x0639 }, - { 0x05da, 0x063a }, - { 0x05e0, 0x0640 }, - { 0x05e1, 0x0641 }, - { 0x05e2, 0x0642 }, - { 0x05e3, 0x0643 }, - { 0x05e4, 0x0644 }, - { 0x05e5, 0x0645 }, - { 0x05e6, 0x0646 }, - { 0x05e7, 0x0647 }, - { 0x05e8, 0x0648 }, - { 0x05e9, 0x0649 }, - { 0x05ea, 0x064a }, - { 0x05eb, 0x064b }, - { 0x05ec, 0x064c }, - { 0x05ed, 0x064d }, - { 0x05ee, 0x064e }, - { 0x05ef, 0x064f }, - { 0x05f0, 0x0650 }, - { 0x05f1, 0x0651 }, - { 0x05f2, 0x0652 }, - { 0x06a1, 0x0452 }, - { 0x06a2, 0x0453 }, - { 0x06a3, 0x0451 }, - { 0x06a4, 0x0454 }, - { 0x06a5, 0x0455 }, - { 0x06a6, 0x0456 }, - { 0x06a7, 0x0457 }, - { 0x06a8, 0x0458 }, - { 0x06a9, 0x0459 }, - { 0x06aa, 0x045a }, - { 0x06ab, 0x045b }, - { 0x06ac, 0x045c }, - { 0x06ae, 0x045e }, - { 0x06af, 0x045f }, - { 0x06b0, 0x2116 }, - { 0x06b1, 0x0402 }, - { 0x06b2, 0x0403 }, - { 0x06b3, 0x0401 }, - { 0x06b4, 0x0404 }, - { 0x06b5, 0x0405 }, - { 0x06b6, 0x0406 }, - { 0x06b7, 0x0407 }, - { 0x06b8, 0x0408 }, - { 0x06b9, 0x0409 }, - { 0x06ba, 0x040a }, - { 0x06bb, 0x040b }, - { 0x06bc, 0x040c }, - { 0x06be, 0x040e }, - { 0x06bf, 0x040f }, - { 0x06c0, 0x044e }, - { 0x06c1, 0x0430 }, - { 0x06c2, 0x0431 }, - { 0x06c3, 0x0446 }, - { 0x06c4, 0x0434 }, - { 0x06c5, 0x0435 }, - { 0x06c6, 0x0444 }, - { 0x06c7, 0x0433 }, - { 0x06c8, 0x0445 }, - { 0x06c9, 0x0438 }, - { 0x06ca, 0x0439 }, - { 0x06cb, 0x043a }, - { 0x06cc, 0x043b }, - { 0x06cd, 0x043c }, - { 0x06ce, 0x043d }, - { 0x06cf, 0x043e }, - { 0x06d0, 0x043f }, - { 0x06d1, 0x044f }, - { 0x06d2, 0x0440 }, - { 0x06d3, 0x0441 }, - { 0x06d4, 0x0442 }, - { 0x06d5, 0x0443 }, - { 0x06d6, 0x0436 }, - { 0x06d7, 0x0432 }, - { 0x06d8, 0x044c }, - { 0x06d9, 0x044b }, - { 0x06da, 0x0437 }, - { 0x06db, 0x0448 }, - { 0x06dc, 0x044d }, - { 0x06dd, 0x0449 }, - { 0x06de, 0x0447 }, - { 0x06df, 0x044a }, - { 0x06e0, 0x042e }, - { 0x06e1, 0x0410 }, - { 0x06e2, 0x0411 }, - { 0x06e3, 0x0426 }, - { 0x06e4, 0x0414 }, - { 0x06e5, 0x0415 }, - { 0x06e6, 0x0424 }, - { 0x06e7, 0x0413 }, - { 0x06e8, 0x0425 }, - { 0x06e9, 0x0418 }, - { 0x06ea, 0x0419 }, - { 0x06eb, 0x041a }, - { 0x06ec, 0x041b }, - { 0x06ed, 0x041c }, - { 0x06ee, 0x041d }, - { 0x06ef, 0x041e }, - { 0x06f0, 0x041f }, - { 0x06f1, 0x042f }, - { 0x06f2, 0x0420 }, - { 0x06f3, 0x0421 }, - { 0x06f4, 0x0422 }, - { 0x06f5, 0x0423 }, - { 0x06f6, 0x0416 }, - { 0x06f7, 0x0412 }, - { 0x06f8, 0x042c }, - { 0x06f9, 0x042b }, - { 0x06fa, 0x0417 }, - { 0x06fb, 0x0428 }, - { 0x06fc, 0x042d }, - { 0x06fd, 0x0429 }, - { 0x06fe, 0x0427 }, - { 0x06ff, 0x042a }, - { 0x07a1, 0x0386 }, - { 0x07a2, 0x0388 }, - { 0x07a3, 0x0389 }, - { 0x07a4, 0x038a }, - { 0x07a5, 0x03aa }, - { 0x07a7, 0x038c }, - { 0x07a8, 0x038e }, - { 0x07a9, 0x03ab }, - { 0x07ab, 0x038f }, - { 0x07ae, 0x0385 }, - { 0x07af, 0x2015 }, - { 0x07b1, 0x03ac }, - { 0x07b2, 0x03ad }, - { 0x07b3, 0x03ae }, - { 0x07b4, 0x03af }, - { 0x07b5, 0x03ca }, - { 0x07b6, 0x0390 }, - { 0x07b7, 0x03cc }, - { 0x07b8, 0x03cd }, - { 0x07b9, 0x03cb }, - { 0x07ba, 0x03b0 }, - { 0x07bb, 0x03ce }, - { 0x07c1, 0x0391 }, - { 0x07c2, 0x0392 }, - { 0x07c3, 0x0393 }, - { 0x07c4, 0x0394 }, - { 0x07c5, 0x0395 }, - { 0x07c6, 0x0396 }, - { 0x07c7, 0x0397 }, - { 0x07c8, 0x0398 }, - { 0x07c9, 0x0399 }, - { 0x07ca, 0x039a }, - { 0x07cb, 0x039b }, - { 0x07cc, 0x039c }, - { 0x07cd, 0x039d }, - { 0x07ce, 0x039e }, - { 0x07cf, 0x039f }, - { 0x07d0, 0x03a0 }, - { 0x07d1, 0x03a1 }, - { 0x07d2, 0x03a3 }, - { 0x07d4, 0x03a4 }, - { 0x07d5, 0x03a5 }, - { 0x07d6, 0x03a6 }, - { 0x07d7, 0x03a7 }, - { 0x07d8, 0x03a8 }, - { 0x07d9, 0x03a9 }, - { 0x07e1, 0x03b1 }, - { 0x07e2, 0x03b2 }, - { 0x07e3, 0x03b3 }, - { 0x07e4, 0x03b4 }, - { 0x07e5, 0x03b5 }, - { 0x07e6, 0x03b6 }, - { 0x07e7, 0x03b7 }, - { 0x07e8, 0x03b8 }, - { 0x07e9, 0x03b9 }, - { 0x07ea, 0x03ba }, - { 0x07eb, 0x03bb }, - { 0x07ec, 0x03bc }, - { 0x07ed, 0x03bd }, - { 0x07ee, 0x03be }, - { 0x07ef, 0x03bf }, - { 0x07f0, 0x03c0 }, - { 0x07f1, 0x03c1 }, - { 0x07f2, 0x03c3 }, - { 0x07f3, 0x03c2 }, - { 0x07f4, 0x03c4 }, - { 0x07f5, 0x03c5 }, - { 0x07f6, 0x03c6 }, - { 0x07f7, 0x03c7 }, - { 0x07f8, 0x03c8 }, - { 0x07f9, 0x03c9 }, - { 0x08a1, 0x23b7 }, - { 0x08a2, 0x250c }, - { 0x08a3, 0x2500 }, - { 0x08a4, 0x2320 }, - { 0x08a5, 0x2321 }, - { 0x08a6, 0x2502 }, - { 0x08a7, 0x23a1 }, - { 0x08a8, 0x23a3 }, - { 0x08a9, 0x23a4 }, - { 0x08aa, 0x23a6 }, - { 0x08ab, 0x239b }, - { 0x08ac, 0x239d }, - { 0x08ad, 0x239e }, - { 0x08ae, 0x23a0 }, - { 0x08af, 0x23a8 }, - { 0x08b0, 0x23ac }, - { 0x08bc, 0x2264 }, - { 0x08bd, 0x2260 }, - { 0x08be, 0x2265 }, - { 0x08bf, 0x222b }, - { 0x08c0, 0x2234 }, - { 0x08c1, 0x221d }, - { 0x08c2, 0x221e }, - { 0x08c5, 0x2207 }, - { 0x08c8, 0x223c }, - { 0x08c9, 0x2243 }, - { 0x08cd, 0x21d4 }, - { 0x08ce, 0x21d2 }, - { 0x08cf, 0x2261 }, - { 0x08d6, 0x221a }, - { 0x08da, 0x2282 }, - { 0x08db, 0x2283 }, - { 0x08dc, 0x2229 }, - { 0x08dd, 0x222a }, - { 0x08de, 0x2227 }, - { 0x08df, 0x2228 }, - { 0x08ef, 0x2202 }, - { 0x08f6, 0x0192 }, - { 0x08fb, 0x2190 }, - { 0x08fc, 0x2191 }, - { 0x08fd, 0x2192 }, - { 0x08fe, 0x2193 }, - { 0x09e0, 0x25c6 }, - { 0x09e1, 0x2592 }, - { 0x09e2, 0x2409 }, - { 0x09e3, 0x240c }, - { 0x09e4, 0x240d }, - { 0x09e5, 0x240a }, - { 0x09e8, 0x2424 }, - { 0x09e9, 0x240b }, - { 0x09ea, 0x2518 }, - { 0x09eb, 0x2510 }, - { 0x09ec, 0x250c }, - { 0x09ed, 0x2514 }, - { 0x09ee, 0x253c }, - { 0x09ef, 0x23ba }, - { 0x09f0, 0x23bb }, - { 0x09f1, 0x2500 }, - { 0x09f2, 0x23bc }, - { 0x09f3, 0x23bd }, - { 0x09f4, 0x251c }, - { 0x09f5, 0x2524 }, - { 0x09f6, 0x2534 }, - { 0x09f7, 0x252c }, - { 0x09f8, 0x2502 }, - { 0x0aa1, 0x2003 }, - { 0x0aa2, 0x2002 }, - { 0x0aa3, 0x2004 }, - { 0x0aa4, 0x2005 }, - { 0x0aa5, 0x2007 }, - { 0x0aa6, 0x2008 }, - { 0x0aa7, 0x2009 }, - { 0x0aa8, 0x200a }, - { 0x0aa9, 0x2014 }, - { 0x0aaa, 0x2013 }, - { 0x0aae, 0x2026 }, - { 0x0aaf, 0x2025 }, - { 0x0ab0, 0x2153 }, - { 0x0ab1, 0x2154 }, - { 0x0ab2, 0x2155 }, - { 0x0ab3, 0x2156 }, - { 0x0ab4, 0x2157 }, - { 0x0ab5, 0x2158 }, - { 0x0ab6, 0x2159 }, - { 0x0ab7, 0x215a }, - { 0x0ab8, 0x2105 }, - { 0x0abb, 0x2012 }, - { 0x0abc, 0x2329 }, - { 0x0abe, 0x232a }, - { 0x0ac3, 0x215b }, - { 0x0ac4, 0x215c }, - { 0x0ac5, 0x215d }, - { 0x0ac6, 0x215e }, - { 0x0ac9, 0x2122 }, - { 0x0aca, 0x2613 }, - { 0x0acc, 0x25c1 }, - { 0x0acd, 0x25b7 }, - { 0x0ace, 0x25cb }, - { 0x0acf, 0x25af }, - { 0x0ad0, 0x2018 }, - { 0x0ad1, 0x2019 }, - { 0x0ad2, 0x201c }, - { 0x0ad3, 0x201d }, - { 0x0ad4, 0x211e }, - { 0x0ad6, 0x2032 }, - { 0x0ad7, 0x2033 }, - { 0x0ad9, 0x271d }, - { 0x0adb, 0x25ac }, - { 0x0adc, 0x25c0 }, - { 0x0add, 0x25b6 }, - { 0x0ade, 0x25cf }, - { 0x0adf, 0x25ae }, - { 0x0ae0, 0x25e6 }, - { 0x0ae1, 0x25ab }, - { 0x0ae2, 0x25ad }, - { 0x0ae3, 0x25b3 }, - { 0x0ae4, 0x25bd }, - { 0x0ae5, 0x2606 }, - { 0x0ae6, 0x2022 }, - { 0x0ae7, 0x25aa }, - { 0x0ae8, 0x25b2 }, - { 0x0ae9, 0x25bc }, - { 0x0aea, 0x261c }, - { 0x0aeb, 0x261e }, - { 0x0aec, 0x2663 }, - { 0x0aed, 0x2666 }, - { 0x0aee, 0x2665 }, - { 0x0af0, 0x2720 }, - { 0x0af1, 0x2020 }, - { 0x0af2, 0x2021 }, - { 0x0af3, 0x2713 }, - { 0x0af4, 0x2717 }, - { 0x0af5, 0x266f }, - { 0x0af6, 0x266d }, - { 0x0af7, 0x2642 }, - { 0x0af8, 0x2640 }, - { 0x0af9, 0x260e }, - { 0x0afa, 0x2315 }, - { 0x0afb, 0x2117 }, - { 0x0afc, 0x2038 }, - { 0x0afd, 0x201a }, - { 0x0afe, 0x201e }, - { 0x0ba3, 0x003c }, - { 0x0ba6, 0x003e }, - { 0x0ba8, 0x2228 }, - { 0x0ba9, 0x2227 }, - { 0x0bc0, 0x00af }, - { 0x0bc2, 0x22a5 }, - { 0x0bc3, 0x2229 }, - { 0x0bc4, 0x230a }, - { 0x0bc6, 0x005f }, - { 0x0bca, 0x2218 }, - { 0x0bcc, 0x2395 }, - { 0x0bce, 0x22a4 }, - { 0x0bcf, 0x25cb }, - { 0x0bd3, 0x2308 }, - { 0x0bd6, 0x222a }, - { 0x0bd8, 0x2283 }, - { 0x0bda, 0x2282 }, - { 0x0bdc, 0x22a2 }, - { 0x0bfc, 0x22a3 }, - { 0x0cdf, 0x2017 }, - { 0x0ce0, 0x05d0 }, - { 0x0ce1, 0x05d1 }, - { 0x0ce2, 0x05d2 }, - { 0x0ce3, 0x05d3 }, - { 0x0ce4, 0x05d4 }, - { 0x0ce5, 0x05d5 }, - { 0x0ce6, 0x05d6 }, - { 0x0ce7, 0x05d7 }, - { 0x0ce8, 0x05d8 }, - { 0x0ce9, 0x05d9 }, - { 0x0cea, 0x05da }, - { 0x0ceb, 0x05db }, - { 0x0cec, 0x05dc }, - { 0x0ced, 0x05dd }, - { 0x0cee, 0x05de }, - { 0x0cef, 0x05df }, - { 0x0cf0, 0x05e0 }, - { 0x0cf1, 0x05e1 }, - { 0x0cf2, 0x05e2 }, - { 0x0cf3, 0x05e3 }, - { 0x0cf4, 0x05e4 }, - { 0x0cf5, 0x05e5 }, - { 0x0cf6, 0x05e6 }, - { 0x0cf7, 0x05e7 }, - { 0x0cf8, 0x05e8 }, - { 0x0cf9, 0x05e9 }, - { 0x0cfa, 0x05ea }, - { 0x0da1, 0x0e01 }, - { 0x0da2, 0x0e02 }, - { 0x0da3, 0x0e03 }, - { 0x0da4, 0x0e04 }, - { 0x0da5, 0x0e05 }, - { 0x0da6, 0x0e06 }, - { 0x0da7, 0x0e07 }, - { 0x0da8, 0x0e08 }, - { 0x0da9, 0x0e09 }, - { 0x0daa, 0x0e0a }, - { 0x0dab, 0x0e0b }, - { 0x0dac, 0x0e0c }, - { 0x0dad, 0x0e0d }, - { 0x0dae, 0x0e0e }, - { 0x0daf, 0x0e0f }, - { 0x0db0, 0x0e10 }, - { 0x0db1, 0x0e11 }, - { 0x0db2, 0x0e12 }, - { 0x0db3, 0x0e13 }, - { 0x0db4, 0x0e14 }, - { 0x0db5, 0x0e15 }, - { 0x0db6, 0x0e16 }, - { 0x0db7, 0x0e17 }, - { 0x0db8, 0x0e18 }, - { 0x0db9, 0x0e19 }, - { 0x0dba, 0x0e1a }, - { 0x0dbb, 0x0e1b }, - { 0x0dbc, 0x0e1c }, - { 0x0dbd, 0x0e1d }, - { 0x0dbe, 0x0e1e }, - { 0x0dbf, 0x0e1f }, - { 0x0dc0, 0x0e20 }, - { 0x0dc1, 0x0e21 }, - { 0x0dc2, 0x0e22 }, - { 0x0dc3, 0x0e23 }, - { 0x0dc4, 0x0e24 }, - { 0x0dc5, 0x0e25 }, - { 0x0dc6, 0x0e26 }, - { 0x0dc7, 0x0e27 }, - { 0x0dc8, 0x0e28 }, - { 0x0dc9, 0x0e29 }, - { 0x0dca, 0x0e2a }, - { 0x0dcb, 0x0e2b }, - { 0x0dcc, 0x0e2c }, - { 0x0dcd, 0x0e2d }, - { 0x0dce, 0x0e2e }, - { 0x0dcf, 0x0e2f }, - { 0x0dd0, 0x0e30 }, - { 0x0dd1, 0x0e31 }, - { 0x0dd2, 0x0e32 }, - { 0x0dd3, 0x0e33 }, - { 0x0dd4, 0x0e34 }, - { 0x0dd5, 0x0e35 }, - { 0x0dd6, 0x0e36 }, - { 0x0dd7, 0x0e37 }, - { 0x0dd8, 0x0e38 }, - { 0x0dd9, 0x0e39 }, - { 0x0dda, 0x0e3a }, - { 0x0ddf, 0x0e3f }, - { 0x0de0, 0x0e40 }, - { 0x0de1, 0x0e41 }, - { 0x0de2, 0x0e42 }, - { 0x0de3, 0x0e43 }, - { 0x0de4, 0x0e44 }, - { 0x0de5, 0x0e45 }, - { 0x0de6, 0x0e46 }, - { 0x0de7, 0x0e47 }, - { 0x0de8, 0x0e48 }, - { 0x0de9, 0x0e49 }, - { 0x0dea, 0x0e4a }, - { 0x0deb, 0x0e4b }, - { 0x0dec, 0x0e4c }, - { 0x0ded, 0x0e4d }, - { 0x0df0, 0x0e50 }, - { 0x0df1, 0x0e51 }, - { 0x0df2, 0x0e52 }, - { 0x0df3, 0x0e53 }, - { 0x0df4, 0x0e54 }, - { 0x0df5, 0x0e55 }, - { 0x0df6, 0x0e56 }, - { 0x0df7, 0x0e57 }, - { 0x0df8, 0x0e58 }, - { 0x0df9, 0x0e59 }, - { 0x0ea1, 0x3131 }, - { 0x0ea2, 0x3132 }, - { 0x0ea3, 0x3133 }, - { 0x0ea4, 0x3134 }, - { 0x0ea5, 0x3135 }, - { 0x0ea6, 0x3136 }, - { 0x0ea7, 0x3137 }, - { 0x0ea8, 0x3138 }, - { 0x0ea9, 0x3139 }, - { 0x0eaa, 0x313a }, - { 0x0eab, 0x313b }, - { 0x0eac, 0x313c }, - { 0x0ead, 0x313d }, - { 0x0eae, 0x313e }, - { 0x0eaf, 0x313f }, - { 0x0eb0, 0x3140 }, - { 0x0eb1, 0x3141 }, - { 0x0eb2, 0x3142 }, - { 0x0eb3, 0x3143 }, - { 0x0eb4, 0x3144 }, - { 0x0eb5, 0x3145 }, - { 0x0eb6, 0x3146 }, - { 0x0eb7, 0x3147 }, - { 0x0eb8, 0x3148 }, - { 0x0eb9, 0x3149 }, - { 0x0eba, 0x314a }, - { 0x0ebb, 0x314b }, - { 0x0ebc, 0x314c }, - { 0x0ebd, 0x314d }, - { 0x0ebe, 0x314e }, - { 0x0ebf, 0x314f }, - { 0x0ec0, 0x3150 }, - { 0x0ec1, 0x3151 }, - { 0x0ec2, 0x3152 }, - { 0x0ec3, 0x3153 }, - { 0x0ec4, 0x3154 }, - { 0x0ec5, 0x3155 }, - { 0x0ec6, 0x3156 }, - { 0x0ec7, 0x3157 }, - { 0x0ec8, 0x3158 }, - { 0x0ec9, 0x3159 }, - { 0x0eca, 0x315a }, - { 0x0ecb, 0x315b }, - { 0x0ecc, 0x315c }, - { 0x0ecd, 0x315d }, - { 0x0ece, 0x315e }, - { 0x0ecf, 0x315f }, - { 0x0ed0, 0x3160 }, - { 0x0ed1, 0x3161 }, - { 0x0ed2, 0x3162 }, - { 0x0ed3, 0x3163 }, - { 0x0ed4, 0x11a8 }, - { 0x0ed5, 0x11a9 }, - { 0x0ed6, 0x11aa }, - { 0x0ed7, 0x11ab }, - { 0x0ed8, 0x11ac }, - { 0x0ed9, 0x11ad }, - { 0x0eda, 0x11ae }, - { 0x0edb, 0x11af }, - { 0x0edc, 0x11b0 }, - { 0x0edd, 0x11b1 }, - { 0x0ede, 0x11b2 }, - { 0x0edf, 0x11b3 }, - { 0x0ee0, 0x11b4 }, - { 0x0ee1, 0x11b5 }, - { 0x0ee2, 0x11b6 }, - { 0x0ee3, 0x11b7 }, - { 0x0ee4, 0x11b8 }, - { 0x0ee5, 0x11b9 }, - { 0x0ee6, 0x11ba }, - { 0x0ee7, 0x11bb }, - { 0x0ee8, 0x11bc }, - { 0x0ee9, 0x11bd }, - { 0x0eea, 0x11be }, - { 0x0eeb, 0x11bf }, - { 0x0eec, 0x11c0 }, - { 0x0eed, 0x11c1 }, - { 0x0eee, 0x11c2 }, - { 0x0eef, 0x316d }, - { 0x0ef0, 0x3171 }, - { 0x0ef1, 0x3178 }, - { 0x0ef2, 0x317f }, - { 0x0ef3, 0x3181 }, - { 0x0ef4, 0x3184 }, - { 0x0ef5, 0x3186 }, - { 0x0ef6, 0x318d }, - { 0x0ef7, 0x318e }, - { 0x0ef8, 0x11eb }, - { 0x0ef9, 0x11f0 }, - { 0x0efa, 0x11f9 }, - { 0x0eff, 0x20a9 }, - { 0x13a4, 0x20ac }, - { 0x13bc, 0x0152 }, - { 0x13bd, 0x0153 }, - { 0x13be, 0x0178 }, - { 0x20ac, 0x20ac }, - // Numeric keypad with numlock on - { XK_KP_Space, ' ' }, - { XK_KP_Equal, '=' }, - { XK_KP_Multiply, '*' }, - { XK_KP_Add, '+' }, - { XK_KP_Separator, ',' }, - { XK_KP_Subtract, '-' }, - { XK_KP_Decimal, '.' }, - { XK_KP_Divide, '/' }, - { XK_KP_0, 0x0030 }, - { XK_KP_1, 0x0031 }, - { XK_KP_2, 0x0032 }, - { XK_KP_3, 0x0033 }, - { XK_KP_4, 0x0034 }, - { XK_KP_5, 0x0035 }, - { XK_KP_6, 0x0036 }, - { XK_KP_7, 0x0037 }, - { XK_KP_8, 0x0038 }, - { XK_KP_9, 0x0039 } -}; - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Convert XKB KeySym to Unicode -// -long _glfwKeySym2Unicode(unsigned int keysym) -{ - int min = 0; - int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; - int mid; - - // First check for Latin-1 characters (1:1 mapping) - if ((keysym >= 0x0020 && keysym <= 0x007e) || - (keysym >= 0x00a0 && keysym <= 0x00ff)) - { - return keysym; - } - - // Also check for directly encoded 24-bit UCS characters - if ((keysym & 0xff000000) == 0x01000000) - return keysym & 0x00ffffff; - - // Binary search in table - while (max >= min) - { - mid = (min + max) / 2; - if (keysymtab[mid].keysym < keysym) - min = mid + 1; - else if (keysymtab[mid].keysym > keysym) - max = mid - 1; - else - return keysymtab[mid].ucs; - } - - // No matching Unicode value found - return -1; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/xkb_unicode.h b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/xkb_unicode.h deleted file mode 100644 index a9eb8e9..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw/src/xkb_unicode.h +++ /dev/null @@ -1,33 +0,0 @@ -//======================================================================== -// GLFW 3.1 Linux - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_xkb_unicode_h_ -#define _glfw3_xkb_unicode_h_ - - -long _glfwKeySym2Unicode(unsigned int keysym); - -#endif // _glfw3_xkb_unicode_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_context.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_context.c deleted file mode 100644 index 0dc66e4..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_context.c +++ /dev/null @@ -1 +0,0 @@ -#include "glfw/src/context.c" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_egl_context.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_egl_context.c deleted file mode 100644 index 1f4242f..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_egl_context.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_EGL - #include "glfw/src/egl_context.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_glx_context.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_glx_context.c deleted file mode 100644 index 226309e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_glx_context.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_GLX - #include "glfw/src/glx_context.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_init.c deleted file mode 100644 index dac4540..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_init.c +++ /dev/null @@ -1 +0,0 @@ -#include "glfw/src/init.c" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_input.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_input.c deleted file mode 100644 index 4ee9fe4..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_input.c +++ /dev/null @@ -1,2 +0,0 @@ -#include "glfw/src/input.c" - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_linux_joystick.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_linux_joystick.c deleted file mode 100644 index 6797881..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_linux_joystick.c +++ /dev/null @@ -1,4 +0,0 @@ -#if defined(_GLFW_X11) || defined(_GLFW_WAYLAND) - #include "glfw/src/linux_joystick.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_mach_time.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_mach_time.c deleted file mode 100644 index 0e54f95..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_mach_time.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_COCOA - #include "glfw/src/mach_time.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_monitor.c deleted file mode 100644 index 9b0ca31..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_monitor.c +++ /dev/null @@ -1,2 +0,0 @@ -#include "glfw/src/monitor.c" - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_posix_time.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_posix_time.c deleted file mode 100644 index e26d540..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_posix_time.c +++ /dev/null @@ -1,4 +0,0 @@ -#if defined(_GLFW_X11) || defined(_GLFW_WAYLAND) - #include "glfw/src/posix_time.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_posix_tls.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_posix_tls.c deleted file mode 100644 index 567846e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_posix_tls.c +++ /dev/null @@ -1,3 +0,0 @@ -#if defined(_GLFW_COCOA) || defined(_GLFW_X11) || defined(_GLFW_WAYLAND) - #include "glfw/src/posix_tls.c" -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wgl_context.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wgl_context.c deleted file mode 100644 index 5452def..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wgl_context.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WGL - #include "glfw/src/wgl_context.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_init.c deleted file mode 100644 index 52178c8..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_init.c +++ /dev/null @@ -1,29 +0,0 @@ -#ifdef _GLFW_WIN32 - - // Bug fix for 6l/8l on Windows, see: - // https://github.com/go-gl/glfw3/issues/82#issuecomment-53859967 - #include - #include - - #ifndef strdup - char *strdup (const char *str) { - char *new = malloc(strlen(str) + 1); - strcpy(new, str); - return new; - } - #endif - - // _get_output_format is described at MSDN: - // http://msdn.microsoft.com/en-us/library/571yb472.aspx - // - // MinGW32 does not define it. But MinGW-W64 does. Unlike strdup above - // compilers don't #define _get_output_format if it exists. - #ifndef __MINGW64__ - unsigned int _get_output_format(void) { - return 0; - }; - #endif - - #include "glfw/src/win32_init.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_monitor.c deleted file mode 100644 index 18f3070..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_monitor.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WIN32 - #include "glfw/src/win32_monitor.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_time.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_time.c deleted file mode 100644 index 3a82eec..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_time.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WIN32 - #include "glfw/src/win32_time.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_tls.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_tls.c deleted file mode 100644 index 68dd752..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_tls.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WIN32 - #include "glfw/src/win32_tls.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_window.c deleted file mode 100644 index f59b22e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_win32_window.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WIN32 - #include "glfw/src/win32_window.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_window.c deleted file mode 100644 index 3f61bf7..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_window.c +++ /dev/null @@ -1 +0,0 @@ -#include "glfw/src/window.c" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_winmm_joystick.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_winmm_joystick.c deleted file mode 100644 index f9825e4..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_winmm_joystick.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WIN32 - #include "glfw/src/winmm_joystick.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_init.c deleted file mode 100644 index 014cc05..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_init.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WAYLAND - #include "glfw/src/wl_init.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_monitor.c deleted file mode 100644 index 30b32af..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_monitor.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WAYLAND - #include "glfw/src/wl_monitor.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_window.c deleted file mode 100644 index 715caa5..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_wl_window.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_WAYLAND - #include "glfw/src/wl_window.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_init.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_init.c deleted file mode 100644 index 1fb5925..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_init.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_X11 - #include "glfw/src/x11_init.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_monitor.c deleted file mode 100644 index 5122bab..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_monitor.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_X11 - #include "glfw/src/x11_monitor.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_window.c deleted file mode 100644 index 00ec329..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_x11_window.c +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef _GLFW_X11 - #include "glfw/src/x11_window.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_xkb_unicode.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_xkb_unicode.c deleted file mode 100644 index d48a798..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/glfw_xkb_unicode.c +++ /dev/null @@ -1,4 +0,0 @@ -#if defined(_GLFW_X11) || defined(_GLFW_WAYLAND) - #include "glfw/src/xkb_unicode.c" -#endif - diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/input.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/input.c deleted file mode 100644 index a461ab9..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/input.c +++ /dev/null @@ -1,73 +0,0 @@ -#include "_cgo_export.h" - -void glfwMouseButtonCB(GLFWwindow* window, int button, int action, int mods) { - goMouseButtonCB(window, button, action, mods); -} - -void glfwCursorPosCB(GLFWwindow* window, double xpos, double ypos) { - goCursorPosCB(window, xpos, ypos); -} - -void glfwCursorEnterCB(GLFWwindow* window, int entered) { - goCursorEnterCB(window, entered); -} - -void glfwScrollCB(GLFWwindow* window, double xoff, double yoff) { - goScrollCB(window, xoff, yoff); -} - -void glfwKeyCB(GLFWwindow* window, int key, int scancode, int action, int mods) { - goKeyCB(window, key, scancode, action, mods); -} - -void glfwCharCB(GLFWwindow* window, unsigned int character) { - goCharCB(window, character); -} - -void glfwCharModsCB(GLFWwindow* window, unsigned int character, int mods) { - goCharModsCB(window, character, mods); -} - -void glfwDropCB(GLFWwindow* window, int count, const char **names) { - goDropCB(window, count, (char**)names); -} - -void glfwSetKeyCallbackCB(GLFWwindow *window) { - glfwSetKeyCallback(window, glfwKeyCB); -} - -void glfwSetCharCallbackCB(GLFWwindow *window) { - glfwSetCharCallback(window, glfwCharCB); -} - -void glfwSetCharModsCallbackCB(GLFWwindow *window) { - glfwSetCharModsCallback(window, glfwCharModsCB); -} - -void glfwSetMouseButtonCallbackCB(GLFWwindow *window) { - glfwSetMouseButtonCallback(window, glfwMouseButtonCB); -} - -void glfwSetCursorPosCallbackCB(GLFWwindow *window) { - glfwSetCursorPosCallback(window, glfwCursorPosCB); -} - -void glfwSetCursorEnterCallbackCB(GLFWwindow *window) { - glfwSetCursorEnterCallback(window, glfwCursorEnterCB); -} - -void glfwSetScrollCallbackCB(GLFWwindow *window) { - glfwSetScrollCallback(window, glfwScrollCB); -} - -void glfwSetDropCallbackCB(GLFWwindow *window) { - glfwSetDropCallback(window, glfwDropCB); -} - -float GetAxisAtIndex(float *axis, int i) { - return axis[i]; -} - -unsigned char GetButtonsAtIndex(unsigned char *buttons, int i) { - return buttons[i]; -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/input.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/input.go deleted file mode 100644 index 5b31f8c..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/input.go +++ /dev/null @@ -1,649 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -//void glfwSetKeyCallbackCB(GLFWwindow *window); -//void glfwSetCharCallbackCB(GLFWwindow *window); -//void glfwSetCharModsCallbackCB(GLFWwindow *window); -//void glfwSetMouseButtonCallbackCB(GLFWwindow *window); -//void glfwSetCursorPosCallbackCB(GLFWwindow *window); -//void glfwSetCursorEnterCallbackCB(GLFWwindow *window); -//void glfwSetScrollCallbackCB(GLFWwindow *window); -//void glfwSetDropCallbackCB(GLFWwindow *window); -//float GetAxisAtIndex(float *axis, int i); -//unsigned char GetButtonsAtIndex(unsigned char *buttons, int i); -import "C" - -import ( - "image" - "image/draw" - "unsafe" -) - -// Joystick corresponds to a joystick. -type Joystick int - -// Joystick IDs -const ( - Joystick1 Joystick = C.GLFW_JOYSTICK_1 - Joystick2 Joystick = C.GLFW_JOYSTICK_2 - Joystick3 Joystick = C.GLFW_JOYSTICK_3 - Joystick4 Joystick = C.GLFW_JOYSTICK_4 - Joystick5 Joystick = C.GLFW_JOYSTICK_5 - Joystick6 Joystick = C.GLFW_JOYSTICK_6 - Joystick7 Joystick = C.GLFW_JOYSTICK_7 - Joystick8 Joystick = C.GLFW_JOYSTICK_8 - Joystick9 Joystick = C.GLFW_JOYSTICK_9 - Joystick10 Joystick = C.GLFW_JOYSTICK_10 - Joystick11 Joystick = C.GLFW_JOYSTICK_11 - Joystick12 Joystick = C.GLFW_JOYSTICK_12 - Joystick13 Joystick = C.GLFW_JOYSTICK_13 - Joystick14 Joystick = C.GLFW_JOYSTICK_14 - Joystick15 Joystick = C.GLFW_JOYSTICK_15 - Joystick16 Joystick = C.GLFW_JOYSTICK_16 - JoystickLast Joystick = C.GLFW_JOYSTICK_LAST -) - -// Key corresponds to a keyboard key. -type Key int - -// These key codes are inspired by the USB HID Usage Tables v1.12 (p. 53-60), -// but re-arranged to map to 7-bit ASCII for printable keys (function keys are -// put in the 256+ range). -const ( - KeyUnknown Key = C.GLFW_KEY_UNKNOWN - KeySpace Key = C.GLFW_KEY_SPACE - KeyApostrophe Key = C.GLFW_KEY_APOSTROPHE - KeyComma Key = C.GLFW_KEY_COMMA - KeyMinus Key = C.GLFW_KEY_MINUS - KeyPeriod Key = C.GLFW_KEY_PERIOD - KeySlash Key = C.GLFW_KEY_SLASH - Key0 Key = C.GLFW_KEY_0 - Key1 Key = C.GLFW_KEY_1 - Key2 Key = C.GLFW_KEY_2 - Key3 Key = C.GLFW_KEY_3 - Key4 Key = C.GLFW_KEY_4 - Key5 Key = C.GLFW_KEY_5 - Key6 Key = C.GLFW_KEY_6 - Key7 Key = C.GLFW_KEY_7 - Key8 Key = C.GLFW_KEY_8 - Key9 Key = C.GLFW_KEY_9 - KeySemicolon Key = C.GLFW_KEY_SEMICOLON - KeyEqual Key = C.GLFW_KEY_EQUAL - KeyA Key = C.GLFW_KEY_A - KeyB Key = C.GLFW_KEY_B - KeyC Key = C.GLFW_KEY_C - KeyD Key = C.GLFW_KEY_D - KeyE Key = C.GLFW_KEY_E - KeyF Key = C.GLFW_KEY_F - KeyG Key = C.GLFW_KEY_G - KeyH Key = C.GLFW_KEY_H - KeyI Key = C.GLFW_KEY_I - KeyJ Key = C.GLFW_KEY_J - KeyK Key = C.GLFW_KEY_K - KeyL Key = C.GLFW_KEY_L - KeyM Key = C.GLFW_KEY_M - KeyN Key = C.GLFW_KEY_N - KeyO Key = C.GLFW_KEY_O - KeyP Key = C.GLFW_KEY_P - KeyQ Key = C.GLFW_KEY_Q - KeyR Key = C.GLFW_KEY_R - KeyS Key = C.GLFW_KEY_S - KeyT Key = C.GLFW_KEY_T - KeyU Key = C.GLFW_KEY_U - KeyV Key = C.GLFW_KEY_V - KeyW Key = C.GLFW_KEY_W - KeyX Key = C.GLFW_KEY_X - KeyY Key = C.GLFW_KEY_Y - KeyZ Key = C.GLFW_KEY_Z - KeyLeftBracket Key = C.GLFW_KEY_LEFT_BRACKET - KeyBackslash Key = C.GLFW_KEY_BACKSLASH - KeyRightBracket Key = C.GLFW_KEY_RIGHT_BRACKET - KeyGraveAccent Key = C.GLFW_KEY_GRAVE_ACCENT - KeyWorld1 Key = C.GLFW_KEY_WORLD_1 - KeyWorld2 Key = C.GLFW_KEY_WORLD_2 - KeyEscape Key = C.GLFW_KEY_ESCAPE - KeyEnter Key = C.GLFW_KEY_ENTER - KeyTab Key = C.GLFW_KEY_TAB - KeyBackspace Key = C.GLFW_KEY_BACKSPACE - KeyInsert Key = C.GLFW_KEY_INSERT - KeyDelete Key = C.GLFW_KEY_DELETE - KeyRight Key = C.GLFW_KEY_RIGHT - KeyLeft Key = C.GLFW_KEY_LEFT - KeyDown Key = C.GLFW_KEY_DOWN - KeyUp Key = C.GLFW_KEY_UP - KeyPageUp Key = C.GLFW_KEY_PAGE_UP - KeyPageDown Key = C.GLFW_KEY_PAGE_DOWN - KeyHome Key = C.GLFW_KEY_HOME - KeyEnd Key = C.GLFW_KEY_END - KeyCapsLock Key = C.GLFW_KEY_CAPS_LOCK - KeyScrollLock Key = C.GLFW_KEY_SCROLL_LOCK - KeyNumLock Key = C.GLFW_KEY_NUM_LOCK - KeyPrintScreen Key = C.GLFW_KEY_PRINT_SCREEN - KeyPause Key = C.GLFW_KEY_PAUSE - KeyF1 Key = C.GLFW_KEY_F1 - KeyF2 Key = C.GLFW_KEY_F2 - KeyF3 Key = C.GLFW_KEY_F3 - KeyF4 Key = C.GLFW_KEY_F4 - KeyF5 Key = C.GLFW_KEY_F5 - KeyF6 Key = C.GLFW_KEY_F6 - KeyF7 Key = C.GLFW_KEY_F7 - KeyF8 Key = C.GLFW_KEY_F8 - KeyF9 Key = C.GLFW_KEY_F9 - KeyF10 Key = C.GLFW_KEY_F10 - KeyF11 Key = C.GLFW_KEY_F11 - KeyF12 Key = C.GLFW_KEY_F12 - KeyF13 Key = C.GLFW_KEY_F13 - KeyF14 Key = C.GLFW_KEY_F14 - KeyF15 Key = C.GLFW_KEY_F15 - KeyF16 Key = C.GLFW_KEY_F16 - KeyF17 Key = C.GLFW_KEY_F17 - KeyF18 Key = C.GLFW_KEY_F18 - KeyF19 Key = C.GLFW_KEY_F19 - KeyF20 Key = C.GLFW_KEY_F20 - KeyF21 Key = C.GLFW_KEY_F21 - KeyF22 Key = C.GLFW_KEY_F22 - KeyF23 Key = C.GLFW_KEY_F23 - KeyF24 Key = C.GLFW_KEY_F24 - KeyF25 Key = C.GLFW_KEY_F25 - KeyKP0 Key = C.GLFW_KEY_KP_0 - KeyKP1 Key = C.GLFW_KEY_KP_1 - KeyKP2 Key = C.GLFW_KEY_KP_2 - KeyKP3 Key = C.GLFW_KEY_KP_3 - KeyKP4 Key = C.GLFW_KEY_KP_4 - KeyKP5 Key = C.GLFW_KEY_KP_5 - KeyKP6 Key = C.GLFW_KEY_KP_6 - KeyKP7 Key = C.GLFW_KEY_KP_7 - KeyKP8 Key = C.GLFW_KEY_KP_8 - KeyKP9 Key = C.GLFW_KEY_KP_9 - KeyKPDecimal Key = C.GLFW_KEY_KP_DECIMAL - KeyKPDivide Key = C.GLFW_KEY_KP_DIVIDE - KeyKPMultiply Key = C.GLFW_KEY_KP_MULTIPLY - KeyKPSubtract Key = C.GLFW_KEY_KP_SUBTRACT - KeyKPAdd Key = C.GLFW_KEY_KP_ADD - KeyKPEnter Key = C.GLFW_KEY_KP_ENTER - KeyKPEqual Key = C.GLFW_KEY_KP_EQUAL - KeyLeftShift Key = C.GLFW_KEY_LEFT_SHIFT - KeyLeftControl Key = C.GLFW_KEY_LEFT_CONTROL - KeyLeftAlt Key = C.GLFW_KEY_LEFT_ALT - KeyLeftSuper Key = C.GLFW_KEY_LEFT_SUPER - KeyRightShift Key = C.GLFW_KEY_RIGHT_SHIFT - KeyRightControl Key = C.GLFW_KEY_RIGHT_CONTROL - KeyRightAlt Key = C.GLFW_KEY_RIGHT_ALT - KeyRightSuper Key = C.GLFW_KEY_RIGHT_SUPER - KeyMenu Key = C.GLFW_KEY_MENU - KeyLast Key = C.GLFW_KEY_LAST -) - -// ModifierKey corresponds to a modifier key. -type ModifierKey int - -// Modifier keys -const ( - ModShift ModifierKey = C.GLFW_MOD_SHIFT - ModControl ModifierKey = C.GLFW_MOD_CONTROL - ModAlt ModifierKey = C.GLFW_MOD_ALT - ModSuper ModifierKey = C.GLFW_MOD_SUPER -) - -// MouseButton corresponds to a mouse button. -type MouseButton int - -// Mouse buttons -const ( - MouseButton1 MouseButton = C.GLFW_MOUSE_BUTTON_1 - MouseButton2 MouseButton = C.GLFW_MOUSE_BUTTON_2 - MouseButton3 MouseButton = C.GLFW_MOUSE_BUTTON_3 - MouseButton4 MouseButton = C.GLFW_MOUSE_BUTTON_4 - MouseButton5 MouseButton = C.GLFW_MOUSE_BUTTON_5 - MouseButton6 MouseButton = C.GLFW_MOUSE_BUTTON_6 - MouseButton7 MouseButton = C.GLFW_MOUSE_BUTTON_7 - MouseButton8 MouseButton = C.GLFW_MOUSE_BUTTON_8 - MouseButtonLast MouseButton = C.GLFW_MOUSE_BUTTON_LAST - MouseButtonLeft MouseButton = C.GLFW_MOUSE_BUTTON_LEFT - MouseButtonRight MouseButton = C.GLFW_MOUSE_BUTTON_RIGHT - MouseButtonMiddle MouseButton = C.GLFW_MOUSE_BUTTON_MIDDLE -) - -// StandardCursor corresponds to a standard cursor icon. -type StandardCursor int - -// Standard cursors -const ( - ArrowCursor StandardCursor = C.GLFW_ARROW_CURSOR - IBeamCursor StandardCursor = C.GLFW_IBEAM_CURSOR - CrosshairCursor StandardCursor = C.GLFW_CROSSHAIR_CURSOR - HandCursor StandardCursor = C.GLFW_HAND_CURSOR - HResizeCursor StandardCursor = C.GLFW_HRESIZE_CURSOR - VResizeCursor StandardCursor = C.GLFW_VRESIZE_CURSOR -) - -// Action corresponds to a key or button action. -type Action int - -const ( - Release Action = C.GLFW_RELEASE // The key or button was released. - Press Action = C.GLFW_PRESS // The key or button was pressed. - Repeat Action = C.GLFW_REPEAT // The key was held down until it repeated. -) - -// InputMode corresponds to an input mode. -type InputMode int - -// Input modes -const ( - CursorMode InputMode = C.GLFW_CURSOR // See Cursor mode values - StickyKeysMode InputMode = C.GLFW_STICKY_KEYS // Value can be either 1 or 0 - StickyMouseButtonsMode InputMode = C.GLFW_STICKY_MOUSE_BUTTONS // Value can be either 1 or 0 -) - -// Cursor mode values -const ( - CursorNormal int = C.GLFW_CURSOR_NORMAL - CursorHidden int = C.GLFW_CURSOR_HIDDEN - CursorDisabled int = C.GLFW_CURSOR_DISABLED -) - -type Cursor struct { - data *C.GLFWcursor -} - -//export goMouseButtonCB -func goMouseButtonCB(window unsafe.Pointer, button, action, mods C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fMouseButtonHolder(w, MouseButton(button), Action(action), ModifierKey(mods)) -} - -//export goCursorPosCB -func goCursorPosCB(window unsafe.Pointer, xpos, ypos C.double) { - w := windows.get((*C.GLFWwindow)(window)) - w.fCursorPosHolder(w, float64(xpos), float64(ypos)) -} - -//export goCursorEnterCB -func goCursorEnterCB(window unsafe.Pointer, entered C.int) { - w := windows.get((*C.GLFWwindow)(window)) - hasEntered := glfwbool(entered) - w.fCursorEnterHolder(w, hasEntered) -} - -//export goScrollCB -func goScrollCB(window unsafe.Pointer, xoff, yoff C.double) { - w := windows.get((*C.GLFWwindow)(window)) - w.fScrollHolder(w, float64(xoff), float64(yoff)) -} - -//export goKeyCB -func goKeyCB(window unsafe.Pointer, key, scancode, action, mods C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fKeyHolder(w, Key(key), int(scancode), Action(action), ModifierKey(mods)) -} - -//export goCharCB -func goCharCB(window unsafe.Pointer, character C.uint) { - w := windows.get((*C.GLFWwindow)(window)) - w.fCharHolder(w, rune(character)) -} - -//export goCharModsCB -func goCharModsCB(window unsafe.Pointer, character C.uint, mods C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fCharModsHolder(w, rune(character), ModifierKey(mods)) -} - -//export goDropCB -func goDropCB(window unsafe.Pointer, count C.int, names **C.char) { // TODO: The types of name can be `**C.char` or `unsafe.Pointer`, use whichever is better. - w := windows.get((*C.GLFWwindow)(window)) - namesSlice := make([]string, int(count)) // TODO: Make this better. This part is unfinished, hacky, probably not correct, and not idiomatic. - for i := 0; i < int(count); i++ { // TODO: Make this better. It should be cleaned up and vetted. - var x *C.char // TODO: Make this better. - p := (**C.char)(unsafe.Pointer(uintptr(unsafe.Pointer(names)) + uintptr(i)*unsafe.Sizeof(x))) // TODO: Make this better. - namesSlice[i] = C.GoString(*p) // TODO: Make this better. - } - w.fDropHolder(w, namesSlice) -} - -// GetInputMode returns the value of an input option of the window. -func (w *Window) GetInputMode(mode InputMode) int { - ret := int(C.glfwGetInputMode(w.data, C.int(mode))) - panicError() - return ret -} - -// Sets an input option for the window. -func (w *Window) SetInputMode(mode InputMode, value int) { - C.glfwSetInputMode(w.data, C.int(mode), C.int(value)) - panicError() -} - -// GetKey returns the last reported state of a keyboard key. The returned state -// is one of Press or Release. The higher-level state Repeat is only reported to -// the key callback. -// -// If the StickyKeys input mode is enabled, this function returns Press the first -// time you call this function after a key has been pressed, even if the key has -// already been released. -// -// The key functions deal with physical keys, with key tokens named after their -// use on the standard US keyboard layout. If you want to input text, use the -// Unicode character callback instead. -func (w *Window) GetKey(key Key) Action { - ret := Action(C.glfwGetKey(w.data, C.int(key))) - panicError() - return ret -} - -// GetMouseButton returns the last state reported for the specified mouse button. -// -// If the StickyMouseButtons input mode is enabled, this function returns Press -// the first time you call this function after a mouse button has been pressed, -// even if the mouse button has already been released. -func (w *Window) GetMouseButton(button MouseButton) Action { - ret := Action(C.glfwGetMouseButton(w.data, C.int(button))) - panicError() - return ret -} - -// GetCursorPos returns the last reported position of the cursor. -// -// If the cursor is disabled (with CursorDisabled) then the cursor position is -// unbounded and limited only by the minimum and maximum values of a double. -// -// The coordinate can be converted to their integer equivalents with the floor -// function. Casting directly to an integer type works for positive coordinates, -// but fails for negative ones. -func (w *Window) GetCursorPos() (x, y float64) { - var xpos, ypos C.double - C.glfwGetCursorPos(w.data, &xpos, &ypos) - panicError() - return float64(xpos), float64(ypos) -} - -// SetCursorPos sets the position of the cursor. The specified window must -// be focused. If the window does not have focus when this function is called, -// it fails silently. -// -// If the cursor is disabled (with CursorDisabled) then the cursor position is -// unbounded and limited only by the minimum and maximum values of a double. -func (w *Window) SetCursorPos(xpos, ypos float64) { - C.glfwSetCursorPos(w.data, C.double(xpos), C.double(ypos)) - panicError() -} - -// Creates a new custom cursor image that can be set for a window with SetCursor. -// The cursor can be destroyed with Destroy. Any remaining cursors are destroyed by Terminate. -// -// The pixels are 32-bit little-endian RGBA, i.e. eight bits per channel. They are arranged -// canonically as packed sequential rows, starting from the top-left corner. -// -// All non-RGBA images will be converted to RGBA. -// -// The cursor hotspot is specified in pixels, relative to the upper-left corner of the cursor image. -// Like all other coordinate systems in GLFW, the X-axis points to the right and the Y-axis points down. -func CreateCursor(img image.Image, xhot, yhot int) *Cursor { - var img_c C.GLFWimage - var pixels []uint8 - b := img.Bounds() - - switch img := img.(type) { - case *image.RGBA: - pixels = img.Pix - default: - m := image.NewRGBA(image.Rect(0, 0, b.Dx(), b.Dy())) - draw.Draw(m, m.Bounds(), img, b.Min, draw.Src) - pixels = m.Pix - } - - pix, free := bytes(pixels) - - img_c.width = C.int(b.Dx()) - img_c.height = C.int(b.Dy()) - img_c.pixels = (*C.uchar)(pix) - - c := C.glfwCreateCursor(&img_c, C.int(xhot), C.int(yhot)) - - free() - panicError() - - return &Cursor{c} -} - -// Returns a cursor with a standard shape, that can be set for a window with SetCursor. -func CreateStandardCursor(shape int) *Cursor { - c := C.glfwCreateStandardCursor(C.int(shape)) - panicError() - return &Cursor{c} -} - -// This function destroys a cursor previously created with CreateCursor. -// Any remaining cursors will be destroyed by Terminate. -func (c *Cursor) Destroy() { - C.glfwDestroyCursor(c.data) - panicError() -} - -// This function sets the cursor image to be used when the cursor is over the client area -// of the specified window. The set cursor will only be visible when the cursor mode of the -// window is CursorNormal. -// -// On some platforms, the set cursor may not be visible unless the window also has input focus. -func (w *Window) SetCursor(c *Cursor) { - if c == nil { - C.glfwSetCursor(w.data, nil) - } else { - C.glfwSetCursor(w.data, c.data) - } - panicError() -} - -type KeyCallback func(w *Window, key Key, scancode int, action Action, mods ModifierKey) - -// SetKeyCallback sets the key callback which is called when a key is pressed, -// repeated or released. -// -// The key functions deal with physical keys, with layout independent key tokens -// named after their values in the standard US keyboard layout. If you want to -// input text, use the SetCharCallback instead. -// -// When a window loses focus, it will generate synthetic key release events for -// all pressed keys. You can tell these events from user-generated events by the -// fact that the synthetic ones are generated after the window has lost focus, -// i.e. Focused will be false and the focus callback will have already been -// called. -func (w *Window) SetKeyCallback(cbfun KeyCallback) (previous KeyCallback) { - previous = w.fKeyHolder - w.fKeyHolder = cbfun - if cbfun == nil { - C.glfwSetKeyCallback(w.data, nil) - } else { - C.glfwSetKeyCallbackCB(w.data) - } - panicError() - return previous -} - -type CharCallback func(w *Window, char rune) - -// SetCharCallback sets the character callback which is called when a -// Unicode character is input. -// -// The character callback is intended for Unicode text input. As it deals with -// characters, it is keyboard layout dependent, whereas the -// key callback is not. Characters do not map 1:1 -// to physical keys, as a key may produce zero, one or more characters. If you -// want to know whether a specific physical key was pressed or released, see -// the key callback instead. -// -// The character callback behaves as system text input normally does and will -// not be called if modifier keys are held down that would prevent normal text -// input on that platform, for example a Super (Command) key on OS X or Alt key -// on Windows. There is a character with modifiers callback that receives these events. -func (w *Window) SetCharCallback(cbfun CharCallback) (previous CharCallback) { - previous = w.fCharHolder - w.fCharHolder = cbfun - if cbfun == nil { - C.glfwSetCharCallback(w.data, nil) - } else { - C.glfwSetCharCallbackCB(w.data) - } - panicError() - return previous -} - -type CharModsCallback func(w *Window, char rune, mods ModifierKey) - -// SetCharModsCallback sets the character with modifiers callback which is called when a -// Unicode character is input regardless of what modifier keys are used. -// -// The character with modifiers callback is intended for implementing custom -// Unicode character input. For regular Unicode text input, see the -// character callback. Like the character callback, the character with modifiers callback -// deals with characters and is keyboard layout dependent. Characters do not -// map 1:1 to physical keys, as a key may produce zero, one or more characters. -// If you want to know whether a specific physical key was pressed or released, -// see the key callback instead. -func (w *Window) SetCharModsCallback(cbfun CharModsCallback) (previous CharModsCallback) { - previous = w.fCharModsHolder - w.fCharModsHolder = cbfun - if cbfun == nil { - C.glfwSetCharModsCallback(w.data, nil) - } else { - C.glfwSetCharModsCallbackCB(w.data) - } - panicError() - return previous -} - -type MouseButtonCallback func(w *Window, button MouseButton, action Action, mod ModifierKey) - -// SetMouseButtonCallback sets the mouse button callback which is called when a -// mouse button is pressed or released. -// -// When a window loses focus, it will generate synthetic mouse button release -// events for all pressed mouse buttons. You can tell these events from -// user-generated events by the fact that the synthetic ones are generated after -// the window has lost focus, i.e. Focused will be false and the focus -// callback will have already been called. -func (w *Window) SetMouseButtonCallback(cbfun MouseButtonCallback) (previous MouseButtonCallback) { - previous = w.fMouseButtonHolder - w.fMouseButtonHolder = cbfun - if cbfun == nil { - C.glfwSetMouseButtonCallback(w.data, nil) - } else { - C.glfwSetMouseButtonCallbackCB(w.data) - } - panicError() - return previous -} - -type CursorPosCallback func(w *Window, xpos float64, ypos float64) - -// SetCursorPosCallback sets the cursor position callback which is called -// when the cursor is moved. The callback is provided with the position relative -// to the upper-left corner of the client area of the window. -func (w *Window) SetCursorPosCallback(cbfun CursorPosCallback) (previous CursorPosCallback) { - previous = w.fCursorPosHolder - w.fCursorPosHolder = cbfun - if cbfun == nil { - C.glfwSetCursorPosCallback(w.data, nil) - } else { - C.glfwSetCursorPosCallbackCB(w.data) - } - panicError() - return previous -} - -type CursorEnterCallback func(w *Window, entered bool) - -// SetCursorEnterCallback the cursor boundary crossing callback which is called -// when the cursor enters or leaves the client area of the window. -func (w *Window) SetCursorEnterCallback(cbfun CursorEnterCallback) (previous CursorEnterCallback) { - previous = w.fCursorEnterHolder - w.fCursorEnterHolder = cbfun - if cbfun == nil { - C.glfwSetCursorEnterCallback(w.data, nil) - } else { - C.glfwSetCursorEnterCallbackCB(w.data) - } - panicError() - return previous -} - -type ScrollCallback func(w *Window, xoff float64, yoff float64) - -// SetScrollCallback sets the scroll callback which is called when a scrolling -// device is used, such as a mouse wheel or scrolling area of a touchpad. -func (w *Window) SetScrollCallback(cbfun ScrollCallback) (previous ScrollCallback) { - previous = w.fScrollHolder - w.fScrollHolder = cbfun - if cbfun == nil { - C.glfwSetScrollCallback(w.data, nil) - } else { - C.glfwSetScrollCallbackCB(w.data) - } - panicError() - return previous -} - -type DropCallback func(w *Window, names []string) - -// SetDropCallback sets the drop callback which is called when an object -// is dropped over the window. -func (w *Window) SetDropCallback(cbfun DropCallback) (previous DropCallback) { - previous = w.fDropHolder - w.fDropHolder = cbfun - if cbfun == nil { - C.glfwSetDropCallback(w.data, nil) - } else { - C.glfwSetDropCallbackCB(w.data) - } - panicError() - return previous -} - -// GetJoystickPresent returns whether the specified joystick is present. -func JoystickPresent(joy Joystick) bool { - ret := glfwbool(C.glfwJoystickPresent(C.int(joy))) - panicError() - return ret -} - -// GetJoystickAxes returns a slice of axis values. -func GetJoystickAxes(joy Joystick) []float32 { - var length int - - axis := C.glfwGetJoystickAxes(C.int(joy), (*C.int)(unsafe.Pointer(&length))) - panicError() - if axis == nil { - return nil - } - - a := make([]float32, length) - for i := 0; i < length; i++ { - a[i] = float32(C.GetAxisAtIndex(axis, C.int(i))) - } - return a -} - -// GetJoystickButtons returns a slice of button values. -func GetJoystickButtons(joy Joystick) []byte { - var length int - - buttons := C.glfwGetJoystickButtons(C.int(joy), (*C.int)(unsafe.Pointer(&length))) - panicError() - if buttons == nil { - return nil - } - - b := make([]byte, length) - for i := 0; i < length; i++ { - b[i] = byte(C.GetButtonsAtIndex(buttons, C.int(i))) - } - return b -} - -// GetJoystickName returns the name, encoded as UTF-8, of the specified joystick. -func GetJoystickName(joy Joystick) string { - jn := C.glfwGetJoystickName(C.int(joy)) - panicError() - return C.GoString(jn) -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/iokitjoystick_darwin.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/iokitjoystick_darwin.go deleted file mode 100644 index 11f1203..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/iokitjoystick_darwin.go +++ /dev/null @@ -1,9 +0,0 @@ -package glfw - -/* -#cgo CFLAGS: -x objective-c -#ifdef _GLFW_COCOA - #include "glfw/src/iokit_joystick.m" -#endif -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/monitor.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/monitor.c deleted file mode 100644 index 6ae35aa..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/monitor.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "_cgo_export.h" - -GLFWmonitor *GetMonitorAtIndex(GLFWmonitor **monitors, int index) { - return monitors[index]; -} - -GLFWvidmode GetVidmodeAtIndex(GLFWvidmode *vidmodes, int index) { - return vidmodes[index]; -} - -void glfwMonitorCB(GLFWmonitor* monitor, int event) { - goMonitorCB(monitor, event); -} - -void glfwSetMonitorCallbackCB() { - glfwSetMonitorCallback(glfwMonitorCB); -} - -unsigned int GetGammaAtIndex(unsigned short *color, int i) { - return color[i]; -} - -void SetGammaAtIndex(unsigned short *color, int i, unsigned short value) { - color[i] = value; -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/monitor.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/monitor.go deleted file mode 100644 index 823d30e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/monitor.go +++ /dev/null @@ -1,207 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -//GLFWmonitor* GetMonitorAtIndex(GLFWmonitor **monitors, int index); -//GLFWvidmode GetVidmodeAtIndex(GLFWvidmode *vidmodes, int index); -//void glfwSetMonitorCallbackCB(); -//unsigned int GetGammaAtIndex(unsigned short *color, int i); -//void SetGammaAtIndex(unsigned short *color, int i, unsigned short value); -import "C" - -import ( - "unsafe" -) - -type Monitor struct { - data *C.GLFWmonitor -} - -// MonitorEvent corresponds to a monitor configuration event. -type MonitorEvent int - -// GammaRamp describes the gamma ramp for a monitor. -type GammaRamp struct { - Red []uint16 // A slice of value describing the response of the red channel. - Green []uint16 // A slice of value describing the response of the green channel. - Blue []uint16 // A slice of value describing the response of the blue channel. -} - -// Monitor events. -const ( - Connected MonitorEvent = C.GLFW_CONNECTED - Disconnected MonitorEvent = C.GLFW_DISCONNECTED -) - -// VidMode describes a single video mode. -type VidMode struct { - Width int // The width, in pixels, of the video mode. - Height int // The height, in pixels, of the video mode. - RedBits int // The bit depth of the red channel of the video mode. - GreenBits int // The bit depth of the green channel of the video mode. - BlueBits int // The bit depth of the blue channel of the video mode. - RefreshRate int // The refresh rate, in Hz, of the video mode. -} - -var fMonitorHolder func(monitor *Monitor, event MonitorEvent) - -//export goMonitorCB -func goMonitorCB(monitor unsafe.Pointer, event C.int) { - fMonitorHolder(&Monitor{(*C.GLFWmonitor)(monitor)}, MonitorEvent(event)) -} - -// GetMonitors returns a slice of handles for all currently connected monitors. -func GetMonitors() []*Monitor { - var length int - - mC := C.glfwGetMonitors((*C.int)(unsafe.Pointer(&length))) - panicError() - if mC == nil { - return nil - } - - m := make([]*Monitor, length) - - for i := 0; i < length; i++ { - m[i] = &Monitor{C.GetMonitorAtIndex(mC, C.int(i))} - } - - return m -} - -// GetPrimaryMonitor returns the primary monitor. This is usually the monitor -// where elements like the Windows task bar or the OS X menu bar is located. -func GetPrimaryMonitor() *Monitor { - m := C.glfwGetPrimaryMonitor() - panicError() - if m == nil { - return nil - } - return &Monitor{m} -} - -// GetPos returns the position, in screen coordinates, of the upper-left -// corner of the monitor. -func (m *Monitor) GetPos() (x, y int) { - var xpos, ypos C.int - C.glfwGetMonitorPos(m.data, &xpos, &ypos) - panicError() - return int(xpos), int(ypos) -} - -// GetPhysicalSize returns the size, in millimetres, of the display area of the -// monitor. -// -// Note: Some operating systems do not provide accurate information, either -// because the monitor's EDID data is incorrect, or because the driver does not -// report it accurately. -func (m *Monitor) GetPhysicalSize() (width, height int) { - var wi, h C.int - C.glfwGetMonitorPhysicalSize(m.data, &wi, &h) - panicError() - return int(wi), int(h) -} - -// GetName returns a human-readable name of the monitor, encoded as UTF-8. -func (m *Monitor) GetName() string { - mn := C.glfwGetMonitorName(m.data) - panicError() - if mn == nil { - return "" - } - return C.GoString(mn) -} - -// SetMonitorCallback sets the monitor configuration callback, or removes the -// currently set callback. This is called when a monitor is connected to or -// disconnected from the system. -func SetMonitorCallback(cbfun func(monitor *Monitor, event MonitorEvent)) { - if cbfun == nil { - C.glfwSetMonitorCallback(nil) - } else { - fMonitorHolder = cbfun - C.glfwSetMonitorCallbackCB() - } - panicError() -} - -// GetVideoModes returns an array of all video modes supported by the monitor. -// The returned array is sorted in ascending order, first by color bit depth -// (the sum of all channel depths) and then by resolution area (the product of -// width and height). -func (m *Monitor) GetVideoModes() []*VidMode { - var length int - - vC := C.glfwGetVideoModes(m.data, (*C.int)(unsafe.Pointer(&length))) - panicError() - if vC == nil { - return nil - } - - v := make([]*VidMode, length) - - for i := 0; i < length; i++ { - t := C.GetVidmodeAtIndex(vC, C.int(i)) - v[i] = &VidMode{int(t.width), int(t.height), int(t.redBits), int(t.greenBits), int(t.blueBits), int(t.refreshRate)} - } - - return v -} - -// GetVideoMode returns the current video mode of the monitor. If you -// are using a full screen window, the return value will therefore depend on -// whether it is focused. -func (m *Monitor) GetVideoMode() *VidMode { - t := C.glfwGetVideoMode(m.data) - if t == nil { - return nil - } - panicError() - return &VidMode{int(t.width), int(t.height), int(t.redBits), int(t.greenBits), int(t.blueBits), int(t.refreshRate)} -} - -// SetGamma generates a 256-element gamma ramp from the specified exponent and then calls -// SetGamma with it. -func (m *Monitor) SetGamma(gamma float32) { - C.glfwSetGamma(m.data, C.float(gamma)) - panicError() -} - -// GetGammaRamp retrieves the current gamma ramp of the monitor. -func (m *Monitor) GetGammaRamp() *GammaRamp { - var ramp GammaRamp - - rampC := C.glfwGetGammaRamp(m.data) - panicError() - if rampC == nil { - return nil - } - - length := int(rampC.size) - ramp.Red = make([]uint16, length) - ramp.Green = make([]uint16, length) - ramp.Blue = make([]uint16, length) - - for i := 0; i < length; i++ { - ramp.Red[i] = uint16(C.GetGammaAtIndex(rampC.red, C.int(i))) - ramp.Green[i] = uint16(C.GetGammaAtIndex(rampC.green, C.int(i))) - ramp.Blue[i] = uint16(C.GetGammaAtIndex(rampC.blue, C.int(i))) - } - - return &ramp -} - -// SetGammaRamp sets the current gamma ramp for the monitor. -func (m *Monitor) SetGammaRamp(ramp *GammaRamp) { - var rampC C.GLFWgammaramp - - length := len(ramp.Red) - - for i := 0; i < length; i++ { - C.SetGammaAtIndex(rampC.red, C.int(i), C.ushort(ramp.Red[i])) - C.SetGammaAtIndex(rampC.green, C.int(i), C.ushort(ramp.Green[i])) - C.SetGammaAtIndex(rampC.blue, C.int(i), C.ushort(ramp.Blue[i])) - } - - C.glfwSetGammaRamp(m.data, &rampC) - panicError() -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/native_darwin.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/native_darwin.go deleted file mode 100644 index 3587c04..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/native_darwin.go +++ /dev/null @@ -1,30 +0,0 @@ -package glfw - -/* -#define GLFW_EXPOSE_NATIVE_COCOA -#define GLFW_EXPOSE_NATIVE_NSGL -#include "glfw/include/GLFW/glfw3.h" -#include "glfw/include/GLFW/glfw3native.h" - -// workaround wrappers needed due to a cgo and/or LLVM bug. -// See: https://github.com/go-gl/glfw/issues/136 -void *workaround_glfwGetCocoaWindow(GLFWwindow *w) { - return (void *)glfwGetCocoaWindow(w); -} -void *workaround_glfwGetNSGLContext(GLFWwindow *w) { - return (void *)glfwGetNSGLContext(w); -} -*/ -import "C" - -func (w *Window) GetCocoaWindow() uintptr { - ret := uintptr(C.workaround_glfwGetCocoaWindow(w.data)) - panicError() - return ret -} - -func (w *Window) GetNSGLContext() uintptr { - ret := uintptr(C.workaround_glfwGetNSGLContext(w.data)) - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/native_linbsd.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/native_linbsd.go deleted file mode 100644 index 343f61c..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/native_linbsd.go +++ /dev/null @@ -1,27 +0,0 @@ -// +build linux freebsd - -package glfw - -//#define GLFW_EXPOSE_NATIVE_X11 -//#define GLFW_EXPOSE_NATIVE_GLX -//#include "glfw/include/GLFW/glfw3.h" -//#include "glfw/include/GLFW/glfw3native.h" -import "C" - -func (w *Window) GetX11Window() C.Window { - ret := C.glfwGetX11Window(w.data) - panicError() - return ret -} - -func (w *Window) GetGLXContext() C.GLXContext { - ret := C.glfwGetGLXContext(w.data) - panicError() - return ret -} - -func GetX11Display() *C.Display { - ret := C.glfwGetX11Display() - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/native_windows.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/native_windows.go deleted file mode 100644 index 20cc0d9..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/native_windows.go +++ /dev/null @@ -1,19 +0,0 @@ -package glfw - -//#define GLFW_EXPOSE_NATIVE_WIN32 -//#define GLFW_EXPOSE_NATIVE_WGL -//#include "glfw/include/GLFW/glfw3.h" -//#include "glfw/include/GLFW/glfw3native.h" -import "C" - -func (w *Window) GetWin32Window() C.HWND { - ret := C.glfwGetWin32Window(w.data) - panicError() - return ret -} - -func (w *Window) GetWGLContext() C.HGLRC { - ret := C.glfwGetWGLContext(w.data) - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/nsglcontext_darwin.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/nsglcontext_darwin.go deleted file mode 100644 index 49a6ca1..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/nsglcontext_darwin.go +++ /dev/null @@ -1,9 +0,0 @@ -package glfw - -/* -#cgo CFLAGS: -x objective-c -#ifdef _GLFW_NSGL - #include "glfw/src/nsgl_context.m" -#endif -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/time.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/time.go deleted file mode 100644 index 6c55ae1..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/time.go +++ /dev/null @@ -1,27 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -// GetTime returns the value of the GLFW timer. Unless the timer has been set -// using SetTime, the timer measures time elapsed since GLFW was initialized. -// -// The resolution of the timer is system dependent, but is usually on the order -// of a few micro- or nanoseconds. It uses the highest-resolution monotonic time -// source on each supported platform. -func GetTime() float64 { - ret := float64(C.glfwGetTime()) - panicError() - return ret -} - -// SetTime sets the value of the GLFW timer. It then continues to count up from -// that value. -// -// The resolution of the timer is system dependent, but is usually on the order -// of a few micro- or nanoseconds. It uses the highest-resolution monotonic time -// source on each supported platform. -func SetTime(time float64) { - C.glfwSetTime(C.double(time)) - panicError() -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/util.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/util.go deleted file mode 100644 index d5be751..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/util.go +++ /dev/null @@ -1,37 +0,0 @@ -package glfw - -//#include -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -import ( - "reflect" - "unsafe" -) - -func glfwbool(b C.int) bool { - if b == C.GL_TRUE { - return true - } - return false -} - -func bytes(origin []byte) (pointer *uint8, free func()) { - n := len(origin) - - if n == 0 { - return nil, func() {} - } - - data := C.malloc(C.size_t(n)) - - dataSlice := *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{ - Data: uintptr(data), - Len: n, - Cap: n, - })) - - copy(dataSlice, origin) - - return &dataSlice[0], func() { C.free(data) } -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/window.c b/vendor/github.com/go-gl/glfw/v3.1/glfw/window.c deleted file mode 100644 index d9cc0d4..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/window.c +++ /dev/null @@ -1,57 +0,0 @@ -#include "_cgo_export.h" - -void glfwWindowPosCB(GLFWwindow* window, int xpos, int ypos) { - goWindowPosCB(window, xpos, ypos); -} - -void glfwWindowSizeCB(GLFWwindow* window, int width, int height) { - goWindowSizeCB(window, width, height); -} - -void glfwFramebufferSizeCB(GLFWwindow* window, int width, int height) { - goFramebufferSizeCB(window, width, height); -} - -void glfwWindowCloseCB(GLFWwindow* window) { - goWindowCloseCB(window); -} - -void glfwWindowRefreshCB(GLFWwindow* window) { - goWindowRefreshCB(window); -} - -void glfwWindowFocusCB(GLFWwindow* window, int focused) { - goWindowFocusCB(window, focused); -} - -void glfwWindowIconifyCB(GLFWwindow* window, int iconified) { - goWindowIconifyCB(window, iconified); -} - -void glfwSetWindowPosCallbackCB(GLFWwindow* window) { - glfwSetWindowPosCallback(window, glfwWindowPosCB); -} - -void glfwSetWindowSizeCallbackCB(GLFWwindow* window) { - glfwSetWindowSizeCallback(window, glfwWindowSizeCB); -} - -void glfwSetFramebufferSizeCallbackCB(GLFWwindow* window) { - glfwSetFramebufferSizeCallback(window, glfwFramebufferSizeCB); -} - -void glfwSetWindowCloseCallbackCB(GLFWwindow* window) { - glfwSetWindowCloseCallback(window, glfwWindowCloseCB); -} - -void glfwSetWindowRefreshCallbackCB(GLFWwindow* window) { - glfwSetWindowRefreshCallback(window, glfwWindowRefreshCB); -} - -void glfwSetWindowFocusCallbackCB(GLFWwindow* window) { - glfwSetWindowFocusCallback(window, glfwWindowFocusCB); -} - -void glfwSetWindowIconifyCallbackCB(GLFWwindow* window) { - glfwSetWindowIconifyCallback(window, glfwWindowIconifyCB); -} diff --git a/vendor/github.com/go-gl/glfw/v3.1/glfw/window.go b/vendor/github.com/go-gl/glfw/v3.1/glfw/window.go deleted file mode 100644 index aea5f6e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.1/glfw/window.go +++ /dev/null @@ -1,657 +0,0 @@ -package glfw - -//#include -//#include "glfw/include/GLFW/glfw3.h" -//void glfwSetWindowPosCallbackCB(GLFWwindow *window); -//void glfwSetWindowSizeCallbackCB(GLFWwindow *window); -//void glfwSetFramebufferSizeCallbackCB(GLFWwindow *window); -//void glfwSetWindowCloseCallbackCB(GLFWwindow *window); -//void glfwSetWindowRefreshCallbackCB(GLFWwindow *window); -//void glfwSetWindowFocusCallbackCB(GLFWwindow *window); -//void glfwSetWindowIconifyCallbackCB(GLFWwindow *window); -import "C" - -import ( - "sync" - "unsafe" -) - -// Internal window list stuff -type windowList struct { - l sync.Mutex - m map[*C.GLFWwindow]*Window -} - -var windows = windowList{m: map[*C.GLFWwindow]*Window{}} - -func (w *windowList) put(wnd *Window) { - w.l.Lock() - defer w.l.Unlock() - w.m[wnd.data] = wnd -} - -func (w *windowList) remove(wnd *C.GLFWwindow) { - w.l.Lock() - defer w.l.Unlock() - delete(w.m, wnd) -} - -func (w *windowList) get(wnd *C.GLFWwindow) *Window { - w.l.Lock() - defer w.l.Unlock() - return w.m[wnd] -} - -// Hint corresponds to hints that can be set before creating a window. -// -// Hint also corresponds to the attributes of the window that can be get after -// its creation. -type Hint int - -// Window related hints. -const ( - Focused Hint = C.GLFW_FOCUSED // Specifies whether the window will be given input focus when created. This hint is ignored for full screen and initially hidden windows. - Iconified Hint = C.GLFW_ICONIFIED // Specifies whether the window will be minimized. - Visible Hint = C.GLFW_VISIBLE // Specifies whether the window will be initially visible. - Resizable Hint = C.GLFW_RESIZABLE // Specifies whether the window will be resizable by the user. - Decorated Hint = C.GLFW_DECORATED // Specifies whether the window will have window decorations such as a border, a close widget, etc. - Floating Hint = C.GLFW_FLOATING // Specifies whether the window will be always-on-top. - AutoIconify Hint = C.GLFW_AUTO_ICONIFY // Specifies whether fullscreen windows automatically iconify (and restore the previous video mode) on focus loss. -) - -// Context related hints. -const ( - ClientAPI Hint = C.GLFW_CLIENT_API // Specifies which client API to create the context for. Hard constraint. - ContextVersionMajor Hint = C.GLFW_CONTEXT_VERSION_MAJOR // Specifies the client API version that the created context must be compatible with. - ContextVersionMinor Hint = C.GLFW_CONTEXT_VERSION_MINOR // Specifies the client API version that the created context must be compatible with. - ContextRobustness Hint = C.GLFW_CONTEXT_ROBUSTNESS // Specifies the robustness strategy to be used by the context. - ContextReleaseBehavior Hint = C.GLFW_CONTEXT_RELEASE_BEHAVIOR // Specifies the release behavior to be used by the context. - OpenGLForwardCompatible Hint = C.GLFW_OPENGL_FORWARD_COMPAT // Specifies whether the OpenGL context should be forward-compatible. Hard constraint. - OpenGLDebugContext Hint = C.GLFW_OPENGL_DEBUG_CONTEXT // Specifies whether to create a debug OpenGL context, which may have additional error and performance issue reporting functionality. If OpenGL ES is requested, this hint is ignored. - OpenGLProfile Hint = C.GLFW_OPENGL_PROFILE // Specifies which OpenGL profile to create the context for. Hard constraint. -) - -// Framebuffer related hints. -const ( - ContextRevision Hint = C.GLFW_CONTEXT_REVISION - RedBits Hint = C.GLFW_RED_BITS // Specifies the desired bit depth of the default framebuffer. - GreenBits Hint = C.GLFW_GREEN_BITS // Specifies the desired bit depth of the default framebuffer. - BlueBits Hint = C.GLFW_BLUE_BITS // Specifies the desired bit depth of the default framebuffer. - AlphaBits Hint = C.GLFW_ALPHA_BITS // Specifies the desired bit depth of the default framebuffer. - DepthBits Hint = C.GLFW_DEPTH_BITS // Specifies the desired bit depth of the default framebuffer. - StencilBits Hint = C.GLFW_STENCIL_BITS // Specifies the desired bit depth of the default framebuffer. - AccumRedBits Hint = C.GLFW_ACCUM_RED_BITS // Specifies the desired bit depth of the accumulation buffer. - AccumGreenBits Hint = C.GLFW_ACCUM_GREEN_BITS // Specifies the desired bit depth of the accumulation buffer. - AccumBlueBits Hint = C.GLFW_ACCUM_BLUE_BITS // Specifies the desired bit depth of the accumulation buffer. - AccumAlphaBits Hint = C.GLFW_ACCUM_ALPHA_BITS // Specifies the desired bit depth of the accumulation buffer. - AuxBuffers Hint = C.GLFW_AUX_BUFFERS // Specifies the desired number of auxiliary buffers. - Stereo Hint = C.GLFW_STEREO // Specifies whether to use stereoscopic rendering. Hard constraint. - Samples Hint = C.GLFW_SAMPLES // Specifies the desired number of samples to use for multisampling. Zero disables multisampling. - SRGBCapable Hint = C.GLFW_SRGB_CAPABLE // Specifies whether the framebuffer should be sRGB capable. - RefreshRate Hint = C.GLFW_REFRESH_RATE // Specifies the desired refresh rate for full screen windows. If set to zero, the highest available refresh rate will be used. This hint is ignored for windowed mode windows. - DoubleBuffer Hint = C.GLFW_DOUBLEBUFFER // Specifies whether the framebuffer should be double buffered. You nearly always want to use double buffering. This is a hard constraint. -) - -// Values for the ClientAPI hint. -const ( - OpenGLAPI int = C.GLFW_OPENGL_API - OpenGLESAPI int = C.GLFW_OPENGL_ES_API -) - -// Values for the ContextRobustness hint. -const ( - NoRobustness int = C.GLFW_NO_ROBUSTNESS - NoResetNotification int = C.GLFW_NO_RESET_NOTIFICATION - LoseContextOnReset int = C.GLFW_LOSE_CONTEXT_ON_RESET -) - -// Values for ContextReleaseBehavior hint. -const ( - AnyReleaseBehavior int = C.GLFW_ANY_RELEASE_BEHAVIOR - ReleaseBehaviorFlush int = C.GLFW_RELEASE_BEHAVIOR_FLUSH - ReleaseBehaviorNone int = C.GLFW_RELEASE_BEHAVIOR_NONE -) - -// Values for the OpenGLProfile hint. -const ( - OpenGLAnyProfile int = C.GLFW_OPENGL_ANY_PROFILE - OpenGLCoreProfile int = C.GLFW_OPENGL_CORE_PROFILE - OpenGLCompatProfile int = C.GLFW_OPENGL_COMPAT_PROFILE -) - -// Other values. -const ( - True int = C.GL_TRUE - False int = C.GL_FALSE - DontCare int = C.GLFW_DONT_CARE -) - -type Window struct { - data *C.GLFWwindow - - // Window - fPosHolder func(w *Window, xpos int, ypos int) - fSizeHolder func(w *Window, width int, height int) - fFramebufferSizeHolder func(w *Window, width int, height int) - fCloseHolder func(w *Window) - fRefreshHolder func(w *Window) - fFocusHolder func(w *Window, focused bool) - fIconifyHolder func(w *Window, iconified bool) - - // Input - fMouseButtonHolder func(w *Window, button MouseButton, action Action, mod ModifierKey) - fCursorPosHolder func(w *Window, xpos float64, ypos float64) - fCursorEnterHolder func(w *Window, entered bool) - fScrollHolder func(w *Window, xoff float64, yoff float64) - fKeyHolder func(w *Window, key Key, scancode int, action Action, mods ModifierKey) - fCharHolder func(w *Window, char rune) - fCharModsHolder func(w *Window, char rune, mods ModifierKey) - fDropHolder func(w *Window, names []string) -} - -//export goWindowPosCB -func goWindowPosCB(window unsafe.Pointer, xpos, ypos C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fPosHolder(w, int(xpos), int(ypos)) -} - -//export goWindowSizeCB -func goWindowSizeCB(window unsafe.Pointer, width, height C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fSizeHolder(w, int(width), int(height)) -} - -//export goFramebufferSizeCB -func goFramebufferSizeCB(window unsafe.Pointer, width, height C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fFramebufferSizeHolder(w, int(width), int(height)) -} - -//export goWindowCloseCB -func goWindowCloseCB(window unsafe.Pointer) { - w := windows.get((*C.GLFWwindow)(window)) - w.fCloseHolder(w) -} - -//export goWindowRefreshCB -func goWindowRefreshCB(window unsafe.Pointer) { - w := windows.get((*C.GLFWwindow)(window)) - w.fRefreshHolder(w) -} - -//export goWindowFocusCB -func goWindowFocusCB(window unsafe.Pointer, focused C.int) { - w := windows.get((*C.GLFWwindow)(window)) - isFocused := glfwbool(focused) - w.fFocusHolder(w, isFocused) -} - -//export goWindowIconifyCB -func goWindowIconifyCB(window unsafe.Pointer, iconified C.int) { - isIconified := glfwbool(iconified) - w := windows.get((*C.GLFWwindow)(window)) - w.fIconifyHolder(w, isIconified) -} - -// DefaultHints resets all window hints to their default values. -// -// This function may only be called from the main thread. -func DefaultWindowHints() { - C.glfwDefaultWindowHints() - panicError() -} - -// Hint function sets hints for the next call to CreateWindow. The hints, -// once set, retain their values until changed by a call to Hint or -// DefaultHints, or until the library is terminated with Terminate. -// -// This function may only be called from the main thread. -func WindowHint(target Hint, hint int) { - C.glfwWindowHint(C.int(target), C.int(hint)) - panicError() -} - -// CreateWindow creates a window and its associated context. Most of the options -// controlling how the window and its context should be created are specified -// through Hint. -// -// Successful creation does not change which context is current. Before you can -// use the newly created context, you need to make it current using -// MakeContextCurrent. -// -// Note that the created window and context may differ from what you requested, -// as not all parameters and hints are hard constraints. This includes the size -// of the window, especially for full screen windows. To retrieve the actual -// attributes of the created window and context, use queries like -// GetWindowAttrib and GetWindowSize. -// -// To create the window at a specific position, make it initially invisible using -// the Visible window hint, set its position and then show it. -// -// If a fullscreen window is active, the screensaver is prohibited from starting. -// -// Windows: If the executable has an icon resource named GLFW_ICON, it will be -// set as the icon for the window. If no such icon is present, the IDI_WINLOGO -// icon will be used instead. -// -// Mac OS X: The GLFW window has no icon, as it is not a document window, but the -// dock icon will be the same as the application bundle's icon. Also, the first -// time a window is opened the menu bar is populated with common commands like -// Hide, Quit and About. The (minimal) about dialog uses information from the -// application's bundle. For more information on bundles, see the Bundle -// Programming Guide provided by Apple. -// -// This function may only be called from the main thread. -func CreateWindow(width, height int, title string, monitor *Monitor, share *Window) (*Window, error) { - var ( - m *C.GLFWmonitor - s *C.GLFWwindow - ) - - t := C.CString(title) - defer C.free(unsafe.Pointer(t)) - - if monitor != nil { - m = monitor.data - } - - if share != nil { - s = share.data - } - - w := C.glfwCreateWindow(C.int(width), C.int(height), t, m, s) - if w == nil { - return nil, acceptError(APIUnavailable, VersionUnavailable) - } - - wnd := &Window{data: w} - windows.put(wnd) - return wnd, nil -} - -// Destroy destroys the specified window and its context. On calling this -// function, no further callbacks will be called for that window. -// -// This function may only be called from the main thread. -func (w *Window) Destroy() { - windows.remove(w.data) - C.glfwDestroyWindow(w.data) - panicError() -} - -// ShouldClose returns the value of the close flag of the specified window. -func (w *Window) ShouldClose() bool { - ret := glfwbool(C.glfwWindowShouldClose(w.data)) - panicError() - return ret -} - -// SetShouldClose sets the value of the close flag of the window. This can be -// used to override the user's attempt to close the window, or to signal that it -// should be closed. -func (w *Window) SetShouldClose(value bool) { - if !value { - C.glfwSetWindowShouldClose(w.data, C.GL_FALSE) - } else { - C.glfwSetWindowShouldClose(w.data, C.GL_TRUE) - } - panicError() -} - -// SetTitle sets the window title, encoded as UTF-8, of the window. -// -// This function may only be called from the main thread. -func (w *Window) SetTitle(title string) { - t := C.CString(title) - defer C.free(unsafe.Pointer(t)) - C.glfwSetWindowTitle(w.data, t) - panicError() -} - -// GetPos returns the position, in screen coordinates, of the upper-left -// corner of the client area of the window. -func (w *Window) GetPos() (x, y int) { - var xpos, ypos C.int - C.glfwGetWindowPos(w.data, &xpos, &ypos) - panicError() - return int(xpos), int(ypos) -} - -// SetPos sets the position, in screen coordinates, of the upper-left corner -// of the client area of the window. -// -// If it is a full screen window, this function does nothing. -// -// If you wish to set an initial window position you should create a hidden -// window (using Hint and Visible), set its position and then show it. -// -// It is very rarely a good idea to move an already visible window, as it will -// confuse and annoy the user. -// -// The window manager may put limits on what positions are allowed. -// -// This function may only be called from the main thread. -func (w *Window) SetPos(xpos, ypos int) { - C.glfwSetWindowPos(w.data, C.int(xpos), C.int(ypos)) - panicError() -} - -// GetSize returns the size, in screen coordinates, of the client area of the -// specified window. -func (w *Window) GetSize() (width, height int) { - var wi, h C.int - C.glfwGetWindowSize(w.data, &wi, &h) - panicError() - return int(wi), int(h) -} - -// SetSize sets the size, in screen coordinates, of the client area of the -// window. -// -// For full screen windows, this function selects and switches to the resolution -// closest to the specified size, without affecting the window's context. As the -// context is unaffected, the bit depths of the framebuffer remain unchanged. -// -// The window manager may put limits on what window sizes are allowed. -// -// This function may only be called from the main thread. -func (w *Window) SetSize(width, height int) { - C.glfwSetWindowSize(w.data, C.int(width), C.int(height)) - panicError() -} - -// GetFramebufferSize retrieves the size, in pixels, of the framebuffer of the -// specified window. -func (w *Window) GetFramebufferSize() (width, height int) { - var wi, h C.int - C.glfwGetFramebufferSize(w.data, &wi, &h) - panicError() - return int(wi), int(h) -} - -// GetFrameSize retrieves the size, in screen coordinates, of each edge of the frame -// of the specified window. This size includes the title bar, if the window has one. -// The size of the frame may vary depending on the window-related hints used to create it. -// -// Because this function retrieves the size of each window frame edge and not the offset -// along a particular coordinate axis, the retrieved values will always be zero or positive. -func (w *Window) GetFrameSize() (left, top, right, bottom int) { - var l, t, r, b C.int - C.glfwGetWindowFrameSize(w.data, &l, &t, &r, &b) - panicError() - return int(l), int(t), int(r), int(b) -} - -// Iconfiy iconifies/minimizes the window, if it was previously restored. If it -// is a full screen window, the original monitor resolution is restored until the -// window is restored. If the window is already iconified, this function does -// nothing. -// -// This function may only be called from the main thread. -func (w *Window) Iconify() error { - C.glfwIconifyWindow(w.data) - return acceptError(APIUnavailable) -} - -// Restore restores the window, if it was previously iconified/minimized. If it -// is a full screen window, the resolution chosen for the window is restored on -// the selected monitor. If the window is already restored, this function does -// nothing. -// -// This function may only be called from the main thread. -func (w *Window) Restore() error { - C.glfwRestoreWindow(w.data) - return acceptError(APIUnavailable) -} - -// Show makes the window visible, if it was previously hidden. If the window is -// already visible or is in full screen mode, this function does nothing. -// -// This function may only be called from the main thread. -func (w *Window) Show() { - C.glfwShowWindow(w.data) - panicError() -} - -// Hide hides the window, if it was previously visible. If the window is already -// hidden or is in full screen mode, this function does nothing. -// -// This function may only be called from the main thread. -func (w *Window) Hide() { - C.glfwHideWindow(w.data) - panicError() -} - -// GetMonitor returns the handle of the monitor that the window is in -// fullscreen on. -// -// Returns nil if the window is in windowed mode. -func (w *Window) GetMonitor() *Monitor { - m := C.glfwGetWindowMonitor(w.data) - panicError() - if m == nil { - return nil - } - return &Monitor{m} -} - -// GetAttrib returns an attribute of the window. There are many attributes, -// some related to the window and others to its context. -func (w *Window) GetAttrib(attrib Hint) int { - ret := int(C.glfwGetWindowAttrib(w.data, C.int(attrib))) - panicError() - return ret -} - -// SetUserPointer sets the user-defined pointer of the window. The current value -// is retained until the window is destroyed. The initial value is nil. -func (w *Window) SetUserPointer(pointer unsafe.Pointer) { - C.glfwSetWindowUserPointer(w.data, pointer) - panicError() -} - -// GetUserPointer returns the current value of the user-defined pointer of the -// window. The initial value is nil. -func (w *Window) GetUserPointer() unsafe.Pointer { - ret := C.glfwGetWindowUserPointer(w.data) - panicError() - return ret -} - -type PosCallback func(w *Window, xpos int, ypos int) - -// SetPosCallback sets the position callback of the window, which is called -// when the window is moved. The callback is provided with the screen position -// of the upper-left corner of the client area of the window. -func (w *Window) SetPosCallback(cbfun PosCallback) (previous PosCallback) { - previous = w.fPosHolder - w.fPosHolder = cbfun - if cbfun == nil { - C.glfwSetWindowPosCallback(w.data, nil) - } else { - C.glfwSetWindowPosCallbackCB(w.data) - } - panicError() - return previous -} - -type SizeCallback func(w *Window, width int, height int) - -// SetSizeCallback sets the size callback of the window, which is called when -// the window is resized. The callback is provided with the size, in screen -// coordinates, of the client area of the window. -func (w *Window) SetSizeCallback(cbfun SizeCallback) (previous SizeCallback) { - previous = w.fSizeHolder - w.fSizeHolder = cbfun - if cbfun == nil { - C.glfwSetWindowSizeCallback(w.data, nil) - } else { - C.glfwSetWindowSizeCallbackCB(w.data) - } - panicError() - return previous -} - -type FramebufferSizeCallback func(w *Window, width int, height int) - -// SetFramebufferSizeCallback sets the framebuffer resize callback of the specified -// window, which is called when the framebuffer of the specified window is resized. -func (w *Window) SetFramebufferSizeCallback(cbfun FramebufferSizeCallback) (previous FramebufferSizeCallback) { - previous = w.fFramebufferSizeHolder - w.fFramebufferSizeHolder = cbfun - if cbfun == nil { - C.glfwSetFramebufferSizeCallback(w.data, nil) - } else { - C.glfwSetFramebufferSizeCallbackCB(w.data) - } - panicError() - return previous -} - -type CloseCallback func(w *Window) - -// SetCloseCallback sets the close callback of the window, which is called when -// the user attempts to close the window, for example by clicking the close -// widget in the title bar. -// -// The close flag is set before this callback is called, but you can modify it at -// any time with SetShouldClose. -// -// Mac OS X: Selecting Quit from the application menu will trigger the close -// callback for all windows. -func (w *Window) SetCloseCallback(cbfun CloseCallback) (previous CloseCallback) { - previous = w.fCloseHolder - w.fCloseHolder = cbfun - if cbfun == nil { - C.glfwSetWindowCloseCallback(w.data, nil) - } else { - C.glfwSetWindowCloseCallbackCB(w.data) - } - panicError() - return previous -} - -type RefreshCallback func(w *Window) - -// SetRefreshCallback sets the refresh callback of the window, which -// is called when the client area of the window needs to be redrawn, for example -// if the window has been exposed after having been covered by another window. -// -// On compositing window systems such as Aero, Compiz or Aqua, where the window -// contents are saved off-screen, this callback may be called only very -// infrequently or never at all. -func (w *Window) SetRefreshCallback(cbfun RefreshCallback) (previous RefreshCallback) { - previous = w.fRefreshHolder - w.fRefreshHolder = cbfun - if cbfun == nil { - C.glfwSetWindowRefreshCallback(w.data, nil) - } else { - C.glfwSetWindowRefreshCallbackCB(w.data) - } - panicError() - return previous -} - -type FocusCallback func(w *Window, focused bool) - -// SetFocusCallback sets the focus callback of the window, which is called when -// the window gains or loses focus. -// -// After the focus callback is called for a window that lost focus, synthetic key -// and mouse button release events will be generated for all such that had been -// pressed. For more information, see SetKeyCallback and SetMouseButtonCallback. -func (w *Window) SetFocusCallback(cbfun FocusCallback) (previous FocusCallback) { - previous = w.fFocusHolder - w.fFocusHolder = cbfun - if cbfun == nil { - C.glfwSetWindowFocusCallback(w.data, nil) - } else { - C.glfwSetWindowFocusCallbackCB(w.data) - } - panicError() - return previous -} - -type IconifyCallback func(w *Window, iconified bool) - -// SetIconifyCallback sets the iconification callback of the window, which is -// called when the window is iconified or restored. -func (w *Window) SetIconifyCallback(cbfun IconifyCallback) (previous IconifyCallback) { - previous = w.fIconifyHolder - w.fIconifyHolder = cbfun - if cbfun == nil { - C.glfwSetWindowIconifyCallback(w.data, nil) - } else { - C.glfwSetWindowIconifyCallbackCB(w.data) - } - panicError() - return previous -} - -// SetClipboardString sets the system clipboard to the specified UTF-8 encoded -// string. -// -// This function may only be called from the main thread. -func (w *Window) SetClipboardString(str string) { - cp := C.CString(str) - defer C.free(unsafe.Pointer(cp)) - C.glfwSetClipboardString(w.data, cp) - panicError() -} - -// GetClipboardString returns the contents of the system clipboard, if it -// contains or is convertible to a UTF-8 encoded string. -// -// This function may only be called from the main thread. -func (w *Window) GetClipboardString() (string, error) { - cs := C.glfwGetClipboardString(w.data) - if cs == nil { - return "", acceptError(FormatUnavailable) - } - return C.GoString(cs), nil -} - -// PollEvents processes only those events that have already been received and -// then returns immediately. Processing events will cause the window and input -// callbacks associated with those events to be called. -// -// This function is not required for joystick input to work. -// -// This function may not be called from a callback. -// -// This function may only be called from the main thread. -func PollEvents() { - C.glfwPollEvents() - panicError() -} - -// WaitEvents puts the calling thread to sleep until at least one event has been -// received. Once one or more events have been recevied, it behaves as if -// PollEvents was called, i.e. the events are processed and the function then -// returns immediately. Processing events will cause the window and input -// callbacks associated with those events to be called. -// -// Since not all events are associated with callbacks, this function may return -// without a callback having been called even if you are monitoring all -// callbacks. -// -// This function may not be called from a callback. -// -// This function may only be called from the main thread. -func WaitEvents() { - C.glfwWaitEvents() - panicError() -} - -// PostEmptyEvent posts an empty event from the current thread to the main -// thread event queue, causing WaitEvents to return. -// -// If no windows exist, this function returns immediately. For -// synchronization of threads in applications that do not create windows, use -// your threading library of choice. -// -// This function may be called from secondary threads. -func PostEmptyEvent() { - C.glfwPostEmptyEvent() - panicError() -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/GLFW_C_REVISION.txt b/vendor/github.com/go-gl/glfw/v3.2/glfw/GLFW_C_REVISION.txt deleted file mode 100644 index 9a14f86..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/GLFW_C_REVISION.txt +++ /dev/null @@ -1 +0,0 @@ -999f3556fdd80983b10051746264489f2cb1ef16 diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/build.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/build.go deleted file mode 100644 index e884cfe..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/build.go +++ /dev/null @@ -1,43 +0,0 @@ -package glfw - -/* -// Windows Build Tags -// ---------------- -// GLFW Options: -#cgo windows CFLAGS: -D_GLFW_WIN32 -Iglfw/deps/mingw - -// Linker Options: -#cgo windows LDFLAGS: -lopengl32 -lgdi32 - - -// Darwin Build Tags -// ---------------- -// GLFW Options: -#cgo darwin CFLAGS: -D_GLFW_COCOA -D_GLFW_USE_CHDIR -D_GLFW_USE_MENUBAR -D_GLFW_USE_RETINA -Wno-deprecated-declarations - -// Linker Options: -#cgo darwin LDFLAGS: -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo - - -// Linux Build Tags -// ---------------- -// GLFW Options: -#cgo linux,!wayland CFLAGS: -D_GLFW_X11 -#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND - -// Linker Options: -#cgo linux,!wayland LDFLAGS: -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -ldl -lrt -#cgo linux,wayland LDFLAGS: -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -ldl -lrt - - -// FreeBSD Build Tags -// ---------------- -// GLFW Options: -#cgo freebsd,!wayland CFLAGS: -D_GLFW_X11 -D_GLFW_HAS_GLXGETPROCADDRESSARB -D_GLFW_HAS_DLOPEN -#cgo freebsd,wayland CFLAGS: -D_GLFW_WAYLAND -D_GLFW_HAS_DLOPEN - -// Linker Options: -#cgo freebsd,!wayland LDFLAGS: -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -#cgo freebsd,wayland LDFLAGS: -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw.go deleted file mode 100644 index e7912b7..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw.go +++ /dev/null @@ -1,11 +0,0 @@ -package glfw - -/* -#include "glfw/src/context.c" -#include "glfw/src/init.c" -#include "glfw/src/input.c" -#include "glfw/src/monitor.c" -#include "glfw/src/vulkan.c" -#include "glfw/src/window.c" -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_darwin.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_darwin.go deleted file mode 100644 index 49e6527..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_darwin.go +++ /dev/null @@ -1,13 +0,0 @@ -package glfw - -/* -#cgo CFLAGS: -x objective-c -#include "glfw/src/cocoa_init.m" -#include "glfw/src/cocoa_joystick.m" -#include "glfw/src/cocoa_monitor.m" -#include "glfw/src/cocoa_window.m" -#include "glfw/src/cocoa_time.c" -#include "glfw/src/posix_tls.c" -#include "glfw/src/nsgl_context.m" -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_linbsd.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_linbsd.go deleted file mode 100644 index 3eb0781..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_linbsd.go +++ /dev/null @@ -1,28 +0,0 @@ -// +build linux freebsd - -package glfw - -/* -#ifdef _GLFW_MIR - #include "glfw/src/mir_init.c" - #include "glfw/src/mir_monitor.c" - #include "glfw/src/mir_window.c" -#endif -#ifdef _GLFW_WAYLAND - #include "glfw/src/wl_init.c" - #include "glfw/src/wl_monitor.c" - #include "glfw/src/wl_window.c" -#endif -#ifdef _GLFW_X11 - #include "glfw/src/x11_init.c" - #include "glfw/src/x11_monitor.c" - #include "glfw/src/x11_window.c" - #include "glfw/src/glx_context.c" -#endif -#include "glfw/src/linux_joystick.c" -#include "glfw/src/posix_time.c" -#include "glfw/src/posix_tls.c" -#include "glfw/src/xkb_unicode.c" -#include "glfw/src/egl_context.c" -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_windows.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_windows.go deleted file mode 100644 index a410ee5..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw_windows.go +++ /dev/null @@ -1,13 +0,0 @@ -package glfw - -/* -#include "glfw/src/win32_init.c" -#include "glfw/src/win32_joystick.c" -#include "glfw/src/win32_monitor.c" -#include "glfw/src/win32_time.c" -#include "glfw/src/win32_tls.c" -#include "glfw/src/win32_window.c" -#include "glfw/src/wgl_context.c" -#include "glfw/src/egl_context.c" -*/ -import "C" diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/context.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/context.go deleted file mode 100644 index 52ccd5d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/context.go +++ /dev/null @@ -1,77 +0,0 @@ -package glfw - -//#include -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -import ( - "unsafe" -) - -// MakeContextCurrent makes the context of the window current. -// Originally GLFW 3 passes a null pointer to detach the context. -// But since we're using receievers, DetachCurrentContext should -// be used instead. -func (w *Window) MakeContextCurrent() { - C.glfwMakeContextCurrent(w.data) - panicError() -} - -// DetachCurrentContext detaches the current context. -func DetachCurrentContext() { - C.glfwMakeContextCurrent(nil) - panicError() -} - -// GetCurrentContext returns the window whose context is current. -func GetCurrentContext() *Window { - w := C.glfwGetCurrentContext() - panicError() - if w == nil { - return nil - } - return windows.get(w) -} - -// SwapBuffers swaps the front and back buffers of the window. If the -// swap interval is greater than zero, the GPU driver waits the specified number -// of screen updates before swapping the buffers. -func (w *Window) SwapBuffers() { - C.glfwSwapBuffers(w.data) - panicError() -} - -// SwapInterval sets the swap interval for the current context, i.e. the number -// of screen updates to wait before swapping the buffers of a window and -// returning from SwapBuffers. This is sometimes called -// 'vertical synchronization', 'vertical retrace synchronization' or 'vsync'. -// -// Contexts that support either of the WGL_EXT_swap_control_tear and -// GLX_EXT_swap_control_tear extensions also accept negative swap intervals, -// which allow the driver to swap even if a frame arrives a little bit late. -// You can check for the presence of these extensions using -// ExtensionSupported. For more information about swap tearing, -// see the extension specifications. -// -// Some GPU drivers do not honor the requested swap interval, either because of -// user settings that override the request or due to bugs in the driver. -func SwapInterval(interval int) { - C.glfwSwapInterval(C.int(interval)) - panicError() -} - -// ExtensionSupported reports whether the specified OpenGL or context creation -// API extension is supported by the current context. For example, on Windows -// both the OpenGL and WGL extension strings are checked. -// -// As this functions searches one or more extension strings on each call, it is -// recommended that you cache its results if it's going to be used frequently. -// The extension strings will not change during the lifetime of a context, so -// there is no danger in doing this. -func ExtensionSupported(extension string) bool { - e := C.CString(extension) - defer C.free(unsafe.Pointer(e)) - ret := glfwbool(C.glfwExtensionSupported(e)) - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/error.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/error.c deleted file mode 100644 index cb20a30..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/error.c +++ /dev/null @@ -1,9 +0,0 @@ -#include "_cgo_export.h" - -void glfwErrorCB(int code, const char *desc) { - goErrorCB(code, (char*)desc); -} - -void glfwSetErrorCallbackCB() { - glfwSetErrorCallback(glfwErrorCB); -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/error.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/error.go deleted file mode 100644 index d7127c3..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/error.go +++ /dev/null @@ -1,199 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -//void glfwSetErrorCallbackCB(); -import "C" - -import ( - "fmt" - "log" -) - -// ErrorCode corresponds to an error code. -type ErrorCode int - -// Error codes that are translated to panics and the programmer should not -// expect to handle. -const ( - notInitialized ErrorCode = C.GLFW_NOT_INITIALIZED // GLFW has not been initialized. - noCurrentContext ErrorCode = C.GLFW_NO_CURRENT_CONTEXT // No context is current. - invalidEnum ErrorCode = C.GLFW_INVALID_ENUM // One of the enum parameters for the function was given an invalid enum. - invalidValue ErrorCode = C.GLFW_INVALID_VALUE // One of the parameters for the function was given an invalid value. - outOfMemory ErrorCode = C.GLFW_OUT_OF_MEMORY // A memory allocation failed. - platformError ErrorCode = C.GLFW_PLATFORM_ERROR // A platform-specific error occurred that does not match any of the more specific categories. -) - -const ( - // APIUnavailable is the error code used when GLFW could not find support - // for the requested client API on the system. - // - // The installed graphics driver does not support the requested client API, - // or does not support it via the chosen context creation backend. Below - // are a few examples. - // - // Some pre-installed Windows graphics drivers do not support OpenGL. AMD - // only supports OpenGL ES via EGL, while Nvidia and Intel only supports it - // via a WGL or GLX extension. OS X does not provide OpenGL ES at all. The - // Mesa EGL, OpenGL and OpenGL ES libraries do not interface with the - // Nvidia binary driver. - APIUnavailable ErrorCode = C.GLFW_API_UNAVAILABLE - - // VersionUnavailable is the error code used when the requested OpenGL or - // OpenGL ES (including any requested profile or context option) is not - // available on this machine. - // - // The machine does not support your requirements. If your application is - // sufficiently flexible, downgrade your requirements and try again. - // Otherwise, inform the user that their machine does not match your - // requirements. - // - // Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if - // 5.0 comes out before the 4.x series gets that far, also fail with this - // error and not GLFW_INVALID_VALUE, because GLFW cannot know what future - // versions will exist. - VersionUnavailable ErrorCode = C.GLFW_VERSION_UNAVAILABLE - - // FormatUnavailable is the error code used for both window creation and - // clipboard querying format errors. - // - // If emitted during window creation, the requested pixel format is not - // supported. This means one or more hard constraints did not match any of - // the available pixel formats. If your application is sufficiently - // flexible, downgrade your requirements and try again. Otherwise, inform - // the user that their machine does not match your requirements. - // - // If emitted when querying the clipboard, the contents of the clipboard - // could not be converted to the requested format. You should ignore the - // error or report it to the user, as appropriate. - FormatUnavailable ErrorCode = C.GLFW_FORMAT_UNAVAILABLE -) - -func (e ErrorCode) String() string { - switch e { - case notInitialized: - return "NotInitialized" - case noCurrentContext: - return "NoCurrentContext" - case invalidEnum: - return "InvalidEnum" - case invalidValue: - return "InvalidValue" - case outOfMemory: - return "OutOfMemory" - case platformError: - return "PlatformError" - case APIUnavailable: - return "APIUnavailable" - case VersionUnavailable: - return "VersionUnavailable" - case FormatUnavailable: - return "FormatUnavailable" - default: - return fmt.Sprintf("ErrorCode(%d)", e) - } -} - -// Error holds error code and description. -type Error struct { - Code ErrorCode - Desc string -} - -// Error prints the error code and description in a readable format. -func (e *Error) Error() string { - return fmt.Sprintf("%s: %s", e.Code.String(), e.Desc) -} - -// Note: There are many cryptic caveats to proper error handling here. -// See: https://github.com/go-gl/glfw3/pull/86 - -// Holds the value of the last error. -var lastError = make(chan *Error, 1) - -//export goErrorCB -func goErrorCB(code C.int, desc *C.char) { - flushErrors() - err := &Error{ErrorCode(code), C.GoString(desc)} - select { - case lastError <- err: - default: - fmt.Println("GLFW: An uncaught error has occurred:", err) - fmt.Println("GLFW: Please report this bug in the Go package immediately.") - } -} - -// Set the glfw callback internally -func init() { - C.glfwSetErrorCallbackCB() -} - -// flushErrors is called by Terminate before it actually calls C.glfwTerminate, -// this ensures that any uncaught errors buffered in lastError are printed -// before the program exits. -func flushErrors() { - err := fetchError() - if err != nil { - fmt.Println("GLFW: An uncaught error has occurred:", err) - fmt.Println("GLFW: Please report this bug in the Go package immediately.") - } -} - -// acceptError fetches the next error from the error channel, it accepts only -// errors with one of the given error codes. If any other error is encountered, -// a panic will occur. -// -// Platform errors are always printed, for information why please see: -// -// https://github.com/go-gl/glfw/issues/127 -// -func acceptError(codes ...ErrorCode) error { - // Grab the next error, if there is one. - err := fetchError() - if err == nil { - return nil - } - - // Only if the error has the specific error code accepted by the caller, do - // we return the error. - for _, code := range codes { - if err.Code == code { - return err - } - } - - // The error isn't accepted by the caller. If the error code is not a code - // defined in the GLFW C documentation as a programmer error, then the - // caller should have accepted it. This is effectively a bug in this - // package. - switch err.Code { - case platformError: - log.Println(err) - return nil - case notInitialized, noCurrentContext, invalidEnum, invalidValue, outOfMemory: - panic(err) - default: - fmt.Println("GLFW: An invalid error was not accepted by the caller:", err) - fmt.Println("GLFW: Please report this bug in the Go package immediately.") - panic(err) - } -} - -// panicError is a helper used by functions which expect no errors (except -// programmer errors) to occur. It will panic if it finds any such error. -func panicError() { - err := acceptError() - if err != nil { - panic(err) - } -} - -// fetchError fetches the next error from the error channel, it does not block -// and returns nil if there is no error present. -func fetchError() *Error { - select { - case err := <-lastError: - return err - default: - return nil - } -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw.go deleted file mode 100644 index 1c3c076..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw.go +++ /dev/null @@ -1,76 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -// Version constants. -const ( - VersionMajor = C.GLFW_VERSION_MAJOR // This is incremented when the API is changed in non-compatible ways. - VersionMinor = C.GLFW_VERSION_MINOR // This is incremented when features are added to the API but it remains backward-compatible. - VersionRevision = C.GLFW_VERSION_REVISION // This is incremented when a bug fix release is made that does not contain any API changes. -) - -// Init initializes the GLFW library. Before most GLFW functions can be used, -// GLFW must be initialized, and before a program terminates GLFW should be -// terminated in order to free any resources allocated during or after -// initialization. -// -// If this function fails, it calls Terminate before returning. If it succeeds, -// you should call Terminate before the program exits. -// -// Additional calls to this function after successful initialization but before -// termination will succeed but will do nothing. -// -// This function may take several seconds to complete on some systems, while on -// other systems it may take only a fraction of a second to complete. -// -// On Mac OS X, this function will change the current directory of the -// application to the Contents/Resources subdirectory of the application's -// bundle, if present. -// -// This function may only be called from the main thread. -func Init() error { - C.glfwInit() - return acceptError(APIUnavailable) -} - -// Terminate destroys all remaining windows, frees any allocated resources and -// sets the library to an uninitialized state. Once this is called, you must -// again call Init successfully before you will be able to use most GLFW -// functions. -// -// If GLFW has been successfully initialized, this function should be called -// before the program exits. If initialization fails, there is no need to call -// this function, as it is called by Init before it returns failure. -// -// This function may only be called from the main thread. -func Terminate() { - flushErrors() - C.glfwTerminate() -} - -// GetVersion 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. -// -// This function may be called before Init. -func GetVersion() (major, minor, revision int) { - var ( - maj C.int - min C.int - rev C.int - ) - - C.glfwGetVersion(&maj, &min, &rev) - return int(maj), int(min), int(rev) -} - -// GetVersionString returns a static string generated at compile-time according -// to which configuration macros were defined. This is intended for use when -// submitting bug reports, to allow developers to see which code paths are -// enabled in a binary. -// -// This function may be called before Init. -func GetVersionString() string { - return C.GoString(C.glfwGetVersionString()) -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/COPYING.txt b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/COPYING.txt deleted file mode 100644 index ad16462..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/COPYING.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2002-2006 Marcus Geelnard -Copyright (c) 2006-2016 Camilla Berglund - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would - be appreciated but is not required. - -2. Altered source versions must be plainly marked as such, and must not - be misrepresented as being the original software. - -3. This notice may not be removed or altered from any source - distribution. - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/KHR/khrplatform.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/KHR/khrplatform.h deleted file mode 100644 index c9e6f17..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/KHR/khrplatform.h +++ /dev/null @@ -1,282 +0,0 @@ -#ifndef __khrplatform_h_ -#define __khrplatform_h_ - -/* -** Copyright (c) 2008-2009 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ - -/* Khronos platform-specific types and definitions. - * - * $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $ - * - * Adopters may modify this file to suit their platform. Adopters are - * encouraged to submit platform specific modifications to the Khronos - * group so that they can be included in future versions of this file. - * Please submit changes by sending them to the public Khronos Bugzilla - * (http://khronos.org/bugzilla) by filing a bug against product - * "Khronos (general)" component "Registry". - * - * A predefined template which fills in some of the bug fields can be - * reached using http://tinyurl.com/khrplatform-h-bugreport, but you - * must create a Bugzilla login first. - * - * - * See the Implementer's Guidelines for information about where this file - * should be located on your system and for more details of its use: - * http://www.khronos.org/registry/implementers_guide.pdf - * - * This file should be included as - * #include - * by Khronos client API header files that use its types and defines. - * - * The types in khrplatform.h should only be used to define API-specific types. - * - * Types defined in khrplatform.h: - * khronos_int8_t signed 8 bit - * khronos_uint8_t unsigned 8 bit - * khronos_int16_t signed 16 bit - * khronos_uint16_t unsigned 16 bit - * khronos_int32_t signed 32 bit - * khronos_uint32_t unsigned 32 bit - * khronos_int64_t signed 64 bit - * khronos_uint64_t unsigned 64 bit - * khronos_intptr_t signed same number of bits as a pointer - * khronos_uintptr_t unsigned same number of bits as a pointer - * khronos_ssize_t signed size - * khronos_usize_t unsigned size - * khronos_float_t signed 32 bit floating point - * khronos_time_ns_t unsigned 64 bit time in nanoseconds - * khronos_utime_nanoseconds_t unsigned time interval or absolute time in - * nanoseconds - * khronos_stime_nanoseconds_t signed time interval in nanoseconds - * khronos_boolean_enum_t enumerated boolean type. This should - * only be used as a base type when a client API's boolean type is - * an enum. Client APIs which use an integer or other type for - * booleans cannot use this as the base type for their boolean. - * - * Tokens defined in khrplatform.h: - * - * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values. - * - * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0. - * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0. - * - * Calling convention macros defined in this file: - * KHRONOS_APICALL - * KHRONOS_APIENTRY - * KHRONOS_APIATTRIBUTES - * - * These may be used in function prototypes as: - * - * KHRONOS_APICALL void KHRONOS_APIENTRY funcname( - * int arg1, - * int arg2) KHRONOS_APIATTRIBUTES; - */ - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APICALL - *------------------------------------------------------------------------- - * This precedes the return type of the function in the function prototype. - */ -#if defined(_WIN32) && !defined(__SCITECH_SNAP__) -# define KHRONOS_APICALL __declspec(dllimport) -#elif defined (__SYMBIAN32__) -# define KHRONOS_APICALL IMPORT_C -#else -# define KHRONOS_APICALL -#endif - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APIENTRY - *------------------------------------------------------------------------- - * This follows the return type of the function and precedes the function - * name in the function prototype. - */ -#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) - /* Win32 but not WinCE */ -# define KHRONOS_APIENTRY __stdcall -#else -# define KHRONOS_APIENTRY -#endif - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APIATTRIBUTES - *------------------------------------------------------------------------- - * This follows the closing parenthesis of the function prototype arguments. - */ -#if defined (__ARMCC_2__) -#define KHRONOS_APIATTRIBUTES __softfp -#else -#define KHRONOS_APIATTRIBUTES -#endif - -/*------------------------------------------------------------------------- - * basic type definitions - *-----------------------------------------------------------------------*/ -#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__) - - -/* - * Using - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif defined(__VMS ) || defined(__sgi) - -/* - * Using - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif defined(_WIN32) && !defined(__SCITECH_SNAP__) - -/* - * Win32 - */ -typedef __int32 khronos_int32_t; -typedef unsigned __int32 khronos_uint32_t; -typedef __int64 khronos_int64_t; -typedef unsigned __int64 khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif defined(__sun__) || defined(__digital__) - -/* - * Sun or Digital - */ -typedef int khronos_int32_t; -typedef unsigned int khronos_uint32_t; -#if defined(__arch64__) || defined(_LP64) -typedef long int khronos_int64_t; -typedef unsigned long int khronos_uint64_t; -#else -typedef long long int khronos_int64_t; -typedef unsigned long long int khronos_uint64_t; -#endif /* __arch64__ */ -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif 0 - -/* - * Hypothetical platform with no float or int64 support - */ -typedef int khronos_int32_t; -typedef unsigned int khronos_uint32_t; -#define KHRONOS_SUPPORT_INT64 0 -#define KHRONOS_SUPPORT_FLOAT 0 - -#else - -/* - * Generic fallback - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#endif - - -/* - * Types that are (so far) the same on all platforms - */ -typedef signed char khronos_int8_t; -typedef unsigned char khronos_uint8_t; -typedef signed short int khronos_int16_t; -typedef unsigned short int khronos_uint16_t; - -/* - * Types that differ between LLP64 and LP64 architectures - in LLP64, - * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears - * to be the only LLP64 architecture in current use. - */ -#ifdef _WIN64 -typedef signed long long int khronos_intptr_t; -typedef unsigned long long int khronos_uintptr_t; -typedef signed long long int khronos_ssize_t; -typedef unsigned long long int khronos_usize_t; -#else -typedef signed long int khronos_intptr_t; -typedef unsigned long int khronos_uintptr_t; -typedef signed long int khronos_ssize_t; -typedef unsigned long int khronos_usize_t; -#endif - -#if KHRONOS_SUPPORT_FLOAT -/* - * Float type - */ -typedef float khronos_float_t; -#endif - -#if KHRONOS_SUPPORT_INT64 -/* Time types - * - * These types can be used to represent a time interval in nanoseconds or - * an absolute Unadjusted System Time. Unadjusted System Time is the number - * of nanoseconds since some arbitrary system event (e.g. since the last - * time the system booted). The Unadjusted System Time is an unsigned - * 64 bit value that wraps back to 0 every 584 years. Time intervals - * may be either signed or unsigned. - */ -typedef khronos_uint64_t khronos_utime_nanoseconds_t; -typedef khronos_int64_t khronos_stime_nanoseconds_t; -#endif - -/* - * Dummy value used to pad enum types to 32 bits. - */ -#ifndef KHRONOS_MAX_ENUM -#define KHRONOS_MAX_ENUM 0x7FFFFFFF -#endif - -/* - * Enumerated boolean type - * - * Values other than zero should be considered to be true. Therefore - * comparisons should not be made against KHRONOS_TRUE. - */ -typedef enum { - KHRONOS_FALSE = 0, - KHRONOS_TRUE = 1, - KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM -} khronos_boolean_enum_t; - -#endif /* __khrplatform_h_ */ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/getopt.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/getopt.c deleted file mode 100644 index 9743046..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/getopt.c +++ /dev/null @@ -1,230 +0,0 @@ -/* Copyright (c) 2012, Kim Gräsman - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * * Neither the name of Kim Gräsman nor the names of contributors may be used - * to endorse or promote products derived from this software without specific - * prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL KIM GRÄSMAN BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "getopt.h" - -#include -#include - -const int no_argument = 0; -const int required_argument = 1; -const int optional_argument = 2; - -char* optarg; -int optopt; -/* The variable optind [...] shall be initialized to 1 by the system. */ -int optind = 1; -int opterr; - -static char* optcursor = NULL; - -/* Implemented based on [1] and [2] for optional arguments. - optopt is handled FreeBSD-style, per [3]. - Other GNU and FreeBSD extensions are purely accidental. - -[1] http://pubs.opengroup.org/onlinepubs/000095399/functions/getopt.html -[2] http://www.kernel.org/doc/man-pages/online/pages/man3/getopt.3.html -[3] http://www.freebsd.org/cgi/man.cgi?query=getopt&sektion=3&manpath=FreeBSD+9.0-RELEASE -*/ -int getopt(int argc, char* const argv[], const char* optstring) { - int optchar = -1; - const char* optdecl = NULL; - - optarg = NULL; - opterr = 0; - optopt = 0; - - /* Unspecified, but we need it to avoid overrunning the argv bounds. */ - if (optind >= argc) - goto no_more_optchars; - - /* If, when getopt() is called argv[optind] is a null pointer, getopt() - shall return -1 without changing optind. */ - if (argv[optind] == NULL) - goto no_more_optchars; - - /* If, when getopt() is called *argv[optind] is not the character '-', - getopt() shall return -1 without changing optind. */ - if (*argv[optind] != '-') - goto no_more_optchars; - - /* If, when getopt() is called argv[optind] points to the string "-", - getopt() shall return -1 without changing optind. */ - if (strcmp(argv[optind], "-") == 0) - goto no_more_optchars; - - /* If, when getopt() is called argv[optind] points to the string "--", - getopt() shall return -1 after incrementing optind. */ - if (strcmp(argv[optind], "--") == 0) { - ++optind; - goto no_more_optchars; - } - - if (optcursor == NULL || *optcursor == '\0') - optcursor = argv[optind] + 1; - - optchar = *optcursor; - - /* FreeBSD: The variable optopt saves the last known option character - returned by getopt(). */ - optopt = optchar; - - /* The getopt() function shall return the next option character (if one is - found) from argv that matches a character in optstring, if there is - one that matches. */ - optdecl = strchr(optstring, optchar); - if (optdecl) { - /* [I]f a character is followed by a colon, the option takes an - argument. */ - if (optdecl[1] == ':') { - optarg = ++optcursor; - if (*optarg == '\0') { - /* GNU extension: Two colons mean an option takes an - optional arg; if there is text in the current argv-element - (i.e., in the same word as the option name itself, for example, - "-oarg"), then it is returned in optarg, otherwise optarg is set - to zero. */ - if (optdecl[2] != ':') { - /* If the option was the last character in the string pointed to by - an element of argv, then optarg shall contain the next element - of argv, and optind shall be incremented by 2. If the resulting - value of optind is greater than argc, this indicates a missing - option-argument, and getopt() shall return an error indication. - - Otherwise, optarg shall point to the string following the - option character in that element of argv, and optind shall be - incremented by 1. - */ - if (++optind < argc) { - optarg = argv[optind]; - } else { - /* If it detects a missing option-argument, it shall return the - colon character ( ':' ) if the first character of optstring - was a colon, or a question-mark character ( '?' ) otherwise. - */ - optarg = NULL; - optchar = (optstring[0] == ':') ? ':' : '?'; - } - } else { - optarg = NULL; - } - } - - optcursor = NULL; - } - } else { - /* If getopt() encounters an option character that is not contained in - optstring, it shall return the question-mark ( '?' ) character. */ - optchar = '?'; - } - - if (optcursor == NULL || *++optcursor == '\0') - ++optind; - - return optchar; - -no_more_optchars: - optcursor = NULL; - return -1; -} - -/* Implementation based on [1]. - -[1] http://www.kernel.org/doc/man-pages/online/pages/man3/getopt.3.html -*/ -int getopt_long(int argc, char* const argv[], const char* optstring, - const struct option* longopts, int* longindex) { - const struct option* o = longopts; - const struct option* match = NULL; - int num_matches = 0; - size_t argument_name_length = 0; - const char* current_argument = NULL; - int retval = -1; - - optarg = NULL; - optopt = 0; - - if (optind >= argc) - return -1; - - if (strlen(argv[optind]) < 3 || strncmp(argv[optind], "--", 2) != 0) - return getopt(argc, argv, optstring); - - /* It's an option; starts with -- and is longer than two chars. */ - current_argument = argv[optind] + 2; - argument_name_length = strcspn(current_argument, "="); - for (; o->name; ++o) { - if (strncmp(o->name, current_argument, argument_name_length) == 0) { - match = o; - ++num_matches; - } - } - - if (num_matches == 1) { - /* If longindex is not NULL, it points to a variable which is set to the - index of the long option relative to longopts. */ - if (longindex) - *longindex = (int) (match - longopts); - - /* If flag is NULL, then getopt_long() shall return val. - Otherwise, getopt_long() returns 0, and flag shall point to a variable - which shall be set to val if the option is found, but left unchanged if - the option is not found. */ - if (match->flag) - *(match->flag) = match->val; - - retval = match->flag ? 0 : match->val; - - if (match->has_arg != no_argument) { - optarg = strchr(argv[optind], '='); - if (optarg != NULL) - ++optarg; - - if (match->has_arg == required_argument) { - /* Only scan the next argv for required arguments. Behavior is not - specified, but has been observed with Ubuntu and Mac OSX. */ - if (optarg == NULL && ++optind < argc) { - optarg = argv[optind]; - } - - if (optarg == NULL) - retval = ':'; - } - } else if (strchr(argv[optind], '=')) { - /* An argument was provided to a non-argument option. - I haven't seen this specified explicitly, but both GNU and BSD-based - implementations show this behavior. - */ - retval = '?'; - } - } else { - /* Unknown option or ambiguous match. */ - retval = '?'; - } - - ++optind; - return retval; -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/getopt.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/getopt.h deleted file mode 100644 index e1eb540..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/getopt.h +++ /dev/null @@ -1,57 +0,0 @@ -/* Copyright (c) 2012, Kim Gräsman - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * * Neither the name of Kim Gräsman nor the names of contributors may be used - * to endorse or promote products derived from this software without specific - * prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL KIM GRÄSMAN BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef INCLUDED_GETOPT_PORT_H -#define INCLUDED_GETOPT_PORT_H - -#if defined(__cplusplus) -extern "C" { -#endif - -extern const int no_argument; -extern const int required_argument; -extern const int optional_argument; - -extern char* optarg; -extern int optind, opterr, optopt; - -struct option { - const char* name; - int has_arg; - int* flag; - int val; -}; - -int getopt(int argc, char* const argv[], const char* optstring); - -int getopt_long(int argc, char* const argv[], - const char* optstring, const struct option* longopts, int* longindex); - -#if defined(__cplusplus) -} -#endif - -#endif // INCLUDED_GETOPT_PORT_H diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad.c deleted file mode 100644 index 7886e60..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad.c +++ /dev/null @@ -1,1555 +0,0 @@ -#include -#include -#include -#include - -struct gladGLversionStruct GLVersion; - -static int has_ext(const char *ext) { -#if defined(GL_VERSION_3_0) || defined(GL_ES_VERSION_3_0) - if(GLVersion.major < 3 || glGetStringi == NULL) { -#endif - const char *extensions; - const char *loc; - const char *terminator; - extensions = (const char*) glGetString(GL_EXTENSIONS); - if(extensions == NULL || ext == NULL) { - return 0; - } - - while(1) { - loc = strstr(extensions, ext); - if(loc == NULL) { - return 0; - } - - terminator = loc + strlen(ext); - if((loc == extensions || *(loc - 1) == ' ') && - (*terminator == ' ' || *terminator == '\0')) { - return 1; - } - extensions = terminator; - } -#if defined(GL_VERSION_3_0) || defined(GL_ES_VERSION_3_0) - } else { - GLint num_exts, index; - - glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts); - for(index = 0; index < num_exts; index++) { - if(strcmp((const char*) glGetStringi(GL_EXTENSIONS, index), ext) == 0) { - return 1; - } - } - } -#endif - - return 0; -} -int GLAD_GL_VERSION_1_0; -int GLAD_GL_VERSION_1_1; -int GLAD_GL_VERSION_1_2; -int GLAD_GL_VERSION_1_3; -int GLAD_GL_VERSION_1_4; -int GLAD_GL_VERSION_1_5; -int GLAD_GL_VERSION_2_0; -int GLAD_GL_VERSION_2_1; -int GLAD_GL_VERSION_3_0; -int GLAD_GL_VERSION_3_1; -int GLAD_GL_VERSION_3_2; -PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -PFNGLWINDOWPOS2SPROC glad_glWindowPos2s; -PFNGLWINDOWPOS2IPROC glad_glWindowPos2i; -PFNGLWINDOWPOS2FPROC glad_glWindowPos2f; -PFNGLWINDOWPOS2DPROC glad_glWindowPos2d; -PFNGLVERTEX2FVPROC glad_glVertex2fv; -PFNGLINDEXIPROC glad_glIndexi; -PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -PFNGLRECTDVPROC glad_glRectdv; -PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -PFNGLEVALCOORD2DPROC glad_glEvalCoord2d; -PFNGLEVALCOORD2FPROC glad_glEvalCoord2f; -PFNGLINDEXDPROC glad_glIndexd; -PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -PFNGLINDEXFPROC glad_glIndexf; -PFNGLLINEWIDTHPROC glad_glLineWidth; -PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -PFNGLGETMAPFVPROC glad_glGetMapfv; -PFNGLINDEXSPROC glad_glIndexs; -PFNGLCOMPILESHADERPROC glad_glCompileShader; -PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv; -PFNGLINDEXFVPROC glad_glIndexfv; -PFNGLFOGIVPROC glad_glFogiv; -PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv; -PFNGLLIGHTMODELIVPROC glad_glLightModeliv; -PFNGLCOLOR4UIPROC glad_glColor4ui; -PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv; -PFNGLFOGFVPROC glad_glFogfv; -PFNGLENABLEIPROC glad_glEnablei; -PFNGLVERTEX4IVPROC glad_glVertex4iv; -PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv; -PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv; -PFNGLCREATESHADERPROC glad_glCreateShader; -PFNGLISBUFFERPROC glad_glIsBuffer; -PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; -PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -PFNGLVERTEX4FVPROC glad_glVertex4fv; -PFNGLBINDTEXTUREPROC glad_glBindTexture; -PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv; -PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv; -PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -PFNGLPOINTSIZEPROC glad_glPointSize; -PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -PFNGLCOLOR4BVPROC glad_glColor4bv; -PFNGLRASTERPOS2FPROC glad_glRasterPos2f; -PFNGLRASTERPOS2DPROC glad_glRasterPos2d; -PFNGLLOADIDENTITYPROC glad_glLoadIdentity; -PFNGLRASTERPOS2IPROC glad_glRasterPos2i; -PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -PFNGLCOLOR3BPROC glad_glColor3b; -PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; -PFNGLEDGEFLAGPROC glad_glEdgeFlag; -PFNGLVERTEX3DPROC glad_glVertex3d; -PFNGLVERTEX3FPROC glad_glVertex3f; -PFNGLVERTEX3IPROC glad_glVertex3i; -PFNGLCOLOR3IPROC glad_glColor3i; -PFNGLUNIFORM3FPROC glad_glUniform3f; -PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; -PFNGLCOLOR3SPROC glad_glColor3s; -PFNGLVERTEX3SPROC glad_glVertex3s; -PFNGLCOLORMASKIPROC glad_glColorMaski; -PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv; -PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; -PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; -PFNGLVERTEX2IVPROC glad_glVertex2iv; -PFNGLCOLOR3SVPROC glad_glColor3sv; -PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -PFNGLNORMALPOINTERPROC glad_glNormalPointer; -PFNGLVERTEX4SVPROC glad_glVertex4sv; -PFNGLPASSTHROUGHPROC glad_glPassThrough; -PFNGLFOGIPROC glad_glFogi; -PFNGLBEGINPROC glad_glBegin; -PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv; -PFNGLCOLOR3UBVPROC glad_glColor3ubv; -PFNGLVERTEXPOINTERPROC glad_glVertexPointer; -PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv; -PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -PFNGLDRAWARRAYSPROC glad_glDrawArrays; -PFNGLUNIFORM1UIPROC glad_glUniform1ui; -PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d; -PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f; -PFNGLLIGHTFVPROC glad_glLightfv; -PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -PFNGLCLEARPROC glad_glClear; -PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i; -PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s; -PFNGLISENABLEDPROC glad_glIsEnabled; -PFNGLSTENCILOPPROC glad_glStencilOp; -PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -PFNGLTRANSLATEFPROC glad_glTranslatef; -PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -PFNGLTRANSLATEDPROC glad_glTranslated; -PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv; -PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv; -PFNGLGETMATERIALFVPROC glad_glGetMaterialfv; -PFNGLGETTEXIMAGEPROC glad_glGetTexImage; -PFNGLFOGCOORDFVPROC glad_glFogCoordfv; -PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv; -PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -PFNGLINDEXSVPROC glad_glIndexsv; -PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -PFNGLVERTEX3IVPROC glad_glVertex3iv; -PFNGLBITMAPPROC glad_glBitmap; -PFNGLMATERIALIPROC glad_glMateriali; -PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -PFNGLGETQUERYIVPROC glad_glGetQueryiv; -PFNGLTEXCOORD4FPROC glad_glTexCoord4f; -PFNGLTEXCOORD4DPROC glad_glTexCoord4d; -PFNGLTEXCOORD4IPROC glad_glTexCoord4i; -PFNGLMATERIALFPROC glad_glMaterialf; -PFNGLTEXCOORD4SPROC glad_glTexCoord4s; -PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -PFNGLISSHADERPROC glad_glIsShader; -PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s; -PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -PFNGLVERTEX3DVPROC glad_glVertex3dv; -PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -PFNGLENABLEPROC glad_glEnable; -PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -PFNGLCOLOR4FVPROC glad_glColor4fv; -PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv; -PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv; -PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv; -PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i; -PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv; -PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv; -PFNGLTEXGENFPROC glad_glTexGenf; -PFNGLGETPOINTERVPROC glad_glGetPointerv; -PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; -PFNGLNORMAL3FVPROC glad_glNormal3fv; -PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s; -PFNGLDEPTHRANGEPROC glad_glDepthRange; -PFNGLFRUSTUMPROC glad_glFrustum; -PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv; -PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -PFNGLPUSHMATRIXPROC glad_glPushMatrix; -PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv; -PFNGLORTHOPROC glad_glOrtho; -PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv; -PFNGLCLEARINDEXPROC glad_glClearIndex; -PFNGLMAP1DPROC glad_glMap1d; -PFNGLMAP1FPROC glad_glMap1f; -PFNGLFLUSHPROC glad_glFlush; -PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -PFNGLINDEXIVPROC glad_glIndexiv; -PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv; -PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -PFNGLPIXELZOOMPROC glad_glPixelZoom; -PFNGLFENCESYNCPROC glad_glFenceSync; -PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; -PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -PFNGLLIGHTIPROC glad_glLighti; -PFNGLLIGHTFPROC glad_glLightf; -PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; -PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -PFNGLCLAMPCOLORPROC glad_glClampColor; -PFNGLUNIFORM4IVPROC glad_glUniform4iv; -PFNGLCLEARSTENCILPROC glad_glClearStencil; -PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv; -PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv; -PFNGLGENTEXTURESPROC glad_glGenTextures; -PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv; -PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; -PFNGLINDEXPOINTERPROC glad_glIndexPointer; -PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -PFNGLISSYNCPROC glad_glIsSync; -PFNGLVERTEX2FPROC glad_glVertex2f; -PFNGLVERTEX2DPROC glad_glVertex2d; -PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -PFNGLUNIFORM2IPROC glad_glUniform2i; -PFNGLMAPGRID2DPROC glad_glMapGrid2d; -PFNGLMAPGRID2FPROC glad_glMapGrid2f; -PFNGLVERTEX2IPROC glad_glVertex2i; -PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -PFNGLVERTEX2SPROC glad_glVertex2s; -PFNGLNORMAL3BVPROC glad_glNormal3bv; -PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv; -PFNGLVERTEX3SVPROC glad_glVertex3sv; -PFNGLGENQUERIESPROC glad_glGenQueries; -PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv; -PFNGLTEXENVFPROC glad_glTexEnvf; -PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -PFNGLFOGCOORDDPROC glad_glFogCoordd; -PFNGLFOGCOORDFPROC glad_glFogCoordf; -PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -PFNGLTEXENVIPROC glad_glTexEnvi; -PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv; -PFNGLISENABLEDIPROC glad_glIsEnabledi; -PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; -PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv; -PFNGLUNIFORM2IVPROC glad_glUniform2iv; -PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; -PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -PFNGLMATRIXMODEPROC glad_glMatrixMode; -PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer; -PFNGLGETMAPIVPROC glad_glGetMapiv; -PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -PFNGLGETSHADERIVPROC glad_glGetShaderiv; -PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d; -PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f; -PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures; -PFNGLCALLLISTPROC glad_glCallList; -PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv; -PFNGLGETDOUBLEVPROC glad_glGetDoublev; -PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv; -PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -PFNGLLIGHTMODELFPROC glad_glLightModelf; -PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -PFNGLVERTEX2SVPROC glad_glVertex2sv; -PFNGLLIGHTMODELIPROC glad_glLightModeli; -PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv; -PFNGLUNIFORM3FVPROC glad_glUniform3fv; -PFNGLPIXELSTOREIPROC glad_glPixelStorei; -PFNGLCALLLISTSPROC glad_glCallLists; -PFNGLMAPBUFFERPROC glad_glMapBuffer; -PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d; -PFNGLTEXCOORD3IPROC glad_glTexCoord3i; -PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv; -PFNGLRASTERPOS3IPROC glad_glRasterPos3i; -PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b; -PFNGLRASTERPOS3DPROC glad_glRasterPos3d; -PFNGLRASTERPOS3FPROC glad_glRasterPos3f; -PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -PFNGLTEXCOORD3FPROC glad_glTexCoord3f; -PFNGLDELETESYNCPROC glad_glDeleteSync; -PFNGLTEXCOORD3DPROC glad_glTexCoord3d; -PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -PFNGLTEXCOORD3SPROC glad_glTexCoord3s; -PFNGLUNIFORM3IVPROC glad_glUniform3iv; -PFNGLRASTERPOS3SPROC glad_glRasterPos3s; -PFNGLPOLYGONMODEPROC glad_glPolygonMode; -PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; -PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; -PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident; -PFNGLISLISTPROC glad_glIsList; -PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv; -PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv; -PFNGLCOLOR4SPROC glad_glColor4s; -PFNGLUSEPROGRAMPROC glad_glUseProgram; -PFNGLLINESTIPPLEPROC glad_glLineStipple; -PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv; -PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; -PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv; -PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; -PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -PFNGLCOLOR4BPROC glad_glColor4b; -PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f; -PFNGLCOLOR4FPROC glad_glColor4f; -PFNGLCOLOR4DPROC glad_glColor4d; -PFNGLCOLOR4IPROC glad_glColor4i; -PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; -PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv; -PFNGLVERTEX2DVPROC glad_glVertex2dv; -PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv; -PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -PFNGLFINISHPROC glad_glFinish; -PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -PFNGLDELETESHADERPROC glad_glDeleteShader; -PFNGLDRAWELEMENTSPROC glad_glDrawElements; -PFNGLRASTERPOS2SPROC glad_glRasterPos2s; -PFNGLGETMAPDVPROC glad_glGetMapdv; -PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -PFNGLMATERIALFVPROC glad_glMaterialfv; -PFNGLVIEWPORTPROC glad_glViewport; -PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -PFNGLINDEXDVPROC glad_glIndexdv; -PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv; -PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -PFNGLCLEARDEPTHPROC glad_glClearDepth; -PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -PFNGLTEXPARAMETERFPROC glad_glTexParameterf; -PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; -PFNGLTEXBUFFERPROC glad_glTexBuffer; -PFNGLPOPNAMEPROC glad_glPopName; -PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -PFNGLPIXELSTOREFPROC glad_glPixelStoref; -PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv; -PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv; -PFNGLRECTIPROC glad_glRecti; -PFNGLCOLOR4UBPROC glad_glColor4ub; -PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf; -PFNGLRECTFPROC glad_glRectf; -PFNGLRECTDPROC glad_glRectd; -PFNGLNORMAL3SVPROC glad_glNormal3sv; -PFNGLNEWLISTPROC glad_glNewList; -PFNGLCOLOR4USPROC glad_glColor4us; -PFNGLLINKPROGRAMPROC glad_glLinkProgram; -PFNGLHINTPROC glad_glHint; -PFNGLRECTSPROC glad_glRects; -PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv; -PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv; -PFNGLGETSTRINGPROC glad_glGetString; -PFNGLEDGEFLAGVPROC glad_glEdgeFlagv; -PFNGLDETACHSHADERPROC glad_glDetachShader; -PFNGLSCALEFPROC glad_glScalef; -PFNGLENDQUERYPROC glad_glEndQuery; -PFNGLSCALEDPROC glad_glScaled; -PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer; -PFNGLCOPYPIXELSPROC glad_glCopyPixels; -PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -PFNGLPOPATTRIBPROC glad_glPopAttrib; -PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -PFNGLDELETEQUERIESPROC glad_glDeleteQueries; -PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; -PFNGLINITNAMESPROC glad_glInitNames; -PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; -PFNGLCOLOR3DVPROC glad_glColor3dv; -PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; -PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -PFNGLWAITSYNCPROC glad_glWaitSync; -PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -PFNGLCOLORMATERIALPROC glad_glColorMaterial; -PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -PFNGLUNIFORM1FPROC glad_glUniform1f; -PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -PFNGLRENDERMODEPROC glad_glRenderMode; -PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv; -PFNGLUNIFORM1IPROC glad_glUniform1i; -PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -PFNGLUNIFORM3IPROC glad_glUniform3i; -PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi; -PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; -PFNGLDISABLEPROC glad_glDisable; -PFNGLLOGICOPPROC glad_glLogicOp; -PFNGLEVALPOINT2PROC glad_glEvalPoint2; -PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf; -PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i; -PFNGLUNIFORM4UIPROC glad_glUniform4ui; -PFNGLCOLOR3FPROC glad_glColor3f; -PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv; -PFNGLRECTFVPROC glad_glRectfv; -PFNGLCULLFACEPROC glad_glCullFace; -PFNGLGETLIGHTFVPROC glad_glGetLightfv; -PFNGLCOLOR3DPROC glad_glColor3d; -PFNGLTEXGENDPROC glad_glTexGend; -PFNGLTEXGENIPROC glad_glTexGeni; -PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s; -PFNGLGETSTRINGIPROC glad_glGetStringi; -PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i; -PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f; -PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d; -PFNGLATTACHSHADERPROC glad_glAttachShader; -PFNGLFOGCOORDDVPROC glad_glFogCoorddv; -PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -PFNGLGETTEXGENFVPROC glad_glGetTexGenfv; -PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer; -PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -PFNGLTEXGENIVPROC glad_glTexGeniv; -PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv; -PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv; -PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture; -PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us; -PFNGLTEXENVFVPROC glad_glTexEnvfv; -PFNGLREADBUFFERPROC glad_glReadBuffer; -PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; -PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; -PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv; -PFNGLLIGHTMODELFVPROC glad_glLightModelfv; -PFNGLDELETELISTSPROC glad_glDeleteLists; -PFNGLGETCLIPPLANEPROC glad_glGetClipPlane; -PFNGLVERTEX4DVPROC glad_glVertex4dv; -PFNGLTEXCOORD2DPROC glad_glTexCoord2d; -PFNGLPOPMATRIXPROC glad_glPopMatrix; -PFNGLTEXCOORD2FPROC glad_glTexCoord2f; -PFNGLCOLOR4IVPROC glad_glColor4iv; -PFNGLINDEXUBVPROC glad_glIndexubv; -PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -PFNGLTEXCOORD2IPROC glad_glTexCoord2i; -PFNGLRASTERPOS4DPROC glad_glRasterPos4d; -PFNGLRASTERPOS4FPROC glad_glRasterPos4f; -PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -PFNGLTEXCOORD2SPROC glad_glTexCoord2s; -PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -PFNGLVERTEX3FVPROC glad_glVertex3fv; -PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv; -PFNGLMATERIALIVPROC glad_glMaterialiv; -PFNGLISPROGRAMPROC glad_glIsProgram; -PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -PFNGLVERTEX4SPROC glad_glVertex4s; -PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; -PFNGLNORMAL3DVPROC glad_glNormal3dv; -PFNGLUNIFORM4IPROC glad_glUniform4i; -PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; -PFNGLROTATEDPROC glad_glRotated; -PFNGLROTATEFPROC glad_glRotatef; -PFNGLVERTEX4IPROC glad_glVertex4i; -PFNGLREADPIXELSPROC glad_glReadPixels; -PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -PFNGLLOADNAMEPROC glad_glLoadName; -PFNGLUNIFORM4FPROC glad_glUniform4f; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; -PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -PFNGLSHADEMODELPROC glad_glShadeModel; -PFNGLMAPGRID1DPROC glad_glMapGrid1d; -PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -PFNGLMAPGRID1FPROC glad_glMapGrid1f; -PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState; -PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer; -PFNGLALPHAFUNCPROC glad_glAlphaFunc; -PFNGLUNIFORM1IVPROC glad_glUniform1iv; -PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv; -PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -PFNGLSTENCILFUNCPROC glad_glStencilFunc; -PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv; -PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -PFNGLCOLOR4UIVPROC glad_glColor4uiv; -PFNGLRECTIVPROC glad_glRectiv; -PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv; -PFNGLEVALMESH2PROC glad_glEvalMesh2; -PFNGLEVALMESH1PROC glad_glEvalMesh1; -PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer; -PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv; -PFNGLCOLOR4UBVPROC glad_glColor4ubv; -PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd; -PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf; -PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv; -PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -PFNGLTEXENVIVPROC glad_glTexEnviv; -PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -PFNGLGENBUFFERSPROC glad_glGenBuffers; -PFNGLSELECTBUFFERPROC glad_glSelectBuffer; -PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -PFNGLPUSHATTRIBPROC glad_glPushAttrib; -PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -PFNGLBLENDFUNCPROC glad_glBlendFunc; -PFNGLCREATEPROGRAMPROC glad_glCreateProgram; -PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -PFNGLLIGHTIVPROC glad_glLightiv; -PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -PFNGLTEXGENFVPROC glad_glTexGenfv; -PFNGLENDPROC glad_glEnd; -PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -PFNGLSCISSORPROC glad_glScissor; -PFNGLCLIPPLANEPROC glad_glClipPlane; -PFNGLPUSHNAMEPROC glad_glPushName; -PFNGLTEXGENDVPROC glad_glTexGendv; -PFNGLINDEXUBPROC glad_glIndexub; -PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv; -PFNGLRASTERPOS4IPROC glad_glRasterPos4i; -PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd; -PFNGLCLEARCOLORPROC glad_glClearColor; -PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -PFNGLNORMAL3SPROC glad_glNormal3s; -PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -PFNGLBLENDCOLORPROC glad_glBlendColor; -PFNGLWINDOWPOS3DPROC glad_glWindowPos3d; -PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -PFNGLUNIFORM3UIPROC glad_glUniform3ui; -PFNGLCOLOR4DVPROC glad_glColor4dv; -PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -PFNGLUNIFORM2FVPROC glad_glUniform2fv; -PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub; -PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui; -PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv; -PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -PFNGLNORMAL3IVPROC glad_glNormal3iv; -PFNGLWINDOWPOS3SPROC glad_glWindowPos3s; -PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -PFNGLWINDOWPOS3IPROC glad_glWindowPos3i; -PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s; -PFNGLWINDOWPOS3FPROC glad_glWindowPos3f; -PFNGLCOLOR3USPROC glad_glColor3us; -PFNGLCOLOR3UIVPROC glad_glColor3uiv; -PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -PFNGLGETLIGHTIVPROC glad_glGetLightiv; -PFNGLDEPTHFUNCPROC glad_glDepthFunc; -PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -PFNGLLISTBASEPROC glad_glListBase; -PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f; -PFNGLCOLOR3UBPROC glad_glColor3ub; -PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d; -PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -PFNGLCOLOR3UIPROC glad_glColor3ui; -PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i; -PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple; -PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv; -PFNGLCOLORMASKPROC glad_glColorMask; -PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -PFNGLBLENDEQUATIONPROC glad_glBlendEquation; -PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -PFNGLRASTERPOS4SPROC glad_glRasterPos4s; -PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv; -PFNGLCOLOR4SVPROC glad_glColor4sv; -PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib; -PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -PFNGLFOGFPROC glad_glFogf; -PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -PFNGLCOLOR3IVPROC glad_glColor3iv; -PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; -PFNGLTEXCOORD1IPROC glad_glTexCoord1i; -PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -PFNGLTEXCOORD1DPROC glad_glTexCoord1d; -PFNGLTEXCOORD1FPROC glad_glTexCoord1f; -PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState; -PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv; -PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -PFNGLTEXCOORD1SPROC glad_glTexCoord1s; -PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; -PFNGLGENLISTSPROC glad_glGenLists; -PFNGLCOLOR3BVPROC glad_glColor3bv; -PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -PFNGLGETTEXGENDVPROC glad_glGetTexGendv; -PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -PFNGLENDLISTPROC glad_glEndList; -PFNGLUNIFORM2UIPROC glad_glUniform2ui; -PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -PFNGLCOLOR3USVPROC glad_glColor3usv; -PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv; -PFNGLDISABLEIPROC glad_glDisablei; -PFNGLINDEXMASKPROC glad_glIndexMask; -PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib; -PFNGLSHADERSOURCEPROC glad_glShaderSource; -PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -PFNGLCLEARACCUMPROC glad_glClearAccum; -PFNGLGETSYNCIVPROC glad_glGetSynciv; -PFNGLUNIFORM2FPROC glad_glUniform2f; -PFNGLBEGINQUERYPROC glad_glBeginQuery; -PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; -PFNGLBINDBUFFERPROC glad_glBindBuffer; -PFNGLMAP2DPROC glad_glMap2d; -PFNGLMAP2FPROC glad_glMap2f; -PFNGLVERTEX4DPROC glad_glVertex4d; -PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; -PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv; -PFNGLBUFFERDATAPROC glad_glBufferData; -PFNGLEVALPOINT1PROC glad_glEvalPoint1; -PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv; -PFNGLGETERRORPROC glad_glGetError; -PFNGLGETTEXENVIVPROC glad_glGetTexEnviv; -PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -PFNGLGETFLOATVPROC glad_glGetFloatv; -PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv; -PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -PFNGLEVALCOORD1DPROC glad_glEvalCoord1d; -PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; -PFNGLEVALCOORD1FPROC glad_glEvalCoord1f; -PFNGLPIXELMAPFVPROC glad_glPixelMapfv; -PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv; -PFNGLGETINTEGERVPROC glad_glGetIntegerv; -PFNGLACCUMPROC glad_glAccum; -PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv; -PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv; -PFNGLISQUERYPROC glad_glIsQuery; -PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv; -PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -PFNGLSTENCILMASKPROC glad_glStencilMask; -PFNGLDRAWPIXELSPROC glad_glDrawPixels; -PFNGLMULTMATRIXDPROC glad_glMultMatrixd; -PFNGLMULTMATRIXFPROC glad_glMultMatrixf; -PFNGLISTEXTUREPROC glad_glIsTexture; -PFNGLGETMATERIALIVPROC glad_glGetMaterialiv; -PFNGLUNIFORM1FVPROC glad_glUniform1fv; -PFNGLLOADMATRIXFPROC glad_glLoadMatrixf; -PFNGLLOADMATRIXDPROC glad_glLoadMatrixd; -PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -PFNGLVERTEX4FPROC glad_glVertex4f; -PFNGLRECTSVPROC glad_glRectsv; -PFNGLCOLOR4USVPROC glad_glColor4usv; -PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple; -PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays; -PFNGLNORMAL3IPROC glad_glNormal3i; -PFNGLNORMAL3FPROC glad_glNormal3f; -PFNGLNORMAL3DPROC glad_glNormal3d; -PFNGLNORMAL3BPROC glad_glNormal3b; -PFNGLPIXELMAPUSVPROC glad_glPixelMapusv; -PFNGLGETTEXGENIVPROC glad_glGetTexGeniv; -PFNGLARRAYELEMENTPROC glad_glArrayElement; -PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; -PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; -PFNGLDEPTHMASKPROC glad_glDepthMask; -PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -PFNGLCOLOR3FVPROC glad_glColor3fv; -PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; -PFNGLUNIFORM4FVPROC glad_glUniform4fv; -PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -PFNGLCOLORPOINTERPROC glad_glColorPointer; -PFNGLFRONTFACEPROC glad_glFrontFace; -PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -int GLAD_GL_ARB_robustness; -int GLAD_GL_ARB_multisample; -int GLAD_GL_EXT_separate_specular_color; -PFNGLSAMPLECOVERAGEARBPROC glad_glSampleCoverageARB; -PFNGLGETGRAPHICSRESETSTATUSARBPROC glad_glGetGraphicsResetStatusARB; -PFNGLGETNTEXIMAGEARBPROC glad_glGetnTexImageARB; -PFNGLREADNPIXELSARBPROC glad_glReadnPixelsARB; -PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC glad_glGetnCompressedTexImageARB; -PFNGLGETNUNIFORMFVARBPROC glad_glGetnUniformfvARB; -PFNGLGETNUNIFORMIVARBPROC glad_glGetnUniformivARB; -PFNGLGETNUNIFORMUIVARBPROC glad_glGetnUniformuivARB; -PFNGLGETNUNIFORMDVARBPROC glad_glGetnUniformdvARB; -PFNGLGETNMAPDVARBPROC glad_glGetnMapdvARB; -PFNGLGETNMAPFVARBPROC glad_glGetnMapfvARB; -PFNGLGETNMAPIVARBPROC glad_glGetnMapivARB; -PFNGLGETNPIXELMAPFVARBPROC glad_glGetnPixelMapfvARB; -PFNGLGETNPIXELMAPUIVARBPROC glad_glGetnPixelMapuivARB; -PFNGLGETNPIXELMAPUSVARBPROC glad_glGetnPixelMapusvARB; -PFNGLGETNPOLYGONSTIPPLEARBPROC glad_glGetnPolygonStippleARB; -PFNGLGETNCOLORTABLEARBPROC glad_glGetnColorTableARB; -PFNGLGETNCONVOLUTIONFILTERARBPROC glad_glGetnConvolutionFilterARB; -PFNGLGETNSEPARABLEFILTERARBPROC glad_glGetnSeparableFilterARB; -PFNGLGETNHISTOGRAMARBPROC glad_glGetnHistogramARB; -PFNGLGETNMINMAXARBPROC glad_glGetnMinmaxARB; -static void load_GL_VERSION_1_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_0) return; - glad_glCullFace = (PFNGLCULLFACEPROC)load("glCullFace"); - glad_glFrontFace = (PFNGLFRONTFACEPROC)load("glFrontFace"); - glad_glHint = (PFNGLHINTPROC)load("glHint"); - glad_glLineWidth = (PFNGLLINEWIDTHPROC)load("glLineWidth"); - glad_glPointSize = (PFNGLPOINTSIZEPROC)load("glPointSize"); - glad_glPolygonMode = (PFNGLPOLYGONMODEPROC)load("glPolygonMode"); - glad_glScissor = (PFNGLSCISSORPROC)load("glScissor"); - glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC)load("glTexParameterf"); - glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)load("glTexParameterfv"); - glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC)load("glTexParameteri"); - glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)load("glTexParameteriv"); - glad_glTexImage1D = (PFNGLTEXIMAGE1DPROC)load("glTexImage1D"); - glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC)load("glTexImage2D"); - glad_glDrawBuffer = (PFNGLDRAWBUFFERPROC)load("glDrawBuffer"); - glad_glClear = (PFNGLCLEARPROC)load("glClear"); - glad_glClearColor = (PFNGLCLEARCOLORPROC)load("glClearColor"); - glad_glClearStencil = (PFNGLCLEARSTENCILPROC)load("glClearStencil"); - glad_glClearDepth = (PFNGLCLEARDEPTHPROC)load("glClearDepth"); - glad_glStencilMask = (PFNGLSTENCILMASKPROC)load("glStencilMask"); - glad_glColorMask = (PFNGLCOLORMASKPROC)load("glColorMask"); - glad_glDepthMask = (PFNGLDEPTHMASKPROC)load("glDepthMask"); - glad_glDisable = (PFNGLDISABLEPROC)load("glDisable"); - glad_glEnable = (PFNGLENABLEPROC)load("glEnable"); - glad_glFinish = (PFNGLFINISHPROC)load("glFinish"); - glad_glFlush = (PFNGLFLUSHPROC)load("glFlush"); - glad_glBlendFunc = (PFNGLBLENDFUNCPROC)load("glBlendFunc"); - glad_glLogicOp = (PFNGLLOGICOPPROC)load("glLogicOp"); - glad_glStencilFunc = (PFNGLSTENCILFUNCPROC)load("glStencilFunc"); - glad_glStencilOp = (PFNGLSTENCILOPPROC)load("glStencilOp"); - glad_glDepthFunc = (PFNGLDEPTHFUNCPROC)load("glDepthFunc"); - glad_glPixelStoref = (PFNGLPIXELSTOREFPROC)load("glPixelStoref"); - glad_glPixelStorei = (PFNGLPIXELSTOREIPROC)load("glPixelStorei"); - glad_glReadBuffer = (PFNGLREADBUFFERPROC)load("glReadBuffer"); - glad_glReadPixels = (PFNGLREADPIXELSPROC)load("glReadPixels"); - glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC)load("glGetBooleanv"); - glad_glGetDoublev = (PFNGLGETDOUBLEVPROC)load("glGetDoublev"); - glad_glGetError = (PFNGLGETERRORPROC)load("glGetError"); - glad_glGetFloatv = (PFNGLGETFLOATVPROC)load("glGetFloatv"); - glad_glGetIntegerv = (PFNGLGETINTEGERVPROC)load("glGetIntegerv"); - glad_glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); - glad_glGetTexImage = (PFNGLGETTEXIMAGEPROC)load("glGetTexImage"); - glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)load("glGetTexParameterfv"); - glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)load("glGetTexParameteriv"); - glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)load("glGetTexLevelParameterfv"); - glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)load("glGetTexLevelParameteriv"); - glad_glIsEnabled = (PFNGLISENABLEDPROC)load("glIsEnabled"); - glad_glDepthRange = (PFNGLDEPTHRANGEPROC)load("glDepthRange"); - glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport"); - glad_glNewList = (PFNGLNEWLISTPROC)load("glNewList"); - glad_glEndList = (PFNGLENDLISTPROC)load("glEndList"); - glad_glCallList = (PFNGLCALLLISTPROC)load("glCallList"); - glad_glCallLists = (PFNGLCALLLISTSPROC)load("glCallLists"); - glad_glDeleteLists = (PFNGLDELETELISTSPROC)load("glDeleteLists"); - glad_glGenLists = (PFNGLGENLISTSPROC)load("glGenLists"); - glad_glListBase = (PFNGLLISTBASEPROC)load("glListBase"); - glad_glBegin = (PFNGLBEGINPROC)load("glBegin"); - glad_glBitmap = (PFNGLBITMAPPROC)load("glBitmap"); - glad_glColor3b = (PFNGLCOLOR3BPROC)load("glColor3b"); - glad_glColor3bv = (PFNGLCOLOR3BVPROC)load("glColor3bv"); - glad_glColor3d = (PFNGLCOLOR3DPROC)load("glColor3d"); - glad_glColor3dv = (PFNGLCOLOR3DVPROC)load("glColor3dv"); - glad_glColor3f = (PFNGLCOLOR3FPROC)load("glColor3f"); - glad_glColor3fv = (PFNGLCOLOR3FVPROC)load("glColor3fv"); - glad_glColor3i = (PFNGLCOLOR3IPROC)load("glColor3i"); - glad_glColor3iv = (PFNGLCOLOR3IVPROC)load("glColor3iv"); - glad_glColor3s = (PFNGLCOLOR3SPROC)load("glColor3s"); - glad_glColor3sv = (PFNGLCOLOR3SVPROC)load("glColor3sv"); - glad_glColor3ub = (PFNGLCOLOR3UBPROC)load("glColor3ub"); - glad_glColor3ubv = (PFNGLCOLOR3UBVPROC)load("glColor3ubv"); - glad_glColor3ui = (PFNGLCOLOR3UIPROC)load("glColor3ui"); - glad_glColor3uiv = (PFNGLCOLOR3UIVPROC)load("glColor3uiv"); - glad_glColor3us = (PFNGLCOLOR3USPROC)load("glColor3us"); - glad_glColor3usv = (PFNGLCOLOR3USVPROC)load("glColor3usv"); - glad_glColor4b = (PFNGLCOLOR4BPROC)load("glColor4b"); - glad_glColor4bv = (PFNGLCOLOR4BVPROC)load("glColor4bv"); - glad_glColor4d = (PFNGLCOLOR4DPROC)load("glColor4d"); - glad_glColor4dv = (PFNGLCOLOR4DVPROC)load("glColor4dv"); - glad_glColor4f = (PFNGLCOLOR4FPROC)load("glColor4f"); - glad_glColor4fv = (PFNGLCOLOR4FVPROC)load("glColor4fv"); - glad_glColor4i = (PFNGLCOLOR4IPROC)load("glColor4i"); - glad_glColor4iv = (PFNGLCOLOR4IVPROC)load("glColor4iv"); - glad_glColor4s = (PFNGLCOLOR4SPROC)load("glColor4s"); - glad_glColor4sv = (PFNGLCOLOR4SVPROC)load("glColor4sv"); - glad_glColor4ub = (PFNGLCOLOR4UBPROC)load("glColor4ub"); - glad_glColor4ubv = (PFNGLCOLOR4UBVPROC)load("glColor4ubv"); - glad_glColor4ui = (PFNGLCOLOR4UIPROC)load("glColor4ui"); - glad_glColor4uiv = (PFNGLCOLOR4UIVPROC)load("glColor4uiv"); - glad_glColor4us = (PFNGLCOLOR4USPROC)load("glColor4us"); - glad_glColor4usv = (PFNGLCOLOR4USVPROC)load("glColor4usv"); - glad_glEdgeFlag = (PFNGLEDGEFLAGPROC)load("glEdgeFlag"); - glad_glEdgeFlagv = (PFNGLEDGEFLAGVPROC)load("glEdgeFlagv"); - glad_glEnd = (PFNGLENDPROC)load("glEnd"); - glad_glIndexd = (PFNGLINDEXDPROC)load("glIndexd"); - glad_glIndexdv = (PFNGLINDEXDVPROC)load("glIndexdv"); - glad_glIndexf = (PFNGLINDEXFPROC)load("glIndexf"); - glad_glIndexfv = (PFNGLINDEXFVPROC)load("glIndexfv"); - glad_glIndexi = (PFNGLINDEXIPROC)load("glIndexi"); - glad_glIndexiv = (PFNGLINDEXIVPROC)load("glIndexiv"); - glad_glIndexs = (PFNGLINDEXSPROC)load("glIndexs"); - glad_glIndexsv = (PFNGLINDEXSVPROC)load("glIndexsv"); - glad_glNormal3b = (PFNGLNORMAL3BPROC)load("glNormal3b"); - glad_glNormal3bv = (PFNGLNORMAL3BVPROC)load("glNormal3bv"); - glad_glNormal3d = (PFNGLNORMAL3DPROC)load("glNormal3d"); - glad_glNormal3dv = (PFNGLNORMAL3DVPROC)load("glNormal3dv"); - glad_glNormal3f = (PFNGLNORMAL3FPROC)load("glNormal3f"); - glad_glNormal3fv = (PFNGLNORMAL3FVPROC)load("glNormal3fv"); - glad_glNormal3i = (PFNGLNORMAL3IPROC)load("glNormal3i"); - glad_glNormal3iv = (PFNGLNORMAL3IVPROC)load("glNormal3iv"); - glad_glNormal3s = (PFNGLNORMAL3SPROC)load("glNormal3s"); - glad_glNormal3sv = (PFNGLNORMAL3SVPROC)load("glNormal3sv"); - glad_glRasterPos2d = (PFNGLRASTERPOS2DPROC)load("glRasterPos2d"); - glad_glRasterPos2dv = (PFNGLRASTERPOS2DVPROC)load("glRasterPos2dv"); - glad_glRasterPos2f = (PFNGLRASTERPOS2FPROC)load("glRasterPos2f"); - glad_glRasterPos2fv = (PFNGLRASTERPOS2FVPROC)load("glRasterPos2fv"); - glad_glRasterPos2i = (PFNGLRASTERPOS2IPROC)load("glRasterPos2i"); - glad_glRasterPos2iv = (PFNGLRASTERPOS2IVPROC)load("glRasterPos2iv"); - glad_glRasterPos2s = (PFNGLRASTERPOS2SPROC)load("glRasterPos2s"); - glad_glRasterPos2sv = (PFNGLRASTERPOS2SVPROC)load("glRasterPos2sv"); - glad_glRasterPos3d = (PFNGLRASTERPOS3DPROC)load("glRasterPos3d"); - glad_glRasterPos3dv = (PFNGLRASTERPOS3DVPROC)load("glRasterPos3dv"); - glad_glRasterPos3f = (PFNGLRASTERPOS3FPROC)load("glRasterPos3f"); - glad_glRasterPos3fv = (PFNGLRASTERPOS3FVPROC)load("glRasterPos3fv"); - glad_glRasterPos3i = (PFNGLRASTERPOS3IPROC)load("glRasterPos3i"); - glad_glRasterPos3iv = (PFNGLRASTERPOS3IVPROC)load("glRasterPos3iv"); - glad_glRasterPos3s = (PFNGLRASTERPOS3SPROC)load("glRasterPos3s"); - glad_glRasterPos3sv = (PFNGLRASTERPOS3SVPROC)load("glRasterPos3sv"); - glad_glRasterPos4d = (PFNGLRASTERPOS4DPROC)load("glRasterPos4d"); - glad_glRasterPos4dv = (PFNGLRASTERPOS4DVPROC)load("glRasterPos4dv"); - glad_glRasterPos4f = (PFNGLRASTERPOS4FPROC)load("glRasterPos4f"); - glad_glRasterPos4fv = (PFNGLRASTERPOS4FVPROC)load("glRasterPos4fv"); - glad_glRasterPos4i = (PFNGLRASTERPOS4IPROC)load("glRasterPos4i"); - glad_glRasterPos4iv = (PFNGLRASTERPOS4IVPROC)load("glRasterPos4iv"); - glad_glRasterPos4s = (PFNGLRASTERPOS4SPROC)load("glRasterPos4s"); - glad_glRasterPos4sv = (PFNGLRASTERPOS4SVPROC)load("glRasterPos4sv"); - glad_glRectd = (PFNGLRECTDPROC)load("glRectd"); - glad_glRectdv = (PFNGLRECTDVPROC)load("glRectdv"); - glad_glRectf = (PFNGLRECTFPROC)load("glRectf"); - glad_glRectfv = (PFNGLRECTFVPROC)load("glRectfv"); - glad_glRecti = (PFNGLRECTIPROC)load("glRecti"); - glad_glRectiv = (PFNGLRECTIVPROC)load("glRectiv"); - glad_glRects = (PFNGLRECTSPROC)load("glRects"); - glad_glRectsv = (PFNGLRECTSVPROC)load("glRectsv"); - glad_glTexCoord1d = (PFNGLTEXCOORD1DPROC)load("glTexCoord1d"); - glad_glTexCoord1dv = (PFNGLTEXCOORD1DVPROC)load("glTexCoord1dv"); - glad_glTexCoord1f = (PFNGLTEXCOORD1FPROC)load("glTexCoord1f"); - glad_glTexCoord1fv = (PFNGLTEXCOORD1FVPROC)load("glTexCoord1fv"); - glad_glTexCoord1i = (PFNGLTEXCOORD1IPROC)load("glTexCoord1i"); - glad_glTexCoord1iv = (PFNGLTEXCOORD1IVPROC)load("glTexCoord1iv"); - glad_glTexCoord1s = (PFNGLTEXCOORD1SPROC)load("glTexCoord1s"); - glad_glTexCoord1sv = (PFNGLTEXCOORD1SVPROC)load("glTexCoord1sv"); - glad_glTexCoord2d = (PFNGLTEXCOORD2DPROC)load("glTexCoord2d"); - glad_glTexCoord2dv = (PFNGLTEXCOORD2DVPROC)load("glTexCoord2dv"); - glad_glTexCoord2f = (PFNGLTEXCOORD2FPROC)load("glTexCoord2f"); - glad_glTexCoord2fv = (PFNGLTEXCOORD2FVPROC)load("glTexCoord2fv"); - glad_glTexCoord2i = (PFNGLTEXCOORD2IPROC)load("glTexCoord2i"); - glad_glTexCoord2iv = (PFNGLTEXCOORD2IVPROC)load("glTexCoord2iv"); - glad_glTexCoord2s = (PFNGLTEXCOORD2SPROC)load("glTexCoord2s"); - glad_glTexCoord2sv = (PFNGLTEXCOORD2SVPROC)load("glTexCoord2sv"); - glad_glTexCoord3d = (PFNGLTEXCOORD3DPROC)load("glTexCoord3d"); - glad_glTexCoord3dv = (PFNGLTEXCOORD3DVPROC)load("glTexCoord3dv"); - glad_glTexCoord3f = (PFNGLTEXCOORD3FPROC)load("glTexCoord3f"); - glad_glTexCoord3fv = (PFNGLTEXCOORD3FVPROC)load("glTexCoord3fv"); - glad_glTexCoord3i = (PFNGLTEXCOORD3IPROC)load("glTexCoord3i"); - glad_glTexCoord3iv = (PFNGLTEXCOORD3IVPROC)load("glTexCoord3iv"); - glad_glTexCoord3s = (PFNGLTEXCOORD3SPROC)load("glTexCoord3s"); - glad_glTexCoord3sv = (PFNGLTEXCOORD3SVPROC)load("glTexCoord3sv"); - glad_glTexCoord4d = (PFNGLTEXCOORD4DPROC)load("glTexCoord4d"); - glad_glTexCoord4dv = (PFNGLTEXCOORD4DVPROC)load("glTexCoord4dv"); - glad_glTexCoord4f = (PFNGLTEXCOORD4FPROC)load("glTexCoord4f"); - glad_glTexCoord4fv = (PFNGLTEXCOORD4FVPROC)load("glTexCoord4fv"); - glad_glTexCoord4i = (PFNGLTEXCOORD4IPROC)load("glTexCoord4i"); - glad_glTexCoord4iv = (PFNGLTEXCOORD4IVPROC)load("glTexCoord4iv"); - glad_glTexCoord4s = (PFNGLTEXCOORD4SPROC)load("glTexCoord4s"); - glad_glTexCoord4sv = (PFNGLTEXCOORD4SVPROC)load("glTexCoord4sv"); - glad_glVertex2d = (PFNGLVERTEX2DPROC)load("glVertex2d"); - glad_glVertex2dv = (PFNGLVERTEX2DVPROC)load("glVertex2dv"); - glad_glVertex2f = (PFNGLVERTEX2FPROC)load("glVertex2f"); - glad_glVertex2fv = (PFNGLVERTEX2FVPROC)load("glVertex2fv"); - glad_glVertex2i = (PFNGLVERTEX2IPROC)load("glVertex2i"); - glad_glVertex2iv = (PFNGLVERTEX2IVPROC)load("glVertex2iv"); - glad_glVertex2s = (PFNGLVERTEX2SPROC)load("glVertex2s"); - glad_glVertex2sv = (PFNGLVERTEX2SVPROC)load("glVertex2sv"); - glad_glVertex3d = (PFNGLVERTEX3DPROC)load("glVertex3d"); - glad_glVertex3dv = (PFNGLVERTEX3DVPROC)load("glVertex3dv"); - glad_glVertex3f = (PFNGLVERTEX3FPROC)load("glVertex3f"); - glad_glVertex3fv = (PFNGLVERTEX3FVPROC)load("glVertex3fv"); - glad_glVertex3i = (PFNGLVERTEX3IPROC)load("glVertex3i"); - glad_glVertex3iv = (PFNGLVERTEX3IVPROC)load("glVertex3iv"); - glad_glVertex3s = (PFNGLVERTEX3SPROC)load("glVertex3s"); - glad_glVertex3sv = (PFNGLVERTEX3SVPROC)load("glVertex3sv"); - glad_glVertex4d = (PFNGLVERTEX4DPROC)load("glVertex4d"); - glad_glVertex4dv = (PFNGLVERTEX4DVPROC)load("glVertex4dv"); - glad_glVertex4f = (PFNGLVERTEX4FPROC)load("glVertex4f"); - glad_glVertex4fv = (PFNGLVERTEX4FVPROC)load("glVertex4fv"); - glad_glVertex4i = (PFNGLVERTEX4IPROC)load("glVertex4i"); - glad_glVertex4iv = (PFNGLVERTEX4IVPROC)load("glVertex4iv"); - glad_glVertex4s = (PFNGLVERTEX4SPROC)load("glVertex4s"); - glad_glVertex4sv = (PFNGLVERTEX4SVPROC)load("glVertex4sv"); - glad_glClipPlane = (PFNGLCLIPPLANEPROC)load("glClipPlane"); - glad_glColorMaterial = (PFNGLCOLORMATERIALPROC)load("glColorMaterial"); - glad_glFogf = (PFNGLFOGFPROC)load("glFogf"); - glad_glFogfv = (PFNGLFOGFVPROC)load("glFogfv"); - glad_glFogi = (PFNGLFOGIPROC)load("glFogi"); - glad_glFogiv = (PFNGLFOGIVPROC)load("glFogiv"); - glad_glLightf = (PFNGLLIGHTFPROC)load("glLightf"); - glad_glLightfv = (PFNGLLIGHTFVPROC)load("glLightfv"); - glad_glLighti = (PFNGLLIGHTIPROC)load("glLighti"); - glad_glLightiv = (PFNGLLIGHTIVPROC)load("glLightiv"); - glad_glLightModelf = (PFNGLLIGHTMODELFPROC)load("glLightModelf"); - glad_glLightModelfv = (PFNGLLIGHTMODELFVPROC)load("glLightModelfv"); - glad_glLightModeli = (PFNGLLIGHTMODELIPROC)load("glLightModeli"); - glad_glLightModeliv = (PFNGLLIGHTMODELIVPROC)load("glLightModeliv"); - glad_glLineStipple = (PFNGLLINESTIPPLEPROC)load("glLineStipple"); - glad_glMaterialf = (PFNGLMATERIALFPROC)load("glMaterialf"); - glad_glMaterialfv = (PFNGLMATERIALFVPROC)load("glMaterialfv"); - glad_glMateriali = (PFNGLMATERIALIPROC)load("glMateriali"); - glad_glMaterialiv = (PFNGLMATERIALIVPROC)load("glMaterialiv"); - glad_glPolygonStipple = (PFNGLPOLYGONSTIPPLEPROC)load("glPolygonStipple"); - glad_glShadeModel = (PFNGLSHADEMODELPROC)load("glShadeModel"); - glad_glTexEnvf = (PFNGLTEXENVFPROC)load("glTexEnvf"); - glad_glTexEnvfv = (PFNGLTEXENVFVPROC)load("glTexEnvfv"); - glad_glTexEnvi = (PFNGLTEXENVIPROC)load("glTexEnvi"); - glad_glTexEnviv = (PFNGLTEXENVIVPROC)load("glTexEnviv"); - glad_glTexGend = (PFNGLTEXGENDPROC)load("glTexGend"); - glad_glTexGendv = (PFNGLTEXGENDVPROC)load("glTexGendv"); - glad_glTexGenf = (PFNGLTEXGENFPROC)load("glTexGenf"); - glad_glTexGenfv = (PFNGLTEXGENFVPROC)load("glTexGenfv"); - glad_glTexGeni = (PFNGLTEXGENIPROC)load("glTexGeni"); - glad_glTexGeniv = (PFNGLTEXGENIVPROC)load("glTexGeniv"); - glad_glFeedbackBuffer = (PFNGLFEEDBACKBUFFERPROC)load("glFeedbackBuffer"); - glad_glSelectBuffer = (PFNGLSELECTBUFFERPROC)load("glSelectBuffer"); - glad_glRenderMode = (PFNGLRENDERMODEPROC)load("glRenderMode"); - glad_glInitNames = (PFNGLINITNAMESPROC)load("glInitNames"); - glad_glLoadName = (PFNGLLOADNAMEPROC)load("glLoadName"); - glad_glPassThrough = (PFNGLPASSTHROUGHPROC)load("glPassThrough"); - glad_glPopName = (PFNGLPOPNAMEPROC)load("glPopName"); - glad_glPushName = (PFNGLPUSHNAMEPROC)load("glPushName"); - glad_glClearAccum = (PFNGLCLEARACCUMPROC)load("glClearAccum"); - glad_glClearIndex = (PFNGLCLEARINDEXPROC)load("glClearIndex"); - glad_glIndexMask = (PFNGLINDEXMASKPROC)load("glIndexMask"); - glad_glAccum = (PFNGLACCUMPROC)load("glAccum"); - glad_glPopAttrib = (PFNGLPOPATTRIBPROC)load("glPopAttrib"); - glad_glPushAttrib = (PFNGLPUSHATTRIBPROC)load("glPushAttrib"); - glad_glMap1d = (PFNGLMAP1DPROC)load("glMap1d"); - glad_glMap1f = (PFNGLMAP1FPROC)load("glMap1f"); - glad_glMap2d = (PFNGLMAP2DPROC)load("glMap2d"); - glad_glMap2f = (PFNGLMAP2FPROC)load("glMap2f"); - glad_glMapGrid1d = (PFNGLMAPGRID1DPROC)load("glMapGrid1d"); - glad_glMapGrid1f = (PFNGLMAPGRID1FPROC)load("glMapGrid1f"); - glad_glMapGrid2d = (PFNGLMAPGRID2DPROC)load("glMapGrid2d"); - glad_glMapGrid2f = (PFNGLMAPGRID2FPROC)load("glMapGrid2f"); - glad_glEvalCoord1d = (PFNGLEVALCOORD1DPROC)load("glEvalCoord1d"); - glad_glEvalCoord1dv = (PFNGLEVALCOORD1DVPROC)load("glEvalCoord1dv"); - glad_glEvalCoord1f = (PFNGLEVALCOORD1FPROC)load("glEvalCoord1f"); - glad_glEvalCoord1fv = (PFNGLEVALCOORD1FVPROC)load("glEvalCoord1fv"); - glad_glEvalCoord2d = (PFNGLEVALCOORD2DPROC)load("glEvalCoord2d"); - glad_glEvalCoord2dv = (PFNGLEVALCOORD2DVPROC)load("glEvalCoord2dv"); - glad_glEvalCoord2f = (PFNGLEVALCOORD2FPROC)load("glEvalCoord2f"); - glad_glEvalCoord2fv = (PFNGLEVALCOORD2FVPROC)load("glEvalCoord2fv"); - glad_glEvalMesh1 = (PFNGLEVALMESH1PROC)load("glEvalMesh1"); - glad_glEvalPoint1 = (PFNGLEVALPOINT1PROC)load("glEvalPoint1"); - glad_glEvalMesh2 = (PFNGLEVALMESH2PROC)load("glEvalMesh2"); - glad_glEvalPoint2 = (PFNGLEVALPOINT2PROC)load("glEvalPoint2"); - glad_glAlphaFunc = (PFNGLALPHAFUNCPROC)load("glAlphaFunc"); - glad_glPixelZoom = (PFNGLPIXELZOOMPROC)load("glPixelZoom"); - glad_glPixelTransferf = (PFNGLPIXELTRANSFERFPROC)load("glPixelTransferf"); - glad_glPixelTransferi = (PFNGLPIXELTRANSFERIPROC)load("glPixelTransferi"); - glad_glPixelMapfv = (PFNGLPIXELMAPFVPROC)load("glPixelMapfv"); - glad_glPixelMapuiv = (PFNGLPIXELMAPUIVPROC)load("glPixelMapuiv"); - glad_glPixelMapusv = (PFNGLPIXELMAPUSVPROC)load("glPixelMapusv"); - glad_glCopyPixels = (PFNGLCOPYPIXELSPROC)load("glCopyPixels"); - glad_glDrawPixels = (PFNGLDRAWPIXELSPROC)load("glDrawPixels"); - glad_glGetClipPlane = (PFNGLGETCLIPPLANEPROC)load("glGetClipPlane"); - glad_glGetLightfv = (PFNGLGETLIGHTFVPROC)load("glGetLightfv"); - glad_glGetLightiv = (PFNGLGETLIGHTIVPROC)load("glGetLightiv"); - glad_glGetMapdv = (PFNGLGETMAPDVPROC)load("glGetMapdv"); - glad_glGetMapfv = (PFNGLGETMAPFVPROC)load("glGetMapfv"); - glad_glGetMapiv = (PFNGLGETMAPIVPROC)load("glGetMapiv"); - glad_glGetMaterialfv = (PFNGLGETMATERIALFVPROC)load("glGetMaterialfv"); - glad_glGetMaterialiv = (PFNGLGETMATERIALIVPROC)load("glGetMaterialiv"); - glad_glGetPixelMapfv = (PFNGLGETPIXELMAPFVPROC)load("glGetPixelMapfv"); - glad_glGetPixelMapuiv = (PFNGLGETPIXELMAPUIVPROC)load("glGetPixelMapuiv"); - glad_glGetPixelMapusv = (PFNGLGETPIXELMAPUSVPROC)load("glGetPixelMapusv"); - glad_glGetPolygonStipple = (PFNGLGETPOLYGONSTIPPLEPROC)load("glGetPolygonStipple"); - glad_glGetTexEnvfv = (PFNGLGETTEXENVFVPROC)load("glGetTexEnvfv"); - glad_glGetTexEnviv = (PFNGLGETTEXENVIVPROC)load("glGetTexEnviv"); - glad_glGetTexGendv = (PFNGLGETTEXGENDVPROC)load("glGetTexGendv"); - glad_glGetTexGenfv = (PFNGLGETTEXGENFVPROC)load("glGetTexGenfv"); - glad_glGetTexGeniv = (PFNGLGETTEXGENIVPROC)load("glGetTexGeniv"); - glad_glIsList = (PFNGLISLISTPROC)load("glIsList"); - glad_glFrustum = (PFNGLFRUSTUMPROC)load("glFrustum"); - glad_glLoadIdentity = (PFNGLLOADIDENTITYPROC)load("glLoadIdentity"); - glad_glLoadMatrixf = (PFNGLLOADMATRIXFPROC)load("glLoadMatrixf"); - glad_glLoadMatrixd = (PFNGLLOADMATRIXDPROC)load("glLoadMatrixd"); - glad_glMatrixMode = (PFNGLMATRIXMODEPROC)load("glMatrixMode"); - glad_glMultMatrixf = (PFNGLMULTMATRIXFPROC)load("glMultMatrixf"); - glad_glMultMatrixd = (PFNGLMULTMATRIXDPROC)load("glMultMatrixd"); - glad_glOrtho = (PFNGLORTHOPROC)load("glOrtho"); - glad_glPopMatrix = (PFNGLPOPMATRIXPROC)load("glPopMatrix"); - glad_glPushMatrix = (PFNGLPUSHMATRIXPROC)load("glPushMatrix"); - glad_glRotated = (PFNGLROTATEDPROC)load("glRotated"); - glad_glRotatef = (PFNGLROTATEFPROC)load("glRotatef"); - glad_glScaled = (PFNGLSCALEDPROC)load("glScaled"); - glad_glScalef = (PFNGLSCALEFPROC)load("glScalef"); - glad_glTranslated = (PFNGLTRANSLATEDPROC)load("glTranslated"); - glad_glTranslatef = (PFNGLTRANSLATEFPROC)load("glTranslatef"); -} -static void load_GL_VERSION_1_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_1) return; - glad_glDrawArrays = (PFNGLDRAWARRAYSPROC)load("glDrawArrays"); - glad_glDrawElements = (PFNGLDRAWELEMENTSPROC)load("glDrawElements"); - glad_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv"); - glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)load("glPolygonOffset"); - glad_glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC)load("glCopyTexImage1D"); - glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)load("glCopyTexImage2D"); - glad_glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC)load("glCopyTexSubImage1D"); - glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)load("glCopyTexSubImage2D"); - glad_glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC)load("glTexSubImage1D"); - glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)load("glTexSubImage2D"); - glad_glBindTexture = (PFNGLBINDTEXTUREPROC)load("glBindTexture"); - glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC)load("glDeleteTextures"); - glad_glGenTextures = (PFNGLGENTEXTURESPROC)load("glGenTextures"); - glad_glIsTexture = (PFNGLISTEXTUREPROC)load("glIsTexture"); - glad_glArrayElement = (PFNGLARRAYELEMENTPROC)load("glArrayElement"); - glad_glColorPointer = (PFNGLCOLORPOINTERPROC)load("glColorPointer"); - glad_glDisableClientState = (PFNGLDISABLECLIENTSTATEPROC)load("glDisableClientState"); - glad_glEdgeFlagPointer = (PFNGLEDGEFLAGPOINTERPROC)load("glEdgeFlagPointer"); - glad_glEnableClientState = (PFNGLENABLECLIENTSTATEPROC)load("glEnableClientState"); - glad_glIndexPointer = (PFNGLINDEXPOINTERPROC)load("glIndexPointer"); - glad_glInterleavedArrays = (PFNGLINTERLEAVEDARRAYSPROC)load("glInterleavedArrays"); - glad_glNormalPointer = (PFNGLNORMALPOINTERPROC)load("glNormalPointer"); - glad_glTexCoordPointer = (PFNGLTEXCOORDPOINTERPROC)load("glTexCoordPointer"); - glad_glVertexPointer = (PFNGLVERTEXPOINTERPROC)load("glVertexPointer"); - glad_glAreTexturesResident = (PFNGLARETEXTURESRESIDENTPROC)load("glAreTexturesResident"); - glad_glPrioritizeTextures = (PFNGLPRIORITIZETEXTURESPROC)load("glPrioritizeTextures"); - glad_glIndexub = (PFNGLINDEXUBPROC)load("glIndexub"); - glad_glIndexubv = (PFNGLINDEXUBVPROC)load("glIndexubv"); - glad_glPopClientAttrib = (PFNGLPOPCLIENTATTRIBPROC)load("glPopClientAttrib"); - glad_glPushClientAttrib = (PFNGLPUSHCLIENTATTRIBPROC)load("glPushClientAttrib"); -} -static void load_GL_VERSION_1_2(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_2) return; - glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)load("glDrawRangeElements"); - glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC)load("glTexImage3D"); - glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)load("glTexSubImage3D"); - glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)load("glCopyTexSubImage3D"); -} -static void load_GL_VERSION_1_3(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_3) return; - glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC)load("glActiveTexture"); - glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)load("glSampleCoverage"); - glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)load("glCompressedTexImage3D"); - glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)load("glCompressedTexImage2D"); - glad_glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC)load("glCompressedTexImage1D"); - glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)load("glCompressedTexSubImage3D"); - glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)load("glCompressedTexSubImage2D"); - glad_glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)load("glCompressedTexSubImage1D"); - glad_glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC)load("glGetCompressedTexImage"); - glad_glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREPROC)load("glClientActiveTexture"); - glad_glMultiTexCoord1d = (PFNGLMULTITEXCOORD1DPROC)load("glMultiTexCoord1d"); - glad_glMultiTexCoord1dv = (PFNGLMULTITEXCOORD1DVPROC)load("glMultiTexCoord1dv"); - glad_glMultiTexCoord1f = (PFNGLMULTITEXCOORD1FPROC)load("glMultiTexCoord1f"); - glad_glMultiTexCoord1fv = (PFNGLMULTITEXCOORD1FVPROC)load("glMultiTexCoord1fv"); - glad_glMultiTexCoord1i = (PFNGLMULTITEXCOORD1IPROC)load("glMultiTexCoord1i"); - glad_glMultiTexCoord1iv = (PFNGLMULTITEXCOORD1IVPROC)load("glMultiTexCoord1iv"); - glad_glMultiTexCoord1s = (PFNGLMULTITEXCOORD1SPROC)load("glMultiTexCoord1s"); - glad_glMultiTexCoord1sv = (PFNGLMULTITEXCOORD1SVPROC)load("glMultiTexCoord1sv"); - glad_glMultiTexCoord2d = (PFNGLMULTITEXCOORD2DPROC)load("glMultiTexCoord2d"); - glad_glMultiTexCoord2dv = (PFNGLMULTITEXCOORD2DVPROC)load("glMultiTexCoord2dv"); - glad_glMultiTexCoord2f = (PFNGLMULTITEXCOORD2FPROC)load("glMultiTexCoord2f"); - glad_glMultiTexCoord2fv = (PFNGLMULTITEXCOORD2FVPROC)load("glMultiTexCoord2fv"); - glad_glMultiTexCoord2i = (PFNGLMULTITEXCOORD2IPROC)load("glMultiTexCoord2i"); - glad_glMultiTexCoord2iv = (PFNGLMULTITEXCOORD2IVPROC)load("glMultiTexCoord2iv"); - glad_glMultiTexCoord2s = (PFNGLMULTITEXCOORD2SPROC)load("glMultiTexCoord2s"); - glad_glMultiTexCoord2sv = (PFNGLMULTITEXCOORD2SVPROC)load("glMultiTexCoord2sv"); - glad_glMultiTexCoord3d = (PFNGLMULTITEXCOORD3DPROC)load("glMultiTexCoord3d"); - glad_glMultiTexCoord3dv = (PFNGLMULTITEXCOORD3DVPROC)load("glMultiTexCoord3dv"); - glad_glMultiTexCoord3f = (PFNGLMULTITEXCOORD3FPROC)load("glMultiTexCoord3f"); - glad_glMultiTexCoord3fv = (PFNGLMULTITEXCOORD3FVPROC)load("glMultiTexCoord3fv"); - glad_glMultiTexCoord3i = (PFNGLMULTITEXCOORD3IPROC)load("glMultiTexCoord3i"); - glad_glMultiTexCoord3iv = (PFNGLMULTITEXCOORD3IVPROC)load("glMultiTexCoord3iv"); - glad_glMultiTexCoord3s = (PFNGLMULTITEXCOORD3SPROC)load("glMultiTexCoord3s"); - glad_glMultiTexCoord3sv = (PFNGLMULTITEXCOORD3SVPROC)load("glMultiTexCoord3sv"); - glad_glMultiTexCoord4d = (PFNGLMULTITEXCOORD4DPROC)load("glMultiTexCoord4d"); - glad_glMultiTexCoord4dv = (PFNGLMULTITEXCOORD4DVPROC)load("glMultiTexCoord4dv"); - glad_glMultiTexCoord4f = (PFNGLMULTITEXCOORD4FPROC)load("glMultiTexCoord4f"); - glad_glMultiTexCoord4fv = (PFNGLMULTITEXCOORD4FVPROC)load("glMultiTexCoord4fv"); - glad_glMultiTexCoord4i = (PFNGLMULTITEXCOORD4IPROC)load("glMultiTexCoord4i"); - glad_glMultiTexCoord4iv = (PFNGLMULTITEXCOORD4IVPROC)load("glMultiTexCoord4iv"); - glad_glMultiTexCoord4s = (PFNGLMULTITEXCOORD4SPROC)load("glMultiTexCoord4s"); - glad_glMultiTexCoord4sv = (PFNGLMULTITEXCOORD4SVPROC)load("glMultiTexCoord4sv"); - glad_glLoadTransposeMatrixf = (PFNGLLOADTRANSPOSEMATRIXFPROC)load("glLoadTransposeMatrixf"); - glad_glLoadTransposeMatrixd = (PFNGLLOADTRANSPOSEMATRIXDPROC)load("glLoadTransposeMatrixd"); - glad_glMultTransposeMatrixf = (PFNGLMULTTRANSPOSEMATRIXFPROC)load("glMultTransposeMatrixf"); - glad_glMultTransposeMatrixd = (PFNGLMULTTRANSPOSEMATRIXDPROC)load("glMultTransposeMatrixd"); -} -static void load_GL_VERSION_1_4(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_4) return; - glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)load("glBlendFuncSeparate"); - glad_glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC)load("glMultiDrawArrays"); - glad_glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC)load("glMultiDrawElements"); - glad_glPointParameterf = (PFNGLPOINTPARAMETERFPROC)load("glPointParameterf"); - glad_glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC)load("glPointParameterfv"); - glad_glPointParameteri = (PFNGLPOINTPARAMETERIPROC)load("glPointParameteri"); - glad_glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC)load("glPointParameteriv"); - glad_glFogCoordf = (PFNGLFOGCOORDFPROC)load("glFogCoordf"); - glad_glFogCoordfv = (PFNGLFOGCOORDFVPROC)load("glFogCoordfv"); - glad_glFogCoordd = (PFNGLFOGCOORDDPROC)load("glFogCoordd"); - glad_glFogCoorddv = (PFNGLFOGCOORDDVPROC)load("glFogCoorddv"); - glad_glFogCoordPointer = (PFNGLFOGCOORDPOINTERPROC)load("glFogCoordPointer"); - glad_glSecondaryColor3b = (PFNGLSECONDARYCOLOR3BPROC)load("glSecondaryColor3b"); - glad_glSecondaryColor3bv = (PFNGLSECONDARYCOLOR3BVPROC)load("glSecondaryColor3bv"); - glad_glSecondaryColor3d = (PFNGLSECONDARYCOLOR3DPROC)load("glSecondaryColor3d"); - glad_glSecondaryColor3dv = (PFNGLSECONDARYCOLOR3DVPROC)load("glSecondaryColor3dv"); - glad_glSecondaryColor3f = (PFNGLSECONDARYCOLOR3FPROC)load("glSecondaryColor3f"); - glad_glSecondaryColor3fv = (PFNGLSECONDARYCOLOR3FVPROC)load("glSecondaryColor3fv"); - glad_glSecondaryColor3i = (PFNGLSECONDARYCOLOR3IPROC)load("glSecondaryColor3i"); - glad_glSecondaryColor3iv = (PFNGLSECONDARYCOLOR3IVPROC)load("glSecondaryColor3iv"); - glad_glSecondaryColor3s = (PFNGLSECONDARYCOLOR3SPROC)load("glSecondaryColor3s"); - glad_glSecondaryColor3sv = (PFNGLSECONDARYCOLOR3SVPROC)load("glSecondaryColor3sv"); - glad_glSecondaryColor3ub = (PFNGLSECONDARYCOLOR3UBPROC)load("glSecondaryColor3ub"); - glad_glSecondaryColor3ubv = (PFNGLSECONDARYCOLOR3UBVPROC)load("glSecondaryColor3ubv"); - glad_glSecondaryColor3ui = (PFNGLSECONDARYCOLOR3UIPROC)load("glSecondaryColor3ui"); - glad_glSecondaryColor3uiv = (PFNGLSECONDARYCOLOR3UIVPROC)load("glSecondaryColor3uiv"); - glad_glSecondaryColor3us = (PFNGLSECONDARYCOLOR3USPROC)load("glSecondaryColor3us"); - glad_glSecondaryColor3usv = (PFNGLSECONDARYCOLOR3USVPROC)load("glSecondaryColor3usv"); - glad_glSecondaryColorPointer = (PFNGLSECONDARYCOLORPOINTERPROC)load("glSecondaryColorPointer"); - glad_glWindowPos2d = (PFNGLWINDOWPOS2DPROC)load("glWindowPos2d"); - glad_glWindowPos2dv = (PFNGLWINDOWPOS2DVPROC)load("glWindowPos2dv"); - glad_glWindowPos2f = (PFNGLWINDOWPOS2FPROC)load("glWindowPos2f"); - glad_glWindowPos2fv = (PFNGLWINDOWPOS2FVPROC)load("glWindowPos2fv"); - glad_glWindowPos2i = (PFNGLWINDOWPOS2IPROC)load("glWindowPos2i"); - glad_glWindowPos2iv = (PFNGLWINDOWPOS2IVPROC)load("glWindowPos2iv"); - glad_glWindowPos2s = (PFNGLWINDOWPOS2SPROC)load("glWindowPos2s"); - glad_glWindowPos2sv = (PFNGLWINDOWPOS2SVPROC)load("glWindowPos2sv"); - glad_glWindowPos3d = (PFNGLWINDOWPOS3DPROC)load("glWindowPos3d"); - glad_glWindowPos3dv = (PFNGLWINDOWPOS3DVPROC)load("glWindowPos3dv"); - glad_glWindowPos3f = (PFNGLWINDOWPOS3FPROC)load("glWindowPos3f"); - glad_glWindowPos3fv = (PFNGLWINDOWPOS3FVPROC)load("glWindowPos3fv"); - glad_glWindowPos3i = (PFNGLWINDOWPOS3IPROC)load("glWindowPos3i"); - glad_glWindowPos3iv = (PFNGLWINDOWPOS3IVPROC)load("glWindowPos3iv"); - glad_glWindowPos3s = (PFNGLWINDOWPOS3SPROC)load("glWindowPos3s"); - glad_glWindowPos3sv = (PFNGLWINDOWPOS3SVPROC)load("glWindowPos3sv"); - glad_glBlendColor = (PFNGLBLENDCOLORPROC)load("glBlendColor"); - glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC)load("glBlendEquation"); -} -static void load_GL_VERSION_1_5(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_5) return; - glad_glGenQueries = (PFNGLGENQUERIESPROC)load("glGenQueries"); - glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC)load("glDeleteQueries"); - glad_glIsQuery = (PFNGLISQUERYPROC)load("glIsQuery"); - glad_glBeginQuery = (PFNGLBEGINQUERYPROC)load("glBeginQuery"); - glad_glEndQuery = (PFNGLENDQUERYPROC)load("glEndQuery"); - glad_glGetQueryiv = (PFNGLGETQUERYIVPROC)load("glGetQueryiv"); - glad_glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC)load("glGetQueryObjectiv"); - glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)load("glGetQueryObjectuiv"); - glad_glBindBuffer = (PFNGLBINDBUFFERPROC)load("glBindBuffer"); - glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)load("glDeleteBuffers"); - glad_glGenBuffers = (PFNGLGENBUFFERSPROC)load("glGenBuffers"); - glad_glIsBuffer = (PFNGLISBUFFERPROC)load("glIsBuffer"); - glad_glBufferData = (PFNGLBUFFERDATAPROC)load("glBufferData"); - glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC)load("glBufferSubData"); - glad_glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC)load("glGetBufferSubData"); - glad_glMapBuffer = (PFNGLMAPBUFFERPROC)load("glMapBuffer"); - glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)load("glUnmapBuffer"); - glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)load("glGetBufferParameteriv"); - glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)load("glGetBufferPointerv"); -} -static void load_GL_VERSION_2_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_2_0) return; - glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)load("glBlendEquationSeparate"); - glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC)load("glDrawBuffers"); - glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)load("glStencilOpSeparate"); - glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)load("glStencilFuncSeparate"); - glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)load("glStencilMaskSeparate"); - glad_glAttachShader = (PFNGLATTACHSHADERPROC)load("glAttachShader"); - glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)load("glBindAttribLocation"); - glad_glCompileShader = (PFNGLCOMPILESHADERPROC)load("glCompileShader"); - glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC)load("glCreateProgram"); - glad_glCreateShader = (PFNGLCREATESHADERPROC)load("glCreateShader"); - glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC)load("glDeleteProgram"); - glad_glDeleteShader = (PFNGLDELETESHADERPROC)load("glDeleteShader"); - glad_glDetachShader = (PFNGLDETACHSHADERPROC)load("glDetachShader"); - glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)load("glDisableVertexAttribArray"); - glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)load("glEnableVertexAttribArray"); - glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)load("glGetActiveAttrib"); - glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)load("glGetActiveUniform"); - glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)load("glGetAttachedShaders"); - glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)load("glGetAttribLocation"); - glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC)load("glGetProgramiv"); - glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)load("glGetProgramInfoLog"); - glad_glGetShaderiv = (PFNGLGETSHADERIVPROC)load("glGetShaderiv"); - glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)load("glGetShaderInfoLog"); - glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)load("glGetShaderSource"); - glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)load("glGetUniformLocation"); - glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC)load("glGetUniformfv"); - glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC)load("glGetUniformiv"); - glad_glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC)load("glGetVertexAttribdv"); - glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)load("glGetVertexAttribfv"); - glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)load("glGetVertexAttribiv"); - glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)load("glGetVertexAttribPointerv"); - glad_glIsProgram = (PFNGLISPROGRAMPROC)load("glIsProgram"); - glad_glIsShader = (PFNGLISSHADERPROC)load("glIsShader"); - glad_glLinkProgram = (PFNGLLINKPROGRAMPROC)load("glLinkProgram"); - glad_glShaderSource = (PFNGLSHADERSOURCEPROC)load("glShaderSource"); - glad_glUseProgram = (PFNGLUSEPROGRAMPROC)load("glUseProgram"); - glad_glUniform1f = (PFNGLUNIFORM1FPROC)load("glUniform1f"); - glad_glUniform2f = (PFNGLUNIFORM2FPROC)load("glUniform2f"); - glad_glUniform3f = (PFNGLUNIFORM3FPROC)load("glUniform3f"); - glad_glUniform4f = (PFNGLUNIFORM4FPROC)load("glUniform4f"); - glad_glUniform1i = (PFNGLUNIFORM1IPROC)load("glUniform1i"); - glad_glUniform2i = (PFNGLUNIFORM2IPROC)load("glUniform2i"); - glad_glUniform3i = (PFNGLUNIFORM3IPROC)load("glUniform3i"); - glad_glUniform4i = (PFNGLUNIFORM4IPROC)load("glUniform4i"); - glad_glUniform1fv = (PFNGLUNIFORM1FVPROC)load("glUniform1fv"); - glad_glUniform2fv = (PFNGLUNIFORM2FVPROC)load("glUniform2fv"); - glad_glUniform3fv = (PFNGLUNIFORM3FVPROC)load("glUniform3fv"); - glad_glUniform4fv = (PFNGLUNIFORM4FVPROC)load("glUniform4fv"); - glad_glUniform1iv = (PFNGLUNIFORM1IVPROC)load("glUniform1iv"); - glad_glUniform2iv = (PFNGLUNIFORM2IVPROC)load("glUniform2iv"); - glad_glUniform3iv = (PFNGLUNIFORM3IVPROC)load("glUniform3iv"); - glad_glUniform4iv = (PFNGLUNIFORM4IVPROC)load("glUniform4iv"); - glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)load("glUniformMatrix2fv"); - glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)load("glUniformMatrix3fv"); - glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)load("glUniformMatrix4fv"); - glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)load("glValidateProgram"); - glad_glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC)load("glVertexAttrib1d"); - glad_glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC)load("glVertexAttrib1dv"); - glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)load("glVertexAttrib1f"); - glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)load("glVertexAttrib1fv"); - glad_glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC)load("glVertexAttrib1s"); - glad_glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC)load("glVertexAttrib1sv"); - glad_glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC)load("glVertexAttrib2d"); - glad_glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC)load("glVertexAttrib2dv"); - glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)load("glVertexAttrib2f"); - glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)load("glVertexAttrib2fv"); - glad_glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC)load("glVertexAttrib2s"); - glad_glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC)load("glVertexAttrib2sv"); - glad_glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC)load("glVertexAttrib3d"); - glad_glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC)load("glVertexAttrib3dv"); - glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)load("glVertexAttrib3f"); - glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)load("glVertexAttrib3fv"); - glad_glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC)load("glVertexAttrib3s"); - glad_glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC)load("glVertexAttrib3sv"); - glad_glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC)load("glVertexAttrib4Nbv"); - glad_glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC)load("glVertexAttrib4Niv"); - glad_glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC)load("glVertexAttrib4Nsv"); - glad_glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC)load("glVertexAttrib4Nub"); - glad_glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC)load("glVertexAttrib4Nubv"); - glad_glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC)load("glVertexAttrib4Nuiv"); - glad_glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC)load("glVertexAttrib4Nusv"); - glad_glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC)load("glVertexAttrib4bv"); - glad_glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC)load("glVertexAttrib4d"); - glad_glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC)load("glVertexAttrib4dv"); - glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)load("glVertexAttrib4f"); - glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)load("glVertexAttrib4fv"); - glad_glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC)load("glVertexAttrib4iv"); - glad_glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC)load("glVertexAttrib4s"); - glad_glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC)load("glVertexAttrib4sv"); - glad_glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC)load("glVertexAttrib4ubv"); - glad_glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC)load("glVertexAttrib4uiv"); - glad_glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC)load("glVertexAttrib4usv"); - glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)load("glVertexAttribPointer"); -} -static void load_GL_VERSION_2_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_2_1) return; - glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)load("glUniformMatrix2x3fv"); - glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)load("glUniformMatrix3x2fv"); - glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)load("glUniformMatrix2x4fv"); - glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)load("glUniformMatrix4x2fv"); - glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)load("glUniformMatrix3x4fv"); - glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)load("glUniformMatrix4x3fv"); -} -static void load_GL_VERSION_3_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_0) return; - glad_glColorMaski = (PFNGLCOLORMASKIPROC)load("glColorMaski"); - glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC)load("glGetBooleani_v"); - glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v"); - glad_glEnablei = (PFNGLENABLEIPROC)load("glEnablei"); - glad_glDisablei = (PFNGLDISABLEIPROC)load("glDisablei"); - glad_glIsEnabledi = (PFNGLISENABLEDIPROC)load("glIsEnabledi"); - glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC)load("glBeginTransformFeedback"); - glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC)load("glEndTransformFeedback"); - glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange"); - glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase"); - glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC)load("glTransformFeedbackVaryings"); - glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)load("glGetTransformFeedbackVarying"); - glad_glClampColor = (PFNGLCLAMPCOLORPROC)load("glClampColor"); - glad_glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC)load("glBeginConditionalRender"); - glad_glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC)load("glEndConditionalRender"); - glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC)load("glVertexAttribIPointer"); - glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC)load("glGetVertexAttribIiv"); - glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC)load("glGetVertexAttribIuiv"); - glad_glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC)load("glVertexAttribI1i"); - glad_glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC)load("glVertexAttribI2i"); - glad_glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC)load("glVertexAttribI3i"); - glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC)load("glVertexAttribI4i"); - glad_glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC)load("glVertexAttribI1ui"); - glad_glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC)load("glVertexAttribI2ui"); - glad_glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC)load("glVertexAttribI3ui"); - glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC)load("glVertexAttribI4ui"); - glad_glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC)load("glVertexAttribI1iv"); - glad_glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC)load("glVertexAttribI2iv"); - glad_glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC)load("glVertexAttribI3iv"); - glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC)load("glVertexAttribI4iv"); - glad_glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC)load("glVertexAttribI1uiv"); - glad_glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC)load("glVertexAttribI2uiv"); - glad_glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC)load("glVertexAttribI3uiv"); - glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC)load("glVertexAttribI4uiv"); - glad_glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC)load("glVertexAttribI4bv"); - glad_glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC)load("glVertexAttribI4sv"); - glad_glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC)load("glVertexAttribI4ubv"); - glad_glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC)load("glVertexAttribI4usv"); - glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC)load("glGetUniformuiv"); - glad_glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC)load("glBindFragDataLocation"); - glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC)load("glGetFragDataLocation"); - glad_glUniform1ui = (PFNGLUNIFORM1UIPROC)load("glUniform1ui"); - glad_glUniform2ui = (PFNGLUNIFORM2UIPROC)load("glUniform2ui"); - glad_glUniform3ui = (PFNGLUNIFORM3UIPROC)load("glUniform3ui"); - glad_glUniform4ui = (PFNGLUNIFORM4UIPROC)load("glUniform4ui"); - glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC)load("glUniform1uiv"); - glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC)load("glUniform2uiv"); - glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC)load("glUniform3uiv"); - glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC)load("glUniform4uiv"); - glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC)load("glTexParameterIiv"); - glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC)load("glTexParameterIuiv"); - glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC)load("glGetTexParameterIiv"); - glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC)load("glGetTexParameterIuiv"); - glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC)load("glClearBufferiv"); - glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC)load("glClearBufferuiv"); - glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC)load("glClearBufferfv"); - glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC)load("glClearBufferfi"); - glad_glGetStringi = (PFNGLGETSTRINGIPROC)load("glGetStringi"); - glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer"); - glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)load("glBindRenderbuffer"); - glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)load("glDeleteRenderbuffers"); - glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)load("glGenRenderbuffers"); - glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)load("glRenderbufferStorage"); - glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)load("glGetRenderbufferParameteriv"); - glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)load("glIsFramebuffer"); - glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)load("glBindFramebuffer"); - glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)load("glDeleteFramebuffers"); - glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)load("glGenFramebuffers"); - glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)load("glCheckFramebufferStatus"); - glad_glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC)load("glFramebufferTexture1D"); - glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)load("glFramebufferTexture2D"); - glad_glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC)load("glFramebufferTexture3D"); - glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)load("glFramebufferRenderbuffer"); - glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetFramebufferAttachmentParameteriv"); - glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)load("glGenerateMipmap"); - glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)load("glBlitFramebuffer"); - glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glRenderbufferStorageMultisample"); - glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)load("glFramebufferTextureLayer"); - glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)load("glMapBufferRange"); - glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)load("glFlushMappedBufferRange"); - glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)load("glBindVertexArray"); - glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)load("glDeleteVertexArrays"); - glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)load("glGenVertexArrays"); - glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC)load("glIsVertexArray"); -} -static void load_GL_VERSION_3_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_1) return; - glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)load("glDrawArraysInstanced"); - glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC)load("glDrawElementsInstanced"); - glad_glTexBuffer = (PFNGLTEXBUFFERPROC)load("glTexBuffer"); - glad_glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC)load("glPrimitiveRestartIndex"); - glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)load("glCopyBufferSubData"); - glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)load("glGetUniformIndices"); - glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)load("glGetActiveUniformsiv"); - glad_glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC)load("glGetActiveUniformName"); - glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)load("glGetUniformBlockIndex"); - glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)load("glGetActiveUniformBlockiv"); - glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)load("glGetActiveUniformBlockName"); - glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)load("glUniformBlockBinding"); - glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange"); - glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase"); - glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v"); -} -static void load_GL_VERSION_3_2(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_2) return; - glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)load("glDrawElementsBaseVertex"); - glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)load("glDrawRangeElementsBaseVertex"); - glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)load("glDrawElementsInstancedBaseVertex"); - glad_glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)load("glMultiDrawElementsBaseVertex"); - glad_glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC)load("glProvokingVertex"); - glad_glFenceSync = (PFNGLFENCESYNCPROC)load("glFenceSync"); - glad_glIsSync = (PFNGLISSYNCPROC)load("glIsSync"); - glad_glDeleteSync = (PFNGLDELETESYNCPROC)load("glDeleteSync"); - glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)load("glClientWaitSync"); - glad_glWaitSync = (PFNGLWAITSYNCPROC)load("glWaitSync"); - glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC)load("glGetInteger64v"); - glad_glGetSynciv = (PFNGLGETSYNCIVPROC)load("glGetSynciv"); - glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)load("glGetInteger64i_v"); - glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)load("glGetBufferParameteri64v"); - glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)load("glFramebufferTexture"); - glad_glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)load("glTexImage2DMultisample"); - glad_glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC)load("glTexImage3DMultisample"); - glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)load("glGetMultisamplefv"); - glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC)load("glSampleMaski"); -} -static void load_GL_ARB_multisample(GLADloadproc load) { - if(!GLAD_GL_ARB_multisample) return; - glad_glSampleCoverageARB = (PFNGLSAMPLECOVERAGEARBPROC)load("glSampleCoverageARB"); -} -static void load_GL_ARB_robustness(GLADloadproc load) { - if(!GLAD_GL_ARB_robustness) return; - glad_glGetGraphicsResetStatusARB = (PFNGLGETGRAPHICSRESETSTATUSARBPROC)load("glGetGraphicsResetStatusARB"); - glad_glGetnTexImageARB = (PFNGLGETNTEXIMAGEARBPROC)load("glGetnTexImageARB"); - glad_glReadnPixelsARB = (PFNGLREADNPIXELSARBPROC)load("glReadnPixelsARB"); - glad_glGetnCompressedTexImageARB = (PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC)load("glGetnCompressedTexImageARB"); - glad_glGetnUniformfvARB = (PFNGLGETNUNIFORMFVARBPROC)load("glGetnUniformfvARB"); - glad_glGetnUniformivARB = (PFNGLGETNUNIFORMIVARBPROC)load("glGetnUniformivARB"); - glad_glGetnUniformuivARB = (PFNGLGETNUNIFORMUIVARBPROC)load("glGetnUniformuivARB"); - glad_glGetnUniformdvARB = (PFNGLGETNUNIFORMDVARBPROC)load("glGetnUniformdvARB"); - glad_glGetnMapdvARB = (PFNGLGETNMAPDVARBPROC)load("glGetnMapdvARB"); - glad_glGetnMapfvARB = (PFNGLGETNMAPFVARBPROC)load("glGetnMapfvARB"); - glad_glGetnMapivARB = (PFNGLGETNMAPIVARBPROC)load("glGetnMapivARB"); - glad_glGetnPixelMapfvARB = (PFNGLGETNPIXELMAPFVARBPROC)load("glGetnPixelMapfvARB"); - glad_glGetnPixelMapuivARB = (PFNGLGETNPIXELMAPUIVARBPROC)load("glGetnPixelMapuivARB"); - glad_glGetnPixelMapusvARB = (PFNGLGETNPIXELMAPUSVARBPROC)load("glGetnPixelMapusvARB"); - glad_glGetnPolygonStippleARB = (PFNGLGETNPOLYGONSTIPPLEARBPROC)load("glGetnPolygonStippleARB"); - glad_glGetnColorTableARB = (PFNGLGETNCOLORTABLEARBPROC)load("glGetnColorTableARB"); - glad_glGetnConvolutionFilterARB = (PFNGLGETNCONVOLUTIONFILTERARBPROC)load("glGetnConvolutionFilterARB"); - glad_glGetnSeparableFilterARB = (PFNGLGETNSEPARABLEFILTERARBPROC)load("glGetnSeparableFilterARB"); - glad_glGetnHistogramARB = (PFNGLGETNHISTOGRAMARBPROC)load("glGetnHistogramARB"); - glad_glGetnMinmaxARB = (PFNGLGETNMINMAXARBPROC)load("glGetnMinmaxARB"); -} -static void find_extensionsGL(void) { - GLAD_GL_EXT_separate_specular_color = has_ext("GL_EXT_separate_specular_color"); - GLAD_GL_ARB_multisample = has_ext("GL_ARB_multisample"); - GLAD_GL_ARB_robustness = has_ext("GL_ARB_robustness"); -} - -static void find_coreGL(void) { - - /* Thank you @elmindreda - * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176 - * https://github.com/glfw/glfw/blob/master/src/context.c#L36 - */ - int i, major, minor; - - const char* version; - const char* prefixes[] = { - "OpenGL ES-CM ", - "OpenGL ES-CL ", - "OpenGL ES ", - NULL - }; - - version = (const char*) glGetString(GL_VERSION); - if (!version) return; - - for (i = 0; prefixes[i]; i++) { - const size_t length = strlen(prefixes[i]); - if (strncmp(version, prefixes[i], length) == 0) { - version += length; - break; - } - } - -/* PR #18 */ -#ifdef _MSC_VER - sscanf_s(version, "%d.%d", &major, &minor); -#else - sscanf(version, "%d.%d", &major, &minor); -#endif - - GLVersion.major = major; GLVersion.minor = minor; - GLAD_GL_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1; - GLAD_GL_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1; - GLAD_GL_VERSION_1_2 = (major == 1 && minor >= 2) || major > 1; - GLAD_GL_VERSION_1_3 = (major == 1 && minor >= 3) || major > 1; - GLAD_GL_VERSION_1_4 = (major == 1 && minor >= 4) || major > 1; - GLAD_GL_VERSION_1_5 = (major == 1 && minor >= 5) || major > 1; - GLAD_GL_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2; - GLAD_GL_VERSION_2_1 = (major == 2 && minor >= 1) || major > 2; - GLAD_GL_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3; - GLAD_GL_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3; - GLAD_GL_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3; -} - -int gladLoadGLLoader(GLADloadproc load) { - GLVersion.major = 0; GLVersion.minor = 0; - glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); - if(glGetString == NULL) return 0; - if(glGetString(GL_VERSION) == NULL) return 0; - find_coreGL(); - load_GL_VERSION_1_0(load); - load_GL_VERSION_1_1(load); - load_GL_VERSION_1_2(load); - load_GL_VERSION_1_3(load); - load_GL_VERSION_1_4(load); - load_GL_VERSION_1_5(load); - load_GL_VERSION_2_0(load); - load_GL_VERSION_2_1(load); - load_GL_VERSION_3_0(load); - load_GL_VERSION_3_1(load); - load_GL_VERSION_3_2(load); - - find_extensionsGL(); - load_GL_ARB_multisample(load); - load_GL_ARB_robustness(load); - return GLVersion.major != 0 || GLVersion.minor != 0; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad/glad.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad/glad.h deleted file mode 100644 index ef96591..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad/glad.h +++ /dev/null @@ -1,3520 +0,0 @@ - -#ifndef __glad_h_ -#define __glad_h_ - -#ifdef __gl_h_ -#error OpenGL header already included, remove this include, glad already provides it -#endif -#define __gl_h_ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN 1 -#endif -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -struct gladGLversionStruct { - int major; - int minor; -}; - -extern struct gladGLversionStruct GLVersion; - -typedef void* (* GLADloadproc)(const char *name); - -#ifndef GLAPI -# if defined(GLAD_GLAPI_EXPORT) -# if defined(WIN32) || defined(__CYGWIN__) -# if defined(GLAD_GLAPI_EXPORT_BUILD) -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllexport)) extern -# else -# define GLAPI __declspec(dllexport) extern -# endif -# else -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllimport)) extern -# else -# define GLAPI __declspec(dllimport) extern -# endif -# endif -# elif defined(__GNUC__) && defined(GLAD_GLAPI_EXPORT_BUILD) -# define GLAPI __attribute__ ((visibility ("default"))) extern -# else -# define GLAPI extern -# endif -# else -# define GLAPI extern -# endif -#endif -GLAPI int gladLoadGLLoader(GLADloadproc); - -#include -#include -#ifndef GLEXT_64_TYPES_DEFINED -/* This code block is duplicated in glxext.h, so must be protected */ -#define GLEXT_64_TYPES_DEFINED -/* Define int32_t, int64_t, and uint64_t types for UST/MSC */ -/* (as used in the GL_EXT_timer_query extension). */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#include -#elif defined(__sun__) || defined(__digital__) -#include -#if defined(__STDC__) -#if defined(__arch64__) || defined(_LP64) -typedef long int int64_t; -typedef unsigned long int uint64_t; -#else -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#endif /* __arch64__ */ -#endif /* __STDC__ */ -#elif defined( __VMS ) || defined(__sgi) -#include -#elif defined(__SCO__) || defined(__USLC__) -#include -#elif defined(__UNIXOS2__) || defined(__SOL64__) -typedef long int int32_t; -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#elif defined(_WIN32) && defined(__GNUC__) -#include -#elif defined(_WIN32) -typedef __int32 int32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -/* Fallback if nothing above works */ -#include -#endif -#endif -typedef unsigned int GLenum; -typedef unsigned char GLboolean; -typedef unsigned int GLbitfield; -typedef void GLvoid; -typedef signed char GLbyte; -typedef short GLshort; -typedef int GLint; -typedef int GLclampx; -typedef unsigned char GLubyte; -typedef unsigned short GLushort; -typedef unsigned int GLuint; -typedef int GLsizei; -typedef float GLfloat; -typedef float GLclampf; -typedef double GLdouble; -typedef double GLclampd; -typedef void *GLeglImageOES; -typedef char GLchar; -typedef char GLcharARB; -#ifdef __APPLE__ -typedef void *GLhandleARB; -#else -typedef unsigned int GLhandleARB; -#endif -typedef unsigned short GLhalfARB; -typedef unsigned short GLhalf; -typedef GLint GLfixed; -typedef ptrdiff_t GLintptr; -typedef ptrdiff_t GLsizeiptr; -typedef int64_t GLint64; -typedef uint64_t GLuint64; -typedef ptrdiff_t GLintptrARB; -typedef ptrdiff_t GLsizeiptrARB; -typedef int64_t GLint64EXT; -typedef uint64_t GLuint64EXT; -typedef struct __GLsync *GLsync; -struct _cl_context; -struct _cl_event; -typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); -typedef unsigned short GLhalfNV; -typedef GLintptr GLvdpauSurfaceNV; -#define GL_DEPTH_BUFFER_BIT 0x00000100 -#define GL_STENCIL_BUFFER_BIT 0x00000400 -#define GL_COLOR_BUFFER_BIT 0x00004000 -#define GL_FALSE 0 -#define GL_TRUE 1 -#define GL_POINTS 0x0000 -#define GL_LINES 0x0001 -#define GL_LINE_LOOP 0x0002 -#define GL_LINE_STRIP 0x0003 -#define GL_TRIANGLES 0x0004 -#define GL_TRIANGLE_STRIP 0x0005 -#define GL_TRIANGLE_FAN 0x0006 -#define GL_QUADS 0x0007 -#define GL_NEVER 0x0200 -#define GL_LESS 0x0201 -#define GL_EQUAL 0x0202 -#define GL_LEQUAL 0x0203 -#define GL_GREATER 0x0204 -#define GL_NOTEQUAL 0x0205 -#define GL_GEQUAL 0x0206 -#define GL_ALWAYS 0x0207 -#define GL_ZERO 0 -#define GL_ONE 1 -#define GL_SRC_COLOR 0x0300 -#define GL_ONE_MINUS_SRC_COLOR 0x0301 -#define GL_SRC_ALPHA 0x0302 -#define GL_ONE_MINUS_SRC_ALPHA 0x0303 -#define GL_DST_ALPHA 0x0304 -#define GL_ONE_MINUS_DST_ALPHA 0x0305 -#define GL_DST_COLOR 0x0306 -#define GL_ONE_MINUS_DST_COLOR 0x0307 -#define GL_SRC_ALPHA_SATURATE 0x0308 -#define GL_NONE 0 -#define GL_FRONT_LEFT 0x0400 -#define GL_FRONT_RIGHT 0x0401 -#define GL_BACK_LEFT 0x0402 -#define GL_BACK_RIGHT 0x0403 -#define GL_FRONT 0x0404 -#define GL_BACK 0x0405 -#define GL_LEFT 0x0406 -#define GL_RIGHT 0x0407 -#define GL_FRONT_AND_BACK 0x0408 -#define GL_NO_ERROR 0 -#define GL_INVALID_ENUM 0x0500 -#define GL_INVALID_VALUE 0x0501 -#define GL_INVALID_OPERATION 0x0502 -#define GL_OUT_OF_MEMORY 0x0505 -#define GL_CW 0x0900 -#define GL_CCW 0x0901 -#define GL_POINT_SIZE 0x0B11 -#define GL_POINT_SIZE_RANGE 0x0B12 -#define GL_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_LINE_SMOOTH 0x0B20 -#define GL_LINE_WIDTH 0x0B21 -#define GL_LINE_WIDTH_RANGE 0x0B22 -#define GL_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_POLYGON_MODE 0x0B40 -#define GL_POLYGON_SMOOTH 0x0B41 -#define GL_CULL_FACE 0x0B44 -#define GL_CULL_FACE_MODE 0x0B45 -#define GL_FRONT_FACE 0x0B46 -#define GL_DEPTH_RANGE 0x0B70 -#define GL_DEPTH_TEST 0x0B71 -#define GL_DEPTH_WRITEMASK 0x0B72 -#define GL_DEPTH_CLEAR_VALUE 0x0B73 -#define GL_DEPTH_FUNC 0x0B74 -#define GL_STENCIL_TEST 0x0B90 -#define GL_STENCIL_CLEAR_VALUE 0x0B91 -#define GL_STENCIL_FUNC 0x0B92 -#define GL_STENCIL_VALUE_MASK 0x0B93 -#define GL_STENCIL_FAIL 0x0B94 -#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 -#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 -#define GL_STENCIL_REF 0x0B97 -#define GL_STENCIL_WRITEMASK 0x0B98 -#define GL_VIEWPORT 0x0BA2 -#define GL_DITHER 0x0BD0 -#define GL_BLEND_DST 0x0BE0 -#define GL_BLEND_SRC 0x0BE1 -#define GL_BLEND 0x0BE2 -#define GL_LOGIC_OP_MODE 0x0BF0 -#define GL_COLOR_LOGIC_OP 0x0BF2 -#define GL_DRAW_BUFFER 0x0C01 -#define GL_READ_BUFFER 0x0C02 -#define GL_SCISSOR_BOX 0x0C10 -#define GL_SCISSOR_TEST 0x0C11 -#define GL_COLOR_CLEAR_VALUE 0x0C22 -#define GL_COLOR_WRITEMASK 0x0C23 -#define GL_DOUBLEBUFFER 0x0C32 -#define GL_STEREO 0x0C33 -#define GL_LINE_SMOOTH_HINT 0x0C52 -#define GL_POLYGON_SMOOTH_HINT 0x0C53 -#define GL_UNPACK_SWAP_BYTES 0x0CF0 -#define GL_UNPACK_LSB_FIRST 0x0CF1 -#define GL_UNPACK_ROW_LENGTH 0x0CF2 -#define GL_UNPACK_SKIP_ROWS 0x0CF3 -#define GL_UNPACK_SKIP_PIXELS 0x0CF4 -#define GL_UNPACK_ALIGNMENT 0x0CF5 -#define GL_PACK_SWAP_BYTES 0x0D00 -#define GL_PACK_LSB_FIRST 0x0D01 -#define GL_PACK_ROW_LENGTH 0x0D02 -#define GL_PACK_SKIP_ROWS 0x0D03 -#define GL_PACK_SKIP_PIXELS 0x0D04 -#define GL_PACK_ALIGNMENT 0x0D05 -#define GL_MAX_TEXTURE_SIZE 0x0D33 -#define GL_MAX_VIEWPORT_DIMS 0x0D3A -#define GL_SUBPIXEL_BITS 0x0D50 -#define GL_TEXTURE_1D 0x0DE0 -#define GL_TEXTURE_2D 0x0DE1 -#define GL_POLYGON_OFFSET_UNITS 0x2A00 -#define GL_POLYGON_OFFSET_POINT 0x2A01 -#define GL_POLYGON_OFFSET_LINE 0x2A02 -#define GL_POLYGON_OFFSET_FILL 0x8037 -#define GL_POLYGON_OFFSET_FACTOR 0x8038 -#define GL_TEXTURE_BINDING_1D 0x8068 -#define GL_TEXTURE_BINDING_2D 0x8069 -#define GL_TEXTURE_WIDTH 0x1000 -#define GL_TEXTURE_HEIGHT 0x1001 -#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 -#define GL_TEXTURE_BORDER_COLOR 0x1004 -#define GL_TEXTURE_RED_SIZE 0x805C -#define GL_TEXTURE_GREEN_SIZE 0x805D -#define GL_TEXTURE_BLUE_SIZE 0x805E -#define GL_TEXTURE_ALPHA_SIZE 0x805F -#define GL_DONT_CARE 0x1100 -#define GL_FASTEST 0x1101 -#define GL_NICEST 0x1102 -#define GL_BYTE 0x1400 -#define GL_UNSIGNED_BYTE 0x1401 -#define GL_SHORT 0x1402 -#define GL_UNSIGNED_SHORT 0x1403 -#define GL_INT 0x1404 -#define GL_UNSIGNED_INT 0x1405 -#define GL_FLOAT 0x1406 -#define GL_DOUBLE 0x140A -#define GL_STACK_OVERFLOW 0x0503 -#define GL_STACK_UNDERFLOW 0x0504 -#define GL_CLEAR 0x1500 -#define GL_AND 0x1501 -#define GL_AND_REVERSE 0x1502 -#define GL_COPY 0x1503 -#define GL_AND_INVERTED 0x1504 -#define GL_NOOP 0x1505 -#define GL_XOR 0x1506 -#define GL_OR 0x1507 -#define GL_NOR 0x1508 -#define GL_EQUIV 0x1509 -#define GL_INVERT 0x150A -#define GL_OR_REVERSE 0x150B -#define GL_COPY_INVERTED 0x150C -#define GL_OR_INVERTED 0x150D -#define GL_NAND 0x150E -#define GL_SET 0x150F -#define GL_TEXTURE 0x1702 -#define GL_COLOR 0x1800 -#define GL_DEPTH 0x1801 -#define GL_STENCIL 0x1802 -#define GL_STENCIL_INDEX 0x1901 -#define GL_DEPTH_COMPONENT 0x1902 -#define GL_RED 0x1903 -#define GL_GREEN 0x1904 -#define GL_BLUE 0x1905 -#define GL_ALPHA 0x1906 -#define GL_RGB 0x1907 -#define GL_RGBA 0x1908 -#define GL_POINT 0x1B00 -#define GL_LINE 0x1B01 -#define GL_FILL 0x1B02 -#define GL_KEEP 0x1E00 -#define GL_REPLACE 0x1E01 -#define GL_INCR 0x1E02 -#define GL_DECR 0x1E03 -#define GL_VENDOR 0x1F00 -#define GL_RENDERER 0x1F01 -#define GL_VERSION 0x1F02 -#define GL_EXTENSIONS 0x1F03 -#define GL_NEAREST 0x2600 -#define GL_LINEAR 0x2601 -#define GL_NEAREST_MIPMAP_NEAREST 0x2700 -#define GL_LINEAR_MIPMAP_NEAREST 0x2701 -#define GL_NEAREST_MIPMAP_LINEAR 0x2702 -#define GL_LINEAR_MIPMAP_LINEAR 0x2703 -#define GL_TEXTURE_MAG_FILTER 0x2800 -#define GL_TEXTURE_MIN_FILTER 0x2801 -#define GL_TEXTURE_WRAP_S 0x2802 -#define GL_TEXTURE_WRAP_T 0x2803 -#define GL_PROXY_TEXTURE_1D 0x8063 -#define GL_PROXY_TEXTURE_2D 0x8064 -#define GL_REPEAT 0x2901 -#define GL_R3_G3_B2 0x2A10 -#define GL_RGB4 0x804F -#define GL_RGB5 0x8050 -#define GL_RGB8 0x8051 -#define GL_RGB10 0x8052 -#define GL_RGB12 0x8053 -#define GL_RGB16 0x8054 -#define GL_RGBA2 0x8055 -#define GL_RGBA4 0x8056 -#define GL_RGB5_A1 0x8057 -#define GL_RGBA8 0x8058 -#define GL_RGB10_A2 0x8059 -#define GL_RGBA12 0x805A -#define GL_RGBA16 0x805B -#define GL_CURRENT_BIT 0x00000001 -#define GL_POINT_BIT 0x00000002 -#define GL_LINE_BIT 0x00000004 -#define GL_POLYGON_BIT 0x00000008 -#define GL_POLYGON_STIPPLE_BIT 0x00000010 -#define GL_PIXEL_MODE_BIT 0x00000020 -#define GL_LIGHTING_BIT 0x00000040 -#define GL_FOG_BIT 0x00000080 -#define GL_ACCUM_BUFFER_BIT 0x00000200 -#define GL_VIEWPORT_BIT 0x00000800 -#define GL_TRANSFORM_BIT 0x00001000 -#define GL_ENABLE_BIT 0x00002000 -#define GL_HINT_BIT 0x00008000 -#define GL_EVAL_BIT 0x00010000 -#define GL_LIST_BIT 0x00020000 -#define GL_TEXTURE_BIT 0x00040000 -#define GL_SCISSOR_BIT 0x00080000 -#define GL_ALL_ATTRIB_BITS 0xFFFFFFFF -#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 -#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 -#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF -#define GL_QUAD_STRIP 0x0008 -#define GL_POLYGON 0x0009 -#define GL_ACCUM 0x0100 -#define GL_LOAD 0x0101 -#define GL_RETURN 0x0102 -#define GL_MULT 0x0103 -#define GL_ADD 0x0104 -#define GL_AUX0 0x0409 -#define GL_AUX1 0x040A -#define GL_AUX2 0x040B -#define GL_AUX3 0x040C -#define GL_2D 0x0600 -#define GL_3D 0x0601 -#define GL_3D_COLOR 0x0602 -#define GL_3D_COLOR_TEXTURE 0x0603 -#define GL_4D_COLOR_TEXTURE 0x0604 -#define GL_PASS_THROUGH_TOKEN 0x0700 -#define GL_POINT_TOKEN 0x0701 -#define GL_LINE_TOKEN 0x0702 -#define GL_POLYGON_TOKEN 0x0703 -#define GL_BITMAP_TOKEN 0x0704 -#define GL_DRAW_PIXEL_TOKEN 0x0705 -#define GL_COPY_PIXEL_TOKEN 0x0706 -#define GL_LINE_RESET_TOKEN 0x0707 -#define GL_EXP 0x0800 -#define GL_EXP2 0x0801 -#define GL_COEFF 0x0A00 -#define GL_ORDER 0x0A01 -#define GL_DOMAIN 0x0A02 -#define GL_PIXEL_MAP_I_TO_I 0x0C70 -#define GL_PIXEL_MAP_S_TO_S 0x0C71 -#define GL_PIXEL_MAP_I_TO_R 0x0C72 -#define GL_PIXEL_MAP_I_TO_G 0x0C73 -#define GL_PIXEL_MAP_I_TO_B 0x0C74 -#define GL_PIXEL_MAP_I_TO_A 0x0C75 -#define GL_PIXEL_MAP_R_TO_R 0x0C76 -#define GL_PIXEL_MAP_G_TO_G 0x0C77 -#define GL_PIXEL_MAP_B_TO_B 0x0C78 -#define GL_PIXEL_MAP_A_TO_A 0x0C79 -#define GL_VERTEX_ARRAY_POINTER 0x808E -#define GL_NORMAL_ARRAY_POINTER 0x808F -#define GL_COLOR_ARRAY_POINTER 0x8090 -#define GL_INDEX_ARRAY_POINTER 0x8091 -#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 -#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 -#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 -#define GL_SELECTION_BUFFER_POINTER 0x0DF3 -#define GL_CURRENT_COLOR 0x0B00 -#define GL_CURRENT_INDEX 0x0B01 -#define GL_CURRENT_NORMAL 0x0B02 -#define GL_CURRENT_TEXTURE_COORDS 0x0B03 -#define GL_CURRENT_RASTER_COLOR 0x0B04 -#define GL_CURRENT_RASTER_INDEX 0x0B05 -#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 -#define GL_CURRENT_RASTER_POSITION 0x0B07 -#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 -#define GL_CURRENT_RASTER_DISTANCE 0x0B09 -#define GL_POINT_SMOOTH 0x0B10 -#define GL_LINE_STIPPLE 0x0B24 -#define GL_LINE_STIPPLE_PATTERN 0x0B25 -#define GL_LINE_STIPPLE_REPEAT 0x0B26 -#define GL_LIST_MODE 0x0B30 -#define GL_MAX_LIST_NESTING 0x0B31 -#define GL_LIST_BASE 0x0B32 -#define GL_LIST_INDEX 0x0B33 -#define GL_POLYGON_STIPPLE 0x0B42 -#define GL_EDGE_FLAG 0x0B43 -#define GL_LIGHTING 0x0B50 -#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 -#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 -#define GL_LIGHT_MODEL_AMBIENT 0x0B53 -#define GL_SHADE_MODEL 0x0B54 -#define GL_COLOR_MATERIAL_FACE 0x0B55 -#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 -#define GL_COLOR_MATERIAL 0x0B57 -#define GL_FOG 0x0B60 -#define GL_FOG_INDEX 0x0B61 -#define GL_FOG_DENSITY 0x0B62 -#define GL_FOG_START 0x0B63 -#define GL_FOG_END 0x0B64 -#define GL_FOG_MODE 0x0B65 -#define GL_FOG_COLOR 0x0B66 -#define GL_ACCUM_CLEAR_VALUE 0x0B80 -#define GL_MATRIX_MODE 0x0BA0 -#define GL_NORMALIZE 0x0BA1 -#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 -#define GL_PROJECTION_STACK_DEPTH 0x0BA4 -#define GL_TEXTURE_STACK_DEPTH 0x0BA5 -#define GL_MODELVIEW_MATRIX 0x0BA6 -#define GL_PROJECTION_MATRIX 0x0BA7 -#define GL_TEXTURE_MATRIX 0x0BA8 -#define GL_ATTRIB_STACK_DEPTH 0x0BB0 -#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 -#define GL_ALPHA_TEST 0x0BC0 -#define GL_ALPHA_TEST_FUNC 0x0BC1 -#define GL_ALPHA_TEST_REF 0x0BC2 -#define GL_INDEX_LOGIC_OP 0x0BF1 -#define GL_LOGIC_OP 0x0BF1 -#define GL_AUX_BUFFERS 0x0C00 -#define GL_INDEX_CLEAR_VALUE 0x0C20 -#define GL_INDEX_WRITEMASK 0x0C21 -#define GL_INDEX_MODE 0x0C30 -#define GL_RGBA_MODE 0x0C31 -#define GL_RENDER_MODE 0x0C40 -#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 -#define GL_POINT_SMOOTH_HINT 0x0C51 -#define GL_FOG_HINT 0x0C54 -#define GL_TEXTURE_GEN_S 0x0C60 -#define GL_TEXTURE_GEN_T 0x0C61 -#define GL_TEXTURE_GEN_R 0x0C62 -#define GL_TEXTURE_GEN_Q 0x0C63 -#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 -#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 -#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 -#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 -#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 -#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 -#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 -#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 -#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 -#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 -#define GL_MAP_COLOR 0x0D10 -#define GL_MAP_STENCIL 0x0D11 -#define GL_INDEX_SHIFT 0x0D12 -#define GL_INDEX_OFFSET 0x0D13 -#define GL_RED_SCALE 0x0D14 -#define GL_RED_BIAS 0x0D15 -#define GL_ZOOM_X 0x0D16 -#define GL_ZOOM_Y 0x0D17 -#define GL_GREEN_SCALE 0x0D18 -#define GL_GREEN_BIAS 0x0D19 -#define GL_BLUE_SCALE 0x0D1A -#define GL_BLUE_BIAS 0x0D1B -#define GL_ALPHA_SCALE 0x0D1C -#define GL_ALPHA_BIAS 0x0D1D -#define GL_DEPTH_SCALE 0x0D1E -#define GL_DEPTH_BIAS 0x0D1F -#define GL_MAX_EVAL_ORDER 0x0D30 -#define GL_MAX_LIGHTS 0x0D31 -#define GL_MAX_CLIP_PLANES 0x0D32 -#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 -#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 -#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 -#define GL_MAX_NAME_STACK_DEPTH 0x0D37 -#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 -#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 -#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B -#define GL_INDEX_BITS 0x0D51 -#define GL_RED_BITS 0x0D52 -#define GL_GREEN_BITS 0x0D53 -#define GL_BLUE_BITS 0x0D54 -#define GL_ALPHA_BITS 0x0D55 -#define GL_DEPTH_BITS 0x0D56 -#define GL_STENCIL_BITS 0x0D57 -#define GL_ACCUM_RED_BITS 0x0D58 -#define GL_ACCUM_GREEN_BITS 0x0D59 -#define GL_ACCUM_BLUE_BITS 0x0D5A -#define GL_ACCUM_ALPHA_BITS 0x0D5B -#define GL_NAME_STACK_DEPTH 0x0D70 -#define GL_AUTO_NORMAL 0x0D80 -#define GL_MAP1_COLOR_4 0x0D90 -#define GL_MAP1_INDEX 0x0D91 -#define GL_MAP1_NORMAL 0x0D92 -#define GL_MAP1_TEXTURE_COORD_1 0x0D93 -#define GL_MAP1_TEXTURE_COORD_2 0x0D94 -#define GL_MAP1_TEXTURE_COORD_3 0x0D95 -#define GL_MAP1_TEXTURE_COORD_4 0x0D96 -#define GL_MAP1_VERTEX_3 0x0D97 -#define GL_MAP1_VERTEX_4 0x0D98 -#define GL_MAP2_COLOR_4 0x0DB0 -#define GL_MAP2_INDEX 0x0DB1 -#define GL_MAP2_NORMAL 0x0DB2 -#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 -#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 -#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 -#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 -#define GL_MAP2_VERTEX_3 0x0DB7 -#define GL_MAP2_VERTEX_4 0x0DB8 -#define GL_MAP1_GRID_DOMAIN 0x0DD0 -#define GL_MAP1_GRID_SEGMENTS 0x0DD1 -#define GL_MAP2_GRID_DOMAIN 0x0DD2 -#define GL_MAP2_GRID_SEGMENTS 0x0DD3 -#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 -#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 -#define GL_SELECTION_BUFFER_SIZE 0x0DF4 -#define GL_VERTEX_ARRAY 0x8074 -#define GL_NORMAL_ARRAY 0x8075 -#define GL_COLOR_ARRAY 0x8076 -#define GL_INDEX_ARRAY 0x8077 -#define GL_TEXTURE_COORD_ARRAY 0x8078 -#define GL_EDGE_FLAG_ARRAY 0x8079 -#define GL_VERTEX_ARRAY_SIZE 0x807A -#define GL_VERTEX_ARRAY_TYPE 0x807B -#define GL_VERTEX_ARRAY_STRIDE 0x807C -#define GL_NORMAL_ARRAY_TYPE 0x807E -#define GL_NORMAL_ARRAY_STRIDE 0x807F -#define GL_COLOR_ARRAY_SIZE 0x8081 -#define GL_COLOR_ARRAY_TYPE 0x8082 -#define GL_COLOR_ARRAY_STRIDE 0x8083 -#define GL_INDEX_ARRAY_TYPE 0x8085 -#define GL_INDEX_ARRAY_STRIDE 0x8086 -#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 -#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 -#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A -#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C -#define GL_TEXTURE_COMPONENTS 0x1003 -#define GL_TEXTURE_BORDER 0x1005 -#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 -#define GL_TEXTURE_INTENSITY_SIZE 0x8061 -#define GL_TEXTURE_PRIORITY 0x8066 -#define GL_TEXTURE_RESIDENT 0x8067 -#define GL_AMBIENT 0x1200 -#define GL_DIFFUSE 0x1201 -#define GL_SPECULAR 0x1202 -#define GL_POSITION 0x1203 -#define GL_SPOT_DIRECTION 0x1204 -#define GL_SPOT_EXPONENT 0x1205 -#define GL_SPOT_CUTOFF 0x1206 -#define GL_CONSTANT_ATTENUATION 0x1207 -#define GL_LINEAR_ATTENUATION 0x1208 -#define GL_QUADRATIC_ATTENUATION 0x1209 -#define GL_COMPILE 0x1300 -#define GL_COMPILE_AND_EXECUTE 0x1301 -#define GL_2_BYTES 0x1407 -#define GL_3_BYTES 0x1408 -#define GL_4_BYTES 0x1409 -#define GL_EMISSION 0x1600 -#define GL_SHININESS 0x1601 -#define GL_AMBIENT_AND_DIFFUSE 0x1602 -#define GL_COLOR_INDEXES 0x1603 -#define GL_MODELVIEW 0x1700 -#define GL_PROJECTION 0x1701 -#define GL_COLOR_INDEX 0x1900 -#define GL_LUMINANCE 0x1909 -#define GL_LUMINANCE_ALPHA 0x190A -#define GL_BITMAP 0x1A00 -#define GL_RENDER 0x1C00 -#define GL_FEEDBACK 0x1C01 -#define GL_SELECT 0x1C02 -#define GL_FLAT 0x1D00 -#define GL_SMOOTH 0x1D01 -#define GL_S 0x2000 -#define GL_T 0x2001 -#define GL_R 0x2002 -#define GL_Q 0x2003 -#define GL_MODULATE 0x2100 -#define GL_DECAL 0x2101 -#define GL_TEXTURE_ENV_MODE 0x2200 -#define GL_TEXTURE_ENV_COLOR 0x2201 -#define GL_TEXTURE_ENV 0x2300 -#define GL_EYE_LINEAR 0x2400 -#define GL_OBJECT_LINEAR 0x2401 -#define GL_SPHERE_MAP 0x2402 -#define GL_TEXTURE_GEN_MODE 0x2500 -#define GL_OBJECT_PLANE 0x2501 -#define GL_EYE_PLANE 0x2502 -#define GL_CLAMP 0x2900 -#define GL_ALPHA4 0x803B -#define GL_ALPHA8 0x803C -#define GL_ALPHA12 0x803D -#define GL_ALPHA16 0x803E -#define GL_LUMINANCE4 0x803F -#define GL_LUMINANCE8 0x8040 -#define GL_LUMINANCE12 0x8041 -#define GL_LUMINANCE16 0x8042 -#define GL_LUMINANCE4_ALPHA4 0x8043 -#define GL_LUMINANCE6_ALPHA2 0x8044 -#define GL_LUMINANCE8_ALPHA8 0x8045 -#define GL_LUMINANCE12_ALPHA4 0x8046 -#define GL_LUMINANCE12_ALPHA12 0x8047 -#define GL_LUMINANCE16_ALPHA16 0x8048 -#define GL_INTENSITY 0x8049 -#define GL_INTENSITY4 0x804A -#define GL_INTENSITY8 0x804B -#define GL_INTENSITY12 0x804C -#define GL_INTENSITY16 0x804D -#define GL_V2F 0x2A20 -#define GL_V3F 0x2A21 -#define GL_C4UB_V2F 0x2A22 -#define GL_C4UB_V3F 0x2A23 -#define GL_C3F_V3F 0x2A24 -#define GL_N3F_V3F 0x2A25 -#define GL_C4F_N3F_V3F 0x2A26 -#define GL_T2F_V3F 0x2A27 -#define GL_T4F_V4F 0x2A28 -#define GL_T2F_C4UB_V3F 0x2A29 -#define GL_T2F_C3F_V3F 0x2A2A -#define GL_T2F_N3F_V3F 0x2A2B -#define GL_T2F_C4F_N3F_V3F 0x2A2C -#define GL_T4F_C4F_N3F_V4F 0x2A2D -#define GL_CLIP_PLANE0 0x3000 -#define GL_CLIP_PLANE1 0x3001 -#define GL_CLIP_PLANE2 0x3002 -#define GL_CLIP_PLANE3 0x3003 -#define GL_CLIP_PLANE4 0x3004 -#define GL_CLIP_PLANE5 0x3005 -#define GL_LIGHT0 0x4000 -#define GL_LIGHT1 0x4001 -#define GL_LIGHT2 0x4002 -#define GL_LIGHT3 0x4003 -#define GL_LIGHT4 0x4004 -#define GL_LIGHT5 0x4005 -#define GL_LIGHT6 0x4006 -#define GL_LIGHT7 0x4007 -#define GL_UNSIGNED_BYTE_3_3_2 0x8032 -#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 -#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 -#define GL_UNSIGNED_INT_8_8_8_8 0x8035 -#define GL_UNSIGNED_INT_10_10_10_2 0x8036 -#define GL_TEXTURE_BINDING_3D 0x806A -#define GL_PACK_SKIP_IMAGES 0x806B -#define GL_PACK_IMAGE_HEIGHT 0x806C -#define GL_UNPACK_SKIP_IMAGES 0x806D -#define GL_UNPACK_IMAGE_HEIGHT 0x806E -#define GL_TEXTURE_3D 0x806F -#define GL_PROXY_TEXTURE_3D 0x8070 -#define GL_TEXTURE_DEPTH 0x8071 -#define GL_TEXTURE_WRAP_R 0x8072 -#define GL_MAX_3D_TEXTURE_SIZE 0x8073 -#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 -#define GL_UNSIGNED_SHORT_5_6_5 0x8363 -#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 -#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 -#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 -#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 -#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 -#define GL_BGR 0x80E0 -#define GL_BGRA 0x80E1 -#define GL_MAX_ELEMENTS_VERTICES 0x80E8 -#define GL_MAX_ELEMENTS_INDICES 0x80E9 -#define GL_CLAMP_TO_EDGE 0x812F -#define GL_TEXTURE_MIN_LOD 0x813A -#define GL_TEXTURE_MAX_LOD 0x813B -#define GL_TEXTURE_BASE_LEVEL 0x813C -#define GL_TEXTURE_MAX_LEVEL 0x813D -#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 -#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 -#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E -#define GL_RESCALE_NORMAL 0x803A -#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 -#define GL_SINGLE_COLOR 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR 0x81FA -#define GL_ALIASED_POINT_SIZE_RANGE 0x846D -#define GL_TEXTURE0 0x84C0 -#define GL_TEXTURE1 0x84C1 -#define GL_TEXTURE2 0x84C2 -#define GL_TEXTURE3 0x84C3 -#define GL_TEXTURE4 0x84C4 -#define GL_TEXTURE5 0x84C5 -#define GL_TEXTURE6 0x84C6 -#define GL_TEXTURE7 0x84C7 -#define GL_TEXTURE8 0x84C8 -#define GL_TEXTURE9 0x84C9 -#define GL_TEXTURE10 0x84CA -#define GL_TEXTURE11 0x84CB -#define GL_TEXTURE12 0x84CC -#define GL_TEXTURE13 0x84CD -#define GL_TEXTURE14 0x84CE -#define GL_TEXTURE15 0x84CF -#define GL_TEXTURE16 0x84D0 -#define GL_TEXTURE17 0x84D1 -#define GL_TEXTURE18 0x84D2 -#define GL_TEXTURE19 0x84D3 -#define GL_TEXTURE20 0x84D4 -#define GL_TEXTURE21 0x84D5 -#define GL_TEXTURE22 0x84D6 -#define GL_TEXTURE23 0x84D7 -#define GL_TEXTURE24 0x84D8 -#define GL_TEXTURE25 0x84D9 -#define GL_TEXTURE26 0x84DA -#define GL_TEXTURE27 0x84DB -#define GL_TEXTURE28 0x84DC -#define GL_TEXTURE29 0x84DD -#define GL_TEXTURE30 0x84DE -#define GL_TEXTURE31 0x84DF -#define GL_ACTIVE_TEXTURE 0x84E0 -#define GL_MULTISAMPLE 0x809D -#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE 0x809F -#define GL_SAMPLE_COVERAGE 0x80A0 -#define GL_SAMPLE_BUFFERS 0x80A8 -#define GL_SAMPLES 0x80A9 -#define GL_SAMPLE_COVERAGE_VALUE 0x80AA -#define GL_SAMPLE_COVERAGE_INVERT 0x80AB -#define GL_TEXTURE_CUBE_MAP 0x8513 -#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A -#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B -#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C -#define GL_COMPRESSED_RGB 0x84ED -#define GL_COMPRESSED_RGBA 0x84EE -#define GL_TEXTURE_COMPRESSION_HINT 0x84EF -#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 -#define GL_TEXTURE_COMPRESSED 0x86A1 -#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 -#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 -#define GL_CLAMP_TO_BORDER 0x812D -#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 -#define GL_MAX_TEXTURE_UNITS 0x84E2 -#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 -#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 -#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 -#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 -#define GL_MULTISAMPLE_BIT 0x20000000 -#define GL_NORMAL_MAP 0x8511 -#define GL_REFLECTION_MAP 0x8512 -#define GL_COMPRESSED_ALPHA 0x84E9 -#define GL_COMPRESSED_LUMINANCE 0x84EA -#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB -#define GL_COMPRESSED_INTENSITY 0x84EC -#define GL_COMBINE 0x8570 -#define GL_COMBINE_RGB 0x8571 -#define GL_COMBINE_ALPHA 0x8572 -#define GL_SOURCE0_RGB 0x8580 -#define GL_SOURCE1_RGB 0x8581 -#define GL_SOURCE2_RGB 0x8582 -#define GL_SOURCE0_ALPHA 0x8588 -#define GL_SOURCE1_ALPHA 0x8589 -#define GL_SOURCE2_ALPHA 0x858A -#define GL_OPERAND0_RGB 0x8590 -#define GL_OPERAND1_RGB 0x8591 -#define GL_OPERAND2_RGB 0x8592 -#define GL_OPERAND0_ALPHA 0x8598 -#define GL_OPERAND1_ALPHA 0x8599 -#define GL_OPERAND2_ALPHA 0x859A -#define GL_RGB_SCALE 0x8573 -#define GL_ADD_SIGNED 0x8574 -#define GL_INTERPOLATE 0x8575 -#define GL_SUBTRACT 0x84E7 -#define GL_CONSTANT 0x8576 -#define GL_PRIMARY_COLOR 0x8577 -#define GL_PREVIOUS 0x8578 -#define GL_DOT3_RGB 0x86AE -#define GL_DOT3_RGBA 0x86AF -#define GL_BLEND_DST_RGB 0x80C8 -#define GL_BLEND_SRC_RGB 0x80C9 -#define GL_BLEND_DST_ALPHA 0x80CA -#define GL_BLEND_SRC_ALPHA 0x80CB -#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 -#define GL_DEPTH_COMPONENT16 0x81A5 -#define GL_DEPTH_COMPONENT24 0x81A6 -#define GL_DEPTH_COMPONENT32 0x81A7 -#define GL_MIRRORED_REPEAT 0x8370 -#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD -#define GL_TEXTURE_LOD_BIAS 0x8501 -#define GL_INCR_WRAP 0x8507 -#define GL_DECR_WRAP 0x8508 -#define GL_TEXTURE_DEPTH_SIZE 0x884A -#define GL_TEXTURE_COMPARE_MODE 0x884C -#define GL_TEXTURE_COMPARE_FUNC 0x884D -#define GL_POINT_SIZE_MIN 0x8126 -#define GL_POINT_SIZE_MAX 0x8127 -#define GL_POINT_DISTANCE_ATTENUATION 0x8129 -#define GL_GENERATE_MIPMAP 0x8191 -#define GL_GENERATE_MIPMAP_HINT 0x8192 -#define GL_FOG_COORDINATE_SOURCE 0x8450 -#define GL_FOG_COORDINATE 0x8451 -#define GL_FRAGMENT_DEPTH 0x8452 -#define GL_CURRENT_FOG_COORDINATE 0x8453 -#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 -#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 -#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 -#define GL_FOG_COORDINATE_ARRAY 0x8457 -#define GL_COLOR_SUM 0x8458 -#define GL_CURRENT_SECONDARY_COLOR 0x8459 -#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A -#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B -#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C -#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D -#define GL_SECONDARY_COLOR_ARRAY 0x845E -#define GL_TEXTURE_FILTER_CONTROL 0x8500 -#define GL_DEPTH_TEXTURE_MODE 0x884B -#define GL_COMPARE_R_TO_TEXTURE 0x884E -#define GL_FUNC_ADD 0x8006 -#define GL_FUNC_SUBTRACT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT 0x800B -#define GL_MIN 0x8007 -#define GL_MAX 0x8008 -#define GL_CONSTANT_COLOR 0x8001 -#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 -#define GL_CONSTANT_ALPHA 0x8003 -#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 -#define GL_BUFFER_SIZE 0x8764 -#define GL_BUFFER_USAGE 0x8765 -#define GL_QUERY_COUNTER_BITS 0x8864 -#define GL_CURRENT_QUERY 0x8865 -#define GL_QUERY_RESULT 0x8866 -#define GL_QUERY_RESULT_AVAILABLE 0x8867 -#define GL_ARRAY_BUFFER 0x8892 -#define GL_ELEMENT_ARRAY_BUFFER 0x8893 -#define GL_ARRAY_BUFFER_BINDING 0x8894 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 -#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F -#define GL_READ_ONLY 0x88B8 -#define GL_WRITE_ONLY 0x88B9 -#define GL_READ_WRITE 0x88BA -#define GL_BUFFER_ACCESS 0x88BB -#define GL_BUFFER_MAPPED 0x88BC -#define GL_BUFFER_MAP_POINTER 0x88BD -#define GL_STREAM_DRAW 0x88E0 -#define GL_STREAM_READ 0x88E1 -#define GL_STREAM_COPY 0x88E2 -#define GL_STATIC_DRAW 0x88E4 -#define GL_STATIC_READ 0x88E5 -#define GL_STATIC_COPY 0x88E6 -#define GL_DYNAMIC_DRAW 0x88E8 -#define GL_DYNAMIC_READ 0x88E9 -#define GL_DYNAMIC_COPY 0x88EA -#define GL_SAMPLES_PASSED 0x8914 -#define GL_SRC1_ALPHA 0x8589 -#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 -#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 -#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 -#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A -#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B -#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C -#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D -#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E -#define GL_FOG_COORD_SRC 0x8450 -#define GL_FOG_COORD 0x8451 -#define GL_CURRENT_FOG_COORD 0x8453 -#define GL_FOG_COORD_ARRAY_TYPE 0x8454 -#define GL_FOG_COORD_ARRAY_STRIDE 0x8455 -#define GL_FOG_COORD_ARRAY_POINTER 0x8456 -#define GL_FOG_COORD_ARRAY 0x8457 -#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D -#define GL_SRC0_RGB 0x8580 -#define GL_SRC1_RGB 0x8581 -#define GL_SRC2_RGB 0x8582 -#define GL_SRC0_ALPHA 0x8588 -#define GL_SRC2_ALPHA 0x858A -#define GL_BLEND_EQUATION_RGB 0x8009 -#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 -#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 -#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 -#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 -#define GL_CURRENT_VERTEX_ATTRIB 0x8626 -#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 -#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 -#define GL_STENCIL_BACK_FUNC 0x8800 -#define GL_STENCIL_BACK_FAIL 0x8801 -#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 -#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 -#define GL_MAX_DRAW_BUFFERS 0x8824 -#define GL_DRAW_BUFFER0 0x8825 -#define GL_DRAW_BUFFER1 0x8826 -#define GL_DRAW_BUFFER2 0x8827 -#define GL_DRAW_BUFFER3 0x8828 -#define GL_DRAW_BUFFER4 0x8829 -#define GL_DRAW_BUFFER5 0x882A -#define GL_DRAW_BUFFER6 0x882B -#define GL_DRAW_BUFFER7 0x882C -#define GL_DRAW_BUFFER8 0x882D -#define GL_DRAW_BUFFER9 0x882E -#define GL_DRAW_BUFFER10 0x882F -#define GL_DRAW_BUFFER11 0x8830 -#define GL_DRAW_BUFFER12 0x8831 -#define GL_DRAW_BUFFER13 0x8832 -#define GL_DRAW_BUFFER14 0x8833 -#define GL_DRAW_BUFFER15 0x8834 -#define GL_BLEND_EQUATION_ALPHA 0x883D -#define GL_MAX_VERTEX_ATTRIBS 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A -#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 -#define GL_FRAGMENT_SHADER 0x8B30 -#define GL_VERTEX_SHADER 0x8B31 -#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 -#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A -#define GL_MAX_VARYING_FLOATS 0x8B4B -#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C -#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D -#define GL_SHADER_TYPE 0x8B4F -#define GL_FLOAT_VEC2 0x8B50 -#define GL_FLOAT_VEC3 0x8B51 -#define GL_FLOAT_VEC4 0x8B52 -#define GL_INT_VEC2 0x8B53 -#define GL_INT_VEC3 0x8B54 -#define GL_INT_VEC4 0x8B55 -#define GL_BOOL 0x8B56 -#define GL_BOOL_VEC2 0x8B57 -#define GL_BOOL_VEC3 0x8B58 -#define GL_BOOL_VEC4 0x8B59 -#define GL_FLOAT_MAT2 0x8B5A -#define GL_FLOAT_MAT3 0x8B5B -#define GL_FLOAT_MAT4 0x8B5C -#define GL_SAMPLER_1D 0x8B5D -#define GL_SAMPLER_2D 0x8B5E -#define GL_SAMPLER_3D 0x8B5F -#define GL_SAMPLER_CUBE 0x8B60 -#define GL_SAMPLER_1D_SHADOW 0x8B61 -#define GL_SAMPLER_2D_SHADOW 0x8B62 -#define GL_DELETE_STATUS 0x8B80 -#define GL_COMPILE_STATUS 0x8B81 -#define GL_LINK_STATUS 0x8B82 -#define GL_VALIDATE_STATUS 0x8B83 -#define GL_INFO_LOG_LENGTH 0x8B84 -#define GL_ATTACHED_SHADERS 0x8B85 -#define GL_ACTIVE_UNIFORMS 0x8B86 -#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 -#define GL_SHADER_SOURCE_LENGTH 0x8B88 -#define GL_ACTIVE_ATTRIBUTES 0x8B89 -#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B -#define GL_SHADING_LANGUAGE_VERSION 0x8B8C -#define GL_CURRENT_PROGRAM 0x8B8D -#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 -#define GL_LOWER_LEFT 0x8CA1 -#define GL_UPPER_LEFT 0x8CA2 -#define GL_STENCIL_BACK_REF 0x8CA3 -#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 -#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 -#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 -#define GL_POINT_SPRITE 0x8861 -#define GL_COORD_REPLACE 0x8862 -#define GL_MAX_TEXTURE_COORDS 0x8871 -#define GL_PIXEL_PACK_BUFFER 0x88EB -#define GL_PIXEL_UNPACK_BUFFER 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF -#define GL_FLOAT_MAT2x3 0x8B65 -#define GL_FLOAT_MAT2x4 0x8B66 -#define GL_FLOAT_MAT3x2 0x8B67 -#define GL_FLOAT_MAT3x4 0x8B68 -#define GL_FLOAT_MAT4x2 0x8B69 -#define GL_FLOAT_MAT4x3 0x8B6A -#define GL_SRGB 0x8C40 -#define GL_SRGB8 0x8C41 -#define GL_SRGB_ALPHA 0x8C42 -#define GL_SRGB8_ALPHA8 0x8C43 -#define GL_COMPRESSED_SRGB 0x8C48 -#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 -#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F -#define GL_SLUMINANCE_ALPHA 0x8C44 -#define GL_SLUMINANCE8_ALPHA8 0x8C45 -#define GL_SLUMINANCE 0x8C46 -#define GL_SLUMINANCE8 0x8C47 -#define GL_COMPRESSED_SLUMINANCE 0x8C4A -#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B -#define GL_COMPARE_REF_TO_TEXTURE 0x884E -#define GL_CLIP_DISTANCE0 0x3000 -#define GL_CLIP_DISTANCE1 0x3001 -#define GL_CLIP_DISTANCE2 0x3002 -#define GL_CLIP_DISTANCE3 0x3003 -#define GL_CLIP_DISTANCE4 0x3004 -#define GL_CLIP_DISTANCE5 0x3005 -#define GL_CLIP_DISTANCE6 0x3006 -#define GL_CLIP_DISTANCE7 0x3007 -#define GL_MAX_CLIP_DISTANCES 0x0D32 -#define GL_MAJOR_VERSION 0x821B -#define GL_MINOR_VERSION 0x821C -#define GL_NUM_EXTENSIONS 0x821D -#define GL_CONTEXT_FLAGS 0x821E -#define GL_COMPRESSED_RED 0x8225 -#define GL_COMPRESSED_RG 0x8226 -#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 -#define GL_RGBA32F 0x8814 -#define GL_RGB32F 0x8815 -#define GL_RGBA16F 0x881A -#define GL_RGB16F 0x881B -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD -#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF -#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 -#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 -#define GL_CLAMP_READ_COLOR 0x891C -#define GL_FIXED_ONLY 0x891D -#define GL_MAX_VARYING_COMPONENTS 0x8B4B -#define GL_TEXTURE_1D_ARRAY 0x8C18 -#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 -#define GL_TEXTURE_2D_ARRAY 0x8C1A -#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B -#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C -#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D -#define GL_R11F_G11F_B10F 0x8C3A -#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B -#define GL_RGB9_E5 0x8C3D -#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E -#define GL_TEXTURE_SHARED_SIZE 0x8C3F -#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 -#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 -#define GL_PRIMITIVES_GENERATED 0x8C87 -#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 -#define GL_RASTERIZER_DISCARD 0x8C89 -#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B -#define GL_INTERLEAVED_ATTRIBS 0x8C8C -#define GL_SEPARATE_ATTRIBS 0x8C8D -#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F -#define GL_RGBA32UI 0x8D70 -#define GL_RGB32UI 0x8D71 -#define GL_RGBA16UI 0x8D76 -#define GL_RGB16UI 0x8D77 -#define GL_RGBA8UI 0x8D7C -#define GL_RGB8UI 0x8D7D -#define GL_RGBA32I 0x8D82 -#define GL_RGB32I 0x8D83 -#define GL_RGBA16I 0x8D88 -#define GL_RGB16I 0x8D89 -#define GL_RGBA8I 0x8D8E -#define GL_RGB8I 0x8D8F -#define GL_RED_INTEGER 0x8D94 -#define GL_GREEN_INTEGER 0x8D95 -#define GL_BLUE_INTEGER 0x8D96 -#define GL_RGB_INTEGER 0x8D98 -#define GL_RGBA_INTEGER 0x8D99 -#define GL_BGR_INTEGER 0x8D9A -#define GL_BGRA_INTEGER 0x8D9B -#define GL_SAMPLER_1D_ARRAY 0x8DC0 -#define GL_SAMPLER_2D_ARRAY 0x8DC1 -#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 -#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 -#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 -#define GL_UNSIGNED_INT_VEC2 0x8DC6 -#define GL_UNSIGNED_INT_VEC3 0x8DC7 -#define GL_UNSIGNED_INT_VEC4 0x8DC8 -#define GL_INT_SAMPLER_1D 0x8DC9 -#define GL_INT_SAMPLER_2D 0x8DCA -#define GL_INT_SAMPLER_3D 0x8DCB -#define GL_INT_SAMPLER_CUBE 0x8DCC -#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE -#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF -#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 -#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 -#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 -#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 -#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 -#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 -#define GL_QUERY_WAIT 0x8E13 -#define GL_QUERY_NO_WAIT 0x8E14 -#define GL_QUERY_BY_REGION_WAIT 0x8E15 -#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 -#define GL_BUFFER_ACCESS_FLAGS 0x911F -#define GL_BUFFER_MAP_LENGTH 0x9120 -#define GL_BUFFER_MAP_OFFSET 0x9121 -#define GL_DEPTH_COMPONENT32F 0x8CAC -#define GL_DEPTH32F_STENCIL8 0x8CAD -#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD -#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 -#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 -#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 -#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 -#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 -#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 -#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 -#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 -#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 -#define GL_FRAMEBUFFER_DEFAULT 0x8218 -#define GL_FRAMEBUFFER_UNDEFINED 0x8219 -#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A -#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 -#define GL_DEPTH_STENCIL 0x84F9 -#define GL_UNSIGNED_INT_24_8 0x84FA -#define GL_DEPTH24_STENCIL8 0x88F0 -#define GL_TEXTURE_STENCIL_SIZE 0x88F1 -#define GL_TEXTURE_RED_TYPE 0x8C10 -#define GL_TEXTURE_GREEN_TYPE 0x8C11 -#define GL_TEXTURE_BLUE_TYPE 0x8C12 -#define GL_TEXTURE_ALPHA_TYPE 0x8C13 -#define GL_TEXTURE_DEPTH_TYPE 0x8C16 -#define GL_UNSIGNED_NORMALIZED 0x8C17 -#define GL_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_RENDERBUFFER_BINDING 0x8CA7 -#define GL_READ_FRAMEBUFFER 0x8CA8 -#define GL_DRAW_FRAMEBUFFER 0x8CA9 -#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA -#define GL_RENDERBUFFER_SAMPLES 0x8CAB -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 -#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 -#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 -#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 -#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB -#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC -#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD -#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF -#define GL_COLOR_ATTACHMENT0 0x8CE0 -#define GL_COLOR_ATTACHMENT1 0x8CE1 -#define GL_COLOR_ATTACHMENT2 0x8CE2 -#define GL_COLOR_ATTACHMENT3 0x8CE3 -#define GL_COLOR_ATTACHMENT4 0x8CE4 -#define GL_COLOR_ATTACHMENT5 0x8CE5 -#define GL_COLOR_ATTACHMENT6 0x8CE6 -#define GL_COLOR_ATTACHMENT7 0x8CE7 -#define GL_COLOR_ATTACHMENT8 0x8CE8 -#define GL_COLOR_ATTACHMENT9 0x8CE9 -#define GL_COLOR_ATTACHMENT10 0x8CEA -#define GL_COLOR_ATTACHMENT11 0x8CEB -#define GL_COLOR_ATTACHMENT12 0x8CEC -#define GL_COLOR_ATTACHMENT13 0x8CED -#define GL_COLOR_ATTACHMENT14 0x8CEE -#define GL_COLOR_ATTACHMENT15 0x8CEF -#define GL_COLOR_ATTACHMENT16 0x8CF0 -#define GL_COLOR_ATTACHMENT17 0x8CF1 -#define GL_COLOR_ATTACHMENT18 0x8CF2 -#define GL_COLOR_ATTACHMENT19 0x8CF3 -#define GL_COLOR_ATTACHMENT20 0x8CF4 -#define GL_COLOR_ATTACHMENT21 0x8CF5 -#define GL_COLOR_ATTACHMENT22 0x8CF6 -#define GL_COLOR_ATTACHMENT23 0x8CF7 -#define GL_COLOR_ATTACHMENT24 0x8CF8 -#define GL_COLOR_ATTACHMENT25 0x8CF9 -#define GL_COLOR_ATTACHMENT26 0x8CFA -#define GL_COLOR_ATTACHMENT27 0x8CFB -#define GL_COLOR_ATTACHMENT28 0x8CFC -#define GL_COLOR_ATTACHMENT29 0x8CFD -#define GL_COLOR_ATTACHMENT30 0x8CFE -#define GL_COLOR_ATTACHMENT31 0x8CFF -#define GL_DEPTH_ATTACHMENT 0x8D00 -#define GL_STENCIL_ATTACHMENT 0x8D20 -#define GL_FRAMEBUFFER 0x8D40 -#define GL_RENDERBUFFER 0x8D41 -#define GL_RENDERBUFFER_WIDTH 0x8D42 -#define GL_RENDERBUFFER_HEIGHT 0x8D43 -#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 -#define GL_STENCIL_INDEX1 0x8D46 -#define GL_STENCIL_INDEX4 0x8D47 -#define GL_STENCIL_INDEX8 0x8D48 -#define GL_STENCIL_INDEX16 0x8D49 -#define GL_RENDERBUFFER_RED_SIZE 0x8D50 -#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 -#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 -#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 -#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 -#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 -#define GL_MAX_SAMPLES 0x8D57 -#define GL_INDEX 0x8222 -#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14 -#define GL_TEXTURE_INTENSITY_TYPE 0x8C15 -#define GL_FRAMEBUFFER_SRGB 0x8DB9 -#define GL_HALF_FLOAT 0x140B -#define GL_MAP_READ_BIT 0x0001 -#define GL_MAP_WRITE_BIT 0x0002 -#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 -#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 -#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 -#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 -#define GL_COMPRESSED_RED_RGTC1 0x8DBB -#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC -#define GL_COMPRESSED_RG_RGTC2 0x8DBD -#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE -#define GL_RG 0x8227 -#define GL_RG_INTEGER 0x8228 -#define GL_R8 0x8229 -#define GL_R16 0x822A -#define GL_RG8 0x822B -#define GL_RG16 0x822C -#define GL_R16F 0x822D -#define GL_R32F 0x822E -#define GL_RG16F 0x822F -#define GL_RG32F 0x8230 -#define GL_R8I 0x8231 -#define GL_R8UI 0x8232 -#define GL_R16I 0x8233 -#define GL_R16UI 0x8234 -#define GL_R32I 0x8235 -#define GL_R32UI 0x8236 -#define GL_RG8I 0x8237 -#define GL_RG8UI 0x8238 -#define GL_RG16I 0x8239 -#define GL_RG16UI 0x823A -#define GL_RG32I 0x823B -#define GL_RG32UI 0x823C -#define GL_VERTEX_ARRAY_BINDING 0x85B5 -#define GL_CLAMP_VERTEX_COLOR 0x891A -#define GL_CLAMP_FRAGMENT_COLOR 0x891B -#define GL_ALPHA_INTEGER 0x8D97 -#define GL_SAMPLER_2D_RECT 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 -#define GL_SAMPLER_BUFFER 0x8DC2 -#define GL_INT_SAMPLER_2D_RECT 0x8DCD -#define GL_INT_SAMPLER_BUFFER 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 -#define GL_TEXTURE_BUFFER 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D -#define GL_TEXTURE_RECTANGLE 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 -#define GL_R8_SNORM 0x8F94 -#define GL_RG8_SNORM 0x8F95 -#define GL_RGB8_SNORM 0x8F96 -#define GL_RGBA8_SNORM 0x8F97 -#define GL_R16_SNORM 0x8F98 -#define GL_RG16_SNORM 0x8F99 -#define GL_RGB16_SNORM 0x8F9A -#define GL_RGBA16_SNORM 0x8F9B -#define GL_SIGNED_NORMALIZED 0x8F9C -#define GL_PRIMITIVE_RESTART 0x8F9D -#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E -#define GL_COPY_READ_BUFFER 0x8F36 -#define GL_COPY_WRITE_BUFFER 0x8F37 -#define GL_UNIFORM_BUFFER 0x8A11 -#define GL_UNIFORM_BUFFER_BINDING 0x8A28 -#define GL_UNIFORM_BUFFER_START 0x8A29 -#define GL_UNIFORM_BUFFER_SIZE 0x8A2A -#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B -#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C -#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D -#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E -#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F -#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 -#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 -#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 -#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 -#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 -#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 -#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 -#define GL_UNIFORM_TYPE 0x8A37 -#define GL_UNIFORM_SIZE 0x8A38 -#define GL_UNIFORM_NAME_LENGTH 0x8A39 -#define GL_UNIFORM_BLOCK_INDEX 0x8A3A -#define GL_UNIFORM_OFFSET 0x8A3B -#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C -#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D -#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E -#define GL_UNIFORM_BLOCK_BINDING 0x8A3F -#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 -#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 -#define GL_INVALID_INDEX 0xFFFFFFFF -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define GL_LINES_ADJACENCY 0x000A -#define GL_LINE_STRIP_ADJACENCY 0x000B -#define GL_TRIANGLES_ADJACENCY 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D -#define GL_PROGRAM_POINT_SIZE 0x8642 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 -#define GL_GEOMETRY_SHADER 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT 0x8916 -#define GL_GEOMETRY_INPUT_TYPE 0x8917 -#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 -#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 -#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 -#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 -#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 -#define GL_CONTEXT_PROFILE_MASK 0x9126 -#define GL_DEPTH_CLAMP 0x864F -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION 0x8E4D -#define GL_LAST_VERTEX_CONVENTION 0x8E4E -#define GL_PROVOKING_VERTEX 0x8E4F -#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F -#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 -#define GL_OBJECT_TYPE 0x9112 -#define GL_SYNC_CONDITION 0x9113 -#define GL_SYNC_STATUS 0x9114 -#define GL_SYNC_FLAGS 0x9115 -#define GL_SYNC_FENCE 0x9116 -#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 -#define GL_UNSIGNALED 0x9118 -#define GL_SIGNALED 0x9119 -#define GL_ALREADY_SIGNALED 0x911A -#define GL_TIMEOUT_EXPIRED 0x911B -#define GL_CONDITION_SATISFIED 0x911C -#define GL_WAIT_FAILED 0x911D -#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFF -#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 -#define GL_SAMPLE_POSITION 0x8E50 -#define GL_SAMPLE_MASK 0x8E51 -#define GL_SAMPLE_MASK_VALUE 0x8E52 -#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 -#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 -#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 -#define GL_TEXTURE_SAMPLES 0x9106 -#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 -#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 -#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A -#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B -#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D -#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E -#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F -#define GL_MAX_INTEGER_SAMPLES 0x9110 -#ifndef GL_VERSION_1_0 -#define GL_VERSION_1_0 1 -GLAPI int GLAD_GL_VERSION_1_0; -typedef void (APIENTRYP PFNGLCULLFACEPROC)(GLenum mode); -GLAPI PFNGLCULLFACEPROC glad_glCullFace; -#define glCullFace glad_glCullFace -typedef void (APIENTRYP PFNGLFRONTFACEPROC)(GLenum mode); -GLAPI PFNGLFRONTFACEPROC glad_glFrontFace; -#define glFrontFace glad_glFrontFace -typedef void (APIENTRYP PFNGLHINTPROC)(GLenum target, GLenum mode); -GLAPI PFNGLHINTPROC glad_glHint; -#define glHint glad_glHint -typedef void (APIENTRYP PFNGLLINEWIDTHPROC)(GLfloat width); -GLAPI PFNGLLINEWIDTHPROC glad_glLineWidth; -#define glLineWidth glad_glLineWidth -typedef void (APIENTRYP PFNGLPOINTSIZEPROC)(GLfloat size); -GLAPI PFNGLPOINTSIZEPROC glad_glPointSize; -#define glPointSize glad_glPointSize -typedef void (APIENTRYP PFNGLPOLYGONMODEPROC)(GLenum face, GLenum mode); -GLAPI PFNGLPOLYGONMODEPROC glad_glPolygonMode; -#define glPolygonMode glad_glPolygonMode -typedef void (APIENTRYP PFNGLSCISSORPROC)(GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLSCISSORPROC glad_glScissor; -#define glScissor glad_glScissor -typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC)(GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLTEXPARAMETERFPROC glad_glTexParameterf; -#define glTexParameterf glad_glTexParameterf -typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC)(GLenum target, GLenum pname, const GLfloat* params); -GLAPI PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -#define glTexParameterfv glad_glTexParameterfv -typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -#define glTexParameteri glad_glTexParameteri -typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC)(GLenum target, GLenum pname, const GLint* params); -GLAPI PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -#define glTexParameteriv glad_glTexParameteriv -typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); -GLAPI PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -#define glTexImage1D glad_glTexImage1D -typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); -GLAPI PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -#define glTexImage2D glad_glTexImage2D -typedef void (APIENTRYP PFNGLDRAWBUFFERPROC)(GLenum buf); -GLAPI PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -#define glDrawBuffer glad_glDrawBuffer -typedef void (APIENTRYP PFNGLCLEARPROC)(GLbitfield mask); -GLAPI PFNGLCLEARPROC glad_glClear; -#define glClear glad_glClear -typedef void (APIENTRYP PFNGLCLEARCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLCLEARCOLORPROC glad_glClearColor; -#define glClearColor glad_glClearColor -typedef void (APIENTRYP PFNGLCLEARSTENCILPROC)(GLint s); -GLAPI PFNGLCLEARSTENCILPROC glad_glClearStencil; -#define glClearStencil glad_glClearStencil -typedef void (APIENTRYP PFNGLCLEARDEPTHPROC)(GLdouble depth); -GLAPI PFNGLCLEARDEPTHPROC glad_glClearDepth; -#define glClearDepth glad_glClearDepth -typedef void (APIENTRYP PFNGLSTENCILMASKPROC)(GLuint mask); -GLAPI PFNGLSTENCILMASKPROC glad_glStencilMask; -#define glStencilMask glad_glStencilMask -typedef void (APIENTRYP PFNGLCOLORMASKPROC)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -GLAPI PFNGLCOLORMASKPROC glad_glColorMask; -#define glColorMask glad_glColorMask -typedef void (APIENTRYP PFNGLDEPTHMASKPROC)(GLboolean flag); -GLAPI PFNGLDEPTHMASKPROC glad_glDepthMask; -#define glDepthMask glad_glDepthMask -typedef void (APIENTRYP PFNGLDISABLEPROC)(GLenum cap); -GLAPI PFNGLDISABLEPROC glad_glDisable; -#define glDisable glad_glDisable -typedef void (APIENTRYP PFNGLENABLEPROC)(GLenum cap); -GLAPI PFNGLENABLEPROC glad_glEnable; -#define glEnable glad_glEnable -typedef void (APIENTRYP PFNGLFINISHPROC)(); -GLAPI PFNGLFINISHPROC glad_glFinish; -#define glFinish glad_glFinish -typedef void (APIENTRYP PFNGLFLUSHPROC)(); -GLAPI PFNGLFLUSHPROC glad_glFlush; -#define glFlush glad_glFlush -typedef void (APIENTRYP PFNGLBLENDFUNCPROC)(GLenum sfactor, GLenum dfactor); -GLAPI PFNGLBLENDFUNCPROC glad_glBlendFunc; -#define glBlendFunc glad_glBlendFunc -typedef void (APIENTRYP PFNGLLOGICOPPROC)(GLenum opcode); -GLAPI PFNGLLOGICOPPROC glad_glLogicOp; -#define glLogicOp glad_glLogicOp -typedef void (APIENTRYP PFNGLSTENCILFUNCPROC)(GLenum func, GLint ref, GLuint mask); -GLAPI PFNGLSTENCILFUNCPROC glad_glStencilFunc; -#define glStencilFunc glad_glStencilFunc -typedef void (APIENTRYP PFNGLSTENCILOPPROC)(GLenum fail, GLenum zfail, GLenum zpass); -GLAPI PFNGLSTENCILOPPROC glad_glStencilOp; -#define glStencilOp glad_glStencilOp -typedef void (APIENTRYP PFNGLDEPTHFUNCPROC)(GLenum func); -GLAPI PFNGLDEPTHFUNCPROC glad_glDepthFunc; -#define glDepthFunc glad_glDepthFunc -typedef void (APIENTRYP PFNGLPIXELSTOREFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPIXELSTOREFPROC glad_glPixelStoref; -#define glPixelStoref glad_glPixelStoref -typedef void (APIENTRYP PFNGLPIXELSTOREIPROC)(GLenum pname, GLint param); -GLAPI PFNGLPIXELSTOREIPROC glad_glPixelStorei; -#define glPixelStorei glad_glPixelStorei -typedef void (APIENTRYP PFNGLREADBUFFERPROC)(GLenum src); -GLAPI PFNGLREADBUFFERPROC glad_glReadBuffer; -#define glReadBuffer glad_glReadBuffer -typedef void (APIENTRYP PFNGLREADPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels); -GLAPI PFNGLREADPIXELSPROC glad_glReadPixels; -#define glReadPixels glad_glReadPixels -typedef void (APIENTRYP PFNGLGETBOOLEANVPROC)(GLenum pname, GLboolean* data); -GLAPI PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -#define glGetBooleanv glad_glGetBooleanv -typedef void (APIENTRYP PFNGLGETDOUBLEVPROC)(GLenum pname, GLdouble* data); -GLAPI PFNGLGETDOUBLEVPROC glad_glGetDoublev; -#define glGetDoublev glad_glGetDoublev -typedef GLenum (APIENTRYP PFNGLGETERRORPROC)(); -GLAPI PFNGLGETERRORPROC glad_glGetError; -#define glGetError glad_glGetError -typedef void (APIENTRYP PFNGLGETFLOATVPROC)(GLenum pname, GLfloat* data); -GLAPI PFNGLGETFLOATVPROC glad_glGetFloatv; -#define glGetFloatv glad_glGetFloatv -typedef void (APIENTRYP PFNGLGETINTEGERVPROC)(GLenum pname, GLint* data); -GLAPI PFNGLGETINTEGERVPROC glad_glGetIntegerv; -#define glGetIntegerv glad_glGetIntegerv -typedef const GLubyte* (APIENTRYP PFNGLGETSTRINGPROC)(GLenum name); -GLAPI PFNGLGETSTRINGPROC glad_glGetString; -#define glGetString glad_glGetString -typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC)(GLenum target, GLint level, GLenum format, GLenum type, void* pixels); -GLAPI PFNGLGETTEXIMAGEPROC glad_glGetTexImage; -#define glGetTexImage glad_glGetTexImage -typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC)(GLenum target, GLenum pname, GLfloat* params); -GLAPI PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -#define glGetTexParameterfv glad_glGetTexParameterfv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC)(GLenum target, GLenum pname, GLint* params); -GLAPI PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -#define glGetTexParameteriv glad_glGetTexParameteriv -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC)(GLenum target, GLint level, GLenum pname, GLfloat* params); -GLAPI PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; -#define glGetTexLevelParameterfv glad_glGetTexLevelParameterfv -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC)(GLenum target, GLint level, GLenum pname, GLint* params); -GLAPI PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -#define glGetTexLevelParameteriv glad_glGetTexLevelParameteriv -typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC)(GLenum cap); -GLAPI PFNGLISENABLEDPROC glad_glIsEnabled; -#define glIsEnabled glad_glIsEnabled -typedef void (APIENTRYP PFNGLDEPTHRANGEPROC)(GLdouble near, GLdouble far); -GLAPI PFNGLDEPTHRANGEPROC glad_glDepthRange; -#define glDepthRange glad_glDepthRange -typedef void (APIENTRYP PFNGLVIEWPORTPROC)(GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLVIEWPORTPROC glad_glViewport; -#define glViewport glad_glViewport -typedef void (APIENTRYP PFNGLNEWLISTPROC)(GLuint list, GLenum mode); -GLAPI PFNGLNEWLISTPROC glad_glNewList; -#define glNewList glad_glNewList -typedef void (APIENTRYP PFNGLENDLISTPROC)(); -GLAPI PFNGLENDLISTPROC glad_glEndList; -#define glEndList glad_glEndList -typedef void (APIENTRYP PFNGLCALLLISTPROC)(GLuint list); -GLAPI PFNGLCALLLISTPROC glad_glCallList; -#define glCallList glad_glCallList -typedef void (APIENTRYP PFNGLCALLLISTSPROC)(GLsizei n, GLenum type, const void* lists); -GLAPI PFNGLCALLLISTSPROC glad_glCallLists; -#define glCallLists glad_glCallLists -typedef void (APIENTRYP PFNGLDELETELISTSPROC)(GLuint list, GLsizei range); -GLAPI PFNGLDELETELISTSPROC glad_glDeleteLists; -#define glDeleteLists glad_glDeleteLists -typedef GLuint (APIENTRYP PFNGLGENLISTSPROC)(GLsizei range); -GLAPI PFNGLGENLISTSPROC glad_glGenLists; -#define glGenLists glad_glGenLists -typedef void (APIENTRYP PFNGLLISTBASEPROC)(GLuint base); -GLAPI PFNGLLISTBASEPROC glad_glListBase; -#define glListBase glad_glListBase -typedef void (APIENTRYP PFNGLBEGINPROC)(GLenum mode); -GLAPI PFNGLBEGINPROC glad_glBegin; -#define glBegin glad_glBegin -typedef void (APIENTRYP PFNGLBITMAPPROC)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte* bitmap); -GLAPI PFNGLBITMAPPROC glad_glBitmap; -#define glBitmap glad_glBitmap -typedef void (APIENTRYP PFNGLCOLOR3BPROC)(GLbyte red, GLbyte green, GLbyte blue); -GLAPI PFNGLCOLOR3BPROC glad_glColor3b; -#define glColor3b glad_glColor3b -typedef void (APIENTRYP PFNGLCOLOR3BVPROC)(const GLbyte* v); -GLAPI PFNGLCOLOR3BVPROC glad_glColor3bv; -#define glColor3bv glad_glColor3bv -typedef void (APIENTRYP PFNGLCOLOR3DPROC)(GLdouble red, GLdouble green, GLdouble blue); -GLAPI PFNGLCOLOR3DPROC glad_glColor3d; -#define glColor3d glad_glColor3d -typedef void (APIENTRYP PFNGLCOLOR3DVPROC)(const GLdouble* v); -GLAPI PFNGLCOLOR3DVPROC glad_glColor3dv; -#define glColor3dv glad_glColor3dv -typedef void (APIENTRYP PFNGLCOLOR3FPROC)(GLfloat red, GLfloat green, GLfloat blue); -GLAPI PFNGLCOLOR3FPROC glad_glColor3f; -#define glColor3f glad_glColor3f -typedef void (APIENTRYP PFNGLCOLOR3FVPROC)(const GLfloat* v); -GLAPI PFNGLCOLOR3FVPROC glad_glColor3fv; -#define glColor3fv glad_glColor3fv -typedef void (APIENTRYP PFNGLCOLOR3IPROC)(GLint red, GLint green, GLint blue); -GLAPI PFNGLCOLOR3IPROC glad_glColor3i; -#define glColor3i glad_glColor3i -typedef void (APIENTRYP PFNGLCOLOR3IVPROC)(const GLint* v); -GLAPI PFNGLCOLOR3IVPROC glad_glColor3iv; -#define glColor3iv glad_glColor3iv -typedef void (APIENTRYP PFNGLCOLOR3SPROC)(GLshort red, GLshort green, GLshort blue); -GLAPI PFNGLCOLOR3SPROC glad_glColor3s; -#define glColor3s glad_glColor3s -typedef void (APIENTRYP PFNGLCOLOR3SVPROC)(const GLshort* v); -GLAPI PFNGLCOLOR3SVPROC glad_glColor3sv; -#define glColor3sv glad_glColor3sv -typedef void (APIENTRYP PFNGLCOLOR3UBPROC)(GLubyte red, GLubyte green, GLubyte blue); -GLAPI PFNGLCOLOR3UBPROC glad_glColor3ub; -#define glColor3ub glad_glColor3ub -typedef void (APIENTRYP PFNGLCOLOR3UBVPROC)(const GLubyte* v); -GLAPI PFNGLCOLOR3UBVPROC glad_glColor3ubv; -#define glColor3ubv glad_glColor3ubv -typedef void (APIENTRYP PFNGLCOLOR3UIPROC)(GLuint red, GLuint green, GLuint blue); -GLAPI PFNGLCOLOR3UIPROC glad_glColor3ui; -#define glColor3ui glad_glColor3ui -typedef void (APIENTRYP PFNGLCOLOR3UIVPROC)(const GLuint* v); -GLAPI PFNGLCOLOR3UIVPROC glad_glColor3uiv; -#define glColor3uiv glad_glColor3uiv -typedef void (APIENTRYP PFNGLCOLOR3USPROC)(GLushort red, GLushort green, GLushort blue); -GLAPI PFNGLCOLOR3USPROC glad_glColor3us; -#define glColor3us glad_glColor3us -typedef void (APIENTRYP PFNGLCOLOR3USVPROC)(const GLushort* v); -GLAPI PFNGLCOLOR3USVPROC glad_glColor3usv; -#define glColor3usv glad_glColor3usv -typedef void (APIENTRYP PFNGLCOLOR4BPROC)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); -GLAPI PFNGLCOLOR4BPROC glad_glColor4b; -#define glColor4b glad_glColor4b -typedef void (APIENTRYP PFNGLCOLOR4BVPROC)(const GLbyte* v); -GLAPI PFNGLCOLOR4BVPROC glad_glColor4bv; -#define glColor4bv glad_glColor4bv -typedef void (APIENTRYP PFNGLCOLOR4DPROC)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); -GLAPI PFNGLCOLOR4DPROC glad_glColor4d; -#define glColor4d glad_glColor4d -typedef void (APIENTRYP PFNGLCOLOR4DVPROC)(const GLdouble* v); -GLAPI PFNGLCOLOR4DVPROC glad_glColor4dv; -#define glColor4dv glad_glColor4dv -typedef void (APIENTRYP PFNGLCOLOR4FPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLCOLOR4FPROC glad_glColor4f; -#define glColor4f glad_glColor4f -typedef void (APIENTRYP PFNGLCOLOR4FVPROC)(const GLfloat* v); -GLAPI PFNGLCOLOR4FVPROC glad_glColor4fv; -#define glColor4fv glad_glColor4fv -typedef void (APIENTRYP PFNGLCOLOR4IPROC)(GLint red, GLint green, GLint blue, GLint alpha); -GLAPI PFNGLCOLOR4IPROC glad_glColor4i; -#define glColor4i glad_glColor4i -typedef void (APIENTRYP PFNGLCOLOR4IVPROC)(const GLint* v); -GLAPI PFNGLCOLOR4IVPROC glad_glColor4iv; -#define glColor4iv glad_glColor4iv -typedef void (APIENTRYP PFNGLCOLOR4SPROC)(GLshort red, GLshort green, GLshort blue, GLshort alpha); -GLAPI PFNGLCOLOR4SPROC glad_glColor4s; -#define glColor4s glad_glColor4s -typedef void (APIENTRYP PFNGLCOLOR4SVPROC)(const GLshort* v); -GLAPI PFNGLCOLOR4SVPROC glad_glColor4sv; -#define glColor4sv glad_glColor4sv -typedef void (APIENTRYP PFNGLCOLOR4UBPROC)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); -GLAPI PFNGLCOLOR4UBPROC glad_glColor4ub; -#define glColor4ub glad_glColor4ub -typedef void (APIENTRYP PFNGLCOLOR4UBVPROC)(const GLubyte* v); -GLAPI PFNGLCOLOR4UBVPROC glad_glColor4ubv; -#define glColor4ubv glad_glColor4ubv -typedef void (APIENTRYP PFNGLCOLOR4UIPROC)(GLuint red, GLuint green, GLuint blue, GLuint alpha); -GLAPI PFNGLCOLOR4UIPROC glad_glColor4ui; -#define glColor4ui glad_glColor4ui -typedef void (APIENTRYP PFNGLCOLOR4UIVPROC)(const GLuint* v); -GLAPI PFNGLCOLOR4UIVPROC glad_glColor4uiv; -#define glColor4uiv glad_glColor4uiv -typedef void (APIENTRYP PFNGLCOLOR4USPROC)(GLushort red, GLushort green, GLushort blue, GLushort alpha); -GLAPI PFNGLCOLOR4USPROC glad_glColor4us; -#define glColor4us glad_glColor4us -typedef void (APIENTRYP PFNGLCOLOR4USVPROC)(const GLushort* v); -GLAPI PFNGLCOLOR4USVPROC glad_glColor4usv; -#define glColor4usv glad_glColor4usv -typedef void (APIENTRYP PFNGLEDGEFLAGPROC)(GLboolean flag); -GLAPI PFNGLEDGEFLAGPROC glad_glEdgeFlag; -#define glEdgeFlag glad_glEdgeFlag -typedef void (APIENTRYP PFNGLEDGEFLAGVPROC)(const GLboolean* flag); -GLAPI PFNGLEDGEFLAGVPROC glad_glEdgeFlagv; -#define glEdgeFlagv glad_glEdgeFlagv -typedef void (APIENTRYP PFNGLENDPROC)(); -GLAPI PFNGLENDPROC glad_glEnd; -#define glEnd glad_glEnd -typedef void (APIENTRYP PFNGLINDEXDPROC)(GLdouble c); -GLAPI PFNGLINDEXDPROC glad_glIndexd; -#define glIndexd glad_glIndexd -typedef void (APIENTRYP PFNGLINDEXDVPROC)(const GLdouble* c); -GLAPI PFNGLINDEXDVPROC glad_glIndexdv; -#define glIndexdv glad_glIndexdv -typedef void (APIENTRYP PFNGLINDEXFPROC)(GLfloat c); -GLAPI PFNGLINDEXFPROC glad_glIndexf; -#define glIndexf glad_glIndexf -typedef void (APIENTRYP PFNGLINDEXFVPROC)(const GLfloat* c); -GLAPI PFNGLINDEXFVPROC glad_glIndexfv; -#define glIndexfv glad_glIndexfv -typedef void (APIENTRYP PFNGLINDEXIPROC)(GLint c); -GLAPI PFNGLINDEXIPROC glad_glIndexi; -#define glIndexi glad_glIndexi -typedef void (APIENTRYP PFNGLINDEXIVPROC)(const GLint* c); -GLAPI PFNGLINDEXIVPROC glad_glIndexiv; -#define glIndexiv glad_glIndexiv -typedef void (APIENTRYP PFNGLINDEXSPROC)(GLshort c); -GLAPI PFNGLINDEXSPROC glad_glIndexs; -#define glIndexs glad_glIndexs -typedef void (APIENTRYP PFNGLINDEXSVPROC)(const GLshort* c); -GLAPI PFNGLINDEXSVPROC glad_glIndexsv; -#define glIndexsv glad_glIndexsv -typedef void (APIENTRYP PFNGLNORMAL3BPROC)(GLbyte nx, GLbyte ny, GLbyte nz); -GLAPI PFNGLNORMAL3BPROC glad_glNormal3b; -#define glNormal3b glad_glNormal3b -typedef void (APIENTRYP PFNGLNORMAL3BVPROC)(const GLbyte* v); -GLAPI PFNGLNORMAL3BVPROC glad_glNormal3bv; -#define glNormal3bv glad_glNormal3bv -typedef void (APIENTRYP PFNGLNORMAL3DPROC)(GLdouble nx, GLdouble ny, GLdouble nz); -GLAPI PFNGLNORMAL3DPROC glad_glNormal3d; -#define glNormal3d glad_glNormal3d -typedef void (APIENTRYP PFNGLNORMAL3DVPROC)(const GLdouble* v); -GLAPI PFNGLNORMAL3DVPROC glad_glNormal3dv; -#define glNormal3dv glad_glNormal3dv -typedef void (APIENTRYP PFNGLNORMAL3FPROC)(GLfloat nx, GLfloat ny, GLfloat nz); -GLAPI PFNGLNORMAL3FPROC glad_glNormal3f; -#define glNormal3f glad_glNormal3f -typedef void (APIENTRYP PFNGLNORMAL3FVPROC)(const GLfloat* v); -GLAPI PFNGLNORMAL3FVPROC glad_glNormal3fv; -#define glNormal3fv glad_glNormal3fv -typedef void (APIENTRYP PFNGLNORMAL3IPROC)(GLint nx, GLint ny, GLint nz); -GLAPI PFNGLNORMAL3IPROC glad_glNormal3i; -#define glNormal3i glad_glNormal3i -typedef void (APIENTRYP PFNGLNORMAL3IVPROC)(const GLint* v); -GLAPI PFNGLNORMAL3IVPROC glad_glNormal3iv; -#define glNormal3iv glad_glNormal3iv -typedef void (APIENTRYP PFNGLNORMAL3SPROC)(GLshort nx, GLshort ny, GLshort nz); -GLAPI PFNGLNORMAL3SPROC glad_glNormal3s; -#define glNormal3s glad_glNormal3s -typedef void (APIENTRYP PFNGLNORMAL3SVPROC)(const GLshort* v); -GLAPI PFNGLNORMAL3SVPROC glad_glNormal3sv; -#define glNormal3sv glad_glNormal3sv -typedef void (APIENTRYP PFNGLRASTERPOS2DPROC)(GLdouble x, GLdouble y); -GLAPI PFNGLRASTERPOS2DPROC glad_glRasterPos2d; -#define glRasterPos2d glad_glRasterPos2d -typedef void (APIENTRYP PFNGLRASTERPOS2DVPROC)(const GLdouble* v); -GLAPI PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv; -#define glRasterPos2dv glad_glRasterPos2dv -typedef void (APIENTRYP PFNGLRASTERPOS2FPROC)(GLfloat x, GLfloat y); -GLAPI PFNGLRASTERPOS2FPROC glad_glRasterPos2f; -#define glRasterPos2f glad_glRasterPos2f -typedef void (APIENTRYP PFNGLRASTERPOS2FVPROC)(const GLfloat* v); -GLAPI PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv; -#define glRasterPos2fv glad_glRasterPos2fv -typedef void (APIENTRYP PFNGLRASTERPOS2IPROC)(GLint x, GLint y); -GLAPI PFNGLRASTERPOS2IPROC glad_glRasterPos2i; -#define glRasterPos2i glad_glRasterPos2i -typedef void (APIENTRYP PFNGLRASTERPOS2IVPROC)(const GLint* v); -GLAPI PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv; -#define glRasterPos2iv glad_glRasterPos2iv -typedef void (APIENTRYP PFNGLRASTERPOS2SPROC)(GLshort x, GLshort y); -GLAPI PFNGLRASTERPOS2SPROC glad_glRasterPos2s; -#define glRasterPos2s glad_glRasterPos2s -typedef void (APIENTRYP PFNGLRASTERPOS2SVPROC)(const GLshort* v); -GLAPI PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv; -#define glRasterPos2sv glad_glRasterPos2sv -typedef void (APIENTRYP PFNGLRASTERPOS3DPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLRASTERPOS3DPROC glad_glRasterPos3d; -#define glRasterPos3d glad_glRasterPos3d -typedef void (APIENTRYP PFNGLRASTERPOS3DVPROC)(const GLdouble* v); -GLAPI PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv; -#define glRasterPos3dv glad_glRasterPos3dv -typedef void (APIENTRYP PFNGLRASTERPOS3FPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLRASTERPOS3FPROC glad_glRasterPos3f; -#define glRasterPos3f glad_glRasterPos3f -typedef void (APIENTRYP PFNGLRASTERPOS3FVPROC)(const GLfloat* v); -GLAPI PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv; -#define glRasterPos3fv glad_glRasterPos3fv -typedef void (APIENTRYP PFNGLRASTERPOS3IPROC)(GLint x, GLint y, GLint z); -GLAPI PFNGLRASTERPOS3IPROC glad_glRasterPos3i; -#define glRasterPos3i glad_glRasterPos3i -typedef void (APIENTRYP PFNGLRASTERPOS3IVPROC)(const GLint* v); -GLAPI PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv; -#define glRasterPos3iv glad_glRasterPos3iv -typedef void (APIENTRYP PFNGLRASTERPOS3SPROC)(GLshort x, GLshort y, GLshort z); -GLAPI PFNGLRASTERPOS3SPROC glad_glRasterPos3s; -#define glRasterPos3s glad_glRasterPos3s -typedef void (APIENTRYP PFNGLRASTERPOS3SVPROC)(const GLshort* v); -GLAPI PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv; -#define glRasterPos3sv glad_glRasterPos3sv -typedef void (APIENTRYP PFNGLRASTERPOS4DPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLRASTERPOS4DPROC glad_glRasterPos4d; -#define glRasterPos4d glad_glRasterPos4d -typedef void (APIENTRYP PFNGLRASTERPOS4DVPROC)(const GLdouble* v); -GLAPI PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv; -#define glRasterPos4dv glad_glRasterPos4dv -typedef void (APIENTRYP PFNGLRASTERPOS4FPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLRASTERPOS4FPROC glad_glRasterPos4f; -#define glRasterPos4f glad_glRasterPos4f -typedef void (APIENTRYP PFNGLRASTERPOS4FVPROC)(const GLfloat* v); -GLAPI PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv; -#define glRasterPos4fv glad_glRasterPos4fv -typedef void (APIENTRYP PFNGLRASTERPOS4IPROC)(GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLRASTERPOS4IPROC glad_glRasterPos4i; -#define glRasterPos4i glad_glRasterPos4i -typedef void (APIENTRYP PFNGLRASTERPOS4IVPROC)(const GLint* v); -GLAPI PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv; -#define glRasterPos4iv glad_glRasterPos4iv -typedef void (APIENTRYP PFNGLRASTERPOS4SPROC)(GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLRASTERPOS4SPROC glad_glRasterPos4s; -#define glRasterPos4s glad_glRasterPos4s -typedef void (APIENTRYP PFNGLRASTERPOS4SVPROC)(const GLshort* v); -GLAPI PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv; -#define glRasterPos4sv glad_glRasterPos4sv -typedef void (APIENTRYP PFNGLRECTDPROC)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); -GLAPI PFNGLRECTDPROC glad_glRectd; -#define glRectd glad_glRectd -typedef void (APIENTRYP PFNGLRECTDVPROC)(const GLdouble* v1, const GLdouble* v2); -GLAPI PFNGLRECTDVPROC glad_glRectdv; -#define glRectdv glad_glRectdv -typedef void (APIENTRYP PFNGLRECTFPROC)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); -GLAPI PFNGLRECTFPROC glad_glRectf; -#define glRectf glad_glRectf -typedef void (APIENTRYP PFNGLRECTFVPROC)(const GLfloat* v1, const GLfloat* v2); -GLAPI PFNGLRECTFVPROC glad_glRectfv; -#define glRectfv glad_glRectfv -typedef void (APIENTRYP PFNGLRECTIPROC)(GLint x1, GLint y1, GLint x2, GLint y2); -GLAPI PFNGLRECTIPROC glad_glRecti; -#define glRecti glad_glRecti -typedef void (APIENTRYP PFNGLRECTIVPROC)(const GLint* v1, const GLint* v2); -GLAPI PFNGLRECTIVPROC glad_glRectiv; -#define glRectiv glad_glRectiv -typedef void (APIENTRYP PFNGLRECTSPROC)(GLshort x1, GLshort y1, GLshort x2, GLshort y2); -GLAPI PFNGLRECTSPROC glad_glRects; -#define glRects glad_glRects -typedef void (APIENTRYP PFNGLRECTSVPROC)(const GLshort* v1, const GLshort* v2); -GLAPI PFNGLRECTSVPROC glad_glRectsv; -#define glRectsv glad_glRectsv -typedef void (APIENTRYP PFNGLTEXCOORD1DPROC)(GLdouble s); -GLAPI PFNGLTEXCOORD1DPROC glad_glTexCoord1d; -#define glTexCoord1d glad_glTexCoord1d -typedef void (APIENTRYP PFNGLTEXCOORD1DVPROC)(const GLdouble* v); -GLAPI PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv; -#define glTexCoord1dv glad_glTexCoord1dv -typedef void (APIENTRYP PFNGLTEXCOORD1FPROC)(GLfloat s); -GLAPI PFNGLTEXCOORD1FPROC glad_glTexCoord1f; -#define glTexCoord1f glad_glTexCoord1f -typedef void (APIENTRYP PFNGLTEXCOORD1FVPROC)(const GLfloat* v); -GLAPI PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv; -#define glTexCoord1fv glad_glTexCoord1fv -typedef void (APIENTRYP PFNGLTEXCOORD1IPROC)(GLint s); -GLAPI PFNGLTEXCOORD1IPROC glad_glTexCoord1i; -#define glTexCoord1i glad_glTexCoord1i -typedef void (APIENTRYP PFNGLTEXCOORD1IVPROC)(const GLint* v); -GLAPI PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv; -#define glTexCoord1iv glad_glTexCoord1iv -typedef void (APIENTRYP PFNGLTEXCOORD1SPROC)(GLshort s); -GLAPI PFNGLTEXCOORD1SPROC glad_glTexCoord1s; -#define glTexCoord1s glad_glTexCoord1s -typedef void (APIENTRYP PFNGLTEXCOORD1SVPROC)(const GLshort* v); -GLAPI PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv; -#define glTexCoord1sv glad_glTexCoord1sv -typedef void (APIENTRYP PFNGLTEXCOORD2DPROC)(GLdouble s, GLdouble t); -GLAPI PFNGLTEXCOORD2DPROC glad_glTexCoord2d; -#define glTexCoord2d glad_glTexCoord2d -typedef void (APIENTRYP PFNGLTEXCOORD2DVPROC)(const GLdouble* v); -GLAPI PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv; -#define glTexCoord2dv glad_glTexCoord2dv -typedef void (APIENTRYP PFNGLTEXCOORD2FPROC)(GLfloat s, GLfloat t); -GLAPI PFNGLTEXCOORD2FPROC glad_glTexCoord2f; -#define glTexCoord2f glad_glTexCoord2f -typedef void (APIENTRYP PFNGLTEXCOORD2FVPROC)(const GLfloat* v); -GLAPI PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv; -#define glTexCoord2fv glad_glTexCoord2fv -typedef void (APIENTRYP PFNGLTEXCOORD2IPROC)(GLint s, GLint t); -GLAPI PFNGLTEXCOORD2IPROC glad_glTexCoord2i; -#define glTexCoord2i glad_glTexCoord2i -typedef void (APIENTRYP PFNGLTEXCOORD2IVPROC)(const GLint* v); -GLAPI PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv; -#define glTexCoord2iv glad_glTexCoord2iv -typedef void (APIENTRYP PFNGLTEXCOORD2SPROC)(GLshort s, GLshort t); -GLAPI PFNGLTEXCOORD2SPROC glad_glTexCoord2s; -#define glTexCoord2s glad_glTexCoord2s -typedef void (APIENTRYP PFNGLTEXCOORD2SVPROC)(const GLshort* v); -GLAPI PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv; -#define glTexCoord2sv glad_glTexCoord2sv -typedef void (APIENTRYP PFNGLTEXCOORD3DPROC)(GLdouble s, GLdouble t, GLdouble r); -GLAPI PFNGLTEXCOORD3DPROC glad_glTexCoord3d; -#define glTexCoord3d glad_glTexCoord3d -typedef void (APIENTRYP PFNGLTEXCOORD3DVPROC)(const GLdouble* v); -GLAPI PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv; -#define glTexCoord3dv glad_glTexCoord3dv -typedef void (APIENTRYP PFNGLTEXCOORD3FPROC)(GLfloat s, GLfloat t, GLfloat r); -GLAPI PFNGLTEXCOORD3FPROC glad_glTexCoord3f; -#define glTexCoord3f glad_glTexCoord3f -typedef void (APIENTRYP PFNGLTEXCOORD3FVPROC)(const GLfloat* v); -GLAPI PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv; -#define glTexCoord3fv glad_glTexCoord3fv -typedef void (APIENTRYP PFNGLTEXCOORD3IPROC)(GLint s, GLint t, GLint r); -GLAPI PFNGLTEXCOORD3IPROC glad_glTexCoord3i; -#define glTexCoord3i glad_glTexCoord3i -typedef void (APIENTRYP PFNGLTEXCOORD3IVPROC)(const GLint* v); -GLAPI PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv; -#define glTexCoord3iv glad_glTexCoord3iv -typedef void (APIENTRYP PFNGLTEXCOORD3SPROC)(GLshort s, GLshort t, GLshort r); -GLAPI PFNGLTEXCOORD3SPROC glad_glTexCoord3s; -#define glTexCoord3s glad_glTexCoord3s -typedef void (APIENTRYP PFNGLTEXCOORD3SVPROC)(const GLshort* v); -GLAPI PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv; -#define glTexCoord3sv glad_glTexCoord3sv -typedef void (APIENTRYP PFNGLTEXCOORD4DPROC)(GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI PFNGLTEXCOORD4DPROC glad_glTexCoord4d; -#define glTexCoord4d glad_glTexCoord4d -typedef void (APIENTRYP PFNGLTEXCOORD4DVPROC)(const GLdouble* v); -GLAPI PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv; -#define glTexCoord4dv glad_glTexCoord4dv -typedef void (APIENTRYP PFNGLTEXCOORD4FPROC)(GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI PFNGLTEXCOORD4FPROC glad_glTexCoord4f; -#define glTexCoord4f glad_glTexCoord4f -typedef void (APIENTRYP PFNGLTEXCOORD4FVPROC)(const GLfloat* v); -GLAPI PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv; -#define glTexCoord4fv glad_glTexCoord4fv -typedef void (APIENTRYP PFNGLTEXCOORD4IPROC)(GLint s, GLint t, GLint r, GLint q); -GLAPI PFNGLTEXCOORD4IPROC glad_glTexCoord4i; -#define glTexCoord4i glad_glTexCoord4i -typedef void (APIENTRYP PFNGLTEXCOORD4IVPROC)(const GLint* v); -GLAPI PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv; -#define glTexCoord4iv glad_glTexCoord4iv -typedef void (APIENTRYP PFNGLTEXCOORD4SPROC)(GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI PFNGLTEXCOORD4SPROC glad_glTexCoord4s; -#define glTexCoord4s glad_glTexCoord4s -typedef void (APIENTRYP PFNGLTEXCOORD4SVPROC)(const GLshort* v); -GLAPI PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv; -#define glTexCoord4sv glad_glTexCoord4sv -typedef void (APIENTRYP PFNGLVERTEX2DPROC)(GLdouble x, GLdouble y); -GLAPI PFNGLVERTEX2DPROC glad_glVertex2d; -#define glVertex2d glad_glVertex2d -typedef void (APIENTRYP PFNGLVERTEX2DVPROC)(const GLdouble* v); -GLAPI PFNGLVERTEX2DVPROC glad_glVertex2dv; -#define glVertex2dv glad_glVertex2dv -typedef void (APIENTRYP PFNGLVERTEX2FPROC)(GLfloat x, GLfloat y); -GLAPI PFNGLVERTEX2FPROC glad_glVertex2f; -#define glVertex2f glad_glVertex2f -typedef void (APIENTRYP PFNGLVERTEX2FVPROC)(const GLfloat* v); -GLAPI PFNGLVERTEX2FVPROC glad_glVertex2fv; -#define glVertex2fv glad_glVertex2fv -typedef void (APIENTRYP PFNGLVERTEX2IPROC)(GLint x, GLint y); -GLAPI PFNGLVERTEX2IPROC glad_glVertex2i; -#define glVertex2i glad_glVertex2i -typedef void (APIENTRYP PFNGLVERTEX2IVPROC)(const GLint* v); -GLAPI PFNGLVERTEX2IVPROC glad_glVertex2iv; -#define glVertex2iv glad_glVertex2iv -typedef void (APIENTRYP PFNGLVERTEX2SPROC)(GLshort x, GLshort y); -GLAPI PFNGLVERTEX2SPROC glad_glVertex2s; -#define glVertex2s glad_glVertex2s -typedef void (APIENTRYP PFNGLVERTEX2SVPROC)(const GLshort* v); -GLAPI PFNGLVERTEX2SVPROC glad_glVertex2sv; -#define glVertex2sv glad_glVertex2sv -typedef void (APIENTRYP PFNGLVERTEX3DPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEX3DPROC glad_glVertex3d; -#define glVertex3d glad_glVertex3d -typedef void (APIENTRYP PFNGLVERTEX3DVPROC)(const GLdouble* v); -GLAPI PFNGLVERTEX3DVPROC glad_glVertex3dv; -#define glVertex3dv glad_glVertex3dv -typedef void (APIENTRYP PFNGLVERTEX3FPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLVERTEX3FPROC glad_glVertex3f; -#define glVertex3f glad_glVertex3f -typedef void (APIENTRYP PFNGLVERTEX3FVPROC)(const GLfloat* v); -GLAPI PFNGLVERTEX3FVPROC glad_glVertex3fv; -#define glVertex3fv glad_glVertex3fv -typedef void (APIENTRYP PFNGLVERTEX3IPROC)(GLint x, GLint y, GLint z); -GLAPI PFNGLVERTEX3IPROC glad_glVertex3i; -#define glVertex3i glad_glVertex3i -typedef void (APIENTRYP PFNGLVERTEX3IVPROC)(const GLint* v); -GLAPI PFNGLVERTEX3IVPROC glad_glVertex3iv; -#define glVertex3iv glad_glVertex3iv -typedef void (APIENTRYP PFNGLVERTEX3SPROC)(GLshort x, GLshort y, GLshort z); -GLAPI PFNGLVERTEX3SPROC glad_glVertex3s; -#define glVertex3s glad_glVertex3s -typedef void (APIENTRYP PFNGLVERTEX3SVPROC)(const GLshort* v); -GLAPI PFNGLVERTEX3SVPROC glad_glVertex3sv; -#define glVertex3sv glad_glVertex3sv -typedef void (APIENTRYP PFNGLVERTEX4DPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEX4DPROC glad_glVertex4d; -#define glVertex4d glad_glVertex4d -typedef void (APIENTRYP PFNGLVERTEX4DVPROC)(const GLdouble* v); -GLAPI PFNGLVERTEX4DVPROC glad_glVertex4dv; -#define glVertex4dv glad_glVertex4dv -typedef void (APIENTRYP PFNGLVERTEX4FPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLVERTEX4FPROC glad_glVertex4f; -#define glVertex4f glad_glVertex4f -typedef void (APIENTRYP PFNGLVERTEX4FVPROC)(const GLfloat* v); -GLAPI PFNGLVERTEX4FVPROC glad_glVertex4fv; -#define glVertex4fv glad_glVertex4fv -typedef void (APIENTRYP PFNGLVERTEX4IPROC)(GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLVERTEX4IPROC glad_glVertex4i; -#define glVertex4i glad_glVertex4i -typedef void (APIENTRYP PFNGLVERTEX4IVPROC)(const GLint* v); -GLAPI PFNGLVERTEX4IVPROC glad_glVertex4iv; -#define glVertex4iv glad_glVertex4iv -typedef void (APIENTRYP PFNGLVERTEX4SPROC)(GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLVERTEX4SPROC glad_glVertex4s; -#define glVertex4s glad_glVertex4s -typedef void (APIENTRYP PFNGLVERTEX4SVPROC)(const GLshort* v); -GLAPI PFNGLVERTEX4SVPROC glad_glVertex4sv; -#define glVertex4sv glad_glVertex4sv -typedef void (APIENTRYP PFNGLCLIPPLANEPROC)(GLenum plane, const GLdouble* equation); -GLAPI PFNGLCLIPPLANEPROC glad_glClipPlane; -#define glClipPlane glad_glClipPlane -typedef void (APIENTRYP PFNGLCOLORMATERIALPROC)(GLenum face, GLenum mode); -GLAPI PFNGLCOLORMATERIALPROC glad_glColorMaterial; -#define glColorMaterial glad_glColorMaterial -typedef void (APIENTRYP PFNGLFOGFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLFOGFPROC glad_glFogf; -#define glFogf glad_glFogf -typedef void (APIENTRYP PFNGLFOGFVPROC)(GLenum pname, const GLfloat* params); -GLAPI PFNGLFOGFVPROC glad_glFogfv; -#define glFogfv glad_glFogfv -typedef void (APIENTRYP PFNGLFOGIPROC)(GLenum pname, GLint param); -GLAPI PFNGLFOGIPROC glad_glFogi; -#define glFogi glad_glFogi -typedef void (APIENTRYP PFNGLFOGIVPROC)(GLenum pname, const GLint* params); -GLAPI PFNGLFOGIVPROC glad_glFogiv; -#define glFogiv glad_glFogiv -typedef void (APIENTRYP PFNGLLIGHTFPROC)(GLenum light, GLenum pname, GLfloat param); -GLAPI PFNGLLIGHTFPROC glad_glLightf; -#define glLightf glad_glLightf -typedef void (APIENTRYP PFNGLLIGHTFVPROC)(GLenum light, GLenum pname, const GLfloat* params); -GLAPI PFNGLLIGHTFVPROC glad_glLightfv; -#define glLightfv glad_glLightfv -typedef void (APIENTRYP PFNGLLIGHTIPROC)(GLenum light, GLenum pname, GLint param); -GLAPI PFNGLLIGHTIPROC glad_glLighti; -#define glLighti glad_glLighti -typedef void (APIENTRYP PFNGLLIGHTIVPROC)(GLenum light, GLenum pname, const GLint* params); -GLAPI PFNGLLIGHTIVPROC glad_glLightiv; -#define glLightiv glad_glLightiv -typedef void (APIENTRYP PFNGLLIGHTMODELFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLLIGHTMODELFPROC glad_glLightModelf; -#define glLightModelf glad_glLightModelf -typedef void (APIENTRYP PFNGLLIGHTMODELFVPROC)(GLenum pname, const GLfloat* params); -GLAPI PFNGLLIGHTMODELFVPROC glad_glLightModelfv; -#define glLightModelfv glad_glLightModelfv -typedef void (APIENTRYP PFNGLLIGHTMODELIPROC)(GLenum pname, GLint param); -GLAPI PFNGLLIGHTMODELIPROC glad_glLightModeli; -#define glLightModeli glad_glLightModeli -typedef void (APIENTRYP PFNGLLIGHTMODELIVPROC)(GLenum pname, const GLint* params); -GLAPI PFNGLLIGHTMODELIVPROC glad_glLightModeliv; -#define glLightModeliv glad_glLightModeliv -typedef void (APIENTRYP PFNGLLINESTIPPLEPROC)(GLint factor, GLushort pattern); -GLAPI PFNGLLINESTIPPLEPROC glad_glLineStipple; -#define glLineStipple glad_glLineStipple -typedef void (APIENTRYP PFNGLMATERIALFPROC)(GLenum face, GLenum pname, GLfloat param); -GLAPI PFNGLMATERIALFPROC glad_glMaterialf; -#define glMaterialf glad_glMaterialf -typedef void (APIENTRYP PFNGLMATERIALFVPROC)(GLenum face, GLenum pname, const GLfloat* params); -GLAPI PFNGLMATERIALFVPROC glad_glMaterialfv; -#define glMaterialfv glad_glMaterialfv -typedef void (APIENTRYP PFNGLMATERIALIPROC)(GLenum face, GLenum pname, GLint param); -GLAPI PFNGLMATERIALIPROC glad_glMateriali; -#define glMateriali glad_glMateriali -typedef void (APIENTRYP PFNGLMATERIALIVPROC)(GLenum face, GLenum pname, const GLint* params); -GLAPI PFNGLMATERIALIVPROC glad_glMaterialiv; -#define glMaterialiv glad_glMaterialiv -typedef void (APIENTRYP PFNGLPOLYGONSTIPPLEPROC)(const GLubyte* mask); -GLAPI PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple; -#define glPolygonStipple glad_glPolygonStipple -typedef void (APIENTRYP PFNGLSHADEMODELPROC)(GLenum mode); -GLAPI PFNGLSHADEMODELPROC glad_glShadeModel; -#define glShadeModel glad_glShadeModel -typedef void (APIENTRYP PFNGLTEXENVFPROC)(GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLTEXENVFPROC glad_glTexEnvf; -#define glTexEnvf glad_glTexEnvf -typedef void (APIENTRYP PFNGLTEXENVFVPROC)(GLenum target, GLenum pname, const GLfloat* params); -GLAPI PFNGLTEXENVFVPROC glad_glTexEnvfv; -#define glTexEnvfv glad_glTexEnvfv -typedef void (APIENTRYP PFNGLTEXENVIPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLTEXENVIPROC glad_glTexEnvi; -#define glTexEnvi glad_glTexEnvi -typedef void (APIENTRYP PFNGLTEXENVIVPROC)(GLenum target, GLenum pname, const GLint* params); -GLAPI PFNGLTEXENVIVPROC glad_glTexEnviv; -#define glTexEnviv glad_glTexEnviv -typedef void (APIENTRYP PFNGLTEXGENDPROC)(GLenum coord, GLenum pname, GLdouble param); -GLAPI PFNGLTEXGENDPROC glad_glTexGend; -#define glTexGend glad_glTexGend -typedef void (APIENTRYP PFNGLTEXGENDVPROC)(GLenum coord, GLenum pname, const GLdouble* params); -GLAPI PFNGLTEXGENDVPROC glad_glTexGendv; -#define glTexGendv glad_glTexGendv -typedef void (APIENTRYP PFNGLTEXGENFPROC)(GLenum coord, GLenum pname, GLfloat param); -GLAPI PFNGLTEXGENFPROC glad_glTexGenf; -#define glTexGenf glad_glTexGenf -typedef void (APIENTRYP PFNGLTEXGENFVPROC)(GLenum coord, GLenum pname, const GLfloat* params); -GLAPI PFNGLTEXGENFVPROC glad_glTexGenfv; -#define glTexGenfv glad_glTexGenfv -typedef void (APIENTRYP PFNGLTEXGENIPROC)(GLenum coord, GLenum pname, GLint param); -GLAPI PFNGLTEXGENIPROC glad_glTexGeni; -#define glTexGeni glad_glTexGeni -typedef void (APIENTRYP PFNGLTEXGENIVPROC)(GLenum coord, GLenum pname, const GLint* params); -GLAPI PFNGLTEXGENIVPROC glad_glTexGeniv; -#define glTexGeniv glad_glTexGeniv -typedef void (APIENTRYP PFNGLFEEDBACKBUFFERPROC)(GLsizei size, GLenum type, GLfloat* buffer); -GLAPI PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer; -#define glFeedbackBuffer glad_glFeedbackBuffer -typedef void (APIENTRYP PFNGLSELECTBUFFERPROC)(GLsizei size, GLuint* buffer); -GLAPI PFNGLSELECTBUFFERPROC glad_glSelectBuffer; -#define glSelectBuffer glad_glSelectBuffer -typedef GLint (APIENTRYP PFNGLRENDERMODEPROC)(GLenum mode); -GLAPI PFNGLRENDERMODEPROC glad_glRenderMode; -#define glRenderMode glad_glRenderMode -typedef void (APIENTRYP PFNGLINITNAMESPROC)(); -GLAPI PFNGLINITNAMESPROC glad_glInitNames; -#define glInitNames glad_glInitNames -typedef void (APIENTRYP PFNGLLOADNAMEPROC)(GLuint name); -GLAPI PFNGLLOADNAMEPROC glad_glLoadName; -#define glLoadName glad_glLoadName -typedef void (APIENTRYP PFNGLPASSTHROUGHPROC)(GLfloat token); -GLAPI PFNGLPASSTHROUGHPROC glad_glPassThrough; -#define glPassThrough glad_glPassThrough -typedef void (APIENTRYP PFNGLPOPNAMEPROC)(); -GLAPI PFNGLPOPNAMEPROC glad_glPopName; -#define glPopName glad_glPopName -typedef void (APIENTRYP PFNGLPUSHNAMEPROC)(GLuint name); -GLAPI PFNGLPUSHNAMEPROC glad_glPushName; -#define glPushName glad_glPushName -typedef void (APIENTRYP PFNGLCLEARACCUMPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLCLEARACCUMPROC glad_glClearAccum; -#define glClearAccum glad_glClearAccum -typedef void (APIENTRYP PFNGLCLEARINDEXPROC)(GLfloat c); -GLAPI PFNGLCLEARINDEXPROC glad_glClearIndex; -#define glClearIndex glad_glClearIndex -typedef void (APIENTRYP PFNGLINDEXMASKPROC)(GLuint mask); -GLAPI PFNGLINDEXMASKPROC glad_glIndexMask; -#define glIndexMask glad_glIndexMask -typedef void (APIENTRYP PFNGLACCUMPROC)(GLenum op, GLfloat value); -GLAPI PFNGLACCUMPROC glad_glAccum; -#define glAccum glad_glAccum -typedef void (APIENTRYP PFNGLPOPATTRIBPROC)(); -GLAPI PFNGLPOPATTRIBPROC glad_glPopAttrib; -#define glPopAttrib glad_glPopAttrib -typedef void (APIENTRYP PFNGLPUSHATTRIBPROC)(GLbitfield mask); -GLAPI PFNGLPUSHATTRIBPROC glad_glPushAttrib; -#define glPushAttrib glad_glPushAttrib -typedef void (APIENTRYP PFNGLMAP1DPROC)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points); -GLAPI PFNGLMAP1DPROC glad_glMap1d; -#define glMap1d glad_glMap1d -typedef void (APIENTRYP PFNGLMAP1FPROC)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points); -GLAPI PFNGLMAP1FPROC glad_glMap1f; -#define glMap1f glad_glMap1f -typedef void (APIENTRYP PFNGLMAP2DPROC)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points); -GLAPI PFNGLMAP2DPROC glad_glMap2d; -#define glMap2d glad_glMap2d -typedef void (APIENTRYP PFNGLMAP2FPROC)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points); -GLAPI PFNGLMAP2FPROC glad_glMap2f; -#define glMap2f glad_glMap2f -typedef void (APIENTRYP PFNGLMAPGRID1DPROC)(GLint un, GLdouble u1, GLdouble u2); -GLAPI PFNGLMAPGRID1DPROC glad_glMapGrid1d; -#define glMapGrid1d glad_glMapGrid1d -typedef void (APIENTRYP PFNGLMAPGRID1FPROC)(GLint un, GLfloat u1, GLfloat u2); -GLAPI PFNGLMAPGRID1FPROC glad_glMapGrid1f; -#define glMapGrid1f glad_glMapGrid1f -typedef void (APIENTRYP PFNGLMAPGRID2DPROC)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); -GLAPI PFNGLMAPGRID2DPROC glad_glMapGrid2d; -#define glMapGrid2d glad_glMapGrid2d -typedef void (APIENTRYP PFNGLMAPGRID2FPROC)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); -GLAPI PFNGLMAPGRID2FPROC glad_glMapGrid2f; -#define glMapGrid2f glad_glMapGrid2f -typedef void (APIENTRYP PFNGLEVALCOORD1DPROC)(GLdouble u); -GLAPI PFNGLEVALCOORD1DPROC glad_glEvalCoord1d; -#define glEvalCoord1d glad_glEvalCoord1d -typedef void (APIENTRYP PFNGLEVALCOORD1DVPROC)(const GLdouble* u); -GLAPI PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv; -#define glEvalCoord1dv glad_glEvalCoord1dv -typedef void (APIENTRYP PFNGLEVALCOORD1FPROC)(GLfloat u); -GLAPI PFNGLEVALCOORD1FPROC glad_glEvalCoord1f; -#define glEvalCoord1f glad_glEvalCoord1f -typedef void (APIENTRYP PFNGLEVALCOORD1FVPROC)(const GLfloat* u); -GLAPI PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv; -#define glEvalCoord1fv glad_glEvalCoord1fv -typedef void (APIENTRYP PFNGLEVALCOORD2DPROC)(GLdouble u, GLdouble v); -GLAPI PFNGLEVALCOORD2DPROC glad_glEvalCoord2d; -#define glEvalCoord2d glad_glEvalCoord2d -typedef void (APIENTRYP PFNGLEVALCOORD2DVPROC)(const GLdouble* u); -GLAPI PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv; -#define glEvalCoord2dv glad_glEvalCoord2dv -typedef void (APIENTRYP PFNGLEVALCOORD2FPROC)(GLfloat u, GLfloat v); -GLAPI PFNGLEVALCOORD2FPROC glad_glEvalCoord2f; -#define glEvalCoord2f glad_glEvalCoord2f -typedef void (APIENTRYP PFNGLEVALCOORD2FVPROC)(const GLfloat* u); -GLAPI PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv; -#define glEvalCoord2fv glad_glEvalCoord2fv -typedef void (APIENTRYP PFNGLEVALMESH1PROC)(GLenum mode, GLint i1, GLint i2); -GLAPI PFNGLEVALMESH1PROC glad_glEvalMesh1; -#define glEvalMesh1 glad_glEvalMesh1 -typedef void (APIENTRYP PFNGLEVALPOINT1PROC)(GLint i); -GLAPI PFNGLEVALPOINT1PROC glad_glEvalPoint1; -#define glEvalPoint1 glad_glEvalPoint1 -typedef void (APIENTRYP PFNGLEVALMESH2PROC)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); -GLAPI PFNGLEVALMESH2PROC glad_glEvalMesh2; -#define glEvalMesh2 glad_glEvalMesh2 -typedef void (APIENTRYP PFNGLEVALPOINT2PROC)(GLint i, GLint j); -GLAPI PFNGLEVALPOINT2PROC glad_glEvalPoint2; -#define glEvalPoint2 glad_glEvalPoint2 -typedef void (APIENTRYP PFNGLALPHAFUNCPROC)(GLenum func, GLfloat ref); -GLAPI PFNGLALPHAFUNCPROC glad_glAlphaFunc; -#define glAlphaFunc glad_glAlphaFunc -typedef void (APIENTRYP PFNGLPIXELZOOMPROC)(GLfloat xfactor, GLfloat yfactor); -GLAPI PFNGLPIXELZOOMPROC glad_glPixelZoom; -#define glPixelZoom glad_glPixelZoom -typedef void (APIENTRYP PFNGLPIXELTRANSFERFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf; -#define glPixelTransferf glad_glPixelTransferf -typedef void (APIENTRYP PFNGLPIXELTRANSFERIPROC)(GLenum pname, GLint param); -GLAPI PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi; -#define glPixelTransferi glad_glPixelTransferi -typedef void (APIENTRYP PFNGLPIXELMAPFVPROC)(GLenum map, GLsizei mapsize, const GLfloat* values); -GLAPI PFNGLPIXELMAPFVPROC glad_glPixelMapfv; -#define glPixelMapfv glad_glPixelMapfv -typedef void (APIENTRYP PFNGLPIXELMAPUIVPROC)(GLenum map, GLsizei mapsize, const GLuint* values); -GLAPI PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv; -#define glPixelMapuiv glad_glPixelMapuiv -typedef void (APIENTRYP PFNGLPIXELMAPUSVPROC)(GLenum map, GLsizei mapsize, const GLushort* values); -GLAPI PFNGLPIXELMAPUSVPROC glad_glPixelMapusv; -#define glPixelMapusv glad_glPixelMapusv -typedef void (APIENTRYP PFNGLCOPYPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); -GLAPI PFNGLCOPYPIXELSPROC glad_glCopyPixels; -#define glCopyPixels glad_glCopyPixels -typedef void (APIENTRYP PFNGLDRAWPIXELSPROC)(GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); -GLAPI PFNGLDRAWPIXELSPROC glad_glDrawPixels; -#define glDrawPixels glad_glDrawPixels -typedef void (APIENTRYP PFNGLGETCLIPPLANEPROC)(GLenum plane, GLdouble* equation); -GLAPI PFNGLGETCLIPPLANEPROC glad_glGetClipPlane; -#define glGetClipPlane glad_glGetClipPlane -typedef void (APIENTRYP PFNGLGETLIGHTFVPROC)(GLenum light, GLenum pname, GLfloat* params); -GLAPI PFNGLGETLIGHTFVPROC glad_glGetLightfv; -#define glGetLightfv glad_glGetLightfv -typedef void (APIENTRYP PFNGLGETLIGHTIVPROC)(GLenum light, GLenum pname, GLint* params); -GLAPI PFNGLGETLIGHTIVPROC glad_glGetLightiv; -#define glGetLightiv glad_glGetLightiv -typedef void (APIENTRYP PFNGLGETMAPDVPROC)(GLenum target, GLenum query, GLdouble* v); -GLAPI PFNGLGETMAPDVPROC glad_glGetMapdv; -#define glGetMapdv glad_glGetMapdv -typedef void (APIENTRYP PFNGLGETMAPFVPROC)(GLenum target, GLenum query, GLfloat* v); -GLAPI PFNGLGETMAPFVPROC glad_glGetMapfv; -#define glGetMapfv glad_glGetMapfv -typedef void (APIENTRYP PFNGLGETMAPIVPROC)(GLenum target, GLenum query, GLint* v); -GLAPI PFNGLGETMAPIVPROC glad_glGetMapiv; -#define glGetMapiv glad_glGetMapiv -typedef void (APIENTRYP PFNGLGETMATERIALFVPROC)(GLenum face, GLenum pname, GLfloat* params); -GLAPI PFNGLGETMATERIALFVPROC glad_glGetMaterialfv; -#define glGetMaterialfv glad_glGetMaterialfv -typedef void (APIENTRYP PFNGLGETMATERIALIVPROC)(GLenum face, GLenum pname, GLint* params); -GLAPI PFNGLGETMATERIALIVPROC glad_glGetMaterialiv; -#define glGetMaterialiv glad_glGetMaterialiv -typedef void (APIENTRYP PFNGLGETPIXELMAPFVPROC)(GLenum map, GLfloat* values); -GLAPI PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv; -#define glGetPixelMapfv glad_glGetPixelMapfv -typedef void (APIENTRYP PFNGLGETPIXELMAPUIVPROC)(GLenum map, GLuint* values); -GLAPI PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv; -#define glGetPixelMapuiv glad_glGetPixelMapuiv -typedef void (APIENTRYP PFNGLGETPIXELMAPUSVPROC)(GLenum map, GLushort* values); -GLAPI PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv; -#define glGetPixelMapusv glad_glGetPixelMapusv -typedef void (APIENTRYP PFNGLGETPOLYGONSTIPPLEPROC)(GLubyte* mask); -GLAPI PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple; -#define glGetPolygonStipple glad_glGetPolygonStipple -typedef void (APIENTRYP PFNGLGETTEXENVFVPROC)(GLenum target, GLenum pname, GLfloat* params); -GLAPI PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv; -#define glGetTexEnvfv glad_glGetTexEnvfv -typedef void (APIENTRYP PFNGLGETTEXENVIVPROC)(GLenum target, GLenum pname, GLint* params); -GLAPI PFNGLGETTEXENVIVPROC glad_glGetTexEnviv; -#define glGetTexEnviv glad_glGetTexEnviv -typedef void (APIENTRYP PFNGLGETTEXGENDVPROC)(GLenum coord, GLenum pname, GLdouble* params); -GLAPI PFNGLGETTEXGENDVPROC glad_glGetTexGendv; -#define glGetTexGendv glad_glGetTexGendv -typedef void (APIENTRYP PFNGLGETTEXGENFVPROC)(GLenum coord, GLenum pname, GLfloat* params); -GLAPI PFNGLGETTEXGENFVPROC glad_glGetTexGenfv; -#define glGetTexGenfv glad_glGetTexGenfv -typedef void (APIENTRYP PFNGLGETTEXGENIVPROC)(GLenum coord, GLenum pname, GLint* params); -GLAPI PFNGLGETTEXGENIVPROC glad_glGetTexGeniv; -#define glGetTexGeniv glad_glGetTexGeniv -typedef GLboolean (APIENTRYP PFNGLISLISTPROC)(GLuint list); -GLAPI PFNGLISLISTPROC glad_glIsList; -#define glIsList glad_glIsList -typedef void (APIENTRYP PFNGLFRUSTUMPROC)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI PFNGLFRUSTUMPROC glad_glFrustum; -#define glFrustum glad_glFrustum -typedef void (APIENTRYP PFNGLLOADIDENTITYPROC)(); -GLAPI PFNGLLOADIDENTITYPROC glad_glLoadIdentity; -#define glLoadIdentity glad_glLoadIdentity -typedef void (APIENTRYP PFNGLLOADMATRIXFPROC)(const GLfloat* m); -GLAPI PFNGLLOADMATRIXFPROC glad_glLoadMatrixf; -#define glLoadMatrixf glad_glLoadMatrixf -typedef void (APIENTRYP PFNGLLOADMATRIXDPROC)(const GLdouble* m); -GLAPI PFNGLLOADMATRIXDPROC glad_glLoadMatrixd; -#define glLoadMatrixd glad_glLoadMatrixd -typedef void (APIENTRYP PFNGLMATRIXMODEPROC)(GLenum mode); -GLAPI PFNGLMATRIXMODEPROC glad_glMatrixMode; -#define glMatrixMode glad_glMatrixMode -typedef void (APIENTRYP PFNGLMULTMATRIXFPROC)(const GLfloat* m); -GLAPI PFNGLMULTMATRIXFPROC glad_glMultMatrixf; -#define glMultMatrixf glad_glMultMatrixf -typedef void (APIENTRYP PFNGLMULTMATRIXDPROC)(const GLdouble* m); -GLAPI PFNGLMULTMATRIXDPROC glad_glMultMatrixd; -#define glMultMatrixd glad_glMultMatrixd -typedef void (APIENTRYP PFNGLORTHOPROC)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI PFNGLORTHOPROC glad_glOrtho; -#define glOrtho glad_glOrtho -typedef void (APIENTRYP PFNGLPOPMATRIXPROC)(); -GLAPI PFNGLPOPMATRIXPROC glad_glPopMatrix; -#define glPopMatrix glad_glPopMatrix -typedef void (APIENTRYP PFNGLPUSHMATRIXPROC)(); -GLAPI PFNGLPUSHMATRIXPROC glad_glPushMatrix; -#define glPushMatrix glad_glPushMatrix -typedef void (APIENTRYP PFNGLROTATEDPROC)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLROTATEDPROC glad_glRotated; -#define glRotated glad_glRotated -typedef void (APIENTRYP PFNGLROTATEFPROC)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLROTATEFPROC glad_glRotatef; -#define glRotatef glad_glRotatef -typedef void (APIENTRYP PFNGLSCALEDPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLSCALEDPROC glad_glScaled; -#define glScaled glad_glScaled -typedef void (APIENTRYP PFNGLSCALEFPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLSCALEFPROC glad_glScalef; -#define glScalef glad_glScalef -typedef void (APIENTRYP PFNGLTRANSLATEDPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLTRANSLATEDPROC glad_glTranslated; -#define glTranslated glad_glTranslated -typedef void (APIENTRYP PFNGLTRANSLATEFPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLTRANSLATEFPROC glad_glTranslatef; -#define glTranslatef glad_glTranslatef -#endif -#ifndef GL_VERSION_1_1 -#define GL_VERSION_1_1 1 -GLAPI int GLAD_GL_VERSION_1_1; -typedef void (APIENTRYP PFNGLDRAWARRAYSPROC)(GLenum mode, GLint first, GLsizei count); -GLAPI PFNGLDRAWARRAYSPROC glad_glDrawArrays; -#define glDrawArrays glad_glDrawArrays -typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC)(GLenum mode, GLsizei count, GLenum type, const void* indices); -GLAPI PFNGLDRAWELEMENTSPROC glad_glDrawElements; -#define glDrawElements glad_glDrawElements -typedef void (APIENTRYP PFNGLGETPOINTERVPROC)(GLenum pname, void** params); -GLAPI PFNGLGETPOINTERVPROC glad_glGetPointerv; -#define glGetPointerv glad_glGetPointerv -typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC)(GLfloat factor, GLfloat units); -GLAPI PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -#define glPolygonOffset glad_glPolygonOffset -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -#define glCopyTexImage1D glad_glCopyTexImage1D -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -#define glCopyTexImage2D glad_glCopyTexImage2D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; -#define glCopyTexSubImage1D glad_glCopyTexSubImage1D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -#define glCopyTexSubImage2D glad_glCopyTexSubImage2D -typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); -GLAPI PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -#define glTexSubImage1D glad_glTexSubImage1D -typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); -GLAPI PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; -#define glTexSubImage2D glad_glTexSubImage2D -typedef void (APIENTRYP PFNGLBINDTEXTUREPROC)(GLenum target, GLuint texture); -GLAPI PFNGLBINDTEXTUREPROC glad_glBindTexture; -#define glBindTexture glad_glBindTexture -typedef void (APIENTRYP PFNGLDELETETEXTURESPROC)(GLsizei n, const GLuint* textures); -GLAPI PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -#define glDeleteTextures glad_glDeleteTextures -typedef void (APIENTRYP PFNGLGENTEXTURESPROC)(GLsizei n, GLuint* textures); -GLAPI PFNGLGENTEXTURESPROC glad_glGenTextures; -#define glGenTextures glad_glGenTextures -typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC)(GLuint texture); -GLAPI PFNGLISTEXTUREPROC glad_glIsTexture; -#define glIsTexture glad_glIsTexture -typedef void (APIENTRYP PFNGLARRAYELEMENTPROC)(GLint i); -GLAPI PFNGLARRAYELEMENTPROC glad_glArrayElement; -#define glArrayElement glad_glArrayElement -typedef void (APIENTRYP PFNGLCOLORPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void* pointer); -GLAPI PFNGLCOLORPOINTERPROC glad_glColorPointer; -#define glColorPointer glad_glColorPointer -typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEPROC)(GLenum array); -GLAPI PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState; -#define glDisableClientState glad_glDisableClientState -typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERPROC)(GLsizei stride, const void* pointer); -GLAPI PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer; -#define glEdgeFlagPointer glad_glEdgeFlagPointer -typedef void (APIENTRYP PFNGLENABLECLIENTSTATEPROC)(GLenum array); -GLAPI PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState; -#define glEnableClientState glad_glEnableClientState -typedef void (APIENTRYP PFNGLINDEXPOINTERPROC)(GLenum type, GLsizei stride, const void* pointer); -GLAPI PFNGLINDEXPOINTERPROC glad_glIndexPointer; -#define glIndexPointer glad_glIndexPointer -typedef void (APIENTRYP PFNGLINTERLEAVEDARRAYSPROC)(GLenum format, GLsizei stride, const void* pointer); -GLAPI PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays; -#define glInterleavedArrays glad_glInterleavedArrays -typedef void (APIENTRYP PFNGLNORMALPOINTERPROC)(GLenum type, GLsizei stride, const void* pointer); -GLAPI PFNGLNORMALPOINTERPROC glad_glNormalPointer; -#define glNormalPointer glad_glNormalPointer -typedef void (APIENTRYP PFNGLTEXCOORDPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void* pointer); -GLAPI PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer; -#define glTexCoordPointer glad_glTexCoordPointer -typedef void (APIENTRYP PFNGLVERTEXPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void* pointer); -GLAPI PFNGLVERTEXPOINTERPROC glad_glVertexPointer; -#define glVertexPointer glad_glVertexPointer -typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTPROC)(GLsizei n, const GLuint* textures, GLboolean* residences); -GLAPI PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident; -#define glAreTexturesResident glad_glAreTexturesResident -typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESPROC)(GLsizei n, const GLuint* textures, const GLfloat* priorities); -GLAPI PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures; -#define glPrioritizeTextures glad_glPrioritizeTextures -typedef void (APIENTRYP PFNGLINDEXUBPROC)(GLubyte c); -GLAPI PFNGLINDEXUBPROC glad_glIndexub; -#define glIndexub glad_glIndexub -typedef void (APIENTRYP PFNGLINDEXUBVPROC)(const GLubyte* c); -GLAPI PFNGLINDEXUBVPROC glad_glIndexubv; -#define glIndexubv glad_glIndexubv -typedef void (APIENTRYP PFNGLPOPCLIENTATTRIBPROC)(); -GLAPI PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib; -#define glPopClientAttrib glad_glPopClientAttrib -typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBPROC)(GLbitfield mask); -GLAPI PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib; -#define glPushClientAttrib glad_glPushClientAttrib -#endif -#ifndef GL_VERSION_1_2 -#define GL_VERSION_1_2 1 -GLAPI int GLAD_GL_VERSION_1_2; -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void* indices); -GLAPI PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -#define glDrawRangeElements glad_glDrawRangeElements -typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); -GLAPI PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -#define glTexImage3D glad_glTexImage3D -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); -GLAPI PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -#define glTexSubImage3D glad_glTexSubImage3D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -#define glCopyTexSubImage3D glad_glCopyTexSubImage3D -#endif -#ifndef GL_VERSION_1_3 -#define GL_VERSION_1_3 1 -GLAPI int GLAD_GL_VERSION_1_3; -typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture); -GLAPI PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -#define glActiveTexture glad_glActiveTexture -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC)(GLfloat value, GLboolean invert); -GLAPI PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -#define glSampleCoverage glad_glSampleCoverage -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -#define glCompressedTexImage3D glad_glCompressedTexImage3D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -#define glCompressedTexImage2D glad_glCompressedTexImage2D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -#define glCompressedTexImage1D glad_glCompressedTexImage1D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -#define glCompressedTexSubImage3D glad_glCompressedTexSubImage3D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -#define glCompressedTexSubImage2D glad_glCompressedTexSubImage2D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -#define glCompressedTexSubImage1D glad_glCompressedTexSubImage1D -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC)(GLenum target, GLint level, void* img); -GLAPI PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -#define glGetCompressedTexImage glad_glGetCompressedTexImage -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC)(GLenum texture); -GLAPI PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture; -#define glClientActiveTexture glad_glClientActiveTexture -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC)(GLenum target, GLdouble s); -GLAPI PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d; -#define glMultiTexCoord1d glad_glMultiTexCoord1d -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC)(GLenum target, const GLdouble* v); -GLAPI PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv; -#define glMultiTexCoord1dv glad_glMultiTexCoord1dv -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC)(GLenum target, GLfloat s); -GLAPI PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f; -#define glMultiTexCoord1f glad_glMultiTexCoord1f -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC)(GLenum target, const GLfloat* v); -GLAPI PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv; -#define glMultiTexCoord1fv glad_glMultiTexCoord1fv -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC)(GLenum target, GLint s); -GLAPI PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i; -#define glMultiTexCoord1i glad_glMultiTexCoord1i -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC)(GLenum target, const GLint* v); -GLAPI PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv; -#define glMultiTexCoord1iv glad_glMultiTexCoord1iv -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC)(GLenum target, GLshort s); -GLAPI PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s; -#define glMultiTexCoord1s glad_glMultiTexCoord1s -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC)(GLenum target, const GLshort* v); -GLAPI PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv; -#define glMultiTexCoord1sv glad_glMultiTexCoord1sv -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC)(GLenum target, GLdouble s, GLdouble t); -GLAPI PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d; -#define glMultiTexCoord2d glad_glMultiTexCoord2d -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC)(GLenum target, const GLdouble* v); -GLAPI PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv; -#define glMultiTexCoord2dv glad_glMultiTexCoord2dv -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC)(GLenum target, GLfloat s, GLfloat t); -GLAPI PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f; -#define glMultiTexCoord2f glad_glMultiTexCoord2f -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC)(GLenum target, const GLfloat* v); -GLAPI PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv; -#define glMultiTexCoord2fv glad_glMultiTexCoord2fv -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC)(GLenum target, GLint s, GLint t); -GLAPI PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i; -#define glMultiTexCoord2i glad_glMultiTexCoord2i -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC)(GLenum target, const GLint* v); -GLAPI PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv; -#define glMultiTexCoord2iv glad_glMultiTexCoord2iv -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC)(GLenum target, GLshort s, GLshort t); -GLAPI PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s; -#define glMultiTexCoord2s glad_glMultiTexCoord2s -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC)(GLenum target, const GLshort* v); -GLAPI PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv; -#define glMultiTexCoord2sv glad_glMultiTexCoord2sv -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r); -GLAPI PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d; -#define glMultiTexCoord3d glad_glMultiTexCoord3d -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC)(GLenum target, const GLdouble* v); -GLAPI PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv; -#define glMultiTexCoord3dv glad_glMultiTexCoord3dv -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r); -GLAPI PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f; -#define glMultiTexCoord3f glad_glMultiTexCoord3f -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC)(GLenum target, const GLfloat* v); -GLAPI PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv; -#define glMultiTexCoord3fv glad_glMultiTexCoord3fv -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC)(GLenum target, GLint s, GLint t, GLint r); -GLAPI PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i; -#define glMultiTexCoord3i glad_glMultiTexCoord3i -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC)(GLenum target, const GLint* v); -GLAPI PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv; -#define glMultiTexCoord3iv glad_glMultiTexCoord3iv -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC)(GLenum target, GLshort s, GLshort t, GLshort r); -GLAPI PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s; -#define glMultiTexCoord3s glad_glMultiTexCoord3s -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC)(GLenum target, const GLshort* v); -GLAPI PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv; -#define glMultiTexCoord3sv glad_glMultiTexCoord3sv -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d; -#define glMultiTexCoord4d glad_glMultiTexCoord4d -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC)(GLenum target, const GLdouble* v); -GLAPI PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv; -#define glMultiTexCoord4dv glad_glMultiTexCoord4dv -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f; -#define glMultiTexCoord4f glad_glMultiTexCoord4f -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC)(GLenum target, const GLfloat* v); -GLAPI PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv; -#define glMultiTexCoord4fv glad_glMultiTexCoord4fv -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC)(GLenum target, GLint s, GLint t, GLint r, GLint q); -GLAPI PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i; -#define glMultiTexCoord4i glad_glMultiTexCoord4i -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC)(GLenum target, const GLint* v); -GLAPI PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv; -#define glMultiTexCoord4iv glad_glMultiTexCoord4iv -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s; -#define glMultiTexCoord4s glad_glMultiTexCoord4s -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC)(GLenum target, const GLshort* v); -GLAPI PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv; -#define glMultiTexCoord4sv glad_glMultiTexCoord4sv -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC)(const GLfloat* m); -GLAPI PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf; -#define glLoadTransposeMatrixf glad_glLoadTransposeMatrixf -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC)(const GLdouble* m); -GLAPI PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd; -#define glLoadTransposeMatrixd glad_glLoadTransposeMatrixd -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC)(const GLfloat* m); -GLAPI PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf; -#define glMultTransposeMatrixf glad_glMultTransposeMatrixf -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC)(const GLdouble* m); -GLAPI PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd; -#define glMultTransposeMatrixd glad_glMultTransposeMatrixd -#endif -#ifndef GL_VERSION_1_4 -#define GL_VERSION_1_4 1 -GLAPI int GLAD_GL_VERSION_1_4; -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -#define glBlendFuncSeparate glad_glBlendFuncSeparate -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC)(GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount); -GLAPI PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -#define glMultiDrawArrays glad_glMultiDrawArrays -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC)(GLenum mode, const GLsizei* count, GLenum type, const void** indices, GLsizei drawcount); -GLAPI PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -#define glMultiDrawElements glad_glMultiDrawElements -typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -#define glPointParameterf glad_glPointParameterf -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC)(GLenum pname, const GLfloat* params); -GLAPI PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -#define glPointParameterfv glad_glPointParameterfv -typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC)(GLenum pname, GLint param); -GLAPI PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -#define glPointParameteri glad_glPointParameteri -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC)(GLenum pname, const GLint* params); -GLAPI PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -#define glPointParameteriv glad_glPointParameteriv -typedef void (APIENTRYP PFNGLFOGCOORDFPROC)(GLfloat coord); -GLAPI PFNGLFOGCOORDFPROC glad_glFogCoordf; -#define glFogCoordf glad_glFogCoordf -typedef void (APIENTRYP PFNGLFOGCOORDFVPROC)(const GLfloat* coord); -GLAPI PFNGLFOGCOORDFVPROC glad_glFogCoordfv; -#define glFogCoordfv glad_glFogCoordfv -typedef void (APIENTRYP PFNGLFOGCOORDDPROC)(GLdouble coord); -GLAPI PFNGLFOGCOORDDPROC glad_glFogCoordd; -#define glFogCoordd glad_glFogCoordd -typedef void (APIENTRYP PFNGLFOGCOORDDVPROC)(const GLdouble* coord); -GLAPI PFNGLFOGCOORDDVPROC glad_glFogCoorddv; -#define glFogCoorddv glad_glFogCoorddv -typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC)(GLenum type, GLsizei stride, const void* pointer); -GLAPI PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer; -#define glFogCoordPointer glad_glFogCoordPointer -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC)(GLbyte red, GLbyte green, GLbyte blue); -GLAPI PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b; -#define glSecondaryColor3b glad_glSecondaryColor3b -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC)(const GLbyte* v); -GLAPI PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv; -#define glSecondaryColor3bv glad_glSecondaryColor3bv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC)(GLdouble red, GLdouble green, GLdouble blue); -GLAPI PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d; -#define glSecondaryColor3d glad_glSecondaryColor3d -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC)(const GLdouble* v); -GLAPI PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv; -#define glSecondaryColor3dv glad_glSecondaryColor3dv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC)(GLfloat red, GLfloat green, GLfloat blue); -GLAPI PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f; -#define glSecondaryColor3f glad_glSecondaryColor3f -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC)(const GLfloat* v); -GLAPI PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv; -#define glSecondaryColor3fv glad_glSecondaryColor3fv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC)(GLint red, GLint green, GLint blue); -GLAPI PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i; -#define glSecondaryColor3i glad_glSecondaryColor3i -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC)(const GLint* v); -GLAPI PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv; -#define glSecondaryColor3iv glad_glSecondaryColor3iv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC)(GLshort red, GLshort green, GLshort blue); -GLAPI PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s; -#define glSecondaryColor3s glad_glSecondaryColor3s -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC)(const GLshort* v); -GLAPI PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv; -#define glSecondaryColor3sv glad_glSecondaryColor3sv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC)(GLubyte red, GLubyte green, GLubyte blue); -GLAPI PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub; -#define glSecondaryColor3ub glad_glSecondaryColor3ub -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC)(const GLubyte* v); -GLAPI PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv; -#define glSecondaryColor3ubv glad_glSecondaryColor3ubv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC)(GLuint red, GLuint green, GLuint blue); -GLAPI PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui; -#define glSecondaryColor3ui glad_glSecondaryColor3ui -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC)(const GLuint* v); -GLAPI PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv; -#define glSecondaryColor3uiv glad_glSecondaryColor3uiv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC)(GLushort red, GLushort green, GLushort blue); -GLAPI PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us; -#define glSecondaryColor3us glad_glSecondaryColor3us -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC)(const GLushort* v); -GLAPI PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv; -#define glSecondaryColor3usv glad_glSecondaryColor3usv -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void* pointer); -GLAPI PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer; -#define glSecondaryColorPointer glad_glSecondaryColorPointer -typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC)(GLdouble x, GLdouble y); -GLAPI PFNGLWINDOWPOS2DPROC glad_glWindowPos2d; -#define glWindowPos2d glad_glWindowPos2d -typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC)(const GLdouble* v); -GLAPI PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv; -#define glWindowPos2dv glad_glWindowPos2dv -typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC)(GLfloat x, GLfloat y); -GLAPI PFNGLWINDOWPOS2FPROC glad_glWindowPos2f; -#define glWindowPos2f glad_glWindowPos2f -typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC)(const GLfloat* v); -GLAPI PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv; -#define glWindowPos2fv glad_glWindowPos2fv -typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC)(GLint x, GLint y); -GLAPI PFNGLWINDOWPOS2IPROC glad_glWindowPos2i; -#define glWindowPos2i glad_glWindowPos2i -typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC)(const GLint* v); -GLAPI PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv; -#define glWindowPos2iv glad_glWindowPos2iv -typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC)(GLshort x, GLshort y); -GLAPI PFNGLWINDOWPOS2SPROC glad_glWindowPos2s; -#define glWindowPos2s glad_glWindowPos2s -typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC)(const GLshort* v); -GLAPI PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv; -#define glWindowPos2sv glad_glWindowPos2sv -typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLWINDOWPOS3DPROC glad_glWindowPos3d; -#define glWindowPos3d glad_glWindowPos3d -typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC)(const GLdouble* v); -GLAPI PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv; -#define glWindowPos3dv glad_glWindowPos3dv -typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLWINDOWPOS3FPROC glad_glWindowPos3f; -#define glWindowPos3f glad_glWindowPos3f -typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC)(const GLfloat* v); -GLAPI PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv; -#define glWindowPos3fv glad_glWindowPos3fv -typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC)(GLint x, GLint y, GLint z); -GLAPI PFNGLWINDOWPOS3IPROC glad_glWindowPos3i; -#define glWindowPos3i glad_glWindowPos3i -typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC)(const GLint* v); -GLAPI PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv; -#define glWindowPos3iv glad_glWindowPos3iv -typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC)(GLshort x, GLshort y, GLshort z); -GLAPI PFNGLWINDOWPOS3SPROC glad_glWindowPos3s; -#define glWindowPos3s glad_glWindowPos3s -typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC)(const GLshort* v); -GLAPI PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv; -#define glWindowPos3sv glad_glWindowPos3sv -typedef void (APIENTRYP PFNGLBLENDCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLBLENDCOLORPROC glad_glBlendColor; -#define glBlendColor glad_glBlendColor -typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC)(GLenum mode); -GLAPI PFNGLBLENDEQUATIONPROC glad_glBlendEquation; -#define glBlendEquation glad_glBlendEquation -#endif -#ifndef GL_VERSION_1_5 -#define GL_VERSION_1_5 1 -GLAPI int GLAD_GL_VERSION_1_5; -typedef void (APIENTRYP PFNGLGENQUERIESPROC)(GLsizei n, GLuint* ids); -GLAPI PFNGLGENQUERIESPROC glad_glGenQueries; -#define glGenQueries glad_glGenQueries -typedef void (APIENTRYP PFNGLDELETEQUERIESPROC)(GLsizei n, const GLuint* ids); -GLAPI PFNGLDELETEQUERIESPROC glad_glDeleteQueries; -#define glDeleteQueries glad_glDeleteQueries -typedef GLboolean (APIENTRYP PFNGLISQUERYPROC)(GLuint id); -GLAPI PFNGLISQUERYPROC glad_glIsQuery; -#define glIsQuery glad_glIsQuery -typedef void (APIENTRYP PFNGLBEGINQUERYPROC)(GLenum target, GLuint id); -GLAPI PFNGLBEGINQUERYPROC glad_glBeginQuery; -#define glBeginQuery glad_glBeginQuery -typedef void (APIENTRYP PFNGLENDQUERYPROC)(GLenum target); -GLAPI PFNGLENDQUERYPROC glad_glEndQuery; -#define glEndQuery glad_glEndQuery -typedef void (APIENTRYP PFNGLGETQUERYIVPROC)(GLenum target, GLenum pname, GLint* params); -GLAPI PFNGLGETQUERYIVPROC glad_glGetQueryiv; -#define glGetQueryiv glad_glGetQueryiv -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC)(GLuint id, GLenum pname, GLint* params); -GLAPI PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -#define glGetQueryObjectiv glad_glGetQueryObjectiv -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC)(GLuint id, GLenum pname, GLuint* params); -GLAPI PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -#define glGetQueryObjectuiv glad_glGetQueryObjectuiv -typedef void (APIENTRYP PFNGLBINDBUFFERPROC)(GLenum target, GLuint buffer); -GLAPI PFNGLBINDBUFFERPROC glad_glBindBuffer; -#define glBindBuffer glad_glBindBuffer -typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC)(GLsizei n, const GLuint* buffers); -GLAPI PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -#define glDeleteBuffers glad_glDeleteBuffers -typedef void (APIENTRYP PFNGLGENBUFFERSPROC)(GLsizei n, GLuint* buffers); -GLAPI PFNGLGENBUFFERSPROC glad_glGenBuffers; -#define glGenBuffers glad_glGenBuffers -typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC)(GLuint buffer); -GLAPI PFNGLISBUFFERPROC glad_glIsBuffer; -#define glIsBuffer glad_glIsBuffer -typedef void (APIENTRYP PFNGLBUFFERDATAPROC)(GLenum target, GLsizeiptr size, const void* data, GLenum usage); -GLAPI PFNGLBUFFERDATAPROC glad_glBufferData; -#define glBufferData glad_glBufferData -typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, const void* data); -GLAPI PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -#define glBufferSubData glad_glBufferSubData -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, void* data); -GLAPI PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -#define glGetBufferSubData glad_glGetBufferSubData -typedef void* (APIENTRYP PFNGLMAPBUFFERPROC)(GLenum target, GLenum access); -GLAPI PFNGLMAPBUFFERPROC glad_glMapBuffer; -#define glMapBuffer glad_glMapBuffer -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC)(GLenum target); -GLAPI PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -#define glUnmapBuffer glad_glUnmapBuffer -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint* params); -GLAPI PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; -#define glGetBufferParameteriv glad_glGetBufferParameteriv -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC)(GLenum target, GLenum pname, void** params); -GLAPI PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -#define glGetBufferPointerv glad_glGetBufferPointerv -#endif -#ifndef GL_VERSION_2_0 -#define GL_VERSION_2_0 1 -GLAPI int GLAD_GL_VERSION_2_0; -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC)(GLenum modeRGB, GLenum modeAlpha); -GLAPI PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -#define glBlendEquationSeparate glad_glBlendEquationSeparate -typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC)(GLsizei n, const GLenum* bufs); -GLAPI PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; -#define glDrawBuffers glad_glDrawBuffers -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -GLAPI PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -#define glStencilOpSeparate glad_glStencilOpSeparate -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC)(GLenum face, GLenum func, GLint ref, GLuint mask); -GLAPI PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -#define glStencilFuncSeparate glad_glStencilFuncSeparate -typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC)(GLenum face, GLuint mask); -GLAPI PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -#define glStencilMaskSeparate glad_glStencilMaskSeparate -typedef void (APIENTRYP PFNGLATTACHSHADERPROC)(GLuint program, GLuint shader); -GLAPI PFNGLATTACHSHADERPROC glad_glAttachShader; -#define glAttachShader glad_glAttachShader -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC)(GLuint program, GLuint index, const GLchar* name); -GLAPI PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -#define glBindAttribLocation glad_glBindAttribLocation -typedef void (APIENTRYP PFNGLCOMPILESHADERPROC)(GLuint shader); -GLAPI PFNGLCOMPILESHADERPROC glad_glCompileShader; -#define glCompileShader glad_glCompileShader -typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC)(); -GLAPI PFNGLCREATEPROGRAMPROC glad_glCreateProgram; -#define glCreateProgram glad_glCreateProgram -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC)(GLenum type); -GLAPI PFNGLCREATESHADERPROC glad_glCreateShader; -#define glCreateShader glad_glCreateShader -typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC)(GLuint program); -GLAPI PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -#define glDeleteProgram glad_glDeleteProgram -typedef void (APIENTRYP PFNGLDELETESHADERPROC)(GLuint shader); -GLAPI PFNGLDELETESHADERPROC glad_glDeleteShader; -#define glDeleteShader glad_glDeleteShader -typedef void (APIENTRYP PFNGLDETACHSHADERPROC)(GLuint program, GLuint shader); -GLAPI PFNGLDETACHSHADERPROC glad_glDetachShader; -#define glDetachShader glad_glDetachShader -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC)(GLuint index); -GLAPI PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -#define glDisableVertexAttribArray glad_glDisableVertexAttribArray -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC)(GLuint index); -GLAPI PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; -#define glEnableVertexAttribArray glad_glEnableVertexAttribArray -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); -GLAPI PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -#define glGetActiveAttrib glad_glGetActiveAttrib -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); -GLAPI PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -#define glGetActiveUniform glad_glGetActiveUniform -typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC)(GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders); -GLAPI PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -#define glGetAttachedShaders glad_glGetAttachedShaders -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC)(GLuint program, const GLchar* name); -GLAPI PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; -#define glGetAttribLocation glad_glGetAttribLocation -typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC)(GLuint program, GLenum pname, GLint* params); -GLAPI PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -#define glGetProgramiv glad_glGetProgramiv -typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC)(GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog); -GLAPI PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -#define glGetProgramInfoLog glad_glGetProgramInfoLog -typedef void (APIENTRYP PFNGLGETSHADERIVPROC)(GLuint shader, GLenum pname, GLint* params); -GLAPI PFNGLGETSHADERIVPROC glad_glGetShaderiv; -#define glGetShaderiv glad_glGetShaderiv -typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC)(GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog); -GLAPI PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -#define glGetShaderInfoLog glad_glGetShaderInfoLog -typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC)(GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source); -GLAPI PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; -#define glGetShaderSource glad_glGetShaderSource -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC)(GLuint program, const GLchar* name); -GLAPI PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -#define glGetUniformLocation glad_glGetUniformLocation -typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC)(GLuint program, GLint location, GLfloat* params); -GLAPI PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -#define glGetUniformfv glad_glGetUniformfv -typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC)(GLuint program, GLint location, GLint* params); -GLAPI PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -#define glGetUniformiv glad_glGetUniformiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC)(GLuint index, GLenum pname, GLdouble* params); -GLAPI PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -#define glGetVertexAttribdv glad_glGetVertexAttribdv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC)(GLuint index, GLenum pname, GLfloat* params); -GLAPI PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -#define glGetVertexAttribfv glad_glGetVertexAttribfv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC)(GLuint index, GLenum pname, GLint* params); -GLAPI PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -#define glGetVertexAttribiv glad_glGetVertexAttribiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint index, GLenum pname, void** pointer); -GLAPI PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -#define glGetVertexAttribPointerv glad_glGetVertexAttribPointerv -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC)(GLuint program); -GLAPI PFNGLISPROGRAMPROC glad_glIsProgram; -#define glIsProgram glad_glIsProgram -typedef GLboolean (APIENTRYP PFNGLISSHADERPROC)(GLuint shader); -GLAPI PFNGLISSHADERPROC glad_glIsShader; -#define glIsShader glad_glIsShader -typedef void (APIENTRYP PFNGLLINKPROGRAMPROC)(GLuint program); -GLAPI PFNGLLINKPROGRAMPROC glad_glLinkProgram; -#define glLinkProgram glad_glLinkProgram -typedef void (APIENTRYP PFNGLSHADERSOURCEPROC)(GLuint shader, GLsizei count, const GLchar** string, const GLint* length); -GLAPI PFNGLSHADERSOURCEPROC glad_glShaderSource; -#define glShaderSource glad_glShaderSource -typedef void (APIENTRYP PFNGLUSEPROGRAMPROC)(GLuint program); -GLAPI PFNGLUSEPROGRAMPROC glad_glUseProgram; -#define glUseProgram glad_glUseProgram -typedef void (APIENTRYP PFNGLUNIFORM1FPROC)(GLint location, GLfloat v0); -GLAPI PFNGLUNIFORM1FPROC glad_glUniform1f; -#define glUniform1f glad_glUniform1f -typedef void (APIENTRYP PFNGLUNIFORM2FPROC)(GLint location, GLfloat v0, GLfloat v1); -GLAPI PFNGLUNIFORM2FPROC glad_glUniform2f; -#define glUniform2f glad_glUniform2f -typedef void (APIENTRYP PFNGLUNIFORM3FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI PFNGLUNIFORM3FPROC glad_glUniform3f; -#define glUniform3f glad_glUniform3f -typedef void (APIENTRYP PFNGLUNIFORM4FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI PFNGLUNIFORM4FPROC glad_glUniform4f; -#define glUniform4f glad_glUniform4f -typedef void (APIENTRYP PFNGLUNIFORM1IPROC)(GLint location, GLint v0); -GLAPI PFNGLUNIFORM1IPROC glad_glUniform1i; -#define glUniform1i glad_glUniform1i -typedef void (APIENTRYP PFNGLUNIFORM2IPROC)(GLint location, GLint v0, GLint v1); -GLAPI PFNGLUNIFORM2IPROC glad_glUniform2i; -#define glUniform2i glad_glUniform2i -typedef void (APIENTRYP PFNGLUNIFORM3IPROC)(GLint location, GLint v0, GLint v1, GLint v2); -GLAPI PFNGLUNIFORM3IPROC glad_glUniform3i; -#define glUniform3i glad_glUniform3i -typedef void (APIENTRYP PFNGLUNIFORM4IPROC)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI PFNGLUNIFORM4IPROC glad_glUniform4i; -#define glUniform4i glad_glUniform4i -typedef void (APIENTRYP PFNGLUNIFORM1FVPROC)(GLint location, GLsizei count, const GLfloat* value); -GLAPI PFNGLUNIFORM1FVPROC glad_glUniform1fv; -#define glUniform1fv glad_glUniform1fv -typedef void (APIENTRYP PFNGLUNIFORM2FVPROC)(GLint location, GLsizei count, const GLfloat* value); -GLAPI PFNGLUNIFORM2FVPROC glad_glUniform2fv; -#define glUniform2fv glad_glUniform2fv -typedef void (APIENTRYP PFNGLUNIFORM3FVPROC)(GLint location, GLsizei count, const GLfloat* value); -GLAPI PFNGLUNIFORM3FVPROC glad_glUniform3fv; -#define glUniform3fv glad_glUniform3fv -typedef void (APIENTRYP PFNGLUNIFORM4FVPROC)(GLint location, GLsizei count, const GLfloat* value); -GLAPI PFNGLUNIFORM4FVPROC glad_glUniform4fv; -#define glUniform4fv glad_glUniform4fv -typedef void (APIENTRYP PFNGLUNIFORM1IVPROC)(GLint location, GLsizei count, const GLint* value); -GLAPI PFNGLUNIFORM1IVPROC glad_glUniform1iv; -#define glUniform1iv glad_glUniform1iv -typedef void (APIENTRYP PFNGLUNIFORM2IVPROC)(GLint location, GLsizei count, const GLint* value); -GLAPI PFNGLUNIFORM2IVPROC glad_glUniform2iv; -#define glUniform2iv glad_glUniform2iv -typedef void (APIENTRYP PFNGLUNIFORM3IVPROC)(GLint location, GLsizei count, const GLint* value); -GLAPI PFNGLUNIFORM3IVPROC glad_glUniform3iv; -#define glUniform3iv glad_glUniform3iv -typedef void (APIENTRYP PFNGLUNIFORM4IVPROC)(GLint location, GLsizei count, const GLint* value); -GLAPI PFNGLUNIFORM4IVPROC glad_glUniform4iv; -#define glUniform4iv glad_glUniform4iv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; -#define glUniformMatrix2fv glad_glUniformMatrix2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -#define glUniformMatrix3fv glad_glUniformMatrix3fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; -#define glUniformMatrix4fv glad_glUniformMatrix4fv -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC)(GLuint program); -GLAPI PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -#define glValidateProgram glad_glValidateProgram -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC)(GLuint index, GLdouble x); -GLAPI PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -#define glVertexAttrib1d glad_glVertexAttrib1d -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC)(GLuint index, const GLdouble* v); -GLAPI PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -#define glVertexAttrib1dv glad_glVertexAttrib1dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC)(GLuint index, GLfloat x); -GLAPI PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; -#define glVertexAttrib1f glad_glVertexAttrib1f -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC)(GLuint index, const GLfloat* v); -GLAPI PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; -#define glVertexAttrib1fv glad_glVertexAttrib1fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC)(GLuint index, GLshort x); -GLAPI PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -#define glVertexAttrib1s glad_glVertexAttrib1s -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC)(GLuint index, const GLshort* v); -GLAPI PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -#define glVertexAttrib1sv glad_glVertexAttrib1sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC)(GLuint index, GLdouble x, GLdouble y); -GLAPI PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -#define glVertexAttrib2d glad_glVertexAttrib2d -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC)(GLuint index, const GLdouble* v); -GLAPI PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -#define glVertexAttrib2dv glad_glVertexAttrib2dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC)(GLuint index, GLfloat x, GLfloat y); -GLAPI PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -#define glVertexAttrib2f glad_glVertexAttrib2f -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC)(GLuint index, const GLfloat* v); -GLAPI PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -#define glVertexAttrib2fv glad_glVertexAttrib2fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC)(GLuint index, GLshort x, GLshort y); -GLAPI PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -#define glVertexAttrib2s glad_glVertexAttrib2s -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC)(GLuint index, const GLshort* v); -GLAPI PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -#define glVertexAttrib2sv glad_glVertexAttrib2sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -#define glVertexAttrib3d glad_glVertexAttrib3d -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC)(GLuint index, const GLdouble* v); -GLAPI PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; -#define glVertexAttrib3dv glad_glVertexAttrib3dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; -#define glVertexAttrib3f glad_glVertexAttrib3f -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC)(GLuint index, const GLfloat* v); -GLAPI PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -#define glVertexAttrib3fv glad_glVertexAttrib3fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC)(GLuint index, GLshort x, GLshort y, GLshort z); -GLAPI PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -#define glVertexAttrib3s glad_glVertexAttrib3s -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC)(GLuint index, const GLshort* v); -GLAPI PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -#define glVertexAttrib3sv glad_glVertexAttrib3sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC)(GLuint index, const GLbyte* v); -GLAPI PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -#define glVertexAttrib4Nbv glad_glVertexAttrib4Nbv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC)(GLuint index, const GLint* v); -GLAPI PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -#define glVertexAttrib4Niv glad_glVertexAttrib4Niv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC)(GLuint index, const GLshort* v); -GLAPI PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -#define glVertexAttrib4Nsv glad_glVertexAttrib4Nsv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -GLAPI PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -#define glVertexAttrib4Nub glad_glVertexAttrib4Nub -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC)(GLuint index, const GLubyte* v); -GLAPI PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -#define glVertexAttrib4Nubv glad_glVertexAttrib4Nubv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC)(GLuint index, const GLuint* v); -GLAPI PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -#define glVertexAttrib4Nuiv glad_glVertexAttrib4Nuiv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC)(GLuint index, const GLushort* v); -GLAPI PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -#define glVertexAttrib4Nusv glad_glVertexAttrib4Nusv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC)(GLuint index, const GLbyte* v); -GLAPI PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -#define glVertexAttrib4bv glad_glVertexAttrib4bv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; -#define glVertexAttrib4d glad_glVertexAttrib4d -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC)(GLuint index, const GLdouble* v); -GLAPI PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -#define glVertexAttrib4dv glad_glVertexAttrib4dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -#define glVertexAttrib4f glad_glVertexAttrib4f -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC)(GLuint index, const GLfloat* v); -GLAPI PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; -#define glVertexAttrib4fv glad_glVertexAttrib4fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC)(GLuint index, const GLint* v); -GLAPI PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; -#define glVertexAttrib4iv glad_glVertexAttrib4iv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -#define glVertexAttrib4s glad_glVertexAttrib4s -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC)(GLuint index, const GLshort* v); -GLAPI PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -#define glVertexAttrib4sv glad_glVertexAttrib4sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC)(GLuint index, const GLubyte* v); -GLAPI PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; -#define glVertexAttrib4ubv glad_glVertexAttrib4ubv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC)(GLuint index, const GLuint* v); -GLAPI PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -#define glVertexAttrib4uiv glad_glVertexAttrib4uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC)(GLuint index, const GLushort* v); -GLAPI PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -#define glVertexAttrib4usv glad_glVertexAttrib4usv -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); -GLAPI PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -#define glVertexAttribPointer glad_glVertexAttribPointer -#endif -#ifndef GL_VERSION_2_1 -#define GL_VERSION_2_1 1 -GLAPI int GLAD_GL_VERSION_2_1; -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -#define glUniformMatrix2x3fv glad_glUniformMatrix2x3fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -#define glUniformMatrix3x2fv glad_glUniformMatrix3x2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; -#define glUniformMatrix2x4fv glad_glUniformMatrix2x4fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -#define glUniformMatrix4x2fv glad_glUniformMatrix4x2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -#define glUniformMatrix3x4fv glad_glUniformMatrix3x4fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -GLAPI PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -#define glUniformMatrix4x3fv glad_glUniformMatrix4x3fv -#endif -#ifndef GL_VERSION_3_0 -#define GL_VERSION_3_0 1 -GLAPI int GLAD_GL_VERSION_3_0; -typedef void (APIENTRYP PFNGLCOLORMASKIPROC)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -GLAPI PFNGLCOLORMASKIPROC glad_glColorMaski; -#define glColorMaski glad_glColorMaski -typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC)(GLenum target, GLuint index, GLboolean* data); -GLAPI PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -#define glGetBooleani_v glad_glGetBooleani_v -typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC)(GLenum target, GLuint index, GLint* data); -GLAPI PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -#define glGetIntegeri_v glad_glGetIntegeri_v -typedef void (APIENTRYP PFNGLENABLEIPROC)(GLenum target, GLuint index); -GLAPI PFNGLENABLEIPROC glad_glEnablei; -#define glEnablei glad_glEnablei -typedef void (APIENTRYP PFNGLDISABLEIPROC)(GLenum target, GLuint index); -GLAPI PFNGLDISABLEIPROC glad_glDisablei; -#define glDisablei glad_glDisablei -typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC)(GLenum target, GLuint index); -GLAPI PFNGLISENABLEDIPROC glad_glIsEnabledi; -#define glIsEnabledi glad_glIsEnabledi -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC)(GLenum primitiveMode); -GLAPI PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -#define glBeginTransformFeedback glad_glBeginTransformFeedback -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC)(); -GLAPI PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -#define glEndTransformFeedback glad_glEndTransformFeedback -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -#define glBindBufferRange glad_glBindBufferRange -typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC)(GLenum target, GLuint index, GLuint buffer); -GLAPI PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -#define glBindBufferBase glad_glBindBufferBase -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC)(GLuint program, GLsizei count, const GLchar** varyings, GLenum bufferMode); -GLAPI PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -#define glTransformFeedbackVaryings glad_glTransformFeedbackVaryings -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name); -GLAPI PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -#define glGetTransformFeedbackVarying glad_glGetTransformFeedbackVarying -typedef void (APIENTRYP PFNGLCLAMPCOLORPROC)(GLenum target, GLenum clamp); -GLAPI PFNGLCLAMPCOLORPROC glad_glClampColor; -#define glClampColor glad_glClampColor -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC)(GLuint id, GLenum mode); -GLAPI PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; -#define glBeginConditionalRender glad_glBeginConditionalRender -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC)(); -GLAPI PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -#define glEndConditionalRender glad_glEndConditionalRender -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC)(GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); -GLAPI PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -#define glVertexAttribIPointer glad_glVertexAttribIPointer -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC)(GLuint index, GLenum pname, GLint* params); -GLAPI PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -#define glGetVertexAttribIiv glad_glGetVertexAttribIiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC)(GLuint index, GLenum pname, GLuint* params); -GLAPI PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -#define glGetVertexAttribIuiv glad_glGetVertexAttribIuiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC)(GLuint index, GLint x); -GLAPI PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; -#define glVertexAttribI1i glad_glVertexAttribI1i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC)(GLuint index, GLint x, GLint y); -GLAPI PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; -#define glVertexAttribI2i glad_glVertexAttribI2i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC)(GLuint index, GLint x, GLint y, GLint z); -GLAPI PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -#define glVertexAttribI3i glad_glVertexAttribI3i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC)(GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -#define glVertexAttribI4i glad_glVertexAttribI4i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC)(GLuint index, GLuint x); -GLAPI PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -#define glVertexAttribI1ui glad_glVertexAttribI1ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC)(GLuint index, GLuint x, GLuint y); -GLAPI PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -#define glVertexAttribI2ui glad_glVertexAttribI2ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC)(GLuint index, GLuint x, GLuint y, GLuint z); -GLAPI PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -#define glVertexAttribI3ui glad_glVertexAttribI3ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC)(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -#define glVertexAttribI4ui glad_glVertexAttribI4ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC)(GLuint index, const GLint* v); -GLAPI PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -#define glVertexAttribI1iv glad_glVertexAttribI1iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC)(GLuint index, const GLint* v); -GLAPI PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -#define glVertexAttribI2iv glad_glVertexAttribI2iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC)(GLuint index, const GLint* v); -GLAPI PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -#define glVertexAttribI3iv glad_glVertexAttribI3iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC)(GLuint index, const GLint* v); -GLAPI PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -#define glVertexAttribI4iv glad_glVertexAttribI4iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC)(GLuint index, const GLuint* v); -GLAPI PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -#define glVertexAttribI1uiv glad_glVertexAttribI1uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC)(GLuint index, const GLuint* v); -GLAPI PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -#define glVertexAttribI2uiv glad_glVertexAttribI2uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC)(GLuint index, const GLuint* v); -GLAPI PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -#define glVertexAttribI3uiv glad_glVertexAttribI3uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC)(GLuint index, const GLuint* v); -GLAPI PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -#define glVertexAttribI4uiv glad_glVertexAttribI4uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC)(GLuint index, const GLbyte* v); -GLAPI PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -#define glVertexAttribI4bv glad_glVertexAttribI4bv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC)(GLuint index, const GLshort* v); -GLAPI PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -#define glVertexAttribI4sv glad_glVertexAttribI4sv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC)(GLuint index, const GLubyte* v); -GLAPI PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -#define glVertexAttribI4ubv glad_glVertexAttribI4ubv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC)(GLuint index, const GLushort* v); -GLAPI PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -#define glVertexAttribI4usv glad_glVertexAttribI4usv -typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC)(GLuint program, GLint location, GLuint* params); -GLAPI PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; -#define glGetUniformuiv glad_glGetUniformuiv -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC)(GLuint program, GLuint color, const GLchar* name); -GLAPI PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -#define glBindFragDataLocation glad_glBindFragDataLocation -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC)(GLuint program, const GLchar* name); -GLAPI PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -#define glGetFragDataLocation glad_glGetFragDataLocation -typedef void (APIENTRYP PFNGLUNIFORM1UIPROC)(GLint location, GLuint v0); -GLAPI PFNGLUNIFORM1UIPROC glad_glUniform1ui; -#define glUniform1ui glad_glUniform1ui -typedef void (APIENTRYP PFNGLUNIFORM2UIPROC)(GLint location, GLuint v0, GLuint v1); -GLAPI PFNGLUNIFORM2UIPROC glad_glUniform2ui; -#define glUniform2ui glad_glUniform2ui -typedef void (APIENTRYP PFNGLUNIFORM3UIPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI PFNGLUNIFORM3UIPROC glad_glUniform3ui; -#define glUniform3ui glad_glUniform3ui -typedef void (APIENTRYP PFNGLUNIFORM4UIPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI PFNGLUNIFORM4UIPROC glad_glUniform4ui; -#define glUniform4ui glad_glUniform4ui -typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC)(GLint location, GLsizei count, const GLuint* value); -GLAPI PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -#define glUniform1uiv glad_glUniform1uiv -typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC)(GLint location, GLsizei count, const GLuint* value); -GLAPI PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -#define glUniform2uiv glad_glUniform2uiv -typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC)(GLint location, GLsizei count, const GLuint* value); -GLAPI PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -#define glUniform3uiv glad_glUniform3uiv -typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC)(GLint location, GLsizei count, const GLuint* value); -GLAPI PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -#define glUniform4uiv glad_glUniform4uiv -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC)(GLenum target, GLenum pname, const GLint* params); -GLAPI PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -#define glTexParameterIiv glad_glTexParameterIiv -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC)(GLenum target, GLenum pname, const GLuint* params); -GLAPI PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; -#define glTexParameterIuiv glad_glTexParameterIuiv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC)(GLenum target, GLenum pname, GLint* params); -GLAPI PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -#define glGetTexParameterIiv glad_glGetTexParameterIiv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC)(GLenum target, GLenum pname, GLuint* params); -GLAPI PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; -#define glGetTexParameterIuiv glad_glGetTexParameterIuiv -typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC)(GLenum buffer, GLint drawbuffer, const GLint* value); -GLAPI PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -#define glClearBufferiv glad_glClearBufferiv -typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC)(GLenum buffer, GLint drawbuffer, const GLuint* value); -GLAPI PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -#define glClearBufferuiv glad_glClearBufferuiv -typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC)(GLenum buffer, GLint drawbuffer, const GLfloat* value); -GLAPI PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; -#define glClearBufferfv glad_glClearBufferfv -typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC)(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); -GLAPI PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -#define glClearBufferfi glad_glClearBufferfi -typedef const GLubyte* (APIENTRYP PFNGLGETSTRINGIPROC)(GLenum name, GLuint index); -GLAPI PFNGLGETSTRINGIPROC glad_glGetStringi; -#define glGetStringi glad_glGetStringi -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC)(GLuint renderbuffer); -GLAPI PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -#define glIsRenderbuffer glad_glIsRenderbuffer -typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC)(GLenum target, GLuint renderbuffer); -GLAPI PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -#define glBindRenderbuffer glad_glBindRenderbuffer -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC)(GLsizei n, const GLuint* renderbuffers); -GLAPI PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -#define glDeleteRenderbuffers glad_glDeleteRenderbuffers -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC)(GLsizei n, GLuint* renderbuffers); -GLAPI PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -#define glGenRenderbuffers glad_glGenRenderbuffers -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -#define glRenderbufferStorage glad_glRenderbufferStorage -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint* params); -GLAPI PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -#define glGetRenderbufferParameteriv glad_glGetRenderbufferParameteriv -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC)(GLuint framebuffer); -GLAPI PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -#define glIsFramebuffer glad_glIsFramebuffer -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC)(GLenum target, GLuint framebuffer); -GLAPI PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -#define glBindFramebuffer glad_glBindFramebuffer -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC)(GLsizei n, const GLuint* framebuffers); -GLAPI PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -#define glDeleteFramebuffers glad_glDeleteFramebuffers -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC)(GLsizei n, GLuint* framebuffers); -GLAPI PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -#define glGenFramebuffers glad_glGenFramebuffers -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target); -GLAPI PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -#define glCheckFramebufferStatus glad_glCheckFramebufferStatus -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -#define glFramebufferTexture1D glad_glFramebufferTexture1D -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -#define glFramebufferTexture2D glad_glFramebufferTexture2D -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -#define glFramebufferTexture3D glad_glFramebufferTexture3D -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -#define glFramebufferRenderbuffer glad_glFramebufferRenderbuffer -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)(GLenum target, GLenum attachment, GLenum pname, GLint* params); -GLAPI PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -#define glGetFramebufferAttachmentParameteriv glad_glGetFramebufferAttachmentParameteriv -typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC)(GLenum target); -GLAPI PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -#define glGenerateMipmap glad_glGenerateMipmap -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; -#define glBlitFramebuffer glad_glBlitFramebuffer -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; -#define glRenderbufferStorageMultisample glad_glRenderbufferStorageMultisample -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -#define glFramebufferTextureLayer glad_glFramebufferTextureLayer -typedef void* (APIENTRYP PFNGLMAPBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -GLAPI PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -#define glMapBufferRange glad_glMapBufferRange -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length); -GLAPI PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -#define glFlushMappedBufferRange glad_glFlushMappedBufferRange -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC)(GLuint array); -GLAPI PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -#define glBindVertexArray glad_glBindVertexArray -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC)(GLsizei n, const GLuint* arrays); -GLAPI PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -#define glDeleteVertexArrays glad_glDeleteVertexArrays -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC)(GLsizei n, GLuint* arrays); -GLAPI PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -#define glGenVertexArrays glad_glGenVertexArrays -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC)(GLuint array); -GLAPI PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -#define glIsVertexArray glad_glIsVertexArray -#endif -#ifndef GL_VERSION_3_1 -#define GL_VERSION_3_1 1 -GLAPI int GLAD_GL_VERSION_3_1; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); -GLAPI PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; -#define glDrawArraysInstanced glad_glDrawArraysInstanced -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC)(GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount); -GLAPI PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -#define glDrawElementsInstanced glad_glDrawElementsInstanced -typedef void (APIENTRYP PFNGLTEXBUFFERPROC)(GLenum target, GLenum internalformat, GLuint buffer); -GLAPI PFNGLTEXBUFFERPROC glad_glTexBuffer; -#define glTexBuffer glad_glTexBuffer -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC)(GLuint index); -GLAPI PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -#define glPrimitiveRestartIndex glad_glPrimitiveRestartIndex -typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; -#define glCopyBufferSubData glad_glCopyBufferSubData -typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC)(GLuint program, GLsizei uniformCount, const GLchar** uniformNames, GLuint* uniformIndices); -GLAPI PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -#define glGetUniformIndices glad_glGetUniformIndices -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC)(GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params); -GLAPI PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -#define glGetActiveUniformsiv glad_glGetActiveUniformsiv -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName); -GLAPI PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -#define glGetActiveUniformName glad_glGetActiveUniformName -typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC)(GLuint program, const GLchar* uniformBlockName); -GLAPI PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; -#define glGetUniformBlockIndex glad_glGetUniformBlockIndex -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params); -GLAPI PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; -#define glGetActiveUniformBlockiv glad_glGetActiveUniformBlockiv -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName); -GLAPI PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -#define glGetActiveUniformBlockName glad_glGetActiveUniformBlockName -typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); -GLAPI PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -#define glUniformBlockBinding glad_glUniformBlockBinding -#endif -#ifndef GL_VERSION_3_2 -#define GL_VERSION_3_2 1 -GLAPI int GLAD_GL_VERSION_3_2; -typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC)(GLenum mode, GLsizei count, GLenum type, const void* indices, GLint basevertex); -GLAPI PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -#define glDrawElementsBaseVertex glad_glDrawElementsBaseVertex -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void* indices, GLint basevertex); -GLAPI PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -#define glDrawRangeElementsBaseVertex glad_glDrawRangeElementsBaseVertex -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)(GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount, GLint basevertex); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -#define glDrawElementsInstancedBaseVertex glad_glDrawElementsInstancedBaseVertex -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)(GLenum mode, const GLsizei* count, GLenum type, const void** indices, GLsizei drawcount, const GLint* basevertex); -GLAPI PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; -#define glMultiDrawElementsBaseVertex glad_glMultiDrawElementsBaseVertex -typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC)(GLenum mode); -GLAPI PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -#define glProvokingVertex glad_glProvokingVertex -typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC)(GLenum condition, GLbitfield flags); -GLAPI PFNGLFENCESYNCPROC glad_glFenceSync; -#define glFenceSync glad_glFenceSync -typedef GLboolean (APIENTRYP PFNGLISSYNCPROC)(GLsync sync); -GLAPI PFNGLISSYNCPROC glad_glIsSync; -#define glIsSync glad_glIsSync -typedef void (APIENTRYP PFNGLDELETESYNCPROC)(GLsync sync); -GLAPI PFNGLDELETESYNCPROC glad_glDeleteSync; -#define glDeleteSync glad_glDeleteSync -typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -#define glClientWaitSync glad_glClientWaitSync -typedef void (APIENTRYP PFNGLWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI PFNGLWAITSYNCPROC glad_glWaitSync; -#define glWaitSync glad_glWaitSync -typedef void (APIENTRYP PFNGLGETINTEGER64VPROC)(GLenum pname, GLint64* data); -GLAPI PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -#define glGetInteger64v glad_glGetInteger64v -typedef void (APIENTRYP PFNGLGETSYNCIVPROC)(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length, GLint* values); -GLAPI PFNGLGETSYNCIVPROC glad_glGetSynciv; -#define glGetSynciv glad_glGetSynciv -typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC)(GLenum target, GLuint index, GLint64* data); -GLAPI PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -#define glGetInteger64i_v glad_glGetInteger64i_v -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC)(GLenum target, GLenum pname, GLint64* params); -GLAPI PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; -#define glGetBufferParameteri64v glad_glGetBufferParameteri64v -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -#define glFramebufferTexture glad_glFramebufferTexture -typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -#define glTexImage2DMultisample glad_glTexImage2DMultisample -typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -#define glTexImage3DMultisample glad_glTexImage3DMultisample -typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC)(GLenum pname, GLuint index, GLfloat* val); -GLAPI PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -#define glGetMultisamplefv glad_glGetMultisamplefv -typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC)(GLuint maskNumber, GLbitfield mask); -GLAPI PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -#define glSampleMaski glad_glSampleMaski -#endif -#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 -#define GL_SINGLE_COLOR_EXT 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA -#define GL_MULTISAMPLE_ARB 0x809D -#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F -#define GL_SAMPLE_COVERAGE_ARB 0x80A0 -#define GL_SAMPLE_BUFFERS_ARB 0x80A8 -#define GL_SAMPLES_ARB 0x80A9 -#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA -#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB -#define GL_MULTISAMPLE_BIT_ARB 0x20000000 -#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 -#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 -#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 -#ifndef GL_EXT_separate_specular_color -#define GL_EXT_separate_specular_color 1 -GLAPI int GLAD_GL_EXT_separate_specular_color; -#endif -#ifndef GL_ARB_multisample -#define GL_ARB_multisample 1 -GLAPI int GLAD_GL_ARB_multisample; -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC)(GLfloat value, GLboolean invert); -GLAPI PFNGLSAMPLECOVERAGEARBPROC glad_glSampleCoverageARB; -#define glSampleCoverageARB glad_glSampleCoverageARB -#endif -#ifndef GL_ARB_robustness -#define GL_ARB_robustness 1 -GLAPI int GLAD_GL_ARB_robustness; -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC)(); -GLAPI PFNGLGETGRAPHICSRESETSTATUSARBPROC glad_glGetGraphicsResetStatusARB; -#define glGetGraphicsResetStatusARB glad_glGetGraphicsResetStatusARB -typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC)(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* img); -GLAPI PFNGLGETNTEXIMAGEARBPROC glad_glGetnTexImageARB; -#define glGetnTexImageARB glad_glGetnTexImageARB -typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data); -GLAPI PFNGLREADNPIXELSARBPROC glad_glReadnPixelsARB; -#define glReadnPixelsARB glad_glReadnPixelsARB -typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC)(GLenum target, GLint lod, GLsizei bufSize, void* img); -GLAPI PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC glad_glGetnCompressedTexImageARB; -#define glGetnCompressedTexImageARB glad_glGetnCompressedTexImageARB -typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLfloat* params); -GLAPI PFNGLGETNUNIFORMFVARBPROC glad_glGetnUniformfvARB; -#define glGetnUniformfvARB glad_glGetnUniformfvARB -typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLint* params); -GLAPI PFNGLGETNUNIFORMIVARBPROC glad_glGetnUniformivARB; -#define glGetnUniformivARB glad_glGetnUniformivARB -typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLuint* params); -GLAPI PFNGLGETNUNIFORMUIVARBPROC glad_glGetnUniformuivARB; -#define glGetnUniformuivARB glad_glGetnUniformuivARB -typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLdouble* params); -GLAPI PFNGLGETNUNIFORMDVARBPROC glad_glGetnUniformdvARB; -#define glGetnUniformdvARB glad_glGetnUniformdvARB -typedef void (APIENTRYP PFNGLGETNMAPDVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLdouble* v); -GLAPI PFNGLGETNMAPDVARBPROC glad_glGetnMapdvARB; -#define glGetnMapdvARB glad_glGetnMapdvARB -typedef void (APIENTRYP PFNGLGETNMAPFVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLfloat* v); -GLAPI PFNGLGETNMAPFVARBPROC glad_glGetnMapfvARB; -#define glGetnMapfvARB glad_glGetnMapfvARB -typedef void (APIENTRYP PFNGLGETNMAPIVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLint* v); -GLAPI PFNGLGETNMAPIVARBPROC glad_glGetnMapivARB; -#define glGetnMapivARB glad_glGetnMapivARB -typedef void (APIENTRYP PFNGLGETNPIXELMAPFVARBPROC)(GLenum map, GLsizei bufSize, GLfloat* values); -GLAPI PFNGLGETNPIXELMAPFVARBPROC glad_glGetnPixelMapfvARB; -#define glGetnPixelMapfvARB glad_glGetnPixelMapfvARB -typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVARBPROC)(GLenum map, GLsizei bufSize, GLuint* values); -GLAPI PFNGLGETNPIXELMAPUIVARBPROC glad_glGetnPixelMapuivARB; -#define glGetnPixelMapuivARB glad_glGetnPixelMapuivARB -typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVARBPROC)(GLenum map, GLsizei bufSize, GLushort* values); -GLAPI PFNGLGETNPIXELMAPUSVARBPROC glad_glGetnPixelMapusvARB; -#define glGetnPixelMapusvARB glad_glGetnPixelMapusvARB -typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEARBPROC)(GLsizei bufSize, GLubyte* pattern); -GLAPI PFNGLGETNPOLYGONSTIPPLEARBPROC glad_glGetnPolygonStippleARB; -#define glGetnPolygonStippleARB glad_glGetnPolygonStippleARB -typedef void (APIENTRYP PFNGLGETNCOLORTABLEARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table); -GLAPI PFNGLGETNCOLORTABLEARBPROC glad_glGetnColorTableARB; -#define glGetnColorTableARB glad_glGetnColorTableARB -typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image); -GLAPI PFNGLGETNCONVOLUTIONFILTERARBPROC glad_glGetnConvolutionFilterARB; -#define glGetnConvolutionFilterARB glad_glGetnConvolutionFilterARB -typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, void* column, void* span); -GLAPI PFNGLGETNSEPARABLEFILTERARBPROC glad_glGetnSeparableFilterARB; -#define glGetnSeparableFilterARB glad_glGetnSeparableFilterARB -typedef void (APIENTRYP PFNGLGETNHISTOGRAMARBPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); -GLAPI PFNGLGETNHISTOGRAMARBPROC glad_glGetnHistogramARB; -#define glGetnHistogramARB glad_glGetnHistogramARB -typedef void (APIENTRYP PFNGLGETNMINMAXARBPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); -GLAPI PFNGLGETNMINMAXARBPROC glad_glGetnMinmaxARB; -#define glGetnMinmaxARB glad_glGetnMinmaxARB -#endif - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/linmath.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/linmath.h deleted file mode 100644 index 5732a76..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/linmath.h +++ /dev/null @@ -1,574 +0,0 @@ -#ifndef LINMATH_H -#define LINMATH_H - -#include - -#ifdef _MSC_VER -#define inline __inline -#endif - -#define LINMATH_H_DEFINE_VEC(n) \ -typedef float vec##n[n]; \ -static inline void vec##n##_add(vec##n r, vec##n const a, vec##n const b) \ -{ \ - int i; \ - for(i=0; i 1e-4) { - mat4x4 T, C, S; - - vec3_norm(u, u); - mat4x4_from_vec3_mul_outer(T, u, u); - - S[1][2] = u[0]; - S[2][1] = -u[0]; - S[2][0] = u[1]; - S[0][2] = -u[1]; - S[0][1] = u[2]; - S[1][0] = -u[2]; - - mat4x4_scale(S, S, s); - - mat4x4_identity(C); - mat4x4_sub(C, C, T); - - mat4x4_scale(C, C, c); - - mat4x4_add(T, T, C); - mat4x4_add(T, T, S); - - T[3][3] = 1.; - mat4x4_mul(R, M, T); - } else { - mat4x4_dup(R, M); - } -} -static inline void mat4x4_rotate_X(mat4x4 Q, mat4x4 M, float angle) -{ - float s = sinf(angle); - float c = cosf(angle); - mat4x4 R = { - {1.f, 0.f, 0.f, 0.f}, - {0.f, c, s, 0.f}, - {0.f, -s, c, 0.f}, - {0.f, 0.f, 0.f, 1.f} - }; - mat4x4_mul(Q, M, R); -} -static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 M, float angle) -{ - float s = sinf(angle); - float c = cosf(angle); - mat4x4 R = { - { c, 0.f, s, 0.f}, - { 0.f, 1.f, 0.f, 0.f}, - { -s, 0.f, c, 0.f}, - { 0.f, 0.f, 0.f, 1.f} - }; - mat4x4_mul(Q, M, R); -} -static inline void mat4x4_rotate_Z(mat4x4 Q, mat4x4 M, float angle) -{ - float s = sinf(angle); - float c = cosf(angle); - mat4x4 R = { - { c, s, 0.f, 0.f}, - { -s, c, 0.f, 0.f}, - { 0.f, 0.f, 1.f, 0.f}, - { 0.f, 0.f, 0.f, 1.f} - }; - mat4x4_mul(Q, M, R); -} -static inline void mat4x4_invert(mat4x4 T, mat4x4 M) -{ - float idet; - float s[6]; - float c[6]; - s[0] = M[0][0]*M[1][1] - M[1][0]*M[0][1]; - s[1] = M[0][0]*M[1][2] - M[1][0]*M[0][2]; - s[2] = M[0][0]*M[1][3] - M[1][0]*M[0][3]; - s[3] = M[0][1]*M[1][2] - M[1][1]*M[0][2]; - s[4] = M[0][1]*M[1][3] - M[1][1]*M[0][3]; - s[5] = M[0][2]*M[1][3] - M[1][2]*M[0][3]; - - c[0] = M[2][0]*M[3][1] - M[3][0]*M[2][1]; - c[1] = M[2][0]*M[3][2] - M[3][0]*M[2][2]; - c[2] = M[2][0]*M[3][3] - M[3][0]*M[2][3]; - c[3] = M[2][1]*M[3][2] - M[3][1]*M[2][2]; - c[4] = M[2][1]*M[3][3] - M[3][1]*M[2][3]; - c[5] = M[2][2]*M[3][3] - M[3][2]*M[2][3]; - - /* Assumes it is invertible */ - idet = 1.0f/( s[0]*c[5]-s[1]*c[4]+s[2]*c[3]+s[3]*c[2]-s[4]*c[1]+s[5]*c[0] ); - - T[0][0] = ( M[1][1] * c[5] - M[1][2] * c[4] + M[1][3] * c[3]) * idet; - T[0][1] = (-M[0][1] * c[5] + M[0][2] * c[4] - M[0][3] * c[3]) * idet; - T[0][2] = ( M[3][1] * s[5] - M[3][2] * s[4] + M[3][3] * s[3]) * idet; - T[0][3] = (-M[2][1] * s[5] + M[2][2] * s[4] - M[2][3] * s[3]) * idet; - - T[1][0] = (-M[1][0] * c[5] + M[1][2] * c[2] - M[1][3] * c[1]) * idet; - T[1][1] = ( M[0][0] * c[5] - M[0][2] * c[2] + M[0][3] * c[1]) * idet; - T[1][2] = (-M[3][0] * s[5] + M[3][2] * s[2] - M[3][3] * s[1]) * idet; - T[1][3] = ( M[2][0] * s[5] - M[2][2] * s[2] + M[2][3] * s[1]) * idet; - - T[2][0] = ( M[1][0] * c[4] - M[1][1] * c[2] + M[1][3] * c[0]) * idet; - T[2][1] = (-M[0][0] * c[4] + M[0][1] * c[2] - M[0][3] * c[0]) * idet; - T[2][2] = ( M[3][0] * s[4] - M[3][1] * s[2] + M[3][3] * s[0]) * idet; - T[2][3] = (-M[2][0] * s[4] + M[2][1] * s[2] - M[2][3] * s[0]) * idet; - - T[3][0] = (-M[1][0] * c[3] + M[1][1] * c[1] - M[1][2] * c[0]) * idet; - T[3][1] = ( M[0][0] * c[3] - M[0][1] * c[1] + M[0][2] * c[0]) * idet; - T[3][2] = (-M[3][0] * s[3] + M[3][1] * s[1] - M[3][2] * s[0]) * idet; - T[3][3] = ( M[2][0] * s[3] - M[2][1] * s[1] + M[2][2] * s[0]) * idet; -} -static inline void mat4x4_orthonormalize(mat4x4 R, mat4x4 M) -{ - float s = 1.; - vec3 h; - - mat4x4_dup(R, M); - vec3_norm(R[2], R[2]); - - s = vec3_mul_inner(R[1], R[2]); - vec3_scale(h, R[2], s); - vec3_sub(R[1], R[1], h); - vec3_norm(R[2], R[2]); - - s = vec3_mul_inner(R[1], R[2]); - vec3_scale(h, R[2], s); - vec3_sub(R[1], R[1], h); - vec3_norm(R[1], R[1]); - - s = vec3_mul_inner(R[0], R[1]); - vec3_scale(h, R[1], s); - vec3_sub(R[0], R[0], h); - vec3_norm(R[0], R[0]); -} - -static inline void mat4x4_frustum(mat4x4 M, float l, float r, float b, float t, float n, float f) -{ - M[0][0] = 2.f*n/(r-l); - M[0][1] = M[0][2] = M[0][3] = 0.f; - - M[1][1] = 2.f*n/(t-b); - M[1][0] = M[1][2] = M[1][3] = 0.f; - - M[2][0] = (r+l)/(r-l); - M[2][1] = (t+b)/(t-b); - M[2][2] = -(f+n)/(f-n); - M[2][3] = -1.f; - - M[3][2] = -2.f*(f*n)/(f-n); - M[3][0] = M[3][1] = M[3][3] = 0.f; -} -static inline void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, float n, float f) -{ - M[0][0] = 2.f/(r-l); - M[0][1] = M[0][2] = M[0][3] = 0.f; - - M[1][1] = 2.f/(t-b); - M[1][0] = M[1][2] = M[1][3] = 0.f; - - M[2][2] = -2.f/(f-n); - M[2][0] = M[2][1] = M[2][3] = 0.f; - - M[3][0] = -(r+l)/(r-l); - M[3][1] = -(t+b)/(t-b); - M[3][2] = -(f+n)/(f-n); - M[3][3] = 1.f; -} -static inline void mat4x4_perspective(mat4x4 m, float y_fov, float aspect, float n, float f) -{ - /* NOTE: Degrees are an unhandy unit to work with. - * linmath.h uses radians for everything! */ - float const a = 1.f / (float) tan(y_fov / 2.f); - - m[0][0] = a / aspect; - m[0][1] = 0.f; - m[0][2] = 0.f; - m[0][3] = 0.f; - - m[1][0] = 0.f; - m[1][1] = a; - m[1][2] = 0.f; - m[1][3] = 0.f; - - m[2][0] = 0.f; - m[2][1] = 0.f; - m[2][2] = -((f + n) / (f - n)); - m[2][3] = -1.f; - - m[3][0] = 0.f; - m[3][1] = 0.f; - m[3][2] = -((2.f * f * n) / (f - n)); - m[3][3] = 0.f; -} -static inline void mat4x4_look_at(mat4x4 m, vec3 eye, vec3 center, vec3 up) -{ - /* Adapted from Android's OpenGL Matrix.java. */ - /* See the OpenGL GLUT documentation for gluLookAt for a description */ - /* of the algorithm. We implement it in a straightforward way: */ - - /* TODO: The negation of of can be spared by swapping the order of - * operands in the following cross products in the right way. */ - vec3 f; - vec3 s; - vec3 t; - - vec3_sub(f, center, eye); - vec3_norm(f, f); - - vec3_mul_cross(s, f, up); - vec3_norm(s, s); - - vec3_mul_cross(t, s, f); - - m[0][0] = s[0]; - m[0][1] = t[0]; - m[0][2] = -f[0]; - m[0][3] = 0.f; - - m[1][0] = s[1]; - m[1][1] = t[1]; - m[1][2] = -f[1]; - m[1][3] = 0.f; - - m[2][0] = s[2]; - m[2][1] = t[2]; - m[2][2] = -f[2]; - m[2][3] = 0.f; - - m[3][0] = 0.f; - m[3][1] = 0.f; - m[3][2] = 0.f; - m[3][3] = 1.f; - - mat4x4_translate_in_place(m, -eye[0], -eye[1], -eye[2]); -} - -typedef float quat[4]; -static inline void quat_identity(quat q) -{ - q[0] = q[1] = q[2] = 0.f; - q[3] = 1.f; -} -static inline void quat_add(quat r, quat a, quat b) -{ - int i; - for(i=0; i<4; ++i) - r[i] = a[i] + b[i]; -} -static inline void quat_sub(quat r, quat a, quat b) -{ - int i; - for(i=0; i<4; ++i) - r[i] = a[i] - b[i]; -} -static inline void quat_mul(quat r, quat p, quat q) -{ - vec3 w; - vec3_mul_cross(r, p, q); - vec3_scale(w, p, q[3]); - vec3_add(r, r, w); - vec3_scale(w, q, p[3]); - vec3_add(r, r, w); - r[3] = p[3]*q[3] - vec3_mul_inner(p, q); -} -static inline void quat_scale(quat r, quat v, float s) -{ - int i; - for(i=0; i<4; ++i) - r[i] = v[i] * s; -} -static inline float quat_inner_product(quat a, quat b) -{ - float p = 0.f; - int i; - for(i=0; i<4; ++i) - p += b[i]*a[i]; - return p; -} -static inline void quat_conj(quat r, quat q) -{ - int i; - for(i=0; i<3; ++i) - r[i] = -q[i]; - r[3] = q[3]; -} -static inline void quat_rotate(quat r, float angle, vec3 axis) { - int i; - vec3 v; - vec3_scale(v, axis, sinf(angle / 2)); - for(i=0; i<3; ++i) - r[i] = v[i]; - r[3] = cosf(angle / 2); -} -#define quat_norm vec4_norm -static inline void quat_mul_vec3(vec3 r, quat q, vec3 v) -{ -/* - * Method by Fabian 'ryg' Giessen (of Farbrausch) -t = 2 * cross(q.xyz, v) -v' = v + q.w * t + cross(q.xyz, t) - */ - vec3 t = {q[0], q[1], q[2]}; - vec3 u = {q[0], q[1], q[2]}; - - vec3_mul_cross(t, t, v); - vec3_scale(t, t, 2); - - vec3_mul_cross(u, u, t); - vec3_scale(t, t, q[3]); - - vec3_add(r, v, t); - vec3_add(r, r, u); -} -static inline void mat4x4_from_quat(mat4x4 M, quat q) -{ - float a = q[3]; - float b = q[0]; - float c = q[1]; - float d = q[2]; - float a2 = a*a; - float b2 = b*b; - float c2 = c*c; - float d2 = d*d; - - M[0][0] = a2 + b2 - c2 - d2; - M[0][1] = 2.f*(b*c + a*d); - M[0][2] = 2.f*(b*d - a*c); - M[0][3] = 0.f; - - M[1][0] = 2*(b*c - a*d); - M[1][1] = a2 - b2 + c2 - d2; - M[1][2] = 2.f*(c*d + a*b); - M[1][3] = 0.f; - - M[2][0] = 2.f*(b*d + a*c); - M[2][1] = 2.f*(c*d - a*b); - M[2][2] = a2 - b2 - c2 + d2; - M[2][3] = 0.f; - - M[3][0] = M[3][1] = M[3][2] = 0.f; - M[3][3] = 1.f; -} - -static inline void mat4x4o_mul_quat(mat4x4 R, mat4x4 M, quat q) -{ -/* XXX: The way this is written only works for othogonal matrices. */ -/* TODO: Take care of non-orthogonal case. */ - quat_mul_vec3(R[0], q, M[0]); - quat_mul_vec3(R[1], q, M[1]); - quat_mul_vec3(R[2], q, M[2]); - - R[3][0] = R[3][1] = R[3][2] = 0.f; - R[3][3] = 1.f; -} -static inline void quat_from_mat4x4(quat q, mat4x4 M) -{ - float r=0.f; - int i; - - int perm[] = { 0, 1, 2, 0, 1 }; - int *p = perm; - - for(i = 0; i<3; i++) { - float m = M[i][i]; - if( m < r ) - continue; - m = r; - p = &perm[i]; - } - - r = (float) sqrt(1.f + M[p[0]][p[0]] - M[p[1]][p[1]] - M[p[2]][p[2]] ); - - if(r < 1e-6) { - q[0] = 1.f; - q[1] = q[2] = q[3] = 0.f; - return; - } - - q[0] = r/2.f; - q[1] = (M[p[0]][p[1]] - M[p[1]][p[0]])/(2.f*r); - q[2] = (M[p[2]][p[0]] - M[p[0]][p[2]])/(2.f*r); - q[3] = (M[p[2]][p[1]] - M[p[1]][p[2]])/(2.f*r); -} - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/_mingw_dxhelper.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/_mingw_dxhelper.h deleted file mode 100644 index 849e291..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/_mingw_dxhelper.h +++ /dev/null @@ -1,117 +0,0 @@ -/** - * This file has no copyright assigned and is placed in the Public Domain. - * This file is part of the mingw-w64 runtime package. - * No warranty is given; refer to the file DISCLAIMER within this package. - */ - -#if defined(_MSC_VER) && !defined(_MSC_EXTENSIONS) -#define NONAMELESSUNION 1 -#endif -#if defined(NONAMELESSSTRUCT) && \ - !defined(NONAMELESSUNION) -#define NONAMELESSUNION 1 -#endif -#if defined(NONAMELESSUNION) && \ - !defined(NONAMELESSSTRUCT) -#define NONAMELESSSTRUCT 1 -#endif -#if !defined(__GNU_EXTENSION) -#if defined(__GNUC__) || defined(__GNUG__) -#define __GNU_EXTENSION __extension__ -#else -#define __GNU_EXTENSION -#endif -#endif /* __extension__ */ - -#ifndef __ANONYMOUS_DEFINED -#define __ANONYMOUS_DEFINED -#if defined(__GNUC__) || defined(__GNUG__) -#define _ANONYMOUS_UNION __extension__ -#define _ANONYMOUS_STRUCT __extension__ -#else -#define _ANONYMOUS_UNION -#define _ANONYMOUS_STRUCT -#endif -#ifndef NONAMELESSUNION -#define _UNION_NAME(x) -#define _STRUCT_NAME(x) -#else /* NONAMELESSUNION */ -#define _UNION_NAME(x) x -#define _STRUCT_NAME(x) x -#endif -#endif /* __ANONYMOUS_DEFINED */ - -#ifndef DUMMYUNIONNAME -# ifdef NONAMELESSUNION -# define DUMMYUNIONNAME u -# define DUMMYUNIONNAME1 u1 /* Wine uses this variant */ -# define DUMMYUNIONNAME2 u2 -# define DUMMYUNIONNAME3 u3 -# define DUMMYUNIONNAME4 u4 -# define DUMMYUNIONNAME5 u5 -# define DUMMYUNIONNAME6 u6 -# define DUMMYUNIONNAME7 u7 -# define DUMMYUNIONNAME8 u8 -# define DUMMYUNIONNAME9 u9 -# else /* NONAMELESSUNION */ -# define DUMMYUNIONNAME -# define DUMMYUNIONNAME1 /* Wine uses this variant */ -# define DUMMYUNIONNAME2 -# define DUMMYUNIONNAME3 -# define DUMMYUNIONNAME4 -# define DUMMYUNIONNAME5 -# define DUMMYUNIONNAME6 -# define DUMMYUNIONNAME7 -# define DUMMYUNIONNAME8 -# define DUMMYUNIONNAME9 -# endif -#endif /* DUMMYUNIONNAME */ - -#if !defined(DUMMYUNIONNAME1) /* MinGW does not define this one */ -# ifdef NONAMELESSUNION -# define DUMMYUNIONNAME1 u1 /* Wine uses this variant */ -# else -# define DUMMYUNIONNAME1 /* Wine uses this variant */ -# endif -#endif /* DUMMYUNIONNAME1 */ - -#ifndef DUMMYSTRUCTNAME -# ifdef NONAMELESSUNION -# define DUMMYSTRUCTNAME s -# define DUMMYSTRUCTNAME1 s1 /* Wine uses this variant */ -# define DUMMYSTRUCTNAME2 s2 -# define DUMMYSTRUCTNAME3 s3 -# define DUMMYSTRUCTNAME4 s4 -# define DUMMYSTRUCTNAME5 s5 -# else -# define DUMMYSTRUCTNAME -# define DUMMYSTRUCTNAME1 /* Wine uses this variant */ -# define DUMMYSTRUCTNAME2 -# define DUMMYSTRUCTNAME3 -# define DUMMYSTRUCTNAME4 -# define DUMMYSTRUCTNAME5 -# endif -#endif /* DUMMYSTRUCTNAME */ - -/* These are for compatibility with the Wine source tree */ - -#ifndef WINELIB_NAME_AW -# ifdef __MINGW_NAME_AW -# define WINELIB_NAME_AW __MINGW_NAME_AW -# else -# ifdef UNICODE -# define WINELIB_NAME_AW(func) func##W -# else -# define WINELIB_NAME_AW(func) func##A -# endif -# endif -#endif /* WINELIB_NAME_AW */ - -#ifndef DECL_WINELIB_TYPE_AW -# ifdef __MINGW_TYPEDEF_AW -# define DECL_WINELIB_TYPE_AW __MINGW_TYPEDEF_AW -# else -# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type; -# endif -#endif /* DECL_WINELIB_TYPE_AW */ - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/dinput.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/dinput.h deleted file mode 100644 index b575480..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/dinput.h +++ /dev/null @@ -1,2467 +0,0 @@ -/* - * Copyright (C) the Wine project - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#ifndef __DINPUT_INCLUDED__ -#define __DINPUT_INCLUDED__ - -#define COM_NO_WINDOWS_H -#include -#include <_mingw_dxhelper.h> - -#ifndef DIRECTINPUT_VERSION -#define DIRECTINPUT_VERSION 0x0800 -#endif - -/* Classes */ -DEFINE_GUID(CLSID_DirectInput, 0x25E609E0,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(CLSID_DirectInputDevice, 0x25E609E1,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -DEFINE_GUID(CLSID_DirectInput8, 0x25E609E4,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(CLSID_DirectInputDevice8, 0x25E609E5,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -/* Interfaces */ -DEFINE_GUID(IID_IDirectInputA, 0x89521360,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputW, 0x89521361,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInput2A, 0x5944E662,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInput2W, 0x5944E663,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInput7A, 0x9A4CB684,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); -DEFINE_GUID(IID_IDirectInput7W, 0x9A4CB685,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); -DEFINE_GUID(IID_IDirectInput8A, 0xBF798030,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00); -DEFINE_GUID(IID_IDirectInput8W, 0xBF798031,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00); -DEFINE_GUID(IID_IDirectInputDeviceA, 0x5944E680,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputDeviceW, 0x5944E681,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputDevice2A, 0x5944E682,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputDevice2W, 0x5944E683,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputDevice7A, 0x57D7C6BC,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); -DEFINE_GUID(IID_IDirectInputDevice7W, 0x57D7C6BD,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); -DEFINE_GUID(IID_IDirectInputDevice8A, 0x54D41080,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79); -DEFINE_GUID(IID_IDirectInputDevice8W, 0x54D41081,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79); -DEFINE_GUID(IID_IDirectInputEffect, 0xE7E1F7C0,0x88D2,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); - -/* Predefined object types */ -DEFINE_GUID(GUID_XAxis, 0xA36D02E0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_YAxis, 0xA36D02E1,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_ZAxis, 0xA36D02E2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RxAxis,0xA36D02F4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RyAxis,0xA36D02F5,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RzAxis,0xA36D02E3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Slider,0xA36D02E4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Button,0xA36D02F0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Key, 0x55728220,0xD33C,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_POV, 0xA36D02F2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Unknown,0xA36D02F3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -/* Predefined product GUIDs */ -DEFINE_GUID(GUID_SysMouse, 0x6F1D2B60,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysKeyboard, 0x6F1D2B61,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Joystick, 0x6F1D2B70,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysMouseEm, 0x6F1D2B80,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysMouseEm2, 0x6F1D2B81,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysKeyboardEm, 0x6F1D2B82,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_SysKeyboardEm2,0x6F1D2B83,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); - -/* predefined forcefeedback effects */ -DEFINE_GUID(GUID_ConstantForce, 0x13541C20,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_RampForce, 0x13541C21,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Square, 0x13541C22,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Sine, 0x13541C23,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Triangle, 0x13541C24,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_SawtoothUp, 0x13541C25,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_SawtoothDown, 0x13541C26,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Spring, 0x13541C27,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Damper, 0x13541C28,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Inertia, 0x13541C29,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_Friction, 0x13541C2A,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(GUID_CustomForce, 0x13541C2B,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); - -typedef struct IDirectInputA *LPDIRECTINPUTA; -typedef struct IDirectInputW *LPDIRECTINPUTW; -typedef struct IDirectInput2A *LPDIRECTINPUT2A; -typedef struct IDirectInput2W *LPDIRECTINPUT2W; -typedef struct IDirectInput7A *LPDIRECTINPUT7A; -typedef struct IDirectInput7W *LPDIRECTINPUT7W; -#if DIRECTINPUT_VERSION >= 0x0800 -typedef struct IDirectInput8A *LPDIRECTINPUT8A; -typedef struct IDirectInput8W *LPDIRECTINPUT8W; -#endif /* DI8 */ -typedef struct IDirectInputDeviceA *LPDIRECTINPUTDEVICEA; -typedef struct IDirectInputDeviceW *LPDIRECTINPUTDEVICEW; -#if DIRECTINPUT_VERSION >= 0x0500 -typedef struct IDirectInputDevice2A *LPDIRECTINPUTDEVICE2A; -typedef struct IDirectInputDevice2W *LPDIRECTINPUTDEVICE2W; -#endif /* DI5 */ -#if DIRECTINPUT_VERSION >= 0x0700 -typedef struct IDirectInputDevice7A *LPDIRECTINPUTDEVICE7A; -typedef struct IDirectInputDevice7W *LPDIRECTINPUTDEVICE7W; -#endif /* DI7 */ -#if DIRECTINPUT_VERSION >= 0x0800 -typedef struct IDirectInputDevice8A *LPDIRECTINPUTDEVICE8A; -typedef struct IDirectInputDevice8W *LPDIRECTINPUTDEVICE8W; -#endif /* DI8 */ -#if DIRECTINPUT_VERSION >= 0x0500 -typedef struct IDirectInputEffect *LPDIRECTINPUTEFFECT; -#endif /* DI5 */ -typedef struct SysKeyboardA *LPSYSKEYBOARDA; -typedef struct SysMouseA *LPSYSMOUSEA; - -#define IID_IDirectInput WINELIB_NAME_AW(IID_IDirectInput) -#define IDirectInput WINELIB_NAME_AW(IDirectInput) -DECL_WINELIB_TYPE_AW(LPDIRECTINPUT) -#define IID_IDirectInput2 WINELIB_NAME_AW(IID_IDirectInput2) -#define IDirectInput2 WINELIB_NAME_AW(IDirectInput2) -DECL_WINELIB_TYPE_AW(LPDIRECTINPUT2) -#define IID_IDirectInput7 WINELIB_NAME_AW(IID_IDirectInput7) -#define IDirectInput7 WINELIB_NAME_AW(IDirectInput7) -DECL_WINELIB_TYPE_AW(LPDIRECTINPUT7) -#if DIRECTINPUT_VERSION >= 0x0800 -#define IID_IDirectInput8 WINELIB_NAME_AW(IID_IDirectInput8) -#define IDirectInput8 WINELIB_NAME_AW(IDirectInput8) -DECL_WINELIB_TYPE_AW(LPDIRECTINPUT8) -#endif /* DI8 */ -#define IID_IDirectInputDevice WINELIB_NAME_AW(IID_IDirectInputDevice) -#define IDirectInputDevice WINELIB_NAME_AW(IDirectInputDevice) -DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE) -#if DIRECTINPUT_VERSION >= 0x0500 -#define IID_IDirectInputDevice2 WINELIB_NAME_AW(IID_IDirectInputDevice2) -#define IDirectInputDevice2 WINELIB_NAME_AW(IDirectInputDevice2) -DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE2) -#endif /* DI5 */ -#if DIRECTINPUT_VERSION >= 0x0700 -#define IID_IDirectInputDevice7 WINELIB_NAME_AW(IID_IDirectInputDevice7) -#define IDirectInputDevice7 WINELIB_NAME_AW(IDirectInputDevice7) -DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE7) -#endif /* DI7 */ -#if DIRECTINPUT_VERSION >= 0x0800 -#define IID_IDirectInputDevice8 WINELIB_NAME_AW(IID_IDirectInputDevice8) -#define IDirectInputDevice8 WINELIB_NAME_AW(IDirectInputDevice8) -DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE8) -#endif /* DI8 */ - -#define DI_OK S_OK -#define DI_NOTATTACHED S_FALSE -#define DI_BUFFEROVERFLOW S_FALSE -#define DI_PROPNOEFFECT S_FALSE -#define DI_NOEFFECT S_FALSE -#define DI_POLLEDDEVICE ((HRESULT)0x00000002L) -#define DI_DOWNLOADSKIPPED ((HRESULT)0x00000003L) -#define DI_EFFECTRESTARTED ((HRESULT)0x00000004L) -#define DI_TRUNCATED ((HRESULT)0x00000008L) -#define DI_SETTINGSNOTSAVED ((HRESULT)0x0000000BL) -#define DI_TRUNCATEDANDRESTARTED ((HRESULT)0x0000000CL) -#define DI_WRITEPROTECT ((HRESULT)0x00000013L) - -#define DIERR_OLDDIRECTINPUTVERSION \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_OLD_WIN_VERSION) -#define DIERR_BETADIRECTINPUTVERSION \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_RMODE_APP) -#define DIERR_BADDRIVERVER \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BAD_DRIVER_LEVEL) -#define DIERR_DEVICENOTREG REGDB_E_CLASSNOTREG -#define DIERR_NOTFOUND \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND) -#define DIERR_OBJECTNOTFOUND \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND) -#define DIERR_INVALIDPARAM E_INVALIDARG -#define DIERR_NOINTERFACE E_NOINTERFACE -#define DIERR_GENERIC E_FAIL -#define DIERR_OUTOFMEMORY E_OUTOFMEMORY -#define DIERR_UNSUPPORTED E_NOTIMPL -#define DIERR_NOTINITIALIZED \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NOT_READY) -#define DIERR_ALREADYINITIALIZED \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_ALREADY_INITIALIZED) -#define DIERR_NOAGGREGATION CLASS_E_NOAGGREGATION -#define DIERR_OTHERAPPHASPRIO E_ACCESSDENIED -#define DIERR_INPUTLOST \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_READ_FAULT) -#define DIERR_ACQUIRED \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BUSY) -#define DIERR_NOTACQUIRED \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_INVALID_ACCESS) -#define DIERR_READONLY E_ACCESSDENIED -#define DIERR_HANDLEEXISTS E_ACCESSDENIED -#ifndef E_PENDING -#define E_PENDING 0x8000000AL -#endif -#define DIERR_INSUFFICIENTPRIVS 0x80040200L -#define DIERR_DEVICEFULL 0x80040201L -#define DIERR_MOREDATA 0x80040202L -#define DIERR_NOTDOWNLOADED 0x80040203L -#define DIERR_HASEFFECTS 0x80040204L -#define DIERR_NOTEXCLUSIVEACQUIRED 0x80040205L -#define DIERR_INCOMPLETEEFFECT 0x80040206L -#define DIERR_NOTBUFFERED 0x80040207L -#define DIERR_EFFECTPLAYING 0x80040208L -#define DIERR_UNPLUGGED 0x80040209L -#define DIERR_REPORTFULL 0x8004020AL -#define DIERR_MAPFILEFAIL 0x8004020BL - -#define DIENUM_STOP 0 -#define DIENUM_CONTINUE 1 - -#define DIEDFL_ALLDEVICES 0x00000000 -#define DIEDFL_ATTACHEDONLY 0x00000001 -#define DIEDFL_FORCEFEEDBACK 0x00000100 -#define DIEDFL_INCLUDEALIASES 0x00010000 -#define DIEDFL_INCLUDEPHANTOMS 0x00020000 -#define DIEDFL_INCLUDEHIDDEN 0x00040000 - -#define DIDEVTYPE_DEVICE 1 -#define DIDEVTYPE_MOUSE 2 -#define DIDEVTYPE_KEYBOARD 3 -#define DIDEVTYPE_JOYSTICK 4 -#define DIDEVTYPE_HID 0x00010000 - -#define DI8DEVCLASS_ALL 0 -#define DI8DEVCLASS_DEVICE 1 -#define DI8DEVCLASS_POINTER 2 -#define DI8DEVCLASS_KEYBOARD 3 -#define DI8DEVCLASS_GAMECTRL 4 - -#define DI8DEVTYPE_DEVICE 0x11 -#define DI8DEVTYPE_MOUSE 0x12 -#define DI8DEVTYPE_KEYBOARD 0x13 -#define DI8DEVTYPE_JOYSTICK 0x14 -#define DI8DEVTYPE_GAMEPAD 0x15 -#define DI8DEVTYPE_DRIVING 0x16 -#define DI8DEVTYPE_FLIGHT 0x17 -#define DI8DEVTYPE_1STPERSON 0x18 -#define DI8DEVTYPE_DEVICECTRL 0x19 -#define DI8DEVTYPE_SCREENPOINTER 0x1A -#define DI8DEVTYPE_REMOTE 0x1B -#define DI8DEVTYPE_SUPPLEMENTAL 0x1C - -#define DIDEVTYPEMOUSE_UNKNOWN 1 -#define DIDEVTYPEMOUSE_TRADITIONAL 2 -#define DIDEVTYPEMOUSE_FINGERSTICK 3 -#define DIDEVTYPEMOUSE_TOUCHPAD 4 -#define DIDEVTYPEMOUSE_TRACKBALL 5 - -#define DIDEVTYPEKEYBOARD_UNKNOWN 0 -#define DIDEVTYPEKEYBOARD_PCXT 1 -#define DIDEVTYPEKEYBOARD_OLIVETTI 2 -#define DIDEVTYPEKEYBOARD_PCAT 3 -#define DIDEVTYPEKEYBOARD_PCENH 4 -#define DIDEVTYPEKEYBOARD_NOKIA1050 5 -#define DIDEVTYPEKEYBOARD_NOKIA9140 6 -#define DIDEVTYPEKEYBOARD_NEC98 7 -#define DIDEVTYPEKEYBOARD_NEC98LAPTOP 8 -#define DIDEVTYPEKEYBOARD_NEC98106 9 -#define DIDEVTYPEKEYBOARD_JAPAN106 10 -#define DIDEVTYPEKEYBOARD_JAPANAX 11 -#define DIDEVTYPEKEYBOARD_J3100 12 - -#define DIDEVTYPEJOYSTICK_UNKNOWN 1 -#define DIDEVTYPEJOYSTICK_TRADITIONAL 2 -#define DIDEVTYPEJOYSTICK_FLIGHTSTICK 3 -#define DIDEVTYPEJOYSTICK_GAMEPAD 4 -#define DIDEVTYPEJOYSTICK_RUDDER 5 -#define DIDEVTYPEJOYSTICK_WHEEL 6 -#define DIDEVTYPEJOYSTICK_HEADTRACKER 7 - -#define DI8DEVTYPEMOUSE_UNKNOWN 1 -#define DI8DEVTYPEMOUSE_TRADITIONAL 2 -#define DI8DEVTYPEMOUSE_FINGERSTICK 3 -#define DI8DEVTYPEMOUSE_TOUCHPAD 4 -#define DI8DEVTYPEMOUSE_TRACKBALL 5 -#define DI8DEVTYPEMOUSE_ABSOLUTE 6 - -#define DI8DEVTYPEKEYBOARD_UNKNOWN 0 -#define DI8DEVTYPEKEYBOARD_PCXT 1 -#define DI8DEVTYPEKEYBOARD_OLIVETTI 2 -#define DI8DEVTYPEKEYBOARD_PCAT 3 -#define DI8DEVTYPEKEYBOARD_PCENH 4 -#define DI8DEVTYPEKEYBOARD_NOKIA1050 5 -#define DI8DEVTYPEKEYBOARD_NOKIA9140 6 -#define DI8DEVTYPEKEYBOARD_NEC98 7 -#define DI8DEVTYPEKEYBOARD_NEC98LAPTOP 8 -#define DI8DEVTYPEKEYBOARD_NEC98106 9 -#define DI8DEVTYPEKEYBOARD_JAPAN106 10 -#define DI8DEVTYPEKEYBOARD_JAPANAX 11 -#define DI8DEVTYPEKEYBOARD_J3100 12 - -#define DI8DEVTYPE_LIMITEDGAMESUBTYPE 1 - -#define DI8DEVTYPEJOYSTICK_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPEJOYSTICK_STANDARD 2 - -#define DI8DEVTYPEGAMEPAD_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPEGAMEPAD_STANDARD 2 -#define DI8DEVTYPEGAMEPAD_TILT 3 - -#define DI8DEVTYPEDRIVING_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPEDRIVING_COMBINEDPEDALS 2 -#define DI8DEVTYPEDRIVING_DUALPEDALS 3 -#define DI8DEVTYPEDRIVING_THREEPEDALS 4 -#define DI8DEVTYPEDRIVING_HANDHELD 5 - -#define DI8DEVTYPEFLIGHT_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPEFLIGHT_STICK 2 -#define DI8DEVTYPEFLIGHT_YOKE 3 -#define DI8DEVTYPEFLIGHT_RC 4 - -#define DI8DEVTYPE1STPERSON_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE -#define DI8DEVTYPE1STPERSON_UNKNOWN 2 -#define DI8DEVTYPE1STPERSON_SIXDOF 3 -#define DI8DEVTYPE1STPERSON_SHOOTER 4 - -#define DI8DEVTYPESCREENPTR_UNKNOWN 2 -#define DI8DEVTYPESCREENPTR_LIGHTGUN 3 -#define DI8DEVTYPESCREENPTR_LIGHTPEN 4 -#define DI8DEVTYPESCREENPTR_TOUCH 5 - -#define DI8DEVTYPEREMOTE_UNKNOWN 2 - -#define DI8DEVTYPEDEVICECTRL_UNKNOWN 2 -#define DI8DEVTYPEDEVICECTRL_COMMSSELECTION 3 -#define DI8DEVTYPEDEVICECTRL_COMMSSELECTION_HARDWIRED 4 - -#define DI8DEVTYPESUPPLEMENTAL_UNKNOWN 2 -#define DI8DEVTYPESUPPLEMENTAL_2NDHANDCONTROLLER 3 -#define DI8DEVTYPESUPPLEMENTAL_HEADTRACKER 4 -#define DI8DEVTYPESUPPLEMENTAL_HANDTRACKER 5 -#define DI8DEVTYPESUPPLEMENTAL_SHIFTSTICKGATE 6 -#define DI8DEVTYPESUPPLEMENTAL_SHIFTER 7 -#define DI8DEVTYPESUPPLEMENTAL_THROTTLE 8 -#define DI8DEVTYPESUPPLEMENTAL_SPLITTHROTTLE 9 -#define DI8DEVTYPESUPPLEMENTAL_COMBINEDPEDALS 10 -#define DI8DEVTYPESUPPLEMENTAL_DUALPEDALS 11 -#define DI8DEVTYPESUPPLEMENTAL_THREEPEDALS 12 -#define DI8DEVTYPESUPPLEMENTAL_RUDDERPEDALS 13 - -#define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(dwDevType) -#define GET_DIDEVICE_SUBTYPE(dwDevType) HIBYTE(dwDevType) - -typedef struct DIDEVICEOBJECTINSTANCE_DX3A { - DWORD dwSize; - GUID guidType; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; - CHAR tszName[MAX_PATH]; -} DIDEVICEOBJECTINSTANCE_DX3A, *LPDIDEVICEOBJECTINSTANCE_DX3A; -typedef const DIDEVICEOBJECTINSTANCE_DX3A *LPCDIDEVICEOBJECTINSTANCE_DX3A; -typedef struct DIDEVICEOBJECTINSTANCE_DX3W { - DWORD dwSize; - GUID guidType; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; - WCHAR tszName[MAX_PATH]; -} DIDEVICEOBJECTINSTANCE_DX3W, *LPDIDEVICEOBJECTINSTANCE_DX3W; -typedef const DIDEVICEOBJECTINSTANCE_DX3W *LPCDIDEVICEOBJECTINSTANCE_DX3W; - -DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE_DX3) -DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE_DX3) -DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE_DX3) - -typedef struct DIDEVICEOBJECTINSTANCEA { - DWORD dwSize; - GUID guidType; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; - CHAR tszName[MAX_PATH]; -#if(DIRECTINPUT_VERSION >= 0x0500) - DWORD dwFFMaxForce; - DWORD dwFFForceResolution; - WORD wCollectionNumber; - WORD wDesignatorIndex; - WORD wUsagePage; - WORD wUsage; - DWORD dwDimension; - WORD wExponent; - WORD wReserved; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVICEOBJECTINSTANCEA, *LPDIDEVICEOBJECTINSTANCEA; -typedef const DIDEVICEOBJECTINSTANCEA *LPCDIDEVICEOBJECTINSTANCEA; - -typedef struct DIDEVICEOBJECTINSTANCEW { - DWORD dwSize; - GUID guidType; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; - WCHAR tszName[MAX_PATH]; -#if(DIRECTINPUT_VERSION >= 0x0500) - DWORD dwFFMaxForce; - DWORD dwFFForceResolution; - WORD wCollectionNumber; - WORD wDesignatorIndex; - WORD wUsagePage; - WORD wUsage; - DWORD dwDimension; - WORD wExponent; - WORD wReserved; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVICEOBJECTINSTANCEW, *LPDIDEVICEOBJECTINSTANCEW; -typedef const DIDEVICEOBJECTINSTANCEW *LPCDIDEVICEOBJECTINSTANCEW; - -DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE) -DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE) -DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE) - -typedef struct DIDEVICEINSTANCE_DX3A { - DWORD dwSize; - GUID guidInstance; - GUID guidProduct; - DWORD dwDevType; - CHAR tszInstanceName[MAX_PATH]; - CHAR tszProductName[MAX_PATH]; -} DIDEVICEINSTANCE_DX3A, *LPDIDEVICEINSTANCE_DX3A; -typedef const DIDEVICEINSTANCE_DX3A *LPCDIDEVICEINSTANCE_DX3A; -typedef struct DIDEVICEINSTANCE_DX3W { - DWORD dwSize; - GUID guidInstance; - GUID guidProduct; - DWORD dwDevType; - WCHAR tszInstanceName[MAX_PATH]; - WCHAR tszProductName[MAX_PATH]; -} DIDEVICEINSTANCE_DX3W, *LPDIDEVICEINSTANCE_DX3W; -typedef const DIDEVICEINSTANCE_DX3W *LPCDIDEVICEINSTANCE_DX3W; - -DECL_WINELIB_TYPE_AW(DIDEVICEINSTANCE_DX3) -DECL_WINELIB_TYPE_AW(LPDIDEVICEINSTANCE_DX3) -DECL_WINELIB_TYPE_AW(LPCDIDEVICEINSTANCE_DX3) - -typedef struct DIDEVICEINSTANCEA { - DWORD dwSize; - GUID guidInstance; - GUID guidProduct; - DWORD dwDevType; - CHAR tszInstanceName[MAX_PATH]; - CHAR tszProductName[MAX_PATH]; -#if(DIRECTINPUT_VERSION >= 0x0500) - GUID guidFFDriver; - WORD wUsagePage; - WORD wUsage; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVICEINSTANCEA, *LPDIDEVICEINSTANCEA; -typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA; - -typedef struct DIDEVICEINSTANCEW { - DWORD dwSize; - GUID guidInstance; - GUID guidProduct; - DWORD dwDevType; - WCHAR tszInstanceName[MAX_PATH]; - WCHAR tszProductName[MAX_PATH]; -#if(DIRECTINPUT_VERSION >= 0x0500) - GUID guidFFDriver; - WORD wUsagePage; - WORD wUsage; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVICEINSTANCEW, *LPDIDEVICEINSTANCEW; -typedef const DIDEVICEINSTANCEW *LPCDIDEVICEINSTANCEW; - -DECL_WINELIB_TYPE_AW(DIDEVICEINSTANCE) -DECL_WINELIB_TYPE_AW(LPDIDEVICEINSTANCE) -DECL_WINELIB_TYPE_AW(LPCDIDEVICEINSTANCE) - -typedef BOOL (CALLBACK *LPDIENUMDEVICESCALLBACKA)(LPCDIDEVICEINSTANCEA,LPVOID); -typedef BOOL (CALLBACK *LPDIENUMDEVICESCALLBACKW)(LPCDIDEVICEINSTANCEW,LPVOID); -DECL_WINELIB_TYPE_AW(LPDIENUMDEVICESCALLBACK) - -#define DIEDBS_MAPPEDPRI1 0x00000001 -#define DIEDBS_MAPPEDPRI2 0x00000002 -#define DIEDBS_RECENTDEVICE 0x00000010 -#define DIEDBS_NEWDEVICE 0x00000020 - -#define DIEDBSFL_ATTACHEDONLY 0x00000000 -#define DIEDBSFL_THISUSER 0x00000010 -#define DIEDBSFL_FORCEFEEDBACK DIEDFL_FORCEFEEDBACK -#define DIEDBSFL_AVAILABLEDEVICES 0x00001000 -#define DIEDBSFL_MULTIMICEKEYBOARDS 0x00002000 -#define DIEDBSFL_NONGAMINGDEVICES 0x00004000 -#define DIEDBSFL_VALID 0x00007110 - -#if DIRECTINPUT_VERSION >= 0x0800 -typedef BOOL (CALLBACK *LPDIENUMDEVICESBYSEMANTICSCBA)(LPCDIDEVICEINSTANCEA,LPDIRECTINPUTDEVICE8A,DWORD,DWORD,LPVOID); -typedef BOOL (CALLBACK *LPDIENUMDEVICESBYSEMANTICSCBW)(LPCDIDEVICEINSTANCEW,LPDIRECTINPUTDEVICE8W,DWORD,DWORD,LPVOID); -DECL_WINELIB_TYPE_AW(LPDIENUMDEVICESBYSEMANTICSCB) -#endif - -typedef BOOL (CALLBACK *LPDICONFIGUREDEVICESCALLBACK)(LPUNKNOWN,LPVOID); - -typedef BOOL (CALLBACK *LPDIENUMDEVICEOBJECTSCALLBACKA)(LPCDIDEVICEOBJECTINSTANCEA,LPVOID); -typedef BOOL (CALLBACK *LPDIENUMDEVICEOBJECTSCALLBACKW)(LPCDIDEVICEOBJECTINSTANCEW,LPVOID); -DECL_WINELIB_TYPE_AW(LPDIENUMDEVICEOBJECTSCALLBACK) - -#if DIRECTINPUT_VERSION >= 0x0500 -typedef BOOL (CALLBACK *LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFECT, LPVOID); -#endif - -#define DIK_ESCAPE 0x01 -#define DIK_1 0x02 -#define DIK_2 0x03 -#define DIK_3 0x04 -#define DIK_4 0x05 -#define DIK_5 0x06 -#define DIK_6 0x07 -#define DIK_7 0x08 -#define DIK_8 0x09 -#define DIK_9 0x0A -#define DIK_0 0x0B -#define DIK_MINUS 0x0C /* - on main keyboard */ -#define DIK_EQUALS 0x0D -#define DIK_BACK 0x0E /* backspace */ -#define DIK_TAB 0x0F -#define DIK_Q 0x10 -#define DIK_W 0x11 -#define DIK_E 0x12 -#define DIK_R 0x13 -#define DIK_T 0x14 -#define DIK_Y 0x15 -#define DIK_U 0x16 -#define DIK_I 0x17 -#define DIK_O 0x18 -#define DIK_P 0x19 -#define DIK_LBRACKET 0x1A -#define DIK_RBRACKET 0x1B -#define DIK_RETURN 0x1C /* Enter on main keyboard */ -#define DIK_LCONTROL 0x1D -#define DIK_A 0x1E -#define DIK_S 0x1F -#define DIK_D 0x20 -#define DIK_F 0x21 -#define DIK_G 0x22 -#define DIK_H 0x23 -#define DIK_J 0x24 -#define DIK_K 0x25 -#define DIK_L 0x26 -#define DIK_SEMICOLON 0x27 -#define DIK_APOSTROPHE 0x28 -#define DIK_GRAVE 0x29 /* accent grave */ -#define DIK_LSHIFT 0x2A -#define DIK_BACKSLASH 0x2B -#define DIK_Z 0x2C -#define DIK_X 0x2D -#define DIK_C 0x2E -#define DIK_V 0x2F -#define DIK_B 0x30 -#define DIK_N 0x31 -#define DIK_M 0x32 -#define DIK_COMMA 0x33 -#define DIK_PERIOD 0x34 /* . on main keyboard */ -#define DIK_SLASH 0x35 /* / on main keyboard */ -#define DIK_RSHIFT 0x36 -#define DIK_MULTIPLY 0x37 /* * on numeric keypad */ -#define DIK_LMENU 0x38 /* left Alt */ -#define DIK_SPACE 0x39 -#define DIK_CAPITAL 0x3A -#define DIK_F1 0x3B -#define DIK_F2 0x3C -#define DIK_F3 0x3D -#define DIK_F4 0x3E -#define DIK_F5 0x3F -#define DIK_F6 0x40 -#define DIK_F7 0x41 -#define DIK_F8 0x42 -#define DIK_F9 0x43 -#define DIK_F10 0x44 -#define DIK_NUMLOCK 0x45 -#define DIK_SCROLL 0x46 /* Scroll Lock */ -#define DIK_NUMPAD7 0x47 -#define DIK_NUMPAD8 0x48 -#define DIK_NUMPAD9 0x49 -#define DIK_SUBTRACT 0x4A /* - on numeric keypad */ -#define DIK_NUMPAD4 0x4B -#define DIK_NUMPAD5 0x4C -#define DIK_NUMPAD6 0x4D -#define DIK_ADD 0x4E /* + on numeric keypad */ -#define DIK_NUMPAD1 0x4F -#define DIK_NUMPAD2 0x50 -#define DIK_NUMPAD3 0x51 -#define DIK_NUMPAD0 0x52 -#define DIK_DECIMAL 0x53 /* . on numeric keypad */ -#define DIK_OEM_102 0x56 /* < > | on UK/Germany keyboards */ -#define DIK_F11 0x57 -#define DIK_F12 0x58 -#define DIK_F13 0x64 /* (NEC PC98) */ -#define DIK_F14 0x65 /* (NEC PC98) */ -#define DIK_F15 0x66 /* (NEC PC98) */ -#define DIK_KANA 0x70 /* (Japanese keyboard) */ -#define DIK_ABNT_C1 0x73 /* / ? on Portugese (Brazilian) keyboards */ -#define DIK_CONVERT 0x79 /* (Japanese keyboard) */ -#define DIK_NOCONVERT 0x7B /* (Japanese keyboard) */ -#define DIK_YEN 0x7D /* (Japanese keyboard) */ -#define DIK_ABNT_C2 0x7E /* Numpad . on Portugese (Brazilian) keyboards */ -#define DIK_NUMPADEQUALS 0x8D /* = on numeric keypad (NEC PC98) */ -#define DIK_CIRCUMFLEX 0x90 /* (Japanese keyboard) */ -#define DIK_AT 0x91 /* (NEC PC98) */ -#define DIK_COLON 0x92 /* (NEC PC98) */ -#define DIK_UNDERLINE 0x93 /* (NEC PC98) */ -#define DIK_KANJI 0x94 /* (Japanese keyboard) */ -#define DIK_STOP 0x95 /* (NEC PC98) */ -#define DIK_AX 0x96 /* (Japan AX) */ -#define DIK_UNLABELED 0x97 /* (J3100) */ -#define DIK_NEXTTRACK 0x99 /* Next Track */ -#define DIK_NUMPADENTER 0x9C /* Enter on numeric keypad */ -#define DIK_RCONTROL 0x9D -#define DIK_MUTE 0xA0 /* Mute */ -#define DIK_CALCULATOR 0xA1 /* Calculator */ -#define DIK_PLAYPAUSE 0xA2 /* Play / Pause */ -#define DIK_MEDIASTOP 0xA4 /* Media Stop */ -#define DIK_VOLUMEDOWN 0xAE /* Volume - */ -#define DIK_VOLUMEUP 0xB0 /* Volume + */ -#define DIK_WEBHOME 0xB2 /* Web home */ -#define DIK_NUMPADCOMMA 0xB3 /* , on numeric keypad (NEC PC98) */ -#define DIK_DIVIDE 0xB5 /* / on numeric keypad */ -#define DIK_SYSRQ 0xB7 -#define DIK_RMENU 0xB8 /* right Alt */ -#define DIK_PAUSE 0xC5 /* Pause */ -#define DIK_HOME 0xC7 /* Home on arrow keypad */ -#define DIK_UP 0xC8 /* UpArrow on arrow keypad */ -#define DIK_PRIOR 0xC9 /* PgUp on arrow keypad */ -#define DIK_LEFT 0xCB /* LeftArrow on arrow keypad */ -#define DIK_RIGHT 0xCD /* RightArrow on arrow keypad */ -#define DIK_END 0xCF /* End on arrow keypad */ -#define DIK_DOWN 0xD0 /* DownArrow on arrow keypad */ -#define DIK_NEXT 0xD1 /* PgDn on arrow keypad */ -#define DIK_INSERT 0xD2 /* Insert on arrow keypad */ -#define DIK_DELETE 0xD3 /* Delete on arrow keypad */ -#define DIK_LWIN 0xDB /* Left Windows key */ -#define DIK_RWIN 0xDC /* Right Windows key */ -#define DIK_APPS 0xDD /* AppMenu key */ -#define DIK_POWER 0xDE -#define DIK_SLEEP 0xDF -#define DIK_WAKE 0xE3 /* System Wake */ -#define DIK_WEBSEARCH 0xE5 /* Web Search */ -#define DIK_WEBFAVORITES 0xE6 /* Web Favorites */ -#define DIK_WEBREFRESH 0xE7 /* Web Refresh */ -#define DIK_WEBSTOP 0xE8 /* Web Stop */ -#define DIK_WEBFORWARD 0xE9 /* Web Forward */ -#define DIK_WEBBACK 0xEA /* Web Back */ -#define DIK_MYCOMPUTER 0xEB /* My Computer */ -#define DIK_MAIL 0xEC /* Mail */ -#define DIK_MEDIASELECT 0xED /* Media Select */ - -#define DIK_BACKSPACE DIK_BACK /* backspace */ -#define DIK_NUMPADSTAR DIK_MULTIPLY /* * on numeric keypad */ -#define DIK_LALT DIK_LMENU /* left Alt */ -#define DIK_CAPSLOCK DIK_CAPITAL /* CapsLock */ -#define DIK_NUMPADMINUS DIK_SUBTRACT /* - on numeric keypad */ -#define DIK_NUMPADPLUS DIK_ADD /* + on numeric keypad */ -#define DIK_NUMPADPERIOD DIK_DECIMAL /* . on numeric keypad */ -#define DIK_NUMPADSLASH DIK_DIVIDE /* / on numeric keypad */ -#define DIK_RALT DIK_RMENU /* right Alt */ -#define DIK_UPARROW DIK_UP /* UpArrow on arrow keypad */ -#define DIK_PGUP DIK_PRIOR /* PgUp on arrow keypad */ -#define DIK_LEFTARROW DIK_LEFT /* LeftArrow on arrow keypad */ -#define DIK_RIGHTARROW DIK_RIGHT /* RightArrow on arrow keypad */ -#define DIK_DOWNARROW DIK_DOWN /* DownArrow on arrow keypad */ -#define DIK_PGDN DIK_NEXT /* PgDn on arrow keypad */ - -#define DIDFT_ALL 0x00000000 -#define DIDFT_RELAXIS 0x00000001 -#define DIDFT_ABSAXIS 0x00000002 -#define DIDFT_AXIS 0x00000003 -#define DIDFT_PSHBUTTON 0x00000004 -#define DIDFT_TGLBUTTON 0x00000008 -#define DIDFT_BUTTON 0x0000000C -#define DIDFT_POV 0x00000010 -#define DIDFT_COLLECTION 0x00000040 -#define DIDFT_NODATA 0x00000080 -#define DIDFT_ANYINSTANCE 0x00FFFF00 -#define DIDFT_INSTANCEMASK DIDFT_ANYINSTANCE -#define DIDFT_MAKEINSTANCE(n) ((WORD)(n) << 8) -#define DIDFT_GETTYPE(n) LOBYTE(n) -#define DIDFT_GETINSTANCE(n) LOWORD((n) >> 8) -#define DIDFT_FFACTUATOR 0x01000000 -#define DIDFT_FFEFFECTTRIGGER 0x02000000 -#if DIRECTINPUT_VERSION >= 0x050a -#define DIDFT_OUTPUT 0x10000000 -#define DIDFT_VENDORDEFINED 0x04000000 -#define DIDFT_ALIAS 0x08000000 -#endif /* DI5a */ -#ifndef DIDFT_OPTIONAL -#define DIDFT_OPTIONAL 0x80000000 -#endif -#define DIDFT_ENUMCOLLECTION(n) ((WORD)(n) << 8) -#define DIDFT_NOCOLLECTION 0x00FFFF00 - -#define DIDF_ABSAXIS 0x00000001 -#define DIDF_RELAXIS 0x00000002 - -#define DIGDD_PEEK 0x00000001 - -#define DISEQUENCE_COMPARE(dwSq1,cmp,dwSq2) ((int)((dwSq1) - (dwSq2)) cmp 0) - -typedef struct DIDEVICEOBJECTDATA_DX3 { - DWORD dwOfs; - DWORD dwData; - DWORD dwTimeStamp; - DWORD dwSequence; -} DIDEVICEOBJECTDATA_DX3,*LPDIDEVICEOBJECTDATA_DX3; -typedef const DIDEVICEOBJECTDATA_DX3 *LPCDIDEVICEOBJECTDATA_DX3; - -typedef struct DIDEVICEOBJECTDATA { - DWORD dwOfs; - DWORD dwData; - DWORD dwTimeStamp; - DWORD dwSequence; -#if(DIRECTINPUT_VERSION >= 0x0800) - UINT_PTR uAppData; -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ -} DIDEVICEOBJECTDATA, *LPDIDEVICEOBJECTDATA; -typedef const DIDEVICEOBJECTDATA *LPCDIDEVICEOBJECTDATA; - -typedef struct _DIOBJECTDATAFORMAT { - const GUID *pguid; - DWORD dwOfs; - DWORD dwType; - DWORD dwFlags; -} DIOBJECTDATAFORMAT, *LPDIOBJECTDATAFORMAT; -typedef const DIOBJECTDATAFORMAT *LPCDIOBJECTDATAFORMAT; - -typedef struct _DIDATAFORMAT { - DWORD dwSize; - DWORD dwObjSize; - DWORD dwFlags; - DWORD dwDataSize; - DWORD dwNumObjs; - LPDIOBJECTDATAFORMAT rgodf; -} DIDATAFORMAT, *LPDIDATAFORMAT; -typedef const DIDATAFORMAT *LPCDIDATAFORMAT; - -#if DIRECTINPUT_VERSION >= 0x0500 -#define DIDOI_FFACTUATOR 0x00000001 -#define DIDOI_FFEFFECTTRIGGER 0x00000002 -#define DIDOI_POLLED 0x00008000 -#define DIDOI_ASPECTPOSITION 0x00000100 -#define DIDOI_ASPECTVELOCITY 0x00000200 -#define DIDOI_ASPECTACCEL 0x00000300 -#define DIDOI_ASPECTFORCE 0x00000400 -#define DIDOI_ASPECTMASK 0x00000F00 -#endif /* DI5 */ -#if DIRECTINPUT_VERSION >= 0x050a -#define DIDOI_GUIDISUSAGE 0x00010000 -#endif /* DI5a */ - -typedef struct DIPROPHEADER { - DWORD dwSize; - DWORD dwHeaderSize; - DWORD dwObj; - DWORD dwHow; -} DIPROPHEADER,*LPDIPROPHEADER; -typedef const DIPROPHEADER *LPCDIPROPHEADER; - -#define DIPH_DEVICE 0 -#define DIPH_BYOFFSET 1 -#define DIPH_BYID 2 -#if DIRECTINPUT_VERSION >= 0x050a -#define DIPH_BYUSAGE 3 - -#define DIMAKEUSAGEDWORD(UsagePage, Usage) (DWORD)MAKELONG(Usage, UsagePage) -#endif /* DI5a */ - -typedef struct DIPROPDWORD { - DIPROPHEADER diph; - DWORD dwData; -} DIPROPDWORD, *LPDIPROPDWORD; -typedef const DIPROPDWORD *LPCDIPROPDWORD; - -typedef struct DIPROPRANGE { - DIPROPHEADER diph; - LONG lMin; - LONG lMax; -} DIPROPRANGE, *LPDIPROPRANGE; -typedef const DIPROPRANGE *LPCDIPROPRANGE; - -#define DIPROPRANGE_NOMIN ((LONG)0x80000000) -#define DIPROPRANGE_NOMAX ((LONG)0x7FFFFFFF) - -#if DIRECTINPUT_VERSION >= 0x050a -typedef struct DIPROPCAL { - DIPROPHEADER diph; - LONG lMin; - LONG lCenter; - LONG lMax; -} DIPROPCAL, *LPDIPROPCAL; -typedef const DIPROPCAL *LPCDIPROPCAL; - -typedef struct DIPROPCALPOV { - DIPROPHEADER diph; - LONG lMin[5]; - LONG lMax[5]; -} DIPROPCALPOV, *LPDIPROPCALPOV; -typedef const DIPROPCALPOV *LPCDIPROPCALPOV; - -typedef struct DIPROPGUIDANDPATH { - DIPROPHEADER diph; - GUID guidClass; - WCHAR wszPath[MAX_PATH]; -} DIPROPGUIDANDPATH, *LPDIPROPGUIDANDPATH; -typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH; - -typedef struct DIPROPSTRING { - DIPROPHEADER diph; - WCHAR wsz[MAX_PATH]; -} DIPROPSTRING, *LPDIPROPSTRING; -typedef const DIPROPSTRING *LPCDIPROPSTRING; -#endif /* DI5a */ - -#if DIRECTINPUT_VERSION >= 0x0800 -typedef struct DIPROPPOINTER { - DIPROPHEADER diph; - UINT_PTR uData; -} DIPROPPOINTER, *LPDIPROPPOINTER; -typedef const DIPROPPOINTER *LPCDIPROPPOINTER; -#endif /* DI8 */ - -/* special property GUIDs */ -#ifdef __cplusplus -#define MAKEDIPROP(prop) (*(const GUID *)(prop)) -#else -#define MAKEDIPROP(prop) ((REFGUID)(prop)) -#endif -#define DIPROP_BUFFERSIZE MAKEDIPROP(1) -#define DIPROP_AXISMODE MAKEDIPROP(2) - -#define DIPROPAXISMODE_ABS 0 -#define DIPROPAXISMODE_REL 1 - -#define DIPROP_GRANULARITY MAKEDIPROP(3) -#define DIPROP_RANGE MAKEDIPROP(4) -#define DIPROP_DEADZONE MAKEDIPROP(5) -#define DIPROP_SATURATION MAKEDIPROP(6) -#define DIPROP_FFGAIN MAKEDIPROP(7) -#define DIPROP_FFLOAD MAKEDIPROP(8) -#define DIPROP_AUTOCENTER MAKEDIPROP(9) - -#define DIPROPAUTOCENTER_OFF 0 -#define DIPROPAUTOCENTER_ON 1 - -#define DIPROP_CALIBRATIONMODE MAKEDIPROP(10) - -#define DIPROPCALIBRATIONMODE_COOKED 0 -#define DIPROPCALIBRATIONMODE_RAW 1 - -#if DIRECTINPUT_VERSION >= 0x050a -#define DIPROP_CALIBRATION MAKEDIPROP(11) -#define DIPROP_GUIDANDPATH MAKEDIPROP(12) -#define DIPROP_INSTANCENAME MAKEDIPROP(13) -#define DIPROP_PRODUCTNAME MAKEDIPROP(14) -#endif - -#if DIRECTINPUT_VERSION >= 0x5B2 -#define DIPROP_JOYSTICKID MAKEDIPROP(15) -#define DIPROP_GETPORTDISPLAYNAME MAKEDIPROP(16) -#endif - -#if DIRECTINPUT_VERSION >= 0x0700 -#define DIPROP_PHYSICALRANGE MAKEDIPROP(18) -#define DIPROP_LOGICALRANGE MAKEDIPROP(19) -#endif - -#if(DIRECTINPUT_VERSION >= 0x0800) -#define DIPROP_KEYNAME MAKEDIPROP(20) -#define DIPROP_CPOINTS MAKEDIPROP(21) -#define DIPROP_APPDATA MAKEDIPROP(22) -#define DIPROP_SCANCODE MAKEDIPROP(23) -#define DIPROP_VIDPID MAKEDIPROP(24) -#define DIPROP_USERNAME MAKEDIPROP(25) -#define DIPROP_TYPENAME MAKEDIPROP(26) - -#define MAXCPOINTSNUM 8 - -typedef struct _CPOINT { - LONG lP; - DWORD dwLog; -} CPOINT, *PCPOINT; - -typedef struct DIPROPCPOINTS { - DIPROPHEADER diph; - DWORD dwCPointsNum; - CPOINT cp[MAXCPOINTSNUM]; -} DIPROPCPOINTS, *LPDIPROPCPOINTS; -typedef const DIPROPCPOINTS *LPCDIPROPCPOINTS; -#endif /* DI8 */ - - -typedef struct DIDEVCAPS_DX3 { - DWORD dwSize; - DWORD dwFlags; - DWORD dwDevType; - DWORD dwAxes; - DWORD dwButtons; - DWORD dwPOVs; -} DIDEVCAPS_DX3, *LPDIDEVCAPS_DX3; - -typedef struct DIDEVCAPS { - DWORD dwSize; - DWORD dwFlags; - DWORD dwDevType; - DWORD dwAxes; - DWORD dwButtons; - DWORD dwPOVs; -#if(DIRECTINPUT_VERSION >= 0x0500) - DWORD dwFFSamplePeriod; - DWORD dwFFMinTimeResolution; - DWORD dwFirmwareRevision; - DWORD dwHardwareRevision; - DWORD dwFFDriverVersion; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ -} DIDEVCAPS,*LPDIDEVCAPS; - -#define DIDC_ATTACHED 0x00000001 -#define DIDC_POLLEDDEVICE 0x00000002 -#define DIDC_EMULATED 0x00000004 -#define DIDC_POLLEDDATAFORMAT 0x00000008 -#define DIDC_FORCEFEEDBACK 0x00000100 -#define DIDC_FFATTACK 0x00000200 -#define DIDC_FFFADE 0x00000400 -#define DIDC_SATURATION 0x00000800 -#define DIDC_POSNEGCOEFFICIENTS 0x00001000 -#define DIDC_POSNEGSATURATION 0x00002000 -#define DIDC_DEADBAND 0x00004000 -#define DIDC_STARTDELAY 0x00008000 -#define DIDC_ALIAS 0x00010000 -#define DIDC_PHANTOM 0x00020000 -#define DIDC_HIDDEN 0x00040000 - - -/* SetCooperativeLevel dwFlags */ -#define DISCL_EXCLUSIVE 0x00000001 -#define DISCL_NONEXCLUSIVE 0x00000002 -#define DISCL_FOREGROUND 0x00000004 -#define DISCL_BACKGROUND 0x00000008 -#define DISCL_NOWINKEY 0x00000010 - -#if (DIRECTINPUT_VERSION >= 0x0500) -/* Device FF flags */ -#define DISFFC_RESET 0x00000001 -#define DISFFC_STOPALL 0x00000002 -#define DISFFC_PAUSE 0x00000004 -#define DISFFC_CONTINUE 0x00000008 -#define DISFFC_SETACTUATORSON 0x00000010 -#define DISFFC_SETACTUATORSOFF 0x00000020 - -#define DIGFFS_EMPTY 0x00000001 -#define DIGFFS_STOPPED 0x00000002 -#define DIGFFS_PAUSED 0x00000004 -#define DIGFFS_ACTUATORSON 0x00000010 -#define DIGFFS_ACTUATORSOFF 0x00000020 -#define DIGFFS_POWERON 0x00000040 -#define DIGFFS_POWEROFF 0x00000080 -#define DIGFFS_SAFETYSWITCHON 0x00000100 -#define DIGFFS_SAFETYSWITCHOFF 0x00000200 -#define DIGFFS_USERFFSWITCHON 0x00000400 -#define DIGFFS_USERFFSWITCHOFF 0x00000800 -#define DIGFFS_DEVICELOST 0x80000000 - -/* Effect flags */ -#define DIEFT_ALL 0x00000000 - -#define DIEFT_CONSTANTFORCE 0x00000001 -#define DIEFT_RAMPFORCE 0x00000002 -#define DIEFT_PERIODIC 0x00000003 -#define DIEFT_CONDITION 0x00000004 -#define DIEFT_CUSTOMFORCE 0x00000005 -#define DIEFT_HARDWARE 0x000000FF -#define DIEFT_FFATTACK 0x00000200 -#define DIEFT_FFFADE 0x00000400 -#define DIEFT_SATURATION 0x00000800 -#define DIEFT_POSNEGCOEFFICIENTS 0x00001000 -#define DIEFT_POSNEGSATURATION 0x00002000 -#define DIEFT_DEADBAND 0x00004000 -#define DIEFT_STARTDELAY 0x00008000 -#define DIEFT_GETTYPE(n) LOBYTE(n) - -#define DIEFF_OBJECTIDS 0x00000001 -#define DIEFF_OBJECTOFFSETS 0x00000002 -#define DIEFF_CARTESIAN 0x00000010 -#define DIEFF_POLAR 0x00000020 -#define DIEFF_SPHERICAL 0x00000040 - -#define DIEP_DURATION 0x00000001 -#define DIEP_SAMPLEPERIOD 0x00000002 -#define DIEP_GAIN 0x00000004 -#define DIEP_TRIGGERBUTTON 0x00000008 -#define DIEP_TRIGGERREPEATINTERVAL 0x00000010 -#define DIEP_AXES 0x00000020 -#define DIEP_DIRECTION 0x00000040 -#define DIEP_ENVELOPE 0x00000080 -#define DIEP_TYPESPECIFICPARAMS 0x00000100 -#if(DIRECTINPUT_VERSION >= 0x0600) -#define DIEP_STARTDELAY 0x00000200 -#define DIEP_ALLPARAMS_DX5 0x000001FF -#define DIEP_ALLPARAMS 0x000003FF -#else -#define DIEP_ALLPARAMS 0x000001FF -#endif /* DIRECTINPUT_VERSION >= 0x0600 */ -#define DIEP_START 0x20000000 -#define DIEP_NORESTART 0x40000000 -#define DIEP_NODOWNLOAD 0x80000000 -#define DIEB_NOTRIGGER 0xFFFFFFFF - -#define DIES_SOLO 0x00000001 -#define DIES_NODOWNLOAD 0x80000000 - -#define DIEGES_PLAYING 0x00000001 -#define DIEGES_EMULATED 0x00000002 - -#define DI_DEGREES 100 -#define DI_FFNOMINALMAX 10000 -#define DI_SECONDS 1000000 - -typedef struct DICONSTANTFORCE { - LONG lMagnitude; -} DICONSTANTFORCE, *LPDICONSTANTFORCE; -typedef const DICONSTANTFORCE *LPCDICONSTANTFORCE; - -typedef struct DIRAMPFORCE { - LONG lStart; - LONG lEnd; -} DIRAMPFORCE, *LPDIRAMPFORCE; -typedef const DIRAMPFORCE *LPCDIRAMPFORCE; - -typedef struct DIPERIODIC { - DWORD dwMagnitude; - LONG lOffset; - DWORD dwPhase; - DWORD dwPeriod; -} DIPERIODIC, *LPDIPERIODIC; -typedef const DIPERIODIC *LPCDIPERIODIC; - -typedef struct DICONDITION { - LONG lOffset; - LONG lPositiveCoefficient; - LONG lNegativeCoefficient; - DWORD dwPositiveSaturation; - DWORD dwNegativeSaturation; - LONG lDeadBand; -} DICONDITION, *LPDICONDITION; -typedef const DICONDITION *LPCDICONDITION; - -typedef struct DICUSTOMFORCE { - DWORD cChannels; - DWORD dwSamplePeriod; - DWORD cSamples; - LPLONG rglForceData; -} DICUSTOMFORCE, *LPDICUSTOMFORCE; -typedef const DICUSTOMFORCE *LPCDICUSTOMFORCE; - -typedef struct DIENVELOPE { - DWORD dwSize; - DWORD dwAttackLevel; - DWORD dwAttackTime; - DWORD dwFadeLevel; - DWORD dwFadeTime; -} DIENVELOPE, *LPDIENVELOPE; -typedef const DIENVELOPE *LPCDIENVELOPE; - -typedef struct DIEFFECT_DX5 { - DWORD dwSize; - DWORD dwFlags; - DWORD dwDuration; - DWORD dwSamplePeriod; - DWORD dwGain; - DWORD dwTriggerButton; - DWORD dwTriggerRepeatInterval; - DWORD cAxes; - LPDWORD rgdwAxes; - LPLONG rglDirection; - LPDIENVELOPE lpEnvelope; - DWORD cbTypeSpecificParams; - LPVOID lpvTypeSpecificParams; -} DIEFFECT_DX5, *LPDIEFFECT_DX5; -typedef const DIEFFECT_DX5 *LPCDIEFFECT_DX5; - -typedef struct DIEFFECT { - DWORD dwSize; - DWORD dwFlags; - DWORD dwDuration; - DWORD dwSamplePeriod; - DWORD dwGain; - DWORD dwTriggerButton; - DWORD dwTriggerRepeatInterval; - DWORD cAxes; - LPDWORD rgdwAxes; - LPLONG rglDirection; - LPDIENVELOPE lpEnvelope; - DWORD cbTypeSpecificParams; - LPVOID lpvTypeSpecificParams; -#if(DIRECTINPUT_VERSION >= 0x0600) - DWORD dwStartDelay; -#endif /* DIRECTINPUT_VERSION >= 0x0600 */ -} DIEFFECT, *LPDIEFFECT; -typedef const DIEFFECT *LPCDIEFFECT; -typedef DIEFFECT DIEFFECT_DX6; -typedef LPDIEFFECT LPDIEFFECT_DX6; - -typedef struct DIEFFECTINFOA { - DWORD dwSize; - GUID guid; - DWORD dwEffType; - DWORD dwStaticParams; - DWORD dwDynamicParams; - CHAR tszName[MAX_PATH]; -} DIEFFECTINFOA, *LPDIEFFECTINFOA; -typedef const DIEFFECTINFOA *LPCDIEFFECTINFOA; - -typedef struct DIEFFECTINFOW { - DWORD dwSize; - GUID guid; - DWORD dwEffType; - DWORD dwStaticParams; - DWORD dwDynamicParams; - WCHAR tszName[MAX_PATH]; -} DIEFFECTINFOW, *LPDIEFFECTINFOW; -typedef const DIEFFECTINFOW *LPCDIEFFECTINFOW; - -DECL_WINELIB_TYPE_AW(DIEFFECTINFO) -DECL_WINELIB_TYPE_AW(LPDIEFFECTINFO) -DECL_WINELIB_TYPE_AW(LPCDIEFFECTINFO) - -typedef BOOL (CALLBACK *LPDIENUMEFFECTSCALLBACKA)(LPCDIEFFECTINFOA, LPVOID); -typedef BOOL (CALLBACK *LPDIENUMEFFECTSCALLBACKW)(LPCDIEFFECTINFOW, LPVOID); - -typedef struct DIEFFESCAPE { - DWORD dwSize; - DWORD dwCommand; - LPVOID lpvInBuffer; - DWORD cbInBuffer; - LPVOID lpvOutBuffer; - DWORD cbOutBuffer; -} DIEFFESCAPE, *LPDIEFFESCAPE; - -typedef struct DIJOYSTATE { - LONG lX; - LONG lY; - LONG lZ; - LONG lRx; - LONG lRy; - LONG lRz; - LONG rglSlider[2]; - DWORD rgdwPOV[4]; - BYTE rgbButtons[32]; -} DIJOYSTATE, *LPDIJOYSTATE; - -typedef struct DIJOYSTATE2 { - LONG lX; - LONG lY; - LONG lZ; - LONG lRx; - LONG lRy; - LONG lRz; - LONG rglSlider[2]; - DWORD rgdwPOV[4]; - BYTE rgbButtons[128]; - LONG lVX; /* 'v' as in velocity */ - LONG lVY; - LONG lVZ; - LONG lVRx; - LONG lVRy; - LONG lVRz; - LONG rglVSlider[2]; - LONG lAX; /* 'a' as in acceleration */ - LONG lAY; - LONG lAZ; - LONG lARx; - LONG lARy; - LONG lARz; - LONG rglASlider[2]; - LONG lFX; /* 'f' as in force */ - LONG lFY; - LONG lFZ; - LONG lFRx; /* 'fr' as in rotational force aka torque */ - LONG lFRy; - LONG lFRz; - LONG rglFSlider[2]; -} DIJOYSTATE2, *LPDIJOYSTATE2; - -#define DIJOFS_X FIELD_OFFSET(DIJOYSTATE, lX) -#define DIJOFS_Y FIELD_OFFSET(DIJOYSTATE, lY) -#define DIJOFS_Z FIELD_OFFSET(DIJOYSTATE, lZ) -#define DIJOFS_RX FIELD_OFFSET(DIJOYSTATE, lRx) -#define DIJOFS_RY FIELD_OFFSET(DIJOYSTATE, lRy) -#define DIJOFS_RZ FIELD_OFFSET(DIJOYSTATE, lRz) -#define DIJOFS_SLIDER(n) (FIELD_OFFSET(DIJOYSTATE, rglSlider) + \ - (n) * sizeof(LONG)) -#define DIJOFS_POV(n) (FIELD_OFFSET(DIJOYSTATE, rgdwPOV) + \ - (n) * sizeof(DWORD)) -#define DIJOFS_BUTTON(n) (FIELD_OFFSET(DIJOYSTATE, rgbButtons) + (n)) -#define DIJOFS_BUTTON0 DIJOFS_BUTTON(0) -#define DIJOFS_BUTTON1 DIJOFS_BUTTON(1) -#define DIJOFS_BUTTON2 DIJOFS_BUTTON(2) -#define DIJOFS_BUTTON3 DIJOFS_BUTTON(3) -#define DIJOFS_BUTTON4 DIJOFS_BUTTON(4) -#define DIJOFS_BUTTON5 DIJOFS_BUTTON(5) -#define DIJOFS_BUTTON6 DIJOFS_BUTTON(6) -#define DIJOFS_BUTTON7 DIJOFS_BUTTON(7) -#define DIJOFS_BUTTON8 DIJOFS_BUTTON(8) -#define DIJOFS_BUTTON9 DIJOFS_BUTTON(9) -#define DIJOFS_BUTTON10 DIJOFS_BUTTON(10) -#define DIJOFS_BUTTON11 DIJOFS_BUTTON(11) -#define DIJOFS_BUTTON12 DIJOFS_BUTTON(12) -#define DIJOFS_BUTTON13 DIJOFS_BUTTON(13) -#define DIJOFS_BUTTON14 DIJOFS_BUTTON(14) -#define DIJOFS_BUTTON15 DIJOFS_BUTTON(15) -#define DIJOFS_BUTTON16 DIJOFS_BUTTON(16) -#define DIJOFS_BUTTON17 DIJOFS_BUTTON(17) -#define DIJOFS_BUTTON18 DIJOFS_BUTTON(18) -#define DIJOFS_BUTTON19 DIJOFS_BUTTON(19) -#define DIJOFS_BUTTON20 DIJOFS_BUTTON(20) -#define DIJOFS_BUTTON21 DIJOFS_BUTTON(21) -#define DIJOFS_BUTTON22 DIJOFS_BUTTON(22) -#define DIJOFS_BUTTON23 DIJOFS_BUTTON(23) -#define DIJOFS_BUTTON24 DIJOFS_BUTTON(24) -#define DIJOFS_BUTTON25 DIJOFS_BUTTON(25) -#define DIJOFS_BUTTON26 DIJOFS_BUTTON(26) -#define DIJOFS_BUTTON27 DIJOFS_BUTTON(27) -#define DIJOFS_BUTTON28 DIJOFS_BUTTON(28) -#define DIJOFS_BUTTON29 DIJOFS_BUTTON(29) -#define DIJOFS_BUTTON30 DIJOFS_BUTTON(30) -#define DIJOFS_BUTTON31 DIJOFS_BUTTON(31) -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ - -/* DInput 7 structures, types */ -#if(DIRECTINPUT_VERSION >= 0x0700) -typedef struct DIFILEEFFECT { - DWORD dwSize; - GUID GuidEffect; - LPCDIEFFECT lpDiEffect; - CHAR szFriendlyName[MAX_PATH]; -} DIFILEEFFECT, *LPDIFILEEFFECT; - -typedef const DIFILEEFFECT *LPCDIFILEEFFECT; -typedef BOOL (CALLBACK *LPDIENUMEFFECTSINFILECALLBACK)(LPCDIFILEEFFECT , LPVOID); -#endif /* DIRECTINPUT_VERSION >= 0x0700 */ - -/* DInput 8 structures and types */ -#if DIRECTINPUT_VERSION >= 0x0800 -typedef struct _DIACTIONA { - UINT_PTR uAppData; - DWORD dwSemantic; - DWORD dwFlags; - __GNU_EXTENSION union { - LPCSTR lptszActionName; - UINT uResIdString; - } DUMMYUNIONNAME; - GUID guidInstance; - DWORD dwObjID; - DWORD dwHow; -} DIACTIONA, *LPDIACTIONA; -typedef const DIACTIONA *LPCDIACTIONA; - -typedef struct _DIACTIONW { - UINT_PTR uAppData; - DWORD dwSemantic; - DWORD dwFlags; - __GNU_EXTENSION union { - LPCWSTR lptszActionName; - UINT uResIdString; - } DUMMYUNIONNAME; - GUID guidInstance; - DWORD dwObjID; - DWORD dwHow; -} DIACTIONW, *LPDIACTIONW; -typedef const DIACTIONW *LPCDIACTIONW; - -DECL_WINELIB_TYPE_AW(DIACTION) -DECL_WINELIB_TYPE_AW(LPDIACTION) -DECL_WINELIB_TYPE_AW(LPCDIACTION) - -#define DIA_FORCEFEEDBACK 0x00000001 -#define DIA_APPMAPPED 0x00000002 -#define DIA_APPNOMAP 0x00000004 -#define DIA_NORANGE 0x00000008 -#define DIA_APPFIXED 0x00000010 - -#define DIAH_UNMAPPED 0x00000000 -#define DIAH_USERCONFIG 0x00000001 -#define DIAH_APPREQUESTED 0x00000002 -#define DIAH_HWAPP 0x00000004 -#define DIAH_HWDEFAULT 0x00000008 -#define DIAH_DEFAULT 0x00000020 -#define DIAH_ERROR 0x80000000 - -typedef struct _DIACTIONFORMATA { - DWORD dwSize; - DWORD dwActionSize; - DWORD dwDataSize; - DWORD dwNumActions; - LPDIACTIONA rgoAction; - GUID guidActionMap; - DWORD dwGenre; - DWORD dwBufferSize; - LONG lAxisMin; - LONG lAxisMax; - HINSTANCE hInstString; - FILETIME ftTimeStamp; - DWORD dwCRC; - CHAR tszActionMap[MAX_PATH]; -} DIACTIONFORMATA, *LPDIACTIONFORMATA; -typedef const DIACTIONFORMATA *LPCDIACTIONFORMATA; - -typedef struct _DIACTIONFORMATW { - DWORD dwSize; - DWORD dwActionSize; - DWORD dwDataSize; - DWORD dwNumActions; - LPDIACTIONW rgoAction; - GUID guidActionMap; - DWORD dwGenre; - DWORD dwBufferSize; - LONG lAxisMin; - LONG lAxisMax; - HINSTANCE hInstString; - FILETIME ftTimeStamp; - DWORD dwCRC; - WCHAR tszActionMap[MAX_PATH]; -} DIACTIONFORMATW, *LPDIACTIONFORMATW; -typedef const DIACTIONFORMATW *LPCDIACTIONFORMATW; - -DECL_WINELIB_TYPE_AW(DIACTIONFORMAT) -DECL_WINELIB_TYPE_AW(LPDIACTIONFORMAT) -DECL_WINELIB_TYPE_AW(LPCDIACTIONFORMAT) - -#define DIAFTS_NEWDEVICELOW 0xFFFFFFFF -#define DIAFTS_NEWDEVICEHIGH 0xFFFFFFFF -#define DIAFTS_UNUSEDDEVICELOW 0x00000000 -#define DIAFTS_UNUSEDDEVICEHIGH 0x00000000 - -#define DIDBAM_DEFAULT 0x00000000 -#define DIDBAM_PRESERVE 0x00000001 -#define DIDBAM_INITIALIZE 0x00000002 -#define DIDBAM_HWDEFAULTS 0x00000004 - -#define DIDSAM_DEFAULT 0x00000000 -#define DIDSAM_NOUSER 0x00000001 -#define DIDSAM_FORCESAVE 0x00000002 - -#define DICD_DEFAULT 0x00000000 -#define DICD_EDIT 0x00000001 - -#ifndef D3DCOLOR_DEFINED -typedef DWORD D3DCOLOR; -#define D3DCOLOR_DEFINED -#endif - -typedef struct _DICOLORSET { - DWORD dwSize; - D3DCOLOR cTextFore; - D3DCOLOR cTextHighlight; - D3DCOLOR cCalloutLine; - D3DCOLOR cCalloutHighlight; - D3DCOLOR cBorder; - D3DCOLOR cControlFill; - D3DCOLOR cHighlightFill; - D3DCOLOR cAreaFill; -} DICOLORSET, *LPDICOLORSET; -typedef const DICOLORSET *LPCDICOLORSET; - -typedef struct _DICONFIGUREDEVICESPARAMSA { - DWORD dwSize; - DWORD dwcUsers; - LPSTR lptszUserNames; - DWORD dwcFormats; - LPDIACTIONFORMATA lprgFormats; - HWND hwnd; - DICOLORSET dics; - LPUNKNOWN lpUnkDDSTarget; -} DICONFIGUREDEVICESPARAMSA, *LPDICONFIGUREDEVICESPARAMSA; -typedef const DICONFIGUREDEVICESPARAMSA *LPCDICONFIGUREDEVICESPARAMSA; - -typedef struct _DICONFIGUREDEVICESPARAMSW { - DWORD dwSize; - DWORD dwcUsers; - LPWSTR lptszUserNames; - DWORD dwcFormats; - LPDIACTIONFORMATW lprgFormats; - HWND hwnd; - DICOLORSET dics; - LPUNKNOWN lpUnkDDSTarget; -} DICONFIGUREDEVICESPARAMSW, *LPDICONFIGUREDEVICESPARAMSW; -typedef const DICONFIGUREDEVICESPARAMSW *LPCDICONFIGUREDEVICESPARAMSW; - -DECL_WINELIB_TYPE_AW(DICONFIGUREDEVICESPARAMS) -DECL_WINELIB_TYPE_AW(LPDICONFIGUREDEVICESPARAMS) -DECL_WINELIB_TYPE_AW(LPCDICONFIGUREDEVICESPARAMS) - -#define DIDIFT_CONFIGURATION 0x00000001 -#define DIDIFT_OVERLAY 0x00000002 - -#define DIDAL_CENTERED 0x00000000 -#define DIDAL_LEFTALIGNED 0x00000001 -#define DIDAL_RIGHTALIGNED 0x00000002 -#define DIDAL_MIDDLE 0x00000000 -#define DIDAL_TOPALIGNED 0x00000004 -#define DIDAL_BOTTOMALIGNED 0x00000008 - -typedef struct _DIDEVICEIMAGEINFOA { - CHAR tszImagePath[MAX_PATH]; - DWORD dwFlags; - DWORD dwViewID; - RECT rcOverlay; - DWORD dwObjID; - DWORD dwcValidPts; - POINT rgptCalloutLine[5]; - RECT rcCalloutRect; - DWORD dwTextAlign; -} DIDEVICEIMAGEINFOA, *LPDIDEVICEIMAGEINFOA; -typedef const DIDEVICEIMAGEINFOA *LPCDIDEVICEIMAGEINFOA; - -typedef struct _DIDEVICEIMAGEINFOW { - WCHAR tszImagePath[MAX_PATH]; - DWORD dwFlags; - DWORD dwViewID; - RECT rcOverlay; - DWORD dwObjID; - DWORD dwcValidPts; - POINT rgptCalloutLine[5]; - RECT rcCalloutRect; - DWORD dwTextAlign; -} DIDEVICEIMAGEINFOW, *LPDIDEVICEIMAGEINFOW; -typedef const DIDEVICEIMAGEINFOW *LPCDIDEVICEIMAGEINFOW; - -DECL_WINELIB_TYPE_AW(DIDEVICEIMAGEINFO) -DECL_WINELIB_TYPE_AW(LPDIDEVICEIMAGEINFO) -DECL_WINELIB_TYPE_AW(LPCDIDEVICEIMAGEINFO) - -typedef struct _DIDEVICEIMAGEINFOHEADERA { - DWORD dwSize; - DWORD dwSizeImageInfo; - DWORD dwcViews; - DWORD dwcButtons; - DWORD dwcAxes; - DWORD dwcPOVs; - DWORD dwBufferSize; - DWORD dwBufferUsed; - LPDIDEVICEIMAGEINFOA lprgImageInfoArray; -} DIDEVICEIMAGEINFOHEADERA, *LPDIDEVICEIMAGEINFOHEADERA; -typedef const DIDEVICEIMAGEINFOHEADERA *LPCDIDEVICEIMAGEINFOHEADERA; - -typedef struct _DIDEVICEIMAGEINFOHEADERW { - DWORD dwSize; - DWORD dwSizeImageInfo; - DWORD dwcViews; - DWORD dwcButtons; - DWORD dwcAxes; - DWORD dwcPOVs; - DWORD dwBufferSize; - DWORD dwBufferUsed; - LPDIDEVICEIMAGEINFOW lprgImageInfoArray; -} DIDEVICEIMAGEINFOHEADERW, *LPDIDEVICEIMAGEINFOHEADERW; -typedef const DIDEVICEIMAGEINFOHEADERW *LPCDIDEVICEIMAGEINFOHEADERW; - -DECL_WINELIB_TYPE_AW(DIDEVICEIMAGEINFOHEADER) -DECL_WINELIB_TYPE_AW(LPDIDEVICEIMAGEINFOHEADER) -DECL_WINELIB_TYPE_AW(LPCDIDEVICEIMAGEINFOHEADER) - -#endif /* DI8 */ - - -/***************************************************************************** - * IDirectInputEffect interface - */ -#if (DIRECTINPUT_VERSION >= 0x0500) -#undef INTERFACE -#define INTERFACE IDirectInputEffect -DECLARE_INTERFACE_(IDirectInputEffect,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputEffect methods ***/ - STDMETHOD(Initialize)(THIS_ HINSTANCE, DWORD, REFGUID) PURE; - STDMETHOD(GetEffectGuid)(THIS_ LPGUID) PURE; - STDMETHOD(GetParameters)(THIS_ LPDIEFFECT, DWORD) PURE; - STDMETHOD(SetParameters)(THIS_ LPCDIEFFECT, DWORD) PURE; - STDMETHOD(Start)(THIS_ DWORD, DWORD) PURE; - STDMETHOD(Stop)(THIS) PURE; - STDMETHOD(GetEffectStatus)(THIS_ LPDWORD) PURE; - STDMETHOD(Download)(THIS) PURE; - STDMETHOD(Unload)(THIS) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInputEffect_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputEffect_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputEffect_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInputEffect methods ***/ -#define IDirectInputEffect_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectInputEffect_GetEffectGuid(p,a) (p)->lpVtbl->GetEffectGuid(p,a) -#define IDirectInputEffect_GetParameters(p,a,b) (p)->lpVtbl->GetParameters(p,a,b) -#define IDirectInputEffect_SetParameters(p,a,b) (p)->lpVtbl->SetParameters(p,a,b) -#define IDirectInputEffect_Start(p,a,b) (p)->lpVtbl->Start(p,a,b) -#define IDirectInputEffect_Stop(p) (p)->lpVtbl->Stop(p) -#define IDirectInputEffect_GetEffectStatus(p,a) (p)->lpVtbl->GetEffectStatus(p,a) -#define IDirectInputEffect_Download(p) (p)->lpVtbl->Download(p) -#define IDirectInputEffect_Unload(p) (p)->lpVtbl->Unload(p) -#define IDirectInputEffect_Escape(p,a) (p)->lpVtbl->Escape(p,a) -#else -/*** IUnknown methods ***/ -#define IDirectInputEffect_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputEffect_AddRef(p) (p)->AddRef() -#define IDirectInputEffect_Release(p) (p)->Release() -/*** IDirectInputEffect methods ***/ -#define IDirectInputEffect_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectInputEffect_GetEffectGuid(p,a) (p)->GetEffectGuid(a) -#define IDirectInputEffect_GetParameters(p,a,b) (p)->GetParameters(a,b) -#define IDirectInputEffect_SetParameters(p,a,b) (p)->SetParameters(a,b) -#define IDirectInputEffect_Start(p,a,b) (p)->Start(a,b) -#define IDirectInputEffect_Stop(p) (p)->Stop() -#define IDirectInputEffect_GetEffectStatus(p,a) (p)->GetEffectStatus(a) -#define IDirectInputEffect_Download(p) (p)->Download() -#define IDirectInputEffect_Unload(p) (p)->Unload() -#define IDirectInputEffect_Escape(p,a) (p)->Escape(a) -#endif - -#endif /* DI5 */ - - -/***************************************************************************** - * IDirectInputDeviceA interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputDeviceA -DECLARE_INTERFACE_(IDirectInputDeviceA,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputDeviceA methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE; -}; - -/***************************************************************************** - * IDirectInputDeviceW interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputDeviceW -DECLARE_INTERFACE_(IDirectInputDeviceW,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputDeviceW methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInputDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputDevice_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputDevice_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInputDevice methods ***/ -#define IDirectInputDevice_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IDirectInputDevice_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IDirectInputDevice_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) -#define IDirectInputDevice_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputDevice_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputDevice_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) -#define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) -#define IDirectInputDevice_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) -#define IDirectInputDevice_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) -#define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) -#define IDirectInputDevice_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) -#define IDirectInputDevice_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInputDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#else -/*** IUnknown methods ***/ -#define IDirectInputDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputDevice_AddRef(p) (p)->AddRef() -#define IDirectInputDevice_Release(p) (p)->Release() -/*** IDirectInputDevice methods ***/ -#define IDirectInputDevice_GetCapabilities(p,a) (p)->GetCapabilities(a) -#define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) -#define IDirectInputDevice_GetProperty(p,a,b) (p)->GetProperty(a,b) -#define IDirectInputDevice_SetProperty(p,a,b) (p)->SetProperty(a,b) -#define IDirectInputDevice_Acquire(p) (p)->Acquire() -#define IDirectInputDevice_Unacquire(p) (p)->Unacquire() -#define IDirectInputDevice_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) -#define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) -#define IDirectInputDevice_SetDataFormat(p,a) (p)->SetDataFormat(a) -#define IDirectInputDevice_SetEventNotification(p,a) (p)->SetEventNotification(a) -#define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) -#define IDirectInputDevice_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) -#define IDirectInputDevice_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInputDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#endif - - -#if (DIRECTINPUT_VERSION >= 0x0500) -/***************************************************************************** - * IDirectInputDevice2A interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputDevice2A -DECLARE_INTERFACE_(IDirectInputDevice2A,IDirectInputDeviceA) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputDeviceA methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE; - /*** IDirectInputDevice2A methods ***/ - STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE; -}; - -/***************************************************************************** - * IDirectInputDevice2W interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputDevice2W -DECLARE_INTERFACE_(IDirectInputDevice2W,IDirectInputDeviceW) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputDeviceW methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE; - /*** IDirectInputDevice2W methods ***/ - STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInputDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputDevice2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputDevice2_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInputDevice methods ***/ -#define IDirectInputDevice2_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IDirectInputDevice2_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IDirectInputDevice2_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) -#define IDirectInputDevice2_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputDevice2_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) -#define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) -#define IDirectInputDevice2_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) -#define IDirectInputDevice2_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) -#define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) -#define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) -#define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInputDevice2_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -/*** IDirectInputDevice2 methods ***/ -#define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) -#define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) -#define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) -#define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) -#define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) -#define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) -#define IDirectInputDevice2_Escape(p,a) (p)->lpVtbl->Escape(p,a) -#define IDirectInputDevice2_Poll(p) (p)->lpVtbl->Poll(p) -#define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) -#else -/*** IUnknown methods ***/ -#define IDirectInputDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputDevice2_AddRef(p) (p)->AddRef() -#define IDirectInputDevice2_Release(p) (p)->Release() -/*** IDirectInputDevice methods ***/ -#define IDirectInputDevice2_GetCapabilities(p,a) (p)->GetCapabilities(a) -#define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) -#define IDirectInputDevice2_GetProperty(p,a,b) (p)->GetProperty(a,b) -#define IDirectInputDevice2_SetProperty(p,a,b) (p)->SetProperty(a,b) -#define IDirectInputDevice2_Acquire(p) (p)->Acquire() -#define IDirectInputDevice2_Unacquire(p) (p)->Unacquire() -#define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) -#define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) -#define IDirectInputDevice2_SetDataFormat(p,a) (p)->SetDataFormat(a) -#define IDirectInputDevice2_SetEventNotification(p,a) (p)->SetEventNotification(a) -#define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) -#define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) -#define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInputDevice2_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -/*** IDirectInputDevice2 methods ***/ -#define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) -#define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) -#define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) -#define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) -#define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) -#define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) -#define IDirectInputDevice2_Escape(p,a) (p)->Escape(a) -#define IDirectInputDevice2_Poll(p) (p)->Poll() -#define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) -#endif -#endif /* DI5 */ - -#if DIRECTINPUT_VERSION >= 0x0700 -/***************************************************************************** - * IDirectInputDevice7A interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputDevice7A -DECLARE_INTERFACE_(IDirectInputDevice7A,IDirectInputDevice2A) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputDeviceA methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE; - /*** IDirectInputDevice2A methods ***/ - STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE; - /*** IDirectInputDevice7A methods ***/ - STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE; - STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE; -}; - -/***************************************************************************** - * IDirectInputDevice7W interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputDevice7W -DECLARE_INTERFACE_(IDirectInputDevice7W,IDirectInputDevice2W) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputDeviceW methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE; - /*** IDirectInputDevice2W methods ***/ - STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE; - /*** IDirectInputDevice7W methods ***/ - STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE; - STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInputDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputDevice7_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputDevice7_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInputDevice methods ***/ -#define IDirectInputDevice7_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IDirectInputDevice7_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IDirectInputDevice7_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) -#define IDirectInputDevice7_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputDevice7_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) -#define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) -#define IDirectInputDevice7_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) -#define IDirectInputDevice7_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) -#define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) -#define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) -#define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInputDevice7_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -/*** IDirectInputDevice2 methods ***/ -#define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) -#define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) -#define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) -#define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) -#define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) -#define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) -#define IDirectInputDevice7_Escape(p,a) (p)->lpVtbl->Escape(p,a) -#define IDirectInputDevice7_Poll(p) (p)->lpVtbl->Poll(p) -#define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) -/*** IDirectInputDevice7 methods ***/ -#define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d) -#define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d) -#else -/*** IUnknown methods ***/ -#define IDirectInputDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputDevice7_AddRef(p) (p)->AddRef() -#define IDirectInputDevice7_Release(p) (p)->Release() -/*** IDirectInputDevice methods ***/ -#define IDirectInputDevice7_GetCapabilities(p,a) (p)->GetCapabilities(a) -#define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) -#define IDirectInputDevice7_GetProperty(p,a,b) (p)->GetProperty(a,b) -#define IDirectInputDevice7_SetProperty(p,a,b) (p)->SetProperty(a,b) -#define IDirectInputDevice7_Acquire(p) (p)->Acquire() -#define IDirectInputDevice7_Unacquire(p) (p)->Unacquire() -#define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) -#define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) -#define IDirectInputDevice7_SetDataFormat(p,a) (p)->SetDataFormat(a) -#define IDirectInputDevice7_SetEventNotification(p,a) (p)->SetEventNotification(a) -#define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) -#define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) -#define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInputDevice7_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -/*** IDirectInputDevice2 methods ***/ -#define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) -#define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) -#define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) -#define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) -#define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) -#define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) -#define IDirectInputDevice7_Escape(p,a) (p)->Escape(a) -#define IDirectInputDevice7_Poll(p) (p)->Poll() -#define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) -/*** IDirectInputDevice7 methods ***/ -#define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d) -#define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d) -#endif - -#endif /* DI7 */ - -#if DIRECTINPUT_VERSION >= 0x0800 -/***************************************************************************** - * IDirectInputDevice8A interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputDevice8A -DECLARE_INTERFACE_(IDirectInputDevice8A,IDirectInputDevice7A) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputDeviceA methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE; - /*** IDirectInputDevice2A methods ***/ - STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE; - /*** IDirectInputDevice7A methods ***/ - STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE; - STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE; - /*** IDirectInputDevice8A methods ***/ - STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATA lpdiaf, LPCSTR lpszUserName, DWORD dwFlags) PURE; - STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATA lpdiaf, LPCSTR lpszUserName, DWORD dwFlags) PURE; - STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERA lpdiDevImageInfoHeader) PURE; -}; - -/***************************************************************************** - * IDirectInputDevice8W interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputDevice8W -DECLARE_INTERFACE_(IDirectInputDevice8W,IDirectInputDevice7W) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputDeviceW methods ***/ - STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE; - STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE; - STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE; - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE; - STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE; - STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE; - STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE; - STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE; - STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE; - /*** IDirectInputDevice2W methods ***/ - STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE; - STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE; - STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE; - STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE; - STDMETHOD(Poll)(THIS) PURE; - STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE; - /*** IDirectInputDevice7W methods ***/ - STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE; - STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE; - /*** IDirectInputDevice8W methods ***/ - STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) PURE; - STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) PURE; - STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERW lpdiDevImageInfoHeader) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInputDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputDevice8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputDevice8_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInputDevice methods ***/ -#define IDirectInputDevice8_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IDirectInputDevice8_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IDirectInputDevice8_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) -#define IDirectInputDevice8_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputDevice8_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) -#define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) -#define IDirectInputDevice8_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) -#define IDirectInputDevice8_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) -#define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) -#define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) -#define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInputDevice8_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -/*** IDirectInputDevice2 methods ***/ -#define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) -#define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) -#define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) -#define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) -#define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) -#define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) -#define IDirectInputDevice8_Escape(p,a) (p)->lpVtbl->Escape(p,a) -#define IDirectInputDevice8_Poll(p) (p)->lpVtbl->Poll(p) -#define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) -/*** IDirectInputDevice7 methods ***/ -#define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d) -#define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d) -/*** IDirectInputDevice8 methods ***/ -#define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->lpVtbl->BuildActionMap(p,a,b,c) -#define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->lpVtbl->SetActionMap(p,a,b,c) -#define IDirectInputDevice8_GetImageInfo(p,a) (p)->lpVtbl->GetImageInfo(p,a) -#else -/*** IUnknown methods ***/ -#define IDirectInputDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputDevice8_AddRef(p) (p)->AddRef() -#define IDirectInputDevice8_Release(p) (p)->Release() -/*** IDirectInputDevice methods ***/ -#define IDirectInputDevice8_GetCapabilities(p,a) (p)->GetCapabilities(a) -#define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) -#define IDirectInputDevice8_GetProperty(p,a,b) (p)->GetProperty(a,b) -#define IDirectInputDevice8_SetProperty(p,a,b) (p)->SetProperty(a,b) -#define IDirectInputDevice8_Acquire(p) (p)->Acquire() -#define IDirectInputDevice8_Unacquire(p) (p)->Unacquire() -#define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) -#define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) -#define IDirectInputDevice8_SetDataFormat(p,a) (p)->SetDataFormat(a) -#define IDirectInputDevice8_SetEventNotification(p,a) (p)->SetEventNotification(a) -#define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) -#define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) -#define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInputDevice8_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -/*** IDirectInputDevice2 methods ***/ -#define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) -#define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) -#define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) -#define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) -#define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) -#define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) -#define IDirectInputDevice8_Escape(p,a) (p)->Escape(a) -#define IDirectInputDevice8_Poll(p) (p)->Poll() -#define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) -/*** IDirectInputDevice7 methods ***/ -#define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d) -#define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d) -/*** IDirectInputDevice8 methods ***/ -#define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->BuildActionMap(a,b,c) -#define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->SetActionMap(a,b,c) -#define IDirectInputDevice8_GetImageInfo(p,a) (p)->GetImageInfo(a) -#endif - -#endif /* DI8 */ - -/* "Standard" Mouse report... */ -typedef struct DIMOUSESTATE { - LONG lX; - LONG lY; - LONG lZ; - BYTE rgbButtons[4]; -} DIMOUSESTATE; - -#if DIRECTINPUT_VERSION >= 0x0700 -/* "Standard" Mouse report for DInput 7... */ -typedef struct DIMOUSESTATE2 { - LONG lX; - LONG lY; - LONG lZ; - BYTE rgbButtons[8]; -} DIMOUSESTATE2; -#endif /* DI7 */ - -#define DIMOFS_X FIELD_OFFSET(DIMOUSESTATE, lX) -#define DIMOFS_Y FIELD_OFFSET(DIMOUSESTATE, lY) -#define DIMOFS_Z FIELD_OFFSET(DIMOUSESTATE, lZ) -#define DIMOFS_BUTTON0 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 0) -#define DIMOFS_BUTTON1 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 1) -#define DIMOFS_BUTTON2 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 2) -#define DIMOFS_BUTTON3 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 3) -#if DIRECTINPUT_VERSION >= 0x0700 -#define DIMOFS_BUTTON4 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 4) -#define DIMOFS_BUTTON5 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 5) -#define DIMOFS_BUTTON6 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 6) -#define DIMOFS_BUTTON7 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 7) -#endif /* DI7 */ - -#ifdef __cplusplus -extern "C" { -#endif -extern const DIDATAFORMAT c_dfDIMouse; -#if DIRECTINPUT_VERSION >= 0x0700 -extern const DIDATAFORMAT c_dfDIMouse2; /* DX 7 */ -#endif /* DI7 */ -extern const DIDATAFORMAT c_dfDIKeyboard; -#if DIRECTINPUT_VERSION >= 0x0500 -extern const DIDATAFORMAT c_dfDIJoystick; -extern const DIDATAFORMAT c_dfDIJoystick2; -#endif /* DI5 */ -#ifdef __cplusplus -}; -#endif - -/***************************************************************************** - * IDirectInputA interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputA -DECLARE_INTERFACE_(IDirectInputA,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputA methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE; -}; - -/***************************************************************************** - * IDirectInputW interface - */ -#undef INTERFACE -#define INTERFACE IDirectInputW -DECLARE_INTERFACE_(IDirectInputW,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputW methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInput_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInput_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInput_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInput methods ***/ -#define IDirectInput_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) -#define IDirectInput_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectInput_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) -#define IDirectInput_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInput_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#else -/*** IUnknown methods ***/ -#define IDirectInput_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInput_AddRef(p) (p)->AddRef() -#define IDirectInput_Release(p) (p)->Release() -/*** IDirectInput methods ***/ -#define IDirectInput_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) -#define IDirectInput_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectInput_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) -#define IDirectInput_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInput_Initialize(p,a,b) (p)->Initialize(a,b) -#endif - -/***************************************************************************** - * IDirectInput2A interface - */ -#undef INTERFACE -#define INTERFACE IDirectInput2A -DECLARE_INTERFACE_(IDirectInput2A,IDirectInputA) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputA methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE; - /*** IDirectInput2A methods ***/ - STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE; -}; - -/***************************************************************************** - * IDirectInput2W interface - */ -#undef INTERFACE -#define INTERFACE IDirectInput2W -DECLARE_INTERFACE_(IDirectInput2W,IDirectInputW) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputW methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE; - /*** IDirectInput2W methods ***/ - STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInput2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInput2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInput2_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInput methods ***/ -#define IDirectInput2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) -#define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectInput2_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) -#define IDirectInput2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInput2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -/*** IDirectInput2 methods ***/ -#define IDirectInput2_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) -#else -/*** IUnknown methods ***/ -#define IDirectInput2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInput2_AddRef(p) (p)->AddRef() -#define IDirectInput2_Release(p) (p)->Release() -/*** IDirectInput methods ***/ -#define IDirectInput2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) -#define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectInput2_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) -#define IDirectInput2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInput2_Initialize(p,a,b) (p)->Initialize(a,b) -/*** IDirectInput2 methods ***/ -#define IDirectInput2_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) -#endif - -/***************************************************************************** - * IDirectInput7A interface - */ -#undef INTERFACE -#define INTERFACE IDirectInput7A -DECLARE_INTERFACE_(IDirectInput7A,IDirectInput2A) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputA methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE; - /*** IDirectInput2A methods ***/ - STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE; - /*** IDirectInput7A methods ***/ - STDMETHOD(CreateDeviceEx)(THIS_ REFGUID rguid, REFIID riid, LPVOID *pvOut, LPUNKNOWN lpUnknownOuter) PURE; -}; - -/***************************************************************************** - * IDirectInput7W interface - */ -#undef INTERFACE -#define INTERFACE IDirectInput7W -DECLARE_INTERFACE_(IDirectInput7W,IDirectInput2W) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInputW methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE; - /*** IDirectInput2W methods ***/ - STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE; - /*** IDirectInput7W methods ***/ - STDMETHOD(CreateDeviceEx)(THIS_ REFGUID rguid, REFIID riid, LPVOID *pvOut, LPUNKNOWN lpUnknownOuter) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInput7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInput7_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInput7_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInput methods ***/ -#define IDirectInput7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) -#define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectInput7_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) -#define IDirectInput7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInput7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -/*** IDirectInput2 methods ***/ -#define IDirectInput7_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) -/*** IDirectInput7 methods ***/ -#define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d) -#else -/*** IUnknown methods ***/ -#define IDirectInput7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInput7_AddRef(p) (p)->AddRef() -#define IDirectInput7_Release(p) (p)->Release() -/*** IDirectInput methods ***/ -#define IDirectInput7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) -#define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectInput7_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) -#define IDirectInput7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInput7_Initialize(p,a,b) (p)->Initialize(a,b) -/*** IDirectInput2 methods ***/ -#define IDirectInput7_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) -/*** IDirectInput7 methods ***/ -#define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->CreateDeviceEx(a,b,c,d) -#endif - - -#if DIRECTINPUT_VERSION >= 0x0800 -/***************************************************************************** - * IDirectInput8A interface - */ -#undef INTERFACE -#define INTERFACE IDirectInput8A -DECLARE_INTERFACE_(IDirectInput8A,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInput8A methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICE8A *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE; - STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE; - STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCSTR ptszUserName, LPDIACTIONFORMATA lpdiActionFormat, LPDIENUMDEVICESBYSEMANTICSCBA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK lpdiCallback, LPDICONFIGUREDEVICESPARAMSA lpdiCDParams, DWORD dwFlags, LPVOID pvRefData) PURE; -}; - -/***************************************************************************** - * IDirectInput8W interface - */ -#undef INTERFACE -#define INTERFACE IDirectInput8W -DECLARE_INTERFACE_(IDirectInput8W,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectInput8W methods ***/ - STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICE8W *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE; - STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE; - STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE; - STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE; - STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCWSTR ptszUserName, LPDIACTIONFORMATW lpdiActionFormat, LPDIENUMDEVICESBYSEMANTICSCBW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE; - STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK lpdiCallback, LPDICONFIGUREDEVICESPARAMSW lpdiCDParams, DWORD dwFlags, LPVOID pvRefData) PURE; -}; -#undef INTERFACE - -#if !defined(__cplusplus) || defined(CINTERFACE) -/*** IUnknown methods ***/ -#define IDirectInput8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInput8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInput8_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectInput8 methods ***/ -#define IDirectInput8_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) -#define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectInput8_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) -#define IDirectInput8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) -#define IDirectInput8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IDirectInput8_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) -#define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->lpVtbl->EnumDevicesBySemantics(p,a,b,c,d,e) -#define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->lpVtbl->ConfigureDevices(p,a,b,c,d) -#else -/*** IUnknown methods ***/ -#define IDirectInput8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInput8_AddRef(p) (p)->AddRef() -#define IDirectInput8_Release(p) (p)->Release() -/*** IDirectInput8 methods ***/ -#define IDirectInput8_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) -#define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectInput8_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) -#define IDirectInput8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) -#define IDirectInput8_Initialize(p,a,b) (p)->Initialize(a,b) -#define IDirectInput8_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) -#define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->EnumDevicesBySemantics(a,b,c,d,e) -#define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->ConfigureDevices(a,b,c,d) -#endif - -#endif /* DI8 */ - -/* Export functions */ - -#ifdef __cplusplus -extern "C" { -#endif - -#if DIRECTINPUT_VERSION >= 0x0800 -HRESULT WINAPI DirectInput8Create(HINSTANCE,DWORD,REFIID,LPVOID *,LPUNKNOWN); -#else /* DI < 8 */ -HRESULT WINAPI DirectInputCreateA(HINSTANCE,DWORD,LPDIRECTINPUTA *,LPUNKNOWN); -HRESULT WINAPI DirectInputCreateW(HINSTANCE,DWORD,LPDIRECTINPUTW *,LPUNKNOWN); -#define DirectInputCreate WINELIB_NAME_AW(DirectInputCreate) - -HRESULT WINAPI DirectInputCreateEx(HINSTANCE,DWORD,REFIID,LPVOID *,LPUNKNOWN); -#endif /* DI8 */ - -#ifdef __cplusplus -}; -#endif - -#endif /* __DINPUT_INCLUDED__ */ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/xinput.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/xinput.h deleted file mode 100644 index d3ca726..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw/xinput.h +++ /dev/null @@ -1,239 +0,0 @@ -/* - * The Wine project - Xinput Joystick Library - * Copyright 2008 Andrew Fenn - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#ifndef __WINE_XINPUT_H -#define __WINE_XINPUT_H - -#include - -/* - * Bitmasks for the joysticks buttons, determines what has - * been pressed on the joystick, these need to be mapped - * to whatever device you're using instead of an xbox 360 - * joystick - */ - -#define XINPUT_GAMEPAD_DPAD_UP 0x0001 -#define XINPUT_GAMEPAD_DPAD_DOWN 0x0002 -#define XINPUT_GAMEPAD_DPAD_LEFT 0x0004 -#define XINPUT_GAMEPAD_DPAD_RIGHT 0x0008 -#define XINPUT_GAMEPAD_START 0x0010 -#define XINPUT_GAMEPAD_BACK 0x0020 -#define XINPUT_GAMEPAD_LEFT_THUMB 0x0040 -#define XINPUT_GAMEPAD_RIGHT_THUMB 0x0080 -#define XINPUT_GAMEPAD_LEFT_SHOULDER 0x0100 -#define XINPUT_GAMEPAD_RIGHT_SHOULDER 0x0200 -#define XINPUT_GAMEPAD_A 0x1000 -#define XINPUT_GAMEPAD_B 0x2000 -#define XINPUT_GAMEPAD_X 0x4000 -#define XINPUT_GAMEPAD_Y 0x8000 - -/* - * Defines the flags used to determine if the user is pushing - * down on a button, not holding a button, etc - */ - -#define XINPUT_KEYSTROKE_KEYDOWN 0x0001 -#define XINPUT_KEYSTROKE_KEYUP 0x0002 -#define XINPUT_KEYSTROKE_REPEAT 0x0004 - -/* - * Defines the codes which are returned by XInputGetKeystroke - */ - -#define VK_PAD_A 0x5800 -#define VK_PAD_B 0x5801 -#define VK_PAD_X 0x5802 -#define VK_PAD_Y 0x5803 -#define VK_PAD_RSHOULDER 0x5804 -#define VK_PAD_LSHOULDER 0x5805 -#define VK_PAD_LTRIGGER 0x5806 -#define VK_PAD_RTRIGGER 0x5807 -#define VK_PAD_DPAD_UP 0x5810 -#define VK_PAD_DPAD_DOWN 0x5811 -#define VK_PAD_DPAD_LEFT 0x5812 -#define VK_PAD_DPAD_RIGHT 0x5813 -#define VK_PAD_START 0x5814 -#define VK_PAD_BACK 0x5815 -#define VK_PAD_LTHUMB_PRESS 0x5816 -#define VK_PAD_RTHUMB_PRESS 0x5817 -#define VK_PAD_LTHUMB_UP 0x5820 -#define VK_PAD_LTHUMB_DOWN 0x5821 -#define VK_PAD_LTHUMB_RIGHT 0x5822 -#define VK_PAD_LTHUMB_LEFT 0x5823 -#define VK_PAD_LTHUMB_UPLEFT 0x5824 -#define VK_PAD_LTHUMB_UPRIGHT 0x5825 -#define VK_PAD_LTHUMB_DOWNRIGHT 0x5826 -#define VK_PAD_LTHUMB_DOWNLEFT 0x5827 -#define VK_PAD_RTHUMB_UP 0x5830 -#define VK_PAD_RTHUMB_DOWN 0x5831 -#define VK_PAD_RTHUMB_RIGHT 0x5832 -#define VK_PAD_RTHUMB_LEFT 0x5833 -#define VK_PAD_RTHUMB_UPLEFT 0x5834 -#define VK_PAD_RTHUMB_UPRIGHT 0x5835 -#define VK_PAD_RTHUMB_DOWNRIGHT 0x5836 -#define VK_PAD_RTHUMB_DOWNLEFT 0x5837 - -/* - * Deadzones are for analogue joystick controls on the joypad - * which determine when input should be assumed to be in the - * middle of the pad. This is a threshold to stop a joypad - * controlling the game when the player isn't touching the - * controls. - */ - -#define XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE 7849 -#define XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE 8689 -#define XINPUT_GAMEPAD_TRIGGER_THRESHOLD 30 - - -/* - * Defines what type of abilities the type of joystick has - * DEVTYPE_GAMEPAD is available for all joysticks, however - * there may be more specific identifiers for other joysticks - * which are being used. - */ - -#define XINPUT_DEVTYPE_GAMEPAD 0x01 -#define XINPUT_DEVSUBTYPE_GAMEPAD 0x01 -#define XINPUT_DEVSUBTYPE_WHEEL 0x02 -#define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 -#define XINPUT_DEVSUBTYPE_FLIGHT_SICK 0x04 -#define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 -#define XINPUT_DEVSUBTYPE_GUITAR 0x06 -#define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 - -/* - * These are used with the XInputGetCapabilities function to - * determine the abilities to the joystick which has been - * plugged in. - */ - -#define XINPUT_CAPS_VOICE_SUPPORTED 0x0004 -#define XINPUT_FLAG_GAMEPAD 0x00000001 - -/* - * Defines the status of the battery if one is used in the - * attached joystick. The first two define if the joystick - * supports a battery. Disconnected means that the joystick - * isn't connected. Wired shows that the joystick is a wired - * joystick. - */ - -#define BATTERY_DEVTYPE_GAMEPAD 0x00 -#define BATTERY_DEVTYPE_HEADSET 0x01 -#define BATTERY_TYPE_DISCONNECTED 0x00 -#define BATTERY_TYPE_WIRED 0x01 -#define BATTERY_TYPE_ALKALINE 0x02 -#define BATTERY_TYPE_NIMH 0x03 -#define BATTERY_TYPE_UNKNOWN 0xFF -#define BATTERY_LEVEL_EMPTY 0x00 -#define BATTERY_LEVEL_LOW 0x01 -#define BATTERY_LEVEL_MEDIUM 0x02 -#define BATTERY_LEVEL_FULL 0x03 - -/* - * How many joysticks can be used with this library. Games that - * use the xinput library will not go over this number. - */ - -#define XUSER_MAX_COUNT 4 -#define XUSER_INDEX_ANY 0x000000FF - -/* - * Defines the structure of an xbox 360 joystick. - */ - -typedef struct _XINPUT_GAMEPAD { - WORD wButtons; - BYTE bLeftTrigger; - BYTE bRightTrigger; - SHORT sThumbLX; - SHORT sThumbLY; - SHORT sThumbRX; - SHORT sThumbRY; -} XINPUT_GAMEPAD, *PXINPUT_GAMEPAD; - -typedef struct _XINPUT_STATE { - DWORD dwPacketNumber; - XINPUT_GAMEPAD Gamepad; -} XINPUT_STATE, *PXINPUT_STATE; - -/* - * Defines the structure of how much vibration is set on both the - * right and left motors in a joystick. If you're not using a 360 - * joystick you will have to map these to your device. - */ - -typedef struct _XINPUT_VIBRATION { - WORD wLeftMotorSpeed; - WORD wRightMotorSpeed; -} XINPUT_VIBRATION, *PXINPUT_VIBRATION; - -/* - * Defines the structure for what kind of abilities the joystick has - * such abilities are things such as if the joystick has the ability - * to send and receive audio, if the joystick is in fact a driving - * wheel or perhaps if the joystick is some kind of dance pad or - * guitar. - */ - -typedef struct _XINPUT_CAPABILITIES { - BYTE Type; - BYTE SubType; - WORD Flags; - XINPUT_GAMEPAD Gamepad; - XINPUT_VIBRATION Vibration; -} XINPUT_CAPABILITIES, *PXINPUT_CAPABILITIES; - -/* - * Defines the structure for a joystick input event which is - * retrieved using the function XInputGetKeystroke - */ -typedef struct _XINPUT_KEYSTROKE { - WORD VirtualKey; - WCHAR Unicode; - WORD Flags; - BYTE UserIndex; - BYTE HidCode; -} XINPUT_KEYSTROKE, *PXINPUT_KEYSTROKE; - -typedef struct _XINPUT_BATTERY_INFORMATION -{ - BYTE BatteryType; - BYTE BatteryLevel; -} XINPUT_BATTERY_INFORMATION, *PXINPUT_BATTERY_INFORMATION; - -#ifdef __cplusplus -extern "C" { -#endif - -void WINAPI XInputEnable(WINBOOL); -DWORD WINAPI XInputSetState(DWORD, XINPUT_VIBRATION*); -DWORD WINAPI XInputGetState(DWORD, XINPUT_STATE*); -DWORD WINAPI XInputGetKeystroke(DWORD, DWORD, PXINPUT_KEYSTROKE); -DWORD WINAPI XInputGetCapabilities(DWORD, DWORD, XINPUT_CAPABILITIES*); -DWORD WINAPI XInputGetDSoundAudioDeviceGuids(DWORD, GUID*, GUID*); -DWORD WINAPI XInputGetBatteryInformation(DWORD, BYTE, XINPUT_BATTERY_INFORMATION*); - -#ifdef __cplusplus -} -#endif - -#endif /* __WINE_XINPUT_H */ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/tinycthread.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/tinycthread.c deleted file mode 100644 index ddb86d9..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/tinycthread.c +++ /dev/null @@ -1,594 +0,0 @@ -/* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; -*- -Copyright (c) 2012 Marcus Geelnard - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. - - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source - distribution. -*/ - -/* 2013-01-06 Camilla Berglund - * - * Added casts from time_t to DWORD to avoid warnings on VC++. - * Fixed time retrieval on POSIX systems. - */ - -#include "tinycthread.h" -#include - -/* Platform specific includes */ -#if defined(_TTHREAD_POSIX_) - #include - #include - #include - #include - #include -#elif defined(_TTHREAD_WIN32_) - #include - #include -#endif - -/* Standard, good-to-have defines */ -#ifndef NULL - #define NULL (void*)0 -#endif -#ifndef TRUE - #define TRUE 1 -#endif -#ifndef FALSE - #define FALSE 0 -#endif - -int mtx_init(mtx_t *mtx, int type) -{ -#if defined(_TTHREAD_WIN32_) - mtx->mAlreadyLocked = FALSE; - mtx->mRecursive = type & mtx_recursive; - InitializeCriticalSection(&mtx->mHandle); - return thrd_success; -#else - int ret; - pthread_mutexattr_t attr; - pthread_mutexattr_init(&attr); - if (type & mtx_recursive) - { - pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); - } - ret = pthread_mutex_init(mtx, &attr); - pthread_mutexattr_destroy(&attr); - return ret == 0 ? thrd_success : thrd_error; -#endif -} - -void mtx_destroy(mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - DeleteCriticalSection(&mtx->mHandle); -#else - pthread_mutex_destroy(mtx); -#endif -} - -int mtx_lock(mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - EnterCriticalSection(&mtx->mHandle); - if (!mtx->mRecursive) - { - while(mtx->mAlreadyLocked) Sleep(1000); /* Simulate deadlock... */ - mtx->mAlreadyLocked = TRUE; - } - return thrd_success; -#else - return pthread_mutex_lock(mtx) == 0 ? thrd_success : thrd_error; -#endif -} - -int mtx_timedlock(mtx_t *mtx, const struct timespec *ts) -{ - /* FIXME! */ - (void)mtx; - (void)ts; - return thrd_error; -} - -int mtx_trylock(mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - int ret = TryEnterCriticalSection(&mtx->mHandle) ? thrd_success : thrd_busy; - if ((!mtx->mRecursive) && (ret == thrd_success) && mtx->mAlreadyLocked) - { - LeaveCriticalSection(&mtx->mHandle); - ret = thrd_busy; - } - return ret; -#else - return (pthread_mutex_trylock(mtx) == 0) ? thrd_success : thrd_busy; -#endif -} - -int mtx_unlock(mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - mtx->mAlreadyLocked = FALSE; - LeaveCriticalSection(&mtx->mHandle); - return thrd_success; -#else - return pthread_mutex_unlock(mtx) == 0 ? thrd_success : thrd_error;; -#endif -} - -#if defined(_TTHREAD_WIN32_) -#define _CONDITION_EVENT_ONE 0 -#define _CONDITION_EVENT_ALL 1 -#endif - -int cnd_init(cnd_t *cond) -{ -#if defined(_TTHREAD_WIN32_) - cond->mWaitersCount = 0; - - /* Init critical section */ - InitializeCriticalSection(&cond->mWaitersCountLock); - - /* Init events */ - cond->mEvents[_CONDITION_EVENT_ONE] = CreateEvent(NULL, FALSE, FALSE, NULL); - if (cond->mEvents[_CONDITION_EVENT_ONE] == NULL) - { - cond->mEvents[_CONDITION_EVENT_ALL] = NULL; - return thrd_error; - } - cond->mEvents[_CONDITION_EVENT_ALL] = CreateEvent(NULL, TRUE, FALSE, NULL); - if (cond->mEvents[_CONDITION_EVENT_ALL] == NULL) - { - CloseHandle(cond->mEvents[_CONDITION_EVENT_ONE]); - cond->mEvents[_CONDITION_EVENT_ONE] = NULL; - return thrd_error; - } - - return thrd_success; -#else - return pthread_cond_init(cond, NULL) == 0 ? thrd_success : thrd_error; -#endif -} - -void cnd_destroy(cnd_t *cond) -{ -#if defined(_TTHREAD_WIN32_) - if (cond->mEvents[_CONDITION_EVENT_ONE] != NULL) - { - CloseHandle(cond->mEvents[_CONDITION_EVENT_ONE]); - } - if (cond->mEvents[_CONDITION_EVENT_ALL] != NULL) - { - CloseHandle(cond->mEvents[_CONDITION_EVENT_ALL]); - } - DeleteCriticalSection(&cond->mWaitersCountLock); -#else - pthread_cond_destroy(cond); -#endif -} - -int cnd_signal(cnd_t *cond) -{ -#if defined(_TTHREAD_WIN32_) - int haveWaiters; - - /* Are there any waiters? */ - EnterCriticalSection(&cond->mWaitersCountLock); - haveWaiters = (cond->mWaitersCount > 0); - LeaveCriticalSection(&cond->mWaitersCountLock); - - /* If we have any waiting threads, send them a signal */ - if(haveWaiters) - { - if (SetEvent(cond->mEvents[_CONDITION_EVENT_ONE]) == 0) - { - return thrd_error; - } - } - - return thrd_success; -#else - return pthread_cond_signal(cond) == 0 ? thrd_success : thrd_error; -#endif -} - -int cnd_broadcast(cnd_t *cond) -{ -#if defined(_TTHREAD_WIN32_) - int haveWaiters; - - /* Are there any waiters? */ - EnterCriticalSection(&cond->mWaitersCountLock); - haveWaiters = (cond->mWaitersCount > 0); - LeaveCriticalSection(&cond->mWaitersCountLock); - - /* If we have any waiting threads, send them a signal */ - if(haveWaiters) - { - if (SetEvent(cond->mEvents[_CONDITION_EVENT_ALL]) == 0) - { - return thrd_error; - } - } - - return thrd_success; -#else - return pthread_cond_signal(cond) == 0 ? thrd_success : thrd_error; -#endif -} - -#if defined(_TTHREAD_WIN32_) -static int _cnd_timedwait_win32(cnd_t *cond, mtx_t *mtx, DWORD timeout) -{ - int result, lastWaiter; - - /* Increment number of waiters */ - EnterCriticalSection(&cond->mWaitersCountLock); - ++ cond->mWaitersCount; - LeaveCriticalSection(&cond->mWaitersCountLock); - - /* Release the mutex while waiting for the condition (will decrease - the number of waiters when done)... */ - mtx_unlock(mtx); - - /* Wait for either event to become signaled due to cnd_signal() or - cnd_broadcast() being called */ - result = WaitForMultipleObjects(2, cond->mEvents, FALSE, timeout); - if (result == WAIT_TIMEOUT) - { - return thrd_timeout; - } - else if (result == (int)WAIT_FAILED) - { - return thrd_error; - } - - /* Check if we are the last waiter */ - EnterCriticalSection(&cond->mWaitersCountLock); - -- cond->mWaitersCount; - lastWaiter = (result == (WAIT_OBJECT_0 + _CONDITION_EVENT_ALL)) && - (cond->mWaitersCount == 0); - LeaveCriticalSection(&cond->mWaitersCountLock); - - /* If we are the last waiter to be notified to stop waiting, reset the event */ - if (lastWaiter) - { - if (ResetEvent(cond->mEvents[_CONDITION_EVENT_ALL]) == 0) - { - return thrd_error; - } - } - - /* Re-acquire the mutex */ - mtx_lock(mtx); - - return thrd_success; -} -#endif - -int cnd_wait(cnd_t *cond, mtx_t *mtx) -{ -#if defined(_TTHREAD_WIN32_) - return _cnd_timedwait_win32(cond, mtx, INFINITE); -#else - return pthread_cond_wait(cond, mtx) == 0 ? thrd_success : thrd_error; -#endif -} - -int cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *ts) -{ -#if defined(_TTHREAD_WIN32_) - struct timespec now; - if (clock_gettime(CLOCK_REALTIME, &now) == 0) - { - DWORD delta = (DWORD) ((ts->tv_sec - now.tv_sec) * 1000 + - (ts->tv_nsec - now.tv_nsec + 500000) / 1000000); - return _cnd_timedwait_win32(cond, mtx, delta); - } - else - return thrd_error; -#else - int ret; - ret = pthread_cond_timedwait(cond, mtx, ts); - if (ret == ETIMEDOUT) - { - return thrd_timeout; - } - return ret == 0 ? thrd_success : thrd_error; -#endif -} - - -/** Information to pass to the new thread (what to run). */ -typedef struct { - thrd_start_t mFunction; /**< Pointer to the function to be executed. */ - void * mArg; /**< Function argument for the thread function. */ -} _thread_start_info; - -/* Thread wrapper function. */ -#if defined(_TTHREAD_WIN32_) -static unsigned WINAPI _thrd_wrapper_function(void * aArg) -#elif defined(_TTHREAD_POSIX_) -static void * _thrd_wrapper_function(void * aArg) -#endif -{ - thrd_start_t fun; - void *arg; - int res; -#if defined(_TTHREAD_POSIX_) - void *pres; -#endif - - /* Get thread startup information */ - _thread_start_info *ti = (_thread_start_info *) aArg; - fun = ti->mFunction; - arg = ti->mArg; - - /* The thread is responsible for freeing the startup information */ - free((void *)ti); - - /* Call the actual client thread function */ - res = fun(arg); - -#if defined(_TTHREAD_WIN32_) - return res; -#else - pres = malloc(sizeof(int)); - if (pres != NULL) - { - *(int*)pres = res; - } - return pres; -#endif -} - -int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) -{ - /* Fill out the thread startup information (passed to the thread wrapper, - which will eventually free it) */ - _thread_start_info* ti = (_thread_start_info*)malloc(sizeof(_thread_start_info)); - if (ti == NULL) - { - return thrd_nomem; - } - ti->mFunction = func; - ti->mArg = arg; - - /* Create the thread */ -#if defined(_TTHREAD_WIN32_) - *thr = (HANDLE)_beginthreadex(NULL, 0, _thrd_wrapper_function, (void *)ti, 0, NULL); -#elif defined(_TTHREAD_POSIX_) - if(pthread_create(thr, NULL, _thrd_wrapper_function, (void *)ti) != 0) - { - *thr = 0; - } -#endif - - /* Did we fail to create the thread? */ - if(!*thr) - { - free(ti); - return thrd_error; - } - - return thrd_success; -} - -thrd_t thrd_current(void) -{ -#if defined(_TTHREAD_WIN32_) - return GetCurrentThread(); -#else - return pthread_self(); -#endif -} - -int thrd_detach(thrd_t thr) -{ - /* FIXME! */ - (void)thr; - return thrd_error; -} - -int thrd_equal(thrd_t thr0, thrd_t thr1) -{ -#if defined(_TTHREAD_WIN32_) - return thr0 == thr1; -#else - return pthread_equal(thr0, thr1); -#endif -} - -void thrd_exit(int res) -{ -#if defined(_TTHREAD_WIN32_) - ExitThread(res); -#else - void *pres = malloc(sizeof(int)); - if (pres != NULL) - { - *(int*)pres = res; - } - pthread_exit(pres); -#endif -} - -int thrd_join(thrd_t thr, int *res) -{ -#if defined(_TTHREAD_WIN32_) - if (WaitForSingleObject(thr, INFINITE) == WAIT_FAILED) - { - return thrd_error; - } - if (res != NULL) - { - DWORD dwRes; - GetExitCodeThread(thr, &dwRes); - *res = dwRes; - } -#elif defined(_TTHREAD_POSIX_) - void *pres; - int ires = 0; - if (pthread_join(thr, &pres) != 0) - { - return thrd_error; - } - if (pres != NULL) - { - ires = *(int*)pres; - free(pres); - } - if (res != NULL) - { - *res = ires; - } -#endif - return thrd_success; -} - -int thrd_sleep(const struct timespec *time_point, struct timespec *remaining) -{ - struct timespec now; -#if defined(_TTHREAD_WIN32_) - DWORD delta; -#else - long delta; -#endif - - /* Get the current time */ - if (clock_gettime(CLOCK_REALTIME, &now) != 0) - return -2; // FIXME: Some specific error code? - -#if defined(_TTHREAD_WIN32_) - /* Delta in milliseconds */ - delta = (DWORD) ((time_point->tv_sec - now.tv_sec) * 1000 + - (time_point->tv_nsec - now.tv_nsec + 500000) / 1000000); - if (delta > 0) - { - Sleep(delta); - } -#else - /* Delta in microseconds */ - delta = (time_point->tv_sec - now.tv_sec) * 1000000L + - (time_point->tv_nsec - now.tv_nsec + 500L) / 1000L; - - /* On some systems, the usleep argument must be < 1000000 */ - while (delta > 999999L) - { - usleep(999999); - delta -= 999999L; - } - if (delta > 0L) - { - usleep((useconds_t)delta); - } -#endif - - /* We don't support waking up prematurely (yet) */ - if (remaining) - { - remaining->tv_sec = 0; - remaining->tv_nsec = 0; - } - return 0; -} - -void thrd_yield(void) -{ -#if defined(_TTHREAD_WIN32_) - Sleep(0); -#else - sched_yield(); -#endif -} - -int tss_create(tss_t *key, tss_dtor_t dtor) -{ -#if defined(_TTHREAD_WIN32_) - /* FIXME: The destructor function is not supported yet... */ - if (dtor != NULL) - { - return thrd_error; - } - *key = TlsAlloc(); - if (*key == TLS_OUT_OF_INDEXES) - { - return thrd_error; - } -#else - if (pthread_key_create(key, dtor) != 0) - { - return thrd_error; - } -#endif - return thrd_success; -} - -void tss_delete(tss_t key) -{ -#if defined(_TTHREAD_WIN32_) - TlsFree(key); -#else - pthread_key_delete(key); -#endif -} - -void *tss_get(tss_t key) -{ -#if defined(_TTHREAD_WIN32_) - return TlsGetValue(key); -#else - return pthread_getspecific(key); -#endif -} - -int tss_set(tss_t key, void *val) -{ -#if defined(_TTHREAD_WIN32_) - if (TlsSetValue(key, val) == 0) - { - return thrd_error; - } -#else - if (pthread_setspecific(key, val) != 0) - { - return thrd_error; - } -#endif - return thrd_success; -} - -#if defined(_TTHREAD_EMULATE_CLOCK_GETTIME_) -int _tthread_clock_gettime(clockid_t clk_id, struct timespec *ts) -{ -#if defined(_TTHREAD_WIN32_) - struct _timeb tb; - _ftime(&tb); - ts->tv_sec = (time_t)tb.time; - ts->tv_nsec = 1000000L * (long)tb.millitm; -#else - struct timeval tv; - gettimeofday(&tv, NULL); - ts->tv_sec = (time_t)tv.tv_sec; - ts->tv_nsec = 1000L * (long)tv.tv_usec; -#endif - return 0; -} -#endif // _TTHREAD_EMULATE_CLOCK_GETTIME_ - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/tinycthread.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/tinycthread.h deleted file mode 100644 index 6da30d7..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/tinycthread.h +++ /dev/null @@ -1,441 +0,0 @@ -/* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; -*- -Copyright (c) 2012 Marcus Geelnard - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. - - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source - distribution. -*/ - -#ifndef _TINYCTHREAD_H_ -#define _TINYCTHREAD_H_ - -/** -* @file -* @mainpage TinyCThread API Reference -* -* @section intro_sec Introduction -* TinyCThread is a minimal, portable implementation of basic threading -* classes for C. -* -* They closely mimic the functionality and naming of the C11 standard, and -* should be easily replaceable with the corresponding standard variants. -* -* @section port_sec Portability -* The Win32 variant uses the native Win32 API for implementing the thread -* classes, while for other systems, the POSIX threads API (pthread) is used. -* -* @section misc_sec Miscellaneous -* The following special keywords are available: #_Thread_local. -* -* For more detailed information, browse the different sections of this -* documentation. A good place to start is: -* tinycthread.h. -*/ - -/* Which platform are we on? */ -#if !defined(_TTHREAD_PLATFORM_DEFINED_) - #if defined(_WIN32) || defined(__WIN32__) || defined(__WINDOWS__) - #define _TTHREAD_WIN32_ - #else - #define _TTHREAD_POSIX_ - #endif - #define _TTHREAD_PLATFORM_DEFINED_ -#endif - -/* Activate some POSIX functionality (e.g. clock_gettime and recursive mutexes) */ -#if defined(_TTHREAD_POSIX_) - #undef _FEATURES_H - #if !defined(_GNU_SOURCE) - #define _GNU_SOURCE - #endif - #if !defined(_POSIX_C_SOURCE) || ((_POSIX_C_SOURCE - 0) < 199309L) - #undef _POSIX_C_SOURCE - #define _POSIX_C_SOURCE 199309L - #endif - #if !defined(_XOPEN_SOURCE) || ((_XOPEN_SOURCE - 0) < 500) - #undef _XOPEN_SOURCE - #define _XOPEN_SOURCE 500 - #endif -#endif - -/* Generic includes */ -#include - -/* Platform specific includes */ -#if defined(_TTHREAD_POSIX_) - #include - #include -#elif defined(_TTHREAD_WIN32_) - #ifndef WIN32_LEAN_AND_MEAN - #define WIN32_LEAN_AND_MEAN - #define __UNDEF_LEAN_AND_MEAN - #endif - #include - #ifdef __UNDEF_LEAN_AND_MEAN - #undef WIN32_LEAN_AND_MEAN - #undef __UNDEF_LEAN_AND_MEAN - #endif -#endif - -/* Workaround for missing TIME_UTC: If time.h doesn't provide TIME_UTC, - it's quite likely that libc does not support it either. Hence, fall back to - the only other supported time specifier: CLOCK_REALTIME (and if that fails, - we're probably emulating clock_gettime anyway, so anything goes). */ -#ifndef TIME_UTC - #ifdef CLOCK_REALTIME - #define TIME_UTC CLOCK_REALTIME - #else - #define TIME_UTC 0 - #endif -#endif - -/* Workaround for missing clock_gettime (most Windows compilers, afaik) */ -#if defined(_TTHREAD_WIN32_) || defined(__APPLE_CC__) -#define _TTHREAD_EMULATE_CLOCK_GETTIME_ -/* Emulate struct timespec */ -#if defined(_TTHREAD_WIN32_) -struct _ttherad_timespec { - time_t tv_sec; - long tv_nsec; -}; -#define timespec _ttherad_timespec -#endif - -/* Emulate clockid_t */ -typedef int _tthread_clockid_t; -#define clockid_t _tthread_clockid_t - -/* Emulate clock_gettime */ -int _tthread_clock_gettime(clockid_t clk_id, struct timespec *ts); -#define clock_gettime _tthread_clock_gettime -#define CLOCK_REALTIME 0 -#endif - - -/** TinyCThread version (major number). */ -#define TINYCTHREAD_VERSION_MAJOR 1 -/** TinyCThread version (minor number). */ -#define TINYCTHREAD_VERSION_MINOR 1 -/** TinyCThread version (full version). */ -#define TINYCTHREAD_VERSION (TINYCTHREAD_VERSION_MAJOR * 100 + TINYCTHREAD_VERSION_MINOR) - -/** -* @def _Thread_local -* Thread local storage keyword. -* A variable that is declared with the @c _Thread_local keyword makes the -* value of the variable local to each thread (known as thread-local storage, -* or TLS). Example usage: -* @code -* // This variable is local to each thread. -* _Thread_local int variable; -* @endcode -* @note The @c _Thread_local keyword is a macro that maps to the corresponding -* compiler directive (e.g. @c __declspec(thread)). -* @note This directive is currently not supported on Mac OS X (it will give -* a compiler error), since compile-time TLS is not supported in the Mac OS X -* executable format. Also, some older versions of MinGW (before GCC 4.x) do -* not support this directive. -* @hideinitializer -*/ - -/* FIXME: Check for a PROPER value of __STDC_VERSION__ to know if we have C11 */ -#if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201102L)) && !defined(_Thread_local) - #if defined(__GNUC__) || defined(__INTEL_COMPILER) || defined(__SUNPRO_CC) || defined(__IBMCPP__) - #define _Thread_local __thread - #else - #define _Thread_local __declspec(thread) - #endif -#endif - -/* Macros */ -#define TSS_DTOR_ITERATIONS 0 - -/* Function return values */ -#define thrd_error 0 /**< The requested operation failed */ -#define thrd_success 1 /**< The requested operation succeeded */ -#define thrd_timeout 2 /**< The time specified in the call was reached without acquiring the requested resource */ -#define thrd_busy 3 /**< The requested operation failed because a tesource requested by a test and return function is already in use */ -#define thrd_nomem 4 /**< The requested operation failed because it was unable to allocate memory */ - -/* Mutex types */ -#define mtx_plain 1 -#define mtx_timed 2 -#define mtx_try 4 -#define mtx_recursive 8 - -/* Mutex */ -#if defined(_TTHREAD_WIN32_) -typedef struct { - CRITICAL_SECTION mHandle; /* Critical section handle */ - int mAlreadyLocked; /* TRUE if the mutex is already locked */ - int mRecursive; /* TRUE if the mutex is recursive */ -} mtx_t; -#else -typedef pthread_mutex_t mtx_t; -#endif - -/** Create a mutex object. -* @param mtx A mutex object. -* @param type Bit-mask that must have one of the following six values: -* @li @c mtx_plain for a simple non-recursive mutex -* @li @c mtx_timed for a non-recursive mutex that supports timeout -* @li @c mtx_try for a non-recursive mutex that supports test and return -* @li @c mtx_plain | @c mtx_recursive (same as @c mtx_plain, but recursive) -* @li @c mtx_timed | @c mtx_recursive (same as @c mtx_timed, but recursive) -* @li @c mtx_try | @c mtx_recursive (same as @c mtx_try, but recursive) -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int mtx_init(mtx_t *mtx, int type); - -/** Release any resources used by the given mutex. -* @param mtx A mutex object. -*/ -void mtx_destroy(mtx_t *mtx); - -/** Lock the given mutex. -* Blocks until the given mutex can be locked. If the mutex is non-recursive, and -* the calling thread already has a lock on the mutex, this call will block -* forever. -* @param mtx A mutex object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int mtx_lock(mtx_t *mtx); - -/** NOT YET IMPLEMENTED. -*/ -int mtx_timedlock(mtx_t *mtx, const struct timespec *ts); - -/** Try to lock the given mutex. -* The specified mutex shall support either test and return or timeout. If the -* mutex is already locked, the function returns without blocking. -* @param mtx A mutex object. -* @return @ref thrd_success on success, or @ref thrd_busy if the resource -* requested is already in use, or @ref thrd_error if the request could not be -* honored. -*/ -int mtx_trylock(mtx_t *mtx); - -/** Unlock the given mutex. -* @param mtx A mutex object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int mtx_unlock(mtx_t *mtx); - -/* Condition variable */ -#if defined(_TTHREAD_WIN32_) -typedef struct { - HANDLE mEvents[2]; /* Signal and broadcast event HANDLEs. */ - unsigned int mWaitersCount; /* Count of the number of waiters. */ - CRITICAL_SECTION mWaitersCountLock; /* Serialize access to mWaitersCount. */ -} cnd_t; -#else -typedef pthread_cond_t cnd_t; -#endif - -/** Create a condition variable object. -* @param cond A condition variable object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int cnd_init(cnd_t *cond); - -/** Release any resources used by the given condition variable. -* @param cond A condition variable object. -*/ -void cnd_destroy(cnd_t *cond); - -/** Signal a condition variable. -* Unblocks one of the threads that are blocked on the given condition variable -* at the time of the call. If no threads are blocked on the condition variable -* at the time of the call, the function does nothing and return success. -* @param cond A condition variable object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int cnd_signal(cnd_t *cond); - -/** Broadcast a condition variable. -* Unblocks all of the threads that are blocked on the given condition variable -* at the time of the call. If no threads are blocked on the condition variable -* at the time of the call, the function does nothing and return success. -* @param cond A condition variable object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int cnd_broadcast(cnd_t *cond); - -/** Wait for a condition variable to become signaled. -* The function atomically unlocks the given mutex and endeavors to block until -* the given condition variable is signaled by a call to cnd_signal or to -* cnd_broadcast. When the calling thread becomes unblocked it locks the mutex -* before it returns. -* @param cond A condition variable object. -* @param mtx A mutex object. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int cnd_wait(cnd_t *cond, mtx_t *mtx); - -/** Wait for a condition variable to become signaled. -* The function atomically unlocks the given mutex and endeavors to block until -* the given condition variable is signaled by a call to cnd_signal or to -* cnd_broadcast, or until after the specified time. When the calling thread -* becomes unblocked it locks the mutex before it returns. -* @param cond A condition variable object. -* @param mtx A mutex object. -* @param xt A point in time at which the request will time out (absolute time). -* @return @ref thrd_success upon success, or @ref thrd_timeout if the time -* specified in the call was reached without acquiring the requested resource, or -* @ref thrd_error if the request could not be honored. -*/ -int cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *ts); - -/* Thread */ -#if defined(_TTHREAD_WIN32_) -typedef HANDLE thrd_t; -#else -typedef pthread_t thrd_t; -#endif - -/** Thread start function. -* Any thread that is started with the @ref thrd_create() function must be -* started through a function of this type. -* @param arg The thread argument (the @c arg argument of the corresponding -* @ref thrd_create() call). -* @return The thread return value, which can be obtained by another thread -* by using the @ref thrd_join() function. -*/ -typedef int (*thrd_start_t)(void *arg); - -/** Create a new thread. -* @param thr Identifier of the newly created thread. -* @param func A function pointer to the function that will be executed in -* the new thread. -* @param arg An argument to the thread function. -* @return @ref thrd_success on success, or @ref thrd_nomem if no memory could -* be allocated for the thread requested, or @ref thrd_error if the request -* could not be honored. -* @note A thread’s identifier may be reused for a different thread once the -* original thread has exited and either been detached or joined to another -* thread. -*/ -int thrd_create(thrd_t *thr, thrd_start_t func, void *arg); - -/** Identify the calling thread. -* @return The identifier of the calling thread. -*/ -thrd_t thrd_current(void); - -/** NOT YET IMPLEMENTED. -*/ -int thrd_detach(thrd_t thr); - -/** Compare two thread identifiers. -* The function determines if two thread identifiers refer to the same thread. -* @return Zero if the two thread identifiers refer to different threads. -* Otherwise a nonzero value is returned. -*/ -int thrd_equal(thrd_t thr0, thrd_t thr1); - -/** Terminate execution of the calling thread. -* @param res Result code of the calling thread. -*/ -void thrd_exit(int res); - -/** Wait for a thread to terminate. -* The function joins the given thread with the current thread by blocking -* until the other thread has terminated. -* @param thr The thread to join with. -* @param res If this pointer is not NULL, the function will store the result -* code of the given thread in the integer pointed to by @c res. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int thrd_join(thrd_t thr, int *res); - -/** Put the calling thread to sleep. -* Suspend execution of the calling thread. -* @param time_point A point in time at which the thread will resume (absolute time). -* @param remaining If non-NULL, this parameter will hold the remaining time until -* time_point upon return. This will typically be zero, but if -* the thread was woken up by a signal that is not ignored before -* time_point was reached @c remaining will hold a positive -* time. -* @return 0 (zero) on successful sleep, or -1 if an interrupt occurred. -*/ -int thrd_sleep(const struct timespec *time_point, struct timespec *remaining); - -/** Yield execution to another thread. -* Permit other threads to run, even if the current thread would ordinarily -* continue to run. -*/ -void thrd_yield(void); - -/* Thread local storage */ -#if defined(_TTHREAD_WIN32_) -typedef DWORD tss_t; -#else -typedef pthread_key_t tss_t; -#endif - -/** Destructor function for a thread-specific storage. -* @param val The value of the destructed thread-specific storage. -*/ -typedef void (*tss_dtor_t)(void *val); - -/** Create a thread-specific storage. -* @param key The unique key identifier that will be set if the function is -* successful. -* @param dtor Destructor function. This can be NULL. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -* @note The destructor function is not supported under Windows. If @c dtor is -* not NULL when calling this function under Windows, the function will fail -* and return @ref thrd_error. -*/ -int tss_create(tss_t *key, tss_dtor_t dtor); - -/** Delete a thread-specific storage. -* The function releases any resources used by the given thread-specific -* storage. -* @param key The key that shall be deleted. -*/ -void tss_delete(tss_t key); - -/** Get the value for a thread-specific storage. -* @param key The thread-specific storage identifier. -* @return The value for the current thread held in the given thread-specific -* storage. -*/ -void *tss_get(tss_t key); - -/** Set the value for a thread-specific storage. -* @param key The thread-specific storage identifier. -* @param val The value of the thread-specific storage to set for the current -* thread. -* @return @ref thrd_success on success, or @ref thrd_error if the request could -* not be honored. -*/ -int tss_set(tss_t key, void *val); - - -#endif /* _TINYTHREAD_H_ */ - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan/vk_platform.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan/vk_platform.h deleted file mode 100644 index 5d0fc76..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan/vk_platform.h +++ /dev/null @@ -1,120 +0,0 @@ -// -// File: vk_platform.h -// -/* -** Copyright (c) 2014-2015 The Khronos Group Inc. -** -** Licensed under the Apache License, Version 2.0 (the "License"); -** you may not use this file except in compliance with the License. -** You may obtain a copy of the License at -** -** http://www.apache.org/licenses/LICENSE-2.0 -** -** Unless required by applicable law or agreed to in writing, software -** distributed under the License is distributed on an "AS IS" BASIS, -** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -** See the License for the specific language governing permissions and -** limitations under the License. -*/ - - -#ifndef VK_PLATFORM_H_ -#define VK_PLATFORM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // __cplusplus - -/* -*************************************************************************************************** -* Platform-specific directives and type declarations -*************************************************************************************************** -*/ - -/* Platform-specific calling convention macros. - * - * Platforms should define these so that Vulkan clients call Vulkan commands - * with the same calling conventions that the Vulkan implementation expects. - * - * VKAPI_ATTR - Placed before the return type in function declarations. - * Useful for C++11 and GCC/Clang-style function attribute syntax. - * VKAPI_CALL - Placed after the return type in function declarations. - * Useful for MSVC-style calling convention syntax. - * VKAPI_PTR - Placed between the '(' and '*' in function pointer types. - * - * Function declaration: VKAPI_ATTR void VKAPI_CALL vkCommand(void); - * Function pointer type: typedef void (VKAPI_PTR *PFN_vkCommand)(void); - */ -#if defined(_WIN32) - // On Windows, Vulkan commands use the stdcall convention - #define VKAPI_ATTR - #define VKAPI_CALL __stdcall - #define VKAPI_PTR VKAPI_CALL -#elif defined(__ANDROID__) && defined(__ARM_EABI__) && !defined(__ARM_ARCH_7A__) - // Android does not support Vulkan in native code using the "armeabi" ABI. - #error "Vulkan requires the 'armeabi-v7a' or 'armeabi-v7a-hard' ABI on 32-bit ARM CPUs" -#elif defined(__ANDROID__) && defined(__ARM_ARCH_7A__) - // On Android/ARMv7a, Vulkan functions use the armeabi-v7a-hard calling - // convention, even if the application's native code is compiled with the - // armeabi-v7a calling convention. - #define VKAPI_ATTR __attribute__((pcs("aapcs-vfp"))) - #define VKAPI_CALL - #define VKAPI_PTR VKAPI_ATTR -#else - // On other platforms, use the default calling convention - #define VKAPI_ATTR - #define VKAPI_CALL - #define VKAPI_PTR -#endif - -#include - -#if !defined(VK_NO_STDINT_H) - #if defined(_MSC_VER) && (_MSC_VER < 1600) - typedef signed __int8 int8_t; - typedef unsigned __int8 uint8_t; - typedef signed __int16 int16_t; - typedef unsigned __int16 uint16_t; - typedef signed __int32 int32_t; - typedef unsigned __int32 uint32_t; - typedef signed __int64 int64_t; - typedef unsigned __int64 uint64_t; - #else - #include - #endif -#endif // !defined(VK_NO_STDINT_H) - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -// Platform-specific headers required by platform window system extensions. -// These are enabled prior to #including "vulkan.h". The same enable then -// controls inclusion of the extension interfaces in vulkan.h. - -#ifdef VK_USE_PLATFORM_ANDROID_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_MIR_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_WAYLAND_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_WIN32_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_XLIB_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_XCB_KHR -#include -#endif - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan/vulkan.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan/vulkan.h deleted file mode 100644 index eb8343e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan/vulkan.h +++ /dev/null @@ -1,3835 +0,0 @@ -#ifndef VULKAN_H_ -#define VULKAN_H_ 1 - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** Copyright (c) 2015-2016 The Khronos Group Inc. -** -** Licensed under the Apache License, Version 2.0 (the "License"); -** you may not use this file except in compliance with the License. -** You may obtain a copy of the License at -** -** http://www.apache.org/licenses/LICENSE-2.0 -** -** Unless required by applicable law or agreed to in writing, software -** distributed under the License is distributed on an "AS IS" BASIS, -** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -** See the License for the specific language governing permissions and -** limitations under the License. -*/ - -/* -** This header is generated from the Khronos Vulkan XML API Registry. -** -*/ - - -#define VK_VERSION_1_0 1 -#include "vk_platform.h" - -#define VK_MAKE_VERSION(major, minor, patch) \ - (((major) << 22) | ((minor) << 12) | (patch)) - -// DEPRECATED: This define has been removed. Specific version defines (e.g. VK_API_VERSION_1_0), or the VK_MAKE_VERSION macro, should be used instead. -//#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 0) - -// Vulkan 1.0 version number -#define VK_API_VERSION_1_0 VK_MAKE_VERSION(1, 0, 0) - -#define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22) -#define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff) -#define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff) -// Version of this file -#define VK_HEADER_VERSION 11 - - -#define VK_NULL_HANDLE 0 - - - -#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object; - - -#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__) - #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object; -#else - #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object; -#endif - - - -typedef uint32_t VkFlags; -typedef uint32_t VkBool32; -typedef uint64_t VkDeviceSize; -typedef uint32_t VkSampleMask; - -VK_DEFINE_HANDLE(VkInstance) -VK_DEFINE_HANDLE(VkPhysicalDevice) -VK_DEFINE_HANDLE(VkDevice) -VK_DEFINE_HANDLE(VkQueue) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSemaphore) -VK_DEFINE_HANDLE(VkCommandBuffer) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFence) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDeviceMemory) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBuffer) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkEvent) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkQueryPool) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferView) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImageView) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineCache) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineLayout) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkRenderPass) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipeline) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSetLayout) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSampler) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorPool) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSet) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFramebuffer) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCommandPool) - -#define VK_LOD_CLAMP_NONE 1000.0f -#define VK_REMAINING_MIP_LEVELS (~0U) -#define VK_REMAINING_ARRAY_LAYERS (~0U) -#define VK_WHOLE_SIZE (~0ULL) -#define VK_ATTACHMENT_UNUSED (~0U) -#define VK_TRUE 1 -#define VK_FALSE 0 -#define VK_QUEUE_FAMILY_IGNORED (~0U) -#define VK_SUBPASS_EXTERNAL (~0U) -#define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256 -#define VK_UUID_SIZE 16 -#define VK_MAX_MEMORY_TYPES 32 -#define VK_MAX_MEMORY_HEAPS 16 -#define VK_MAX_EXTENSION_NAME_SIZE 256 -#define VK_MAX_DESCRIPTION_SIZE 256 - - -typedef enum VkPipelineCacheHeaderVersion { - VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1, - VK_PIPELINE_CACHE_HEADER_VERSION_BEGIN_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE, - VK_PIPELINE_CACHE_HEADER_VERSION_END_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE, - VK_PIPELINE_CACHE_HEADER_VERSION_RANGE_SIZE = (VK_PIPELINE_CACHE_HEADER_VERSION_ONE - VK_PIPELINE_CACHE_HEADER_VERSION_ONE + 1), - VK_PIPELINE_CACHE_HEADER_VERSION_MAX_ENUM = 0x7FFFFFFF -} VkPipelineCacheHeaderVersion; - -typedef enum VkResult { - VK_SUCCESS = 0, - VK_NOT_READY = 1, - VK_TIMEOUT = 2, - VK_EVENT_SET = 3, - VK_EVENT_RESET = 4, - VK_INCOMPLETE = 5, - VK_ERROR_OUT_OF_HOST_MEMORY = -1, - VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, - VK_ERROR_INITIALIZATION_FAILED = -3, - VK_ERROR_DEVICE_LOST = -4, - VK_ERROR_MEMORY_MAP_FAILED = -5, - VK_ERROR_LAYER_NOT_PRESENT = -6, - VK_ERROR_EXTENSION_NOT_PRESENT = -7, - VK_ERROR_FEATURE_NOT_PRESENT = -8, - VK_ERROR_INCOMPATIBLE_DRIVER = -9, - VK_ERROR_TOO_MANY_OBJECTS = -10, - VK_ERROR_FORMAT_NOT_SUPPORTED = -11, - VK_ERROR_SURFACE_LOST_KHR = -1000000000, - VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001, - VK_SUBOPTIMAL_KHR = 1000001003, - VK_ERROR_OUT_OF_DATE_KHR = -1000001004, - VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001, - VK_ERROR_VALIDATION_FAILED_EXT = -1000011001, - VK_ERROR_INVALID_SHADER_NV = -1000012000, - VK_RESULT_BEGIN_RANGE = VK_ERROR_FORMAT_NOT_SUPPORTED, - VK_RESULT_END_RANGE = VK_INCOMPLETE, - VK_RESULT_RANGE_SIZE = (VK_INCOMPLETE - VK_ERROR_FORMAT_NOT_SUPPORTED + 1), - VK_RESULT_MAX_ENUM = 0x7FFFFFFF -} VkResult; - -typedef enum VkStructureType { - VK_STRUCTURE_TYPE_APPLICATION_INFO = 0, - VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1, - VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2, - VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3, - VK_STRUCTURE_TYPE_SUBMIT_INFO = 4, - VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5, - VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6, - VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7, - VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8, - VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9, - VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10, - VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11, - VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12, - VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13, - VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14, - VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15, - VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16, - VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17, - VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18, - VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19, - VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20, - VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21, - VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22, - VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23, - VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24, - VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25, - VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26, - VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27, - VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28, - VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29, - VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30, - VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31, - VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32, - VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33, - VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34, - VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35, - VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36, - VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37, - VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38, - VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39, - VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40, - VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41, - VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42, - VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43, - VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44, - VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45, - VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46, - VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47, - VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48, - VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000, - VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001, - VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = 1000002000, - VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = 1000002001, - VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR = 1000003000, - VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000, - VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000, - VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000, - VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000, - VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = 1000008000, - VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000, - VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = 1000011000, - VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO, - VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO, - VK_STRUCTURE_TYPE_RANGE_SIZE = (VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO - VK_STRUCTURE_TYPE_APPLICATION_INFO + 1), - VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkStructureType; - -typedef enum VkSystemAllocationScope { - VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0, - VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1, - VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2, - VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3, - VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4, - VK_SYSTEM_ALLOCATION_SCOPE_BEGIN_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_COMMAND, - VK_SYSTEM_ALLOCATION_SCOPE_END_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE, - VK_SYSTEM_ALLOCATION_SCOPE_RANGE_SIZE = (VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE - VK_SYSTEM_ALLOCATION_SCOPE_COMMAND + 1), - VK_SYSTEM_ALLOCATION_SCOPE_MAX_ENUM = 0x7FFFFFFF -} VkSystemAllocationScope; - -typedef enum VkInternalAllocationType { - VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0, - VK_INTERNAL_ALLOCATION_TYPE_BEGIN_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE, - VK_INTERNAL_ALLOCATION_TYPE_END_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE, - VK_INTERNAL_ALLOCATION_TYPE_RANGE_SIZE = (VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE - VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE + 1), - VK_INTERNAL_ALLOCATION_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkInternalAllocationType; - -typedef enum VkFormat { - VK_FORMAT_UNDEFINED = 0, - VK_FORMAT_R4G4_UNORM_PACK8 = 1, - VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2, - VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3, - VK_FORMAT_R5G6B5_UNORM_PACK16 = 4, - VK_FORMAT_B5G6R5_UNORM_PACK16 = 5, - VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6, - VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7, - VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8, - VK_FORMAT_R8_UNORM = 9, - VK_FORMAT_R8_SNORM = 10, - VK_FORMAT_R8_USCALED = 11, - VK_FORMAT_R8_SSCALED = 12, - VK_FORMAT_R8_UINT = 13, - VK_FORMAT_R8_SINT = 14, - VK_FORMAT_R8_SRGB = 15, - VK_FORMAT_R8G8_UNORM = 16, - VK_FORMAT_R8G8_SNORM = 17, - VK_FORMAT_R8G8_USCALED = 18, - VK_FORMAT_R8G8_SSCALED = 19, - VK_FORMAT_R8G8_UINT = 20, - VK_FORMAT_R8G8_SINT = 21, - VK_FORMAT_R8G8_SRGB = 22, - VK_FORMAT_R8G8B8_UNORM = 23, - VK_FORMAT_R8G8B8_SNORM = 24, - VK_FORMAT_R8G8B8_USCALED = 25, - VK_FORMAT_R8G8B8_SSCALED = 26, - VK_FORMAT_R8G8B8_UINT = 27, - VK_FORMAT_R8G8B8_SINT = 28, - VK_FORMAT_R8G8B8_SRGB = 29, - VK_FORMAT_B8G8R8_UNORM = 30, - VK_FORMAT_B8G8R8_SNORM = 31, - VK_FORMAT_B8G8R8_USCALED = 32, - VK_FORMAT_B8G8R8_SSCALED = 33, - VK_FORMAT_B8G8R8_UINT = 34, - VK_FORMAT_B8G8R8_SINT = 35, - VK_FORMAT_B8G8R8_SRGB = 36, - VK_FORMAT_R8G8B8A8_UNORM = 37, - VK_FORMAT_R8G8B8A8_SNORM = 38, - VK_FORMAT_R8G8B8A8_USCALED = 39, - VK_FORMAT_R8G8B8A8_SSCALED = 40, - VK_FORMAT_R8G8B8A8_UINT = 41, - VK_FORMAT_R8G8B8A8_SINT = 42, - VK_FORMAT_R8G8B8A8_SRGB = 43, - VK_FORMAT_B8G8R8A8_UNORM = 44, - VK_FORMAT_B8G8R8A8_SNORM = 45, - VK_FORMAT_B8G8R8A8_USCALED = 46, - VK_FORMAT_B8G8R8A8_SSCALED = 47, - VK_FORMAT_B8G8R8A8_UINT = 48, - VK_FORMAT_B8G8R8A8_SINT = 49, - VK_FORMAT_B8G8R8A8_SRGB = 50, - VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51, - VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52, - VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53, - VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54, - VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55, - VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56, - VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57, - VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58, - VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59, - VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60, - VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61, - VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62, - VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63, - VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64, - VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65, - VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66, - VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67, - VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68, - VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69, - VK_FORMAT_R16_UNORM = 70, - VK_FORMAT_R16_SNORM = 71, - VK_FORMAT_R16_USCALED = 72, - VK_FORMAT_R16_SSCALED = 73, - VK_FORMAT_R16_UINT = 74, - VK_FORMAT_R16_SINT = 75, - VK_FORMAT_R16_SFLOAT = 76, - VK_FORMAT_R16G16_UNORM = 77, - VK_FORMAT_R16G16_SNORM = 78, - VK_FORMAT_R16G16_USCALED = 79, - VK_FORMAT_R16G16_SSCALED = 80, - VK_FORMAT_R16G16_UINT = 81, - VK_FORMAT_R16G16_SINT = 82, - VK_FORMAT_R16G16_SFLOAT = 83, - VK_FORMAT_R16G16B16_UNORM = 84, - VK_FORMAT_R16G16B16_SNORM = 85, - VK_FORMAT_R16G16B16_USCALED = 86, - VK_FORMAT_R16G16B16_SSCALED = 87, - VK_FORMAT_R16G16B16_UINT = 88, - VK_FORMAT_R16G16B16_SINT = 89, - VK_FORMAT_R16G16B16_SFLOAT = 90, - VK_FORMAT_R16G16B16A16_UNORM = 91, - VK_FORMAT_R16G16B16A16_SNORM = 92, - VK_FORMAT_R16G16B16A16_USCALED = 93, - VK_FORMAT_R16G16B16A16_SSCALED = 94, - VK_FORMAT_R16G16B16A16_UINT = 95, - VK_FORMAT_R16G16B16A16_SINT = 96, - VK_FORMAT_R16G16B16A16_SFLOAT = 97, - VK_FORMAT_R32_UINT = 98, - VK_FORMAT_R32_SINT = 99, - VK_FORMAT_R32_SFLOAT = 100, - VK_FORMAT_R32G32_UINT = 101, - VK_FORMAT_R32G32_SINT = 102, - VK_FORMAT_R32G32_SFLOAT = 103, - VK_FORMAT_R32G32B32_UINT = 104, - VK_FORMAT_R32G32B32_SINT = 105, - VK_FORMAT_R32G32B32_SFLOAT = 106, - VK_FORMAT_R32G32B32A32_UINT = 107, - VK_FORMAT_R32G32B32A32_SINT = 108, - VK_FORMAT_R32G32B32A32_SFLOAT = 109, - VK_FORMAT_R64_UINT = 110, - VK_FORMAT_R64_SINT = 111, - VK_FORMAT_R64_SFLOAT = 112, - VK_FORMAT_R64G64_UINT = 113, - VK_FORMAT_R64G64_SINT = 114, - VK_FORMAT_R64G64_SFLOAT = 115, - VK_FORMAT_R64G64B64_UINT = 116, - VK_FORMAT_R64G64B64_SINT = 117, - VK_FORMAT_R64G64B64_SFLOAT = 118, - VK_FORMAT_R64G64B64A64_UINT = 119, - VK_FORMAT_R64G64B64A64_SINT = 120, - VK_FORMAT_R64G64B64A64_SFLOAT = 121, - VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122, - VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123, - VK_FORMAT_D16_UNORM = 124, - VK_FORMAT_X8_D24_UNORM_PACK32 = 125, - VK_FORMAT_D32_SFLOAT = 126, - VK_FORMAT_S8_UINT = 127, - VK_FORMAT_D16_UNORM_S8_UINT = 128, - VK_FORMAT_D24_UNORM_S8_UINT = 129, - VK_FORMAT_D32_SFLOAT_S8_UINT = 130, - VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131, - VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132, - VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133, - VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134, - VK_FORMAT_BC2_UNORM_BLOCK = 135, - VK_FORMAT_BC2_SRGB_BLOCK = 136, - VK_FORMAT_BC3_UNORM_BLOCK = 137, - VK_FORMAT_BC3_SRGB_BLOCK = 138, - VK_FORMAT_BC4_UNORM_BLOCK = 139, - VK_FORMAT_BC4_SNORM_BLOCK = 140, - VK_FORMAT_BC5_UNORM_BLOCK = 141, - VK_FORMAT_BC5_SNORM_BLOCK = 142, - VK_FORMAT_BC6H_UFLOAT_BLOCK = 143, - VK_FORMAT_BC6H_SFLOAT_BLOCK = 144, - VK_FORMAT_BC7_UNORM_BLOCK = 145, - VK_FORMAT_BC7_SRGB_BLOCK = 146, - VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147, - VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148, - VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149, - VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150, - VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151, - VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152, - VK_FORMAT_EAC_R11_UNORM_BLOCK = 153, - VK_FORMAT_EAC_R11_SNORM_BLOCK = 154, - VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155, - VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156, - VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157, - VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158, - VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159, - VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160, - VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161, - VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162, - VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163, - VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164, - VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165, - VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166, - VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167, - VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168, - VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169, - VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170, - VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171, - VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172, - VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173, - VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174, - VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175, - VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176, - VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177, - VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178, - VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179, - VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180, - VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181, - VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182, - VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183, - VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184, - VK_FORMAT_BEGIN_RANGE = VK_FORMAT_UNDEFINED, - VK_FORMAT_END_RANGE = VK_FORMAT_ASTC_12x12_SRGB_BLOCK, - VK_FORMAT_RANGE_SIZE = (VK_FORMAT_ASTC_12x12_SRGB_BLOCK - VK_FORMAT_UNDEFINED + 1), - VK_FORMAT_MAX_ENUM = 0x7FFFFFFF -} VkFormat; - -typedef enum VkImageType { - VK_IMAGE_TYPE_1D = 0, - VK_IMAGE_TYPE_2D = 1, - VK_IMAGE_TYPE_3D = 2, - VK_IMAGE_TYPE_BEGIN_RANGE = VK_IMAGE_TYPE_1D, - VK_IMAGE_TYPE_END_RANGE = VK_IMAGE_TYPE_3D, - VK_IMAGE_TYPE_RANGE_SIZE = (VK_IMAGE_TYPE_3D - VK_IMAGE_TYPE_1D + 1), - VK_IMAGE_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkImageType; - -typedef enum VkImageTiling { - VK_IMAGE_TILING_OPTIMAL = 0, - VK_IMAGE_TILING_LINEAR = 1, - VK_IMAGE_TILING_BEGIN_RANGE = VK_IMAGE_TILING_OPTIMAL, - VK_IMAGE_TILING_END_RANGE = VK_IMAGE_TILING_LINEAR, - VK_IMAGE_TILING_RANGE_SIZE = (VK_IMAGE_TILING_LINEAR - VK_IMAGE_TILING_OPTIMAL + 1), - VK_IMAGE_TILING_MAX_ENUM = 0x7FFFFFFF -} VkImageTiling; - -typedef enum VkPhysicalDeviceType { - VK_PHYSICAL_DEVICE_TYPE_OTHER = 0, - VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1, - VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2, - VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3, - VK_PHYSICAL_DEVICE_TYPE_CPU = 4, - VK_PHYSICAL_DEVICE_TYPE_BEGIN_RANGE = VK_PHYSICAL_DEVICE_TYPE_OTHER, - VK_PHYSICAL_DEVICE_TYPE_END_RANGE = VK_PHYSICAL_DEVICE_TYPE_CPU, - VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE = (VK_PHYSICAL_DEVICE_TYPE_CPU - VK_PHYSICAL_DEVICE_TYPE_OTHER + 1), - VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkPhysicalDeviceType; - -typedef enum VkQueryType { - VK_QUERY_TYPE_OCCLUSION = 0, - VK_QUERY_TYPE_PIPELINE_STATISTICS = 1, - VK_QUERY_TYPE_TIMESTAMP = 2, - VK_QUERY_TYPE_BEGIN_RANGE = VK_QUERY_TYPE_OCCLUSION, - VK_QUERY_TYPE_END_RANGE = VK_QUERY_TYPE_TIMESTAMP, - VK_QUERY_TYPE_RANGE_SIZE = (VK_QUERY_TYPE_TIMESTAMP - VK_QUERY_TYPE_OCCLUSION + 1), - VK_QUERY_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkQueryType; - -typedef enum VkSharingMode { - VK_SHARING_MODE_EXCLUSIVE = 0, - VK_SHARING_MODE_CONCURRENT = 1, - VK_SHARING_MODE_BEGIN_RANGE = VK_SHARING_MODE_EXCLUSIVE, - VK_SHARING_MODE_END_RANGE = VK_SHARING_MODE_CONCURRENT, - VK_SHARING_MODE_RANGE_SIZE = (VK_SHARING_MODE_CONCURRENT - VK_SHARING_MODE_EXCLUSIVE + 1), - VK_SHARING_MODE_MAX_ENUM = 0x7FFFFFFF -} VkSharingMode; - -typedef enum VkImageLayout { - VK_IMAGE_LAYOUT_UNDEFINED = 0, - VK_IMAGE_LAYOUT_GENERAL = 1, - VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2, - VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3, - VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4, - VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5, - VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 6, - VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 7, - VK_IMAGE_LAYOUT_PREINITIALIZED = 8, - VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002, - VK_IMAGE_LAYOUT_BEGIN_RANGE = VK_IMAGE_LAYOUT_UNDEFINED, - VK_IMAGE_LAYOUT_END_RANGE = VK_IMAGE_LAYOUT_PREINITIALIZED, - VK_IMAGE_LAYOUT_RANGE_SIZE = (VK_IMAGE_LAYOUT_PREINITIALIZED - VK_IMAGE_LAYOUT_UNDEFINED + 1), - VK_IMAGE_LAYOUT_MAX_ENUM = 0x7FFFFFFF -} VkImageLayout; - -typedef enum VkImageViewType { - VK_IMAGE_VIEW_TYPE_1D = 0, - VK_IMAGE_VIEW_TYPE_2D = 1, - VK_IMAGE_VIEW_TYPE_3D = 2, - VK_IMAGE_VIEW_TYPE_CUBE = 3, - VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4, - VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5, - VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6, - VK_IMAGE_VIEW_TYPE_BEGIN_RANGE = VK_IMAGE_VIEW_TYPE_1D, - VK_IMAGE_VIEW_TYPE_END_RANGE = VK_IMAGE_VIEW_TYPE_CUBE_ARRAY, - VK_IMAGE_VIEW_TYPE_RANGE_SIZE = (VK_IMAGE_VIEW_TYPE_CUBE_ARRAY - VK_IMAGE_VIEW_TYPE_1D + 1), - VK_IMAGE_VIEW_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkImageViewType; - -typedef enum VkComponentSwizzle { - VK_COMPONENT_SWIZZLE_IDENTITY = 0, - VK_COMPONENT_SWIZZLE_ZERO = 1, - VK_COMPONENT_SWIZZLE_ONE = 2, - VK_COMPONENT_SWIZZLE_R = 3, - VK_COMPONENT_SWIZZLE_G = 4, - VK_COMPONENT_SWIZZLE_B = 5, - VK_COMPONENT_SWIZZLE_A = 6, - VK_COMPONENT_SWIZZLE_BEGIN_RANGE = VK_COMPONENT_SWIZZLE_IDENTITY, - VK_COMPONENT_SWIZZLE_END_RANGE = VK_COMPONENT_SWIZZLE_A, - VK_COMPONENT_SWIZZLE_RANGE_SIZE = (VK_COMPONENT_SWIZZLE_A - VK_COMPONENT_SWIZZLE_IDENTITY + 1), - VK_COMPONENT_SWIZZLE_MAX_ENUM = 0x7FFFFFFF -} VkComponentSwizzle; - -typedef enum VkVertexInputRate { - VK_VERTEX_INPUT_RATE_VERTEX = 0, - VK_VERTEX_INPUT_RATE_INSTANCE = 1, - VK_VERTEX_INPUT_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_RATE_VERTEX, - VK_VERTEX_INPUT_RATE_END_RANGE = VK_VERTEX_INPUT_RATE_INSTANCE, - VK_VERTEX_INPUT_RATE_RANGE_SIZE = (VK_VERTEX_INPUT_RATE_INSTANCE - VK_VERTEX_INPUT_RATE_VERTEX + 1), - VK_VERTEX_INPUT_RATE_MAX_ENUM = 0x7FFFFFFF -} VkVertexInputRate; - -typedef enum VkPrimitiveTopology { - VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0, - VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1, - VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5, - VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6, - VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9, - VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10, - VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE = VK_PRIMITIVE_TOPOLOGY_POINT_LIST, - VK_PRIMITIVE_TOPOLOGY_END_RANGE = VK_PRIMITIVE_TOPOLOGY_PATCH_LIST, - VK_PRIMITIVE_TOPOLOGY_RANGE_SIZE = (VK_PRIMITIVE_TOPOLOGY_PATCH_LIST - VK_PRIMITIVE_TOPOLOGY_POINT_LIST + 1), - VK_PRIMITIVE_TOPOLOGY_MAX_ENUM = 0x7FFFFFFF -} VkPrimitiveTopology; - -typedef enum VkPolygonMode { - VK_POLYGON_MODE_FILL = 0, - VK_POLYGON_MODE_LINE = 1, - VK_POLYGON_MODE_POINT = 2, - VK_POLYGON_MODE_BEGIN_RANGE = VK_POLYGON_MODE_FILL, - VK_POLYGON_MODE_END_RANGE = VK_POLYGON_MODE_POINT, - VK_POLYGON_MODE_RANGE_SIZE = (VK_POLYGON_MODE_POINT - VK_POLYGON_MODE_FILL + 1), - VK_POLYGON_MODE_MAX_ENUM = 0x7FFFFFFF -} VkPolygonMode; - -typedef enum VkFrontFace { - VK_FRONT_FACE_COUNTER_CLOCKWISE = 0, - VK_FRONT_FACE_CLOCKWISE = 1, - VK_FRONT_FACE_BEGIN_RANGE = VK_FRONT_FACE_COUNTER_CLOCKWISE, - VK_FRONT_FACE_END_RANGE = VK_FRONT_FACE_CLOCKWISE, - VK_FRONT_FACE_RANGE_SIZE = (VK_FRONT_FACE_CLOCKWISE - VK_FRONT_FACE_COUNTER_CLOCKWISE + 1), - VK_FRONT_FACE_MAX_ENUM = 0x7FFFFFFF -} VkFrontFace; - -typedef enum VkCompareOp { - VK_COMPARE_OP_NEVER = 0, - VK_COMPARE_OP_LESS = 1, - VK_COMPARE_OP_EQUAL = 2, - VK_COMPARE_OP_LESS_OR_EQUAL = 3, - VK_COMPARE_OP_GREATER = 4, - VK_COMPARE_OP_NOT_EQUAL = 5, - VK_COMPARE_OP_GREATER_OR_EQUAL = 6, - VK_COMPARE_OP_ALWAYS = 7, - VK_COMPARE_OP_BEGIN_RANGE = VK_COMPARE_OP_NEVER, - VK_COMPARE_OP_END_RANGE = VK_COMPARE_OP_ALWAYS, - VK_COMPARE_OP_RANGE_SIZE = (VK_COMPARE_OP_ALWAYS - VK_COMPARE_OP_NEVER + 1), - VK_COMPARE_OP_MAX_ENUM = 0x7FFFFFFF -} VkCompareOp; - -typedef enum VkStencilOp { - VK_STENCIL_OP_KEEP = 0, - VK_STENCIL_OP_ZERO = 1, - VK_STENCIL_OP_REPLACE = 2, - VK_STENCIL_OP_INCREMENT_AND_CLAMP = 3, - VK_STENCIL_OP_DECREMENT_AND_CLAMP = 4, - VK_STENCIL_OP_INVERT = 5, - VK_STENCIL_OP_INCREMENT_AND_WRAP = 6, - VK_STENCIL_OP_DECREMENT_AND_WRAP = 7, - VK_STENCIL_OP_BEGIN_RANGE = VK_STENCIL_OP_KEEP, - VK_STENCIL_OP_END_RANGE = VK_STENCIL_OP_DECREMENT_AND_WRAP, - VK_STENCIL_OP_RANGE_SIZE = (VK_STENCIL_OP_DECREMENT_AND_WRAP - VK_STENCIL_OP_KEEP + 1), - VK_STENCIL_OP_MAX_ENUM = 0x7FFFFFFF -} VkStencilOp; - -typedef enum VkLogicOp { - VK_LOGIC_OP_CLEAR = 0, - VK_LOGIC_OP_AND = 1, - VK_LOGIC_OP_AND_REVERSE = 2, - VK_LOGIC_OP_COPY = 3, - VK_LOGIC_OP_AND_INVERTED = 4, - VK_LOGIC_OP_NO_OP = 5, - VK_LOGIC_OP_XOR = 6, - VK_LOGIC_OP_OR = 7, - VK_LOGIC_OP_NOR = 8, - VK_LOGIC_OP_EQUIVALENT = 9, - VK_LOGIC_OP_INVERT = 10, - VK_LOGIC_OP_OR_REVERSE = 11, - VK_LOGIC_OP_COPY_INVERTED = 12, - VK_LOGIC_OP_OR_INVERTED = 13, - VK_LOGIC_OP_NAND = 14, - VK_LOGIC_OP_SET = 15, - VK_LOGIC_OP_BEGIN_RANGE = VK_LOGIC_OP_CLEAR, - VK_LOGIC_OP_END_RANGE = VK_LOGIC_OP_SET, - VK_LOGIC_OP_RANGE_SIZE = (VK_LOGIC_OP_SET - VK_LOGIC_OP_CLEAR + 1), - VK_LOGIC_OP_MAX_ENUM = 0x7FFFFFFF -} VkLogicOp; - -typedef enum VkBlendFactor { - VK_BLEND_FACTOR_ZERO = 0, - VK_BLEND_FACTOR_ONE = 1, - VK_BLEND_FACTOR_SRC_COLOR = 2, - VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3, - VK_BLEND_FACTOR_DST_COLOR = 4, - VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5, - VK_BLEND_FACTOR_SRC_ALPHA = 6, - VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7, - VK_BLEND_FACTOR_DST_ALPHA = 8, - VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9, - VK_BLEND_FACTOR_CONSTANT_COLOR = 10, - VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 11, - VK_BLEND_FACTOR_CONSTANT_ALPHA = 12, - VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 13, - VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 14, - VK_BLEND_FACTOR_SRC1_COLOR = 15, - VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 16, - VK_BLEND_FACTOR_SRC1_ALPHA = 17, - VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 18, - VK_BLEND_FACTOR_BEGIN_RANGE = VK_BLEND_FACTOR_ZERO, - VK_BLEND_FACTOR_END_RANGE = VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA, - VK_BLEND_FACTOR_RANGE_SIZE = (VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - VK_BLEND_FACTOR_ZERO + 1), - VK_BLEND_FACTOR_MAX_ENUM = 0x7FFFFFFF -} VkBlendFactor; - -typedef enum VkBlendOp { - VK_BLEND_OP_ADD = 0, - VK_BLEND_OP_SUBTRACT = 1, - VK_BLEND_OP_REVERSE_SUBTRACT = 2, - VK_BLEND_OP_MIN = 3, - VK_BLEND_OP_MAX = 4, - VK_BLEND_OP_BEGIN_RANGE = VK_BLEND_OP_ADD, - VK_BLEND_OP_END_RANGE = VK_BLEND_OP_MAX, - VK_BLEND_OP_RANGE_SIZE = (VK_BLEND_OP_MAX - VK_BLEND_OP_ADD + 1), - VK_BLEND_OP_MAX_ENUM = 0x7FFFFFFF -} VkBlendOp; - -typedef enum VkDynamicState { - VK_DYNAMIC_STATE_VIEWPORT = 0, - VK_DYNAMIC_STATE_SCISSOR = 1, - VK_DYNAMIC_STATE_LINE_WIDTH = 2, - VK_DYNAMIC_STATE_DEPTH_BIAS = 3, - VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4, - VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5, - VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6, - VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7, - VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8, - VK_DYNAMIC_STATE_BEGIN_RANGE = VK_DYNAMIC_STATE_VIEWPORT, - VK_DYNAMIC_STATE_END_RANGE = VK_DYNAMIC_STATE_STENCIL_REFERENCE, - VK_DYNAMIC_STATE_RANGE_SIZE = (VK_DYNAMIC_STATE_STENCIL_REFERENCE - VK_DYNAMIC_STATE_VIEWPORT + 1), - VK_DYNAMIC_STATE_MAX_ENUM = 0x7FFFFFFF -} VkDynamicState; - -typedef enum VkFilter { - VK_FILTER_NEAREST = 0, - VK_FILTER_LINEAR = 1, - VK_FILTER_CUBIC_IMG = 1000015000, - VK_FILTER_BEGIN_RANGE = VK_FILTER_NEAREST, - VK_FILTER_END_RANGE = VK_FILTER_LINEAR, - VK_FILTER_RANGE_SIZE = (VK_FILTER_LINEAR - VK_FILTER_NEAREST + 1), - VK_FILTER_MAX_ENUM = 0x7FFFFFFF -} VkFilter; - -typedef enum VkSamplerMipmapMode { - VK_SAMPLER_MIPMAP_MODE_NEAREST = 0, - VK_SAMPLER_MIPMAP_MODE_LINEAR = 1, - VK_SAMPLER_MIPMAP_MODE_BEGIN_RANGE = VK_SAMPLER_MIPMAP_MODE_NEAREST, - VK_SAMPLER_MIPMAP_MODE_END_RANGE = VK_SAMPLER_MIPMAP_MODE_LINEAR, - VK_SAMPLER_MIPMAP_MODE_RANGE_SIZE = (VK_SAMPLER_MIPMAP_MODE_LINEAR - VK_SAMPLER_MIPMAP_MODE_NEAREST + 1), - VK_SAMPLER_MIPMAP_MODE_MAX_ENUM = 0x7FFFFFFF -} VkSamplerMipmapMode; - -typedef enum VkSamplerAddressMode { - VK_SAMPLER_ADDRESS_MODE_REPEAT = 0, - VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1, - VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2, - VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3, - VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4, - VK_SAMPLER_ADDRESS_MODE_BEGIN_RANGE = VK_SAMPLER_ADDRESS_MODE_REPEAT, - VK_SAMPLER_ADDRESS_MODE_END_RANGE = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, - VK_SAMPLER_ADDRESS_MODE_RANGE_SIZE = (VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER - VK_SAMPLER_ADDRESS_MODE_REPEAT + 1), - VK_SAMPLER_ADDRESS_MODE_MAX_ENUM = 0x7FFFFFFF -} VkSamplerAddressMode; - -typedef enum VkBorderColor { - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0, - VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1, - VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2, - VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3, - VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4, - VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5, - VK_BORDER_COLOR_BEGIN_RANGE = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK, - VK_BORDER_COLOR_END_RANGE = VK_BORDER_COLOR_INT_OPAQUE_WHITE, - VK_BORDER_COLOR_RANGE_SIZE = (VK_BORDER_COLOR_INT_OPAQUE_WHITE - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK + 1), - VK_BORDER_COLOR_MAX_ENUM = 0x7FFFFFFF -} VkBorderColor; - -typedef enum VkDescriptorType { - VK_DESCRIPTOR_TYPE_SAMPLER = 0, - VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1, - VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2, - VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3, - VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4, - VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5, - VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6, - VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7, - VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8, - VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9, - VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10, - VK_DESCRIPTOR_TYPE_BEGIN_RANGE = VK_DESCRIPTOR_TYPE_SAMPLER, - VK_DESCRIPTOR_TYPE_END_RANGE = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, - VK_DESCRIPTOR_TYPE_RANGE_SIZE = (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT - VK_DESCRIPTOR_TYPE_SAMPLER + 1), - VK_DESCRIPTOR_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkDescriptorType; - -typedef enum VkAttachmentLoadOp { - VK_ATTACHMENT_LOAD_OP_LOAD = 0, - VK_ATTACHMENT_LOAD_OP_CLEAR = 1, - VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2, - VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE = VK_ATTACHMENT_LOAD_OP_LOAD, - VK_ATTACHMENT_LOAD_OP_END_RANGE = VK_ATTACHMENT_LOAD_OP_DONT_CARE, - VK_ATTACHMENT_LOAD_OP_RANGE_SIZE = (VK_ATTACHMENT_LOAD_OP_DONT_CARE - VK_ATTACHMENT_LOAD_OP_LOAD + 1), - VK_ATTACHMENT_LOAD_OP_MAX_ENUM = 0x7FFFFFFF -} VkAttachmentLoadOp; - -typedef enum VkAttachmentStoreOp { - VK_ATTACHMENT_STORE_OP_STORE = 0, - VK_ATTACHMENT_STORE_OP_DONT_CARE = 1, - VK_ATTACHMENT_STORE_OP_BEGIN_RANGE = VK_ATTACHMENT_STORE_OP_STORE, - VK_ATTACHMENT_STORE_OP_END_RANGE = VK_ATTACHMENT_STORE_OP_DONT_CARE, - VK_ATTACHMENT_STORE_OP_RANGE_SIZE = (VK_ATTACHMENT_STORE_OP_DONT_CARE - VK_ATTACHMENT_STORE_OP_STORE + 1), - VK_ATTACHMENT_STORE_OP_MAX_ENUM = 0x7FFFFFFF -} VkAttachmentStoreOp; - -typedef enum VkPipelineBindPoint { - VK_PIPELINE_BIND_POINT_GRAPHICS = 0, - VK_PIPELINE_BIND_POINT_COMPUTE = 1, - VK_PIPELINE_BIND_POINT_BEGIN_RANGE = VK_PIPELINE_BIND_POINT_GRAPHICS, - VK_PIPELINE_BIND_POINT_END_RANGE = VK_PIPELINE_BIND_POINT_COMPUTE, - VK_PIPELINE_BIND_POINT_RANGE_SIZE = (VK_PIPELINE_BIND_POINT_COMPUTE - VK_PIPELINE_BIND_POINT_GRAPHICS + 1), - VK_PIPELINE_BIND_POINT_MAX_ENUM = 0x7FFFFFFF -} VkPipelineBindPoint; - -typedef enum VkCommandBufferLevel { - VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0, - VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1, - VK_COMMAND_BUFFER_LEVEL_BEGIN_RANGE = VK_COMMAND_BUFFER_LEVEL_PRIMARY, - VK_COMMAND_BUFFER_LEVEL_END_RANGE = VK_COMMAND_BUFFER_LEVEL_SECONDARY, - VK_COMMAND_BUFFER_LEVEL_RANGE_SIZE = (VK_COMMAND_BUFFER_LEVEL_SECONDARY - VK_COMMAND_BUFFER_LEVEL_PRIMARY + 1), - VK_COMMAND_BUFFER_LEVEL_MAX_ENUM = 0x7FFFFFFF -} VkCommandBufferLevel; - -typedef enum VkIndexType { - VK_INDEX_TYPE_UINT16 = 0, - VK_INDEX_TYPE_UINT32 = 1, - VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT16, - VK_INDEX_TYPE_END_RANGE = VK_INDEX_TYPE_UINT32, - VK_INDEX_TYPE_RANGE_SIZE = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT16 + 1), - VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkIndexType; - -typedef enum VkSubpassContents { - VK_SUBPASS_CONTENTS_INLINE = 0, - VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1, - VK_SUBPASS_CONTENTS_BEGIN_RANGE = VK_SUBPASS_CONTENTS_INLINE, - VK_SUBPASS_CONTENTS_END_RANGE = VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS, - VK_SUBPASS_CONTENTS_RANGE_SIZE = (VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS - VK_SUBPASS_CONTENTS_INLINE + 1), - VK_SUBPASS_CONTENTS_MAX_ENUM = 0x7FFFFFFF -} VkSubpassContents; - -typedef VkFlags VkInstanceCreateFlags; - -typedef enum VkFormatFeatureFlagBits { - VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001, - VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002, - VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004, - VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008, - VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010, - VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020, - VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040, - VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080, - VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100, - VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200, - VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400, - VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800, - VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000, - VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = 0x00002000, - VK_FORMAT_FEATURE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkFormatFeatureFlagBits; -typedef VkFlags VkFormatFeatureFlags; - -typedef enum VkImageUsageFlagBits { - VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001, - VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002, - VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, - VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, - VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, - VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020, - VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, - VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080, - VK_IMAGE_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkImageUsageFlagBits; -typedef VkFlags VkImageUsageFlags; - -typedef enum VkImageCreateFlagBits { - VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001, - VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, - VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004, - VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008, - VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010, - VK_IMAGE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkImageCreateFlagBits; -typedef VkFlags VkImageCreateFlags; - -typedef enum VkSampleCountFlagBits { - VK_SAMPLE_COUNT_1_BIT = 0x00000001, - VK_SAMPLE_COUNT_2_BIT = 0x00000002, - VK_SAMPLE_COUNT_4_BIT = 0x00000004, - VK_SAMPLE_COUNT_8_BIT = 0x00000008, - VK_SAMPLE_COUNT_16_BIT = 0x00000010, - VK_SAMPLE_COUNT_32_BIT = 0x00000020, - VK_SAMPLE_COUNT_64_BIT = 0x00000040, - VK_SAMPLE_COUNT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkSampleCountFlagBits; -typedef VkFlags VkSampleCountFlags; - -typedef enum VkQueueFlagBits { - VK_QUEUE_GRAPHICS_BIT = 0x00000001, - VK_QUEUE_COMPUTE_BIT = 0x00000002, - VK_QUEUE_TRANSFER_BIT = 0x00000004, - VK_QUEUE_SPARSE_BINDING_BIT = 0x00000008, - VK_QUEUE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkQueueFlagBits; -typedef VkFlags VkQueueFlags; - -typedef enum VkMemoryPropertyFlagBits { - VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001, - VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002, - VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004, - VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008, - VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010, - VK_MEMORY_PROPERTY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkMemoryPropertyFlagBits; -typedef VkFlags VkMemoryPropertyFlags; - -typedef enum VkMemoryHeapFlagBits { - VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 0x00000001, - VK_MEMORY_HEAP_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkMemoryHeapFlagBits; -typedef VkFlags VkMemoryHeapFlags; -typedef VkFlags VkDeviceCreateFlags; -typedef VkFlags VkDeviceQueueCreateFlags; - -typedef enum VkPipelineStageFlagBits { - VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001, - VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002, - VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004, - VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008, - VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010, - VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020, - VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040, - VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080, - VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100, - VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200, - VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400, - VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800, - VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000, - VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 0x00002000, - VK_PIPELINE_STAGE_HOST_BIT = 0x00004000, - VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 0x00008000, - VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 0x00010000, - VK_PIPELINE_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkPipelineStageFlagBits; -typedef VkFlags VkPipelineStageFlags; -typedef VkFlags VkMemoryMapFlags; - -typedef enum VkImageAspectFlagBits { - VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001, - VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002, - VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004, - VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008, - VK_IMAGE_ASPECT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkImageAspectFlagBits; -typedef VkFlags VkImageAspectFlags; - -typedef enum VkSparseImageFormatFlagBits { - VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 0x00000001, - VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 0x00000002, - VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 0x00000004, - VK_SPARSE_IMAGE_FORMAT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkSparseImageFormatFlagBits; -typedef VkFlags VkSparseImageFormatFlags; - -typedef enum VkSparseMemoryBindFlagBits { - VK_SPARSE_MEMORY_BIND_METADATA_BIT = 0x00000001, - VK_SPARSE_MEMORY_BIND_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkSparseMemoryBindFlagBits; -typedef VkFlags VkSparseMemoryBindFlags; - -typedef enum VkFenceCreateFlagBits { - VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001, - VK_FENCE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkFenceCreateFlagBits; -typedef VkFlags VkFenceCreateFlags; -typedef VkFlags VkSemaphoreCreateFlags; -typedef VkFlags VkEventCreateFlags; -typedef VkFlags VkQueryPoolCreateFlags; - -typedef enum VkQueryPipelineStatisticFlagBits { - VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001, - VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002, - VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004, - VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008, - VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010, - VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020, - VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040, - VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080, - VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100, - VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200, - VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400, - VK_QUERY_PIPELINE_STATISTIC_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkQueryPipelineStatisticFlagBits; -typedef VkFlags VkQueryPipelineStatisticFlags; - -typedef enum VkQueryResultFlagBits { - VK_QUERY_RESULT_64_BIT = 0x00000001, - VK_QUERY_RESULT_WAIT_BIT = 0x00000002, - VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004, - VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008, - VK_QUERY_RESULT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkQueryResultFlagBits; -typedef VkFlags VkQueryResultFlags; - -typedef enum VkBufferCreateFlagBits { - VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001, - VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, - VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004, - VK_BUFFER_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkBufferCreateFlagBits; -typedef VkFlags VkBufferCreateFlags; - -typedef enum VkBufferUsageFlagBits { - VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 0x00000001, - VK_BUFFER_USAGE_TRANSFER_DST_BIT = 0x00000002, - VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004, - VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008, - VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010, - VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020, - VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040, - VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080, - VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100, - VK_BUFFER_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkBufferUsageFlagBits; -typedef VkFlags VkBufferUsageFlags; -typedef VkFlags VkBufferViewCreateFlags; -typedef VkFlags VkImageViewCreateFlags; -typedef VkFlags VkShaderModuleCreateFlags; -typedef VkFlags VkPipelineCacheCreateFlags; - -typedef enum VkPipelineCreateFlagBits { - VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001, - VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002, - VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004, - VK_PIPELINE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkPipelineCreateFlagBits; -typedef VkFlags VkPipelineCreateFlags; -typedef VkFlags VkPipelineShaderStageCreateFlags; - -typedef enum VkShaderStageFlagBits { - VK_SHADER_STAGE_VERTEX_BIT = 0x00000001, - VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002, - VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004, - VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008, - VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010, - VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020, - VK_SHADER_STAGE_ALL_GRAPHICS = 0x0000001F, - VK_SHADER_STAGE_ALL = 0x7FFFFFFF, - VK_SHADER_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkShaderStageFlagBits; -typedef VkFlags VkPipelineVertexInputStateCreateFlags; -typedef VkFlags VkPipelineInputAssemblyStateCreateFlags; -typedef VkFlags VkPipelineTessellationStateCreateFlags; -typedef VkFlags VkPipelineViewportStateCreateFlags; -typedef VkFlags VkPipelineRasterizationStateCreateFlags; - -typedef enum VkCullModeFlagBits { - VK_CULL_MODE_NONE = 0, - VK_CULL_MODE_FRONT_BIT = 0x00000001, - VK_CULL_MODE_BACK_BIT = 0x00000002, - VK_CULL_MODE_FRONT_AND_BACK = 0x00000003, - VK_CULL_MODE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCullModeFlagBits; -typedef VkFlags VkCullModeFlags; -typedef VkFlags VkPipelineMultisampleStateCreateFlags; -typedef VkFlags VkPipelineDepthStencilStateCreateFlags; -typedef VkFlags VkPipelineColorBlendStateCreateFlags; - -typedef enum VkColorComponentFlagBits { - VK_COLOR_COMPONENT_R_BIT = 0x00000001, - VK_COLOR_COMPONENT_G_BIT = 0x00000002, - VK_COLOR_COMPONENT_B_BIT = 0x00000004, - VK_COLOR_COMPONENT_A_BIT = 0x00000008, - VK_COLOR_COMPONENT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkColorComponentFlagBits; -typedef VkFlags VkColorComponentFlags; -typedef VkFlags VkPipelineDynamicStateCreateFlags; -typedef VkFlags VkPipelineLayoutCreateFlags; -typedef VkFlags VkShaderStageFlags; -typedef VkFlags VkSamplerCreateFlags; -typedef VkFlags VkDescriptorSetLayoutCreateFlags; - -typedef enum VkDescriptorPoolCreateFlagBits { - VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001, - VK_DESCRIPTOR_POOL_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkDescriptorPoolCreateFlagBits; -typedef VkFlags VkDescriptorPoolCreateFlags; -typedef VkFlags VkDescriptorPoolResetFlags; -typedef VkFlags VkFramebufferCreateFlags; -typedef VkFlags VkRenderPassCreateFlags; - -typedef enum VkAttachmentDescriptionFlagBits { - VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001, - VK_ATTACHMENT_DESCRIPTION_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkAttachmentDescriptionFlagBits; -typedef VkFlags VkAttachmentDescriptionFlags; -typedef VkFlags VkSubpassDescriptionFlags; - -typedef enum VkAccessFlagBits { - VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 0x00000001, - VK_ACCESS_INDEX_READ_BIT = 0x00000002, - VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004, - VK_ACCESS_UNIFORM_READ_BIT = 0x00000008, - VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 0x00000010, - VK_ACCESS_SHADER_READ_BIT = 0x00000020, - VK_ACCESS_SHADER_WRITE_BIT = 0x00000040, - VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 0x00000080, - VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100, - VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200, - VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400, - VK_ACCESS_TRANSFER_READ_BIT = 0x00000800, - VK_ACCESS_TRANSFER_WRITE_BIT = 0x00001000, - VK_ACCESS_HOST_READ_BIT = 0x00002000, - VK_ACCESS_HOST_WRITE_BIT = 0x00004000, - VK_ACCESS_MEMORY_READ_BIT = 0x00008000, - VK_ACCESS_MEMORY_WRITE_BIT = 0x00010000, - VK_ACCESS_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkAccessFlagBits; -typedef VkFlags VkAccessFlags; - -typedef enum VkDependencyFlagBits { - VK_DEPENDENCY_BY_REGION_BIT = 0x00000001, - VK_DEPENDENCY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkDependencyFlagBits; -typedef VkFlags VkDependencyFlags; - -typedef enum VkCommandPoolCreateFlagBits { - VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001, - VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002, - VK_COMMAND_POOL_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCommandPoolCreateFlagBits; -typedef VkFlags VkCommandPoolCreateFlags; - -typedef enum VkCommandPoolResetFlagBits { - VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001, - VK_COMMAND_POOL_RESET_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCommandPoolResetFlagBits; -typedef VkFlags VkCommandPoolResetFlags; - -typedef enum VkCommandBufferUsageFlagBits { - VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001, - VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002, - VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004, - VK_COMMAND_BUFFER_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCommandBufferUsageFlagBits; -typedef VkFlags VkCommandBufferUsageFlags; - -typedef enum VkQueryControlFlagBits { - VK_QUERY_CONTROL_PRECISE_BIT = 0x00000001, - VK_QUERY_CONTROL_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkQueryControlFlagBits; -typedef VkFlags VkQueryControlFlags; - -typedef enum VkCommandBufferResetFlagBits { - VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001, - VK_COMMAND_BUFFER_RESET_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCommandBufferResetFlagBits; -typedef VkFlags VkCommandBufferResetFlags; - -typedef enum VkStencilFaceFlagBits { - VK_STENCIL_FACE_FRONT_BIT = 0x00000001, - VK_STENCIL_FACE_BACK_BIT = 0x00000002, - VK_STENCIL_FRONT_AND_BACK = 0x00000003, - VK_STENCIL_FACE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkStencilFaceFlagBits; -typedef VkFlags VkStencilFaceFlags; - -typedef void* (VKAPI_PTR *PFN_vkAllocationFunction)( - void* pUserData, - size_t size, - size_t alignment, - VkSystemAllocationScope allocationScope); - -typedef void* (VKAPI_PTR *PFN_vkReallocationFunction)( - void* pUserData, - void* pOriginal, - size_t size, - size_t alignment, - VkSystemAllocationScope allocationScope); - -typedef void (VKAPI_PTR *PFN_vkFreeFunction)( - void* pUserData, - void* pMemory); - -typedef void (VKAPI_PTR *PFN_vkInternalAllocationNotification)( - void* pUserData, - size_t size, - VkInternalAllocationType allocationType, - VkSystemAllocationScope allocationScope); - -typedef void (VKAPI_PTR *PFN_vkInternalFreeNotification)( - void* pUserData, - size_t size, - VkInternalAllocationType allocationType, - VkSystemAllocationScope allocationScope); - -typedef void (VKAPI_PTR *PFN_vkVoidFunction)(void); - -typedef struct VkApplicationInfo { - VkStructureType sType; - const void* pNext; - const char* pApplicationName; - uint32_t applicationVersion; - const char* pEngineName; - uint32_t engineVersion; - uint32_t apiVersion; -} VkApplicationInfo; - -typedef struct VkInstanceCreateInfo { - VkStructureType sType; - const void* pNext; - VkInstanceCreateFlags flags; - const VkApplicationInfo* pApplicationInfo; - uint32_t enabledLayerCount; - const char* const* ppEnabledLayerNames; - uint32_t enabledExtensionCount; - const char* const* ppEnabledExtensionNames; -} VkInstanceCreateInfo; - -typedef struct VkAllocationCallbacks { - void* pUserData; - PFN_vkAllocationFunction pfnAllocation; - PFN_vkReallocationFunction pfnReallocation; - PFN_vkFreeFunction pfnFree; - PFN_vkInternalAllocationNotification pfnInternalAllocation; - PFN_vkInternalFreeNotification pfnInternalFree; -} VkAllocationCallbacks; - -typedef struct VkPhysicalDeviceFeatures { - VkBool32 robustBufferAccess; - VkBool32 fullDrawIndexUint32; - VkBool32 imageCubeArray; - VkBool32 independentBlend; - VkBool32 geometryShader; - VkBool32 tessellationShader; - VkBool32 sampleRateShading; - VkBool32 dualSrcBlend; - VkBool32 logicOp; - VkBool32 multiDrawIndirect; - VkBool32 drawIndirectFirstInstance; - VkBool32 depthClamp; - VkBool32 depthBiasClamp; - VkBool32 fillModeNonSolid; - VkBool32 depthBounds; - VkBool32 wideLines; - VkBool32 largePoints; - VkBool32 alphaToOne; - VkBool32 multiViewport; - VkBool32 samplerAnisotropy; - VkBool32 textureCompressionETC2; - VkBool32 textureCompressionASTC_LDR; - VkBool32 textureCompressionBC; - VkBool32 occlusionQueryPrecise; - VkBool32 pipelineStatisticsQuery; - VkBool32 vertexPipelineStoresAndAtomics; - VkBool32 fragmentStoresAndAtomics; - VkBool32 shaderTessellationAndGeometryPointSize; - VkBool32 shaderImageGatherExtended; - VkBool32 shaderStorageImageExtendedFormats; - VkBool32 shaderStorageImageMultisample; - VkBool32 shaderStorageImageReadWithoutFormat; - VkBool32 shaderStorageImageWriteWithoutFormat; - VkBool32 shaderUniformBufferArrayDynamicIndexing; - VkBool32 shaderSampledImageArrayDynamicIndexing; - VkBool32 shaderStorageBufferArrayDynamicIndexing; - VkBool32 shaderStorageImageArrayDynamicIndexing; - VkBool32 shaderClipDistance; - VkBool32 shaderCullDistance; - VkBool32 shaderFloat64; - VkBool32 shaderInt64; - VkBool32 shaderInt16; - VkBool32 shaderResourceResidency; - VkBool32 shaderResourceMinLod; - VkBool32 sparseBinding; - VkBool32 sparseResidencyBuffer; - VkBool32 sparseResidencyImage2D; - VkBool32 sparseResidencyImage3D; - VkBool32 sparseResidency2Samples; - VkBool32 sparseResidency4Samples; - VkBool32 sparseResidency8Samples; - VkBool32 sparseResidency16Samples; - VkBool32 sparseResidencyAliased; - VkBool32 variableMultisampleRate; - VkBool32 inheritedQueries; -} VkPhysicalDeviceFeatures; - -typedef struct VkFormatProperties { - VkFormatFeatureFlags linearTilingFeatures; - VkFormatFeatureFlags optimalTilingFeatures; - VkFormatFeatureFlags bufferFeatures; -} VkFormatProperties; - -typedef struct VkExtent3D { - uint32_t width; - uint32_t height; - uint32_t depth; -} VkExtent3D; - -typedef struct VkImageFormatProperties { - VkExtent3D maxExtent; - uint32_t maxMipLevels; - uint32_t maxArrayLayers; - VkSampleCountFlags sampleCounts; - VkDeviceSize maxResourceSize; -} VkImageFormatProperties; - -typedef struct VkPhysicalDeviceLimits { - uint32_t maxImageDimension1D; - uint32_t maxImageDimension2D; - uint32_t maxImageDimension3D; - uint32_t maxImageDimensionCube; - uint32_t maxImageArrayLayers; - uint32_t maxTexelBufferElements; - uint32_t maxUniformBufferRange; - uint32_t maxStorageBufferRange; - uint32_t maxPushConstantsSize; - uint32_t maxMemoryAllocationCount; - uint32_t maxSamplerAllocationCount; - VkDeviceSize bufferImageGranularity; - VkDeviceSize sparseAddressSpaceSize; - uint32_t maxBoundDescriptorSets; - uint32_t maxPerStageDescriptorSamplers; - uint32_t maxPerStageDescriptorUniformBuffers; - uint32_t maxPerStageDescriptorStorageBuffers; - uint32_t maxPerStageDescriptorSampledImages; - uint32_t maxPerStageDescriptorStorageImages; - uint32_t maxPerStageDescriptorInputAttachments; - uint32_t maxPerStageResources; - uint32_t maxDescriptorSetSamplers; - uint32_t maxDescriptorSetUniformBuffers; - uint32_t maxDescriptorSetUniformBuffersDynamic; - uint32_t maxDescriptorSetStorageBuffers; - uint32_t maxDescriptorSetStorageBuffersDynamic; - uint32_t maxDescriptorSetSampledImages; - uint32_t maxDescriptorSetStorageImages; - uint32_t maxDescriptorSetInputAttachments; - uint32_t maxVertexInputAttributes; - uint32_t maxVertexInputBindings; - uint32_t maxVertexInputAttributeOffset; - uint32_t maxVertexInputBindingStride; - uint32_t maxVertexOutputComponents; - uint32_t maxTessellationGenerationLevel; - uint32_t maxTessellationPatchSize; - uint32_t maxTessellationControlPerVertexInputComponents; - uint32_t maxTessellationControlPerVertexOutputComponents; - uint32_t maxTessellationControlPerPatchOutputComponents; - uint32_t maxTessellationControlTotalOutputComponents; - uint32_t maxTessellationEvaluationInputComponents; - uint32_t maxTessellationEvaluationOutputComponents; - uint32_t maxGeometryShaderInvocations; - uint32_t maxGeometryInputComponents; - uint32_t maxGeometryOutputComponents; - uint32_t maxGeometryOutputVertices; - uint32_t maxGeometryTotalOutputComponents; - uint32_t maxFragmentInputComponents; - uint32_t maxFragmentOutputAttachments; - uint32_t maxFragmentDualSrcAttachments; - uint32_t maxFragmentCombinedOutputResources; - uint32_t maxComputeSharedMemorySize; - uint32_t maxComputeWorkGroupCount[3]; - uint32_t maxComputeWorkGroupInvocations; - uint32_t maxComputeWorkGroupSize[3]; - uint32_t subPixelPrecisionBits; - uint32_t subTexelPrecisionBits; - uint32_t mipmapPrecisionBits; - uint32_t maxDrawIndexedIndexValue; - uint32_t maxDrawIndirectCount; - float maxSamplerLodBias; - float maxSamplerAnisotropy; - uint32_t maxViewports; - uint32_t maxViewportDimensions[2]; - float viewportBoundsRange[2]; - uint32_t viewportSubPixelBits; - size_t minMemoryMapAlignment; - VkDeviceSize minTexelBufferOffsetAlignment; - VkDeviceSize minUniformBufferOffsetAlignment; - VkDeviceSize minStorageBufferOffsetAlignment; - int32_t minTexelOffset; - uint32_t maxTexelOffset; - int32_t minTexelGatherOffset; - uint32_t maxTexelGatherOffset; - float minInterpolationOffset; - float maxInterpolationOffset; - uint32_t subPixelInterpolationOffsetBits; - uint32_t maxFramebufferWidth; - uint32_t maxFramebufferHeight; - uint32_t maxFramebufferLayers; - VkSampleCountFlags framebufferColorSampleCounts; - VkSampleCountFlags framebufferDepthSampleCounts; - VkSampleCountFlags framebufferStencilSampleCounts; - VkSampleCountFlags framebufferNoAttachmentsSampleCounts; - uint32_t maxColorAttachments; - VkSampleCountFlags sampledImageColorSampleCounts; - VkSampleCountFlags sampledImageIntegerSampleCounts; - VkSampleCountFlags sampledImageDepthSampleCounts; - VkSampleCountFlags sampledImageStencilSampleCounts; - VkSampleCountFlags storageImageSampleCounts; - uint32_t maxSampleMaskWords; - VkBool32 timestampComputeAndGraphics; - float timestampPeriod; - uint32_t maxClipDistances; - uint32_t maxCullDistances; - uint32_t maxCombinedClipAndCullDistances; - uint32_t discreteQueuePriorities; - float pointSizeRange[2]; - float lineWidthRange[2]; - float pointSizeGranularity; - float lineWidthGranularity; - VkBool32 strictLines; - VkBool32 standardSampleLocations; - VkDeviceSize optimalBufferCopyOffsetAlignment; - VkDeviceSize optimalBufferCopyRowPitchAlignment; - VkDeviceSize nonCoherentAtomSize; -} VkPhysicalDeviceLimits; - -typedef struct VkPhysicalDeviceSparseProperties { - VkBool32 residencyStandard2DBlockShape; - VkBool32 residencyStandard2DMultisampleBlockShape; - VkBool32 residencyStandard3DBlockShape; - VkBool32 residencyAlignedMipSize; - VkBool32 residencyNonResidentStrict; -} VkPhysicalDeviceSparseProperties; - -typedef struct VkPhysicalDeviceProperties { - uint32_t apiVersion; - uint32_t driverVersion; - uint32_t vendorID; - uint32_t deviceID; - VkPhysicalDeviceType deviceType; - char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]; - uint8_t pipelineCacheUUID[VK_UUID_SIZE]; - VkPhysicalDeviceLimits limits; - VkPhysicalDeviceSparseProperties sparseProperties; -} VkPhysicalDeviceProperties; - -typedef struct VkQueueFamilyProperties { - VkQueueFlags queueFlags; - uint32_t queueCount; - uint32_t timestampValidBits; - VkExtent3D minImageTransferGranularity; -} VkQueueFamilyProperties; - -typedef struct VkMemoryType { - VkMemoryPropertyFlags propertyFlags; - uint32_t heapIndex; -} VkMemoryType; - -typedef struct VkMemoryHeap { - VkDeviceSize size; - VkMemoryHeapFlags flags; -} VkMemoryHeap; - -typedef struct VkPhysicalDeviceMemoryProperties { - uint32_t memoryTypeCount; - VkMemoryType memoryTypes[VK_MAX_MEMORY_TYPES]; - uint32_t memoryHeapCount; - VkMemoryHeap memoryHeaps[VK_MAX_MEMORY_HEAPS]; -} VkPhysicalDeviceMemoryProperties; - -typedef struct VkDeviceQueueCreateInfo { - VkStructureType sType; - const void* pNext; - VkDeviceQueueCreateFlags flags; - uint32_t queueFamilyIndex; - uint32_t queueCount; - const float* pQueuePriorities; -} VkDeviceQueueCreateInfo; - -typedef struct VkDeviceCreateInfo { - VkStructureType sType; - const void* pNext; - VkDeviceCreateFlags flags; - uint32_t queueCreateInfoCount; - const VkDeviceQueueCreateInfo* pQueueCreateInfos; - uint32_t enabledLayerCount; - const char* const* ppEnabledLayerNames; - uint32_t enabledExtensionCount; - const char* const* ppEnabledExtensionNames; - const VkPhysicalDeviceFeatures* pEnabledFeatures; -} VkDeviceCreateInfo; - -typedef struct VkExtensionProperties { - char extensionName[VK_MAX_EXTENSION_NAME_SIZE]; - uint32_t specVersion; -} VkExtensionProperties; - -typedef struct VkLayerProperties { - char layerName[VK_MAX_EXTENSION_NAME_SIZE]; - uint32_t specVersion; - uint32_t implementationVersion; - char description[VK_MAX_DESCRIPTION_SIZE]; -} VkLayerProperties; - -typedef struct VkSubmitInfo { - VkStructureType sType; - const void* pNext; - uint32_t waitSemaphoreCount; - const VkSemaphore* pWaitSemaphores; - const VkPipelineStageFlags* pWaitDstStageMask; - uint32_t commandBufferCount; - const VkCommandBuffer* pCommandBuffers; - uint32_t signalSemaphoreCount; - const VkSemaphore* pSignalSemaphores; -} VkSubmitInfo; - -typedef struct VkMemoryAllocateInfo { - VkStructureType sType; - const void* pNext; - VkDeviceSize allocationSize; - uint32_t memoryTypeIndex; -} VkMemoryAllocateInfo; - -typedef struct VkMappedMemoryRange { - VkStructureType sType; - const void* pNext; - VkDeviceMemory memory; - VkDeviceSize offset; - VkDeviceSize size; -} VkMappedMemoryRange; - -typedef struct VkMemoryRequirements { - VkDeviceSize size; - VkDeviceSize alignment; - uint32_t memoryTypeBits; -} VkMemoryRequirements; - -typedef struct VkSparseImageFormatProperties { - VkImageAspectFlags aspectMask; - VkExtent3D imageGranularity; - VkSparseImageFormatFlags flags; -} VkSparseImageFormatProperties; - -typedef struct VkSparseImageMemoryRequirements { - VkSparseImageFormatProperties formatProperties; - uint32_t imageMipTailFirstLod; - VkDeviceSize imageMipTailSize; - VkDeviceSize imageMipTailOffset; - VkDeviceSize imageMipTailStride; -} VkSparseImageMemoryRequirements; - -typedef struct VkSparseMemoryBind { - VkDeviceSize resourceOffset; - VkDeviceSize size; - VkDeviceMemory memory; - VkDeviceSize memoryOffset; - VkSparseMemoryBindFlags flags; -} VkSparseMemoryBind; - -typedef struct VkSparseBufferMemoryBindInfo { - VkBuffer buffer; - uint32_t bindCount; - const VkSparseMemoryBind* pBinds; -} VkSparseBufferMemoryBindInfo; - -typedef struct VkSparseImageOpaqueMemoryBindInfo { - VkImage image; - uint32_t bindCount; - const VkSparseMemoryBind* pBinds; -} VkSparseImageOpaqueMemoryBindInfo; - -typedef struct VkImageSubresource { - VkImageAspectFlags aspectMask; - uint32_t mipLevel; - uint32_t arrayLayer; -} VkImageSubresource; - -typedef struct VkOffset3D { - int32_t x; - int32_t y; - int32_t z; -} VkOffset3D; - -typedef struct VkSparseImageMemoryBind { - VkImageSubresource subresource; - VkOffset3D offset; - VkExtent3D extent; - VkDeviceMemory memory; - VkDeviceSize memoryOffset; - VkSparseMemoryBindFlags flags; -} VkSparseImageMemoryBind; - -typedef struct VkSparseImageMemoryBindInfo { - VkImage image; - uint32_t bindCount; - const VkSparseImageMemoryBind* pBinds; -} VkSparseImageMemoryBindInfo; - -typedef struct VkBindSparseInfo { - VkStructureType sType; - const void* pNext; - uint32_t waitSemaphoreCount; - const VkSemaphore* pWaitSemaphores; - uint32_t bufferBindCount; - const VkSparseBufferMemoryBindInfo* pBufferBinds; - uint32_t imageOpaqueBindCount; - const VkSparseImageOpaqueMemoryBindInfo* pImageOpaqueBinds; - uint32_t imageBindCount; - const VkSparseImageMemoryBindInfo* pImageBinds; - uint32_t signalSemaphoreCount; - const VkSemaphore* pSignalSemaphores; -} VkBindSparseInfo; - -typedef struct VkFenceCreateInfo { - VkStructureType sType; - const void* pNext; - VkFenceCreateFlags flags; -} VkFenceCreateInfo; - -typedef struct VkSemaphoreCreateInfo { - VkStructureType sType; - const void* pNext; - VkSemaphoreCreateFlags flags; -} VkSemaphoreCreateInfo; - -typedef struct VkEventCreateInfo { - VkStructureType sType; - const void* pNext; - VkEventCreateFlags flags; -} VkEventCreateInfo; - -typedef struct VkQueryPoolCreateInfo { - VkStructureType sType; - const void* pNext; - VkQueryPoolCreateFlags flags; - VkQueryType queryType; - uint32_t queryCount; - VkQueryPipelineStatisticFlags pipelineStatistics; -} VkQueryPoolCreateInfo; - -typedef struct VkBufferCreateInfo { - VkStructureType sType; - const void* pNext; - VkBufferCreateFlags flags; - VkDeviceSize size; - VkBufferUsageFlags usage; - VkSharingMode sharingMode; - uint32_t queueFamilyIndexCount; - const uint32_t* pQueueFamilyIndices; -} VkBufferCreateInfo; - -typedef struct VkBufferViewCreateInfo { - VkStructureType sType; - const void* pNext; - VkBufferViewCreateFlags flags; - VkBuffer buffer; - VkFormat format; - VkDeviceSize offset; - VkDeviceSize range; -} VkBufferViewCreateInfo; - -typedef struct VkImageCreateInfo { - VkStructureType sType; - const void* pNext; - VkImageCreateFlags flags; - VkImageType imageType; - VkFormat format; - VkExtent3D extent; - uint32_t mipLevels; - uint32_t arrayLayers; - VkSampleCountFlagBits samples; - VkImageTiling tiling; - VkImageUsageFlags usage; - VkSharingMode sharingMode; - uint32_t queueFamilyIndexCount; - const uint32_t* pQueueFamilyIndices; - VkImageLayout initialLayout; -} VkImageCreateInfo; - -typedef struct VkSubresourceLayout { - VkDeviceSize offset; - VkDeviceSize size; - VkDeviceSize rowPitch; - VkDeviceSize arrayPitch; - VkDeviceSize depthPitch; -} VkSubresourceLayout; - -typedef struct VkComponentMapping { - VkComponentSwizzle r; - VkComponentSwizzle g; - VkComponentSwizzle b; - VkComponentSwizzle a; -} VkComponentMapping; - -typedef struct VkImageSubresourceRange { - VkImageAspectFlags aspectMask; - uint32_t baseMipLevel; - uint32_t levelCount; - uint32_t baseArrayLayer; - uint32_t layerCount; -} VkImageSubresourceRange; - -typedef struct VkImageViewCreateInfo { - VkStructureType sType; - const void* pNext; - VkImageViewCreateFlags flags; - VkImage image; - VkImageViewType viewType; - VkFormat format; - VkComponentMapping components; - VkImageSubresourceRange subresourceRange; -} VkImageViewCreateInfo; - -typedef struct VkShaderModuleCreateInfo { - VkStructureType sType; - const void* pNext; - VkShaderModuleCreateFlags flags; - size_t codeSize; - const uint32_t* pCode; -} VkShaderModuleCreateInfo; - -typedef struct VkPipelineCacheCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineCacheCreateFlags flags; - size_t initialDataSize; - const void* pInitialData; -} VkPipelineCacheCreateInfo; - -typedef struct VkSpecializationMapEntry { - uint32_t constantID; - uint32_t offset; - size_t size; -} VkSpecializationMapEntry; - -typedef struct VkSpecializationInfo { - uint32_t mapEntryCount; - const VkSpecializationMapEntry* pMapEntries; - size_t dataSize; - const void* pData; -} VkSpecializationInfo; - -typedef struct VkPipelineShaderStageCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineShaderStageCreateFlags flags; - VkShaderStageFlagBits stage; - VkShaderModule module; - const char* pName; - const VkSpecializationInfo* pSpecializationInfo; -} VkPipelineShaderStageCreateInfo; - -typedef struct VkVertexInputBindingDescription { - uint32_t binding; - uint32_t stride; - VkVertexInputRate inputRate; -} VkVertexInputBindingDescription; - -typedef struct VkVertexInputAttributeDescription { - uint32_t location; - uint32_t binding; - VkFormat format; - uint32_t offset; -} VkVertexInputAttributeDescription; - -typedef struct VkPipelineVertexInputStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineVertexInputStateCreateFlags flags; - uint32_t vertexBindingDescriptionCount; - const VkVertexInputBindingDescription* pVertexBindingDescriptions; - uint32_t vertexAttributeDescriptionCount; - const VkVertexInputAttributeDescription* pVertexAttributeDescriptions; -} VkPipelineVertexInputStateCreateInfo; - -typedef struct VkPipelineInputAssemblyStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineInputAssemblyStateCreateFlags flags; - VkPrimitiveTopology topology; - VkBool32 primitiveRestartEnable; -} VkPipelineInputAssemblyStateCreateInfo; - -typedef struct VkPipelineTessellationStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineTessellationStateCreateFlags flags; - uint32_t patchControlPoints; -} VkPipelineTessellationStateCreateInfo; - -typedef struct VkViewport { - float x; - float y; - float width; - float height; - float minDepth; - float maxDepth; -} VkViewport; - -typedef struct VkOffset2D { - int32_t x; - int32_t y; -} VkOffset2D; - -typedef struct VkExtent2D { - uint32_t width; - uint32_t height; -} VkExtent2D; - -typedef struct VkRect2D { - VkOffset2D offset; - VkExtent2D extent; -} VkRect2D; - -typedef struct VkPipelineViewportStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineViewportStateCreateFlags flags; - uint32_t viewportCount; - const VkViewport* pViewports; - uint32_t scissorCount; - const VkRect2D* pScissors; -} VkPipelineViewportStateCreateInfo; - -typedef struct VkPipelineRasterizationStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineRasterizationStateCreateFlags flags; - VkBool32 depthClampEnable; - VkBool32 rasterizerDiscardEnable; - VkPolygonMode polygonMode; - VkCullModeFlags cullMode; - VkFrontFace frontFace; - VkBool32 depthBiasEnable; - float depthBiasConstantFactor; - float depthBiasClamp; - float depthBiasSlopeFactor; - float lineWidth; -} VkPipelineRasterizationStateCreateInfo; - -typedef struct VkPipelineMultisampleStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineMultisampleStateCreateFlags flags; - VkSampleCountFlagBits rasterizationSamples; - VkBool32 sampleShadingEnable; - float minSampleShading; - const VkSampleMask* pSampleMask; - VkBool32 alphaToCoverageEnable; - VkBool32 alphaToOneEnable; -} VkPipelineMultisampleStateCreateInfo; - -typedef struct VkStencilOpState { - VkStencilOp failOp; - VkStencilOp passOp; - VkStencilOp depthFailOp; - VkCompareOp compareOp; - uint32_t compareMask; - uint32_t writeMask; - uint32_t reference; -} VkStencilOpState; - -typedef struct VkPipelineDepthStencilStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineDepthStencilStateCreateFlags flags; - VkBool32 depthTestEnable; - VkBool32 depthWriteEnable; - VkCompareOp depthCompareOp; - VkBool32 depthBoundsTestEnable; - VkBool32 stencilTestEnable; - VkStencilOpState front; - VkStencilOpState back; - float minDepthBounds; - float maxDepthBounds; -} VkPipelineDepthStencilStateCreateInfo; - -typedef struct VkPipelineColorBlendAttachmentState { - VkBool32 blendEnable; - VkBlendFactor srcColorBlendFactor; - VkBlendFactor dstColorBlendFactor; - VkBlendOp colorBlendOp; - VkBlendFactor srcAlphaBlendFactor; - VkBlendFactor dstAlphaBlendFactor; - VkBlendOp alphaBlendOp; - VkColorComponentFlags colorWriteMask; -} VkPipelineColorBlendAttachmentState; - -typedef struct VkPipelineColorBlendStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineColorBlendStateCreateFlags flags; - VkBool32 logicOpEnable; - VkLogicOp logicOp; - uint32_t attachmentCount; - const VkPipelineColorBlendAttachmentState* pAttachments; - float blendConstants[4]; -} VkPipelineColorBlendStateCreateInfo; - -typedef struct VkPipelineDynamicStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineDynamicStateCreateFlags flags; - uint32_t dynamicStateCount; - const VkDynamicState* pDynamicStates; -} VkPipelineDynamicStateCreateInfo; - -typedef struct VkGraphicsPipelineCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineCreateFlags flags; - uint32_t stageCount; - const VkPipelineShaderStageCreateInfo* pStages; - const VkPipelineVertexInputStateCreateInfo* pVertexInputState; - const VkPipelineInputAssemblyStateCreateInfo* pInputAssemblyState; - const VkPipelineTessellationStateCreateInfo* pTessellationState; - const VkPipelineViewportStateCreateInfo* pViewportState; - const VkPipelineRasterizationStateCreateInfo* pRasterizationState; - const VkPipelineMultisampleStateCreateInfo* pMultisampleState; - const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState; - const VkPipelineColorBlendStateCreateInfo* pColorBlendState; - const VkPipelineDynamicStateCreateInfo* pDynamicState; - VkPipelineLayout layout; - VkRenderPass renderPass; - uint32_t subpass; - VkPipeline basePipelineHandle; - int32_t basePipelineIndex; -} VkGraphicsPipelineCreateInfo; - -typedef struct VkComputePipelineCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineCreateFlags flags; - VkPipelineShaderStageCreateInfo stage; - VkPipelineLayout layout; - VkPipeline basePipelineHandle; - int32_t basePipelineIndex; -} VkComputePipelineCreateInfo; - -typedef struct VkPushConstantRange { - VkShaderStageFlags stageFlags; - uint32_t offset; - uint32_t size; -} VkPushConstantRange; - -typedef struct VkPipelineLayoutCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineLayoutCreateFlags flags; - uint32_t setLayoutCount; - const VkDescriptorSetLayout* pSetLayouts; - uint32_t pushConstantRangeCount; - const VkPushConstantRange* pPushConstantRanges; -} VkPipelineLayoutCreateInfo; - -typedef struct VkSamplerCreateInfo { - VkStructureType sType; - const void* pNext; - VkSamplerCreateFlags flags; - VkFilter magFilter; - VkFilter minFilter; - VkSamplerMipmapMode mipmapMode; - VkSamplerAddressMode addressModeU; - VkSamplerAddressMode addressModeV; - VkSamplerAddressMode addressModeW; - float mipLodBias; - VkBool32 anisotropyEnable; - float maxAnisotropy; - VkBool32 compareEnable; - VkCompareOp compareOp; - float minLod; - float maxLod; - VkBorderColor borderColor; - VkBool32 unnormalizedCoordinates; -} VkSamplerCreateInfo; - -typedef struct VkDescriptorSetLayoutBinding { - uint32_t binding; - VkDescriptorType descriptorType; - uint32_t descriptorCount; - VkShaderStageFlags stageFlags; - const VkSampler* pImmutableSamplers; -} VkDescriptorSetLayoutBinding; - -typedef struct VkDescriptorSetLayoutCreateInfo { - VkStructureType sType; - const void* pNext; - VkDescriptorSetLayoutCreateFlags flags; - uint32_t bindingCount; - const VkDescriptorSetLayoutBinding* pBindings; -} VkDescriptorSetLayoutCreateInfo; - -typedef struct VkDescriptorPoolSize { - VkDescriptorType type; - uint32_t descriptorCount; -} VkDescriptorPoolSize; - -typedef struct VkDescriptorPoolCreateInfo { - VkStructureType sType; - const void* pNext; - VkDescriptorPoolCreateFlags flags; - uint32_t maxSets; - uint32_t poolSizeCount; - const VkDescriptorPoolSize* pPoolSizes; -} VkDescriptorPoolCreateInfo; - -typedef struct VkDescriptorSetAllocateInfo { - VkStructureType sType; - const void* pNext; - VkDescriptorPool descriptorPool; - uint32_t descriptorSetCount; - const VkDescriptorSetLayout* pSetLayouts; -} VkDescriptorSetAllocateInfo; - -typedef struct VkDescriptorImageInfo { - VkSampler sampler; - VkImageView imageView; - VkImageLayout imageLayout; -} VkDescriptorImageInfo; - -typedef struct VkDescriptorBufferInfo { - VkBuffer buffer; - VkDeviceSize offset; - VkDeviceSize range; -} VkDescriptorBufferInfo; - -typedef struct VkWriteDescriptorSet { - VkStructureType sType; - const void* pNext; - VkDescriptorSet dstSet; - uint32_t dstBinding; - uint32_t dstArrayElement; - uint32_t descriptorCount; - VkDescriptorType descriptorType; - const VkDescriptorImageInfo* pImageInfo; - const VkDescriptorBufferInfo* pBufferInfo; - const VkBufferView* pTexelBufferView; -} VkWriteDescriptorSet; - -typedef struct VkCopyDescriptorSet { - VkStructureType sType; - const void* pNext; - VkDescriptorSet srcSet; - uint32_t srcBinding; - uint32_t srcArrayElement; - VkDescriptorSet dstSet; - uint32_t dstBinding; - uint32_t dstArrayElement; - uint32_t descriptorCount; -} VkCopyDescriptorSet; - -typedef struct VkFramebufferCreateInfo { - VkStructureType sType; - const void* pNext; - VkFramebufferCreateFlags flags; - VkRenderPass renderPass; - uint32_t attachmentCount; - const VkImageView* pAttachments; - uint32_t width; - uint32_t height; - uint32_t layers; -} VkFramebufferCreateInfo; - -typedef struct VkAttachmentDescription { - VkAttachmentDescriptionFlags flags; - VkFormat format; - VkSampleCountFlagBits samples; - VkAttachmentLoadOp loadOp; - VkAttachmentStoreOp storeOp; - VkAttachmentLoadOp stencilLoadOp; - VkAttachmentStoreOp stencilStoreOp; - VkImageLayout initialLayout; - VkImageLayout finalLayout; -} VkAttachmentDescription; - -typedef struct VkAttachmentReference { - uint32_t attachment; - VkImageLayout layout; -} VkAttachmentReference; - -typedef struct VkSubpassDescription { - VkSubpassDescriptionFlags flags; - VkPipelineBindPoint pipelineBindPoint; - uint32_t inputAttachmentCount; - const VkAttachmentReference* pInputAttachments; - uint32_t colorAttachmentCount; - const VkAttachmentReference* pColorAttachments; - const VkAttachmentReference* pResolveAttachments; - const VkAttachmentReference* pDepthStencilAttachment; - uint32_t preserveAttachmentCount; - const uint32_t* pPreserveAttachments; -} VkSubpassDescription; - -typedef struct VkSubpassDependency { - uint32_t srcSubpass; - uint32_t dstSubpass; - VkPipelineStageFlags srcStageMask; - VkPipelineStageFlags dstStageMask; - VkAccessFlags srcAccessMask; - VkAccessFlags dstAccessMask; - VkDependencyFlags dependencyFlags; -} VkSubpassDependency; - -typedef struct VkRenderPassCreateInfo { - VkStructureType sType; - const void* pNext; - VkRenderPassCreateFlags flags; - uint32_t attachmentCount; - const VkAttachmentDescription* pAttachments; - uint32_t subpassCount; - const VkSubpassDescription* pSubpasses; - uint32_t dependencyCount; - const VkSubpassDependency* pDependencies; -} VkRenderPassCreateInfo; - -typedef struct VkCommandPoolCreateInfo { - VkStructureType sType; - const void* pNext; - VkCommandPoolCreateFlags flags; - uint32_t queueFamilyIndex; -} VkCommandPoolCreateInfo; - -typedef struct VkCommandBufferAllocateInfo { - VkStructureType sType; - const void* pNext; - VkCommandPool commandPool; - VkCommandBufferLevel level; - uint32_t commandBufferCount; -} VkCommandBufferAllocateInfo; - -typedef struct VkCommandBufferInheritanceInfo { - VkStructureType sType; - const void* pNext; - VkRenderPass renderPass; - uint32_t subpass; - VkFramebuffer framebuffer; - VkBool32 occlusionQueryEnable; - VkQueryControlFlags queryFlags; - VkQueryPipelineStatisticFlags pipelineStatistics; -} VkCommandBufferInheritanceInfo; - -typedef struct VkCommandBufferBeginInfo { - VkStructureType sType; - const void* pNext; - VkCommandBufferUsageFlags flags; - const VkCommandBufferInheritanceInfo* pInheritanceInfo; -} VkCommandBufferBeginInfo; - -typedef struct VkBufferCopy { - VkDeviceSize srcOffset; - VkDeviceSize dstOffset; - VkDeviceSize size; -} VkBufferCopy; - -typedef struct VkImageSubresourceLayers { - VkImageAspectFlags aspectMask; - uint32_t mipLevel; - uint32_t baseArrayLayer; - uint32_t layerCount; -} VkImageSubresourceLayers; - -typedef struct VkImageCopy { - VkImageSubresourceLayers srcSubresource; - VkOffset3D srcOffset; - VkImageSubresourceLayers dstSubresource; - VkOffset3D dstOffset; - VkExtent3D extent; -} VkImageCopy; - -typedef struct VkImageBlit { - VkImageSubresourceLayers srcSubresource; - VkOffset3D srcOffsets[2]; - VkImageSubresourceLayers dstSubresource; - VkOffset3D dstOffsets[2]; -} VkImageBlit; - -typedef struct VkBufferImageCopy { - VkDeviceSize bufferOffset; - uint32_t bufferRowLength; - uint32_t bufferImageHeight; - VkImageSubresourceLayers imageSubresource; - VkOffset3D imageOffset; - VkExtent3D imageExtent; -} VkBufferImageCopy; - -typedef union VkClearColorValue { - float float32[4]; - int32_t int32[4]; - uint32_t uint32[4]; -} VkClearColorValue; - -typedef struct VkClearDepthStencilValue { - float depth; - uint32_t stencil; -} VkClearDepthStencilValue; - -typedef union VkClearValue { - VkClearColorValue color; - VkClearDepthStencilValue depthStencil; -} VkClearValue; - -typedef struct VkClearAttachment { - VkImageAspectFlags aspectMask; - uint32_t colorAttachment; - VkClearValue clearValue; -} VkClearAttachment; - -typedef struct VkClearRect { - VkRect2D rect; - uint32_t baseArrayLayer; - uint32_t layerCount; -} VkClearRect; - -typedef struct VkImageResolve { - VkImageSubresourceLayers srcSubresource; - VkOffset3D srcOffset; - VkImageSubresourceLayers dstSubresource; - VkOffset3D dstOffset; - VkExtent3D extent; -} VkImageResolve; - -typedef struct VkMemoryBarrier { - VkStructureType sType; - const void* pNext; - VkAccessFlags srcAccessMask; - VkAccessFlags dstAccessMask; -} VkMemoryBarrier; - -typedef struct VkBufferMemoryBarrier { - VkStructureType sType; - const void* pNext; - VkAccessFlags srcAccessMask; - VkAccessFlags dstAccessMask; - uint32_t srcQueueFamilyIndex; - uint32_t dstQueueFamilyIndex; - VkBuffer buffer; - VkDeviceSize offset; - VkDeviceSize size; -} VkBufferMemoryBarrier; - -typedef struct VkImageMemoryBarrier { - VkStructureType sType; - const void* pNext; - VkAccessFlags srcAccessMask; - VkAccessFlags dstAccessMask; - VkImageLayout oldLayout; - VkImageLayout newLayout; - uint32_t srcQueueFamilyIndex; - uint32_t dstQueueFamilyIndex; - VkImage image; - VkImageSubresourceRange subresourceRange; -} VkImageMemoryBarrier; - -typedef struct VkRenderPassBeginInfo { - VkStructureType sType; - const void* pNext; - VkRenderPass renderPass; - VkFramebuffer framebuffer; - VkRect2D renderArea; - uint32_t clearValueCount; - const VkClearValue* pClearValues; -} VkRenderPassBeginInfo; - -typedef struct VkDispatchIndirectCommand { - uint32_t x; - uint32_t y; - uint32_t z; -} VkDispatchIndirectCommand; - -typedef struct VkDrawIndexedIndirectCommand { - uint32_t indexCount; - uint32_t instanceCount; - uint32_t firstIndex; - int32_t vertexOffset; - uint32_t firstInstance; -} VkDrawIndexedIndirectCommand; - -typedef struct VkDrawIndirectCommand { - uint32_t vertexCount; - uint32_t instanceCount; - uint32_t firstVertex; - uint32_t firstInstance; -} VkDrawIndirectCommand; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance); -typedef void (VKAPI_PTR *PFN_vkDestroyInstance)(VkInstance instance, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties); -typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char* pName); -typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetDeviceProcAddr)(VkDevice device, const char* pName); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice); -typedef void (VKAPI_PTR *PFN_vkDestroyDevice)(VkDevice device, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceExtensionProperties)(const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceLayerProperties)(uint32_t* pPropertyCount, VkLayerProperties* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkLayerProperties* pProperties); -typedef void (VKAPI_PTR *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue); -typedef VkResult (VKAPI_PTR *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence); -typedef VkResult (VKAPI_PTR *PFN_vkQueueWaitIdle)(VkQueue queue); -typedef VkResult (VKAPI_PTR *PFN_vkDeviceWaitIdle)(VkDevice device); -typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory); -typedef void (VKAPI_PTR *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData); -typedef void (VKAPI_PTR *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory memory); -typedef VkResult (VKAPI_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges); -typedef VkResult (VKAPI_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges); -typedef void (VKAPI_PTR *PFN_vkGetDeviceMemoryCommitment)(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes); -typedef VkResult (VKAPI_PTR *PFN_vkBindBufferMemory)(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset); -typedef VkResult (VKAPI_PTR *PFN_vkBindImageMemory)(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset); -typedef void (VKAPI_PTR *PFN_vkGetBufferMemoryRequirements)(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements); -typedef void (VKAPI_PTR *PFN_vkGetImageMemoryRequirements)(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements); -typedef void (VKAPI_PTR *PFN_vkGetImageSparseMemoryRequirements)(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkQueueBindSparse)(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence); -typedef VkResult (VKAPI_PTR *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence); -typedef void (VKAPI_PTR *PFN_vkDestroyFence)(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences); -typedef VkResult (VKAPI_PTR *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); -typedef VkResult (VKAPI_PTR *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout); -typedef VkResult (VKAPI_PTR *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore); -typedef void (VKAPI_PTR *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent); -typedef void (VKAPI_PTR *PFN_vkDestroyEvent)(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetEventStatus)(VkDevice device, VkEvent event); -typedef VkResult (VKAPI_PTR *PFN_vkSetEvent)(VkDevice device, VkEvent event); -typedef VkResult (VKAPI_PTR *PFN_vkResetEvent)(VkDevice device, VkEvent event); -typedef VkResult (VKAPI_PTR *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool); -typedef void (VKAPI_PTR *PFN_vkDestroyQueryPool)(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags); -typedef VkResult (VKAPI_PTR *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer); -typedef void (VKAPI_PTR *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView); -typedef void (VKAPI_PTR *PFN_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage); -typedef void (VKAPI_PTR *PFN_vkDestroyImage)(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator); -typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout); -typedef VkResult (VKAPI_PTR *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView); -typedef void (VKAPI_PTR *PFN_vkDestroyImageView)(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule); -typedef void (VKAPI_PTR *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineCache)(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache); -typedef void (VKAPI_PTR *PFN_vkDestroyPipelineCache)(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetPipelineCacheData)(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData); -typedef VkResult (VKAPI_PTR *PFN_vkMergePipelineCaches)(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches); -typedef VkResult (VKAPI_PTR *PFN_vkCreateGraphicsPipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines); -typedef VkResult (VKAPI_PTR *PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines); -typedef void (VKAPI_PTR *PFN_vkDestroyPipeline)(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout); -typedef void (VKAPI_PTR *PFN_vkDestroyPipelineLayout)(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler); -typedef void (VKAPI_PTR *PFN_vkDestroySampler)(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout); -typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorSetLayout)(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorPool)(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool); -typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags); -typedef VkResult (VKAPI_PTR *PFN_vkAllocateDescriptorSets)(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets); -typedef VkResult (VKAPI_PTR *PFN_vkFreeDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets); -typedef void (VKAPI_PTR *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies); -typedef VkResult (VKAPI_PTR *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer); -typedef void (VKAPI_PTR *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass); -typedef void (VKAPI_PTR *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator); -typedef void (VKAPI_PTR *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity); -typedef VkResult (VKAPI_PTR *PFN_vkCreateCommandPool)(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool); -typedef void (VKAPI_PTR *PFN_vkDestroyCommandPool)(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkResetCommandPool)(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags); -typedef VkResult (VKAPI_PTR *PFN_vkAllocateCommandBuffers)(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers); -typedef void (VKAPI_PTR *PFN_vkFreeCommandBuffers)(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers); -typedef VkResult (VKAPI_PTR *PFN_vkBeginCommandBuffer)(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo); -typedef VkResult (VKAPI_PTR *PFN_vkEndCommandBuffer)(VkCommandBuffer commandBuffer); -typedef VkResult (VKAPI_PTR *PFN_vkResetCommandBuffer)(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags); -typedef void (VKAPI_PTR *PFN_vkCmdBindPipeline)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); -typedef void (VKAPI_PTR *PFN_vkCmdSetViewport)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports); -typedef void (VKAPI_PTR *PFN_vkCmdSetScissor)(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors); -typedef void (VKAPI_PTR *PFN_vkCmdSetLineWidth)(VkCommandBuffer commandBuffer, float lineWidth); -typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBias)(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor); -typedef void (VKAPI_PTR *PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants[4]); -typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBounds)(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds); -typedef void (VKAPI_PTR *PFN_vkCmdSetStencilCompareMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask); -typedef void (VKAPI_PTR *PFN_vkCmdSetStencilWriteMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask); -typedef void (VKAPI_PTR *PFN_vkCmdSetStencilReference)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference); -typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorSets)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets); -typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType); -typedef void (VKAPI_PTR *PFN_vkCmdBindVertexBuffers)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets); -typedef void (VKAPI_PTR *PFN_vkCmdDraw)(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance); -typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexed)(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance); -typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); -typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); -typedef void (VKAPI_PTR *PFN_vkCmdDispatch)(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z); -typedef void (VKAPI_PTR *PFN_vkCmdDispatchIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset); -typedef void (VKAPI_PTR *PFN_vkCmdCopyBuffer)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdCopyImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdBlitImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter); -typedef void (VKAPI_PTR *PFN_vkCmdCopyBufferToImage)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdCopyImageToBuffer)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdUpdateBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const uint32_t* pData); -typedef void (VKAPI_PTR *PFN_vkCmdFillBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data); -typedef void (VKAPI_PTR *PFN_vkCmdClearColorImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); -typedef void (VKAPI_PTR *PFN_vkCmdClearDepthStencilImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); -typedef void (VKAPI_PTR *PFN_vkCmdClearAttachments)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects); -typedef void (VKAPI_PTR *PFN_vkCmdResolveImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdSetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); -typedef void (VKAPI_PTR *PFN_vkCmdResetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); -typedef void (VKAPI_PTR *PFN_vkCmdWaitEvents)(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers); -typedef void (VKAPI_PTR *PFN_vkCmdPipelineBarrier)(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers); -typedef void (VKAPI_PTR *PFN_vkCmdBeginQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags); -typedef void (VKAPI_PTR *PFN_vkCmdEndQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query); -typedef void (VKAPI_PTR *PFN_vkCmdResetQueryPool)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount); -typedef void (VKAPI_PTR *PFN_vkCmdWriteTimestamp)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query); -typedef void (VKAPI_PTR *PFN_vkCmdCopyQueryPoolResults)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags); -typedef void (VKAPI_PTR *PFN_vkCmdPushConstants)(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues); -typedef void (VKAPI_PTR *PFN_vkCmdBeginRenderPass)(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents); -typedef void (VKAPI_PTR *PFN_vkCmdNextSubpass)(VkCommandBuffer commandBuffer, VkSubpassContents contents); -typedef void (VKAPI_PTR *PFN_vkCmdEndRenderPass)(VkCommandBuffer commandBuffer); -typedef void (VKAPI_PTR *PFN_vkCmdExecuteCommands)(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateInstance( - const VkInstanceCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkInstance* pInstance); - -VKAPI_ATTR void VKAPI_CALL vkDestroyInstance( - VkInstance instance, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumeratePhysicalDevices( - VkInstance instance, - uint32_t* pPhysicalDeviceCount, - VkPhysicalDevice* pPhysicalDevices); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceFeatures* pFeatures); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties( - VkPhysicalDevice physicalDevice, - VkFormat format, - VkFormatProperties* pFormatProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties( - VkPhysicalDevice physicalDevice, - VkFormat format, - VkImageType type, - VkImageTiling tiling, - VkImageUsageFlags usage, - VkImageCreateFlags flags, - VkImageFormatProperties* pImageFormatProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceProperties* pProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties( - VkPhysicalDevice physicalDevice, - uint32_t* pQueueFamilyPropertyCount, - VkQueueFamilyProperties* pQueueFamilyProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceMemoryProperties* pMemoryProperties); - -VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr( - VkInstance instance, - const char* pName); - -VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr( - VkDevice device, - const char* pName); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDevice( - VkPhysicalDevice physicalDevice, - const VkDeviceCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDevice* pDevice); - -VKAPI_ATTR void VKAPI_CALL vkDestroyDevice( - VkDevice device, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceExtensionProperties( - const char* pLayerName, - uint32_t* pPropertyCount, - VkExtensionProperties* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceExtensionProperties( - VkPhysicalDevice physicalDevice, - const char* pLayerName, - uint32_t* pPropertyCount, - VkExtensionProperties* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties( - uint32_t* pPropertyCount, - VkLayerProperties* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceLayerProperties( - VkPhysicalDevice physicalDevice, - uint32_t* pPropertyCount, - VkLayerProperties* pProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetDeviceQueue( - VkDevice device, - uint32_t queueFamilyIndex, - uint32_t queueIndex, - VkQueue* pQueue); - -VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit( - VkQueue queue, - uint32_t submitCount, - const VkSubmitInfo* pSubmits, - VkFence fence); - -VKAPI_ATTR VkResult VKAPI_CALL vkQueueWaitIdle( - VkQueue queue); - -VKAPI_ATTR VkResult VKAPI_CALL vkDeviceWaitIdle( - VkDevice device); - -VKAPI_ATTR VkResult VKAPI_CALL vkAllocateMemory( - VkDevice device, - const VkMemoryAllocateInfo* pAllocateInfo, - const VkAllocationCallbacks* pAllocator, - VkDeviceMemory* pMemory); - -VKAPI_ATTR void VKAPI_CALL vkFreeMemory( - VkDevice device, - VkDeviceMemory memory, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkMapMemory( - VkDevice device, - VkDeviceMemory memory, - VkDeviceSize offset, - VkDeviceSize size, - VkMemoryMapFlags flags, - void** ppData); - -VKAPI_ATTR void VKAPI_CALL vkUnmapMemory( - VkDevice device, - VkDeviceMemory memory); - -VKAPI_ATTR VkResult VKAPI_CALL vkFlushMappedMemoryRanges( - VkDevice device, - uint32_t memoryRangeCount, - const VkMappedMemoryRange* pMemoryRanges); - -VKAPI_ATTR VkResult VKAPI_CALL vkInvalidateMappedMemoryRanges( - VkDevice device, - uint32_t memoryRangeCount, - const VkMappedMemoryRange* pMemoryRanges); - -VKAPI_ATTR void VKAPI_CALL vkGetDeviceMemoryCommitment( - VkDevice device, - VkDeviceMemory memory, - VkDeviceSize* pCommittedMemoryInBytes); - -VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory( - VkDevice device, - VkBuffer buffer, - VkDeviceMemory memory, - VkDeviceSize memoryOffset); - -VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory( - VkDevice device, - VkImage image, - VkDeviceMemory memory, - VkDeviceSize memoryOffset); - -VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements( - VkDevice device, - VkBuffer buffer, - VkMemoryRequirements* pMemoryRequirements); - -VKAPI_ATTR void VKAPI_CALL vkGetImageMemoryRequirements( - VkDevice device, - VkImage image, - VkMemoryRequirements* pMemoryRequirements); - -VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements( - VkDevice device, - VkImage image, - uint32_t* pSparseMemoryRequirementCount, - VkSparseImageMemoryRequirements* pSparseMemoryRequirements); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties( - VkPhysicalDevice physicalDevice, - VkFormat format, - VkImageType type, - VkSampleCountFlagBits samples, - VkImageUsageFlags usage, - VkImageTiling tiling, - uint32_t* pPropertyCount, - VkSparseImageFormatProperties* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkQueueBindSparse( - VkQueue queue, - uint32_t bindInfoCount, - const VkBindSparseInfo* pBindInfo, - VkFence fence); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateFence( - VkDevice device, - const VkFenceCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkFence* pFence); - -VKAPI_ATTR void VKAPI_CALL vkDestroyFence( - VkDevice device, - VkFence fence, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetFences( - VkDevice device, - uint32_t fenceCount, - const VkFence* pFences); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceStatus( - VkDevice device, - VkFence fence); - -VKAPI_ATTR VkResult VKAPI_CALL vkWaitForFences( - VkDevice device, - uint32_t fenceCount, - const VkFence* pFences, - VkBool32 waitAll, - uint64_t timeout); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateSemaphore( - VkDevice device, - const VkSemaphoreCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSemaphore* pSemaphore); - -VKAPI_ATTR void VKAPI_CALL vkDestroySemaphore( - VkDevice device, - VkSemaphore semaphore, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateEvent( - VkDevice device, - const VkEventCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkEvent* pEvent); - -VKAPI_ATTR void VKAPI_CALL vkDestroyEvent( - VkDevice device, - VkEvent event, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetEventStatus( - VkDevice device, - VkEvent event); - -VKAPI_ATTR VkResult VKAPI_CALL vkSetEvent( - VkDevice device, - VkEvent event); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetEvent( - VkDevice device, - VkEvent event); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateQueryPool( - VkDevice device, - const VkQueryPoolCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkQueryPool* pQueryPool); - -VKAPI_ATTR void VKAPI_CALL vkDestroyQueryPool( - VkDevice device, - VkQueryPool queryPool, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetQueryPoolResults( - VkDevice device, - VkQueryPool queryPool, - uint32_t firstQuery, - uint32_t queryCount, - size_t dataSize, - void* pData, - VkDeviceSize stride, - VkQueryResultFlags flags); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateBuffer( - VkDevice device, - const VkBufferCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkBuffer* pBuffer); - -VKAPI_ATTR void VKAPI_CALL vkDestroyBuffer( - VkDevice device, - VkBuffer buffer, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateBufferView( - VkDevice device, - const VkBufferViewCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkBufferView* pView); - -VKAPI_ATTR void VKAPI_CALL vkDestroyBufferView( - VkDevice device, - VkBufferView bufferView, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateImage( - VkDevice device, - const VkImageCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkImage* pImage); - -VKAPI_ATTR void VKAPI_CALL vkDestroyImage( - VkDevice device, - VkImage image, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout( - VkDevice device, - VkImage image, - const VkImageSubresource* pSubresource, - VkSubresourceLayout* pLayout); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView( - VkDevice device, - const VkImageViewCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkImageView* pView); - -VKAPI_ATTR void VKAPI_CALL vkDestroyImageView( - VkDevice device, - VkImageView imageView, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateShaderModule( - VkDevice device, - const VkShaderModuleCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkShaderModule* pShaderModule); - -VKAPI_ATTR void VKAPI_CALL vkDestroyShaderModule( - VkDevice device, - VkShaderModule shaderModule, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineCache( - VkDevice device, - const VkPipelineCacheCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkPipelineCache* pPipelineCache); - -VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineCache( - VkDevice device, - VkPipelineCache pipelineCache, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineCacheData( - VkDevice device, - VkPipelineCache pipelineCache, - size_t* pDataSize, - void* pData); - -VKAPI_ATTR VkResult VKAPI_CALL vkMergePipelineCaches( - VkDevice device, - VkPipelineCache dstCache, - uint32_t srcCacheCount, - const VkPipelineCache* pSrcCaches); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateGraphicsPipelines( - VkDevice device, - VkPipelineCache pipelineCache, - uint32_t createInfoCount, - const VkGraphicsPipelineCreateInfo* pCreateInfos, - const VkAllocationCallbacks* pAllocator, - VkPipeline* pPipelines); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateComputePipelines( - VkDevice device, - VkPipelineCache pipelineCache, - uint32_t createInfoCount, - const VkComputePipelineCreateInfo* pCreateInfos, - const VkAllocationCallbacks* pAllocator, - VkPipeline* pPipelines); - -VKAPI_ATTR void VKAPI_CALL vkDestroyPipeline( - VkDevice device, - VkPipeline pipeline, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineLayout( - VkDevice device, - const VkPipelineLayoutCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkPipelineLayout* pPipelineLayout); - -VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineLayout( - VkDevice device, - VkPipelineLayout pipelineLayout, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateSampler( - VkDevice device, - const VkSamplerCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSampler* pSampler); - -VKAPI_ATTR void VKAPI_CALL vkDestroySampler( - VkDevice device, - VkSampler sampler, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorSetLayout( - VkDevice device, - const VkDescriptorSetLayoutCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDescriptorSetLayout* pSetLayout); - -VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorSetLayout( - VkDevice device, - VkDescriptorSetLayout descriptorSetLayout, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorPool( - VkDevice device, - const VkDescriptorPoolCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDescriptorPool* pDescriptorPool); - -VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorPool( - VkDevice device, - VkDescriptorPool descriptorPool, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetDescriptorPool( - VkDevice device, - VkDescriptorPool descriptorPool, - VkDescriptorPoolResetFlags flags); - -VKAPI_ATTR VkResult VKAPI_CALL vkAllocateDescriptorSets( - VkDevice device, - const VkDescriptorSetAllocateInfo* pAllocateInfo, - VkDescriptorSet* pDescriptorSets); - -VKAPI_ATTR VkResult VKAPI_CALL vkFreeDescriptorSets( - VkDevice device, - VkDescriptorPool descriptorPool, - uint32_t descriptorSetCount, - const VkDescriptorSet* pDescriptorSets); - -VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets( - VkDevice device, - uint32_t descriptorWriteCount, - const VkWriteDescriptorSet* pDescriptorWrites, - uint32_t descriptorCopyCount, - const VkCopyDescriptorSet* pDescriptorCopies); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateFramebuffer( - VkDevice device, - const VkFramebufferCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkFramebuffer* pFramebuffer); - -VKAPI_ATTR void VKAPI_CALL vkDestroyFramebuffer( - VkDevice device, - VkFramebuffer framebuffer, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateRenderPass( - VkDevice device, - const VkRenderPassCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkRenderPass* pRenderPass); - -VKAPI_ATTR void VKAPI_CALL vkDestroyRenderPass( - VkDevice device, - VkRenderPass renderPass, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR void VKAPI_CALL vkGetRenderAreaGranularity( - VkDevice device, - VkRenderPass renderPass, - VkExtent2D* pGranularity); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateCommandPool( - VkDevice device, - const VkCommandPoolCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkCommandPool* pCommandPool); - -VKAPI_ATTR void VKAPI_CALL vkDestroyCommandPool( - VkDevice device, - VkCommandPool commandPool, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandPool( - VkDevice device, - VkCommandPool commandPool, - VkCommandPoolResetFlags flags); - -VKAPI_ATTR VkResult VKAPI_CALL vkAllocateCommandBuffers( - VkDevice device, - const VkCommandBufferAllocateInfo* pAllocateInfo, - VkCommandBuffer* pCommandBuffers); - -VKAPI_ATTR void VKAPI_CALL vkFreeCommandBuffers( - VkDevice device, - VkCommandPool commandPool, - uint32_t commandBufferCount, - const VkCommandBuffer* pCommandBuffers); - -VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer( - VkCommandBuffer commandBuffer, - const VkCommandBufferBeginInfo* pBeginInfo); - -VKAPI_ATTR VkResult VKAPI_CALL vkEndCommandBuffer( - VkCommandBuffer commandBuffer); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandBuffer( - VkCommandBuffer commandBuffer, - VkCommandBufferResetFlags flags); - -VKAPI_ATTR void VKAPI_CALL vkCmdBindPipeline( - VkCommandBuffer commandBuffer, - VkPipelineBindPoint pipelineBindPoint, - VkPipeline pipeline); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetViewport( - VkCommandBuffer commandBuffer, - uint32_t firstViewport, - uint32_t viewportCount, - const VkViewport* pViewports); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetScissor( - VkCommandBuffer commandBuffer, - uint32_t firstScissor, - uint32_t scissorCount, - const VkRect2D* pScissors); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetLineWidth( - VkCommandBuffer commandBuffer, - float lineWidth); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBias( - VkCommandBuffer commandBuffer, - float depthBiasConstantFactor, - float depthBiasClamp, - float depthBiasSlopeFactor); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetBlendConstants( - VkCommandBuffer commandBuffer, - const float blendConstants[4]); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBounds( - VkCommandBuffer commandBuffer, - float minDepthBounds, - float maxDepthBounds); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilCompareMask( - VkCommandBuffer commandBuffer, - VkStencilFaceFlags faceMask, - uint32_t compareMask); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilWriteMask( - VkCommandBuffer commandBuffer, - VkStencilFaceFlags faceMask, - uint32_t writeMask); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilReference( - VkCommandBuffer commandBuffer, - VkStencilFaceFlags faceMask, - uint32_t reference); - -VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorSets( - VkCommandBuffer commandBuffer, - VkPipelineBindPoint pipelineBindPoint, - VkPipelineLayout layout, - uint32_t firstSet, - uint32_t descriptorSetCount, - const VkDescriptorSet* pDescriptorSets, - uint32_t dynamicOffsetCount, - const uint32_t* pDynamicOffsets); - -VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset, - VkIndexType indexType); - -VKAPI_ATTR void VKAPI_CALL vkCmdBindVertexBuffers( - VkCommandBuffer commandBuffer, - uint32_t firstBinding, - uint32_t bindingCount, - const VkBuffer* pBuffers, - const VkDeviceSize* pOffsets); - -VKAPI_ATTR void VKAPI_CALL vkCmdDraw( - VkCommandBuffer commandBuffer, - uint32_t vertexCount, - uint32_t instanceCount, - uint32_t firstVertex, - uint32_t firstInstance); - -VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexed( - VkCommandBuffer commandBuffer, - uint32_t indexCount, - uint32_t instanceCount, - uint32_t firstIndex, - int32_t vertexOffset, - uint32_t firstInstance); - -VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirect( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset, - uint32_t drawCount, - uint32_t stride); - -VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirect( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset, - uint32_t drawCount, - uint32_t stride); - -VKAPI_ATTR void VKAPI_CALL vkCmdDispatch( - VkCommandBuffer commandBuffer, - uint32_t x, - uint32_t y, - uint32_t z); - -VKAPI_ATTR void VKAPI_CALL vkCmdDispatchIndirect( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer( - VkCommandBuffer commandBuffer, - VkBuffer srcBuffer, - VkBuffer dstBuffer, - uint32_t regionCount, - const VkBufferCopy* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyImage( - VkCommandBuffer commandBuffer, - VkImage srcImage, - VkImageLayout srcImageLayout, - VkImage dstImage, - VkImageLayout dstImageLayout, - uint32_t regionCount, - const VkImageCopy* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdBlitImage( - VkCommandBuffer commandBuffer, - VkImage srcImage, - VkImageLayout srcImageLayout, - VkImage dstImage, - VkImageLayout dstImageLayout, - uint32_t regionCount, - const VkImageBlit* pRegions, - VkFilter filter); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyBufferToImage( - VkCommandBuffer commandBuffer, - VkBuffer srcBuffer, - VkImage dstImage, - VkImageLayout dstImageLayout, - uint32_t regionCount, - const VkBufferImageCopy* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyImageToBuffer( - VkCommandBuffer commandBuffer, - VkImage srcImage, - VkImageLayout srcImageLayout, - VkBuffer dstBuffer, - uint32_t regionCount, - const VkBufferImageCopy* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdUpdateBuffer( - VkCommandBuffer commandBuffer, - VkBuffer dstBuffer, - VkDeviceSize dstOffset, - VkDeviceSize dataSize, - const uint32_t* pData); - -VKAPI_ATTR void VKAPI_CALL vkCmdFillBuffer( - VkCommandBuffer commandBuffer, - VkBuffer dstBuffer, - VkDeviceSize dstOffset, - VkDeviceSize size, - uint32_t data); - -VKAPI_ATTR void VKAPI_CALL vkCmdClearColorImage( - VkCommandBuffer commandBuffer, - VkImage image, - VkImageLayout imageLayout, - const VkClearColorValue* pColor, - uint32_t rangeCount, - const VkImageSubresourceRange* pRanges); - -VKAPI_ATTR void VKAPI_CALL vkCmdClearDepthStencilImage( - VkCommandBuffer commandBuffer, - VkImage image, - VkImageLayout imageLayout, - const VkClearDepthStencilValue* pDepthStencil, - uint32_t rangeCount, - const VkImageSubresourceRange* pRanges); - -VKAPI_ATTR void VKAPI_CALL vkCmdClearAttachments( - VkCommandBuffer commandBuffer, - uint32_t attachmentCount, - const VkClearAttachment* pAttachments, - uint32_t rectCount, - const VkClearRect* pRects); - -VKAPI_ATTR void VKAPI_CALL vkCmdResolveImage( - VkCommandBuffer commandBuffer, - VkImage srcImage, - VkImageLayout srcImageLayout, - VkImage dstImage, - VkImageLayout dstImageLayout, - uint32_t regionCount, - const VkImageResolve* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetEvent( - VkCommandBuffer commandBuffer, - VkEvent event, - VkPipelineStageFlags stageMask); - -VKAPI_ATTR void VKAPI_CALL vkCmdResetEvent( - VkCommandBuffer commandBuffer, - VkEvent event, - VkPipelineStageFlags stageMask); - -VKAPI_ATTR void VKAPI_CALL vkCmdWaitEvents( - VkCommandBuffer commandBuffer, - uint32_t eventCount, - const VkEvent* pEvents, - VkPipelineStageFlags srcStageMask, - VkPipelineStageFlags dstStageMask, - uint32_t memoryBarrierCount, - const VkMemoryBarrier* pMemoryBarriers, - uint32_t bufferMemoryBarrierCount, - const VkBufferMemoryBarrier* pBufferMemoryBarriers, - uint32_t imageMemoryBarrierCount, - const VkImageMemoryBarrier* pImageMemoryBarriers); - -VKAPI_ATTR void VKAPI_CALL vkCmdPipelineBarrier( - VkCommandBuffer commandBuffer, - VkPipelineStageFlags srcStageMask, - VkPipelineStageFlags dstStageMask, - VkDependencyFlags dependencyFlags, - uint32_t memoryBarrierCount, - const VkMemoryBarrier* pMemoryBarriers, - uint32_t bufferMemoryBarrierCount, - const VkBufferMemoryBarrier* pBufferMemoryBarriers, - uint32_t imageMemoryBarrierCount, - const VkImageMemoryBarrier* pImageMemoryBarriers); - -VKAPI_ATTR void VKAPI_CALL vkCmdBeginQuery( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t query, - VkQueryControlFlags flags); - -VKAPI_ATTR void VKAPI_CALL vkCmdEndQuery( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t query); - -VKAPI_ATTR void VKAPI_CALL vkCmdResetQueryPool( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t firstQuery, - uint32_t queryCount); - -VKAPI_ATTR void VKAPI_CALL vkCmdWriteTimestamp( - VkCommandBuffer commandBuffer, - VkPipelineStageFlagBits pipelineStage, - VkQueryPool queryPool, - uint32_t query); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyQueryPoolResults( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t firstQuery, - uint32_t queryCount, - VkBuffer dstBuffer, - VkDeviceSize dstOffset, - VkDeviceSize stride, - VkQueryResultFlags flags); - -VKAPI_ATTR void VKAPI_CALL vkCmdPushConstants( - VkCommandBuffer commandBuffer, - VkPipelineLayout layout, - VkShaderStageFlags stageFlags, - uint32_t offset, - uint32_t size, - const void* pValues); - -VKAPI_ATTR void VKAPI_CALL vkCmdBeginRenderPass( - VkCommandBuffer commandBuffer, - const VkRenderPassBeginInfo* pRenderPassBegin, - VkSubpassContents contents); - -VKAPI_ATTR void VKAPI_CALL vkCmdNextSubpass( - VkCommandBuffer commandBuffer, - VkSubpassContents contents); - -VKAPI_ATTR void VKAPI_CALL vkCmdEndRenderPass( - VkCommandBuffer commandBuffer); - -VKAPI_ATTR void VKAPI_CALL vkCmdExecuteCommands( - VkCommandBuffer commandBuffer, - uint32_t commandBufferCount, - const VkCommandBuffer* pCommandBuffers); -#endif - -#define VK_KHR_surface 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR) - -#define VK_KHR_SURFACE_SPEC_VERSION 25 -#define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface" - - -typedef enum VkColorSpaceKHR { - VK_COLORSPACE_SRGB_NONLINEAR_KHR = 0, - VK_COLOR_SPACE_BEGIN_RANGE_KHR = VK_COLORSPACE_SRGB_NONLINEAR_KHR, - VK_COLOR_SPACE_END_RANGE_KHR = VK_COLORSPACE_SRGB_NONLINEAR_KHR, - VK_COLOR_SPACE_RANGE_SIZE_KHR = (VK_COLORSPACE_SRGB_NONLINEAR_KHR - VK_COLORSPACE_SRGB_NONLINEAR_KHR + 1), - VK_COLOR_SPACE_MAX_ENUM_KHR = 0x7FFFFFFF -} VkColorSpaceKHR; - -typedef enum VkPresentModeKHR { - VK_PRESENT_MODE_IMMEDIATE_KHR = 0, - VK_PRESENT_MODE_MAILBOX_KHR = 1, - VK_PRESENT_MODE_FIFO_KHR = 2, - VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3, - VK_PRESENT_MODE_BEGIN_RANGE_KHR = VK_PRESENT_MODE_IMMEDIATE_KHR, - VK_PRESENT_MODE_END_RANGE_KHR = VK_PRESENT_MODE_FIFO_RELAXED_KHR, - VK_PRESENT_MODE_RANGE_SIZE_KHR = (VK_PRESENT_MODE_FIFO_RELAXED_KHR - VK_PRESENT_MODE_IMMEDIATE_KHR + 1), - VK_PRESENT_MODE_MAX_ENUM_KHR = 0x7FFFFFFF -} VkPresentModeKHR; - - -typedef enum VkSurfaceTransformFlagBitsKHR { - VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001, - VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002, - VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004, - VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008, - VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010, - VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020, - VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040, - VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080, - VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100, - VK_SURFACE_TRANSFORM_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF -} VkSurfaceTransformFlagBitsKHR; -typedef VkFlags VkSurfaceTransformFlagsKHR; - -typedef enum VkCompositeAlphaFlagBitsKHR { - VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001, - VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002, - VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004, - VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008, - VK_COMPOSITE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF -} VkCompositeAlphaFlagBitsKHR; -typedef VkFlags VkCompositeAlphaFlagsKHR; - -typedef struct VkSurfaceCapabilitiesKHR { - uint32_t minImageCount; - uint32_t maxImageCount; - VkExtent2D currentExtent; - VkExtent2D minImageExtent; - VkExtent2D maxImageExtent; - uint32_t maxImageArrayLayers; - VkSurfaceTransformFlagsKHR supportedTransforms; - VkSurfaceTransformFlagBitsKHR currentTransform; - VkCompositeAlphaFlagsKHR supportedCompositeAlpha; - VkImageUsageFlags supportedUsageFlags; -} VkSurfaceCapabilitiesKHR; - -typedef struct VkSurfaceFormatKHR { - VkFormat format; - VkColorSpaceKHR colorSpace; -} VkSurfaceFormatKHR; - - -typedef void (VKAPI_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR( - VkInstance instance, - VkSurfaceKHR surface, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - VkSurfaceKHR surface, - VkBool32* pSupported); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR( - VkPhysicalDevice physicalDevice, - VkSurfaceKHR surface, - VkSurfaceCapabilitiesKHR* pSurfaceCapabilities); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR( - VkPhysicalDevice physicalDevice, - VkSurfaceKHR surface, - uint32_t* pSurfaceFormatCount, - VkSurfaceFormatKHR* pSurfaceFormats); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR( - VkPhysicalDevice physicalDevice, - VkSurfaceKHR surface, - uint32_t* pPresentModeCount, - VkPresentModeKHR* pPresentModes); -#endif - -#define VK_KHR_swapchain 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR) - -#define VK_KHR_SWAPCHAIN_SPEC_VERSION 68 -#define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain" - -typedef VkFlags VkSwapchainCreateFlagsKHR; - -typedef struct VkSwapchainCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkSwapchainCreateFlagsKHR flags; - VkSurfaceKHR surface; - uint32_t minImageCount; - VkFormat imageFormat; - VkColorSpaceKHR imageColorSpace; - VkExtent2D imageExtent; - uint32_t imageArrayLayers; - VkImageUsageFlags imageUsage; - VkSharingMode imageSharingMode; - uint32_t queueFamilyIndexCount; - const uint32_t* pQueueFamilyIndices; - VkSurfaceTransformFlagBitsKHR preTransform; - VkCompositeAlphaFlagBitsKHR compositeAlpha; - VkPresentModeKHR presentMode; - VkBool32 clipped; - VkSwapchainKHR oldSwapchain; -} VkSwapchainCreateInfoKHR; - -typedef struct VkPresentInfoKHR { - VkStructureType sType; - const void* pNext; - uint32_t waitSemaphoreCount; - const VkSemaphore* pWaitSemaphores; - uint32_t swapchainCount; - const VkSwapchainKHR* pSwapchains; - const uint32_t* pImageIndices; - VkResult* pResults; -} VkPresentInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain); -typedef void (VKAPI_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages); -typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex); -typedef VkResult (VKAPI_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR* pPresentInfo); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR( - VkDevice device, - const VkSwapchainCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSwapchainKHR* pSwapchain); - -VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR( - VkDevice device, - VkSwapchainKHR swapchain, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR( - VkDevice device, - VkSwapchainKHR swapchain, - uint32_t* pSwapchainImageCount, - VkImage* pSwapchainImages); - -VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR( - VkDevice device, - VkSwapchainKHR swapchain, - uint64_t timeout, - VkSemaphore semaphore, - VkFence fence, - uint32_t* pImageIndex); - -VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR( - VkQueue queue, - const VkPresentInfoKHR* pPresentInfo); -#endif - -#define VK_KHR_display 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayKHR) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayModeKHR) - -#define VK_KHR_DISPLAY_SPEC_VERSION 21 -#define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display" - - -typedef enum VkDisplayPlaneAlphaFlagBitsKHR { - VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001, - VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002, - VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004, - VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008, - VK_DISPLAY_PLANE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF -} VkDisplayPlaneAlphaFlagBitsKHR; -typedef VkFlags VkDisplayPlaneAlphaFlagsKHR; -typedef VkFlags VkDisplayModeCreateFlagsKHR; -typedef VkFlags VkDisplaySurfaceCreateFlagsKHR; - -typedef struct VkDisplayPropertiesKHR { - VkDisplayKHR display; - const char* displayName; - VkExtent2D physicalDimensions; - VkExtent2D physicalResolution; - VkSurfaceTransformFlagsKHR supportedTransforms; - VkBool32 planeReorderPossible; - VkBool32 persistentContent; -} VkDisplayPropertiesKHR; - -typedef struct VkDisplayModeParametersKHR { - VkExtent2D visibleRegion; - uint32_t refreshRate; -} VkDisplayModeParametersKHR; - -typedef struct VkDisplayModePropertiesKHR { - VkDisplayModeKHR displayMode; - VkDisplayModeParametersKHR parameters; -} VkDisplayModePropertiesKHR; - -typedef struct VkDisplayModeCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkDisplayModeCreateFlagsKHR flags; - VkDisplayModeParametersKHR parameters; -} VkDisplayModeCreateInfoKHR; - -typedef struct VkDisplayPlaneCapabilitiesKHR { - VkDisplayPlaneAlphaFlagsKHR supportedAlpha; - VkOffset2D minSrcPosition; - VkOffset2D maxSrcPosition; - VkExtent2D minSrcExtent; - VkExtent2D maxSrcExtent; - VkOffset2D minDstPosition; - VkOffset2D maxDstPosition; - VkExtent2D minDstExtent; - VkExtent2D maxDstExtent; -} VkDisplayPlaneCapabilitiesKHR; - -typedef struct VkDisplayPlanePropertiesKHR { - VkDisplayKHR currentDisplay; - uint32_t currentStackIndex; -} VkDisplayPlanePropertiesKHR; - -typedef struct VkDisplaySurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkDisplaySurfaceCreateFlagsKHR flags; - VkDisplayModeKHR displayMode; - uint32_t planeIndex; - uint32_t planeStackIndex; - VkSurfaceTransformFlagBitsKHR transform; - float globalAlpha; - VkDisplayPlaneAlphaFlagBitsKHR alphaMode; - VkExtent2D imageExtent; -} VkDisplaySurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneSupportedDisplaysKHR)(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays); -typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayModePropertiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayModeKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode); -typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayPlaneSurfaceKHR)(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR( - VkPhysicalDevice physicalDevice, - uint32_t* pPropertyCount, - VkDisplayPropertiesKHR* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR( - VkPhysicalDevice physicalDevice, - uint32_t* pPropertyCount, - VkDisplayPlanePropertiesKHR* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR( - VkPhysicalDevice physicalDevice, - uint32_t planeIndex, - uint32_t* pDisplayCount, - VkDisplayKHR* pDisplays); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR( - VkPhysicalDevice physicalDevice, - VkDisplayKHR display, - uint32_t* pPropertyCount, - VkDisplayModePropertiesKHR* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayModeKHR( - VkPhysicalDevice physicalDevice, - VkDisplayKHR display, - const VkDisplayModeCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDisplayModeKHR* pMode); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR( - VkPhysicalDevice physicalDevice, - VkDisplayModeKHR mode, - uint32_t planeIndex, - VkDisplayPlaneCapabilitiesKHR* pCapabilities); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR( - VkInstance instance, - const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); -#endif - -#define VK_KHR_display_swapchain 1 -#define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 9 -#define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain" - -typedef struct VkDisplayPresentInfoKHR { - VkStructureType sType; - const void* pNext; - VkRect2D srcRect; - VkRect2D dstRect; - VkBool32 persistent; -} VkDisplayPresentInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR( - VkDevice device, - uint32_t swapchainCount, - const VkSwapchainCreateInfoKHR* pCreateInfos, - const VkAllocationCallbacks* pAllocator, - VkSwapchainKHR* pSwapchains); -#endif - -#ifdef VK_USE_PLATFORM_XLIB_KHR -#define VK_KHR_xlib_surface 1 -#include - -#define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6 -#define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface" - -typedef VkFlags VkXlibSurfaceCreateFlagsKHR; - -typedef struct VkXlibSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkXlibSurfaceCreateFlagsKHR flags; - Display* dpy; - Window window; -} VkXlibSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateXlibSurfaceKHR)(VkInstance instance, const VkXlibSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, Display* dpy, VisualID visualID); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateXlibSurfaceKHR( - VkInstance instance, - const VkXlibSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXlibPresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - Display* dpy, - VisualID visualID); -#endif -#endif /* VK_USE_PLATFORM_XLIB_KHR */ - -#ifdef VK_USE_PLATFORM_XCB_KHR -#define VK_KHR_xcb_surface 1 -#include - -#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6 -#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface" - -typedef VkFlags VkXcbSurfaceCreateFlagsKHR; - -typedef struct VkXcbSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkXcbSurfaceCreateFlagsKHR flags; - xcb_connection_t* connection; - xcb_window_t window; -} VkXcbSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR( - VkInstance instance, - const VkXcbSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXcbPresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - xcb_connection_t* connection, - xcb_visualid_t visual_id); -#endif -#endif /* VK_USE_PLATFORM_XCB_KHR */ - -#ifdef VK_USE_PLATFORM_WAYLAND_KHR -#define VK_KHR_wayland_surface 1 -#include - -#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 5 -#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface" - -typedef VkFlags VkWaylandSurfaceCreateFlagsKHR; - -typedef struct VkWaylandSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkWaylandSurfaceCreateFlagsKHR flags; - struct wl_display* display; - struct wl_surface* surface; -} VkWaylandSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateWaylandSurfaceKHR)(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateWaylandSurfaceKHR( - VkInstance instance, - const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWaylandPresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - struct wl_display* display); -#endif -#endif /* VK_USE_PLATFORM_WAYLAND_KHR */ - -#ifdef VK_USE_PLATFORM_MIR_KHR -#define VK_KHR_mir_surface 1 -#include - -#define VK_KHR_MIR_SURFACE_SPEC_VERSION 4 -#define VK_KHR_MIR_SURFACE_EXTENSION_NAME "VK_KHR_mir_surface" - -typedef VkFlags VkMirSurfaceCreateFlagsKHR; - -typedef struct VkMirSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkMirSurfaceCreateFlagsKHR flags; - MirConnection* connection; - MirSurface* mirSurface; -} VkMirSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateMirSurfaceKHR)(VkInstance instance, const VkMirSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, MirConnection* connection); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateMirSurfaceKHR( - VkInstance instance, - const VkMirSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceMirPresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - MirConnection* connection); -#endif -#endif /* VK_USE_PLATFORM_MIR_KHR */ - -#ifdef VK_USE_PLATFORM_ANDROID_KHR -#define VK_KHR_android_surface 1 -#include - -#define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6 -#define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface" - -typedef VkFlags VkAndroidSurfaceCreateFlagsKHR; - -typedef struct VkAndroidSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkAndroidSurfaceCreateFlagsKHR flags; - ANativeWindow* window; -} VkAndroidSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR( - VkInstance instance, - const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); -#endif -#endif /* VK_USE_PLATFORM_ANDROID_KHR */ - -#ifdef VK_USE_PLATFORM_WIN32_KHR -#define VK_KHR_win32_surface 1 -#include - -#define VK_KHR_WIN32_SURFACE_SPEC_VERSION 5 -#define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface" - -typedef VkFlags VkWin32SurfaceCreateFlagsKHR; - -typedef struct VkWin32SurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkWin32SurfaceCreateFlagsKHR flags; - HINSTANCE hinstance; - HWND hwnd; -} VkWin32SurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateWin32SurfaceKHR)(VkInstance instance, const VkWin32SurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateWin32SurfaceKHR( - VkInstance instance, - const VkWin32SurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWin32PresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex); -#endif -#endif /* VK_USE_PLATFORM_WIN32_KHR */ - -#define VK_KHR_sampler_mirror_clamp_to_edge 1 -#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION 1 -#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME "VK_KHR_sampler_mirror_clamp_to_edge" - - -#define VK_EXT_debug_report 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDebugReportCallbackEXT) - -#define VK_EXT_DEBUG_REPORT_SPEC_VERSION 2 -#define VK_EXT_DEBUG_REPORT_EXTENSION_NAME "VK_EXT_debug_report" -#define VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT - - -typedef enum VkDebugReportObjectTypeEXT { - VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = 0, - VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = 1, - VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = 2, - VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = 3, - VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = 4, - VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = 5, - VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = 6, - VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = 7, - VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = 8, - VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = 9, - VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = 10, - VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = 11, - VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = 12, - VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = 13, - VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = 14, - VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = 15, - VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = 16, - VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = 17, - VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = 18, - VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = 19, - VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = 20, - VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = 21, - VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = 22, - VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = 23, - VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = 24, - VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = 25, - VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = 26, - VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = 27, - VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT = 28, - VK_DEBUG_REPORT_OBJECT_TYPE_BEGIN_RANGE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, - VK_DEBUG_REPORT_OBJECT_TYPE_END_RANGE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT, - VK_DEBUG_REPORT_OBJECT_TYPE_RANGE_SIZE_EXT = (VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT - VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT + 1), - VK_DEBUG_REPORT_OBJECT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDebugReportObjectTypeEXT; - -typedef enum VkDebugReportErrorEXT { - VK_DEBUG_REPORT_ERROR_NONE_EXT = 0, - VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT = 1, - VK_DEBUG_REPORT_ERROR_BEGIN_RANGE_EXT = VK_DEBUG_REPORT_ERROR_NONE_EXT, - VK_DEBUG_REPORT_ERROR_END_RANGE_EXT = VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT, - VK_DEBUG_REPORT_ERROR_RANGE_SIZE_EXT = (VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT - VK_DEBUG_REPORT_ERROR_NONE_EXT + 1), - VK_DEBUG_REPORT_ERROR_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDebugReportErrorEXT; - - -typedef enum VkDebugReportFlagBitsEXT { - VK_DEBUG_REPORT_INFORMATION_BIT_EXT = 0x00000001, - VK_DEBUG_REPORT_WARNING_BIT_EXT = 0x00000002, - VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = 0x00000004, - VK_DEBUG_REPORT_ERROR_BIT_EXT = 0x00000008, - VK_DEBUG_REPORT_DEBUG_BIT_EXT = 0x00000010, - VK_DEBUG_REPORT_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDebugReportFlagBitsEXT; -typedef VkFlags VkDebugReportFlagsEXT; - -typedef VkBool32 (VKAPI_PTR *PFN_vkDebugReportCallbackEXT)( - VkDebugReportFlagsEXT flags, - VkDebugReportObjectTypeEXT objectType, - uint64_t object, - size_t location, - int32_t messageCode, - const char* pLayerPrefix, - const char* pMessage, - void* pUserData); - - -typedef struct VkDebugReportCallbackCreateInfoEXT { - VkStructureType sType; - const void* pNext; - VkDebugReportFlagsEXT flags; - PFN_vkDebugReportCallbackEXT pfnCallback; - void* pUserData; -} VkDebugReportCallbackCreateInfoEXT; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateDebugReportCallbackEXT)(VkInstance instance, const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDebugReportCallbackEXT* pCallback); -typedef void (VKAPI_PTR *PFN_vkDestroyDebugReportCallbackEXT)(VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks* pAllocator); -typedef void (VKAPI_PTR *PFN_vkDebugReportMessageEXT)(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugReportCallbackEXT( - VkInstance instance, - const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDebugReportCallbackEXT* pCallback); - -VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT( - VkInstance instance, - VkDebugReportCallbackEXT callback, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT( - VkInstance instance, - VkDebugReportFlagsEXT flags, - VkDebugReportObjectTypeEXT objectType, - uint64_t object, - size_t location, - int32_t messageCode, - const char* pLayerPrefix, - const char* pMessage); -#endif - -#define VK_NV_glsl_shader 1 -#define VK_NV_GLSL_SHADER_SPEC_VERSION 1 -#define VK_NV_GLSL_SHADER_EXTENSION_NAME "VK_NV_glsl_shader" - - -#define VK_IMG_filter_cubic 1 -#define VK_IMG_FILTER_CUBIC_SPEC_VERSION 1 -#define VK_IMG_FILTER_CUBIC_EXTENSION_NAME "VK_IMG_filter_cubic" - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW/glfw3.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW/glfw3.h deleted file mode 100644 index 95caa95..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW/glfw3.h +++ /dev/null @@ -1,4248 +0,0 @@ -/************************************************************************* - * GLFW 3.2 - www.glfw.org - * A library for OpenGL, window and input - *------------------------------------------------------------------------ - * Copyright (c) 2002-2006 Marcus Geelnard - * Copyright (c) 2006-2016 Camilla Berglund - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would - * be appreciated but is not required. - * - * 2. Altered source versions must be plainly marked as such, and must not - * be misrepresented as being the original software. - * - * 3. This notice may not be removed or altered from any source - * distribution. - * - *************************************************************************/ - -#ifndef _glfw3_h_ -#define _glfw3_h_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/************************************************************************* - * Doxygen documentation - *************************************************************************/ - -/*! @file glfw3.h - * @brief The header of the GLFW 3 API. - * - * This is the header file of the GLFW 3 API. It defines all its types and - * declares all its functions. - * - * For more information about how to use this file, see @ref build_include. - */ -/*! @defgroup context Context reference - * - * This is the reference documentation for OpenGL and OpenGL ES context related - * functions. For more task-oriented information, see the @ref context_guide. - */ -/*! @defgroup vulkan Vulkan reference - * - * This is the reference documentation for Vulkan related functions and types. - * For more task-oriented information, see the @ref vulkan_guide. - */ -/*! @defgroup init Initialization, version and error reference - * - * This is the reference documentation for initialization and termination of - * the library, version management and error handling. For more task-oriented - * information, see the @ref intro_guide. - */ -/*! @defgroup input Input reference - * - * This is the reference documentation for input related functions and types. - * For more task-oriented information, see the @ref input_guide. - */ -/*! @defgroup monitor Monitor reference - * - * This is the reference documentation for monitor related functions and types. - * For more task-oriented information, see the @ref monitor_guide. - */ -/*! @defgroup window Window reference - * - * This is the reference documentation for window related functions and types, - * including creation, deletion and event polling. For more task-oriented - * information, see the @ref window_guide. - */ - - -/************************************************************************* - * Compiler- and platform-specific preprocessor work - *************************************************************************/ - -/* If we are we on Windows, we want a single define for it. - */ -#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)) - #define _WIN32 -#endif /* _WIN32 */ - -/* It is customary to use APIENTRY for OpenGL function pointer declarations on - * all platforms. Additionally, the Windows OpenGL header needs APIENTRY. - */ -#ifndef APIENTRY - #ifdef _WIN32 - #define APIENTRY __stdcall - #else - #define APIENTRY - #endif -#endif /* APIENTRY */ - -/* Some Windows OpenGL headers need this. - */ -#if !defined(WINGDIAPI) && defined(_WIN32) - #define WINGDIAPI __declspec(dllimport) - #define GLFW_WINGDIAPI_DEFINED -#endif /* WINGDIAPI */ - -/* Some Windows GLU headers need this. - */ -#if !defined(CALLBACK) && defined(_WIN32) - #define CALLBACK __stdcall - #define GLFW_CALLBACK_DEFINED -#endif /* CALLBACK */ - -/* Include because most Windows GLU headers need wchar_t and - * the OS X OpenGL header blocks the definition of ptrdiff_t by glext.h. - * Include it unconditionally to avoid surprising side-effects. - */ -#include - -/* Include because it is needed by Vulkan and related functions. - */ -#include - -/* Include the chosen client API headers. - */ -#if defined(__APPLE__) - #if defined(GLFW_INCLUDE_GLCOREARB) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif !defined(GLFW_INCLUDE_NONE) - #if !defined(GLFW_INCLUDE_GLEXT) - #define GL_GLEXT_LEGACY - #endif - #include - #endif - #if defined(GLFW_INCLUDE_GLU) - #include - #endif -#else - #if defined(GLFW_INCLUDE_GLCOREARB) - #include - #elif defined(GLFW_INCLUDE_ES1) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES2) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES3) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES31) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_VULKAN) - #include - #elif !defined(GLFW_INCLUDE_NONE) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #endif - #if defined(GLFW_INCLUDE_GLU) - #include - #endif -#endif - -#if defined(GLFW_DLL) && defined(_GLFW_BUILD_DLL) - /* GLFW_DLL must be defined by applications that are linking against the DLL - * version of the GLFW library. _GLFW_BUILD_DLL is defined by the GLFW - * configuration header when compiling the DLL version of the library. - */ - #error "You must not have both GLFW_DLL and _GLFW_BUILD_DLL defined" -#endif - -/* GLFWAPI is used to declare public API functions for export - * from the DLL / shared library / dynamic library. - */ -#if defined(_WIN32) && defined(_GLFW_BUILD_DLL) - /* We are building GLFW as a Win32 DLL */ - #define GLFWAPI __declspec(dllexport) -#elif defined(_WIN32) && defined(GLFW_DLL) - /* We are calling GLFW as a Win32 DLL */ - #define GLFWAPI __declspec(dllimport) -#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL) - /* We are building GLFW as a shared / dynamic library */ - #define GLFWAPI __attribute__((visibility("default"))) -#else - /* We are building or calling GLFW as a static library */ - #define GLFWAPI -#endif - - -/************************************************************************* - * GLFW API tokens - *************************************************************************/ - -/*! @name GLFW version macros - * @{ */ -/*! @brief The major version number of the GLFW library. - * - * This is incremented when the API is changed in non-compatible ways. - * @ingroup init - */ -#define GLFW_VERSION_MAJOR 3 -/*! @brief The minor version number of the GLFW library. - * - * This is incremented when features are added to the API but it remains - * backward-compatible. - * @ingroup init - */ -#define GLFW_VERSION_MINOR 2 -/*! @brief The revision number of the GLFW library. - * - * This is incremented when a bug fix release is made that does not contain any - * API changes. - * @ingroup init - */ -#define GLFW_VERSION_REVISION 1 -/*! @} */ - -/*! @name Boolean values - * @{ */ -/*! @brief One. - * - * One. Seriously. You don't _need_ to use this symbol in your code. It's - * just semantic sugar for the number 1. You can use `1` or `true` or `_True` - * or `GL_TRUE` or whatever you want. - */ -#define GLFW_TRUE 1 -/*! @brief Zero. - * - * Zero. Seriously. You don't _need_ to use this symbol in your code. It's - * just just semantic sugar for the number 0. You can use `0` or `false` or - * `_False` or `GL_FALSE` or whatever you want. - */ -#define GLFW_FALSE 0 -/*! @} */ - -/*! @name Key and button actions - * @{ */ -/*! @brief The key or mouse button was released. - * - * The key or mouse button was released. - * - * @ingroup input - */ -#define GLFW_RELEASE 0 -/*! @brief The key or mouse button was pressed. - * - * The key or mouse button was pressed. - * - * @ingroup input - */ -#define GLFW_PRESS 1 -/*! @brief The key was held down until it repeated. - * - * The key was held down until it repeated. - * - * @ingroup input - */ -#define GLFW_REPEAT 2 -/*! @} */ - -/*! @defgroup keys Keyboard keys - * - * See [key input](@ref input_key) for how these are used. - * - * These key codes are inspired by the _USB HID Usage Tables v1.12_ (p. 53-60), - * but re-arranged to map to 7-bit ASCII for printable keys (function keys are - * put in the 256+ range). - * - * The naming of the key codes follow these rules: - * - The US keyboard layout is used - * - Names of printable alpha-numeric characters are used (e.g. "A", "R", - * "3", etc.) - * - For non-alphanumeric characters, Unicode:ish names are used (e.g. - * "COMMA", "LEFT_SQUARE_BRACKET", etc.). Note that some names do not - * correspond to the Unicode standard (usually for brevity) - * - Keys that lack a clear US mapping are named "WORLD_x" - * - For non-printable keys, custom names are used (e.g. "F4", - * "BACKSPACE", etc.) - * - * @ingroup input - * @{ - */ - -/* The unknown key */ -#define GLFW_KEY_UNKNOWN -1 - -/* Printable keys */ -#define GLFW_KEY_SPACE 32 -#define GLFW_KEY_APOSTROPHE 39 /* ' */ -#define GLFW_KEY_COMMA 44 /* , */ -#define GLFW_KEY_MINUS 45 /* - */ -#define GLFW_KEY_PERIOD 46 /* . */ -#define GLFW_KEY_SLASH 47 /* / */ -#define GLFW_KEY_0 48 -#define GLFW_KEY_1 49 -#define GLFW_KEY_2 50 -#define GLFW_KEY_3 51 -#define GLFW_KEY_4 52 -#define GLFW_KEY_5 53 -#define GLFW_KEY_6 54 -#define GLFW_KEY_7 55 -#define GLFW_KEY_8 56 -#define GLFW_KEY_9 57 -#define GLFW_KEY_SEMICOLON 59 /* ; */ -#define GLFW_KEY_EQUAL 61 /* = */ -#define GLFW_KEY_A 65 -#define GLFW_KEY_B 66 -#define GLFW_KEY_C 67 -#define GLFW_KEY_D 68 -#define GLFW_KEY_E 69 -#define GLFW_KEY_F 70 -#define GLFW_KEY_G 71 -#define GLFW_KEY_H 72 -#define GLFW_KEY_I 73 -#define GLFW_KEY_J 74 -#define GLFW_KEY_K 75 -#define GLFW_KEY_L 76 -#define GLFW_KEY_M 77 -#define GLFW_KEY_N 78 -#define GLFW_KEY_O 79 -#define GLFW_KEY_P 80 -#define GLFW_KEY_Q 81 -#define GLFW_KEY_R 82 -#define GLFW_KEY_S 83 -#define GLFW_KEY_T 84 -#define GLFW_KEY_U 85 -#define GLFW_KEY_V 86 -#define GLFW_KEY_W 87 -#define GLFW_KEY_X 88 -#define GLFW_KEY_Y 89 -#define GLFW_KEY_Z 90 -#define GLFW_KEY_LEFT_BRACKET 91 /* [ */ -#define GLFW_KEY_BACKSLASH 92 /* \ */ -#define GLFW_KEY_RIGHT_BRACKET 93 /* ] */ -#define GLFW_KEY_GRAVE_ACCENT 96 /* ` */ -#define GLFW_KEY_WORLD_1 161 /* non-US #1 */ -#define GLFW_KEY_WORLD_2 162 /* non-US #2 */ - -/* Function keys */ -#define GLFW_KEY_ESCAPE 256 -#define GLFW_KEY_ENTER 257 -#define GLFW_KEY_TAB 258 -#define GLFW_KEY_BACKSPACE 259 -#define GLFW_KEY_INSERT 260 -#define GLFW_KEY_DELETE 261 -#define GLFW_KEY_RIGHT 262 -#define GLFW_KEY_LEFT 263 -#define GLFW_KEY_DOWN 264 -#define GLFW_KEY_UP 265 -#define GLFW_KEY_PAGE_UP 266 -#define GLFW_KEY_PAGE_DOWN 267 -#define GLFW_KEY_HOME 268 -#define GLFW_KEY_END 269 -#define GLFW_KEY_CAPS_LOCK 280 -#define GLFW_KEY_SCROLL_LOCK 281 -#define GLFW_KEY_NUM_LOCK 282 -#define GLFW_KEY_PRINT_SCREEN 283 -#define GLFW_KEY_PAUSE 284 -#define GLFW_KEY_F1 290 -#define GLFW_KEY_F2 291 -#define GLFW_KEY_F3 292 -#define GLFW_KEY_F4 293 -#define GLFW_KEY_F5 294 -#define GLFW_KEY_F6 295 -#define GLFW_KEY_F7 296 -#define GLFW_KEY_F8 297 -#define GLFW_KEY_F9 298 -#define GLFW_KEY_F10 299 -#define GLFW_KEY_F11 300 -#define GLFW_KEY_F12 301 -#define GLFW_KEY_F13 302 -#define GLFW_KEY_F14 303 -#define GLFW_KEY_F15 304 -#define GLFW_KEY_F16 305 -#define GLFW_KEY_F17 306 -#define GLFW_KEY_F18 307 -#define GLFW_KEY_F19 308 -#define GLFW_KEY_F20 309 -#define GLFW_KEY_F21 310 -#define GLFW_KEY_F22 311 -#define GLFW_KEY_F23 312 -#define GLFW_KEY_F24 313 -#define GLFW_KEY_F25 314 -#define GLFW_KEY_KP_0 320 -#define GLFW_KEY_KP_1 321 -#define GLFW_KEY_KP_2 322 -#define GLFW_KEY_KP_3 323 -#define GLFW_KEY_KP_4 324 -#define GLFW_KEY_KP_5 325 -#define GLFW_KEY_KP_6 326 -#define GLFW_KEY_KP_7 327 -#define GLFW_KEY_KP_8 328 -#define GLFW_KEY_KP_9 329 -#define GLFW_KEY_KP_DECIMAL 330 -#define GLFW_KEY_KP_DIVIDE 331 -#define GLFW_KEY_KP_MULTIPLY 332 -#define GLFW_KEY_KP_SUBTRACT 333 -#define GLFW_KEY_KP_ADD 334 -#define GLFW_KEY_KP_ENTER 335 -#define GLFW_KEY_KP_EQUAL 336 -#define GLFW_KEY_LEFT_SHIFT 340 -#define GLFW_KEY_LEFT_CONTROL 341 -#define GLFW_KEY_LEFT_ALT 342 -#define GLFW_KEY_LEFT_SUPER 343 -#define GLFW_KEY_RIGHT_SHIFT 344 -#define GLFW_KEY_RIGHT_CONTROL 345 -#define GLFW_KEY_RIGHT_ALT 346 -#define GLFW_KEY_RIGHT_SUPER 347 -#define GLFW_KEY_MENU 348 - -#define GLFW_KEY_LAST GLFW_KEY_MENU - -/*! @} */ - -/*! @defgroup mods Modifier key flags - * - * See [key input](@ref input_key) for how these are used. - * - * @ingroup input - * @{ */ - -/*! @brief If this bit is set one or more Shift keys were held down. - */ -#define GLFW_MOD_SHIFT 0x0001 -/*! @brief If this bit is set one or more Control keys were held down. - */ -#define GLFW_MOD_CONTROL 0x0002 -/*! @brief If this bit is set one or more Alt keys were held down. - */ -#define GLFW_MOD_ALT 0x0004 -/*! @brief If this bit is set one or more Super keys were held down. - */ -#define GLFW_MOD_SUPER 0x0008 - -/*! @} */ - -/*! @defgroup buttons Mouse buttons - * - * See [mouse button input](@ref input_mouse_button) for how these are used. - * - * @ingroup input - * @{ */ -#define GLFW_MOUSE_BUTTON_1 0 -#define GLFW_MOUSE_BUTTON_2 1 -#define GLFW_MOUSE_BUTTON_3 2 -#define GLFW_MOUSE_BUTTON_4 3 -#define GLFW_MOUSE_BUTTON_5 4 -#define GLFW_MOUSE_BUTTON_6 5 -#define GLFW_MOUSE_BUTTON_7 6 -#define GLFW_MOUSE_BUTTON_8 7 -#define GLFW_MOUSE_BUTTON_LAST GLFW_MOUSE_BUTTON_8 -#define GLFW_MOUSE_BUTTON_LEFT GLFW_MOUSE_BUTTON_1 -#define GLFW_MOUSE_BUTTON_RIGHT GLFW_MOUSE_BUTTON_2 -#define GLFW_MOUSE_BUTTON_MIDDLE GLFW_MOUSE_BUTTON_3 -/*! @} */ - -/*! @defgroup joysticks Joysticks - * - * See [joystick input](@ref joystick) for how these are used. - * - * @ingroup input - * @{ */ -#define GLFW_JOYSTICK_1 0 -#define GLFW_JOYSTICK_2 1 -#define GLFW_JOYSTICK_3 2 -#define GLFW_JOYSTICK_4 3 -#define GLFW_JOYSTICK_5 4 -#define GLFW_JOYSTICK_6 5 -#define GLFW_JOYSTICK_7 6 -#define GLFW_JOYSTICK_8 7 -#define GLFW_JOYSTICK_9 8 -#define GLFW_JOYSTICK_10 9 -#define GLFW_JOYSTICK_11 10 -#define GLFW_JOYSTICK_12 11 -#define GLFW_JOYSTICK_13 12 -#define GLFW_JOYSTICK_14 13 -#define GLFW_JOYSTICK_15 14 -#define GLFW_JOYSTICK_16 15 -#define GLFW_JOYSTICK_LAST GLFW_JOYSTICK_16 -/*! @} */ - -/*! @defgroup errors Error codes - * - * See [error handling](@ref error_handling) for how these are used. - * - * @ingroup init - * @{ */ -/*! @brief GLFW has not been initialized. - * - * This occurs if a GLFW function was called that must not be called unless the - * library is [initialized](@ref intro_init). - * - * @analysis Application programmer error. Initialize GLFW before calling any - * function that requires initialization. - */ -#define GLFW_NOT_INITIALIZED 0x00010001 -/*! @brief No context is current for this thread. - * - * This occurs if a GLFW function was called that needs and operates on the - * current OpenGL or OpenGL ES context but no context is current on the calling - * thread. One such function is @ref glfwSwapInterval. - * - * @analysis Application programmer error. Ensure a context is current before - * calling functions that require a current context. - */ -#define GLFW_NO_CURRENT_CONTEXT 0x00010002 -/*! @brief One of the arguments to the function was an invalid enum value. - * - * One of the arguments to the function was an invalid enum value, for example - * requesting [GLFW_RED_BITS](@ref window_hints_fb) with @ref - * glfwGetWindowAttrib. - * - * @analysis Application programmer error. Fix the offending call. - */ -#define GLFW_INVALID_ENUM 0x00010003 -/*! @brief One of the arguments to the function was an invalid value. - * - * One of the arguments to the function was an invalid value, for example - * requesting a non-existent OpenGL or OpenGL ES version like 2.7. - * - * Requesting a valid but unavailable OpenGL or OpenGL ES version will instead - * result in a @ref GLFW_VERSION_UNAVAILABLE error. - * - * @analysis Application programmer error. Fix the offending call. - */ -#define GLFW_INVALID_VALUE 0x00010004 -/*! @brief A memory allocation failed. - * - * A memory allocation failed. - * - * @analysis A bug in GLFW or the underlying operating system. Report the bug - * to our [issue tracker](https://github.com/glfw/glfw/issues). - */ -#define GLFW_OUT_OF_MEMORY 0x00010005 -/*! @brief GLFW could not find support for the requested API on the system. - * - * GLFW could not find support for the requested API on the system. - * - * @analysis The installed graphics driver does not support the requested - * API, or does not support it via the chosen context creation backend. - * Below are a few examples. - * - * @par - * Some pre-installed Windows graphics drivers do not support OpenGL. AMD only - * supports OpenGL ES via EGL, while Nvidia and Intel only support it via - * a WGL or GLX extension. OS X does not provide OpenGL ES at all. The Mesa - * EGL, OpenGL and OpenGL ES libraries do not interface with the Nvidia binary - * driver. Older graphics drivers do not support Vulkan. - */ -#define GLFW_API_UNAVAILABLE 0x00010006 -/*! @brief The requested OpenGL or OpenGL ES version is not available. - * - * The requested OpenGL or OpenGL ES version (including any requested context - * or framebuffer hints) is not available on this machine. - * - * @analysis The machine does not support your requirements. If your - * application is sufficiently flexible, downgrade your requirements and try - * again. Otherwise, inform the user that their machine does not match your - * requirements. - * - * @par - * Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if 5.0 - * comes out before the 4.x series gets that far, also fail with this error and - * not @ref GLFW_INVALID_VALUE, because GLFW cannot know what future versions - * will exist. - */ -#define GLFW_VERSION_UNAVAILABLE 0x00010007 -/*! @brief A platform-specific error occurred that does not match any of the - * more specific categories. - * - * A platform-specific error occurred that does not match any of the more - * specific categories. - * - * @analysis A bug or configuration error in GLFW, the underlying operating - * system or its drivers, or a lack of required resources. Report the issue to - * our [issue tracker](https://github.com/glfw/glfw/issues). - */ -#define GLFW_PLATFORM_ERROR 0x00010008 -/*! @brief The requested format is not supported or available. - * - * If emitted during window creation, the requested pixel format is not - * supported. - * - * If emitted when querying the clipboard, the contents of the clipboard could - * not be converted to the requested format. - * - * @analysis If emitted during window creation, one or more - * [hard constraints](@ref window_hints_hard) did not match any of the - * available pixel formats. If your application is sufficiently flexible, - * downgrade your requirements and try again. Otherwise, inform the user that - * their machine does not match your requirements. - * - * @par - * If emitted when querying the clipboard, ignore the error or report it to - * the user, as appropriate. - */ -#define GLFW_FORMAT_UNAVAILABLE 0x00010009 -/*! @brief The specified window does not have an OpenGL or OpenGL ES context. - * - * A window that does not have an OpenGL or OpenGL ES context was passed to - * a function that requires it to have one. - * - * @analysis Application programmer error. Fix the offending call. - */ -#define GLFW_NO_WINDOW_CONTEXT 0x0001000A -/*! @} */ - -#define GLFW_FOCUSED 0x00020001 -#define GLFW_ICONIFIED 0x00020002 -#define GLFW_RESIZABLE 0x00020003 -#define GLFW_VISIBLE 0x00020004 -#define GLFW_DECORATED 0x00020005 -#define GLFW_AUTO_ICONIFY 0x00020006 -#define GLFW_FLOATING 0x00020007 -#define GLFW_MAXIMIZED 0x00020008 - -#define GLFW_RED_BITS 0x00021001 -#define GLFW_GREEN_BITS 0x00021002 -#define GLFW_BLUE_BITS 0x00021003 -#define GLFW_ALPHA_BITS 0x00021004 -#define GLFW_DEPTH_BITS 0x00021005 -#define GLFW_STENCIL_BITS 0x00021006 -#define GLFW_ACCUM_RED_BITS 0x00021007 -#define GLFW_ACCUM_GREEN_BITS 0x00021008 -#define GLFW_ACCUM_BLUE_BITS 0x00021009 -#define GLFW_ACCUM_ALPHA_BITS 0x0002100A -#define GLFW_AUX_BUFFERS 0x0002100B -#define GLFW_STEREO 0x0002100C -#define GLFW_SAMPLES 0x0002100D -#define GLFW_SRGB_CAPABLE 0x0002100E -#define GLFW_REFRESH_RATE 0x0002100F -#define GLFW_DOUBLEBUFFER 0x00021010 - -#define GLFW_CLIENT_API 0x00022001 -#define GLFW_CONTEXT_VERSION_MAJOR 0x00022002 -#define GLFW_CONTEXT_VERSION_MINOR 0x00022003 -#define GLFW_CONTEXT_REVISION 0x00022004 -#define GLFW_CONTEXT_ROBUSTNESS 0x00022005 -#define GLFW_OPENGL_FORWARD_COMPAT 0x00022006 -#define GLFW_OPENGL_DEBUG_CONTEXT 0x00022007 -#define GLFW_OPENGL_PROFILE 0x00022008 -#define GLFW_CONTEXT_RELEASE_BEHAVIOR 0x00022009 -#define GLFW_CONTEXT_NO_ERROR 0x0002200A -#define GLFW_CONTEXT_CREATION_API 0x0002200B - -#define GLFW_NO_API 0 -#define GLFW_OPENGL_API 0x00030001 -#define GLFW_OPENGL_ES_API 0x00030002 - -#define GLFW_NO_ROBUSTNESS 0 -#define GLFW_NO_RESET_NOTIFICATION 0x00031001 -#define GLFW_LOSE_CONTEXT_ON_RESET 0x00031002 - -#define GLFW_OPENGL_ANY_PROFILE 0 -#define GLFW_OPENGL_CORE_PROFILE 0x00032001 -#define GLFW_OPENGL_COMPAT_PROFILE 0x00032002 - -#define GLFW_CURSOR 0x00033001 -#define GLFW_STICKY_KEYS 0x00033002 -#define GLFW_STICKY_MOUSE_BUTTONS 0x00033003 - -#define GLFW_CURSOR_NORMAL 0x00034001 -#define GLFW_CURSOR_HIDDEN 0x00034002 -#define GLFW_CURSOR_DISABLED 0x00034003 - -#define GLFW_ANY_RELEASE_BEHAVIOR 0 -#define GLFW_RELEASE_BEHAVIOR_FLUSH 0x00035001 -#define GLFW_RELEASE_BEHAVIOR_NONE 0x00035002 - -#define GLFW_NATIVE_CONTEXT_API 0x00036001 -#define GLFW_EGL_CONTEXT_API 0x00036002 - -/*! @defgroup shapes Standard cursor shapes - * - * See [standard cursor creation](@ref cursor_standard) for how these are used. - * - * @ingroup input - * @{ */ - -/*! @brief The regular arrow cursor shape. - * - * The regular arrow cursor. - */ -#define GLFW_ARROW_CURSOR 0x00036001 -/*! @brief The text input I-beam cursor shape. - * - * The text input I-beam cursor shape. - */ -#define GLFW_IBEAM_CURSOR 0x00036002 -/*! @brief The crosshair shape. - * - * The crosshair shape. - */ -#define GLFW_CROSSHAIR_CURSOR 0x00036003 -/*! @brief The hand shape. - * - * The hand shape. - */ -#define GLFW_HAND_CURSOR 0x00036004 -/*! @brief The horizontal resize arrow shape. - * - * The horizontal resize arrow shape. - */ -#define GLFW_HRESIZE_CURSOR 0x00036005 -/*! @brief The vertical resize arrow shape. - * - * The vertical resize arrow shape. - */ -#define GLFW_VRESIZE_CURSOR 0x00036006 -/*! @} */ - -#define GLFW_CONNECTED 0x00040001 -#define GLFW_DISCONNECTED 0x00040002 - -#define GLFW_DONT_CARE -1 - - -/************************************************************************* - * GLFW API types - *************************************************************************/ - -/*! @brief Client API function pointer type. - * - * Generic function pointer used for returning client API function pointers - * without forcing a cast from a regular pointer. - * - * @sa @ref context_glext - * @sa glfwGetProcAddress - * - * @since Added in version 3.0. - - * @ingroup context - */ -typedef void (*GLFWglproc)(void); - -/*! @brief Vulkan API function pointer type. - * - * Generic function pointer used for returning Vulkan API function pointers - * without forcing a cast from a regular pointer. - * - * @sa @ref vulkan_proc - * @sa glfwGetInstanceProcAddress - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -typedef void (*GLFWvkproc)(void); - -/*! @brief Opaque monitor object. - * - * Opaque monitor object. - * - * @see @ref monitor_object - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -typedef struct GLFWmonitor GLFWmonitor; - -/*! @brief Opaque window object. - * - * Opaque window object. - * - * @see @ref window_object - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef struct GLFWwindow GLFWwindow; - -/*! @brief Opaque cursor object. - * - * Opaque cursor object. - * - * @see @ref cursor_object - * - * @since Added in version 3.1. - * - * @ingroup cursor - */ -typedef struct GLFWcursor GLFWcursor; - -/*! @brief The function signature for error callbacks. - * - * This is the function signature for error callback functions. - * - * @param[in] error An [error code](@ref errors). - * @param[in] description A UTF-8 encoded string describing the error. - * - * @sa @ref error_handling - * @sa glfwSetErrorCallback - * - * @since Added in version 3.0. - * - * @ingroup init - */ -typedef void (* GLFWerrorfun)(int,const char*); - -/*! @brief The function signature for window position callbacks. - * - * This is the function signature for window position callback functions. - * - * @param[in] window The window that was moved. - * @param[in] xpos The new x-coordinate, in screen coordinates, of the - * upper-left corner of the client area of the window. - * @param[in] ypos The new y-coordinate, in screen coordinates, of the - * upper-left corner of the client area of the window. - * - * @sa @ref window_pos - * @sa glfwSetWindowPosCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef void (* GLFWwindowposfun)(GLFWwindow*,int,int); - -/*! @brief The function signature for window resize callbacks. - * - * This is the function signature for window size callback functions. - * - * @param[in] window The window that was resized. - * @param[in] width The new width, in screen coordinates, of the window. - * @param[in] height The new height, in screen coordinates, of the window. - * - * @sa @ref window_size - * @sa glfwSetWindowSizeCallback - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -typedef void (* GLFWwindowsizefun)(GLFWwindow*,int,int); - -/*! @brief The function signature for window close callbacks. - * - * This is the function signature for window close callback functions. - * - * @param[in] window The window that the user attempted to close. - * - * @sa @ref window_close - * @sa glfwSetWindowCloseCallback - * - * @since Added in version 2.5. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -typedef void (* GLFWwindowclosefun)(GLFWwindow*); - -/*! @brief The function signature for window content refresh callbacks. - * - * This is the function signature for window refresh callback functions. - * - * @param[in] window The window whose content needs to be refreshed. - * - * @sa @ref window_refresh - * @sa glfwSetWindowRefreshCallback - * - * @since Added in version 2.5. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -typedef void (* GLFWwindowrefreshfun)(GLFWwindow*); - -/*! @brief The function signature for window focus/defocus callbacks. - * - * This is the function signature for window focus callback functions. - * - * @param[in] window The window that gained or lost input focus. - * @param[in] focused `GLFW_TRUE` if the window was given input focus, or - * `GLFW_FALSE` if it lost it. - * - * @sa @ref window_focus - * @sa glfwSetWindowFocusCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef void (* GLFWwindowfocusfun)(GLFWwindow*,int); - -/*! @brief The function signature for window iconify/restore callbacks. - * - * This is the function signature for window iconify/restore callback - * functions. - * - * @param[in] window The window that was iconified or restored. - * @param[in] iconified `GLFW_TRUE` if the window was iconified, or - * `GLFW_FALSE` if it was restored. - * - * @sa @ref window_iconify - * @sa glfwSetWindowIconifyCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef void (* GLFWwindowiconifyfun)(GLFWwindow*,int); - -/*! @brief The function signature for framebuffer resize callbacks. - * - * This is the function signature for framebuffer resize callback - * functions. - * - * @param[in] window The window whose framebuffer was resized. - * @param[in] width The new width, in pixels, of the framebuffer. - * @param[in] height The new height, in pixels, of the framebuffer. - * - * @sa @ref window_fbsize - * @sa glfwSetFramebufferSizeCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef void (* GLFWframebuffersizefun)(GLFWwindow*,int,int); - -/*! @brief The function signature for mouse button callbacks. - * - * This is the function signature for mouse button callback functions. - * - * @param[in] window The window that received the event. - * @param[in] button The [mouse button](@ref buttons) that was pressed or - * released. - * @param[in] action One of `GLFW_PRESS` or `GLFW_RELEASE`. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa @ref input_mouse_button - * @sa glfwSetMouseButtonCallback - * - * @since Added in version 1.0. - * @glfw3 Added window handle and modifier mask parameters. - * - * @ingroup input - */ -typedef void (* GLFWmousebuttonfun)(GLFWwindow*,int,int,int); - -/*! @brief The function signature for cursor position callbacks. - * - * This is the function signature for cursor position callback functions. - * - * @param[in] window The window that received the event. - * @param[in] xpos The new cursor x-coordinate, relative to the left edge of - * the client area. - * @param[in] ypos The new cursor y-coordinate, relative to the top edge of the - * client area. - * - * @sa @ref cursor_pos - * @sa glfwSetCursorPosCallback - * - * @since Added in version 3.0. Replaces `GLFWmouseposfun`. - * - * @ingroup input - */ -typedef void (* GLFWcursorposfun)(GLFWwindow*,double,double); - -/*! @brief The function signature for cursor enter/leave callbacks. - * - * This is the function signature for cursor enter/leave callback functions. - * - * @param[in] window The window that received the event. - * @param[in] entered `GLFW_TRUE` if the cursor entered the window's client - * area, or `GLFW_FALSE` if it left it. - * - * @sa @ref cursor_enter - * @sa glfwSetCursorEnterCallback - * - * @since Added in version 3.0. - * - * @ingroup input - */ -typedef void (* GLFWcursorenterfun)(GLFWwindow*,int); - -/*! @brief The function signature for scroll callbacks. - * - * This is the function signature for scroll callback functions. - * - * @param[in] window The window that received the event. - * @param[in] xoffset The scroll offset along the x-axis. - * @param[in] yoffset The scroll offset along the y-axis. - * - * @sa @ref scrolling - * @sa glfwSetScrollCallback - * - * @since Added in version 3.0. Replaces `GLFWmousewheelfun`. - * - * @ingroup input - */ -typedef void (* GLFWscrollfun)(GLFWwindow*,double,double); - -/*! @brief The function signature for keyboard key callbacks. - * - * This is the function signature for keyboard key callback functions. - * - * @param[in] window The window that received the event. - * @param[in] key The [keyboard key](@ref keys) that was pressed or released. - * @param[in] scancode The system-specific scancode of the key. - * @param[in] action `GLFW_PRESS`, `GLFW_RELEASE` or `GLFW_REPEAT`. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa @ref input_key - * @sa glfwSetKeyCallback - * - * @since Added in version 1.0. - * @glfw3 Added window handle, scancode and modifier mask parameters. - * - * @ingroup input - */ -typedef void (* GLFWkeyfun)(GLFWwindow*,int,int,int,int); - -/*! @brief The function signature for Unicode character callbacks. - * - * This is the function signature for Unicode character callback functions. - * - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the character. - * - * @sa @ref input_char - * @sa glfwSetCharCallback - * - * @since Added in version 2.4. - * @glfw3 Added window handle parameter. - * - * @ingroup input - */ -typedef void (* GLFWcharfun)(GLFWwindow*,unsigned int); - -/*! @brief The function signature for Unicode character with modifiers - * callbacks. - * - * This is the function signature for Unicode character with modifiers callback - * functions. It is called for each input character, regardless of what - * modifier keys are held down. - * - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the character. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa @ref input_char - * @sa glfwSetCharModsCallback - * - * @since Added in version 3.1. - * - * @ingroup input - */ -typedef void (* GLFWcharmodsfun)(GLFWwindow*,unsigned int,int); - -/*! @brief The function signature for file drop callbacks. - * - * This is the function signature for file drop callbacks. - * - * @param[in] window The window that received the event. - * @param[in] count The number of dropped files. - * @param[in] paths The UTF-8 encoded file and/or directory path names. - * - * @sa @ref path_drop - * @sa glfwSetDropCallback - * - * @since Added in version 3.1. - * - * @ingroup input - */ -typedef void (* GLFWdropfun)(GLFWwindow*,int,const char**); - -/*! @brief The function signature for monitor configuration callbacks. - * - * This is the function signature for monitor configuration callback functions. - * - * @param[in] monitor The monitor that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. - * - * @sa @ref monitor_event - * @sa glfwSetMonitorCallback - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -typedef void (* GLFWmonitorfun)(GLFWmonitor*,int); - -/*! @brief The function signature for joystick configuration callbacks. - * - * This is the function signature for joystick configuration callback - * functions. - * - * @param[in] joy The joystick that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. - * - * @sa @ref joystick_event - * @sa glfwSetJoystickCallback - * - * @since Added in version 3.2. - * - * @ingroup input - */ -typedef void (* GLFWjoystickfun)(int,int); - -/*! @brief Video mode type. - * - * This describes a single video mode. - * - * @sa @ref monitor_modes - * @sa glfwGetVideoMode glfwGetVideoModes - * - * @since Added in version 1.0. - * @glfw3 Added refresh rate member. - * - * @ingroup monitor - */ -typedef struct GLFWvidmode -{ - /*! The width, in screen coordinates, of the video mode. - */ - int width; - /*! The height, in screen coordinates, of the video mode. - */ - int height; - /*! The bit depth of the red channel of the video mode. - */ - int redBits; - /*! The bit depth of the green channel of the video mode. - */ - int greenBits; - /*! The bit depth of the blue channel of the video mode. - */ - int blueBits; - /*! The refresh rate, in Hz, of the video mode. - */ - int refreshRate; -} GLFWvidmode; - -/*! @brief Gamma ramp. - * - * This describes the gamma ramp for a monitor. - * - * @sa @ref monitor_gamma - * @sa glfwGetGammaRamp glfwSetGammaRamp - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -typedef struct GLFWgammaramp -{ - /*! An array of value describing the response of the red channel. - */ - unsigned short* red; - /*! An array of value describing the response of the green channel. - */ - unsigned short* green; - /*! An array of value describing the response of the blue channel. - */ - unsigned short* blue; - /*! The number of elements in each array. - */ - unsigned int size; -} GLFWgammaramp; - -/*! @brief Image data. - * - * @sa @ref cursor_custom - * @sa @ref window_icon - * - * @since Added in version 2.1. - * @glfw3 Removed format and bytes-per-pixel members. - */ -typedef struct GLFWimage -{ - /*! The width, in pixels, of this image. - */ - int width; - /*! The height, in pixels, of this image. - */ - int height; - /*! The pixel data of this image, arranged left-to-right, top-to-bottom. - */ - unsigned char* pixels; -} GLFWimage; - - -/************************************************************************* - * GLFW API functions - *************************************************************************/ - -/*! @brief Initializes the GLFW library. - * - * 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. - * - * If this function fails, it calls @ref glfwTerminate before returning. If it - * succeeds, you should call @ref glfwTerminate before the application exits. - * - * Additional calls to this function after successful initialization but before - * termination will return `GLFW_TRUE` immediately. - * - * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. - * - * @remark @osx This function will change the current directory of the - * application to the `Contents/Resources` subdirectory of the application's - * bundle, if present. This can be disabled with a - * [compile-time option](@ref compile_options_osx). - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref intro_init - * @sa glfwTerminate - * - * @since Added in version 1.0. - * - * @ingroup init - */ -GLFWAPI int glfwInit(void); - -/*! @brief Terminates the GLFW library. - * - * 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 @ref glfwInit successfully before - * you will be able to use most GLFW functions. - * - * 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 @ref glfwInit before it returns - * failure. - * - * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. - * - * @remark This function may be called before @ref glfwInit. - * - * @warning The contexts of any remaining windows must not be current on any - * other thread when this function is called. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref intro_init - * @sa glfwInit - * - * @since Added in version 1.0. - * - * @ingroup init - */ -GLFWAPI void glfwTerminate(void); - -/*! @brief Retrieves the version of the GLFW library. - * - * 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. - * - * Any or all of the version arguments may be `NULL`. - * - * @param[out] major Where to store the major version number, or `NULL`. - * @param[out] minor Where to store the minor version number, or `NULL`. - * @param[out] rev Where to store the revision number, or `NULL`. - * - * @errors None. - * - * @remark This function may be called before @ref glfwInit. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref intro_version - * @sa glfwGetVersionString - * - * @since Added in version 1.0. - * - * @ingroup init - */ -GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev); - -/*! @brief Returns a string describing the compile-time configuration. - * - * This function returns the compile-time generated - * [version string](@ref intro_version_string) of the GLFW library binary. It - * describes the version, platform, compiler and any platform-specific - * compile-time options. It should not be confused with the OpenGL or OpenGL - * ES version string, queried with `glGetString`. - * - * __Do not use the version string__ to parse the GLFW library version. The - * @ref glfwGetVersion function provides the version of the running library - * binary in numerical format. - * - * @return The ASCII encoded GLFW version string. - * - * @errors None. - * - * @remark This function may be called before @ref glfwInit. - * - * @pointer_lifetime The returned string is static and compile-time generated. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref intro_version - * @sa glfwGetVersion - * - * @since Added in version 3.0. - * - * @ingroup init - */ -GLFWAPI const char* glfwGetVersionString(void); - -/*! @brief Sets the error callback. - * - * This function sets the error callback, which is called with an error code - * and a human-readable description each time a GLFW error occurs. - * - * 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. - * - * 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. - * - * Once set, the error callback remains set even after the library has been - * terminated. - * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set. - * - * @errors None. - * - * @remark This function may be called before @ref glfwInit. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref error_handling - * - * @since Added in version 3.0. - * - * @ingroup init - */ -GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun); - -/*! @brief Returns the currently connected monitors. - * - * This function returns an array of handles for all currently connected - * monitors. The primary monitor is always first in the returned array. If no - * monitors were found, this function returns `NULL`. - * - * @param[out] count Where to store the number of monitors in the returned - * array. This is set to zero if an error occurred. - * @return An array of monitor handles, or `NULL` if no monitors were found or - * if an [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is guaranteed to be valid only until the - * monitor configuration changes or the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_monitors - * @sa @ref monitor_event - * @sa glfwGetPrimaryMonitor - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitor** glfwGetMonitors(int* count); - -/*! @brief Returns the primary monitor. - * - * This function returns the primary monitor. This is usually the monitor - * where elements like the task bar or global menu bar are located. - * - * @return The primary monitor, or `NULL` if no monitors were found or if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @remark The primary monitor is always first in the array returned by @ref - * glfwGetMonitors. - * - * @sa @ref monitor_monitors - * @sa glfwGetMonitors - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void); - -/*! @brief Returns the position of the monitor's viewport on the virtual screen. - * - * This function returns the position, in screen coordinates, of the upper-left - * corner of the specified monitor. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] monitor The monitor to query. - * @param[out] xpos Where to store the monitor x-coordinate, or `NULL`. - * @param[out] ypos Where to store the monitor y-coordinate, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos); - -/*! @brief Returns the physical size of the monitor. - * - * This function returns the size, in millimetres, of the display area of the - * specified monitor. - * - * Some systems do not provide accurate monitor size information, either - * because the monitor - * [EDID](https://en.wikipedia.org/wiki/Extended_display_identification_data) - * data is incorrect or because the driver does not report it accurately. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] monitor The monitor to query. - * @param[out] widthMM Where to store the width, in millimetres, of the - * monitor's display area, or `NULL`. - * @param[out] heightMM Where to store the height, in millimetres, of the - * monitor's display area, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @remark @win32 calculates the returned physical size from the - * current resolution and system DPI instead of querying the monitor EDID data. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM); - -/*! @brief Returns the name of the specified monitor. - * - * This function returns a human-readable name, encoded as UTF-8, of the - * specified monitor. The name typically reflects the make and model of the - * monitor and is not guaranteed to be unique among the connected monitors. - * - * @param[in] monitor The monitor to query. - * @return The UTF-8 encoded name of the monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @pointer_lifetime The returned string is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified monitor is - * disconnected or the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor); - -/*! @brief Sets the monitor configuration callback. - * - * This function sets the monitor configuration callback, or removes the - * currently set callback. This is called when a monitor is connected to or - * disconnected from the system. - * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_event - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun); - -/*! @brief Returns the available video modes for the specified monitor. - * - * This function returns an array of all video modes supported by the specified - * monitor. The returned array is sorted in ascending order, first by color - * bit depth (the sum of all channel depths) and then by resolution area (the - * product of width and height). - * - * @param[in] monitor The monitor to query. - * @param[out] count Where to store the number of video modes in the returned - * array. This is set to zero if an error occurred. - * @return An array of video modes, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified monitor is - * disconnected, this function is called again for that monitor or the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_modes - * @sa glfwGetVideoMode - * - * @since Added in version 1.0. - * @glfw3 Changed to return an array of modes for a specific monitor. - * - * @ingroup monitor - */ -GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* monitor, int* count); - -/*! @brief Returns the current mode of the specified monitor. - * - * This function returns the current video mode of the specified monitor. If - * you have created a full screen window for that monitor, the return value - * will depend on whether that window is iconified. - * - * @param[in] monitor The monitor to query. - * @return The current mode of the monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified monitor is - * disconnected or the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_modes - * @sa glfwGetVideoModes - * - * @since Added in version 3.0. Replaces `glfwGetDesktopMode`. - * - * @ingroup monitor - */ -GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor); - -/*! @brief Generates a gamma ramp and sets it for the specified monitor. - * - * This function generates a 256-element gamma ramp from the specified exponent - * and then calls @ref glfwSetGammaRamp with it. The value must be a finite - * number greater than zero. - * - * @param[in] monitor The monitor whose gamma ramp to set. - * @param[in] gamma The desired exponent. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma); - -/*! @brief Returns the current gamma ramp for the specified monitor. - * - * This function returns the current gamma ramp of the specified monitor. - * - * @param[in] monitor The monitor to query. - * @return The current gamma ramp, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned structure and its arrays are allocated and - * freed by GLFW. You should not free them yourself. They are valid until the - * specified monitor is disconnected, this function is called again for that - * monitor or the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor); - -/*! @brief Sets the current gamma ramp for the specified monitor. - * - * This function sets the current gamma ramp for the specified monitor. The - * original gamma ramp for that monitor is saved by GLFW the first time this - * function is called and is restored by @ref glfwTerminate. - * - * @param[in] monitor The monitor whose gamma ramp to set. - * @param[in] ramp The gamma ramp to use. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @remark Gamma ramp sizes other than 256 are not supported by all platforms - * or graphics hardware. - * - * @remark @win32 The gamma ramp size must be 256. - * - * @pointer_lifetime The specified gamma ramp is copied before this function - * returns. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp); - -/*! @brief Resets all window hints to their default values. - * - * This function resets all window hints to their - * [default values](@ref window_hints_values). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_hints - * @sa glfwWindowHint - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwDefaultWindowHints(void); - -/*! @brief Sets the specified window hint to the desired value. - * - * This function sets hints for the next call to @ref glfwCreateWindow. The - * hints, once set, retain their values until changed by a call to @ref - * glfwWindowHint or @ref glfwDefaultWindowHints, or until the library is - * terminated. - * - * This function does not check whether the specified hint values are valid. - * If you set hints to invalid values this will instead be reported by the next - * call to @ref glfwCreateWindow. - * - * @param[in] hint The [window hint](@ref window_hints) to set. - * @param[in] value The new value of the window hint. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_ENUM. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_hints - * @sa glfwDefaultWindowHints - * - * @since Added in version 3.0. Replaces `glfwOpenWindowHint`. - * - * @ingroup window - */ -GLFWAPI void glfwWindowHint(int hint, int value); - -/*! @brief Creates a window and its associated context. - * - * This function creates a window and its associated OpenGL or OpenGL ES - * context. Most of the options controlling how the window and its context - * should be created are specified with [window hints](@ref window_hints). - * - * Successful creation does not change which context is current. Before you - * can use the newly created context, you need to - * [make it current](@ref context_current). For information about the `share` - * parameter, see @ref context_sharing. - * - * The created window, framebuffer and context may differ from what you - * requested, as not all parameters and hints are - * [hard constraints](@ref window_hints_hard). This includes the size of the - * window, especially for full screen windows. To query the actual attributes - * of the created window, framebuffer and context, see @ref - * glfwGetWindowAttrib, @ref glfwGetWindowSize and @ref glfwGetFramebufferSize. - * - * To create a full screen window, you need to specify the monitor the window - * will cover. If no monitor is specified, the window will be windowed mode. - * Unless you have a way for the user to choose a specific monitor, it is - * recommended that you pick the primary monitor. For more information on how - * to query connected monitors, see @ref monitor_monitors. - * - * For full screen windows, the specified size becomes the resolution of the - * window's _desired video mode_. As long as a full screen window is not - * iconified, the supported video mode most closely matching the desired video - * mode is set for the specified monitor. For more information about full - * screen windows, including the creation of so called _windowed full screen_ - * or _borderless full screen_ windows, see @ref window_windowed_full_screen. - * - * Once you have created the window, you can switch it between windowed and - * full screen mode with @ref glfwSetWindowMonitor. If the window has an - * OpenGL or OpenGL ES context, it will be unaffected. - * - * By default, newly created windows use the placement recommended by the - * window system. To create the window at a specific position, make it - * initially invisible using the [GLFW_VISIBLE](@ref window_hints_wnd) window - * hint, set its [position](@ref window_pos) and then [show](@ref window_hide) - * it. - * - * As long as at least one full screen window is not iconified, the screensaver - * is prohibited from starting. - * - * Window systems put limits on window sizes. Very large or very small window - * dimensions may be overridden by the window system on creation. Check the - * actual [size](@ref window_size) after creation. - * - * The [swap interval](@ref buffer_swap) is not set during window creation and - * the initial value may vary depending on driver settings and defaults. - * - * @param[in] width The desired width, in screen coordinates, of the window. - * This must be greater than zero. - * @param[in] height The desired height, in screen coordinates, of the window. - * This must be greater than zero. - * @param[in] title The initial, UTF-8 encoded window title. - * @param[in] monitor The monitor to use for full screen mode, or `NULL` for - * windowed mode. - * @param[in] share The window whose context to share resources with, or `NULL` - * to not share resources. - * @return The handle of the created window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM, @ref GLFW_INVALID_VALUE, @ref GLFW_API_UNAVAILABLE, @ref - * GLFW_VERSION_UNAVAILABLE, @ref GLFW_FORMAT_UNAVAILABLE and @ref - * GLFW_PLATFORM_ERROR. - * - * @remark @win32 Window creation will fail if the Microsoft GDI software - * OpenGL implementation is the only one available. - * - * @remark @win32 If the executable has an icon resource named `GLFW_ICON,` it - * will be set as the initial icon for the window. If no such icon is present, - * the `IDI_WINLOGO` icon will be used instead. To set a different icon, see - * @ref glfwSetWindowIcon. - * - * @remark @win32 The context to share resources with must not be current on - * any other thread. - * - * @remark @osx The GLFW window has no icon, as it is not a document - * window, but the dock icon will be the same as the application bundle's icon. - * For more information on bundles, see the - * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) - * in the Mac Developer Library. - * - * @remark @osx The first time a window is created the menu bar is populated - * 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 can be disabled with a - * [compile-time option](@ref compile_options_osx). - * - * @remark @osx On OS X 10.10 and later the window frame will not be rendered - * at full resolution on Retina displays unless the `NSHighResolutionCapable` - * key is enabled in the application bundle's `Info.plist`. For more - * information, see - * [High Resolution Guidelines for OS X](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html) - * in the Mac Developer Library. The GLFW test and example programs use - * a custom `Info.plist` template for this, which can be found as - * `CMake/MacOSXBundleInfo.plist.in` in the source tree. - * - * @remark @x11 Some window managers will not respect the placement of - * initially hidden windows. - * - * @remark @x11 Due to the asynchronous nature of X11, it may take a moment for - * a window to reach its requested state. This means you may not be able to - * query the final size, position or other attributes directly after window - * creation. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_creation - * @sa glfwDestroyWindow - * - * @since Added in version 3.0. Replaces `glfwOpenWindow`. - * - * @ingroup window - */ -GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share); - -/*! @brief Destroys the specified window and its context. - * - * This function destroys the specified window and its context. On calling - * this function, no further callbacks will be called for that window. - * - * If the context of the specified window is current on the main thread, it is - * detached before being destroyed. - * - * @param[in] window The window to destroy. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @note The context of the specified window must not be current on any other - * thread when this function is called. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_creation - * @sa glfwCreateWindow - * - * @since Added in version 3.0. Replaces `glfwCloseWindow`. - * - * @ingroup window - */ -GLFWAPI void glfwDestroyWindow(GLFWwindow* window); - -/*! @brief Checks the close flag of the specified window. - * - * This function returns the value of the close flag of the specified window. - * - * @param[in] window The window to query. - * @return The value of the close flag. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @sa @ref window_close - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI int glfwWindowShouldClose(GLFWwindow* window); - -/*! @brief Sets the close flag of the specified window. - * - * This function sets the value of the close flag of the specified window. - * This can be used to override the user's attempt to close the window, or - * to signal that it should be closed. - * - * @param[in] window The window whose flag to change. - * @param[in] value The new value. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @sa @ref window_close - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value); - -/*! @brief Sets the title of the specified window. - * - * This function sets the window title, encoded as UTF-8, of the specified - * window. - * - * @param[in] window The window whose title to change. - * @param[in] title The UTF-8 encoded window title. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @remark @osx The window title will not be updated until the next time you - * process events. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_title - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title); - -/*! @brief Sets the icon for the specified window. - * - * This function sets the icon of the specified window. If passed an array of - * candidate images, those of or closest to the sizes desired by the system are - * selected. If no images are specified, the window reverts to its default - * icon. - * - * The desired image sizes varies depending on platform and system settings. - * The selected images will be rescaled as needed. Good sizes include 16x16, - * 32x32 and 48x48. - * - * @param[in] window The window whose icon to set. - * @param[in] count The number of images in the specified array, or zero to - * revert to the default window icon. - * @param[in] images The images to create the icon from. This is ignored if - * count is zero. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The specified image data is copied before this function - * returns. - * - * @remark @osx The GLFW window has no icon, as it is not a document - * window, so this function does nothing. The dock icon will be the same as - * the application bundle's icon. For more information on bundles, see the - * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) - * in the Mac Developer Library. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_icon - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* images); - -/*! @brief Retrieves the position of the client area of the specified window. - * - * This function retrieves the position, in screen coordinates, of the - * upper-left corner of the client area of the specified window. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] window The window to query. - * @param[out] xpos Where to store the x-coordinate of the upper-left corner of - * the client area, or `NULL`. - * @param[out] ypos Where to store the y-coordinate of the upper-left corner of - * the client area, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_pos - * @sa glfwSetWindowPos - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos); - -/*! @brief Sets the position of the client area of the specified window. - * - * This function sets the position, in screen coordinates, of the upper-left - * corner of the client area of the specified windowed mode window. If the - * window is a full screen window, this function does nothing. - * - * __Do not use this function__ to move an already visible window unless you - * have very good reasons for doing so, as it will confuse and annoy the user. - * - * The window manager may put limits on what positions are allowed. GLFW - * cannot and should not override these limits. - * - * @param[in] window The window to query. - * @param[in] xpos The x-coordinate of the upper-left corner of the client area. - * @param[in] ypos The y-coordinate of the upper-left corner of the client area. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_pos - * @sa glfwGetWindowPos - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos); - -/*! @brief Retrieves the size of the client area of the specified window. - * - * This function retrieves the size, in screen coordinates, of the client area - * of the specified window. If you wish to retrieve the size of the - * framebuffer of the window in pixels, see @ref glfwGetFramebufferSize. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose size to retrieve. - * @param[out] width Where to store the width, in screen coordinates, of the - * client area, or `NULL`. - * @param[out] height Where to store the height, in screen coordinates, of the - * client area, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_size - * @sa glfwSetWindowSize - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowSize(GLFWwindow* window, int* width, int* height); - -/*! @brief Sets the size limits of the specified window. - * - * This function sets the size limits of the client area of the specified - * window. If the window is full screen, the size limits only take effect - * once it is made windowed. If the window is not resizable, this function - * does nothing. - * - * The size limits are applied immediately to a windowed mode window and may - * cause it to be resized. - * - * The maximum dimensions must be greater than or equal to the minimum - * dimensions and all must be greater than or equal to zero. - * - * @param[in] window The window to set limits for. - * @param[in] minwidth The minimum width, in screen coordinates, of the client - * area, or `GLFW_DONT_CARE`. - * @param[in] minheight The minimum height, in screen coordinates, of the - * client area, or `GLFW_DONT_CARE`. - * @param[in] maxwidth The maximum width, in screen coordinates, of the client - * area, or `GLFW_DONT_CARE`. - * @param[in] maxheight The maximum height, in screen coordinates, of the - * client area, or `GLFW_DONT_CARE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. - * - * @remark If you set size limits and an aspect ratio that conflict, the - * results are undefined. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_sizelimits - * @sa glfwSetWindowAspectRatio - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); - -/*! @brief Sets the aspect ratio of the specified window. - * - * This function sets the required aspect ratio of the client area of the - * specified window. If the window is full screen, the aspect ratio only takes - * effect once it is made windowed. If the window is not resizable, this - * function does nothing. - * - * The aspect ratio is specified as a numerator and a denominator and both - * values must be greater than zero. For example, the common 16:9 aspect ratio - * is specified as 16 and 9, respectively. - * - * If the numerator and denominator is set to `GLFW_DONT_CARE` then the aspect - * ratio limit is disabled. - * - * The aspect ratio is applied immediately to a windowed mode window and may - * cause it to be resized. - * - * @param[in] window The window to set limits for. - * @param[in] numer The numerator of the desired aspect ratio, or - * `GLFW_DONT_CARE`. - * @param[in] denom The denominator of the desired aspect ratio, or - * `GLFW_DONT_CARE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. - * - * @remark If you set size limits and an aspect ratio that conflict, the - * results are undefined. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_sizelimits - * @sa glfwSetWindowSizeLimits - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* window, int numer, int denom); - -/*! @brief Sets the size of the client area of the specified window. - * - * This function sets the size, in screen coordinates, of the client area of - * the specified window. - * - * For full screen windows, this function updates the resolution of its desired - * video mode and switches to the video mode closest to it, without affecting - * the window's context. As the context is unaffected, the bit depths of the - * framebuffer remain unchanged. - * - * If you wish to update the refresh rate of the desired video mode in addition - * to its resolution, see @ref glfwSetWindowMonitor. - * - * The window manager may put limits on what sizes are allowed. GLFW cannot - * and should not override these limits. - * - * @param[in] window The window to resize. - * @param[in] width The desired width, in screen coordinates, of the window - * client area. - * @param[in] height The desired height, in screen coordinates, of the window - * client area. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_size - * @sa glfwGetWindowSize - * @sa glfwSetWindowMonitor - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowSize(GLFWwindow* window, int width, int height); - -/*! @brief Retrieves the size of the framebuffer of the specified window. - * - * This function retrieves the size, in pixels, of the framebuffer of the - * specified window. If you wish to retrieve the size of the window in screen - * coordinates, see @ref glfwGetWindowSize. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose framebuffer to query. - * @param[out] width Where to store the width, in pixels, of the framebuffer, - * or `NULL`. - * @param[out] height Where to store the height, in pixels, of the framebuffer, - * or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_fbsize - * @sa glfwSetFramebufferSizeCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height); - -/*! @brief Retrieves the size of the frame of the window. - * - * This function retrieves the size, in screen coordinates, of each edge of the - * frame of the specified window. This size includes the title bar, if the - * window has one. The size of the frame may vary depending on the - * [window-related hints](@ref window_hints_wnd) used to create it. - * - * Because this function retrieves the size of each window frame edge and not - * the offset along a particular coordinate axis, the retrieved values will - * always be zero or positive. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose frame size to query. - * @param[out] left Where to store the size, in screen coordinates, of the left - * edge of the window frame, or `NULL`. - * @param[out] top Where to store the size, in screen coordinates, of the top - * edge of the window frame, or `NULL`. - * @param[out] right Where to store the size, in screen coordinates, of the - * right edge of the window frame, or `NULL`. - * @param[out] bottom Where to store the size, in screen coordinates, of the - * bottom edge of the window frame, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_size - * - * @since Added in version 3.1. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom); - -/*! @brief Iconifies the specified window. - * - * This function iconifies (minimizes) the specified window if it was - * previously restored. If the window is already iconified, this function does - * nothing. - * - * If the specified window is a full screen window, the original monitor - * resolution is restored until the window is restored. - * - * @param[in] window The window to iconify. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_iconify - * @sa glfwRestoreWindow - * @sa glfwMaximizeWindow - * - * @since Added in version 2.1. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwIconifyWindow(GLFWwindow* window); - -/*! @brief Restores the specified window. - * - * This function restores the specified window if it was previously iconified - * (minimized) or maximized. If the window is already restored, this function - * does nothing. - * - * If the specified window is a full screen window, the resolution chosen for - * the window is restored on the selected monitor. - * - * @param[in] window The window to restore. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_iconify - * @sa glfwIconifyWindow - * @sa glfwMaximizeWindow - * - * @since Added in version 2.1. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwRestoreWindow(GLFWwindow* window); - -/*! @brief Maximizes the specified window. - * - * This function maximizes the specified window if it was previously not - * maximized. If the window is already maximized, this function does nothing. - * - * If the specified window is a full screen window, this function does nothing. - * - * @param[in] window The window to maximize. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_iconify - * @sa glfwIconifyWindow - * @sa glfwRestoreWindow - * - * @since Added in GLFW 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwMaximizeWindow(GLFWwindow* window); - -/*! @brief Makes the specified window visible. - * - * This function makes the specified window visible if it was previously - * hidden. If the window is already visible or is in full screen mode, this - * function does nothing. - * - * @param[in] window The window to make visible. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_hide - * @sa glfwHideWindow - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwShowWindow(GLFWwindow* window); - -/*! @brief Hides the specified window. - * - * This function hides the specified window if it was previously visible. If - * the window is already hidden or is in full screen mode, this function does - * nothing. - * - * @param[in] window The window to hide. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_hide - * @sa glfwShowWindow - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwHideWindow(GLFWwindow* window); - -/*! @brief Brings the specified window to front and sets input focus. - * - * This function brings the specified window to front and sets input focus. - * The window should already be visible and not iconified. - * - * By default, both windowed and full screen mode windows are focused when - * initially created. Set the [GLFW_FOCUSED](@ref window_hints_wnd) to disable - * this behavior. - * - * __Do not use this function__ to steal focus from other applications unless - * you are certain that is what the user wants. Focus stealing can be - * extremely disruptive. - * - * @param[in] window The window to give input focus. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_focus - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwFocusWindow(GLFWwindow* window); - -/*! @brief Returns the monitor that the window uses for full screen mode. - * - * This function returns the handle of the monitor that the specified window is - * in full screen on. - * - * @param[in] window The window to query. - * @return The monitor, or `NULL` if the window is in windowed mode or an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_monitor - * @sa glfwSetWindowMonitor - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window); - -/*! @brief Sets the mode, monitor, video mode and placement of a window. - * - * This function sets the monitor that the window uses for full screen mode or, - * if the monitor is `NULL`, makes it windowed mode. - * - * When setting a monitor, this function updates the width, height and refresh - * rate of the desired video mode and switches to the video mode closest to it. - * The window position is ignored when setting a monitor. - * - * When the monitor is `NULL`, the position, width and height are used to - * place the window client area. The refresh rate is ignored when no monitor - * is specified. - * - * If you only wish to update the resolution of a full screen window or the - * size of a windowed mode window, see @ref glfwSetWindowSize. - * - * When a window transitions from full screen to windowed mode, this function - * restores any previous window settings such as whether it is decorated, - * floating, resizable, has size or aspect ratio limits, etc.. - * - * @param[in] window The window whose monitor, size or video mode to set. - * @param[in] monitor The desired monitor, or `NULL` to set windowed mode. - * @param[in] xpos The desired x-coordinate of the upper-left corner of the - * client area. - * @param[in] ypos The desired y-coordinate of the upper-left corner of the - * client area. - * @param[in] width The desired with, in screen coordinates, of the client area - * or video mode. - * @param[in] height The desired height, in screen coordinates, of the client - * area or video mode. - * @param[in] refreshRate The desired refresh rate, in Hz, of the video mode, - * or `GLFW_DONT_CARE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_monitor - * @sa @ref window_full_screen - * @sa glfwGetWindowMonitor - * @sa glfwSetWindowSize - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowMonitor(GLFWwindow* window, GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); - -/*! @brief Returns an attribute of the specified window. - * - * This function returns the value of an attribute of the specified window or - * its OpenGL or OpenGL ES context. - * - * @param[in] window The window to query. - * @param[in] attrib The [window attribute](@ref window_attribs) whose value to - * return. - * @return The value of the attribute, or zero if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @remark Framebuffer related hints are not window attributes. See @ref - * window_attribs_fb for more information. - * - * @remark Zero is a valid value for many window and context related - * attributes so you cannot use a return value of zero as an indication of - * errors. However, this function should not fail as long as it is passed - * valid arguments and the library has been [initialized](@ref intro_init). - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_attribs - * - * @since Added in version 3.0. Replaces `glfwGetWindowParam` and - * `glfwGetGLVersion`. - * - * @ingroup window - */ -GLFWAPI int glfwGetWindowAttrib(GLFWwindow* window, int attrib); - -/*! @brief Sets the user pointer of the specified window. - * - * This function sets the user-defined pointer of the specified window. The - * current value is retained until the window is destroyed. The initial value - * is `NULL`. - * - * @param[in] window The window whose pointer to set. - * @param[in] pointer The new value. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @sa @ref window_userptr - * @sa glfwGetWindowUserPointer - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* window, void* pointer); - -/*! @brief Returns the user pointer of the specified window. - * - * This function returns the current value of the user-defined pointer of the - * specified window. The initial value is `NULL`. - * - * @param[in] window The window whose pointer to return. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @sa @ref window_userptr - * @sa glfwSetWindowUserPointer - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window); - -/*! @brief Sets the position callback for the specified window. - * - * This function sets the position callback of the specified window, which is - * called when the window is moved. The callback is provided with the screen - * position of the upper-left corner of the client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_pos - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindowposfun cbfun); - -/*! @brief Sets the size callback for the specified window. - * - * This function sets the size callback of the specified window, which is - * called when the window is resized. The callback is provided with the size, - * in screen coordinates, of the client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_size - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup window - */ -GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwindowsizefun cbfun); - -/*! @brief Sets the close callback for the specified window. - * - * This function sets the close callback of the specified window, which is - * called when the user attempts to close the window, for example by clicking - * the close widget in the title bar. - * - * The close flag is set before this callback is called, but you can modify it - * at any time with @ref glfwSetWindowShouldClose. - * - * The close callback is not triggered by @ref glfwDestroyWindow. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @remark @osx Selecting Quit from the application menu will trigger the close - * callback for all windows. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_close - * - * @since Added in version 2.5. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup window - */ -GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun cbfun); - -/*! @brief Sets the refresh callback for the specified window. - * - * This function sets the refresh callback of the specified window, which is - * called when the client area of the window needs to be redrawn, for example - * if the window has been exposed after having been covered by another window. - * - * On compositing window systems such as Aero, Compiz or Aqua, where the window - * contents are saved off-screen, this callback may be called only very - * infrequently or never at all. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_refresh - * - * @since Added in version 2.5. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup window - */ -GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun cbfun); - -/*! @brief Sets the focus callback for the specified window. - * - * This function sets the focus callback of the specified window, which is - * called when the window gains or loses input focus. - * - * After the focus callback is called for a window that lost input focus, - * synthetic key and mouse button release events will be generated for all such - * that had been pressed. For more information, see @ref glfwSetKeyCallback - * and @ref glfwSetMouseButtonCallback. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_focus - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun cbfun); - -/*! @brief Sets the iconify callback for the specified window. - * - * This function sets the iconification callback of the specified window, which - * is called when the window is iconified or restored. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_iconify - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyfun cbfun); - -/*! @brief Sets the framebuffer resize callback for the specified window. - * - * This function sets the framebuffer resize callback of the specified window, - * which is called when the framebuffer of the specified window is resized. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_fbsize - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun cbfun); - -/*! @brief Processes all pending events. - * - * This function processes only those events that are already in the event - * queue and then returns immediately. Processing events will cause the window - * and input callbacks associated with those events to be called. - * - * On some platforms, a window move, resize or menu operation will cause event - * processing to block. This is due to how event processing is designed on - * those platforms. You can use the - * [window refresh callback](@ref window_refresh) to redraw the contents of - * your window when necessary during such operations. - * - * On some platforms, certain events are sent directly to the application - * without going through the event queue, causing callbacks to be called - * outside of a call to one of the event processing functions. - * - * Event processing is not required for joystick input to work. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref events - * @sa glfwWaitEvents - * @sa glfwWaitEventsTimeout - * - * @since Added in version 1.0. - * - * @ingroup window - */ -GLFWAPI void glfwPollEvents(void); - -/*! @brief Waits until events are queued and processes them. - * - * This function puts the calling thread to sleep until at least one event is - * available in the event queue. Once one or more events are available, - * it behaves exactly like @ref glfwPollEvents, i.e. the events in the queue - * are processed and the function then returns immediately. Processing events - * will cause the window and input callbacks associated with those events to be - * called. - * - * Since not all events are associated with callbacks, this function may return - * without a callback having been called even if you are monitoring all - * callbacks. - * - * On some platforms, a window move, resize or menu operation will cause event - * processing to block. This is due to how event processing is designed on - * those platforms. You can use the - * [window refresh callback](@ref window_refresh) to redraw the contents of - * your window when necessary during such operations. - * - * On some platforms, certain callbacks may be called outside of a call to one - * of the event processing functions. - * - * If no windows exist, this function returns immediately. For synchronization - * of threads in applications that do not create windows, use your threading - * library of choice. - * - * Event processing is not required for joystick input to work. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref events - * @sa glfwPollEvents - * @sa glfwWaitEventsTimeout - * - * @since Added in version 2.5. - * - * @ingroup window - */ -GLFWAPI void glfwWaitEvents(void); - -/*! @brief Waits with timeout until events are queued and processes them. - * - * This function puts the calling thread to sleep until at least one event is - * available in the event queue, or until the specified timeout is reached. If - * one or more events are available, it behaves exactly like @ref - * glfwPollEvents, i.e. the events in the queue are processed and the function - * then returns immediately. Processing events will cause the window and input - * callbacks associated with those events to be called. - * - * The timeout value must be a positive finite number. - * - * Since not all events are associated with callbacks, this function may return - * without a callback having been called even if you are monitoring all - * callbacks. - * - * On some platforms, a window move, resize or menu operation will cause event - * processing to block. This is due to how event processing is designed on - * those platforms. You can use the - * [window refresh callback](@ref window_refresh) to redraw the contents of - * your window when necessary during such operations. - * - * On some platforms, certain callbacks may be called outside of a call to one - * of the event processing functions. - * - * If no windows exist, this function returns immediately. For synchronization - * of threads in applications that do not create windows, use your threading - * library of choice. - * - * Event processing is not required for joystick input to work. - * - * @param[in] timeout The maximum amount of time, in seconds, to wait. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref events - * @sa glfwPollEvents - * @sa glfwWaitEvents - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwWaitEventsTimeout(double timeout); - -/*! @brief Posts an empty event to the event queue. - * - * This function posts an empty event from the current thread to the event - * queue, causing @ref glfwWaitEvents or @ref glfwWaitEventsTimeout to return. - * - * If no windows exist, this function returns immediately. For synchronization - * of threads in applications that do not create windows, use your threading - * library of choice. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref events - * @sa glfwWaitEvents - * @sa glfwWaitEventsTimeout - * - * @since Added in version 3.1. - * - * @ingroup window - */ -GLFWAPI void glfwPostEmptyEvent(void); - -/*! @brief Returns the value of an input option for the specified window. - * - * This function returns the value of an input option for the specified window. - * The mode must be one of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * @param[in] window The window to query. - * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_ENUM. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa glfwSetInputMode - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode); - -/*! @brief Sets an input option for the specified window. - * - * This function sets an input mode option for the specified window. The mode - * must be one of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * If the mode is `GLFW_CURSOR`, the value must be one of the following cursor - * modes: - * - `GLFW_CURSOR_NORMAL` makes the cursor visible and behaving normally. - * - `GLFW_CURSOR_HIDDEN` makes the cursor invisible when it is over the client - * area of the window but does not restrict the cursor from leaving. - * - `GLFW_CURSOR_DISABLED` hides and grabs the cursor, providing virtual - * and unlimited cursor movement. This is useful for implementing for - * example 3D camera controls. - * - * If the mode is `GLFW_STICKY_KEYS`, the value must be either `GLFW_TRUE` to - * enable sticky keys, or `GLFW_FALSE` to disable it. If sticky keys are - * enabled, a key press will ensure that @ref glfwGetKey returns `GLFW_PRESS` - * the next time it is called even if the key had been released before the - * call. This is useful when you are only interested in whether keys have been - * pressed but not when or in which order. - * - * If the mode is `GLFW_STICKY_MOUSE_BUTTONS`, the value must be either - * `GLFW_TRUE` to enable sticky mouse buttons, or `GLFW_FALSE` to disable it. - * If sticky mouse buttons are enabled, a mouse button press will ensure that - * @ref glfwGetMouseButton returns `GLFW_PRESS` the next time it is called even - * if the mouse button had been released before the call. This is useful when - * you are only interested in whether mouse buttons have been pressed but not - * when or in which order. - * - * @param[in] window The window whose input mode to set. - * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * @param[in] value The new value of the specified input mode. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa glfwGetInputMode - * - * @since Added in version 3.0. Replaces `glfwEnable` and `glfwDisable`. - * - * @ingroup input - */ -GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value); - -/*! @brief Returns the localized name of the specified printable key. - * - * This function returns the localized name of the specified printable key. - * This is intended for displaying key bindings to the user. - * - * If the key is `GLFW_KEY_UNKNOWN`, the scancode is used instead, otherwise - * the scancode is ignored. If a non-printable key or (if the key is - * `GLFW_KEY_UNKNOWN`) a scancode that maps to a non-printable key is - * specified, this function returns `NULL`. - * - * This behavior allows you to pass in the arguments passed to the - * [key callback](@ref input_key) without modification. - * - * The printable keys are: - * - `GLFW_KEY_APOSTROPHE` - * - `GLFW_KEY_COMMA` - * - `GLFW_KEY_MINUS` - * - `GLFW_KEY_PERIOD` - * - `GLFW_KEY_SLASH` - * - `GLFW_KEY_SEMICOLON` - * - `GLFW_KEY_EQUAL` - * - `GLFW_KEY_LEFT_BRACKET` - * - `GLFW_KEY_RIGHT_BRACKET` - * - `GLFW_KEY_BACKSLASH` - * - `GLFW_KEY_WORLD_1` - * - `GLFW_KEY_WORLD_2` - * - `GLFW_KEY_0` to `GLFW_KEY_9` - * - `GLFW_KEY_A` to `GLFW_KEY_Z` - * - `GLFW_KEY_KP_0` to `GLFW_KEY_KP_9` - * - `GLFW_KEY_KP_DECIMAL` - * - `GLFW_KEY_KP_DIVIDE` - * - `GLFW_KEY_KP_MULTIPLY` - * - `GLFW_KEY_KP_SUBTRACT` - * - `GLFW_KEY_KP_ADD` - * - `GLFW_KEY_KP_EQUAL` - * - * @param[in] key The key to query, or `GLFW_KEY_UNKNOWN`. - * @param[in] scancode The scancode of the key to query. - * @return The localized name of the key, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned string is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the next call to @ref - * glfwGetKeyName, or until the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_key_name - * - * @since Added in version 3.2. - * - * @ingroup input - */ -GLFWAPI const char* glfwGetKeyName(int key, int scancode); - -/*! @brief Returns the last reported state of a keyboard key for the specified - * window. - * - * This function returns the last state reported for the specified key to the - * specified window. The returned state is one of `GLFW_PRESS` or - * `GLFW_RELEASE`. The higher-level action `GLFW_REPEAT` is only reported to - * the key callback. - * - * If the `GLFW_STICKY_KEYS` input mode is enabled, this function returns - * `GLFW_PRESS` the first time you call it for a key that was pressed, even if - * that key has already been released. - * - * The key functions deal with physical keys, with [key tokens](@ref keys) - * named after their use on the standard US keyboard layout. If you want to - * input text, use the Unicode character callback instead. - * - * The [modifier key bit masks](@ref mods) are not key tokens and cannot be - * used with this function. - * - * __Do not use this function__ to implement [text input](@ref input_char). - * - * @param[in] window The desired window. - * @param[in] key The desired [keyboard key](@ref keys). `GLFW_KEY_UNKNOWN` is - * not a valid key for this function. - * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_ENUM. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_key - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup input - */ -GLFWAPI int glfwGetKey(GLFWwindow* window, int key); - -/*! @brief Returns the last reported state of a mouse button for the specified - * window. - * - * This function returns the last state reported for the specified mouse button - * to the specified window. The returned state is one of `GLFW_PRESS` or - * `GLFW_RELEASE`. - * - * If the `GLFW_STICKY_MOUSE_BUTTONS` input mode is enabled, this function - * `GLFW_PRESS` the first time you call it for a mouse button that was pressed, - * even if that mouse button has already been released. - * - * @param[in] window The desired window. - * @param[in] button The desired [mouse button](@ref buttons). - * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_ENUM. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_mouse_button - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup input - */ -GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); - -/*! @brief Retrieves the position of the cursor relative to the client area of - * the window. - * - * This function returns the position of the cursor, in screen coordinates, - * relative to the upper-left corner of the client area of the specified - * window. - * - * If the cursor is disabled (with `GLFW_CURSOR_DISABLED`) then the cursor - * position is unbounded and limited only by the minimum and maximum values of - * a `double`. - * - * The coordinate can be converted to their integer equivalents with the - * `floor` function. Casting directly to an integer type works for positive - * coordinates, but fails for negative ones. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] window The desired window. - * @param[out] xpos Where to store the cursor x-coordinate, relative to the - * left edge of the client area, or `NULL`. - * @param[out] ypos Where to store the cursor y-coordinate, relative to the to - * top edge of the client area, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_pos - * @sa glfwSetCursorPos - * - * @since Added in version 3.0. Replaces `glfwGetMousePos`. - * - * @ingroup input - */ -GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos); - -/*! @brief Sets the position of the cursor, relative to the client area of the - * window. - * - * This function sets the position, in screen coordinates, of the cursor - * relative to the upper-left corner of the client area of the specified - * window. The window must have input focus. If the window does not have - * input focus when this function is called, it fails silently. - * - * __Do not use this function__ to implement things like camera controls. GLFW - * already provides the `GLFW_CURSOR_DISABLED` cursor mode that hides the - * cursor, transparently re-centers it and provides unconstrained cursor - * motion. See @ref glfwSetInputMode for more information. - * - * If the cursor mode is `GLFW_CURSOR_DISABLED` then the cursor position is - * unconstrained and limited only by the minimum and maximum values of - * a `double`. - * - * @param[in] window The desired window. - * @param[in] xpos The desired x-coordinate, relative to the left edge of the - * client area. - * @param[in] ypos The desired y-coordinate, relative to the top edge of the - * client area. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_pos - * @sa glfwGetCursorPos - * - * @since Added in version 3.0. Replaces `glfwSetMousePos`. - * - * @ingroup input - */ -GLFWAPI void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos); - -/*! @brief Creates a custom cursor. - * - * Creates a new custom cursor image that can be set for a window with @ref - * glfwSetCursor. The cursor can be destroyed with @ref glfwDestroyCursor. - * Any remaining cursors are destroyed by @ref glfwTerminate. - * - * The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight - * bits per channel. They are arranged canonically as packed sequential rows, - * starting from the top-left corner. - * - * The cursor hotspot is specified in pixels, relative to the upper-left corner - * of the cursor image. Like all other coordinate systems in GLFW, the X-axis - * points to the right and the Y-axis points down. - * - * @param[in] image The desired cursor image. - * @param[in] xhot The desired x-coordinate, in pixels, of the cursor hotspot. - * @param[in] yhot The desired y-coordinate, in pixels, of the cursor hotspot. - * @return The handle of the created cursor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The specified image data is copied before this function - * returns. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwDestroyCursor - * @sa glfwCreateStandardCursor - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot); - -/*! @brief Creates a cursor with a standard shape. - * - * Returns a cursor with a [standard shape](@ref shapes), that can be set for - * a window with @ref glfwSetCursor. - * - * @param[in] shape One of the [standard shapes](@ref shapes). - * @return A new cursor ready to use or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwCreateCursor - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape); - -/*! @brief Destroys a cursor. - * - * This function destroys a cursor previously created with @ref - * glfwCreateCursor. Any remaining cursors will be destroyed by @ref - * glfwTerminate. - * - * @param[in] cursor The cursor object to destroy. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwCreateCursor - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI void glfwDestroyCursor(GLFWcursor* cursor); - -/*! @brief Sets the cursor for the window. - * - * This function sets the cursor image to be used when the cursor is over the - * client area of the specified window. The set cursor will only be visible - * when the [cursor mode](@ref cursor_mode) of the window is - * `GLFW_CURSOR_NORMAL`. - * - * On some platforms, the set cursor may not be visible unless the window also - * has input focus. - * - * @param[in] window The window to set the cursor for. - * @param[in] cursor The cursor to set, or `NULL` to switch back to the default - * arrow cursor. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_object - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor); - -/*! @brief Sets the key callback. - * - * This function sets the key callback of the specified window, which is called - * when a key is pressed, repeated or released. - * - * The key functions deal with physical keys, with layout independent - * [key tokens](@ref keys) named after their values in the standard US keyboard - * layout. If you want to input text, use the - * [character callback](@ref glfwSetCharCallback) instead. - * - * When a window loses input focus, it will generate synthetic key release - * events for all pressed keys. You can tell these events from user-generated - * events by the fact that the synthetic ones are generated after the focus - * loss event has been processed, i.e. after the - * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. - * - * The scancode of a key is specific to that platform or sometimes even to that - * machine. Scancodes are intended to allow users to bind keys that don't have - * a GLFW key token. Such keys have `key` set to `GLFW_KEY_UNKNOWN`, their - * state is not saved and so it cannot be queried with @ref glfwGetKey. - * - * Sometimes GLFW needs to generate synthetic key events, in which case the - * scancode may be zero. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new key callback, or `NULL` to remove the currently - * set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_key - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup input - */ -GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun cbfun); - -/*! @brief Sets the Unicode character callback. - * - * This function sets the character callback of the specified window, which is - * called when a Unicode character is input. - * - * The character callback is intended for Unicode text input. As it deals with - * characters, it is keyboard layout dependent, whereas the - * [key callback](@ref glfwSetKeyCallback) is not. Characters do not map 1:1 - * to physical keys, as a key may produce zero, one or more characters. If you - * want to know whether a specific physical key was pressed or released, see - * the key callback instead. - * - * The character callback behaves as system text input normally does and will - * not be called if modifier keys are held down that would prevent normal text - * input on that platform, for example a Super (Command) key on OS X or Alt key - * on Windows. There is a - * [character with modifiers callback](@ref glfwSetCharModsCallback) that - * receives these events. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_char - * - * @since Added in version 2.4. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup input - */ -GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun cbfun); - -/*! @brief Sets the Unicode character with modifiers callback. - * - * This function sets the character with modifiers callback of the specified - * window, which is called when a Unicode character is input regardless of what - * modifier keys are used. - * - * The character with modifiers callback is intended for implementing custom - * Unicode character input. For regular Unicode text input, see the - * [character callback](@ref glfwSetCharCallback). Like the character - * callback, the character with modifiers callback deals with characters and is - * keyboard layout dependent. Characters do not map 1:1 to physical keys, as - * a key may produce zero, one or more characters. If you want to know whether - * a specific physical key was pressed or released, see the - * [key callback](@ref glfwSetKeyCallback) instead. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_char - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmodsfun cbfun); - -/*! @brief Sets the mouse button callback. - * - * This function sets the mouse button callback of the specified window, which - * is called when a mouse button is pressed or released. - * - * When a window loses input focus, it will generate synthetic mouse button - * release events for all pressed mouse buttons. You can tell these events - * from user-generated events by the fact that the synthetic ones are generated - * after the focus loss event has been processed, i.e. after the - * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_mouse_button - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup input - */ -GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmousebuttonfun cbfun); - -/*! @brief Sets the cursor position callback. - * - * This function sets the cursor position callback of the specified window, - * which is called when the cursor is moved. The callback is provided with the - * position, in screen coordinates, relative to the upper-left corner of the - * client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_pos - * - * @since Added in version 3.0. Replaces `glfwSetMousePosCallback`. - * - * @ingroup input - */ -GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursorposfun cbfun); - -/*! @brief Sets the cursor enter/exit callback. - * - * This function sets the cursor boundary crossing callback of the specified - * window, which is called when the cursor enters or leaves the client area of - * the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_enter - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcursorenterfun cbfun); - -/*! @brief Sets the scroll callback. - * - * This function sets the scroll callback of the specified window, which is - * called when a scrolling device is used, such as a mouse wheel or scrolling - * area of a touchpad. - * - * The scroll callback receives all scrolling input, like that from a mouse - * wheel or a touchpad scrolling area. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new scroll callback, or `NULL` to remove the currently - * set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref scrolling - * - * @since Added in version 3.0. Replaces `glfwSetMouseWheelCallback`. - * - * @ingroup input - */ -GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun cbfun); - -/*! @brief Sets the file drop callback. - * - * This function sets the file drop callback of the specified window, which is - * called when one or more dragged files are dropped on the window. - * - * Because the path array and its strings may have been generated specifically - * for that event, they are not guaranteed to be valid after the callback has - * returned. If you wish to use them after the callback returns, you need to - * make a deep copy. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new file drop callback, or `NULL` to remove the - * currently set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref path_drop - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun cbfun); - -/*! @brief Returns whether the specified joystick is present. - * - * This function returns whether the specified joystick is present. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @return `GLFW_TRUE` if the joystick is present, or `GLFW_FALSE` otherwise. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick - * - * @since Added in version 3.0. Replaces `glfwGetJoystickParam`. - * - * @ingroup input - */ -GLFWAPI int glfwJoystickPresent(int joy); - -/*! @brief Returns the values of all axes of the specified joystick. - * - * This function returns the values of all axes of the specified joystick. - * Each element in the array is a value between -1.0 and 1.0. - * - * Querying a joystick slot with no device present is not an error, but will - * cause this function to return `NULL`. Call @ref glfwJoystickPresent to - * check device presence. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @param[out] count Where to store the number of axis values in the returned - * array. This is set to zero if the joystick is not present or an error - * occurred. - * @return An array of axis values, or `NULL` if the joystick is not present or - * an [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified joystick is - * disconnected, this function is called again for that joystick or the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick_axis - * - * @since Added in version 3.0. Replaces `glfwGetJoystickPos`. - * - * @ingroup input - */ -GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count); - -/*! @brief Returns the state of all buttons of the specified joystick. - * - * This function returns the state of all buttons of the specified joystick. - * Each element in the array is either `GLFW_PRESS` or `GLFW_RELEASE`. - * - * Querying a joystick slot with no device present is not an error, but will - * cause this function to return `NULL`. Call @ref glfwJoystickPresent to - * check device presence. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @param[out] count Where to store the number of button states in the returned - * array. This is set to zero if the joystick is not present or an error - * occurred. - * @return An array of button states, or `NULL` if the joystick is not present - * or an [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified joystick is - * disconnected, this function is called again for that joystick or the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick_button - * - * @since Added in version 2.2. - * @glfw3 Changed to return a dynamic array. - * - * @ingroup input - */ -GLFWAPI const unsigned char* glfwGetJoystickButtons(int joy, int* count); - -/*! @brief Returns the name of the specified joystick. - * - * This function returns the name, encoded as UTF-8, of the specified joystick. - * The returned string is allocated and freed by GLFW. You should not free it - * yourself. - * - * Querying a joystick slot with no device present is not an error, but will - * cause this function to return `NULL`. Call @ref glfwJoystickPresent to - * check device presence. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @return The UTF-8 encoded name of the joystick, or `NULL` if the joystick - * is not present or an [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned string is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified joystick is - * disconnected, this function is called again for that joystick or the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick_name - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI const char* glfwGetJoystickName(int joy); - -/*! @brief Sets the joystick configuration callback. - * - * This function sets the joystick configuration callback, or removes the - * currently set callback. This is called when a joystick is connected to or - * disconnected from the system. - * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick_event - * - * @since Added in version 3.2. - * - * @ingroup input - */ -GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun); - -/*! @brief Sets the clipboard to the specified string. - * - * This function sets the system clipboard to the specified, UTF-8 encoded - * string. - * - * @param[in] window The window that will own the clipboard contents. - * @param[in] string A UTF-8 encoded string. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The specified string is copied before this function - * returns. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref clipboard - * @sa glfwGetClipboardString - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string); - -/*! @brief Returns the contents of the clipboard as a string. - * - * This function returns the contents of the system clipboard, if it contains - * or is convertible to a UTF-8 encoded string. If the clipboard is empty or - * if its contents cannot be converted, `NULL` is returned and a @ref - * GLFW_FORMAT_UNAVAILABLE error is generated. - * - * @param[in] window The window that will request the clipboard contents. - * @return The contents of the clipboard as a UTF-8 encoded string, or `NULL` - * if an [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned string is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the next call to @ref - * glfwGetClipboardString or @ref glfwSetClipboardString, or until the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref clipboard - * @sa glfwSetClipboardString - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window); - -/*! @brief Returns the value of the GLFW timer. - * - * This function returns the value of the GLFW timer. Unless the timer has - * been set using @ref glfwSetTime, the timer measures time elapsed since GLFW - * was initialized. - * - * The resolution of the timer is system dependent, but is usually on the order - * of a few micro- or nanoseconds. It uses the highest-resolution monotonic - * time source on each supported platform. - * - * @return The current value, in seconds, or zero if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Reading and - * writing of the internal timer offset is not atomic, so it needs to be - * externally synchronized with calls to @ref glfwSetTime. - * - * @sa @ref time - * - * @since Added in version 1.0. - * - * @ingroup input - */ -GLFWAPI double glfwGetTime(void); - -/*! @brief Sets the GLFW timer. - * - * This function sets the value of the GLFW timer. It then continues to count - * up from that value. The value must be a positive finite number less than - * or equal to 18446744073.0, which is approximately 584.5 years. - * - * @param[in] time The new value, in seconds. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_VALUE. - * - * @remark The upper limit of the timer is calculated as - * floor((264 - 1) / 109) and is due to implementations - * storing nanoseconds in 64 bits. The limit may be increased in the future. - * - * @thread_safety This function may be called from any thread. Reading and - * writing of the internal timer offset is not atomic, so it needs to be - * externally synchronized with calls to @ref glfwGetTime. - * - * @sa @ref time - * - * @since Added in version 2.2. - * - * @ingroup input - */ -GLFWAPI void glfwSetTime(double time); - -/*! @brief Returns the current value of the raw timer. - * - * This function returns the current value of the raw timer, measured in - * 1 / frequency seconds. To get the frequency, call @ref - * glfwGetTimerFrequency. - * - * @return The value of the timer, or zero if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref time - * @sa glfwGetTimerFrequency - * - * @since Added in version 3.2. - * - * @ingroup input - */ -GLFWAPI uint64_t glfwGetTimerValue(void); - -/*! @brief Returns the frequency, in Hz, of the raw timer. - * - * This function returns the frequency, in Hz, of the raw timer. - * - * @return The frequency of the timer, in Hz, or zero if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref time - * @sa glfwGetTimerValue - * - * @since Added in version 3.2. - * - * @ingroup input - */ -GLFWAPI uint64_t glfwGetTimerFrequency(void); - -/*! @brief Makes the context of the specified window current for the calling - * thread. - * - * This function makes the OpenGL or OpenGL ES context of the specified window - * current on the calling thread. A context can only be made current on - * a single thread at a time and each thread can have only a single current - * context at a time. - * - * By default, making a context non-current implicitly forces a pipeline flush. - * On machines that support `GL_KHR_context_flush_control`, you can control - * whether a context performs this flush by setting the - * [GLFW_CONTEXT_RELEASE_BEHAVIOR](@ref window_hints_ctx) window hint. - * - * The specified window must have an OpenGL or OpenGL ES context. Specifying - * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT - * error. - * - * @param[in] window The window whose context to make current, or `NULL` to - * detach the current context. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref context_current - * @sa glfwGetCurrentContext - * - * @since Added in version 3.0. - * - * @ingroup context - */ -GLFWAPI void glfwMakeContextCurrent(GLFWwindow* window); - -/*! @brief Returns the window whose context is current on the calling thread. - * - * This function returns the window whose OpenGL or OpenGL ES context is - * current on the calling thread. - * - * @return The window whose context is current, or `NULL` if no window's - * context is current. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref context_current - * @sa glfwMakeContextCurrent - * - * @since Added in version 3.0. - * - * @ingroup context - */ -GLFWAPI GLFWwindow* glfwGetCurrentContext(void); - -/*! @brief Swaps the front and back buffers of the specified window. - * - * This function swaps the front and back buffers of the specified window when - * rendering with OpenGL or OpenGL ES. If the swap interval is greater than - * zero, the GPU driver waits the specified number of screen updates before - * swapping the buffers. - * - * The specified window must have an OpenGL or OpenGL ES context. Specifying - * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT - * error. - * - * This function does not apply to Vulkan. If you are rendering with Vulkan, - * see `vkQueuePresentKHR` instead. - * - * @param[in] window The window whose buffers to swap. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR. - * - * @remark __EGL:__ The context of the specified window must be current on the - * calling thread. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref buffer_swap - * @sa glfwSwapInterval - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSwapBuffers(GLFWwindow* window); - -/*! @brief Sets the swap interval for the current context. - * - * This function sets the swap interval for the current OpenGL or OpenGL ES - * context, i.e. the number of screen updates to wait from the time @ref - * glfwSwapBuffers was called before swapping the buffers and returning. This - * is sometimes called _vertical synchronization_, _vertical retrace - * synchronization_ or just _vsync_. - * - * Contexts that support either of the `WGL_EXT_swap_control_tear` and - * `GLX_EXT_swap_control_tear` extensions also accept negative swap intervals, - * which allow the driver to swap even if a frame arrives a little bit late. - * You can check for the presence of these extensions using @ref - * glfwExtensionSupported. For more information about swap tearing, see the - * extension specifications. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * This function does not apply to Vulkan. If you are rendering with Vulkan, - * see the present mode of your swapchain instead. - * - * @param[in] interval The minimum number of screen updates to wait for - * until the buffers are swapped by @ref glfwSwapBuffers. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR. - * - * @remark This function is not called during context creation, leaving the - * swap interval set to whatever is the default on that platform. This is done - * because some swap interval extensions used by GLFW do not allow the swap - * interval to be reset to zero once it has been set to a non-zero value. - * - * @remark Some GPU drivers do not honor the requested swap interval, either - * because of a user setting that overrides the application's request or due to - * bugs in the driver. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref buffer_swap - * @sa glfwSwapBuffers - * - * @since Added in version 1.0. - * - * @ingroup context - */ -GLFWAPI void glfwSwapInterval(int interval); - -/*! @brief Returns whether the specified extension is available. - * - * This function returns whether the specified - * [API extension](@ref context_glext) is supported by the current OpenGL or - * OpenGL ES context. It searches both for client API extension and context - * creation API extensions. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * As this functions retrieves and searches one or more extension strings each - * call, it is recommended that you cache its results if it is going to be used - * frequently. The extension strings will not change during the lifetime of - * a context, so there is no danger in doing this. - * - * This function does not apply to Vulkan. If you are using Vulkan, see @ref - * glfwGetRequiredInstanceExtensions, `vkEnumerateInstanceExtensionProperties` - * and `vkEnumerateDeviceExtensionProperties` instead. - * - * @param[in] extension The ASCII encoded name of the extension. - * @return `GLFW_TRUE` if the extension is available, or `GLFW_FALSE` - * otherwise. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_CURRENT_CONTEXT, @ref GLFW_INVALID_VALUE and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref context_glext - * @sa glfwGetProcAddress - * - * @since Added in version 1.0. - * - * @ingroup context - */ -GLFWAPI int glfwExtensionSupported(const char* extension); - -/*! @brief Returns the address of the specified function for the current - * context. - * - * This function returns the address of the specified OpenGL or OpenGL ES - * [core or extension function](@ref context_glext), if it is supported - * by the current context. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * This function does not apply to Vulkan. If you are rendering with Vulkan, - * see @ref glfwGetInstanceProcAddress, `vkGetInstanceProcAddr` and - * `vkGetDeviceProcAddr` instead. - * - * @param[in] procname The ASCII encoded name of the function. - * @return The address of the function, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR. - * - * @remark The address of a given function is not guaranteed to be the same - * between contexts. - * - * @remark This function may return a non-`NULL` address despite the - * associated version or extension not being available. Always check the - * context version or extension string first. - * - * @pointer_lifetime The returned function pointer is valid until the context - * is destroyed or the library is terminated. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref context_glext - * @sa glfwExtensionSupported - * - * @since Added in version 1.0. - * - * @ingroup context - */ -GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname); - -/*! @brief Returns whether the Vulkan loader has been found. - * - * This function returns whether the Vulkan loader has been found. This check - * is performed by @ref glfwInit. - * - * The availability of a Vulkan loader does not by itself guarantee that window - * surface creation or even device creation is possible. Call @ref - * glfwGetRequiredInstanceExtensions to check whether the extensions necessary - * for Vulkan surface creation are available and @ref - * glfwGetPhysicalDevicePresentationSupport to check whether a queue family of - * a physical device supports image presentation. - * - * @return `GLFW_TRUE` if Vulkan is available, or `GLFW_FALSE` otherwise. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref vulkan_support - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI int glfwVulkanSupported(void); - -/*! @brief Returns the Vulkan instance extensions required by GLFW. - * - * This function returns an array of names of Vulkan instance extensions required - * by GLFW for creating Vulkan surfaces for GLFW windows. If successful, the - * list will always contains `VK_KHR_surface`, so if you don't require any - * additional extensions you can pass this list directly to the - * `VkInstanceCreateInfo` struct. - * - * If Vulkan is not available on the machine, this function returns `NULL` and - * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported - * to check whether Vulkan is available. - * - * If Vulkan is available but no set of extensions allowing window surface - * creation was found, this function returns `NULL`. You may still use Vulkan - * for off-screen rendering and compute work. - * - * @param[out] count Where to store the number of extensions in the returned - * array. This is set to zero if an error occurred. - * @return An array of ASCII encoded extension names, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_API_UNAVAILABLE. - * - * @remarks Additional extensions may be required by future versions of GLFW. - * You should check if any extensions you wish to enable are already in the - * returned array, as it is an error to specify an extension more than once in - * the `VkInstanceCreateInfo` struct. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is guaranteed to be valid only until the - * library is terminated. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref vulkan_ext - * @sa glfwCreateWindowSurface - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count); - -#if defined(VK_VERSION_1_0) - -/*! @brief Returns the address of the specified Vulkan instance function. - * - * This function returns the address of the specified Vulkan core or extension - * function for the specified instance. If instance is set to `NULL` it can - * return any function exported from the Vulkan loader, including at least the - * following functions: - * - * - `vkEnumerateInstanceExtensionProperties` - * - `vkEnumerateInstanceLayerProperties` - * - `vkCreateInstance` - * - `vkGetInstanceProcAddr` - * - * If Vulkan is not available on the machine, this function returns `NULL` and - * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported - * to check whether Vulkan is available. - * - * This function is equivalent to calling `vkGetInstanceProcAddr` with - * a platform-specific query of the Vulkan loader as a fallback. - * - * @param[in] instance The Vulkan instance to query, or `NULL` to retrieve - * functions related to instance creation. - * @param[in] procname The ASCII encoded name of the function. - * @return The address of the function, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_API_UNAVAILABLE. - * - * @pointer_lifetime The returned function pointer is valid until the library - * is terminated. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref vulkan_proc - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, const char* procname); - -/*! @brief Returns whether the specified queue family can present images. - * - * This function returns whether the specified queue family of the specified - * physical device supports presentation to the platform GLFW was built for. - * - * If Vulkan or the required window surface creation instance extensions are - * not available on the machine, or if the specified instance was not created - * with the required extensions, this function returns `GLFW_FALSE` and - * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported - * to check whether Vulkan is available and @ref - * glfwGetRequiredInstanceExtensions to check what instance extensions are - * required. - * - * @param[in] instance The instance that the physical device belongs to. - * @param[in] device The physical device that the queue family belongs to. - * @param[in] queuefamily The index of the queue family to query. - * @return `GLFW_TRUE` if the queue family supports presentation, or - * `GLFW_FALSE` otherwise. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function may be called from any thread. For - * synchronization details of Vulkan objects, see the Vulkan specification. - * - * @sa @ref vulkan_present - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); - -/*! @brief Creates a Vulkan surface for the specified window. - * - * This function creates a Vulkan surface for the specified window. - * - * If the Vulkan loader was not found at initialization, this function returns - * `VK_ERROR_INITIALIZATION_FAILED` and generates a @ref GLFW_API_UNAVAILABLE - * error. Call @ref glfwVulkanSupported to check whether the Vulkan loader was - * found. - * - * If the required window surface creation instance extensions are not - * available or if the specified instance was not created with these extensions - * enabled, this function returns `VK_ERROR_EXTENSION_NOT_PRESENT` and - * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref - * glfwGetRequiredInstanceExtensions to check what instance extensions are - * required. - * - * The window surface must be destroyed before the specified Vulkan instance. - * It is the responsibility of the caller to destroy the window surface. GLFW - * does not destroy it for you. Call `vkDestroySurfaceKHR` to destroy the - * surface. - * - * @param[in] instance The Vulkan instance to create the surface in. - * @param[in] window The window to create the surface for. - * @param[in] allocator The allocator to use, or `NULL` to use the default - * allocator. - * @param[out] surface Where to store the handle of the surface. This is set - * to `VK_NULL_HANDLE` if an error occurred. - * @return `VK_SUCCESS` if successful, or a Vulkan error code if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. - * - * @remarks If an error occurs before the creation call is made, GLFW returns - * the Vulkan error code most appropriate for the error. Appropriate use of - * @ref glfwVulkanSupported and @ref glfwGetRequiredInstanceExtensions should - * eliminate almost all occurrences of these errors. - * - * @thread_safety This function may be called from any thread. For - * synchronization details of Vulkan objects, see the Vulkan specification. - * - * @sa @ref vulkan_surface - * @sa glfwGetRequiredInstanceExtensions - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); - -#endif /*VK_VERSION_1_0*/ - - -/************************************************************************* - * Global definition cleanup - *************************************************************************/ - -/* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */ - -#ifdef GLFW_WINGDIAPI_DEFINED - #undef WINGDIAPI - #undef GLFW_WINGDIAPI_DEFINED -#endif - -#ifdef GLFW_CALLBACK_DEFINED - #undef CALLBACK - #undef GLFW_CALLBACK_DEFINED -#endif - -/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */ - - -#ifdef __cplusplus -} -#endif - -#endif /* _glfw3_h_ */ - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW/glfw3native.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW/glfw3native.h deleted file mode 100644 index 30e1a57..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW/glfw3native.h +++ /dev/null @@ -1,456 +0,0 @@ -/************************************************************************* - * GLFW 3.2 - www.glfw.org - * A library for OpenGL, window and input - *------------------------------------------------------------------------ - * Copyright (c) 2002-2006 Marcus Geelnard - * Copyright (c) 2006-2016 Camilla Berglund - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would - * be appreciated but is not required. - * - * 2. Altered source versions must be plainly marked as such, and must not - * be misrepresented as being the original software. - * - * 3. This notice may not be removed or altered from any source - * distribution. - * - *************************************************************************/ - -#ifndef _glfw3_native_h_ -#define _glfw3_native_h_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/************************************************************************* - * Doxygen documentation - *************************************************************************/ - -/*! @file glfw3native.h - * @brief The header of the native access functions. - * - * This is the header file of the native access functions. See @ref native for - * more information. - */ -/*! @defgroup native Native access - * - * **By using the native access functions you assert that you know what you're - * doing and how to fix problems caused by using them. If you don't, you - * shouldn't be using them.** - * - * Before the inclusion of @ref glfw3native.h, you may define exactly one - * window system API macro and zero or more context creation API macros. - * - * The chosen backends must match those the library was compiled for. Failure - * to do this will cause a link-time error. - * - * The available window API macros are: - * * `GLFW_EXPOSE_NATIVE_WIN32` - * * `GLFW_EXPOSE_NATIVE_COCOA` - * * `GLFW_EXPOSE_NATIVE_X11` - * * `GLFW_EXPOSE_NATIVE_WAYLAND` - * * `GLFW_EXPOSE_NATIVE_MIR` - * - * The available context API macros are: - * * `GLFW_EXPOSE_NATIVE_WGL` - * * `GLFW_EXPOSE_NATIVE_NSGL` - * * `GLFW_EXPOSE_NATIVE_GLX` - * * `GLFW_EXPOSE_NATIVE_EGL` - * - * These macros select which of the native access functions that are declared - * and which platform-specific headers to include. It is then up your (by - * definition platform-specific) code to handle which of these should be - * defined. - */ - - -/************************************************************************* - * System headers and types - *************************************************************************/ - -#if defined(GLFW_EXPOSE_NATIVE_WIN32) - // This is a workaround for the fact that glfw3.h needs to export APIENTRY (for - // example to allow applications to correctly declare a GL_ARB_debug_output - // callback) but windows.h assumes no one will define APIENTRY before it does - #undef APIENTRY - #include -#elif defined(GLFW_EXPOSE_NATIVE_COCOA) - #include - #if defined(__OBJC__) - #import - #else - typedef void* id; - #endif -#elif defined(GLFW_EXPOSE_NATIVE_X11) - #include - #include -#elif defined(GLFW_EXPOSE_NATIVE_WAYLAND) - #include -#elif defined(GLFW_EXPOSE_NATIVE_MIR) - #include -#endif - -#if defined(GLFW_EXPOSE_NATIVE_WGL) - /* WGL is declared by windows.h */ -#endif -#if defined(GLFW_EXPOSE_NATIVE_NSGL) - /* NSGL is declared by Cocoa.h */ -#endif -#if defined(GLFW_EXPOSE_NATIVE_GLX) - #include -#endif -#if defined(GLFW_EXPOSE_NATIVE_EGL) - #include -#endif - - -/************************************************************************* - * Functions - *************************************************************************/ - -#if defined(GLFW_EXPOSE_NATIVE_WIN32) -/*! @brief Returns the adapter device name of the specified monitor. - * - * @return The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`) - * of the specified monitor, or `NULL` if an [error](@ref error_handling) - * occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor); - -/*! @brief Returns the display device name of the specified monitor. - * - * @return The UTF-8 encoded display device name (for example - * `\\.\DISPLAY1\Monitor0`) of the specified monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor); - -/*! @brief Returns the `HWND` of the specified window. - * - * @return The `HWND` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_WGL) -/*! @brief Returns the `HGLRC` of the specified window. - * - * @return The `HGLRC` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_COCOA) -/*! @brief Returns the `CGDirectDisplayID` of the specified monitor. - * - * @return The `CGDirectDisplayID` of the specified monitor, or - * `kCGNullDirectDisplay` if an [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor); - -/*! @brief Returns the `NSWindow` of the specified window. - * - * @return The `NSWindow` of the specified window, or `nil` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_NSGL) -/*! @brief Returns the `NSOpenGLContext` of the specified window. - * - * @return The `NSOpenGLContext` of the specified window, or `nil` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI id glfwGetNSGLContext(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_X11) -/*! @brief Returns the `Display` used by GLFW. - * - * @return The `Display` used by GLFW, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI Display* glfwGetX11Display(void); - -/*! @brief Returns the `RRCrtc` of the specified monitor. - * - * @return The `RRCrtc` of the specified monitor, or `None` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor); - -/*! @brief Returns the `RROutput` of the specified monitor. - * - * @return The `RROutput` of the specified monitor, or `None` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor); - -/*! @brief Returns the `Window` of the specified window. - * - * @return The `Window` of the specified window, or `None` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI Window glfwGetX11Window(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_GLX) -/*! @brief Returns the `GLXContext` of the specified window. - * - * @return The `GLXContext` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window); - -/*! @brief Returns the `GLXWindow` of the specified window. - * - * @return The `GLXWindow` of the specified window, or `None` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_WAYLAND) -/*! @brief Returns the `struct wl_display*` used by GLFW. - * - * @return The `struct wl_display*` used by GLFW, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI struct wl_display* glfwGetWaylandDisplay(void); - -/*! @brief Returns the `struct wl_output*` of the specified monitor. - * - * @return The `struct wl_output*` of the specified monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor); - -/*! @brief Returns the main `struct wl_surface*` of the specified window. - * - * @return The main `struct wl_surface*` of the specified window, or `NULL` if - * an [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_MIR) -/*! @brief Returns the `MirConnection*` used by GLFW. - * - * @return The `MirConnection*` used by GLFW, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI MirConnection* glfwGetMirDisplay(void); - -/*! @brief Returns the Mir output ID of the specified monitor. - * - * @return The Mir output ID of the specified monitor, or zero if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI int glfwGetMirMonitor(GLFWmonitor* monitor); - -/*! @brief Returns the `MirSurface*` of the specified window. - * - * @return The `MirSurface*` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI MirSurface* glfwGetMirWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_EGL) -/*! @brief Returns the `EGLDisplay` used by GLFW. - * - * @return The `EGLDisplay` used by GLFW, or `EGL_NO_DISPLAY` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI EGLDisplay glfwGetEGLDisplay(void); - -/*! @brief Returns the `EGLContext` of the specified window. - * - * @return The `EGLContext` of the specified window, or `EGL_NO_CONTEXT` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window); - -/*! @brief Returns the `EGLSurface` of the specified window. - * - * @return The `EGLSurface` of the specified window, or `EGL_NO_SURFACE` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _glfw3_native_h_ */ - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_init.m b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_init.m deleted file mode 100644 index f10d638..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_init.m +++ /dev/null @@ -1,398 +0,0 @@ -//======================================================================== -// GLFW 3.2 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" -#include // For MAXPATHLEN - - -#if defined(_GLFW_USE_CHDIR) - -// Change to our application bundle's resources directory, if present -// -static void changeToResourcesDirectory(void) -{ - char resourcesPath[MAXPATHLEN]; - - CFBundleRef bundle = CFBundleGetMainBundle(); - if (!bundle) - return; - - CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(bundle); - - CFStringRef last = CFURLCopyLastPathComponent(resourcesURL); - if (CFStringCompare(CFSTR("Resources"), last, 0) != kCFCompareEqualTo) - { - CFRelease(last); - CFRelease(resourcesURL); - return; - } - - CFRelease(last); - - if (!CFURLGetFileSystemRepresentation(resourcesURL, - true, - (UInt8*) resourcesPath, - MAXPATHLEN)) - { - CFRelease(resourcesURL); - return; - } - - CFRelease(resourcesURL); - - chdir(resourcesPath); -} - -#endif /* _GLFW_USE_CHDIR */ - -// Create key code translation tables -// -static void createKeyTables(void) -{ - int scancode; - - memset(_glfw.ns.publicKeys, -1, sizeof(_glfw.ns.publicKeys)); - memset(_glfw.ns.nativeKeys, -1, sizeof(_glfw.ns.nativeKeys)); - - _glfw.ns.publicKeys[0x1D] = GLFW_KEY_0; - _glfw.ns.publicKeys[0x12] = GLFW_KEY_1; - _glfw.ns.publicKeys[0x13] = GLFW_KEY_2; - _glfw.ns.publicKeys[0x14] = GLFW_KEY_3; - _glfw.ns.publicKeys[0x15] = GLFW_KEY_4; - _glfw.ns.publicKeys[0x17] = GLFW_KEY_5; - _glfw.ns.publicKeys[0x16] = GLFW_KEY_6; - _glfw.ns.publicKeys[0x1A] = GLFW_KEY_7; - _glfw.ns.publicKeys[0x1C] = GLFW_KEY_8; - _glfw.ns.publicKeys[0x19] = GLFW_KEY_9; - _glfw.ns.publicKeys[0x00] = GLFW_KEY_A; - _glfw.ns.publicKeys[0x0B] = GLFW_KEY_B; - _glfw.ns.publicKeys[0x08] = GLFW_KEY_C; - _glfw.ns.publicKeys[0x02] = GLFW_KEY_D; - _glfw.ns.publicKeys[0x0E] = GLFW_KEY_E; - _glfw.ns.publicKeys[0x03] = GLFW_KEY_F; - _glfw.ns.publicKeys[0x05] = GLFW_KEY_G; - _glfw.ns.publicKeys[0x04] = GLFW_KEY_H; - _glfw.ns.publicKeys[0x22] = GLFW_KEY_I; - _glfw.ns.publicKeys[0x26] = GLFW_KEY_J; - _glfw.ns.publicKeys[0x28] = GLFW_KEY_K; - _glfw.ns.publicKeys[0x25] = GLFW_KEY_L; - _glfw.ns.publicKeys[0x2E] = GLFW_KEY_M; - _glfw.ns.publicKeys[0x2D] = GLFW_KEY_N; - _glfw.ns.publicKeys[0x1F] = GLFW_KEY_O; - _glfw.ns.publicKeys[0x23] = GLFW_KEY_P; - _glfw.ns.publicKeys[0x0C] = GLFW_KEY_Q; - _glfw.ns.publicKeys[0x0F] = GLFW_KEY_R; - _glfw.ns.publicKeys[0x01] = GLFW_KEY_S; - _glfw.ns.publicKeys[0x11] = GLFW_KEY_T; - _glfw.ns.publicKeys[0x20] = GLFW_KEY_U; - _glfw.ns.publicKeys[0x09] = GLFW_KEY_V; - _glfw.ns.publicKeys[0x0D] = GLFW_KEY_W; - _glfw.ns.publicKeys[0x07] = GLFW_KEY_X; - _glfw.ns.publicKeys[0x10] = GLFW_KEY_Y; - _glfw.ns.publicKeys[0x06] = GLFW_KEY_Z; - - _glfw.ns.publicKeys[0x27] = GLFW_KEY_APOSTROPHE; - _glfw.ns.publicKeys[0x2A] = GLFW_KEY_BACKSLASH; - _glfw.ns.publicKeys[0x2B] = GLFW_KEY_COMMA; - _glfw.ns.publicKeys[0x18] = GLFW_KEY_EQUAL; - _glfw.ns.publicKeys[0x32] = GLFW_KEY_GRAVE_ACCENT; - _glfw.ns.publicKeys[0x21] = GLFW_KEY_LEFT_BRACKET; - _glfw.ns.publicKeys[0x1B] = GLFW_KEY_MINUS; - _glfw.ns.publicKeys[0x2F] = GLFW_KEY_PERIOD; - _glfw.ns.publicKeys[0x1E] = GLFW_KEY_RIGHT_BRACKET; - _glfw.ns.publicKeys[0x29] = GLFW_KEY_SEMICOLON; - _glfw.ns.publicKeys[0x2C] = GLFW_KEY_SLASH; - _glfw.ns.publicKeys[0x0A] = GLFW_KEY_WORLD_1; - - _glfw.ns.publicKeys[0x33] = GLFW_KEY_BACKSPACE; - _glfw.ns.publicKeys[0x39] = GLFW_KEY_CAPS_LOCK; - _glfw.ns.publicKeys[0x75] = GLFW_KEY_DELETE; - _glfw.ns.publicKeys[0x7D] = GLFW_KEY_DOWN; - _glfw.ns.publicKeys[0x77] = GLFW_KEY_END; - _glfw.ns.publicKeys[0x24] = GLFW_KEY_ENTER; - _glfw.ns.publicKeys[0x35] = GLFW_KEY_ESCAPE; - _glfw.ns.publicKeys[0x7A] = GLFW_KEY_F1; - _glfw.ns.publicKeys[0x78] = GLFW_KEY_F2; - _glfw.ns.publicKeys[0x63] = GLFW_KEY_F3; - _glfw.ns.publicKeys[0x76] = GLFW_KEY_F4; - _glfw.ns.publicKeys[0x60] = GLFW_KEY_F5; - _glfw.ns.publicKeys[0x61] = GLFW_KEY_F6; - _glfw.ns.publicKeys[0x62] = GLFW_KEY_F7; - _glfw.ns.publicKeys[0x64] = GLFW_KEY_F8; - _glfw.ns.publicKeys[0x65] = GLFW_KEY_F9; - _glfw.ns.publicKeys[0x6D] = GLFW_KEY_F10; - _glfw.ns.publicKeys[0x67] = GLFW_KEY_F11; - _glfw.ns.publicKeys[0x6F] = GLFW_KEY_F12; - _glfw.ns.publicKeys[0x69] = GLFW_KEY_F13; - _glfw.ns.publicKeys[0x6B] = GLFW_KEY_F14; - _glfw.ns.publicKeys[0x71] = GLFW_KEY_F15; - _glfw.ns.publicKeys[0x6A] = GLFW_KEY_F16; - _glfw.ns.publicKeys[0x40] = GLFW_KEY_F17; - _glfw.ns.publicKeys[0x4F] = GLFW_KEY_F18; - _glfw.ns.publicKeys[0x50] = GLFW_KEY_F19; - _glfw.ns.publicKeys[0x5A] = GLFW_KEY_F20; - _glfw.ns.publicKeys[0x73] = GLFW_KEY_HOME; - _glfw.ns.publicKeys[0x72] = GLFW_KEY_INSERT; - _glfw.ns.publicKeys[0x7B] = GLFW_KEY_LEFT; - _glfw.ns.publicKeys[0x3A] = GLFW_KEY_LEFT_ALT; - _glfw.ns.publicKeys[0x3B] = GLFW_KEY_LEFT_CONTROL; - _glfw.ns.publicKeys[0x38] = GLFW_KEY_LEFT_SHIFT; - _glfw.ns.publicKeys[0x37] = GLFW_KEY_LEFT_SUPER; - _glfw.ns.publicKeys[0x6E] = GLFW_KEY_MENU; - _glfw.ns.publicKeys[0x47] = GLFW_KEY_NUM_LOCK; - _glfw.ns.publicKeys[0x79] = GLFW_KEY_PAGE_DOWN; - _glfw.ns.publicKeys[0x74] = GLFW_KEY_PAGE_UP; - _glfw.ns.publicKeys[0x7C] = GLFW_KEY_RIGHT; - _glfw.ns.publicKeys[0x3D] = GLFW_KEY_RIGHT_ALT; - _glfw.ns.publicKeys[0x3E] = GLFW_KEY_RIGHT_CONTROL; - _glfw.ns.publicKeys[0x3C] = GLFW_KEY_RIGHT_SHIFT; - _glfw.ns.publicKeys[0x36] = GLFW_KEY_RIGHT_SUPER; - _glfw.ns.publicKeys[0x31] = GLFW_KEY_SPACE; - _glfw.ns.publicKeys[0x30] = GLFW_KEY_TAB; - _glfw.ns.publicKeys[0x7E] = GLFW_KEY_UP; - - _glfw.ns.publicKeys[0x52] = GLFW_KEY_KP_0; - _glfw.ns.publicKeys[0x53] = GLFW_KEY_KP_1; - _glfw.ns.publicKeys[0x54] = GLFW_KEY_KP_2; - _glfw.ns.publicKeys[0x55] = GLFW_KEY_KP_3; - _glfw.ns.publicKeys[0x56] = GLFW_KEY_KP_4; - _glfw.ns.publicKeys[0x57] = GLFW_KEY_KP_5; - _glfw.ns.publicKeys[0x58] = GLFW_KEY_KP_6; - _glfw.ns.publicKeys[0x59] = GLFW_KEY_KP_7; - _glfw.ns.publicKeys[0x5B] = GLFW_KEY_KP_8; - _glfw.ns.publicKeys[0x5C] = GLFW_KEY_KP_9; - _glfw.ns.publicKeys[0x45] = GLFW_KEY_KP_ADD; - _glfw.ns.publicKeys[0x41] = GLFW_KEY_KP_DECIMAL; - _glfw.ns.publicKeys[0x4B] = GLFW_KEY_KP_DIVIDE; - _glfw.ns.publicKeys[0x4C] = GLFW_KEY_KP_ENTER; - _glfw.ns.publicKeys[0x51] = GLFW_KEY_KP_EQUAL; - _glfw.ns.publicKeys[0x43] = GLFW_KEY_KP_MULTIPLY; - _glfw.ns.publicKeys[0x4E] = GLFW_KEY_KP_SUBTRACT; - - for (scancode = 0; scancode < 256; scancode++) - { - // Store the reverse translation for faster key name lookup - if (_glfw.ns.publicKeys[scancode] >= 0) - _glfw.ns.nativeKeys[_glfw.ns.publicKeys[scancode]] = scancode; - } -} - -// Retrieve Unicode data for the current keyboard layout -// -static GLFWbool updateUnicodeDataNS(void) -{ - if (_glfw.ns.inputSource) - { - CFRelease(_glfw.ns.inputSource); - _glfw.ns.inputSource = NULL; - _glfw.ns.unicodeData = nil; - } - - _glfw.ns.inputSource = TISCopyCurrentKeyboardLayoutInputSource(); - if (!_glfw.ns.inputSource) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve keyboard layout input source"); - return GLFW_FALSE; - } - - _glfw.ns.unicodeData = TISGetInputSourceProperty(_glfw.ns.inputSource, - kTISPropertyUnicodeKeyLayoutData); - if (!_glfw.ns.unicodeData) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve keyboard layout Unicode data"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -// Load HIToolbox.framework and the TIS symbols we need from it -// -static GLFWbool initializeTIS(void) -{ - // This works only because Cocoa has already loaded it properly - _glfw.ns.tis.bundle = CFBundleGetBundleWithIdentifier(CFSTR("com.apple.HIToolbox")); - if (!_glfw.ns.tis.bundle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to load HIToolbox.framework"); - return GLFW_FALSE; - } - - CFStringRef* kPropertyUnicodeKeyLayoutData = - CFBundleGetDataPointerForName(_glfw.ns.tis.bundle, - CFSTR("kTISPropertyUnicodeKeyLayoutData")); - CFStringRef* kNotifySelectedKeyboardInputSourceChanged = - CFBundleGetDataPointerForName(_glfw.ns.tis.bundle, - CFSTR("kTISNotifySelectedKeyboardInputSourceChanged")); - _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource = - CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, - CFSTR("TISCopyCurrentKeyboardLayoutInputSource")); - _glfw.ns.tis.GetInputSourceProperty = - CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, - CFSTR("TISGetInputSourceProperty")); - _glfw.ns.tis.GetKbdType = - CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, - CFSTR("LMGetKbdType")); - - if (!kPropertyUnicodeKeyLayoutData || - !kNotifySelectedKeyboardInputSourceChanged || - !TISCopyCurrentKeyboardLayoutInputSource || - !TISGetInputSourceProperty || - !LMGetKbdType) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to load TIS API symbols"); - return GLFW_FALSE; - } - - _glfw.ns.tis.kPropertyUnicodeKeyLayoutData = - *kPropertyUnicodeKeyLayoutData; - _glfw.ns.tis.kNotifySelectedKeyboardInputSourceChanged = - *kNotifySelectedKeyboardInputSourceChanged; - - return updateUnicodeDataNS(); -} - -@interface GLFWLayoutListener : NSObject -@end - -@implementation GLFWLayoutListener - -- (void)selectedKeyboardInputSourceChanged:(NSObject* )object -{ - updateUnicodeDataNS(); -} - -@end - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - _glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; - - _glfw.ns.listener = [[GLFWLayoutListener alloc] init]; - [[NSDistributedNotificationCenter defaultCenter] - addObserver:_glfw.ns.listener - selector:@selector(selectedKeyboardInputSourceChanged:) - name:(__bridge NSString*)kTISNotifySelectedKeyboardInputSourceChanged - object:nil]; - -#if defined(_GLFW_USE_CHDIR) - changeToResourcesDirectory(); -#endif - - createKeyTables(); - - _glfw.ns.eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState); - if (!_glfw.ns.eventSource) - return GLFW_FALSE; - - CGEventSourceSetLocalEventsSuppressionInterval(_glfw.ns.eventSource, 0.0); - - if (!initializeTIS()) - return GLFW_FALSE; - - if (!_glfwInitThreadLocalStoragePOSIX()) - return GLFW_FALSE; - - _glfwInitTimerNS(); - _glfwInitJoysticksNS(); - - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - if (_glfw.ns.inputSource) - { - CFRelease(_glfw.ns.inputSource); - _glfw.ns.inputSource = NULL; - _glfw.ns.unicodeData = nil; - } - - if (_glfw.ns.eventSource) - { - CFRelease(_glfw.ns.eventSource); - _glfw.ns.eventSource = NULL; - } - - if (_glfw.ns.delegate) - { - [NSApp setDelegate:nil]; - [_glfw.ns.delegate release]; - _glfw.ns.delegate = nil; - } - - if (_glfw.ns.listener) - { - [[NSDistributedNotificationCenter defaultCenter] - removeObserver:_glfw.ns.listener - name:(__bridge NSString*)kTISNotifySelectedKeyboardInputSourceChanged - object:nil]; - [[NSDistributedNotificationCenter defaultCenter] - removeObserver:_glfw.ns.listener]; - [_glfw.ns.listener release]; - _glfw.ns.listener = nil; - } - - [_glfw.ns.cursor release]; - _glfw.ns.cursor = nil; - - free(_glfw.ns.clipboardString); - - _glfwTerminateNSGL(); - _glfwTerminateJoysticksNS(); - _glfwTerminateThreadLocalStoragePOSIX(); - - [_glfw.ns.autoreleasePool release]; - _glfw.ns.autoreleasePool = nil; -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Cocoa NSGL" -#if defined(_GLFW_USE_CHDIR) - " chdir" -#endif -#if defined(_GLFW_USE_MENUBAR) - " menubar" -#endif -#if defined(_GLFW_USE_RETINA) - " retina" -#endif -#if defined(_GLFW_BUILD_DLL) - " dynamic" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_joystick.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_joystick.h deleted file mode 100644 index 3b80634..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_joystick.h +++ /dev/null @@ -1,60 +0,0 @@ -//======================================================================== -// GLFW 3.2 Cocoa - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_cocoa_joystick_h_ -#define _glfw3_cocoa_joystick_h_ - -#include -#include -#include -#include - -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE \ - _GLFWjoystickNS ns_js[GLFW_JOYSTICK_LAST + 1] - - -// Cocoa-specific per-joystick data -// -typedef struct _GLFWjoystickNS -{ - GLFWbool present; - char name[256]; - - IOHIDDeviceRef deviceRef; - - CFMutableArrayRef axisElements; - CFMutableArrayRef buttonElements; - CFMutableArrayRef hatElements; - - float* axes; - unsigned char* buttons; -} _GLFWjoystickNS; - - -void _glfwInitJoysticksNS(void); -void _glfwTerminateJoysticksNS(void); - -#endif // _glfw3_cocoa_joystick_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_joystick.m b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_joystick.m deleted file mode 100644 index 7423e3d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_joystick.m +++ /dev/null @@ -1,511 +0,0 @@ -//======================================================================== -// GLFW 3.2 Cocoa - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Berglund -// Copyright (c) 2012 Torsten Walluhn -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - -#include -#include - -#include -#include - - -// Joystick element information -// -typedef struct _GLFWjoyelementNS -{ - IOHIDElementRef elementRef; - - long min; - long max; - - long minReport; - long maxReport; - -} _GLFWjoyelementNS; - - -static void getElementsCFArrayHandler(const void* value, void* parameter); - -// Adds an element to the specified joystick -// -static void addJoystickElement(_GLFWjoystickNS* js, - IOHIDElementRef elementRef) -{ - IOHIDElementType elementType; - long usagePage, usage; - CFMutableArrayRef elementsArray = NULL; - - elementType = IOHIDElementGetType(elementRef); - usagePage = IOHIDElementGetUsagePage(elementRef); - usage = IOHIDElementGetUsage(elementRef); - - if ((elementType != kIOHIDElementTypeInput_Axis) && - (elementType != kIOHIDElementTypeInput_Button) && - (elementType != kIOHIDElementTypeInput_Misc)) - { - return; - } - - switch (usagePage) - { - case kHIDPage_GenericDesktop: - { - switch (usage) - { - case kHIDUsage_GD_X: - case kHIDUsage_GD_Y: - case kHIDUsage_GD_Z: - case kHIDUsage_GD_Rx: - case kHIDUsage_GD_Ry: - case kHIDUsage_GD_Rz: - case kHIDUsage_GD_Slider: - case kHIDUsage_GD_Dial: - case kHIDUsage_GD_Wheel: - elementsArray = js->axisElements; - break; - case kHIDUsage_GD_Hatswitch: - elementsArray = js->hatElements; - break; - } - - break; - } - - case kHIDPage_Button: - elementsArray = js->buttonElements; - break; - default: - break; - } - - if (elementsArray) - { - _GLFWjoyelementNS* element = calloc(1, sizeof(_GLFWjoyelementNS)); - - CFArrayAppendValue(elementsArray, element); - - element->elementRef = elementRef; - - element->minReport = IOHIDElementGetLogicalMin(elementRef); - element->maxReport = IOHIDElementGetLogicalMax(elementRef); - } -} - -// Adds an element to the specified joystick -// -static void getElementsCFArrayHandler(const void* value, void* parameter) -{ - if (CFGetTypeID(value) == IOHIDElementGetTypeID()) - { - addJoystickElement((_GLFWjoystickNS*) parameter, - (IOHIDElementRef) value); - } -} - -// Returns the value of the specified element of the specified joystick -// -static long getElementValue(_GLFWjoystickNS* js, _GLFWjoyelementNS* element) -{ - IOReturn result = kIOReturnSuccess; - IOHIDValueRef valueRef; - long value = 0; - - if (js && element && js->deviceRef) - { - result = IOHIDDeviceGetValue(js->deviceRef, - element->elementRef, - &valueRef); - - if (kIOReturnSuccess == result) - { - value = IOHIDValueGetIntegerValue(valueRef); - - // Record min and max for auto calibration - if (value < element->minReport) - element->minReport = value; - if (value > element->maxReport) - element->maxReport = value; - } - } - - // Auto user scale - return value; -} - -// Removes the specified joystick -// -static void removeJoystick(_GLFWjoystickNS* js) -{ - int i; - - if (!js->present) - return; - - for (i = 0; i < CFArrayGetCount(js->axisElements); i++) - free((void*) CFArrayGetValueAtIndex(js->axisElements, i)); - CFArrayRemoveAllValues(js->axisElements); - CFRelease(js->axisElements); - - for (i = 0; i < CFArrayGetCount(js->buttonElements); i++) - free((void*) CFArrayGetValueAtIndex(js->buttonElements, i)); - CFArrayRemoveAllValues(js->buttonElements); - CFRelease(js->buttonElements); - - for (i = 0; i < CFArrayGetCount(js->hatElements); i++) - free((void*) CFArrayGetValueAtIndex(js->hatElements, i)); - CFArrayRemoveAllValues(js->hatElements); - CFRelease(js->hatElements); - - free(js->axes); - free(js->buttons); - - memset(js, 0, sizeof(_GLFWjoystickNS)); - - _glfwInputJoystickChange(js - _glfw.ns_js, GLFW_DISCONNECTED); -} - -// Polls for joystick axis events and updates GLFW state -// -static GLFWbool pollJoystickAxisEvents(_GLFWjoystickNS* js) -{ - CFIndex i; - - if (!js->present) - return GLFW_FALSE; - - for (i = 0; i < CFArrayGetCount(js->axisElements); i++) - { - _GLFWjoyelementNS* axis = (_GLFWjoyelementNS*) - CFArrayGetValueAtIndex(js->axisElements, i); - - long value = getElementValue(js, axis); - long readScale = axis->maxReport - axis->minReport; - - if (readScale == 0) - js->axes[i] = value; - else - js->axes[i] = (2.f * (value - axis->minReport) / readScale) - 1.f; - } - - return GLFW_TRUE; -} - -// Polls for joystick button events and updates GLFW state -// -static GLFWbool pollJoystickButtonEvents(_GLFWjoystickNS* js) -{ - CFIndex i; - int buttonIndex = 0; - - if (!js->present) - return GLFW_FALSE; - - for (i = 0; i < CFArrayGetCount(js->buttonElements); i++) - { - _GLFWjoyelementNS* button = (_GLFWjoyelementNS*) - CFArrayGetValueAtIndex(js->buttonElements, i); - - if (getElementValue(js, button)) - js->buttons[buttonIndex++] = GLFW_PRESS; - else - js->buttons[buttonIndex++] = GLFW_RELEASE; - } - - for (i = 0; i < CFArrayGetCount(js->hatElements); i++) - { - _GLFWjoyelementNS* hat = (_GLFWjoyelementNS*) - CFArrayGetValueAtIndex(js->hatElements, i); - - // Bit fields of button presses for each direction, including nil - const int directions[9] = { 1, 3, 2, 6, 4, 12, 8, 9, 0 }; - - long j, value = getElementValue(js, hat); - if (value < 0 || value > 8) - value = 8; - - for (j = 0; j < 4; j++) - { - if (directions[value] & (1 << j)) - js->buttons[buttonIndex++] = GLFW_PRESS; - else - js->buttons[buttonIndex++] = GLFW_RELEASE; - } - } - - return GLFW_TRUE; -} - -// Callback for user-initiated joystick addition -// -static void matchCallback(void* context, - IOReturn result, - void* sender, - IOHIDDeviceRef deviceRef) -{ - _GLFWjoystickNS* js; - int joy; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (_glfw.ns_js[joy].present && _glfw.ns_js[joy].deviceRef == deviceRef) - return; - } - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (!_glfw.ns_js[joy].present) - break; - } - - if (joy > GLFW_JOYSTICK_LAST) - return; - - js = _glfw.ns_js + joy; - js->present = GLFW_TRUE; - js->deviceRef = deviceRef; - - CFStringRef name = IOHIDDeviceGetProperty(deviceRef, - CFSTR(kIOHIDProductKey)); - if (name) - { - CFStringGetCString(name, - js->name, - sizeof(js->name), - kCFStringEncodingUTF8); - } - else - strncpy(js->name, "Unknown", sizeof(js->name)); - - js->axisElements = CFArrayCreateMutable(NULL, 0, NULL); - js->buttonElements = CFArrayCreateMutable(NULL, 0, NULL); - js->hatElements = CFArrayCreateMutable(NULL, 0, NULL); - - CFArrayRef arrayRef = IOHIDDeviceCopyMatchingElements(deviceRef, - NULL, - kIOHIDOptionsTypeNone); - CFRange range = { 0, CFArrayGetCount(arrayRef) }; - CFArrayApplyFunction(arrayRef, - range, - getElementsCFArrayHandler, - (void*) js); - - CFRelease(arrayRef); - - js->axes = calloc(CFArrayGetCount(js->axisElements), sizeof(float)); - js->buttons = calloc(CFArrayGetCount(js->buttonElements) + - CFArrayGetCount(js->hatElements) * 4, 1); - - _glfwInputJoystickChange(joy, GLFW_CONNECTED); -} - -// Callback for user-initiated joystick removal -// -static void removeCallback(void* context, - IOReturn result, - void* sender, - IOHIDDeviceRef deviceRef) -{ - int joy; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (_glfw.ns_js[joy].deviceRef == deviceRef) - { - removeJoystick(_glfw.ns_js + joy); - break; - } - } -} - -// Creates a dictionary to match against devices with the specified usage page -// and usage -// -static CFMutableDictionaryRef createMatchingDictionary(long usagePage, - long usage) -{ - CFMutableDictionaryRef result = - CFDictionaryCreateMutable(kCFAllocatorDefault, - 0, - &kCFTypeDictionaryKeyCallBacks, - &kCFTypeDictionaryValueCallBacks); - - if (result) - { - CFNumberRef pageRef = CFNumberCreate(kCFAllocatorDefault, - kCFNumberLongType, - &usagePage); - if (pageRef) - { - CFDictionarySetValue(result, - CFSTR(kIOHIDDeviceUsagePageKey), - pageRef); - CFRelease(pageRef); - - CFNumberRef usageRef = CFNumberCreate(kCFAllocatorDefault, - kCFNumberLongType, - &usage); - if (usageRef) - { - CFDictionarySetValue(result, - CFSTR(kIOHIDDeviceUsageKey), - usageRef); - CFRelease(usageRef); - } - } - } - - return result; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize joystick interface -// -void _glfwInitJoysticksNS(void) -{ - CFMutableArrayRef matchingCFArrayRef; - - _glfw.ns.hidManager = IOHIDManagerCreate(kCFAllocatorDefault, - kIOHIDOptionsTypeNone); - - matchingCFArrayRef = CFArrayCreateMutable(kCFAllocatorDefault, - 0, - &kCFTypeArrayCallBacks); - if (matchingCFArrayRef) - { - CFDictionaryRef matchingCFDictRef = - createMatchingDictionary(kHIDPage_GenericDesktop, - kHIDUsage_GD_Joystick); - if (matchingCFDictRef) - { - CFArrayAppendValue(matchingCFArrayRef, matchingCFDictRef); - CFRelease(matchingCFDictRef); - } - - matchingCFDictRef = createMatchingDictionary(kHIDPage_GenericDesktop, - kHIDUsage_GD_GamePad); - if (matchingCFDictRef) - { - CFArrayAppendValue(matchingCFArrayRef, matchingCFDictRef); - CFRelease(matchingCFDictRef); - } - - matchingCFDictRef = - createMatchingDictionary(kHIDPage_GenericDesktop, - kHIDUsage_GD_MultiAxisController); - if (matchingCFDictRef) - { - CFArrayAppendValue(matchingCFArrayRef, matchingCFDictRef); - CFRelease(matchingCFDictRef); - } - - IOHIDManagerSetDeviceMatchingMultiple(_glfw.ns.hidManager, - matchingCFArrayRef); - CFRelease(matchingCFArrayRef); - } - - IOHIDManagerRegisterDeviceMatchingCallback(_glfw.ns.hidManager, - &matchCallback, NULL); - IOHIDManagerRegisterDeviceRemovalCallback(_glfw.ns.hidManager, - &removeCallback, NULL); - - IOHIDManagerScheduleWithRunLoop(_glfw.ns.hidManager, - CFRunLoopGetMain(), - kCFRunLoopDefaultMode); - - IOHIDManagerOpen(_glfw.ns.hidManager, kIOHIDOptionsTypeNone); - - // Execute the run loop once in order to register any initially-attached - // joysticks - CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); -} - -// Close all opened joystick handles -// -void _glfwTerminateJoysticksNS(void) -{ - int joy; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - _GLFWjoystickNS* js = _glfw.ns_js + joy; - removeJoystick(js); - } - - CFRelease(_glfw.ns.hidManager); - _glfw.ns.hidManager = NULL; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformJoystickPresent(int joy) -{ - _GLFWjoystickNS* js = _glfw.ns_js + joy; - return js->present; -} - -const float* _glfwPlatformGetJoystickAxes(int joy, int* count) -{ - _GLFWjoystickNS* js = _glfw.ns_js + joy; - if (!pollJoystickAxisEvents(js)) - return NULL; - - *count = (int) CFArrayGetCount(js->axisElements); - return js->axes; -} - -const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count) -{ - _GLFWjoystickNS* js = _glfw.ns_js + joy; - if (!pollJoystickButtonEvents(js)) - return NULL; - - *count = (int) CFArrayGetCount(js->buttonElements) + - (int) CFArrayGetCount(js->hatElements) * 4; - return js->buttons; -} - -const char* _glfwPlatformGetJoystickName(int joy) -{ - _GLFWjoystickNS* js = _glfw.ns_js + joy; - if (!js->present) - return NULL; - - return js->name; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_monitor.m b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_monitor.m deleted file mode 100644 index 9ac0a83..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_monitor.m +++ /dev/null @@ -1,413 +0,0 @@ -//======================================================================== -// GLFW 3.2 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - -#include -#include -#include -#include - - -// Get the name of the specified display -// -static char* getDisplayName(CGDirectDisplayID displayID) -{ - char* name; - CFDictionaryRef info, names; - CFStringRef value; - CFIndex size; - - // NOTE: This uses a deprecated function because Apple has - // (as of January 2015) not provided any alternative - info = IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID), - kIODisplayOnlyPreferredName); - names = CFDictionaryGetValue(info, CFSTR(kDisplayProductName)); - - if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"), - (const void**) &value)) - { - // This may happen if a desktop Mac is running headless - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve display name"); - - CFRelease(info); - return strdup("Unknown"); - } - - size = CFStringGetMaximumSizeForEncoding(CFStringGetLength(value), - kCFStringEncodingUTF8); - name = calloc(size + 1, 1); - CFStringGetCString(value, name, size, kCFStringEncodingUTF8); - - CFRelease(info); - - return name; -} - -// Check whether the display mode should be included in enumeration -// -static GLFWbool modeIsGood(CGDisplayModeRef mode) -{ - uint32_t flags = CGDisplayModeGetIOFlags(mode); - if (!(flags & kDisplayModeValidFlag) || !(flags & kDisplayModeSafeFlag)) - return GLFW_FALSE; - - if (flags & kDisplayModeInterlacedFlag) - return GLFW_FALSE; - - if (flags & kDisplayModeStretchedFlag) - return GLFW_FALSE; - - CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); - if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) && - CFStringCompare(format, CFSTR(IO32BitDirectPixels), 0)) - { - CFRelease(format); - return GLFW_FALSE; - } - - CFRelease(format); - return GLFW_TRUE; -} - -// Convert Core Graphics display mode to GLFW video mode -// -static GLFWvidmode vidmodeFromCGDisplayMode(CGDisplayModeRef mode, - CVDisplayLinkRef link) -{ - GLFWvidmode result; - result.width = (int) CGDisplayModeGetWidth(mode); - result.height = (int) CGDisplayModeGetHeight(mode); - result.refreshRate = (int) CGDisplayModeGetRefreshRate(mode); - - if (result.refreshRate == 0) - { - const CVTime time = CVDisplayLinkGetNominalOutputVideoRefreshPeriod(link); - if (!(time.flags & kCVTimeIsIndefinite)) - result.refreshRate = (int) (time.timeScale / (double) time.timeValue); - } - - CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); - - if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) == 0) - { - result.redBits = 5; - result.greenBits = 5; - result.blueBits = 5; - } - else - { - result.redBits = 8; - result.greenBits = 8; - result.blueBits = 8; - } - - CFRelease(format); - return result; -} - -// Starts reservation for display fading -// -static CGDisplayFadeReservationToken beginFadeReservation(void) -{ - CGDisplayFadeReservationToken token = kCGDisplayFadeReservationInvalidToken; - - if (CGAcquireDisplayFadeReservation(5, &token) == kCGErrorSuccess) - CGDisplayFade(token, 0.3, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0.0, 0.0, 0.0, TRUE); - - return token; -} - -// Ends reservation for display fading -// -static void endFadeReservation(CGDisplayFadeReservationToken token) -{ - if (token != kCGDisplayFadeReservationInvalidToken) - { - CGDisplayFade(token, 0.5, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0.0, 0.0, 0.0, FALSE); - CGReleaseDisplayFadeReservation(token); - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Change the current video mode -// -GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired) -{ - CFArrayRef modes; - CFIndex count, i; - CVDisplayLinkRef link; - CGDisplayModeRef native = NULL; - GLFWvidmode current; - const GLFWvidmode* best; - - best = _glfwChooseVideoMode(monitor, desired); - _glfwPlatformGetVideoMode(monitor, ¤t); - if (_glfwCompareVideoModes(¤t, best) == 0) - return GLFW_TRUE; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); - count = CFArrayGetCount(modes); - - for (i = 0; i < count; i++) - { - CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); - if (!modeIsGood(dm)) - continue; - - const GLFWvidmode mode = vidmodeFromCGDisplayMode(dm, link); - if (_glfwCompareVideoModes(best, &mode) == 0) - { - native = dm; - break; - } - } - - if (native) - { - if (monitor->ns.previousMode == NULL) - monitor->ns.previousMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); - - CGDisplayFadeReservationToken token = beginFadeReservation(); - CGDisplaySetDisplayMode(monitor->ns.displayID, native, NULL); - endFadeReservation(token); - } - - CFRelease(modes); - CVDisplayLinkRelease(link); - - if (!native) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Monitor mode list changed"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -// Restore the previously saved (original) video mode -// -void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor) -{ - if (monitor->ns.previousMode) - { - CGDisplayFadeReservationToken token = beginFadeReservation(); - CGDisplaySetDisplayMode(monitor->ns.displayID, - monitor->ns.previousMode, NULL); - endFadeReservation(token); - - CGDisplayModeRelease(monitor->ns.previousMode); - monitor->ns.previousMode = NULL; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - uint32_t i, found = 0, displayCount; - _GLFWmonitor** monitors; - CGDirectDisplayID* displays; - - *count = 0; - - CGGetOnlineDisplayList(0, NULL, &displayCount); - displays = calloc(displayCount, sizeof(CGDirectDisplayID)); - monitors = calloc(displayCount, sizeof(_GLFWmonitor*)); - - CGGetOnlineDisplayList(displayCount, displays, &displayCount); - - for (i = 0; i < displayCount; i++) - { - _GLFWmonitor* monitor; - - if (CGDisplayIsAsleep(displays[i])) - continue; - - const CGSize size = CGDisplayScreenSize(displays[i]); - char* name = getDisplayName(displays[i]); - - monitor = _glfwAllocMonitor(name, size.width, size.height); - monitor->ns.displayID = displays[i]; - monitor->ns.unitNumber = CGDisplayUnitNumber(displays[i]); - - free(name); - - found++; - monitors[found - 1] = monitor; - } - - free(displays); - - *count = found; - return monitors; -} - -GLFWbool _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - // HACK: Compare unit numbers instead of display IDs to work around display - // replacement on machines with automatic graphics switching - return first->ns.unitNumber == second->ns.unitNumber; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - const CGRect bounds = CGDisplayBounds(monitor->ns.displayID); - - if (xpos) - *xpos = (int) bounds.origin.x; - if (ypos) - *ypos = (int) bounds.origin.y; -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) -{ - CFArrayRef modes; - CFIndex found, i, j; - GLFWvidmode* result; - CVDisplayLinkRef link; - - *count = 0; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); - found = CFArrayGetCount(modes); - result = calloc(found, sizeof(GLFWvidmode)); - - for (i = 0; i < found; i++) - { - CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); - if (!modeIsGood(dm)) - continue; - - const GLFWvidmode mode = vidmodeFromCGDisplayMode(dm, link); - - for (j = 0; j < *count; j++) - { - if (_glfwCompareVideoModes(result + j, &mode) == 0) - break; - } - - // Skip duplicate modes - if (i < *count) - continue; - - (*count)++; - result[*count - 1] = mode; - } - - CFRelease(modes); - CVDisplayLinkRelease(link); - return result; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode *mode) -{ - CGDisplayModeRef displayMode; - CVDisplayLinkRef link; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - displayMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); - *mode = vidmodeFromCGDisplayMode(displayMode, link); - CGDisplayModeRelease(displayMode); - - CVDisplayLinkRelease(link); -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - uint32_t i, size = CGDisplayGammaTableCapacity(monitor->ns.displayID); - CGGammaValue* values = calloc(size * 3, sizeof(CGGammaValue)); - - CGGetDisplayTransferByTable(monitor->ns.displayID, - size, - values, - values + size, - values + size * 2, - &size); - - _glfwAllocGammaArrays(ramp, size); - - for (i = 0; i < size; i++) - { - ramp->red[i] = (unsigned short) (values[i] * 65535); - ramp->green[i] = (unsigned short) (values[i + size] * 65535); - ramp->blue[i] = (unsigned short) (values[i + size * 2] * 65535); - } - - free(values); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - int i; - CGGammaValue* values = calloc(ramp->size * 3, sizeof(CGGammaValue)); - - for (i = 0; i < ramp->size; i++) - { - values[i] = ramp->red[i] / 65535.f; - values[i + ramp->size] = ramp->green[i] / 65535.f; - values[i + ramp->size * 2] = ramp->blue[i] / 65535.f; - } - - CGSetDisplayTransferByTable(monitor->ns.displayID, - ramp->size, - values, - values + ramp->size, - values + ramp->size * 2); - - free(values); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(kCGNullDirectDisplay); - return monitor->ns.displayID; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_platform.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_platform.h deleted file mode 100644 index 9221427..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_platform.h +++ /dev/null @@ -1,150 +0,0 @@ -//======================================================================== -// GLFW 3.2 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_cocoa_platform_h_ -#define _glfw3_cocoa_platform_h_ - -#include -#include - -#if defined(__OBJC__) -#import -#import -#else -#include -#include -typedef void* id; -#endif - -#include "posix_tls.h" -#include "cocoa_joystick.h" -#include "nsgl_context.h" - -#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) -#define _glfw_dlclose(handle) dlclose(handle) -#define _glfw_dlsym(handle, name) dlsym(handle, name) - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowNS ns -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryNS ns -#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeNS ns_time -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorNS ns -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorNS ns - -#define _GLFW_EGL_CONTEXT_STATE -#define _GLFW_EGL_LIBRARY_CONTEXT_STATE - -// HIToolbox.framework pointer typedefs -#define kTISPropertyUnicodeKeyLayoutData _glfw.ns.tis.kPropertyUnicodeKeyLayoutData -#define kTISNotifySelectedKeyboardInputSourceChanged _glfw.ns.tis.kNotifySelectedKeyboardInputSourceChanged -typedef TISInputSourceRef (*PFN_TISCopyCurrentKeyboardLayoutInputSource)(void); -#define TISCopyCurrentKeyboardLayoutInputSource _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource -typedef void* (*PFN_TISGetInputSourceProperty)(TISInputSourceRef,CFStringRef); -#define TISGetInputSourceProperty _glfw.ns.tis.GetInputSourceProperty -typedef UInt8 (*PFN_LMGetKbdType)(void); -#define LMGetKbdType _glfw.ns.tis.GetKbdType - - -// Cocoa-specific per-window data -// -typedef struct _GLFWwindowNS -{ - id object; - id delegate; - id view; - - // The total sum of the distances the cursor has been warped - // since the last cursor motion event was processed - // This is kept to counteract Cocoa doing the same internally - double cursorWarpDeltaX, cursorWarpDeltaY; - -} _GLFWwindowNS; - -// Cocoa-specific global data -// -typedef struct _GLFWlibraryNS -{ - CGEventSourceRef eventSource; - id delegate; - id autoreleasePool; - id cursor; - TISInputSourceRef inputSource; - IOHIDManagerRef hidManager; - id unicodeData; - id listener; - - char keyName[64]; - short int publicKeys[256]; - short int nativeKeys[GLFW_KEY_LAST + 1]; - char* clipboardString; - // Where to place the cursor when re-enabled - double restoreCursorPosX, restoreCursorPosY; - // The window whose disabled cursor mode is active - _GLFWwindow* disabledCursorWindow; - - struct { - CFBundleRef bundle; - PFN_TISCopyCurrentKeyboardLayoutInputSource CopyCurrentKeyboardLayoutInputSource; - PFN_TISGetInputSourceProperty GetInputSourceProperty; - PFN_LMGetKbdType GetKbdType; - CFStringRef kPropertyUnicodeKeyLayoutData; - CFStringRef kNotifySelectedKeyboardInputSourceChanged; - } tis; - -} _GLFWlibraryNS; - -// Cocoa-specific per-monitor data -// -typedef struct _GLFWmonitorNS -{ - CGDirectDisplayID displayID; - CGDisplayModeRef previousMode; - uint32_t unitNumber; - -} _GLFWmonitorNS; - -// Cocoa-specific per-cursor data -// -typedef struct _GLFWcursorNS -{ - id object; - -} _GLFWcursorNS; - -// Cocoa-specific global timer data -// -typedef struct _GLFWtimeNS -{ - uint64_t frequency; - -} _GLFWtimeNS; - - -void _glfwInitTimerNS(void); - -GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired); -void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor); - -#endif // _glfw3_cocoa_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_time.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_time.c deleted file mode 100644 index dacfed0..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_time.c +++ /dev/null @@ -1,60 +0,0 @@ -//======================================================================== -// GLFW 3.2 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialise timer -// -void _glfwInitTimerNS(void) -{ - mach_timebase_info_data_t info; - mach_timebase_info(&info); - - _glfw.ns_time.frequency = (info.denom * 1e9) / info.numer; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -uint64_t _glfwPlatformGetTimerValue(void) -{ - return mach_absolute_time(); -} - -uint64_t _glfwPlatformGetTimerFrequency(void) -{ - return _glfw.ns_time.frequency; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_window.m b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_window.m deleted file mode 100644 index b002e99..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/cocoa_window.m +++ /dev/null @@ -1,1653 +0,0 @@ -//======================================================================== -// GLFW 3.2 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - -// Needed for _NSGetProgname -#include - - -// Returns the specified standard cursor -// -static NSCursor* getStandardCursor(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return [NSCursor arrowCursor]; - case GLFW_IBEAM_CURSOR: - return [NSCursor IBeamCursor]; - case GLFW_CROSSHAIR_CURSOR: - return [NSCursor crosshairCursor]; - case GLFW_HAND_CURSOR: - return [NSCursor pointingHandCursor]; - case GLFW_HRESIZE_CURSOR: - return [NSCursor resizeLeftRightCursor]; - case GLFW_VRESIZE_CURSOR: - return [NSCursor resizeUpDownCursor]; - } - - return nil; -} - -// Returns the style mask corresponding to the window settings -// -static NSUInteger getStyleMask(_GLFWwindow* window) -{ - NSUInteger styleMask = 0; - - if (window->monitor || !window->decorated) - styleMask |= NSBorderlessWindowMask; - else - { - styleMask |= NSTitledWindowMask | NSClosableWindowMask | - NSMiniaturizableWindowMask; - - if (window->resizable) - styleMask |= NSResizableWindowMask; - } - - return styleMask; -} - -// Center the cursor in the view of the window -// -static void centerCursor(_GLFWwindow *window) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); -} - -// Returns whether the cursor is in the client area of the specified window -// -static GLFWbool cursorInClientArea(_GLFWwindow* window) -{ - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - return [window->ns.view mouse:pos inRect:[window->ns.view frame]]; -} - -// Updates the cursor image according to its cursor mode -// -static void updateCursorImage(_GLFWwindow* window) -{ - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (window->cursor) - [(NSCursor*) window->cursor->ns.object set]; - else - [[NSCursor arrowCursor] set]; - } - else - [(NSCursor*) _glfw.ns.cursor set]; -} - -// Transforms the specified y-coordinate between the CG display and NS screen -// coordinate systems -// -static float transformY(float y) -{ - return CGDisplayBounds(CGMainDisplayID()).size.height - y; -} - -// Make the specified window and its video mode active on its monitor -// -static GLFWbool acquireMonitor(_GLFWwindow* window) -{ - const GLFWbool status = _glfwSetVideoModeNS(window->monitor, &window->videoMode); - const CGRect bounds = CGDisplayBounds(window->monitor->ns.displayID); - const NSRect frame = NSMakeRect(bounds.origin.x, - transformY(bounds.origin.y + bounds.size.height), - bounds.size.width, - bounds.size.height); - - [window->ns.object setFrame:frame display:YES]; - - _glfwInputMonitorWindowChange(window->monitor, window); - return status; -} - -// Remove the window and restore the original video mode -// -static void releaseMonitor(_GLFWwindow* window) -{ - if (window->monitor->window != window) - return; - - _glfwInputMonitorWindowChange(window->monitor, NULL); - _glfwRestoreVideoModeNS(window->monitor); -} - -// Translates OS X key modifiers into GLFW ones -// -static int translateFlags(NSUInteger flags) -{ - int mods = 0; - - if (flags & NSShiftKeyMask) - mods |= GLFW_MOD_SHIFT; - if (flags & NSControlKeyMask) - mods |= GLFW_MOD_CONTROL; - if (flags & NSAlternateKeyMask) - mods |= GLFW_MOD_ALT; - if (flags & NSCommandKeyMask) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Translates a OS X keycode to a GLFW keycode -// -static int translateKey(unsigned int key) -{ - if (key >= sizeof(_glfw.ns.publicKeys) / sizeof(_glfw.ns.publicKeys[0])) - return GLFW_KEY_UNKNOWN; - - return _glfw.ns.publicKeys[key]; -} - -// Translate a GLFW keycode to a Cocoa modifier flag -// -static NSUInteger translateKeyToModifierFlag(int key) -{ - switch (key) - { - case GLFW_KEY_LEFT_SHIFT: - case GLFW_KEY_RIGHT_SHIFT: - return NSShiftKeyMask; - case GLFW_KEY_LEFT_CONTROL: - case GLFW_KEY_RIGHT_CONTROL: - return NSControlKeyMask; - case GLFW_KEY_LEFT_ALT: - case GLFW_KEY_RIGHT_ALT: - return NSAlternateKeyMask; - case GLFW_KEY_LEFT_SUPER: - case GLFW_KEY_RIGHT_SUPER: - return NSCommandKeyMask; - } - - return 0; -} - -// Defines a constant for empty ranges in NSTextInputClient -// -static const NSRange kEmptyRange = { NSNotFound, 0 }; - - -//------------------------------------------------------------------------ -// Delegate for window related notifications -//------------------------------------------------------------------------ - -@interface GLFWWindowDelegate : NSObject -{ - _GLFWwindow* window; -} - -- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow; - -@end - -@implementation GLFWWindowDelegate - -- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow -{ - self = [super init]; - if (self != nil) - window = initWindow; - - return self; -} - -- (BOOL)windowShouldClose:(id)sender -{ - _glfwInputWindowCloseRequest(window); - return NO; -} - -- (void)windowDidResize:(NSNotification *)notification -{ - if (window->context.client != GLFW_NO_API) - [window->context.nsgl.object update]; - - if (_glfw.ns.disabledCursorWindow == window) - centerCursor(window); - - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; - - _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); - _glfwInputWindowSize(window, contentRect.size.width, contentRect.size.height); -} - -- (void)windowDidMove:(NSNotification *)notification -{ - if (window->context.client != GLFW_NO_API) - [window->context.nsgl.object update]; - - if (_glfw.ns.disabledCursorWindow == window) - centerCursor(window); - - int x, y; - _glfwPlatformGetWindowPos(window, &x, &y); - _glfwInputWindowPos(window, x, y); -} - -- (void)windowDidMiniaturize:(NSNotification *)notification -{ - if (window->monitor) - releaseMonitor(window); - - _glfwInputWindowIconify(window, GLFW_TRUE); -} - -- (void)windowDidDeminiaturize:(NSNotification *)notification -{ - if (window->monitor) - acquireMonitor(window); - - _glfwInputWindowIconify(window, GLFW_FALSE); -} - -- (void)windowDidBecomeKey:(NSNotification *)notification -{ - if (_glfw.ns.disabledCursorWindow == window) - centerCursor(window); - - _glfwInputWindowFocus(window, GLFW_TRUE); - _glfwPlatformSetCursorMode(window, window->cursorMode); -} - -- (void)windowDidResignKey:(NSNotification *)notification -{ - if (window->monitor && window->autoIconify) - _glfwPlatformIconifyWindow(window); - - _glfwInputWindowFocus(window, GLFW_FALSE); -} - -@end - - -//------------------------------------------------------------------------ -// Delegate for application related notifications -//------------------------------------------------------------------------ - -@interface GLFWApplicationDelegate : NSObject -@end - -@implementation GLFWApplicationDelegate - -- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender -{ - _GLFWwindow* window; - - for (window = _glfw.windowListHead; window; window = window->next) - _glfwInputWindowCloseRequest(window); - - return NSTerminateCancel; -} - -- (void)applicationDidChangeScreenParameters:(NSNotification *) notification -{ - _glfwInputMonitorChange(); -} - -- (void)applicationDidFinishLaunching:(NSNotification *)notification -{ - [NSApp stop:nil]; - - _glfwPlatformPostEmptyEvent(); -} - -- (void)applicationDidHide:(NSNotification *)notification -{ - int i; - - for (i = 0; i < _glfw.monitorCount; i++) - _glfwRestoreVideoModeNS(_glfw.monitors[i]); -} - -@end - - -//------------------------------------------------------------------------ -// Content view class for the GLFW window -//------------------------------------------------------------------------ - -@interface GLFWContentView : NSView -{ - _GLFWwindow* window; - NSTrackingArea* trackingArea; - NSMutableAttributedString* markedText; -} - -- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow; - -@end - -@implementation GLFWContentView - -+ (void)initialize -{ - if (self == [GLFWContentView class]) - { - if (_glfw.ns.cursor == nil) - { - NSImage* data = [[NSImage alloc] initWithSize:NSMakeSize(16, 16)]; - _glfw.ns.cursor = [[NSCursor alloc] initWithImage:data - hotSpot:NSZeroPoint]; - [data release]; - } - } -} - -- (id)initWithGlfwWindow:(_GLFWwindow *)initWindow -{ - self = [super init]; - if (self != nil) - { - window = initWindow; - trackingArea = nil; - markedText = [[NSMutableAttributedString alloc] init]; - - [self updateTrackingAreas]; - [self registerForDraggedTypes:[NSArray arrayWithObjects: - NSFilenamesPboardType, nil]]; - } - - return self; -} - -- (void)dealloc -{ - [trackingArea release]; - [markedText release]; - [super dealloc]; -} - -- (BOOL)isOpaque -{ - return YES; -} - -- (BOOL)canBecomeKeyView -{ - return YES; -} - -- (BOOL)acceptsFirstResponder -{ - return YES; -} - -- (void)cursorUpdate:(NSEvent *)event -{ - updateCursorImage(window); -} - -- (void)mouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_LEFT, - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)mouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)mouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_LEFT, - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)mouseMoved:(NSEvent *)event -{ - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - const double dx = [event deltaX] - window->ns.cursorWarpDeltaX; - const double dy = [event deltaY] - window->ns.cursorWarpDeltaY; - - _glfwInputCursorPos(window, - window->virtualCursorPosX + dx, - window->virtualCursorPosY + dy); - } - else - { - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [event locationInWindow]; - - _glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y); - } - - window->ns.cursorWarpDeltaX = 0; - window->ns.cursorWarpDeltaY = 0; -} - -- (void)rightMouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_RIGHT, - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)rightMouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)rightMouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_RIGHT, - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)otherMouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - (int) [event buttonNumber], - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)otherMouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)otherMouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - (int) [event buttonNumber], - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)mouseExited:(NSEvent *)event -{ - _glfwInputCursorEnter(window, GLFW_FALSE); -} - -- (void)mouseEntered:(NSEvent *)event -{ - _glfwInputCursorEnter(window, GLFW_TRUE); -} - -- (void)viewDidChangeBackingProperties -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; - - _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); -} - -- (void)drawRect:(NSRect)rect -{ - _glfwInputWindowDamage(window); -} - -- (void)updateTrackingAreas -{ - if (trackingArea != nil) - { - [self removeTrackingArea:trackingArea]; - [trackingArea release]; - } - - const NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | - NSTrackingActiveInKeyWindow | - NSTrackingEnabledDuringMouseDrag | - NSTrackingCursorUpdate | - NSTrackingInVisibleRect | - NSTrackingAssumeInside; - - trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] - options:options - owner:self - userInfo:nil]; - - [self addTrackingArea:trackingArea]; - [super updateTrackingAreas]; -} - -- (void)keyDown:(NSEvent *)event -{ - const int key = translateKey([event keyCode]); - const int mods = translateFlags([event modifierFlags]); - - _glfwInputKey(window, key, [event keyCode], GLFW_PRESS, mods); - - [self interpretKeyEvents:[NSArray arrayWithObject:event]]; -} - -- (void)flagsChanged:(NSEvent *)event -{ - int action; - const unsigned int modifierFlags = - [event modifierFlags] & NSDeviceIndependentModifierFlagsMask; - const int key = translateKey([event keyCode]); - const int mods = translateFlags(modifierFlags); - const NSUInteger keyFlag = translateKeyToModifierFlag(key); - - if (keyFlag & modifierFlags) - { - if (window->keys[key] == GLFW_PRESS) - action = GLFW_RELEASE; - else - action = GLFW_PRESS; - } - else - action = GLFW_RELEASE; - - _glfwInputKey(window, key, [event keyCode], action, mods); -} - -- (void)keyUp:(NSEvent *)event -{ - const int key = translateKey([event keyCode]); - const int mods = translateFlags([event modifierFlags]); - _glfwInputKey(window, key, [event keyCode], GLFW_RELEASE, mods); -} - -- (void)scrollWheel:(NSEvent *)event -{ - double deltaX, deltaY; - - deltaX = [event scrollingDeltaX]; - deltaY = [event scrollingDeltaY]; - - if ([event hasPreciseScrollingDeltas]) - { - deltaX *= 0.1; - deltaY *= 0.1; - } - - if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0) - _glfwInputScroll(window, deltaX, deltaY); -} - -- (NSDragOperation)draggingEntered:(id )sender -{ - if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) - == NSDragOperationGeneric) - { - [self setNeedsDisplay:YES]; - return NSDragOperationGeneric; - } - - return NSDragOperationNone; -} - -- (BOOL)prepareForDragOperation:(id )sender -{ - [self setNeedsDisplay:YES]; - return YES; -} - -- (BOOL)performDragOperation:(id )sender -{ - NSPasteboard* pasteboard = [sender draggingPasteboard]; - NSArray* files = [pasteboard propertyListForType:NSFilenamesPboardType]; - - const NSRect contentRect = [window->ns.view frame]; - _glfwInputCursorPos(window, - [sender draggingLocation].x, - contentRect.size.height - [sender draggingLocation].y); - - const int count = [files count]; - if (count) - { - NSEnumerator* e = [files objectEnumerator]; - char** paths = calloc(count, sizeof(char*)); - int i; - - for (i = 0; i < count; i++) - paths[i] = strdup([[e nextObject] UTF8String]); - - _glfwInputDrop(window, count, (const char**) paths); - - for (i = 0; i < count; i++) - free(paths[i]); - free(paths); - } - - return YES; -} - -- (void)concludeDragOperation:(id )sender -{ - [self setNeedsDisplay:YES]; -} - -- (BOOL)hasMarkedText -{ - return [markedText length] > 0; -} - -- (NSRange)markedRange -{ - if ([markedText length] > 0) - return NSMakeRange(0, [markedText length] - 1); - else - return kEmptyRange; -} - -- (NSRange)selectedRange -{ - return kEmptyRange; -} - -- (void)setMarkedText:(id)string - selectedRange:(NSRange)selectedRange - replacementRange:(NSRange)replacementRange -{ - if ([string isKindOfClass:[NSAttributedString class]]) - [markedText initWithAttributedString:string]; - else - [markedText initWithString:string]; -} - -- (void)unmarkText -{ - [[markedText mutableString] setString:@""]; -} - -- (NSArray*)validAttributesForMarkedText -{ - return [NSArray array]; -} - -- (NSAttributedString*)attributedSubstringForProposedRange:(NSRange)range - actualRange:(NSRangePointer)actualRange -{ - return nil; -} - -- (NSUInteger)characterIndexForPoint:(NSPoint)point -{ - return 0; -} - -- (NSRect)firstRectForCharacterRange:(NSRange)range - actualRange:(NSRangePointer)actualRange -{ - int xpos, ypos; - _glfwPlatformGetWindowPos(window, &xpos, &ypos); - const NSRect contentRect = [window->ns.view frame]; - return NSMakeRect(xpos, transformY(ypos + contentRect.size.height), 0.0, 0.0); -} - -- (void)insertText:(id)string replacementRange:(NSRange)replacementRange -{ - NSString* characters; - NSEvent* event = [NSApp currentEvent]; - const int mods = translateFlags([event modifierFlags]); - const int plain = !(mods & GLFW_MOD_SUPER); - - if ([string isKindOfClass:[NSAttributedString class]]) - characters = [string string]; - else - characters = (NSString*) string; - - NSUInteger i, length = [characters length]; - - for (i = 0; i < length; i++) - { - const unichar codepoint = [characters characterAtIndex:i]; - if ((codepoint & 0xff00) == 0xf700) - continue; - - _glfwInputChar(window, codepoint, mods, plain); - } -} - -- (void)doCommandBySelector:(SEL)selector -{ -} - -@end - - -//------------------------------------------------------------------------ -// GLFW window class -//------------------------------------------------------------------------ - -@interface GLFWWindow : NSWindow {} -@end - -@implementation GLFWWindow - -- (BOOL)canBecomeKeyWindow -{ - // Required for NSBorderlessWindowMask windows - return YES; -} - -@end - - -//------------------------------------------------------------------------ -// GLFW application class -//------------------------------------------------------------------------ - -@interface GLFWApplication : NSApplication -@end - -@implementation GLFWApplication - -// From http://cocoadev.com/index.pl?GameKeyboardHandlingAlmost -// This works around an AppKit bug, where key up events while holding -// down the command key don't get sent to the key window. -- (void)sendEvent:(NSEvent *)event -{ - if ([event type] == NSKeyUp && ([event modifierFlags] & NSCommandKeyMask)) - [[self keyWindow] sendEvent:event]; - else - [super sendEvent:event]; -} - - -// No-op thread entry point -// -- (void)doNothing:(id)object -{ -} -@end - -#if defined(_GLFW_USE_MENUBAR) - -// Try to figure out what the calling application is called -// -static NSString* findAppName(void) -{ - size_t i; - NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; - - // Keys to search for as potential application names - NSString* GLFWNameKeys[] = - { - @"CFBundleDisplayName", - @"CFBundleName", - @"CFBundleExecutable", - }; - - for (i = 0; i < sizeof(GLFWNameKeys) / sizeof(GLFWNameKeys[0]); i++) - { - id name = [infoDictionary objectForKey:GLFWNameKeys[i]]; - if (name && - [name isKindOfClass:[NSString class]] && - ![name isEqualToString:@""]) - { - return name; - } - } - - char** progname = _NSGetProgname(); - if (progname && *progname) - return [NSString stringWithUTF8String:*progname]; - - // Really shouldn't get here - return @"GLFW Application"; -} - -// Set up the menu bar (manually) -// This is nasty, nasty stuff -- calls to undocumented semi-private APIs that -// could go away at any moment, lots of stuff that really should be -// localize(d|able), etc. Loading a nib would save us this horror, but that -// doesn't seem like a good thing to require of GLFW users. -// -static void createMenuBar(void) -{ - NSString* appName = findAppName(); - - NSMenu* bar = [[NSMenu alloc] init]; - [NSApp setMainMenu:bar]; - - NSMenuItem* appMenuItem = - [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; - NSMenu* appMenu = [[NSMenu alloc] init]; - [appMenuItem setSubmenu:appMenu]; - - [appMenu addItemWithTitle:[NSString stringWithFormat:@"About %@", appName] - action:@selector(orderFrontStandardAboutPanel:) - keyEquivalent:@""]; - [appMenu addItem:[NSMenuItem separatorItem]]; - NSMenu* servicesMenu = [[NSMenu alloc] init]; - [NSApp setServicesMenu:servicesMenu]; - [[appMenu addItemWithTitle:@"Services" - action:NULL - keyEquivalent:@""] setSubmenu:servicesMenu]; - [servicesMenu release]; - [appMenu addItem:[NSMenuItem separatorItem]]; - [appMenu addItemWithTitle:[NSString stringWithFormat:@"Hide %@", appName] - action:@selector(hide:) - keyEquivalent:@"h"]; - [[appMenu addItemWithTitle:@"Hide Others" - action:@selector(hideOtherApplications:) - keyEquivalent:@"h"] - setKeyEquivalentModifierMask:NSAlternateKeyMask | NSCommandKeyMask]; - [appMenu addItemWithTitle:@"Show All" - action:@selector(unhideAllApplications:) - keyEquivalent:@""]; - [appMenu addItem:[NSMenuItem separatorItem]]; - [appMenu addItemWithTitle:[NSString stringWithFormat:@"Quit %@", appName] - action:@selector(terminate:) - keyEquivalent:@"q"]; - - NSMenuItem* windowMenuItem = - [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; - [bar release]; - NSMenu* windowMenu = [[NSMenu alloc] initWithTitle:@"Window"]; - [NSApp setWindowsMenu:windowMenu]; - [windowMenuItem setSubmenu:windowMenu]; - - [windowMenu addItemWithTitle:@"Minimize" - action:@selector(performMiniaturize:) - keyEquivalent:@"m"]; - [windowMenu addItemWithTitle:@"Zoom" - action:@selector(performZoom:) - keyEquivalent:@""]; - [windowMenu addItem:[NSMenuItem separatorItem]]; - [windowMenu addItemWithTitle:@"Bring All to Front" - action:@selector(arrangeInFront:) - keyEquivalent:@""]; - - // TODO: Make this appear at the bottom of the menu (for consistency) - [windowMenu addItem:[NSMenuItem separatorItem]]; - [[windowMenu addItemWithTitle:@"Enter Full Screen" - action:@selector(toggleFullScreen:) - keyEquivalent:@"f"] - setKeyEquivalentModifierMask:NSControlKeyMask | NSCommandKeyMask]; - - // Prior to Snow Leopard, we need to use this oddly-named semi-private API - // to get the application menu working properly. - SEL setAppleMenuSelector = NSSelectorFromString(@"setAppleMenu:"); - [NSApp performSelector:setAppleMenuSelector withObject:appMenu]; -} - -#endif /* _GLFW_USE_MENUBAR */ - -// Initialize the Cocoa Application Kit -// -static GLFWbool initializeAppKit(void) -{ - if (NSApp) - return GLFW_TRUE; - - // Implicitly create shared NSApplication instance - [GLFWApplication sharedApplication]; - - // Make Cocoa enter multi-threaded mode - [NSThread detachNewThreadSelector:@selector(doNothing:) - toTarget:NSApp - withObject:nil]; - - // In case we are unbundled, make us a proper UI application - [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; - -#if defined(_GLFW_USE_MENUBAR) - // Menu bar setup must go between sharedApplication above and - // finishLaunching below, in order to properly emulate the behavior - // of NSApplicationMain - createMenuBar(); -#endif - - // There can only be one application delegate, but we allocate it the - // first time a window is created to keep all window code in this file - _glfw.ns.delegate = [[GLFWApplicationDelegate alloc] init]; - if (_glfw.ns.delegate == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to create application delegate"); - return GLFW_FALSE; - } - - [NSApp setDelegate:_glfw.ns.delegate]; - [NSApp run]; - - return GLFW_TRUE; -} - -// Create the Cocoa window -// -static GLFWbool createNativeWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig) -{ - window->ns.delegate = [[GLFWWindowDelegate alloc] initWithGlfwWindow:window]; - if (window->ns.delegate == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to create window delegate"); - return GLFW_FALSE; - } - - NSRect contentRect; - - if (window->monitor) - { - GLFWvidmode mode; - int xpos, ypos; - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - contentRect = NSMakeRect(xpos, ypos, mode.width, mode.height); - } - else - contentRect = NSMakeRect(0, 0, wndconfig->width, wndconfig->height); - - window->ns.object = [[GLFWWindow alloc] - initWithContentRect:contentRect - styleMask:getStyleMask(window) - backing:NSBackingStoreBuffered - defer:NO]; - - if (window->ns.object == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Cocoa: Failed to create window"); - return GLFW_FALSE; - } - - if (window->monitor) - [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; - else - { - [window->ns.object center]; - - if (wndconfig->resizable) - [window->ns.object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; - - if (wndconfig->floating) - [window->ns.object setLevel:NSFloatingWindowLevel]; - - if (wndconfig->maximized) - [window->ns.object zoom:nil]; - } - - window->ns.view = [[GLFWContentView alloc] initWithGlfwWindow:window]; - -#if defined(_GLFW_USE_RETINA) - [window->ns.view setWantsBestResolutionOpenGLSurface:YES]; -#endif /*_GLFW_USE_RETINA*/ - - [window->ns.object makeFirstResponder:window->ns.view]; - [window->ns.object setTitle:[NSString stringWithUTF8String:wndconfig->title]]; - [window->ns.object setDelegate:window->ns.delegate]; - [window->ns.object setAcceptsMouseMovedEvents:YES]; - [window->ns.object setContentView:window->ns.view]; - [window->ns.object setRestorable:NO]; - - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!initializeAppKit()) - return GLFW_FALSE; - - if (!createNativeWindow(window, wndconfig)) - return GLFW_FALSE; - - if (ctxconfig->client != GLFW_NO_API) - { - if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) - { - if (!_glfwInitNSGL()) - return GLFW_FALSE; - if (!_glfwCreateContextNSGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else - { - _glfwInputError(GLFW_API_UNAVAILABLE, "Cocoa: EGL not available"); - return GLFW_FALSE; - } - } - - if (window->monitor) - { - _glfwPlatformShowWindow(window); - _glfwPlatformFocusWindow(window); - if (!acquireMonitor(window)) - return GLFW_FALSE; - - centerCursor(window); - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (_glfw.ns.disabledCursorWindow == window) - _glfw.ns.disabledCursorWindow = NULL; - - [window->ns.object orderOut:nil]; - - if (window->monitor) - releaseMonitor(window); - - if (window->context.destroy) - window->context.destroy(window); - - [window->ns.object setDelegate:nil]; - [window->ns.delegate release]; - window->ns.delegate = nil; - - [window->ns.view release]; - window->ns.view = nil; - - [window->ns.object close]; - window->ns.object = nil; - - [_glfw.ns.autoreleasePool drain]; - _glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char *title) -{ - [window->ns.object setTitle:[NSString stringWithUTF8String:title]]; -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - // Regular windows do not have icons -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - const NSRect contentRect = - [window->ns.object contentRectForFrameRect:[window->ns.object frame]]; - - if (xpos) - *xpos = contentRect.origin.x; - if (ypos) - *ypos = transformY(contentRect.origin.y + contentRect.size.height); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int x, int y) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect dummyRect = NSMakeRect(x, transformY(y + contentRect.size.height), 0, 0); - const NSRect frameRect = [window->ns.object frameRectForContentRect:dummyRect]; - [window->ns.object setFrameOrigin:frameRect.origin]; -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - const NSRect contentRect = [window->ns.view frame]; - - if (width) - *width = contentRect.size.width; - if (height) - *height = contentRect.size.height; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->monitor) - { - if (window->monitor->window == window) - acquireMonitor(window); - } - else - [window->ns.object setContentSize:NSMakeSize(width, height)]; -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - if (minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) - [window->ns.object setContentMinSize:NSMakeSize(0, 0)]; - else - [window->ns.object setContentMinSize:NSMakeSize(minwidth, minheight)]; - - if (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE) - [window->ns.object setContentMaxSize:NSMakeSize(DBL_MAX, DBL_MAX)]; - else - [window->ns.object setContentMaxSize:NSMakeSize(maxwidth, maxheight)]; -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE) - [window->ns.object setContentAspectRatio:NSMakeSize(0, 0)]; - else - [window->ns.object setContentAspectRatio:NSMakeSize(numer, denom)]; -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; - - if (width) - *width = (int) fbRect.size.width; - if (height) - *height = (int) fbRect.size.height; -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect]; - - if (left) - *left = contentRect.origin.x - frameRect.origin.x; - if (top) - *top = frameRect.origin.y + frameRect.size.height - - contentRect.origin.y - contentRect.size.height; - if (right) - *right = frameRect.origin.x + frameRect.size.width - - contentRect.origin.x - contentRect.size.width; - if (bottom) - *bottom = contentRect.origin.y - frameRect.origin.y; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - [window->ns.object miniaturize:nil]; -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - if ([window->ns.object isMiniaturized]) - [window->ns.object deminiaturize:nil]; - else if ([window->ns.object isZoomed]) - [window->ns.object zoom:nil]; -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - if (![window->ns.object isZoomed]) - [window->ns.object zoom:nil]; -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - [window->ns.object orderFront:nil]; -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - [window->ns.object orderOut:nil]; -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - // Make us the active application - // HACK: This has been moved here from initializeAppKit to prevent - // applications using only hidden windows from being activated, but - // should probably not be done every time any window is shown - [NSApp activateIgnoringOtherApps:YES]; - - [window->ns.object makeKeyAndOrderFront:nil]; -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - if (window->monitor == monitor) - { - if (monitor) - { - if (monitor->window == window) - acquireMonitor(window); - } - else - { - const NSRect contentRect = - NSMakeRect(xpos, transformY(ypos + height), width, height); - const NSRect frameRect = - [window->ns.object frameRectForContentRect:contentRect - styleMask:getStyleMask(window)]; - - [window->ns.object setFrame:frameRect display:YES]; - } - - return; - } - - if (window->monitor) - releaseMonitor(window); - - _glfwInputWindowMonitorChange(window, monitor); - - const NSUInteger styleMask = getStyleMask(window); - [window->ns.object setStyleMask:styleMask]; - [window->ns.object makeFirstResponder:window->ns.view]; - - NSRect contentRect; - - if (monitor) - { - GLFWvidmode mode; - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - contentRect = NSMakeRect(xpos, transformY(ypos + mode.height), - mode.width, mode.height); - } - else - { - contentRect = NSMakeRect(xpos, transformY(ypos + height), - width, height); - } - - NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect - styleMask:styleMask]; - [window->ns.object setFrame:frameRect display:YES]; - - if (monitor) - { - [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; - [window->ns.object setHasShadow:NO]; - - acquireMonitor(window); - } - else - { - if (window->numer != GLFW_DONT_CARE && - window->denom != GLFW_DONT_CARE) - { - [window->ns.object setContentAspectRatio:NSMakeSize(window->numer, - window->denom)]; - } - - if (window->minwidth != GLFW_DONT_CARE && - window->minheight != GLFW_DONT_CARE) - { - [window->ns.object setContentMinSize:NSMakeSize(window->minwidth, - window->minheight)]; - } - - if (window->maxwidth != GLFW_DONT_CARE && - window->maxheight != GLFW_DONT_CARE) - { - [window->ns.object setContentMaxSize:NSMakeSize(window->maxwidth, - window->maxheight)]; - } - - if (window->floating) - [window->ns.object setLevel:NSFloatingWindowLevel]; - else - [window->ns.object setLevel:NSNormalWindowLevel]; - - [window->ns.object setHasShadow:YES]; - } -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return [window->ns.object isKeyWindow]; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - return [window->ns.object isMiniaturized]; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return [window->ns.object isVisible]; -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - return [window->ns.object isZoomed]; -} - -void _glfwPlatformPollEvents(void) -{ - for (;;) - { - NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask - untilDate:[NSDate distantPast] - inMode:NSDefaultRunLoopMode - dequeue:YES]; - if (event == nil) - break; - - [NSApp sendEvent:event]; - } - - [_glfw.ns.autoreleasePool drain]; - _glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; -} - -void _glfwPlatformWaitEvents(void) -{ - // I wanted to pass NO to dequeue:, and rely on PollEvents to - // dequeue and send. For reasons not at all clear to me, passing - // NO to dequeue: causes this method never to return. - NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask - untilDate:[NSDate distantFuture] - inMode:NSDefaultRunLoopMode - dequeue:YES]; - [NSApp sendEvent:event]; - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - NSDate* date = [NSDate dateWithTimeIntervalSinceNow:timeout]; - NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask - untilDate:date - inMode:NSDefaultRunLoopMode - dequeue:YES]; - if (event) - [NSApp sendEvent:event]; - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; - NSEvent* event = [NSEvent otherEventWithType:NSApplicationDefined - location:NSMakePoint(0, 0) - modifierFlags:0 - timestamp:0 - windowNumber:0 - context:nil - subtype:0 - data1:0 - data2:0]; - [NSApp postEvent:event atStart:YES]; - [pool drain]; -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = contentRect.size.height - pos.y - 1; -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) -{ - updateCursorImage(window); - - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - - window->ns.cursorWarpDeltaX += x - pos.x; - window->ns.cursorWarpDeltaY += y - contentRect.size.height + pos.y; - - if (window->monitor) - { - CGDisplayMoveCursorToPoint(window->monitor->ns.displayID, - CGPointMake(x, y)); - } - else - { - const NSRect localRect = NSMakeRect(x, contentRect.size.height - y - 1, 0, 0); - const NSRect globalRect = [window->ns.object convertRectToScreen:localRect]; - const NSPoint globalPoint = globalRect.origin; - - CGWarpMouseCursorPosition(CGPointMake(globalPoint.x, - transformY(globalPoint.y))); - } -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - if (mode == GLFW_CURSOR_DISABLED) - { - _glfw.ns.disabledCursorWindow = window; - _glfwPlatformGetCursorPos(window, - &_glfw.ns.restoreCursorPosX, - &_glfw.ns.restoreCursorPosY); - centerCursor(window); - CGAssociateMouseAndMouseCursorPosition(false); - } - else if (_glfw.ns.disabledCursorWindow == window) - { - _glfw.ns.disabledCursorWindow = NULL; - CGAssociateMouseAndMouseCursorPosition(true); - _glfwPlatformSetCursorPos(window, - _glfw.ns.restoreCursorPosX, - _glfw.ns.restoreCursorPosY); - } - - if (cursorInClientArea(window)) - updateCursorImage(window); -} - -const char* _glfwPlatformGetKeyName(int key, int scancode) -{ - if (key != GLFW_KEY_UNKNOWN) - scancode = _glfw.ns.nativeKeys[key]; - - if (!_glfwIsPrintable(_glfw.ns.publicKeys[scancode])) - return NULL; - - UInt32 deadKeyState = 0; - UniChar characters[8]; - UniCharCount characterCount = 0; - - if (UCKeyTranslate([(NSData*) _glfw.ns.unicodeData bytes], - scancode, - kUCKeyActionDisplay, - 0, - LMGetKbdType(), - kUCKeyTranslateNoDeadKeysBit, - &deadKeyState, - sizeof(characters) / sizeof(characters[0]), - &characterCount, - characters) != noErr) - { - return NULL; - } - - if (!characterCount) - return NULL; - - CFStringRef string = CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, - characters, - characterCount, - kCFAllocatorNull); - CFStringGetCString(string, - _glfw.ns.keyName, - sizeof(_glfw.ns.keyName), - kCFStringEncodingUTF8); - CFRelease(string); - - return _glfw.ns.keyName; -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - NSImage* native; - NSBitmapImageRep* rep; - - if (!initializeAppKit()) - return GLFW_FALSE; - - rep = [[NSBitmapImageRep alloc] - initWithBitmapDataPlanes:NULL - pixelsWide:image->width - pixelsHigh:image->height - bitsPerSample:8 - samplesPerPixel:4 - hasAlpha:YES - isPlanar:NO - colorSpaceName:NSCalibratedRGBColorSpace - bitmapFormat:NSAlphaNonpremultipliedBitmapFormat - bytesPerRow:image->width * 4 - bitsPerPixel:32]; - - if (rep == nil) - return GLFW_FALSE; - - memcpy([rep bitmapData], image->pixels, image->width * image->height * 4); - - native = [[NSImage alloc] initWithSize:NSMakeSize(image->width, image->height)]; - [native addRepresentation:rep]; - - cursor->ns.object = [[NSCursor alloc] initWithImage:native - hotSpot:NSMakePoint(xhot, yhot)]; - - [native release]; - [rep release]; - - if (cursor->ns.object == nil) - return GLFW_FALSE; - - return GLFW_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - if (!initializeAppKit()) - return GLFW_FALSE; - - cursor->ns.object = getStandardCursor(shape); - if (!cursor->ns.object) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve standard cursor"); - return GLFW_FALSE; - } - - [cursor->ns.object retain]; - return GLFW_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->ns.object) - [(NSCursor*) cursor->ns.object release]; -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (cursorInClientArea(window)) - updateCursorImage(window); -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - NSArray* types = [NSArray arrayWithObjects:NSStringPboardType, nil]; - - NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; - [pasteboard declareTypes:types owner:nil]; - [pasteboard setString:[NSString stringWithUTF8String:string] - forType:NSStringPboardType]; -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; - - if (![[pasteboard types] containsObject:NSStringPboardType]) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "Cocoa: Failed to retrieve string from pasteboard"); - return NULL; - } - - NSString* object = [pasteboard stringForType:NSStringPboardType]; - if (!object) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve object from pasteboard"); - return NULL; - } - - free(_glfw.ns.clipboardString); - _glfw.ns.clipboardString = strdup([object UTF8String]); - - return _glfw.ns.clipboardString; -} - -char** _glfwPlatformGetRequiredInstanceExtensions(uint32_t* count) -{ - *count = 0; - return NULL; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - return GLFW_FALSE; -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - return VK_ERROR_EXTENSION_NOT_PRESENT; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI id glfwGetCocoaWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(nil); - return window->ns.object; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/context.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/context.c deleted file mode 100644 index 85bce7f..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/context.c +++ /dev/null @@ -1,720 +0,0 @@ -//======================================================================== -// GLFW 3.2 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWbool _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig) -{ - if (ctxconfig->source != GLFW_NATIVE_CONTEXT_API && - ctxconfig->source != GLFW_EGL_CONTEXT_API) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid context creation API %i", - ctxconfig->source); - return GLFW_FALSE; - } - - if (ctxconfig->client != GLFW_NO_API && - ctxconfig->client != GLFW_OPENGL_API && - ctxconfig->client != GLFW_OPENGL_ES_API) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid client API %i", - ctxconfig->client); - return GLFW_FALSE; - } - - if (ctxconfig->client == GLFW_OPENGL_API) - { - if ((ctxconfig->major < 1 || ctxconfig->minor < 0) || - (ctxconfig->major == 1 && ctxconfig->minor > 5) || - (ctxconfig->major == 2 && ctxconfig->minor > 1) || - (ctxconfig->major == 3 && ctxconfig->minor > 3)) - { - // OpenGL 1.0 is the smallest valid version - // OpenGL 1.x series ended with version 1.5 - // OpenGL 2.x series ended with version 2.1 - // OpenGL 3.x series ended with version 3.3 - // For now, let everything else through - - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid OpenGL version %i.%i", - ctxconfig->major, ctxconfig->minor); - return GLFW_FALSE; - } - - if (ctxconfig->profile) - { - if (ctxconfig->profile != GLFW_OPENGL_CORE_PROFILE && - ctxconfig->profile != GLFW_OPENGL_COMPAT_PROFILE) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid OpenGL profile %i", - ctxconfig->profile); - return GLFW_FALSE; - } - - if (ctxconfig->major <= 2 || - (ctxconfig->major == 3 && ctxconfig->minor < 2)) - { - // Desktop OpenGL context profiles are only defined for version 3.2 - // and above - - _glfwInputError(GLFW_INVALID_VALUE, - "Context profiles are only defined for OpenGL version 3.2 and above"); - return GLFW_FALSE; - } - } - - if (ctxconfig->forward && ctxconfig->major <= 2) - { - // Forward-compatible contexts are only defined for OpenGL version 3.0 and above - _glfwInputError(GLFW_INVALID_VALUE, - "Forward-compatibility is only defined for OpenGL version 3.0 and above"); - return GLFW_FALSE; - } - } - else if (ctxconfig->client == GLFW_OPENGL_ES_API) - { - if (ctxconfig->major < 1 || ctxconfig->minor < 0 || - (ctxconfig->major == 1 && ctxconfig->minor > 1) || - (ctxconfig->major == 2 && ctxconfig->minor > 0)) - { - // OpenGL ES 1.0 is the smallest valid version - // OpenGL ES 1.x series ended with version 1.1 - // OpenGL ES 2.x series ended with version 2.0 - // For now, let everything else through - - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid OpenGL ES version %i.%i", - ctxconfig->major, ctxconfig->minor); - return GLFW_FALSE; - } - } - - if (ctxconfig->robustness) - { - if (ctxconfig->robustness != GLFW_NO_RESET_NOTIFICATION && - ctxconfig->robustness != GLFW_LOSE_CONTEXT_ON_RESET) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid context robustness mode %i", - ctxconfig->robustness); - return GLFW_FALSE; - } - } - - if (ctxconfig->release) - { - if (ctxconfig->release != GLFW_RELEASE_BEHAVIOR_NONE && - ctxconfig->release != GLFW_RELEASE_BEHAVIOR_FLUSH) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid context release behavior %i", - ctxconfig->release); - return GLFW_FALSE; - } - } - - return GLFW_TRUE; -} - -const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, - const _GLFWfbconfig* alternatives, - unsigned int count) -{ - unsigned int i; - unsigned int missing, leastMissing = UINT_MAX; - unsigned int colorDiff, leastColorDiff = UINT_MAX; - unsigned int extraDiff, leastExtraDiff = UINT_MAX; - const _GLFWfbconfig* current; - const _GLFWfbconfig* closest = NULL; - - for (i = 0; i < count; i++) - { - current = alternatives + i; - - if (desired->stereo > 0 && current->stereo == 0) - { - // Stereo is a hard constraint - continue; - } - - if (desired->doublebuffer != current->doublebuffer) - { - // Double buffering is a hard constraint - continue; - } - - // Count number of missing buffers - { - missing = 0; - - if (desired->alphaBits > 0 && current->alphaBits == 0) - missing++; - - if (desired->depthBits > 0 && current->depthBits == 0) - missing++; - - if (desired->stencilBits > 0 && current->stencilBits == 0) - missing++; - - if (desired->auxBuffers > 0 && - current->auxBuffers < desired->auxBuffers) - { - missing += desired->auxBuffers - current->auxBuffers; - } - - if (desired->samples > 0 && current->samples == 0) - { - // Technically, several multisampling buffers could be - // involved, but that's a lower level implementation detail and - // not important to us here, so we count them as one - missing++; - } - } - - // These polynomials make many small channel size differences matter - // less than one large channel size difference - - // Calculate color channel size difference value - { - colorDiff = 0; - - if (desired->redBits != GLFW_DONT_CARE) - { - colorDiff += (desired->redBits - current->redBits) * - (desired->redBits - current->redBits); - } - - if (desired->greenBits != GLFW_DONT_CARE) - { - colorDiff += (desired->greenBits - current->greenBits) * - (desired->greenBits - current->greenBits); - } - - if (desired->blueBits != GLFW_DONT_CARE) - { - colorDiff += (desired->blueBits - current->blueBits) * - (desired->blueBits - current->blueBits); - } - } - - // Calculate non-color channel size difference value - { - extraDiff = 0; - - if (desired->alphaBits != GLFW_DONT_CARE) - { - extraDiff += (desired->alphaBits - current->alphaBits) * - (desired->alphaBits - current->alphaBits); - } - - if (desired->depthBits != GLFW_DONT_CARE) - { - extraDiff += (desired->depthBits - current->depthBits) * - (desired->depthBits - current->depthBits); - } - - if (desired->stencilBits != GLFW_DONT_CARE) - { - extraDiff += (desired->stencilBits - current->stencilBits) * - (desired->stencilBits - current->stencilBits); - } - - if (desired->accumRedBits != GLFW_DONT_CARE) - { - extraDiff += (desired->accumRedBits - current->accumRedBits) * - (desired->accumRedBits - current->accumRedBits); - } - - if (desired->accumGreenBits != GLFW_DONT_CARE) - { - extraDiff += (desired->accumGreenBits - current->accumGreenBits) * - (desired->accumGreenBits - current->accumGreenBits); - } - - if (desired->accumBlueBits != GLFW_DONT_CARE) - { - extraDiff += (desired->accumBlueBits - current->accumBlueBits) * - (desired->accumBlueBits - current->accumBlueBits); - } - - if (desired->accumAlphaBits != GLFW_DONT_CARE) - { - extraDiff += (desired->accumAlphaBits - current->accumAlphaBits) * - (desired->accumAlphaBits - current->accumAlphaBits); - } - - if (desired->samples != GLFW_DONT_CARE) - { - extraDiff += (desired->samples - current->samples) * - (desired->samples - current->samples); - } - - if (desired->sRGB && !current->sRGB) - extraDiff++; - } - - // Figure out if the current one is better than the best one found so far - // Least number of missing buffers is the most important heuristic, - // then color buffer size match and lastly size match for other buffers - - if (missing < leastMissing) - closest = current; - else if (missing == leastMissing) - { - if ((colorDiff < leastColorDiff) || - (colorDiff == leastColorDiff && extraDiff < leastExtraDiff)) - { - closest = current; - } - } - - if (current == closest) - { - leastMissing = missing; - leastColorDiff = colorDiff; - leastExtraDiff = extraDiff; - } - } - - return closest; -} - -GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) -{ - int i; - _GLFWwindow* window; - const char* version; - const char* prefixes[] = - { - "OpenGL ES-CM ", - "OpenGL ES-CL ", - "OpenGL ES ", - NULL - }; - - window = _glfwPlatformGetCurrentContext(); - - window->context.source = ctxconfig->source; - window->context.client = GLFW_OPENGL_API; - - window->context.GetIntegerv = (PFNGLGETINTEGERVPROC) - window->context.getProcAddress("glGetIntegerv"); - window->context.GetString = (PFNGLGETSTRINGPROC) - window->context.getProcAddress("glGetString"); - if (!window->context.GetIntegerv || !window->context.GetString) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Entry point retrieval is broken"); - return GLFW_FALSE; - } - - version = (const char*) window->context.GetString(GL_VERSION); - if (!version) - { - if (ctxconfig->client == GLFW_OPENGL_API) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "OpenGL version string retrieval is broken"); - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "OpenGL ES version string retrieval is broken"); - } - - return GLFW_FALSE; - } - - for (i = 0; prefixes[i]; i++) - { - const size_t length = strlen(prefixes[i]); - - if (strncmp(version, prefixes[i], length) == 0) - { - version += length; - window->context.client = GLFW_OPENGL_ES_API; - break; - } - } - - if (!sscanf(version, "%d.%d.%d", - &window->context.major, - &window->context.minor, - &window->context.revision)) - { - if (window->context.client == GLFW_OPENGL_API) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "No version found in OpenGL version string"); - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "No version found in OpenGL ES version string"); - } - - return GLFW_FALSE; - } - - if (window->context.major < ctxconfig->major || - (window->context.major == ctxconfig->major && - window->context.minor < ctxconfig->minor)) - { - // The desired OpenGL version is greater than the actual version - // This only happens if the machine lacks {GLX|WGL}_ARB_create_context - // /and/ the user has requested an OpenGL version greater than 1.0 - - // For API consistency, we emulate the behavior of the - // {GLX|WGL}_ARB_create_context extension and fail here - - if (window->context.client == GLFW_OPENGL_API) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "Requested OpenGL version %i.%i, got version %i.%i", - ctxconfig->major, ctxconfig->minor, - window->context.major, window->context.minor); - } - else - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "Requested OpenGL ES version %i.%i, got version %i.%i", - ctxconfig->major, ctxconfig->minor, - window->context.major, window->context.minor); - } - - return GLFW_FALSE; - } - - if (window->context.major >= 3) - { - // OpenGL 3.0+ uses a different function for extension string retrieval - // We cache it here instead of in glfwExtensionSupported mostly to alert - // users as early as possible that their build may be broken - - window->context.GetStringi = (PFNGLGETSTRINGIPROC) - window->context.getProcAddress("glGetStringi"); - if (!window->context.GetStringi) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Entry point retrieval is broken"); - return GLFW_FALSE; - } - } - - if (window->context.client == GLFW_OPENGL_API) - { - // Read back context flags (OpenGL 3.0 and above) - if (window->context.major >= 3) - { - GLint flags; - window->context.GetIntegerv(GL_CONTEXT_FLAGS, &flags); - - if (flags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT) - window->context.forward = GLFW_TRUE; - - if (flags & GL_CONTEXT_FLAG_DEBUG_BIT) - window->context.debug = GLFW_TRUE; - else if (glfwExtensionSupported("GL_ARB_debug_output") && - ctxconfig->debug) - { - // HACK: This is a workaround for older drivers (pre KHR_debug) - // not setting the debug bit in the context flags for - // debug contexts - window->context.debug = GLFW_TRUE; - } - - if (flags & GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR) - window->context.noerror = GLFW_TRUE; - } - - // Read back OpenGL context profile (OpenGL 3.2 and above) - if (window->context.major >= 4 || - (window->context.major == 3 && window->context.minor >= 2)) - { - GLint mask; - window->context.GetIntegerv(GL_CONTEXT_PROFILE_MASK, &mask); - - if (mask & GL_CONTEXT_COMPATIBILITY_PROFILE_BIT) - window->context.profile = GLFW_OPENGL_COMPAT_PROFILE; - else if (mask & GL_CONTEXT_CORE_PROFILE_BIT) - window->context.profile = GLFW_OPENGL_CORE_PROFILE; - else if (glfwExtensionSupported("GL_ARB_compatibility")) - { - // HACK: This is a workaround for the compatibility profile bit - // not being set in the context flags if an OpenGL 3.2+ - // context was created without having requested a specific - // version - window->context.profile = GLFW_OPENGL_COMPAT_PROFILE; - } - } - - // Read back robustness strategy - if (glfwExtensionSupported("GL_ARB_robustness")) - { - // NOTE: We avoid using the context flags for detection, as they are - // only present from 3.0 while the extension applies from 1.1 - - GLint strategy; - window->context.GetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, - &strategy); - - if (strategy == GL_LOSE_CONTEXT_ON_RESET_ARB) - window->context.robustness = GLFW_LOSE_CONTEXT_ON_RESET; - else if (strategy == GL_NO_RESET_NOTIFICATION_ARB) - window->context.robustness = GLFW_NO_RESET_NOTIFICATION; - } - } - else - { - // Read back robustness strategy - if (glfwExtensionSupported("GL_EXT_robustness")) - { - // NOTE: The values of these constants match those of the OpenGL ARB - // one, so we can reuse them here - - GLint strategy; - window->context.GetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, - &strategy); - - if (strategy == GL_LOSE_CONTEXT_ON_RESET_ARB) - window->context.robustness = GLFW_LOSE_CONTEXT_ON_RESET; - else if (strategy == GL_NO_RESET_NOTIFICATION_ARB) - window->context.robustness = GLFW_NO_RESET_NOTIFICATION; - } - } - - if (glfwExtensionSupported("GL_KHR_context_flush_control")) - { - GLint behavior; - window->context.GetIntegerv(GL_CONTEXT_RELEASE_BEHAVIOR, &behavior); - - if (behavior == GL_NONE) - window->context.release = GLFW_RELEASE_BEHAVIOR_NONE; - else if (behavior == GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH) - window->context.release = GLFW_RELEASE_BEHAVIOR_FLUSH; - } - - // Clearing the front buffer to black to avoid garbage pixels left over from - // previous uses of our bit of VRAM - { - PFNGLCLEARPROC glClear = (PFNGLCLEARPROC) - window->context.getProcAddress("glClear"); - glClear(GL_COLOR_BUFFER_BIT); - window->context.swapBuffers(window); - } - - return GLFW_TRUE; -} - -GLFWbool _glfwStringInExtensionString(const char* string, const char* extensions) -{ - const char* start = extensions; - - for (;;) - { - const char* where; - const char* terminator; - - where = strstr(start, string); - if (!where) - return GLFW_FALSE; - - terminator = where + strlen(string); - if (where == start || *(where - 1) == ' ') - { - if (*terminator == ' ' || *terminator == '\0') - break; - } - - start = terminator; - } - - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI void glfwMakeContextCurrent(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFWwindow* previous = _glfwPlatformGetCurrentContext(); - - _GLFW_REQUIRE_INIT(); - - if (window && window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return; - } - - if (previous) - { - if (!window || window->context.source != previous->context.source) - previous->context.makeCurrent(NULL); - } - - if (window) - window->context.makeCurrent(window); -} - -GLFWAPI GLFWwindow* glfwGetCurrentContext(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return (GLFWwindow*) _glfwPlatformGetCurrentContext(); -} - -GLFWAPI void glfwSwapBuffers(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - if (window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return; - } - - window->context.swapBuffers(window); -} - -GLFWAPI void glfwSwapInterval(int interval) -{ - _GLFWwindow* window; - - _GLFW_REQUIRE_INIT(); - - window = _glfwPlatformGetCurrentContext(); - if (!window) - { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); - return; - } - - window->context.swapInterval(interval); -} - -GLFWAPI int glfwExtensionSupported(const char* extension) -{ - _GLFWwindow* window; - - assert(extension != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); - - window = _glfwPlatformGetCurrentContext(); - if (!window) - { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); - return GLFW_FALSE; - } - - if (*extension == '\0') - { - _glfwInputError(GLFW_INVALID_VALUE, "Extension name is empty string"); - return GLFW_FALSE; - } - - if (window->context.major >= 3) - { - int i; - GLint count; - - // Check if extension is in the modern OpenGL extensions string list - - window->context.GetIntegerv(GL_NUM_EXTENSIONS, &count); - - for (i = 0; i < count; i++) - { - const char* en = (const char*) - window->context.GetStringi(GL_EXTENSIONS, i); - if (!en) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Extension string retrieval is broken"); - return GLFW_FALSE; - } - - if (strcmp(en, extension) == 0) - return GLFW_TRUE; - } - } - else - { - // Check if extension is in the old style OpenGL extensions string - - const char* extensions = (const char*) - window->context.GetString(GL_EXTENSIONS); - if (!extensions) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Extension string retrieval is broken"); - return GLFW_FALSE; - } - - if (_glfwStringInExtensionString(extension, extensions)) - return GLFW_TRUE; - } - - // Check if extension is in the platform-specific string - return window->context.extensionSupported(extension); -} - -GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname) -{ - _GLFWwindow* window; - assert(procname != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - window = _glfwPlatformGetCurrentContext(); - if (!window) - { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); - return NULL; - } - - return window->context.getProcAddress(procname); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/egl_context.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/egl_context.c deleted file mode 100644 index e3d6260..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/egl_context.c +++ /dev/null @@ -1,746 +0,0 @@ -//======================================================================== -// GLFW 3.2 EGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - - -// Return a description of the specified EGL error -// -static const char* getEGLErrorString(EGLint error) -{ - switch (error) - { - case EGL_SUCCESS: - return "Success"; - case EGL_NOT_INITIALIZED: - return "EGL is not or could not be initialized"; - case EGL_BAD_ACCESS: - return "EGL cannot access a requested resource"; - case EGL_BAD_ALLOC: - return "EGL failed to allocate resources for the requested operation"; - case EGL_BAD_ATTRIBUTE: - return "An unrecognized attribute or attribute value was passed in the attribute list"; - case EGL_BAD_CONTEXT: - return "An EGLContext argument does not name a valid EGL rendering context"; - case EGL_BAD_CONFIG: - return "An EGLConfig argument does not name a valid EGL frame buffer configuration"; - case EGL_BAD_CURRENT_SURFACE: - return "The current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid"; - case EGL_BAD_DISPLAY: - return "An EGLDisplay argument does not name a valid EGL display connection"; - case EGL_BAD_SURFACE: - return "An EGLSurface argument does not name a valid surface configured for GL rendering"; - case EGL_BAD_MATCH: - return "Arguments are inconsistent"; - case EGL_BAD_PARAMETER: - return "One or more argument values are invalid"; - case EGL_BAD_NATIVE_PIXMAP: - return "A NativePixmapType argument does not refer to a valid native pixmap"; - case EGL_BAD_NATIVE_WINDOW: - return "A NativeWindowType argument does not refer to a valid native window"; - case EGL_CONTEXT_LOST: - return "The application must destroy all contexts and reinitialise"; - default: - return "ERROR: UNKNOWN EGL ERROR"; - } -} - -// Returns the specified attribute of the specified EGLConfig -// -static int getEGLConfigAttrib(EGLConfig config, int attrib) -{ - int value; - eglGetConfigAttrib(_glfw.egl.display, config, attrib, &value); - return value; -} - -// Return the EGLConfig most closely matching the specified hints -// -static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* desired, - EGLConfig* result) -{ - EGLConfig* nativeConfigs; - _GLFWfbconfig* usableConfigs; - const _GLFWfbconfig* closest; - int i, nativeCount, usableCount; - - eglGetConfigs(_glfw.egl.display, NULL, 0, &nativeCount); - if (!nativeCount) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: No EGLConfigs returned"); - return GLFW_FALSE; - } - - nativeConfigs = calloc(nativeCount, sizeof(EGLConfig)); - eglGetConfigs(_glfw.egl.display, nativeConfigs, nativeCount, &nativeCount); - - usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); - usableCount = 0; - - for (i = 0; i < nativeCount; i++) - { - const EGLConfig n = nativeConfigs[i]; - _GLFWfbconfig* u = usableConfigs + usableCount; - - // Only consider RGB(A) EGLConfigs - if (!(getEGLConfigAttrib(n, EGL_COLOR_BUFFER_TYPE) & EGL_RGB_BUFFER)) - continue; - - // Only consider window EGLConfigs - if (!(getEGLConfigAttrib(n, EGL_SURFACE_TYPE) & EGL_WINDOW_BIT)) - continue; - -#if defined(_GLFW_X11) - // Only consider EGLConfigs with associated Visuals - if (!getEGLConfigAttrib(n, EGL_NATIVE_VISUAL_ID)) - continue; -#endif // _GLFW_X11 - - if (ctxconfig->client == GLFW_OPENGL_ES_API) - { - if (ctxconfig->major == 1) - { - if (!(getEGLConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_ES_BIT)) - continue; - } - else - { - if (!(getEGLConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_ES2_BIT)) - continue; - } - } - else if (ctxconfig->client == GLFW_OPENGL_API) - { - if (!(getEGLConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_BIT)) - continue; - } - - u->redBits = getEGLConfigAttrib(n, EGL_RED_SIZE); - u->greenBits = getEGLConfigAttrib(n, EGL_GREEN_SIZE); - u->blueBits = getEGLConfigAttrib(n, EGL_BLUE_SIZE); - - u->alphaBits = getEGLConfigAttrib(n, EGL_ALPHA_SIZE); - u->depthBits = getEGLConfigAttrib(n, EGL_DEPTH_SIZE); - u->stencilBits = getEGLConfigAttrib(n, EGL_STENCIL_SIZE); - - u->samples = getEGLConfigAttrib(n, EGL_SAMPLES); - u->doublebuffer = GLFW_TRUE; - - u->handle = (uintptr_t) n; - usableCount++; - } - - closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); - if (closest) - *result = (EGLConfig) closest->handle; - - free(nativeConfigs); - free(usableConfigs); - - return closest != NULL; -} - -static void makeContextCurrentEGL(_GLFWwindow* window) -{ - if (window) - { - if (!eglMakeCurrent(_glfw.egl.display, - window->context.egl.surface, - window->context.egl.surface, - window->context.egl.handle)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "EGL: Failed to make context current: %s", - getEGLErrorString(eglGetError())); - return; - } - } - else - { - if (!eglMakeCurrent(_glfw.egl.display, - EGL_NO_SURFACE, - EGL_NO_SURFACE, - EGL_NO_CONTEXT)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "EGL: Failed to clear current context: %s", - getEGLErrorString(eglGetError())); - return; - } - } - - _glfwPlatformSetCurrentContext(window); -} - -static void swapBuffersEGL(_GLFWwindow* window) -{ - if (window != _glfwPlatformGetCurrentContext()) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "EGL: The context must be current on the calling thread when swapping buffers"); - return; - } - - eglSwapBuffers(_glfw.egl.display, window->context.egl.surface); -} - -static void swapIntervalEGL(int interval) -{ - eglSwapInterval(_glfw.egl.display, interval); -} - -static int extensionSupportedEGL(const char* extension) -{ - const char* extensions = eglQueryString(_glfw.egl.display, EGL_EXTENSIONS); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GLFW_TRUE; - } - - return GLFW_FALSE; -} - -static GLFWglproc getProcAddressEGL(const char* procname) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - if (window->context.egl.client) - { - GLFWglproc proc = (GLFWglproc) _glfw_dlsym(window->context.egl.client, - procname); - if (proc) - return proc; - } - - return eglGetProcAddress(procname); -} - -static void destroyContextEGL(_GLFWwindow* window) -{ -#if defined(_GLFW_X11) - // NOTE: Do not unload libGL.so.1 while the X11 display is still open, - // as it will make XCloseDisplay segfault - if (window->context.client != GLFW_OPENGL_API) -#endif // _GLFW_X11 - { - if (window->context.egl.client) - { - _glfw_dlclose(window->context.egl.client); - window->context.egl.client = NULL; - } - } - - if (window->context.egl.surface) - { - eglDestroySurface(_glfw.egl.display, window->context.egl.surface); - window->context.egl.surface = EGL_NO_SURFACE; - } - - if (window->context.egl.handle) - { - eglDestroyContext(_glfw.egl.display, window->context.egl.handle); - window->context.egl.handle = EGL_NO_CONTEXT; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize EGL -// -GLFWbool _glfwInitEGL(void) -{ - int i; - const char* sonames[] = - { -#if defined(_GLFW_WIN32) - "libEGL.dll", - "EGL.dll", -#elif defined(_GLFW_COCOA) - "libEGL.dylib", -#else - "libEGL.so.1", -#endif - NULL - }; - - if (_glfw.egl.handle) - return GLFW_TRUE; - - for (i = 0; sonames[i]; i++) - { - _glfw.egl.handle = _glfw_dlopen(sonames[i]); - if (_glfw.egl.handle) - break; - } - - if (!_glfw.egl.handle) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: Library not found"); - return GLFW_FALSE; - } - - _glfw.egl.prefix = (strncmp(sonames[i], "lib", 3) == 0); - - _glfw.egl.GetConfigAttrib = (PFNEGLGETCONFIGATTRIBPROC) - _glfw_dlsym(_glfw.egl.handle, "eglGetConfigAttrib"); - _glfw.egl.GetConfigs = (PFNEGLGETCONFIGSPROC) - _glfw_dlsym(_glfw.egl.handle, "eglGetConfigs"); - _glfw.egl.GetDisplay = (PFNEGLGETDISPLAYPROC) - _glfw_dlsym(_glfw.egl.handle, "eglGetDisplay"); - _glfw.egl.GetError = (PFNEGLGETERRORPROC) - _glfw_dlsym(_glfw.egl.handle, "eglGetError"); - _glfw.egl.Initialize = (PFNEGLINITIALIZEPROC) - _glfw_dlsym(_glfw.egl.handle, "eglInitialize"); - _glfw.egl.Terminate = (PFNEGLTERMINATEPROC) - _glfw_dlsym(_glfw.egl.handle, "eglTerminate"); - _glfw.egl.BindAPI = (PFNEGLBINDAPIPROC) - _glfw_dlsym(_glfw.egl.handle, "eglBindAPI"); - _glfw.egl.CreateContext = (PFNEGLCREATECONTEXTPROC) - _glfw_dlsym(_glfw.egl.handle, "eglCreateContext"); - _glfw.egl.DestroySurface = (PFNEGLDESTROYSURFACEPROC) - _glfw_dlsym(_glfw.egl.handle, "eglDestroySurface"); - _glfw.egl.DestroyContext = (PFNEGLDESTROYCONTEXTPROC) - _glfw_dlsym(_glfw.egl.handle, "eglDestroyContext"); - _glfw.egl.CreateWindowSurface = (PFNEGLCREATEWINDOWSURFACEPROC) - _glfw_dlsym(_glfw.egl.handle, "eglCreateWindowSurface"); - _glfw.egl.MakeCurrent = (PFNEGLMAKECURRENTPROC) - _glfw_dlsym(_glfw.egl.handle, "eglMakeCurrent"); - _glfw.egl.SwapBuffers = (PFNEGLSWAPBUFFERSPROC) - _glfw_dlsym(_glfw.egl.handle, "eglSwapBuffers"); - _glfw.egl.SwapInterval = (PFNEGLSWAPINTERVALPROC) - _glfw_dlsym(_glfw.egl.handle, "eglSwapInterval"); - _glfw.egl.QueryString = (PFNEGLQUERYSTRINGPROC) - _glfw_dlsym(_glfw.egl.handle, "eglQueryString"); - _glfw.egl.GetProcAddress = (PFNEGLGETPROCADDRESSPROC) - _glfw_dlsym(_glfw.egl.handle, "eglGetProcAddress"); - - if (!_glfw.egl.GetConfigAttrib || - !_glfw.egl.GetConfigs || - !_glfw.egl.GetDisplay || - !_glfw.egl.GetError || - !_glfw.egl.Initialize || - !_glfw.egl.Terminate || - !_glfw.egl.BindAPI || - !_glfw.egl.CreateContext || - !_glfw.egl.DestroySurface || - !_glfw.egl.DestroyContext || - !_glfw.egl.CreateWindowSurface || - !_glfw.egl.MakeCurrent || - !_glfw.egl.SwapBuffers || - !_glfw.egl.SwapInterval || - !_glfw.egl.QueryString || - !_glfw.egl.GetProcAddress) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "EGL: Failed to load required entry points"); - - _glfwTerminateEGL(); - return GLFW_FALSE; - } - - _glfw.egl.display = eglGetDisplay(_GLFW_EGL_NATIVE_DISPLAY); - if (_glfw.egl.display == EGL_NO_DISPLAY) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to get EGL display: %s", - getEGLErrorString(eglGetError())); - - _glfwTerminateEGL(); - return GLFW_FALSE; - } - - if (!eglInitialize(_glfw.egl.display, &_glfw.egl.major, &_glfw.egl.minor)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to initialize EGL: %s", - getEGLErrorString(eglGetError())); - - _glfwTerminateEGL(); - return GLFW_FALSE; - } - - _glfw.egl.KHR_create_context = - extensionSupportedEGL("EGL_KHR_create_context"); - _glfw.egl.KHR_create_context_no_error = - extensionSupportedEGL("EGL_KHR_create_context_no_error"); - _glfw.egl.KHR_gl_colorspace = - extensionSupportedEGL("EGL_KHR_gl_colorspace"); - - return GLFW_TRUE; -} - -// Terminate EGL -// -void _glfwTerminateEGL(void) -{ - if (_glfw.egl.display) - { - eglTerminate(_glfw.egl.display); - _glfw.egl.display = EGL_NO_DISPLAY; - } - - if (_glfw.egl.handle) - { - _glfw_dlclose(_glfw.egl.handle); - _glfw.egl.handle = NULL; - } -} - -#define setEGLattrib(attribName, attribValue) \ -{ \ - attribs[index++] = attribName; \ - attribs[index++] = attribValue; \ - assert((size_t) index < sizeof(attribs) / sizeof(attribs[0])); \ -} - -// Create the OpenGL or OpenGL ES context -// -GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - EGLint attribs[40]; - EGLConfig config; - EGLContext share = NULL; - - if (!_glfw.egl.display) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: API not available"); - return GLFW_FALSE; - } - - if (ctxconfig->share) - share = ctxconfig->share->context.egl.handle; - - if (!chooseEGLConfig(ctxconfig, fbconfig, &config)) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "EGL: Failed to find a suitable EGLConfig"); - return GLFW_FALSE; - } - - if (ctxconfig->client == GLFW_OPENGL_ES_API) - { - if (!eglBindAPI(EGL_OPENGL_ES_API)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to bind OpenGL ES: %s", - getEGLErrorString(eglGetError())); - return GLFW_FALSE; - } - } - else - { - if (!eglBindAPI(EGL_OPENGL_API)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to bind OpenGL: %s", - getEGLErrorString(eglGetError())); - return GLFW_FALSE; - } - } - - if (_glfw.egl.KHR_create_context) - { - int index = 0, mask = 0, flags = 0; - - if (ctxconfig->client == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - flags |= EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR; - - if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) - mask |= EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR; - else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) - mask |= EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR; - - if (_glfw.egl.KHR_create_context_no_error) - { - if (ctxconfig->noerror) - flags |= EGL_CONTEXT_OPENGL_NO_ERROR_KHR; - } - } - - if (ctxconfig->debug) - flags |= EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR; - - if (ctxconfig->robustness) - { - if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) - { - setEGLattrib(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR, - EGL_NO_RESET_NOTIFICATION_KHR); - } - else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) - { - setEGLattrib(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR, - EGL_LOSE_CONTEXT_ON_RESET_KHR); - } - - flags |= EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR; - } - - if (ctxconfig->major != 1 || ctxconfig->minor != 0) - { - setEGLattrib(EGL_CONTEXT_MAJOR_VERSION_KHR, ctxconfig->major); - setEGLattrib(EGL_CONTEXT_MINOR_VERSION_KHR, ctxconfig->minor); - } - - if (mask) - setEGLattrib(EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR, mask); - - if (flags) - setEGLattrib(EGL_CONTEXT_FLAGS_KHR, flags); - - setEGLattrib(EGL_NONE, EGL_NONE); - } - else - { - int index = 0; - - if (ctxconfig->client == GLFW_OPENGL_ES_API) - setEGLattrib(EGL_CONTEXT_CLIENT_VERSION, ctxconfig->major); - - setEGLattrib(EGL_NONE, EGL_NONE); - } - - // Context release behaviors (GL_KHR_context_flush_control) are not yet - // supported on EGL but are not a hard constraint, so ignore and continue - - window->context.egl.handle = eglCreateContext(_glfw.egl.display, - config, share, attribs); - - if (window->context.egl.handle == EGL_NO_CONTEXT) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "EGL: Failed to create context: %s", - getEGLErrorString(eglGetError())); - return GLFW_FALSE; - } - - // Set up attributes for surface creation - { - int index = 0; - - if (fbconfig->sRGB) - { - if (_glfw.egl.KHR_gl_colorspace) - { - setEGLattrib(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR); - } - } - - setEGLattrib(EGL_NONE, EGL_NONE); - } - - window->context.egl.surface = - eglCreateWindowSurface(_glfw.egl.display, - config, - _GLFW_EGL_NATIVE_WINDOW, - attribs); - if (window->context.egl.surface == EGL_NO_SURFACE) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "EGL: Failed to create window surface: %s", - getEGLErrorString(eglGetError())); - return GLFW_FALSE; - } - - window->context.egl.config = config; - - // Load the appropriate client library - { - int i; - const char** sonames; - const char* es1sonames[] = - { -#if defined(_GLFW_WIN32) - "GLESv1_CM.dll", - "libGLES_CM.dll", -#elif defined(_GLFW_COCOA) - "libGLESv1_CM.dylib", -#else - "libGLESv1_CM.so.1", - "libGLES_CM.so.1", -#endif - NULL - }; - const char* es2sonames[] = - { -#if defined(_GLFW_WIN32) - "GLESv2.dll", - "libGLESv2.dll", -#elif defined(_GLFW_COCOA) - "libGLESv2.dylib", -#else - "libGLESv2.so.2", -#endif - NULL - }; - const char* glsonames[] = - { -#if defined(_GLFW_WIN32) -#elif defined(_GLFW_COCOA) -#else - "libGL.so.1", -#endif - NULL - }; - - if (ctxconfig->client == GLFW_OPENGL_ES_API) - { - if (ctxconfig->major == 1) - sonames = es1sonames; - else - sonames = es2sonames; - } - else - sonames = glsonames; - - for (i = 0; sonames[i]; i++) - { - // HACK: Match presence of lib prefix to increase chance of finding - // a matching pair in the jungle that is Win32 EGL/GLES - if (_glfw.egl.prefix != (strncmp(sonames[i], "lib", 3) == 0)) - continue; - - window->context.egl.client = _glfw_dlopen(sonames[i]); - if (window->context.egl.client) - break; - } - - if (!window->context.egl.client) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "EGL: Failed to load client library"); - return GLFW_FALSE; - } - } - - window->context.makeCurrent = makeContextCurrentEGL; - window->context.swapBuffers = swapBuffersEGL; - window->context.swapInterval = swapIntervalEGL; - window->context.extensionSupported = extensionSupportedEGL; - window->context.getProcAddress = getProcAddressEGL; - window->context.destroy = destroyContextEGL; - - return GLFW_TRUE; -} - -#undef setEGLattrib - -// Returns the Visual and depth of the chosen EGLConfig -// -#if defined(_GLFW_X11) -GLFWbool _glfwChooseVisualEGL(const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig, - Visual** visual, int* depth) -{ - XVisualInfo* result; - XVisualInfo desired; - EGLConfig native; - EGLint visualID = 0, count = 0; - const long vimask = VisualScreenMask | VisualIDMask; - - if (!chooseEGLConfig(ctxconfig, fbconfig, &native)) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "EGL: Failed to find a suitable EGLConfig"); - return GLFW_FALSE; - } - - eglGetConfigAttrib(_glfw.egl.display, native, - EGL_NATIVE_VISUAL_ID, &visualID); - - desired.screen = _glfw.x11.screen; - desired.visualid = visualID; - - result = XGetVisualInfo(_glfw.x11.display, vimask, &desired, &count); - if (!result) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "EGL: Failed to retrieve Visual for EGLConfig"); - return GLFW_FALSE; - } - - *visual = result->visual; - *depth = result->depth; - - XFree(result); - return GLFW_TRUE; -} -#endif // _GLFW_X11 - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI EGLDisplay glfwGetEGLDisplay(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_DISPLAY); - return _glfw.egl.display; -} - -GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_CONTEXT); - - if (window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return EGL_NO_CONTEXT; - } - - return window->context.egl.handle; -} - -GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_SURFACE); - - if (window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return EGL_NO_SURFACE; - } - - return window->context.egl.surface; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/egl_context.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/egl_context.h deleted file mode 100644 index 9bd8bb4..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/egl_context.h +++ /dev/null @@ -1,213 +0,0 @@ -//======================================================================== -// GLFW 3.2 EGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_egl_context_h_ -#define _glfw3_egl_context_h_ - -#if defined(_GLFW_USE_EGLPLATFORM_H) - #include -#elif defined(_GLFW_WIN32) - #define EGLAPIENTRY __stdcall -typedef HDC EGLNativeDisplayType; -typedef HWND EGLNativeWindowType; -#elif defined(_GLFW_X11) - #define EGLAPIENTRY -typedef Display* EGLNativeDisplayType; -typedef Window EGLNativeWindowType; -#elif defined(_GLFW_WAYLAND) - #define EGLAPIENTRY -typedef struct wl_display* EGLNativeDisplayType; -typedef struct wl_egl_window* EGLNativeWindowType; -#elif defined(_GLFW_MIR) - #define EGLAPIENTRY -typedef MirEGLNativeDisplayType EGLNativeDisplayType; -typedef MirEGLNativeWindowType EGLNativeWindowType; -#else - #error "No supported EGL platform selected" -#endif - -#define EGL_SUCCESS 0x3000 -#define EGL_NOT_INITIALIZED 0x3001 -#define EGL_BAD_ACCESS 0x3002 -#define EGL_BAD_ALLOC 0x3003 -#define EGL_BAD_ATTRIBUTE 0x3004 -#define EGL_BAD_CONFIG 0x3005 -#define EGL_BAD_CONTEXT 0x3006 -#define EGL_BAD_CURRENT_SURFACE 0x3007 -#define EGL_BAD_DISPLAY 0x3008 -#define EGL_BAD_MATCH 0x3009 -#define EGL_BAD_NATIVE_PIXMAP 0x300a -#define EGL_BAD_NATIVE_WINDOW 0x300b -#define EGL_BAD_PARAMETER 0x300c -#define EGL_BAD_SURFACE 0x300d -#define EGL_CONTEXT_LOST 0x300e -#define EGL_COLOR_BUFFER_TYPE 0x303f -#define EGL_RGB_BUFFER 0x308e -#define EGL_SURFACE_TYPE 0x3033 -#define EGL_WINDOW_BIT 0x0004 -#define EGL_RENDERABLE_TYPE 0x3040 -#define EGL_OPENGL_ES_BIT 0x0001 -#define EGL_OPENGL_ES2_BIT 0x0004 -#define EGL_OPENGL_BIT 0x0008 -#define EGL_ALPHA_SIZE 0x3021 -#define EGL_BLUE_SIZE 0x3022 -#define EGL_GREEN_SIZE 0x3023 -#define EGL_RED_SIZE 0x3024 -#define EGL_DEPTH_SIZE 0x3025 -#define EGL_STENCIL_SIZE 0x3026 -#define EGL_SAMPLES 0x3031 -#define EGL_OPENGL_ES_API 0x30a0 -#define EGL_OPENGL_API 0x30a2 -#define EGL_NONE 0x3038 -#define EGL_EXTENSIONS 0x3055 -#define EGL_CONTEXT_CLIENT_VERSION 0x3098 -#define EGL_NATIVE_VISUAL_ID 0x302e -#define EGL_NO_SURFACE ((EGLSurface) 0) -#define EGL_NO_DISPLAY ((EGLDisplay) 0) -#define EGL_NO_CONTEXT ((EGLContext) 0) -#define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType) 0) - -#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002 -#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001 -#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002 -#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 -#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31bd -#define EGL_NO_RESET_NOTIFICATION_KHR 0x31be -#define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31bf -#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004 -#define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098 -#define EGL_CONTEXT_MINOR_VERSION_KHR 0x30fb -#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30fd -#define EGL_CONTEXT_FLAGS_KHR 0x30fc -#define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31b3 -#define EGL_GL_COLORSPACE_KHR 0x309d -#define EGL_GL_COLORSPACE_SRGB_KHR 0x3089 - -typedef int EGLint; -typedef unsigned int EGLBoolean; -typedef unsigned int EGLenum; -typedef void* EGLConfig; -typedef void* EGLContext; -typedef void* EGLDisplay; -typedef void* EGLSurface; - -// EGL function pointer typedefs -typedef EGLBoolean (EGLAPIENTRY * PFNEGLGETCONFIGATTRIBPROC)(EGLDisplay,EGLConfig,EGLint,EGLint*); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLGETCONFIGSPROC)(EGLDisplay,EGLConfig*,EGLint,EGLint*); -typedef EGLDisplay (EGLAPIENTRY * PFNEGLGETDISPLAYPROC)(EGLNativeDisplayType); -typedef EGLint (EGLAPIENTRY * PFNEGLGETERRORPROC)(void); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLINITIALIZEPROC)(EGLDisplay,EGLint*,EGLint*); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLTERMINATEPROC)(EGLDisplay); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLBINDAPIPROC)(EGLenum); -typedef EGLContext (EGLAPIENTRY * PFNEGLCREATECONTEXTPROC)(EGLDisplay,EGLConfig,EGLContext,const EGLint*); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLDESTROYSURFACEPROC)(EGLDisplay,EGLSurface); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLDESTROYCONTEXTPROC)(EGLDisplay,EGLContext); -typedef EGLSurface (EGLAPIENTRY * PFNEGLCREATEWINDOWSURFACEPROC)(EGLDisplay,EGLConfig,EGLNativeWindowType,const EGLint*); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLMAKECURRENTPROC)(EGLDisplay,EGLSurface,EGLSurface,EGLContext); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLSWAPBUFFERSPROC)(EGLDisplay,EGLSurface); -typedef EGLBoolean (EGLAPIENTRY * PFNEGLSWAPINTERVALPROC)(EGLDisplay,EGLint); -typedef const char* (EGLAPIENTRY * PFNEGLQUERYSTRINGPROC)(EGLDisplay,EGLint); -typedef GLFWglproc (EGLAPIENTRY * PFNEGLGETPROCADDRESSPROC)(const char*); -#define eglGetConfigAttrib _glfw.egl.GetConfigAttrib -#define eglGetConfigs _glfw.egl.GetConfigs -#define eglGetDisplay _glfw.egl.GetDisplay -#define eglGetError _glfw.egl.GetError -#define eglInitialize _glfw.egl.Initialize -#define eglTerminate _glfw.egl.Terminate -#define eglBindAPI _glfw.egl.BindAPI -#define eglCreateContext _glfw.egl.CreateContext -#define eglDestroySurface _glfw.egl.DestroySurface -#define eglDestroyContext _glfw.egl.DestroyContext -#define eglCreateWindowSurface _glfw.egl.CreateWindowSurface -#define eglMakeCurrent _glfw.egl.MakeCurrent -#define eglSwapBuffers _glfw.egl.SwapBuffers -#define eglSwapInterval _glfw.egl.SwapInterval -#define eglQueryString _glfw.egl.QueryString -#define eglGetProcAddress _glfw.egl.GetProcAddress - -#define _GLFW_EGL_CONTEXT_STATE _GLFWcontextEGL egl -#define _GLFW_EGL_LIBRARY_CONTEXT_STATE _GLFWlibraryEGL egl - - -// EGL-specific per-context data -// -typedef struct _GLFWcontextEGL -{ - EGLConfig config; - EGLContext handle; - EGLSurface surface; - - void* client; - -} _GLFWcontextEGL; - -// EGL-specific global data -// -typedef struct _GLFWlibraryEGL -{ - EGLDisplay display; - EGLint major, minor; - GLFWbool prefix; - - GLFWbool KHR_create_context; - GLFWbool KHR_create_context_no_error; - GLFWbool KHR_gl_colorspace; - - void* handle; - - PFNEGLGETCONFIGATTRIBPROC GetConfigAttrib; - PFNEGLGETCONFIGSPROC GetConfigs; - PFNEGLGETDISPLAYPROC GetDisplay; - PFNEGLGETERRORPROC GetError; - PFNEGLINITIALIZEPROC Initialize; - PFNEGLTERMINATEPROC Terminate; - PFNEGLBINDAPIPROC BindAPI; - PFNEGLCREATECONTEXTPROC CreateContext; - PFNEGLDESTROYSURFACEPROC DestroySurface; - PFNEGLDESTROYCONTEXTPROC DestroyContext; - PFNEGLCREATEWINDOWSURFACEPROC CreateWindowSurface; - PFNEGLMAKECURRENTPROC MakeCurrent; - PFNEGLSWAPBUFFERSPROC SwapBuffers; - PFNEGLSWAPINTERVALPROC SwapInterval; - PFNEGLQUERYSTRINGPROC QueryString; - PFNEGLGETPROCADDRESSPROC GetProcAddress; - -} _GLFWlibraryEGL; - - -GLFWbool _glfwInitEGL(void); -void _glfwTerminateEGL(void); -GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); -#if defined(_GLFW_X11) -GLFWbool _glfwChooseVisualEGL(const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig, - Visual** visual, int* depth); -#endif /*_GLFW_X11*/ - -#endif // _glfw3_egl_context_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/glx_context.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/glx_context.c deleted file mode 100644 index 251b7fc..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/glx_context.c +++ /dev/null @@ -1,677 +0,0 @@ -//======================================================================== -// GLFW 3.2 GLX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - -#ifndef GLXBadProfileARB - #define GLXBadProfileARB 13 -#endif - - -// Returns the specified attribute of the specified GLXFBConfig -// -static int getGLXFBConfigAttrib(GLXFBConfig fbconfig, int attrib) -{ - int value; - glXGetFBConfigAttrib(_glfw.x11.display, fbconfig, attrib, &value); - return value; -} - -// Return the GLXFBConfig most closely matching the specified hints -// -static GLFWbool chooseGLXFBConfig(const _GLFWfbconfig* desired, GLXFBConfig* result) -{ - GLXFBConfig* nativeConfigs; - _GLFWfbconfig* usableConfigs; - const _GLFWfbconfig* closest; - int i, nativeCount, usableCount; - const char* vendor; - GLFWbool trustWindowBit = GLFW_TRUE; - - // HACK: This is a (hopefully temporary) workaround for Chromium - // (VirtualBox GL) not setting the window bit on any GLXFBConfigs - vendor = glXGetClientString(_glfw.x11.display, GLX_VENDOR); - if (strcmp(vendor, "Chromium") == 0) - trustWindowBit = GLFW_FALSE; - - nativeConfigs = - glXGetFBConfigs(_glfw.x11.display, _glfw.x11.screen, &nativeCount); - if (!nativeCount) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: No GLXFBConfigs returned"); - return GLFW_FALSE; - } - - usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); - usableCount = 0; - - for (i = 0; i < nativeCount; i++) - { - const GLXFBConfig n = nativeConfigs[i]; - _GLFWfbconfig* u = usableConfigs + usableCount; - - // Only consider RGBA GLXFBConfigs - if (!(getGLXFBConfigAttrib(n, GLX_RENDER_TYPE) & GLX_RGBA_BIT)) - continue; - - // Only consider window GLXFBConfigs - if (!(getGLXFBConfigAttrib(n, GLX_DRAWABLE_TYPE) & GLX_WINDOW_BIT)) - { - if (trustWindowBit) - continue; - } - - u->redBits = getGLXFBConfigAttrib(n, GLX_RED_SIZE); - u->greenBits = getGLXFBConfigAttrib(n, GLX_GREEN_SIZE); - u->blueBits = getGLXFBConfigAttrib(n, GLX_BLUE_SIZE); - - u->alphaBits = getGLXFBConfigAttrib(n, GLX_ALPHA_SIZE); - u->depthBits = getGLXFBConfigAttrib(n, GLX_DEPTH_SIZE); - u->stencilBits = getGLXFBConfigAttrib(n, GLX_STENCIL_SIZE); - - u->accumRedBits = getGLXFBConfigAttrib(n, GLX_ACCUM_RED_SIZE); - u->accumGreenBits = getGLXFBConfigAttrib(n, GLX_ACCUM_GREEN_SIZE); - u->accumBlueBits = getGLXFBConfigAttrib(n, GLX_ACCUM_BLUE_SIZE); - u->accumAlphaBits = getGLXFBConfigAttrib(n, GLX_ACCUM_ALPHA_SIZE); - - u->auxBuffers = getGLXFBConfigAttrib(n, GLX_AUX_BUFFERS); - - if (getGLXFBConfigAttrib(n, GLX_STEREO)) - u->stereo = GLFW_TRUE; - if (getGLXFBConfigAttrib(n, GLX_DOUBLEBUFFER)) - u->doublebuffer = GLFW_TRUE; - - if (_glfw.glx.ARB_multisample) - u->samples = getGLXFBConfigAttrib(n, GLX_SAMPLES); - - if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB) - u->sRGB = getGLXFBConfigAttrib(n, GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB); - - u->handle = (uintptr_t) n; - usableCount++; - } - - closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); - if (closest) - *result = (GLXFBConfig) closest->handle; - - XFree(nativeConfigs); - free(usableConfigs); - - return closest != NULL; -} - -// Create the OpenGL context using legacy API -// -static GLXContext createLegacyContextGLX(_GLFWwindow* window, - GLXFBConfig fbconfig, - GLXContext share) -{ - return glXCreateNewContext(_glfw.x11.display, - fbconfig, - GLX_RGBA_TYPE, - share, - True); -} - -static void makeContextCurrentGLX(_GLFWwindow* window) -{ - if (window) - { - if (!glXMakeCurrent(_glfw.x11.display, - window->context.glx.window, - window->context.glx.handle)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "GLX: Failed to make context current"); - return; - } - } - else - { - if (!glXMakeCurrent(_glfw.x11.display, None, NULL)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "GLX: Failed to clear current context"); - return; - } - } - - _glfwPlatformSetCurrentContext(window); -} - -static void swapBuffersGLX(_GLFWwindow* window) -{ - glXSwapBuffers(_glfw.x11.display, window->context.glx.window); -} - -static void swapIntervalGLX(int interval) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - if (_glfw.glx.EXT_swap_control) - { - _glfw.glx.SwapIntervalEXT(_glfw.x11.display, - window->context.glx.window, - interval); - } - else if (_glfw.glx.MESA_swap_control) - _glfw.glx.SwapIntervalMESA(interval); - else if (_glfw.glx.SGI_swap_control) - { - if (interval > 0) - _glfw.glx.SwapIntervalSGI(interval); - } -} - -static int extensionSupportedGLX(const char* extension) -{ - const char* extensions = - glXQueryExtensionsString(_glfw.x11.display, _glfw.x11.screen); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GLFW_TRUE; - } - - return GLFW_FALSE; -} - -static GLFWglproc getProcAddressGLX(const char* procname) -{ - if (_glfw.glx.GetProcAddress) - return _glfw.glx.GetProcAddress((const GLubyte*) procname); - else if (_glfw.glx.GetProcAddressARB) - return _glfw.glx.GetProcAddressARB((const GLubyte*) procname); - else - return dlsym(_glfw.glx.handle, procname); -} - -// Destroy the OpenGL context -// -static void destroyContextGLX(_GLFWwindow* window) -{ - if (window->context.glx.window) - { - glXDestroyWindow(_glfw.x11.display, window->context.glx.window); - window->context.glx.window = None; - } - - if (window->context.glx.handle) - { - glXDestroyContext(_glfw.x11.display, window->context.glx.handle); - window->context.glx.handle = NULL; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize GLX -// -GLFWbool _glfwInitGLX(void) -{ - int i; - const char* sonames[] = - { -#if defined(__CYGWIN__) - "libGL-1.so", -#else - "libGL.so.1", - "libGL.so", -#endif - NULL - }; - - if (_glfw.glx.handle) - return GLFW_TRUE; - - for (i = 0; sonames[i]; i++) - { - _glfw.glx.handle = dlopen(sonames[i], RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.glx.handle) - break; - } - - if (!_glfw.glx.handle) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: Failed to load GLX"); - return GLFW_FALSE; - } - - _glfw.glx.GetFBConfigs = - dlsym(_glfw.glx.handle, "glXGetFBConfigs"); - _glfw.glx.GetFBConfigAttrib = - dlsym(_glfw.glx.handle, "glXGetFBConfigAttrib"); - _glfw.glx.GetClientString = - dlsym(_glfw.glx.handle, "glXGetClientString"); - _glfw.glx.QueryExtension = - dlsym(_glfw.glx.handle, "glXQueryExtension"); - _glfw.glx.QueryVersion = - dlsym(_glfw.glx.handle, "glXQueryVersion"); - _glfw.glx.DestroyContext = - dlsym(_glfw.glx.handle, "glXDestroyContext"); - _glfw.glx.MakeCurrent = - dlsym(_glfw.glx.handle, "glXMakeCurrent"); - _glfw.glx.SwapBuffers = - dlsym(_glfw.glx.handle, "glXSwapBuffers"); - _glfw.glx.QueryExtensionsString = - dlsym(_glfw.glx.handle, "glXQueryExtensionsString"); - _glfw.glx.CreateNewContext = - dlsym(_glfw.glx.handle, "glXCreateNewContext"); - _glfw.glx.CreateWindow = - dlsym(_glfw.glx.handle, "glXCreateWindow"); - _glfw.glx.DestroyWindow = - dlsym(_glfw.glx.handle, "glXDestroyWindow"); - _glfw.glx.GetProcAddress = - dlsym(_glfw.glx.handle, "glXGetProcAddress"); - _glfw.glx.GetProcAddressARB = - dlsym(_glfw.glx.handle, "glXGetProcAddressARB"); - _glfw.glx.GetVisualFromFBConfig = - dlsym(_glfw.glx.handle, "glXGetVisualFromFBConfig"); - - if (!_glfw.glx.GetFBConfigs || - !_glfw.glx.GetFBConfigAttrib || - !_glfw.glx.GetClientString || - !_glfw.glx.QueryExtension || - !_glfw.glx.QueryVersion || - !_glfw.glx.DestroyContext || - !_glfw.glx.MakeCurrent || - !_glfw.glx.SwapBuffers || - !_glfw.glx.QueryExtensionsString || - !_glfw.glx.CreateNewContext || - !_glfw.glx.CreateWindow || - !_glfw.glx.DestroyWindow || - !_glfw.glx.GetProcAddress || - !_glfw.glx.GetProcAddressARB || - !_glfw.glx.GetVisualFromFBConfig) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "GLX: Failed to load required entry points"); - return GLFW_FALSE; - } - - if (!glXQueryExtension(_glfw.x11.display, - &_glfw.glx.errorBase, - &_glfw.glx.eventBase)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: GLX extension not found"); - return GLFW_FALSE; - } - - if (!glXQueryVersion(_glfw.x11.display, &_glfw.glx.major, &_glfw.glx.minor)) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "GLX: Failed to query GLX version"); - return GLFW_FALSE; - } - - if (_glfw.glx.major == 1 && _glfw.glx.minor < 3) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "GLX: GLX version 1.3 is required"); - return GLFW_FALSE; - } - - if (extensionSupportedGLX("GLX_EXT_swap_control")) - { - _glfw.glx.SwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC) - getProcAddressGLX("glXSwapIntervalEXT"); - - if (_glfw.glx.SwapIntervalEXT) - _glfw.glx.EXT_swap_control = GLFW_TRUE; - } - - if (extensionSupportedGLX("GLX_SGI_swap_control")) - { - _glfw.glx.SwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC) - getProcAddressGLX("glXSwapIntervalSGI"); - - if (_glfw.glx.SwapIntervalSGI) - _glfw.glx.SGI_swap_control = GLFW_TRUE; - } - - if (extensionSupportedGLX("GLX_MESA_swap_control")) - { - _glfw.glx.SwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC) - getProcAddressGLX("glXSwapIntervalMESA"); - - if (_glfw.glx.SwapIntervalMESA) - _glfw.glx.MESA_swap_control = GLFW_TRUE; - } - - if (extensionSupportedGLX("GLX_ARB_multisample")) - _glfw.glx.ARB_multisample = GLFW_TRUE; - - if (extensionSupportedGLX("GLX_ARB_framebuffer_sRGB")) - _glfw.glx.ARB_framebuffer_sRGB = GLFW_TRUE; - - if (extensionSupportedGLX("GLX_EXT_framebuffer_sRGB")) - _glfw.glx.EXT_framebuffer_sRGB = GLFW_TRUE; - - if (extensionSupportedGLX("GLX_ARB_create_context")) - { - _glfw.glx.CreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC) - getProcAddressGLX("glXCreateContextAttribsARB"); - - if (_glfw.glx.CreateContextAttribsARB) - _glfw.glx.ARB_create_context = GLFW_TRUE; - } - - if (extensionSupportedGLX("GLX_ARB_create_context_robustness")) - _glfw.glx.ARB_create_context_robustness = GLFW_TRUE; - - if (extensionSupportedGLX("GLX_ARB_create_context_profile")) - _glfw.glx.ARB_create_context_profile = GLFW_TRUE; - - if (extensionSupportedGLX("GLX_EXT_create_context_es2_profile")) - _glfw.glx.EXT_create_context_es2_profile = GLFW_TRUE; - - if (extensionSupportedGLX("GLX_ARB_context_flush_control")) - _glfw.glx.ARB_context_flush_control = GLFW_TRUE; - - return GLFW_TRUE; -} - -// Terminate GLX -// -void _glfwTerminateGLX(void) -{ - // NOTE: This function must not call any X11 functions, as it is called - // after XCloseDisplay (see _glfwPlatformTerminate for details) - - if (_glfw.glx.handle) - { - dlclose(_glfw.glx.handle); - _glfw.glx.handle = NULL; - } -} - -#define setGLXattrib(attribName, attribValue) \ -{ \ - attribs[index++] = attribName; \ - attribs[index++] = attribValue; \ - assert((size_t) index < sizeof(attribs) / sizeof(attribs[0])); \ -} - -// Create the OpenGL or OpenGL ES context -// -GLFWbool _glfwCreateContextGLX(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - int attribs[40]; - GLXFBConfig native = NULL; - GLXContext share = NULL; - - if (ctxconfig->share) - share = ctxconfig->share->context.glx.handle; - - if (!chooseGLXFBConfig(fbconfig, &native)) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "GLX: Failed to find a suitable GLXFBConfig"); - return GLFW_FALSE; - } - - if (ctxconfig->client == GLFW_OPENGL_ES_API) - { - if (!_glfw.glx.ARB_create_context || - !_glfw.glx.ARB_create_context_profile || - !_glfw.glx.EXT_create_context_es2_profile) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "GLX: OpenGL ES requested but GLX_EXT_create_context_es2_profile is unavailable"); - return GLFW_FALSE; - } - } - - if (ctxconfig->forward) - { - if (!_glfw.glx.ARB_create_context) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "GLX: Forward compatibility requested but GLX_ARB_create_context_profile is unavailable"); - return GLFW_FALSE; - } - } - - if (ctxconfig->profile) - { - if (!_glfw.glx.ARB_create_context || - !_glfw.glx.ARB_create_context_profile) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "GLX: An OpenGL profile requested but GLX_ARB_create_context_profile is unavailable"); - return GLFW_FALSE; - } - } - - _glfwGrabErrorHandlerX11(); - - if (_glfw.glx.ARB_create_context) - { - int index = 0, mask = 0, flags = 0; - - if (ctxconfig->client == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - flags |= GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; - - if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) - mask |= GLX_CONTEXT_CORE_PROFILE_BIT_ARB; - else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) - mask |= GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; - } - else - mask |= GLX_CONTEXT_ES2_PROFILE_BIT_EXT; - - if (ctxconfig->debug) - flags |= GLX_CONTEXT_DEBUG_BIT_ARB; - if (ctxconfig->noerror) - flags |= GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR; - - if (ctxconfig->robustness) - { - if (_glfw.glx.ARB_create_context_robustness) - { - if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) - { - setGLXattrib(GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - GLX_NO_RESET_NOTIFICATION_ARB); - } - else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) - { - setGLXattrib(GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - GLX_LOSE_CONTEXT_ON_RESET_ARB); - } - - flags |= GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB; - } - } - - if (ctxconfig->release) - { - if (_glfw.glx.ARB_context_flush_control) - { - if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) - { - setGLXattrib(GLX_CONTEXT_RELEASE_BEHAVIOR_ARB, - GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB); - } - else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) - { - setGLXattrib(GLX_CONTEXT_RELEASE_BEHAVIOR_ARB, - GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB); - } - } - } - - // NOTE: Only request an explicitly versioned context when necessary, as - // explicitly requesting version 1.0 does not always return the - // highest version supported by the driver - if (ctxconfig->major != 1 || ctxconfig->minor != 0) - { - setGLXattrib(GLX_CONTEXT_MAJOR_VERSION_ARB, ctxconfig->major); - setGLXattrib(GLX_CONTEXT_MINOR_VERSION_ARB, ctxconfig->minor); - } - - if (mask) - setGLXattrib(GLX_CONTEXT_PROFILE_MASK_ARB, mask); - - if (flags) - setGLXattrib(GLX_CONTEXT_FLAGS_ARB, flags); - - setGLXattrib(None, None); - - window->context.glx.handle = - _glfw.glx.CreateContextAttribsARB(_glfw.x11.display, - native, - share, - True, - attribs); - - // HACK: This is a fallback for broken versions of the Mesa - // implementation of GLX_ARB_create_context_profile that fail - // default 1.0 context creation with a GLXBadProfileARB error in - // violation of the extension spec - if (!window->context.glx.handle) - { - if (_glfw.x11.errorCode == _glfw.glx.errorBase + GLXBadProfileARB && - ctxconfig->client == GLFW_OPENGL_API && - ctxconfig->profile == GLFW_OPENGL_ANY_PROFILE && - ctxconfig->forward == GLFW_FALSE) - { - window->context.glx.handle = - createLegacyContextGLX(window, native, share); - } - } - } - else - { - window->context.glx.handle = - createLegacyContextGLX(window, native, share); - } - - _glfwReleaseErrorHandlerX11(); - - if (!window->context.glx.handle) - { - _glfwInputErrorX11(GLFW_VERSION_UNAVAILABLE, "GLX: Failed to create context"); - return GLFW_FALSE; - } - - window->context.glx.window = - glXCreateWindow(_glfw.x11.display, native, window->x11.handle, NULL); - if (!window->context.glx.window) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "GLX: Failed to create window"); - return GLFW_FALSE; - } - - window->context.makeCurrent = makeContextCurrentGLX; - window->context.swapBuffers = swapBuffersGLX; - window->context.swapInterval = swapIntervalGLX; - window->context.extensionSupported = extensionSupportedGLX; - window->context.getProcAddress = getProcAddressGLX; - window->context.destroy = destroyContextGLX; - - return GLFW_TRUE; -} - -#undef setGLXattrib - -// Returns the Visual and depth of the chosen GLXFBConfig -// -GLFWbool _glfwChooseVisualGLX(const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig, - Visual** visual, int* depth) -{ - GLXFBConfig native; - XVisualInfo* result; - - if (!chooseGLXFBConfig(fbconfig, &native)) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "GLX: Failed to find a suitable GLXFBConfig"); - return GLFW_FALSE; - } - - result = glXGetVisualFromFBConfig(_glfw.x11.display, native); - if (!result) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "GLX: Failed to retrieve Visual for GLXFBConfig"); - return GLFW_FALSE; - } - - *visual = result->visual; - *depth = result->depth; - - XFree(result); - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return NULL; - } - - return window->context.glx.handle; -} - -GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - - if (window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return None; - } - - return window->context.glx.window; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/glx_context.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/glx_context.h deleted file mode 100644 index 3abed0e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/glx_context.h +++ /dev/null @@ -1,182 +0,0 @@ -//======================================================================== -// GLFW 3.2 GLX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_glx_context_h_ -#define _glfw3_glx_context_h_ - -#define GLX_VENDOR 1 -#define GLX_RGBA_BIT 0x00000001 -#define GLX_WINDOW_BIT 0x00000001 -#define GLX_DRAWABLE_TYPE 0x8010 -#define GLX_RENDER_TYPE 0x8011 -#define GLX_RGBA_TYPE 0x8014 -#define GLX_DOUBLEBUFFER 5 -#define GLX_STEREO 6 -#define GLX_AUX_BUFFERS 7 -#define GLX_RED_SIZE 8 -#define GLX_GREEN_SIZE 9 -#define GLX_BLUE_SIZE 10 -#define GLX_ALPHA_SIZE 11 -#define GLX_DEPTH_SIZE 12 -#define GLX_STENCIL_SIZE 13 -#define GLX_ACCUM_RED_SIZE 14 -#define GLX_ACCUM_GREEN_SIZE 15 -#define GLX_ACCUM_BLUE_SIZE 16 -#define GLX_ACCUM_ALPHA_SIZE 17 -#define GLX_SAMPLES 0x186a1 -#define GLX_VISUAL_ID 0x800b - -#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20b2 -#define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001 -#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 -#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 -#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 -#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define GLX_CONTEXT_FLAGS_ARB 0x2094 -#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 -#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 - -typedef XID GLXWindow; -typedef XID GLXDrawable; -typedef struct __GLXFBConfig* GLXFBConfig; -typedef struct __GLXcontext* GLXContext; -typedef void (*__GLXextproc)(void); - -typedef int (*PFNGLXGETFBCONFIGATTRIBPROC)(Display*,GLXFBConfig,int,int*); -typedef const char* (*PFNGLXGETCLIENTSTRINGPROC)(Display*,int); -typedef Bool (*PFNGLXQUERYEXTENSIONPROC)(Display*,int*,int*); -typedef Bool (*PFNGLXQUERYVERSIONPROC)(Display*,int*,int*); -typedef void (*PFNGLXDESTROYCONTEXTPROC)(Display*,GLXContext); -typedef Bool (*PFNGLXMAKECURRENTPROC)(Display*,GLXDrawable,GLXContext); -typedef void (*PFNGLXSWAPBUFFERSPROC)(Display*,GLXDrawable); -typedef const char* (*PFNGLXQUERYEXTENSIONSSTRINGPROC)(Display*,int); -typedef GLXFBConfig* (*PFNGLXGETFBCONFIGSPROC)(Display*,int,int*); -typedef GLXContext (*PFNGLXCREATENEWCONTEXTPROC)(Display*,GLXFBConfig,int,GLXContext,Bool); -typedef __GLXextproc (* PFNGLXGETPROCADDRESSPROC)(const GLubyte *procName); -typedef int (*PFNGLXSWAPINTERVALMESAPROC)(int); -typedef int (*PFNGLXSWAPINTERVALSGIPROC)(int); -typedef void (*PFNGLXSWAPINTERVALEXTPROC)(Display*,GLXDrawable,int); -typedef GLXContext (*PFNGLXCREATECONTEXTATTRIBSARBPROC)(Display*,GLXFBConfig,GLXContext,Bool,const int*); -typedef XVisualInfo* (*PFNGLXGETVISUALFROMFBCONFIGPROC)(Display*,GLXFBConfig); -typedef GLXWindow (*PFNGLXCREATEWINDOWPROC)(Display*,GLXFBConfig,Window,const int*); -typedef void (*PFNGLXDESTROYWINDOWPROC)(Display*,GLXWindow); - -// libGL.so function pointer typedefs -#define glXGetFBConfigs _glfw.glx.GetFBConfigs -#define glXGetFBConfigAttrib _glfw.glx.GetFBConfigAttrib -#define glXGetClientString _glfw.glx.GetClientString -#define glXQueryExtension _glfw.glx.QueryExtension -#define glXQueryVersion _glfw.glx.QueryVersion -#define glXDestroyContext _glfw.glx.DestroyContext -#define glXMakeCurrent _glfw.glx.MakeCurrent -#define glXSwapBuffers _glfw.glx.SwapBuffers -#define glXQueryExtensionsString _glfw.glx.QueryExtensionsString -#define glXCreateNewContext _glfw.glx.CreateNewContext -#define glXGetVisualFromFBConfig _glfw.glx.GetVisualFromFBConfig -#define glXCreateWindow _glfw.glx.CreateWindow -#define glXDestroyWindow _glfw.glx.DestroyWindow - -#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextGLX glx -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryGLX glx - - -// GLX-specific per-context data -// -typedef struct _GLFWcontextGLX -{ - GLXContext handle; - GLXWindow window; - -} _GLFWcontextGLX; - -// GLX-specific global data -// -typedef struct _GLFWlibraryGLX -{ - int major, minor; - int eventBase; - int errorBase; - - // dlopen handle for libGL.so.1 - void* handle; - - // GLX 1.3 functions - PFNGLXGETFBCONFIGSPROC GetFBConfigs; - PFNGLXGETFBCONFIGATTRIBPROC GetFBConfigAttrib; - PFNGLXGETCLIENTSTRINGPROC GetClientString; - PFNGLXQUERYEXTENSIONPROC QueryExtension; - PFNGLXQUERYVERSIONPROC QueryVersion; - PFNGLXDESTROYCONTEXTPROC DestroyContext; - PFNGLXMAKECURRENTPROC MakeCurrent; - PFNGLXSWAPBUFFERSPROC SwapBuffers; - PFNGLXQUERYEXTENSIONSSTRINGPROC QueryExtensionsString; - PFNGLXCREATENEWCONTEXTPROC CreateNewContext; - PFNGLXGETVISUALFROMFBCONFIGPROC GetVisualFromFBConfig; - PFNGLXCREATEWINDOWPROC CreateWindow; - PFNGLXDESTROYWINDOWPROC DestroyWindow; - - // GLX 1.4 and extension functions - PFNGLXGETPROCADDRESSPROC GetProcAddress; - PFNGLXGETPROCADDRESSPROC GetProcAddressARB; - PFNGLXSWAPINTERVALSGIPROC SwapIntervalSGI; - PFNGLXSWAPINTERVALEXTPROC SwapIntervalEXT; - PFNGLXSWAPINTERVALMESAPROC SwapIntervalMESA; - PFNGLXCREATECONTEXTATTRIBSARBPROC CreateContextAttribsARB; - GLFWbool SGI_swap_control; - GLFWbool EXT_swap_control; - GLFWbool MESA_swap_control; - GLFWbool ARB_multisample; - GLFWbool ARB_framebuffer_sRGB; - GLFWbool EXT_framebuffer_sRGB; - GLFWbool ARB_create_context; - GLFWbool ARB_create_context_profile; - GLFWbool ARB_create_context_robustness; - GLFWbool EXT_create_context_es2_profile; - GLFWbool ARB_context_flush_control; - -} _GLFWlibraryGLX; - - -GLFWbool _glfwInitGLX(void); -void _glfwTerminateGLX(void); -GLFWbool _glfwCreateContextGLX(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContextGLX(_GLFWwindow* window); -GLFWbool _glfwChooseVisualGLX(const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig, - Visual** visual, int* depth); - -#endif // _glfw3_glx_context_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/init.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/init.c deleted file mode 100644 index 9d4a2b2..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/init.c +++ /dev/null @@ -1,200 +0,0 @@ -//======================================================================== -// GLFW 3.2 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - - -// The three global variables below comprise all global data in GLFW. -// Any other global variable is a bug. - -// Global state shared between compilation units of GLFW -// These are documented in internal.h -// -GLFWbool _glfwInitialized = GLFW_FALSE; -_GLFWlibrary _glfw; - -// This is outside of _glfw so it can be initialized and usable before -// glfwInit is called, which lets that function report errors -// -static GLFWerrorfun _glfwErrorCallback = NULL; - - -// Returns a generic string representation of the specified error -// -static const char* getErrorString(int error) -{ - switch (error) - { - case GLFW_NOT_INITIALIZED: - return "The GLFW library is not initialized"; - case GLFW_NO_CURRENT_CONTEXT: - return "There is no current context"; - case GLFW_INVALID_ENUM: - return "Invalid argument for enum parameter"; - case GLFW_INVALID_VALUE: - return "Invalid value for parameter"; - case GLFW_OUT_OF_MEMORY: - return "Out of memory"; - case GLFW_API_UNAVAILABLE: - return "The requested API is unavailable"; - case GLFW_VERSION_UNAVAILABLE: - return "The requested API version is unavailable"; - case GLFW_PLATFORM_ERROR: - return "A platform-specific error occurred"; - case GLFW_FORMAT_UNAVAILABLE: - return "The requested format is unavailable"; - case GLFW_NO_WINDOW_CONTEXT: - return "The specified window has no context"; - default: - return "ERROR: UNKNOWN GLFW ERROR"; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputError(int error, const char* format, ...) -{ - if (_glfwErrorCallback) - { - char buffer[8192]; - const char* description; - - if (format) - { - int count; - va_list vl; - - va_start(vl, format); - count = vsnprintf(buffer, sizeof(buffer), format, vl); - va_end(vl); - - if (count < 0) - buffer[sizeof(buffer) - 1] = '\0'; - - description = buffer; - } - else - description = getErrorString(error); - - _glfwErrorCallback(error, description); - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwInit(void) -{ - if (_glfwInitialized) - return GLFW_TRUE; - - memset(&_glfw, 0, sizeof(_glfw)); - - if (!_glfwPlatformInit()) - { - _glfwPlatformTerminate(); - return GLFW_FALSE; - } - - _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); - _glfwInitialized = GLFW_TRUE; - - _glfw.timerOffset = _glfwPlatformGetTimerValue(); - - // Not all window hints have zero as their default value - glfwDefaultWindowHints(); - - return GLFW_TRUE; -} - -GLFWAPI void glfwTerminate(void) -{ - int i; - - if (!_glfwInitialized) - return; - - memset(&_glfw.callbacks, 0, sizeof(_glfw.callbacks)); - - while (_glfw.windowListHead) - glfwDestroyWindow((GLFWwindow*) _glfw.windowListHead); - - while (_glfw.cursorListHead) - glfwDestroyCursor((GLFWcursor*) _glfw.cursorListHead); - - for (i = 0; i < _glfw.monitorCount; i++) - { - _GLFWmonitor* monitor = _glfw.monitors[i]; - if (monitor->originalRamp.size) - _glfwPlatformSetGammaRamp(monitor, &monitor->originalRamp); - } - - _glfwTerminateVulkan(); - - _glfwFreeMonitors(_glfw.monitors, _glfw.monitorCount); - _glfw.monitors = NULL; - _glfw.monitorCount = 0; - - _glfwPlatformTerminate(); - - memset(&_glfw, 0, sizeof(_glfw)); - _glfwInitialized = GLFW_FALSE; -} - -GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev) -{ - if (major != NULL) - *major = GLFW_VERSION_MAJOR; - - if (minor != NULL) - *minor = GLFW_VERSION_MINOR; - - if (rev != NULL) - *rev = GLFW_VERSION_REVISION; -} - -GLFWAPI const char* glfwGetVersionString(void) -{ - return _glfwPlatformGetVersionString(); -} - -GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun) -{ - _GLFW_SWAP_POINTERS(_glfwErrorCallback, cbfun); - return cbfun; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/input.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/input.c deleted file mode 100644 index 614c6ef..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/input.c +++ /dev/null @@ -1,659 +0,0 @@ -//======================================================================== -// GLFW 3.2 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - -// Internal key state used for sticky keys -#define _GLFW_STICK 3 - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods) -{ - if (key >= 0 && key <= GLFW_KEY_LAST) - { - GLFWbool repeated = GLFW_FALSE; - - if (action == GLFW_RELEASE && window->keys[key] == GLFW_RELEASE) - return; - - if (action == GLFW_PRESS && window->keys[key] == GLFW_PRESS) - repeated = GLFW_TRUE; - - if (action == GLFW_RELEASE && window->stickyKeys) - window->keys[key] = _GLFW_STICK; - else - window->keys[key] = (char) action; - - if (repeated) - action = GLFW_REPEAT; - } - - if (window->callbacks.key) - window->callbacks.key((GLFWwindow*) window, key, scancode, action, mods); -} - -void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, GLFWbool plain) -{ - if (codepoint < 32 || (codepoint > 126 && codepoint < 160)) - return; - - if (window->callbacks.charmods) - window->callbacks.charmods((GLFWwindow*) window, codepoint, mods); - - if (plain) - { - if (window->callbacks.character) - window->callbacks.character((GLFWwindow*) window, codepoint); - } -} - -void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset) -{ - if (window->callbacks.scroll) - window->callbacks.scroll((GLFWwindow*) window, xoffset, yoffset); -} - -void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods) -{ - if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST) - return; - - // Register mouse button action - if (action == GLFW_RELEASE && window->stickyMouseButtons) - window->mouseButtons[button] = _GLFW_STICK; - else - window->mouseButtons[button] = (char) action; - - if (window->callbacks.mouseButton) - window->callbacks.mouseButton((GLFWwindow*) window, button, action, mods); -} - -void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos) -{ - if (window->virtualCursorPosX == xpos && window->virtualCursorPosY == ypos) - return; - - window->virtualCursorPosX = xpos; - window->virtualCursorPosY = ypos; - - if (window->callbacks.cursorPos) - window->callbacks.cursorPos((GLFWwindow*) window, xpos, ypos); -} - -void _glfwInputCursorEnter(_GLFWwindow* window, GLFWbool entered) -{ - if (window->callbacks.cursorEnter) - window->callbacks.cursorEnter((GLFWwindow*) window, entered); -} - -void _glfwInputDrop(_GLFWwindow* window, int count, const char** paths) -{ - if (window->callbacks.drop) - window->callbacks.drop((GLFWwindow*) window, count, paths); -} - -void _glfwInputJoystickChange(int joy, int event) -{ - if (_glfw.callbacks.joystick) - _glfw.callbacks.joystick(joy, event); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWbool _glfwIsPrintable(int key) -{ - return (key >= GLFW_KEY_APOSTROPHE && key <= GLFW_KEY_WORLD_2) || - (key >= GLFW_KEY_KP_0 && key <= GLFW_KEY_KP_ADD) || - key == GLFW_KEY_KP_EQUAL; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwGetInputMode(GLFWwindow* handle, int mode) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(0); - - switch (mode) - { - case GLFW_CURSOR: - return window->cursorMode; - case GLFW_STICKY_KEYS: - return window->stickyKeys; - case GLFW_STICKY_MOUSE_BUTTONS: - return window->stickyMouseButtons; - default: - _glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode %i", mode); - return 0; - } -} - -GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - switch (mode) - { - case GLFW_CURSOR: - { - if (value != GLFW_CURSOR_NORMAL && - value != GLFW_CURSOR_HIDDEN && - value != GLFW_CURSOR_DISABLED) - { - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid cursor mode %i", - value); - return; - } - - if (window->cursorMode == value) - return; - - window->cursorMode = value; - - _glfwPlatformGetCursorPos(window, - &window->virtualCursorPosX, - &window->virtualCursorPosY); - - if (_glfwPlatformWindowFocused(window)) - _glfwPlatformSetCursorMode(window, value); - - return; - } - - case GLFW_STICKY_KEYS: - { - if (window->stickyKeys == value) - return; - - if (!value) - { - int i; - - // Release all sticky keys - for (i = 0; i <= GLFW_KEY_LAST; i++) - { - if (window->keys[i] == _GLFW_STICK) - window->keys[i] = GLFW_RELEASE; - } - } - - window->stickyKeys = value ? GLFW_TRUE : GLFW_FALSE; - return; - } - - case GLFW_STICKY_MOUSE_BUTTONS: - { - if (window->stickyMouseButtons == value) - return; - - if (!value) - { - int i; - - // Release all sticky mouse buttons - for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) - { - if (window->mouseButtons[i] == _GLFW_STICK) - window->mouseButtons[i] = GLFW_RELEASE; - } - } - - window->stickyMouseButtons = value ? GLFW_TRUE : GLFW_FALSE; - return; - } - } - - _glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode %i", mode); -} - -GLFWAPI const char* glfwGetKeyName(int key, int scancode) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfwPlatformGetKeyName(key, scancode); -} - -GLFWAPI int glfwGetKey(GLFWwindow* handle, int key) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_RELEASE); - - if (key < GLFW_KEY_SPACE || key > GLFW_KEY_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid key %i", key); - return GLFW_RELEASE; - } - - if (window->keys[key] == _GLFW_STICK) - { - // Sticky mode: release key now - window->keys[key] = GLFW_RELEASE; - return GLFW_PRESS; - } - - return (int) window->keys[key]; -} - -GLFWAPI int glfwGetMouseButton(GLFWwindow* handle, int button) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_RELEASE); - - if (button < GLFW_MOUSE_BUTTON_1 || button > GLFW_MOUSE_BUTTON_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid mouse button %i", button); - return GLFW_RELEASE; - } - - if (window->mouseButtons[button] == _GLFW_STICK) - { - // Sticky mode: release mouse button now - window->mouseButtons[button] = GLFW_RELEASE; - return GLFW_PRESS; - } - - return (int) window->mouseButtons[button]; -} - -GLFWAPI void glfwGetCursorPos(GLFWwindow* handle, double* xpos, double* ypos) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; - - _GLFW_REQUIRE_INIT(); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (xpos) - *xpos = window->virtualCursorPosX; - if (ypos) - *ypos = window->virtualCursorPosY; - } - else - _glfwPlatformGetCursorPos(window, xpos, ypos); -} - -GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - if (xpos != xpos || xpos < -DBL_MAX || xpos > DBL_MAX || - ypos != ypos || ypos < -DBL_MAX || ypos > DBL_MAX) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid cursor position %f %f", - xpos, ypos); - return; - } - - if (!_glfwPlatformWindowFocused(window)) - return; - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - // Only update the accumulated position if the cursor is disabled - window->virtualCursorPosX = xpos; - window->virtualCursorPosY = ypos; - } - else - { - // Update system cursor position - _glfwPlatformSetCursorPos(window, xpos, ypos); - } -} - -GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot) -{ - _GLFWcursor* cursor; - - assert(image != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - cursor = calloc(1, sizeof(_GLFWcursor)); - cursor->next = _glfw.cursorListHead; - _glfw.cursorListHead = cursor; - - if (!_glfwPlatformCreateCursor(cursor, image, xhot, yhot)) - { - glfwDestroyCursor((GLFWcursor*) cursor); - return NULL; - } - - return (GLFWcursor*) cursor; -} - -GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape) -{ - _GLFWcursor* cursor; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (shape != GLFW_ARROW_CURSOR && - shape != GLFW_IBEAM_CURSOR && - shape != GLFW_CROSSHAIR_CURSOR && - shape != GLFW_HAND_CURSOR && - shape != GLFW_HRESIZE_CURSOR && - shape != GLFW_VRESIZE_CURSOR) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid standard cursor %i", shape); - return NULL; - } - - cursor = calloc(1, sizeof(_GLFWcursor)); - cursor->next = _glfw.cursorListHead; - _glfw.cursorListHead = cursor; - - if (!_glfwPlatformCreateStandardCursor(cursor, shape)) - { - glfwDestroyCursor((GLFWcursor*) cursor); - return NULL; - } - - return (GLFWcursor*) cursor; -} - -GLFWAPI void glfwDestroyCursor(GLFWcursor* handle) -{ - _GLFWcursor* cursor = (_GLFWcursor*) handle; - - _GLFW_REQUIRE_INIT(); - - if (cursor == NULL) - return; - - // Make sure the cursor is not being used by any window - { - _GLFWwindow* window; - - for (window = _glfw.windowListHead; window; window = window->next) - { - if (window->cursor == cursor) - glfwSetCursor((GLFWwindow*) window, NULL); - } - } - - _glfwPlatformDestroyCursor(cursor); - - // Unlink cursor from global linked list - { - _GLFWcursor** prev = &_glfw.cursorListHead; - - while (*prev != cursor) - prev = &((*prev)->next); - - *prev = cursor->next; - } - - free(cursor); -} - -GLFWAPI void glfwSetCursor(GLFWwindow* windowHandle, GLFWcursor* cursorHandle) -{ - _GLFWwindow* window = (_GLFWwindow*) windowHandle; - _GLFWcursor* cursor = (_GLFWcursor*) cursorHandle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - window->cursor = cursor; - - _glfwPlatformSetCursor(window, cursor); -} - -GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* handle, GLFWkeyfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.key, cbfun); - return cbfun; -} - -GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* handle, GLFWcharfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.character, cbfun); - return cbfun; -} - -GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* handle, GLFWcharmodsfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.charmods, cbfun); - return cbfun; -} - -GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* handle, - GLFWmousebuttonfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.mouseButton, cbfun); - return cbfun; -} - -GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* handle, - GLFWcursorposfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.cursorPos, cbfun); - return cbfun; -} - -GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* handle, - GLFWcursorenterfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.cursorEnter, cbfun); - return cbfun; -} - -GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* handle, - GLFWscrollfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.scroll, cbfun); - return cbfun; -} - -GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* handle, GLFWdropfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.drop, cbfun); - return cbfun; -} - -GLFWAPI int glfwJoystickPresent(int joy) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(0); - - if (joy < 0 || joy > GLFW_JOYSTICK_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick %i", joy); - return 0; - } - - return _glfwPlatformJoystickPresent(joy); -} - -GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count) -{ - assert(count != NULL); - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (joy < 0 || joy > GLFW_JOYSTICK_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick %i", joy); - return NULL; - } - - return _glfwPlatformGetJoystickAxes(joy, count); -} - -GLFWAPI const unsigned char* glfwGetJoystickButtons(int joy, int* count) -{ - assert(count != NULL); - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (joy < 0 || joy > GLFW_JOYSTICK_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick %i", joy); - return NULL; - } - - return _glfwPlatformGetJoystickButtons(joy, count); -} - -GLFWAPI const char* glfwGetJoystickName(int joy) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (joy < 0 || joy > GLFW_JOYSTICK_LAST) - { - _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick %i", joy); - return NULL; - } - - return _glfwPlatformGetJoystickName(joy); -} - -GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(_glfw.callbacks.joystick, cbfun); - return cbfun; -} - -GLFWAPI void glfwSetClipboardString(GLFWwindow* handle, const char* string) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - assert(string != NULL); - - _GLFW_REQUIRE_INIT(); - _glfwPlatformSetClipboardString(window, string); -} - -GLFWAPI const char* glfwGetClipboardString(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfwPlatformGetClipboardString(window); -} - -GLFWAPI double glfwGetTime(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(0.0); - return (double) (_glfwPlatformGetTimerValue() - _glfw.timerOffset) / - _glfwPlatformGetTimerFrequency(); -} - -GLFWAPI void glfwSetTime(double time) -{ - _GLFW_REQUIRE_INIT(); - - if (time != time || time < 0.0 || time > 18446744073.0) - { - _glfwInputError(GLFW_INVALID_VALUE, "Invalid time %f", time); - return; - } - - _glfw.timerOffset = _glfwPlatformGetTimerValue() - - (uint64_t) (time * _glfwPlatformGetTimerFrequency()); -} - -GLFWAPI uint64_t glfwGetTimerValue(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(0); - return _glfwPlatformGetTimerValue(); -} - -GLFWAPI uint64_t glfwGetTimerFrequency(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(0); - return _glfwPlatformGetTimerFrequency(); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/internal.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/internal.h deleted file mode 100644 index 8e84efd..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/internal.h +++ /dev/null @@ -1,1055 +0,0 @@ -//======================================================================== -// GLFW 3.2 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_internal_h_ -#define _glfw3_internal_h_ - - -#if defined(_GLFW_USE_CONFIG_H) - #include "glfw_config.h" -#endif - -#if defined(GLFW_INCLUDE_GLCOREARB) || \ - defined(GLFW_INCLUDE_ES1) || \ - defined(GLFW_INCLUDE_ES2) || \ - defined(GLFW_INCLUDE_ES3) || \ - defined(GLFW_INCLUDE_NONE) || \ - defined(GLFW_INCLUDE_GLEXT) || \ - defined(GLFW_INCLUDE_GLU) || \ - defined(GLFW_INCLUDE_VULKAN) || \ - defined(GLFW_DLL) - #error "You must not define any header option macros when compiling GLFW" -#endif - -#define GLFW_INCLUDE_NONE -#include "../include/GLFW/glfw3.h" - -typedef int GLFWbool; - -typedef struct _GLFWwndconfig _GLFWwndconfig; -typedef struct _GLFWctxconfig _GLFWctxconfig; -typedef struct _GLFWfbconfig _GLFWfbconfig; -typedef struct _GLFWcontext _GLFWcontext; -typedef struct _GLFWwindow _GLFWwindow; -typedef struct _GLFWlibrary _GLFWlibrary; -typedef struct _GLFWmonitor _GLFWmonitor; -typedef struct _GLFWcursor _GLFWcursor; - -typedef void (* _GLFWmakecontextcurrentfun)(_GLFWwindow*); -typedef void (* _GLFWswapbuffersfun)(_GLFWwindow*); -typedef void (* _GLFWswapintervalfun)(int); -typedef int (* _GLFWextensionsupportedfun)(const char*); -typedef GLFWglproc (* _GLFWgetprocaddressfun)(const char*); -typedef void (* _GLFWdestroycontextfun)(_GLFWwindow*); - -#define GL_VERSION 0x1f02 -#define GL_NONE 0 -#define GL_COLOR_BUFFER_BIT 0x00004000 -#define GL_EXTENSIONS 0x1f03 -#define GL_NUM_EXTENSIONS 0x821d -#define GL_CONTEXT_FLAGS 0x821e -#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 -#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 -#define GL_CONTEXT_PROFILE_MASK 0x9126 -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 -#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82fb -#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82fc -#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008 - -typedef int GLint; -typedef unsigned int GLuint; -typedef unsigned int GLenum; -typedef unsigned int GLbitfield; -typedef unsigned char GLubyte; - -typedef void (APIENTRY * PFNGLCLEARPROC)(GLbitfield); -typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGPROC)(GLenum); -typedef void (APIENTRY * PFNGLGETINTEGERVPROC)(GLenum,GLint*); -typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGIPROC)(GLenum,GLuint); - -#define VK_NULL_HANDLE 0 - -typedef void* VkInstance; -typedef void* VkPhysicalDevice; -typedef uint64_t VkSurfaceKHR; -typedef uint32_t VkFlags; -typedef uint32_t VkBool32; - -typedef enum VkStructureType -{ - VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000, - VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000, - VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000, - VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000, - VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000, - VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkStructureType; - -typedef enum VkResult -{ - VK_SUCCESS = 0, - VK_NOT_READY = 1, - VK_TIMEOUT = 2, - VK_EVENT_SET = 3, - VK_EVENT_RESET = 4, - VK_INCOMPLETE = 5, - VK_ERROR_OUT_OF_HOST_MEMORY = -1, - VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, - VK_ERROR_INITIALIZATION_FAILED = -3, - VK_ERROR_DEVICE_LOST = -4, - VK_ERROR_MEMORY_MAP_FAILED = -5, - VK_ERROR_LAYER_NOT_PRESENT = -6, - VK_ERROR_EXTENSION_NOT_PRESENT = -7, - VK_ERROR_FEATURE_NOT_PRESENT = -8, - VK_ERROR_INCOMPATIBLE_DRIVER = -9, - VK_ERROR_TOO_MANY_OBJECTS = -10, - VK_ERROR_FORMAT_NOT_SUPPORTED = -11, - VK_ERROR_SURFACE_LOST_KHR = -1000000000, - VK_SUBOPTIMAL_KHR = 1000001003, - VK_ERROR_OUT_OF_DATE_KHR = -1000001004, - VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001, - VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001, - VK_ERROR_VALIDATION_FAILED_EXT = -1000011001, - VK_RESULT_MAX_ENUM = 0x7FFFFFFF -} VkResult; - -typedef struct VkAllocationCallbacks VkAllocationCallbacks; - -typedef struct VkExtensionProperties -{ - char extensionName[256]; - uint32_t specVersion; -} VkExtensionProperties; - -typedef void (APIENTRY * PFN_vkVoidFunction)(void); - -#if defined(_GLFW_VULKAN_STATIC) - PFN_vkVoidFunction vkGetInstanceProcAddr(VkInstance,const char*); - VkResult vkEnumerateInstanceExtensionProperties(const char*,uint32_t*,VkExtensionProperties*); -#else - typedef PFN_vkVoidFunction (APIENTRY * PFN_vkGetInstanceProcAddr)(VkInstance,const char*); - typedef VkResult (APIENTRY * PFN_vkEnumerateInstanceExtensionProperties)(const char*,uint32_t*,VkExtensionProperties*); - #define vkEnumerateInstanceExtensionProperties _glfw.vk.EnumerateInstanceExtensionProperties - #define vkGetInstanceProcAddr _glfw.vk.GetInstanceProcAddr -#endif - -#if defined(_GLFW_COCOA) - #include "cocoa_platform.h" -#elif defined(_GLFW_WIN32) - #include "win32_platform.h" -#elif defined(_GLFW_X11) - #include "x11_platform.h" -#elif defined(_GLFW_WAYLAND) - #include "wl_platform.h" -#elif defined(_GLFW_MIR) - #include "mir_platform.h" -#else - #error "No supported window creation API selected" -#endif - - -//======================================================================== -// Doxygen group definitions -//======================================================================== - -/*! @defgroup platform Platform interface - * @brief The interface implemented by the platform-specific code. - * - * The platform API is the interface exposed by the platform-specific code for - * each platform and is called by the shared code of the public API It mirrors - * the public API except it uses objects instead of handles. - */ -/*! @defgroup event Event interface - * @brief The interface used by the platform-specific code to report events. - * - * The event API is used by the platform-specific code to notify the shared - * code of events that can be translated into state changes and/or callback - * calls. - */ -/*! @defgroup utility Utility functions - * @brief Various utility functions for internal use. - * - * These functions are shared code and may be used by any part of GLFW - * Each platform may add its own utility functions, but those must only be - * called by the platform-specific code - */ - - -//======================================================================== -// Helper macros -//======================================================================== - -// Constructs a version number string from the public header macros -#define _GLFW_CONCAT_VERSION(m, n, r) #m "." #n "." #r -#define _GLFW_MAKE_VERSION(m, n, r) _GLFW_CONCAT_VERSION(m, n, r) -#define _GLFW_VERSION_NUMBER _GLFW_MAKE_VERSION(GLFW_VERSION_MAJOR, \ - GLFW_VERSION_MINOR, \ - GLFW_VERSION_REVISION) - -// Checks for whether the library has been initialized -#define _GLFW_REQUIRE_INIT() \ - if (!_glfwInitialized) \ - { \ - _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ - return; \ - } -#define _GLFW_REQUIRE_INIT_OR_RETURN(x) \ - if (!_glfwInitialized) \ - { \ - _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ - return x; \ - } - -// Swaps the provided pointers -#define _GLFW_SWAP_POINTERS(x, y) \ - { \ - void* t; \ - t = x; \ - x = y; \ - y = t; \ - } - - -//======================================================================== -// Platform-independent structures -//======================================================================== - -/*! @brief Window configuration. - * - * Parameters relating to the creation of the window but not directly related - * to the framebuffer. This is used to pass window creation parameters from - * shared code to the platform API. - */ -struct _GLFWwndconfig -{ - int width; - int height; - const char* title; - GLFWbool resizable; - GLFWbool visible; - GLFWbool decorated; - GLFWbool focused; - GLFWbool autoIconify; - GLFWbool floating; - GLFWbool maximized; -}; - -/*! @brief Context configuration. - * - * Parameters relating to the creation of the context but not directly related - * to the framebuffer. This is used to pass context creation parameters from - * shared code to the platform API. - */ -struct _GLFWctxconfig -{ - int client; - int source; - int major; - int minor; - GLFWbool forward; - GLFWbool debug; - GLFWbool noerror; - int profile; - int robustness; - int release; - _GLFWwindow* share; -}; - -/*! @brief Framebuffer configuration. - * - * This describes buffers and their sizes. It also contains - * a platform-specific ID used to map back to the backend API object. - * - * It is used to pass framebuffer parameters from shared code to the platform - * API and also to enumerate and select available framebuffer configs. - */ -struct _GLFWfbconfig -{ - int redBits; - int greenBits; - int blueBits; - int alphaBits; - int depthBits; - int stencilBits; - int accumRedBits; - int accumGreenBits; - int accumBlueBits; - int accumAlphaBits; - int auxBuffers; - GLFWbool stereo; - int samples; - GLFWbool sRGB; - GLFWbool doublebuffer; - uintptr_t handle; -}; - -/*! @brief Context structure. - */ -struct _GLFWcontext -{ - int client; - int source; - int major, minor, revision; - GLFWbool forward, debug, noerror; - int profile; - int robustness; - int release; - - PFNGLGETSTRINGIPROC GetStringi; - PFNGLGETINTEGERVPROC GetIntegerv; - PFNGLGETSTRINGPROC GetString; - - _GLFWmakecontextcurrentfun makeCurrent; - _GLFWswapbuffersfun swapBuffers; - _GLFWswapintervalfun swapInterval; - _GLFWextensionsupportedfun extensionSupported; - _GLFWgetprocaddressfun getProcAddress; - _GLFWdestroycontextfun destroy; - - // This is defined in the context API's context.h - _GLFW_PLATFORM_CONTEXT_STATE; - // This is defined in egl_context.h - _GLFW_EGL_CONTEXT_STATE; -}; - -/*! @brief Window and context structure. - */ -struct _GLFWwindow -{ - struct _GLFWwindow* next; - - // Window settings and state - GLFWbool resizable; - GLFWbool decorated; - GLFWbool autoIconify; - GLFWbool floating; - GLFWbool closed; - void* userPointer; - GLFWvidmode videoMode; - _GLFWmonitor* monitor; - _GLFWcursor* cursor; - - int minwidth, minheight; - int maxwidth, maxheight; - int numer, denom; - - GLFWbool stickyKeys; - GLFWbool stickyMouseButtons; - int cursorMode; - char mouseButtons[GLFW_MOUSE_BUTTON_LAST + 1]; - char keys[GLFW_KEY_LAST + 1]; - // Virtual cursor position when cursor is disabled - double virtualCursorPosX, virtualCursorPosY; - - _GLFWcontext context; - - struct { - GLFWwindowposfun pos; - GLFWwindowsizefun size; - GLFWwindowclosefun close; - GLFWwindowrefreshfun refresh; - GLFWwindowfocusfun focus; - GLFWwindowiconifyfun iconify; - GLFWframebuffersizefun fbsize; - GLFWmousebuttonfun mouseButton; - GLFWcursorposfun cursorPos; - GLFWcursorenterfun cursorEnter; - GLFWscrollfun scroll; - GLFWkeyfun key; - GLFWcharfun character; - GLFWcharmodsfun charmods; - GLFWdropfun drop; - } callbacks; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_WINDOW_STATE; -}; - -/*! @brief Monitor structure. - */ -struct _GLFWmonitor -{ - char* name; - - // Physical dimensions in millimeters. - int widthMM, heightMM; - - // The window whose video mode is current on this monitor - _GLFWwindow* window; - - GLFWvidmode* modes; - int modeCount; - GLFWvidmode currentMode; - - GLFWgammaramp originalRamp; - GLFWgammaramp currentRamp; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_MONITOR_STATE; -}; - -/*! @brief Cursor structure - */ -struct _GLFWcursor -{ - _GLFWcursor* next; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_CURSOR_STATE; -}; - -/*! @brief Library global data. - */ -struct _GLFWlibrary -{ - struct { - _GLFWfbconfig framebuffer; - _GLFWwndconfig window; - _GLFWctxconfig context; - int refreshRate; - } hints; - - _GLFWcursor* cursorListHead; - - _GLFWwindow* windowListHead; - - _GLFWmonitor** monitors; - int monitorCount; - - uint64_t timerOffset; - - struct { - GLFWbool available; - void* handle; - char** extensions; - uint32_t extensionCount; -#if !defined(_GLFW_VULKAN_STATIC) - PFN_vkEnumerateInstanceExtensionProperties EnumerateInstanceExtensionProperties; - PFN_vkGetInstanceProcAddr GetInstanceProcAddr; -#endif - GLFWbool KHR_surface; - GLFWbool KHR_win32_surface; - GLFWbool KHR_xlib_surface; - GLFWbool KHR_xcb_surface; - GLFWbool KHR_wayland_surface; - GLFWbool KHR_mir_surface; - } vk; - - struct { - GLFWmonitorfun monitor; - GLFWjoystickfun joystick; - } callbacks; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_LIBRARY_WINDOW_STATE; - // This is defined in the context API's context.h - _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE; - // This is defined in the platform's time.h - _GLFW_PLATFORM_LIBRARY_TIME_STATE; - // This is defined in the platform's joystick.h - _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE; - // This is defined in the platform's tls.h - _GLFW_PLATFORM_LIBRARY_TLS_STATE; - // This is defined in egl_context.h - _GLFW_EGL_LIBRARY_CONTEXT_STATE; -}; - - -//======================================================================== -// Global state shared between compilation units of GLFW -//======================================================================== - -/*! @brief Flag indicating whether GLFW has been successfully initialized. - */ -extern GLFWbool _glfwInitialized; - -/*! @brief All global data protected by @ref _glfwInitialized. - * This should only be touched after a call to @ref glfwInit that has not been - * followed by a call to @ref glfwTerminate. - */ -extern _GLFWlibrary _glfw; - - -//======================================================================== -// Platform API functions -//======================================================================== - -/*! @brief Initializes the platform-specific part of the library. - * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an error occurred. - * @ingroup platform - */ -int _glfwPlatformInit(void); - -/*! @brief Terminates the platform-specific part of the library. - * @ingroup platform - */ -void _glfwPlatformTerminate(void); - -/*! @copydoc glfwGetVersionString - * @ingroup platform - * - * @note The returned string must be available for the duration of the program. - * - * @note The returned string must not change for the duration of the program. - */ -const char* _glfwPlatformGetVersionString(void); - -/*! @copydoc glfwGetCursorPos - * @ingroup platform - */ -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos); - -/*! @copydoc glfwSetCursorPos - * @ingroup platform - */ -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos); - -/*! @brief Sets the specified cursor mode of the specified window. - * @param[in] window The window whose cursor mode to set. - * @ingroup platform - */ -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode); - -/*! @copydoc glfwGetKeyName - * @ingroup platform - */ -const char* _glfwPlatformGetKeyName(int key, int scancode); - -/*! @copydoc glfwGetMonitors - * @ingroup platform - */ -_GLFWmonitor** _glfwPlatformGetMonitors(int* count); - -/*! @brief Checks whether two monitor objects represent the same monitor. - * - * @param[in] first The first monitor. - * @param[in] second The second monitor. - * @return @c GLFW_TRUE if the monitor objects represent the same monitor, or - * @c GLFW_FALSE otherwise. - * @ingroup platform - */ -GLFWbool _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second); - -/*! @copydoc glfwGetMonitorPos - * @ingroup platform - */ -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos); - -/*! @copydoc glfwGetVideoModes - * @ingroup platform - */ -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count); - -/*! @ingroup platform - */ -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode); - -/*! @copydoc glfwGetGammaRamp - * @ingroup platform - */ -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp); - -/*! @copydoc glfwSetGammaRamp - * @ingroup platform - */ -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); - -/*! @copydoc glfwSetClipboardString - * @ingroup platform - */ -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string); - -/*! @copydoc glfwGetClipboardString - * @ingroup platform - * - * @note The returned string must be valid until the next call to @ref - * _glfwPlatformGetClipboardString or @ref _glfwPlatformSetClipboardString. - */ -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window); - -/*! @copydoc glfwJoystickPresent - * @ingroup platform - */ -int _glfwPlatformJoystickPresent(int joy); - -/*! @copydoc glfwGetJoystickAxes - * @ingroup platform - */ -const float* _glfwPlatformGetJoystickAxes(int joy, int* count); - -/*! @copydoc glfwGetJoystickButtons - * @ingroup platform - */ -const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count); - -/*! @copydoc glfwGetJoystickName - * @ingroup platform - */ -const char* _glfwPlatformGetJoystickName(int joy); - -/*! @copydoc glfwGetTimerValue - * @ingroup platform - */ -uint64_t _glfwPlatformGetTimerValue(void); - -/*! @copydoc glfwGetTimerFrequency - * @ingroup platform - */ -uint64_t _glfwPlatformGetTimerFrequency(void); - -/*! @ingroup platform - */ -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); - -/*! @ingroup platform - */ -void _glfwPlatformDestroyWindow(_GLFWwindow* window); - -/*! @copydoc glfwSetWindowTitle - * @ingroup platform - */ -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title); - -/*! @copydoc glfwSetWindowIcon - * @ingroup platform - */ -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, int count, const GLFWimage* images); - -/*! @copydoc glfwGetWindowPos - * @ingroup platform - */ -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos); - -/*! @copydoc glfwSetWindowPos - * @ingroup platform - */ -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos); - -/*! @copydoc glfwGetWindowSize - * @ingroup platform - */ -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height); - -/*! @copydoc glfwSetWindowSize - * @ingroup platform - */ -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height); - -/*! @copydoc glfwSetWindowSizeLimits - * @ingroup platform - */ -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); - -/*! @copydoc glfwSetWindowAspectRatio - * @ingroup platform - */ -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom); - -/*! @copydoc glfwGetFramebufferSize - * @ingroup platform - */ -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height); - -/*! @copydoc glfwGetWindowFrameSize - * @ingroup platform - */ -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, int* left, int* top, int* right, int* bottom); - -/*! @copydoc glfwIconifyWindow - * @ingroup platform - */ -void _glfwPlatformIconifyWindow(_GLFWwindow* window); - -/*! @copydoc glfwRestoreWindow - * @ingroup platform - */ -void _glfwPlatformRestoreWindow(_GLFWwindow* window); - -/*! @copydoc glfwMaximizeWindow - * @ingroup platform - */ -void _glfwPlatformMaximizeWindow(_GLFWwindow* window); - -/*! @copydoc glfwShowWindow - * @ingroup platform - */ -void _glfwPlatformShowWindow(_GLFWwindow* window); - -/*! @copydoc glfwHideWindow - * @ingroup platform - */ -void _glfwPlatformHideWindow(_GLFWwindow* window); - -/*! @copydoc glfwFocusWindow - * @ingroup platform - */ -void _glfwPlatformFocusWindow(_GLFWwindow* window); - -/*! @copydoc glfwSetWindowMonitor - * @ingroup platform - */ -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); - -/*! @brief Returns whether the window is focused. - * @ingroup platform - */ -int _glfwPlatformWindowFocused(_GLFWwindow* window); - -/*! @brief Returns whether the window is iconified. - * @ingroup platform - */ -int _glfwPlatformWindowIconified(_GLFWwindow* window); - -/*! @brief Returns whether the window is visible. - * @ingroup platform - */ -int _glfwPlatformWindowVisible(_GLFWwindow* window); - -/*! @brief Returns whether the window is maximized. - * @ingroup platform - */ -int _glfwPlatformWindowMaximized(_GLFWwindow* window); - -/*! @copydoc glfwPollEvents - * @ingroup platform - */ -void _glfwPlatformPollEvents(void); - -/*! @copydoc glfwWaitEvents - * @ingroup platform - */ -void _glfwPlatformWaitEvents(void); - -/*! @copydoc glfwWaitEventsTimeout - * @ingroup platform - */ -void _glfwPlatformWaitEventsTimeout(double timeout); - -/*! @copydoc glfwPostEmptyEvent - * @ingroup platform - */ -void _glfwPlatformPostEmptyEvent(void); - -/*! @ingroup platform - */ -void _glfwPlatformSetCurrentContext(_GLFWwindow* context); - -/*! @copydoc glfwGetCurrentContext - * @ingroup platform - */ -_GLFWwindow* _glfwPlatformGetCurrentContext(void); - -/*! @copydoc glfwCreateCursor - * @ingroup platform - */ -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot); - -/*! @copydoc glfwCreateStandardCursor - * @ingroup platform - */ -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape); - -/*! @copydoc glfwDestroyCursor - * @ingroup platform - */ -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor); - -/*! @copydoc glfwSetCursor - * @ingroup platform - */ -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor); - -/*! @ingroup platform - */ -char** _glfwPlatformGetRequiredInstanceExtensions(uint32_t* count); - -/*! @ingroup platform - */ -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); - -/*! @ingroup platform - */ -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); - - -//======================================================================== -// Event API functions -//======================================================================== - -/*! @brief Notifies shared code of a window focus event. - * @param[in] window The window that received the event. - * @param[in] focused `GLFW_TRUE` if the window received focus, or `GLFW_FALSE` - * if it lost focus. - * @ingroup event - */ -void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused); - -/*! @brief Notifies shared code of a window movement event. - * @param[in] window The window that received the event. - * @param[in] xpos The new x-coordinate of the client area of the window. - * @param[in] ypos The new y-coordinate of the client area of the window. - * @ingroup event - */ -void _glfwInputWindowPos(_GLFWwindow* window, int xpos, int ypos); - -/*! @brief Notifies shared code of a window resize event. - * @param[in] window The window that received the event. - * @param[in] width The new width of the client area of the window. - * @param[in] height The new height of the client area of the window. - * @ingroup event - */ -void _glfwInputWindowSize(_GLFWwindow* window, int width, int height); - -/*! @brief Notifies shared code of a framebuffer resize event. - * @param[in] window The window that received the event. - * @param[in] width The new width, in pixels, of the framebuffer. - * @param[in] height The new height, in pixels, of the framebuffer. - * @ingroup event - */ -void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height); - -/*! @brief Notifies shared code of a window iconification event. - * @param[in] window The window that received the event. - * @param[in] iconified `GLFW_TRUE` if the window was iconified, or - * `GLFW_FALSE` if it was restored. - * @ingroup event - */ -void _glfwInputWindowIconify(_GLFWwindow* window, GLFWbool iconified); - -/*! @brief Notifies shared code of a window damage event. - * @param[in] window The window that received the event. - */ -void _glfwInputWindowDamage(_GLFWwindow* window); - -/*! @brief Notifies shared code of a window close request event - * @param[in] window The window that received the event. - * @ingroup event - */ -void _glfwInputWindowCloseRequest(_GLFWwindow* window); - -void _glfwInputWindowMonitorChange(_GLFWwindow* window, _GLFWmonitor* monitor); - -/*! @brief Notifies shared code of a physical key event. - * @param[in] window The window that received the event. - * @param[in] key The key that was pressed or released. - * @param[in] scancode The system-specific scan code of the key. - * @param[in] action @ref GLFW_PRESS or @ref GLFW_RELEASE. - * @param[in] mods The modifiers pressed when the event was generated. - * @ingroup event - */ -void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods); - -/*! @brief Notifies shared code of a Unicode character input event. - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the input character. - * @param[in] mods Bit field describing which modifier keys were held down. - * @param[in] plain `GLFW_TRUE` if the character is regular text input, or - * `GLFW_FALSE` otherwise. - * @ingroup event - */ -void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, GLFWbool plain); - -/*! @brief Notifies shared code of a scroll event. - * @param[in] window The window that received the event. - * @param[in] xoffset The scroll offset along the x-axis. - * @param[in] yoffset The scroll offset along the y-axis. - * @ingroup event - */ -void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset); - -/*! @brief Notifies shared code of a mouse button click event. - * @param[in] window The window that received the event. - * @param[in] button The button that was pressed or released. - * @param[in] action @ref GLFW_PRESS or @ref GLFW_RELEASE. - * @ingroup event - */ -void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods); - -/*! @brief Notifies shared code of a cursor motion event. - * @param[in] window The window that received the event. - * @param[in] xpos The new x-coordinate of the cursor, relative to the left - * edge of the client area of the window. - * @param[in] ypos The new y-coordinate of the cursor, relative to the top edge - * of the client area of the window. - * @ingroup event - */ -void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos); - -/*! @brief Notifies shared code of a cursor enter/leave event. - * @param[in] window The window that received the event. - * @param[in] entered `GLFW_TRUE` if the cursor entered the client area of the - * window, or `GLFW_FALSE` if it left it. - * @ingroup event - */ -void _glfwInputCursorEnter(_GLFWwindow* window, GLFWbool entered); - -/*! @ingroup event - */ -void _glfwInputMonitorChange(void); - -/*! @ingroup event - */ -void _glfwInputMonitorWindowChange(_GLFWmonitor* monitor, _GLFWwindow* window); - -/*! @brief Notifies shared code of an error. - * @param[in] error The error code most suitable for the error. - * @param[in] format The `printf` style format string of the error - * description. - * @ingroup event - */ -#if defined(__GNUC__) -void _glfwInputError(int error, const char* format, ...) __attribute__((format(printf, 2, 3))); -#else -void _glfwInputError(int error, const char* format, ...); -#endif - -/*! @brief Notifies dropped object over window. - * @param[in] window The window that received the event. - * @param[in] count The number of dropped objects. - * @param[in] names The names of the dropped objects. - * @ingroup event - */ -void _glfwInputDrop(_GLFWwindow* window, int count, const char** names); - -/*! @brief Notifies shared code of a joystick connection/disconnection event. - * @param[in] joy The joystick that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. - * @ingroup event - */ -void _glfwInputJoystickChange(int joy, int event); - - -//======================================================================== -// Utility functions -//======================================================================== - -/*! @ingroup utility - */ -const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, - const GLFWvidmode* desired); - -/*! @brief Performs lexical comparison between two @ref GLFWvidmode structures. - * @ingroup utility - */ -int _glfwCompareVideoModes(const GLFWvidmode* first, const GLFWvidmode* second); - -/*! @brief Splits a color depth into red, green and blue bit depths. - * @ingroup utility - */ -void _glfwSplitBPP(int bpp, int* red, int* green, int* blue); - -/*! @brief Searches an extension string for the specified extension. - * @param[in] string The extension string to search. - * @param[in] extensions The extension to search for. - * @return `GLFW_TRUE` if the extension was found, or `GLFW_FALSE` otherwise. - * @ingroup utility - */ -GLFWbool _glfwStringInExtensionString(const char* string, const char* extensions); - -/*! @brief Chooses the framebuffer config that best matches the desired one. - * @param[in] desired The desired framebuffer config. - * @param[in] alternatives The framebuffer configs supported by the system. - * @param[in] count The number of entries in the alternatives array. - * @return The framebuffer config most closely matching the desired one, or @c - * NULL if none fulfilled the hard constraints of the desired values. - * @ingroup utility - */ -const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, - const _GLFWfbconfig* alternatives, - unsigned int count); - -/*! @brief Retrieves the attributes of the current context. - * @param[in] ctxconfig The desired context attributes. - * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if the context is - * unusable. - * @ingroup utility - */ -GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig); - -/*! @brief Checks whether the desired context attributes are valid. - * @param[in] ctxconfig The context attributes to check. - * @return `GLFW_TRUE` if the context attributes are valid, or `GLFW_FALSE` - * otherwise. - * @ingroup utility - * - * This function checks things like whether the specified client API version - * exists and whether all relevant options have supported and non-conflicting - * values. - */ -GLFWbool _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig); - -/*! @ingroup utility - */ -void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size); - -/*! @ingroup utility - */ -void _glfwFreeGammaArrays(GLFWgammaramp* ramp); - -/*! @brief Allocates and returns a monitor object with the specified name - * and dimensions. - * @param[in] name The name of the monitor. - * @param[in] widthMM The width, in mm, of the monitor's display area. - * @param[in] heightMM The height, in mm, of the monitor's display area. - * @return The newly created object. - * @ingroup utility - */ -_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM); - -/*! @brief Frees a monitor object and any data associated with it. - * @ingroup utility - */ -void _glfwFreeMonitor(_GLFWmonitor* monitor); - -/*! @ingroup utility - */ -void _glfwFreeMonitors(_GLFWmonitor** monitors, int count); - -/*! @ingroup utility - */ -GLFWbool _glfwIsPrintable(int key); - -/*! @ingroup utility - */ -GLFWbool _glfwInitVulkan(void); - -/*! @ingroup utility - */ -void _glfwTerminateVulkan(void); - -/*! @ingroup utility - */ -const char* _glfwGetVulkanResultString(VkResult result); - -#endif // _glfw3_internal_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.c deleted file mode 100644 index 561b1eb..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.c +++ /dev/null @@ -1,341 +0,0 @@ -//======================================================================== -// GLFW 3.2 Linux - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#if defined(__linux__) -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif // __linux__ - - -// Attempt to open the specified joystick device -// -#if defined(__linux__) -static GLFWbool openJoystickDevice(const char* path) -{ - char axisCount, buttonCount; - char name[256] = ""; - int joy, fd, version; - _GLFWjoystickLinux* js; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (!_glfw.linux_js.js[joy].present) - continue; - - if (strcmp(_glfw.linux_js.js[joy].path, path) == 0) - return GLFW_FALSE; - } - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (!_glfw.linux_js.js[joy].present) - break; - } - - if (joy > GLFW_JOYSTICK_LAST) - return GLFW_FALSE; - - fd = open(path, O_RDONLY | O_NONBLOCK); - if (fd == -1) - return GLFW_FALSE; - - // Verify that the joystick driver version is at least 1.0 - ioctl(fd, JSIOCGVERSION, &version); - if (version < 0x010000) - { - // It's an old 0.x interface (we don't support it) - close(fd); - return GLFW_FALSE; - } - - if (ioctl(fd, JSIOCGNAME(sizeof(name)), name) < 0) - strncpy(name, "Unknown", sizeof(name)); - - js = _glfw.linux_js.js + joy; - js->present = GLFW_TRUE; - js->name = strdup(name); - js->path = strdup(path); - js->fd = fd; - - ioctl(fd, JSIOCGAXES, &axisCount); - js->axisCount = (int) axisCount; - js->axes = calloc(axisCount, sizeof(float)); - - ioctl(fd, JSIOCGBUTTONS, &buttonCount); - js->buttonCount = (int) buttonCount; - js->buttons = calloc(buttonCount, 1); - - _glfwInputJoystickChange(joy, GLFW_CONNECTED); - return GLFW_TRUE; -} -#endif // __linux__ - -// Polls for and processes events the specified joystick -// -static GLFWbool pollJoystickEvents(_GLFWjoystickLinux* js) -{ -#if defined(__linux__) - _glfwPollJoystickEvents(); - - if (!js->present) - return GLFW_FALSE; - - // Read all queued events (non-blocking) - for (;;) - { - struct js_event e; - - errno = 0; - if (read(js->fd, &e, sizeof(e)) < 0) - { - // Reset the joystick slot if the device was disconnected - if (errno == ENODEV) - { - free(js->axes); - free(js->buttons); - free(js->name); - free(js->path); - - memset(js, 0, sizeof(_GLFWjoystickLinux)); - - _glfwInputJoystickChange(js - _glfw.linux_js.js, - GLFW_DISCONNECTED); - } - - break; - } - - // Clear the initial-state bit - e.type &= ~JS_EVENT_INIT; - - if (e.type == JS_EVENT_AXIS) - js->axes[e.number] = (float) e.value / 32767.0f; - else if (e.type == JS_EVENT_BUTTON) - js->buttons[e.number] = e.value ? GLFW_PRESS : GLFW_RELEASE; - } -#endif // __linux__ - return js->present; -} - -// Lexically compare joysticks by name; used by qsort -// -#if defined(__linux__) -static int compareJoysticks(const void* fp, const void* sp) -{ - const _GLFWjoystickLinux* fj = fp; - const _GLFWjoystickLinux* sj = sp; - return strcmp(fj->path, sj->path); -} -#endif // __linux__ - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize joystick interface -// -GLFWbool _glfwInitJoysticksLinux(void) -{ -#if defined(__linux__) - DIR* dir; - int count = 0; - const char* dirname = "/dev/input"; - - _glfw.linux_js.inotify = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); - if (_glfw.linux_js.inotify == -1) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Linux: Failed to initialize inotify: %s", - strerror(errno)); - return GLFW_FALSE; - } - - // HACK: Register for IN_ATTRIB as well to get notified when udev is done - // This works well in practice but the true way is libudev - - _glfw.linux_js.watch = inotify_add_watch(_glfw.linux_js.inotify, - dirname, - IN_CREATE | IN_ATTRIB); - if (_glfw.linux_js.watch == -1) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Linux: Failed to watch for joystick connections in %s: %s", - dirname, - strerror(errno)); - // Continue without device connection notifications - } - - if (regcomp(&_glfw.linux_js.regex, "^js[0-9]\\+$", 0) != 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Linux: Failed to compile regex"); - return GLFW_FALSE; - } - - dir = opendir(dirname); - if (dir) - { - struct dirent* entry; - - while ((entry = readdir(dir))) - { - char path[20]; - regmatch_t match; - - if (regexec(&_glfw.linux_js.regex, entry->d_name, 1, &match, 0) != 0) - continue; - - snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name); - if (openJoystickDevice(path)) - count++; - } - - closedir(dir); - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Linux: Failed to open joystick device directory %s: %s", - dirname, - strerror(errno)); - // Continue with no joysticks detected - } - - qsort(_glfw.linux_js.js, count, sizeof(_GLFWjoystickLinux), compareJoysticks); -#endif // __linux__ - - return GLFW_TRUE; -} - -// Close all opened joystick handles -// -void _glfwTerminateJoysticksLinux(void) -{ -#if defined(__linux__) - int i; - - for (i = 0; i <= GLFW_JOYSTICK_LAST; i++) - { - if (_glfw.linux_js.js[i].present) - { - close(_glfw.linux_js.js[i].fd); - free(_glfw.linux_js.js[i].axes); - free(_glfw.linux_js.js[i].buttons); - free(_glfw.linux_js.js[i].name); - free(_glfw.linux_js.js[i].path); - } - } - - regfree(&_glfw.linux_js.regex); - - if (_glfw.linux_js.inotify > 0) - { - if (_glfw.linux_js.watch > 0) - inotify_rm_watch(_glfw.linux_js.inotify, _glfw.linux_js.watch); - - close(_glfw.linux_js.inotify); - } -#endif // __linux__ -} - -void _glfwPollJoystickEvents(void) -{ -#if defined(__linux__) - ssize_t offset = 0; - char buffer[16384]; - - const ssize_t size = read(_glfw.linux_js.inotify, buffer, sizeof(buffer)); - - while (size > offset) - { - regmatch_t match; - const struct inotify_event* e = (struct inotify_event*) (buffer + offset); - - if (regexec(&_glfw.linux_js.regex, e->name, 1, &match, 0) == 0) - { - char path[20]; - snprintf(path, sizeof(path), "/dev/input/%s", e->name); - openJoystickDevice(path); - } - - offset += sizeof(struct inotify_event) + e->len; - } -#endif -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformJoystickPresent(int joy) -{ - _GLFWjoystickLinux* js = _glfw.linux_js.js + joy; - return pollJoystickEvents(js); -} - -const float* _glfwPlatformGetJoystickAxes(int joy, int* count) -{ - _GLFWjoystickLinux* js = _glfw.linux_js.js + joy; - if (!pollJoystickEvents(js)) - return NULL; - - *count = js->axisCount; - return js->axes; -} - -const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count) -{ - _GLFWjoystickLinux* js = _glfw.linux_js.js + joy; - if (!pollJoystickEvents(js)) - return NULL; - - *count = js->buttonCount; - return js->buttons; -} - -const char* _glfwPlatformGetJoystickName(int joy) -{ - _GLFWjoystickLinux* js = _glfw.linux_js.js + joy; - if (!pollJoystickEvents(js)) - return NULL; - - return js->name; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.h deleted file mode 100644 index e9d1f2b..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/linux_joystick.h +++ /dev/null @@ -1,68 +0,0 @@ -//======================================================================== -// GLFW 3.2 Linux - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_linux_joystick_h_ -#define _glfw3_linux_joystick_h_ - -#include - -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE _GLFWjoylistLinux linux_js - - -// Linux-specific joystick data -// -typedef struct _GLFWjoystickLinux -{ - GLFWbool present; - int fd; - float* axes; - int axisCount; - unsigned char* buttons; - int buttonCount; - char* name; - char* path; -} _GLFWjoystickLinux; - -// Linux-specific joystick API data -// -typedef struct _GLFWjoylistLinux -{ - _GLFWjoystickLinux js[GLFW_JOYSTICK_LAST + 1]; - -#if defined(__linux__) - int inotify; - int watch; - regex_t regex; -#endif /*__linux__*/ -} _GLFWjoylistLinux; - - -GLFWbool _glfwInitJoysticksLinux(void); -void _glfwTerminateJoysticksLinux(void); - -void _glfwPollJoystickEvents(void); - -#endif // _glfw3_linux_joystick_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_init.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_init.c deleted file mode 100644 index 3076f5f..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_init.c +++ /dev/null @@ -1,238 +0,0 @@ -//======================================================================== -// GLFW 3.2 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2015 Brandon Schaefer -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -// Create key code translation tables -// -static void createKeyTables(void) -{ - memset(_glfw.mir.publicKeys, -1, sizeof(_glfw.mir.publicKeys)); - - _glfw.mir.publicKeys[KEY_GRAVE] = GLFW_KEY_GRAVE_ACCENT; - _glfw.mir.publicKeys[KEY_1] = GLFW_KEY_1; - _glfw.mir.publicKeys[KEY_2] = GLFW_KEY_2; - _glfw.mir.publicKeys[KEY_3] = GLFW_KEY_3; - _glfw.mir.publicKeys[KEY_4] = GLFW_KEY_4; - _glfw.mir.publicKeys[KEY_5] = GLFW_KEY_5; - _glfw.mir.publicKeys[KEY_6] = GLFW_KEY_6; - _glfw.mir.publicKeys[KEY_7] = GLFW_KEY_7; - _glfw.mir.publicKeys[KEY_8] = GLFW_KEY_8; - _glfw.mir.publicKeys[KEY_9] = GLFW_KEY_9; - _glfw.mir.publicKeys[KEY_0] = GLFW_KEY_0; - _glfw.mir.publicKeys[KEY_MINUS] = GLFW_KEY_MINUS; - _glfw.mir.publicKeys[KEY_EQUAL] = GLFW_KEY_EQUAL; - _glfw.mir.publicKeys[KEY_Q] = GLFW_KEY_Q; - _glfw.mir.publicKeys[KEY_W] = GLFW_KEY_W; - _glfw.mir.publicKeys[KEY_E] = GLFW_KEY_E; - _glfw.mir.publicKeys[KEY_R] = GLFW_KEY_R; - _glfw.mir.publicKeys[KEY_T] = GLFW_KEY_T; - _glfw.mir.publicKeys[KEY_Y] = GLFW_KEY_Y; - _glfw.mir.publicKeys[KEY_U] = GLFW_KEY_U; - _glfw.mir.publicKeys[KEY_I] = GLFW_KEY_I; - _glfw.mir.publicKeys[KEY_O] = GLFW_KEY_O; - _glfw.mir.publicKeys[KEY_P] = GLFW_KEY_P; - _glfw.mir.publicKeys[KEY_LEFTBRACE] = GLFW_KEY_LEFT_BRACKET; - _glfw.mir.publicKeys[KEY_RIGHTBRACE] = GLFW_KEY_RIGHT_BRACKET; - _glfw.mir.publicKeys[KEY_A] = GLFW_KEY_A; - _glfw.mir.publicKeys[KEY_S] = GLFW_KEY_S; - _glfw.mir.publicKeys[KEY_D] = GLFW_KEY_D; - _glfw.mir.publicKeys[KEY_F] = GLFW_KEY_F; - _glfw.mir.publicKeys[KEY_G] = GLFW_KEY_G; - _glfw.mir.publicKeys[KEY_H] = GLFW_KEY_H; - _glfw.mir.publicKeys[KEY_J] = GLFW_KEY_J; - _glfw.mir.publicKeys[KEY_K] = GLFW_KEY_K; - _glfw.mir.publicKeys[KEY_L] = GLFW_KEY_L; - _glfw.mir.publicKeys[KEY_SEMICOLON] = GLFW_KEY_SEMICOLON; - _glfw.mir.publicKeys[KEY_APOSTROPHE] = GLFW_KEY_APOSTROPHE; - _glfw.mir.publicKeys[KEY_Z] = GLFW_KEY_Z; - _glfw.mir.publicKeys[KEY_X] = GLFW_KEY_X; - _glfw.mir.publicKeys[KEY_C] = GLFW_KEY_C; - _glfw.mir.publicKeys[KEY_V] = GLFW_KEY_V; - _glfw.mir.publicKeys[KEY_B] = GLFW_KEY_B; - _glfw.mir.publicKeys[KEY_N] = GLFW_KEY_N; - _glfw.mir.publicKeys[KEY_M] = GLFW_KEY_M; - _glfw.mir.publicKeys[KEY_COMMA] = GLFW_KEY_COMMA; - _glfw.mir.publicKeys[KEY_DOT] = GLFW_KEY_PERIOD; - _glfw.mir.publicKeys[KEY_SLASH] = GLFW_KEY_SLASH; - _glfw.mir.publicKeys[KEY_BACKSLASH] = GLFW_KEY_BACKSLASH; - _glfw.mir.publicKeys[KEY_ESC] = GLFW_KEY_ESCAPE; - _glfw.mir.publicKeys[KEY_TAB] = GLFW_KEY_TAB; - _glfw.mir.publicKeys[KEY_LEFTSHIFT] = GLFW_KEY_LEFT_SHIFT; - _glfw.mir.publicKeys[KEY_RIGHTSHIFT] = GLFW_KEY_RIGHT_SHIFT; - _glfw.mir.publicKeys[KEY_LEFTCTRL] = GLFW_KEY_LEFT_CONTROL; - _glfw.mir.publicKeys[KEY_RIGHTCTRL] = GLFW_KEY_RIGHT_CONTROL; - _glfw.mir.publicKeys[KEY_LEFTALT] = GLFW_KEY_LEFT_ALT; - _glfw.mir.publicKeys[KEY_RIGHTALT] = GLFW_KEY_RIGHT_ALT; - _glfw.mir.publicKeys[KEY_LEFTMETA] = GLFW_KEY_LEFT_SUPER; - _glfw.mir.publicKeys[KEY_RIGHTMETA] = GLFW_KEY_RIGHT_SUPER; - _glfw.mir.publicKeys[KEY_MENU] = GLFW_KEY_MENU; - _glfw.mir.publicKeys[KEY_NUMLOCK] = GLFW_KEY_NUM_LOCK; - _glfw.mir.publicKeys[KEY_CAPSLOCK] = GLFW_KEY_CAPS_LOCK; - _glfw.mir.publicKeys[KEY_PRINT] = GLFW_KEY_PRINT_SCREEN; - _glfw.mir.publicKeys[KEY_SCROLLLOCK] = GLFW_KEY_SCROLL_LOCK; - _glfw.mir.publicKeys[KEY_PAUSE] = GLFW_KEY_PAUSE; - _glfw.mir.publicKeys[KEY_DELETE] = GLFW_KEY_DELETE; - _glfw.mir.publicKeys[KEY_BACKSPACE] = GLFW_KEY_BACKSPACE; - _glfw.mir.publicKeys[KEY_ENTER] = GLFW_KEY_ENTER; - _glfw.mir.publicKeys[KEY_HOME] = GLFW_KEY_HOME; - _glfw.mir.publicKeys[KEY_END] = GLFW_KEY_END; - _glfw.mir.publicKeys[KEY_PAGEUP] = GLFW_KEY_PAGE_UP; - _glfw.mir.publicKeys[KEY_PAGEDOWN] = GLFW_KEY_PAGE_DOWN; - _glfw.mir.publicKeys[KEY_INSERT] = GLFW_KEY_INSERT; - _glfw.mir.publicKeys[KEY_LEFT] = GLFW_KEY_LEFT; - _glfw.mir.publicKeys[KEY_RIGHT] = GLFW_KEY_RIGHT; - _glfw.mir.publicKeys[KEY_DOWN] = GLFW_KEY_DOWN; - _glfw.mir.publicKeys[KEY_UP] = GLFW_KEY_UP; - _glfw.mir.publicKeys[KEY_F1] = GLFW_KEY_F1; - _glfw.mir.publicKeys[KEY_F2] = GLFW_KEY_F2; - _glfw.mir.publicKeys[KEY_F3] = GLFW_KEY_F3; - _glfw.mir.publicKeys[KEY_F4] = GLFW_KEY_F4; - _glfw.mir.publicKeys[KEY_F5] = GLFW_KEY_F5; - _glfw.mir.publicKeys[KEY_F6] = GLFW_KEY_F6; - _glfw.mir.publicKeys[KEY_F7] = GLFW_KEY_F7; - _glfw.mir.publicKeys[KEY_F8] = GLFW_KEY_F8; - _glfw.mir.publicKeys[KEY_F9] = GLFW_KEY_F9; - _glfw.mir.publicKeys[KEY_F10] = GLFW_KEY_F10; - _glfw.mir.publicKeys[KEY_F11] = GLFW_KEY_F11; - _glfw.mir.publicKeys[KEY_F12] = GLFW_KEY_F12; - _glfw.mir.publicKeys[KEY_F13] = GLFW_KEY_F13; - _glfw.mir.publicKeys[KEY_F14] = GLFW_KEY_F14; - _glfw.mir.publicKeys[KEY_F15] = GLFW_KEY_F15; - _glfw.mir.publicKeys[KEY_F16] = GLFW_KEY_F16; - _glfw.mir.publicKeys[KEY_F17] = GLFW_KEY_F17; - _glfw.mir.publicKeys[KEY_F18] = GLFW_KEY_F18; - _glfw.mir.publicKeys[KEY_F19] = GLFW_KEY_F19; - _glfw.mir.publicKeys[KEY_F20] = GLFW_KEY_F20; - _glfw.mir.publicKeys[KEY_F21] = GLFW_KEY_F21; - _glfw.mir.publicKeys[KEY_F22] = GLFW_KEY_F22; - _glfw.mir.publicKeys[KEY_F23] = GLFW_KEY_F23; - _glfw.mir.publicKeys[KEY_F24] = GLFW_KEY_F24; - _glfw.mir.publicKeys[KEY_KPSLASH] = GLFW_KEY_KP_DIVIDE; - _glfw.mir.publicKeys[KEY_KPDOT] = GLFW_KEY_KP_MULTIPLY; - _glfw.mir.publicKeys[KEY_KPMINUS] = GLFW_KEY_KP_SUBTRACT; - _glfw.mir.publicKeys[KEY_KPPLUS] = GLFW_KEY_KP_ADD; - _glfw.mir.publicKeys[KEY_KP0] = GLFW_KEY_KP_0; - _glfw.mir.publicKeys[KEY_KP1] = GLFW_KEY_KP_1; - _glfw.mir.publicKeys[KEY_KP2] = GLFW_KEY_KP_2; - _glfw.mir.publicKeys[KEY_KP3] = GLFW_KEY_KP_3; - _glfw.mir.publicKeys[KEY_KP4] = GLFW_KEY_KP_4; - _glfw.mir.publicKeys[KEY_KP5] = GLFW_KEY_KP_5; - _glfw.mir.publicKeys[KEY_KP6] = GLFW_KEY_KP_6; - _glfw.mir.publicKeys[KEY_KP7] = GLFW_KEY_KP_7; - _glfw.mir.publicKeys[KEY_KP8] = GLFW_KEY_KP_8; - _glfw.mir.publicKeys[KEY_KP9] = GLFW_KEY_KP_9; - _glfw.mir.publicKeys[KEY_KPCOMMA] = GLFW_KEY_KP_DECIMAL; - _glfw.mir.publicKeys[KEY_KPEQUAL] = GLFW_KEY_KP_EQUAL; - _glfw.mir.publicKeys[KEY_KPENTER] = GLFW_KEY_KP_ENTER; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - int error; - - _glfw.mir.connection = mir_connect_sync(NULL, __PRETTY_FUNCTION__); - - if (!mir_connection_is_valid(_glfw.mir.connection)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to connect to server: %s", - mir_connection_get_error_message(_glfw.mir.connection)); - - return GLFW_FALSE; - } - - _glfw.mir.display = - mir_connection_get_egl_native_display(_glfw.mir.connection); - - createKeyTables(); - - if (!_glfwInitThreadLocalStoragePOSIX()) - return GLFW_FALSE; - - if (!_glfwInitJoysticksLinux()) - return GLFW_FALSE; - - _glfwInitTimerPOSIX(); - - // Need the default conf for when we set a NULL cursor - _glfw.mir.default_conf = mir_cursor_configuration_from_name(mir_arrow_cursor_name); - - _glfw.mir.event_queue = calloc(1, sizeof(EventQueue)); - _glfwInitEventQueueMir(_glfw.mir.event_queue); - - error = pthread_mutex_init(&_glfw.mir.event_mutex, NULL); - if (error) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Failed to create event mutex: %s", - strerror(error)); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - _glfwTerminateEGL(); - _glfwTerminateJoysticksLinux(); - _glfwTerminateThreadLocalStoragePOSIX(); - - _glfwDeleteEventQueueMir(_glfw.mir.event_queue); - - pthread_mutex_destroy(&_glfw.mir.event_mutex); - - mir_connection_release(_glfw.mir.connection); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Mir EGL" -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif -#if defined(__linux__) - " /dev/js" -#endif -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_monitor.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_monitor.c deleted file mode 100644 index 90aa6c9..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_monitor.c +++ /dev/null @@ -1,182 +0,0 @@ -//======================================================================== -// GLFW 3.2 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2015 Brandon Schaefer -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - int i, found = 0; - _GLFWmonitor** monitors = NULL; - MirDisplayConfiguration* displayConfig = - mir_connection_create_display_config(_glfw.mir.connection); - - *count = 0; - - for (i = 0; i < displayConfig->num_outputs; i++) - { - const MirDisplayOutput* out = displayConfig->outputs + i; - - if (out->used && - out->connected && - out->num_modes && - out->current_mode < out->num_modes) - { - found++; - monitors = realloc(monitors, sizeof(_GLFWmonitor*) * found); - monitors[i] = _glfwAllocMonitor("Unknown", - out->physical_width_mm, - out->physical_height_mm); - - monitors[i]->mir.x = out->position_x; - monitors[i]->mir.y = out->position_y; - monitors[i]->mir.output_id = out->output_id; - monitors[i]->mir.cur_mode = out->current_mode; - - monitors[i]->modes = _glfwPlatformGetVideoModes(monitors[i], - &monitors[i]->modeCount); - } - } - - mir_display_config_destroy(displayConfig); - - *count = found; - return monitors; -} - -GLFWbool _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - return first->mir.output_id == second->mir.output_id; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (xpos) - *xpos = monitor->mir.x; - if (ypos) - *ypos = monitor->mir.y; -} - -void FillInRGBBitsFromPixelFormat(GLFWvidmode* mode, const MirPixelFormat pf) -{ - switch (pf) - { - case mir_pixel_format_rgb_565: - mode->redBits = 5; - mode->greenBits = 6; - mode->blueBits = 5; - break; - case mir_pixel_format_rgba_5551: - mode->redBits = 5; - mode->greenBits = 5; - mode->blueBits = 5; - break; - case mir_pixel_format_rgba_4444: - mode->redBits = 4; - mode->greenBits = 4; - mode->blueBits = 4; - break; - case mir_pixel_format_abgr_8888: - case mir_pixel_format_xbgr_8888: - case mir_pixel_format_argb_8888: - case mir_pixel_format_xrgb_8888: - case mir_pixel_format_bgr_888: - case mir_pixel_format_rgb_888: - default: - mode->redBits = 8; - mode->greenBits = 8; - mode->blueBits = 8; - break; - } -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) -{ - int i; - GLFWvidmode* modes = NULL; - MirDisplayConfiguration* displayConfig = - mir_connection_create_display_config(_glfw.mir.connection); - - for (i = 0; i < displayConfig->num_outputs; i++) - { - const MirDisplayOutput* out = displayConfig->outputs + i; - if (out->output_id != monitor->mir.output_id) - continue; - - modes = calloc(out->num_modes, sizeof(GLFWvidmode)); - - for (*found = 0; *found < out->num_modes; (*found)++) - { - modes[*found].width = out->modes[*found].horizontal_resolution; - modes[*found].height = out->modes[*found].vertical_resolution; - modes[*found].refreshRate = out->modes[*found].refresh_rate; - - FillInRGBBitsFromPixelFormat(&modes[*found], out->output_formats[*found]); - } - - break; - } - - mir_display_config_destroy(displayConfig); - - return modes; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - *mode = monitor->modes[monitor->mir.cur_mode]; -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwGetMirMonitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(0); - return monitor->mir.output_id; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_platform.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_platform.h deleted file mode 100644 index 8f1cf4e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_platform.h +++ /dev/null @@ -1,130 +0,0 @@ -//======================================================================== -// GLFW 3.2 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2015 Brandon Schaefer -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_mir_platform_h_ -#define _glfw3_mir_platform_h_ - -#include -#include -#include - -#include - -typedef VkFlags VkMirSurfaceCreateFlagsKHR; - -typedef struct VkMirSurfaceCreateInfoKHR -{ - VkStructureType sType; - const void* pNext; - VkMirSurfaceCreateFlagsKHR flags; - MirConnection* connection; - MirSurface* mirSurface; -} VkMirSurfaceCreateInfoKHR; - -typedef VkResult (APIENTRY *PFN_vkCreateMirSurfaceKHR)(VkInstance,const VkMirSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); -typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice,uint32_t,MirConnection*); - -#include "posix_tls.h" -#include "posix_time.h" -#include "linux_joystick.h" -#include "xkb_unicode.h" -#include "egl_context.h" - -#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) -#define _glfw_dlclose(handle) dlclose(handle) -#define _glfw_dlsym(handle, name) dlsym(handle, name) - -#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->mir.window) -#define _GLFW_EGL_NATIVE_DISPLAY ((EGLNativeDisplayType) _glfw.mir.display) - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowMir mir -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorMir mir -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryMir mir -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorMir mir - -#define _GLFW_PLATFORM_CONTEXT_STATE -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE - - -// Mir-specific Event Queue -// -typedef struct EventQueue -{ - TAILQ_HEAD(, EventNode) head; -} EventQueue; - -// Mir-specific per-window data -// -typedef struct _GLFWwindowMir -{ - MirSurface* surface; - int width; - int height; - MirEGLNativeWindowType window; - -} _GLFWwindowMir; - -// Mir-specific per-monitor data -// -typedef struct _GLFWmonitorMir -{ - int cur_mode; - int output_id; - int x; - int y; - -} _GLFWmonitorMir; - -// Mir-specific global data -// -typedef struct _GLFWlibraryMir -{ - MirConnection* connection; - MirEGLNativeDisplayType display; - MirCursorConfiguration* default_conf; - EventQueue* event_queue; - - short int publicKeys[256]; - - pthread_mutex_t event_mutex; - pthread_cond_t event_cond; - -} _GLFWlibraryMir; - -// Mir-specific per-cursor data -// TODO: Only system cursors are implemented in Mir atm. Need to wait for support. -// -typedef struct _GLFWcursorMir -{ - MirCursorConfiguration* conf; - MirBufferStream* custom_cursor; -} _GLFWcursorMir; - - -extern void _glfwInitEventQueueMir(EventQueue* queue); -extern void _glfwDeleteEventQueueMir(EventQueue* queue); - -#endif // _glfw3_mir_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_window.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_window.c deleted file mode 100644 index 411f906..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/mir_window.c +++ /dev/null @@ -1,848 +0,0 @@ -//======================================================================== -// GLFW 3.2 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2015 Brandon Schaefer -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -typedef struct EventNode -{ - TAILQ_ENTRY(EventNode) entries; - const MirEvent* event; - _GLFWwindow* window; -} EventNode; - -static void deleteNode(EventQueue* queue, EventNode* node) -{ - mir_event_unref(node->event); - free(node); -} - -static GLFWbool emptyEventQueue(EventQueue* queue) -{ - return queue->head.tqh_first == NULL; -} - -// TODO The mir_event_ref is not supposed to be used but ... its needed -// in this case. Need to wait until we can read from an FD set up by mir -// for single threaded event handling. -static EventNode* newEventNode(const MirEvent* event, _GLFWwindow* context) -{ - EventNode* new_node = calloc(1, sizeof(EventNode)); - new_node->event = mir_event_ref(event); - new_node->window = context; - - return new_node; -} - -static void enqueueEvent(const MirEvent* event, _GLFWwindow* context) -{ - pthread_mutex_lock(&_glfw.mir.event_mutex); - - EventNode* new_node = newEventNode(event, context); - TAILQ_INSERT_TAIL(&_glfw.mir.event_queue->head, new_node, entries); - - pthread_cond_signal(&_glfw.mir.event_cond); - - pthread_mutex_unlock(&_glfw.mir.event_mutex); -} - -static EventNode* dequeueEvent(EventQueue* queue) -{ - EventNode* node = NULL; - - pthread_mutex_lock(&_glfw.mir.event_mutex); - - node = queue->head.tqh_first; - - if (node) - TAILQ_REMOVE(&queue->head, node, entries); - - pthread_mutex_unlock(&_glfw.mir.event_mutex); - - return node; -} - -/* FIXME Soon to be changed upstream mir! So we can use an egl config to figure out - the best pixel format! -*/ -static MirPixelFormat findValidPixelFormat(void) -{ - unsigned int i, validFormats, mirPixelFormats = 32; - MirPixelFormat formats[mir_pixel_formats]; - - mir_connection_get_available_surface_formats(_glfw.mir.connection, formats, - mirPixelFormats, &validFormats); - - for (i = 0; i < validFormats; i++) - { - if (formats[i] == mir_pixel_format_abgr_8888 || - formats[i] == mir_pixel_format_xbgr_8888 || - formats[i] == mir_pixel_format_argb_8888 || - formats[i] == mir_pixel_format_xrgb_8888) - { - return formats[i]; - } - } - - return mir_pixel_format_invalid; -} - -static int mirModToGLFWMod(uint32_t mods) -{ - int publicMods = 0x0; - - if (mods & mir_input_event_modifier_alt) - publicMods |= GLFW_MOD_ALT; - else if (mods & mir_input_event_modifier_shift) - publicMods |= GLFW_MOD_SHIFT; - else if (mods & mir_input_event_modifier_ctrl) - publicMods |= GLFW_MOD_CONTROL; - else if (mods & mir_input_event_modifier_meta) - publicMods |= GLFW_MOD_SUPER; - - return publicMods; -} - -static int toGLFWKeyCode(uint32_t key) -{ - if (key < sizeof(_glfw.mir.publicKeys) / sizeof(_glfw.mir.publicKeys[0])) - return _glfw.mir.publicKeys[key]; - - return GLFW_KEY_UNKNOWN; -} - -static void handleKeyEvent(const MirKeyboardEvent* key_event, _GLFWwindow* window) -{ - const int action = mir_keyboard_event_action (key_event); - const int scan_code = mir_keyboard_event_scan_code(key_event); - const int key_code = mir_keyboard_event_key_code (key_event); - const int modifiers = mir_keyboard_event_modifiers(key_event); - - const int pressed = action == mir_keyboard_action_up ? GLFW_RELEASE : GLFW_PRESS; - const int mods = mirModToGLFWMod(modifiers); - const long text = _glfwKeySym2Unicode(key_code); - const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); - - _glfwInputKey(window, toGLFWKeyCode(scan_code), scan_code, pressed, mods); - - if (text != -1) - _glfwInputChar(window, text, mods, plain); -} - -static void handlePointerButton(_GLFWwindow* window, - int pressed, - const MirPointerEvent* pointer_event) -{ - int mods = mir_pointer_event_modifiers(pointer_event); - const int publicMods = mirModToGLFWMod(mods); - MirPointerButton button = mir_pointer_button_primary; - static uint32_t oldButtonStates = 0; - uint32_t newButtonStates = mir_pointer_event_buttons(pointer_event); - int publicButton = GLFW_MOUSE_BUTTON_LEFT; - - // XOR our old button states our new states to figure out what was added or removed - button = newButtonStates ^ oldButtonStates; - - switch (button) - { - case mir_pointer_button_primary: - publicButton = GLFW_MOUSE_BUTTON_LEFT; - break; - case mir_pointer_button_secondary: - publicButton = GLFW_MOUSE_BUTTON_RIGHT; - break; - case mir_pointer_button_tertiary: - publicButton = GLFW_MOUSE_BUTTON_MIDDLE; - break; - case mir_pointer_button_forward: - // FIXME What is the forward button? - publicButton = GLFW_MOUSE_BUTTON_4; - break; - case mir_pointer_button_back: - // FIXME What is the back button? - publicButton = GLFW_MOUSE_BUTTON_5; - break; - default: - break; - } - - oldButtonStates = newButtonStates; - - _glfwInputMouseClick(window, publicButton, pressed, publicMods); -} - -static void handlePointerMotion(_GLFWwindow* window, - const MirPointerEvent* pointer_event) -{ - int current_x = window->virtualCursorPosX; - int current_y = window->virtualCursorPosY; - int x = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_x); - int y = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_y); - int dx = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_hscroll); - int dy = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_vscroll); - - _glfwInputCursorPos(window, x, y); - if (dx != 0 || dy != 0) - _glfwInputScroll(window, dx, dy); -} - -static void handlePointerEvent(const MirPointerEvent* pointer_event, - _GLFWwindow* window) -{ - int action = mir_pointer_event_action(pointer_event); - - switch (action) - { - case mir_pointer_action_button_down: - handlePointerButton(window, GLFW_PRESS, pointer_event); - break; - case mir_pointer_action_button_up: - handlePointerButton(window, GLFW_RELEASE, pointer_event); - break; - case mir_pointer_action_motion: - handlePointerMotion(window, pointer_event); - break; - case mir_pointer_action_enter: - case mir_pointer_action_leave: - break; - default: - break; - - } -} - -static void handleInput(const MirInputEvent* input_event, _GLFWwindow* window) -{ - int type = mir_input_event_get_type(input_event); - - switch (type) - { - case mir_input_event_type_key: - handleKeyEvent(mir_input_event_get_keyboard_event(input_event), window); - break; - case mir_input_event_type_pointer: - handlePointerEvent(mir_input_event_get_pointer_event(input_event), window); - break; - default: - break; - } -} - -static void handleEvent(const MirEvent* event, _GLFWwindow* window) -{ - int type = mir_event_get_type(event); - - switch (type) - { - case mir_event_type_input: - handleInput(mir_event_get_input_event(event), window); - break; - default: - break; - } -} - -static void addNewEvent(MirSurface* surface, const MirEvent* event, void* context) -{ - enqueueEvent(event, context); -} - -static GLFWbool createSurface(_GLFWwindow* window) -{ - MirSurfaceSpec* spec; - MirBufferUsage buffer_usage = mir_buffer_usage_hardware; - MirPixelFormat pixel_format = findValidPixelFormat(); - - if (pixel_format == mir_pixel_format_invalid) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to find a correct pixel format"); - return GLFW_FALSE; - } - - spec = mir_connection_create_spec_for_normal_surface(_glfw.mir.connection, - window->mir.width, - window->mir.height, - pixel_format); - - mir_surface_spec_set_buffer_usage(spec, buffer_usage); - mir_surface_spec_set_name(spec, "MirSurface"); - - window->mir.surface = mir_surface_create_sync(spec); - mir_surface_spec_release(spec); - - if (!mir_surface_is_valid(window->mir.surface)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to create surface: %s", - mir_surface_get_error_message(window->mir.surface)); - - return GLFW_FALSE; - } - - mir_surface_set_event_handler(window->mir.surface, addNewEvent, window); - - return GLFW_TRUE; -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInitEventQueueMir(EventQueue* queue) -{ - TAILQ_INIT(&queue->head); -} - -void _glfwDeleteEventQueueMir(EventQueue* queue) -{ - if (queue) - { - EventNode* node, *node_next; - node = queue->head.tqh_first; - - while (node != NULL) - { - node_next = node->entries.tqe_next; - - TAILQ_REMOVE(&queue->head, node, entries); - deleteNode(queue, node); - - node = node_next; - } - - free(queue); - } -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (window->monitor) - { - GLFWvidmode mode; - _glfwPlatformGetVideoMode(window->monitor, &mode); - - mir_surface_set_state(window->mir.surface, mir_surface_state_fullscreen); - - if (wndconfig->width > mode.width || wndconfig->height > mode.height) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Requested surface size too large: %ix%i", - wndconfig->width, wndconfig->height); - - return GLFW_FALSE; - } - } - - window->mir.width = wndconfig->width; - window->mir.height = wndconfig->height; - - if (!createSurface(window)) - return GLFW_FALSE; - - window->mir.window = mir_buffer_stream_get_egl_native_window( - mir_surface_get_buffer_stream(window->mir.surface)); - - if (ctxconfig->client != GLFW_NO_API) - { - if (!_glfwInitEGL()) - return GLFW_FALSE; - if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (mir_surface_is_valid(window->mir.surface)) - { - mir_surface_release_sync(window->mir.surface); - window->mir.surface = NULL; - } - - if (window->context.destroy) - window->context.destroy(window); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - MirSurfaceSpec* spec; - const char* e_title = title ? title : ""; - - spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_name(spec, e_title); - - mir_surface_apply_spec(window->mir.surface, spec); - mir_surface_spec_release(spec); -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - MirSurfaceSpec* spec; - - spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_width (spec, width); - mir_surface_spec_set_height(spec, height); - - mir_surface_apply_spec(window->mir.surface, spec); - mir_surface_spec_release(spec); -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->mir.width; - if (height) - *height = window->mir.height; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - mir_surface_set_state(window->mir.surface, mir_surface_state_minimized); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - mir_surface_set_state(window->mir.surface, mir_surface_state_restored); -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - MirSurfaceSpec* spec; - - spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_state(spec, mir_surface_state_hidden); - - mir_surface_apply_spec(window->mir.surface, spec); - mir_surface_spec_release(spec); -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - MirSurfaceSpec* spec; - - spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_state(spec, mir_surface_state_restored); - - mir_surface_apply_spec(window->mir.surface, spec); - mir_surface_spec_release(spec); -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return GLFW_FALSE; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return GLFW_FALSE; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return mir_surface_get_visibility(window->mir.surface) == mir_surface_visibility_exposed; -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return GLFW_FALSE; -} - -void _glfwPlatformPollEvents(void) -{ - EventNode* node = NULL; - - while ((node = dequeueEvent(_glfw.mir.event_queue))) - { - handleEvent(node->event, node->window); - deleteNode(_glfw.mir.event_queue, node); - } -} - -void _glfwPlatformWaitEvents(void) -{ - pthread_mutex_lock(&_glfw.mir.event_mutex); - - if (emptyEventQueue(_glfw.mir.event_queue)) - pthread_cond_wait(&_glfw.mir.event_cond, &_glfw.mir.event_mutex); - - pthread_mutex_unlock(&_glfw.mir.event_mutex); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - pthread_mutex_lock(&_glfw.mir.event_mutex); - - if (emptyEventQueue(_glfw.mir.event_queue)) - { - struct timespec time; - clock_gettime(CLOCK_REALTIME, &time); - time.tv_sec += (long) timeout; - time.tv_nsec += (long) ((timeout - (long) timeout) * 1e9); - pthread_cond_timedwait(&_glfw.mir.event_cond, &_glfw.mir.event_mutex, &time); - } - - pthread_mutex_unlock(&_glfw.mir.event_mutex); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->mir.width; - if (height) - *height = window->mir.height; -} - -// FIXME implement -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - MirBufferStream* stream; - MirPixelFormat pixel_format = findValidPixelFormat(); - - int i_w = image->width; - int i_h = image->height; - - if (pixel_format == mir_pixel_format_invalid) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to find a correct pixel format"); - return GLFW_FALSE; - } - - stream = mir_connection_create_buffer_stream_sync(_glfw.mir.connection, - i_w, i_h, - pixel_format, - mir_buffer_usage_software); - - cursor->mir.conf = mir_cursor_configuration_from_buffer_stream(stream, xhot, yhot); - - char* dest; - unsigned char *pixels; - int i, r_stride, bytes_per_pixel, bytes_per_row; - - MirGraphicsRegion region; - mir_buffer_stream_get_graphics_region(stream, ®ion); - - // FIXME Figure this out based on the current_pf - bytes_per_pixel = 4; - bytes_per_row = bytes_per_pixel * i_w; - - dest = region.vaddr; - pixels = image->pixels; - - r_stride = region.stride; - - for (i = 0; i < i_h; i++) - { - memcpy(dest, pixels, bytes_per_row); - dest += r_stride; - pixels += r_stride; - } - - cursor->mir.custom_cursor = stream; - - return GLFW_TRUE; -} - -const char* getSystemCursorName(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return mir_arrow_cursor_name; - case GLFW_IBEAM_CURSOR: - return mir_caret_cursor_name; - case GLFW_CROSSHAIR_CURSOR: - return mir_crosshair_cursor_name; - case GLFW_HAND_CURSOR: - return mir_open_hand_cursor_name; - case GLFW_HRESIZE_CURSOR: - return mir_horizontal_resize_cursor_name; - case GLFW_VRESIZE_CURSOR: - return mir_vertical_resize_cursor_name; - } - - return NULL; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - const char* cursor_name = getSystemCursorName(shape); - - if (cursor_name) - { - cursor->mir.conf = mir_cursor_configuration_from_name(cursor_name); - cursor->mir.custom_cursor = NULL; - - return GLFW_TRUE; - } - - return GLFW_FALSE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->mir.conf) - mir_cursor_configuration_destroy(cursor->mir.conf); - if (cursor->mir.custom_cursor) - mir_buffer_stream_release_sync(cursor->mir.custom_cursor); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (cursor && cursor->mir.conf) - { - mir_wait_for(mir_surface_configure_cursor(window->mir.surface, cursor->mir.conf)); - if (cursor->mir.custom_cursor) - { - mir_buffer_stream_swap_buffers_sync(cursor->mir.custom_cursor); - } - } - else - { - mir_wait_for(mir_surface_configure_cursor(window->mir.surface, _glfw.mir.default_conf)); - } -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -const char* _glfwPlatformGetKeyName(int key, int scancode) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return NULL; -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - - return NULL; -} - -char** _glfwPlatformGetRequiredInstanceExtensions(uint32_t* count) -{ - char** extensions; - - *count = 0; - - if (!_glfw.vk.KHR_mir_surface) - return NULL; - - extensions = calloc(2, sizeof(char*)); - extensions[0] = strdup("VK_KHR_surface"); - extensions[1] = strdup("VK_KHR_mir_surface"); - - *count = 2; - return extensions; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - PFN_vkGetPhysicalDeviceMirPresentationSupportKHR vkGetPhysicalDeviceMirPresentationSupportKHR = - (PFN_vkGetPhysicalDeviceMirPresentationSupportKHR) - vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceMirPresentationSupportKHR"); - if (!vkGetPhysicalDeviceMirPresentationSupportKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Mir: Vulkan instance missing VK_KHR_mir_surface extension"); - return GLFW_FALSE; - } - - return vkGetPhysicalDeviceMirPresentationSupportKHR(device, - queuefamily, - _glfw.mir.connection); -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - VkResult err; - VkMirSurfaceCreateInfoKHR sci; - PFN_vkCreateMirSurfaceKHR vkCreateMirSurfaceKHR; - - vkCreateMirSurfaceKHR = (PFN_vkCreateMirSurfaceKHR) - vkGetInstanceProcAddr(instance, "vkCreateMirSurfaceKHR"); - if (!vkCreateMirSurfaceKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Mir: Vulkan instance missing VK_KHR_mir_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR; - sci.connection = _glfw.mir.connection; - sci.mirSurface = window->mir.surface; - - err = vkCreateMirSurfaceKHR(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Failed to create Vulkan surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI MirConnection* glfwGetMirDisplay(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfw.mir.connection; -} - -GLFWAPI MirSurface* glfwGetMirWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->mir.surface; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/monitor.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/monitor.c deleted file mode 100644 index b6c312d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/monitor.c +++ /dev/null @@ -1,477 +0,0 @@ -//======================================================================== -// GLFW 3.2 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include -#include -#include - - -// Lexically compare video modes, used by qsort -// -static int compareVideoModes(const void* fp, const void* sp) -{ - const GLFWvidmode* fm = fp; - const GLFWvidmode* sm = sp; - const int fbpp = fm->redBits + fm->greenBits + fm->blueBits; - const int sbpp = sm->redBits + sm->greenBits + sm->blueBits; - const int farea = fm->width * fm->height; - const int sarea = sm->width * sm->height; - - // First sort on color bits per pixel - if (fbpp != sbpp) - return fbpp - sbpp; - - // Then sort on screen area - if (farea != sarea) - return farea - sarea; - - // Lastly sort on refresh rate - return fm->refreshRate - sm->refreshRate; -} - -// Retrieves the available modes for the specified monitor -// -static GLFWbool refreshVideoModes(_GLFWmonitor* monitor) -{ - int modeCount; - GLFWvidmode* modes; - - if (monitor->modes) - return GLFW_TRUE; - - modes = _glfwPlatformGetVideoModes(monitor, &modeCount); - if (!modes) - return GLFW_FALSE; - - qsort(modes, modeCount, sizeof(GLFWvidmode), compareVideoModes); - - free(monitor->modes); - monitor->modes = modes; - monitor->modeCount = modeCount; - - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputMonitorChange(void) -{ - int i, j, monitorCount = _glfw.monitorCount; - _GLFWmonitor** monitors = _glfw.monitors; - - _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); - - // Re-use still connected monitor objects - - for (i = 0; i < _glfw.monitorCount; i++) - { - for (j = 0; j < monitorCount; j++) - { - if (_glfwPlatformIsSameMonitor(_glfw.monitors[i], monitors[j])) - { - _glfwFreeMonitor(_glfw.monitors[i]); - _glfw.monitors[i] = monitors[j]; - break; - } - } - } - - // Find and report disconnected monitors (not in the new list) - - for (i = 0; i < monitorCount; i++) - { - _GLFWwindow* window; - - for (j = 0; j < _glfw.monitorCount; j++) - { - if (monitors[i] == _glfw.monitors[j]) - break; - } - - if (j < _glfw.monitorCount) - continue; - - for (window = _glfw.windowListHead; window; window = window->next) - { - if (window->monitor == monitors[i]) - { - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetWindowMonitor(window, NULL, 0, 0, width, height, 0); - } - } - - if (_glfw.callbacks.monitor) - _glfw.callbacks.monitor((GLFWmonitor*) monitors[i], GLFW_DISCONNECTED); - } - - // Find and report newly connected monitors (not in the old list) - // Re-used monitor objects are then removed from the old list to avoid - // having them destroyed at the end of this function - - for (i = 0; i < _glfw.monitorCount; i++) - { - for (j = 0; j < monitorCount; j++) - { - if (_glfw.monitors[i] == monitors[j]) - { - monitors[j] = NULL; - break; - } - } - - if (j < monitorCount) - continue; - - if (_glfw.callbacks.monitor) - _glfw.callbacks.monitor((GLFWmonitor*) _glfw.monitors[i], GLFW_CONNECTED); - } - - _glfwFreeMonitors(monitors, monitorCount); -} - -void _glfwInputMonitorWindowChange(_GLFWmonitor* monitor, _GLFWwindow* window) -{ - monitor->window = window; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM) -{ - _GLFWmonitor* monitor = calloc(1, sizeof(_GLFWmonitor)); - monitor->name = strdup(name); - monitor->widthMM = widthMM; - monitor->heightMM = heightMM; - - return monitor; -} - -void _glfwFreeMonitor(_GLFWmonitor* monitor) -{ - if (monitor == NULL) - return; - - _glfwFreeGammaArrays(&monitor->originalRamp); - _glfwFreeGammaArrays(&monitor->currentRamp); - - free(monitor->modes); - free(monitor->name); - free(monitor); -} - -void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size) -{ - ramp->red = calloc(size, sizeof(unsigned short)); - ramp->green = calloc(size, sizeof(unsigned short)); - ramp->blue = calloc(size, sizeof(unsigned short)); - ramp->size = size; -} - -void _glfwFreeGammaArrays(GLFWgammaramp* ramp) -{ - free(ramp->red); - free(ramp->green); - free(ramp->blue); - - memset(ramp, 0, sizeof(GLFWgammaramp)); -} - -void _glfwFreeMonitors(_GLFWmonitor** monitors, int count) -{ - int i; - - for (i = 0; i < count; i++) - _glfwFreeMonitor(monitors[i]); - - free(monitors); -} - -const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, - const GLFWvidmode* desired) -{ - int i; - unsigned int sizeDiff, leastSizeDiff = UINT_MAX; - unsigned int rateDiff, leastRateDiff = UINT_MAX; - unsigned int colorDiff, leastColorDiff = UINT_MAX; - const GLFWvidmode* current; - const GLFWvidmode* closest = NULL; - - if (!refreshVideoModes(monitor)) - return NULL; - - for (i = 0; i < monitor->modeCount; i++) - { - current = monitor->modes + i; - - colorDiff = 0; - - if (desired->redBits != GLFW_DONT_CARE) - colorDiff += abs(current->redBits - desired->redBits); - if (desired->greenBits != GLFW_DONT_CARE) - colorDiff += abs(current->greenBits - desired->greenBits); - if (desired->blueBits != GLFW_DONT_CARE) - colorDiff += abs(current->blueBits - desired->blueBits); - - sizeDiff = abs((current->width - desired->width) * - (current->width - desired->width) + - (current->height - desired->height) * - (current->height - desired->height)); - - if (desired->refreshRate != GLFW_DONT_CARE) - rateDiff = abs(current->refreshRate - desired->refreshRate); - else - rateDiff = UINT_MAX - current->refreshRate; - - if ((colorDiff < leastColorDiff) || - (colorDiff == leastColorDiff && sizeDiff < leastSizeDiff) || - (colorDiff == leastColorDiff && sizeDiff == leastSizeDiff && rateDiff < leastRateDiff)) - { - closest = current; - leastSizeDiff = sizeDiff; - leastRateDiff = rateDiff; - leastColorDiff = colorDiff; - } - } - - return closest; -} - -int _glfwCompareVideoModes(const GLFWvidmode* fm, const GLFWvidmode* sm) -{ - return compareVideoModes(fm, sm); -} - -void _glfwSplitBPP(int bpp, int* red, int* green, int* blue) -{ - int delta; - - // We assume that by 32 the user really meant 24 - if (bpp == 32) - bpp = 24; - - // Convert "bits per pixel" to red, green & blue sizes - - *red = *green = *blue = bpp / 3; - delta = bpp - (*red * 3); - if (delta >= 1) - *green = *green + 1; - - if (delta == 2) - *red = *red + 1; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI GLFWmonitor** glfwGetMonitors(int* count) -{ - assert(count != NULL); - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - *count = _glfw.monitorCount; - return (GLFWmonitor**) _glfw.monitors; -} - -GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!_glfw.monitorCount) - return NULL; - - return (GLFWmonitor*) _glfw.monitors[0]; -} - -GLFWAPI void glfwGetMonitorPos(GLFWmonitor* handle, int* xpos, int* ypos) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; - - _GLFW_REQUIRE_INIT(); - - _glfwPlatformGetMonitorPos(monitor, xpos, ypos); -} - -GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* handle, int* widthMM, int* heightMM) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - if (widthMM) - *widthMM = 0; - if (heightMM) - *heightMM = 0; - - _GLFW_REQUIRE_INIT(); - - if (widthMM) - *widthMM = monitor->widthMM; - if (heightMM) - *heightMM = monitor->heightMM; -} - -GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->name; -} - -GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(_glfw.callbacks.monitor, cbfun); - return cbfun; -} - -GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* handle, int* count) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - assert(count != NULL); - - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!refreshVideoModes(monitor)) - return NULL; - - *count = monitor->modeCount; - return monitor->modes; -} - -GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - _glfwPlatformGetVideoMode(monitor, &monitor->currentMode); - return &monitor->currentMode; -} - -GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) -{ - int i; - unsigned short values[256]; - GLFWgammaramp ramp; - - _GLFW_REQUIRE_INIT(); - - if (gamma != gamma || gamma <= 0.f || gamma > FLT_MAX) - { - _glfwInputError(GLFW_INVALID_VALUE, "Invalid gamma value %f", gamma); - return; - } - - for (i = 0; i < 256; i++) - { - double value; - - // Calculate intensity - value = i / 255.0; - // Apply gamma curve - value = pow(value, 1.0 / gamma) * 65535.0 + 0.5; - - // Clamp to value range - if (value > 65535.0) - value = 65535.0; - - values[i] = (unsigned short) value; - } - - ramp.red = values; - ramp.green = values; - ramp.blue = values; - ramp.size = 256; - - glfwSetGammaRamp(handle, &ramp); -} - -GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - _glfwFreeGammaArrays(&monitor->currentRamp); - _glfwPlatformGetGammaRamp(monitor, &monitor->currentRamp); - - return &monitor->currentRamp; -} - -GLFWAPI void glfwSetGammaRamp(GLFWmonitor* handle, const GLFWgammaramp* ramp) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - assert(ramp != NULL); - assert(ramp->red != NULL); - assert(ramp->green != NULL); - assert(ramp->blue != NULL); - - if (ramp->size <= 0) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid gamma ramp size %i", - ramp->size); - return; - } - - _GLFW_REQUIRE_INIT(); - - if (!monitor->originalRamp.size) - _glfwPlatformGetGammaRamp(monitor, &monitor->originalRamp); - - _glfwPlatformSetGammaRamp(monitor, ramp); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/nsgl_context.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/nsgl_context.h deleted file mode 100644 index 1304f2e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/nsgl_context.h +++ /dev/null @@ -1,60 +0,0 @@ -//======================================================================== -// GLFW 3.2 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_nsgl_context_h_ -#define _glfw3_nsgl_context_h_ - -#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextNSGL nsgl -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryNSGL nsgl - - -// NSGL-specific per-context data -// -typedef struct _GLFWcontextNSGL -{ - id pixelFormat; - id object; - -} _GLFWcontextNSGL; - -// NSGL-specific global data -// -typedef struct _GLFWlibraryNSGL -{ - // dlopen handle for OpenGL.framework (for glfwGetProcAddress) - CFBundleRef framework; - -} _GLFWlibraryNSGL; - - -GLFWbool _glfwInitNSGL(void); -void _glfwTerminateNSGL(void); -GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); -void _glfwDestroyContextNSGL(_GLFWwindow* window); - -#endif // _glfw3_nsgl_context_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/nsgl_context.m b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/nsgl_context.m deleted file mode 100644 index 22ebdba..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/nsgl_context.m +++ /dev/null @@ -1,308 +0,0 @@ -//======================================================================== -// GLFW 3.2 OS X - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -static void makeContextCurrentNSGL(_GLFWwindow* window) -{ - if (window) - [window->context.nsgl.object makeCurrentContext]; - else - [NSOpenGLContext clearCurrentContext]; - - _glfwPlatformSetCurrentContext(window); -} - -static void swapBuffersNSGL(_GLFWwindow* window) -{ - // ARP appears to be unnecessary, but this is future-proof - [window->context.nsgl.object flushBuffer]; -} - -static void swapIntervalNSGL(int interval) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - GLint sync = interval; - [window->context.nsgl.object setValues:&sync - forParameter:NSOpenGLCPSwapInterval]; -} - -static int extensionSupportedNSGL(const char* extension) -{ - // There are no NSGL extensions - return GLFW_FALSE; -} - -static GLFWglproc getProcAddressNSGL(const char* procname) -{ - CFStringRef symbolName = CFStringCreateWithCString(kCFAllocatorDefault, - procname, - kCFStringEncodingASCII); - - GLFWglproc symbol = CFBundleGetFunctionPointerForName(_glfw.nsgl.framework, - symbolName); - - CFRelease(symbolName); - - return symbol; -} - -// Destroy the OpenGL context -// -static void destroyContextNSGL(_GLFWwindow* window) -{ - [window->context.nsgl.pixelFormat release]; - window->context.nsgl.pixelFormat = nil; - - [window->context.nsgl.object release]; - window->context.nsgl.object = nil; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize OpenGL support -// -GLFWbool _glfwInitNSGL(void) -{ - if (_glfw.nsgl.framework) - return GLFW_TRUE; - - _glfw.nsgl.framework = - CFBundleGetBundleWithIdentifier(CFSTR("com.apple.opengl")); - if (_glfw.nsgl.framework == NULL) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "NSGL: Failed to locate OpenGL framework"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -// Terminate OpenGL support -// -void _glfwTerminateNSGL(void) -{ -} - -// Create the OpenGL context -// -GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - unsigned int attributeCount = 0; - - if (ctxconfig->client == GLFW_OPENGL_ES_API) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "NSGL: OpenGL ES is not available on OS X"); - return GLFW_FALSE; - } - - if (ctxconfig->major == 3 && ctxconfig->minor < 2) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: The targeted version of OS X does not support OpenGL 3.0 or 3.1"); - return GLFW_FALSE; - } - - if (ctxconfig->major > 2) - { - if (!ctxconfig->forward) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: The targeted version of OS X only supports forward-compatible contexts for OpenGL 3.2 and above"); - return GLFW_FALSE; - } - - if (ctxconfig->profile != GLFW_OPENGL_CORE_PROFILE) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: The targeted version of OS X only supports core profile contexts for OpenGL 3.2 and above"); - return GLFW_FALSE; - } - } - - // Context robustness modes (GL_KHR_robustness) are not yet supported on - // OS X but are not a hard constraint, so ignore and continue - - // Context release behaviors (GL_KHR_context_flush_control) are not yet - // supported on OS X but are not a hard constraint, so ignore and continue - -#define ADD_ATTR(x) { attributes[attributeCount++] = x; } -#define ADD_ATTR2(x, y) { ADD_ATTR(x); ADD_ATTR(y); } - - // Arbitrary array size here - NSOpenGLPixelFormatAttribute attributes[40]; - - ADD_ATTR(NSOpenGLPFAAccelerated); - ADD_ATTR(NSOpenGLPFAClosestPolicy); - -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 - if (ctxconfig->major >= 4) - { - ADD_ATTR2(NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion4_1Core); - } - else -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ - if (ctxconfig->major >= 3) - { - ADD_ATTR2(NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core); - } - - if (ctxconfig->major <= 2) - { - if (fbconfig->auxBuffers != GLFW_DONT_CARE) - ADD_ATTR2(NSOpenGLPFAAuxBuffers, fbconfig->auxBuffers); - - if (fbconfig->accumRedBits != GLFW_DONT_CARE && - fbconfig->accumGreenBits != GLFW_DONT_CARE && - fbconfig->accumBlueBits != GLFW_DONT_CARE && - fbconfig->accumAlphaBits != GLFW_DONT_CARE) - { - const int accumBits = fbconfig->accumRedBits + - fbconfig->accumGreenBits + - fbconfig->accumBlueBits + - fbconfig->accumAlphaBits; - - ADD_ATTR2(NSOpenGLPFAAccumSize, accumBits); - } - } - - if (fbconfig->redBits != GLFW_DONT_CARE && - fbconfig->greenBits != GLFW_DONT_CARE && - fbconfig->blueBits != GLFW_DONT_CARE) - { - int colorBits = fbconfig->redBits + - fbconfig->greenBits + - fbconfig->blueBits; - - // OS X needs non-zero color size, so set reasonable values - if (colorBits == 0) - colorBits = 24; - else if (colorBits < 15) - colorBits = 15; - - ADD_ATTR2(NSOpenGLPFAColorSize, colorBits); - } - - if (fbconfig->alphaBits != GLFW_DONT_CARE) - ADD_ATTR2(NSOpenGLPFAAlphaSize, fbconfig->alphaBits); - - if (fbconfig->depthBits != GLFW_DONT_CARE) - ADD_ATTR2(NSOpenGLPFADepthSize, fbconfig->depthBits); - - if (fbconfig->stencilBits != GLFW_DONT_CARE) - ADD_ATTR2(NSOpenGLPFAStencilSize, fbconfig->stencilBits); - - if (fbconfig->stereo) - ADD_ATTR(NSOpenGLPFAStereo); - - if (fbconfig->doublebuffer) - ADD_ATTR(NSOpenGLPFADoubleBuffer); - - if (fbconfig->samples != GLFW_DONT_CARE) - { - if (fbconfig->samples == 0) - { - ADD_ATTR2(NSOpenGLPFASampleBuffers, 0); - } - else - { - ADD_ATTR2(NSOpenGLPFASampleBuffers, 1); - ADD_ATTR2(NSOpenGLPFASamples, fbconfig->samples); - } - } - - // NOTE: All NSOpenGLPixelFormats on the relevant cards support sRGB - // framebuffer, so there's no need (and no way) to request it - - ADD_ATTR(0); - -#undef ADD_ATTR -#undef ADD_ATTR2 - - window->context.nsgl.pixelFormat = - [[NSOpenGLPixelFormat alloc] initWithAttributes:attributes]; - if (window->context.nsgl.pixelFormat == nil) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "NSGL: Failed to find a suitable pixel format"); - return GLFW_FALSE; - } - - NSOpenGLContext* share = NULL; - - if (ctxconfig->share) - share = ctxconfig->share->context.nsgl.object; - - window->context.nsgl.object = - [[NSOpenGLContext alloc] initWithFormat:window->context.nsgl.pixelFormat - shareContext:share]; - if (window->context.nsgl.object == nil) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: Failed to create OpenGL context"); - return GLFW_FALSE; - } - - [window->context.nsgl.object setView:window->ns.view]; - - window->context.makeCurrent = makeContextCurrentNSGL; - window->context.swapBuffers = swapBuffersNSGL; - window->context.swapInterval = swapIntervalNSGL; - window->context.extensionSupported = extensionSupportedNSGL; - window->context.getProcAddress = getProcAddressNSGL; - window->context.destroy = destroyContextNSGL; - - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI id glfwGetNSGLContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(nil); - - if (window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return NULL; - } - - return window->context.nsgl.object; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_time.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_time.c deleted file mode 100644 index 8d0d4cd..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_time.c +++ /dev/null @@ -1,85 +0,0 @@ -//======================================================================== -// GLFW 3.2 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialise timer -// -void _glfwInitTimerPOSIX(void) -{ -#if defined(CLOCK_MONOTONIC) - struct timespec ts; - - if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) - { - _glfw.posix_time.monotonic = GLFW_TRUE; - _glfw.posix_time.frequency = 1000000000; - } - else -#endif - { - _glfw.posix_time.monotonic = GLFW_FALSE; - _glfw.posix_time.frequency = 1000000; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -uint64_t _glfwPlatformGetTimerValue(void) -{ -#if defined(CLOCK_MONOTONIC) - if (_glfw.posix_time.monotonic) - { - struct timespec ts; - clock_gettime(CLOCK_MONOTONIC, &ts); - return (uint64_t) ts.tv_sec * (uint64_t) 1000000000 + (uint64_t) ts.tv_nsec; - } - else -#endif - { - struct timeval tv; - gettimeofday(&tv, NULL); - return (uint64_t) tv.tv_sec * (uint64_t) 1000000 + (uint64_t) tv.tv_usec; - } -} - -uint64_t _glfwPlatformGetTimerFrequency(void) -{ - return _glfw.posix_time.frequency; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_time.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_time.h deleted file mode 100644 index 4730ca7..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_time.h +++ /dev/null @@ -1,48 +0,0 @@ -//======================================================================== -// GLFW 3.2 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_posix_time_h_ -#define _glfw3_posix_time_h_ - -#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimePOSIX posix_time - -#include - - -// POSIX-specific global timer data -// -typedef struct _GLFWtimePOSIX -{ - GLFWbool monotonic; - uint64_t frequency; - -} _GLFWtimePOSIX; - - -void _glfwInitTimerPOSIX(void); - -#endif // _glfw3_posix_time_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.c deleted file mode 100644 index c9517c6..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.c +++ /dev/null @@ -1,68 +0,0 @@ -//======================================================================== -// GLFW 3.2 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWbool _glfwInitThreadLocalStoragePOSIX(void) -{ - if (pthread_key_create(&_glfw.posix_tls.context, NULL) != 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "POSIX: Failed to create context TLS"); - return GLFW_FALSE; - } - - _glfw.posix_tls.allocated = GLFW_TRUE; - return GLFW_TRUE; -} - -void _glfwTerminateThreadLocalStoragePOSIX(void) -{ - if (_glfw.posix_tls.allocated) - pthread_key_delete(_glfw.posix_tls.context); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformSetCurrentContext(_GLFWwindow* context) -{ - pthread_setspecific(_glfw.posix_tls.context, context); -} - -_GLFWwindow* _glfwPlatformGetCurrentContext(void) -{ - return pthread_getspecific(_glfw.posix_tls.context); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.h deleted file mode 100644 index 0d408ae..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/posix_tls.h +++ /dev/null @@ -1,49 +0,0 @@ -//======================================================================== -// GLFW 3.2 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_posix_tls_h_ -#define _glfw3_posix_tls_h_ - -#include - -#define _GLFW_PLATFORM_LIBRARY_TLS_STATE _GLFWtlsPOSIX posix_tls - - -// POSIX-specific global TLS data -// -typedef struct _GLFWtlsPOSIX -{ - GLFWbool allocated; - pthread_key_t context; - -} _GLFWtlsPOSIX; - - -GLFWbool _glfwInitThreadLocalStoragePOSIX(void); -void _glfwTerminateThreadLocalStoragePOSIX(void); - -#endif // _glfw3_posix_tls_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/vulkan.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/vulkan.c deleted file mode 100644 index 20011de..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/vulkan.c +++ /dev/null @@ -1,302 +0,0 @@ -//======================================================================== -// GLFW 3.2 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWbool _glfwInitVulkan(void) -{ - VkResult err; - VkExtensionProperties* ep; - uint32_t i, count; - -#if !defined(_GLFW_VULKAN_STATIC) -#if defined(_GLFW_WIN32) - const char* name = "vulkan-1.dll"; -#else - const char* name = "libvulkan.so.1"; -#endif - - if (_glfw.vk.available) - return GLFW_TRUE; - - _glfw.vk.handle = _glfw_dlopen(name); - if (!_glfw.vk.handle) - return GLFW_FALSE; - - _glfw.vk.GetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) - _glfw_dlsym(_glfw.vk.handle, "vkGetInstanceProcAddr"); - if (!_glfw.vk.GetInstanceProcAddr) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Loader does not export vkGetInstanceProcAddr"); - - _glfwTerminateVulkan(); - return GLFW_FALSE; - } - - _glfw.vk.EnumerateInstanceExtensionProperties = (PFN_vkEnumerateInstanceExtensionProperties) - vkGetInstanceProcAddr(NULL, "vkEnumerateInstanceExtensionProperties"); - if (!_glfw.vk.EnumerateInstanceExtensionProperties) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Failed to retrieve vkEnumerateInstanceExtensionProperties"); - - _glfwTerminateVulkan(); - return GLFW_FALSE; - } -#endif // _GLFW_VULKAN_STATIC - - err = vkEnumerateInstanceExtensionProperties(NULL, &count, NULL); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Vulkan: Failed to query instance extension count: %s", - _glfwGetVulkanResultString(err)); - - _glfwTerminateVulkan(); - return GLFW_FALSE; - } - - ep = calloc(count, sizeof(VkExtensionProperties)); - - err = vkEnumerateInstanceExtensionProperties(NULL, &count, ep); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Vulkan: Failed to query instance extensions: %s", - _glfwGetVulkanResultString(err)); - - free(ep); - _glfwTerminateVulkan(); - return GLFW_FALSE; - } - - for (i = 0; i < count; i++) - { - if (strcmp(ep[i].extensionName, "VK_KHR_surface") == 0) - _glfw.vk.KHR_surface = GLFW_TRUE; - if (strcmp(ep[i].extensionName, "VK_KHR_win32_surface") == 0) - _glfw.vk.KHR_win32_surface = GLFW_TRUE; - if (strcmp(ep[i].extensionName, "VK_KHR_xlib_surface") == 0) - _glfw.vk.KHR_xlib_surface = GLFW_TRUE; - if (strcmp(ep[i].extensionName, "VK_KHR_xcb_surface") == 0) - _glfw.vk.KHR_xcb_surface = GLFW_TRUE; - if (strcmp(ep[i].extensionName, "VK_KHR_wayland_surface") == 0) - _glfw.vk.KHR_wayland_surface = GLFW_TRUE; - if (strcmp(ep[i].extensionName, "VK_KHR_mir_surface") == 0) - _glfw.vk.KHR_mir_surface = GLFW_TRUE; - } - - free(ep); - - _glfw.vk.available = GLFW_TRUE; - - if (_glfw.vk.KHR_surface) - { - _glfw.vk.extensions = - _glfwPlatformGetRequiredInstanceExtensions(&_glfw.vk.extensionCount); - } - - return GLFW_TRUE; -} - -void _glfwTerminateVulkan(void) -{ - uint32_t i; - - for (i = 0; i < _glfw.vk.extensionCount; i++) - free(_glfw.vk.extensions[i]); - free(_glfw.vk.extensions); - - if (_glfw.vk.handle) - _glfw_dlclose(_glfw.vk.handle); -} - -const char* _glfwGetVulkanResultString(VkResult result) -{ - switch (result) - { - case VK_SUCCESS: - return "Success"; - case VK_NOT_READY: - return "A fence or query has not yet completed"; - case VK_TIMEOUT: - return "A wait operation has not completed in the specified time"; - case VK_EVENT_SET: - return "An event is signaled"; - case VK_EVENT_RESET: - return "An event is unsignaled"; - case VK_INCOMPLETE: - return "A return array was too small for the result"; - case VK_ERROR_OUT_OF_HOST_MEMORY: - return "A host memory allocation has failed"; - case VK_ERROR_OUT_OF_DEVICE_MEMORY: - return "A device memory allocation has failed"; - case VK_ERROR_INITIALIZATION_FAILED: - return "Initialization of an object could not be completed for implementation-specific reasons"; - case VK_ERROR_DEVICE_LOST: - return "The logical or physical device has been lost"; - case VK_ERROR_MEMORY_MAP_FAILED: - return "Mapping of a memory object has failed"; - case VK_ERROR_LAYER_NOT_PRESENT: - return "A requested layer is not present or could not be loaded"; - case VK_ERROR_EXTENSION_NOT_PRESENT: - return "A requested extension is not supported"; - case VK_ERROR_FEATURE_NOT_PRESENT: - return "A requested feature is not supported"; - case VK_ERROR_INCOMPATIBLE_DRIVER: - return "The requested version of Vulkan is not supported by the driver or is otherwise incompatible"; - case VK_ERROR_TOO_MANY_OBJECTS: - return "Too many objects of the type have already been created"; - case VK_ERROR_FORMAT_NOT_SUPPORTED: - return "A requested format is not supported on this device"; - case VK_ERROR_SURFACE_LOST_KHR: - return "A surface is no longer available"; - case VK_SUBOPTIMAL_KHR: - return "A swapchain no longer matches the surface properties exactly, but can still be used"; - case VK_ERROR_OUT_OF_DATE_KHR: - return "A surface has changed in such a way that it is no longer compatible with the swapchain"; - case VK_ERROR_INCOMPATIBLE_DISPLAY_KHR: - return "The display used by a swapchain does not use the same presentable image layout"; - case VK_ERROR_NATIVE_WINDOW_IN_USE_KHR: - return "The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API"; - case VK_ERROR_VALIDATION_FAILED_EXT: - return "A validation layer found an error"; - default: - return "ERROR: UNKNOWN VULKAN ERROR"; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwVulkanSupported(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); - return _glfwInitVulkan(); -} - -GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count) -{ - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!_glfwInitVulkan()) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: API not available"); - return NULL; - } - - *count = _glfw.vk.extensionCount; - return (const char**) _glfw.vk.extensions; -} - -GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, - const char* procname) -{ - GLFWvkproc proc; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!_glfwInitVulkan()) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: API not available"); - return NULL; - } - - proc = (GLFWvkproc) vkGetInstanceProcAddr(instance, procname); - if (!proc) - proc = (GLFWvkproc) _glfw_dlsym(_glfw.vk.handle, procname); - - return proc; -} - -GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); - - if (!_glfwInitVulkan()) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: API not available"); - return GLFW_FALSE; - } - - if (!_glfw.vk.extensions) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Window surface creation extensions not found"); - return GLFW_FALSE; - } - - return _glfwPlatformGetPhysicalDevicePresentationSupport(instance, - device, - queuefamily); -} - -GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, - GLFWwindow* handle, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - assert(surface != NULL); - - *surface = VK_NULL_HANDLE; - - _GLFW_REQUIRE_INIT_OR_RETURN(VK_ERROR_INITIALIZATION_FAILED); - - if (!_glfwInitVulkan()) - { - _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: API not available"); - return VK_ERROR_INITIALIZATION_FAILED; - } - - if (!_glfw.vk.extensions) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Window surface creation extensions not found"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - return _glfwPlatformCreateWindowSurface(instance, window, allocator, surface); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wgl_context.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wgl_context.c deleted file mode 100644 index 696c4cb..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wgl_context.c +++ /dev/null @@ -1,718 +0,0 @@ -//======================================================================== -// GLFW 3.2 WGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -// Returns the specified attribute of the specified pixel format -// -static int getPixelFormatAttrib(_GLFWwindow* window, int pixelFormat, int attrib) -{ - int value = 0; - - assert(_glfw.wgl.ARB_pixel_format); - - if (!_glfw.wgl.GetPixelFormatAttribivARB(window->context.wgl.dc, - pixelFormat, - 0, 1, &attrib, &value)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve pixel format attribute %i", - attrib); - return 0; - } - - return value; -} - -// Return a list of available and usable framebuffer configs -// -static int choosePixelFormat(_GLFWwindow* window, const _GLFWfbconfig* desired) -{ - _GLFWfbconfig* usableConfigs; - const _GLFWfbconfig* closest; - int i, pixelFormat, nativeCount, usableCount; - - if (_glfw.wgl.ARB_pixel_format) - { - nativeCount = getPixelFormatAttrib(window, - 1, - WGL_NUMBER_PIXEL_FORMATS_ARB); - } - else - { - nativeCount = DescribePixelFormat(window->context.wgl.dc, - 1, - sizeof(PIXELFORMATDESCRIPTOR), - NULL); - } - - usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); - usableCount = 0; - - for (i = 0; i < nativeCount; i++) - { - const int n = i + 1; - _GLFWfbconfig* u = usableConfigs + usableCount; - - if (_glfw.wgl.ARB_pixel_format) - { - // Get pixel format attributes through "modern" extension - - if (!getPixelFormatAttrib(window, n, WGL_SUPPORT_OPENGL_ARB) || - !getPixelFormatAttrib(window, n, WGL_DRAW_TO_WINDOW_ARB)) - { - continue; - } - - if (getPixelFormatAttrib(window, n, WGL_PIXEL_TYPE_ARB) != - WGL_TYPE_RGBA_ARB) - { - continue; - } - - if (getPixelFormatAttrib(window, n, WGL_ACCELERATION_ARB) == - WGL_NO_ACCELERATION_ARB) - { - continue; - } - - u->redBits = getPixelFormatAttrib(window, n, WGL_RED_BITS_ARB); - u->greenBits = getPixelFormatAttrib(window, n, WGL_GREEN_BITS_ARB); - u->blueBits = getPixelFormatAttrib(window, n, WGL_BLUE_BITS_ARB); - u->alphaBits = getPixelFormatAttrib(window, n, WGL_ALPHA_BITS_ARB); - - u->depthBits = getPixelFormatAttrib(window, n, WGL_DEPTH_BITS_ARB); - u->stencilBits = getPixelFormatAttrib(window, n, WGL_STENCIL_BITS_ARB); - - u->accumRedBits = getPixelFormatAttrib(window, n, WGL_ACCUM_RED_BITS_ARB); - u->accumGreenBits = getPixelFormatAttrib(window, n, WGL_ACCUM_GREEN_BITS_ARB); - u->accumBlueBits = getPixelFormatAttrib(window, n, WGL_ACCUM_BLUE_BITS_ARB); - u->accumAlphaBits = getPixelFormatAttrib(window, n, WGL_ACCUM_ALPHA_BITS_ARB); - - u->auxBuffers = getPixelFormatAttrib(window, n, WGL_AUX_BUFFERS_ARB); - - if (getPixelFormatAttrib(window, n, WGL_STEREO_ARB)) - u->stereo = GLFW_TRUE; - if (getPixelFormatAttrib(window, n, WGL_DOUBLE_BUFFER_ARB)) - u->doublebuffer = GLFW_TRUE; - - if (_glfw.wgl.ARB_multisample) - u->samples = getPixelFormatAttrib(window, n, WGL_SAMPLES_ARB); - - if (_glfw.wgl.ARB_framebuffer_sRGB || - _glfw.wgl.EXT_framebuffer_sRGB) - { - if (getPixelFormatAttrib(window, n, WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB)) - u->sRGB = GLFW_TRUE; - } - } - else - { - PIXELFORMATDESCRIPTOR pfd; - - // Get pixel format attributes through legacy PFDs - - if (!DescribePixelFormat(window->context.wgl.dc, - n, - sizeof(PIXELFORMATDESCRIPTOR), - &pfd)) - { - continue; - } - - if (!(pfd.dwFlags & PFD_DRAW_TO_WINDOW) || - !(pfd.dwFlags & PFD_SUPPORT_OPENGL)) - { - continue; - } - - if (!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && - (pfd.dwFlags & PFD_GENERIC_FORMAT)) - { - continue; - } - - if (pfd.iPixelType != PFD_TYPE_RGBA) - continue; - - u->redBits = pfd.cRedBits; - u->greenBits = pfd.cGreenBits; - u->blueBits = pfd.cBlueBits; - u->alphaBits = pfd.cAlphaBits; - - u->depthBits = pfd.cDepthBits; - u->stencilBits = pfd.cStencilBits; - - u->accumRedBits = pfd.cAccumRedBits; - u->accumGreenBits = pfd.cAccumGreenBits; - u->accumBlueBits = pfd.cAccumBlueBits; - u->accumAlphaBits = pfd.cAccumAlphaBits; - - u->auxBuffers = pfd.cAuxBuffers; - - if (pfd.dwFlags & PFD_STEREO) - u->stereo = GLFW_TRUE; - if (pfd.dwFlags & PFD_DOUBLEBUFFER) - u->doublebuffer = GLFW_TRUE; - } - - u->handle = n; - usableCount++; - } - - if (!usableCount) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "WGL: The driver does not appear to support OpenGL"); - - free(usableConfigs); - return 0; - } - - closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); - if (!closest) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "WGL: Failed to find a suitable pixel format"); - - free(usableConfigs); - return 0; - } - - pixelFormat = (int) closest->handle; - free(usableConfigs); - - return pixelFormat; -} - -// Returns whether desktop compositing is enabled -// -static GLFWbool isCompositionEnabled(void) -{ - BOOL enabled; - - if (!_glfw_DwmIsCompositionEnabled) - return FALSE; - - if (_glfw_DwmIsCompositionEnabled(&enabled) != S_OK) - return FALSE; - - return enabled; -} - -static void makeContextCurrentWGL(_GLFWwindow* window) -{ - if (window) - { - if (wglMakeCurrent(window->context.wgl.dc, window->context.wgl.handle)) - _glfwPlatformSetCurrentContext(window); - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to make context current"); - _glfwPlatformSetCurrentContext(NULL); - } - } - else - { - if (!wglMakeCurrent(NULL, NULL)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to clear current context"); - } - - _glfwPlatformSetCurrentContext(NULL); - } -} - -static void swapBuffersWGL(_GLFWwindow* window) -{ - // HACK: Use DwmFlush when desktop composition is enabled - if (isCompositionEnabled() && !window->monitor) - { - int count = abs(window->context.wgl.interval); - while (count--) - _glfw_DwmFlush(); - } - - SwapBuffers(window->context.wgl.dc); -} - -static void swapIntervalWGL(int interval) -{ - _GLFWwindow* window = _glfwPlatformGetCurrentContext(); - - window->context.wgl.interval = interval; - - // HACK: Disable WGL swap interval when desktop composition is enabled to - // avoid interfering with DWM vsync - if (isCompositionEnabled() && !window->monitor) - interval = 0; - - if (_glfw.wgl.EXT_swap_control) - _glfw.wgl.SwapIntervalEXT(interval); -} - -static int extensionSupportedWGL(const char* extension) -{ - const char* extensions; - - if (_glfw.wgl.GetExtensionsStringEXT) - { - extensions = _glfw.wgl.GetExtensionsStringEXT(); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GLFW_TRUE; - } - } - - if (_glfw.wgl.GetExtensionsStringARB) - { - extensions = _glfw.wgl.GetExtensionsStringARB(wglGetCurrentDC()); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GLFW_TRUE; - } - } - - return GLFW_FALSE; -} - -static GLFWglproc getProcAddressWGL(const char* procname) -{ - const GLFWglproc proc = (GLFWglproc) wglGetProcAddress(procname); - if (proc) - return proc; - - return (GLFWglproc) GetProcAddress(_glfw.wgl.instance, procname); -} - -// Destroy the OpenGL context -// -static void destroyContextWGL(_GLFWwindow* window) -{ - if (window->context.wgl.handle) - { - wglDeleteContext(window->context.wgl.handle); - window->context.wgl.handle = NULL; - } -} - -// Initialize WGL-specific extensions -// -static void loadWGLExtensions(void) -{ - PIXELFORMATDESCRIPTOR pfd; - HGLRC rc; - HDC dc = GetDC(_glfw.win32.helperWindowHandle);; - - _glfw.wgl.extensionsLoaded = GLFW_TRUE; - - // NOTE: A dummy context has to be created for opengl32.dll to load the - // OpenGL ICD, from which we can then query WGL extensions - // NOTE: This code will accept the Microsoft GDI ICD; accelerated context - // creation failure occurs during manual pixel format enumeration - - ZeroMemory(&pfd, sizeof(pfd)); - pfd.nSize = sizeof(pfd); - pfd.nVersion = 1; - pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; - pfd.iPixelType = PFD_TYPE_RGBA; - pfd.cColorBits = 24; - - if (!SetPixelFormat(dc, ChoosePixelFormat(dc, &pfd), &pfd)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to set pixel format for dummy context"); - return; - } - - rc = wglCreateContext(dc); - if (!rc) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to create dummy context"); - return; - } - - if (!wglMakeCurrent(dc, rc)) - { - wglDeleteContext(rc); - - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to make dummy context current"); - return; - } - - // NOTE: Functions must be loaded first as they're needed to retrieve the - // extension string that tells us whether the functions are supported - _glfw.wgl.GetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC) - wglGetProcAddress("wglGetExtensionsStringEXT"); - _glfw.wgl.GetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC) - wglGetProcAddress("wglGetExtensionsStringARB"); - _glfw.wgl.CreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC) - wglGetProcAddress("wglCreateContextAttribsARB"); - _glfw.wgl.SwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) - wglGetProcAddress("wglSwapIntervalEXT"); - _glfw.wgl.GetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC) - wglGetProcAddress("wglGetPixelFormatAttribivARB"); - - // NOTE: WGL_ARB_extensions_string and WGL_EXT_extensions_string are not - // checked below as we are already using them - _glfw.wgl.ARB_multisample = - extensionSupportedWGL("WGL_ARB_multisample"); - _glfw.wgl.ARB_framebuffer_sRGB = - extensionSupportedWGL("WGL_ARB_framebuffer_sRGB"); - _glfw.wgl.EXT_framebuffer_sRGB = - extensionSupportedWGL("WGL_EXT_framebuffer_sRGB"); - _glfw.wgl.ARB_create_context = - extensionSupportedWGL("WGL_ARB_create_context"); - _glfw.wgl.ARB_create_context_profile = - extensionSupportedWGL("WGL_ARB_create_context_profile"); - _glfw.wgl.EXT_create_context_es2_profile = - extensionSupportedWGL("WGL_EXT_create_context_es2_profile"); - _glfw.wgl.ARB_create_context_robustness = - extensionSupportedWGL("WGL_ARB_create_context_robustness"); - _glfw.wgl.EXT_swap_control = - extensionSupportedWGL("WGL_EXT_swap_control"); - _glfw.wgl.ARB_pixel_format = - extensionSupportedWGL("WGL_ARB_pixel_format"); - _glfw.wgl.ARB_context_flush_control = - extensionSupportedWGL("WGL_ARB_context_flush_control"); - - wglMakeCurrent(dc, NULL); - wglDeleteContext(rc); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize WGL -// -GLFWbool _glfwInitWGL(void) -{ - if (_glfw.wgl.instance) - return GLFW_TRUE; - - _glfw.wgl.instance = LoadLibraryA("opengl32.dll"); - if (!_glfw.wgl.instance) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "WGL: Failed to load opengl32.dll"); - return GLFW_FALSE; - } - - _glfw.wgl.CreateContext = (WGLCREATECONTEXT_T) - GetProcAddress(_glfw.wgl.instance, "wglCreateContext"); - _glfw.wgl.DeleteContext = (WGLDELETECONTEXT_T) - GetProcAddress(_glfw.wgl.instance, "wglDeleteContext"); - _glfw.wgl.GetProcAddress = (WGLGETPROCADDRESS_T) - GetProcAddress(_glfw.wgl.instance, "wglGetProcAddress"); - _glfw.wgl.GetCurrentDC = (WGLGETCURRENTDC_T) - GetProcAddress(_glfw.wgl.instance, "wglGetCurrentDC"); - _glfw.wgl.MakeCurrent = (WGLMAKECURRENT_T) - GetProcAddress(_glfw.wgl.instance, "wglMakeCurrent"); - _glfw.wgl.ShareLists = (WGLSHARELISTS_T) - GetProcAddress(_glfw.wgl.instance, "wglShareLists"); - - return GLFW_TRUE; -} - -// Terminate WGL -// -void _glfwTerminateWGL(void) -{ - if (_glfw.wgl.instance) - FreeLibrary(_glfw.wgl.instance); -} - -#define setWGLattrib(attribName, attribValue) \ -{ \ - attribs[index++] = attribName; \ - attribs[index++] = attribValue; \ - assert((size_t) index < sizeof(attribs) / sizeof(attribs[0])); \ -} - -// Create the OpenGL or OpenGL ES context -// -GLFWbool _glfwCreateContextWGL(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - int attribs[40]; - int pixelFormat; - PIXELFORMATDESCRIPTOR pfd; - HGLRC share = NULL; - - if (!_glfw.wgl.extensionsLoaded) - loadWGLExtensions(); - - if (ctxconfig->share) - share = ctxconfig->share->context.wgl.handle; - - window->context.wgl.dc = GetDC(window->win32.handle); - if (!window->context.wgl.dc) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve DC for window"); - return GLFW_FALSE; - } - - pixelFormat = choosePixelFormat(window, fbconfig); - if (!pixelFormat) - return GLFW_FALSE; - - if (!DescribePixelFormat(window->context.wgl.dc, - pixelFormat, sizeof(pfd), &pfd)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve PFD for selected pixel format"); - return GLFW_FALSE; - } - - if (!SetPixelFormat(window->context.wgl.dc, pixelFormat, &pfd)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to set selected pixel format"); - return GLFW_FALSE; - } - - if (ctxconfig->client == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - { - if (!_glfw.wgl.ARB_create_context) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: A forward compatible OpenGL context requested but WGL_ARB_create_context is unavailable"); - return GLFW_FALSE; - } - } - - if (ctxconfig->profile) - { - if (!_glfw.wgl.ARB_create_context_profile) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: OpenGL profile requested but WGL_ARB_create_context_profile is unavailable"); - return GLFW_FALSE; - } - } - } - else - { - if (!_glfw.wgl.ARB_create_context || - !_glfw.wgl.ARB_create_context_profile || - !_glfw.wgl.EXT_create_context_es2_profile) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "WGL: OpenGL ES requested but WGL_ARB_create_context_es2_profile is unavailable"); - return GLFW_FALSE; - } - } - - if (_glfw.wgl.ARB_create_context) - { - int index = 0, mask = 0, flags = 0; - - if (ctxconfig->client == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - flags |= WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; - - if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) - mask |= WGL_CONTEXT_CORE_PROFILE_BIT_ARB; - else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) - mask |= WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; - } - else - mask |= WGL_CONTEXT_ES2_PROFILE_BIT_EXT; - - if (ctxconfig->debug) - flags |= WGL_CONTEXT_DEBUG_BIT_ARB; - if (ctxconfig->noerror) - flags |= GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR; - - if (ctxconfig->robustness) - { - if (_glfw.wgl.ARB_create_context_robustness) - { - if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) - { - setWGLattrib(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - WGL_NO_RESET_NOTIFICATION_ARB); - } - else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) - { - setWGLattrib(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - WGL_LOSE_CONTEXT_ON_RESET_ARB); - } - - flags |= WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB; - } - } - - if (ctxconfig->release) - { - if (_glfw.wgl.ARB_context_flush_control) - { - if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) - { - setWGLattrib(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, - WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB); - } - else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) - { - setWGLattrib(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, - WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB); - } - } - } - - // NOTE: Only request an explicitly versioned context when necessary, as - // explicitly requesting version 1.0 does not always return the - // highest version supported by the driver - if (ctxconfig->major != 1 || ctxconfig->minor != 0) - { - setWGLattrib(WGL_CONTEXT_MAJOR_VERSION_ARB, ctxconfig->major); - setWGLattrib(WGL_CONTEXT_MINOR_VERSION_ARB, ctxconfig->minor); - } - - if (flags) - setWGLattrib(WGL_CONTEXT_FLAGS_ARB, flags); - - if (mask) - setWGLattrib(WGL_CONTEXT_PROFILE_MASK_ARB, mask); - - setWGLattrib(0, 0); - - window->context.wgl.handle = - _glfw.wgl.CreateContextAttribsARB(window->context.wgl.dc, - share, attribs); - if (!window->context.wgl.handle) - { - const DWORD error = GetLastError(); - - if (error == (0xc0070000 | ERROR_INVALID_VERSION_ARB)) - { - if (ctxconfig->client == GLFW_OPENGL_API) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Driver does not support OpenGL version %i.%i", - ctxconfig->major, - ctxconfig->minor); - } - else - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Driver does not support OpenGL ES version %i.%i", - ctxconfig->major, - ctxconfig->minor); - } - } - else if (error == (0xc0070000 | ERROR_INVALID_PROFILE_ARB)) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Driver does not support the requested OpenGL profile"); - } - else - { - if (ctxconfig->client == GLFW_OPENGL_API) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Failed to create OpenGL context"); - } - else - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Failed to create OpenGL ES context"); - } - } - - return GLFW_FALSE; - } - } - else - { - window->context.wgl.handle = wglCreateContext(window->context.wgl.dc); - if (!window->context.wgl.handle) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Failed to create OpenGL context"); - return GLFW_FALSE; - } - - if (share) - { - if (!wglShareLists(share, window->context.wgl.handle)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to enable sharing with specified OpenGL context"); - return GLFW_FALSE; - } - } - } - - window->context.makeCurrent = makeContextCurrentWGL; - window->context.swapBuffers = swapBuffersWGL; - window->context.swapInterval = swapIntervalWGL; - window->context.extensionSupported = extensionSupportedWGL; - window->context.getProcAddress = getProcAddressWGL; - window->context.destroy = destroyContextWGL; - - return GLFW_TRUE; -} - -#undef setWGLattrib - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return NULL; - } - - return window->context.wgl.handle; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wgl_context.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wgl_context.h deleted file mode 100644 index b837d43..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wgl_context.h +++ /dev/null @@ -1,157 +0,0 @@ -//======================================================================== -// GLFW 3.2 WGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_wgl_context_h_ -#define _glfw3_wgl_context_h_ - - -#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 -#define WGL_SUPPORT_OPENGL_ARB 0x2010 -#define WGL_DRAW_TO_WINDOW_ARB 0x2001 -#define WGL_PIXEL_TYPE_ARB 0x2013 -#define WGL_TYPE_RGBA_ARB 0x202b -#define WGL_ACCELERATION_ARB 0x2003 -#define WGL_NO_ACCELERATION_ARB 0x2025 -#define WGL_RED_BITS_ARB 0x2015 -#define WGL_RED_SHIFT_ARB 0x2016 -#define WGL_GREEN_BITS_ARB 0x2017 -#define WGL_GREEN_SHIFT_ARB 0x2018 -#define WGL_BLUE_BITS_ARB 0x2019 -#define WGL_BLUE_SHIFT_ARB 0x201a -#define WGL_ALPHA_BITS_ARB 0x201b -#define WGL_ALPHA_SHIFT_ARB 0x201c -#define WGL_ACCUM_BITS_ARB 0x201d -#define WGL_ACCUM_RED_BITS_ARB 0x201e -#define WGL_ACCUM_GREEN_BITS_ARB 0x201f -#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 -#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 -#define WGL_DEPTH_BITS_ARB 0x2022 -#define WGL_STENCIL_BITS_ARB 0x2023 -#define WGL_AUX_BUFFERS_ARB 0x2024 -#define WGL_STEREO_ARB 0x2012 -#define WGL_DOUBLE_BUFFER_ARB 0x2011 -#define WGL_SAMPLES_ARB 0x2042 -#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20a9 -#define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 -#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 -#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 -#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 -#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define WGL_CONTEXT_FLAGS_ARB 0x2094 -#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 -#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 - -#define ERROR_INVALID_VERSION_ARB 0x2095 -#define ERROR_INVALID_PROFILE_ARB 0x2096 - -typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC)(int); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC)(HDC,int,int,UINT,const int*,int*); -typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC)(void); -typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC); -typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC,HGLRC,const int*); - -typedef HGLRC (WINAPI * WGLCREATECONTEXT_T)(HDC); -typedef BOOL (WINAPI * WGLDELETECONTEXT_T)(HGLRC); -typedef PROC (WINAPI * WGLGETPROCADDRESS_T)(LPCSTR); -typedef HDC (WINAPI * WGLGETCURRENTDC_T)(void); -typedef BOOL (WINAPI * WGLMAKECURRENT_T)(HDC,HGLRC); -typedef BOOL (WINAPI * WGLSHARELISTS_T)(HGLRC,HGLRC); - -// opengl32.dll function pointer typedefs -#define wglCreateContext _glfw.wgl.CreateContext -#define wglDeleteContext _glfw.wgl.DeleteContext -#define wglGetProcAddress _glfw.wgl.GetProcAddress -#define wglGetCurrentDC _glfw.wgl.GetCurrentDC -#define wglMakeCurrent _glfw.wgl.MakeCurrent -#define wglShareLists _glfw.wgl.ShareLists - -#define _GLFW_RECREATION_NOT_NEEDED 0 -#define _GLFW_RECREATION_REQUIRED 1 -#define _GLFW_RECREATION_IMPOSSIBLE 2 - -#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextWGL wgl -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryWGL wgl - - -// WGL-specific per-context data -// -typedef struct _GLFWcontextWGL -{ - HDC dc; - HGLRC handle; - int interval; - -} _GLFWcontextWGL; - -// WGL-specific global data -// -typedef struct _GLFWlibraryWGL -{ - HINSTANCE instance; - WGLCREATECONTEXT_T CreateContext; - WGLDELETECONTEXT_T DeleteContext; - WGLGETPROCADDRESS_T GetProcAddress; - WGLGETCURRENTDC_T GetCurrentDC; - WGLMAKECURRENT_T MakeCurrent; - WGLSHARELISTS_T ShareLists; - - GLFWbool extensionsLoaded; - - PFNWGLSWAPINTERVALEXTPROC SwapIntervalEXT; - PFNWGLGETPIXELFORMATATTRIBIVARBPROC GetPixelFormatAttribivARB; - PFNWGLGETEXTENSIONSSTRINGEXTPROC GetExtensionsStringEXT; - PFNWGLGETEXTENSIONSSTRINGARBPROC GetExtensionsStringARB; - PFNWGLCREATECONTEXTATTRIBSARBPROC CreateContextAttribsARB; - GLFWbool EXT_swap_control; - GLFWbool ARB_multisample; - GLFWbool ARB_framebuffer_sRGB; - GLFWbool EXT_framebuffer_sRGB; - GLFWbool ARB_pixel_format; - GLFWbool ARB_create_context; - GLFWbool ARB_create_context_profile; - GLFWbool EXT_create_context_es2_profile; - GLFWbool ARB_create_context_robustness; - GLFWbool ARB_context_flush_control; - -} _GLFWlibraryWGL; - - -GLFWbool _glfwInitWGL(void); -void _glfwTerminateWGL(void); -GLFWbool _glfwCreateContextWGL(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); - -#endif // _glfw3_wgl_context_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_init.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_init.c deleted file mode 100644 index b2a0a67..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_init.c +++ /dev/null @@ -1,473 +0,0 @@ -//======================================================================== -// GLFW 3.2 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - -#include -DEFINE_GUID(GUID_DEVINTERFACE_HID,0x4d1e55b2,0xf16f,0x11cf,0x88,0xcb,0x00,0x11,0x11,0x00,0x00,0x30); - -#if defined(_GLFW_USE_HYBRID_HPG) || defined(_GLFW_USE_OPTIMUS_HPG) - -// Applications exporting this symbol with this value will be automatically -// directed to the high-performance GPU on Nvidia Optimus systems with -// up-to-date drivers -// -__declspec(dllexport) DWORD NvOptimusEnablement = 1; - -// Applications exporting this symbol with this value will be automatically -// directed to the high-performance GPU on AMD PowerXpress systems with -// up-to-date drivers -// -__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; - -#endif // _GLFW_USE_HYBRID_HPG - -#if defined(_GLFW_BUILD_DLL) - -// GLFW DLL entry point -// -BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) -{ - return TRUE; -} - -#endif // _GLFW_BUILD_DLL - -// Load necessary libraries (DLLs) -// -static GLFWbool loadLibraries(void) -{ - _glfw.win32.winmm.instance = LoadLibraryA("winmm.dll"); - if (!_glfw.win32.winmm.instance) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to load winmm.dll"); - return GLFW_FALSE; - } - - _glfw.win32.winmm.timeGetTime = (TIMEGETTIME_T) - GetProcAddress(_glfw.win32.winmm.instance, "timeGetTime"); - - _glfw.win32.user32.instance = LoadLibraryA("user32.dll"); - if (!_glfw.win32.user32.instance) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to load user32.dll"); - return GLFW_FALSE; - } - - _glfw.win32.user32.SetProcessDPIAware = (SETPROCESSDPIAWARE_T) - GetProcAddress(_glfw.win32.user32.instance, "SetProcessDPIAware"); - _glfw.win32.user32.ChangeWindowMessageFilterEx = (CHANGEWINDOWMESSAGEFILTEREX_T) - GetProcAddress(_glfw.win32.user32.instance, "ChangeWindowMessageFilterEx"); - - _glfw.win32.dinput8.instance = LoadLibraryA("dinput8.dll"); - if (_glfw.win32.dinput8.instance) - { - _glfw.win32.dinput8.DirectInput8Create = (DIRECTINPUT8CREATE_T) - GetProcAddress(_glfw.win32.dinput8.instance, "DirectInput8Create"); - } - - { - int i; - const char* names[] = - { - "xinput1_4.dll", - "xinput1_3.dll", - "xinput9_1_0.dll", - "xinput1_2.dll", - "xinput1_1.dll", - NULL - }; - - for (i = 0; names[i]; i++) - { - _glfw.win32.xinput.instance = LoadLibraryA(names[i]); - if (_glfw.win32.xinput.instance) - { - _glfw.win32.xinput.XInputGetCapabilities = (XINPUTGETCAPABILITIES_T) - GetProcAddress(_glfw.win32.xinput.instance, "XInputGetCapabilities"); - _glfw.win32.xinput.XInputGetState = (XINPUTGETSTATE_T) - GetProcAddress(_glfw.win32.xinput.instance, "XInputGetState"); - - break; - } - } - } - - _glfw.win32.dwmapi.instance = LoadLibraryA("dwmapi.dll"); - if (_glfw.win32.dwmapi.instance) - { - _glfw.win32.dwmapi.DwmIsCompositionEnabled = (DWMISCOMPOSITIONENABLED_T) - GetProcAddress(_glfw.win32.dwmapi.instance, "DwmIsCompositionEnabled"); - _glfw.win32.dwmapi.DwmFlush = (DWMFLUSH_T) - GetProcAddress(_glfw.win32.dwmapi.instance, "DwmFlush"); - } - - _glfw.win32.shcore.instance = LoadLibraryA("shcore.dll"); - if (_glfw.win32.shcore.instance) - { - _glfw.win32.shcore.SetProcessDpiAwareness = (SETPROCESSDPIAWARENESS_T) - GetProcAddress(_glfw.win32.shcore.instance, "SetProcessDpiAwareness"); - } - - return GLFW_TRUE; -} - -// Unload used libraries (DLLs) -// -static void freeLibraries(void) -{ - if (_glfw.win32.xinput.instance) - FreeLibrary(_glfw.win32.xinput.instance); - - if (_glfw.win32.dinput8.instance) - FreeLibrary(_glfw.win32.dinput8.instance); - - if (_glfw.win32.winmm.instance) - FreeLibrary(_glfw.win32.winmm.instance); - - if (_glfw.win32.user32.instance) - FreeLibrary(_glfw.win32.user32.instance); - - if (_glfw.win32.dwmapi.instance) - FreeLibrary(_glfw.win32.dwmapi.instance); - - if (_glfw.win32.shcore.instance) - FreeLibrary(_glfw.win32.shcore.instance); -} - -// Create key code translation tables -// -static void createKeyTables(void) -{ - int scancode; - - memset(_glfw.win32.publicKeys, -1, sizeof(_glfw.win32.publicKeys)); - memset(_glfw.win32.nativeKeys, -1, sizeof(_glfw.win32.nativeKeys)); - - _glfw.win32.publicKeys[0x00B] = GLFW_KEY_0; - _glfw.win32.publicKeys[0x002] = GLFW_KEY_1; - _glfw.win32.publicKeys[0x003] = GLFW_KEY_2; - _glfw.win32.publicKeys[0x004] = GLFW_KEY_3; - _glfw.win32.publicKeys[0x005] = GLFW_KEY_4; - _glfw.win32.publicKeys[0x006] = GLFW_KEY_5; - _glfw.win32.publicKeys[0x007] = GLFW_KEY_6; - _glfw.win32.publicKeys[0x008] = GLFW_KEY_7; - _glfw.win32.publicKeys[0x009] = GLFW_KEY_8; - _glfw.win32.publicKeys[0x00A] = GLFW_KEY_9; - _glfw.win32.publicKeys[0x01E] = GLFW_KEY_A; - _glfw.win32.publicKeys[0x030] = GLFW_KEY_B; - _glfw.win32.publicKeys[0x02E] = GLFW_KEY_C; - _glfw.win32.publicKeys[0x020] = GLFW_KEY_D; - _glfw.win32.publicKeys[0x012] = GLFW_KEY_E; - _glfw.win32.publicKeys[0x021] = GLFW_KEY_F; - _glfw.win32.publicKeys[0x022] = GLFW_KEY_G; - _glfw.win32.publicKeys[0x023] = GLFW_KEY_H; - _glfw.win32.publicKeys[0x017] = GLFW_KEY_I; - _glfw.win32.publicKeys[0x024] = GLFW_KEY_J; - _glfw.win32.publicKeys[0x025] = GLFW_KEY_K; - _glfw.win32.publicKeys[0x026] = GLFW_KEY_L; - _glfw.win32.publicKeys[0x032] = GLFW_KEY_M; - _glfw.win32.publicKeys[0x031] = GLFW_KEY_N; - _glfw.win32.publicKeys[0x018] = GLFW_KEY_O; - _glfw.win32.publicKeys[0x019] = GLFW_KEY_P; - _glfw.win32.publicKeys[0x010] = GLFW_KEY_Q; - _glfw.win32.publicKeys[0x013] = GLFW_KEY_R; - _glfw.win32.publicKeys[0x01F] = GLFW_KEY_S; - _glfw.win32.publicKeys[0x014] = GLFW_KEY_T; - _glfw.win32.publicKeys[0x016] = GLFW_KEY_U; - _glfw.win32.publicKeys[0x02F] = GLFW_KEY_V; - _glfw.win32.publicKeys[0x011] = GLFW_KEY_W; - _glfw.win32.publicKeys[0x02D] = GLFW_KEY_X; - _glfw.win32.publicKeys[0x015] = GLFW_KEY_Y; - _glfw.win32.publicKeys[0x02C] = GLFW_KEY_Z; - - _glfw.win32.publicKeys[0x028] = GLFW_KEY_APOSTROPHE; - _glfw.win32.publicKeys[0x02B] = GLFW_KEY_BACKSLASH; - _glfw.win32.publicKeys[0x033] = GLFW_KEY_COMMA; - _glfw.win32.publicKeys[0x00D] = GLFW_KEY_EQUAL; - _glfw.win32.publicKeys[0x029] = GLFW_KEY_GRAVE_ACCENT; - _glfw.win32.publicKeys[0x01A] = GLFW_KEY_LEFT_BRACKET; - _glfw.win32.publicKeys[0x00C] = GLFW_KEY_MINUS; - _glfw.win32.publicKeys[0x034] = GLFW_KEY_PERIOD; - _glfw.win32.publicKeys[0x01B] = GLFW_KEY_RIGHT_BRACKET; - _glfw.win32.publicKeys[0x027] = GLFW_KEY_SEMICOLON; - _glfw.win32.publicKeys[0x035] = GLFW_KEY_SLASH; - _glfw.win32.publicKeys[0x056] = GLFW_KEY_WORLD_2; - - _glfw.win32.publicKeys[0x00E] = GLFW_KEY_BACKSPACE; - _glfw.win32.publicKeys[0x153] = GLFW_KEY_DELETE; - _glfw.win32.publicKeys[0x14F] = GLFW_KEY_END; - _glfw.win32.publicKeys[0x01C] = GLFW_KEY_ENTER; - _glfw.win32.publicKeys[0x001] = GLFW_KEY_ESCAPE; - _glfw.win32.publicKeys[0x147] = GLFW_KEY_HOME; - _glfw.win32.publicKeys[0x152] = GLFW_KEY_INSERT; - _glfw.win32.publicKeys[0x15D] = GLFW_KEY_MENU; - _glfw.win32.publicKeys[0x151] = GLFW_KEY_PAGE_DOWN; - _glfw.win32.publicKeys[0x149] = GLFW_KEY_PAGE_UP; - _glfw.win32.publicKeys[0x045] = GLFW_KEY_PAUSE; - _glfw.win32.publicKeys[0x146] = GLFW_KEY_PAUSE; - _glfw.win32.publicKeys[0x039] = GLFW_KEY_SPACE; - _glfw.win32.publicKeys[0x00F] = GLFW_KEY_TAB; - _glfw.win32.publicKeys[0x03A] = GLFW_KEY_CAPS_LOCK; - _glfw.win32.publicKeys[0x145] = GLFW_KEY_NUM_LOCK; - _glfw.win32.publicKeys[0x046] = GLFW_KEY_SCROLL_LOCK; - _glfw.win32.publicKeys[0x03B] = GLFW_KEY_F1; - _glfw.win32.publicKeys[0x03C] = GLFW_KEY_F2; - _glfw.win32.publicKeys[0x03D] = GLFW_KEY_F3; - _glfw.win32.publicKeys[0x03E] = GLFW_KEY_F4; - _glfw.win32.publicKeys[0x03F] = GLFW_KEY_F5; - _glfw.win32.publicKeys[0x040] = GLFW_KEY_F6; - _glfw.win32.publicKeys[0x041] = GLFW_KEY_F7; - _glfw.win32.publicKeys[0x042] = GLFW_KEY_F8; - _glfw.win32.publicKeys[0x043] = GLFW_KEY_F9; - _glfw.win32.publicKeys[0x044] = GLFW_KEY_F10; - _glfw.win32.publicKeys[0x057] = GLFW_KEY_F11; - _glfw.win32.publicKeys[0x058] = GLFW_KEY_F12; - _glfw.win32.publicKeys[0x064] = GLFW_KEY_F13; - _glfw.win32.publicKeys[0x065] = GLFW_KEY_F14; - _glfw.win32.publicKeys[0x066] = GLFW_KEY_F15; - _glfw.win32.publicKeys[0x067] = GLFW_KEY_F16; - _glfw.win32.publicKeys[0x068] = GLFW_KEY_F17; - _glfw.win32.publicKeys[0x069] = GLFW_KEY_F18; - _glfw.win32.publicKeys[0x06A] = GLFW_KEY_F19; - _glfw.win32.publicKeys[0x06B] = GLFW_KEY_F20; - _glfw.win32.publicKeys[0x06C] = GLFW_KEY_F21; - _glfw.win32.publicKeys[0x06D] = GLFW_KEY_F22; - _glfw.win32.publicKeys[0x06E] = GLFW_KEY_F23; - _glfw.win32.publicKeys[0x076] = GLFW_KEY_F24; - _glfw.win32.publicKeys[0x038] = GLFW_KEY_LEFT_ALT; - _glfw.win32.publicKeys[0x01D] = GLFW_KEY_LEFT_CONTROL; - _glfw.win32.publicKeys[0x02A] = GLFW_KEY_LEFT_SHIFT; - _glfw.win32.publicKeys[0x15B] = GLFW_KEY_LEFT_SUPER; - _glfw.win32.publicKeys[0x137] = GLFW_KEY_PRINT_SCREEN; - _glfw.win32.publicKeys[0x138] = GLFW_KEY_RIGHT_ALT; - _glfw.win32.publicKeys[0x11D] = GLFW_KEY_RIGHT_CONTROL; - _glfw.win32.publicKeys[0x036] = GLFW_KEY_RIGHT_SHIFT; - _glfw.win32.publicKeys[0x15C] = GLFW_KEY_RIGHT_SUPER; - _glfw.win32.publicKeys[0x150] = GLFW_KEY_DOWN; - _glfw.win32.publicKeys[0x14B] = GLFW_KEY_LEFT; - _glfw.win32.publicKeys[0x14D] = GLFW_KEY_RIGHT; - _glfw.win32.publicKeys[0x148] = GLFW_KEY_UP; - - _glfw.win32.publicKeys[0x052] = GLFW_KEY_KP_0; - _glfw.win32.publicKeys[0x04F] = GLFW_KEY_KP_1; - _glfw.win32.publicKeys[0x050] = GLFW_KEY_KP_2; - _glfw.win32.publicKeys[0x051] = GLFW_KEY_KP_3; - _glfw.win32.publicKeys[0x04B] = GLFW_KEY_KP_4; - _glfw.win32.publicKeys[0x04C] = GLFW_KEY_KP_5; - _glfw.win32.publicKeys[0x04D] = GLFW_KEY_KP_6; - _glfw.win32.publicKeys[0x047] = GLFW_KEY_KP_7; - _glfw.win32.publicKeys[0x048] = GLFW_KEY_KP_8; - _glfw.win32.publicKeys[0x049] = GLFW_KEY_KP_9; - _glfw.win32.publicKeys[0x04E] = GLFW_KEY_KP_ADD; - _glfw.win32.publicKeys[0x053] = GLFW_KEY_KP_DECIMAL; - _glfw.win32.publicKeys[0x135] = GLFW_KEY_KP_DIVIDE; - _glfw.win32.publicKeys[0x11C] = GLFW_KEY_KP_ENTER; - _glfw.win32.publicKeys[0x037] = GLFW_KEY_KP_MULTIPLY; - _glfw.win32.publicKeys[0x04A] = GLFW_KEY_KP_SUBTRACT; - - for (scancode = 0; scancode < 512; scancode++) - { - if (_glfw.win32.publicKeys[scancode] > 0) - _glfw.win32.nativeKeys[_glfw.win32.publicKeys[scancode]] = scancode; - } -} - -// Creates a dummy window for behind-the-scenes work -// -static HWND createHelperWindow(void) -{ - HWND window = CreateWindowExW(WS_EX_OVERLAPPEDWINDOW, - _GLFW_WNDCLASSNAME, - L"GLFW helper window", - WS_CLIPSIBLINGS | WS_CLIPCHILDREN, - 0, 0, 1, 1, - HWND_MESSAGE, NULL, - GetModuleHandleW(NULL), - NULL); - if (!window) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to create helper window"); - return NULL; - } - - // HACK: The first call to ShowWindow is ignored if the parent process - // passed along a STARTUPINFO, so clear that flag with a no-op call - ShowWindow(window, SW_HIDE); - - // Register for HID device notifications - { - DEV_BROADCAST_DEVICEINTERFACE_W dbi; - ZeroMemory(&dbi, sizeof(dbi)); - dbi.dbcc_size = sizeof(dbi); - dbi.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE; - dbi.dbcc_classguid = GUID_DEVINTERFACE_HID; - - RegisterDeviceNotificationW(window, - (DEV_BROADCAST_HDR*) &dbi, - DEVICE_NOTIFY_WINDOW_HANDLE); - } - - return window; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Returns a wide string version of the specified UTF-8 string -// -WCHAR* _glfwCreateWideStringFromUTF8Win32(const char* source) -{ - WCHAR* target; - int length; - - length = MultiByteToWideChar(CP_UTF8, 0, source, -1, NULL, 0); - if (!length) - return NULL; - - target = calloc(length, sizeof(WCHAR)); - - if (!MultiByteToWideChar(CP_UTF8, 0, source, -1, target, length)) - { - free(target); - return NULL; - } - - return target; -} - -// Returns a UTF-8 string version of the specified wide string -// -char* _glfwCreateUTF8FromWideStringWin32(const WCHAR* source) -{ - char* target; - int length; - - length = WideCharToMultiByte(CP_UTF8, 0, source, -1, NULL, 0, NULL, NULL); - if (!length) - return NULL; - - target = calloc(length, 1); - - if (!WideCharToMultiByte(CP_UTF8, 0, source, -1, target, length, NULL, NULL)) - { - free(target); - return NULL; - } - - return target; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - if (!_glfwInitThreadLocalStorageWin32()) - return GLFW_FALSE; - - // To make SetForegroundWindow work as we want, we need to fiddle - // with the FOREGROUNDLOCKTIMEOUT system setting (we do this as early - // as possible in the hope of still being the foreground process) - SystemParametersInfoW(SPI_GETFOREGROUNDLOCKTIMEOUT, 0, - &_glfw.win32.foregroundLockTimeout, 0); - SystemParametersInfoW(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, UIntToPtr(0), - SPIF_SENDCHANGE); - - if (!loadLibraries()) - return GLFW_FALSE; - - createKeyTables(); - - if (_glfw_SetProcessDpiAwareness) - _glfw_SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE); - else if (_glfw_SetProcessDPIAware) - _glfw_SetProcessDPIAware(); - - if (!_glfwRegisterWindowClassWin32()) - return GLFW_FALSE; - - _glfw.win32.helperWindowHandle = createHelperWindow(); - if (!_glfw.win32.helperWindowHandle) - return GLFW_FALSE; - - _glfwPlatformPollEvents(); - - _glfwInitTimerWin32(); - _glfwInitJoysticksWin32(); - - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - if (_glfw.win32.helperWindowHandle) - DestroyWindow(_glfw.win32.helperWindowHandle); - - _glfwUnregisterWindowClassWin32(); - - // Restore previous foreground lock timeout system setting - SystemParametersInfoW(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, - UIntToPtr(_glfw.win32.foregroundLockTimeout), - SPIF_SENDCHANGE); - - free(_glfw.win32.clipboardString); - - _glfwTerminateWGL(); - _glfwTerminateEGL(); - - _glfwTerminateJoysticksWin32(); - _glfwTerminateThreadLocalStorageWin32(); - - freeLibraries(); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Win32 WGL EGL" -#if defined(__MINGW32__) - " MinGW" -#elif defined(_MSC_VER) - " VisualC" -#endif -#if defined(_GLFW_USE_HYBRID_HPG) || defined(_GLFW_USE_OPTIMUS_HPG) - " hybrid-GPU" -#endif -#if defined(_GLFW_BUILD_DLL) - " DLL" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_joystick.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_joystick.c deleted file mode 100644 index 49f3b87..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_joystick.c +++ /dev/null @@ -1,763 +0,0 @@ -//======================================================================== -// GLFW 3.1 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - -#include - -#define _GLFW_PRESENCE_ONLY 1 -#define _GLFW_UPDATE_STATE 2 - -#define _GLFW_TYPE_AXIS 0 -#define _GLFW_TYPE_SLIDER 1 -#define _GLFW_TYPE_BUTTON 2 -#define _GLFW_TYPE_POV 3 - -// Data produced with DirectInput device object enumeration -// -typedef struct _GLFWobjenumWin32 -{ - IDirectInputDevice8W* device; - _GLFWjoyobjectWin32* objects; - int objectCount; - int axisCount; - int sliderCount; - int buttonCount; - int povCount; -} _GLFWobjenumWin32; - -// Define only the necessary GUIDs (it's bad enough that we're exporting these) -// -DEFINE_GUID(IID_IDirectInput8W,0xbf798031,0x483a,0x4da2,0xaa,0x99,0x5d,0x64,0xed,0x36,0x97,0x00); -DEFINE_GUID(GUID_XAxis,0xa36d02e0,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_YAxis,0xa36d02e1,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_ZAxis,0xa36d02e2,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RxAxis,0xa36d02f4,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RyAxis,0xa36d02f5,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_RzAxis,0xa36d02e3,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Slider,0xa36d02e4,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_Button,0xa36d02f0,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(GUID_POV,0xa36d02f2,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); - -// Object data array for our clone of c_dfDIJoystick -// Generated with https://github.com/elmindreda/c_dfDIJoystick2 -// -static DIOBJECTDATAFORMAT _glfwObjectDataFormats[] = -{ - { &GUID_XAxis,DIJOFS_X,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, - { &GUID_YAxis,DIJOFS_Y,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, - { &GUID_ZAxis,DIJOFS_Z,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, - { &GUID_RxAxis,DIJOFS_RX,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, - { &GUID_RyAxis,DIJOFS_RY,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, - { &GUID_RzAxis,DIJOFS_RZ,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, - { &GUID_Slider,DIJOFS_SLIDER(0),DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, - { &GUID_Slider,DIJOFS_SLIDER(1),DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, - { &GUID_POV,DIJOFS_POV(0),DIDFT_POV|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { &GUID_POV,DIJOFS_POV(1),DIDFT_POV|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { &GUID_POV,DIJOFS_POV(2),DIDFT_POV|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { &GUID_POV,DIJOFS_POV(3),DIDFT_POV|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(0),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(1),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(2),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(3),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(4),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(5),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(6),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(7),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(8),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(9),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(10),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(11),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(12),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(13),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(14),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(15),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(16),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(17),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(18),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(19),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(20),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(21),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(22),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(23),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(24),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(25),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(26),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(27),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(28),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(29),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(30),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, - { NULL,DIJOFS_BUTTON(31),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, -}; - -// Our clone of c_dfDIJoystick -// -static const DIDATAFORMAT _glfwDataFormat = -{ - sizeof(DIDATAFORMAT), - sizeof(DIOBJECTDATAFORMAT), - DIDFT_ABSAXIS, - sizeof(DIJOYSTATE), - sizeof(_glfwObjectDataFormats) / sizeof(DIOBJECTDATAFORMAT), - _glfwObjectDataFormats -}; - -// Returns a description fitting the specified XInput capabilities -// -static const char* getDeviceDescription(const XINPUT_CAPABILITIES* xic) -{ - switch (xic->SubType) - { - case XINPUT_DEVSUBTYPE_WHEEL: - return "XInput Wheel"; - case XINPUT_DEVSUBTYPE_ARCADE_STICK: - return "XInput Arcade Stick"; - case XINPUT_DEVSUBTYPE_FLIGHT_STICK: - return "XInput Flight Stick"; - case XINPUT_DEVSUBTYPE_DANCE_PAD: - return "XInput Dance Pad"; - case XINPUT_DEVSUBTYPE_GUITAR: - return "XInput Guitar"; - case XINPUT_DEVSUBTYPE_DRUM_KIT: - return "XInput Drum Kit"; - case XINPUT_DEVSUBTYPE_GAMEPAD: - { - if (xic->Flags & XINPUT_CAPS_WIRELESS) - return "Wireless Xbox 360 Controller"; - else - return "Xbox 360 Controller"; - } - } - - return "Unknown XInput Device"; -} - -// Lexically compare device objects -// -static int compareJoystickObjects(const void* first, const void* second) -{ - const _GLFWjoyobjectWin32* fo = first; - const _GLFWjoyobjectWin32* so = second; - - if (fo->type != so->type) - return fo->type - so->type; - - return fo->offset - so->offset; -} - -// Checks whether the specified device supports XInput -// Technique from FDInputJoystickManager::IsXInputDeviceFast in ZDoom -// -static GLFWbool supportsXInput(const GUID* guid) -{ - UINT i, count = 0; - RAWINPUTDEVICELIST* ridl; - GLFWbool result = GLFW_FALSE; - - if (GetRawInputDeviceList(NULL, &count, sizeof(RAWINPUTDEVICELIST)) != 0) - return GLFW_FALSE; - - ridl = calloc(count, sizeof(RAWINPUTDEVICELIST)); - - if (GetRawInputDeviceList(ridl, &count, sizeof(RAWINPUTDEVICELIST)) == (UINT) -1) - { - free(ridl); - return GLFW_FALSE; - } - - for (i = 0; i < count; i++) - { - RID_DEVICE_INFO rdi; - char name[256]; - UINT size; - - if (ridl[i].dwType != RIM_TYPEHID) - continue; - - ZeroMemory(&rdi, sizeof(rdi)); - rdi.cbSize = sizeof(rdi); - size = sizeof(rdi); - - if ((INT) GetRawInputDeviceInfoA(ridl[i].hDevice, - RIDI_DEVICEINFO, - &rdi, &size) == -1) - { - continue; - } - - if (MAKELONG(rdi.hid.dwVendorId, rdi.hid.dwProductId) != (LONG) guid->Data1) - continue; - - memset(name, 0, sizeof(name)); - size = sizeof(name); - - if ((INT) GetRawInputDeviceInfoA(ridl[i].hDevice, - RIDI_DEVICENAME, - name, &size) == -1) - { - break; - } - - name[sizeof(name) - 1] = '\0'; - if (strstr(name, "IG_")) - { - result = GLFW_TRUE; - break; - } - } - - free(ridl); - return result; -} - -// Frees all resources associated with the specified joystick -// -static void closeJoystick(_GLFWjoystickWin32* js) -{ - if (js->device) - { - IDirectInputDevice8_Unacquire(js->device); - IDirectInputDevice8_Release(js->device); - } - - free(js->name); - free(js->axes); - free(js->buttons); - free(js->objects); - memset(js, 0, sizeof(_GLFWjoystickWin32)); - - _glfwInputJoystickChange((int) (js - _glfw.win32_js), GLFW_DISCONNECTED); -} - -// DirectInput device object enumeration callback -// Insights gleaned from SDL2 -// -static BOOL CALLBACK deviceObjectCallback(const DIDEVICEOBJECTINSTANCEW* doi, - void* user) -{ - _GLFWobjenumWin32* data = user; - _GLFWjoyobjectWin32* object = data->objects + data->objectCount; - - if (DIDFT_GETTYPE(doi->dwType) & DIDFT_AXIS) - { - DIPROPRANGE dipr; - - if (memcmp(&doi->guidType, &GUID_Slider, sizeof(GUID)) == 0) - object->offset = DIJOFS_SLIDER(data->sliderCount); - else if (memcmp(&doi->guidType, &GUID_XAxis, sizeof(GUID)) == 0) - object->offset = DIJOFS_X; - else if (memcmp(&doi->guidType, &GUID_YAxis, sizeof(GUID)) == 0) - object->offset = DIJOFS_Y; - else if (memcmp(&doi->guidType, &GUID_ZAxis, sizeof(GUID)) == 0) - object->offset = DIJOFS_Z; - else if (memcmp(&doi->guidType, &GUID_RxAxis, sizeof(GUID)) == 0) - object->offset = DIJOFS_RX; - else if (memcmp(&doi->guidType, &GUID_RyAxis, sizeof(GUID)) == 0) - object->offset = DIJOFS_RY; - else if (memcmp(&doi->guidType, &GUID_RzAxis, sizeof(GUID)) == 0) - object->offset = DIJOFS_RZ; - else - return DIENUM_CONTINUE; - - ZeroMemory(&dipr, sizeof(dipr)); - dipr.diph.dwSize = sizeof(dipr); - dipr.diph.dwHeaderSize = sizeof(dipr.diph); - dipr.diph.dwObj = doi->dwType; - dipr.diph.dwHow = DIPH_BYID; - dipr.lMin = -32768; - dipr.lMax = 32767; - - if (FAILED(IDirectInputDevice8_SetProperty(data->device, - DIPROP_RANGE, - &dipr.diph))) - { - return DIENUM_CONTINUE; - } - - if (memcmp(&doi->guidType, &GUID_Slider, sizeof(GUID)) == 0) - { - object->type = _GLFW_TYPE_SLIDER; - data->sliderCount++; - } - else - { - object->type = _GLFW_TYPE_AXIS; - data->axisCount++; - } - } - else if (DIDFT_GETTYPE(doi->dwType) & DIDFT_BUTTON) - { - object->offset = DIJOFS_BUTTON(data->buttonCount); - object->type = _GLFW_TYPE_BUTTON; - data->buttonCount++; - } - else if (DIDFT_GETTYPE(doi->dwType) & DIDFT_POV) - { - object->offset = DIJOFS_POV(data->povCount); - object->type = _GLFW_TYPE_POV; - data->povCount++; - } - - data->objectCount++; - return DIENUM_CONTINUE; -} - -// DirectInput device enumeration callback -// -static BOOL CALLBACK deviceCallback(const DIDEVICEINSTANCE* di, void* user) -{ - int joy = 0; - DIDEVCAPS dc; - DIPROPDWORD dipd; - IDirectInputDevice8* device; - _GLFWobjenumWin32 data; - _GLFWjoystickWin32* js; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (memcmp(&_glfw.win32_js[joy].guid, &di->guidInstance, sizeof(GUID)) == 0) - return DIENUM_CONTINUE; - } - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (!_glfw.win32_js[joy].present) - break; - } - - if (joy > GLFW_JOYSTICK_LAST) - return DIENUM_STOP; - - if (supportsXInput(&di->guidProduct)) - return DIENUM_CONTINUE; - - if (FAILED(IDirectInput8_CreateDevice(_glfw.win32.dinput8.api, - &di->guidInstance, - &device, - NULL))) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "DI: Failed to create device"); - return DIENUM_CONTINUE; - } - - if (FAILED(IDirectInputDevice8_SetDataFormat(device, &_glfwDataFormat))) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "DI: Failed to set device data format"); - - IDirectInputDevice8_Release(device); - return DIENUM_CONTINUE; - } - - ZeroMemory(&dc, sizeof(dc)); - dc.dwSize = sizeof(dc); - - if (FAILED(IDirectInputDevice8_GetCapabilities(device, &dc))) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "DI: Failed to query device capabilities"); - - IDirectInputDevice8_Release(device); - return DIENUM_CONTINUE; - } - - ZeroMemory(&dipd, sizeof(dipd)); - dipd.diph.dwSize = sizeof(dipd); - dipd.diph.dwHeaderSize = sizeof(dipd.diph); - dipd.diph.dwHow = DIPH_DEVICE; - dipd.dwData = DIPROPAXISMODE_ABS; - - if (FAILED(IDirectInputDevice8_SetProperty(device, - DIPROP_AXISMODE, - &dipd.diph))) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "DI: Failed to set device axis mode"); - - IDirectInputDevice8_Release(device); - return DIENUM_CONTINUE; - } - - memset(&data, 0, sizeof(data)); - data.device = device; - data.objects = calloc(dc.dwAxes + dc.dwButtons + dc.dwPOVs, - sizeof(_GLFWjoyobjectWin32)); - - if (FAILED(IDirectInputDevice8_EnumObjects(device, - deviceObjectCallback, - &data, - DIDFT_AXIS | DIDFT_BUTTON | DIDFT_POV))) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "DI: Failed to enumerate device objects"); - - IDirectInputDevice8_Release(device); - free(data.objects); - return DIENUM_CONTINUE; - } - - qsort(data.objects, data.objectCount, - sizeof(_GLFWjoyobjectWin32), - compareJoystickObjects); - - js = _glfw.win32_js + joy; - js->device = device; - js->guid = di->guidInstance; - js->axisCount = data.axisCount + data.sliderCount; - js->axes = calloc(js->axisCount, sizeof(float)); - js->buttonCount += data.buttonCount + data.povCount * 4; - js->buttons = calloc(js->buttonCount, 1); - js->objects = data.objects; - js->objectCount = data.objectCount; - js->name = _glfwCreateUTF8FromWideStringWin32(di->tszInstanceName); - js->present = GLFW_TRUE; - - _glfwInputJoystickChange(joy, GLFW_CONNECTED); - return DIENUM_CONTINUE; -} - -// Attempt to open the specified joystick device -// TODO: Pack state arrays for non-gamepad devices -// -static GLFWbool openXinputDevice(DWORD index) -{ - int joy; - XINPUT_CAPABILITIES xic; - _GLFWjoystickWin32* js; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (_glfw.win32_js[joy].present && - _glfw.win32_js[joy].device == NULL && - _glfw.win32_js[joy].index == index) - { - return GLFW_FALSE; - } - } - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - { - if (!_glfw.win32_js[joy].present) - break; - } - - if (joy > GLFW_JOYSTICK_LAST) - return GLFW_FALSE; - - if (_glfw_XInputGetCapabilities(index, 0, &xic) != ERROR_SUCCESS) - return GLFW_FALSE; - - js = _glfw.win32_js + joy; - js->axisCount = 6; - js->axes = calloc(js->axisCount, sizeof(float)); - js->buttonCount = 14; - js->buttons = calloc(js->buttonCount, 1); - js->present = GLFW_TRUE; - js->name = strdup(getDeviceDescription(&xic)); - js->index = index; - - _glfwInputJoystickChange(joy, GLFW_CONNECTED); - - return GLFW_TRUE; -} - -// Polls for and processes events the specified joystick -// -static GLFWbool pollJoystickState(_GLFWjoystickWin32* js, int mode) -{ - if (!js->present) - return GLFW_FALSE; - - if (js->device) - { - int i, j, ai = 0, bi = 0; - HRESULT result; - DIJOYSTATE state; - - IDirectInputDevice8_Poll(js->device); - result = IDirectInputDevice8_GetDeviceState(js->device, - sizeof(state), - &state); - if (result == DIERR_NOTACQUIRED || result == DIERR_INPUTLOST) - { - IDirectInputDevice8_Acquire(js->device); - IDirectInputDevice8_Poll(js->device); - result = IDirectInputDevice8_GetDeviceState(js->device, - sizeof(state), - &state); - } - - if (FAILED(result)) - { - closeJoystick(js); - return GLFW_FALSE; - } - - if (mode == _GLFW_PRESENCE_ONLY) - return GLFW_TRUE; - - for (i = 0; i < js->objectCount; i++) - { - const void* data = (char*) &state + js->objects[i].offset; - - switch (js->objects[i].type) - { - case _GLFW_TYPE_AXIS: - case _GLFW_TYPE_SLIDER: - { - js->axes[ai++] = (*((LONG*) data) + 0.5f) / 32767.5f; - break; - } - - case _GLFW_TYPE_BUTTON: - { - if (*((BYTE*) data) & 0x80) - js->buttons[bi++] = GLFW_PRESS; - else - js->buttons[bi++] = GLFW_RELEASE; - - break; - } - - case _GLFW_TYPE_POV: - { - const int directions[9] = { 1, 3, 2, 6, 4, 12, 8, 9, 0 }; - // Screams of horror are appropriate at this point - int value = LOWORD(*(DWORD*) data) / (45 * DI_DEGREES); - if (value < 0 || value > 8) - value = 8; - - for (j = 0; j < 4; j++) - { - if (directions[value] & (1 << j)) - js->buttons[bi++] = GLFW_PRESS; - else - js->buttons[bi++] = GLFW_RELEASE; - } - - break; - } - } - } - - return GLFW_TRUE; - } - else - { - int i; - DWORD result; - XINPUT_STATE xis; - const WORD buttons[14] = - { - XINPUT_GAMEPAD_A, - XINPUT_GAMEPAD_B, - XINPUT_GAMEPAD_X, - XINPUT_GAMEPAD_Y, - XINPUT_GAMEPAD_LEFT_SHOULDER, - XINPUT_GAMEPAD_RIGHT_SHOULDER, - XINPUT_GAMEPAD_BACK, - XINPUT_GAMEPAD_START, - XINPUT_GAMEPAD_LEFT_THUMB, - XINPUT_GAMEPAD_RIGHT_THUMB, - XINPUT_GAMEPAD_DPAD_UP, - XINPUT_GAMEPAD_DPAD_RIGHT, - XINPUT_GAMEPAD_DPAD_DOWN, - XINPUT_GAMEPAD_DPAD_LEFT - }; - - result = _glfw_XInputGetState(js->index, &xis); - if (result != ERROR_SUCCESS) - { - if (result == ERROR_DEVICE_NOT_CONNECTED) - closeJoystick(js); - - return GLFW_FALSE; - } - - if (mode == _GLFW_PRESENCE_ONLY) - return GLFW_TRUE; - - if (sqrt((double) (xis.Gamepad.sThumbLX * xis.Gamepad.sThumbLX + - xis.Gamepad.sThumbLY * xis.Gamepad.sThumbLY)) > - (double) XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE) - { - js->axes[0] = (xis.Gamepad.sThumbLX + 0.5f) / 32767.f; - js->axes[1] = (xis.Gamepad.sThumbLY + 0.5f) / 32767.f; - } - else - { - js->axes[0] = 0.f; - js->axes[1] = 0.f; - } - - if (sqrt((double) (xis.Gamepad.sThumbRX * xis.Gamepad.sThumbRX + - xis.Gamepad.sThumbRY * xis.Gamepad.sThumbRY)) > - (double) XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE) - { - js->axes[2] = (xis.Gamepad.sThumbRX + 0.5f) / 32767.f; - js->axes[3] = (xis.Gamepad.sThumbRY + 0.5f) / 32767.f; - } - else - { - js->axes[2] = 0.f; - js->axes[3] = 0.f; - } - - if (xis.Gamepad.bLeftTrigger > XINPUT_GAMEPAD_TRIGGER_THRESHOLD) - js->axes[4] = xis.Gamepad.bLeftTrigger / 127.5f - 1.f; - else - js->axes[4] = -1.f; - - if (xis.Gamepad.bRightTrigger > XINPUT_GAMEPAD_TRIGGER_THRESHOLD) - js->axes[5] = xis.Gamepad.bRightTrigger / 127.5f - 1.f; - else - js->axes[5] = -1.f; - - for (i = 0; i < 14; i++) - js->buttons[i] = (xis.Gamepad.wButtons & buttons[i]) ? 1 : 0; - - return GLFW_TRUE; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize joystick interface -// -void _glfwInitJoysticksWin32(void) -{ - if (_glfw.win32.dinput8.instance) - { - if (FAILED(_glfw_DirectInput8Create(GetModuleHandle(NULL), - DIRECTINPUT_VERSION, - &IID_IDirectInput8W, - (void**) &_glfw.win32.dinput8.api, - NULL))) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "DI: Failed to create interface"); - } - } - - _glfwDetectJoystickConnectionWin32(); -} - -// Close all opened joystick handles -// -void _glfwTerminateJoysticksWin32(void) -{ - int joy; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - closeJoystick(_glfw.win32_js + joy); - - if (_glfw.win32.dinput8.api) - IDirectInput8_Release(_glfw.win32.dinput8.api); -} - -// Checks for new joysticks after DBT_DEVICEARRIVAL -// -void _glfwDetectJoystickConnectionWin32(void) -{ - if (_glfw.win32.xinput.instance) - { - DWORD i; - - for (i = 0; i < XUSER_MAX_COUNT; i++) - openXinputDevice(i); - } - - if (_glfw.win32.dinput8.api) - { - if (FAILED(IDirectInput8_EnumDevices(_glfw.win32.dinput8.api, - DI8DEVCLASS_GAMECTRL, - deviceCallback, - NULL, - DIEDFL_ALLDEVICES))) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Failed to enumerate DirectInput8 devices"); - return; - } - } -} - -// Checks for joystick disconnection after DBT_DEVICEREMOVECOMPLETE -// -void _glfwDetectJoystickDisconnectionWin32(void) -{ - int joy; - - for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) - pollJoystickState(_glfw.win32_js + joy, _GLFW_PRESENCE_ONLY); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformJoystickPresent(int joy) -{ - _GLFWjoystickWin32* js = _glfw.win32_js + joy; - return pollJoystickState(js, _GLFW_PRESENCE_ONLY); -} - -const float* _glfwPlatformGetJoystickAxes(int joy, int* count) -{ - _GLFWjoystickWin32* js = _glfw.win32_js + joy; - if (!pollJoystickState(js, _GLFW_UPDATE_STATE)) - return NULL; - - *count = js->axisCount; - return js->axes; -} - -const unsigned char* _glfwPlatformGetJoystickButtons(int joy, int* count) -{ - _GLFWjoystickWin32* js = _glfw.win32_js + joy; - if (!pollJoystickState(js, _GLFW_UPDATE_STATE)) - return NULL; - - *count = js->buttonCount; - return js->buttons; -} - -const char* _glfwPlatformGetJoystickName(int joy) -{ - _GLFWjoystickWin32* js = _glfw.win32_js + joy; - if (!pollJoystickState(js, _GLFW_PRESENCE_ONLY)) - return NULL; - - return js->name; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_joystick.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_joystick.h deleted file mode 100644 index 6a75b41..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_joystick.h +++ /dev/null @@ -1,64 +0,0 @@ -//======================================================================== -// GLFW 3.2 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_win32_joystick_h_ -#define _glfw3_win32_joystick_h_ - -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE \ - _GLFWjoystickWin32 win32_js[GLFW_JOYSTICK_LAST + 1] - -// Joystick element (axis, button or slider) -// -typedef struct _GLFWjoyobjectWin32 -{ - int offset; - int type; -} _GLFWjoyobjectWin32; - -// Win32-specific per-joystick data -// -typedef struct _GLFWjoystickWin32 -{ - GLFWbool present; - float* axes; - int axisCount; - unsigned char* buttons; - int buttonCount; - _GLFWjoyobjectWin32* objects; - int objectCount; - char* name; - IDirectInputDevice8W* device; - DWORD index; - GUID guid; -} _GLFWjoystickWin32; - - -void _glfwInitJoysticksWin32(void); -void _glfwTerminateJoysticksWin32(void); -void _glfwDetectJoystickConnectionWin32(void); -void _glfwDetectJoystickDisconnectionWin32(void); - -#endif // _glfw3_win32_joystick_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_monitor.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_monitor.c deleted file mode 100644 index e55c9a7..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_monitor.c +++ /dev/null @@ -1,401 +0,0 @@ -//======================================================================== -// GLFW 3.2 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - - -// Create monitor from an adapter and (optionally) a display -// -static _GLFWmonitor* createMonitor(DISPLAY_DEVICEW* adapter, - DISPLAY_DEVICEW* display) -{ - _GLFWmonitor* monitor; - char* name; - HDC dc; - - if (display) - name = _glfwCreateUTF8FromWideStringWin32(display->DeviceString); - else - name = _glfwCreateUTF8FromWideStringWin32(adapter->DeviceString); - if (!name) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert string to UTF-8"); - return NULL; - } - - dc = CreateDCW(L"DISPLAY", adapter->DeviceName, NULL, NULL); - - monitor = _glfwAllocMonitor(name, - GetDeviceCaps(dc, HORZSIZE), - GetDeviceCaps(dc, VERTSIZE)); - - DeleteDC(dc); - free(name); - - if (adapter->StateFlags & DISPLAY_DEVICE_MODESPRUNED) - monitor->win32.modesPruned = GLFW_TRUE; - - wcscpy(monitor->win32.adapterName, adapter->DeviceName); - WideCharToMultiByte(CP_UTF8, 0, - adapter->DeviceName, -1, - monitor->win32.publicAdapterName, - sizeof(monitor->win32.publicAdapterName), - NULL, NULL); - - if (display) - { - wcscpy(monitor->win32.displayName, display->DeviceName); - WideCharToMultiByte(CP_UTF8, 0, - display->DeviceName, -1, - monitor->win32.publicDisplayName, - sizeof(monitor->win32.publicDisplayName), - NULL, NULL); - } - - return monitor; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Change the current video mode -// -GLFWbool _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired) -{ - GLFWvidmode current; - const GLFWvidmode* best; - DEVMODEW dm; - - best = _glfwChooseVideoMode(monitor, desired); - _glfwPlatformGetVideoMode(monitor, ¤t); - if (_glfwCompareVideoModes(¤t, best) == 0) - return GLFW_TRUE; - - ZeroMemory(&dm, sizeof(dm)); - dm.dmSize = sizeof(DEVMODEW); - dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL | - DM_DISPLAYFREQUENCY; - dm.dmPelsWidth = best->width; - dm.dmPelsHeight = best->height; - dm.dmBitsPerPel = best->redBits + best->greenBits + best->blueBits; - dm.dmDisplayFrequency = best->refreshRate; - - if (dm.dmBitsPerPel < 15 || dm.dmBitsPerPel >= 24) - dm.dmBitsPerPel = 32; - - if (ChangeDisplaySettingsExW(monitor->win32.adapterName, - &dm, - NULL, - CDS_FULLSCREEN, - NULL) != DISP_CHANGE_SUCCESSFUL) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to set video mode"); - return GLFW_FALSE; - } - - monitor->win32.modeChanged = GLFW_TRUE; - return GLFW_TRUE; -} - -// Restore the previously saved (original) video mode -// -void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor) -{ - if (monitor->win32.modeChanged) - { - ChangeDisplaySettingsExW(monitor->win32.adapterName, - NULL, NULL, CDS_FULLSCREEN, NULL); - monitor->win32.modeChanged = GLFW_FALSE; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - int found = 0; - DWORD adapterIndex, displayIndex, primaryIndex = 0; - DISPLAY_DEVICEW adapter, display; - GLFWbool hasDisplays = GLFW_FALSE; - _GLFWmonitor** monitors = NULL; - - *count = 0; - - // HACK: Check if any active adapters have connected displays - // If not, this is a headless system or a VMware guest - - for (adapterIndex = 0; ; adapterIndex++) - { - ZeroMemory(&adapter, sizeof(DISPLAY_DEVICEW)); - adapter.cb = sizeof(DISPLAY_DEVICEW); - - if (!EnumDisplayDevicesW(NULL, adapterIndex, &adapter, 0)) - break; - - if (!(adapter.StateFlags & DISPLAY_DEVICE_ACTIVE)) - continue; - - ZeroMemory(&display, sizeof(DISPLAY_DEVICEW)); - display.cb = sizeof(DISPLAY_DEVICEW); - - if (EnumDisplayDevicesW(adapter.DeviceName, 0, &display, 0)) - { - hasDisplays = GLFW_TRUE; - break; - } - } - - for (adapterIndex = 0; ; adapterIndex++) - { - ZeroMemory(&adapter, sizeof(DISPLAY_DEVICEW)); - adapter.cb = sizeof(DISPLAY_DEVICEW); - - if (!EnumDisplayDevicesW(NULL, adapterIndex, &adapter, 0)) - break; - - if (!(adapter.StateFlags & DISPLAY_DEVICE_ACTIVE)) - continue; - - if (adapter.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE) - primaryIndex = found; - - if (hasDisplays) - { - for (displayIndex = 0; ; displayIndex++) - { - ZeroMemory(&display, sizeof(DISPLAY_DEVICEW)); - display.cb = sizeof(DISPLAY_DEVICEW); - - if (!EnumDisplayDevicesW(adapter.DeviceName, displayIndex, &display, 0)) - break; - - found++; - monitors = realloc(monitors, sizeof(_GLFWmonitor*) * found); - monitors[found - 1] = createMonitor(&adapter, &display); - } - } - else - { - found++; - monitors = realloc(monitors, sizeof(_GLFWmonitor*) * found); - monitors[found - 1] = createMonitor(&adapter, NULL); - } - } - - _GLFW_SWAP_POINTERS(monitors[0], monitors[primaryIndex]); - - *count = found; - return monitors; -} - -GLFWbool _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - if (wcslen(first->win32.displayName)) - return wcscmp(first->win32.displayName, second->win32.displayName) == 0; - else - return wcscmp(first->win32.adapterName, second->win32.adapterName) == 0; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - DEVMODEW settings; - ZeroMemory(&settings, sizeof(DEVMODEW)); - settings.dmSize = sizeof(DEVMODEW); - - EnumDisplaySettingsExW(monitor->win32.adapterName, - ENUM_CURRENT_SETTINGS, - &settings, - EDS_ROTATEDMODE); - - if (xpos) - *xpos = settings.dmPosition.x; - if (ypos) - *ypos = settings.dmPosition.y; -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) -{ - int modeIndex = 0, size = 0; - GLFWvidmode* result = NULL; - - *count = 0; - - for (;;) - { - int i; - GLFWvidmode mode; - DEVMODEW dm; - - ZeroMemory(&dm, sizeof(DEVMODEW)); - dm.dmSize = sizeof(DEVMODEW); - - if (!EnumDisplaySettingsW(monitor->win32.adapterName, modeIndex, &dm)) - break; - - modeIndex++; - - // Skip modes with less than 15 BPP - if (dm.dmBitsPerPel < 15) - continue; - - mode.width = dm.dmPelsWidth; - mode.height = dm.dmPelsHeight; - mode.refreshRate = dm.dmDisplayFrequency; - _glfwSplitBPP(dm.dmBitsPerPel, - &mode.redBits, - &mode.greenBits, - &mode.blueBits); - - for (i = 0; i < *count; i++) - { - if (_glfwCompareVideoModes(result + i, &mode) == 0) - break; - } - - // Skip duplicate modes - if (i < *count) - continue; - - if (monitor->win32.modesPruned) - { - // Skip modes not supported by the connected displays - if (ChangeDisplaySettingsExW(monitor->win32.adapterName, - &dm, - NULL, - CDS_TEST, - NULL) != DISP_CHANGE_SUCCESSFUL) - { - continue; - } - } - - if (*count == size) - { - size += 128; - result = (GLFWvidmode*) realloc(result, size * sizeof(GLFWvidmode)); - } - - (*count)++; - result[*count - 1] = mode; - } - - if (!*count) - { - // HACK: Report the current mode if no valid modes were found - result = calloc(1, sizeof(GLFWvidmode)); - _glfwPlatformGetVideoMode(monitor, result); - *count = 1; - } - - return result; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - DEVMODEW dm; - - ZeroMemory(&dm, sizeof(DEVMODEW)); - dm.dmSize = sizeof(DEVMODEW); - - EnumDisplaySettingsW(monitor->win32.adapterName, ENUM_CURRENT_SETTINGS, &dm); - - mode->width = dm.dmPelsWidth; - mode->height = dm.dmPelsHeight; - mode->refreshRate = dm.dmDisplayFrequency; - _glfwSplitBPP(dm.dmBitsPerPel, - &mode->redBits, - &mode->greenBits, - &mode->blueBits); -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - HDC dc; - WORD values[768]; - - dc = CreateDCW(L"DISPLAY", monitor->win32.adapterName, NULL, NULL); - GetDeviceGammaRamp(dc, values); - DeleteDC(dc); - - _glfwAllocGammaArrays(ramp, 256); - - memcpy(ramp->red, values + 0, 256 * sizeof(unsigned short)); - memcpy(ramp->green, values + 256, 256 * sizeof(unsigned short)); - memcpy(ramp->blue, values + 512, 256 * sizeof(unsigned short)); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - HDC dc; - WORD values[768]; - - if (ramp->size != 256) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Gamma ramp size must be 256"); - return; - } - - memcpy(values + 0, ramp->red, 256 * sizeof(unsigned short)); - memcpy(values + 256, ramp->green, 256 * sizeof(unsigned short)); - memcpy(values + 512, ramp->blue, 256 * sizeof(unsigned short)); - - dc = CreateDCW(L"DISPLAY", monitor->win32.adapterName, NULL, NULL); - SetDeviceGammaRamp(dc, values); - DeleteDC(dc); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->win32.publicAdapterName; -} - -GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->win32.publicDisplayName; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_platform.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_platform.h deleted file mode 100644 index c0dcff1..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_platform.h +++ /dev/null @@ -1,350 +0,0 @@ -//======================================================================== -// GLFW 3.2 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_win32_platform_h_ -#define _glfw3_win32_platform_h_ - -// We don't need all the fancy stuff -#ifndef NOMINMAX - #define NOMINMAX -#endif - -#ifndef VC_EXTRALEAN - #define VC_EXTRALEAN -#endif - -#ifndef WIN32_LEAN_AND_MEAN - #define WIN32_LEAN_AND_MEAN -#endif - -// This is a workaround for the fact that glfw3.h needs to export APIENTRY (for -// example to allow applications to correctly declare a GL_ARB_debug_output -// callback) but windows.h assumes no one will define APIENTRY before it does -#undef APIENTRY - -// GLFW on Windows is Unicode only and does not work in MBCS mode -#ifndef UNICODE - #define UNICODE -#endif - -// GLFW requires Windows XP or later -#if WINVER < 0x0501 - #undef WINVER - #define WINVER 0x0501 -#endif -#if _WIN32_WINNT < 0x0501 - #undef _WIN32_WINNT - #define _WIN32_WINNT 0x0501 -#endif - -// GLFW uses DirectInput8 interfaces -#define DIRECTINPUT_VERSION 0x0800 - -#include -#include -#include -#include -#include -#include - -#if defined(_MSC_VER) - #include - #define strdup _strdup -#endif - -// HACK: Define macros that some windows.h variants don't -#ifndef WM_MOUSEHWHEEL - #define WM_MOUSEHWHEEL 0x020E -#endif -#ifndef WM_DWMCOMPOSITIONCHANGED - #define WM_DWMCOMPOSITIONCHANGED 0x031E -#endif -#ifndef WM_COPYGLOBALDATA - #define WM_COPYGLOBALDATA 0x0049 -#endif -#ifndef WM_UNICHAR - #define WM_UNICHAR 0x0109 -#endif -#ifndef UNICODE_NOCHAR - #define UNICODE_NOCHAR 0xFFFF -#endif -#ifndef WM_DPICHANGED - #define WM_DPICHANGED 0x02E0 -#endif -#ifndef GET_XBUTTON_WPARAM - #define GET_XBUTTON_WPARAM(w) (HIWORD(w)) -#endif -#ifndef EDS_ROTATEDMODE - #define EDS_ROTATEDMODE 0x00000004 -#endif -#ifndef DISPLAY_DEVICE_ACTIVE - #define DISPLAY_DEVICE_ACTIVE 0x00000001 -#endif - -#if WINVER < 0x0601 -typedef struct tagCHANGEFILTERSTRUCT -{ - DWORD cbSize; - DWORD ExtStatus; - -} CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT; -#ifndef MSGFLT_ALLOW - #define MSGFLT_ALLOW 1 -#endif -#endif /*Windows 7*/ - -#ifndef DPI_ENUMS_DECLARED -typedef enum PROCESS_DPI_AWARENESS -{ - PROCESS_DPI_UNAWARE = 0, - PROCESS_SYSTEM_DPI_AWARE = 1, - PROCESS_PER_MONITOR_DPI_AWARE = 2 -} PROCESS_DPI_AWARENESS; -#endif /*DPI_ENUMS_DECLARED*/ - -// HACK: Define macros that some xinput.h variants don't -#ifndef XINPUT_CAPS_WIRELESS - #define XINPUT_CAPS_WIRELESS 0x0002 -#endif -#ifndef XINPUT_DEVSUBTYPE_WHEEL - #define XINPUT_DEVSUBTYPE_WHEEL 0x02 -#endif -#ifndef XINPUT_DEVSUBTYPE_ARCADE_STICK - #define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 -#endif -#ifndef XINPUT_DEVSUBTYPE_FLIGHT_STICK - #define XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04 -#endif -#ifndef XINPUT_DEVSUBTYPE_DANCE_PAD - #define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 -#endif -#ifndef XINPUT_DEVSUBTYPE_GUITAR - #define XINPUT_DEVSUBTYPE_GUITAR 0x06 -#endif -#ifndef XINPUT_DEVSUBTYPE_DRUM_KIT - #define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 -#endif -#ifndef XINPUT_DEVSUBTYPE_ARCADE_PAD - #define XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13 -#endif -#ifndef XUSER_MAX_COUNT - #define XUSER_MAX_COUNT 4 -#endif - -// HACK: Define macros that some dinput.h variants don't -#ifndef DIDFT_OPTIONAL - #define DIDFT_OPTIONAL 0x80000000 -#endif - -// winmm.dll function pointer typedefs -typedef DWORD (WINAPI * TIMEGETTIME_T)(void); -#define _glfw_timeGetTime _glfw.win32.winmm.timeGetTime - -// xinput.dll function pointer typedefs -typedef DWORD (WINAPI * XINPUTGETCAPABILITIES_T)(DWORD,DWORD,XINPUT_CAPABILITIES*); -typedef DWORD (WINAPI * XINPUTGETSTATE_T)(DWORD,XINPUT_STATE*); -#define _glfw_XInputGetCapabilities _glfw.win32.xinput.XInputGetCapabilities -#define _glfw_XInputGetState _glfw.win32.xinput.XInputGetState - -// dinput8.dll function pointer typedefs -typedef HRESULT (WINAPI * DIRECTINPUT8CREATE_T)(HINSTANCE,DWORD,REFIID,LPVOID*,LPUNKNOWN); -#define _glfw_DirectInput8Create _glfw.win32.dinput8.DirectInput8Create - -// user32.dll function pointer typedefs -typedef BOOL (WINAPI * SETPROCESSDPIAWARE_T)(void); -typedef BOOL (WINAPI * CHANGEWINDOWMESSAGEFILTEREX_T)(HWND,UINT,DWORD,PCHANGEFILTERSTRUCT); -#define _glfw_SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware -#define _glfw_ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx - -// dwmapi.dll function pointer typedefs -typedef HRESULT (WINAPI * DWMISCOMPOSITIONENABLED_T)(BOOL*); -typedef HRESULT (WINAPI * DWMFLUSH_T)(VOID); -#define _glfw_DwmIsCompositionEnabled _glfw.win32.dwmapi.DwmIsCompositionEnabled -#define _glfw_DwmFlush _glfw.win32.dwmapi.DwmFlush - -// shcore.dll function pointer typedefs -typedef HRESULT (WINAPI * SETPROCESSDPIAWARENESS_T)(PROCESS_DPI_AWARENESS); -#define _glfw_SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness - -typedef VkFlags VkWin32SurfaceCreateFlagsKHR; - -typedef struct VkWin32SurfaceCreateInfoKHR -{ - VkStructureType sType; - const void* pNext; - VkWin32SurfaceCreateFlagsKHR flags; - HINSTANCE hinstance; - HWND hwnd; -} VkWin32SurfaceCreateInfoKHR; - -typedef VkResult (APIENTRY *PFN_vkCreateWin32SurfaceKHR)(VkInstance,const VkWin32SurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); -typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice,uint32_t); - -#include "win32_joystick.h" -#include "wgl_context.h" -#include "egl_context.h" - -#define _GLFW_WNDCLASSNAME L"GLFW30" - -#define _glfw_dlopen(name) LoadLibraryA(name) -#define _glfw_dlclose(handle) FreeLibrary((HMODULE) handle) -#define _glfw_dlsym(handle, name) GetProcAddress((HMODULE) handle, name) - -#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->win32.handle) -#define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 -#define _GLFW_PLATFORM_LIBRARY_TIME_STATE _GLFWtimeWin32 win32_time -#define _GLFW_PLATFORM_LIBRARY_TLS_STATE _GLFWtlsWin32 win32_tls -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32 -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32 - - -// Win32-specific per-window data -// -typedef struct _GLFWwindowWin32 -{ - HWND handle; - HICON bigIcon; - HICON smallIcon; - - GLFWbool cursorTracked; - GLFWbool iconified; - - // The last received cursor position, regardless of source - int lastCursorPosX, lastCursorPosY; - -} _GLFWwindowWin32; - -// Win32-specific global data -// -typedef struct _GLFWlibraryWin32 -{ - HWND helperWindowHandle; - DWORD foregroundLockTimeout; - char* clipboardString; - char keyName[64]; - short int publicKeys[512]; - short int nativeKeys[GLFW_KEY_LAST + 1]; - // Where to place the cursor when re-enabled - double restoreCursorPosX, restoreCursorPosY; - // The window whose disabled cursor mode is active - _GLFWwindow* disabledCursorWindow; - - struct { - HINSTANCE instance; - TIMEGETTIME_T timeGetTime; - } winmm; - - struct { - HINSTANCE instance; - DIRECTINPUT8CREATE_T DirectInput8Create; - IDirectInput8W* api; - } dinput8; - - struct { - HINSTANCE instance; - XINPUTGETCAPABILITIES_T XInputGetCapabilities; - XINPUTGETSTATE_T XInputGetState; - } xinput; - - struct { - HINSTANCE instance; - SETPROCESSDPIAWARE_T SetProcessDPIAware; - CHANGEWINDOWMESSAGEFILTEREX_T ChangeWindowMessageFilterEx; - } user32; - - struct { - HINSTANCE instance; - DWMISCOMPOSITIONENABLED_T DwmIsCompositionEnabled; - DWMFLUSH_T DwmFlush; - } dwmapi; - - struct { - HINSTANCE instance; - SETPROCESSDPIAWARENESS_T SetProcessDpiAwareness; - } shcore; - -} _GLFWlibraryWin32; - -// Win32-specific per-monitor data -// -typedef struct _GLFWmonitorWin32 -{ - // This size matches the static size of DISPLAY_DEVICE.DeviceName - WCHAR adapterName[32]; - WCHAR displayName[32]; - char publicAdapterName[64]; - char publicDisplayName[64]; - GLFWbool modesPruned; - GLFWbool modeChanged; - -} _GLFWmonitorWin32; - -// Win32-specific per-cursor data -// -typedef struct _GLFWcursorWin32 -{ - HCURSOR handle; - -} _GLFWcursorWin32; - -// Win32-specific global timer data -// -typedef struct _GLFWtimeWin32 -{ - GLFWbool hasPC; - uint64_t frequency; - -} _GLFWtimeWin32; - -// Win32-specific global TLS data -// -typedef struct _GLFWtlsWin32 -{ - GLFWbool allocated; - DWORD context; - -} _GLFWtlsWin32; - - -GLFWbool _glfwRegisterWindowClassWin32(void); -void _glfwUnregisterWindowClassWin32(void); - -GLFWbool _glfwInitThreadLocalStorageWin32(void); -void _glfwTerminateThreadLocalStorageWin32(void); - -WCHAR* _glfwCreateWideStringFromUTF8Win32(const char* source); -char* _glfwCreateUTF8FromWideStringWin32(const WCHAR* source); - -void _glfwInitTimerWin32(void); - -GLFWbool _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired); -void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor); - -#endif // _glfw3_win32_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_time.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_time.c deleted file mode 100644 index d972f56..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_time.c +++ /dev/null @@ -1,74 +0,0 @@ -//======================================================================== -// GLFW 3.2 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialise timer -// -void _glfwInitTimerWin32(void) -{ - uint64_t frequency; - - if (QueryPerformanceFrequency((LARGE_INTEGER*) &frequency)) - { - _glfw.win32_time.hasPC = GLFW_TRUE; - _glfw.win32_time.frequency = frequency; - } - else - { - _glfw.win32_time.hasPC = GLFW_FALSE; - _glfw.win32_time.frequency = 1000; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -uint64_t _glfwPlatformGetTimerValue(void) -{ - if (_glfw.win32_time.hasPC) - { - uint64_t value; - QueryPerformanceCounter((LARGE_INTEGER*) &value); - return value; - } - else - return (uint64_t) _glfw_timeGetTime(); -} - -uint64_t _glfwPlatformGetTimerFrequency(void) -{ - return _glfw.win32_time.frequency; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_tls.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_tls.c deleted file mode 100644 index ab79fcc..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_tls.c +++ /dev/null @@ -1,69 +0,0 @@ -//======================================================================== -// GLFW 3.2 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWbool _glfwInitThreadLocalStorageWin32(void) -{ - _glfw.win32_tls.context = TlsAlloc(); - if (_glfw.win32_tls.context == TLS_OUT_OF_INDEXES) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to allocate TLS index"); - return GLFW_FALSE; - } - - _glfw.win32_tls.allocated = GLFW_TRUE; - return GLFW_TRUE; -} - -void _glfwTerminateThreadLocalStorageWin32(void) -{ - if (_glfw.win32_tls.allocated) - TlsFree(_glfw.win32_tls.context); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformSetCurrentContext(_GLFWwindow* context) -{ - TlsSetValue(_glfw.win32_tls.context, context); -} - -_GLFWwindow* _glfwPlatformGetCurrentContext(void) -{ - return TlsGetValue(_glfw.win32_tls.context); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_window.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_window.c deleted file mode 100644 index 8e30eb6..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/win32_window.c +++ /dev/null @@ -1,1724 +0,0 @@ -//======================================================================== -// GLFW 3.2 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include -#include -#include - -#define _GLFW_KEY_INVALID -2 - -// Returns the window style for the specified window -// -static DWORD getWindowStyle(const _GLFWwindow* window) -{ - DWORD style = WS_CLIPSIBLINGS | WS_CLIPCHILDREN; - - if (window->monitor) - style |= WS_POPUP; - else - { - if (window->decorated) - { - style |= WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX; - - if (window->resizable) - style |= WS_MAXIMIZEBOX | WS_THICKFRAME; - } - else - style |= WS_POPUP; - } - - return style; -} - -// Returns the extended window style for the specified window -// -static DWORD getWindowExStyle(const _GLFWwindow* window) -{ - DWORD style = WS_EX_APPWINDOW; - - if (window->monitor || window->floating) - style |= WS_EX_TOPMOST; - - return style; -} - -// Returns the image whose area most closely matches the desired one -// -static const GLFWimage* chooseImage(int count, const GLFWimage* images, - int width, int height) -{ - int i, leastDiff = INT_MAX; - const GLFWimage* closest = NULL; - - for (i = 0; i < count; i++) - { - const int currDiff = abs(images[i].width * images[i].height - - width * height); - if (currDiff < leastDiff) - { - closest = images + i; - leastDiff = currDiff; - } - } - - return closest; -} - -// Creates an RGBA icon or cursor -// -static HICON createIcon(const GLFWimage* image, - int xhot, int yhot, GLFWbool icon) -{ - int i; - HDC dc; - HICON handle; - HBITMAP color, mask; - BITMAPV5HEADER bi; - ICONINFO ii; - unsigned char* target = NULL; - unsigned char* source = image->pixels; - - ZeroMemory(&bi, sizeof(bi)); - bi.bV5Size = sizeof(BITMAPV5HEADER); - bi.bV5Width = image->width; - bi.bV5Height = -image->height; - bi.bV5Planes = 1; - bi.bV5BitCount = 32; - bi.bV5Compression = BI_BITFIELDS; - bi.bV5RedMask = 0x00ff0000; - bi.bV5GreenMask = 0x0000ff00; - bi.bV5BlueMask = 0x000000ff; - bi.bV5AlphaMask = 0xff000000; - - dc = GetDC(NULL); - color = CreateDIBSection(dc, - (BITMAPINFO*) &bi, - DIB_RGB_COLORS, - (void**) &target, - NULL, - (DWORD) 0); - ReleaseDC(NULL, dc); - - if (!color) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to create RGBA bitmap"); - return NULL; - } - - mask = CreateBitmap(image->width, image->height, 1, 1, NULL); - if (!mask) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to create mask bitmap"); - DeleteObject(color); - return NULL; - } - - for (i = 0; i < image->width * image->height; i++) - { - target[0] = source[2]; - target[1] = source[1]; - target[2] = source[0]; - target[3] = source[3]; - target += 4; - source += 4; - } - - ZeroMemory(&ii, sizeof(ii)); - ii.fIcon = icon; - ii.xHotspot = xhot; - ii.yHotspot = yhot; - ii.hbmMask = mask; - ii.hbmColor = color; - - handle = CreateIconIndirect(&ii); - - DeleteObject(color); - DeleteObject(mask); - - if (!handle) - { - if (icon) - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to create icon"); - else - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to create cursor"); - } - - return handle; -} - -// Translate client window size to full window size according to styles -// -static void getFullWindowSize(DWORD style, DWORD exStyle, - int clientWidth, int clientHeight, - int* fullWidth, int* fullHeight) -{ - RECT rect = { 0, 0, clientWidth, clientHeight }; - AdjustWindowRectEx(&rect, style, FALSE, exStyle); - *fullWidth = rect.right - rect.left; - *fullHeight = rect.bottom - rect.top; -} - -// Enforce the client rect aspect ratio based on which edge is being dragged -// -static void applyAspectRatio(_GLFWwindow* window, int edge, RECT* area) -{ - int xoff, yoff; - const float ratio = (float) window->numer / (float) window->denom; - - getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), - 0, 0, &xoff, &yoff); - - if (edge == WMSZ_LEFT || edge == WMSZ_BOTTOMLEFT || - edge == WMSZ_RIGHT || edge == WMSZ_BOTTOMRIGHT) - { - area->bottom = area->top + yoff + - (int) ((area->right - area->left - xoff) / ratio); - } - else if (edge == WMSZ_TOPLEFT || edge == WMSZ_TOPRIGHT) - { - area->top = area->bottom - yoff - - (int) ((area->right - area->left - xoff) / ratio); - } - else if (edge == WMSZ_TOP || edge == WMSZ_BOTTOM) - { - area->right = area->left + xoff + - (int) ((area->bottom - area->top - yoff) * ratio); - } -} - -// Centers the cursor over the window client area -// -static void centerCursor(_GLFWwindow* window) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); -} - -// Returns whether the cursor is in the client area of the specified window -// -static GLFWbool cursorInClientArea(_GLFWwindow* window) -{ - RECT area; - POINT pos; - - if (!GetCursorPos(&pos)) - return GLFW_FALSE; - - if (WindowFromPoint(pos) != window->win32.handle) - return GLFW_FALSE; - - GetClientRect(window->win32.handle, &area); - ClientToScreen(window->win32.handle, (POINT*) &area.left); - ClientToScreen(window->win32.handle, (POINT*) &area.right); - - return PtInRect(&area, pos); -} - -// Updates the cursor image according to its cursor mode -// -static void updateCursorImage(_GLFWwindow* window) -{ - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (window->cursor) - SetCursor(window->cursor->win32.handle); - else - SetCursor(LoadCursorW(NULL, IDC_ARROW)); - } - else - SetCursor(NULL); -} - -// Updates the cursor clip rect -// -static void updateClipRect(_GLFWwindow* window) -{ - if (window) - { - RECT clipRect; - GetClientRect(window->win32.handle, &clipRect); - ClientToScreen(window->win32.handle, (POINT*) &clipRect.left); - ClientToScreen(window->win32.handle, (POINT*) &clipRect.right); - ClipCursor(&clipRect); - } - else - ClipCursor(NULL); -} - -// Translates a GLFW standard cursor to a resource ID -// -static LPWSTR translateCursorShape(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return IDC_ARROW; - case GLFW_IBEAM_CURSOR: - return IDC_IBEAM; - case GLFW_CROSSHAIR_CURSOR: - return IDC_CROSS; - case GLFW_HAND_CURSOR: - return IDC_HAND; - case GLFW_HRESIZE_CURSOR: - return IDC_SIZEWE; - case GLFW_VRESIZE_CURSOR: - return IDC_SIZENS; - } - - return NULL; -} - -// Retrieves and translates modifier keys -// -static int getKeyMods(void) -{ - int mods = 0; - - if (GetKeyState(VK_SHIFT) & (1 << 31)) - mods |= GLFW_MOD_SHIFT; - if (GetKeyState(VK_CONTROL) & (1 << 31)) - mods |= GLFW_MOD_CONTROL; - if (GetKeyState(VK_MENU) & (1 << 31)) - mods |= GLFW_MOD_ALT; - if ((GetKeyState(VK_LWIN) | GetKeyState(VK_RWIN)) & (1 << 31)) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Retrieves and translates modifier keys -// -static int getAsyncKeyMods(void) -{ - int mods = 0; - - if (GetAsyncKeyState(VK_SHIFT) & (1 << 31)) - mods |= GLFW_MOD_SHIFT; - if (GetAsyncKeyState(VK_CONTROL) & (1 << 31)) - mods |= GLFW_MOD_CONTROL; - if (GetAsyncKeyState(VK_MENU) & (1 << 31)) - mods |= GLFW_MOD_ALT; - if ((GetAsyncKeyState(VK_LWIN) | GetAsyncKeyState(VK_RWIN)) & (1 << 31)) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Translates a Windows key to the corresponding GLFW key -// -static int translateKey(WPARAM wParam, LPARAM lParam) -{ - if (wParam == VK_CONTROL) - { - // The CTRL keys require special handling - - MSG next; - DWORD time; - - // Is this an extended key (i.e. right key)? - if (lParam & 0x01000000) - return GLFW_KEY_RIGHT_CONTROL; - - // Here is a trick: "Alt Gr" sends LCTRL, then RALT. We only - // want the RALT message, so we try to see if the next message - // is a RALT message. In that case, this is a false LCTRL! - time = GetMessageTime(); - - if (PeekMessageW(&next, NULL, 0, 0, PM_NOREMOVE)) - { - if (next.message == WM_KEYDOWN || - next.message == WM_SYSKEYDOWN || - next.message == WM_KEYUP || - next.message == WM_SYSKEYUP) - { - if (next.wParam == VK_MENU && - (next.lParam & 0x01000000) && - next.time == time) - { - // Next message is a RALT down message, which - // means that this is not a proper LCTRL message - return _GLFW_KEY_INVALID; - } - } - } - - return GLFW_KEY_LEFT_CONTROL; - } - - if (wParam == VK_PROCESSKEY) - { - // IME notifies that keys have been filtered by setting the virtual - // key-code to VK_PROCESSKEY - return _GLFW_KEY_INVALID; - } - - return _glfw.win32.publicKeys[HIWORD(lParam) & 0x1FF]; -} - -// Make the specified window and its video mode active on its monitor -// -static GLFWbool acquireMonitor(_GLFWwindow* window) -{ - GLFWvidmode mode; - GLFWbool status; - int xpos, ypos; - - status = _glfwSetVideoModeWin32(window->monitor, &window->videoMode); - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - SetWindowPos(window->win32.handle, HWND_TOPMOST, - xpos, ypos, mode.width, mode.height, - SWP_NOACTIVATE | SWP_NOCOPYBITS); - - _glfwInputMonitorWindowChange(window->monitor, window); - return status; -} - -// Remove the window and restore the original video mode -// -static void releaseMonitor(_GLFWwindow* window) -{ - if (window->monitor->window != window) - return; - - _glfwInputMonitorWindowChange(window->monitor, NULL); - _glfwRestoreVideoModeWin32(window->monitor); -} - -// Window callback function (handles window messages) -// -static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, - WPARAM wParam, LPARAM lParam) -{ - _GLFWwindow* window = GetPropW(hWnd, L"GLFW"); - if (!window) - { - // This is the message handling for the hidden helper window - - switch (uMsg) - { - case WM_DEVICECHANGE: - { - if (wParam == DBT_DEVNODES_CHANGED) - { - _glfwInputMonitorChange(); - return TRUE; - } - else if (wParam == DBT_DEVICEARRIVAL) - { - DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam; - if (dbh) - { - if (dbh->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) - _glfwDetectJoystickConnectionWin32(); - } - } - else if (wParam == DBT_DEVICEREMOVECOMPLETE) - { - DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam; - if (dbh) - { - if (dbh->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) - _glfwDetectJoystickDisconnectionWin32(); - } - } - - break; - } - } - - return DefWindowProcW(hWnd, uMsg, wParam, lParam); - } - - switch (uMsg) - { - case WM_SETFOCUS: - { - _glfwInputWindowFocus(window, GLFW_TRUE); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_DISABLED); - - return 0; - } - - case WM_KILLFOCUS: - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_NORMAL); - - if (window->monitor && window->autoIconify) - _glfwPlatformIconifyWindow(window); - - _glfwInputWindowFocus(window, GLFW_FALSE); - return 0; - } - - case WM_SYSCOMMAND: - { - switch (wParam & 0xfff0) - { - case SC_SCREENSAVE: - case SC_MONITORPOWER: - { - if (window->monitor) - { - // We are running in full screen mode, so disallow - // screen saver and screen blanking - return 0; - } - else - break; - } - - // User trying to access application menu using ALT? - case SC_KEYMENU: - return 0; - } - break; - } - - case WM_CLOSE: - { - _glfwInputWindowCloseRequest(window); - return 0; - } - - case WM_CHAR: - case WM_SYSCHAR: - case WM_UNICHAR: - { - const GLFWbool plain = (uMsg != WM_SYSCHAR); - - if (uMsg == WM_UNICHAR && wParam == UNICODE_NOCHAR) - { - // WM_UNICHAR is not sent by Windows, but is sent by some - // third-party input method engine - // Returning TRUE here announces support for this message - return TRUE; - } - - _glfwInputChar(window, (unsigned int) wParam, getKeyMods(), plain); - return 0; - } - - case WM_KEYDOWN: - case WM_SYSKEYDOWN: - case WM_KEYUP: - case WM_SYSKEYUP: - { - const int key = translateKey(wParam, lParam); - const int scancode = (lParam >> 16) & 0x1ff; - const int action = ((lParam >> 31) & 1) ? GLFW_RELEASE : GLFW_PRESS; - const int mods = getKeyMods(); - - if (key == _GLFW_KEY_INVALID) - break; - - if (action == GLFW_RELEASE && wParam == VK_SHIFT) - { - // Release both Shift keys on Shift up event, as only one event - // is sent even if both keys are released - _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, scancode, action, mods); - _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, scancode, action, mods); - } - else if (wParam == VK_SNAPSHOT) - { - // Key down is not reported for the Print Screen key - _glfwInputKey(window, key, scancode, GLFW_PRESS, mods); - _glfwInputKey(window, key, scancode, GLFW_RELEASE, mods); - } - else - _glfwInputKey(window, key, scancode, action, mods); - - break; - } - - case WM_LBUTTONDOWN: - case WM_RBUTTONDOWN: - case WM_MBUTTONDOWN: - case WM_XBUTTONDOWN: - case WM_LBUTTONUP: - case WM_RBUTTONUP: - case WM_MBUTTONUP: - case WM_XBUTTONUP: - { - int button, action; - - if (uMsg == WM_LBUTTONDOWN || uMsg == WM_LBUTTONUP) - button = GLFW_MOUSE_BUTTON_LEFT; - else if (uMsg == WM_RBUTTONDOWN || uMsg == WM_RBUTTONUP) - button = GLFW_MOUSE_BUTTON_RIGHT; - else if (uMsg == WM_MBUTTONDOWN || uMsg == WM_MBUTTONUP) - button = GLFW_MOUSE_BUTTON_MIDDLE; - else if (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) - button = GLFW_MOUSE_BUTTON_4; - else - button = GLFW_MOUSE_BUTTON_5; - - if (uMsg == WM_LBUTTONDOWN || uMsg == WM_RBUTTONDOWN || - uMsg == WM_MBUTTONDOWN || uMsg == WM_XBUTTONDOWN) - { - action = GLFW_PRESS; - SetCapture(hWnd); - } - else - { - action = GLFW_RELEASE; - ReleaseCapture(); - } - - _glfwInputMouseClick(window, button, action, getKeyMods()); - - if (uMsg == WM_XBUTTONDOWN || uMsg == WM_XBUTTONUP) - return TRUE; - - return 0; - } - - case WM_MOUSEMOVE: - { - const int x = GET_X_LPARAM(lParam); - const int y = GET_Y_LPARAM(lParam); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - const int dx = x - window->win32.lastCursorPosX; - const int dy = y - window->win32.lastCursorPosY; - - if (_glfw.win32.disabledCursorWindow != window) - break; - - _glfwInputCursorPos(window, - window->virtualCursorPosX + dx, - window->virtualCursorPosY + dy); - } - else - _glfwInputCursorPos(window, x, y); - - window->win32.lastCursorPosX = x; - window->win32.lastCursorPosY = y; - - if (!window->win32.cursorTracked) - { - TRACKMOUSEEVENT tme; - ZeroMemory(&tme, sizeof(tme)); - tme.cbSize = sizeof(tme); - tme.dwFlags = TME_LEAVE; - tme.hwndTrack = window->win32.handle; - TrackMouseEvent(&tme); - - window->win32.cursorTracked = GLFW_TRUE; - _glfwInputCursorEnter(window, GLFW_TRUE); - } - - return 0; - } - - case WM_MOUSELEAVE: - { - window->win32.cursorTracked = GLFW_FALSE; - _glfwInputCursorEnter(window, GLFW_FALSE); - return 0; - } - - case WM_MOUSEWHEEL: - { - _glfwInputScroll(window, 0.0, (SHORT) HIWORD(wParam) / (double) WHEEL_DELTA); - return 0; - } - - case WM_MOUSEHWHEEL: - { - // This message is only sent on Windows Vista and later - // NOTE: The X-axis is inverted for consistency with OS X and X11. - _glfwInputScroll(window, -((SHORT) HIWORD(wParam) / (double) WHEEL_DELTA), 0.0); - return 0; - } - - case WM_ENTERSIZEMOVE: - case WM_ENTERMENULOOP: - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_NORMAL); - - break; - } - - case WM_EXITSIZEMOVE: - case WM_EXITMENULOOP: - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_DISABLED); - - break; - } - - case WM_SIZE: - { - const GLFWbool iconified = - !window->win32.iconified && wParam == SIZE_MINIMIZED; - const GLFWbool restored = - window->win32.iconified && - (wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED); - - if (_glfw.win32.disabledCursorWindow == window) - updateClipRect(window); - - if (iconified) - _glfwInputWindowIconify(window, GLFW_TRUE); - else if (restored) - _glfwInputWindowIconify(window, GLFW_FALSE); - - _glfwInputFramebufferSize(window, LOWORD(lParam), HIWORD(lParam)); - _glfwInputWindowSize(window, LOWORD(lParam), HIWORD(lParam)); - - if (iconified) - { - window->win32.iconified = GLFW_TRUE; - if (window->monitor) - releaseMonitor(window); - } - else if (restored) - { - window->win32.iconified = GLFW_FALSE; - if (window->monitor) - acquireMonitor(window); - } - - return 0; - } - - case WM_MOVE: - { - if (_glfw.win32.disabledCursorWindow == window) - updateClipRect(window); - - // NOTE: This cannot use LOWORD/HIWORD recommended by MSDN, as - // those macros do not handle negative window positions correctly - _glfwInputWindowPos(window, - GET_X_LPARAM(lParam), - GET_Y_LPARAM(lParam)); - return 0; - } - - case WM_SIZING: - { - if (window->numer == GLFW_DONT_CARE || - window->denom == GLFW_DONT_CARE) - { - break; - } - - applyAspectRatio(window, (int) wParam, (RECT*) lParam); - return TRUE; - } - - case WM_GETMINMAXINFO: - { - int xoff, yoff; - MINMAXINFO* mmi = (MINMAXINFO*) lParam; - - if (window->monitor) - break; - - getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), - 0, 0, &xoff, &yoff); - - if (window->minwidth != GLFW_DONT_CARE && - window->minheight != GLFW_DONT_CARE) - { - mmi->ptMinTrackSize.x = window->minwidth + xoff; - mmi->ptMinTrackSize.y = window->minheight + yoff; - } - - if (window->maxwidth != GLFW_DONT_CARE && - window->maxheight != GLFW_DONT_CARE) - { - mmi->ptMaxTrackSize.x = window->maxwidth + xoff; - mmi->ptMaxTrackSize.y = window->maxheight + yoff; - } - - return 0; - } - - case WM_PAINT: - { - _glfwInputWindowDamage(window); - break; - } - - case WM_ERASEBKGND: - { - return TRUE; - } - - case WM_SETCURSOR: - { - if (LOWORD(lParam) == HTCLIENT) - { - updateCursorImage(window); - return TRUE; - } - - break; - } - - case WM_DPICHANGED: - { - RECT* rect = (RECT*) lParam; - SetWindowPos(window->win32.handle, - HWND_TOP, - rect->left, - rect->top, - rect->right - rect->left, - rect->bottom - rect->top, - SWP_NOACTIVATE | SWP_NOZORDER); - break; - } - - case WM_DROPFILES: - { - HDROP drop = (HDROP) wParam; - POINT pt; - int i; - - const int count = DragQueryFileW(drop, 0xffffffff, NULL, 0); - char** paths = calloc(count, sizeof(char*)); - - // Move the mouse to the position of the drop - DragQueryPoint(drop, &pt); - _glfwInputCursorPos(window, pt.x, pt.y); - - for (i = 0; i < count; i++) - { - const UINT length = DragQueryFileW(drop, i, NULL, 0); - WCHAR* buffer = calloc(length + 1, sizeof(WCHAR)); - - DragQueryFileW(drop, i, buffer, length + 1); - paths[i] = _glfwCreateUTF8FromWideStringWin32(buffer); - - free(buffer); - } - - _glfwInputDrop(window, count, (const char**) paths); - - for (i = 0; i < count; i++) - free(paths[i]); - free(paths); - - DragFinish(drop); - return 0; - } - } - - return DefWindowProcW(hWnd, uMsg, wParam, lParam); -} - -// Creates the GLFW window -// -static int createNativeWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig) -{ - int xpos, ypos, fullWidth, fullHeight; - WCHAR* wideTitle; - DWORD style = getWindowStyle(window); - DWORD exStyle = getWindowExStyle(window); - - if (window->monitor) - { - GLFWvidmode mode; - - // NOTE: This window placement is temporary and approximate, as the - // correct position and size cannot be known until the monitor - // video mode has been set - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - _glfwPlatformGetVideoMode(window->monitor, &mode); - fullWidth = mode.width; - fullHeight = mode.height; - } - else - { - xpos = CW_USEDEFAULT; - ypos = CW_USEDEFAULT; - - if (wndconfig->maximized) - style |= WS_MAXIMIZE; - - getFullWindowSize(style, exStyle, - wndconfig->width, wndconfig->height, - &fullWidth, &fullHeight); - } - - wideTitle = _glfwCreateWideStringFromUTF8Win32(wndconfig->title); - if (!wideTitle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert window title to UTF-16"); - return GLFW_FALSE; - } - - window->win32.handle = CreateWindowExW(exStyle, - _GLFW_WNDCLASSNAME, - wideTitle, - style, - xpos, ypos, - fullWidth, fullHeight, - NULL, // No parent window - NULL, // No window menu - GetModuleHandleW(NULL), - NULL); - - free(wideTitle); - - if (!window->win32.handle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to create window"); - return GLFW_FALSE; - } - - SetPropW(window->win32.handle, L"GLFW", window); - - if (_glfw_ChangeWindowMessageFilterEx) - { - _glfw_ChangeWindowMessageFilterEx(window->win32.handle, - WM_DROPFILES, MSGFLT_ALLOW, NULL); - _glfw_ChangeWindowMessageFilterEx(window->win32.handle, - WM_COPYDATA, MSGFLT_ALLOW, NULL); - _glfw_ChangeWindowMessageFilterEx(window->win32.handle, - WM_COPYGLOBALDATA, MSGFLT_ALLOW, NULL); - } - - DragAcceptFiles(window->win32.handle, TRUE); - - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Registers the GLFW window class -// -GLFWbool _glfwRegisterWindowClassWin32(void) -{ - WNDCLASSEXW wc; - - ZeroMemory(&wc, sizeof(wc)); - wc.cbSize = sizeof(wc); - wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; - wc.lpfnWndProc = (WNDPROC) windowProc; - wc.hInstance = GetModuleHandleW(NULL); - wc.hCursor = LoadCursorW(NULL, IDC_ARROW); - wc.lpszClassName = _GLFW_WNDCLASSNAME; - - // Load user-provided icon if available - wc.hIcon = LoadImageW(GetModuleHandleW(NULL), - L"GLFW_ICON", IMAGE_ICON, - 0, 0, LR_DEFAULTSIZE | LR_SHARED); - if (!wc.hIcon) - { - // No user-provided icon found, load default icon - wc.hIcon = LoadImageW(NULL, - IDI_APPLICATION, IMAGE_ICON, - 0, 0, LR_DEFAULTSIZE | LR_SHARED); - } - - if (!RegisterClassExW(&wc)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to register window class"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -// Unregisters the GLFW window class -// -void _glfwUnregisterWindowClassWin32(void) -{ - UnregisterClassW(_GLFW_WNDCLASSNAME, GetModuleHandleW(NULL)); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!createNativeWindow(window, wndconfig)) - return GLFW_FALSE; - - if (ctxconfig->client != GLFW_NO_API) - { - if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) - { - if (!_glfwInitWGL()) - return GLFW_FALSE; - if (!_glfwCreateContextWGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else - { - if (!_glfwInitEGL()) - return GLFW_FALSE; - if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - } - - if (window->monitor) - { - _glfwPlatformShowWindow(window); - _glfwPlatformFocusWindow(window); - if (!acquireMonitor(window)) - return GLFW_FALSE; - - centerCursor(window); - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (window->monitor) - releaseMonitor(window); - - if (window->context.destroy) - window->context.destroy(window); - - if (_glfw.win32.disabledCursorWindow == window) - _glfw.win32.disabledCursorWindow = NULL; - - if (window->win32.handle) - { - RemovePropW(window->win32.handle, L"GLFW"); - DestroyWindow(window->win32.handle); - window->win32.handle = NULL; - } - - if (window->win32.bigIcon) - DestroyIcon(window->win32.bigIcon); - - if (window->win32.smallIcon) - DestroyIcon(window->win32.smallIcon); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - WCHAR* wideTitle = _glfwCreateWideStringFromUTF8Win32(title); - if (!wideTitle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert window title to UTF-16"); - return; - } - - SetWindowTextW(window->win32.handle, wideTitle); - free(wideTitle); -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - HICON bigIcon = NULL, smallIcon = NULL; - - if (count) - { - const GLFWimage* bigImage = chooseImage(count, images, - GetSystemMetrics(SM_CXICON), - GetSystemMetrics(SM_CYICON)); - const GLFWimage* smallImage = chooseImage(count, images, - GetSystemMetrics(SM_CXSMICON), - GetSystemMetrics(SM_CYSMICON)); - - bigIcon = createIcon(bigImage, 0, 0, GLFW_TRUE); - smallIcon = createIcon(smallImage, 0, 0, GLFW_TRUE); - } - else - { - bigIcon = (HICON) GetClassLongPtrW(window->win32.handle, GCLP_HICON); - smallIcon = (HICON) GetClassLongPtrW(window->win32.handle, GCLP_HICONSM); - } - - SendMessage(window->win32.handle, WM_SETICON, ICON_BIG, (LPARAM) bigIcon); - SendMessage(window->win32.handle, WM_SETICON, ICON_SMALL, (LPARAM) smallIcon); - - if (window->win32.bigIcon) - DestroyIcon(window->win32.bigIcon); - - if (window->win32.smallIcon) - DestroyIcon(window->win32.smallIcon); - - if (count) - { - window->win32.bigIcon = bigIcon; - window->win32.smallIcon = smallIcon; - } -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - POINT pos = { 0, 0 }; - ClientToScreen(window->win32.handle, &pos); - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = pos.y; -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - RECT rect = { xpos, ypos, xpos, ypos }; - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, NULL, rect.left, rect.top, 0, 0, - SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSIZE); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - RECT area; - GetClientRect(window->win32.handle, &area); - - if (width) - *width = area.right; - if (height) - *height = area.bottom; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->monitor) - { - if (window->monitor->window == window) - acquireMonitor(window); - } - else - { - RECT rect = { 0, 0, width, height }; - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, HWND_TOP, - 0, 0, rect.right - rect.left, rect.bottom - rect.top, - SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOZORDER); - } -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - RECT area; - - if ((minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) && - (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE)) - { - return; - } - - GetWindowRect(window->win32.handle, &area); - MoveWindow(window->win32.handle, - area.left, area.top, - area.right - area.left, - area.bottom - area.top, TRUE); -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - RECT area; - - if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE) - return; - - GetWindowRect(window->win32.handle, &area); - applyAspectRatio(window, WMSZ_BOTTOMRIGHT, &area); - MoveWindow(window->win32.handle, - area.left, area.top, - area.right - area.left, - area.bottom - area.top, TRUE); -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - _glfwPlatformGetWindowSize(window, width, height); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - RECT rect; - int width, height; - - _glfwPlatformGetWindowSize(window, &width, &height); - SetRect(&rect, 0, 0, width, height); - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - - if (left) - *left = -rect.left; - if (top) - *top = -rect.top; - if (right) - *right = rect.right - width; - if (bottom) - *bottom = rect.bottom - height; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_MINIMIZE); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_RESTORE); -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_MAXIMIZE); -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_SHOW); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_HIDE); -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - BringWindowToTop(window->win32.handle); - SetForegroundWindow(window->win32.handle); - SetFocus(window->win32.handle); -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - if (window->monitor == monitor) - { - if (monitor) - { - if (monitor->window == window) - acquireMonitor(window); - } - else - { - RECT rect = { xpos, ypos, xpos + width, ypos + height }; - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, HWND_TOP, - rect.left, rect.top, - rect.right - rect.left, rect.bottom - rect.top, - SWP_NOCOPYBITS | SWP_NOACTIVATE | SWP_NOZORDER); - } - - return; - } - - if (window->monitor) - releaseMonitor(window); - - _glfwInputWindowMonitorChange(window, monitor); - - if (monitor) - { - GLFWvidmode mode; - DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); - UINT flags = SWP_SHOWWINDOW | SWP_NOACTIVATE | SWP_NOCOPYBITS; - - if (window->decorated) - { - style &= ~WS_OVERLAPPEDWINDOW; - style |= getWindowStyle(window); - SetWindowLongW(window->win32.handle, GWL_STYLE, style); - - flags |= SWP_FRAMECHANGED; - } - - _glfwPlatformGetVideoMode(monitor, &mode); - _glfwPlatformGetMonitorPos(monitor, &xpos, &ypos); - - SetWindowPos(window->win32.handle, HWND_TOPMOST, - xpos, ypos, mode.width, mode.height, - flags); - - acquireMonitor(window); - } - else - { - HWND after; - RECT rect = { xpos, ypos, xpos + width, ypos + height }; - DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); - UINT flags = SWP_NOACTIVATE | SWP_NOCOPYBITS; - - if (window->decorated) - { - style &= ~WS_POPUP; - style |= getWindowStyle(window); - SetWindowLongW(window->win32.handle, GWL_STYLE, style); - - flags |= SWP_FRAMECHANGED; - } - - if (window->floating) - after = HWND_TOPMOST; - else - after = HWND_NOTOPMOST; - - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, after, - rect.left, rect.top, - rect.right - rect.left, rect.bottom - rect.top, - flags); - } -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return window->win32.handle == GetActiveWindow(); -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - return IsIconic(window->win32.handle); -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return IsWindowVisible(window->win32.handle); -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - return IsZoomed(window->win32.handle); -} - -void _glfwPlatformPollEvents(void) -{ - MSG msg; - HWND handle; - _GLFWwindow* window; - - while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) - { - if (msg.message == WM_QUIT) - { - // Treat WM_QUIT as a close on all windows - // While GLFW does not itself post WM_QUIT, other processes may post - // it to this one, for example Task Manager - - window = _glfw.windowListHead; - while (window) - { - _glfwInputWindowCloseRequest(window); - window = window->next; - } - } - else - { - TranslateMessage(&msg); - DispatchMessageW(&msg); - } - } - - handle = GetActiveWindow(); - if (handle) - { - // LSHIFT/RSHIFT fixup (keys tend to "stick" without this fix) - // This is the only async event handling in GLFW, but it solves some - // nasty problems - window = GetPropW(handle, L"GLFW"); - if (window) - { - const int mods = getAsyncKeyMods(); - - // Get current state of left and right shift keys - const int lshiftDown = (GetAsyncKeyState(VK_LSHIFT) >> 15) & 1; - const int rshiftDown = (GetAsyncKeyState(VK_RSHIFT) >> 15) & 1; - - // See if this differs from our belief of what has happened - // (we only have to check for lost key up events) - if (!lshiftDown && window->keys[GLFW_KEY_LEFT_SHIFT] == 1) - _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, 0, GLFW_RELEASE, mods); - - if (!rshiftDown && window->keys[GLFW_KEY_RIGHT_SHIFT] == 1) - _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, 0, GLFW_RELEASE, mods); - } - } - - window = _glfw.win32.disabledCursorWindow; - if (window) - { - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - - // NOTE: Re-center the cursor only if it has moved since the last call, - // to avoid breaking glfwWaitEvents with WM_MOUSEMOVE - if (window->win32.lastCursorPosX != width / 2 || - window->win32.lastCursorPosY != height / 2) - { - _glfwPlatformSetCursorPos(window, width / 2, height / 2); - } - } -} - -void _glfwPlatformWaitEvents(void) -{ - WaitMessage(); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLEVENTS); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - _GLFWwindow* window = _glfw.windowListHead; - PostMessage(window->win32.handle, WM_NULL, 0, 0); -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - POINT pos; - - if (GetCursorPos(&pos)) - { - ScreenToClient(window->win32.handle, &pos); - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = pos.y; - } -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos) -{ - POINT pos = { (int) xpos, (int) ypos }; - - // Store the new position so it can be recognized later - window->win32.lastCursorPosX = pos.x; - window->win32.lastCursorPosY = pos.y; - - ClientToScreen(window->win32.handle, &pos); - SetCursorPos(pos.x, pos.y); -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - if (mode == GLFW_CURSOR_DISABLED) - { - _glfw.win32.disabledCursorWindow = window; - _glfwPlatformGetCursorPos(window, - &_glfw.win32.restoreCursorPosX, - &_glfw.win32.restoreCursorPosY); - centerCursor(window); - updateClipRect(window); - } - else if (_glfw.win32.disabledCursorWindow == window) - { - _glfw.win32.disabledCursorWindow = NULL; - updateClipRect(NULL); - _glfwPlatformSetCursorPos(window, - _glfw.win32.restoreCursorPosX, - _glfw.win32.restoreCursorPosY); - } - - if (cursorInClientArea(window)) - updateCursorImage(window); -} - -const char* _glfwPlatformGetKeyName(int key, int scancode) -{ - WCHAR name[16]; - - if (key != GLFW_KEY_UNKNOWN) - scancode = _glfw.win32.nativeKeys[key]; - - if (!_glfwIsPrintable(_glfw.win32.publicKeys[scancode])) - return NULL; - - if (!GetKeyNameTextW(scancode << 16, name, sizeof(name) / sizeof(WCHAR))) - return NULL; - - if (!WideCharToMultiByte(CP_UTF8, 0, name, -1, - _glfw.win32.keyName, - sizeof(_glfw.win32.keyName), - NULL, NULL)) - { - return NULL; - } - - return _glfw.win32.keyName; -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - cursor->win32.handle = (HCURSOR) createIcon(image, xhot, yhot, GLFW_FALSE); - if (!cursor->win32.handle) - return GLFW_FALSE; - - return GLFW_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - cursor->win32.handle = - CopyCursor(LoadCursorW(NULL, translateCursorShape(shape))); - if (!cursor->win32.handle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to create standard cursor"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->win32.handle) - DestroyIcon((HICON) cursor->win32.handle); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (cursorInClientArea(window)) - updateCursorImage(window); -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - int characterCount; - HANDLE object; - WCHAR* buffer; - - characterCount = MultiByteToWideChar(CP_UTF8, 0, string, -1, NULL, 0); - if (!characterCount) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert clipboard string to UTF-16"); - return; - } - - object = GlobalAlloc(GMEM_MOVEABLE, characterCount * sizeof(WCHAR)); - if (!object) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to allocate global handle for clipboard"); - return; - } - - buffer = GlobalLock(object); - if (!buffer) - { - GlobalFree(object); - - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to lock global handle"); - return; - } - - MultiByteToWideChar(CP_UTF8, 0, string, -1, buffer, characterCount); - GlobalUnlock(object); - - if (!OpenClipboard(_glfw.win32.helperWindowHandle)) - { - GlobalFree(object); - - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to open clipboard"); - return; - } - - EmptyClipboard(); - SetClipboardData(CF_UNICODETEXT, object); - CloseClipboard(); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - HANDLE object; - WCHAR* buffer; - - if (!OpenClipboard(_glfw.win32.helperWindowHandle)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to open clipboard"); - return NULL; - } - - object = GetClipboardData(CF_UNICODETEXT); - if (!object) - { - CloseClipboard(); - - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "Win32: Failed to convert clipboard to string"); - return NULL; - } - - buffer = GlobalLock(object); - if (!buffer) - { - CloseClipboard(); - - _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to lock global handle"); - return NULL; - } - - free(_glfw.win32.clipboardString); - _glfw.win32.clipboardString = - _glfwCreateUTF8FromWideStringWin32(buffer); - - GlobalUnlock(object); - CloseClipboard(); - - if (!_glfw.win32.clipboardString) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to convert wide string to UTF-8"); - return NULL; - } - - return _glfw.win32.clipboardString; -} - -char** _glfwPlatformGetRequiredInstanceExtensions(uint32_t* count) -{ - char** extensions; - - *count = 0; - - if (!_glfw.vk.KHR_win32_surface) - return NULL; - - extensions = calloc(2, sizeof(char*)); - extensions[0] = strdup("VK_KHR_surface"); - extensions[1] = strdup("VK_KHR_win32_surface"); - - *count = 2; - return extensions; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR vkGetPhysicalDeviceWin32PresentationSupportKHR = - (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) - vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceWin32PresentationSupportKHR"); - if (!vkGetPhysicalDeviceWin32PresentationSupportKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); - return GLFW_FALSE; - } - - return vkGetPhysicalDeviceWin32PresentationSupportKHR(device, queuefamily); -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - VkResult err; - VkWin32SurfaceCreateInfoKHR sci; - PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR; - - vkCreateWin32SurfaceKHR = (PFN_vkCreateWin32SurfaceKHR) - vkGetInstanceProcAddr(instance, "vkCreateWin32SurfaceKHR"); - if (!vkCreateWin32SurfaceKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR; - sci.hinstance = GetModuleHandle(NULL); - sci.hwnd = window->win32.handle; - - err = vkCreateWin32SurfaceKHR(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to create Vulkan surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI HWND glfwGetWin32Window(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->win32.handle; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/window.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/window.c deleted file mode 100644 index 5e74e6e..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/window.c +++ /dev/null @@ -1,904 +0,0 @@ -//======================================================================== -// GLFW 3.2 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// Copyright (c) 2012 Torsten Walluhn -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused) -{ - if (focused) - { - if (window->callbacks.focus) - window->callbacks.focus((GLFWwindow*) window, focused); - } - else - { - int i; - - if (window->callbacks.focus) - window->callbacks.focus((GLFWwindow*) window, focused); - - // Release all pressed keyboard keys - for (i = 0; i <= GLFW_KEY_LAST; i++) - { - if (window->keys[i] == GLFW_PRESS) - _glfwInputKey(window, i, 0, GLFW_RELEASE, 0); - } - - // Release all pressed mouse buttons - for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) - { - if (window->mouseButtons[i] == GLFW_PRESS) - _glfwInputMouseClick(window, i, GLFW_RELEASE, 0); - } - } -} - -void _glfwInputWindowPos(_GLFWwindow* window, int x, int y) -{ - if (window->callbacks.pos) - window->callbacks.pos((GLFWwindow*) window, x, y); -} - -void _glfwInputWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->callbacks.size) - window->callbacks.size((GLFWwindow*) window, width, height); -} - -void _glfwInputWindowIconify(_GLFWwindow* window, GLFWbool iconified) -{ - if (window->callbacks.iconify) - window->callbacks.iconify((GLFWwindow*) window, iconified); -} - -void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height) -{ - if (window->callbacks.fbsize) - window->callbacks.fbsize((GLFWwindow*) window, width, height); -} - -void _glfwInputWindowDamage(_GLFWwindow* window) -{ - if (window->callbacks.refresh) - window->callbacks.refresh((GLFWwindow*) window); -} - -void _glfwInputWindowCloseRequest(_GLFWwindow* window) -{ - window->closed = GLFW_TRUE; - - if (window->callbacks.close) - window->callbacks.close((GLFWwindow*) window); -} - -void _glfwInputWindowMonitorChange(_GLFWwindow* window, _GLFWmonitor* monitor) -{ - window->monitor = monitor; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, - const char* title, - GLFWmonitor* monitor, - GLFWwindow* share) -{ - _GLFWfbconfig fbconfig; - _GLFWctxconfig ctxconfig; - _GLFWwndconfig wndconfig; - _GLFWwindow* window; - _GLFWwindow* previous; - - assert(title != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (width <= 0 || height <= 0) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid window size %ix%i", - width, height); - - return NULL; - } - - fbconfig = _glfw.hints.framebuffer; - ctxconfig = _glfw.hints.context; - wndconfig = _glfw.hints.window; - - wndconfig.width = width; - wndconfig.height = height; - wndconfig.title = title; - ctxconfig.share = (_GLFWwindow*) share; - - if (ctxconfig.share) - { - if (ctxconfig.client == GLFW_NO_API || - ctxconfig.share->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return NULL; - } - } - - if (!_glfwIsValidContextConfig(&ctxconfig)) - return NULL; - - window = calloc(1, sizeof(_GLFWwindow)); - window->next = _glfw.windowListHead; - _glfw.windowListHead = window; - - window->videoMode.width = width; - window->videoMode.height = height; - window->videoMode.redBits = fbconfig.redBits; - window->videoMode.greenBits = fbconfig.greenBits; - window->videoMode.blueBits = fbconfig.blueBits; - window->videoMode.refreshRate = _glfw.hints.refreshRate; - - window->monitor = (_GLFWmonitor*) monitor; - window->resizable = wndconfig.resizable; - window->decorated = wndconfig.decorated; - window->autoIconify = wndconfig.autoIconify; - window->floating = wndconfig.floating; - window->cursorMode = GLFW_CURSOR_NORMAL; - - window->minwidth = GLFW_DONT_CARE; - window->minheight = GLFW_DONT_CARE; - window->maxwidth = GLFW_DONT_CARE; - window->maxheight = GLFW_DONT_CARE; - window->numer = GLFW_DONT_CARE; - window->denom = GLFW_DONT_CARE; - - // Save the currently current context so it can be restored later - previous = _glfwPlatformGetCurrentContext(); - if (ctxconfig.client != GLFW_NO_API) - glfwMakeContextCurrent(NULL); - - // Open the actual window and create its context - if (!_glfwPlatformCreateWindow(window, &wndconfig, &ctxconfig, &fbconfig)) - { - glfwMakeContextCurrent((GLFWwindow*) previous); - glfwDestroyWindow((GLFWwindow*) window); - return NULL; - } - - if (ctxconfig.client != GLFW_NO_API) - { - window->context.makeCurrent(window); - - // Retrieve the actual (as opposed to requested) context attributes - if (!_glfwRefreshContextAttribs(&ctxconfig)) - { - glfwMakeContextCurrent((GLFWwindow*) previous); - glfwDestroyWindow((GLFWwindow*) window); - return NULL; - } - - // Restore the previously current context (or NULL) - glfwMakeContextCurrent((GLFWwindow*) previous); - } - - if (!window->monitor) - { - if (wndconfig.visible) - { - _glfwPlatformShowWindow(window); - if (wndconfig.focused) - _glfwPlatformFocusWindow(window); - } - } - - return (GLFWwindow*) window; -} - -void glfwDefaultWindowHints(void) -{ - _GLFW_REQUIRE_INIT(); - - memset(&_glfw.hints, 0, sizeof(_glfw.hints)); - - // The default is OpenGL with minimum version 1.0 - _glfw.hints.context.client = GLFW_OPENGL_API; - _glfw.hints.context.source = GLFW_NATIVE_CONTEXT_API; - _glfw.hints.context.major = 1; - _glfw.hints.context.minor = 0; - - // The default is a focused, visible, resizable window with decorations - _glfw.hints.window.resizable = GLFW_TRUE; - _glfw.hints.window.visible = GLFW_TRUE; - _glfw.hints.window.decorated = GLFW_TRUE; - _glfw.hints.window.focused = GLFW_TRUE; - _glfw.hints.window.autoIconify = GLFW_TRUE; - - // The default is 24 bits of color, 24 bits of depth and 8 bits of stencil, - // double buffered - _glfw.hints.framebuffer.redBits = 8; - _glfw.hints.framebuffer.greenBits = 8; - _glfw.hints.framebuffer.blueBits = 8; - _glfw.hints.framebuffer.alphaBits = 8; - _glfw.hints.framebuffer.depthBits = 24; - _glfw.hints.framebuffer.stencilBits = 8; - _glfw.hints.framebuffer.doublebuffer = GLFW_TRUE; - - // The default is to select the highest available refresh rate - _glfw.hints.refreshRate = GLFW_DONT_CARE; -} - -GLFWAPI void glfwWindowHint(int hint, int value) -{ - _GLFW_REQUIRE_INIT(); - - switch (hint) - { - case GLFW_RED_BITS: - _glfw.hints.framebuffer.redBits = value; - break; - case GLFW_GREEN_BITS: - _glfw.hints.framebuffer.greenBits = value; - break; - case GLFW_BLUE_BITS: - _glfw.hints.framebuffer.blueBits = value; - break; - case GLFW_ALPHA_BITS: - _glfw.hints.framebuffer.alphaBits = value; - break; - case GLFW_DEPTH_BITS: - _glfw.hints.framebuffer.depthBits = value; - break; - case GLFW_STENCIL_BITS: - _glfw.hints.framebuffer.stencilBits = value; - break; - case GLFW_ACCUM_RED_BITS: - _glfw.hints.framebuffer.accumRedBits = value; - break; - case GLFW_ACCUM_GREEN_BITS: - _glfw.hints.framebuffer.accumGreenBits = value; - break; - case GLFW_ACCUM_BLUE_BITS: - _glfw.hints.framebuffer.accumBlueBits = value; - break; - case GLFW_ACCUM_ALPHA_BITS: - _glfw.hints.framebuffer.accumAlphaBits = value; - break; - case GLFW_AUX_BUFFERS: - _glfw.hints.framebuffer.auxBuffers = value; - break; - case GLFW_STEREO: - _glfw.hints.framebuffer.stereo = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_DOUBLEBUFFER: - _glfw.hints.framebuffer.doublebuffer = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_SAMPLES: - _glfw.hints.framebuffer.samples = value; - break; - case GLFW_SRGB_CAPABLE: - _glfw.hints.framebuffer.sRGB = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_RESIZABLE: - _glfw.hints.window.resizable = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_DECORATED: - _glfw.hints.window.decorated = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_FOCUSED: - _glfw.hints.window.focused = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_AUTO_ICONIFY: - _glfw.hints.window.autoIconify = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_FLOATING: - _glfw.hints.window.floating = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_MAXIMIZED: - _glfw.hints.window.maximized = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_VISIBLE: - _glfw.hints.window.visible = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_CLIENT_API: - _glfw.hints.context.client = value; - break; - case GLFW_CONTEXT_CREATION_API: - _glfw.hints.context.source = value; - break; - case GLFW_CONTEXT_VERSION_MAJOR: - _glfw.hints.context.major = value; - break; - case GLFW_CONTEXT_VERSION_MINOR: - _glfw.hints.context.minor = value; - break; - case GLFW_CONTEXT_ROBUSTNESS: - _glfw.hints.context.robustness = value; - break; - case GLFW_OPENGL_FORWARD_COMPAT: - _glfw.hints.context.forward = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_OPENGL_DEBUG_CONTEXT: - _glfw.hints.context.debug = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_CONTEXT_NO_ERROR: - _glfw.hints.context.noerror = value ? GLFW_TRUE : GLFW_FALSE; - break; - case GLFW_OPENGL_PROFILE: - _glfw.hints.context.profile = value; - break; - case GLFW_CONTEXT_RELEASE_BEHAVIOR: - _glfw.hints.context.release = value; - break; - case GLFW_REFRESH_RATE: - _glfw.hints.refreshRate = value; - break; - default: - _glfwInputError(GLFW_INVALID_ENUM, "Invalid window hint %i", hint); - break; - } -} - -GLFWAPI void glfwDestroyWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - - _GLFW_REQUIRE_INIT(); - - // Allow closing of NULL (to match the behavior of free) - if (window == NULL) - return; - - // Clear all callbacks to avoid exposing a half torn-down window object - memset(&window->callbacks, 0, sizeof(window->callbacks)); - - // The window's context must not be current on another thread when the - // window is destroyed - if (window == _glfwPlatformGetCurrentContext()) - glfwMakeContextCurrent(NULL); - - _glfwPlatformDestroyWindow(window); - - // Unlink window from global linked list - { - _GLFWwindow** prev = &_glfw.windowListHead; - - while (*prev != window) - prev = &((*prev)->next); - - *prev = window->next; - } - - free(window); -} - -GLFWAPI int glfwWindowShouldClose(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(0); - return window->closed; -} - -GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* handle, int value) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - window->closed = value; -} - -GLFWAPI void glfwSetWindowTitle(GLFWwindow* handle, const char* title) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - assert(title != NULL); - - _GLFW_REQUIRE_INIT(); - _glfwPlatformSetWindowTitle(window, title); -} - -GLFWAPI void glfwSetWindowIcon(GLFWwindow* handle, - int count, const GLFWimage* images) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - assert(count >= 0); - assert(count == 0 || images != NULL); - - _GLFW_REQUIRE_INIT(); - _glfwPlatformSetWindowIcon(window, count, images); -} - -GLFWAPI void glfwGetWindowPos(GLFWwindow* handle, int* xpos, int* ypos) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; - - _GLFW_REQUIRE_INIT(); - _glfwPlatformGetWindowPos(window, xpos, ypos); -} - -GLFWAPI void glfwSetWindowPos(GLFWwindow* handle, int xpos, int ypos) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - if (window->monitor) - return; - - _glfwPlatformSetWindowPos(window, xpos, ypos); -} - -GLFWAPI void glfwGetWindowSize(GLFWwindow* handle, int* width, int* height) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - if (width) - *width = 0; - if (height) - *height = 0; - - _GLFW_REQUIRE_INIT(); - _glfwPlatformGetWindowSize(window, width, height); -} - -GLFWAPI void glfwSetWindowSize(GLFWwindow* handle, int width, int height) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - window->videoMode.width = width; - window->videoMode.height = height; - - _glfwPlatformSetWindowSize(window, width, height); -} - -GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* handle, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - if (minwidth != GLFW_DONT_CARE && minheight != GLFW_DONT_CARE) - { - if (minwidth < 0 || minheight < 0) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid window minimum size %ix%i", - minwidth, minheight); - return; - } - } - - if (maxwidth != GLFW_DONT_CARE && maxheight != GLFW_DONT_CARE) - { - if (maxwidth < 0 || maxheight < 0 || - maxwidth < minwidth || maxheight < minheight) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid window maximum size %ix%i", - maxwidth, maxheight); - return; - } - } - - window->minwidth = minwidth; - window->minheight = minheight; - window->maxwidth = maxwidth; - window->maxheight = maxheight; - - if (window->monitor || !window->resizable) - return; - - _glfwPlatformSetWindowSizeLimits(window, - minwidth, minheight, - maxwidth, maxheight); -} - -GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* handle, int numer, int denom) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - if (numer != GLFW_DONT_CARE && denom != GLFW_DONT_CARE) - { - if (numer <= 0 || denom <= 0) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid window aspect ratio %i:%i", - numer, denom); - return; - } - } - - window->numer = numer; - window->denom = denom; - - if (window->monitor || !window->resizable) - return; - - _glfwPlatformSetWindowAspectRatio(window, numer, denom); -} - -GLFWAPI void glfwGetFramebufferSize(GLFWwindow* handle, int* width, int* height) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - if (width) - *width = 0; - if (height) - *height = 0; - - _GLFW_REQUIRE_INIT(); - _glfwPlatformGetFramebufferSize(window, width, height); -} - -GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* handle, - int* left, int* top, - int* right, int* bottom) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - if (left) - *left = 0; - if (top) - *top = 0; - if (right) - *right = 0; - if (bottom) - *bottom = 0; - - _GLFW_REQUIRE_INIT(); - _glfwPlatformGetWindowFrameSize(window, left, top, right, bottom); -} - -GLFWAPI void glfwIconifyWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - _glfwPlatformIconifyWindow(window); -} - -GLFWAPI void glfwRestoreWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - _glfwPlatformRestoreWindow(window); -} - -GLFWAPI void glfwMaximizeWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - _glfwPlatformMaximizeWindow(window); -} - -GLFWAPI void glfwShowWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - if (window->monitor) - return; - - _glfwPlatformShowWindow(window); - _glfwPlatformFocusWindow(window); -} - -GLFWAPI void glfwHideWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - if (window->monitor) - return; - - _glfwPlatformHideWindow(window); -} - -GLFWAPI void glfwFocusWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - _glfwPlatformFocusWindow(window); -} - -GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(0); - - switch (attrib) - { - case GLFW_FOCUSED: - return _glfwPlatformWindowFocused(window); - case GLFW_ICONIFIED: - return _glfwPlatformWindowIconified(window); - case GLFW_VISIBLE: - return _glfwPlatformWindowVisible(window); - case GLFW_MAXIMIZED: - return _glfwPlatformWindowMaximized(window); - case GLFW_RESIZABLE: - return window->resizable; - case GLFW_DECORATED: - return window->decorated; - case GLFW_FLOATING: - return window->floating; - case GLFW_CLIENT_API: - return window->context.client; - case GLFW_CONTEXT_CREATION_API: - return window->context.source; - case GLFW_CONTEXT_VERSION_MAJOR: - return window->context.major; - case GLFW_CONTEXT_VERSION_MINOR: - return window->context.minor; - case GLFW_CONTEXT_REVISION: - return window->context.revision; - case GLFW_CONTEXT_ROBUSTNESS: - return window->context.robustness; - case GLFW_OPENGL_FORWARD_COMPAT: - return window->context.forward; - case GLFW_OPENGL_DEBUG_CONTEXT: - return window->context.debug; - case GLFW_OPENGL_PROFILE: - return window->context.profile; - case GLFW_CONTEXT_RELEASE_BEHAVIOR: - return window->context.release; - case GLFW_CONTEXT_NO_ERROR: - return window->context.noerror; - } - - _glfwInputError(GLFW_INVALID_ENUM, "Invalid window attribute %i", attrib); - return 0; -} - -GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return (GLFWmonitor*) window->monitor; -} - -GLFWAPI void glfwSetWindowMonitor(GLFWwindow* wh, - GLFWmonitor* mh, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - _GLFWwindow* window = (_GLFWwindow*) wh; - _GLFWmonitor* monitor = (_GLFWmonitor*) mh; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - - if (width <= 0 || height <= 0) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid window size %ix%i", - width, height); - return; - } - - if (refreshRate < 0 && refreshRate != GLFW_DONT_CARE) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid refresh rate %i", - refreshRate); - return; - } - - window->videoMode.width = width; - window->videoMode.height = height; - window->videoMode.refreshRate = refreshRate; - - _glfwPlatformSetWindowMonitor(window, monitor, - xpos, ypos, width, height, - refreshRate); -} - -GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* handle, void* pointer) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT(); - window->userPointer = pointer; -} - -GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->userPointer; -} - -GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* handle, - GLFWwindowposfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.pos, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* handle, - GLFWwindowsizefun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.size, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* handle, - GLFWwindowclosefun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.close, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* handle, - GLFWwindowrefreshfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.refresh, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* handle, - GLFWwindowfocusfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.focus, cbfun); - return cbfun; -} - -GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* handle, - GLFWwindowiconifyfun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.iconify, cbfun); - return cbfun; -} - -GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* handle, - GLFWframebuffersizefun cbfun) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(window->callbacks.fbsize, cbfun); - return cbfun; -} - -GLFWAPI void glfwPollEvents(void) -{ - _GLFW_REQUIRE_INIT(); - _glfwPlatformPollEvents(); -} - -GLFWAPI void glfwWaitEvents(void) -{ - _GLFW_REQUIRE_INIT(); - - if (!_glfw.windowListHead) - return; - - _glfwPlatformWaitEvents(); -} - -GLFWAPI void glfwWaitEventsTimeout(double timeout) -{ - _GLFW_REQUIRE_INIT(); - - if (timeout != timeout || timeout < 0.0 || timeout > DBL_MAX) - { - _glfwInputError(GLFW_INVALID_VALUE, "Invalid time %f", timeout); - return; - } - - _glfwPlatformWaitEventsTimeout(timeout); -} - -GLFWAPI void glfwPostEmptyEvent(void) -{ - _GLFW_REQUIRE_INIT(); - - if (!_glfw.windowListHead) - return; - - _glfwPlatformPostEmptyEvent(); -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_init.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_init.c deleted file mode 100644 index 44f7d0c..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_init.c +++ /dev/null @@ -1,658 +0,0 @@ -//======================================================================== -// GLFW 3.2 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include -#include -#include -#include -#include - - -static inline int min(int n1, int n2) -{ - return n1 < n2 ? n1 : n2; -} - -static void pointerHandleEnter(void* data, - struct wl_pointer* pointer, - uint32_t serial, - struct wl_surface* surface, - wl_fixed_t sx, - wl_fixed_t sy) -{ - _GLFWwindow* window = wl_surface_get_user_data(surface); - - _glfw.wl.pointerSerial = serial; - _glfw.wl.pointerFocus = window; - - _glfwPlatformSetCursor(window, window->wl.currentCursor); - _glfwInputCursorEnter(window, GLFW_TRUE); -} - -static void pointerHandleLeave(void* data, - struct wl_pointer* pointer, - uint32_t serial, - struct wl_surface* surface) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - - if (!window) - return; - - _glfw.wl.pointerSerial = serial; - _glfw.wl.pointerFocus = NULL; - _glfwInputCursorEnter(window, GLFW_FALSE); -} - -static void pointerHandleMotion(void* data, - struct wl_pointer* pointer, - uint32_t time, - wl_fixed_t sx, - wl_fixed_t sy) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - - if (!window) - return; - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - return; - else - { - window->wl.cursorPosX = wl_fixed_to_double(sx); - window->wl.cursorPosY = wl_fixed_to_double(sy); - } - - _glfwInputCursorPos(window, - wl_fixed_to_double(sx), - wl_fixed_to_double(sy)); -} - -static void pointerHandleButton(void* data, - struct wl_pointer* wl_pointer, - uint32_t serial, - uint32_t time, - uint32_t button, - uint32_t state) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - int glfwButton; - - if (!window) - return; - - /* Makes left, right and middle 0, 1 and 2. Overall order follows evdev - * codes. */ - glfwButton = button - BTN_LEFT; - - _glfwInputMouseClick(window, - glfwButton, - state == WL_POINTER_BUTTON_STATE_PRESSED - ? GLFW_PRESS - : GLFW_RELEASE, - _glfw.wl.xkb.modifiers); -} - -static void pointerHandleAxis(void* data, - struct wl_pointer* wl_pointer, - uint32_t time, - uint32_t axis, - wl_fixed_t value) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - double scroll_factor; - double x, y; - - if (!window) - return; - - /* Wayland scroll events are in pointer motion coordinate space (think - * two finger scroll). The factor 10 is commonly used to convert to - * "scroll step means 1.0. */ - scroll_factor = 1.0/10.0; - - switch (axis) - { - case WL_POINTER_AXIS_HORIZONTAL_SCROLL: - x = wl_fixed_to_double(value) * scroll_factor; - y = 0.0; - break; - case WL_POINTER_AXIS_VERTICAL_SCROLL: - x = 0.0; - y = wl_fixed_to_double(value) * scroll_factor; - break; - default: - break; - } - - _glfwInputScroll(window, x, y); -} - -static const struct wl_pointer_listener pointerListener = { - pointerHandleEnter, - pointerHandleLeave, - pointerHandleMotion, - pointerHandleButton, - pointerHandleAxis, -}; - -static void keyboardHandleKeymap(void* data, - struct wl_keyboard* keyboard, - uint32_t format, - int fd, - uint32_t size) -{ - struct xkb_keymap* keymap; - struct xkb_state* state; - char* mapStr; - - if (format != WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1) - { - close(fd); - return; - } - - mapStr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); - if (mapStr == MAP_FAILED) { - close(fd); - return; - } - - keymap = xkb_map_new_from_string(_glfw.wl.xkb.context, - mapStr, - XKB_KEYMAP_FORMAT_TEXT_V1, - 0); - munmap(mapStr, size); - close(fd); - - if (!keymap) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to compile keymap"); - return; - } - - state = xkb_state_new(keymap); - if (!state) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to create XKB state"); - xkb_map_unref(keymap); - return; - } - - xkb_keymap_unref(_glfw.wl.xkb.keymap); - xkb_state_unref(_glfw.wl.xkb.state); - _glfw.wl.xkb.keymap = keymap; - _glfw.wl.xkb.state = state; - - _glfw.wl.xkb.control_mask = - 1 << xkb_map_mod_get_index(_glfw.wl.xkb.keymap, "Control"); - _glfw.wl.xkb.alt_mask = - 1 << xkb_map_mod_get_index(_glfw.wl.xkb.keymap, "Mod1"); - _glfw.wl.xkb.shift_mask = - 1 << xkb_map_mod_get_index(_glfw.wl.xkb.keymap, "Shift"); - _glfw.wl.xkb.super_mask = - 1 << xkb_map_mod_get_index(_glfw.wl.xkb.keymap, "Mod4"); -} - -static void keyboardHandleEnter(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - struct wl_surface* surface, - struct wl_array* keys) -{ - _GLFWwindow* window = wl_surface_get_user_data(surface); - - _glfw.wl.keyboardFocus = window; - _glfwInputWindowFocus(window, GLFW_TRUE); -} - -static void keyboardHandleLeave(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - struct wl_surface* surface) -{ - _GLFWwindow* window = _glfw.wl.keyboardFocus; - - if (!window) - return; - - _glfw.wl.keyboardFocus = NULL; - _glfwInputWindowFocus(window, GLFW_FALSE); -} - -static int toGLFWKeyCode(uint32_t key) -{ - if (key < sizeof(_glfw.wl.publicKeys) / sizeof(_glfw.wl.publicKeys[0])) - return _glfw.wl.publicKeys[key]; - - return GLFW_KEY_UNKNOWN; -} - -static void keyboardHandleKey(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - uint32_t time, - uint32_t key, - uint32_t state) -{ - uint32_t code, num_syms; - long cp; - int keyCode; - int action; - const xkb_keysym_t *syms; - _GLFWwindow* window = _glfw.wl.keyboardFocus; - - if (!window) - return; - - keyCode = toGLFWKeyCode(key); - action = state == WL_KEYBOARD_KEY_STATE_PRESSED - ? GLFW_PRESS : GLFW_RELEASE; - - _glfwInputKey(window, keyCode, key, action, - _glfw.wl.xkb.modifiers); - - code = key + 8; - num_syms = xkb_key_get_syms(_glfw.wl.xkb.state, code, &syms); - - if (num_syms == 1) - { - cp = _glfwKeySym2Unicode(syms[0]); - if (cp != -1) - { - const int mods = _glfw.wl.xkb.modifiers; - const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); - _glfwInputChar(window, cp, mods, plain); - } - } -} - -static void keyboardHandleModifiers(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - uint32_t modsDepressed, - uint32_t modsLatched, - uint32_t modsLocked, - uint32_t group) -{ - xkb_mod_mask_t mask; - unsigned int modifiers = 0; - - if (!_glfw.wl.xkb.keymap) - return; - - xkb_state_update_mask(_glfw.wl.xkb.state, - modsDepressed, - modsLatched, - modsLocked, - 0, - 0, - group); - - mask = xkb_state_serialize_mods(_glfw.wl.xkb.state, - XKB_STATE_DEPRESSED | - XKB_STATE_LATCHED); - if (mask & _glfw.wl.xkb.control_mask) - modifiers |= GLFW_MOD_CONTROL; - if (mask & _glfw.wl.xkb.alt_mask) - modifiers |= GLFW_MOD_ALT; - if (mask & _glfw.wl.xkb.shift_mask) - modifiers |= GLFW_MOD_SHIFT; - if (mask & _glfw.wl.xkb.super_mask) - modifiers |= GLFW_MOD_SUPER; - _glfw.wl.xkb.modifiers = modifiers; -} - -static const struct wl_keyboard_listener keyboardListener = { - keyboardHandleKeymap, - keyboardHandleEnter, - keyboardHandleLeave, - keyboardHandleKey, - keyboardHandleModifiers, -}; - -static void seatHandleCapabilities(void* data, - struct wl_seat* seat, - enum wl_seat_capability caps) -{ - if ((caps & WL_SEAT_CAPABILITY_POINTER) && !_glfw.wl.pointer) - { - _glfw.wl.pointer = wl_seat_get_pointer(seat); - wl_pointer_add_listener(_glfw.wl.pointer, &pointerListener, NULL); - } - else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && _glfw.wl.pointer) - { - wl_pointer_destroy(_glfw.wl.pointer); - _glfw.wl.pointer = NULL; - } - - if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !_glfw.wl.keyboard) - { - _glfw.wl.keyboard = wl_seat_get_keyboard(seat); - wl_keyboard_add_listener(_glfw.wl.keyboard, &keyboardListener, NULL); - } - else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && _glfw.wl.keyboard) - { - wl_keyboard_destroy(_glfw.wl.keyboard); - _glfw.wl.keyboard = NULL; - } -} - -static const struct wl_seat_listener seatListener = { - seatHandleCapabilities -}; - -static void registryHandleGlobal(void* data, - struct wl_registry* registry, - uint32_t name, - const char* interface, - uint32_t version) -{ - if (strcmp(interface, "wl_compositor") == 0) - { - _glfw.wl.wl_compositor_version = min(3, version); - _glfw.wl.compositor = - wl_registry_bind(registry, name, &wl_compositor_interface, - _glfw.wl.wl_compositor_version); - } - else if (strcmp(interface, "wl_shm") == 0) - { - _glfw.wl.shm = - wl_registry_bind(registry, name, &wl_shm_interface, 1); - } - else if (strcmp(interface, "wl_shell") == 0) - { - _glfw.wl.shell = - wl_registry_bind(registry, name, &wl_shell_interface, 1); - } - else if (strcmp(interface, "wl_output") == 0) - { - _glfwAddOutputWayland(name, version); - } - else if (strcmp(interface, "wl_seat") == 0) - { - if (!_glfw.wl.seat) - { - _glfw.wl.seat = - wl_registry_bind(registry, name, &wl_seat_interface, 1); - wl_seat_add_listener(_glfw.wl.seat, &seatListener, NULL); - } - } - else if (strcmp(interface, "zwp_relative_pointer_manager_v1") == 0) - { - _glfw.wl.relativePointerManager = - wl_registry_bind(registry, name, - &zwp_relative_pointer_manager_v1_interface, - 1); - } - else if (strcmp(interface, "zwp_pointer_constraints_v1") == 0) - { - _glfw.wl.pointerConstraints = - wl_registry_bind(registry, name, - &zwp_pointer_constraints_v1_interface, - 1); - } -} - -static void registryHandleGlobalRemove(void *data, - struct wl_registry *registry, - uint32_t name) -{ -} - - -static const struct wl_registry_listener registryListener = { - registryHandleGlobal, - registryHandleGlobalRemove -}; - -// Create key code translation tables -// -static void createKeyTables(void) -{ - memset(_glfw.wl.publicKeys, -1, sizeof(_glfw.wl.publicKeys)); - - _glfw.wl.publicKeys[KEY_GRAVE] = GLFW_KEY_GRAVE_ACCENT; - _glfw.wl.publicKeys[KEY_1] = GLFW_KEY_1; - _glfw.wl.publicKeys[KEY_2] = GLFW_KEY_2; - _glfw.wl.publicKeys[KEY_3] = GLFW_KEY_3; - _glfw.wl.publicKeys[KEY_4] = GLFW_KEY_4; - _glfw.wl.publicKeys[KEY_5] = GLFW_KEY_5; - _glfw.wl.publicKeys[KEY_6] = GLFW_KEY_6; - _glfw.wl.publicKeys[KEY_7] = GLFW_KEY_7; - _glfw.wl.publicKeys[KEY_8] = GLFW_KEY_8; - _glfw.wl.publicKeys[KEY_9] = GLFW_KEY_9; - _glfw.wl.publicKeys[KEY_0] = GLFW_KEY_0; - _glfw.wl.publicKeys[KEY_MINUS] = GLFW_KEY_MINUS; - _glfw.wl.publicKeys[KEY_EQUAL] = GLFW_KEY_EQUAL; - _glfw.wl.publicKeys[KEY_Q] = GLFW_KEY_Q; - _glfw.wl.publicKeys[KEY_W] = GLFW_KEY_W; - _glfw.wl.publicKeys[KEY_E] = GLFW_KEY_E; - _glfw.wl.publicKeys[KEY_R] = GLFW_KEY_R; - _glfw.wl.publicKeys[KEY_T] = GLFW_KEY_T; - _glfw.wl.publicKeys[KEY_Y] = GLFW_KEY_Y; - _glfw.wl.publicKeys[KEY_U] = GLFW_KEY_U; - _glfw.wl.publicKeys[KEY_I] = GLFW_KEY_I; - _glfw.wl.publicKeys[KEY_O] = GLFW_KEY_O; - _glfw.wl.publicKeys[KEY_P] = GLFW_KEY_P; - _glfw.wl.publicKeys[KEY_LEFTBRACE] = GLFW_KEY_LEFT_BRACKET; - _glfw.wl.publicKeys[KEY_RIGHTBRACE] = GLFW_KEY_RIGHT_BRACKET; - _glfw.wl.publicKeys[KEY_A] = GLFW_KEY_A; - _glfw.wl.publicKeys[KEY_S] = GLFW_KEY_S; - _glfw.wl.publicKeys[KEY_D] = GLFW_KEY_D; - _glfw.wl.publicKeys[KEY_F] = GLFW_KEY_F; - _glfw.wl.publicKeys[KEY_G] = GLFW_KEY_G; - _glfw.wl.publicKeys[KEY_H] = GLFW_KEY_H; - _glfw.wl.publicKeys[KEY_J] = GLFW_KEY_J; - _glfw.wl.publicKeys[KEY_K] = GLFW_KEY_K; - _glfw.wl.publicKeys[KEY_L] = GLFW_KEY_L; - _glfw.wl.publicKeys[KEY_SEMICOLON] = GLFW_KEY_SEMICOLON; - _glfw.wl.publicKeys[KEY_APOSTROPHE] = GLFW_KEY_APOSTROPHE; - _glfw.wl.publicKeys[KEY_Z] = GLFW_KEY_Z; - _glfw.wl.publicKeys[KEY_X] = GLFW_KEY_X; - _glfw.wl.publicKeys[KEY_C] = GLFW_KEY_C; - _glfw.wl.publicKeys[KEY_V] = GLFW_KEY_V; - _glfw.wl.publicKeys[KEY_B] = GLFW_KEY_B; - _glfw.wl.publicKeys[KEY_N] = GLFW_KEY_N; - _glfw.wl.publicKeys[KEY_M] = GLFW_KEY_M; - _glfw.wl.publicKeys[KEY_COMMA] = GLFW_KEY_COMMA; - _glfw.wl.publicKeys[KEY_DOT] = GLFW_KEY_PERIOD; - _glfw.wl.publicKeys[KEY_SLASH] = GLFW_KEY_SLASH; - _glfw.wl.publicKeys[KEY_BACKSLASH] = GLFW_KEY_BACKSLASH; - _glfw.wl.publicKeys[KEY_ESC] = GLFW_KEY_ESCAPE; - _glfw.wl.publicKeys[KEY_TAB] = GLFW_KEY_TAB; - _glfw.wl.publicKeys[KEY_LEFTSHIFT] = GLFW_KEY_LEFT_SHIFT; - _glfw.wl.publicKeys[KEY_RIGHTSHIFT] = GLFW_KEY_RIGHT_SHIFT; - _glfw.wl.publicKeys[KEY_LEFTCTRL] = GLFW_KEY_LEFT_CONTROL; - _glfw.wl.publicKeys[KEY_RIGHTCTRL] = GLFW_KEY_RIGHT_CONTROL; - _glfw.wl.publicKeys[KEY_LEFTALT] = GLFW_KEY_LEFT_ALT; - _glfw.wl.publicKeys[KEY_RIGHTALT] = GLFW_KEY_RIGHT_ALT; - _glfw.wl.publicKeys[KEY_LEFTMETA] = GLFW_KEY_LEFT_SUPER; - _glfw.wl.publicKeys[KEY_RIGHTMETA] = GLFW_KEY_RIGHT_SUPER; - _glfw.wl.publicKeys[KEY_MENU] = GLFW_KEY_MENU; - _glfw.wl.publicKeys[KEY_NUMLOCK] = GLFW_KEY_NUM_LOCK; - _glfw.wl.publicKeys[KEY_CAPSLOCK] = GLFW_KEY_CAPS_LOCK; - _glfw.wl.publicKeys[KEY_PRINT] = GLFW_KEY_PRINT_SCREEN; - _glfw.wl.publicKeys[KEY_SCROLLLOCK] = GLFW_KEY_SCROLL_LOCK; - _glfw.wl.publicKeys[KEY_PAUSE] = GLFW_KEY_PAUSE; - _glfw.wl.publicKeys[KEY_DELETE] = GLFW_KEY_DELETE; - _glfw.wl.publicKeys[KEY_BACKSPACE] = GLFW_KEY_BACKSPACE; - _glfw.wl.publicKeys[KEY_ENTER] = GLFW_KEY_ENTER; - _glfw.wl.publicKeys[KEY_HOME] = GLFW_KEY_HOME; - _glfw.wl.publicKeys[KEY_END] = GLFW_KEY_END; - _glfw.wl.publicKeys[KEY_PAGEUP] = GLFW_KEY_PAGE_UP; - _glfw.wl.publicKeys[KEY_PAGEDOWN] = GLFW_KEY_PAGE_DOWN; - _glfw.wl.publicKeys[KEY_INSERT] = GLFW_KEY_INSERT; - _glfw.wl.publicKeys[KEY_LEFT] = GLFW_KEY_LEFT; - _glfw.wl.publicKeys[KEY_RIGHT] = GLFW_KEY_RIGHT; - _glfw.wl.publicKeys[KEY_DOWN] = GLFW_KEY_DOWN; - _glfw.wl.publicKeys[KEY_UP] = GLFW_KEY_UP; - _glfw.wl.publicKeys[KEY_F1] = GLFW_KEY_F1; - _glfw.wl.publicKeys[KEY_F2] = GLFW_KEY_F2; - _glfw.wl.publicKeys[KEY_F3] = GLFW_KEY_F3; - _glfw.wl.publicKeys[KEY_F4] = GLFW_KEY_F4; - _glfw.wl.publicKeys[KEY_F5] = GLFW_KEY_F5; - _glfw.wl.publicKeys[KEY_F6] = GLFW_KEY_F6; - _glfw.wl.publicKeys[KEY_F7] = GLFW_KEY_F7; - _glfw.wl.publicKeys[KEY_F8] = GLFW_KEY_F8; - _glfw.wl.publicKeys[KEY_F9] = GLFW_KEY_F9; - _glfw.wl.publicKeys[KEY_F10] = GLFW_KEY_F10; - _glfw.wl.publicKeys[KEY_F11] = GLFW_KEY_F11; - _glfw.wl.publicKeys[KEY_F12] = GLFW_KEY_F12; - _glfw.wl.publicKeys[KEY_F13] = GLFW_KEY_F13; - _glfw.wl.publicKeys[KEY_F14] = GLFW_KEY_F14; - _glfw.wl.publicKeys[KEY_F15] = GLFW_KEY_F15; - _glfw.wl.publicKeys[KEY_F16] = GLFW_KEY_F16; - _glfw.wl.publicKeys[KEY_F17] = GLFW_KEY_F17; - _glfw.wl.publicKeys[KEY_F18] = GLFW_KEY_F18; - _glfw.wl.publicKeys[KEY_F19] = GLFW_KEY_F19; - _glfw.wl.publicKeys[KEY_F20] = GLFW_KEY_F20; - _glfw.wl.publicKeys[KEY_F21] = GLFW_KEY_F21; - _glfw.wl.publicKeys[KEY_F22] = GLFW_KEY_F22; - _glfw.wl.publicKeys[KEY_F23] = GLFW_KEY_F23; - _glfw.wl.publicKeys[KEY_F24] = GLFW_KEY_F24; - _glfw.wl.publicKeys[KEY_KPSLASH] = GLFW_KEY_KP_DIVIDE; - _glfw.wl.publicKeys[KEY_KPDOT] = GLFW_KEY_KP_MULTIPLY; - _glfw.wl.publicKeys[KEY_KPMINUS] = GLFW_KEY_KP_SUBTRACT; - _glfw.wl.publicKeys[KEY_KPPLUS] = GLFW_KEY_KP_ADD; - _glfw.wl.publicKeys[KEY_KP0] = GLFW_KEY_KP_0; - _glfw.wl.publicKeys[KEY_KP1] = GLFW_KEY_KP_1; - _glfw.wl.publicKeys[KEY_KP2] = GLFW_KEY_KP_2; - _glfw.wl.publicKeys[KEY_KP3] = GLFW_KEY_KP_3; - _glfw.wl.publicKeys[KEY_KP4] = GLFW_KEY_KP_4; - _glfw.wl.publicKeys[KEY_KP5] = GLFW_KEY_KP_5; - _glfw.wl.publicKeys[KEY_KP6] = GLFW_KEY_KP_6; - _glfw.wl.publicKeys[KEY_KP7] = GLFW_KEY_KP_7; - _glfw.wl.publicKeys[KEY_KP8] = GLFW_KEY_KP_8; - _glfw.wl.publicKeys[KEY_KP9] = GLFW_KEY_KP_9; - _glfw.wl.publicKeys[KEY_KPCOMMA] = GLFW_KEY_KP_DECIMAL; - _glfw.wl.publicKeys[KEY_KPEQUAL] = GLFW_KEY_KP_EQUAL; - _glfw.wl.publicKeys[KEY_KPENTER] = GLFW_KEY_KP_ENTER; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - _glfw.wl.display = wl_display_connect(NULL); - if (!_glfw.wl.display) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to connect to display"); - return GLFW_FALSE; - } - - _glfw.wl.registry = wl_display_get_registry(_glfw.wl.display); - wl_registry_add_listener(_glfw.wl.registry, ®istryListener, NULL); - - _glfw.wl.monitors = calloc(4, sizeof(_GLFWmonitor*)); - _glfw.wl.monitorsSize = 4; - - createKeyTables(); - - _glfw.wl.xkb.context = xkb_context_new(0); - if (!_glfw.wl.xkb.context) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to initialize xkb context"); - return GLFW_FALSE; - } - - // Sync so we got all registry objects - wl_display_roundtrip(_glfw.wl.display); - - // Sync so we got all initial output events - wl_display_roundtrip(_glfw.wl.display); - - if (!_glfwInitThreadLocalStoragePOSIX()) - return GLFW_FALSE; - - if (!_glfwInitJoysticksLinux()) - return GLFW_FALSE; - - _glfwInitTimerPOSIX(); - - if (_glfw.wl.pointer && _glfw.wl.shm) - { - _glfw.wl.cursorTheme = wl_cursor_theme_load(NULL, 32, _glfw.wl.shm); - if (!_glfw.wl.cursorTheme) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Unable to load default cursor theme\n"); - return GLFW_FALSE; - } - _glfw.wl.cursorSurface = - wl_compositor_create_surface(_glfw.wl.compositor); - } - - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - _glfwTerminateEGL(); - _glfwTerminateJoysticksLinux(); - _glfwTerminateThreadLocalStoragePOSIX(); - - if (_glfw.wl.cursorTheme) - wl_cursor_theme_destroy(_glfw.wl.cursorTheme); - if (_glfw.wl.cursorSurface) - wl_surface_destroy(_glfw.wl.cursorSurface); - if (_glfw.wl.registry) - wl_registry_destroy(_glfw.wl.registry); - if (_glfw.wl.display) - wl_display_flush(_glfw.wl.display); - if (_glfw.wl.display) - wl_display_disconnect(_glfw.wl.display); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Wayland EGL" -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif -#if defined(__linux__) - " /dev/js" -#endif -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_monitor.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_monitor.c deleted file mode 100644 index 27731c2..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_monitor.c +++ /dev/null @@ -1,269 +0,0 @@ -//======================================================================== -// GLFW 3.2 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include -#include - - -struct _GLFWvidmodeWayland -{ - GLFWvidmode base; - uint32_t flags; -}; - -static void geometry(void* data, - struct wl_output* output, - int32_t x, - int32_t y, - int32_t physicalWidth, - int32_t physicalHeight, - int32_t subpixel, - const char* make, - const char* model, - int32_t transform) -{ - struct _GLFWmonitor *monitor = data; - - monitor->wl.x = x; - monitor->wl.y = y; - monitor->widthMM = physicalWidth; - monitor->heightMM = physicalHeight; -} - -static void mode(void* data, - struct wl_output* output, - uint32_t flags, - int32_t width, - int32_t height, - int32_t refresh) -{ - struct _GLFWmonitor *monitor = data; - _GLFWvidmodeWayland mode = { { 0 }, }; - - mode.base.width = width; - mode.base.height = height; - mode.base.refreshRate = refresh / 1000; - mode.flags = flags; - - if (monitor->wl.modesCount + 1 >= monitor->wl.modesSize) - { - int size = monitor->wl.modesSize * 2; - _GLFWvidmodeWayland* modes = - realloc(monitor->wl.modes, - size * sizeof(_GLFWvidmodeWayland)); - monitor->wl.modes = modes; - monitor->wl.modesSize = size; - } - - monitor->wl.modes[monitor->wl.modesCount++] = mode; -} - -static void done(void* data, - struct wl_output* output) -{ - struct _GLFWmonitor *monitor = data; - - monitor->wl.done = GLFW_TRUE; -} - -static void scale(void* data, - struct wl_output* output, - int32_t factor) -{ - struct _GLFWmonitor *monitor = data; - - monitor->wl.scale = factor; -} - -static const struct wl_output_listener output_listener = { - geometry, - mode, - done, - scale, -}; - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwAddOutputWayland(uint32_t name, uint32_t version) -{ - _GLFWmonitor *monitor; - struct wl_output *output; - char name_str[80]; - - memset(name_str, 0, sizeof(name_str)); - snprintf(name_str, 79, "wl_output@%u", name); - - if (version < 2) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Unsupported output interface version"); - return; - } - - monitor = _glfwAllocMonitor(name_str, 0, 0); - - output = wl_registry_bind(_glfw.wl.registry, - name, - &wl_output_interface, - 2); - if (!output) - { - _glfwFreeMonitor(monitor); - return; - } - - monitor->wl.modes = calloc(4, sizeof(_GLFWvidmodeWayland)); - monitor->wl.modesSize = 4; - - monitor->wl.scale = 1; - - monitor->wl.output = output; - wl_output_add_listener(output, &output_listener, monitor); - - if (_glfw.wl.monitorsCount + 1 >= _glfw.wl.monitorsSize) - { - _GLFWmonitor** monitors = _glfw.wl.monitors; - int size = _glfw.wl.monitorsSize * 2; - - monitors = realloc(monitors, size * sizeof(_GLFWmonitor*)); - - _glfw.wl.monitors = monitors; - _glfw.wl.monitorsSize = size; - } - - _glfw.wl.monitors[_glfw.wl.monitorsCount++] = monitor; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - _GLFWmonitor** monitors; - _GLFWmonitor* monitor; - int i, monitorsCount = _glfw.wl.monitorsCount; - - if (_glfw.wl.monitorsCount == 0) - goto err; - - monitors = calloc(monitorsCount, sizeof(_GLFWmonitor*)); - - for (i = 0; i < monitorsCount; i++) - { - _GLFWmonitor* origMonitor = _glfw.wl.monitors[i]; - monitor = calloc(1, sizeof(_GLFWmonitor)); - - monitor->modes = - _glfwPlatformGetVideoModes(origMonitor, - &origMonitor->wl.modesCount); - *monitor = *_glfw.wl.monitors[i]; - monitors[i] = monitor; - } - - *count = monitorsCount; - return monitors; - -err: - *count = 0; - return NULL; -} - -GLFWbool _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - return first->wl.output == second->wl.output; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (xpos) - *xpos = monitor->wl.x; - if (ypos) - *ypos = monitor->wl.y; -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) -{ - GLFWvidmode *modes; - int i, modesCount = monitor->wl.modesCount; - - modes = calloc(modesCount, sizeof(GLFWvidmode)); - - for (i = 0; i < modesCount; i++) - modes[i] = monitor->wl.modes[i].base; - - *found = modesCount; - return modes; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - int i; - - for (i = 0; i < monitor->wl.modesCount; i++) - { - if (monitor->wl.modes[i].flags & WL_OUTPUT_MODE_CURRENT) - { - *mode = monitor->wl.modes[i].base; - return; - } - } -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Gamma ramp getting not supported yet"); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Gamma ramp setting not supported yet"); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->wl.output; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_platform.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_platform.h deleted file mode 100644 index 9e42b36..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_platform.h +++ /dev/null @@ -1,179 +0,0 @@ -//======================================================================== -// GLFW 3.2 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_wayland_platform_h_ -#define _glfw3_wayland_platform_h_ - -#include -#include -#include - -typedef VkFlags VkWaylandSurfaceCreateFlagsKHR; - -typedef struct VkWaylandSurfaceCreateInfoKHR -{ - VkStructureType sType; - const void* pNext; - VkWaylandSurfaceCreateFlagsKHR flags; - struct wl_display* display; - struct wl_surface* surface; -} VkWaylandSurfaceCreateInfoKHR; - -typedef VkResult (APIENTRY *PFN_vkCreateWaylandSurfaceKHR)(VkInstance,const VkWaylandSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); -typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice,uint32_t,struct wl_display*); - -#include "posix_tls.h" -#include "posix_time.h" -#include "linux_joystick.h" -#include "xkb_unicode.h" -#include "egl_context.h" - -#include "wayland-relative-pointer-unstable-v1-client-protocol.h" -#include "wayland-pointer-constraints-unstable-v1-client-protocol.h" - -#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) -#define _glfw_dlclose(handle) dlclose(handle) -#define _glfw_dlsym(handle, name) dlsym(handle, name) - -#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->wl.native) -#define _GLFW_EGL_NATIVE_DISPLAY ((EGLNativeDisplayType) _glfw.wl.display) - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWayland wl -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWayland wl -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWayland wl - -#define _GLFW_PLATFORM_CONTEXT_STATE -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE - - -// Wayland-specific video mode data -// -typedef struct _GLFWvidmodeWayland _GLFWvidmodeWayland; - -// Wayland-specific per-window data -// -typedef struct _GLFWwindowWayland -{ - int width, height; - GLFWbool visible; - GLFWbool maximized; - struct wl_surface* surface; - struct wl_egl_window* native; - struct wl_shell_surface* shell_surface; - struct wl_callback* callback; - - _GLFWcursor* currentCursor; - double cursorPosX, cursorPosY; - - char* title; - - // We need to track the monitors the window spans on to calculate the - // optimal scaling factor. - int scale; - _GLFWmonitor** monitors; - int monitorsCount; - int monitorsSize; - - struct { - struct zwp_relative_pointer_v1* relativePointer; - struct zwp_locked_pointer_v1* lockedPointer; - } pointerLock; -} _GLFWwindowWayland; - -// Wayland-specific global data -// -typedef struct _GLFWlibraryWayland -{ - struct wl_display* display; - struct wl_registry* registry; - struct wl_compositor* compositor; - struct wl_shell* shell; - struct wl_shm* shm; - struct wl_seat* seat; - struct wl_pointer* pointer; - struct wl_keyboard* keyboard; - struct zwp_relative_pointer_manager_v1* relativePointerManager; - struct zwp_pointer_constraints_v1* pointerConstraints; - - int wl_compositor_version; - - struct wl_cursor_theme* cursorTheme; - struct wl_surface* cursorSurface; - uint32_t pointerSerial; - - _GLFWmonitor** monitors; - int monitorsCount; - int monitorsSize; - - short int publicKeys[256]; - - struct { - struct xkb_context* context; - struct xkb_keymap* keymap; - struct xkb_state* state; - xkb_mod_mask_t control_mask; - xkb_mod_mask_t alt_mask; - xkb_mod_mask_t shift_mask; - xkb_mod_mask_t super_mask; - unsigned int modifiers; - } xkb; - - _GLFWwindow* pointerFocus; - _GLFWwindow* keyboardFocus; - -} _GLFWlibraryWayland; - -// Wayland-specific per-monitor data -// -typedef struct _GLFWmonitorWayland -{ - struct wl_output* output; - - _GLFWvidmodeWayland* modes; - int modesCount; - int modesSize; - GLFWbool done; - - int x; - int y; - int scale; -} _GLFWmonitorWayland; - -// Wayland-specific per-cursor data -// -typedef struct _GLFWcursorWayland -{ - struct wl_cursor_image* image; - struct wl_buffer* buffer; - int width, height; - int xhot, yhot; -} _GLFWcursorWayland; - - -void _glfwAddOutputWayland(uint32_t name, uint32_t version); - -#endif // _glfw3_wayland_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_window.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_window.c deleted file mode 100644 index cf75ec8..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/wl_window.c +++ /dev/null @@ -1,1050 +0,0 @@ -//======================================================================== -// GLFW 3.2 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#define _GNU_SOURCE - -#include "internal.h" - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - - -static void handlePing(void* data, - struct wl_shell_surface* shellSurface, - uint32_t serial) -{ - wl_shell_surface_pong(shellSurface, serial); -} - -static void handleConfigure(void* data, - struct wl_shell_surface* shellSurface, - uint32_t edges, - int32_t width, - int32_t height) -{ - _GLFWwindow* window = data; - float aspectRatio; - float targetRatio; - - if (!window->monitor) - { - if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) - { - aspectRatio = (float)width / (float)height; - targetRatio = (float)window->numer / (float)window->denom; - if (aspectRatio < targetRatio) - height = width / targetRatio; - else if (aspectRatio > targetRatio) - width = height * targetRatio; - } - - if (window->minwidth != GLFW_DONT_CARE && width < window->minwidth) - width = window->minwidth; - else if (window->maxwidth != GLFW_DONT_CARE && width > window->maxwidth) - width = window->maxwidth; - - if (window->minheight != GLFW_DONT_CARE && height < window->minheight) - height = window->minheight; - else if (window->maxheight != GLFW_DONT_CARE && height > window->maxheight) - height = window->maxheight; - } - - _glfwInputWindowSize(window, width, height); - _glfwPlatformSetWindowSize(window, width, height); - _glfwInputWindowDamage(window); -} - -static void handlePopupDone(void* data, - struct wl_shell_surface* shellSurface) -{ -} - -static const struct wl_shell_surface_listener shellSurfaceListener = { - handlePing, - handleConfigure, - handlePopupDone -}; - -static void checkScaleChange(_GLFWwindow* window) -{ - int scaledWidth, scaledHeight; - int scale = 1; - int i; - int monitorScale; - - // Check if we will be able to set the buffer scale or not. - if (_glfw.wl.wl_compositor_version < 3) - return; - - // Get the scale factor from the highest scale monitor. - for (i = 0; i < window->wl.monitorsCount; ++i) - { - monitorScale = window->wl.monitors[i]->wl.scale; - if (scale < monitorScale) - scale = monitorScale; - } - - // Only change the framebuffer size if the scale changed. - if (scale != window->wl.scale) - { - window->wl.scale = scale; - scaledWidth = window->wl.width * scale; - scaledHeight = window->wl.height * scale; - wl_surface_set_buffer_scale(window->wl.surface, scale); - wl_egl_window_resize(window->wl.native, scaledWidth, scaledHeight, 0, 0); - _glfwInputFramebufferSize(window, scaledWidth, scaledHeight); - } -} - -static void handleEnter(void *data, - struct wl_surface *surface, - struct wl_output *output) -{ - _GLFWwindow* window = data; - _GLFWmonitor* monitor = wl_output_get_user_data(output); - - if (window->wl.monitorsCount + 1 > window->wl.monitorsSize) - { - ++window->wl.monitorsSize; - window->wl.monitors = - realloc(window->wl.monitors, - window->wl.monitorsSize * sizeof(_GLFWmonitor*)); - } - - window->wl.monitors[window->wl.monitorsCount++] = monitor; - - checkScaleChange(window); -} - -static void handleLeave(void *data, - struct wl_surface *surface, - struct wl_output *output) -{ - _GLFWwindow* window = data; - _GLFWmonitor* monitor = wl_output_get_user_data(output); - GLFWbool found; - int i; - - for (i = 0, found = GLFW_FALSE; i < window->wl.monitorsCount - 1; ++i) - { - if (monitor == window->wl.monitors[i]) - found = GLFW_TRUE; - if (found) - window->wl.monitors[i] = window->wl.monitors[i + 1]; - } - window->wl.monitors[--window->wl.monitorsCount] = NULL; - - checkScaleChange(window); -} - -static const struct wl_surface_listener surfaceListener = { - handleEnter, - handleLeave -}; - -// Makes the surface considered as XRGB instead of ARGB. -static void setOpaqueRegion(_GLFWwindow* window) -{ - struct wl_region* region; - - region = wl_compositor_create_region(_glfw.wl.compositor); - if (!region) - return; - - wl_region_add(region, 0, 0, window->wl.width, window->wl.height); - wl_surface_set_opaque_region(window->wl.surface, region); - wl_surface_commit(window->wl.surface); - wl_region_destroy(region); -} - -static GLFWbool createSurface(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig) -{ - window->wl.surface = wl_compositor_create_surface(_glfw.wl.compositor); - if (!window->wl.surface) - return GLFW_FALSE; - - wl_surface_add_listener(window->wl.surface, - &surfaceListener, - window); - - wl_surface_set_user_data(window->wl.surface, window); - - window->wl.native = wl_egl_window_create(window->wl.surface, - wndconfig->width, - wndconfig->height); - if (!window->wl.native) - return GLFW_FALSE; - - window->wl.width = wndconfig->width; - window->wl.height = wndconfig->height; - window->wl.scale = 1; - - // TODO: make this optional once issue #197 is fixed. - setOpaqueRegion(window); - - return GLFW_TRUE; -} - -static GLFWbool createShellSurface(_GLFWwindow* window) -{ - window->wl.shell_surface = wl_shell_get_shell_surface(_glfw.wl.shell, - window->wl.surface); - if (!window->wl.shell_surface) - return GLFW_FALSE; - - wl_shell_surface_add_listener(window->wl.shell_surface, - &shellSurfaceListener, - window); - - if (window->wl.title) - wl_shell_surface_set_title(window->wl.shell_surface, window->wl.title); - - if (window->monitor) - { - wl_shell_surface_set_fullscreen( - window->wl.shell_surface, - WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, - 0, - window->monitor->wl.output); - } - else if (window->wl.maximized) - { - wl_shell_surface_set_maximized(window->wl.shell_surface, NULL); - } - else - { - wl_shell_surface_set_toplevel(window->wl.shell_surface); - } - - return GLFW_TRUE; -} - -static int -createTmpfileCloexec(char* tmpname) -{ - int fd; - - fd = mkostemp(tmpname, O_CLOEXEC); - if (fd >= 0) - unlink(tmpname); - - return fd; -} - -static void -handleEvents(int timeout) -{ - struct wl_display* display = _glfw.wl.display; - struct pollfd fds[] = { - { wl_display_get_fd(display), POLLIN }, - }; - - while (wl_display_prepare_read(display) != 0) - wl_display_dispatch_pending(display); - - // If an error different from EAGAIN happens, we have likely been - // disconnected from the Wayland session, try to handle that the best we - // can. - if (wl_display_flush(display) < 0 && errno != EAGAIN) - { - _GLFWwindow* window = _glfw.windowListHead; - while (window) - { - _glfwInputWindowCloseRequest(window); - window = window->next; - } - wl_display_cancel_read(display); - return; - } - - if (poll(fds, 1, timeout) > 0) - { - wl_display_read_events(display); - wl_display_dispatch_pending(display); - } - else - { - wl_display_cancel_read(display); - } -} - -/* - * Create a new, unique, anonymous file of the given size, and - * return the file descriptor for it. The file descriptor is set - * CLOEXEC. The file is immediately suitable for mmap()'ing - * the given size at offset zero. - * - * The file should not have a permanent backing store like a disk, - * but may have if XDG_RUNTIME_DIR is not properly implemented in OS. - * - * The file name is deleted from the file system. - * - * The file is suitable for buffer sharing between processes by - * transmitting the file descriptor over Unix sockets using the - * SCM_RIGHTS methods. - * - * posix_fallocate() is used to guarantee that disk space is available - * for the file at the given size. If disk space is insufficent, errno - * is set to ENOSPC. If posix_fallocate() is not supported, program may - * receive SIGBUS on accessing mmap()'ed file contents instead. - */ -int -createAnonymousFile(off_t size) -{ - static const char template[] = "/glfw-shared-XXXXXX"; - const char* path; - char* name; - int fd; - int ret; - - path = getenv("XDG_RUNTIME_DIR"); - if (!path) - { - errno = ENOENT; - return -1; - } - - name = calloc(strlen(path) + sizeof(template), 1); - strcpy(name, path); - strcat(name, template); - - fd = createTmpfileCloexec(name); - - free(name); - - if (fd < 0) - return -1; - ret = posix_fallocate(fd, 0, size); - if (ret != 0) - { - close(fd); - errno = ret; - return -1; - } - return fd; -} - -// Translates a GLFW standard cursor to a theme cursor name -// -static char *translateCursorShape(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return "left_ptr"; - case GLFW_IBEAM_CURSOR: - return "xterm"; - case GLFW_CROSSHAIR_CURSOR: - return "crosshair"; - case GLFW_HAND_CURSOR: - return "grabbing"; - case GLFW_HRESIZE_CURSOR: - return "sb_h_double_arrow"; - case GLFW_VRESIZE_CURSOR: - return "sb_v_double_arrow"; - } - return NULL; -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!createSurface(window, wndconfig)) - return GLFW_FALSE; - - if (ctxconfig->client != GLFW_NO_API) - { - if (!_glfwInitEGL()) - return GLFW_FALSE; - if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - - if (wndconfig->title) - window->wl.title = strdup(wndconfig->title); - - if (wndconfig->visible) - { - if (!createShellSurface(window)) - return GLFW_FALSE; - - window->wl.visible = GLFW_TRUE; - } - else - { - window->wl.shell_surface = NULL; - window->wl.visible = GLFW_FALSE; - } - - window->wl.currentCursor = NULL; - - window->wl.monitors = calloc(1, sizeof(_GLFWmonitor*)); - window->wl.monitorsCount = 0; - window->wl.monitorsSize = 1; - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (window == _glfw.wl.pointerFocus) - { - _glfw.wl.pointerFocus = NULL; - _glfwInputCursorEnter(window, GLFW_FALSE); - } - if (window == _glfw.wl.keyboardFocus) - { - _glfw.wl.keyboardFocus = NULL; - _glfwInputWindowFocus(window, GLFW_FALSE); - } - - if (window->context.destroy) - window->context.destroy(window); - - if (window->wl.native) - wl_egl_window_destroy(window->wl.native); - - if (window->wl.shell_surface) - wl_shell_surface_destroy(window->wl.shell_surface); - - if (window->wl.surface) - wl_surface_destroy(window->wl.surface); - - free(window->wl.title); - free(window->wl.monitors); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - if (window->wl.title) - free(window->wl.title); - window->wl.title = strdup(title); - if (window->wl.shell_surface) - wl_shell_surface_set_title(window->wl.shell_surface, title); -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Setting window icon not supported"); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - // A Wayland client is not aware of its position, so just warn and leave it - // as (0, 0) - - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window position retrieval not supported"); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - // A Wayland client can not set its position, so just warn - - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window position setting not supported"); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->wl.width; - if (height) - *height = window->wl.height; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - int scaledWidth = width * window->wl.scale; - int scaledHeight = height * window->wl.scale; - window->wl.width = width; - window->wl.height = height; - wl_egl_window_resize(window->wl.native, scaledWidth, scaledHeight, 0, 0); - setOpaqueRegion(window); - _glfwInputFramebufferSize(window, scaledWidth, scaledHeight); -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - // TODO: find out how to trigger a resize. - // The actual limits are checked in the wl_shell_surface::configure handler. -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - // TODO: find out how to trigger a resize. - // The actual limits are checked in the wl_shell_surface::configure handler. -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - _glfwPlatformGetWindowSize(window, width, height); - *width *= window->wl.scale; - *height *= window->wl.scale; -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - // TODO: will need a proper implementation once decorations are - // implemented, but for now just leave everything as 0. -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - // TODO: move to xdg_shell instead of wl_shell. - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Iconify window not supported"); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - // TODO: also do the same for iconified. - if (window->monitor || window->wl.maximized) - { - if (window->wl.shell_surface) - wl_shell_surface_set_toplevel(window->wl.shell_surface); - - window->wl.maximized = GLFW_FALSE; - } -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - if (!window->monitor && !window->wl.maximized) - { - if (window->wl.shell_surface) - { - // Let the compositor select the best output. - wl_shell_surface_set_maximized(window->wl.shell_surface, NULL); - } - window->wl.maximized = GLFW_TRUE; - } -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - if (!window->monitor) - { - if (!window->wl.shell_surface) - createShellSurface(window); - window->wl.visible = GLFW_TRUE; - } -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - if (!window->monitor) - { - if (window->wl.shell_surface) - wl_shell_surface_destroy(window->wl.shell_surface); - window->wl.visible = GLFW_FALSE; - } -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Focusing a window requires user interaction"); -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - if (monitor) - { - wl_shell_surface_set_fullscreen( - window->wl.shell_surface, - WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, - refreshRate * 1000, // Convert Hz to mHz. - monitor->wl.output); - } - else - { - wl_shell_surface_set_toplevel(window->wl.shell_surface); - } - _glfwInputWindowMonitorChange(window, monitor); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return _glfw.wl.keyboardFocus == window; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - // TODO: move to xdg_shell, wl_shell doesn't have any iconified concept. - return GLFW_FALSE; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return window->wl.visible; -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - return window->wl.maximized; -} - -void _glfwPlatformPollEvents(void) -{ - handleEvents(0); -} - -void _glfwPlatformWaitEvents(void) -{ - handleEvents(-1); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - handleEvents((int) (timeout * 1e3)); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - wl_display_sync(_glfw.wl.display); -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - if (xpos) - *xpos = window->wl.cursorPosX; - if (ypos) - *ypos = window->wl.cursorPosY; -} - -static GLFWbool isPointerLocked(_GLFWwindow* window); - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) -{ - if (isPointerLocked(window)) - { - zwp_locked_pointer_v1_set_cursor_position_hint( - window->wl.pointerLock.lockedPointer, - wl_fixed_from_double(x), wl_fixed_from_double(y)); - wl_surface_commit(window->wl.surface); - } -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - _glfwPlatformSetCursor(window, window->wl.currentCursor); -} - -const char* _glfwPlatformGetKeyName(int key, int scancode) -{ - // TODO - return NULL; -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - struct wl_shm_pool* pool; - int stride = image->width * 4; - int length = image->width * image->height * 4; - void* data; - int fd, i; - - fd = createAnonymousFile(length); - if (fd < 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Creating a buffer file for %d B failed: %m", - length); - return GLFW_FALSE; - } - - data = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); - if (data == MAP_FAILED) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Cursor mmap failed: %m"); - close(fd); - return GLFW_FALSE; - } - - pool = wl_shm_create_pool(_glfw.wl.shm, fd, length); - - close(fd); - unsigned char* source = (unsigned char*) image->pixels; - unsigned char* target = data; - for (i = 0; i < image->width * image->height; i++, source += 4) - { - unsigned int alpha = source[3]; - - *target++ = (unsigned char) ((source[2] * alpha) / 255); - *target++ = (unsigned char) ((source[1] * alpha) / 255); - *target++ = (unsigned char) ((source[0] * alpha) / 255); - *target++ = (unsigned char) alpha; - } - - cursor->wl.buffer = - wl_shm_pool_create_buffer(pool, 0, - image->width, - image->height, - stride, WL_SHM_FORMAT_ARGB8888); - munmap(data, length); - wl_shm_pool_destroy(pool); - - cursor->wl.width = image->width; - cursor->wl.height = image->height; - cursor->wl.xhot = xhot; - cursor->wl.yhot = yhot; - return GLFW_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - struct wl_cursor* standardCursor; - - standardCursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, - translateCursorShape(shape)); - if (!standardCursor) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Standard cursor \"%s\" not found", - translateCursorShape(shape)); - return GLFW_FALSE; - } - - cursor->wl.image = standardCursor->images[0]; - return GLFW_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - // If it's a standard cursor we don't need to do anything here - if (cursor->wl.image) - return; - - if (cursor->wl.buffer) - wl_buffer_destroy(cursor->wl.buffer); -} - -static void handleRelativeMotion(void* data, - struct zwp_relative_pointer_v1* pointer, - uint32_t timeHi, - uint32_t timeLo, - wl_fixed_t dx, - wl_fixed_t dy, - wl_fixed_t dxUnaccel, - wl_fixed_t dyUnaccel) -{ - _GLFWwindow* window = data; - - if (window->cursorMode != GLFW_CURSOR_DISABLED) - return; - - _glfwInputCursorPos(window, - window->virtualCursorPosX + wl_fixed_to_double(dxUnaccel), - window->virtualCursorPosY + wl_fixed_to_double(dyUnaccel)); -} - -static const struct zwp_relative_pointer_v1_listener relativePointerListener = { - handleRelativeMotion -}; - -static void handleLocked(void* data, - struct zwp_locked_pointer_v1* lockedPointer) -{ -} - -static void unlockPointer(_GLFWwindow* window) -{ - struct zwp_relative_pointer_v1* relativePointer = - window->wl.pointerLock.relativePointer; - struct zwp_locked_pointer_v1* lockedPointer = - window->wl.pointerLock.lockedPointer; - - zwp_relative_pointer_v1_destroy(relativePointer); - zwp_locked_pointer_v1_destroy(lockedPointer); - - window->wl.pointerLock.relativePointer = NULL; - window->wl.pointerLock.lockedPointer = NULL; -} - -static void lockPointer(_GLFWwindow* window); - -static void handleUnlocked(void* data, - struct zwp_locked_pointer_v1* lockedPointer) -{ -} - -static const struct zwp_locked_pointer_v1_listener lockedPointerListener = { - handleLocked, - handleUnlocked -}; - -static void lockPointer(_GLFWwindow* window) -{ - struct zwp_relative_pointer_v1* relativePointer; - struct zwp_locked_pointer_v1* lockedPointer; - - if (!_glfw.wl.relativePointerManager) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: no relative pointer manager"); - return; - } - - relativePointer = - zwp_relative_pointer_manager_v1_get_relative_pointer( - _glfw.wl.relativePointerManager, - _glfw.wl.pointer); - zwp_relative_pointer_v1_add_listener(relativePointer, - &relativePointerListener, - window); - - lockedPointer = - zwp_pointer_constraints_v1_lock_pointer( - _glfw.wl.pointerConstraints, - window->wl.surface, - _glfw.wl.pointer, - NULL, - ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT); - zwp_locked_pointer_v1_add_listener(lockedPointer, - &lockedPointerListener, - window); - - window->wl.pointerLock.relativePointer = relativePointer; - window->wl.pointerLock.lockedPointer = lockedPointer; - - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - NULL, 0, 0); -} - -static GLFWbool isPointerLocked(_GLFWwindow* window) -{ - return window->wl.pointerLock.lockedPointer != NULL; -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - struct wl_buffer* buffer; - struct wl_cursor* defaultCursor; - struct wl_cursor_image* image; - struct wl_surface* surface = _glfw.wl.cursorSurface; - - if (!_glfw.wl.pointer) - return; - - window->wl.currentCursor = cursor; - - // If we're not in the correct window just save the cursor - // the next time the pointer enters the window the cursor will change - if (window != _glfw.wl.pointerFocus) - return; - - // Unlock possible pointer lock if no longer disabled. - if (window->cursorMode != GLFW_CURSOR_DISABLED && isPointerLocked(window)) - unlockPointer(window); - - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (cursor) - image = cursor->wl.image; - else - { - defaultCursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, - "left_ptr"); - if (!defaultCursor) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Standard cursor not found"); - return; - } - image = defaultCursor->images[0]; - } - - if (image) - { - buffer = wl_cursor_image_get_buffer(image); - if (!buffer) - return; - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - surface, - image->hotspot_x, - image->hotspot_y); - wl_surface_attach(surface, buffer, 0, 0); - wl_surface_damage(surface, 0, 0, - image->width, image->height); - wl_surface_commit(surface); - } - else - { - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - surface, - cursor->wl.xhot, - cursor->wl.yhot); - wl_surface_attach(surface, cursor->wl.buffer, 0, 0); - wl_surface_damage(surface, 0, 0, - cursor->wl.width, cursor->wl.height); - wl_surface_commit(surface); - } - } - else if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (!isPointerLocked(window)) - lockPointer(window); - } - else if (window->cursorMode == GLFW_CURSOR_HIDDEN) - { - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - NULL, 0, 0); - } -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Clipboard setting not implemented yet"); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Clipboard getting not implemented yet"); - return NULL; -} - -char** _glfwPlatformGetRequiredInstanceExtensions(uint32_t* count) -{ - char** extensions; - - *count = 0; - - if (!_glfw.vk.KHR_wayland_surface) - return NULL; - - extensions = calloc(2, sizeof(char*)); - extensions[0] = strdup("VK_KHR_surface"); - extensions[1] = strdup("VK_KHR_wayland_surface"); - - *count = 2; - return extensions; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR vkGetPhysicalDeviceWaylandPresentationSupportKHR = - (PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR) - vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceWaylandPresentationSupportKHR"); - if (!vkGetPhysicalDeviceWaylandPresentationSupportKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"); - return VK_NULL_HANDLE; - } - - return vkGetPhysicalDeviceWaylandPresentationSupportKHR(device, - queuefamily, - _glfw.wl.display); -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - VkResult err; - VkWaylandSurfaceCreateInfoKHR sci; - PFN_vkCreateWaylandSurfaceKHR vkCreateWaylandSurfaceKHR; - - vkCreateWaylandSurfaceKHR = (PFN_vkCreateWaylandSurfaceKHR) - vkGetInstanceProcAddr(instance, "vkCreateWaylandSurfaceKHR"); - if (!vkCreateWaylandSurfaceKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR; - sci.display = _glfw.wl.display; - sci.surface = window->wl.surface; - - err = vkCreateWaylandSurfaceKHR(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to create Vulkan surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI struct wl_display* glfwGetWaylandDisplay(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfw.wl.display; -} - -GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->wl.surface; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_init.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_init.c deleted file mode 100644 index f7a06c1..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_init.c +++ /dev/null @@ -1,833 +0,0 @@ -//======================================================================== -// GLFW 3.2 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include - -#include -#include -#include -#include -#include - - -// Translate an X11 key code to a GLFW key code. -// -static int translateKeyCode(int scancode) -{ - int keySym; - - // Valid key code range is [8,255], according to the Xlib manual - if (scancode < 8 || scancode > 255) - return GLFW_KEY_UNKNOWN; - - if (_glfw.x11.xkb.available) - { - // Try secondary keysym, for numeric keypad keys - // Note: This way we always force "NumLock = ON", which is intentional - // since the returned key code should correspond to a physical - // location. - keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 1); - switch (keySym) - { - case XK_KP_0: return GLFW_KEY_KP_0; - case XK_KP_1: return GLFW_KEY_KP_1; - case XK_KP_2: return GLFW_KEY_KP_2; - case XK_KP_3: return GLFW_KEY_KP_3; - case XK_KP_4: return GLFW_KEY_KP_4; - case XK_KP_5: return GLFW_KEY_KP_5; - case XK_KP_6: return GLFW_KEY_KP_6; - case XK_KP_7: return GLFW_KEY_KP_7; - case XK_KP_8: return GLFW_KEY_KP_8; - case XK_KP_9: return GLFW_KEY_KP_9; - case XK_KP_Separator: - case XK_KP_Decimal: return GLFW_KEY_KP_DECIMAL; - case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; - case XK_KP_Enter: return GLFW_KEY_KP_ENTER; - default: break; - } - - // Now try primary keysym for function keys (non-printable keys) - // These should not depend on the current keyboard layout - keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); - } - else - { - int dummy; - KeySym* keySyms; - - keySyms = XGetKeyboardMapping(_glfw.x11.display, scancode, 1, &dummy); - keySym = keySyms[0]; - XFree(keySyms); - } - - switch (keySym) - { - case XK_Escape: return GLFW_KEY_ESCAPE; - case XK_Tab: return GLFW_KEY_TAB; - case XK_Shift_L: return GLFW_KEY_LEFT_SHIFT; - case XK_Shift_R: return GLFW_KEY_RIGHT_SHIFT; - case XK_Control_L: return GLFW_KEY_LEFT_CONTROL; - case XK_Control_R: return GLFW_KEY_RIGHT_CONTROL; - case XK_Meta_L: - case XK_Alt_L: return GLFW_KEY_LEFT_ALT; - case XK_Mode_switch: // Mapped to Alt_R on many keyboards - case XK_ISO_Level3_Shift: // AltGr on at least some machines - case XK_Meta_R: - case XK_Alt_R: return GLFW_KEY_RIGHT_ALT; - case XK_Super_L: return GLFW_KEY_LEFT_SUPER; - case XK_Super_R: return GLFW_KEY_RIGHT_SUPER; - case XK_Menu: return GLFW_KEY_MENU; - case XK_Num_Lock: return GLFW_KEY_NUM_LOCK; - case XK_Caps_Lock: return GLFW_KEY_CAPS_LOCK; - case XK_Print: return GLFW_KEY_PRINT_SCREEN; - case XK_Scroll_Lock: return GLFW_KEY_SCROLL_LOCK; - case XK_Pause: return GLFW_KEY_PAUSE; - case XK_Delete: return GLFW_KEY_DELETE; - case XK_BackSpace: return GLFW_KEY_BACKSPACE; - case XK_Return: return GLFW_KEY_ENTER; - case XK_Home: return GLFW_KEY_HOME; - case XK_End: return GLFW_KEY_END; - case XK_Page_Up: return GLFW_KEY_PAGE_UP; - case XK_Page_Down: return GLFW_KEY_PAGE_DOWN; - case XK_Insert: return GLFW_KEY_INSERT; - case XK_Left: return GLFW_KEY_LEFT; - case XK_Right: return GLFW_KEY_RIGHT; - case XK_Down: return GLFW_KEY_DOWN; - case XK_Up: return GLFW_KEY_UP; - case XK_F1: return GLFW_KEY_F1; - case XK_F2: return GLFW_KEY_F2; - case XK_F3: return GLFW_KEY_F3; - case XK_F4: return GLFW_KEY_F4; - case XK_F5: return GLFW_KEY_F5; - case XK_F6: return GLFW_KEY_F6; - case XK_F7: return GLFW_KEY_F7; - case XK_F8: return GLFW_KEY_F8; - case XK_F9: return GLFW_KEY_F9; - case XK_F10: return GLFW_KEY_F10; - case XK_F11: return GLFW_KEY_F11; - case XK_F12: return GLFW_KEY_F12; - case XK_F13: return GLFW_KEY_F13; - case XK_F14: return GLFW_KEY_F14; - case XK_F15: return GLFW_KEY_F15; - case XK_F16: return GLFW_KEY_F16; - case XK_F17: return GLFW_KEY_F17; - case XK_F18: return GLFW_KEY_F18; - case XK_F19: return GLFW_KEY_F19; - case XK_F20: return GLFW_KEY_F20; - case XK_F21: return GLFW_KEY_F21; - case XK_F22: return GLFW_KEY_F22; - case XK_F23: return GLFW_KEY_F23; - case XK_F24: return GLFW_KEY_F24; - case XK_F25: return GLFW_KEY_F25; - - // Numeric keypad - case XK_KP_Divide: return GLFW_KEY_KP_DIVIDE; - case XK_KP_Multiply: return GLFW_KEY_KP_MULTIPLY; - case XK_KP_Subtract: return GLFW_KEY_KP_SUBTRACT; - case XK_KP_Add: return GLFW_KEY_KP_ADD; - - // These should have been detected in secondary keysym test above! - case XK_KP_Insert: return GLFW_KEY_KP_0; - case XK_KP_End: return GLFW_KEY_KP_1; - case XK_KP_Down: return GLFW_KEY_KP_2; - case XK_KP_Page_Down: return GLFW_KEY_KP_3; - case XK_KP_Left: return GLFW_KEY_KP_4; - case XK_KP_Right: return GLFW_KEY_KP_6; - case XK_KP_Home: return GLFW_KEY_KP_7; - case XK_KP_Up: return GLFW_KEY_KP_8; - case XK_KP_Page_Up: return GLFW_KEY_KP_9; - case XK_KP_Delete: return GLFW_KEY_KP_DECIMAL; - case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; - case XK_KP_Enter: return GLFW_KEY_KP_ENTER; - - // Last resort: Check for printable keys (should not happen if the XKB - // extension is available). This will give a layout dependent mapping - // (which is wrong, and we may miss some keys, especially on non-US - // keyboards), but it's better than nothing... - case XK_a: return GLFW_KEY_A; - case XK_b: return GLFW_KEY_B; - case XK_c: return GLFW_KEY_C; - case XK_d: return GLFW_KEY_D; - case XK_e: return GLFW_KEY_E; - case XK_f: return GLFW_KEY_F; - case XK_g: return GLFW_KEY_G; - case XK_h: return GLFW_KEY_H; - case XK_i: return GLFW_KEY_I; - case XK_j: return GLFW_KEY_J; - case XK_k: return GLFW_KEY_K; - case XK_l: return GLFW_KEY_L; - case XK_m: return GLFW_KEY_M; - case XK_n: return GLFW_KEY_N; - case XK_o: return GLFW_KEY_O; - case XK_p: return GLFW_KEY_P; - case XK_q: return GLFW_KEY_Q; - case XK_r: return GLFW_KEY_R; - case XK_s: return GLFW_KEY_S; - case XK_t: return GLFW_KEY_T; - case XK_u: return GLFW_KEY_U; - case XK_v: return GLFW_KEY_V; - case XK_w: return GLFW_KEY_W; - case XK_x: return GLFW_KEY_X; - case XK_y: return GLFW_KEY_Y; - case XK_z: return GLFW_KEY_Z; - case XK_1: return GLFW_KEY_1; - case XK_2: return GLFW_KEY_2; - case XK_3: return GLFW_KEY_3; - case XK_4: return GLFW_KEY_4; - case XK_5: return GLFW_KEY_5; - case XK_6: return GLFW_KEY_6; - case XK_7: return GLFW_KEY_7; - case XK_8: return GLFW_KEY_8; - case XK_9: return GLFW_KEY_9; - case XK_0: return GLFW_KEY_0; - case XK_space: return GLFW_KEY_SPACE; - case XK_minus: return GLFW_KEY_MINUS; - case XK_equal: return GLFW_KEY_EQUAL; - case XK_bracketleft: return GLFW_KEY_LEFT_BRACKET; - case XK_bracketright: return GLFW_KEY_RIGHT_BRACKET; - case XK_backslash: return GLFW_KEY_BACKSLASH; - case XK_semicolon: return GLFW_KEY_SEMICOLON; - case XK_apostrophe: return GLFW_KEY_APOSTROPHE; - case XK_grave: return GLFW_KEY_GRAVE_ACCENT; - case XK_comma: return GLFW_KEY_COMMA; - case XK_period: return GLFW_KEY_PERIOD; - case XK_slash: return GLFW_KEY_SLASH; - case XK_less: return GLFW_KEY_WORLD_1; // At least in some layouts... - default: break; - } - - // No matching translation was found - return GLFW_KEY_UNKNOWN; -} - -// Create key code translation tables -// -static void createKeyTables(void) -{ - int scancode, key; - - memset(_glfw.x11.publicKeys, -1, sizeof(_glfw.x11.publicKeys)); - memset(_glfw.x11.nativeKeys, -1, sizeof(_glfw.x11.nativeKeys)); - - if (_glfw.x11.xkb.available) - { - // Use XKB to determine physical key locations independently of the current - // keyboard layout - - char name[XkbKeyNameLength + 1]; - XkbDescPtr desc = XkbGetMap(_glfw.x11.display, 0, XkbUseCoreKbd); - XkbGetNames(_glfw.x11.display, XkbKeyNamesMask, desc); - - // Find the X11 key code -> GLFW key code mapping - for (scancode = desc->min_key_code; scancode <= desc->max_key_code; scancode++) - { - memcpy(name, desc->names->keys[scancode].name, XkbKeyNameLength); - name[XkbKeyNameLength] = '\0'; - - // Map the key name to a GLFW key code. Note: We only map printable - // keys here, and we use the US keyboard layout. The rest of the - // keys (function keys) are mapped using traditional KeySym - // translations. - if (strcmp(name, "TLDE") == 0) key = GLFW_KEY_GRAVE_ACCENT; - else if (strcmp(name, "AE01") == 0) key = GLFW_KEY_1; - else if (strcmp(name, "AE02") == 0) key = GLFW_KEY_2; - else if (strcmp(name, "AE03") == 0) key = GLFW_KEY_3; - else if (strcmp(name, "AE04") == 0) key = GLFW_KEY_4; - else if (strcmp(name, "AE05") == 0) key = GLFW_KEY_5; - else if (strcmp(name, "AE06") == 0) key = GLFW_KEY_6; - else if (strcmp(name, "AE07") == 0) key = GLFW_KEY_7; - else if (strcmp(name, "AE08") == 0) key = GLFW_KEY_8; - else if (strcmp(name, "AE09") == 0) key = GLFW_KEY_9; - else if (strcmp(name, "AE10") == 0) key = GLFW_KEY_0; - else if (strcmp(name, "AE11") == 0) key = GLFW_KEY_MINUS; - else if (strcmp(name, "AE12") == 0) key = GLFW_KEY_EQUAL; - else if (strcmp(name, "AD01") == 0) key = GLFW_KEY_Q; - else if (strcmp(name, "AD02") == 0) key = GLFW_KEY_W; - else if (strcmp(name, "AD03") == 0) key = GLFW_KEY_E; - else if (strcmp(name, "AD04") == 0) key = GLFW_KEY_R; - else if (strcmp(name, "AD05") == 0) key = GLFW_KEY_T; - else if (strcmp(name, "AD06") == 0) key = GLFW_KEY_Y; - else if (strcmp(name, "AD07") == 0) key = GLFW_KEY_U; - else if (strcmp(name, "AD08") == 0) key = GLFW_KEY_I; - else if (strcmp(name, "AD09") == 0) key = GLFW_KEY_O; - else if (strcmp(name, "AD10") == 0) key = GLFW_KEY_P; - else if (strcmp(name, "AD11") == 0) key = GLFW_KEY_LEFT_BRACKET; - else if (strcmp(name, "AD12") == 0) key = GLFW_KEY_RIGHT_BRACKET; - else if (strcmp(name, "AC01") == 0) key = GLFW_KEY_A; - else if (strcmp(name, "AC02") == 0) key = GLFW_KEY_S; - else if (strcmp(name, "AC03") == 0) key = GLFW_KEY_D; - else if (strcmp(name, "AC04") == 0) key = GLFW_KEY_F; - else if (strcmp(name, "AC05") == 0) key = GLFW_KEY_G; - else if (strcmp(name, "AC06") == 0) key = GLFW_KEY_H; - else if (strcmp(name, "AC07") == 0) key = GLFW_KEY_J; - else if (strcmp(name, "AC08") == 0) key = GLFW_KEY_K; - else if (strcmp(name, "AC09") == 0) key = GLFW_KEY_L; - else if (strcmp(name, "AC10") == 0) key = GLFW_KEY_SEMICOLON; - else if (strcmp(name, "AC11") == 0) key = GLFW_KEY_APOSTROPHE; - else if (strcmp(name, "AB01") == 0) key = GLFW_KEY_Z; - else if (strcmp(name, "AB02") == 0) key = GLFW_KEY_X; - else if (strcmp(name, "AB03") == 0) key = GLFW_KEY_C; - else if (strcmp(name, "AB04") == 0) key = GLFW_KEY_V; - else if (strcmp(name, "AB05") == 0) key = GLFW_KEY_B; - else if (strcmp(name, "AB06") == 0) key = GLFW_KEY_N; - else if (strcmp(name, "AB07") == 0) key = GLFW_KEY_M; - else if (strcmp(name, "AB08") == 0) key = GLFW_KEY_COMMA; - else if (strcmp(name, "AB09") == 0) key = GLFW_KEY_PERIOD; - else if (strcmp(name, "AB10") == 0) key = GLFW_KEY_SLASH; - else if (strcmp(name, "BKSL") == 0) key = GLFW_KEY_BACKSLASH; - else if (strcmp(name, "LSGT") == 0) key = GLFW_KEY_WORLD_1; - else key = GLFW_KEY_UNKNOWN; - - if ((scancode >= 0) && (scancode < 256)) - _glfw.x11.publicKeys[scancode] = key; - } - - XkbFreeNames(desc, XkbKeyNamesMask, True); - XkbFreeKeyboard(desc, 0, True); - } - - for (scancode = 0; scancode < 256; scancode++) - { - // Translate the un-translated key codes using traditional X11 KeySym - // lookups - if (_glfw.x11.publicKeys[scancode] < 0) - _glfw.x11.publicKeys[scancode] = translateKeyCode(scancode); - - // Store the reverse translation for faster key name lookup - if (_glfw.x11.publicKeys[scancode] > 0) - _glfw.x11.nativeKeys[_glfw.x11.publicKeys[scancode]] = scancode; - } -} - -// Check whether the IM has a usable style -// -static GLFWbool hasUsableInputMethodStyle(void) -{ - unsigned int i; - GLFWbool found = GLFW_FALSE; - XIMStyles* styles = NULL; - - if (XGetIMValues(_glfw.x11.im, XNQueryInputStyle, &styles, NULL) != NULL) - return GLFW_FALSE; - - for (i = 0; i < styles->count_styles; i++) - { - if (styles->supported_styles[i] == (XIMPreeditNothing | XIMStatusNothing)) - { - found = GLFW_TRUE; - break; - } - } - - XFree(styles); - return found; -} - -// Check whether the specified atom is supported -// -static Atom getSupportedAtom(Atom* supportedAtoms, - unsigned long atomCount, - const char* atomName) -{ - unsigned long i; - const Atom atom = XInternAtom(_glfw.x11.display, atomName, False); - - for (i = 0; i < atomCount; i++) - { - if (supportedAtoms[i] == atom) - return atom; - } - - return None; -} - -// Check whether the running window manager is EWMH-compliant -// -static void detectEWMH(void) -{ - Window* windowFromRoot = NULL; - Window* windowFromChild = NULL; - - // First we need a couple of atoms - const Atom supportingWmCheck = - XInternAtom(_glfw.x11.display, "_NET_SUPPORTING_WM_CHECK", False); - const Atom wmSupported = - XInternAtom(_glfw.x11.display, "_NET_SUPPORTED", False); - - // Then we look for the _NET_SUPPORTING_WM_CHECK property of the root window - if (_glfwGetWindowPropertyX11(_glfw.x11.root, - supportingWmCheck, - XA_WINDOW, - (unsigned char**) &windowFromRoot) != 1) - { - if (windowFromRoot) - XFree(windowFromRoot); - return; - } - - _glfwGrabErrorHandlerX11(); - - // It should be the ID of a child window (of the root) - // Then we look for the same property on the child window - if (_glfwGetWindowPropertyX11(*windowFromRoot, - supportingWmCheck, - XA_WINDOW, - (unsigned char**) &windowFromChild) != 1) - { - XFree(windowFromRoot); - if (windowFromChild) - XFree(windowFromChild); - return; - } - - _glfwReleaseErrorHandlerX11(); - - // It should be the ID of that same child window - if (*windowFromRoot != *windowFromChild) - { - XFree(windowFromRoot); - XFree(windowFromChild); - return; - } - - XFree(windowFromRoot); - XFree(windowFromChild); - - // We are now fairly sure that an EWMH-compliant window manager is running - - Atom* supportedAtoms; - unsigned long atomCount; - - // Now we need to check the _NET_SUPPORTED property of the root window - // It should be a list of supported WM protocol and state atoms - atomCount = _glfwGetWindowPropertyX11(_glfw.x11.root, - wmSupported, - XA_ATOM, - (unsigned char**) &supportedAtoms); - - // See which of the atoms we support that are supported by the WM - _glfw.x11.NET_WM_STATE = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE"); - _glfw.x11.NET_WM_STATE_ABOVE = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_ABOVE"); - _glfw.x11.NET_WM_STATE_FULLSCREEN = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_FULLSCREEN"); - _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_MAXIMIZED_VERT"); - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_MAXIMIZED_HORZ"); - _glfw.x11.NET_WM_FULLSCREEN_MONITORS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_FULLSCREEN_MONITORS"); - _glfw.x11.NET_WM_WINDOW_TYPE = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_WINDOW_TYPE"); - _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_WINDOW_TYPE_NORMAL"); - _glfw.x11.NET_ACTIVE_WINDOW = - getSupportedAtom(supportedAtoms, atomCount, "_NET_ACTIVE_WINDOW"); - _glfw.x11.NET_FRAME_EXTENTS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_FRAME_EXTENTS"); - _glfw.x11.NET_REQUEST_FRAME_EXTENTS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_REQUEST_FRAME_EXTENTS"); - - XFree(supportedAtoms); -} - -// Initialize X11 display and look for supported X11 extensions -// -static GLFWbool initExtensions(void) -{ -#if defined(_GLFW_HAS_XF86VM) - // Check for XF86VidMode extension - _glfw.x11.vidmode.available = - XF86VidModeQueryExtension(_glfw.x11.display, - &_glfw.x11.vidmode.eventBase, - &_glfw.x11.vidmode.errorBase); -#endif /*_GLFW_HAS_XF86VM*/ - - // Check for RandR extension - if (XRRQueryExtension(_glfw.x11.display, - &_glfw.x11.randr.eventBase, - &_glfw.x11.randr.errorBase)) - { - if (XRRQueryVersion(_glfw.x11.display, - &_glfw.x11.randr.major, - &_glfw.x11.randr.minor)) - { - // The GLFW RandR path requires at least version 1.3 - if (_glfw.x11.randr.major > 1 || _glfw.x11.randr.minor >= 3) - _glfw.x11.randr.available = GLFW_TRUE; - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to query RandR version"); - } - } - - if (_glfw.x11.randr.available) - { - XRRScreenResources* sr = XRRGetScreenResources(_glfw.x11.display, - _glfw.x11.root); - - if (!sr->ncrtc || !XRRGetCrtcGammaSize(_glfw.x11.display, sr->crtcs[0])) - { - // This is either a headless system or an older Nvidia binary driver - // with broken gamma support - // Flag it as useless and fall back to Xf86VidMode gamma, if - // available - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: RandR gamma ramp support seems broken"); - _glfw.x11.randr.gammaBroken = GLFW_TRUE; - } - - XRRFreeScreenResources(sr); - - XRRSelectInput(_glfw.x11.display, _glfw.x11.root, - RROutputChangeNotifyMask); - } - - if (XineramaQueryExtension(_glfw.x11.display, - &_glfw.x11.xinerama.major, - &_glfw.x11.xinerama.minor)) - { - if (XineramaIsActive(_glfw.x11.display)) - _glfw.x11.xinerama.available = GLFW_TRUE; - } - - // Check if Xkb is supported on this display - _glfw.x11.xkb.major = 1; - _glfw.x11.xkb.minor = 0; - _glfw.x11.xkb.available = - XkbQueryExtension(_glfw.x11.display, - &_glfw.x11.xkb.majorOpcode, - &_glfw.x11.xkb.eventBase, - &_glfw.x11.xkb.errorBase, - &_glfw.x11.xkb.major, - &_glfw.x11.xkb.minor); - - if (_glfw.x11.xkb.available) - { - Bool supported; - - if (XkbSetDetectableAutoRepeat(_glfw.x11.display, True, &supported)) - { - if (supported) - _glfw.x11.xkb.detectable = GLFW_TRUE; - } - } - - _glfw.x11.x11xcb.handle = dlopen("libX11-xcb.so", RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.x11.x11xcb.handle) - { - _glfw.x11.x11xcb.XGetXCBConnection = (XGETXCBCONNECTION_T) - dlsym(_glfw.x11.x11xcb.handle, "XGetXCBConnection"); - } - - // Update the key code LUT - // FIXME: We should listen to XkbMapNotify events to track changes to - // the keyboard mapping. - createKeyTables(); - - // Detect whether an EWMH-conformant window manager is running - detectEWMH(); - - // String format atoms - _glfw.x11.NULL_ = XInternAtom(_glfw.x11.display, "NULL", False); - _glfw.x11.UTF8_STRING = - XInternAtom(_glfw.x11.display, "UTF8_STRING", False); - _glfw.x11.COMPOUND_STRING = - XInternAtom(_glfw.x11.display, "COMPOUND_STRING", False); - _glfw.x11.ATOM_PAIR = XInternAtom(_glfw.x11.display, "ATOM_PAIR", False); - - // Custom selection property atom - _glfw.x11.GLFW_SELECTION = - XInternAtom(_glfw.x11.display, "GLFW_SELECTION", False); - - // ICCCM standard clipboard atoms - _glfw.x11.TARGETS = XInternAtom(_glfw.x11.display, "TARGETS", False); - _glfw.x11.MULTIPLE = XInternAtom(_glfw.x11.display, "MULTIPLE", False); - _glfw.x11.CLIPBOARD = XInternAtom(_glfw.x11.display, "CLIPBOARD", False); - - // Clipboard manager atoms - _glfw.x11.CLIPBOARD_MANAGER = - XInternAtom(_glfw.x11.display, "CLIPBOARD_MANAGER", False); - _glfw.x11.SAVE_TARGETS = - XInternAtom(_glfw.x11.display, "SAVE_TARGETS", False); - - // Xdnd (drag and drop) atoms - _glfw.x11.XdndAware = XInternAtom(_glfw.x11.display, "XdndAware", False); - _glfw.x11.XdndEnter = XInternAtom(_glfw.x11.display, "XdndEnter", False); - _glfw.x11.XdndPosition = XInternAtom(_glfw.x11.display, "XdndPosition", False); - _glfw.x11.XdndStatus = XInternAtom(_glfw.x11.display, "XdndStatus", False); - _glfw.x11.XdndActionCopy = XInternAtom(_glfw.x11.display, "XdndActionCopy", False); - _glfw.x11.XdndDrop = XInternAtom(_glfw.x11.display, "XdndDrop", False); - _glfw.x11.XdndLeave = XInternAtom(_glfw.x11.display, "XdndLeave", False); - _glfw.x11.XdndFinished = XInternAtom(_glfw.x11.display, "XdndFinished", False); - _glfw.x11.XdndSelection = XInternAtom(_glfw.x11.display, "XdndSelection", False); - - // ICCCM, EWMH and Motif window property atoms - // These can be set safely even without WM support - // The EWMH atoms that require WM support are handled in detectEWMH - _glfw.x11.WM_PROTOCOLS = - XInternAtom(_glfw.x11.display, "WM_PROTOCOLS", False); - _glfw.x11.WM_STATE = - XInternAtom(_glfw.x11.display, "WM_STATE", False); - _glfw.x11.WM_DELETE_WINDOW = - XInternAtom(_glfw.x11.display, "WM_DELETE_WINDOW", False); - _glfw.x11.NET_WM_ICON = - XInternAtom(_glfw.x11.display, "_NET_WM_ICON", False); - _glfw.x11.NET_WM_PING = - XInternAtom(_glfw.x11.display, "_NET_WM_PING", False); - _glfw.x11.NET_WM_PID = - XInternAtom(_glfw.x11.display, "_NET_WM_PID", False); - _glfw.x11.NET_WM_NAME = - XInternAtom(_glfw.x11.display, "_NET_WM_NAME", False); - _glfw.x11.NET_WM_ICON_NAME = - XInternAtom(_glfw.x11.display, "_NET_WM_ICON_NAME", False); - _glfw.x11.NET_WM_BYPASS_COMPOSITOR = - XInternAtom(_glfw.x11.display, "_NET_WM_BYPASS_COMPOSITOR", False); - _glfw.x11.MOTIF_WM_HINTS = - XInternAtom(_glfw.x11.display, "_MOTIF_WM_HINTS", False); - - return GLFW_TRUE; -} - -// Create a blank cursor for hidden and disabled cursor modes -// -static Cursor createHiddenCursor(void) -{ - unsigned char pixels[16 * 16 * 4]; - GLFWimage image = { 16, 16, pixels }; - - memset(pixels, 0, sizeof(pixels)); - - return _glfwCreateCursorX11(&image, 0, 0); -} - -// X error handler -// -static int errorHandler(Display *display, XErrorEvent* event) -{ - _glfw.x11.errorCode = event->error_code; - return 0; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Sets the X error handler callback -// -void _glfwGrabErrorHandlerX11(void) -{ - _glfw.x11.errorCode = Success; - XSetErrorHandler(errorHandler); -} - -// Clears the X error handler callback -// -void _glfwReleaseErrorHandlerX11(void) -{ - // Synchronize to make sure all commands are processed - XSync(_glfw.x11.display, False); - XSetErrorHandler(NULL); -} - -// Reports the specified error, appending information about the last X error -// -void _glfwInputErrorX11(int error, const char* message) -{ - char buffer[8192]; - XGetErrorText(_glfw.x11.display, _glfw.x11.errorCode, - buffer, sizeof(buffer)); - - _glfwInputError(error, "%s: %s", message, buffer); -} - -// Creates a native cursor object from the specified image and hotspot -// -Cursor _glfwCreateCursorX11(const GLFWimage* image, int xhot, int yhot) -{ - int i; - Cursor cursor; - - XcursorImage* native = XcursorImageCreate(image->width, image->height); - if (native == NULL) - return None; - - native->xhot = xhot; - native->yhot = yhot; - - unsigned char* source = (unsigned char*) image->pixels; - XcursorPixel* target = native->pixels; - - for (i = 0; i < image->width * image->height; i++, target++, source += 4) - { - unsigned int alpha = source[3]; - - *target = (alpha << 24) | - ((unsigned char) ((source[0] * alpha) / 255) << 16) | - ((unsigned char) ((source[1] * alpha) / 255) << 8) | - ((unsigned char) ((source[2] * alpha) / 255) << 0); - } - - cursor = XcursorImageLoadCursor(_glfw.x11.display, native); - XcursorImageDestroy(native); - - return cursor; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ -#if !defined(X_HAVE_UTF8_STRING) - // HACK: If the current locale is C, apply the environment's locale - // This is done because the C locale breaks wide character input - if (strcmp(setlocale(LC_CTYPE, NULL), "C") == 0) - setlocale(LC_CTYPE, ""); -#endif - - XInitThreads(); - - _glfw.x11.display = XOpenDisplay(NULL); - if (!_glfw.x11.display) - { - const char* display = getenv("DISPLAY"); - if (display) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to open display %s", display); - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: The DISPLAY environment variable is missing"); - } - - return GLFW_FALSE; - } - - _glfw.x11.screen = DefaultScreen(_glfw.x11.display); - _glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen); - _glfw.x11.context = XUniqueContext(); - - if (!initExtensions()) - return GLFW_FALSE; - - _glfw.x11.cursor = createHiddenCursor(); - - if (XSupportsLocale()) - { - XSetLocaleModifiers(""); - - _glfw.x11.im = XOpenIM(_glfw.x11.display, 0, NULL, NULL); - if (_glfw.x11.im) - { - if (!hasUsableInputMethodStyle()) - { - XCloseIM(_glfw.x11.im); - _glfw.x11.im = NULL; - } - } - } - - if (!_glfwInitThreadLocalStoragePOSIX()) - return GLFW_FALSE; - - if (!_glfwInitJoysticksLinux()) - return GLFW_FALSE; - - _glfwInitTimerPOSIX(); - - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - if (_glfw.x11.x11xcb.handle) - { - dlclose(_glfw.x11.x11xcb.handle); - _glfw.x11.x11xcb.handle = NULL; - } - - if (_glfw.x11.cursor) - { - XFreeCursor(_glfw.x11.display, _glfw.x11.cursor); - _glfw.x11.cursor = (Cursor) 0; - } - - free(_glfw.x11.clipboardString); - - if (_glfw.x11.im) - { - XCloseIM(_glfw.x11.im); - _glfw.x11.im = NULL; - } - - _glfwTerminateEGL(); - - if (_glfw.x11.display) - { - XCloseDisplay(_glfw.x11.display); - _glfw.x11.display = NULL; - } - - // NOTE: This needs to be done after XCloseDisplay, as libGL registers - // cleanup callbacks that get called by it - _glfwTerminateGLX(); - - _glfwTerminateJoysticksLinux(); - _glfwTerminateThreadLocalStoragePOSIX(); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " X11 GLX EGL" -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif -#if defined(__linux__) - " /dev/js" -#endif -#if defined(_GLFW_HAS_XF86VM) - " Xf86vm" -#endif -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_monitor.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_monitor.c deleted file mode 100644 index 2cec791..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_monitor.c +++ /dev/null @@ -1,491 +0,0 @@ -//======================================================================== -// GLFW 3.2 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include -#include - - -// Check whether the display mode should be included in enumeration -// -static GLFWbool modeIsGood(const XRRModeInfo* mi) -{ - return (mi->modeFlags & RR_Interlace) == 0; -} - -// Calculates the refresh rate, in Hz, from the specified RandR mode info -// -static int calculateRefreshRate(const XRRModeInfo* mi) -{ - if (mi->hTotal && mi->vTotal) - return (int) ((double) mi->dotClock / ((double) mi->hTotal * (double) mi->vTotal)); - else - return 0; -} - -// Returns the mode info for a RandR mode XID -// -static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id) -{ - int i; - - for (i = 0; i < sr->nmode; i++) - { - if (sr->modes[i].id == id) - return sr->modes + i; - } - - return NULL; -} - -// Convert RandR mode info to GLFW video mode -// -static GLFWvidmode vidmodeFromModeInfo(const XRRModeInfo* mi, - const XRRCrtcInfo* ci) -{ - GLFWvidmode mode; - - if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) - { - mode.width = mi->height; - mode.height = mi->width; - } - else - { - mode.width = mi->width; - mode.height = mi->height; - } - - mode.refreshRate = calculateRefreshRate(mi); - - _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), - &mode.redBits, &mode.greenBits, &mode.blueBits); - - return mode; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Set the current video mode for the specified monitor -// -GLFWbool _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - XRROutputInfo* oi; - GLFWvidmode current; - const GLFWvidmode* best; - RRMode native = None; - int i; - - best = _glfwChooseVideoMode(monitor, desired); - _glfwPlatformGetVideoMode(monitor, ¤t); - if (_glfwCompareVideoModes(¤t, best) == 0) - return GLFW_TRUE; - - sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); - - for (i = 0; i < oi->nmode; i++) - { - const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); - if (!modeIsGood(mi)) - continue; - - const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); - if (_glfwCompareVideoModes(best, &mode) == 0) - { - native = mi->id; - break; - } - } - - if (native) - { - if (monitor->x11.oldMode == None) - monitor->x11.oldMode = ci->mode; - - XRRSetCrtcConfig(_glfw.x11.display, - sr, monitor->x11.crtc, - CurrentTime, - ci->x, ci->y, - native, - ci->rotation, - ci->outputs, - ci->noutput); - } - - XRRFreeOutputInfo(oi); - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - - if (!native) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Monitor mode list changed"); - return GLFW_FALSE; - } - } - - return GLFW_TRUE; -} - -// Restore the saved (original) video mode for the specified monitor -// -void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - if (monitor->x11.oldMode == None) - return; - - sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - XRRSetCrtcConfig(_glfw.x11.display, - sr, monitor->x11.crtc, - CurrentTime, - ci->x, ci->y, - monitor->x11.oldMode, - ci->rotation, - ci->outputs, - ci->noutput); - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - - monitor->x11.oldMode = None; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor** _glfwPlatformGetMonitors(int* count) -{ - int i, j, k, found = 0; - _GLFWmonitor** monitors = NULL; - - *count = 0; - - if (_glfw.x11.randr.available) - { - int screenCount = 0; - XineramaScreenInfo* screens = NULL; - XRRScreenResources* sr = XRRGetScreenResources(_glfw.x11.display, - _glfw.x11.root); - RROutput primary = XRRGetOutputPrimary(_glfw.x11.display, - _glfw.x11.root); - - monitors = calloc(sr->noutput, sizeof(_GLFWmonitor*)); - - if (_glfw.x11.xinerama.available) - screens = XineramaQueryScreens(_glfw.x11.display, &screenCount); - - for (i = 0; i < sr->ncrtc; i++) - { - XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, - sr, sr->crtcs[i]); - - for (j = 0; j < ci->noutput; j++) - { - int widthMM, heightMM; - _GLFWmonitor* monitor; - XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, - sr, ci->outputs[j]); - if (oi->connection != RR_Connected) - { - XRRFreeOutputInfo(oi); - continue; - } - - if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) - { - widthMM = oi->mm_height; - heightMM = oi->mm_width; - } - else - { - widthMM = oi->mm_width; - heightMM = oi->mm_height; - } - - monitor = _glfwAllocMonitor(oi->name, widthMM, heightMM); - monitor->x11.output = ci->outputs[j]; - monitor->x11.crtc = oi->crtc; - - for (k = 0; k < screenCount; k++) - { - if (screens[k].x_org == ci->x && - screens[k].y_org == ci->y && - screens[k].width == ci->width && - screens[k].height == ci->height) - { - monitor->x11.index = k; - break; - } - } - - XRRFreeOutputInfo(oi); - - found++; - monitors[found - 1] = monitor; - - if (ci->outputs[j] == primary) - _GLFW_SWAP_POINTERS(monitors[0], monitors[found - 1]); - } - - XRRFreeCrtcInfo(ci); - } - - XRRFreeScreenResources(sr); - - if (screens) - XFree(screens); - - if (found == 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: RandR monitor support seems broken"); - - _glfw.x11.randr.monitorBroken = GLFW_TRUE; - free(monitors); - monitors = NULL; - } - } - - if (!monitors) - { - monitors = calloc(1, sizeof(_GLFWmonitor*)); - monitors[0] = _glfwAllocMonitor("Display", - DisplayWidthMM(_glfw.x11.display, - _glfw.x11.screen), - DisplayHeightMM(_glfw.x11.display, - _glfw.x11.screen)); - found = 1; - } - - *count = found; - return monitors; -} - -GLFWbool _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) -{ - return first->x11.crtc == second->x11.crtc; -} - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - if (xpos) - *xpos = ci->x; - if (ypos) - *ypos = ci->y; - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) -{ - GLFWvidmode* result; - - *count = 0; - - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - int i, j; - XRRScreenResources* sr; - XRRCrtcInfo* ci; - XRROutputInfo* oi; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); - - result = calloc(oi->nmode, sizeof(GLFWvidmode)); - - for (i = 0; i < oi->nmode; i++) - { - const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); - if (!modeIsGood(mi)) - continue; - - const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); - - for (j = 0; j < *count; j++) - { - if (_glfwCompareVideoModes(result + j, &mode) == 0) - break; - } - - // Skip duplicate modes - if (j < *count) - continue; - - (*count)++; - result[*count - 1] = mode; - } - - XRRFreeOutputInfo(oi); - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } - else - { - *count = 1; - result = calloc(1, sizeof(GLFWvidmode)); - _glfwPlatformGetVideoMode(monitor, result); - } - - return result; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - *mode = vidmodeFromModeInfo(getModeInfo(sr, ci->mode), ci); - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } - else - { - mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen); - mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen); - mode->refreshRate = 0; - - _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), - &mode->redBits, &mode->greenBits, &mode->blueBits); - } -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) - { - const size_t size = XRRGetCrtcGammaSize(_glfw.x11.display, - monitor->x11.crtc); - XRRCrtcGamma* gamma = XRRGetCrtcGamma(_glfw.x11.display, - monitor->x11.crtc); - - _glfwAllocGammaArrays(ramp, size); - - memcpy(ramp->red, gamma->red, size * sizeof(unsigned short)); - memcpy(ramp->green, gamma->green, size * sizeof(unsigned short)); - memcpy(ramp->blue, gamma->blue, size * sizeof(unsigned short)); - - XRRFreeGamma(gamma); - } -#if defined(_GLFW_HAS_XF86VM) - else if (_glfw.x11.vidmode.available) - { - int size; - XF86VidModeGetGammaRampSize(_glfw.x11.display, _glfw.x11.screen, &size); - - _glfwAllocGammaArrays(ramp, size); - - XF86VidModeGetGammaRamp(_glfw.x11.display, - _glfw.x11.screen, - ramp->size, ramp->red, ramp->green, ramp->blue); - } -#endif /*_GLFW_HAS_XF86VM*/ -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) - { - XRRCrtcGamma* gamma = XRRAllocGamma(ramp->size); - - memcpy(gamma->red, ramp->red, ramp->size * sizeof(unsigned short)); - memcpy(gamma->green, ramp->green, ramp->size * sizeof(unsigned short)); - memcpy(gamma->blue, ramp->blue, ramp->size * sizeof(unsigned short)); - - XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma); - XRRFreeGamma(gamma); - } -#if defined(_GLFW_HAS_XF86VM) - else if (_glfw.x11.vidmode.available) - { - XF86VidModeSetGammaRamp(_glfw.x11.display, - _glfw.x11.screen, - ramp->size, - (unsigned short*) ramp->red, - (unsigned short*) ramp->green, - (unsigned short*) ramp->blue); - } -#endif /*_GLFW_HAS_XF86VM*/ -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - return monitor->x11.crtc; -} - -GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - return monitor->x11.output; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_platform.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_platform.h deleted file mode 100644 index 3304306..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_platform.h +++ /dev/null @@ -1,296 +0,0 @@ -//======================================================================== -// GLFW 3.2 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_x11_platform_h_ -#define _glfw3_x11_platform_h_ - -#include -#include -#include -#include - -#include -#include -#include -#include - -// The XRandR extension provides mode setting and gamma control -#include - -// The Xkb extension provides improved keyboard support -#include - -// The Xinerama extension provides legacy monitor indices -#include - -#if defined(_GLFW_HAS_XF86VM) - // The Xf86VidMode extension provides fallback gamma control - #include -#endif - -typedef XID xcb_window_t; -typedef XID xcb_visualid_t; -typedef struct xcb_connection_t xcb_connection_t; -typedef xcb_connection_t* (* XGETXCBCONNECTION_T)(Display*); - -typedef VkFlags VkXlibSurfaceCreateFlagsKHR; -typedef VkFlags VkXcbSurfaceCreateFlagsKHR; - -typedef struct VkXlibSurfaceCreateInfoKHR -{ - VkStructureType sType; - const void* pNext; - VkXlibSurfaceCreateFlagsKHR flags; - Display* dpy; - Window window; -} VkXlibSurfaceCreateInfoKHR; - -typedef struct VkXcbSurfaceCreateInfoKHR -{ - VkStructureType sType; - const void* pNext; - VkXcbSurfaceCreateFlagsKHR flags; - xcb_connection_t* connection; - xcb_window_t window; -} VkXcbSurfaceCreateInfoKHR; - -typedef VkResult (APIENTRY *PFN_vkCreateXlibSurfaceKHR)(VkInstance,const VkXlibSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); -typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice,uint32_t,Display*,VisualID); -typedef VkResult (APIENTRY *PFN_vkCreateXcbSurfaceKHR)(VkInstance,const VkXcbSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); -typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice,uint32_t,xcb_connection_t*,xcb_visualid_t); - -#include "posix_tls.h" -#include "posix_time.h" -#include "linux_joystick.h" -#include "xkb_unicode.h" -#include "glx_context.h" -#include "egl_context.h" - -#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) -#define _glfw_dlclose(handle) dlclose(handle) -#define _glfw_dlsym(handle, name) dlsym(handle, name) - -#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->x11.handle) -#define _GLFW_EGL_NATIVE_DISPLAY ((EGLNativeDisplayType) _glfw.x11.display) - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowX11 x11 -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryX11 x11 -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorX11 x11 -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorX11 x11 - - -// X11-specific per-window data -// -typedef struct _GLFWwindowX11 -{ - Colormap colormap; - Window handle; - XIC ic; - - GLFWbool overrideRedirect; - - // Cached position and size used to filter out duplicate events - int width, height; - int xpos, ypos; - - // The last received cursor position, regardless of source - int lastCursorPosX, lastCursorPosY; - // The last position the cursor was warped to by GLFW - int warpCursorPosX, warpCursorPosY; - - // The information from the last KeyPress event - unsigned int lastKeyCode; - Time lastKeyTime; - -} _GLFWwindowX11; - -// X11-specific global data -// -typedef struct _GLFWlibraryX11 -{ - Display* display; - int screen; - Window root; - - // Invisible cursor for hidden cursor mode - Cursor cursor; - // Context for mapping window XIDs to _GLFWwindow pointers - XContext context; - // XIM input method - XIM im; - // Most recent error code received by X error handler - int errorCode; - // Clipboard string (while the selection is owned) - char* clipboardString; - // Key name string - char keyName[64]; - // X11 keycode to GLFW key LUT - short int publicKeys[256]; - // GLFW key to X11 keycode LUT - short int nativeKeys[GLFW_KEY_LAST + 1]; - // Where to place the cursor when re-enabled - double restoreCursorPosX, restoreCursorPosY; - // The window whose disabled cursor mode is active - _GLFWwindow* disabledCursorWindow; - - // Window manager atoms - Atom WM_PROTOCOLS; - Atom WM_STATE; - Atom WM_DELETE_WINDOW; - Atom NET_WM_NAME; - Atom NET_WM_ICON_NAME; - Atom NET_WM_ICON; - Atom NET_WM_PID; - Atom NET_WM_PING; - Atom NET_WM_WINDOW_TYPE; - Atom NET_WM_WINDOW_TYPE_NORMAL; - Atom NET_WM_STATE; - Atom NET_WM_STATE_ABOVE; - Atom NET_WM_STATE_FULLSCREEN; - Atom NET_WM_STATE_MAXIMIZED_VERT; - Atom NET_WM_STATE_MAXIMIZED_HORZ; - Atom NET_WM_BYPASS_COMPOSITOR; - Atom NET_WM_FULLSCREEN_MONITORS; - Atom NET_ACTIVE_WINDOW; - Atom NET_FRAME_EXTENTS; - Atom NET_REQUEST_FRAME_EXTENTS; - Atom MOTIF_WM_HINTS; - - // Xdnd (drag and drop) atoms - Atom XdndAware; - Atom XdndEnter; - Atom XdndPosition; - Atom XdndStatus; - Atom XdndActionCopy; - Atom XdndDrop; - Atom XdndLeave; - Atom XdndFinished; - Atom XdndSelection; - - // Selection (clipboard) atoms - Atom TARGETS; - Atom MULTIPLE; - Atom CLIPBOARD; - Atom CLIPBOARD_MANAGER; - Atom SAVE_TARGETS; - Atom NULL_; - Atom UTF8_STRING; - Atom COMPOUND_STRING; - Atom ATOM_PAIR; - Atom GLFW_SELECTION; - - struct { - GLFWbool available; - int eventBase; - int errorBase; - int major; - int minor; - GLFWbool gammaBroken; - GLFWbool monitorBroken; - } randr; - - struct { - GLFWbool available; - GLFWbool detectable; - int majorOpcode; - int eventBase; - int errorBase; - int major; - int minor; - } xkb; - - struct { - int count; - int timeout; - int interval; - int blanking; - int exposure; - } saver; - - struct { - Window source; - } xdnd; - - struct { - GLFWbool available; - int major; - int minor; - } xinerama; - - struct { - void* handle; - XGETXCBCONNECTION_T XGetXCBConnection; - } x11xcb; - -#if defined(_GLFW_HAS_XF86VM) - struct { - GLFWbool available; - int eventBase; - int errorBase; - } vidmode; -#endif /*_GLFW_HAS_XF86VM*/ - -} _GLFWlibraryX11; - -// X11-specific per-monitor data -// -typedef struct _GLFWmonitorX11 -{ - RROutput output; - RRCrtc crtc; - RRMode oldMode; - - // Index of corresponding Xinerama screen, - // for EWMH full screen window placement - int index; - -} _GLFWmonitorX11; - -// X11-specific per-cursor data -// -typedef struct _GLFWcursorX11 -{ - Cursor handle; - -} _GLFWcursorX11; - - -GLFWbool _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired); -void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor); - -Cursor _glfwCreateCursorX11(const GLFWimage* image, int xhot, int yhot); - -unsigned long _glfwGetWindowPropertyX11(Window window, - Atom property, - Atom type, - unsigned char** value); - -void _glfwGrabErrorHandlerX11(void); -void _glfwReleaseErrorHandlerX11(void); -void _glfwInputErrorX11(int error, const char* message); - -#endif // _glfw3_x11_platform_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_window.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_window.c deleted file mode 100644 index 077eebb..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/x11_window.c +++ /dev/null @@ -1,2475 +0,0 @@ -//======================================================================== -// GLFW 3.2 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - -#include -#include - -#include - -#include -#include -#include -#include -#include -#include - -// Action for EWMH client messages -#define _NET_WM_STATE_REMOVE 0 -#define _NET_WM_STATE_ADD 1 -#define _NET_WM_STATE_TOGGLE 2 - -// Additional mouse button names for XButtonEvent -#define Button6 6 -#define Button7 7 - - -// Wait for data to arrive using select -// This avoids blocking other threads via the per-display Xlib lock that also -// covers GLX functions -// -static GLFWbool waitForEvent(double* timeout) -{ - fd_set fds; - const int fd = ConnectionNumber(_glfw.x11.display); - int count = fd + 1; - - FD_ZERO(&fds); - FD_SET(fd, &fds); -#if defined(__linux__) - FD_SET(_glfw.linux_js.inotify, &fds); - - if (fd < _glfw.linux_js.inotify) - count = _glfw.linux_js.inotify + 1; -#endif - for (;;) - { - if (timeout) - { - const long seconds = (long) *timeout; - const long microseconds = (long) ((*timeout - seconds) * 1e6); - struct timeval tv = { seconds, microseconds }; - const uint64_t base = _glfwPlatformGetTimerValue(); - - const int result = select(count, &fds, NULL, NULL, &tv); - const int error = errno; - - *timeout -= (_glfwPlatformGetTimerValue() - base) / - (double) _glfwPlatformGetTimerFrequency(); - - if (result > 0) - return GLFW_TRUE; - if ((result == -1 && error == EINTR) || *timeout <= 0.0) - return GLFW_FALSE; - } - else if (select(count, &fds, NULL, NULL, NULL) != -1 || errno != EINTR) - return GLFW_TRUE; - } -} - -// Waits until a VisibilityNotify event arrives for the specified window or the -// timeout period elapses (ICCCM section 4.2.2) -// -static GLFWbool waitForVisibilityNotify(_GLFWwindow* window) -{ - XEvent dummy; - double timeout = 0.1; - - while (!XCheckTypedWindowEvent(_glfw.x11.display, - window->x11.handle, - VisibilityNotify, - &dummy)) - { - if (!waitForEvent(&timeout)) - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -// Returns whether the window is iconified -// -static int getWindowState(_GLFWwindow* window) -{ - int result = WithdrawnState; - struct { - CARD32 state; - Window icon; - } *state = NULL; - - if (_glfwGetWindowPropertyX11(window->x11.handle, - _glfw.x11.WM_STATE, - _glfw.x11.WM_STATE, - (unsigned char**) &state) >= 2) - { - result = state->state; - } - - XFree(state); - return result; -} - -// Returns whether the event is a selection event -// -static Bool isSelectionEvent(Display* display, XEvent* event, XPointer pointer) -{ - return event->type == SelectionRequest || - event->type == SelectionNotify || - event->type == SelectionClear; -} - -// Returns whether it is a _NET_FRAME_EXTENTS event for the specified window -// -static Bool isFrameExtentsEvent(Display* display, XEvent* event, XPointer pointer) -{ - _GLFWwindow* window = (_GLFWwindow*) pointer; - return event->type == PropertyNotify && - event->xproperty.state == PropertyNewValue && - event->xproperty.window == window->x11.handle && - event->xproperty.atom == _glfw.x11.NET_FRAME_EXTENTS; -} - -// Translates a GLFW standard cursor to a font cursor shape -// -static int translateCursorShape(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return XC_left_ptr; - case GLFW_IBEAM_CURSOR: - return XC_xterm; - case GLFW_CROSSHAIR_CURSOR: - return XC_crosshair; - case GLFW_HAND_CURSOR: - return XC_hand1; - case GLFW_HRESIZE_CURSOR: - return XC_sb_h_double_arrow; - case GLFW_VRESIZE_CURSOR: - return XC_sb_v_double_arrow; - } - - return 0; -} - -// Translates an X event modifier state mask -// -static int translateState(int state) -{ - int mods = 0; - - if (state & ShiftMask) - mods |= GLFW_MOD_SHIFT; - if (state & ControlMask) - mods |= GLFW_MOD_CONTROL; - if (state & Mod1Mask) - mods |= GLFW_MOD_ALT; - if (state & Mod4Mask) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Translates an X11 key code to a GLFW key token -// -static int translateKey(int scancode) -{ - // Use the pre-filled LUT (see createKeyTables() in x11_init.c) - if (scancode < 0 || scancode > 255) - return GLFW_KEY_UNKNOWN; - - return _glfw.x11.publicKeys[scancode]; -} - -// Return the GLFW window corresponding to the specified X11 window -// -static _GLFWwindow* findWindowByHandle(Window handle) -{ - _GLFWwindow* window; - - if (XFindContext(_glfw.x11.display, - handle, - _glfw.x11.context, - (XPointer*) &window) != 0) - { - return NULL; - } - - return window; -} - -// Sends an EWMH or ICCCM event to the window manager -// -static void sendEventToWM(_GLFWwindow* window, Atom type, - long a, long b, long c, long d, long e) -{ - XEvent event; - memset(&event, 0, sizeof(event)); - - event.type = ClientMessage; - event.xclient.window = window->x11.handle; - event.xclient.format = 32; // Data is 32-bit longs - event.xclient.message_type = type; - event.xclient.data.l[0] = a; - event.xclient.data.l[1] = b; - event.xclient.data.l[2] = c; - event.xclient.data.l[3] = d; - event.xclient.data.l[4] = e; - - XSendEvent(_glfw.x11.display, _glfw.x11.root, - False, - SubstructureNotifyMask | SubstructureRedirectMask, - &event); -} - -// Updates the normal hints according to the window settings -// -static void updateNormalHints(_GLFWwindow* window, int width, int height) -{ - XSizeHints* hints = XAllocSizeHints(); - - if (!window->monitor) - { - if (window->resizable) - { - if (window->minwidth != GLFW_DONT_CARE && - window->minheight != GLFW_DONT_CARE) - { - hints->flags |= PMinSize; - hints->min_width = window->minwidth; - hints->min_height = window->minheight; - } - - if (window->maxwidth != GLFW_DONT_CARE && - window->maxheight != GLFW_DONT_CARE) - { - hints->flags |= PMaxSize; - hints->max_width = window->maxwidth; - hints->max_height = window->maxheight; - } - - if (window->numer != GLFW_DONT_CARE && - window->denom != GLFW_DONT_CARE) - { - hints->flags |= PAspect; - hints->min_aspect.x = hints->max_aspect.x = window->numer; - hints->min_aspect.y = hints->max_aspect.y = window->denom; - } - } - else - { - hints->flags |= (PMinSize | PMaxSize); - hints->min_width = hints->max_width = width; - hints->min_height = hints->max_height = height; - } - } - - hints->flags |= PWinGravity; - hints->win_gravity = StaticGravity; - - XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); - XFree(hints); -} - -// Updates the full screen status of the window -// -static void updateWindowMode(_GLFWwindow* window) -{ - if (window->monitor) - { - if (_glfw.x11.xinerama.available && - _glfw.x11.NET_WM_FULLSCREEN_MONITORS) - { - sendEventToWM(window, - _glfw.x11.NET_WM_FULLSCREEN_MONITORS, - window->monitor->x11.index, - window->monitor->x11.index, - window->monitor->x11.index, - window->monitor->x11.index, - 0); - } - - if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_FULLSCREEN) - { - sendEventToWM(window, - _glfw.x11.NET_WM_STATE, - _NET_WM_STATE_ADD, - _glfw.x11.NET_WM_STATE_FULLSCREEN, - 0, 1, 0); - } - else - { - // This is the butcher's way of removing window decorations - // Setting the override-redirect attribute on a window makes the - // window manager ignore the window completely (ICCCM, section 4) - // The good thing is that this makes undecorated full screen windows - // easy to do; the bad thing is that we have to do everything - // manually and some things (like iconify/restore) won't work at - // all, as those are tasks usually performed by the window manager - - XSetWindowAttributes attributes; - attributes.override_redirect = True; - XChangeWindowAttributes(_glfw.x11.display, - window->x11.handle, - CWOverrideRedirect, - &attributes); - - window->x11.overrideRedirect = GLFW_TRUE; - } - - // Enable compositor bypass - { - const unsigned long value = 1; - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32, - PropModeReplace, (unsigned char*) &value, 1); - } - } - else - { - if (_glfw.x11.xinerama.available && - _glfw.x11.NET_WM_FULLSCREEN_MONITORS) - { - XDeleteProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_FULLSCREEN_MONITORS); - } - - if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_FULLSCREEN) - { - sendEventToWM(window, - _glfw.x11.NET_WM_STATE, - _NET_WM_STATE_REMOVE, - _glfw.x11.NET_WM_STATE_FULLSCREEN, - 0, 1, 0); - } - else - { - XSetWindowAttributes attributes; - attributes.override_redirect = False; - XChangeWindowAttributes(_glfw.x11.display, - window->x11.handle, - CWOverrideRedirect, - &attributes); - - window->x11.overrideRedirect = GLFW_FALSE; - } - - // Disable compositor bypass - { - XDeleteProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_BYPASS_COMPOSITOR); - } - } -} - -// Splits and translates a text/uri-list into separate file paths -// NOTE: This function destroys the provided string -// -static char** parseUriList(char* text, int* count) -{ - const char* prefix = "file://"; - char** paths = NULL; - char* line; - - *count = 0; - - while ((line = strtok(text, "\r\n"))) - { - text = NULL; - - if (line[0] == '#') - continue; - - if (strncmp(line, prefix, strlen(prefix)) == 0) - line += strlen(prefix); - - (*count)++; - - char* path = calloc(strlen(line) + 1, 1); - paths = realloc(paths, *count * sizeof(char*)); - paths[*count - 1] = path; - - while (*line) - { - if (line[0] == '%' && line[1] && line[2]) - { - const char digits[3] = { line[1], line[2], '\0' }; - *path = strtol(digits, NULL, 16); - line += 2; - } - else - *path = *line; - - path++; - line++; - } - } - - return paths; -} - -// Centers the cursor over the window client area -// -static void centerCursor(_GLFWwindow* window) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); -} - -// Updates the cursor image according to its cursor mode -// -static void updateCursorImage(_GLFWwindow* window) -{ - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (window->cursor) - { - XDefineCursor(_glfw.x11.display, window->x11.handle, - window->cursor->x11.handle); - } - else - XUndefineCursor(_glfw.x11.display, window->x11.handle); - } - else - XDefineCursor(_glfw.x11.display, window->x11.handle, _glfw.x11.cursor); -} - -// Create the X11 window (and its colormap) -// -static GLFWbool createNativeWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - Visual* visual, int depth) -{ - // Create a colormap based on the visual used by the current context - window->x11.colormap = XCreateColormap(_glfw.x11.display, - _glfw.x11.root, - visual, - AllocNone); - - // Create the actual window - { - XSetWindowAttributes wa; - const unsigned long wamask = CWBorderPixel | CWColormap | CWEventMask; - - wa.colormap = window->x11.colormap; - wa.border_pixel = 0; - wa.event_mask = StructureNotifyMask | KeyPressMask | KeyReleaseMask | - PointerMotionMask | ButtonPressMask | ButtonReleaseMask | - ExposureMask | FocusChangeMask | VisibilityChangeMask | - EnterWindowMask | LeaveWindowMask | PropertyChangeMask; - - _glfwGrabErrorHandlerX11(); - - window->x11.handle = XCreateWindow(_glfw.x11.display, - _glfw.x11.root, - 0, 0, - wndconfig->width, wndconfig->height, - 0, // Border width - depth, // Color depth - InputOutput, - visual, - wamask, - &wa); - - _glfwReleaseErrorHandlerX11(); - - if (!window->x11.handle) - { - _glfwInputErrorX11(GLFW_PLATFORM_ERROR, - "X11: Failed to create window"); - return GLFW_FALSE; - } - - XSaveContext(_glfw.x11.display, - window->x11.handle, - _glfw.x11.context, - (XPointer) window); - } - - if (!wndconfig->decorated) - { - struct - { - unsigned long flags; - unsigned long functions; - unsigned long decorations; - long input_mode; - unsigned long status; - } hints; - - hints.flags = 2; // Set decorations - hints.decorations = 0; // No decorations - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.MOTIF_WM_HINTS, - _glfw.x11.MOTIF_WM_HINTS, 32, - PropModeReplace, - (unsigned char*) &hints, - sizeof(hints) / sizeof(long)); - } - - if (_glfw.x11.NET_WM_STATE && !window->monitor) - { - Atom states[3]; - int count = 0; - - if (wndconfig->floating) - { - if (_glfw.x11.NET_WM_STATE_ABOVE) - states[count++] = _glfw.x11.NET_WM_STATE_ABOVE; - } - - if (wndconfig->maximized) - { - if (_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) - { - states[count++] = _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT; - states[count++] = _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ; - } - } - - if (count) - { - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_STATE, XA_ATOM, 32, - PropModeReplace, (unsigned char*) &states, count); - } - } - - // Declare the WM protocols supported by GLFW - { - Atom protocols[] = - { - _glfw.x11.WM_DELETE_WINDOW, - _glfw.x11.NET_WM_PING - }; - - XSetWMProtocols(_glfw.x11.display, window->x11.handle, - protocols, sizeof(protocols) / sizeof(Atom)); - } - - // Declare our PID - { - const pid_t pid = getpid(); - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_PID, XA_CARDINAL, 32, - PropModeReplace, - (unsigned char*) &pid, 1); - } - - if (_glfw.x11.NET_WM_WINDOW_TYPE && _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL) - { - Atom type = _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL; - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_WINDOW_TYPE, XA_ATOM, 32, - PropModeReplace, (unsigned char*) &type, 1); - } - - // Set ICCCM WM_HINTS property - { - XWMHints* hints = XAllocWMHints(); - if (!hints) - { - _glfwInputError(GLFW_OUT_OF_MEMORY, - "X11: Failed to allocate WM hints"); - return GLFW_FALSE; - } - - hints->flags = StateHint; - hints->initial_state = NormalState; - - XSetWMHints(_glfw.x11.display, window->x11.handle, hints); - XFree(hints); - } - - updateNormalHints(window, wndconfig->width, wndconfig->height); - - // Set ICCCM WM_CLASS property - // HACK: Until a mechanism for specifying the application name is added, the - // initial window title is used as the window class name - if (strlen(wndconfig->title)) - { - XClassHint* hint = XAllocClassHint(); - hint->res_name = (char*) wndconfig->title; - hint->res_class = (char*) wndconfig->title; - - XSetClassHint(_glfw.x11.display, window->x11.handle, hint); - XFree(hint); - } - - if (_glfw.x11.XdndAware) - { - // Announce support for Xdnd (drag and drop) - const Atom version = 5; - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.XdndAware, XA_ATOM, 32, - PropModeReplace, (unsigned char*) &version, 1); - } - - _glfwPlatformSetWindowTitle(window, wndconfig->title); - - if (_glfw.x11.im) - { - window->x11.ic = XCreateIC(_glfw.x11.im, - XNInputStyle, - XIMPreeditNothing | XIMStatusNothing, - XNClientWindow, - window->x11.handle, - XNFocusWindow, - window->x11.handle, - NULL); - } - - _glfwPlatformGetWindowPos(window, &window->x11.xpos, &window->x11.ypos); - _glfwPlatformGetWindowSize(window, &window->x11.width, &window->x11.height); - - return GLFW_TRUE; -} - -// Set the specified property to the selection converted to the requested target -// -static Atom writeTargetToProperty(const XSelectionRequestEvent* request) -{ - int i; - const Atom formats[] = { _glfw.x11.UTF8_STRING, - _glfw.x11.COMPOUND_STRING, - XA_STRING }; - const int formatCount = sizeof(formats) / sizeof(formats[0]); - - if (request->property == None) - { - // The requester is a legacy client (ICCCM section 2.2) - // We don't support legacy clients, so fail here - return None; - } - - if (request->target == _glfw.x11.TARGETS) - { - // The list of supported targets was requested - - const Atom targets[] = { _glfw.x11.TARGETS, - _glfw.x11.MULTIPLE, - _glfw.x11.UTF8_STRING, - _glfw.x11.COMPOUND_STRING, - XA_STRING }; - - XChangeProperty(_glfw.x11.display, - request->requestor, - request->property, - XA_ATOM, - 32, - PropModeReplace, - (unsigned char*) targets, - sizeof(targets) / sizeof(targets[0])); - - return request->property; - } - - if (request->target == _glfw.x11.MULTIPLE) - { - // Multiple conversions were requested - - Atom* targets; - unsigned long i, count; - - count = _glfwGetWindowPropertyX11(request->requestor, - request->property, - _glfw.x11.ATOM_PAIR, - (unsigned char**) &targets); - - for (i = 0; i < count; i += 2) - { - int j; - - for (j = 0; j < formatCount; j++) - { - if (targets[i] == formats[j]) - break; - } - - if (j < formatCount) - { - XChangeProperty(_glfw.x11.display, - request->requestor, - targets[i + 1], - targets[i], - 8, - PropModeReplace, - (unsigned char*) _glfw.x11.clipboardString, - strlen(_glfw.x11.clipboardString)); - } - else - targets[i + 1] = None; - } - - XChangeProperty(_glfw.x11.display, - request->requestor, - request->property, - _glfw.x11.ATOM_PAIR, - 32, - PropModeReplace, - (unsigned char*) targets, - count); - - XFree(targets); - - return request->property; - } - - if (request->target == _glfw.x11.SAVE_TARGETS) - { - // The request is a check whether we support SAVE_TARGETS - // It should be handled as a no-op side effect target - - XChangeProperty(_glfw.x11.display, - request->requestor, - request->property, - _glfw.x11.NULL_, - 32, - PropModeReplace, - NULL, - 0); - - return request->property; - } - - // Conversion to a data target was requested - - for (i = 0; i < formatCount; i++) - { - if (request->target == formats[i]) - { - // The requested target is one we support - - XChangeProperty(_glfw.x11.display, - request->requestor, - request->property, - request->target, - 8, - PropModeReplace, - (unsigned char*) _glfw.x11.clipboardString, - strlen(_glfw.x11.clipboardString)); - - return request->property; - } - } - - // The requested target is not supported - - return None; -} - -static void handleSelectionClear(XEvent* event) -{ - free(_glfw.x11.clipboardString); - _glfw.x11.clipboardString = NULL; -} - -static void handleSelectionRequest(XEvent* event) -{ - const XSelectionRequestEvent* request = &event->xselectionrequest; - - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.xselection.property = writeTargetToProperty(request); - reply.xselection.type = SelectionNotify; - reply.xselection.display = request->display; - reply.xselection.requestor = request->requestor; - reply.xselection.selection = request->selection; - reply.xselection.target = request->target; - reply.xselection.time = request->time; - - XSendEvent(_glfw.x11.display, request->requestor, False, 0, &reply); -} - -static void pushSelectionToManager(_GLFWwindow* window) -{ - XConvertSelection(_glfw.x11.display, - _glfw.x11.CLIPBOARD_MANAGER, - _glfw.x11.SAVE_TARGETS, - None, - window->x11.handle, - CurrentTime); - - for (;;) - { - XEvent event; - - while (XCheckIfEvent(_glfw.x11.display, &event, isSelectionEvent, NULL)) - { - switch (event.type) - { - case SelectionRequest: - handleSelectionRequest(&event); - break; - - case SelectionClear: - handleSelectionClear(&event); - break; - - case SelectionNotify: - { - if (event.xselection.target == _glfw.x11.SAVE_TARGETS) - { - // This means one of two things; either the selection was - // not owned, which means there is no clipboard manager, or - // the transfer to the clipboard manager has completed - // In either case, it means we are done here - return; - } - - break; - } - } - } - - waitForEvent(NULL); - } -} - -// Make the specified window and its video mode active on its monitor -// -static GLFWbool acquireMonitor(_GLFWwindow* window) -{ - GLFWbool status; - - if (_glfw.x11.saver.count == 0) - { - // Remember old screen saver settings - XGetScreenSaver(_glfw.x11.display, - &_glfw.x11.saver.timeout, - &_glfw.x11.saver.interval, - &_glfw.x11.saver.blanking, - &_glfw.x11.saver.exposure); - - // Disable screen saver - XSetScreenSaver(_glfw.x11.display, 0, 0, DontPreferBlanking, - DefaultExposures); - } - - if (!window->monitor->window) - _glfw.x11.saver.count++; - - status = _glfwSetVideoModeX11(window->monitor, &window->videoMode); - - if (window->x11.overrideRedirect) - { - int xpos, ypos; - GLFWvidmode mode; - - // Manually position the window over its monitor - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - _glfwPlatformGetVideoMode(window->monitor, &mode); - - XMoveResizeWindow(_glfw.x11.display, window->x11.handle, - xpos, ypos, mode.width, mode.height); - } - - _glfwInputMonitorWindowChange(window->monitor, window); - return status; -} - -// Remove the window and restore the original video mode -// -static void releaseMonitor(_GLFWwindow* window) -{ - if (window->monitor->window != window) - return; - - _glfwInputMonitorWindowChange(window->monitor, NULL); - _glfwRestoreVideoModeX11(window->monitor); - - _glfw.x11.saver.count--; - - if (_glfw.x11.saver.count == 0) - { - // Restore old screen saver settings - XSetScreenSaver(_glfw.x11.display, - _glfw.x11.saver.timeout, - _glfw.x11.saver.interval, - _glfw.x11.saver.blanking, - _glfw.x11.saver.exposure); - } -} - -// Decode a Unicode code point from a UTF-8 stream -// Based on cutef8 by Jeff Bezanson (Public Domain) -// -#if defined(X_HAVE_UTF8_STRING) -static unsigned int decodeUTF8(const char** s) -{ - unsigned int ch = 0, count = 0; - static const unsigned int offsets[] = - { - 0x00000000u, 0x00003080u, 0x000e2080u, - 0x03c82080u, 0xfa082080u, 0x82082080u - }; - - do - { - ch = (ch << 6) + (unsigned char) **s; - (*s)++; - count++; - } while ((**s & 0xc0) == 0x80); - - assert(count <= 6); - return ch - offsets[count - 1]; -} -#endif /*X_HAVE_UTF8_STRING*/ - -// Process the specified X event -// -static void processEvent(XEvent *event) -{ - _GLFWwindow* window = NULL; - int keycode = 0; - Bool filtered = False; - - // HACK: Save scancode as some IMs clear the field in XFilterEvent - if (event->type == KeyPress || event->type == KeyRelease) - keycode = event->xkey.keycode; - - if (_glfw.x11.im) - filtered = XFilterEvent(event, None); - - if (_glfw.x11.randr.available) - { - if (event->type == _glfw.x11.randr.eventBase + RRNotify) - { - XRRUpdateConfiguration(event); - _glfwInputMonitorChange(); - return; - } - } - - if (event->type != GenericEvent) - { - window = findWindowByHandle(event->xany.window); - if (window == NULL) - { - // This is an event for a window that has already been destroyed - return; - } - } - - switch (event->type) - { - case KeyPress: - { - const int key = translateKey(keycode); - const int mods = translateState(event->xkey.state); - const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); - - if (window->x11.ic) - { - // HACK: Ignore duplicate key press events generated by ibus - // Corresponding release events are filtered out by the - // GLFW key repeat logic - if (window->x11.lastKeyCode != keycode || - window->x11.lastKeyTime != event->xkey.time) - { - if (keycode) - _glfwInputKey(window, key, keycode, GLFW_PRESS, mods); - } - - window->x11.lastKeyCode = keycode; - window->x11.lastKeyTime = event->xkey.time; - - if (!filtered) - { - int count; - Status status; -#if defined(X_HAVE_UTF8_STRING) - char buffer[100]; - char* chars = buffer; - - count = Xutf8LookupString(window->x11.ic, - &event->xkey, - buffer, sizeof(buffer) - 1, - NULL, &status); - - if (status == XBufferOverflow) - { - chars = calloc(count + 1, 1); - count = Xutf8LookupString(window->x11.ic, - &event->xkey, - chars, count, - NULL, &status); - } - - if (status == XLookupChars || status == XLookupBoth) - { - const char* c = chars; - chars[count] = '\0'; - while (c - chars < count) - _glfwInputChar(window, decodeUTF8(&c), mods, plain); - } -#else /*X_HAVE_UTF8_STRING*/ - wchar_t buffer[16]; - wchar_t* chars = buffer; - - count = XwcLookupString(window->x11.ic, - &event->xkey, - buffer, sizeof(buffer) / sizeof(wchar_t), - NULL, &status); - - if (status == XBufferOverflow) - { - chars = calloc(count, sizeof(wchar_t)); - count = XwcLookupString(window->x11.ic, - &event->xkey, - chars, count, - NULL, &status); - } - - if (status == XLookupChars || status == XLookupBoth) - { - int i; - for (i = 0; i < count; i++) - _glfwInputChar(window, chars[i], mods, plain); - } -#endif /*X_HAVE_UTF8_STRING*/ - - if (chars != buffer) - free(chars); - } - } - else - { - KeySym keysym; - XLookupString(&event->xkey, NULL, 0, &keysym, NULL); - - _glfwInputKey(window, key, keycode, GLFW_PRESS, mods); - - const long character = _glfwKeySym2Unicode(keysym); - if (character != -1) - _glfwInputChar(window, character, mods, plain); - } - - return; - } - - case KeyRelease: - { - const int key = translateKey(keycode); - const int mods = translateState(event->xkey.state); - - if (!_glfw.x11.xkb.detectable) - { - // HACK: Key repeat events will arrive as KeyRelease/KeyPress - // pairs with similar or identical time stamps - // The key repeat logic in _glfwInputKey expects only key - // presses to repeat, so detect and discard release events - if (XEventsQueued(_glfw.x11.display, QueuedAfterReading)) - { - XEvent next; - XPeekEvent(_glfw.x11.display, &next); - - if (next.type == KeyPress && - next.xkey.window == event->xkey.window && - next.xkey.keycode == keycode) - { - // HACK: The time of repeat events sometimes doesn't - // match that of the press event, so add an - // epsilon - // Toshiyuki Takahashi can press a button - // 16 times per second so it's fairly safe to - // assume that no human is pressing the key 50 - // times per second (value is ms) - if ((next.xkey.time - event->xkey.time) < 20) - { - // This is very likely a server-generated key repeat - // event, so ignore it - return; - } - } - } - } - - _glfwInputKey(window, key, keycode, GLFW_RELEASE, mods); - return; - } - - case ButtonPress: - { - const int mods = translateState(event->xbutton.state); - - if (event->xbutton.button == Button1) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_LEFT, GLFW_PRESS, mods); - else if (event->xbutton.button == Button2) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_MIDDLE, GLFW_PRESS, mods); - else if (event->xbutton.button == Button3) - _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_RIGHT, GLFW_PRESS, mods); - - // Modern X provides scroll events as mouse button presses - else if (event->xbutton.button == Button4) - _glfwInputScroll(window, 0.0, 1.0); - else if (event->xbutton.button == Button5) - _glfwInputScroll(window, 0.0, -1.0); - else if (event->xbutton.button == Button6) - _glfwInputScroll(window, 1.0, 0.0); - else if (event->xbutton.button == Button7) - _glfwInputScroll(window, -1.0, 0.0); - - else - { - // Additional buttons after 7 are treated as regular buttons - // We subtract 4 to fill the gap left by scroll input above - _glfwInputMouseClick(window, - event->xbutton.button - Button1 - 4, - GLFW_PRESS, - mods); - } - - return; - } - - case ButtonRelease: - { - const int mods = translateState(event->xbutton.state); - - if (event->xbutton.button == Button1) - { - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_LEFT, - GLFW_RELEASE, - mods); - } - else if (event->xbutton.button == Button2) - { - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_MIDDLE, - GLFW_RELEASE, - mods); - } - else if (event->xbutton.button == Button3) - { - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_RIGHT, - GLFW_RELEASE, - mods); - } - else if (event->xbutton.button > Button7) - { - // Additional buttons after 7 are treated as regular buttons - // We subtract 4 to fill the gap left by scroll input above - _glfwInputMouseClick(window, - event->xbutton.button - Button1 - 4, - GLFW_RELEASE, - mods); - } - - return; - } - - case EnterNotify: - { - // HACK: This is a workaround for WMs (KWM, Fluxbox) that otherwise - // ignore the defined cursor for hidden cursor mode - if (window->cursorMode == GLFW_CURSOR_HIDDEN) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_HIDDEN); - - _glfwInputCursorEnter(window, GLFW_TRUE); - return; - } - - case LeaveNotify: - { - _glfwInputCursorEnter(window, GLFW_FALSE); - return; - } - - case MotionNotify: - { - const int x = event->xmotion.x; - const int y = event->xmotion.y; - - if (x != window->x11.warpCursorPosX || y != window->x11.warpCursorPosY) - { - // The cursor was moved by something other than GLFW - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (_glfw.x11.disabledCursorWindow != window) - return; - - const int dx = x - window->x11.lastCursorPosX; - const int dy = y - window->x11.lastCursorPosY; - - _glfwInputCursorPos(window, - window->virtualCursorPosX + dx, - window->virtualCursorPosY + dy); - } - else - _glfwInputCursorPos(window, x, y); - } - - window->x11.lastCursorPosX = x; - window->x11.lastCursorPosY = y; - return; - } - - case ConfigureNotify: - { - if (event->xconfigure.width != window->x11.width || - event->xconfigure.height != window->x11.height) - { - _glfwInputFramebufferSize(window, - event->xconfigure.width, - event->xconfigure.height); - - _glfwInputWindowSize(window, - event->xconfigure.width, - event->xconfigure.height); - - window->x11.width = event->xconfigure.width; - window->x11.height = event->xconfigure.height; - } - - if (event->xconfigure.x != window->x11.xpos || - event->xconfigure.y != window->x11.ypos) - { - if (window->x11.overrideRedirect || event->xany.send_event) - { - _glfwInputWindowPos(window, - event->xconfigure.x, - event->xconfigure.y); - - window->x11.xpos = event->xconfigure.x; - window->x11.ypos = event->xconfigure.y; - } - } - - return; - } - - case ClientMessage: - { - // Custom client message, probably from the window manager - - if (filtered) - return; - - if (event->xclient.message_type == None) - return; - - if (event->xclient.message_type == _glfw.x11.WM_PROTOCOLS) - { - const Atom protocol = event->xclient.data.l[0]; - if (protocol == None) - return; - - if (protocol == _glfw.x11.WM_DELETE_WINDOW) - { - // The window manager was asked to close the window, for example by - // the user pressing a 'close' window decoration button - _glfwInputWindowCloseRequest(window); - } - else if (protocol == _glfw.x11.NET_WM_PING) - { - // The window manager is pinging the application to ensure it's - // still responding to events - - XEvent reply = *event; - reply.xclient.window = _glfw.x11.root; - - XSendEvent(_glfw.x11.display, _glfw.x11.root, - False, - SubstructureNotifyMask | SubstructureRedirectMask, - &reply); - } - } - else if (event->xclient.message_type == _glfw.x11.XdndEnter) - { - // A drag operation has entered the window - // TODO: Check if UTF-8 string is supported by the source - } - else if (event->xclient.message_type == _glfw.x11.XdndDrop) - { - // The drag operation has finished dropping on - // the window, ask to convert it to a UTF-8 string - _glfw.x11.xdnd.source = event->xclient.data.l[0]; - XConvertSelection(_glfw.x11.display, - _glfw.x11.XdndSelection, - _glfw.x11.UTF8_STRING, - _glfw.x11.XdndSelection, - window->x11.handle, CurrentTime); - } - else if (event->xclient.message_type == _glfw.x11.XdndPosition) - { - // The drag operation has moved over the window - const int absX = (event->xclient.data.l[2] >> 16) & 0xFFFF; - const int absY = (event->xclient.data.l[2]) & 0xFFFF; - int x, y; - - _glfwPlatformGetWindowPos(window, &x, &y); - _glfwInputCursorPos(window, absX - x, absY - y); - - // Reply that we are ready to copy the dragged data - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.type = ClientMessage; - reply.xclient.window = event->xclient.data.l[0]; - reply.xclient.message_type = _glfw.x11.XdndStatus; - reply.xclient.format = 32; - reply.xclient.data.l[0] = window->x11.handle; - reply.xclient.data.l[1] = 1; // Always accept the dnd with no rectangle - reply.xclient.data.l[2] = 0; // Specify an empty rectangle - reply.xclient.data.l[3] = 0; - reply.xclient.data.l[4] = _glfw.x11.XdndActionCopy; - - XSendEvent(_glfw.x11.display, event->xclient.data.l[0], - False, NoEventMask, &reply); - XFlush(_glfw.x11.display); - } - - return; - } - - case SelectionNotify: - { - if (event->xselection.property) - { - // The converted data from the drag operation has arrived - char* data; - const int result = - _glfwGetWindowPropertyX11(event->xselection.requestor, - event->xselection.property, - event->xselection.target, - (unsigned char**) &data); - - if (result) - { - int i, count; - char** paths = parseUriList(data, &count); - - _glfwInputDrop(window, count, (const char**) paths); - - for (i = 0; i < count; i++) - free(paths[i]); - free(paths); - } - - XFree(data); - - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.type = ClientMessage; - reply.xclient.window = _glfw.x11.xdnd.source; - reply.xclient.message_type = _glfw.x11.XdndFinished; - reply.xclient.format = 32; - reply.xclient.data.l[0] = window->x11.handle; - reply.xclient.data.l[1] = result; - reply.xclient.data.l[2] = _glfw.x11.XdndActionCopy; - - // Reply that all is well - XSendEvent(_glfw.x11.display, _glfw.x11.xdnd.source, - False, NoEventMask, &reply); - XFlush(_glfw.x11.display); - } - - return; - } - - case FocusIn: - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_DISABLED); - - if (event->xfocus.mode == NotifyGrab || - event->xfocus.mode == NotifyUngrab) - { - // Ignore focus events from popup indicator windows, window menu - // key chords and window dragging - return; - } - - if (window->x11.ic) - XSetICFocus(window->x11.ic); - - _glfwInputWindowFocus(window, GLFW_TRUE); - return; - } - - case FocusOut: - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_NORMAL); - - if (event->xfocus.mode == NotifyGrab || - event->xfocus.mode == NotifyUngrab) - { - // Ignore focus events from popup indicator windows, window menu - // key chords and window dragging - return; - } - - if (window->x11.ic) - XUnsetICFocus(window->x11.ic); - - if (window->monitor && window->autoIconify) - _glfwPlatformIconifyWindow(window); - - _glfwInputWindowFocus(window, GLFW_FALSE); - return; - } - - case Expose: - { - _glfwInputWindowDamage(window); - return; - } - - case PropertyNotify: - { - if (event->xproperty.atom == _glfw.x11.WM_STATE && - event->xproperty.state == PropertyNewValue) - { - const int state = getWindowState(window); - if (state == IconicState) - { - if (window->monitor) - releaseMonitor(window); - - _glfwInputWindowIconify(window, GLFW_TRUE); - } - else if (state == NormalState) - { - if (window->monitor) - acquireMonitor(window); - - _glfwInputWindowIconify(window, GLFW_FALSE); - } - } - - return; - } - - case SelectionClear: - { - handleSelectionClear(event); - return; - } - - case SelectionRequest: - { - handleSelectionRequest(event); - return; - } - - case DestroyNotify: - return; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Retrieve a single window property of the specified type -// Inspired by fghGetWindowProperty from freeglut -// -unsigned long _glfwGetWindowPropertyX11(Window window, - Atom property, - Atom type, - unsigned char** value) -{ - Atom actualType; - int actualFormat; - unsigned long itemCount, bytesAfter; - - XGetWindowProperty(_glfw.x11.display, - window, - property, - 0, - LONG_MAX, - False, - type, - &actualType, - &actualFormat, - &itemCount, - &bytesAfter, - value); - - if (type != AnyPropertyType && actualType != type) - return 0; - - return itemCount; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - Visual* visual; - int depth; - - if (ctxconfig->client == GLFW_NO_API) - { - visual = DefaultVisual(_glfw.x11.display, _glfw.x11.screen); - depth = DefaultDepth(_glfw.x11.display, _glfw.x11.screen); - } - else - { - if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) - { - if (!_glfwInitGLX()) - return GLFW_FALSE; - if (!_glfwChooseVisualGLX(ctxconfig, fbconfig, &visual, &depth)) - return GLFW_FALSE; - } - else - { - if (!_glfwInitEGL()) - return GLFW_FALSE; - if (!_glfwChooseVisualEGL(ctxconfig, fbconfig, &visual, &depth)) - return GLFW_FALSE; - } - } - - if (!createNativeWindow(window, wndconfig, visual, depth)) - return GLFW_FALSE; - - if (ctxconfig->client != GLFW_NO_API) - { - if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) - { - if (!_glfwCreateContextGLX(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else - { - if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - } - - if (window->monitor) - { - _glfwPlatformShowWindow(window); - updateWindowMode(window); - if (!acquireMonitor(window)) - return GLFW_FALSE; - - centerCursor(window); - } - - XFlush(_glfw.x11.display); - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (_glfw.x11.disabledCursorWindow == window) - _glfw.x11.disabledCursorWindow = NULL; - - if (window->monitor) - releaseMonitor(window); - - if (window->x11.ic) - { - XDestroyIC(window->x11.ic); - window->x11.ic = NULL; - } - - if (window->context.destroy) - window->context.destroy(window); - - if (window->x11.handle) - { - if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == - window->x11.handle) - { - pushSelectionToManager(window); - } - - XDeleteContext(_glfw.x11.display, window->x11.handle, _glfw.x11.context); - XUnmapWindow(_glfw.x11.display, window->x11.handle); - XDestroyWindow(_glfw.x11.display, window->x11.handle); - window->x11.handle = (Window) 0; - } - - if (window->x11.colormap) - { - XFreeColormap(_glfw.x11.display, window->x11.colormap); - window->x11.colormap = (Colormap) 0; - } - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ -#if defined(X_HAVE_UTF8_STRING) - Xutf8SetWMProperties(_glfw.x11.display, - window->x11.handle, - title, title, - NULL, 0, - NULL, NULL, NULL); -#else - // This may be a slightly better fallback than using XStoreName and - // XSetIconName, which always store their arguments using STRING - XmbSetWMProperties(_glfw.x11.display, - window->x11.handle, - title, title, - NULL, 0, - NULL, NULL, NULL); -#endif - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_NAME, _glfw.x11.UTF8_STRING, 8, - PropModeReplace, - (unsigned char*) title, strlen(title)); - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_ICON_NAME, _glfw.x11.UTF8_STRING, 8, - PropModeReplace, - (unsigned char*) title, strlen(title)); - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - if (count) - { - int i, j, longCount = 0; - - for (i = 0; i < count; i++) - longCount += 2 + images[i].width * images[i].height; - - long* icon = calloc(longCount, sizeof(long)); - long* target = icon; - - for (i = 0; i < count; i++) - { - *target++ = images[i].width; - *target++ = images[i].height; - - for (j = 0; j < images[i].width * images[i].height; j++) - { - *target++ = (images[i].pixels[j * 4 + 0] << 16) | - (images[i].pixels[j * 4 + 1] << 8) | - (images[i].pixels[j * 4 + 2] << 0) | - (images[i].pixels[j * 4 + 3] << 24); - } - } - - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_ICON, - XA_CARDINAL, 32, - PropModeReplace, - (unsigned char*) icon, - longCount); - - free(icon); - } - else - { - XDeleteProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_ICON); - } - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - Window dummy; - int x, y; - - XTranslateCoordinates(_glfw.x11.display, window->x11.handle, _glfw.x11.root, - 0, 0, &x, &y, &dummy); - - if (xpos) - *xpos = x; - if (ypos) - *ypos = y; -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - // HACK: Explicitly setting PPosition to any value causes some WMs, notably - // Compiz and Metacity, to honor the position of unmapped windows - if (!_glfwPlatformWindowVisible(window)) - { - long supplied; - XSizeHints* hints = XAllocSizeHints(); - - if (XGetWMNormalHints(_glfw.x11.display, window->x11.handle, hints, &supplied)) - { - hints->flags |= PPosition; - hints->x = hints->y = 0; - - XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); - } - - XFree(hints); - } - - XMoveWindow(_glfw.x11.display, window->x11.handle, xpos, ypos); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - XWindowAttributes attribs; - XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &attribs); - - if (width) - *width = attribs.width; - if (height) - *height = attribs.height; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->monitor) - { - if (window->monitor->window == window) - acquireMonitor(window); - } - else - { - if (!window->resizable) - updateNormalHints(window, width, height); - - XResizeWindow(_glfw.x11.display, window->x11.handle, width, height); - } - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - updateNormalHints(window, width, height); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - updateNormalHints(window, width, height); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - _glfwPlatformGetWindowSize(window, width, height); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - long* extents = NULL; - - if (window->monitor || !window->decorated) - return; - - if (_glfw.x11.NET_FRAME_EXTENTS == None) - return; - - if (!_glfwPlatformWindowVisible(window) && - _glfw.x11.NET_REQUEST_FRAME_EXTENTS) - { - XEvent event; - double timeout = 0.5; - - // Ensure _NET_FRAME_EXTENTS is set, allowing glfwGetWindowFrameSize to - // function before the window is mapped - sendEventToWM(window, _glfw.x11.NET_REQUEST_FRAME_EXTENTS, - 0, 0, 0, 0, 0); - - // HACK: Use a timeout because earlier versions of some window managers - // (at least Unity, Fluxbox and Xfwm) failed to send the reply - // They have been fixed but broken versions are still in the wild - // If you are affected by this and your window manager is NOT - // listed above, PLEASE report it to their and our issue trackers - while (!XCheckIfEvent(_glfw.x11.display, - &event, - isFrameExtentsEvent, - (XPointer) window)) - { - if (!waitForEvent(&timeout)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: The window manager has a broken _NET_REQUEST_FRAME_EXTENTS implementation; please report this issue"); - return; - } - } - } - - if (_glfwGetWindowPropertyX11(window->x11.handle, - _glfw.x11.NET_FRAME_EXTENTS, - XA_CARDINAL, - (unsigned char**) &extents) == 4) - { - if (left) - *left = extents[0]; - if (top) - *top = extents[2]; - if (right) - *right = extents[1]; - if (bottom) - *bottom = extents[3]; - } - - if (extents) - XFree(extents); -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - if (window->x11.overrideRedirect) - { - // Override-redirect windows cannot be iconified or restored, as those - // tasks are performed by the window manager - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Iconification of full screen windows requires a WM that supports EWMH full screen"); - return; - } - - XIconifyWindow(_glfw.x11.display, window->x11.handle, _glfw.x11.screen); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - if (window->x11.overrideRedirect) - { - // Override-redirect windows cannot be iconified or restored, as those - // tasks are performed by the window manager - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Iconification of full screen windows requires a WM that supports EWMH full screen"); - return; - } - - if (_glfwPlatformWindowIconified(window)) - { - XMapWindow(_glfw.x11.display, window->x11.handle); - waitForVisibilityNotify(window); - } - else if (_glfwPlatformWindowVisible(window)) - { - if (_glfw.x11.NET_WM_STATE && - _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) - { - sendEventToWM(window, - _glfw.x11.NET_WM_STATE, - _NET_WM_STATE_REMOVE, - _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ, - 1, 0); - } - } - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - if (_glfw.x11.NET_WM_STATE && - _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) - { - sendEventToWM(window, - _glfw.x11.NET_WM_STATE, - _NET_WM_STATE_ADD, - _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ, - 1, 0); - XFlush(_glfw.x11.display); - } -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - if (_glfwPlatformWindowVisible(window)) - return; - - XMapWindow(_glfw.x11.display, window->x11.handle); - waitForVisibilityNotify(window); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - XUnmapWindow(_glfw.x11.display, window->x11.handle); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - if (_glfw.x11.NET_ACTIVE_WINDOW) - sendEventToWM(window, _glfw.x11.NET_ACTIVE_WINDOW, 1, 0, 0, 0, 0); - else - { - XRaiseWindow(_glfw.x11.display, window->x11.handle); - XSetInputFocus(_glfw.x11.display, window->x11.handle, - RevertToParent, CurrentTime); - } - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - if (window->monitor == monitor) - { - if (monitor) - { - if (monitor->window == window) - acquireMonitor(window); - } - else - { - XMoveResizeWindow(_glfw.x11.display, window->x11.handle, - xpos, ypos, width, height); - } - - return; - } - - if (window->monitor) - releaseMonitor(window); - - _glfwInputWindowMonitorChange(window, monitor); - updateNormalHints(window, width, height); - updateWindowMode(window); - - if (window->monitor) - { - XMapRaised(_glfw.x11.display, window->x11.handle); - if (waitForVisibilityNotify(window)) - acquireMonitor(window); - } - else - { - XMoveResizeWindow(_glfw.x11.display, window->x11.handle, - xpos, ypos, width, height); - } - - XFlush(_glfw.x11.display); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - Window focused; - int state; - - XGetInputFocus(_glfw.x11.display, &focused, &state); - return window->x11.handle == focused; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - return getWindowState(window) == IconicState; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - XWindowAttributes wa; - XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &wa); - return wa.map_state == IsViewable; -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - Atom* states; - unsigned long i; - GLFWbool maximized = GLFW_FALSE; - const unsigned long count = - _glfwGetWindowPropertyX11(window->x11.handle, - _glfw.x11.NET_WM_STATE, - XA_ATOM, - (unsigned char**) &states); - - for (i = 0; i < count; i++) - { - if (states[i] == _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT || - states[i] == _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) - { - maximized = GLFW_TRUE; - break; - } - } - - XFree(states); - return maximized; -} - -void _glfwPlatformPollEvents(void) -{ - _glfwPollJoystickEvents(); - - int count = XPending(_glfw.x11.display); - while (count--) - { - XEvent event; - XNextEvent(_glfw.x11.display, &event); - processEvent(&event); - } - - if (_glfw.x11.disabledCursorWindow) - centerCursor(_glfw.x11.disabledCursorWindow); - - XFlush(_glfw.x11.display); -} - -void _glfwPlatformWaitEvents(void) -{ - while (!XPending(_glfw.x11.display)) - waitForEvent(NULL); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - while (!XPending(_glfw.x11.display)) - { - if (!waitForEvent(&timeout)) - break; - } - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - XEvent event; - _GLFWwindow* window = _glfw.windowListHead; - - memset(&event, 0, sizeof(event)); - event.type = ClientMessage; - event.xclient.window = window->x11.handle; - event.xclient.format = 32; // Data is 32-bit longs - event.xclient.message_type = _glfw.x11.NULL_; - - XSendEvent(_glfw.x11.display, window->x11.handle, False, 0, &event); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - Window root, child; - int rootX, rootY, childX, childY; - unsigned int mask; - - XQueryPointer(_glfw.x11.display, window->x11.handle, - &root, &child, - &rootX, &rootY, &childX, &childY, - &mask); - - if (xpos) - *xpos = childX; - if (ypos) - *ypos = childY; -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) -{ - // Store the new position so it can be recognized later - window->x11.warpCursorPosX = (int) x; - window->x11.warpCursorPosY = (int) y; - - XWarpPointer(_glfw.x11.display, None, window->x11.handle, - 0,0,0,0, (int) x, (int) y); - XFlush(_glfw.x11.display); -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - if (mode == GLFW_CURSOR_DISABLED) - { - _glfw.x11.disabledCursorWindow = window; - _glfwPlatformGetCursorPos(window, - &_glfw.x11.restoreCursorPosX, - &_glfw.x11.restoreCursorPosY); - centerCursor(window); - XGrabPointer(_glfw.x11.display, window->x11.handle, True, - ButtonPressMask | ButtonReleaseMask | PointerMotionMask, - GrabModeAsync, GrabModeAsync, - window->x11.handle, _glfw.x11.cursor, CurrentTime); - } - else if (_glfw.x11.disabledCursorWindow == window) - { - _glfw.x11.disabledCursorWindow = NULL; - XUngrabPointer(_glfw.x11.display, CurrentTime); - _glfwPlatformSetCursorPos(window, - _glfw.x11.restoreCursorPosX, - _glfw.x11.restoreCursorPosY); - } - - updateCursorImage(window); - XFlush(_glfw.x11.display); -} - -const char* _glfwPlatformGetKeyName(int key, int scancode) -{ - KeySym keysym; - int extra; - - if (!_glfw.x11.xkb.available) - return NULL; - - if (key != GLFW_KEY_UNKNOWN) - scancode = _glfw.x11.nativeKeys[key]; - - if (!_glfwIsPrintable(_glfw.x11.publicKeys[scancode])) - return NULL; - - keysym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); - if (keysym == NoSymbol) - return NULL; - - XkbTranslateKeySym(_glfw.x11.display, &keysym, 0, - _glfw.x11.keyName, sizeof(_glfw.x11.keyName), - &extra); - - if (!strlen(_glfw.x11.keyName)) - return NULL; - - return _glfw.x11.keyName; -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - cursor->x11.handle = _glfwCreateCursorX11(image, xhot, yhot); - if (!cursor->x11.handle) - return GLFW_FALSE; - - return GLFW_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - cursor->x11.handle = XCreateFontCursor(_glfw.x11.display, - translateCursorShape(shape)); - if (!cursor->x11.handle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to create standard cursor"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->x11.handle) - XFreeCursor(_glfw.x11.display, cursor->x11.handle); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - updateCursorImage(window); - XFlush(_glfw.x11.display); - } -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - free(_glfw.x11.clipboardString); - _glfw.x11.clipboardString = strdup(string); - - XSetSelectionOwner(_glfw.x11.display, - _glfw.x11.CLIPBOARD, - window->x11.handle, CurrentTime); - - if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) != - window->x11.handle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to become owner of clipboard selection"); - } -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - size_t i; - const Atom formats[] = { _glfw.x11.UTF8_STRING, - _glfw.x11.COMPOUND_STRING, - XA_STRING }; - const size_t formatCount = sizeof(formats) / sizeof(formats[0]); - - if (findWindowByHandle(XGetSelectionOwner(_glfw.x11.display, - _glfw.x11.CLIPBOARD))) - { - // Instead of doing a large number of X round-trips just to put this - // string into a window property and then read it back, just return it - return _glfw.x11.clipboardString; - } - - free(_glfw.x11.clipboardString); - _glfw.x11.clipboardString = NULL; - - for (i = 0; i < formatCount; i++) - { - char* data; - XEvent event; - - XConvertSelection(_glfw.x11.display, - _glfw.x11.CLIPBOARD, - formats[i], - _glfw.x11.GLFW_SELECTION, - window->x11.handle, CurrentTime); - - while (!XCheckTypedEvent(_glfw.x11.display, SelectionNotify, &event)) - waitForEvent(NULL); - - if (event.xselection.property == None) - continue; - - if (_glfwGetWindowPropertyX11(event.xselection.requestor, - event.xselection.property, - event.xselection.target, - (unsigned char**) &data)) - { - _glfw.x11.clipboardString = strdup(data); - } - - XFree(data); - - XDeleteProperty(_glfw.x11.display, - event.xselection.requestor, - event.xselection.property); - - if (_glfw.x11.clipboardString) - break; - } - - if (_glfw.x11.clipboardString == NULL) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "X11: Failed to convert clipboard to string"); - } - - return _glfw.x11.clipboardString; -} - -char** _glfwPlatformGetRequiredInstanceExtensions(uint32_t* count) -{ - char** extensions; - - *count = 0; - - if (!_glfw.vk.KHR_xcb_surface || !_glfw.x11.x11xcb.handle) - { - if (!_glfw.vk.KHR_xlib_surface) - return NULL; - } - - extensions = calloc(2, sizeof(char*)); - extensions[0] = strdup("VK_KHR_surface"); - - if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) - extensions[1] = strdup("VK_KHR_xcb_surface"); - else - extensions[1] = strdup("VK_KHR_xlib_surface"); - - *count = 2; - return extensions; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - VisualID visualID = XVisualIDFromVisual(DefaultVisual(_glfw.x11.display, - _glfw.x11.screen)); - - if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) - { - PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR vkGetPhysicalDeviceXcbPresentationSupportKHR = - (PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR) - vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceXcbPresentationSupportKHR"); - if (!vkGetPhysicalDeviceXcbPresentationSupportKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "X11: Vulkan instance missing VK_KHR_xcb_surface extension"); - return GLFW_FALSE; - } - - xcb_connection_t* connection = - _glfw.x11.x11xcb.XGetXCBConnection(_glfw.x11.display); - if (!connection) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to retrieve XCB connection"); - return GLFW_FALSE; - } - - return vkGetPhysicalDeviceXcbPresentationSupportKHR(device, - queuefamily, - connection, - visualID); - } - else - { - PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR vkGetPhysicalDeviceXlibPresentationSupportKHR = - (PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR) - vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceXlibPresentationSupportKHR"); - if (!vkGetPhysicalDeviceXlibPresentationSupportKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "X11: Vulkan instance missing VK_KHR_xlib_surface extension"); - return GLFW_FALSE; - } - - return vkGetPhysicalDeviceXlibPresentationSupportKHR(device, - queuefamily, - _glfw.x11.display, - visualID); - } -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) - { - VkResult err; - VkXcbSurfaceCreateInfoKHR sci; - PFN_vkCreateXcbSurfaceKHR vkCreateXcbSurfaceKHR; - - xcb_connection_t* connection = - _glfw.x11.x11xcb.XGetXCBConnection(_glfw.x11.display); - if (!connection) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to retrieve XCB connection"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - vkCreateXcbSurfaceKHR = (PFN_vkCreateXcbSurfaceKHR) - vkGetInstanceProcAddr(instance, "vkCreateXcbSurfaceKHR"); - if (!vkCreateXcbSurfaceKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "X11: Vulkan instance missing VK_KHR_xcb_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR; - sci.connection = connection; - sci.window = window->x11.handle; - - err = vkCreateXcbSurfaceKHR(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to create Vulkan XCB surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; - } - else - { - VkResult err; - VkXlibSurfaceCreateInfoKHR sci; - PFN_vkCreateXlibSurfaceKHR vkCreateXlibSurfaceKHR; - - vkCreateXlibSurfaceKHR = (PFN_vkCreateXlibSurfaceKHR) - vkGetInstanceProcAddr(instance, "vkCreateXlibSurfaceKHR"); - if (!vkCreateXlibSurfaceKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "X11: Vulkan instance missing VK_KHR_xlib_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR; - sci.dpy = _glfw.x11.display; - sci.window = window->x11.handle; - - err = vkCreateXlibSurfaceKHR(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to create Vulkan X11 surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI Display* glfwGetX11Display(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfw.x11.display; -} - -GLFWAPI Window glfwGetX11Window(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - return window->x11.handle; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/xkb_unicode.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/xkb_unicode.c deleted file mode 100644 index 3223335..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/xkb_unicode.c +++ /dev/null @@ -1,889 +0,0 @@ -//======================================================================== -// GLFW 3.2 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Berglund -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#include "internal.h" - - -/* - * Marcus: This code was originally written by Markus G. Kuhn. - * I have made some slight changes (trimmed it down a bit from >60 KB to - * 20 KB), but the functionality is the same. - */ - -/* - * This module converts keysym values into the corresponding ISO 10646 - * (UCS, Unicode) values. - * - * The array keysymtab[] contains pairs of X11 keysym values for graphical - * characters and the corresponding Unicode value. The function - * _glfwKeySym2Unicode() maps a keysym onto a Unicode value using a binary - * search, therefore keysymtab[] must remain SORTED by keysym value. - * - * We allow to represent any UCS character in the range U-00000000 to - * U-00FFFFFF by a keysym value in the range 0x01000000 to 0x01ffffff. - * This admittedly does not cover the entire 31-bit space of UCS, but - * it does cover all of the characters up to U-10FFFF, which can be - * represented by UTF-16, and more, and it is very unlikely that higher - * UCS codes will ever be assigned by ISO. So to get Unicode character - * U+ABCD you can directly use keysym 0x0100abcd. - * - * Original author: Markus G. Kuhn , University of - * Cambridge, April 2001 - * - * Special thanks to Richard Verhoeven for preparing - * an initial draft of the mapping table. - * - */ - - -//************************************************************************ -//**** KeySym to Unicode mapping table **** -//************************************************************************ - -static const struct codepair { - unsigned short keysym; - unsigned short ucs; -} keysymtab[] = { - { 0x01a1, 0x0104 }, - { 0x01a2, 0x02d8 }, - { 0x01a3, 0x0141 }, - { 0x01a5, 0x013d }, - { 0x01a6, 0x015a }, - { 0x01a9, 0x0160 }, - { 0x01aa, 0x015e }, - { 0x01ab, 0x0164 }, - { 0x01ac, 0x0179 }, - { 0x01ae, 0x017d }, - { 0x01af, 0x017b }, - { 0x01b1, 0x0105 }, - { 0x01b2, 0x02db }, - { 0x01b3, 0x0142 }, - { 0x01b5, 0x013e }, - { 0x01b6, 0x015b }, - { 0x01b7, 0x02c7 }, - { 0x01b9, 0x0161 }, - { 0x01ba, 0x015f }, - { 0x01bb, 0x0165 }, - { 0x01bc, 0x017a }, - { 0x01bd, 0x02dd }, - { 0x01be, 0x017e }, - { 0x01bf, 0x017c }, - { 0x01c0, 0x0154 }, - { 0x01c3, 0x0102 }, - { 0x01c5, 0x0139 }, - { 0x01c6, 0x0106 }, - { 0x01c8, 0x010c }, - { 0x01ca, 0x0118 }, - { 0x01cc, 0x011a }, - { 0x01cf, 0x010e }, - { 0x01d0, 0x0110 }, - { 0x01d1, 0x0143 }, - { 0x01d2, 0x0147 }, - { 0x01d5, 0x0150 }, - { 0x01d8, 0x0158 }, - { 0x01d9, 0x016e }, - { 0x01db, 0x0170 }, - { 0x01de, 0x0162 }, - { 0x01e0, 0x0155 }, - { 0x01e3, 0x0103 }, - { 0x01e5, 0x013a }, - { 0x01e6, 0x0107 }, - { 0x01e8, 0x010d }, - { 0x01ea, 0x0119 }, - { 0x01ec, 0x011b }, - { 0x01ef, 0x010f }, - { 0x01f0, 0x0111 }, - { 0x01f1, 0x0144 }, - { 0x01f2, 0x0148 }, - { 0x01f5, 0x0151 }, - { 0x01f8, 0x0159 }, - { 0x01f9, 0x016f }, - { 0x01fb, 0x0171 }, - { 0x01fe, 0x0163 }, - { 0x01ff, 0x02d9 }, - { 0x02a1, 0x0126 }, - { 0x02a6, 0x0124 }, - { 0x02a9, 0x0130 }, - { 0x02ab, 0x011e }, - { 0x02ac, 0x0134 }, - { 0x02b1, 0x0127 }, - { 0x02b6, 0x0125 }, - { 0x02b9, 0x0131 }, - { 0x02bb, 0x011f }, - { 0x02bc, 0x0135 }, - { 0x02c5, 0x010a }, - { 0x02c6, 0x0108 }, - { 0x02d5, 0x0120 }, - { 0x02d8, 0x011c }, - { 0x02dd, 0x016c }, - { 0x02de, 0x015c }, - { 0x02e5, 0x010b }, - { 0x02e6, 0x0109 }, - { 0x02f5, 0x0121 }, - { 0x02f8, 0x011d }, - { 0x02fd, 0x016d }, - { 0x02fe, 0x015d }, - { 0x03a2, 0x0138 }, - { 0x03a3, 0x0156 }, - { 0x03a5, 0x0128 }, - { 0x03a6, 0x013b }, - { 0x03aa, 0x0112 }, - { 0x03ab, 0x0122 }, - { 0x03ac, 0x0166 }, - { 0x03b3, 0x0157 }, - { 0x03b5, 0x0129 }, - { 0x03b6, 0x013c }, - { 0x03ba, 0x0113 }, - { 0x03bb, 0x0123 }, - { 0x03bc, 0x0167 }, - { 0x03bd, 0x014a }, - { 0x03bf, 0x014b }, - { 0x03c0, 0x0100 }, - { 0x03c7, 0x012e }, - { 0x03cc, 0x0116 }, - { 0x03cf, 0x012a }, - { 0x03d1, 0x0145 }, - { 0x03d2, 0x014c }, - { 0x03d3, 0x0136 }, - { 0x03d9, 0x0172 }, - { 0x03dd, 0x0168 }, - { 0x03de, 0x016a }, - { 0x03e0, 0x0101 }, - { 0x03e7, 0x012f }, - { 0x03ec, 0x0117 }, - { 0x03ef, 0x012b }, - { 0x03f1, 0x0146 }, - { 0x03f2, 0x014d }, - { 0x03f3, 0x0137 }, - { 0x03f9, 0x0173 }, - { 0x03fd, 0x0169 }, - { 0x03fe, 0x016b }, - { 0x047e, 0x203e }, - { 0x04a1, 0x3002 }, - { 0x04a2, 0x300c }, - { 0x04a3, 0x300d }, - { 0x04a4, 0x3001 }, - { 0x04a5, 0x30fb }, - { 0x04a6, 0x30f2 }, - { 0x04a7, 0x30a1 }, - { 0x04a8, 0x30a3 }, - { 0x04a9, 0x30a5 }, - { 0x04aa, 0x30a7 }, - { 0x04ab, 0x30a9 }, - { 0x04ac, 0x30e3 }, - { 0x04ad, 0x30e5 }, - { 0x04ae, 0x30e7 }, - { 0x04af, 0x30c3 }, - { 0x04b0, 0x30fc }, - { 0x04b1, 0x30a2 }, - { 0x04b2, 0x30a4 }, - { 0x04b3, 0x30a6 }, - { 0x04b4, 0x30a8 }, - { 0x04b5, 0x30aa }, - { 0x04b6, 0x30ab }, - { 0x04b7, 0x30ad }, - { 0x04b8, 0x30af }, - { 0x04b9, 0x30b1 }, - { 0x04ba, 0x30b3 }, - { 0x04bb, 0x30b5 }, - { 0x04bc, 0x30b7 }, - { 0x04bd, 0x30b9 }, - { 0x04be, 0x30bb }, - { 0x04bf, 0x30bd }, - { 0x04c0, 0x30bf }, - { 0x04c1, 0x30c1 }, - { 0x04c2, 0x30c4 }, - { 0x04c3, 0x30c6 }, - { 0x04c4, 0x30c8 }, - { 0x04c5, 0x30ca }, - { 0x04c6, 0x30cb }, - { 0x04c7, 0x30cc }, - { 0x04c8, 0x30cd }, - { 0x04c9, 0x30ce }, - { 0x04ca, 0x30cf }, - { 0x04cb, 0x30d2 }, - { 0x04cc, 0x30d5 }, - { 0x04cd, 0x30d8 }, - { 0x04ce, 0x30db }, - { 0x04cf, 0x30de }, - { 0x04d0, 0x30df }, - { 0x04d1, 0x30e0 }, - { 0x04d2, 0x30e1 }, - { 0x04d3, 0x30e2 }, - { 0x04d4, 0x30e4 }, - { 0x04d5, 0x30e6 }, - { 0x04d6, 0x30e8 }, - { 0x04d7, 0x30e9 }, - { 0x04d8, 0x30ea }, - { 0x04d9, 0x30eb }, - { 0x04da, 0x30ec }, - { 0x04db, 0x30ed }, - { 0x04dc, 0x30ef }, - { 0x04dd, 0x30f3 }, - { 0x04de, 0x309b }, - { 0x04df, 0x309c }, - { 0x05ac, 0x060c }, - { 0x05bb, 0x061b }, - { 0x05bf, 0x061f }, - { 0x05c1, 0x0621 }, - { 0x05c2, 0x0622 }, - { 0x05c3, 0x0623 }, - { 0x05c4, 0x0624 }, - { 0x05c5, 0x0625 }, - { 0x05c6, 0x0626 }, - { 0x05c7, 0x0627 }, - { 0x05c8, 0x0628 }, - { 0x05c9, 0x0629 }, - { 0x05ca, 0x062a }, - { 0x05cb, 0x062b }, - { 0x05cc, 0x062c }, - { 0x05cd, 0x062d }, - { 0x05ce, 0x062e }, - { 0x05cf, 0x062f }, - { 0x05d0, 0x0630 }, - { 0x05d1, 0x0631 }, - { 0x05d2, 0x0632 }, - { 0x05d3, 0x0633 }, - { 0x05d4, 0x0634 }, - { 0x05d5, 0x0635 }, - { 0x05d6, 0x0636 }, - { 0x05d7, 0x0637 }, - { 0x05d8, 0x0638 }, - { 0x05d9, 0x0639 }, - { 0x05da, 0x063a }, - { 0x05e0, 0x0640 }, - { 0x05e1, 0x0641 }, - { 0x05e2, 0x0642 }, - { 0x05e3, 0x0643 }, - { 0x05e4, 0x0644 }, - { 0x05e5, 0x0645 }, - { 0x05e6, 0x0646 }, - { 0x05e7, 0x0647 }, - { 0x05e8, 0x0648 }, - { 0x05e9, 0x0649 }, - { 0x05ea, 0x064a }, - { 0x05eb, 0x064b }, - { 0x05ec, 0x064c }, - { 0x05ed, 0x064d }, - { 0x05ee, 0x064e }, - { 0x05ef, 0x064f }, - { 0x05f0, 0x0650 }, - { 0x05f1, 0x0651 }, - { 0x05f2, 0x0652 }, - { 0x06a1, 0x0452 }, - { 0x06a2, 0x0453 }, - { 0x06a3, 0x0451 }, - { 0x06a4, 0x0454 }, - { 0x06a5, 0x0455 }, - { 0x06a6, 0x0456 }, - { 0x06a7, 0x0457 }, - { 0x06a8, 0x0458 }, - { 0x06a9, 0x0459 }, - { 0x06aa, 0x045a }, - { 0x06ab, 0x045b }, - { 0x06ac, 0x045c }, - { 0x06ae, 0x045e }, - { 0x06af, 0x045f }, - { 0x06b0, 0x2116 }, - { 0x06b1, 0x0402 }, - { 0x06b2, 0x0403 }, - { 0x06b3, 0x0401 }, - { 0x06b4, 0x0404 }, - { 0x06b5, 0x0405 }, - { 0x06b6, 0x0406 }, - { 0x06b7, 0x0407 }, - { 0x06b8, 0x0408 }, - { 0x06b9, 0x0409 }, - { 0x06ba, 0x040a }, - { 0x06bb, 0x040b }, - { 0x06bc, 0x040c }, - { 0x06be, 0x040e }, - { 0x06bf, 0x040f }, - { 0x06c0, 0x044e }, - { 0x06c1, 0x0430 }, - { 0x06c2, 0x0431 }, - { 0x06c3, 0x0446 }, - { 0x06c4, 0x0434 }, - { 0x06c5, 0x0435 }, - { 0x06c6, 0x0444 }, - { 0x06c7, 0x0433 }, - { 0x06c8, 0x0445 }, - { 0x06c9, 0x0438 }, - { 0x06ca, 0x0439 }, - { 0x06cb, 0x043a }, - { 0x06cc, 0x043b }, - { 0x06cd, 0x043c }, - { 0x06ce, 0x043d }, - { 0x06cf, 0x043e }, - { 0x06d0, 0x043f }, - { 0x06d1, 0x044f }, - { 0x06d2, 0x0440 }, - { 0x06d3, 0x0441 }, - { 0x06d4, 0x0442 }, - { 0x06d5, 0x0443 }, - { 0x06d6, 0x0436 }, - { 0x06d7, 0x0432 }, - { 0x06d8, 0x044c }, - { 0x06d9, 0x044b }, - { 0x06da, 0x0437 }, - { 0x06db, 0x0448 }, - { 0x06dc, 0x044d }, - { 0x06dd, 0x0449 }, - { 0x06de, 0x0447 }, - { 0x06df, 0x044a }, - { 0x06e0, 0x042e }, - { 0x06e1, 0x0410 }, - { 0x06e2, 0x0411 }, - { 0x06e3, 0x0426 }, - { 0x06e4, 0x0414 }, - { 0x06e5, 0x0415 }, - { 0x06e6, 0x0424 }, - { 0x06e7, 0x0413 }, - { 0x06e8, 0x0425 }, - { 0x06e9, 0x0418 }, - { 0x06ea, 0x0419 }, - { 0x06eb, 0x041a }, - { 0x06ec, 0x041b }, - { 0x06ed, 0x041c }, - { 0x06ee, 0x041d }, - { 0x06ef, 0x041e }, - { 0x06f0, 0x041f }, - { 0x06f1, 0x042f }, - { 0x06f2, 0x0420 }, - { 0x06f3, 0x0421 }, - { 0x06f4, 0x0422 }, - { 0x06f5, 0x0423 }, - { 0x06f6, 0x0416 }, - { 0x06f7, 0x0412 }, - { 0x06f8, 0x042c }, - { 0x06f9, 0x042b }, - { 0x06fa, 0x0417 }, - { 0x06fb, 0x0428 }, - { 0x06fc, 0x042d }, - { 0x06fd, 0x0429 }, - { 0x06fe, 0x0427 }, - { 0x06ff, 0x042a }, - { 0x07a1, 0x0386 }, - { 0x07a2, 0x0388 }, - { 0x07a3, 0x0389 }, - { 0x07a4, 0x038a }, - { 0x07a5, 0x03aa }, - { 0x07a7, 0x038c }, - { 0x07a8, 0x038e }, - { 0x07a9, 0x03ab }, - { 0x07ab, 0x038f }, - { 0x07ae, 0x0385 }, - { 0x07af, 0x2015 }, - { 0x07b1, 0x03ac }, - { 0x07b2, 0x03ad }, - { 0x07b3, 0x03ae }, - { 0x07b4, 0x03af }, - { 0x07b5, 0x03ca }, - { 0x07b6, 0x0390 }, - { 0x07b7, 0x03cc }, - { 0x07b8, 0x03cd }, - { 0x07b9, 0x03cb }, - { 0x07ba, 0x03b0 }, - { 0x07bb, 0x03ce }, - { 0x07c1, 0x0391 }, - { 0x07c2, 0x0392 }, - { 0x07c3, 0x0393 }, - { 0x07c4, 0x0394 }, - { 0x07c5, 0x0395 }, - { 0x07c6, 0x0396 }, - { 0x07c7, 0x0397 }, - { 0x07c8, 0x0398 }, - { 0x07c9, 0x0399 }, - { 0x07ca, 0x039a }, - { 0x07cb, 0x039b }, - { 0x07cc, 0x039c }, - { 0x07cd, 0x039d }, - { 0x07ce, 0x039e }, - { 0x07cf, 0x039f }, - { 0x07d0, 0x03a0 }, - { 0x07d1, 0x03a1 }, - { 0x07d2, 0x03a3 }, - { 0x07d4, 0x03a4 }, - { 0x07d5, 0x03a5 }, - { 0x07d6, 0x03a6 }, - { 0x07d7, 0x03a7 }, - { 0x07d8, 0x03a8 }, - { 0x07d9, 0x03a9 }, - { 0x07e1, 0x03b1 }, - { 0x07e2, 0x03b2 }, - { 0x07e3, 0x03b3 }, - { 0x07e4, 0x03b4 }, - { 0x07e5, 0x03b5 }, - { 0x07e6, 0x03b6 }, - { 0x07e7, 0x03b7 }, - { 0x07e8, 0x03b8 }, - { 0x07e9, 0x03b9 }, - { 0x07ea, 0x03ba }, - { 0x07eb, 0x03bb }, - { 0x07ec, 0x03bc }, - { 0x07ed, 0x03bd }, - { 0x07ee, 0x03be }, - { 0x07ef, 0x03bf }, - { 0x07f0, 0x03c0 }, - { 0x07f1, 0x03c1 }, - { 0x07f2, 0x03c3 }, - { 0x07f3, 0x03c2 }, - { 0x07f4, 0x03c4 }, - { 0x07f5, 0x03c5 }, - { 0x07f6, 0x03c6 }, - { 0x07f7, 0x03c7 }, - { 0x07f8, 0x03c8 }, - { 0x07f9, 0x03c9 }, - { 0x08a1, 0x23b7 }, - { 0x08a2, 0x250c }, - { 0x08a3, 0x2500 }, - { 0x08a4, 0x2320 }, - { 0x08a5, 0x2321 }, - { 0x08a6, 0x2502 }, - { 0x08a7, 0x23a1 }, - { 0x08a8, 0x23a3 }, - { 0x08a9, 0x23a4 }, - { 0x08aa, 0x23a6 }, - { 0x08ab, 0x239b }, - { 0x08ac, 0x239d }, - { 0x08ad, 0x239e }, - { 0x08ae, 0x23a0 }, - { 0x08af, 0x23a8 }, - { 0x08b0, 0x23ac }, - { 0x08bc, 0x2264 }, - { 0x08bd, 0x2260 }, - { 0x08be, 0x2265 }, - { 0x08bf, 0x222b }, - { 0x08c0, 0x2234 }, - { 0x08c1, 0x221d }, - { 0x08c2, 0x221e }, - { 0x08c5, 0x2207 }, - { 0x08c8, 0x223c }, - { 0x08c9, 0x2243 }, - { 0x08cd, 0x21d4 }, - { 0x08ce, 0x21d2 }, - { 0x08cf, 0x2261 }, - { 0x08d6, 0x221a }, - { 0x08da, 0x2282 }, - { 0x08db, 0x2283 }, - { 0x08dc, 0x2229 }, - { 0x08dd, 0x222a }, - { 0x08de, 0x2227 }, - { 0x08df, 0x2228 }, - { 0x08ef, 0x2202 }, - { 0x08f6, 0x0192 }, - { 0x08fb, 0x2190 }, - { 0x08fc, 0x2191 }, - { 0x08fd, 0x2192 }, - { 0x08fe, 0x2193 }, - { 0x09e0, 0x25c6 }, - { 0x09e1, 0x2592 }, - { 0x09e2, 0x2409 }, - { 0x09e3, 0x240c }, - { 0x09e4, 0x240d }, - { 0x09e5, 0x240a }, - { 0x09e8, 0x2424 }, - { 0x09e9, 0x240b }, - { 0x09ea, 0x2518 }, - { 0x09eb, 0x2510 }, - { 0x09ec, 0x250c }, - { 0x09ed, 0x2514 }, - { 0x09ee, 0x253c }, - { 0x09ef, 0x23ba }, - { 0x09f0, 0x23bb }, - { 0x09f1, 0x2500 }, - { 0x09f2, 0x23bc }, - { 0x09f3, 0x23bd }, - { 0x09f4, 0x251c }, - { 0x09f5, 0x2524 }, - { 0x09f6, 0x2534 }, - { 0x09f7, 0x252c }, - { 0x09f8, 0x2502 }, - { 0x0aa1, 0x2003 }, - { 0x0aa2, 0x2002 }, - { 0x0aa3, 0x2004 }, - { 0x0aa4, 0x2005 }, - { 0x0aa5, 0x2007 }, - { 0x0aa6, 0x2008 }, - { 0x0aa7, 0x2009 }, - { 0x0aa8, 0x200a }, - { 0x0aa9, 0x2014 }, - { 0x0aaa, 0x2013 }, - { 0x0aae, 0x2026 }, - { 0x0aaf, 0x2025 }, - { 0x0ab0, 0x2153 }, - { 0x0ab1, 0x2154 }, - { 0x0ab2, 0x2155 }, - { 0x0ab3, 0x2156 }, - { 0x0ab4, 0x2157 }, - { 0x0ab5, 0x2158 }, - { 0x0ab6, 0x2159 }, - { 0x0ab7, 0x215a }, - { 0x0ab8, 0x2105 }, - { 0x0abb, 0x2012 }, - { 0x0abc, 0x2329 }, - { 0x0abe, 0x232a }, - { 0x0ac3, 0x215b }, - { 0x0ac4, 0x215c }, - { 0x0ac5, 0x215d }, - { 0x0ac6, 0x215e }, - { 0x0ac9, 0x2122 }, - { 0x0aca, 0x2613 }, - { 0x0acc, 0x25c1 }, - { 0x0acd, 0x25b7 }, - { 0x0ace, 0x25cb }, - { 0x0acf, 0x25af }, - { 0x0ad0, 0x2018 }, - { 0x0ad1, 0x2019 }, - { 0x0ad2, 0x201c }, - { 0x0ad3, 0x201d }, - { 0x0ad4, 0x211e }, - { 0x0ad6, 0x2032 }, - { 0x0ad7, 0x2033 }, - { 0x0ad9, 0x271d }, - { 0x0adb, 0x25ac }, - { 0x0adc, 0x25c0 }, - { 0x0add, 0x25b6 }, - { 0x0ade, 0x25cf }, - { 0x0adf, 0x25ae }, - { 0x0ae0, 0x25e6 }, - { 0x0ae1, 0x25ab }, - { 0x0ae2, 0x25ad }, - { 0x0ae3, 0x25b3 }, - { 0x0ae4, 0x25bd }, - { 0x0ae5, 0x2606 }, - { 0x0ae6, 0x2022 }, - { 0x0ae7, 0x25aa }, - { 0x0ae8, 0x25b2 }, - { 0x0ae9, 0x25bc }, - { 0x0aea, 0x261c }, - { 0x0aeb, 0x261e }, - { 0x0aec, 0x2663 }, - { 0x0aed, 0x2666 }, - { 0x0aee, 0x2665 }, - { 0x0af0, 0x2720 }, - { 0x0af1, 0x2020 }, - { 0x0af2, 0x2021 }, - { 0x0af3, 0x2713 }, - { 0x0af4, 0x2717 }, - { 0x0af5, 0x266f }, - { 0x0af6, 0x266d }, - { 0x0af7, 0x2642 }, - { 0x0af8, 0x2640 }, - { 0x0af9, 0x260e }, - { 0x0afa, 0x2315 }, - { 0x0afb, 0x2117 }, - { 0x0afc, 0x2038 }, - { 0x0afd, 0x201a }, - { 0x0afe, 0x201e }, - { 0x0ba3, 0x003c }, - { 0x0ba6, 0x003e }, - { 0x0ba8, 0x2228 }, - { 0x0ba9, 0x2227 }, - { 0x0bc0, 0x00af }, - { 0x0bc2, 0x22a5 }, - { 0x0bc3, 0x2229 }, - { 0x0bc4, 0x230a }, - { 0x0bc6, 0x005f }, - { 0x0bca, 0x2218 }, - { 0x0bcc, 0x2395 }, - { 0x0bce, 0x22a4 }, - { 0x0bcf, 0x25cb }, - { 0x0bd3, 0x2308 }, - { 0x0bd6, 0x222a }, - { 0x0bd8, 0x2283 }, - { 0x0bda, 0x2282 }, - { 0x0bdc, 0x22a2 }, - { 0x0bfc, 0x22a3 }, - { 0x0cdf, 0x2017 }, - { 0x0ce0, 0x05d0 }, - { 0x0ce1, 0x05d1 }, - { 0x0ce2, 0x05d2 }, - { 0x0ce3, 0x05d3 }, - { 0x0ce4, 0x05d4 }, - { 0x0ce5, 0x05d5 }, - { 0x0ce6, 0x05d6 }, - { 0x0ce7, 0x05d7 }, - { 0x0ce8, 0x05d8 }, - { 0x0ce9, 0x05d9 }, - { 0x0cea, 0x05da }, - { 0x0ceb, 0x05db }, - { 0x0cec, 0x05dc }, - { 0x0ced, 0x05dd }, - { 0x0cee, 0x05de }, - { 0x0cef, 0x05df }, - { 0x0cf0, 0x05e0 }, - { 0x0cf1, 0x05e1 }, - { 0x0cf2, 0x05e2 }, - { 0x0cf3, 0x05e3 }, - { 0x0cf4, 0x05e4 }, - { 0x0cf5, 0x05e5 }, - { 0x0cf6, 0x05e6 }, - { 0x0cf7, 0x05e7 }, - { 0x0cf8, 0x05e8 }, - { 0x0cf9, 0x05e9 }, - { 0x0cfa, 0x05ea }, - { 0x0da1, 0x0e01 }, - { 0x0da2, 0x0e02 }, - { 0x0da3, 0x0e03 }, - { 0x0da4, 0x0e04 }, - { 0x0da5, 0x0e05 }, - { 0x0da6, 0x0e06 }, - { 0x0da7, 0x0e07 }, - { 0x0da8, 0x0e08 }, - { 0x0da9, 0x0e09 }, - { 0x0daa, 0x0e0a }, - { 0x0dab, 0x0e0b }, - { 0x0dac, 0x0e0c }, - { 0x0dad, 0x0e0d }, - { 0x0dae, 0x0e0e }, - { 0x0daf, 0x0e0f }, - { 0x0db0, 0x0e10 }, - { 0x0db1, 0x0e11 }, - { 0x0db2, 0x0e12 }, - { 0x0db3, 0x0e13 }, - { 0x0db4, 0x0e14 }, - { 0x0db5, 0x0e15 }, - { 0x0db6, 0x0e16 }, - { 0x0db7, 0x0e17 }, - { 0x0db8, 0x0e18 }, - { 0x0db9, 0x0e19 }, - { 0x0dba, 0x0e1a }, - { 0x0dbb, 0x0e1b }, - { 0x0dbc, 0x0e1c }, - { 0x0dbd, 0x0e1d }, - { 0x0dbe, 0x0e1e }, - { 0x0dbf, 0x0e1f }, - { 0x0dc0, 0x0e20 }, - { 0x0dc1, 0x0e21 }, - { 0x0dc2, 0x0e22 }, - { 0x0dc3, 0x0e23 }, - { 0x0dc4, 0x0e24 }, - { 0x0dc5, 0x0e25 }, - { 0x0dc6, 0x0e26 }, - { 0x0dc7, 0x0e27 }, - { 0x0dc8, 0x0e28 }, - { 0x0dc9, 0x0e29 }, - { 0x0dca, 0x0e2a }, - { 0x0dcb, 0x0e2b }, - { 0x0dcc, 0x0e2c }, - { 0x0dcd, 0x0e2d }, - { 0x0dce, 0x0e2e }, - { 0x0dcf, 0x0e2f }, - { 0x0dd0, 0x0e30 }, - { 0x0dd1, 0x0e31 }, - { 0x0dd2, 0x0e32 }, - { 0x0dd3, 0x0e33 }, - { 0x0dd4, 0x0e34 }, - { 0x0dd5, 0x0e35 }, - { 0x0dd6, 0x0e36 }, - { 0x0dd7, 0x0e37 }, - { 0x0dd8, 0x0e38 }, - { 0x0dd9, 0x0e39 }, - { 0x0dda, 0x0e3a }, - { 0x0ddf, 0x0e3f }, - { 0x0de0, 0x0e40 }, - { 0x0de1, 0x0e41 }, - { 0x0de2, 0x0e42 }, - { 0x0de3, 0x0e43 }, - { 0x0de4, 0x0e44 }, - { 0x0de5, 0x0e45 }, - { 0x0de6, 0x0e46 }, - { 0x0de7, 0x0e47 }, - { 0x0de8, 0x0e48 }, - { 0x0de9, 0x0e49 }, - { 0x0dea, 0x0e4a }, - { 0x0deb, 0x0e4b }, - { 0x0dec, 0x0e4c }, - { 0x0ded, 0x0e4d }, - { 0x0df0, 0x0e50 }, - { 0x0df1, 0x0e51 }, - { 0x0df2, 0x0e52 }, - { 0x0df3, 0x0e53 }, - { 0x0df4, 0x0e54 }, - { 0x0df5, 0x0e55 }, - { 0x0df6, 0x0e56 }, - { 0x0df7, 0x0e57 }, - { 0x0df8, 0x0e58 }, - { 0x0df9, 0x0e59 }, - { 0x0ea1, 0x3131 }, - { 0x0ea2, 0x3132 }, - { 0x0ea3, 0x3133 }, - { 0x0ea4, 0x3134 }, - { 0x0ea5, 0x3135 }, - { 0x0ea6, 0x3136 }, - { 0x0ea7, 0x3137 }, - { 0x0ea8, 0x3138 }, - { 0x0ea9, 0x3139 }, - { 0x0eaa, 0x313a }, - { 0x0eab, 0x313b }, - { 0x0eac, 0x313c }, - { 0x0ead, 0x313d }, - { 0x0eae, 0x313e }, - { 0x0eaf, 0x313f }, - { 0x0eb0, 0x3140 }, - { 0x0eb1, 0x3141 }, - { 0x0eb2, 0x3142 }, - { 0x0eb3, 0x3143 }, - { 0x0eb4, 0x3144 }, - { 0x0eb5, 0x3145 }, - { 0x0eb6, 0x3146 }, - { 0x0eb7, 0x3147 }, - { 0x0eb8, 0x3148 }, - { 0x0eb9, 0x3149 }, - { 0x0eba, 0x314a }, - { 0x0ebb, 0x314b }, - { 0x0ebc, 0x314c }, - { 0x0ebd, 0x314d }, - { 0x0ebe, 0x314e }, - { 0x0ebf, 0x314f }, - { 0x0ec0, 0x3150 }, - { 0x0ec1, 0x3151 }, - { 0x0ec2, 0x3152 }, - { 0x0ec3, 0x3153 }, - { 0x0ec4, 0x3154 }, - { 0x0ec5, 0x3155 }, - { 0x0ec6, 0x3156 }, - { 0x0ec7, 0x3157 }, - { 0x0ec8, 0x3158 }, - { 0x0ec9, 0x3159 }, - { 0x0eca, 0x315a }, - { 0x0ecb, 0x315b }, - { 0x0ecc, 0x315c }, - { 0x0ecd, 0x315d }, - { 0x0ece, 0x315e }, - { 0x0ecf, 0x315f }, - { 0x0ed0, 0x3160 }, - { 0x0ed1, 0x3161 }, - { 0x0ed2, 0x3162 }, - { 0x0ed3, 0x3163 }, - { 0x0ed4, 0x11a8 }, - { 0x0ed5, 0x11a9 }, - { 0x0ed6, 0x11aa }, - { 0x0ed7, 0x11ab }, - { 0x0ed8, 0x11ac }, - { 0x0ed9, 0x11ad }, - { 0x0eda, 0x11ae }, - { 0x0edb, 0x11af }, - { 0x0edc, 0x11b0 }, - { 0x0edd, 0x11b1 }, - { 0x0ede, 0x11b2 }, - { 0x0edf, 0x11b3 }, - { 0x0ee0, 0x11b4 }, - { 0x0ee1, 0x11b5 }, - { 0x0ee2, 0x11b6 }, - { 0x0ee3, 0x11b7 }, - { 0x0ee4, 0x11b8 }, - { 0x0ee5, 0x11b9 }, - { 0x0ee6, 0x11ba }, - { 0x0ee7, 0x11bb }, - { 0x0ee8, 0x11bc }, - { 0x0ee9, 0x11bd }, - { 0x0eea, 0x11be }, - { 0x0eeb, 0x11bf }, - { 0x0eec, 0x11c0 }, - { 0x0eed, 0x11c1 }, - { 0x0eee, 0x11c2 }, - { 0x0eef, 0x316d }, - { 0x0ef0, 0x3171 }, - { 0x0ef1, 0x3178 }, - { 0x0ef2, 0x317f }, - { 0x0ef3, 0x3181 }, - { 0x0ef4, 0x3184 }, - { 0x0ef5, 0x3186 }, - { 0x0ef6, 0x318d }, - { 0x0ef7, 0x318e }, - { 0x0ef8, 0x11eb }, - { 0x0ef9, 0x11f0 }, - { 0x0efa, 0x11f9 }, - { 0x0eff, 0x20a9 }, - { 0x13a4, 0x20ac }, - { 0x13bc, 0x0152 }, - { 0x13bd, 0x0153 }, - { 0x13be, 0x0178 }, - { 0x20ac, 0x20ac }, - // Numeric keypad with numlock on - { 0xff80 /*XKB_KEY_KP_Space*/, ' ' }, - { 0xffbd /*XKB_KEY_KP_Equal*/, '=' }, - { 0xffaa /*XKB_KEY_KP_Multiply*/, '*' }, - { 0xffab /*XKB_KEY_KP_Add*/, '+' }, - { 0xffac /*XKB_KEY_KP_Separator*/, ',' }, - { 0xffad /*XKB_KEY_KP_Subtract*/, '-' }, - { 0xffae /*XKB_KEY_KP_Decimal*/, '.' }, - { 0xffaf /*XKB_KEY_KP_Divide*/, '/' }, - { 0xffb0 /*XKB_KEY_KP_0*/, 0x0030 }, - { 0xffb1 /*XKB_KEY_KP_1*/, 0x0031 }, - { 0xffb2 /*XKB_KEY_KP_2*/, 0x0032 }, - { 0xffb3 /*XKB_KEY_KP_3*/, 0x0033 }, - { 0xffb4 /*XKB_KEY_KP_4*/, 0x0034 }, - { 0xffb5 /*XKB_KEY_KP_5*/, 0x0035 }, - { 0xffb6 /*XKB_KEY_KP_6*/, 0x0036 }, - { 0xffb7 /*XKB_KEY_KP_7*/, 0x0037 }, - { 0xffb8 /*XKB_KEY_KP_8*/, 0x0038 }, - { 0xffb9 /*XKB_KEY_KP_9*/, 0x0039 } -}; - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Convert XKB KeySym to Unicode -// -long _glfwKeySym2Unicode(unsigned int keysym) -{ - int min = 0; - int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; - int mid; - - // First check for Latin-1 characters (1:1 mapping) - if ((keysym >= 0x0020 && keysym <= 0x007e) || - (keysym >= 0x00a0 && keysym <= 0x00ff)) - { - return keysym; - } - - // Also check for directly encoded 24-bit UCS characters - if ((keysym & 0xff000000) == 0x01000000) - return keysym & 0x00ffffff; - - // Binary search in table - while (max >= min) - { - mid = (min + max) / 2; - if (keysymtab[mid].keysym < keysym) - min = mid + 1; - else if (keysymtab[mid].keysym > keysym) - max = mid - 1; - else - return keysymtab[mid].ucs; - } - - // No matching Unicode value found - return -1; -} - diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/xkb_unicode.h b/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/xkb_unicode.h deleted file mode 100644 index 688374d..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/glfw/src/xkb_unicode.h +++ /dev/null @@ -1,33 +0,0 @@ -//======================================================================== -// GLFW 3.2 Linux - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== - -#ifndef _glfw3_xkb_unicode_h_ -#define _glfw3_xkb_unicode_h_ - - -long _glfwKeySym2Unicode(unsigned int keysym); - -#endif // _glfw3_xkb_unicode_h_ diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/input.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/input.c deleted file mode 100644 index 0b59286..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/input.c +++ /dev/null @@ -1,81 +0,0 @@ -#include "_cgo_export.h" - -void glfwJoystickCB(int joy, int event) { - goJoystickCB(joy, event); -} - -void glfwMouseButtonCB(GLFWwindow* window, int button, int action, int mods) { - goMouseButtonCB(window, button, action, mods); -} - -void glfwCursorPosCB(GLFWwindow* window, double xpos, double ypos) { - goCursorPosCB(window, xpos, ypos); -} - -void glfwCursorEnterCB(GLFWwindow* window, int entered) { - goCursorEnterCB(window, entered); -} - -void glfwScrollCB(GLFWwindow* window, double xoff, double yoff) { - goScrollCB(window, xoff, yoff); -} - -void glfwKeyCB(GLFWwindow* window, int key, int scancode, int action, int mods) { - goKeyCB(window, key, scancode, action, mods); -} - -void glfwCharCB(GLFWwindow* window, unsigned int character) { - goCharCB(window, character); -} - -void glfwCharModsCB(GLFWwindow* window, unsigned int character, int mods) { - goCharModsCB(window, character, mods); -} - -void glfwDropCB(GLFWwindow* window, int count, const char **names) { - goDropCB(window, count, (char**)names); -} - -void glfwSetJoystickCallbackCB() { - glfwSetJoystickCallback(glfwJoystickCB); -} - -void glfwSetKeyCallbackCB(GLFWwindow *window) { - glfwSetKeyCallback(window, glfwKeyCB); -} - -void glfwSetCharCallbackCB(GLFWwindow *window) { - glfwSetCharCallback(window, glfwCharCB); -} - -void glfwSetCharModsCallbackCB(GLFWwindow *window) { - glfwSetCharModsCallback(window, glfwCharModsCB); -} - -void glfwSetMouseButtonCallbackCB(GLFWwindow *window) { - glfwSetMouseButtonCallback(window, glfwMouseButtonCB); -} - -void glfwSetCursorPosCallbackCB(GLFWwindow *window) { - glfwSetCursorPosCallback(window, glfwCursorPosCB); -} - -void glfwSetCursorEnterCallbackCB(GLFWwindow *window) { - glfwSetCursorEnterCallback(window, glfwCursorEnterCB); -} - -void glfwSetScrollCallbackCB(GLFWwindow *window) { - glfwSetScrollCallback(window, glfwScrollCB); -} - -void glfwSetDropCallbackCB(GLFWwindow *window) { - glfwSetDropCallback(window, glfwDropCB); -} - -float GetAxisAtIndex(float *axis, int i) { - return axis[i]; -} - -unsigned char GetButtonsAtIndex(unsigned char *buttons, int i) { - return buttons[i]; -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/input.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/input.go deleted file mode 100644 index fd21fed..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/input.go +++ /dev/null @@ -1,696 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -//void glfwSetJoystickCallbackCB(); -//void glfwSetKeyCallbackCB(GLFWwindow *window); -//void glfwSetCharCallbackCB(GLFWwindow *window); -//void glfwSetCharModsCallbackCB(GLFWwindow *window); -//void glfwSetMouseButtonCallbackCB(GLFWwindow *window); -//void glfwSetCursorPosCallbackCB(GLFWwindow *window); -//void glfwSetCursorEnterCallbackCB(GLFWwindow *window); -//void glfwSetScrollCallbackCB(GLFWwindow *window); -//void glfwSetDropCallbackCB(GLFWwindow *window); -//float GetAxisAtIndex(float *axis, int i); -//unsigned char GetButtonsAtIndex(unsigned char *buttons, int i); -import "C" - -import ( - "image" - "image/draw" - "unsafe" -) - -var fJoystickHolder func(joy, event int) - -// Joystick corresponds to a joystick. -type Joystick int - -// Joystick IDs. -const ( - Joystick1 Joystick = C.GLFW_JOYSTICK_1 - Joystick2 Joystick = C.GLFW_JOYSTICK_2 - Joystick3 Joystick = C.GLFW_JOYSTICK_3 - Joystick4 Joystick = C.GLFW_JOYSTICK_4 - Joystick5 Joystick = C.GLFW_JOYSTICK_5 - Joystick6 Joystick = C.GLFW_JOYSTICK_6 - Joystick7 Joystick = C.GLFW_JOYSTICK_7 - Joystick8 Joystick = C.GLFW_JOYSTICK_8 - Joystick9 Joystick = C.GLFW_JOYSTICK_9 - Joystick10 Joystick = C.GLFW_JOYSTICK_10 - Joystick11 Joystick = C.GLFW_JOYSTICK_11 - Joystick12 Joystick = C.GLFW_JOYSTICK_12 - Joystick13 Joystick = C.GLFW_JOYSTICK_13 - Joystick14 Joystick = C.GLFW_JOYSTICK_14 - Joystick15 Joystick = C.GLFW_JOYSTICK_15 - Joystick16 Joystick = C.GLFW_JOYSTICK_16 - JoystickLast Joystick = C.GLFW_JOYSTICK_LAST -) - -// Key corresponds to a keyboard key. -type Key int - -// These key codes are inspired by the USB HID Usage Tables v1.12 (p. 53-60), -// but re-arranged to map to 7-bit ASCII for printable keys (function keys are -// put in the 256+ range). -const ( - KeyUnknown Key = C.GLFW_KEY_UNKNOWN - KeySpace Key = C.GLFW_KEY_SPACE - KeyApostrophe Key = C.GLFW_KEY_APOSTROPHE - KeyComma Key = C.GLFW_KEY_COMMA - KeyMinus Key = C.GLFW_KEY_MINUS - KeyPeriod Key = C.GLFW_KEY_PERIOD - KeySlash Key = C.GLFW_KEY_SLASH - Key0 Key = C.GLFW_KEY_0 - Key1 Key = C.GLFW_KEY_1 - Key2 Key = C.GLFW_KEY_2 - Key3 Key = C.GLFW_KEY_3 - Key4 Key = C.GLFW_KEY_4 - Key5 Key = C.GLFW_KEY_5 - Key6 Key = C.GLFW_KEY_6 - Key7 Key = C.GLFW_KEY_7 - Key8 Key = C.GLFW_KEY_8 - Key9 Key = C.GLFW_KEY_9 - KeySemicolon Key = C.GLFW_KEY_SEMICOLON - KeyEqual Key = C.GLFW_KEY_EQUAL - KeyA Key = C.GLFW_KEY_A - KeyB Key = C.GLFW_KEY_B - KeyC Key = C.GLFW_KEY_C - KeyD Key = C.GLFW_KEY_D - KeyE Key = C.GLFW_KEY_E - KeyF Key = C.GLFW_KEY_F - KeyG Key = C.GLFW_KEY_G - KeyH Key = C.GLFW_KEY_H - KeyI Key = C.GLFW_KEY_I - KeyJ Key = C.GLFW_KEY_J - KeyK Key = C.GLFW_KEY_K - KeyL Key = C.GLFW_KEY_L - KeyM Key = C.GLFW_KEY_M - KeyN Key = C.GLFW_KEY_N - KeyO Key = C.GLFW_KEY_O - KeyP Key = C.GLFW_KEY_P - KeyQ Key = C.GLFW_KEY_Q - KeyR Key = C.GLFW_KEY_R - KeyS Key = C.GLFW_KEY_S - KeyT Key = C.GLFW_KEY_T - KeyU Key = C.GLFW_KEY_U - KeyV Key = C.GLFW_KEY_V - KeyW Key = C.GLFW_KEY_W - KeyX Key = C.GLFW_KEY_X - KeyY Key = C.GLFW_KEY_Y - KeyZ Key = C.GLFW_KEY_Z - KeyLeftBracket Key = C.GLFW_KEY_LEFT_BRACKET - KeyBackslash Key = C.GLFW_KEY_BACKSLASH - KeyRightBracket Key = C.GLFW_KEY_RIGHT_BRACKET - KeyGraveAccent Key = C.GLFW_KEY_GRAVE_ACCENT - KeyWorld1 Key = C.GLFW_KEY_WORLD_1 - KeyWorld2 Key = C.GLFW_KEY_WORLD_2 - KeyEscape Key = C.GLFW_KEY_ESCAPE - KeyEnter Key = C.GLFW_KEY_ENTER - KeyTab Key = C.GLFW_KEY_TAB - KeyBackspace Key = C.GLFW_KEY_BACKSPACE - KeyInsert Key = C.GLFW_KEY_INSERT - KeyDelete Key = C.GLFW_KEY_DELETE - KeyRight Key = C.GLFW_KEY_RIGHT - KeyLeft Key = C.GLFW_KEY_LEFT - KeyDown Key = C.GLFW_KEY_DOWN - KeyUp Key = C.GLFW_KEY_UP - KeyPageUp Key = C.GLFW_KEY_PAGE_UP - KeyPageDown Key = C.GLFW_KEY_PAGE_DOWN - KeyHome Key = C.GLFW_KEY_HOME - KeyEnd Key = C.GLFW_KEY_END - KeyCapsLock Key = C.GLFW_KEY_CAPS_LOCK - KeyScrollLock Key = C.GLFW_KEY_SCROLL_LOCK - KeyNumLock Key = C.GLFW_KEY_NUM_LOCK - KeyPrintScreen Key = C.GLFW_KEY_PRINT_SCREEN - KeyPause Key = C.GLFW_KEY_PAUSE - KeyF1 Key = C.GLFW_KEY_F1 - KeyF2 Key = C.GLFW_KEY_F2 - KeyF3 Key = C.GLFW_KEY_F3 - KeyF4 Key = C.GLFW_KEY_F4 - KeyF5 Key = C.GLFW_KEY_F5 - KeyF6 Key = C.GLFW_KEY_F6 - KeyF7 Key = C.GLFW_KEY_F7 - KeyF8 Key = C.GLFW_KEY_F8 - KeyF9 Key = C.GLFW_KEY_F9 - KeyF10 Key = C.GLFW_KEY_F10 - KeyF11 Key = C.GLFW_KEY_F11 - KeyF12 Key = C.GLFW_KEY_F12 - KeyF13 Key = C.GLFW_KEY_F13 - KeyF14 Key = C.GLFW_KEY_F14 - KeyF15 Key = C.GLFW_KEY_F15 - KeyF16 Key = C.GLFW_KEY_F16 - KeyF17 Key = C.GLFW_KEY_F17 - KeyF18 Key = C.GLFW_KEY_F18 - KeyF19 Key = C.GLFW_KEY_F19 - KeyF20 Key = C.GLFW_KEY_F20 - KeyF21 Key = C.GLFW_KEY_F21 - KeyF22 Key = C.GLFW_KEY_F22 - KeyF23 Key = C.GLFW_KEY_F23 - KeyF24 Key = C.GLFW_KEY_F24 - KeyF25 Key = C.GLFW_KEY_F25 - KeyKP0 Key = C.GLFW_KEY_KP_0 - KeyKP1 Key = C.GLFW_KEY_KP_1 - KeyKP2 Key = C.GLFW_KEY_KP_2 - KeyKP3 Key = C.GLFW_KEY_KP_3 - KeyKP4 Key = C.GLFW_KEY_KP_4 - KeyKP5 Key = C.GLFW_KEY_KP_5 - KeyKP6 Key = C.GLFW_KEY_KP_6 - KeyKP7 Key = C.GLFW_KEY_KP_7 - KeyKP8 Key = C.GLFW_KEY_KP_8 - KeyKP9 Key = C.GLFW_KEY_KP_9 - KeyKPDecimal Key = C.GLFW_KEY_KP_DECIMAL - KeyKPDivide Key = C.GLFW_KEY_KP_DIVIDE - KeyKPMultiply Key = C.GLFW_KEY_KP_MULTIPLY - KeyKPSubtract Key = C.GLFW_KEY_KP_SUBTRACT - KeyKPAdd Key = C.GLFW_KEY_KP_ADD - KeyKPEnter Key = C.GLFW_KEY_KP_ENTER - KeyKPEqual Key = C.GLFW_KEY_KP_EQUAL - KeyLeftShift Key = C.GLFW_KEY_LEFT_SHIFT - KeyLeftControl Key = C.GLFW_KEY_LEFT_CONTROL - KeyLeftAlt Key = C.GLFW_KEY_LEFT_ALT - KeyLeftSuper Key = C.GLFW_KEY_LEFT_SUPER - KeyRightShift Key = C.GLFW_KEY_RIGHT_SHIFT - KeyRightControl Key = C.GLFW_KEY_RIGHT_CONTROL - KeyRightAlt Key = C.GLFW_KEY_RIGHT_ALT - KeyRightSuper Key = C.GLFW_KEY_RIGHT_SUPER - KeyMenu Key = C.GLFW_KEY_MENU - KeyLast Key = C.GLFW_KEY_LAST -) - -// ModifierKey corresponds to a modifier key. -type ModifierKey int - -// Modifier keys. -const ( - ModShift ModifierKey = C.GLFW_MOD_SHIFT - ModControl ModifierKey = C.GLFW_MOD_CONTROL - ModAlt ModifierKey = C.GLFW_MOD_ALT - ModSuper ModifierKey = C.GLFW_MOD_SUPER -) - -// MouseButton corresponds to a mouse button. -type MouseButton int - -// Mouse buttons. -const ( - MouseButton1 MouseButton = C.GLFW_MOUSE_BUTTON_1 - MouseButton2 MouseButton = C.GLFW_MOUSE_BUTTON_2 - MouseButton3 MouseButton = C.GLFW_MOUSE_BUTTON_3 - MouseButton4 MouseButton = C.GLFW_MOUSE_BUTTON_4 - MouseButton5 MouseButton = C.GLFW_MOUSE_BUTTON_5 - MouseButton6 MouseButton = C.GLFW_MOUSE_BUTTON_6 - MouseButton7 MouseButton = C.GLFW_MOUSE_BUTTON_7 - MouseButton8 MouseButton = C.GLFW_MOUSE_BUTTON_8 - MouseButtonLast MouseButton = C.GLFW_MOUSE_BUTTON_LAST - MouseButtonLeft MouseButton = C.GLFW_MOUSE_BUTTON_LEFT - MouseButtonRight MouseButton = C.GLFW_MOUSE_BUTTON_RIGHT - MouseButtonMiddle MouseButton = C.GLFW_MOUSE_BUTTON_MIDDLE -) - -// StandardCursor corresponds to a standard cursor icon. -type StandardCursor int - -// Standard cursors -const ( - ArrowCursor StandardCursor = C.GLFW_ARROW_CURSOR - IBeamCursor StandardCursor = C.GLFW_IBEAM_CURSOR - CrosshairCursor StandardCursor = C.GLFW_CROSSHAIR_CURSOR - HandCursor StandardCursor = C.GLFW_HAND_CURSOR - HResizeCursor StandardCursor = C.GLFW_HRESIZE_CURSOR - VResizeCursor StandardCursor = C.GLFW_VRESIZE_CURSOR -) - -// Action corresponds to a key or button action. -type Action int - -// Action types. -const ( - Release Action = C.GLFW_RELEASE // The key or button was released. - Press Action = C.GLFW_PRESS // The key or button was pressed. - Repeat Action = C.GLFW_REPEAT // The key was held down until it repeated. -) - -// InputMode corresponds to an input mode. -type InputMode int - -// Input modes. -const ( - CursorMode InputMode = C.GLFW_CURSOR // See Cursor mode values - StickyKeysMode InputMode = C.GLFW_STICKY_KEYS // Value can be either 1 or 0 - StickyMouseButtonsMode InputMode = C.GLFW_STICKY_MOUSE_BUTTONS // Value can be either 1 or 0 -) - -// Cursor mode values. -const ( - CursorNormal int = C.GLFW_CURSOR_NORMAL - CursorHidden int = C.GLFW_CURSOR_HIDDEN - CursorDisabled int = C.GLFW_CURSOR_DISABLED -) - -// Cursor represents a cursor. -type Cursor struct { - data *C.GLFWcursor -} - -//export goJoystickCB -func goJoystickCB(joy, event C.int) { - fJoystickHolder(int(joy), int(event)) -} - -//export goMouseButtonCB -func goMouseButtonCB(window unsafe.Pointer, button, action, mods C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fMouseButtonHolder(w, MouseButton(button), Action(action), ModifierKey(mods)) -} - -//export goCursorPosCB -func goCursorPosCB(window unsafe.Pointer, xpos, ypos C.double) { - w := windows.get((*C.GLFWwindow)(window)) - w.fCursorPosHolder(w, float64(xpos), float64(ypos)) -} - -//export goCursorEnterCB -func goCursorEnterCB(window unsafe.Pointer, entered C.int) { - w := windows.get((*C.GLFWwindow)(window)) - hasEntered := glfwbool(entered) - w.fCursorEnterHolder(w, hasEntered) -} - -//export goScrollCB -func goScrollCB(window unsafe.Pointer, xoff, yoff C.double) { - w := windows.get((*C.GLFWwindow)(window)) - w.fScrollHolder(w, float64(xoff), float64(yoff)) -} - -//export goKeyCB -func goKeyCB(window unsafe.Pointer, key, scancode, action, mods C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fKeyHolder(w, Key(key), int(scancode), Action(action), ModifierKey(mods)) -} - -//export goCharCB -func goCharCB(window unsafe.Pointer, character C.uint) { - w := windows.get((*C.GLFWwindow)(window)) - w.fCharHolder(w, rune(character)) -} - -//export goCharModsCB -func goCharModsCB(window unsafe.Pointer, character C.uint, mods C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fCharModsHolder(w, rune(character), ModifierKey(mods)) -} - -//export goDropCB -func goDropCB(window unsafe.Pointer, count C.int, names **C.char) { // TODO: The types of name can be `**C.char` or `unsafe.Pointer`, use whichever is better. - w := windows.get((*C.GLFWwindow)(window)) - namesSlice := make([]string, int(count)) // TODO: Make this better. This part is unfinished, hacky, probably not correct, and not idiomatic. - for i := 0; i < int(count); i++ { // TODO: Make this better. It should be cleaned up and vetted. - var x *C.char // TODO: Make this better. - p := (**C.char)(unsafe.Pointer(uintptr(unsafe.Pointer(names)) + uintptr(i)*unsafe.Sizeof(x))) // TODO: Make this better. - namesSlice[i] = C.GoString(*p) // TODO: Make this better. - } - w.fDropHolder(w, namesSlice) -} - -// GetInputMode returns the value of an input option of the window. -func (w *Window) GetInputMode(mode InputMode) int { - ret := int(C.glfwGetInputMode(w.data, C.int(mode))) - panicError() - return ret -} - -// SetInputMode sets an input option for the window. -func (w *Window) SetInputMode(mode InputMode, value int) { - C.glfwSetInputMode(w.data, C.int(mode), C.int(value)) - panicError() -} - -// GetKey returns the last reported state of a keyboard key. The returned state -// is one of Press or Release. The higher-level state Repeat is only reported to -// the key callback. -// -// If the StickyKeys input mode is enabled, this function returns Press the first -// time you call this function after a key has been pressed, even if the key has -// already been released. -// -// The key functions deal with physical keys, with key tokens named after their -// use on the standard US keyboard layout. If you want to input text, use the -// Unicode character callback instead. -func (w *Window) GetKey(key Key) Action { - ret := Action(C.glfwGetKey(w.data, C.int(key))) - panicError() - return ret -} - -// GetKeyName returns the localized name of the specified printable key. -// -// If the key is glfw.KeyUnknown, the scancode is used, otherwise the scancode is ignored. -func GetKeyName(key Key, scancode int) string { - ret := C.glfwGetKeyName(C.int(key), C.int(scancode)) - panicError() - return C.GoString(ret) -} - -// GetMouseButton returns the last state reported for the specified mouse button. -// -// If the StickyMouseButtons input mode is enabled, this function returns Press -// the first time you call this function after a mouse button has been pressed, -// even if the mouse button has already been released. -func (w *Window) GetMouseButton(button MouseButton) Action { - ret := Action(C.glfwGetMouseButton(w.data, C.int(button))) - panicError() - return ret -} - -// GetCursorPos returns the last reported position of the cursor. -// -// If the cursor is disabled (with CursorDisabled) then the cursor position is -// unbounded and limited only by the minimum and maximum values of a double. -// -// The coordinate can be converted to their integer equivalents with the floor -// function. Casting directly to an integer type works for positive coordinates, -// but fails for negative ones. -func (w *Window) GetCursorPos() (x, y float64) { - var xpos, ypos C.double - C.glfwGetCursorPos(w.data, &xpos, &ypos) - panicError() - return float64(xpos), float64(ypos) -} - -// SetCursorPos sets the position of the cursor. The specified window must -// be focused. If the window does not have focus when this function is called, -// it fails silently. -// -// If the cursor is disabled (with CursorDisabled) then the cursor position is -// unbounded and limited only by the minimum and maximum values of a double. -func (w *Window) SetCursorPos(xpos, ypos float64) { - C.glfwSetCursorPos(w.data, C.double(xpos), C.double(ypos)) - panicError() -} - -// CreateCursor creates a new custom cursor image that can be set for a window with SetCursor. -// The cursor can be destroyed with Destroy. Any remaining cursors are destroyed by Terminate. -// -// The image is ideally provided in the form of *image.NRGBA. -// The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight -// bits per channel with the red channel first. They are arranged canonically -// as packed sequential rows, starting from the top-left corner. If the image -// type is not *image.NRGBA, it will be converted to it. -// -// The cursor hotspot is specified in pixels, relative to the upper-left corner of the cursor image. -// Like all other coordinate systems in GLFW, the X-axis points to the right and the Y-axis points down. -func CreateCursor(img image.Image, xhot, yhot int) *Cursor { - var imgC C.GLFWimage - var pixels []uint8 - b := img.Bounds() - - switch img := img.(type) { - case *image.NRGBA: - pixels = img.Pix - default: - m := image.NewNRGBA(image.Rect(0, 0, b.Dx(), b.Dy())) - draw.Draw(m, m.Bounds(), img, b.Min, draw.Src) - pixels = m.Pix - } - - pix, free := bytes(pixels) - - imgC.width = C.int(b.Dx()) - imgC.height = C.int(b.Dy()) - imgC.pixels = (*C.uchar)(pix) - - c := C.glfwCreateCursor(&imgC, C.int(xhot), C.int(yhot)) - - free() - panicError() - - return &Cursor{c} -} - -// CreateStandardCursor returns a cursor with a standard shape, -// that can be set for a window with SetCursor. -func CreateStandardCursor(shape StandardCursor) *Cursor { - c := C.glfwCreateStandardCursor(C.int(shape)) - panicError() - return &Cursor{c} -} - -// Destroy destroys a cursor previously created with CreateCursor. -// Any remaining cursors will be destroyed by Terminate. -func (c *Cursor) Destroy() { - C.glfwDestroyCursor(c.data) - panicError() -} - -// SetCursor sets the cursor image to be used when the cursor is over the client area -// of the specified window. The set cursor will only be visible when the cursor mode of the -// window is CursorNormal. -// -// On some platforms, the set cursor may not be visible unless the window also has input focus. -func (w *Window) SetCursor(c *Cursor) { - if c == nil { - C.glfwSetCursor(w.data, nil) - } else { - C.glfwSetCursor(w.data, c.data) - } - panicError() -} - -// JoystickCallback is the joystick configuration callback. -type JoystickCallback func(joy, event int) - -// SetJoystickCallback sets the joystick configuration callback, or removes the -// currently set callback. This is called when a joystick is connected to or -// disconnected from the system. -func SetJoystickCallback(cbfun JoystickCallback) (previous JoystickCallback) { - previous = fJoystickHolder - fJoystickHolder = cbfun - if cbfun == nil { - C.glfwSetJoystickCallback(nil) - } else { - C.glfwSetJoystickCallbackCB() - } - panicError() - return previous -} - -// KeyCallback is the key callback. -type KeyCallback func(w *Window, key Key, scancode int, action Action, mods ModifierKey) - -// SetKeyCallback sets the key callback which is called when a key is pressed, -// repeated or released. -// -// The key functions deal with physical keys, with layout independent key tokens -// named after their values in the standard US keyboard layout. If you want to -// input text, use the SetCharCallback instead. -// -// When a window loses focus, it will generate synthetic key release events for -// all pressed keys. You can tell these events from user-generated events by the -// fact that the synthetic ones are generated after the window has lost focus, -// i.e. Focused will be false and the focus callback will have already been -// called. -func (w *Window) SetKeyCallback(cbfun KeyCallback) (previous KeyCallback) { - previous = w.fKeyHolder - w.fKeyHolder = cbfun - if cbfun == nil { - C.glfwSetKeyCallback(w.data, nil) - } else { - C.glfwSetKeyCallbackCB(w.data) - } - panicError() - return previous -} - -// CharCallback is the character callback. -type CharCallback func(w *Window, char rune) - -// SetCharCallback sets the character callback which is called when a -// Unicode character is input. -// -// The character callback is intended for Unicode text input. As it deals with -// characters, it is keyboard layout dependent, whereas the -// key callback is not. Characters do not map 1:1 -// to physical keys, as a key may produce zero, one or more characters. If you -// want to know whether a specific physical key was pressed or released, see -// the key callback instead. -// -// The character callback behaves as system text input normally does and will -// not be called if modifier keys are held down that would prevent normal text -// input on that platform, for example a Super (Command) key on OS X or Alt key -// on Windows. There is a character with modifiers callback that receives these events. -func (w *Window) SetCharCallback(cbfun CharCallback) (previous CharCallback) { - previous = w.fCharHolder - w.fCharHolder = cbfun - if cbfun == nil { - C.glfwSetCharCallback(w.data, nil) - } else { - C.glfwSetCharCallbackCB(w.data) - } - panicError() - return previous -} - -// CharModsCallback is the character with modifiers callback. -type CharModsCallback func(w *Window, char rune, mods ModifierKey) - -// SetCharModsCallback sets the character with modifiers callback which is called when a -// Unicode character is input regardless of what modifier keys are used. -// -// The character with modifiers callback is intended for implementing custom -// Unicode character input. For regular Unicode text input, see the -// character callback. Like the character callback, the character with modifiers callback -// deals with characters and is keyboard layout dependent. Characters do not -// map 1:1 to physical keys, as a key may produce zero, one or more characters. -// If you want to know whether a specific physical key was pressed or released, -// see the key callback instead. -func (w *Window) SetCharModsCallback(cbfun CharModsCallback) (previous CharModsCallback) { - previous = w.fCharModsHolder - w.fCharModsHolder = cbfun - if cbfun == nil { - C.glfwSetCharModsCallback(w.data, nil) - } else { - C.glfwSetCharModsCallbackCB(w.data) - } - panicError() - return previous -} - -// MouseButtonCallback is the mouse button callback. -type MouseButtonCallback func(w *Window, button MouseButton, action Action, mod ModifierKey) - -// SetMouseButtonCallback sets the mouse button callback which is called when a -// mouse button is pressed or released. -// -// When a window loses focus, it will generate synthetic mouse button release -// events for all pressed mouse buttons. You can tell these events from -// user-generated events by the fact that the synthetic ones are generated after -// the window has lost focus, i.e. Focused will be false and the focus -// callback will have already been called. -func (w *Window) SetMouseButtonCallback(cbfun MouseButtonCallback) (previous MouseButtonCallback) { - previous = w.fMouseButtonHolder - w.fMouseButtonHolder = cbfun - if cbfun == nil { - C.glfwSetMouseButtonCallback(w.data, nil) - } else { - C.glfwSetMouseButtonCallbackCB(w.data) - } - panicError() - return previous -} - -// CursorPosCallback the cursor position callback. -type CursorPosCallback func(w *Window, xpos float64, ypos float64) - -// SetCursorPosCallback sets the cursor position callback which is called -// when the cursor is moved. The callback is provided with the position relative -// to the upper-left corner of the client area of the window. -func (w *Window) SetCursorPosCallback(cbfun CursorPosCallback) (previous CursorPosCallback) { - previous = w.fCursorPosHolder - w.fCursorPosHolder = cbfun - if cbfun == nil { - C.glfwSetCursorPosCallback(w.data, nil) - } else { - C.glfwSetCursorPosCallbackCB(w.data) - } - panicError() - return previous -} - -// CursorEnterCallback is the cursor boundary crossing callback. -type CursorEnterCallback func(w *Window, entered bool) - -// SetCursorEnterCallback the cursor boundary crossing callback which is called -// when the cursor enters or leaves the client area of the window. -func (w *Window) SetCursorEnterCallback(cbfun CursorEnterCallback) (previous CursorEnterCallback) { - previous = w.fCursorEnterHolder - w.fCursorEnterHolder = cbfun - if cbfun == nil { - C.glfwSetCursorEnterCallback(w.data, nil) - } else { - C.glfwSetCursorEnterCallbackCB(w.data) - } - panicError() - return previous -} - -// ScrollCallback is the scroll callback. -type ScrollCallback func(w *Window, xoff float64, yoff float64) - -// SetScrollCallback sets the scroll callback which is called when a scrolling -// device is used, such as a mouse wheel or scrolling area of a touchpad. -func (w *Window) SetScrollCallback(cbfun ScrollCallback) (previous ScrollCallback) { - previous = w.fScrollHolder - w.fScrollHolder = cbfun - if cbfun == nil { - C.glfwSetScrollCallback(w.data, nil) - } else { - C.glfwSetScrollCallbackCB(w.data) - } - panicError() - return previous -} - -// DropCallback is the drop callback. -type DropCallback func(w *Window, names []string) - -// SetDropCallback sets the drop callback which is called when an object -// is dropped over the window. -func (w *Window) SetDropCallback(cbfun DropCallback) (previous DropCallback) { - previous = w.fDropHolder - w.fDropHolder = cbfun - if cbfun == nil { - C.glfwSetDropCallback(w.data, nil) - } else { - C.glfwSetDropCallbackCB(w.data) - } - panicError() - return previous -} - -// JoystickPresent reports whether the specified joystick is present. -func JoystickPresent(joy Joystick) bool { - ret := glfwbool(C.glfwJoystickPresent(C.int(joy))) - panicError() - return ret -} - -// GetJoystickAxes returns a slice of axis values. -func GetJoystickAxes(joy Joystick) []float32 { - var length int - - axis := C.glfwGetJoystickAxes(C.int(joy), (*C.int)(unsafe.Pointer(&length))) - panicError() - if axis == nil { - return nil - } - - a := make([]float32, length) - for i := 0; i < length; i++ { - a[i] = float32(C.GetAxisAtIndex(axis, C.int(i))) - } - return a -} - -// GetJoystickButtons returns a slice of button values. -func GetJoystickButtons(joy Joystick) []byte { - var length int - - buttons := C.glfwGetJoystickButtons(C.int(joy), (*C.int)(unsafe.Pointer(&length))) - panicError() - if buttons == nil { - return nil - } - - b := make([]byte, length) - for i := 0; i < length; i++ { - b[i] = byte(C.GetButtonsAtIndex(buttons, C.int(i))) - } - return b -} - -// GetJoystickName returns the name, encoded as UTF-8, of the specified joystick. -func GetJoystickName(joy Joystick) string { - jn := C.glfwGetJoystickName(C.int(joy)) - panicError() - return C.GoString(jn) -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/monitor.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/monitor.c deleted file mode 100644 index 6ae35aa..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/monitor.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "_cgo_export.h" - -GLFWmonitor *GetMonitorAtIndex(GLFWmonitor **monitors, int index) { - return monitors[index]; -} - -GLFWvidmode GetVidmodeAtIndex(GLFWvidmode *vidmodes, int index) { - return vidmodes[index]; -} - -void glfwMonitorCB(GLFWmonitor* monitor, int event) { - goMonitorCB(monitor, event); -} - -void glfwSetMonitorCallbackCB() { - glfwSetMonitorCallback(glfwMonitorCB); -} - -unsigned int GetGammaAtIndex(unsigned short *color, int i) { - return color[i]; -} - -void SetGammaAtIndex(unsigned short *color, int i, unsigned short value) { - color[i] = value; -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/monitor.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/monitor.go deleted file mode 100644 index 5428189..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/monitor.go +++ /dev/null @@ -1,208 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -//GLFWmonitor* GetMonitorAtIndex(GLFWmonitor **monitors, int index); -//GLFWvidmode GetVidmodeAtIndex(GLFWvidmode *vidmodes, int index); -//void glfwSetMonitorCallbackCB(); -//unsigned int GetGammaAtIndex(unsigned short *color, int i); -//void SetGammaAtIndex(unsigned short *color, int i, unsigned short value); -import "C" - -import ( - "unsafe" -) - -// Monitor represents a monitor. -type Monitor struct { - data *C.GLFWmonitor -} - -// MonitorEvent corresponds to a monitor configuration event. -type MonitorEvent int - -// GammaRamp describes the gamma ramp for a monitor. -type GammaRamp struct { - Red []uint16 // A slice of value describing the response of the red channel. - Green []uint16 // A slice of value describing the response of the green channel. - Blue []uint16 // A slice of value describing the response of the blue channel. -} - -// Monitor events. -const ( - Connected MonitorEvent = C.GLFW_CONNECTED - Disconnected MonitorEvent = C.GLFW_DISCONNECTED -) - -// VidMode describes a single video mode. -type VidMode struct { - Width int // The width, in pixels, of the video mode. - Height int // The height, in pixels, of the video mode. - RedBits int // The bit depth of the red channel of the video mode. - GreenBits int // The bit depth of the green channel of the video mode. - BlueBits int // The bit depth of the blue channel of the video mode. - RefreshRate int // The refresh rate, in Hz, of the video mode. -} - -var fMonitorHolder func(monitor *Monitor, event MonitorEvent) - -//export goMonitorCB -func goMonitorCB(monitor unsafe.Pointer, event C.int) { - fMonitorHolder(&Monitor{(*C.GLFWmonitor)(monitor)}, MonitorEvent(event)) -} - -// GetMonitors returns a slice of handles for all currently connected monitors. -func GetMonitors() []*Monitor { - var length int - - mC := C.glfwGetMonitors((*C.int)(unsafe.Pointer(&length))) - panicError() - if mC == nil { - return nil - } - - m := make([]*Monitor, length) - - for i := 0; i < length; i++ { - m[i] = &Monitor{C.GetMonitorAtIndex(mC, C.int(i))} - } - - return m -} - -// GetPrimaryMonitor returns the primary monitor. This is usually the monitor -// where elements like the Windows task bar or the OS X menu bar is located. -func GetPrimaryMonitor() *Monitor { - m := C.glfwGetPrimaryMonitor() - panicError() - if m == nil { - return nil - } - return &Monitor{m} -} - -// GetPos returns the position, in screen coordinates, of the upper-left -// corner of the monitor. -func (m *Monitor) GetPos() (x, y int) { - var xpos, ypos C.int - C.glfwGetMonitorPos(m.data, &xpos, &ypos) - panicError() - return int(xpos), int(ypos) -} - -// GetPhysicalSize returns the size, in millimetres, of the display area of the -// monitor. -// -// Note: Some operating systems do not provide accurate information, either -// because the monitor's EDID data is incorrect, or because the driver does not -// report it accurately. -func (m *Monitor) GetPhysicalSize() (width, height int) { - var wi, h C.int - C.glfwGetMonitorPhysicalSize(m.data, &wi, &h) - panicError() - return int(wi), int(h) -} - -// GetName returns a human-readable name of the monitor, encoded as UTF-8. -func (m *Monitor) GetName() string { - mn := C.glfwGetMonitorName(m.data) - panicError() - if mn == nil { - return "" - } - return C.GoString(mn) -} - -// SetMonitorCallback sets the monitor configuration callback, or removes the -// currently set callback. This is called when a monitor is connected to or -// disconnected from the system. -func SetMonitorCallback(cbfun func(monitor *Monitor, event MonitorEvent)) { - if cbfun == nil { - C.glfwSetMonitorCallback(nil) - } else { - fMonitorHolder = cbfun - C.glfwSetMonitorCallbackCB() - } - panicError() -} - -// GetVideoModes returns an array of all video modes supported by the monitor. -// The returned array is sorted in ascending order, first by color bit depth -// (the sum of all channel depths) and then by resolution area (the product of -// width and height). -func (m *Monitor) GetVideoModes() []*VidMode { - var length int - - vC := C.glfwGetVideoModes(m.data, (*C.int)(unsafe.Pointer(&length))) - panicError() - if vC == nil { - return nil - } - - v := make([]*VidMode, length) - - for i := 0; i < length; i++ { - t := C.GetVidmodeAtIndex(vC, C.int(i)) - v[i] = &VidMode{int(t.width), int(t.height), int(t.redBits), int(t.greenBits), int(t.blueBits), int(t.refreshRate)} - } - - return v -} - -// GetVideoMode returns the current video mode of the monitor. If you -// are using a full screen window, the return value will therefore depend on -// whether it is focused. -func (m *Monitor) GetVideoMode() *VidMode { - t := C.glfwGetVideoMode(m.data) - if t == nil { - return nil - } - panicError() - return &VidMode{int(t.width), int(t.height), int(t.redBits), int(t.greenBits), int(t.blueBits), int(t.refreshRate)} -} - -// SetGamma generates a 256-element gamma ramp from the specified exponent and then calls -// SetGamma with it. -func (m *Monitor) SetGamma(gamma float32) { - C.glfwSetGamma(m.data, C.float(gamma)) - panicError() -} - -// GetGammaRamp retrieves the current gamma ramp of the monitor. -func (m *Monitor) GetGammaRamp() *GammaRamp { - var ramp GammaRamp - - rampC := C.glfwGetGammaRamp(m.data) - panicError() - if rampC == nil { - return nil - } - - length := int(rampC.size) - ramp.Red = make([]uint16, length) - ramp.Green = make([]uint16, length) - ramp.Blue = make([]uint16, length) - - for i := 0; i < length; i++ { - ramp.Red[i] = uint16(C.GetGammaAtIndex(rampC.red, C.int(i))) - ramp.Green[i] = uint16(C.GetGammaAtIndex(rampC.green, C.int(i))) - ramp.Blue[i] = uint16(C.GetGammaAtIndex(rampC.blue, C.int(i))) - } - - return &ramp -} - -// SetGammaRamp sets the current gamma ramp for the monitor. -func (m *Monitor) SetGammaRamp(ramp *GammaRamp) { - var rampC C.GLFWgammaramp - - length := len(ramp.Red) - - for i := 0; i < length; i++ { - C.SetGammaAtIndex(rampC.red, C.int(i), C.ushort(ramp.Red[i])) - C.SetGammaAtIndex(rampC.green, C.int(i), C.ushort(ramp.Green[i])) - C.SetGammaAtIndex(rampC.blue, C.int(i), C.ushort(ramp.Blue[i])) - } - - C.glfwSetGammaRamp(m.data, &rampC) - panicError() -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go deleted file mode 100644 index 12be6ee..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go +++ /dev/null @@ -1,39 +0,0 @@ -package glfw - -/* -#define GLFW_EXPOSE_NATIVE_COCOA -#define GLFW_EXPOSE_NATIVE_NSGL -#include "glfw/include/GLFW/glfw3.h" -#include "glfw/include/GLFW/glfw3native.h" - -// workaround wrappers needed due to a cgo and/or LLVM bug. -// See: https://github.com/go-gl/glfw/issues/136 -void *workaround_glfwGetCocoaWindow(GLFWwindow *w) { - return (void *)glfwGetCocoaWindow(w); -} -void *workaround_glfwGetNSGLContext(GLFWwindow *w) { - return (void *)glfwGetNSGLContext(w); -} -*/ -import "C" - -// GetCocoaMonitor returns the CGDirectDisplayID of the monitor. -func (m *Monitor) GetCocoaMonitor() uintptr { - ret := uintptr(C.glfwGetCocoaMonitor(m.data)) - panicError() - return ret -} - -// GetCocoaWindow returns the NSWindow of the window. -func (w *Window) GetCocoaWindow() uintptr { - ret := uintptr(C.workaround_glfwGetCocoaWindow(w.data)) - panicError() - return ret -} - -// GetNSGLContext returns the NSOpenGLContext of the window. -func (w *Window) GetNSGLContext() uintptr { - ret := uintptr(C.workaround_glfwGetNSGLContext(w.data)) - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/native_linbsd.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/native_linbsd.go deleted file mode 100644 index 2885778..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/native_linbsd.go +++ /dev/null @@ -1,50 +0,0 @@ -// +build linux freebsd - -package glfw - -//#define GLFW_EXPOSE_NATIVE_X11 -//#define GLFW_EXPOSE_NATIVE_GLX -//#include "glfw/include/GLFW/glfw3.h" -//#include "glfw/include/GLFW/glfw3native.h" -import "C" - -func GetX11Display() *C.Display { - ret := C.glfwGetX11Display() - panicError() - return ret -} - -// GetX11Adapter returns the RRCrtc of the monitor. -func (m *Monitor) GetX11Adapter() C.RRCrtc { - ret := C.glfwGetX11Adapter(m.data) - panicError() - return ret -} - -// GetX11Monitor returns the RROutput of the monitor. -func (m *Monitor) GetX11Monitor() C.RROutput { - ret := C.glfwGetX11Monitor(m.data) - panicError() - return ret -} - -// GetX11Window returns the Window of the window. -func (w *Window) GetX11Window() C.Window { - ret := C.glfwGetX11Window(w.data) - panicError() - return ret -} - -// GetGLXContext returns the GLXContext of the window. -func (w *Window) GetGLXContext() C.GLXContext { - ret := C.glfwGetGLXContext(w.data) - panicError() - return ret -} - -// GetGLXWindow returns the GLXWindow of the window. -func (w *Window) GetGLXWindow() C.GLXWindow { - ret := C.glfwGetGLXWindow(w.data) - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/native_windows.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/native_windows.go deleted file mode 100644 index 5ee0d36..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/native_windows.go +++ /dev/null @@ -1,35 +0,0 @@ -package glfw - -//#define GLFW_EXPOSE_NATIVE_WIN32 -//#define GLFW_EXPOSE_NATIVE_WGL -//#include "glfw/include/GLFW/glfw3.h" -//#include "glfw/include/GLFW/glfw3native.h" -import "C" - -// GetWin32Adapter returns the adapter device name of the monitor. -func (m *Monitor) GetWin32Adapter() string { - ret := C.glfwGetWin32Adapter(m.data) - panicError() - return C.GoString(ret) -} - -// GetWin32Monitor returns the display device name of the monitor. -func (m *Monitor) GetWin32Monitor() string { - ret := C.glfwGetWin32Monitor(m.data) - panicError() - return C.GoString(ret) -} - -// GetWin32Window returns the HWND of the window. -func (w *Window) GetWin32Window() C.HWND { - ret := C.glfwGetWin32Window(w.data) - panicError() - return ret -} - -// GetWGLContext returns the HGLRC of the window. -func (w *Window) GetWGLContext() C.HGLRC { - ret := C.glfwGetWGLContext(w.data) - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/time.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/time.go deleted file mode 100644 index f3d93cb..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/time.go +++ /dev/null @@ -1,41 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -// GetTime returns the value of the GLFW timer. Unless the timer has been set -// using SetTime, the timer measures time elapsed since GLFW was initialized. -// -// The resolution of the timer is system dependent, but is usually on the order -// of a few micro- or nanoseconds. It uses the highest-resolution monotonic time -// source on each supported platform. -func GetTime() float64 { - ret := float64(C.glfwGetTime()) - panicError() - return ret -} - -// SetTime sets the value of the GLFW timer. It then continues to count up from -// that value. -// -// The resolution of the timer is system dependent, but is usually on the order -// of a few micro- or nanoseconds. It uses the highest-resolution monotonic time -// source on each supported platform. -func SetTime(time float64) { - C.glfwSetTime(C.double(time)) - panicError() -} - -// GetTimerFrequency returns frequency of the timer, in Hz, or zero if an error occurred. -func GetTimerFrequency() uint64 { - ret := uint64(C.glfwGetTimerFrequency()) - panicError() - return ret -} - -// GetTimerValue returns the current value of the raw timer, measured in 1 / frequency seconds. -func GetTimerValue() uint64 { - ret := uint64(C.glfwGetTimerValue()) - panicError() - return ret -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/util.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/util.go deleted file mode 100644 index d5be751..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/util.go +++ /dev/null @@ -1,37 +0,0 @@ -package glfw - -//#include -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -import ( - "reflect" - "unsafe" -) - -func glfwbool(b C.int) bool { - if b == C.GL_TRUE { - return true - } - return false -} - -func bytes(origin []byte) (pointer *uint8, free func()) { - n := len(origin) - - if n == 0 { - return nil, func() {} - } - - data := C.malloc(C.size_t(n)) - - dataSlice := *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{ - Data: uintptr(data), - Len: n, - Cap: n, - })) - - copy(dataSlice, origin) - - return &dataSlice[0], func() { C.free(data) } -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/vulkan.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/vulkan.go deleted file mode 100644 index 6afdd59..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/vulkan.go +++ /dev/null @@ -1,14 +0,0 @@ -package glfw - -//#include "glfw/include/GLFW/glfw3.h" -import "C" - -// VulkanSupported reports whether the Vulkan loader has been found. This check is performed by Init. -// -// The availability of a Vulkan loader does not by itself guarantee that window surface creation or -// even device creation is possible. Call GetRequiredInstanceExtensions to check whether the -// extensions necessary for Vulkan surface creation are available and GetPhysicalDevicePresentationSupport -// to check whether a queue family of a physical device supports image presentation. -func VulkanSupported() bool { - return glfwbool(C.glfwVulkanSupported()) -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/window.c b/vendor/github.com/go-gl/glfw/v3.2/glfw/window.c deleted file mode 100644 index d9cc0d4..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/window.c +++ /dev/null @@ -1,57 +0,0 @@ -#include "_cgo_export.h" - -void glfwWindowPosCB(GLFWwindow* window, int xpos, int ypos) { - goWindowPosCB(window, xpos, ypos); -} - -void glfwWindowSizeCB(GLFWwindow* window, int width, int height) { - goWindowSizeCB(window, width, height); -} - -void glfwFramebufferSizeCB(GLFWwindow* window, int width, int height) { - goFramebufferSizeCB(window, width, height); -} - -void glfwWindowCloseCB(GLFWwindow* window) { - goWindowCloseCB(window); -} - -void glfwWindowRefreshCB(GLFWwindow* window) { - goWindowRefreshCB(window); -} - -void glfwWindowFocusCB(GLFWwindow* window, int focused) { - goWindowFocusCB(window, focused); -} - -void glfwWindowIconifyCB(GLFWwindow* window, int iconified) { - goWindowIconifyCB(window, iconified); -} - -void glfwSetWindowPosCallbackCB(GLFWwindow* window) { - glfwSetWindowPosCallback(window, glfwWindowPosCB); -} - -void glfwSetWindowSizeCallbackCB(GLFWwindow* window) { - glfwSetWindowSizeCallback(window, glfwWindowSizeCB); -} - -void glfwSetFramebufferSizeCallbackCB(GLFWwindow* window) { - glfwSetFramebufferSizeCallback(window, glfwFramebufferSizeCB); -} - -void glfwSetWindowCloseCallbackCB(GLFWwindow* window) { - glfwSetWindowCloseCallback(window, glfwWindowCloseCB); -} - -void glfwSetWindowRefreshCallbackCB(GLFWwindow* window) { - glfwSetWindowRefreshCallback(window, glfwWindowRefreshCB); -} - -void glfwSetWindowFocusCallbackCB(GLFWwindow* window) { - glfwSetWindowFocusCallback(window, glfwWindowFocusCB); -} - -void glfwSetWindowIconifyCallbackCB(GLFWwindow* window) { - glfwSetWindowIconifyCallback(window, glfwWindowIconifyCB); -} diff --git a/vendor/github.com/go-gl/glfw/v3.2/glfw/window.go b/vendor/github.com/go-gl/glfw/v3.2/glfw/window.go deleted file mode 100644 index be25de4..0000000 --- a/vendor/github.com/go-gl/glfw/v3.2/glfw/window.go +++ /dev/null @@ -1,830 +0,0 @@ -package glfw - -//#include -//#include "glfw/include/GLFW/glfw3.h" -//void glfwSetWindowPosCallbackCB(GLFWwindow *window); -//void glfwSetWindowSizeCallbackCB(GLFWwindow *window); -//void glfwSetFramebufferSizeCallbackCB(GLFWwindow *window); -//void glfwSetWindowCloseCallbackCB(GLFWwindow *window); -//void glfwSetWindowRefreshCallbackCB(GLFWwindow *window); -//void glfwSetWindowFocusCallbackCB(GLFWwindow *window); -//void glfwSetWindowIconifyCallbackCB(GLFWwindow *window); -import "C" - -import ( - "image" - "image/draw" - "sync" - "unsafe" -) - -// Internal window list stuff -type windowList struct { - l sync.Mutex - m map[*C.GLFWwindow]*Window -} - -var windows = windowList{m: map[*C.GLFWwindow]*Window{}} - -func (w *windowList) put(wnd *Window) { - w.l.Lock() - defer w.l.Unlock() - w.m[wnd.data] = wnd -} - -func (w *windowList) remove(wnd *C.GLFWwindow) { - w.l.Lock() - defer w.l.Unlock() - delete(w.m, wnd) -} - -func (w *windowList) get(wnd *C.GLFWwindow) *Window { - w.l.Lock() - defer w.l.Unlock() - return w.m[wnd] -} - -// Hint corresponds to hints that can be set before creating a window. -// -// Hint also corresponds to the attributes of the window that can be get after -// its creation. -type Hint int - -// Window related hints. -const ( - Focused Hint = C.GLFW_FOCUSED // Specifies whether the window will be given input focus when created. This hint is ignored for full screen and initially hidden windows. - Iconified Hint = C.GLFW_ICONIFIED // Specifies whether the window will be minimized. - Maximized Hint = C.GLFW_MAXIMIZED // Specifies whether the window is maximized. - Visible Hint = C.GLFW_VISIBLE // Specifies whether the window will be initially visible. - Resizable Hint = C.GLFW_RESIZABLE // Specifies whether the window will be resizable by the user. - Decorated Hint = C.GLFW_DECORATED // Specifies whether the window will have window decorations such as a border, a close widget, etc. - Floating Hint = C.GLFW_FLOATING // Specifies whether the window will be always-on-top. - AutoIconify Hint = C.GLFW_AUTO_ICONIFY // Specifies whether fullscreen windows automatically iconify (and restore the previous video mode) on focus loss. -) - -// Context related hints. -const ( - ClientAPI Hint = C.GLFW_CLIENT_API // Specifies which client API to create the context for. Hard constraint. - ContextVersionMajor Hint = C.GLFW_CONTEXT_VERSION_MAJOR // Specifies the client API version that the created context must be compatible with. - ContextVersionMinor Hint = C.GLFW_CONTEXT_VERSION_MINOR // Specifies the client API version that the created context must be compatible with. - ContextRobustness Hint = C.GLFW_CONTEXT_ROBUSTNESS // Specifies the robustness strategy to be used by the context. - ContextReleaseBehavior Hint = C.GLFW_CONTEXT_RELEASE_BEHAVIOR // Specifies the release behavior to be used by the context. - OpenGLForwardCompatible Hint = C.GLFW_OPENGL_FORWARD_COMPAT // Specifies whether the OpenGL context should be forward-compatible. Hard constraint. - OpenGLDebugContext Hint = C.GLFW_OPENGL_DEBUG_CONTEXT // Specifies whether to create a debug OpenGL context, which may have additional error and performance issue reporting functionality. If OpenGL ES is requested, this hint is ignored. - OpenGLProfile Hint = C.GLFW_OPENGL_PROFILE // Specifies which OpenGL profile to create the context for. Hard constraint. - ContextCreationAPI Hint = C.GLFW_CONTEXT_CREATION_API // Specifies which context creation API to use to create the context. -) - -// Framebuffer related hints. -const ( - ContextRevision Hint = C.GLFW_CONTEXT_REVISION - RedBits Hint = C.GLFW_RED_BITS // Specifies the desired bit depth of the default framebuffer. - GreenBits Hint = C.GLFW_GREEN_BITS // Specifies the desired bit depth of the default framebuffer. - BlueBits Hint = C.GLFW_BLUE_BITS // Specifies the desired bit depth of the default framebuffer. - AlphaBits Hint = C.GLFW_ALPHA_BITS // Specifies the desired bit depth of the default framebuffer. - DepthBits Hint = C.GLFW_DEPTH_BITS // Specifies the desired bit depth of the default framebuffer. - StencilBits Hint = C.GLFW_STENCIL_BITS // Specifies the desired bit depth of the default framebuffer. - AccumRedBits Hint = C.GLFW_ACCUM_RED_BITS // Specifies the desired bit depth of the accumulation buffer. - AccumGreenBits Hint = C.GLFW_ACCUM_GREEN_BITS // Specifies the desired bit depth of the accumulation buffer. - AccumBlueBits Hint = C.GLFW_ACCUM_BLUE_BITS // Specifies the desired bit depth of the accumulation buffer. - AccumAlphaBits Hint = C.GLFW_ACCUM_ALPHA_BITS // Specifies the desired bit depth of the accumulation buffer. - AuxBuffers Hint = C.GLFW_AUX_BUFFERS // Specifies the desired number of auxiliary buffers. - Stereo Hint = C.GLFW_STEREO // Specifies whether to use stereoscopic rendering. Hard constraint. - Samples Hint = C.GLFW_SAMPLES // Specifies the desired number of samples to use for multisampling. Zero disables multisampling. - SRGBCapable Hint = C.GLFW_SRGB_CAPABLE // Specifies whether the framebuffer should be sRGB capable. - RefreshRate Hint = C.GLFW_REFRESH_RATE // Specifies the desired refresh rate for full screen windows. If set to zero, the highest available refresh rate will be used. This hint is ignored for windowed mode windows. - DoubleBuffer Hint = C.GLFW_DOUBLEBUFFER // Specifies whether the framebuffer should be double buffered. You nearly always want to use double buffering. This is a hard constraint. -) - -// Values for the ClientAPI hint. -const ( - OpenGLAPI int = C.GLFW_OPENGL_API - OpenGLESAPI int = C.GLFW_OPENGL_ES_API - NoAPI int = C.GLFW_NO_API -) - -// Values for ContextCreationAPI hint. -const ( - NativeContextAPI int = C.GLFW_NATIVE_CONTEXT_API - EGLContextAPI int = C.GLFW_EGL_CONTEXT_API -) - -// Values for the ContextRobustness hint. -const ( - NoRobustness int = C.GLFW_NO_ROBUSTNESS - NoResetNotification int = C.GLFW_NO_RESET_NOTIFICATION - LoseContextOnReset int = C.GLFW_LOSE_CONTEXT_ON_RESET -) - -// Values for ContextReleaseBehavior hint. -const ( - AnyReleaseBehavior int = C.GLFW_ANY_RELEASE_BEHAVIOR - ReleaseBehaviorFlush int = C.GLFW_RELEASE_BEHAVIOR_FLUSH - ReleaseBehaviorNone int = C.GLFW_RELEASE_BEHAVIOR_NONE -) - -// Values for the OpenGLProfile hint. -const ( - OpenGLAnyProfile int = C.GLFW_OPENGL_ANY_PROFILE - OpenGLCoreProfile int = C.GLFW_OPENGL_CORE_PROFILE - OpenGLCompatProfile int = C.GLFW_OPENGL_COMPAT_PROFILE -) - -// Other values. -const ( - True int = C.GL_TRUE - False int = C.GL_FALSE - DontCare int = C.GLFW_DONT_CARE -) - -// Window represents a window. -type Window struct { - data *C.GLFWwindow - - // Window. - fPosHolder func(w *Window, xpos int, ypos int) - fSizeHolder func(w *Window, width int, height int) - fFramebufferSizeHolder func(w *Window, width int, height int) - fCloseHolder func(w *Window) - fRefreshHolder func(w *Window) - fFocusHolder func(w *Window, focused bool) - fIconifyHolder func(w *Window, iconified bool) - - // Input. - fMouseButtonHolder func(w *Window, button MouseButton, action Action, mod ModifierKey) - fCursorPosHolder func(w *Window, xpos float64, ypos float64) - fCursorEnterHolder func(w *Window, entered bool) - fScrollHolder func(w *Window, xoff float64, yoff float64) - fKeyHolder func(w *Window, key Key, scancode int, action Action, mods ModifierKey) - fCharHolder func(w *Window, char rune) - fCharModsHolder func(w *Window, char rune, mods ModifierKey) - fDropHolder func(w *Window, names []string) -} - -// GLFWWindow returns a *C.GLFWwindow reference (i.e. the GLFW window itself). This can be used for -// passing the GLFW window handle to external C libraries. -func (w *Window) GLFWWindow() uintptr { - return uintptr(unsafe.Pointer(w.data)) -} - -//export goWindowPosCB -func goWindowPosCB(window unsafe.Pointer, xpos, ypos C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fPosHolder(w, int(xpos), int(ypos)) -} - -//export goWindowSizeCB -func goWindowSizeCB(window unsafe.Pointer, width, height C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fSizeHolder(w, int(width), int(height)) -} - -//export goFramebufferSizeCB -func goFramebufferSizeCB(window unsafe.Pointer, width, height C.int) { - w := windows.get((*C.GLFWwindow)(window)) - w.fFramebufferSizeHolder(w, int(width), int(height)) -} - -//export goWindowCloseCB -func goWindowCloseCB(window unsafe.Pointer) { - w := windows.get((*C.GLFWwindow)(window)) - w.fCloseHolder(w) -} - -//export goWindowRefreshCB -func goWindowRefreshCB(window unsafe.Pointer) { - w := windows.get((*C.GLFWwindow)(window)) - w.fRefreshHolder(w) -} - -//export goWindowFocusCB -func goWindowFocusCB(window unsafe.Pointer, focused C.int) { - w := windows.get((*C.GLFWwindow)(window)) - isFocused := glfwbool(focused) - w.fFocusHolder(w, isFocused) -} - -//export goWindowIconifyCB -func goWindowIconifyCB(window unsafe.Pointer, iconified C.int) { - isIconified := glfwbool(iconified) - w := windows.get((*C.GLFWwindow)(window)) - w.fIconifyHolder(w, isIconified) -} - -// DefaultWindowHints resets all window hints to their default values. -// -// This function may only be called from the main thread. -func DefaultWindowHints() { - C.glfwDefaultWindowHints() - panicError() -} - -// WindowHint sets hints for the next call to CreateWindow. The hints, -// once set, retain their values until changed by a call to WindowHint or -// DefaultWindowHints, or until the library is terminated with Terminate. -// -// This function may only be called from the main thread. -func WindowHint(target Hint, hint int) { - C.glfwWindowHint(C.int(target), C.int(hint)) - panicError() -} - -// CreateWindow creates a window and its associated context. Most of the options -// controlling how the window and its context should be created are specified -// through Hint. -// -// Successful creation does not change which context is current. Before you can -// use the newly created context, you need to make it current using -// MakeContextCurrent. -// -// Note that the created window and context may differ from what you requested, -// as not all parameters and hints are hard constraints. This includes the size -// of the window, especially for full screen windows. To retrieve the actual -// attributes of the created window and context, use queries like -// GetWindowAttrib and GetWindowSize. -// -// To create the window at a specific position, make it initially invisible using -// the Visible window hint, set its position and then show it. -// -// If a fullscreen window is active, the screensaver is prohibited from starting. -// -// Windows: If the executable has an icon resource named GLFW_ICON, it will be -// set as the icon for the window. If no such icon is present, the IDI_WINLOGO -// icon will be used instead. -// -// Mac OS X: The GLFW window has no icon, as it is not a document window, but the -// dock icon will be the same as the application bundle's icon. Also, the first -// time a window is opened the menu bar is populated with common commands like -// Hide, Quit and About. The (minimal) about dialog uses information from the -// application's bundle. For more information on bundles, see the Bundle -// Programming Guide provided by Apple. -// -// This function may only be called from the main thread. -func CreateWindow(width, height int, title string, monitor *Monitor, share *Window) (*Window, error) { - var ( - m *C.GLFWmonitor - s *C.GLFWwindow - ) - - t := C.CString(title) - defer C.free(unsafe.Pointer(t)) - - if monitor != nil { - m = monitor.data - } - - if share != nil { - s = share.data - } - - w := C.glfwCreateWindow(C.int(width), C.int(height), t, m, s) - if w == nil { - return nil, acceptError(APIUnavailable, VersionUnavailable) - } - - wnd := &Window{data: w} - windows.put(wnd) - return wnd, nil -} - -// Destroy destroys the specified window and its context. On calling this -// function, no further callbacks will be called for that window. -// -// This function may only be called from the main thread. -func (w *Window) Destroy() { - windows.remove(w.data) - C.glfwDestroyWindow(w.data) - panicError() -} - -// ShouldClose reports the value of the close flag of the specified window. -func (w *Window) ShouldClose() bool { - ret := glfwbool(C.glfwWindowShouldClose(w.data)) - panicError() - return ret -} - -// SetShouldClose sets the value of the close flag of the window. This can be -// used to override the user's attempt to close the window, or to signal that it -// should be closed. -func (w *Window) SetShouldClose(value bool) { - if !value { - C.glfwSetWindowShouldClose(w.data, C.GL_FALSE) - } else { - C.glfwSetWindowShouldClose(w.data, C.GL_TRUE) - } - panicError() -} - -// SetTitle sets the window title, encoded as UTF-8, of the window. -// -// This function may only be called from the main thread. -func (w *Window) SetTitle(title string) { - t := C.CString(title) - defer C.free(unsafe.Pointer(t)) - C.glfwSetWindowTitle(w.data, t) - panicError() -} - -// SetIcon sets the icon of the specified window. If passed an array of candidate images, -// those of or closest to the sizes desired by the system are selected. If no images are -// specified, the window reverts to its default icon. -// -// The image is ideally provided in the form of *image.NRGBA. -// The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight -// bits per channel with the red channel first. They are arranged canonically -// as packed sequential rows, starting from the top-left corner. If the image -// type is not *image.NRGBA, it will be converted to it. -// -// The desired image sizes varies depending on platform and system settings. The selected -// images will be rescaled as needed. Good sizes include 16x16, 32x32 and 48x48. -func (w *Window) SetIcon(images []image.Image) { - count := len(images) - cimages := make([]C.GLFWimage, count) - freePixels := make([]func(), count) - - for i, img := range images { - var pixels []uint8 - b := img.Bounds() - - switch img := img.(type) { - case *image.NRGBA: - pixels = img.Pix - default: - m := image.NewNRGBA(image.Rect(0, 0, b.Dx(), b.Dy())) - draw.Draw(m, m.Bounds(), img, b.Min, draw.Src) - pixels = m.Pix - } - - pix, free := bytes(pixels) - freePixels[i] = free - - cimages[i].width = C.int(b.Dx()) - cimages[i].height = C.int(b.Dy()) - cimages[i].pixels = (*C.uchar)(pix) - } - - var p *C.GLFWimage - if count > 0 { - p = &cimages[0] - } - C.glfwSetWindowIcon(w.data, C.int(count), p) - - for _, v := range freePixels { - v() - } - - panicError() -} - -// GetPos returns the position, in screen coordinates, of the upper-left -// corner of the client area of the window. -func (w *Window) GetPos() (x, y int) { - var xpos, ypos C.int - C.glfwGetWindowPos(w.data, &xpos, &ypos) - panicError() - return int(xpos), int(ypos) -} - -// SetPos sets the position, in screen coordinates, of the upper-left corner -// of the client area of the window. -// -// If it is a full screen window, this function does nothing. -// -// If you wish to set an initial window position you should create a hidden -// window (using Hint and Visible), set its position and then show it. -// -// It is very rarely a good idea to move an already visible window, as it will -// confuse and annoy the user. -// -// The window manager may put limits on what positions are allowed. -// -// This function may only be called from the main thread. -func (w *Window) SetPos(xpos, ypos int) { - C.glfwSetWindowPos(w.data, C.int(xpos), C.int(ypos)) - panicError() -} - -// GetSize returns the size, in screen coordinates, of the client area of the -// specified window. -func (w *Window) GetSize() (width, height int) { - var wi, h C.int - C.glfwGetWindowSize(w.data, &wi, &h) - panicError() - return int(wi), int(h) -} - -// SetSize sets the size, in screen coordinates, of the client area of the -// window. -// -// For full screen windows, this function selects and switches to the resolution -// closest to the specified size, without affecting the window's context. As the -// context is unaffected, the bit depths of the framebuffer remain unchanged. -// -// The window manager may put limits on what window sizes are allowed. -// -// This function may only be called from the main thread. -func (w *Window) SetSize(width, height int) { - C.glfwSetWindowSize(w.data, C.int(width), C.int(height)) - panicError() -} - -// SetSizeLimits sets the size limits of the client area of the specified window. -// If the window is full screen or not resizable, this function does nothing. -// -// The size limits are applied immediately and may cause the window to be resized. -func (w *Window) SetSizeLimits(minw, minh, maxw, maxh int) { - C.glfwSetWindowSizeLimits(w.data, C.int(minw), C.int(minh), C.int(maxw), C.int(maxh)) - panicError() -} - -// SetAspectRatio sets the required aspect ratio of the client area of the specified window. -// If the window is full screen or not resizable, this function does nothing. -// -// The aspect ratio is specified as a numerator and a denominator and both values must be greater -// than zero. For example, the common 16:9 aspect ratio is specified as 16 and 9, respectively. -// -// If the numerator and denominator is set to glfw.DontCare then the aspect ratio limit is disabled. -// -// The aspect ratio is applied immediately and may cause the window to be resized. -func (w *Window) SetAspectRatio(numer, denom int) { - C.glfwSetWindowAspectRatio(w.data, C.int(numer), C.int(denom)) - panicError() -} - -// GetFramebufferSize retrieves the size, in pixels, of the framebuffer of the -// specified window. -func (w *Window) GetFramebufferSize() (width, height int) { - var wi, h C.int - C.glfwGetFramebufferSize(w.data, &wi, &h) - panicError() - return int(wi), int(h) -} - -// GetFrameSize retrieves the size, in screen coordinates, of each edge of the frame -// of the specified window. This size includes the title bar, if the window has one. -// The size of the frame may vary depending on the window-related hints used to create it. -// -// Because this function retrieves the size of each window frame edge and not the offset -// along a particular coordinate axis, the retrieved values will always be zero or positive. -func (w *Window) GetFrameSize() (left, top, right, bottom int) { - var l, t, r, b C.int - C.glfwGetWindowFrameSize(w.data, &l, &t, &r, &b) - panicError() - return int(l), int(t), int(r), int(b) -} - -// Focus brings the specified window to front and sets input focus. -// The window should already be visible and not iconified. -// -// By default, both windowed and full screen mode windows are focused when initially created. -// Set the glfw.Focused to disable this behavior. -// -// Do not use this function to steal focus from other applications unless you are certain that -// is what the user wants. Focus stealing can be extremely disruptive. -func (w *Window) Focus() error { - C.glfwFocusWindow(w.data) - return acceptError(APIUnavailable) -} - -// Iconify iconifies/minimizes the window, if it was previously restored. If it -// is a full screen window, the original monitor resolution is restored until the -// window is restored. If the window is already iconified, this function does -// nothing. -// -// This function may only be called from the main thread. -func (w *Window) Iconify() error { - C.glfwIconifyWindow(w.data) - return acceptError(APIUnavailable) -} - -// Maximize maximizes the specified window if it was previously not maximized. -// If the window is already maximized, this function does nothing. -// -// If the specified window is a full screen window, this function does nothing. -func (w *Window) Maximize() error { - C.glfwMaximizeWindow(w.data) - return acceptError(APIUnavailable) -} - -// Restore restores the window, if it was previously iconified/minimized. If it -// is a full screen window, the resolution chosen for the window is restored on -// the selected monitor. If the window is already restored, this function does -// nothing. -// -// This function may only be called from the main thread. -func (w *Window) Restore() error { - C.glfwRestoreWindow(w.data) - return acceptError(APIUnavailable) -} - -// Show makes the window visible, if it was previously hidden. If the window is -// already visible or is in full screen mode, this function does nothing. -// -// This function may only be called from the main thread. -func (w *Window) Show() { - C.glfwShowWindow(w.data) - panicError() -} - -// Hide hides the window, if it was previously visible. If the window is already -// hidden or is in full screen mode, this function does nothing. -// -// This function may only be called from the main thread. -func (w *Window) Hide() { - C.glfwHideWindow(w.data) - panicError() -} - -// GetMonitor returns the handle of the monitor that the window is in -// fullscreen on. -// -// Returns nil if the window is in windowed mode. -func (w *Window) GetMonitor() *Monitor { - m := C.glfwGetWindowMonitor(w.data) - panicError() - if m == nil { - return nil - } - return &Monitor{m} -} - -// SetMonitor sets the monitor that the window uses for full screen mode or, -// if the monitor is NULL, makes it windowed mode. -// -// When setting a monitor, this function updates the width, height and refresh -// rate of the desired video mode and switches to the video mode closest to it. -// The window position is ignored when setting a monitor. -// -// When the monitor is NULL, the position, width and height are used to place -// the window client area. The refresh rate is ignored when no monitor is specified. -// If you only wish to update the resolution of a full screen window or the size of -// a windowed mode window, see window.SetSize. -// -// When a window transitions from full screen to windowed mode, this function -// restores any previous window settings such as whether it is decorated, floating, -// resizable, has size or aspect ratio limits, etc.. -func (w *Window) SetMonitor(monitor *Monitor, xpos, ypos, width, height, refreshRate int) { - var m *C.GLFWmonitor - if monitor == nil { - m = nil - } else { - m = monitor.data - } - C.glfwSetWindowMonitor(w.data, m, C.int(xpos), C.int(ypos), C.int(width), C.int(height), C.int(refreshRate)) - panicError() -} - -// GetAttrib returns an attribute of the window. There are many attributes, -// some related to the window and others to its context. -func (w *Window) GetAttrib(attrib Hint) int { - ret := int(C.glfwGetWindowAttrib(w.data, C.int(attrib))) - panicError() - return ret -} - -// SetUserPointer sets the user-defined pointer of the window. The current value -// is retained until the window is destroyed. The initial value is nil. -func (w *Window) SetUserPointer(pointer unsafe.Pointer) { - C.glfwSetWindowUserPointer(w.data, pointer) - panicError() -} - -// GetUserPointer returns the current value of the user-defined pointer of the -// window. The initial value is nil. -func (w *Window) GetUserPointer() unsafe.Pointer { - ret := C.glfwGetWindowUserPointer(w.data) - panicError() - return ret -} - -// PosCallback is the window position callback. -type PosCallback func(w *Window, xpos int, ypos int) - -// SetPosCallback sets the position callback of the window, which is called -// when the window is moved. The callback is provided with the screen position -// of the upper-left corner of the client area of the window. -func (w *Window) SetPosCallback(cbfun PosCallback) (previous PosCallback) { - previous = w.fPosHolder - w.fPosHolder = cbfun - if cbfun == nil { - C.glfwSetWindowPosCallback(w.data, nil) - } else { - C.glfwSetWindowPosCallbackCB(w.data) - } - panicError() - return previous -} - -// SizeCallback is the window size callback. -type SizeCallback func(w *Window, width int, height int) - -// SetSizeCallback sets the size callback of the window, which is called when -// the window is resized. The callback is provided with the size, in screen -// coordinates, of the client area of the window. -func (w *Window) SetSizeCallback(cbfun SizeCallback) (previous SizeCallback) { - previous = w.fSizeHolder - w.fSizeHolder = cbfun - if cbfun == nil { - C.glfwSetWindowSizeCallback(w.data, nil) - } else { - C.glfwSetWindowSizeCallbackCB(w.data) - } - panicError() - return previous -} - -// FramebufferSizeCallback is the framebuffer size callback. -type FramebufferSizeCallback func(w *Window, width int, height int) - -// SetFramebufferSizeCallback sets the framebuffer resize callback of the specified -// window, which is called when the framebuffer of the specified window is resized. -func (w *Window) SetFramebufferSizeCallback(cbfun FramebufferSizeCallback) (previous FramebufferSizeCallback) { - previous = w.fFramebufferSizeHolder - w.fFramebufferSizeHolder = cbfun - if cbfun == nil { - C.glfwSetFramebufferSizeCallback(w.data, nil) - } else { - C.glfwSetFramebufferSizeCallbackCB(w.data) - } - panicError() - return previous -} - -// CloseCallback is the window close callback. -type CloseCallback func(w *Window) - -// SetCloseCallback sets the close callback of the window, which is called when -// the user attempts to close the window, for example by clicking the close -// widget in the title bar. -// -// The close flag is set before this callback is called, but you can modify it at -// any time with SetShouldClose. -// -// Mac OS X: Selecting Quit from the application menu will trigger the close -// callback for all windows. -func (w *Window) SetCloseCallback(cbfun CloseCallback) (previous CloseCallback) { - previous = w.fCloseHolder - w.fCloseHolder = cbfun - if cbfun == nil { - C.glfwSetWindowCloseCallback(w.data, nil) - } else { - C.glfwSetWindowCloseCallbackCB(w.data) - } - panicError() - return previous -} - -// RefreshCallback is the window refresh callback. -type RefreshCallback func(w *Window) - -// SetRefreshCallback sets the refresh callback of the window, which -// is called when the client area of the window needs to be redrawn, for example -// if the window has been exposed after having been covered by another window. -// -// On compositing window systems such as Aero, Compiz or Aqua, where the window -// contents are saved off-screen, this callback may be called only very -// infrequently or never at all. -func (w *Window) SetRefreshCallback(cbfun RefreshCallback) (previous RefreshCallback) { - previous = w.fRefreshHolder - w.fRefreshHolder = cbfun - if cbfun == nil { - C.glfwSetWindowRefreshCallback(w.data, nil) - } else { - C.glfwSetWindowRefreshCallbackCB(w.data) - } - panicError() - return previous -} - -// FocusCallback is the window focus callback. -type FocusCallback func(w *Window, focused bool) - -// SetFocusCallback sets the focus callback of the window, which is called when -// the window gains or loses focus. -// -// After the focus callback is called for a window that lost focus, synthetic key -// and mouse button release events will be generated for all such that had been -// pressed. For more information, see SetKeyCallback and SetMouseButtonCallback. -func (w *Window) SetFocusCallback(cbfun FocusCallback) (previous FocusCallback) { - previous = w.fFocusHolder - w.fFocusHolder = cbfun - if cbfun == nil { - C.glfwSetWindowFocusCallback(w.data, nil) - } else { - C.glfwSetWindowFocusCallbackCB(w.data) - } - panicError() - return previous -} - -// IconifyCallback is the window iconification callback. -type IconifyCallback func(w *Window, iconified bool) - -// SetIconifyCallback sets the iconification callback of the window, which is -// called when the window is iconified or restored. -func (w *Window) SetIconifyCallback(cbfun IconifyCallback) (previous IconifyCallback) { - previous = w.fIconifyHolder - w.fIconifyHolder = cbfun - if cbfun == nil { - C.glfwSetWindowIconifyCallback(w.data, nil) - } else { - C.glfwSetWindowIconifyCallbackCB(w.data) - } - panicError() - return previous -} - -// SetClipboardString sets the system clipboard to the specified UTF-8 encoded -// string. -// -// This function may only be called from the main thread. -func (w *Window) SetClipboardString(str string) { - cp := C.CString(str) - defer C.free(unsafe.Pointer(cp)) - C.glfwSetClipboardString(w.data, cp) - panicError() -} - -// GetClipboardString returns the contents of the system clipboard, if it -// contains or is convertible to a UTF-8 encoded string. -// -// This function may only be called from the main thread. -func (w *Window) GetClipboardString() (string, error) { - cs := C.glfwGetClipboardString(w.data) - if cs == nil { - return "", acceptError(FormatUnavailable) - } - return C.GoString(cs), nil -} - -// PollEvents processes only those events that have already been received and -// then returns immediately. Processing events will cause the window and input -// callbacks associated with those events to be called. -// -// This function is not required for joystick input to work. -// -// This function may not be called from a callback. -// -// This function may only be called from the main thread. -func PollEvents() { - C.glfwPollEvents() - panicError() -} - -// WaitEvents puts the calling thread to sleep until at least one event has been -// received. Once one or more events have been recevied, it behaves as if -// PollEvents was called, i.e. the events are processed and the function then -// returns immediately. Processing events will cause the window and input -// callbacks associated with those events to be called. -// -// Since not all events are associated with callbacks, this function may return -// without a callback having been called even if you are monitoring all -// callbacks. -// -// This function may not be called from a callback. -// -// This function may only be called from the main thread. -func WaitEvents() { - C.glfwWaitEvents() - panicError() -} - -// WaitEventsTimeout puts the calling thread to sleep until at least one event is available in the -// event queue, or until the specified timeout is reached. If one or more events are available, -// it behaves exactly like PollEvents, i.e. the events in the queue are processed and the function -// then returns immediately. Processing events will cause the window and input callbacks associated -// with those events to be called. -// -// The timeout value must be a positive finite number. -// -// Since not all events are associated with callbacks, this function may return without a callback -// having been called even if you are monitoring all callbacks. -// -// On some platforms, a window move, resize or menu operation will cause event processing to block. -// This is due to how event processing is designed on those platforms. You can use the window -// refresh callback to redraw the contents of your window when necessary during such operations. -// -// On some platforms, certain callbacks may be called outside of a call to one of the event -// processing functions. -// -// If no windows exist, this function returns immediately. For synchronization of threads in -// applications that do not create windows, use native Go primitives. -// -// Event processing is not required for joystick input to work. -func WaitEventsTimeout(timeout float64) { - C.glfwWaitEventsTimeout(C.double(timeout)) - panicError() -} - -// PostEmptyEvent posts an empty event from the current thread to the main -// thread event queue, causing WaitEvents to return. -// -// If no windows exist, this function returns immediately. For synchronization of threads in -// applications that do not create windows, use native Go primitives. -// -// This function may be called from secondary threads. -func PostEmptyEvent() { - C.glfwPostEmptyEvent() - panicError() -} diff --git a/vendor/github.com/golang/freetype/AUTHORS b/vendor/github.com/golang/freetype/AUTHORS deleted file mode 100644 index 5773ac7..0000000 --- a/vendor/github.com/golang/freetype/AUTHORS +++ /dev/null @@ -1,20 +0,0 @@ -# This is the official list of Freetype-Go authors for copyright purposes. -# This file is distinct from the CONTRIBUTORS files. -# See the latter for an explanation. -# -# Freetype-Go is derived from Freetype, which is written in C. The latter -# is copyright 1996-2010 David Turner, Robert Wilhelm, and Werner Lemberg. - -# Names should be added to this file as -# Name or Organization -# The email address is not required for organizations. - -# Please keep the list sorted. - -Google Inc. -Jeff R. Allen -Maksim Kochkin -Michael Fogleman -Rémy Oudompheng -Roger Peppe -Steven Edwards diff --git a/vendor/github.com/golang/freetype/CONTRIBUTORS b/vendor/github.com/golang/freetype/CONTRIBUTORS deleted file mode 100644 index 7a1b0a2..0000000 --- a/vendor/github.com/golang/freetype/CONTRIBUTORS +++ /dev/null @@ -1,38 +0,0 @@ -# This is the official list of people who can contribute -# (and typically have contributed) code to the Freetype-Go repository. -# The AUTHORS file lists the copyright holders; this file -# lists people. For example, Google employees are listed here -# but not in AUTHORS, because Google holds the copyright. -# -# The submission process automatically checks to make sure -# that people submitting code are listed in this file (by email address). -# -# Names should be added to this file only after verifying that -# the individual or the individual's organization has agreed to -# the appropriate Contributor License Agreement, found here: -# -# http://code.google.com/legal/individual-cla-v1.0.html -# http://code.google.com/legal/corporate-cla-v1.0.html -# -# The agreement for individuals can be filled out on the web. -# -# When adding J Random Contributor's name to this file, -# either J's name or J's organization's name should be -# added to the AUTHORS file, depending on whether the -# individual or corporate CLA was used. - -# Names should be added to this file like so: -# Name - -# Please keep the list sorted. - -Andrew Gerrand -Jeff R. Allen -Maksim Kochkin -Michael Fogleman -Nigel Tao -Rémy Oudompheng -Rob Pike -Roger Peppe -Russ Cox -Steven Edwards diff --git a/vendor/github.com/golang/freetype/LICENSE b/vendor/github.com/golang/freetype/LICENSE deleted file mode 100644 index e854ba5..0000000 --- a/vendor/github.com/golang/freetype/LICENSE +++ /dev/null @@ -1,12 +0,0 @@ -Use of the Freetype-Go software is subject to your choice of exactly one of -the following two licenses: - * The FreeType License, which is similar to the original BSD license with - an advertising clause, or - * The GNU General Public License (GPL), version 2 or later. - -The text of these licenses are available in the licenses/ftl.txt and the -licenses/gpl.txt files respectively. They are also available at -http://freetype.sourceforge.net/license.html - -The Luxi fonts in the testdata directory are licensed separately. See the -testdata/COPYING file for details. diff --git a/vendor/github.com/golang/freetype/raster/geom.go b/vendor/github.com/golang/freetype/raster/geom.go deleted file mode 100644 index f3696ea..0000000 --- a/vendor/github.com/golang/freetype/raster/geom.go +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright 2010 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -package raster - -import ( - "fmt" - "math" - - "golang.org/x/image/math/fixed" -) - -// maxAbs returns the maximum of abs(a) and abs(b). -func maxAbs(a, b fixed.Int26_6) fixed.Int26_6 { - if a < 0 { - a = -a - } - if b < 0 { - b = -b - } - if a < b { - return b - } - return a -} - -// pNeg returns the vector -p, or equivalently p rotated by 180 degrees. -func pNeg(p fixed.Point26_6) fixed.Point26_6 { - return fixed.Point26_6{-p.X, -p.Y} -} - -// pDot returns the dot product p·q. -func pDot(p fixed.Point26_6, q fixed.Point26_6) fixed.Int52_12 { - px, py := int64(p.X), int64(p.Y) - qx, qy := int64(q.X), int64(q.Y) - return fixed.Int52_12(px*qx + py*qy) -} - -// pLen returns the length of the vector p. -func pLen(p fixed.Point26_6) fixed.Int26_6 { - // TODO(nigeltao): use fixed point math. - x := float64(p.X) - y := float64(p.Y) - return fixed.Int26_6(math.Sqrt(x*x + y*y)) -} - -// pNorm returns the vector p normalized to the given length, or zero if p is -// degenerate. -func pNorm(p fixed.Point26_6, length fixed.Int26_6) fixed.Point26_6 { - d := pLen(p) - if d == 0 { - return fixed.Point26_6{} - } - s, t := int64(length), int64(d) - x := int64(p.X) * s / t - y := int64(p.Y) * s / t - return fixed.Point26_6{fixed.Int26_6(x), fixed.Int26_6(y)} -} - -// pRot45CW returns the vector p rotated clockwise by 45 degrees. -// -// Note that the Y-axis grows downwards, so {1, 0}.Rot45CW is {1/√2, 1/√2}. -func pRot45CW(p fixed.Point26_6) fixed.Point26_6 { - // 181/256 is approximately 1/√2, or sin(π/4). - px, py := int64(p.X), int64(p.Y) - qx := (+px - py) * 181 / 256 - qy := (+px + py) * 181 / 256 - return fixed.Point26_6{fixed.Int26_6(qx), fixed.Int26_6(qy)} -} - -// pRot90CW returns the vector p rotated clockwise by 90 degrees. -// -// Note that the Y-axis grows downwards, so {1, 0}.Rot90CW is {0, 1}. -func pRot90CW(p fixed.Point26_6) fixed.Point26_6 { - return fixed.Point26_6{-p.Y, p.X} -} - -// pRot135CW returns the vector p rotated clockwise by 135 degrees. -// -// Note that the Y-axis grows downwards, so {1, 0}.Rot135CW is {-1/√2, 1/√2}. -func pRot135CW(p fixed.Point26_6) fixed.Point26_6 { - // 181/256 is approximately 1/√2, or sin(π/4). - px, py := int64(p.X), int64(p.Y) - qx := (-px - py) * 181 / 256 - qy := (+px - py) * 181 / 256 - return fixed.Point26_6{fixed.Int26_6(qx), fixed.Int26_6(qy)} -} - -// pRot45CCW returns the vector p rotated counter-clockwise by 45 degrees. -// -// Note that the Y-axis grows downwards, so {1, 0}.Rot45CCW is {1/√2, -1/√2}. -func pRot45CCW(p fixed.Point26_6) fixed.Point26_6 { - // 181/256 is approximately 1/√2, or sin(π/4). - px, py := int64(p.X), int64(p.Y) - qx := (+px + py) * 181 / 256 - qy := (-px + py) * 181 / 256 - return fixed.Point26_6{fixed.Int26_6(qx), fixed.Int26_6(qy)} -} - -// pRot90CCW returns the vector p rotated counter-clockwise by 90 degrees. -// -// Note that the Y-axis grows downwards, so {1, 0}.Rot90CCW is {0, -1}. -func pRot90CCW(p fixed.Point26_6) fixed.Point26_6 { - return fixed.Point26_6{p.Y, -p.X} -} - -// pRot135CCW returns the vector p rotated counter-clockwise by 135 degrees. -// -// Note that the Y-axis grows downwards, so {1, 0}.Rot135CCW is {-1/√2, -1/√2}. -func pRot135CCW(p fixed.Point26_6) fixed.Point26_6 { - // 181/256 is approximately 1/√2, or sin(π/4). - px, py := int64(p.X), int64(p.Y) - qx := (-px + py) * 181 / 256 - qy := (-px - py) * 181 / 256 - return fixed.Point26_6{fixed.Int26_6(qx), fixed.Int26_6(qy)} -} - -// An Adder accumulates points on a curve. -type Adder interface { - // Start starts a new curve at the given point. - Start(a fixed.Point26_6) - // Add1 adds a linear segment to the current curve. - Add1(b fixed.Point26_6) - // Add2 adds a quadratic segment to the current curve. - Add2(b, c fixed.Point26_6) - // Add3 adds a cubic segment to the current curve. - Add3(b, c, d fixed.Point26_6) -} - -// A Path is a sequence of curves, and a curve is a start point followed by a -// sequence of linear, quadratic or cubic segments. -type Path []fixed.Int26_6 - -// String returns a human-readable representation of a Path. -func (p Path) String() string { - s := "" - for i := 0; i < len(p); { - if i != 0 { - s += " " - } - switch p[i] { - case 0: - s += "S0" + fmt.Sprint([]fixed.Int26_6(p[i+1:i+3])) - i += 4 - case 1: - s += "A1" + fmt.Sprint([]fixed.Int26_6(p[i+1:i+3])) - i += 4 - case 2: - s += "A2" + fmt.Sprint([]fixed.Int26_6(p[i+1:i+5])) - i += 6 - case 3: - s += "A3" + fmt.Sprint([]fixed.Int26_6(p[i+1:i+7])) - i += 8 - default: - panic("freetype/raster: bad path") - } - } - return s -} - -// Clear cancels any previous calls to p.Start or p.AddXxx. -func (p *Path) Clear() { - *p = (*p)[:0] -} - -// Start starts a new curve at the given point. -func (p *Path) Start(a fixed.Point26_6) { - *p = append(*p, 0, a.X, a.Y, 0) -} - -// Add1 adds a linear segment to the current curve. -func (p *Path) Add1(b fixed.Point26_6) { - *p = append(*p, 1, b.X, b.Y, 1) -} - -// Add2 adds a quadratic segment to the current curve. -func (p *Path) Add2(b, c fixed.Point26_6) { - *p = append(*p, 2, b.X, b.Y, c.X, c.Y, 2) -} - -// Add3 adds a cubic segment to the current curve. -func (p *Path) Add3(b, c, d fixed.Point26_6) { - *p = append(*p, 3, b.X, b.Y, c.X, c.Y, d.X, d.Y, 3) -} - -// AddPath adds the Path q to p. -func (p *Path) AddPath(q Path) { - *p = append(*p, q...) -} - -// AddStroke adds a stroked Path. -func (p *Path) AddStroke(q Path, width fixed.Int26_6, cr Capper, jr Joiner) { - Stroke(p, q, width, cr, jr) -} - -// firstPoint returns the first point in a non-empty Path. -func (p Path) firstPoint() fixed.Point26_6 { - return fixed.Point26_6{p[1], p[2]} -} - -// lastPoint returns the last point in a non-empty Path. -func (p Path) lastPoint() fixed.Point26_6 { - return fixed.Point26_6{p[len(p)-3], p[len(p)-2]} -} - -// addPathReversed adds q reversed to p. -// For example, if q consists of a linear segment from A to B followed by a -// quadratic segment from B to C to D, then the values of q looks like: -// index: 01234567890123 -// value: 0AA01BB12CCDD2 -// So, when adding q backwards to p, we want to Add2(C, B) followed by Add1(A). -func addPathReversed(p Adder, q Path) { - if len(q) == 0 { - return - } - i := len(q) - 1 - for { - switch q[i] { - case 0: - return - case 1: - i -= 4 - p.Add1( - fixed.Point26_6{q[i-2], q[i-1]}, - ) - case 2: - i -= 6 - p.Add2( - fixed.Point26_6{q[i+2], q[i+3]}, - fixed.Point26_6{q[i-2], q[i-1]}, - ) - case 3: - i -= 8 - p.Add3( - fixed.Point26_6{q[i+4], q[i+5]}, - fixed.Point26_6{q[i+2], q[i+3]}, - fixed.Point26_6{q[i-2], q[i-1]}, - ) - default: - panic("freetype/raster: bad path") - } - } -} diff --git a/vendor/github.com/golang/freetype/raster/paint.go b/vendor/github.com/golang/freetype/raster/paint.go deleted file mode 100644 index 652256c..0000000 --- a/vendor/github.com/golang/freetype/raster/paint.go +++ /dev/null @@ -1,287 +0,0 @@ -// Copyright 2010 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -package raster - -import ( - "image" - "image/color" - "image/draw" - "math" -) - -// A Span is a horizontal segment of pixels with constant alpha. X0 is an -// inclusive bound and X1 is exclusive, the same as for slices. A fully opaque -// Span has Alpha == 0xffff. -type Span struct { - Y, X0, X1 int - Alpha uint32 -} - -// A Painter knows how to paint a batch of Spans. Rasterization may involve -// Painting multiple batches, and done will be true for the final batch. The -// Spans' Y values are monotonically increasing during a rasterization. Paint -// may use all of ss as scratch space during the call. -type Painter interface { - Paint(ss []Span, done bool) -} - -// The PainterFunc type adapts an ordinary function to the Painter interface. -type PainterFunc func(ss []Span, done bool) - -// Paint just delegates the call to f. -func (f PainterFunc) Paint(ss []Span, done bool) { f(ss, done) } - -// An AlphaOverPainter is a Painter that paints Spans onto a *image.Alpha using -// the Over Porter-Duff composition operator. -type AlphaOverPainter struct { - Image *image.Alpha -} - -// Paint satisfies the Painter interface. -func (r AlphaOverPainter) Paint(ss []Span, done bool) { - b := r.Image.Bounds() - for _, s := range ss { - if s.Y < b.Min.Y { - continue - } - if s.Y >= b.Max.Y { - return - } - if s.X0 < b.Min.X { - s.X0 = b.Min.X - } - if s.X1 > b.Max.X { - s.X1 = b.Max.X - } - if s.X0 >= s.X1 { - continue - } - base := (s.Y-r.Image.Rect.Min.Y)*r.Image.Stride - r.Image.Rect.Min.X - p := r.Image.Pix[base+s.X0 : base+s.X1] - a := int(s.Alpha >> 8) - for i, c := range p { - v := int(c) - p[i] = uint8((v*255 + (255-v)*a) / 255) - } - } -} - -// NewAlphaOverPainter creates a new AlphaOverPainter for the given image. -func NewAlphaOverPainter(m *image.Alpha) AlphaOverPainter { - return AlphaOverPainter{m} -} - -// An AlphaSrcPainter is a Painter that paints Spans onto a *image.Alpha using -// the Src Porter-Duff composition operator. -type AlphaSrcPainter struct { - Image *image.Alpha -} - -// Paint satisfies the Painter interface. -func (r AlphaSrcPainter) Paint(ss []Span, done bool) { - b := r.Image.Bounds() - for _, s := range ss { - if s.Y < b.Min.Y { - continue - } - if s.Y >= b.Max.Y { - return - } - if s.X0 < b.Min.X { - s.X0 = b.Min.X - } - if s.X1 > b.Max.X { - s.X1 = b.Max.X - } - if s.X0 >= s.X1 { - continue - } - base := (s.Y-r.Image.Rect.Min.Y)*r.Image.Stride - r.Image.Rect.Min.X - p := r.Image.Pix[base+s.X0 : base+s.X1] - color := uint8(s.Alpha >> 8) - for i := range p { - p[i] = color - } - } -} - -// NewAlphaSrcPainter creates a new AlphaSrcPainter for the given image. -func NewAlphaSrcPainter(m *image.Alpha) AlphaSrcPainter { - return AlphaSrcPainter{m} -} - -// An RGBAPainter is a Painter that paints Spans onto a *image.RGBA. -type RGBAPainter struct { - // Image is the image to compose onto. - Image *image.RGBA - // Op is the Porter-Duff composition operator. - Op draw.Op - // cr, cg, cb and ca are the 16-bit color to paint the spans. - cr, cg, cb, ca uint32 -} - -// Paint satisfies the Painter interface. -func (r *RGBAPainter) Paint(ss []Span, done bool) { - b := r.Image.Bounds() - for _, s := range ss { - if s.Y < b.Min.Y { - continue - } - if s.Y >= b.Max.Y { - return - } - if s.X0 < b.Min.X { - s.X0 = b.Min.X - } - if s.X1 > b.Max.X { - s.X1 = b.Max.X - } - if s.X0 >= s.X1 { - continue - } - // This code mimics drawGlyphOver in $GOROOT/src/image/draw/draw.go. - ma := s.Alpha - const m = 1<<16 - 1 - i0 := (s.Y-r.Image.Rect.Min.Y)*r.Image.Stride + (s.X0-r.Image.Rect.Min.X)*4 - i1 := i0 + (s.X1-s.X0)*4 - if r.Op == draw.Over { - for i := i0; i < i1; i += 4 { - dr := uint32(r.Image.Pix[i+0]) - dg := uint32(r.Image.Pix[i+1]) - db := uint32(r.Image.Pix[i+2]) - da := uint32(r.Image.Pix[i+3]) - a := (m - (r.ca * ma / m)) * 0x101 - r.Image.Pix[i+0] = uint8((dr*a + r.cr*ma) / m >> 8) - r.Image.Pix[i+1] = uint8((dg*a + r.cg*ma) / m >> 8) - r.Image.Pix[i+2] = uint8((db*a + r.cb*ma) / m >> 8) - r.Image.Pix[i+3] = uint8((da*a + r.ca*ma) / m >> 8) - } - } else { - for i := i0; i < i1; i += 4 { - r.Image.Pix[i+0] = uint8(r.cr * ma / m >> 8) - r.Image.Pix[i+1] = uint8(r.cg * ma / m >> 8) - r.Image.Pix[i+2] = uint8(r.cb * ma / m >> 8) - r.Image.Pix[i+3] = uint8(r.ca * ma / m >> 8) - } - } - } -} - -// SetColor sets the color to paint the spans. -func (r *RGBAPainter) SetColor(c color.Color) { - r.cr, r.cg, r.cb, r.ca = c.RGBA() -} - -// NewRGBAPainter creates a new RGBAPainter for the given image. -func NewRGBAPainter(m *image.RGBA) *RGBAPainter { - return &RGBAPainter{Image: m} -} - -// A MonochromePainter wraps another Painter, quantizing each Span's alpha to -// be either fully opaque or fully transparent. -type MonochromePainter struct { - Painter Painter - y, x0, x1 int -} - -// Paint delegates to the wrapped Painter after quantizing each Span's alpha -// value and merging adjacent fully opaque Spans. -func (m *MonochromePainter) Paint(ss []Span, done bool) { - // We compact the ss slice, discarding any Spans whose alpha quantizes to zero. - j := 0 - for _, s := range ss { - if s.Alpha >= 0x8000 { - if m.y == s.Y && m.x1 == s.X0 { - m.x1 = s.X1 - } else { - ss[j] = Span{m.y, m.x0, m.x1, 1<<16 - 1} - j++ - m.y, m.x0, m.x1 = s.Y, s.X0, s.X1 - } - } - } - if done { - // Flush the accumulated Span. - finalSpan := Span{m.y, m.x0, m.x1, 1<<16 - 1} - if j < len(ss) { - ss[j] = finalSpan - j++ - m.Painter.Paint(ss[:j], true) - } else if j == len(ss) { - m.Painter.Paint(ss, false) - if cap(ss) > 0 { - ss = ss[:1] - } else { - ss = make([]Span, 1) - } - ss[0] = finalSpan - m.Painter.Paint(ss, true) - } else { - panic("unreachable") - } - // Reset the accumulator, so that this Painter can be re-used. - m.y, m.x0, m.x1 = 0, 0, 0 - } else { - m.Painter.Paint(ss[:j], false) - } -} - -// NewMonochromePainter creates a new MonochromePainter that wraps the given -// Painter. -func NewMonochromePainter(p Painter) *MonochromePainter { - return &MonochromePainter{Painter: p} -} - -// A GammaCorrectionPainter wraps another Painter, performing gamma-correction -// on each Span's alpha value. -type GammaCorrectionPainter struct { - // Painter is the wrapped Painter. - Painter Painter - // a is the precomputed alpha values for linear interpolation, with fully - // opaque == 0xffff. - a [256]uint16 - // gammaIsOne is whether gamma correction is a no-op. - gammaIsOne bool -} - -// Paint delegates to the wrapped Painter after performing gamma-correction on -// each Span. -func (g *GammaCorrectionPainter) Paint(ss []Span, done bool) { - if !g.gammaIsOne { - const n = 0x101 - for i, s := range ss { - if s.Alpha == 0 || s.Alpha == 0xffff { - continue - } - p, q := s.Alpha/n, s.Alpha%n - // The resultant alpha is a linear interpolation of g.a[p] and g.a[p+1]. - a := uint32(g.a[p])*(n-q) + uint32(g.a[p+1])*q - ss[i].Alpha = (a + n/2) / n - } - } - g.Painter.Paint(ss, done) -} - -// SetGamma sets the gamma value. -func (g *GammaCorrectionPainter) SetGamma(gamma float64) { - g.gammaIsOne = gamma == 1 - if g.gammaIsOne { - return - } - for i := 0; i < 256; i++ { - a := float64(i) / 0xff - a = math.Pow(a, gamma) - g.a[i] = uint16(0xffff * a) - } -} - -// NewGammaCorrectionPainter creates a new GammaCorrectionPainter that wraps -// the given Painter. -func NewGammaCorrectionPainter(p Painter, gamma float64) *GammaCorrectionPainter { - g := &GammaCorrectionPainter{Painter: p} - g.SetGamma(gamma) - return g -} diff --git a/vendor/github.com/golang/freetype/raster/raster.go b/vendor/github.com/golang/freetype/raster/raster.go deleted file mode 100644 index 7e6cd4e..0000000 --- a/vendor/github.com/golang/freetype/raster/raster.go +++ /dev/null @@ -1,601 +0,0 @@ -// Copyright 2010 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -// Package raster provides an anti-aliasing 2-D rasterizer. -// -// It is part of the larger Freetype suite of font-related packages, but the -// raster package is not specific to font rasterization, and can be used -// standalone without any other Freetype package. -// -// Rasterization is done by the same area/coverage accumulation algorithm as -// the Freetype "smooth" module, and the Anti-Grain Geometry library. A -// description of the area/coverage algorithm is at -// http://projects.tuxee.net/cl-vectors/section-the-cl-aa-algorithm -package raster // import "github.com/golang/freetype/raster" - -import ( - "strconv" - - "golang.org/x/image/math/fixed" -) - -// A cell is part of a linked list (for a given yi co-ordinate) of accumulated -// area/coverage for the pixel at (xi, yi). -type cell struct { - xi int - area, cover int - next int -} - -type Rasterizer struct { - // If false, the default behavior is to use the even-odd winding fill - // rule during Rasterize. - UseNonZeroWinding bool - // An offset (in pixels) to the painted spans. - Dx, Dy int - - // The width of the Rasterizer. The height is implicit in len(cellIndex). - width int - // splitScaleN is the scaling factor used to determine how many times - // to decompose a quadratic or cubic segment into a linear approximation. - splitScale2, splitScale3 int - - // The current pen position. - a fixed.Point26_6 - // The current cell and its area/coverage being accumulated. - xi, yi int - area, cover int - - // Saved cells. - cell []cell - // Linked list of cells, one per row. - cellIndex []int - // Buffers. - cellBuf [256]cell - cellIndexBuf [64]int - spanBuf [64]Span -} - -// findCell returns the index in r.cell for the cell corresponding to -// (r.xi, r.yi). The cell is created if necessary. -func (r *Rasterizer) findCell() int { - if r.yi < 0 || r.yi >= len(r.cellIndex) { - return -1 - } - xi := r.xi - if xi < 0 { - xi = -1 - } else if xi > r.width { - xi = r.width - } - i, prev := r.cellIndex[r.yi], -1 - for i != -1 && r.cell[i].xi <= xi { - if r.cell[i].xi == xi { - return i - } - i, prev = r.cell[i].next, i - } - c := len(r.cell) - if c == cap(r.cell) { - buf := make([]cell, c, 4*c) - copy(buf, r.cell) - r.cell = buf[0 : c+1] - } else { - r.cell = r.cell[0 : c+1] - } - r.cell[c] = cell{xi, 0, 0, i} - if prev == -1 { - r.cellIndex[r.yi] = c - } else { - r.cell[prev].next = c - } - return c -} - -// saveCell saves any accumulated r.area/r.cover for (r.xi, r.yi). -func (r *Rasterizer) saveCell() { - if r.area != 0 || r.cover != 0 { - i := r.findCell() - if i != -1 { - r.cell[i].area += r.area - r.cell[i].cover += r.cover - } - r.area = 0 - r.cover = 0 - } -} - -// setCell sets the (xi, yi) cell that r is accumulating area/coverage for. -func (r *Rasterizer) setCell(xi, yi int) { - if r.xi != xi || r.yi != yi { - r.saveCell() - r.xi, r.yi = xi, yi - } -} - -// scan accumulates area/coverage for the yi'th scanline, going from -// x0 to x1 in the horizontal direction (in 26.6 fixed point co-ordinates) -// and from y0f to y1f fractional vertical units within that scanline. -func (r *Rasterizer) scan(yi int, x0, y0f, x1, y1f fixed.Int26_6) { - // Break the 26.6 fixed point X co-ordinates into integral and fractional parts. - x0i := int(x0) / 64 - x0f := x0 - fixed.Int26_6(64*x0i) - x1i := int(x1) / 64 - x1f := x1 - fixed.Int26_6(64*x1i) - - // A perfectly horizontal scan. - if y0f == y1f { - r.setCell(x1i, yi) - return - } - dx, dy := x1-x0, y1f-y0f - // A single cell scan. - if x0i == x1i { - r.area += int((x0f + x1f) * dy) - r.cover += int(dy) - return - } - // There are at least two cells. Apart from the first and last cells, - // all intermediate cells go through the full width of the cell, - // or 64 units in 26.6 fixed point format. - var ( - p, q, edge0, edge1 fixed.Int26_6 - xiDelta int - ) - if dx > 0 { - p, q = (64-x0f)*dy, dx - edge0, edge1, xiDelta = 0, 64, 1 - } else { - p, q = x0f*dy, -dx - edge0, edge1, xiDelta = 64, 0, -1 - } - yDelta, yRem := p/q, p%q - if yRem < 0 { - yDelta -= 1 - yRem += q - } - // Do the first cell. - xi, y := x0i, y0f - r.area += int((x0f + edge1) * yDelta) - r.cover += int(yDelta) - xi, y = xi+xiDelta, y+yDelta - r.setCell(xi, yi) - if xi != x1i { - // Do all the intermediate cells. - p = 64 * (y1f - y + yDelta) - fullDelta, fullRem := p/q, p%q - if fullRem < 0 { - fullDelta -= 1 - fullRem += q - } - yRem -= q - for xi != x1i { - yDelta = fullDelta - yRem += fullRem - if yRem >= 0 { - yDelta += 1 - yRem -= q - } - r.area += int(64 * yDelta) - r.cover += int(yDelta) - xi, y = xi+xiDelta, y+yDelta - r.setCell(xi, yi) - } - } - // Do the last cell. - yDelta = y1f - y - r.area += int((edge0 + x1f) * yDelta) - r.cover += int(yDelta) -} - -// Start starts a new curve at the given point. -func (r *Rasterizer) Start(a fixed.Point26_6) { - r.setCell(int(a.X/64), int(a.Y/64)) - r.a = a -} - -// Add1 adds a linear segment to the current curve. -func (r *Rasterizer) Add1(b fixed.Point26_6) { - x0, y0 := r.a.X, r.a.Y - x1, y1 := b.X, b.Y - dx, dy := x1-x0, y1-y0 - // Break the 26.6 fixed point Y co-ordinates into integral and fractional - // parts. - y0i := int(y0) / 64 - y0f := y0 - fixed.Int26_6(64*y0i) - y1i := int(y1) / 64 - y1f := y1 - fixed.Int26_6(64*y1i) - - if y0i == y1i { - // There is only one scanline. - r.scan(y0i, x0, y0f, x1, y1f) - - } else if dx == 0 { - // This is a vertical line segment. We avoid calling r.scan and instead - // manipulate r.area and r.cover directly. - var ( - edge0, edge1 fixed.Int26_6 - yiDelta int - ) - if dy > 0 { - edge0, edge1, yiDelta = 0, 64, 1 - } else { - edge0, edge1, yiDelta = 64, 0, -1 - } - x0i, yi := int(x0)/64, y0i - x0fTimes2 := (int(x0) - (64 * x0i)) * 2 - // Do the first pixel. - dcover := int(edge1 - y0f) - darea := int(x0fTimes2 * dcover) - r.area += darea - r.cover += dcover - yi += yiDelta - r.setCell(x0i, yi) - // Do all the intermediate pixels. - dcover = int(edge1 - edge0) - darea = int(x0fTimes2 * dcover) - for yi != y1i { - r.area += darea - r.cover += dcover - yi += yiDelta - r.setCell(x0i, yi) - } - // Do the last pixel. - dcover = int(y1f - edge0) - darea = int(x0fTimes2 * dcover) - r.area += darea - r.cover += dcover - - } else { - // There are at least two scanlines. Apart from the first and last - // scanlines, all intermediate scanlines go through the full height of - // the row, or 64 units in 26.6 fixed point format. - var ( - p, q, edge0, edge1 fixed.Int26_6 - yiDelta int - ) - if dy > 0 { - p, q = (64-y0f)*dx, dy - edge0, edge1, yiDelta = 0, 64, 1 - } else { - p, q = y0f*dx, -dy - edge0, edge1, yiDelta = 64, 0, -1 - } - xDelta, xRem := p/q, p%q - if xRem < 0 { - xDelta -= 1 - xRem += q - } - // Do the first scanline. - x, yi := x0, y0i - r.scan(yi, x, y0f, x+xDelta, edge1) - x, yi = x+xDelta, yi+yiDelta - r.setCell(int(x)/64, yi) - if yi != y1i { - // Do all the intermediate scanlines. - p = 64 * dx - fullDelta, fullRem := p/q, p%q - if fullRem < 0 { - fullDelta -= 1 - fullRem += q - } - xRem -= q - for yi != y1i { - xDelta = fullDelta - xRem += fullRem - if xRem >= 0 { - xDelta += 1 - xRem -= q - } - r.scan(yi, x, edge0, x+xDelta, edge1) - x, yi = x+xDelta, yi+yiDelta - r.setCell(int(x)/64, yi) - } - } - // Do the last scanline. - r.scan(yi, x, edge0, x1, y1f) - } - // The next lineTo starts from b. - r.a = b -} - -// Add2 adds a quadratic segment to the current curve. -func (r *Rasterizer) Add2(b, c fixed.Point26_6) { - // Calculate nSplit (the number of recursive decompositions) based on how - // 'curvy' it is. Specifically, how much the middle point b deviates from - // (a+c)/2. - dev := maxAbs(r.a.X-2*b.X+c.X, r.a.Y-2*b.Y+c.Y) / fixed.Int26_6(r.splitScale2) - nsplit := 0 - for dev > 0 { - dev /= 4 - nsplit++ - } - // dev is 32-bit, and nsplit++ every time we shift off 2 bits, so maxNsplit - // is 16. - const maxNsplit = 16 - if nsplit > maxNsplit { - panic("freetype/raster: Add2 nsplit too large: " + strconv.Itoa(nsplit)) - } - // Recursively decompose the curve nSplit levels deep. - var ( - pStack [2*maxNsplit + 3]fixed.Point26_6 - sStack [maxNsplit + 1]int - i int - ) - sStack[0] = nsplit - pStack[0] = c - pStack[1] = b - pStack[2] = r.a - for i >= 0 { - s := sStack[i] - p := pStack[2*i:] - if s > 0 { - // Split the quadratic curve p[:3] into an equivalent set of two - // shorter curves: p[:3] and p[2:5]. The new p[4] is the old p[2], - // and p[0] is unchanged. - mx := p[1].X - p[4].X = p[2].X - p[3].X = (p[4].X + mx) / 2 - p[1].X = (p[0].X + mx) / 2 - p[2].X = (p[1].X + p[3].X) / 2 - my := p[1].Y - p[4].Y = p[2].Y - p[3].Y = (p[4].Y + my) / 2 - p[1].Y = (p[0].Y + my) / 2 - p[2].Y = (p[1].Y + p[3].Y) / 2 - // The two shorter curves have one less split to do. - sStack[i] = s - 1 - sStack[i+1] = s - 1 - i++ - } else { - // Replace the level-0 quadratic with a two-linear-piece - // approximation. - midx := (p[0].X + 2*p[1].X + p[2].X) / 4 - midy := (p[0].Y + 2*p[1].Y + p[2].Y) / 4 - r.Add1(fixed.Point26_6{midx, midy}) - r.Add1(p[0]) - i-- - } - } -} - -// Add3 adds a cubic segment to the current curve. -func (r *Rasterizer) Add3(b, c, d fixed.Point26_6) { - // Calculate nSplit (the number of recursive decompositions) based on how - // 'curvy' it is. - dev2 := maxAbs(r.a.X-3*(b.X+c.X)+d.X, r.a.Y-3*(b.Y+c.Y)+d.Y) / fixed.Int26_6(r.splitScale2) - dev3 := maxAbs(r.a.X-2*b.X+d.X, r.a.Y-2*b.Y+d.Y) / fixed.Int26_6(r.splitScale3) - nsplit := 0 - for dev2 > 0 || dev3 > 0 { - dev2 /= 8 - dev3 /= 4 - nsplit++ - } - // devN is 32-bit, and nsplit++ every time we shift off 2 bits, so - // maxNsplit is 16. - const maxNsplit = 16 - if nsplit > maxNsplit { - panic("freetype/raster: Add3 nsplit too large: " + strconv.Itoa(nsplit)) - } - // Recursively decompose the curve nSplit levels deep. - var ( - pStack [3*maxNsplit + 4]fixed.Point26_6 - sStack [maxNsplit + 1]int - i int - ) - sStack[0] = nsplit - pStack[0] = d - pStack[1] = c - pStack[2] = b - pStack[3] = r.a - for i >= 0 { - s := sStack[i] - p := pStack[3*i:] - if s > 0 { - // Split the cubic curve p[:4] into an equivalent set of two - // shorter curves: p[:4] and p[3:7]. The new p[6] is the old p[3], - // and p[0] is unchanged. - m01x := (p[0].X + p[1].X) / 2 - m12x := (p[1].X + p[2].X) / 2 - m23x := (p[2].X + p[3].X) / 2 - p[6].X = p[3].X - p[5].X = m23x - p[1].X = m01x - p[2].X = (m01x + m12x) / 2 - p[4].X = (m12x + m23x) / 2 - p[3].X = (p[2].X + p[4].X) / 2 - m01y := (p[0].Y + p[1].Y) / 2 - m12y := (p[1].Y + p[2].Y) / 2 - m23y := (p[2].Y + p[3].Y) / 2 - p[6].Y = p[3].Y - p[5].Y = m23y - p[1].Y = m01y - p[2].Y = (m01y + m12y) / 2 - p[4].Y = (m12y + m23y) / 2 - p[3].Y = (p[2].Y + p[4].Y) / 2 - // The two shorter curves have one less split to do. - sStack[i] = s - 1 - sStack[i+1] = s - 1 - i++ - } else { - // Replace the level-0 cubic with a two-linear-piece approximation. - midx := (p[0].X + 3*(p[1].X+p[2].X) + p[3].X) / 8 - midy := (p[0].Y + 3*(p[1].Y+p[2].Y) + p[3].Y) / 8 - r.Add1(fixed.Point26_6{midx, midy}) - r.Add1(p[0]) - i-- - } - } -} - -// AddPath adds the given Path. -func (r *Rasterizer) AddPath(p Path) { - for i := 0; i < len(p); { - switch p[i] { - case 0: - r.Start( - fixed.Point26_6{p[i+1], p[i+2]}, - ) - i += 4 - case 1: - r.Add1( - fixed.Point26_6{p[i+1], p[i+2]}, - ) - i += 4 - case 2: - r.Add2( - fixed.Point26_6{p[i+1], p[i+2]}, - fixed.Point26_6{p[i+3], p[i+4]}, - ) - i += 6 - case 3: - r.Add3( - fixed.Point26_6{p[i+1], p[i+2]}, - fixed.Point26_6{p[i+3], p[i+4]}, - fixed.Point26_6{p[i+5], p[i+6]}, - ) - i += 8 - default: - panic("freetype/raster: bad path") - } - } -} - -// AddStroke adds a stroked Path. -func (r *Rasterizer) AddStroke(q Path, width fixed.Int26_6, cr Capper, jr Joiner) { - Stroke(r, q, width, cr, jr) -} - -// areaToAlpha converts an area value to a uint32 alpha value. A completely -// filled pixel corresponds to an area of 64*64*2, and an alpha of 0xffff. The -// conversion of area values greater than this depends on the winding rule: -// even-odd or non-zero. -func (r *Rasterizer) areaToAlpha(area int) uint32 { - // The C Freetype implementation (version 2.3.12) does "alpha := area>>1" - // without the +1. Round-to-nearest gives a more symmetric result than - // round-down. The C implementation also returns 8-bit alpha, not 16-bit - // alpha. - a := (area + 1) >> 1 - if a < 0 { - a = -a - } - alpha := uint32(a) - if r.UseNonZeroWinding { - if alpha > 0x0fff { - alpha = 0x0fff - } - } else { - alpha &= 0x1fff - if alpha > 0x1000 { - alpha = 0x2000 - alpha - } else if alpha == 0x1000 { - alpha = 0x0fff - } - } - // alpha is now in the range [0x0000, 0x0fff]. Convert that 12-bit alpha to - // 16-bit alpha. - return alpha<<4 | alpha>>8 -} - -// Rasterize converts r's accumulated curves into Spans for p. The Spans passed -// to p are non-overlapping, and sorted by Y and then X. They all have non-zero -// width (and 0 <= X0 < X1 <= r.width) and non-zero A, except for the final -// Span, which has Y, X0, X1 and A all equal to zero. -func (r *Rasterizer) Rasterize(p Painter) { - r.saveCell() - s := 0 - for yi := 0; yi < len(r.cellIndex); yi++ { - xi, cover := 0, 0 - for c := r.cellIndex[yi]; c != -1; c = r.cell[c].next { - if cover != 0 && r.cell[c].xi > xi { - alpha := r.areaToAlpha(cover * 64 * 2) - if alpha != 0 { - xi0, xi1 := xi, r.cell[c].xi - if xi0 < 0 { - xi0 = 0 - } - if xi1 >= r.width { - xi1 = r.width - } - if xi0 < xi1 { - r.spanBuf[s] = Span{yi + r.Dy, xi0 + r.Dx, xi1 + r.Dx, alpha} - s++ - } - } - } - cover += r.cell[c].cover - alpha := r.areaToAlpha(cover*64*2 - r.cell[c].area) - xi = r.cell[c].xi + 1 - if alpha != 0 { - xi0, xi1 := r.cell[c].xi, xi - if xi0 < 0 { - xi0 = 0 - } - if xi1 >= r.width { - xi1 = r.width - } - if xi0 < xi1 { - r.spanBuf[s] = Span{yi + r.Dy, xi0 + r.Dx, xi1 + r.Dx, alpha} - s++ - } - } - if s > len(r.spanBuf)-2 { - p.Paint(r.spanBuf[:s], false) - s = 0 - } - } - } - p.Paint(r.spanBuf[:s], true) -} - -// Clear cancels any previous calls to r.Start or r.AddXxx. -func (r *Rasterizer) Clear() { - r.a = fixed.Point26_6{} - r.xi = 0 - r.yi = 0 - r.area = 0 - r.cover = 0 - r.cell = r.cell[:0] - for i := 0; i < len(r.cellIndex); i++ { - r.cellIndex[i] = -1 - } -} - -// SetBounds sets the maximum width and height of the rasterized image and -// calls Clear. The width and height are in pixels, not fixed.Int26_6 units. -func (r *Rasterizer) SetBounds(width, height int) { - if width < 0 { - width = 0 - } - if height < 0 { - height = 0 - } - // Use the same ssN heuristic as the C Freetype (version 2.4.0) - // implementation. - ss2, ss3 := 32, 16 - if width > 24 || height > 24 { - ss2, ss3 = 2*ss2, 2*ss3 - if width > 120 || height > 120 { - ss2, ss3 = 2*ss2, 2*ss3 - } - } - r.width = width - r.splitScale2 = ss2 - r.splitScale3 = ss3 - r.cell = r.cellBuf[:0] - if height > len(r.cellIndexBuf) { - r.cellIndex = make([]int, height) - } else { - r.cellIndex = r.cellIndexBuf[:height] - } - r.Clear() -} - -// NewRasterizer creates a new Rasterizer with the given bounds. -func NewRasterizer(width, height int) *Rasterizer { - r := new(Rasterizer) - r.SetBounds(width, height) - return r -} diff --git a/vendor/github.com/golang/freetype/raster/stroke.go b/vendor/github.com/golang/freetype/raster/stroke.go deleted file mode 100644 index bcc66b2..0000000 --- a/vendor/github.com/golang/freetype/raster/stroke.go +++ /dev/null @@ -1,483 +0,0 @@ -// Copyright 2010 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -package raster - -import ( - "golang.org/x/image/math/fixed" -) - -// Two points are considered practically equal if the square of the distance -// between them is less than one quarter (i.e. 1024 / 4096). -const epsilon = fixed.Int52_12(1024) - -// A Capper signifies how to begin or end a stroked path. -type Capper interface { - // Cap adds a cap to p given a pivot point and the normal vector of a - // terminal segment. The normal's length is half of the stroke width. - Cap(p Adder, halfWidth fixed.Int26_6, pivot, n1 fixed.Point26_6) -} - -// The CapperFunc type adapts an ordinary function to be a Capper. -type CapperFunc func(Adder, fixed.Int26_6, fixed.Point26_6, fixed.Point26_6) - -func (f CapperFunc) Cap(p Adder, halfWidth fixed.Int26_6, pivot, n1 fixed.Point26_6) { - f(p, halfWidth, pivot, n1) -} - -// A Joiner signifies how to join interior nodes of a stroked path. -type Joiner interface { - // Join adds a join to the two sides of a stroked path given a pivot - // point and the normal vectors of the trailing and leading segments. - // Both normals have length equal to half of the stroke width. - Join(lhs, rhs Adder, halfWidth fixed.Int26_6, pivot, n0, n1 fixed.Point26_6) -} - -// The JoinerFunc type adapts an ordinary function to be a Joiner. -type JoinerFunc func(lhs, rhs Adder, halfWidth fixed.Int26_6, pivot, n0, n1 fixed.Point26_6) - -func (f JoinerFunc) Join(lhs, rhs Adder, halfWidth fixed.Int26_6, pivot, n0, n1 fixed.Point26_6) { - f(lhs, rhs, halfWidth, pivot, n0, n1) -} - -// RoundCapper adds round caps to a stroked path. -var RoundCapper Capper = CapperFunc(roundCapper) - -func roundCapper(p Adder, halfWidth fixed.Int26_6, pivot, n1 fixed.Point26_6) { - // The cubic Bézier approximation to a circle involves the magic number - // (√2 - 1) * 4/3, which is approximately 35/64. - const k = 35 - e := pRot90CCW(n1) - side := pivot.Add(e) - start, end := pivot.Sub(n1), pivot.Add(n1) - d, e := n1.Mul(k), e.Mul(k) - p.Add3(start.Add(e), side.Sub(d), side) - p.Add3(side.Add(d), end.Add(e), end) -} - -// ButtCapper adds butt caps to a stroked path. -var ButtCapper Capper = CapperFunc(buttCapper) - -func buttCapper(p Adder, halfWidth fixed.Int26_6, pivot, n1 fixed.Point26_6) { - p.Add1(pivot.Add(n1)) -} - -// SquareCapper adds square caps to a stroked path. -var SquareCapper Capper = CapperFunc(squareCapper) - -func squareCapper(p Adder, halfWidth fixed.Int26_6, pivot, n1 fixed.Point26_6) { - e := pRot90CCW(n1) - side := pivot.Add(e) - p.Add1(side.Sub(n1)) - p.Add1(side.Add(n1)) - p.Add1(pivot.Add(n1)) -} - -// RoundJoiner adds round joins to a stroked path. -var RoundJoiner Joiner = JoinerFunc(roundJoiner) - -func roundJoiner(lhs, rhs Adder, haflWidth fixed.Int26_6, pivot, n0, n1 fixed.Point26_6) { - dot := pDot(pRot90CW(n0), n1) - if dot >= 0 { - addArc(lhs, pivot, n0, n1) - rhs.Add1(pivot.Sub(n1)) - } else { - lhs.Add1(pivot.Add(n1)) - addArc(rhs, pivot, pNeg(n0), pNeg(n1)) - } -} - -// BevelJoiner adds bevel joins to a stroked path. -var BevelJoiner Joiner = JoinerFunc(bevelJoiner) - -func bevelJoiner(lhs, rhs Adder, haflWidth fixed.Int26_6, pivot, n0, n1 fixed.Point26_6) { - lhs.Add1(pivot.Add(n1)) - rhs.Add1(pivot.Sub(n1)) -} - -// addArc adds a circular arc from pivot+n0 to pivot+n1 to p. The shorter of -// the two possible arcs is taken, i.e. the one spanning <= 180 degrees. The -// two vectors n0 and n1 must be of equal length. -func addArc(p Adder, pivot, n0, n1 fixed.Point26_6) { - // r2 is the square of the length of n0. - r2 := pDot(n0, n0) - if r2 < epsilon { - // The arc radius is so small that we collapse to a straight line. - p.Add1(pivot.Add(n1)) - return - } - // We approximate the arc by 0, 1, 2 or 3 45-degree quadratic segments plus - // a final quadratic segment from s to n1. Each 45-degree segment has - // control points {1, 0}, {1, tan(π/8)} and {1/√2, 1/√2} suitably scaled, - // rotated and translated. tan(π/8) is approximately 27/64. - const tpo8 = 27 - var s fixed.Point26_6 - // We determine which octant the angle between n0 and n1 is in via three - // dot products. m0, m1 and m2 are n0 rotated clockwise by 45, 90 and 135 - // degrees. - m0 := pRot45CW(n0) - m1 := pRot90CW(n0) - m2 := pRot90CW(m0) - if pDot(m1, n1) >= 0 { - if pDot(n0, n1) >= 0 { - if pDot(m2, n1) <= 0 { - // n1 is between 0 and 45 degrees clockwise of n0. - s = n0 - } else { - // n1 is between 45 and 90 degrees clockwise of n0. - p.Add2(pivot.Add(n0).Add(m1.Mul(tpo8)), pivot.Add(m0)) - s = m0 - } - } else { - pm1, n0t := pivot.Add(m1), n0.Mul(tpo8) - p.Add2(pivot.Add(n0).Add(m1.Mul(tpo8)), pivot.Add(m0)) - p.Add2(pm1.Add(n0t), pm1) - if pDot(m0, n1) >= 0 { - // n1 is between 90 and 135 degrees clockwise of n0. - s = m1 - } else { - // n1 is between 135 and 180 degrees clockwise of n0. - p.Add2(pm1.Sub(n0t), pivot.Add(m2)) - s = m2 - } - } - } else { - if pDot(n0, n1) >= 0 { - if pDot(m0, n1) >= 0 { - // n1 is between 0 and 45 degrees counter-clockwise of n0. - s = n0 - } else { - // n1 is between 45 and 90 degrees counter-clockwise of n0. - p.Add2(pivot.Add(n0).Sub(m1.Mul(tpo8)), pivot.Sub(m2)) - s = pNeg(m2) - } - } else { - pm1, n0t := pivot.Sub(m1), n0.Mul(tpo8) - p.Add2(pivot.Add(n0).Sub(m1.Mul(tpo8)), pivot.Sub(m2)) - p.Add2(pm1.Add(n0t), pm1) - if pDot(m2, n1) <= 0 { - // n1 is between 90 and 135 degrees counter-clockwise of n0. - s = pNeg(m1) - } else { - // n1 is between 135 and 180 degrees counter-clockwise of n0. - p.Add2(pm1.Sub(n0t), pivot.Sub(m0)) - s = pNeg(m0) - } - } - } - // The final quadratic segment has two endpoints s and n1 and the middle - // control point is a multiple of s.Add(n1), i.e. it is on the angle - // bisector of those two points. The multiple ranges between 128/256 and - // 150/256 as the angle between s and n1 ranges between 0 and 45 degrees. - // - // When the angle is 0 degrees (i.e. s and n1 are coincident) then - // s.Add(n1) is twice s and so the middle control point of the degenerate - // quadratic segment should be half s.Add(n1), and half = 128/256. - // - // When the angle is 45 degrees then 150/256 is the ratio of the lengths of - // the two vectors {1, tan(π/8)} and {1 + 1/√2, 1/√2}. - // - // d is the normalized dot product between s and n1. Since the angle ranges - // between 0 and 45 degrees then d ranges between 256/256 and 181/256. - d := 256 * pDot(s, n1) / r2 - multiple := fixed.Int26_6(150-(150-128)*(d-181)/(256-181)) >> 2 - p.Add2(pivot.Add(s.Add(n1).Mul(multiple)), pivot.Add(n1)) -} - -// midpoint returns the midpoint of two Points. -func midpoint(a, b fixed.Point26_6) fixed.Point26_6 { - return fixed.Point26_6{(a.X + b.X) / 2, (a.Y + b.Y) / 2} -} - -// angleGreaterThan45 returns whether the angle between two vectors is more -// than 45 degrees. -func angleGreaterThan45(v0, v1 fixed.Point26_6) bool { - v := pRot45CCW(v0) - return pDot(v, v1) < 0 || pDot(pRot90CW(v), v1) < 0 -} - -// interpolate returns the point (1-t)*a + t*b. -func interpolate(a, b fixed.Point26_6, t fixed.Int52_12) fixed.Point26_6 { - s := 1<<12 - t - x := s*fixed.Int52_12(a.X) + t*fixed.Int52_12(b.X) - y := s*fixed.Int52_12(a.Y) + t*fixed.Int52_12(b.Y) - return fixed.Point26_6{fixed.Int26_6(x >> 12), fixed.Int26_6(y >> 12)} -} - -// curviest2 returns the value of t for which the quadratic parametric curve -// (1-t)²*a + 2*t*(1-t).b + t²*c has maximum curvature. -// -// The curvature of the parametric curve f(t) = (x(t), y(t)) is -// |x′y″-y′x″| / (x′²+y′²)^(3/2). -// -// Let d = b-a and e = c-2*b+a, so that f′(t) = 2*d+2*e*t and f″(t) = 2*e. -// The curvature's numerator is (2*dx+2*ex*t)*(2*ey)-(2*dy+2*ey*t)*(2*ex), -// which simplifies to 4*dx*ey-4*dy*ex, which is constant with respect to t. -// -// Thus, curvature is extreme where the denominator is extreme, i.e. where -// (x′²+y′²) is extreme. The first order condition is that -// 2*x′*x″+2*y′*y″ = 0, or (dx+ex*t)*ex + (dy+ey*t)*ey = 0. -// Solving for t gives t = -(dx*ex+dy*ey) / (ex*ex+ey*ey). -func curviest2(a, b, c fixed.Point26_6) fixed.Int52_12 { - dx := int64(b.X - a.X) - dy := int64(b.Y - a.Y) - ex := int64(c.X - 2*b.X + a.X) - ey := int64(c.Y - 2*b.Y + a.Y) - if ex == 0 && ey == 0 { - return 2048 - } - return fixed.Int52_12(-4096 * (dx*ex + dy*ey) / (ex*ex + ey*ey)) -} - -// A stroker holds state for stroking a path. -type stroker struct { - // p is the destination that records the stroked path. - p Adder - // u is the half-width of the stroke. - u fixed.Int26_6 - // cr and jr specify how to end and connect path segments. - cr Capper - jr Joiner - // r is the reverse path. Stroking a path involves constructing two - // parallel paths 2*u apart. The first path is added immediately to p, - // the second path is accumulated in r and eventually added in reverse. - r Path - // a is the most recent segment point. anorm is the segment normal of - // length u at that point. - a, anorm fixed.Point26_6 -} - -// addNonCurvy2 adds a quadratic segment to the stroker, where the segment -// defined by (k.a, b, c) achieves maximum curvature at either k.a or c. -func (k *stroker) addNonCurvy2(b, c fixed.Point26_6) { - // We repeatedly divide the segment at its middle until it is straight - // enough to approximate the stroke by just translating the control points. - // ds and ps are stacks of depths and points. t is the top of the stack. - const maxDepth = 5 - var ( - ds [maxDepth + 1]int - ps [2*maxDepth + 3]fixed.Point26_6 - t int - ) - // Initially the ps stack has one quadratic segment of depth zero. - ds[0] = 0 - ps[2] = k.a - ps[1] = b - ps[0] = c - anorm := k.anorm - var cnorm fixed.Point26_6 - - for { - depth := ds[t] - a := ps[2*t+2] - b := ps[2*t+1] - c := ps[2*t+0] - ab := b.Sub(a) - bc := c.Sub(b) - abIsSmall := pDot(ab, ab) < fixed.Int52_12(1<<12) - bcIsSmall := pDot(bc, bc) < fixed.Int52_12(1<<12) - if abIsSmall && bcIsSmall { - // Approximate the segment by a circular arc. - cnorm = pRot90CCW(pNorm(bc, k.u)) - mac := midpoint(a, c) - addArc(k.p, mac, anorm, cnorm) - addArc(&k.r, mac, pNeg(anorm), pNeg(cnorm)) - } else if depth < maxDepth && angleGreaterThan45(ab, bc) { - // Divide the segment in two and push both halves on the stack. - mab := midpoint(a, b) - mbc := midpoint(b, c) - t++ - ds[t+0] = depth + 1 - ds[t-1] = depth + 1 - ps[2*t+2] = a - ps[2*t+1] = mab - ps[2*t+0] = midpoint(mab, mbc) - ps[2*t-1] = mbc - continue - } else { - // Translate the control points. - bnorm := pRot90CCW(pNorm(c.Sub(a), k.u)) - cnorm = pRot90CCW(pNorm(bc, k.u)) - k.p.Add2(b.Add(bnorm), c.Add(cnorm)) - k.r.Add2(b.Sub(bnorm), c.Sub(cnorm)) - } - if t == 0 { - k.a, k.anorm = c, cnorm - return - } - t-- - anorm = cnorm - } - panic("unreachable") -} - -// Add1 adds a linear segment to the stroker. -func (k *stroker) Add1(b fixed.Point26_6) { - bnorm := pRot90CCW(pNorm(b.Sub(k.a), k.u)) - if len(k.r) == 0 { - k.p.Start(k.a.Add(bnorm)) - k.r.Start(k.a.Sub(bnorm)) - } else { - k.jr.Join(k.p, &k.r, k.u, k.a, k.anorm, bnorm) - } - k.p.Add1(b.Add(bnorm)) - k.r.Add1(b.Sub(bnorm)) - k.a, k.anorm = b, bnorm -} - -// Add2 adds a quadratic segment to the stroker. -func (k *stroker) Add2(b, c fixed.Point26_6) { - ab := b.Sub(k.a) - bc := c.Sub(b) - abnorm := pRot90CCW(pNorm(ab, k.u)) - if len(k.r) == 0 { - k.p.Start(k.a.Add(abnorm)) - k.r.Start(k.a.Sub(abnorm)) - } else { - k.jr.Join(k.p, &k.r, k.u, k.a, k.anorm, abnorm) - } - - // Approximate nearly-degenerate quadratics by linear segments. - abIsSmall := pDot(ab, ab) < epsilon - bcIsSmall := pDot(bc, bc) < epsilon - if abIsSmall || bcIsSmall { - acnorm := pRot90CCW(pNorm(c.Sub(k.a), k.u)) - k.p.Add1(c.Add(acnorm)) - k.r.Add1(c.Sub(acnorm)) - k.a, k.anorm = c, acnorm - return - } - - // The quadratic segment (k.a, b, c) has a point of maximum curvature. - // If this occurs at an end point, we process the segment as a whole. - t := curviest2(k.a, b, c) - if t <= 0 || 4096 <= t { - k.addNonCurvy2(b, c) - return - } - - // Otherwise, we perform a de Casteljau decomposition at the point of - // maximum curvature and process the two straighter parts. - mab := interpolate(k.a, b, t) - mbc := interpolate(b, c, t) - mabc := interpolate(mab, mbc, t) - - // If the vectors ab and bc are close to being in opposite directions, - // then the decomposition can become unstable, so we approximate the - // quadratic segment by two linear segments joined by an arc. - bcnorm := pRot90CCW(pNorm(bc, k.u)) - if pDot(abnorm, bcnorm) < -fixed.Int52_12(k.u)*fixed.Int52_12(k.u)*2047/2048 { - pArc := pDot(abnorm, bc) < 0 - - k.p.Add1(mabc.Add(abnorm)) - if pArc { - z := pRot90CW(abnorm) - addArc(k.p, mabc, abnorm, z) - addArc(k.p, mabc, z, bcnorm) - } - k.p.Add1(mabc.Add(bcnorm)) - k.p.Add1(c.Add(bcnorm)) - - k.r.Add1(mabc.Sub(abnorm)) - if !pArc { - z := pRot90CW(abnorm) - addArc(&k.r, mabc, pNeg(abnorm), z) - addArc(&k.r, mabc, z, pNeg(bcnorm)) - } - k.r.Add1(mabc.Sub(bcnorm)) - k.r.Add1(c.Sub(bcnorm)) - - k.a, k.anorm = c, bcnorm - return - } - - // Process the decomposed parts. - k.addNonCurvy2(mab, mabc) - k.addNonCurvy2(mbc, c) -} - -// Add3 adds a cubic segment to the stroker. -func (k *stroker) Add3(b, c, d fixed.Point26_6) { - panic("freetype/raster: stroke unimplemented for cubic segments") -} - -// stroke adds the stroked Path q to p, where q consists of exactly one curve. -func (k *stroker) stroke(q Path) { - // Stroking is implemented by deriving two paths each k.u apart from q. - // The left-hand-side path is added immediately to k.p; the right-hand-side - // path is accumulated in k.r. Once we've finished adding the LHS to k.p, - // we add the RHS in reverse order. - k.r = make(Path, 0, len(q)) - k.a = fixed.Point26_6{q[1], q[2]} - for i := 4; i < len(q); { - switch q[i] { - case 1: - k.Add1( - fixed.Point26_6{q[i+1], q[i+2]}, - ) - i += 4 - case 2: - k.Add2( - fixed.Point26_6{q[i+1], q[i+2]}, - fixed.Point26_6{q[i+3], q[i+4]}, - ) - i += 6 - case 3: - k.Add3( - fixed.Point26_6{q[i+1], q[i+2]}, - fixed.Point26_6{q[i+3], q[i+4]}, - fixed.Point26_6{q[i+5], q[i+6]}, - ) - i += 8 - default: - panic("freetype/raster: bad path") - } - } - if len(k.r) == 0 { - return - } - // TODO(nigeltao): if q is a closed curve then we should join the first and - // last segments instead of capping them. - k.cr.Cap(k.p, k.u, q.lastPoint(), pNeg(k.anorm)) - addPathReversed(k.p, k.r) - pivot := q.firstPoint() - k.cr.Cap(k.p, k.u, pivot, pivot.Sub(fixed.Point26_6{k.r[1], k.r[2]})) -} - -// Stroke adds q stroked with the given width to p. The result is typically -// self-intersecting and should be rasterized with UseNonZeroWinding. -// cr and jr may be nil, which defaults to a RoundCapper or RoundJoiner. -func Stroke(p Adder, q Path, width fixed.Int26_6, cr Capper, jr Joiner) { - if len(q) == 0 { - return - } - if cr == nil { - cr = RoundCapper - } - if jr == nil { - jr = RoundJoiner - } - if q[0] != 0 { - panic("freetype/raster: bad path") - } - s := stroker{p: p, u: width / 2, cr: cr, jr: jr} - i := 0 - for j := 4; j < len(q); { - switch q[j] { - case 0: - s.stroke(q[i:j]) - i, j = j, j+4 - case 1: - j += 4 - case 2: - j += 6 - case 3: - j += 8 - default: - panic("freetype/raster: bad path") - } - } - s.stroke(q[i:]) -} diff --git a/vendor/github.com/golang/freetype/testdata/COPYING b/vendor/github.com/golang/freetype/testdata/COPYING deleted file mode 100644 index 78c6065..0000000 --- a/vendor/github.com/golang/freetype/testdata/COPYING +++ /dev/null @@ -1,42 +0,0 @@ -Luxi fonts copyright (c) 2001 by Bigelow & Holmes Inc. Luxi font -instruction code copyright (c) 2001 by URW++ GmbH. All Rights -Reserved. Luxi is a registered trademark of Bigelow & Holmes Inc. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of these Fonts and associated documentation files (the "Font -Software"), to deal in the Font Software, including without -limitation the rights to use, copy, merge, publish, distribute, -sublicense, and/or sell copies of the Font Software, and to permit -persons to whom the Font Software is furnished to do so, subject to -the following conditions: - -The above copyright and trademark notices and this permission notice -shall be included in all copies of one or more of the Font Software. - -The Font Software may not be modified, altered, or added to, and in -particular the designs of glyphs or characters in the Fonts may not -be modified nor may additional glyphs or characters be added to the -Fonts. This License becomes null and void when the Fonts or Font -Software have been modified. - -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL -BIGELOW & HOLMES INC. OR URW++ GMBH. BE LIABLE FOR ANY CLAIM, DAMAGES -OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, -INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF -CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR -INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT -SOFTWARE. - -Except as contained in this notice, the names of Bigelow & Holmes -Inc. and URW++ GmbH. shall not be used in advertising or otherwise to -promote the sale, use or other dealings in this Font Software without -prior written authorization from Bigelow & Holmes Inc. and URW++ GmbH. - -For further information, contact: - -info@urwpp.de -or -design@bigelowandholmes.com diff --git a/vendor/github.com/golang/freetype/truetype/face.go b/vendor/github.com/golang/freetype/truetype/face.go deleted file mode 100644 index 099006f..0000000 --- a/vendor/github.com/golang/freetype/truetype/face.go +++ /dev/null @@ -1,507 +0,0 @@ -// Copyright 2015 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -package truetype - -import ( - "image" - "math" - - "github.com/golang/freetype/raster" - "golang.org/x/image/font" - "golang.org/x/image/math/fixed" -) - -func powerOf2(i int) bool { - return i != 0 && (i&(i-1)) == 0 -} - -// Options are optional arguments to NewFace. -type Options struct { - // Size is the font size in points, as in "a 10 point font size". - // - // A zero value means to use a 12 point font size. - Size float64 - - // DPI is the dots-per-inch resolution. - // - // A zero value means to use 72 DPI. - DPI float64 - - // Hinting is how to quantize the glyph nodes. - // - // A zero value means to use no hinting. - Hinting font.Hinting - - // GlyphCacheEntries is the number of entries in the glyph mask image - // cache. - // - // If non-zero, it must be a power of 2. - // - // A zero value means to use 512 entries. - GlyphCacheEntries int - - // SubPixelsX is the number of sub-pixel locations a glyph's dot is - // quantized to, in the horizontal direction. For example, a value of 8 - // means that the dot is quantized to 1/8th of a pixel. This quantization - // only affects the glyph mask image, not its bounding box or advance - // width. A higher value gives a more faithful glyph image, but reduces the - // effectiveness of the glyph cache. - // - // If non-zero, it must be a power of 2, and be between 1 and 64 inclusive. - // - // A zero value means to use 4 sub-pixel locations. - SubPixelsX int - - // SubPixelsY is the number of sub-pixel locations a glyph's dot is - // quantized to, in the vertical direction. For example, a value of 8 - // means that the dot is quantized to 1/8th of a pixel. This quantization - // only affects the glyph mask image, not its bounding box or advance - // width. A higher value gives a more faithful glyph image, but reduces the - // effectiveness of the glyph cache. - // - // If non-zero, it must be a power of 2, and be between 1 and 64 inclusive. - // - // A zero value means to use 1 sub-pixel location. - SubPixelsY int -} - -func (o *Options) size() float64 { - if o != nil && o.Size > 0 { - return o.Size - } - return 12 -} - -func (o *Options) dpi() float64 { - if o != nil && o.DPI > 0 { - return o.DPI - } - return 72 -} - -func (o *Options) hinting() font.Hinting { - if o != nil { - switch o.Hinting { - case font.HintingVertical, font.HintingFull: - // TODO: support vertical hinting. - return font.HintingFull - } - } - return font.HintingNone -} - -func (o *Options) glyphCacheEntries() int { - if o != nil && powerOf2(o.GlyphCacheEntries) { - return o.GlyphCacheEntries - } - // 512 is 128 * 4 * 1, which lets us cache 128 glyphs at 4 * 1 subpixel - // locations in the X and Y direction. - return 512 -} - -func (o *Options) subPixelsX() (value uint32, halfQuantum, mask fixed.Int26_6) { - if o != nil { - switch o.SubPixelsX { - case 1, 2, 4, 8, 16, 32, 64: - return subPixels(o.SubPixelsX) - } - } - // This default value of 4 isn't based on anything scientific, merely as - // small a number as possible that looks almost as good as no quantization, - // or returning subPixels(64). - return subPixels(4) -} - -func (o *Options) subPixelsY() (value uint32, halfQuantum, mask fixed.Int26_6) { - if o != nil { - switch o.SubPixelsX { - case 1, 2, 4, 8, 16, 32, 64: - return subPixels(o.SubPixelsX) - } - } - // This default value of 1 isn't based on anything scientific, merely that - // vertical sub-pixel glyph rendering is pretty rare. Baseline locations - // can usually afford to snap to the pixel grid, so the vertical direction - // doesn't have the deal with the horizontal's fractional advance widths. - return subPixels(1) -} - -// subPixels returns q and the bias and mask that leads to q quantized -// sub-pixel locations per full pixel. -// -// For example, q == 4 leads to a bias of 8 and a mask of 0xfffffff0, or -16, -// because we want to round fractions of fixed.Int26_6 as: -// - 0 to 7 rounds to 0. -// - 8 to 23 rounds to 16. -// - 24 to 39 rounds to 32. -// - 40 to 55 rounds to 48. -// - 56 to 63 rounds to 64. -// which means to add 8 and then bitwise-and with -16, in two's complement -// representation. -// -// When q == 1, we want bias == 32 and mask == -64. -// When q == 2, we want bias == 16 and mask == -32. -// When q == 4, we want bias == 8 and mask == -16. -// ... -// When q == 64, we want bias == 0 and mask == -1. (The no-op case). -// The pattern is clear. -func subPixels(q int) (value uint32, bias, mask fixed.Int26_6) { - return uint32(q), 32 / fixed.Int26_6(q), -64 / fixed.Int26_6(q) -} - -// glyphCacheEntry caches the arguments and return values of rasterize. -type glyphCacheEntry struct { - key glyphCacheKey - val glyphCacheVal -} - -type glyphCacheKey struct { - index Index - fx, fy uint8 -} - -type glyphCacheVal struct { - advanceWidth fixed.Int26_6 - offset image.Point - gw int - gh int -} - -type indexCacheEntry struct { - rune rune - index Index -} - -// NewFace returns a new font.Face for the given Font. -func NewFace(f *Font, opts *Options) font.Face { - a := &face{ - f: f, - hinting: opts.hinting(), - scale: fixed.Int26_6(0.5 + (opts.size() * opts.dpi() * 64 / 72)), - glyphCache: make([]glyphCacheEntry, opts.glyphCacheEntries()), - } - a.subPixelX, a.subPixelBiasX, a.subPixelMaskX = opts.subPixelsX() - a.subPixelY, a.subPixelBiasY, a.subPixelMaskY = opts.subPixelsY() - - // Fill the cache with invalid entries. Valid glyph cache entries have fx - // and fy in the range [0, 64). Valid index cache entries have rune >= 0. - for i := range a.glyphCache { - a.glyphCache[i].key.fy = 0xff - } - for i := range a.indexCache { - a.indexCache[i].rune = -1 - } - - // Set the rasterizer's bounds to be big enough to handle the largest glyph. - b := f.Bounds(a.scale) - xmin := +int(b.Min.X) >> 6 - ymin := -int(b.Max.Y) >> 6 - xmax := +int(b.Max.X+63) >> 6 - ymax := -int(b.Min.Y-63) >> 6 - a.maxw = xmax - xmin - a.maxh = ymax - ymin - a.masks = image.NewAlpha(image.Rect(0, 0, a.maxw, a.maxh*len(a.glyphCache))) - a.r.SetBounds(a.maxw, a.maxh) - a.p = facePainter{a} - - return a -} - -type face struct { - f *Font - hinting font.Hinting - scale fixed.Int26_6 - subPixelX uint32 - subPixelBiasX fixed.Int26_6 - subPixelMaskX fixed.Int26_6 - subPixelY uint32 - subPixelBiasY fixed.Int26_6 - subPixelMaskY fixed.Int26_6 - masks *image.Alpha - glyphCache []glyphCacheEntry - r raster.Rasterizer - p raster.Painter - paintOffset int - maxw int - maxh int - glyphBuf GlyphBuf - indexCache [indexCacheLen]indexCacheEntry - - // TODO: clip rectangle? -} - -const indexCacheLen = 256 - -func (a *face) index(r rune) Index { - const mask = indexCacheLen - 1 - c := &a.indexCache[r&mask] - if c.rune == r { - return c.index - } - i := a.f.Index(r) - c.rune = r - c.index = i - return i -} - -// Close satisfies the font.Face interface. -func (a *face) Close() error { return nil } - -// Metrics satisfies the font.Face interface. -func (a *face) Metrics() font.Metrics { - scale := float64(a.scale) - fupe := float64(a.f.FUnitsPerEm()) - return font.Metrics{ - Height: a.scale, - Ascent: fixed.Int26_6(math.Ceil(scale * float64(+a.f.ascent) / fupe)), - Descent: fixed.Int26_6(math.Ceil(scale * float64(-a.f.descent) / fupe)), - } -} - -// Kern satisfies the font.Face interface. -func (a *face) Kern(r0, r1 rune) fixed.Int26_6 { - i0 := a.index(r0) - i1 := a.index(r1) - kern := a.f.Kern(a.scale, i0, i1) - if a.hinting != font.HintingNone { - kern = (kern + 32) &^ 63 - } - return kern -} - -// Glyph satisfies the font.Face interface. -func (a *face) Glyph(dot fixed.Point26_6, r rune) ( - dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool) { - - // Quantize to the sub-pixel granularity. - dotX := (dot.X + a.subPixelBiasX) & a.subPixelMaskX - dotY := (dot.Y + a.subPixelBiasY) & a.subPixelMaskY - - // Split the coordinates into their integer and fractional parts. - ix, fx := int(dotX>>6), dotX&0x3f - iy, fy := int(dotY>>6), dotY&0x3f - - index := a.index(r) - cIndex := uint32(index) - cIndex = cIndex*a.subPixelX - uint32(fx/a.subPixelMaskX) - cIndex = cIndex*a.subPixelY - uint32(fy/a.subPixelMaskY) - cIndex &= uint32(len(a.glyphCache) - 1) - a.paintOffset = a.maxh * int(cIndex) - k := glyphCacheKey{ - index: index, - fx: uint8(fx), - fy: uint8(fy), - } - var v glyphCacheVal - if a.glyphCache[cIndex].key != k { - var ok bool - v, ok = a.rasterize(index, fx, fy) - if !ok { - return image.Rectangle{}, nil, image.Point{}, 0, false - } - a.glyphCache[cIndex] = glyphCacheEntry{k, v} - } else { - v = a.glyphCache[cIndex].val - } - - dr.Min = image.Point{ - X: ix + v.offset.X, - Y: iy + v.offset.Y, - } - dr.Max = image.Point{ - X: dr.Min.X + v.gw, - Y: dr.Min.Y + v.gh, - } - return dr, a.masks, image.Point{Y: a.paintOffset}, v.advanceWidth, true -} - -func (a *face) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool) { - if err := a.glyphBuf.Load(a.f, a.scale, a.index(r), a.hinting); err != nil { - return fixed.Rectangle26_6{}, 0, false - } - xmin := +a.glyphBuf.Bounds.Min.X - ymin := -a.glyphBuf.Bounds.Max.Y - xmax := +a.glyphBuf.Bounds.Max.X - ymax := -a.glyphBuf.Bounds.Min.Y - if xmin > xmax || ymin > ymax { - return fixed.Rectangle26_6{}, 0, false - } - return fixed.Rectangle26_6{ - Min: fixed.Point26_6{ - X: xmin, - Y: ymin, - }, - Max: fixed.Point26_6{ - X: xmax, - Y: ymax, - }, - }, a.glyphBuf.AdvanceWidth, true -} - -func (a *face) GlyphAdvance(r rune) (advance fixed.Int26_6, ok bool) { - if err := a.glyphBuf.Load(a.f, a.scale, a.index(r), a.hinting); err != nil { - return 0, false - } - return a.glyphBuf.AdvanceWidth, true -} - -// rasterize returns the advance width, integer-pixel offset to render at, and -// the width and height of the given glyph at the given sub-pixel offsets. -// -// The 26.6 fixed point arguments fx and fy must be in the range [0, 1). -func (a *face) rasterize(index Index, fx, fy fixed.Int26_6) (v glyphCacheVal, ok bool) { - if err := a.glyphBuf.Load(a.f, a.scale, index, a.hinting); err != nil { - return glyphCacheVal{}, false - } - // Calculate the integer-pixel bounds for the glyph. - xmin := int(fx+a.glyphBuf.Bounds.Min.X) >> 6 - ymin := int(fy-a.glyphBuf.Bounds.Max.Y) >> 6 - xmax := int(fx+a.glyphBuf.Bounds.Max.X+0x3f) >> 6 - ymax := int(fy-a.glyphBuf.Bounds.Min.Y+0x3f) >> 6 - if xmin > xmax || ymin > ymax { - return glyphCacheVal{}, false - } - // A TrueType's glyph's nodes can have negative co-ordinates, but the - // rasterizer clips anything left of x=0 or above y=0. xmin and ymin are - // the pixel offsets, based on the font's FUnit metrics, that let a - // negative co-ordinate in TrueType space be non-negative in rasterizer - // space. xmin and ymin are typically <= 0. - fx -= fixed.Int26_6(xmin << 6) - fy -= fixed.Int26_6(ymin << 6) - // Rasterize the glyph's vectors. - a.r.Clear() - pixOffset := a.paintOffset * a.maxw - clear(a.masks.Pix[pixOffset : pixOffset+a.maxw*a.maxh]) - e0 := 0 - for _, e1 := range a.glyphBuf.Ends { - a.drawContour(a.glyphBuf.Points[e0:e1], fx, fy) - e0 = e1 - } - a.r.Rasterize(a.p) - return glyphCacheVal{ - a.glyphBuf.AdvanceWidth, - image.Point{xmin, ymin}, - xmax - xmin, - ymax - ymin, - }, true -} - -func clear(pix []byte) { - for i := range pix { - pix[i] = 0 - } -} - -// drawContour draws the given closed contour with the given offset. -func (a *face) drawContour(ps []Point, dx, dy fixed.Int26_6) { - if len(ps) == 0 { - return - } - - // The low bit of each point's Flags value is whether the point is on the - // curve. Truetype fonts only have quadratic Bézier curves, not cubics. - // Thus, two consecutive off-curve points imply an on-curve point in the - // middle of those two. - // - // See http://chanae.walon.org/pub/ttf/ttf_glyphs.htm for more details. - - // ps[0] is a truetype.Point measured in FUnits and positive Y going - // upwards. start is the same thing measured in fixed point units and - // positive Y going downwards, and offset by (dx, dy). - start := fixed.Point26_6{ - X: dx + ps[0].X, - Y: dy - ps[0].Y, - } - var others []Point - if ps[0].Flags&0x01 != 0 { - others = ps[1:] - } else { - last := fixed.Point26_6{ - X: dx + ps[len(ps)-1].X, - Y: dy - ps[len(ps)-1].Y, - } - if ps[len(ps)-1].Flags&0x01 != 0 { - start = last - others = ps[:len(ps)-1] - } else { - start = fixed.Point26_6{ - X: (start.X + last.X) / 2, - Y: (start.Y + last.Y) / 2, - } - others = ps - } - } - a.r.Start(start) - q0, on0 := start, true - for _, p := range others { - q := fixed.Point26_6{ - X: dx + p.X, - Y: dy - p.Y, - } - on := p.Flags&0x01 != 0 - if on { - if on0 { - a.r.Add1(q) - } else { - a.r.Add2(q0, q) - } - } else { - if on0 { - // No-op. - } else { - mid := fixed.Point26_6{ - X: (q0.X + q.X) / 2, - Y: (q0.Y + q.Y) / 2, - } - a.r.Add2(q0, mid) - } - } - q0, on0 = q, on - } - // Close the curve. - if on0 { - a.r.Add1(start) - } else { - a.r.Add2(q0, start) - } -} - -// facePainter is like a raster.AlphaSrcPainter, with an additional Y offset -// (face.paintOffset) to the painted spans. -type facePainter struct { - a *face -} - -func (p facePainter) Paint(ss []raster.Span, done bool) { - m := p.a.masks - b := m.Bounds() - b.Min.Y = p.a.paintOffset - b.Max.Y = p.a.paintOffset + p.a.maxh - for _, s := range ss { - s.Y += p.a.paintOffset - if s.Y < b.Min.Y { - continue - } - if s.Y >= b.Max.Y { - return - } - if s.X0 < b.Min.X { - s.X0 = b.Min.X - } - if s.X1 > b.Max.X { - s.X1 = b.Max.X - } - if s.X0 >= s.X1 { - continue - } - base := (s.Y-m.Rect.Min.Y)*m.Stride - m.Rect.Min.X - p := m.Pix[base+s.X0 : base+s.X1] - color := uint8(s.Alpha >> 8) - for i := range p { - p[i] = color - } - } -} diff --git a/vendor/github.com/golang/freetype/truetype/glyph.go b/vendor/github.com/golang/freetype/truetype/glyph.go deleted file mode 100644 index 6157ad8..0000000 --- a/vendor/github.com/golang/freetype/truetype/glyph.go +++ /dev/null @@ -1,522 +0,0 @@ -// Copyright 2010 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -package truetype - -import ( - "golang.org/x/image/font" - "golang.org/x/image/math/fixed" -) - -// TODO: implement VerticalHinting. - -// A Point is a co-ordinate pair plus whether it is 'on' a contour or an 'off' -// control point. -type Point struct { - X, Y fixed.Int26_6 - // The Flags' LSB means whether or not this Point is 'on' the contour. - // Other bits are reserved for internal use. - Flags uint32 -} - -// A GlyphBuf holds a glyph's contours. A GlyphBuf can be re-used to load a -// series of glyphs from a Font. -type GlyphBuf struct { - // AdvanceWidth is the glyph's advance width. - AdvanceWidth fixed.Int26_6 - // Bounds is the glyph's bounding box. - Bounds fixed.Rectangle26_6 - // Points contains all Points from all contours of the glyph. If hinting - // was used to load a glyph then Unhinted contains those Points before they - // were hinted, and InFontUnits contains those Points before they were - // hinted and scaled. - Points, Unhinted, InFontUnits []Point - // Ends is the point indexes of the end point of each contour. The length - // of Ends is the number of contours in the glyph. The i'th contour - // consists of points Points[Ends[i-1]:Ends[i]], where Ends[-1] is - // interpreted to mean zero. - Ends []int - - font *Font - scale fixed.Int26_6 - hinting font.Hinting - hinter hinter - // phantomPoints are the co-ordinates of the synthetic phantom points - // used for hinting and bounding box calculations. - phantomPoints [4]Point - // pp1x is the X co-ordinate of the first phantom point. The '1' is - // using 1-based indexing; pp1x is almost always phantomPoints[0].X. - // TODO: eliminate this and consistently use phantomPoints[0].X. - pp1x fixed.Int26_6 - // metricsSet is whether the glyph's metrics have been set yet. For a - // compound glyph, a sub-glyph may override the outer glyph's metrics. - metricsSet bool - // tmp is a scratch buffer. - tmp []Point -} - -// Flags for decoding a glyph's contours. These flags are documented at -// http://developer.apple.com/fonts/TTRefMan/RM06/Chap6glyf.html. -const ( - flagOnCurve = 1 << iota - flagXShortVector - flagYShortVector - flagRepeat - flagPositiveXShortVector - flagPositiveYShortVector - - // The remaining flags are for internal use. - flagTouchedX - flagTouchedY -) - -// The same flag bits (0x10 and 0x20) are overloaded to have two meanings, -// dependent on the value of the flag{X,Y}ShortVector bits. -const ( - flagThisXIsSame = flagPositiveXShortVector - flagThisYIsSame = flagPositiveYShortVector -) - -// Load loads a glyph's contours from a Font, overwriting any previously loaded -// contours for this GlyphBuf. scale is the number of 26.6 fixed point units in -// 1 em, i is the glyph index, and h is the hinting policy. -func (g *GlyphBuf) Load(f *Font, scale fixed.Int26_6, i Index, h font.Hinting) error { - g.Points = g.Points[:0] - g.Unhinted = g.Unhinted[:0] - g.InFontUnits = g.InFontUnits[:0] - g.Ends = g.Ends[:0] - g.font = f - g.hinting = h - g.scale = scale - g.pp1x = 0 - g.phantomPoints = [4]Point{} - g.metricsSet = false - - if h != font.HintingNone { - if err := g.hinter.init(f, scale); err != nil { - return err - } - } - if err := g.load(0, i, true); err != nil { - return err - } - // TODO: this selection of either g.pp1x or g.phantomPoints[0].X isn't ideal, - // and should be cleaned up once we have all the testScaling tests passing, - // plus additional tests for Freetype-Go's bounding boxes matching C Freetype's. - pp1x := g.pp1x - if h != font.HintingNone { - pp1x = g.phantomPoints[0].X - } - if pp1x != 0 { - for i := range g.Points { - g.Points[i].X -= pp1x - } - } - - advanceWidth := g.phantomPoints[1].X - g.phantomPoints[0].X - if h != font.HintingNone { - if len(f.hdmx) >= 8 { - if n := u32(f.hdmx, 4); n > 3+uint32(i) { - for hdmx := f.hdmx[8:]; uint32(len(hdmx)) >= n; hdmx = hdmx[n:] { - if fixed.Int26_6(hdmx[0]) == scale>>6 { - advanceWidth = fixed.Int26_6(hdmx[2+i]) << 6 - break - } - } - } - } - advanceWidth = (advanceWidth + 32) &^ 63 - } - g.AdvanceWidth = advanceWidth - - // Set g.Bounds to the 'control box', which is the bounding box of the - // Bézier curves' control points. This is easier to calculate, no smaller - // than and often equal to the tightest possible bounding box of the curves - // themselves. This approach is what C Freetype does. We can't just scale - // the nominal bounding box in the glyf data as the hinting process and - // phantom point adjustment may move points outside of that box. - if len(g.Points) == 0 { - g.Bounds = fixed.Rectangle26_6{} - } else { - p := g.Points[0] - g.Bounds.Min.X = p.X - g.Bounds.Max.X = p.X - g.Bounds.Min.Y = p.Y - g.Bounds.Max.Y = p.Y - for _, p := range g.Points[1:] { - if g.Bounds.Min.X > p.X { - g.Bounds.Min.X = p.X - } else if g.Bounds.Max.X < p.X { - g.Bounds.Max.X = p.X - } - if g.Bounds.Min.Y > p.Y { - g.Bounds.Min.Y = p.Y - } else if g.Bounds.Max.Y < p.Y { - g.Bounds.Max.Y = p.Y - } - } - // Snap the box to the grid, if hinting is on. - if h != font.HintingNone { - g.Bounds.Min.X &^= 63 - g.Bounds.Min.Y &^= 63 - g.Bounds.Max.X += 63 - g.Bounds.Max.X &^= 63 - g.Bounds.Max.Y += 63 - g.Bounds.Max.Y &^= 63 - } - } - return nil -} - -func (g *GlyphBuf) load(recursion uint32, i Index, useMyMetrics bool) (err error) { - // The recursion limit here is arbitrary, but defends against malformed glyphs. - if recursion >= 32 { - return UnsupportedError("excessive compound glyph recursion") - } - // Find the relevant slice of g.font.glyf. - var g0, g1 uint32 - if g.font.locaOffsetFormat == locaOffsetFormatShort { - g0 = 2 * uint32(u16(g.font.loca, 2*int(i))) - g1 = 2 * uint32(u16(g.font.loca, 2*int(i)+2)) - } else { - g0 = u32(g.font.loca, 4*int(i)) - g1 = u32(g.font.loca, 4*int(i)+4) - } - - // Decode the contour count and nominal bounding box, from the first - // 10 bytes of the glyf data. boundsYMin and boundsXMax, at offsets 4 - // and 6, are unused. - glyf, ne, boundsXMin, boundsYMax := []byte(nil), 0, fixed.Int26_6(0), fixed.Int26_6(0) - if g0+10 <= g1 { - glyf = g.font.glyf[g0:g1] - ne = int(int16(u16(glyf, 0))) - boundsXMin = fixed.Int26_6(int16(u16(glyf, 2))) - boundsYMax = fixed.Int26_6(int16(u16(glyf, 8))) - } - - // Create the phantom points. - uhm, pp1x := g.font.unscaledHMetric(i), fixed.Int26_6(0) - uvm := g.font.unscaledVMetric(i, boundsYMax) - g.phantomPoints = [4]Point{ - {X: boundsXMin - uhm.LeftSideBearing}, - {X: boundsXMin - uhm.LeftSideBearing + uhm.AdvanceWidth}, - {X: uhm.AdvanceWidth / 2, Y: boundsYMax + uvm.TopSideBearing}, - {X: uhm.AdvanceWidth / 2, Y: boundsYMax + uvm.TopSideBearing - uvm.AdvanceHeight}, - } - if len(glyf) == 0 { - g.addPhantomsAndScale(len(g.Points), len(g.Points), true, true) - copy(g.phantomPoints[:], g.Points[len(g.Points)-4:]) - g.Points = g.Points[:len(g.Points)-4] - // TODO: also trim g.InFontUnits and g.Unhinted? - return nil - } - - // Load and hint the contours. - if ne < 0 { - if ne != -1 { - // http://developer.apple.com/fonts/TTRefMan/RM06/Chap6glyf.html says that - // "the values -2, -3, and so forth, are reserved for future use." - return UnsupportedError("negative number of contours") - } - pp1x = g.font.scale(g.scale * (boundsXMin - uhm.LeftSideBearing)) - if err := g.loadCompound(recursion, uhm, i, glyf, useMyMetrics); err != nil { - return err - } - } else { - np0, ne0 := len(g.Points), len(g.Ends) - program := g.loadSimple(glyf, ne) - g.addPhantomsAndScale(np0, np0, true, true) - pp1x = g.Points[len(g.Points)-4].X - if g.hinting != font.HintingNone { - if len(program) != 0 { - err := g.hinter.run( - program, - g.Points[np0:], - g.Unhinted[np0:], - g.InFontUnits[np0:], - g.Ends[ne0:], - ) - if err != nil { - return err - } - } - // Drop the four phantom points. - g.InFontUnits = g.InFontUnits[:len(g.InFontUnits)-4] - g.Unhinted = g.Unhinted[:len(g.Unhinted)-4] - } - if useMyMetrics { - copy(g.phantomPoints[:], g.Points[len(g.Points)-4:]) - } - g.Points = g.Points[:len(g.Points)-4] - if np0 != 0 { - // The hinting program expects the []Ends values to be indexed - // relative to the inner glyph, not the outer glyph, so we delay - // adding np0 until after the hinting program (if any) has run. - for i := ne0; i < len(g.Ends); i++ { - g.Ends[i] += np0 - } - } - } - if useMyMetrics && !g.metricsSet { - g.metricsSet = true - g.pp1x = pp1x - } - return nil -} - -// loadOffset is the initial offset for loadSimple and loadCompound. The first -// 10 bytes are the number of contours and the bounding box. -const loadOffset = 10 - -func (g *GlyphBuf) loadSimple(glyf []byte, ne int) (program []byte) { - offset := loadOffset - for i := 0; i < ne; i++ { - g.Ends = append(g.Ends, 1+int(u16(glyf, offset))) - offset += 2 - } - - // Note the TrueType hinting instructions. - instrLen := int(u16(glyf, offset)) - offset += 2 - program = glyf[offset : offset+instrLen] - offset += instrLen - - if ne == 0 { - return program - } - - np0 := len(g.Points) - np1 := np0 + int(g.Ends[len(g.Ends)-1]) - - // Decode the flags. - for i := np0; i < np1; { - c := uint32(glyf[offset]) - offset++ - g.Points = append(g.Points, Point{Flags: c}) - i++ - if c&flagRepeat != 0 { - count := glyf[offset] - offset++ - for ; count > 0; count-- { - g.Points = append(g.Points, Point{Flags: c}) - i++ - } - } - } - - // Decode the co-ordinates. - var x int16 - for i := np0; i < np1; i++ { - f := g.Points[i].Flags - if f&flagXShortVector != 0 { - dx := int16(glyf[offset]) - offset++ - if f&flagPositiveXShortVector == 0 { - x -= dx - } else { - x += dx - } - } else if f&flagThisXIsSame == 0 { - x += int16(u16(glyf, offset)) - offset += 2 - } - g.Points[i].X = fixed.Int26_6(x) - } - var y int16 - for i := np0; i < np1; i++ { - f := g.Points[i].Flags - if f&flagYShortVector != 0 { - dy := int16(glyf[offset]) - offset++ - if f&flagPositiveYShortVector == 0 { - y -= dy - } else { - y += dy - } - } else if f&flagThisYIsSame == 0 { - y += int16(u16(glyf, offset)) - offset += 2 - } - g.Points[i].Y = fixed.Int26_6(y) - } - - return program -} - -func (g *GlyphBuf) loadCompound(recursion uint32, uhm HMetric, i Index, - glyf []byte, useMyMetrics bool) error { - - // Flags for decoding a compound glyph. These flags are documented at - // http://developer.apple.com/fonts/TTRefMan/RM06/Chap6glyf.html. - const ( - flagArg1And2AreWords = 1 << iota - flagArgsAreXYValues - flagRoundXYToGrid - flagWeHaveAScale - flagUnused - flagMoreComponents - flagWeHaveAnXAndYScale - flagWeHaveATwoByTwo - flagWeHaveInstructions - flagUseMyMetrics - flagOverlapCompound - ) - np0, ne0 := len(g.Points), len(g.Ends) - offset := loadOffset - for { - flags := u16(glyf, offset) - component := Index(u16(glyf, offset+2)) - dx, dy, transform, hasTransform := fixed.Int26_6(0), fixed.Int26_6(0), [4]int16{}, false - if flags&flagArg1And2AreWords != 0 { - dx = fixed.Int26_6(int16(u16(glyf, offset+4))) - dy = fixed.Int26_6(int16(u16(glyf, offset+6))) - offset += 8 - } else { - dx = fixed.Int26_6(int16(int8(glyf[offset+4]))) - dy = fixed.Int26_6(int16(int8(glyf[offset+5]))) - offset += 6 - } - if flags&flagArgsAreXYValues == 0 { - return UnsupportedError("compound glyph transform vector") - } - if flags&(flagWeHaveAScale|flagWeHaveAnXAndYScale|flagWeHaveATwoByTwo) != 0 { - hasTransform = true - switch { - case flags&flagWeHaveAScale != 0: - transform[0] = int16(u16(glyf, offset+0)) - transform[3] = transform[0] - offset += 2 - case flags&flagWeHaveAnXAndYScale != 0: - transform[0] = int16(u16(glyf, offset+0)) - transform[3] = int16(u16(glyf, offset+2)) - offset += 4 - case flags&flagWeHaveATwoByTwo != 0: - transform[0] = int16(u16(glyf, offset+0)) - transform[1] = int16(u16(glyf, offset+2)) - transform[2] = int16(u16(glyf, offset+4)) - transform[3] = int16(u16(glyf, offset+6)) - offset += 8 - } - } - savedPP := g.phantomPoints - np0 := len(g.Points) - componentUMM := useMyMetrics && (flags&flagUseMyMetrics != 0) - if err := g.load(recursion+1, component, componentUMM); err != nil { - return err - } - if flags&flagUseMyMetrics == 0 { - g.phantomPoints = savedPP - } - if hasTransform { - for j := np0; j < len(g.Points); j++ { - p := &g.Points[j] - newX := 0 + - fixed.Int26_6((int64(p.X)*int64(transform[0])+1<<13)>>14) + - fixed.Int26_6((int64(p.Y)*int64(transform[2])+1<<13)>>14) - newY := 0 + - fixed.Int26_6((int64(p.X)*int64(transform[1])+1<<13)>>14) + - fixed.Int26_6((int64(p.Y)*int64(transform[3])+1<<13)>>14) - p.X, p.Y = newX, newY - } - } - dx = g.font.scale(g.scale * dx) - dy = g.font.scale(g.scale * dy) - if flags&flagRoundXYToGrid != 0 { - dx = (dx + 32) &^ 63 - dy = (dy + 32) &^ 63 - } - for j := np0; j < len(g.Points); j++ { - p := &g.Points[j] - p.X += dx - p.Y += dy - } - // TODO: also adjust g.InFontUnits and g.Unhinted? - if flags&flagMoreComponents == 0 { - break - } - } - - instrLen := 0 - if g.hinting != font.HintingNone && offset+2 <= len(glyf) { - instrLen = int(u16(glyf, offset)) - offset += 2 - } - - g.addPhantomsAndScale(np0, len(g.Points), false, instrLen > 0) - points, ends := g.Points[np0:], g.Ends[ne0:] - g.Points = g.Points[:len(g.Points)-4] - for j := range points { - points[j].Flags &^= flagTouchedX | flagTouchedY - } - - if instrLen == 0 { - if !g.metricsSet { - copy(g.phantomPoints[:], points[len(points)-4:]) - } - return nil - } - - // Hint the compound glyph. - program := glyf[offset : offset+instrLen] - // Temporarily adjust the ends to be relative to this compound glyph. - if np0 != 0 { - for i := range ends { - ends[i] -= np0 - } - } - // Hinting instructions of a composite glyph completely refer to the - // (already) hinted subglyphs. - g.tmp = append(g.tmp[:0], points...) - if err := g.hinter.run(program, points, g.tmp, g.tmp, ends); err != nil { - return err - } - if np0 != 0 { - for i := range ends { - ends[i] += np0 - } - } - if !g.metricsSet { - copy(g.phantomPoints[:], points[len(points)-4:]) - } - return nil -} - -func (g *GlyphBuf) addPhantomsAndScale(np0, np1 int, simple, adjust bool) { - // Add the four phantom points. - g.Points = append(g.Points, g.phantomPoints[:]...) - // Scale the points. - if simple && g.hinting != font.HintingNone { - g.InFontUnits = append(g.InFontUnits, g.Points[np1:]...) - } - for i := np1; i < len(g.Points); i++ { - p := &g.Points[i] - p.X = g.font.scale(g.scale * p.X) - p.Y = g.font.scale(g.scale * p.Y) - } - if g.hinting == font.HintingNone { - return - } - // Round the 1st phantom point to the grid, shifting all other points equally. - // Note that "all other points" starts from np0, not np1. - // TODO: delete this adjustment and the np0/np1 distinction, when - // we update the compatibility tests to C Freetype 2.5.3. - // See http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=05c786d990390a7ca18e62962641dac740bacb06 - if adjust { - pp1x := g.Points[len(g.Points)-4].X - if dx := ((pp1x + 32) &^ 63) - pp1x; dx != 0 { - for i := np0; i < len(g.Points); i++ { - g.Points[i].X += dx - } - } - } - if simple { - g.Unhinted = append(g.Unhinted, g.Points[np1:]...) - } - // Round the 2nd and 4th phantom point to the grid. - p := &g.Points[len(g.Points)-3] - p.X = (p.X + 32) &^ 63 - p = &g.Points[len(g.Points)-1] - p.Y = (p.Y + 32) &^ 63 -} diff --git a/vendor/github.com/golang/freetype/truetype/hint.go b/vendor/github.com/golang/freetype/truetype/hint.go deleted file mode 100644 index 13f785b..0000000 --- a/vendor/github.com/golang/freetype/truetype/hint.go +++ /dev/null @@ -1,1770 +0,0 @@ -// Copyright 2012 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -package truetype - -// This file implements a Truetype bytecode interpreter. -// The opcodes are described at https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html - -import ( - "errors" - "math" - - "golang.org/x/image/math/fixed" -) - -const ( - twilightZone = 0 - glyphZone = 1 - numZone = 2 -) - -type pointType uint32 - -const ( - current pointType = 0 - unhinted pointType = 1 - inFontUnits pointType = 2 - numPointType = 3 -) - -// callStackEntry is a bytecode call stack entry. -type callStackEntry struct { - program []byte - pc int - loopCount int32 -} - -// hinter implements bytecode hinting. A hinter can be re-used to hint a series -// of glyphs from a Font. -type hinter struct { - stack, store []int32 - - // functions is a map from function number to bytecode. - functions map[int32][]byte - - // font and scale are the font and scale last used for this hinter. - // Changing the font will require running the new font's fpgm bytecode. - // Changing either will require running the font's prep bytecode. - font *Font - scale fixed.Int26_6 - - // gs and defaultGS are the current and default graphics state. The - // default graphics state is the global default graphics state after - // the font's fpgm and prep programs have been run. - gs, defaultGS graphicsState - - // points and ends are the twilight zone's points, glyph's points - // and glyph's contour boundaries. - points [numZone][numPointType][]Point - ends []int - - // scaledCVT is the lazily initialized scaled Control Value Table. - scaledCVTInitialized bool - scaledCVT []fixed.Int26_6 -} - -// graphicsState is described at https://developer.apple.com/fonts/TTRefMan/RM04/Chap4.html -type graphicsState struct { - // Projection vector, freedom vector and dual projection vector. - pv, fv, dv [2]f2dot14 - // Reference points and zone pointers. - rp, zp [3]int32 - // Control Value / Single Width Cut-In. - controlValueCutIn, singleWidthCutIn, singleWidth fixed.Int26_6 - // Delta base / shift. - deltaBase, deltaShift int32 - // Minimum distance. - minDist fixed.Int26_6 - // Loop count. - loop int32 - // Rounding policy. - roundPeriod, roundPhase, roundThreshold fixed.Int26_6 - roundSuper45 bool - // Auto-flip. - autoFlip bool -} - -var globalDefaultGS = graphicsState{ - pv: [2]f2dot14{0x4000, 0}, // Unit vector along the X axis. - fv: [2]f2dot14{0x4000, 0}, - dv: [2]f2dot14{0x4000, 0}, - zp: [3]int32{1, 1, 1}, - controlValueCutIn: (17 << 6) / 16, // 17/16 as a fixed.Int26_6. - deltaBase: 9, - deltaShift: 3, - minDist: 1 << 6, // 1 as a fixed.Int26_6. - loop: 1, - roundPeriod: 1 << 6, // 1 as a fixed.Int26_6. - roundThreshold: 1 << 5, // 1/2 as a fixed.Int26_6. - roundSuper45: false, - autoFlip: true, -} - -func resetTwilightPoints(f *Font, p []Point) []Point { - if n := int(f.maxTwilightPoints) + 4; n <= cap(p) { - p = p[:n] - for i := range p { - p[i] = Point{} - } - } else { - p = make([]Point, n) - } - return p -} - -func (h *hinter) init(f *Font, scale fixed.Int26_6) error { - h.points[twilightZone][0] = resetTwilightPoints(f, h.points[twilightZone][0]) - h.points[twilightZone][1] = resetTwilightPoints(f, h.points[twilightZone][1]) - h.points[twilightZone][2] = resetTwilightPoints(f, h.points[twilightZone][2]) - - rescale := h.scale != scale - if h.font != f { - h.font, rescale = f, true - if h.functions == nil { - h.functions = make(map[int32][]byte) - } else { - for k := range h.functions { - delete(h.functions, k) - } - } - - if x := int(f.maxStackElements); x > len(h.stack) { - x += 255 - x &^= 255 - h.stack = make([]int32, x) - } - if x := int(f.maxStorage); x > len(h.store) { - x += 15 - x &^= 15 - h.store = make([]int32, x) - } - if len(f.fpgm) != 0 { - if err := h.run(f.fpgm, nil, nil, nil, nil); err != nil { - return err - } - } - } - - if rescale { - h.scale = scale - h.scaledCVTInitialized = false - - h.defaultGS = globalDefaultGS - - if len(f.prep) != 0 { - if err := h.run(f.prep, nil, nil, nil, nil); err != nil { - return err - } - h.defaultGS = h.gs - // The MS rasterizer doesn't allow the following graphics state - // variables to be modified by the CVT program. - h.defaultGS.pv = globalDefaultGS.pv - h.defaultGS.fv = globalDefaultGS.fv - h.defaultGS.dv = globalDefaultGS.dv - h.defaultGS.rp = globalDefaultGS.rp - h.defaultGS.zp = globalDefaultGS.zp - h.defaultGS.loop = globalDefaultGS.loop - } - } - return nil -} - -func (h *hinter) run(program []byte, pCurrent, pUnhinted, pInFontUnits []Point, ends []int) error { - h.gs = h.defaultGS - h.points[glyphZone][current] = pCurrent - h.points[glyphZone][unhinted] = pUnhinted - h.points[glyphZone][inFontUnits] = pInFontUnits - h.ends = ends - - if len(program) > 50000 { - return errors.New("truetype: hinting: too many instructions") - } - var ( - steps, pc, top int - opcode uint8 - - callStack [32]callStackEntry - callStackTop int - ) - - for 0 <= pc && pc < len(program) { - steps++ - if steps == 100000 { - return errors.New("truetype: hinting: too many steps") - } - opcode = program[pc] - if top < int(popCount[opcode]) { - return errors.New("truetype: hinting: stack underflow") - } - switch opcode { - - case opSVTCA0: - h.gs.pv = [2]f2dot14{0, 0x4000} - h.gs.fv = [2]f2dot14{0, 0x4000} - h.gs.dv = [2]f2dot14{0, 0x4000} - - case opSVTCA1: - h.gs.pv = [2]f2dot14{0x4000, 0} - h.gs.fv = [2]f2dot14{0x4000, 0} - h.gs.dv = [2]f2dot14{0x4000, 0} - - case opSPVTCA0: - h.gs.pv = [2]f2dot14{0, 0x4000} - h.gs.dv = [2]f2dot14{0, 0x4000} - - case opSPVTCA1: - h.gs.pv = [2]f2dot14{0x4000, 0} - h.gs.dv = [2]f2dot14{0x4000, 0} - - case opSFVTCA0: - h.gs.fv = [2]f2dot14{0, 0x4000} - - case opSFVTCA1: - h.gs.fv = [2]f2dot14{0x4000, 0} - - case opSPVTL0, opSPVTL1, opSFVTL0, opSFVTL1: - top -= 2 - p1 := h.point(0, current, h.stack[top+0]) - p2 := h.point(0, current, h.stack[top+1]) - if p1 == nil || p2 == nil { - return errors.New("truetype: hinting: point out of range") - } - dx := f2dot14(p1.X - p2.X) - dy := f2dot14(p1.Y - p2.Y) - if dx == 0 && dy == 0 { - dx = 0x4000 - } else if opcode&1 != 0 { - // Counter-clockwise rotation. - dx, dy = -dy, dx - } - v := normalize(dx, dy) - if opcode < opSFVTL0 { - h.gs.pv = v - h.gs.dv = v - } else { - h.gs.fv = v - } - - case opSPVFS: - top -= 2 - h.gs.pv = normalize(f2dot14(h.stack[top]), f2dot14(h.stack[top+1])) - h.gs.dv = h.gs.pv - - case opSFVFS: - top -= 2 - h.gs.fv = normalize(f2dot14(h.stack[top]), f2dot14(h.stack[top+1])) - - case opGPV: - if top+1 >= len(h.stack) { - return errors.New("truetype: hinting: stack overflow") - } - h.stack[top+0] = int32(h.gs.pv[0]) - h.stack[top+1] = int32(h.gs.pv[1]) - top += 2 - - case opGFV: - if top+1 >= len(h.stack) { - return errors.New("truetype: hinting: stack overflow") - } - h.stack[top+0] = int32(h.gs.fv[0]) - h.stack[top+1] = int32(h.gs.fv[1]) - top += 2 - - case opSFVTPV: - h.gs.fv = h.gs.pv - - case opISECT: - top -= 5 - p := h.point(2, current, h.stack[top+0]) - a0 := h.point(1, current, h.stack[top+1]) - a1 := h.point(1, current, h.stack[top+2]) - b0 := h.point(0, current, h.stack[top+3]) - b1 := h.point(0, current, h.stack[top+4]) - if p == nil || a0 == nil || a1 == nil || b0 == nil || b1 == nil { - return errors.New("truetype: hinting: point out of range") - } - - dbx := b1.X - b0.X - dby := b1.Y - b0.Y - dax := a1.X - a0.X - day := a1.Y - a0.Y - dx := b0.X - a0.X - dy := b0.Y - a0.Y - discriminant := mulDiv(int64(dax), int64(-dby), 0x40) + - mulDiv(int64(day), int64(dbx), 0x40) - dotProduct := mulDiv(int64(dax), int64(dbx), 0x40) + - mulDiv(int64(day), int64(dby), 0x40) - // The discriminant above is actually a cross product of vectors - // da and db. Together with the dot product, they can be used as - // surrogates for sine and cosine of the angle between the vectors. - // Indeed, - // dotproduct = |da||db|cos(angle) - // discriminant = |da||db|sin(angle) - // We use these equations to reject grazing intersections by - // thresholding abs(tan(angle)) at 1/19, corresponding to 3 degrees. - absDisc, absDotP := discriminant, dotProduct - if absDisc < 0 { - absDisc = -absDisc - } - if absDotP < 0 { - absDotP = -absDotP - } - if 19*absDisc > absDotP { - val := mulDiv(int64(dx), int64(-dby), 0x40) + - mulDiv(int64(dy), int64(dbx), 0x40) - rx := mulDiv(val, int64(dax), discriminant) - ry := mulDiv(val, int64(day), discriminant) - p.X = a0.X + fixed.Int26_6(rx) - p.Y = a0.Y + fixed.Int26_6(ry) - } else { - p.X = (a0.X + a1.X + b0.X + b1.X) / 4 - p.Y = (a0.Y + a1.Y + b0.Y + b1.Y) / 4 - } - p.Flags |= flagTouchedX | flagTouchedY - - case opSRP0, opSRP1, opSRP2: - top-- - h.gs.rp[opcode-opSRP0] = h.stack[top] - - case opSZP0, opSZP1, opSZP2: - top-- - h.gs.zp[opcode-opSZP0] = h.stack[top] - - case opSZPS: - top-- - h.gs.zp[0] = h.stack[top] - h.gs.zp[1] = h.stack[top] - h.gs.zp[2] = h.stack[top] - - case opSLOOP: - top-- - // https://developer.apple.com/fonts/TrueType-Reference-Manual/RM05/Chap5.html#SLOOP - // says that "Setting the loop variable to zero is an error". In - // theory, the inequality on the next line should be "<=" instead - // of "<". In practice, some font files' bytecode, such as the '2' - // glyph in the DejaVuSansMono.ttf that comes with Ubuntu 14.04, - // issue SLOOP with a zero on top of the stack. Just like the C - // Freetype code, we allow the zero. - if h.stack[top] < 0 { - return errors.New("truetype: hinting: invalid data") - } - h.gs.loop = h.stack[top] - - case opRTG: - h.gs.roundPeriod = 1 << 6 - h.gs.roundPhase = 0 - h.gs.roundThreshold = 1 << 5 - h.gs.roundSuper45 = false - - case opRTHG: - h.gs.roundPeriod = 1 << 6 - h.gs.roundPhase = 1 << 5 - h.gs.roundThreshold = 1 << 5 - h.gs.roundSuper45 = false - - case opSMD: - top-- - h.gs.minDist = fixed.Int26_6(h.stack[top]) - - case opELSE: - opcode = 1 - goto ifelse - - case opJMPR: - top-- - pc += int(h.stack[top]) - continue - - case opSCVTCI: - top-- - h.gs.controlValueCutIn = fixed.Int26_6(h.stack[top]) - - case opSSWCI: - top-- - h.gs.singleWidthCutIn = fixed.Int26_6(h.stack[top]) - - case opSSW: - top-- - h.gs.singleWidth = h.font.scale(h.scale * fixed.Int26_6(h.stack[top])) - - case opDUP: - if top >= len(h.stack) { - return errors.New("truetype: hinting: stack overflow") - } - h.stack[top] = h.stack[top-1] - top++ - - case opPOP: - top-- - - case opCLEAR: - top = 0 - - case opSWAP: - h.stack[top-1], h.stack[top-2] = h.stack[top-2], h.stack[top-1] - - case opDEPTH: - if top >= len(h.stack) { - return errors.New("truetype: hinting: stack overflow") - } - h.stack[top] = int32(top) - top++ - - case opCINDEX, opMINDEX: - x := int(h.stack[top-1]) - if x <= 0 || x >= top { - return errors.New("truetype: hinting: invalid data") - } - h.stack[top-1] = h.stack[top-1-x] - if opcode == opMINDEX { - copy(h.stack[top-1-x:top-1], h.stack[top-x:top]) - top-- - } - - case opALIGNPTS: - top -= 2 - p := h.point(1, current, h.stack[top]) - q := h.point(0, current, h.stack[top+1]) - if p == nil || q == nil { - return errors.New("truetype: hinting: point out of range") - } - d := dotProduct(fixed.Int26_6(q.X-p.X), fixed.Int26_6(q.Y-p.Y), h.gs.pv) / 2 - h.move(p, +d, true) - h.move(q, -d, true) - - case opUTP: - top-- - p := h.point(0, current, h.stack[top]) - if p == nil { - return errors.New("truetype: hinting: point out of range") - } - p.Flags &^= flagTouchedX | flagTouchedY - - case opLOOPCALL, opCALL: - if callStackTop >= len(callStack) { - return errors.New("truetype: hinting: call stack overflow") - } - top-- - f, ok := h.functions[h.stack[top]] - if !ok { - return errors.New("truetype: hinting: undefined function") - } - callStack[callStackTop] = callStackEntry{program, pc, 1} - if opcode == opLOOPCALL { - top-- - if h.stack[top] == 0 { - break - } - callStack[callStackTop].loopCount = h.stack[top] - } - callStackTop++ - program, pc = f, 0 - continue - - case opFDEF: - // Save all bytecode up until the next ENDF. - startPC := pc + 1 - fdefloop: - for { - pc++ - if pc >= len(program) { - return errors.New("truetype: hinting: unbalanced FDEF") - } - switch program[pc] { - case opFDEF: - return errors.New("truetype: hinting: nested FDEF") - case opENDF: - top-- - h.functions[h.stack[top]] = program[startPC : pc+1] - break fdefloop - default: - var ok bool - pc, ok = skipInstructionPayload(program, pc) - if !ok { - return errors.New("truetype: hinting: unbalanced FDEF") - } - } - } - - case opENDF: - if callStackTop == 0 { - return errors.New("truetype: hinting: call stack underflow") - } - callStackTop-- - callStack[callStackTop].loopCount-- - if callStack[callStackTop].loopCount != 0 { - callStackTop++ - pc = 0 - continue - } - program, pc = callStack[callStackTop].program, callStack[callStackTop].pc - - case opMDAP0, opMDAP1: - top-- - i := h.stack[top] - p := h.point(0, current, i) - if p == nil { - return errors.New("truetype: hinting: point out of range") - } - distance := fixed.Int26_6(0) - if opcode == opMDAP1 { - distance = dotProduct(p.X, p.Y, h.gs.pv) - // TODO: metrics compensation. - distance = h.round(distance) - distance - } - h.move(p, distance, true) - h.gs.rp[0] = i - h.gs.rp[1] = i - - case opIUP0, opIUP1: - iupY, mask := opcode == opIUP0, uint32(flagTouchedX) - if iupY { - mask = flagTouchedY - } - prevEnd := 0 - for _, end := range h.ends { - for i := prevEnd; i < end; i++ { - for i < end && h.points[glyphZone][current][i].Flags&mask == 0 { - i++ - } - if i == end { - break - } - firstTouched, curTouched := i, i - i++ - for ; i < end; i++ { - if h.points[glyphZone][current][i].Flags&mask != 0 { - h.iupInterp(iupY, curTouched+1, i-1, curTouched, i) - curTouched = i - } - } - if curTouched == firstTouched { - h.iupShift(iupY, prevEnd, end, curTouched) - } else { - h.iupInterp(iupY, curTouched+1, end-1, curTouched, firstTouched) - if firstTouched > 0 { - h.iupInterp(iupY, prevEnd, firstTouched-1, curTouched, firstTouched) - } - } - } - prevEnd = end - } - - case opSHP0, opSHP1: - if top < int(h.gs.loop) { - return errors.New("truetype: hinting: stack underflow") - } - _, _, d, ok := h.displacement(opcode&1 == 0) - if !ok { - return errors.New("truetype: hinting: point out of range") - } - for ; h.gs.loop != 0; h.gs.loop-- { - top-- - p := h.point(2, current, h.stack[top]) - if p == nil { - return errors.New("truetype: hinting: point out of range") - } - h.move(p, d, true) - } - h.gs.loop = 1 - - case opSHC0, opSHC1: - top-- - zonePointer, i, d, ok := h.displacement(opcode&1 == 0) - if !ok { - return errors.New("truetype: hinting: point out of range") - } - if h.gs.zp[2] == 0 { - // TODO: implement this when we have a glyph that does this. - return errors.New("hinting: unimplemented SHC instruction") - } - contour := h.stack[top] - if contour < 0 || len(ends) <= int(contour) { - return errors.New("truetype: hinting: contour out of range") - } - j0, j1 := int32(0), int32(h.ends[contour]) - if contour > 0 { - j0 = int32(h.ends[contour-1]) - } - move := h.gs.zp[zonePointer] != h.gs.zp[2] - for j := j0; j < j1; j++ { - if move || j != i { - h.move(h.point(2, current, j), d, true) - } - } - - case opSHZ0, opSHZ1: - top-- - zonePointer, i, d, ok := h.displacement(opcode&1 == 0) - if !ok { - return errors.New("truetype: hinting: point out of range") - } - - // As per C Freetype, SHZ doesn't move the phantom points, or mark - // the points as touched. - limit := int32(len(h.points[h.gs.zp[2]][current])) - if h.gs.zp[2] == glyphZone { - limit -= 4 - } - for j := int32(0); j < limit; j++ { - if i != j || h.gs.zp[zonePointer] != h.gs.zp[2] { - h.move(h.point(2, current, j), d, false) - } - } - - case opSHPIX: - top-- - d := fixed.Int26_6(h.stack[top]) - if top < int(h.gs.loop) { - return errors.New("truetype: hinting: stack underflow") - } - for ; h.gs.loop != 0; h.gs.loop-- { - top-- - p := h.point(2, current, h.stack[top]) - if p == nil { - return errors.New("truetype: hinting: point out of range") - } - h.move(p, d, true) - } - h.gs.loop = 1 - - case opIP: - if top < int(h.gs.loop) { - return errors.New("truetype: hinting: stack underflow") - } - pointType := inFontUnits - twilight := h.gs.zp[0] == 0 || h.gs.zp[1] == 0 || h.gs.zp[2] == 0 - if twilight { - pointType = unhinted - } - p := h.point(1, pointType, h.gs.rp[2]) - oldP := h.point(0, pointType, h.gs.rp[1]) - oldRange := dotProduct(p.X-oldP.X, p.Y-oldP.Y, h.gs.dv) - - p = h.point(1, current, h.gs.rp[2]) - curP := h.point(0, current, h.gs.rp[1]) - curRange := dotProduct(p.X-curP.X, p.Y-curP.Y, h.gs.pv) - for ; h.gs.loop != 0; h.gs.loop-- { - top-- - i := h.stack[top] - p = h.point(2, pointType, i) - oldDist := dotProduct(p.X-oldP.X, p.Y-oldP.Y, h.gs.dv) - p = h.point(2, current, i) - curDist := dotProduct(p.X-curP.X, p.Y-curP.Y, h.gs.pv) - newDist := fixed.Int26_6(0) - if oldDist != 0 { - if oldRange != 0 { - newDist = fixed.Int26_6(mulDiv(int64(oldDist), int64(curRange), int64(oldRange))) - } else { - newDist = -oldDist - } - } - h.move(p, newDist-curDist, true) - } - h.gs.loop = 1 - - case opMSIRP0, opMSIRP1: - top -= 2 - i := h.stack[top] - distance := fixed.Int26_6(h.stack[top+1]) - - // TODO: special case h.gs.zp[1] == 0 in C Freetype. - ref := h.point(0, current, h.gs.rp[0]) - p := h.point(1, current, i) - if ref == nil || p == nil { - return errors.New("truetype: hinting: point out of range") - } - curDist := dotProduct(p.X-ref.X, p.Y-ref.Y, h.gs.pv) - - // Set-RP0 bit. - if opcode == opMSIRP1 { - h.gs.rp[0] = i - } - h.gs.rp[1] = h.gs.rp[0] - h.gs.rp[2] = i - - // Move the point. - h.move(p, distance-curDist, true) - - case opALIGNRP: - if top < int(h.gs.loop) { - return errors.New("truetype: hinting: stack underflow") - } - ref := h.point(0, current, h.gs.rp[0]) - if ref == nil { - return errors.New("truetype: hinting: point out of range") - } - for ; h.gs.loop != 0; h.gs.loop-- { - top-- - p := h.point(1, current, h.stack[top]) - if p == nil { - return errors.New("truetype: hinting: point out of range") - } - h.move(p, -dotProduct(p.X-ref.X, p.Y-ref.Y, h.gs.pv), true) - } - h.gs.loop = 1 - - case opRTDG: - h.gs.roundPeriod = 1 << 5 - h.gs.roundPhase = 0 - h.gs.roundThreshold = 1 << 4 - h.gs.roundSuper45 = false - - case opMIAP0, opMIAP1: - top -= 2 - i := h.stack[top] - distance := h.getScaledCVT(h.stack[top+1]) - if h.gs.zp[0] == 0 { - p := h.point(0, unhinted, i) - q := h.point(0, current, i) - p.X = fixed.Int26_6((int64(distance) * int64(h.gs.fv[0])) >> 14) - p.Y = fixed.Int26_6((int64(distance) * int64(h.gs.fv[1])) >> 14) - *q = *p - } - p := h.point(0, current, i) - oldDist := dotProduct(p.X, p.Y, h.gs.pv) - if opcode == opMIAP1 { - if fabs(distance-oldDist) > h.gs.controlValueCutIn { - distance = oldDist - } - // TODO: metrics compensation. - distance = h.round(distance) - } - h.move(p, distance-oldDist, true) - h.gs.rp[0] = i - h.gs.rp[1] = i - - case opNPUSHB: - opcode = 0 - goto push - - case opNPUSHW: - opcode = 0x80 - goto push - - case opWS: - top -= 2 - i := int(h.stack[top]) - if i < 0 || len(h.store) <= i { - return errors.New("truetype: hinting: invalid data") - } - h.store[i] = h.stack[top+1] - - case opRS: - i := int(h.stack[top-1]) - if i < 0 || len(h.store) <= i { - return errors.New("truetype: hinting: invalid data") - } - h.stack[top-1] = h.store[i] - - case opWCVTP: - top -= 2 - h.setScaledCVT(h.stack[top], fixed.Int26_6(h.stack[top+1])) - - case opRCVT: - h.stack[top-1] = int32(h.getScaledCVT(h.stack[top-1])) - - case opGC0, opGC1: - i := h.stack[top-1] - if opcode == opGC0 { - p := h.point(2, current, i) - h.stack[top-1] = int32(dotProduct(p.X, p.Y, h.gs.pv)) - } else { - p := h.point(2, unhinted, i) - // Using dv as per C Freetype. - h.stack[top-1] = int32(dotProduct(p.X, p.Y, h.gs.dv)) - } - - case opSCFS: - top -= 2 - i := h.stack[top] - p := h.point(2, current, i) - if p == nil { - return errors.New("truetype: hinting: point out of range") - } - c := dotProduct(p.X, p.Y, h.gs.pv) - h.move(p, fixed.Int26_6(h.stack[top+1])-c, true) - if h.gs.zp[2] != 0 { - break - } - q := h.point(2, unhinted, i) - if q == nil { - return errors.New("truetype: hinting: point out of range") - } - q.X = p.X - q.Y = p.Y - - case opMD0, opMD1: - top-- - pt, v, scale := pointType(0), [2]f2dot14{}, false - if opcode == opMD0 { - pt = current - v = h.gs.pv - } else if h.gs.zp[0] == 0 || h.gs.zp[1] == 0 { - pt = unhinted - v = h.gs.dv - } else { - pt = inFontUnits - v = h.gs.dv - scale = true - } - p := h.point(0, pt, h.stack[top-1]) - q := h.point(1, pt, h.stack[top]) - if p == nil || q == nil { - return errors.New("truetype: hinting: point out of range") - } - d := int32(dotProduct(p.X-q.X, p.Y-q.Y, v)) - if scale { - d = int32(int64(d*int32(h.scale)) / int64(h.font.fUnitsPerEm)) - } - h.stack[top-1] = d - - case opMPPEM, opMPS: - if top >= len(h.stack) { - return errors.New("truetype: hinting: stack overflow") - } - // For MPS, point size should be irrelevant; we return the PPEM. - h.stack[top] = int32(h.scale) >> 6 - top++ - - case opFLIPON, opFLIPOFF: - h.gs.autoFlip = opcode == opFLIPON - - case opDEBUG: - // No-op. - - case opLT: - top-- - h.stack[top-1] = bool2int32(h.stack[top-1] < h.stack[top]) - - case opLTEQ: - top-- - h.stack[top-1] = bool2int32(h.stack[top-1] <= h.stack[top]) - - case opGT: - top-- - h.stack[top-1] = bool2int32(h.stack[top-1] > h.stack[top]) - - case opGTEQ: - top-- - h.stack[top-1] = bool2int32(h.stack[top-1] >= h.stack[top]) - - case opEQ: - top-- - h.stack[top-1] = bool2int32(h.stack[top-1] == h.stack[top]) - - case opNEQ: - top-- - h.stack[top-1] = bool2int32(h.stack[top-1] != h.stack[top]) - - case opODD, opEVEN: - i := h.round(fixed.Int26_6(h.stack[top-1])) >> 6 - h.stack[top-1] = int32(i&1) ^ int32(opcode-opODD) - - case opIF: - top-- - if h.stack[top] == 0 { - opcode = 0 - goto ifelse - } - - case opEIF: - // No-op. - - case opAND: - top-- - h.stack[top-1] = bool2int32(h.stack[top-1] != 0 && h.stack[top] != 0) - - case opOR: - top-- - h.stack[top-1] = bool2int32(h.stack[top-1]|h.stack[top] != 0) - - case opNOT: - h.stack[top-1] = bool2int32(h.stack[top-1] == 0) - - case opDELTAP1: - goto delta - - case opSDB: - top-- - h.gs.deltaBase = h.stack[top] - - case opSDS: - top-- - h.gs.deltaShift = h.stack[top] - - case opADD: - top-- - h.stack[top-1] += h.stack[top] - - case opSUB: - top-- - h.stack[top-1] -= h.stack[top] - - case opDIV: - top-- - if h.stack[top] == 0 { - return errors.New("truetype: hinting: division by zero") - } - h.stack[top-1] = int32(fdiv(fixed.Int26_6(h.stack[top-1]), fixed.Int26_6(h.stack[top]))) - - case opMUL: - top-- - h.stack[top-1] = int32(fmul(fixed.Int26_6(h.stack[top-1]), fixed.Int26_6(h.stack[top]))) - - case opABS: - if h.stack[top-1] < 0 { - h.stack[top-1] = -h.stack[top-1] - } - - case opNEG: - h.stack[top-1] = -h.stack[top-1] - - case opFLOOR: - h.stack[top-1] &^= 63 - - case opCEILING: - h.stack[top-1] += 63 - h.stack[top-1] &^= 63 - - case opROUND00, opROUND01, opROUND10, opROUND11: - // The four flavors of opROUND are equivalent. See the comment below on - // opNROUND for the rationale. - h.stack[top-1] = int32(h.round(fixed.Int26_6(h.stack[top-1]))) - - case opNROUND00, opNROUND01, opNROUND10, opNROUND11: - // No-op. The spec says to add one of four "compensations for the engine - // characteristics", to cater for things like "different dot-size printers". - // https://developer.apple.com/fonts/TTRefMan/RM02/Chap2.html#engine_compensation - // This code does not implement engine compensation, as we don't expect to - // be used to output on dot-matrix printers. - - case opWCVTF: - top -= 2 - h.setScaledCVT(h.stack[top], h.font.scale(h.scale*fixed.Int26_6(h.stack[top+1]))) - - case opDELTAP2, opDELTAP3, opDELTAC1, opDELTAC2, opDELTAC3: - goto delta - - case opSROUND, opS45ROUND: - top-- - switch (h.stack[top] >> 6) & 0x03 { - case 0: - h.gs.roundPeriod = 1 << 5 - case 1, 3: - h.gs.roundPeriod = 1 << 6 - case 2: - h.gs.roundPeriod = 1 << 7 - } - h.gs.roundSuper45 = opcode == opS45ROUND - if h.gs.roundSuper45 { - // The spec says to multiply by √2, but the C Freetype code says 1/√2. - // We go with 1/√2. - h.gs.roundPeriod *= 46341 - h.gs.roundPeriod /= 65536 - } - h.gs.roundPhase = h.gs.roundPeriod * fixed.Int26_6((h.stack[top]>>4)&0x03) / 4 - if x := h.stack[top] & 0x0f; x != 0 { - h.gs.roundThreshold = h.gs.roundPeriod * fixed.Int26_6(x-4) / 8 - } else { - h.gs.roundThreshold = h.gs.roundPeriod - 1 - } - - case opJROT: - top -= 2 - if h.stack[top+1] != 0 { - pc += int(h.stack[top]) - continue - } - - case opJROF: - top -= 2 - if h.stack[top+1] == 0 { - pc += int(h.stack[top]) - continue - } - - case opROFF: - h.gs.roundPeriod = 0 - h.gs.roundPhase = 0 - h.gs.roundThreshold = 0 - h.gs.roundSuper45 = false - - case opRUTG: - h.gs.roundPeriod = 1 << 6 - h.gs.roundPhase = 0 - h.gs.roundThreshold = 1<<6 - 1 - h.gs.roundSuper45 = false - - case opRDTG: - h.gs.roundPeriod = 1 << 6 - h.gs.roundPhase = 0 - h.gs.roundThreshold = 0 - h.gs.roundSuper45 = false - - case opSANGW, opAA: - // These ops are "anachronistic" and no longer used. - top-- - - case opFLIPPT: - if top < int(h.gs.loop) { - return errors.New("truetype: hinting: stack underflow") - } - points := h.points[glyphZone][current] - for ; h.gs.loop != 0; h.gs.loop-- { - top-- - i := h.stack[top] - if i < 0 || len(points) <= int(i) { - return errors.New("truetype: hinting: point out of range") - } - points[i].Flags ^= flagOnCurve - } - h.gs.loop = 1 - - case opFLIPRGON, opFLIPRGOFF: - top -= 2 - i, j, points := h.stack[top], h.stack[top+1], h.points[glyphZone][current] - if i < 0 || len(points) <= int(i) || j < 0 || len(points) <= int(j) { - return errors.New("truetype: hinting: point out of range") - } - for ; i <= j; i++ { - if opcode == opFLIPRGON { - points[i].Flags |= flagOnCurve - } else { - points[i].Flags &^= flagOnCurve - } - } - - case opSCANCTRL: - // We do not support dropout control, as we always rasterize grayscale glyphs. - top-- - - case opSDPVTL0, opSDPVTL1: - top -= 2 - for i := 0; i < 2; i++ { - pt := unhinted - if i != 0 { - pt = current - } - p := h.point(1, pt, h.stack[top]) - q := h.point(2, pt, h.stack[top+1]) - if p == nil || q == nil { - return errors.New("truetype: hinting: point out of range") - } - dx := f2dot14(p.X - q.X) - dy := f2dot14(p.Y - q.Y) - if dx == 0 && dy == 0 { - dx = 0x4000 - } else if opcode&1 != 0 { - // Counter-clockwise rotation. - dx, dy = -dy, dx - } - if i == 0 { - h.gs.dv = normalize(dx, dy) - } else { - h.gs.pv = normalize(dx, dy) - } - } - - case opGETINFO: - res := int32(0) - if h.stack[top-1]&(1<<0) != 0 { - // Set the engine version. We hard-code this to 35, the same as - // the C freetype code, which says that "Version~35 corresponds - // to MS rasterizer v.1.7 as used e.g. in Windows~98". - res |= 35 - } - if h.stack[top-1]&(1<<5) != 0 { - // Set that we support grayscale. - res |= 1 << 12 - } - // We set no other bits, as we do not support rotated or stretched glyphs. - h.stack[top-1] = res - - case opIDEF: - // IDEF is for ancient versions of the bytecode interpreter, and is no longer used. - return errors.New("truetype: hinting: unsupported IDEF instruction") - - case opROLL: - h.stack[top-1], h.stack[top-3], h.stack[top-2] = - h.stack[top-3], h.stack[top-2], h.stack[top-1] - - case opMAX: - top-- - if h.stack[top-1] < h.stack[top] { - h.stack[top-1] = h.stack[top] - } - - case opMIN: - top-- - if h.stack[top-1] > h.stack[top] { - h.stack[top-1] = h.stack[top] - } - - case opSCANTYPE: - // We do not support dropout control, as we always rasterize grayscale glyphs. - top-- - - case opINSTCTRL: - // TODO: support instruction execution control? It seems rare, and even when - // nominally used (e.g. Source Sans Pro), it seems conditional on extreme or - // unusual rasterization conditions. For example, the code snippet at - // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html#INSTCTRL - // uses INSTCTRL when grid-fitting a rotated or stretched glyph, but - // freetype-go does not support rotated or stretched glyphs. - top -= 2 - - default: - if opcode < opPUSHB000 { - return errors.New("truetype: hinting: unrecognized instruction") - } - - if opcode < opMDRP00000 { - // PUSHxxxx opcode. - - if opcode < opPUSHW000 { - opcode -= opPUSHB000 - 1 - } else { - opcode -= opPUSHW000 - 1 - 0x80 - } - goto push - } - - if opcode < opMIRP00000 { - // MDRPxxxxx opcode. - - top-- - i := h.stack[top] - ref := h.point(0, current, h.gs.rp[0]) - p := h.point(1, current, i) - if ref == nil || p == nil { - return errors.New("truetype: hinting: point out of range") - } - - oldDist := fixed.Int26_6(0) - if h.gs.zp[0] == 0 || h.gs.zp[1] == 0 { - p0 := h.point(1, unhinted, i) - p1 := h.point(0, unhinted, h.gs.rp[0]) - oldDist = dotProduct(p0.X-p1.X, p0.Y-p1.Y, h.gs.dv) - } else { - p0 := h.point(1, inFontUnits, i) - p1 := h.point(0, inFontUnits, h.gs.rp[0]) - oldDist = dotProduct(p0.X-p1.X, p0.Y-p1.Y, h.gs.dv) - oldDist = h.font.scale(h.scale * oldDist) - } - - // Single-width cut-in test. - if x := fabs(oldDist - h.gs.singleWidth); x < h.gs.singleWidthCutIn { - if oldDist >= 0 { - oldDist = +h.gs.singleWidth - } else { - oldDist = -h.gs.singleWidth - } - } - - // Rounding bit. - // TODO: metrics compensation. - distance := oldDist - if opcode&0x04 != 0 { - distance = h.round(oldDist) - } - - // Minimum distance bit. - if opcode&0x08 != 0 { - if oldDist >= 0 { - if distance < h.gs.minDist { - distance = h.gs.minDist - } - } else { - if distance > -h.gs.minDist { - distance = -h.gs.minDist - } - } - } - - // Set-RP0 bit. - h.gs.rp[1] = h.gs.rp[0] - h.gs.rp[2] = i - if opcode&0x10 != 0 { - h.gs.rp[0] = i - } - - // Move the point. - oldDist = dotProduct(p.X-ref.X, p.Y-ref.Y, h.gs.pv) - h.move(p, distance-oldDist, true) - - } else { - // MIRPxxxxx opcode. - - top -= 2 - i := h.stack[top] - cvtDist := h.getScaledCVT(h.stack[top+1]) - if fabs(cvtDist-h.gs.singleWidth) < h.gs.singleWidthCutIn { - if cvtDist >= 0 { - cvtDist = +h.gs.singleWidth - } else { - cvtDist = -h.gs.singleWidth - } - } - - if h.gs.zp[1] == 0 { - // TODO: implement once we have a .ttf file that triggers - // this, so that we can step through C's freetype. - return errors.New("truetype: hinting: unimplemented twilight point adjustment") - } - - ref := h.point(0, unhinted, h.gs.rp[0]) - p := h.point(1, unhinted, i) - if ref == nil || p == nil { - return errors.New("truetype: hinting: point out of range") - } - oldDist := dotProduct(p.X-ref.X, p.Y-ref.Y, h.gs.dv) - - ref = h.point(0, current, h.gs.rp[0]) - p = h.point(1, current, i) - if ref == nil || p == nil { - return errors.New("truetype: hinting: point out of range") - } - curDist := dotProduct(p.X-ref.X, p.Y-ref.Y, h.gs.pv) - - if h.gs.autoFlip && oldDist^cvtDist < 0 { - cvtDist = -cvtDist - } - - // Rounding bit. - // TODO: metrics compensation. - distance := cvtDist - if opcode&0x04 != 0 { - // The CVT value is only used if close enough to oldDist. - if (h.gs.zp[0] == h.gs.zp[1]) && - (fabs(cvtDist-oldDist) > h.gs.controlValueCutIn) { - - distance = oldDist - } - distance = h.round(distance) - } - - // Minimum distance bit. - if opcode&0x08 != 0 { - if oldDist >= 0 { - if distance < h.gs.minDist { - distance = h.gs.minDist - } - } else { - if distance > -h.gs.minDist { - distance = -h.gs.minDist - } - } - } - - // Set-RP0 bit. - h.gs.rp[1] = h.gs.rp[0] - h.gs.rp[2] = i - if opcode&0x10 != 0 { - h.gs.rp[0] = i - } - - // Move the point. - h.move(p, distance-curDist, true) - } - } - pc++ - continue - - ifelse: - // Skip past bytecode until the next ELSE (if opcode == 0) or the - // next EIF (for all opcodes). Opcode == 0 means that we have come - // from an IF. Opcode == 1 means that we have come from an ELSE. - { - ifelseloop: - for depth := 0; ; { - pc++ - if pc >= len(program) { - return errors.New("truetype: hinting: unbalanced IF or ELSE") - } - switch program[pc] { - case opIF: - depth++ - case opELSE: - if depth == 0 && opcode == 0 { - break ifelseloop - } - case opEIF: - depth-- - if depth < 0 { - break ifelseloop - } - default: - var ok bool - pc, ok = skipInstructionPayload(program, pc) - if !ok { - return errors.New("truetype: hinting: unbalanced IF or ELSE") - } - } - } - pc++ - continue - } - - push: - // Push n elements from the program to the stack, where n is the low 7 bits of - // opcode. If the low 7 bits are zero, then n is the next byte from the program. - // The high bit being 0 means that the elements are zero-extended bytes. - // The high bit being 1 means that the elements are sign-extended words. - { - width := 1 - if opcode&0x80 != 0 { - opcode &^= 0x80 - width = 2 - } - if opcode == 0 { - pc++ - if pc >= len(program) { - return errors.New("truetype: hinting: insufficient data") - } - opcode = program[pc] - } - pc++ - if top+int(opcode) > len(h.stack) { - return errors.New("truetype: hinting: stack overflow") - } - if pc+width*int(opcode) > len(program) { - return errors.New("truetype: hinting: insufficient data") - } - for ; opcode > 0; opcode-- { - if width == 1 { - h.stack[top] = int32(program[pc]) - } else { - h.stack[top] = int32(int8(program[pc]))<<8 | int32(program[pc+1]) - } - top++ - pc += width - } - continue - } - - delta: - { - if opcode >= opDELTAC1 && !h.scaledCVTInitialized { - h.initializeScaledCVT() - } - top-- - n := h.stack[top] - if int32(top) < 2*n { - return errors.New("truetype: hinting: stack underflow") - } - for ; n > 0; n-- { - top -= 2 - b := h.stack[top] - c := (b & 0xf0) >> 4 - switch opcode { - case opDELTAP2, opDELTAC2: - c += 16 - case opDELTAP3, opDELTAC3: - c += 32 - } - c += h.gs.deltaBase - if ppem := (int32(h.scale) + 1<<5) >> 6; ppem != c { - continue - } - b = (b & 0x0f) - 8 - if b >= 0 { - b++ - } - b = b * 64 / (1 << uint32(h.gs.deltaShift)) - if opcode >= opDELTAC1 { - a := h.stack[top+1] - if a < 0 || len(h.scaledCVT) <= int(a) { - return errors.New("truetype: hinting: index out of range") - } - h.scaledCVT[a] += fixed.Int26_6(b) - } else { - p := h.point(0, current, h.stack[top+1]) - if p == nil { - return errors.New("truetype: hinting: point out of range") - } - h.move(p, fixed.Int26_6(b), true) - } - } - pc++ - continue - } - } - return nil -} - -func (h *hinter) initializeScaledCVT() { - h.scaledCVTInitialized = true - if n := len(h.font.cvt) / 2; n <= cap(h.scaledCVT) { - h.scaledCVT = h.scaledCVT[:n] - } else { - if n < 32 { - n = 32 - } - h.scaledCVT = make([]fixed.Int26_6, len(h.font.cvt)/2, n) - } - for i := range h.scaledCVT { - unscaled := uint16(h.font.cvt[2*i])<<8 | uint16(h.font.cvt[2*i+1]) - h.scaledCVT[i] = h.font.scale(h.scale * fixed.Int26_6(int16(unscaled))) - } -} - -// getScaledCVT returns the scaled value from the font's Control Value Table. -func (h *hinter) getScaledCVT(i int32) fixed.Int26_6 { - if !h.scaledCVTInitialized { - h.initializeScaledCVT() - } - if i < 0 || len(h.scaledCVT) <= int(i) { - return 0 - } - return h.scaledCVT[i] -} - -// setScaledCVT overrides the scaled value from the font's Control Value Table. -func (h *hinter) setScaledCVT(i int32, v fixed.Int26_6) { - if !h.scaledCVTInitialized { - h.initializeScaledCVT() - } - if i < 0 || len(h.scaledCVT) <= int(i) { - return - } - h.scaledCVT[i] = v -} - -func (h *hinter) point(zonePointer uint32, pt pointType, i int32) *Point { - points := h.points[h.gs.zp[zonePointer]][pt] - if i < 0 || len(points) <= int(i) { - return nil - } - return &points[i] -} - -func (h *hinter) move(p *Point, distance fixed.Int26_6, touch bool) { - fvx := int64(h.gs.fv[0]) - pvx := int64(h.gs.pv[0]) - if fvx == 0x4000 && pvx == 0x4000 { - p.X += fixed.Int26_6(distance) - if touch { - p.Flags |= flagTouchedX - } - return - } - - fvy := int64(h.gs.fv[1]) - pvy := int64(h.gs.pv[1]) - if fvy == 0x4000 && pvy == 0x4000 { - p.Y += fixed.Int26_6(distance) - if touch { - p.Flags |= flagTouchedY - } - return - } - - fvDotPv := (fvx*pvx + fvy*pvy) >> 14 - - if fvx != 0 { - p.X += fixed.Int26_6(mulDiv(fvx, int64(distance), fvDotPv)) - if touch { - p.Flags |= flagTouchedX - } - } - - if fvy != 0 { - p.Y += fixed.Int26_6(mulDiv(fvy, int64(distance), fvDotPv)) - if touch { - p.Flags |= flagTouchedY - } - } -} - -func (h *hinter) iupInterp(interpY bool, p1, p2, ref1, ref2 int) { - if p1 > p2 { - return - } - if ref1 >= len(h.points[glyphZone][current]) || - ref2 >= len(h.points[glyphZone][current]) { - return - } - - var ifu1, ifu2 fixed.Int26_6 - if interpY { - ifu1 = h.points[glyphZone][inFontUnits][ref1].Y - ifu2 = h.points[glyphZone][inFontUnits][ref2].Y - } else { - ifu1 = h.points[glyphZone][inFontUnits][ref1].X - ifu2 = h.points[glyphZone][inFontUnits][ref2].X - } - if ifu1 > ifu2 { - ifu1, ifu2 = ifu2, ifu1 - ref1, ref2 = ref2, ref1 - } - - var unh1, unh2, delta1, delta2 fixed.Int26_6 - if interpY { - unh1 = h.points[glyphZone][unhinted][ref1].Y - unh2 = h.points[glyphZone][unhinted][ref2].Y - delta1 = h.points[glyphZone][current][ref1].Y - unh1 - delta2 = h.points[glyphZone][current][ref2].Y - unh2 - } else { - unh1 = h.points[glyphZone][unhinted][ref1].X - unh2 = h.points[glyphZone][unhinted][ref2].X - delta1 = h.points[glyphZone][current][ref1].X - unh1 - delta2 = h.points[glyphZone][current][ref2].X - unh2 - } - - var xy, ifuXY fixed.Int26_6 - if ifu1 == ifu2 { - for i := p1; i <= p2; i++ { - if interpY { - xy = h.points[glyphZone][unhinted][i].Y - } else { - xy = h.points[glyphZone][unhinted][i].X - } - - if xy <= unh1 { - xy += delta1 - } else { - xy += delta2 - } - - if interpY { - h.points[glyphZone][current][i].Y = xy - } else { - h.points[glyphZone][current][i].X = xy - } - } - return - } - - scale, scaleOK := int64(0), false - for i := p1; i <= p2; i++ { - if interpY { - xy = h.points[glyphZone][unhinted][i].Y - ifuXY = h.points[glyphZone][inFontUnits][i].Y - } else { - xy = h.points[glyphZone][unhinted][i].X - ifuXY = h.points[glyphZone][inFontUnits][i].X - } - - if xy <= unh1 { - xy += delta1 - } else if xy >= unh2 { - xy += delta2 - } else { - if !scaleOK { - scaleOK = true - scale = mulDiv(int64(unh2+delta2-unh1-delta1), 0x10000, int64(ifu2-ifu1)) - } - numer := int64(ifuXY-ifu1) * scale - if numer >= 0 { - numer += 0x8000 - } else { - numer -= 0x8000 - } - xy = unh1 + delta1 + fixed.Int26_6(numer/0x10000) - } - - if interpY { - h.points[glyphZone][current][i].Y = xy - } else { - h.points[glyphZone][current][i].X = xy - } - } -} - -func (h *hinter) iupShift(interpY bool, p1, p2, p int) { - var delta fixed.Int26_6 - if interpY { - delta = h.points[glyphZone][current][p].Y - h.points[glyphZone][unhinted][p].Y - } else { - delta = h.points[glyphZone][current][p].X - h.points[glyphZone][unhinted][p].X - } - if delta == 0 { - return - } - for i := p1; i < p2; i++ { - if i == p { - continue - } - if interpY { - h.points[glyphZone][current][i].Y += delta - } else { - h.points[glyphZone][current][i].X += delta - } - } -} - -func (h *hinter) displacement(useZP1 bool) (zonePointer uint32, i int32, d fixed.Int26_6, ok bool) { - zonePointer, i = uint32(0), h.gs.rp[1] - if useZP1 { - zonePointer, i = 1, h.gs.rp[2] - } - p := h.point(zonePointer, current, i) - q := h.point(zonePointer, unhinted, i) - if p == nil || q == nil { - return 0, 0, 0, false - } - d = dotProduct(p.X-q.X, p.Y-q.Y, h.gs.pv) - return zonePointer, i, d, true -} - -// skipInstructionPayload increments pc by the extra data that follows a -// variable length PUSHB or PUSHW instruction. -func skipInstructionPayload(program []byte, pc int) (newPC int, ok bool) { - switch program[pc] { - case opNPUSHB: - pc++ - if pc >= len(program) { - return 0, false - } - pc += int(program[pc]) - case opNPUSHW: - pc++ - if pc >= len(program) { - return 0, false - } - pc += 2 * int(program[pc]) - case opPUSHB000, opPUSHB001, opPUSHB010, opPUSHB011, - opPUSHB100, opPUSHB101, opPUSHB110, opPUSHB111: - pc += int(program[pc] - (opPUSHB000 - 1)) - case opPUSHW000, opPUSHW001, opPUSHW010, opPUSHW011, - opPUSHW100, opPUSHW101, opPUSHW110, opPUSHW111: - pc += 2 * int(program[pc]-(opPUSHW000-1)) - } - return pc, true -} - -// f2dot14 is a 2.14 fixed point number. -type f2dot14 int16 - -func normalize(x, y f2dot14) [2]f2dot14 { - fx, fy := float64(x), float64(y) - l := 0x4000 / math.Hypot(fx, fy) - fx *= l - if fx >= 0 { - fx += 0.5 - } else { - fx -= 0.5 - } - fy *= l - if fy >= 0 { - fy += 0.5 - } else { - fy -= 0.5 - } - return [2]f2dot14{f2dot14(fx), f2dot14(fy)} -} - -// fabs returns abs(x) in 26.6 fixed point arithmetic. -func fabs(x fixed.Int26_6) fixed.Int26_6 { - if x < 0 { - return -x - } - return x -} - -// fdiv returns x/y in 26.6 fixed point arithmetic. -func fdiv(x, y fixed.Int26_6) fixed.Int26_6 { - return fixed.Int26_6((int64(x) << 6) / int64(y)) -} - -// fmul returns x*y in 26.6 fixed point arithmetic. -func fmul(x, y fixed.Int26_6) fixed.Int26_6 { - return fixed.Int26_6((int64(x)*int64(y) + 1<<5) >> 6) -} - -// dotProduct returns the dot product of [x, y] and q. It is almost the same as -// px := int64(x) -// py := int64(y) -// qx := int64(q[0]) -// qy := int64(q[1]) -// return fixed.Int26_6((px*qx + py*qy + 1<<13) >> 14) -// except that the computation is done with 32-bit integers to produce exactly -// the same rounding behavior as C Freetype. -func dotProduct(x, y fixed.Int26_6, q [2]f2dot14) fixed.Int26_6 { - // Compute x*q[0] as 64-bit value. - l := uint32((int32(x) & 0xFFFF) * int32(q[0])) - m := (int32(x) >> 16) * int32(q[0]) - - lo1 := l + (uint32(m) << 16) - hi1 := (m >> 16) + (int32(l) >> 31) + bool2int32(lo1 < l) - - // Compute y*q[1] as 64-bit value. - l = uint32((int32(y) & 0xFFFF) * int32(q[1])) - m = (int32(y) >> 16) * int32(q[1]) - - lo2 := l + (uint32(m) << 16) - hi2 := (m >> 16) + (int32(l) >> 31) + bool2int32(lo2 < l) - - // Add them. - lo := lo1 + lo2 - hi := hi1 + hi2 + bool2int32(lo < lo1) - - // Divide the result by 2^14 with rounding. - s := hi >> 31 - l = lo + uint32(s) - hi += s + bool2int32(l < lo) - lo = l - - l = lo + 0x2000 - hi += bool2int32(l < lo) - - return fixed.Int26_6((uint32(hi) << 18) | (l >> 14)) -} - -// mulDiv returns x*y/z, rounded to the nearest integer. -func mulDiv(x, y, z int64) int64 { - xy := x * y - if z < 0 { - xy, z = -xy, -z - } - if xy >= 0 { - xy += z / 2 - } else { - xy -= z / 2 - } - return xy / z -} - -// round rounds the given number. The rounding algorithm is described at -// https://developer.apple.com/fonts/TTRefMan/RM02/Chap2.html#rounding -func (h *hinter) round(x fixed.Int26_6) fixed.Int26_6 { - if h.gs.roundPeriod == 0 { - // Rounding is off. - return x - } - if x >= 0 { - ret := x - h.gs.roundPhase + h.gs.roundThreshold - if h.gs.roundSuper45 { - ret /= h.gs.roundPeriod - ret *= h.gs.roundPeriod - } else { - ret &= -h.gs.roundPeriod - } - if x != 0 && ret < 0 { - ret = 0 - } - return ret + h.gs.roundPhase - } - ret := -x - h.gs.roundPhase + h.gs.roundThreshold - if h.gs.roundSuper45 { - ret /= h.gs.roundPeriod - ret *= h.gs.roundPeriod - } else { - ret &= -h.gs.roundPeriod - } - if ret < 0 { - ret = 0 - } - return -ret - h.gs.roundPhase -} - -func bool2int32(b bool) int32 { - if b { - return 1 - } - return 0 -} diff --git a/vendor/github.com/golang/freetype/truetype/opcodes.go b/vendor/github.com/golang/freetype/truetype/opcodes.go deleted file mode 100644 index 1880e1e..0000000 --- a/vendor/github.com/golang/freetype/truetype/opcodes.go +++ /dev/null @@ -1,289 +0,0 @@ -// Copyright 2012 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -package truetype - -// The Truetype opcodes are summarized at -// https://developer.apple.com/fonts/TTRefMan/RM07/appendixA.html - -const ( - opSVTCA0 = 0x00 // Set freedom and projection Vectors To Coordinate Axis - opSVTCA1 = 0x01 // . - opSPVTCA0 = 0x02 // Set Projection Vector To Coordinate Axis - opSPVTCA1 = 0x03 // . - opSFVTCA0 = 0x04 // Set Freedom Vector to Coordinate Axis - opSFVTCA1 = 0x05 // . - opSPVTL0 = 0x06 // Set Projection Vector To Line - opSPVTL1 = 0x07 // . - opSFVTL0 = 0x08 // Set Freedom Vector To Line - opSFVTL1 = 0x09 // . - opSPVFS = 0x0a // Set Projection Vector From Stack - opSFVFS = 0x0b // Set Freedom Vector From Stack - opGPV = 0x0c // Get Projection Vector - opGFV = 0x0d // Get Freedom Vector - opSFVTPV = 0x0e // Set Freedom Vector To Projection Vector - opISECT = 0x0f // moves point p to the InterSECTion of two lines - opSRP0 = 0x10 // Set Reference Point 0 - opSRP1 = 0x11 // Set Reference Point 1 - opSRP2 = 0x12 // Set Reference Point 2 - opSZP0 = 0x13 // Set Zone Pointer 0 - opSZP1 = 0x14 // Set Zone Pointer 1 - opSZP2 = 0x15 // Set Zone Pointer 2 - opSZPS = 0x16 // Set Zone PointerS - opSLOOP = 0x17 // Set LOOP variable - opRTG = 0x18 // Round To Grid - opRTHG = 0x19 // Round To Half Grid - opSMD = 0x1a // Set Minimum Distance - opELSE = 0x1b // ELSE clause - opJMPR = 0x1c // JuMP Relative - opSCVTCI = 0x1d // Set Control Value Table Cut-In - opSSWCI = 0x1e // Set Single Width Cut-In - opSSW = 0x1f // Set Single Width - opDUP = 0x20 // DUPlicate top stack element - opPOP = 0x21 // POP top stack element - opCLEAR = 0x22 // CLEAR the stack - opSWAP = 0x23 // SWAP the top two elements on the stack - opDEPTH = 0x24 // DEPTH of the stack - opCINDEX = 0x25 // Copy the INDEXed element to the top of the stack - opMINDEX = 0x26 // Move the INDEXed element to the top of the stack - opALIGNPTS = 0x27 // ALIGN PoinTS - op_0x28 = 0x28 // deprecated - opUTP = 0x29 // UnTouch Point - opLOOPCALL = 0x2a // LOOP and CALL function - opCALL = 0x2b // CALL function - opFDEF = 0x2c // Function DEFinition - opENDF = 0x2d // END Function definition - opMDAP0 = 0x2e // Move Direct Absolute Point - opMDAP1 = 0x2f // . - opIUP0 = 0x30 // Interpolate Untouched Points through the outline - opIUP1 = 0x31 // . - opSHP0 = 0x32 // SHift Point using reference point - opSHP1 = 0x33 // . - opSHC0 = 0x34 // SHift Contour using reference point - opSHC1 = 0x35 // . - opSHZ0 = 0x36 // SHift Zone using reference point - opSHZ1 = 0x37 // . - opSHPIX = 0x38 // SHift point by a PIXel amount - opIP = 0x39 // Interpolate Point - opMSIRP0 = 0x3a // Move Stack Indirect Relative Point - opMSIRP1 = 0x3b // . - opALIGNRP = 0x3c // ALIGN to Reference Point - opRTDG = 0x3d // Round To Double Grid - opMIAP0 = 0x3e // Move Indirect Absolute Point - opMIAP1 = 0x3f // . - opNPUSHB = 0x40 // PUSH N Bytes - opNPUSHW = 0x41 // PUSH N Words - opWS = 0x42 // Write Store - opRS = 0x43 // Read Store - opWCVTP = 0x44 // Write Control Value Table in Pixel units - opRCVT = 0x45 // Read Control Value Table entry - opGC0 = 0x46 // Get Coordinate projected onto the projection vector - opGC1 = 0x47 // . - opSCFS = 0x48 // Sets Coordinate From the Stack using projection vector and freedom vector - opMD0 = 0x49 // Measure Distance - opMD1 = 0x4a // . - opMPPEM = 0x4b // Measure Pixels Per EM - opMPS = 0x4c // Measure Point Size - opFLIPON = 0x4d // set the auto FLIP Boolean to ON - opFLIPOFF = 0x4e // set the auto FLIP Boolean to OFF - opDEBUG = 0x4f // DEBUG call - opLT = 0x50 // Less Than - opLTEQ = 0x51 // Less Than or EQual - opGT = 0x52 // Greater Than - opGTEQ = 0x53 // Greater Than or EQual - opEQ = 0x54 // EQual - opNEQ = 0x55 // Not EQual - opODD = 0x56 // ODD - opEVEN = 0x57 // EVEN - opIF = 0x58 // IF test - opEIF = 0x59 // End IF - opAND = 0x5a // logical AND - opOR = 0x5b // logical OR - opNOT = 0x5c // logical NOT - opDELTAP1 = 0x5d // DELTA exception P1 - opSDB = 0x5e // Set Delta Base in the graphics state - opSDS = 0x5f // Set Delta Shift in the graphics state - opADD = 0x60 // ADD - opSUB = 0x61 // SUBtract - opDIV = 0x62 // DIVide - opMUL = 0x63 // MULtiply - opABS = 0x64 // ABSolute value - opNEG = 0x65 // NEGate - opFLOOR = 0x66 // FLOOR - opCEILING = 0x67 // CEILING - opROUND00 = 0x68 // ROUND value - opROUND01 = 0x69 // . - opROUND10 = 0x6a // . - opROUND11 = 0x6b // . - opNROUND00 = 0x6c // No ROUNDing of value - opNROUND01 = 0x6d // . - opNROUND10 = 0x6e // . - opNROUND11 = 0x6f // . - opWCVTF = 0x70 // Write Control Value Table in Funits - opDELTAP2 = 0x71 // DELTA exception P2 - opDELTAP3 = 0x72 // DELTA exception P3 - opDELTAC1 = 0x73 // DELTA exception C1 - opDELTAC2 = 0x74 // DELTA exception C2 - opDELTAC3 = 0x75 // DELTA exception C3 - opSROUND = 0x76 // Super ROUND - opS45ROUND = 0x77 // Super ROUND 45 degrees - opJROT = 0x78 // Jump Relative On True - opJROF = 0x79 // Jump Relative On False - opROFF = 0x7a // Round OFF - op_0x7b = 0x7b // deprecated - opRUTG = 0x7c // Round Up To Grid - opRDTG = 0x7d // Round Down To Grid - opSANGW = 0x7e // Set ANGle Weight - opAA = 0x7f // Adjust Angle - opFLIPPT = 0x80 // FLIP PoinT - opFLIPRGON = 0x81 // FLIP RanGe ON - opFLIPRGOFF = 0x82 // FLIP RanGe OFF - op_0x83 = 0x83 // deprecated - op_0x84 = 0x84 // deprecated - opSCANCTRL = 0x85 // SCAN conversion ConTRoL - opSDPVTL0 = 0x86 // Set Dual Projection Vector To Line - opSDPVTL1 = 0x87 // . - opGETINFO = 0x88 // GET INFOrmation - opIDEF = 0x89 // Instruction DEFinition - opROLL = 0x8a // ROLL the top three stack elements - opMAX = 0x8b // MAXimum of top two stack elements - opMIN = 0x8c // MINimum of top two stack elements - opSCANTYPE = 0x8d // SCANTYPE - opINSTCTRL = 0x8e // INSTRuction execution ConTRoL - op_0x8f = 0x8f - op_0x90 = 0x90 - op_0x91 = 0x91 - op_0x92 = 0x92 - op_0x93 = 0x93 - op_0x94 = 0x94 - op_0x95 = 0x95 - op_0x96 = 0x96 - op_0x97 = 0x97 - op_0x98 = 0x98 - op_0x99 = 0x99 - op_0x9a = 0x9a - op_0x9b = 0x9b - op_0x9c = 0x9c - op_0x9d = 0x9d - op_0x9e = 0x9e - op_0x9f = 0x9f - op_0xa0 = 0xa0 - op_0xa1 = 0xa1 - op_0xa2 = 0xa2 - op_0xa3 = 0xa3 - op_0xa4 = 0xa4 - op_0xa5 = 0xa5 - op_0xa6 = 0xa6 - op_0xa7 = 0xa7 - op_0xa8 = 0xa8 - op_0xa9 = 0xa9 - op_0xaa = 0xaa - op_0xab = 0xab - op_0xac = 0xac - op_0xad = 0xad - op_0xae = 0xae - op_0xaf = 0xaf - opPUSHB000 = 0xb0 // PUSH Bytes - opPUSHB001 = 0xb1 // . - opPUSHB010 = 0xb2 // . - opPUSHB011 = 0xb3 // . - opPUSHB100 = 0xb4 // . - opPUSHB101 = 0xb5 // . - opPUSHB110 = 0xb6 // . - opPUSHB111 = 0xb7 // . - opPUSHW000 = 0xb8 // PUSH Words - opPUSHW001 = 0xb9 // . - opPUSHW010 = 0xba // . - opPUSHW011 = 0xbb // . - opPUSHW100 = 0xbc // . - opPUSHW101 = 0xbd // . - opPUSHW110 = 0xbe // . - opPUSHW111 = 0xbf // . - opMDRP00000 = 0xc0 // Move Direct Relative Point - opMDRP00001 = 0xc1 // . - opMDRP00010 = 0xc2 // . - opMDRP00011 = 0xc3 // . - opMDRP00100 = 0xc4 // . - opMDRP00101 = 0xc5 // . - opMDRP00110 = 0xc6 // . - opMDRP00111 = 0xc7 // . - opMDRP01000 = 0xc8 // . - opMDRP01001 = 0xc9 // . - opMDRP01010 = 0xca // . - opMDRP01011 = 0xcb // . - opMDRP01100 = 0xcc // . - opMDRP01101 = 0xcd // . - opMDRP01110 = 0xce // . - opMDRP01111 = 0xcf // . - opMDRP10000 = 0xd0 // . - opMDRP10001 = 0xd1 // . - opMDRP10010 = 0xd2 // . - opMDRP10011 = 0xd3 // . - opMDRP10100 = 0xd4 // . - opMDRP10101 = 0xd5 // . - opMDRP10110 = 0xd6 // . - opMDRP10111 = 0xd7 // . - opMDRP11000 = 0xd8 // . - opMDRP11001 = 0xd9 // . - opMDRP11010 = 0xda // . - opMDRP11011 = 0xdb // . - opMDRP11100 = 0xdc // . - opMDRP11101 = 0xdd // . - opMDRP11110 = 0xde // . - opMDRP11111 = 0xdf // . - opMIRP00000 = 0xe0 // Move Indirect Relative Point - opMIRP00001 = 0xe1 // . - opMIRP00010 = 0xe2 // . - opMIRP00011 = 0xe3 // . - opMIRP00100 = 0xe4 // . - opMIRP00101 = 0xe5 // . - opMIRP00110 = 0xe6 // . - opMIRP00111 = 0xe7 // . - opMIRP01000 = 0xe8 // . - opMIRP01001 = 0xe9 // . - opMIRP01010 = 0xea // . - opMIRP01011 = 0xeb // . - opMIRP01100 = 0xec // . - opMIRP01101 = 0xed // . - opMIRP01110 = 0xee // . - opMIRP01111 = 0xef // . - opMIRP10000 = 0xf0 // . - opMIRP10001 = 0xf1 // . - opMIRP10010 = 0xf2 // . - opMIRP10011 = 0xf3 // . - opMIRP10100 = 0xf4 // . - opMIRP10101 = 0xf5 // . - opMIRP10110 = 0xf6 // . - opMIRP10111 = 0xf7 // . - opMIRP11000 = 0xf8 // . - opMIRP11001 = 0xf9 // . - opMIRP11010 = 0xfa // . - opMIRP11011 = 0xfb // . - opMIRP11100 = 0xfc // . - opMIRP11101 = 0xfd // . - opMIRP11110 = 0xfe // . - opMIRP11111 = 0xff // . -) - -// popCount is the number of stack elements that each opcode pops. -var popCount = [256]uint8{ - // 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f - 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 0, 0, 0, 5, // 0x00 - 0x0f - 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, // 0x10 - 0x1f - 1, 1, 0, 2, 0, 1, 1, 2, 0, 1, 2, 1, 1, 0, 1, 1, // 0x20 - 0x2f - 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 2, 2, 0, 0, 2, 2, // 0x30 - 0x3f - 0, 0, 2, 1, 2, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 0, // 0x40 - 0x4f - 2, 2, 2, 2, 2, 2, 1, 1, 1, 0, 2, 2, 1, 1, 1, 1, // 0x50 - 0x5f - 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 0x60 - 0x6f - 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 0, 0, 0, 0, 1, 1, // 0x70 - 0x7f - 0, 2, 2, 0, 0, 1, 2, 2, 1, 1, 3, 2, 2, 1, 2, 0, // 0x80 - 0x8f - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x90 - 0x9f - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0xa0 - 0xaf - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0xb0 - 0xbf - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 0xc0 - 0xcf - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 0xd0 - 0xdf - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // 0xe0 - 0xef - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // 0xf0 - 0xff -} diff --git a/vendor/github.com/golang/freetype/truetype/truetype.go b/vendor/github.com/golang/freetype/truetype/truetype.go deleted file mode 100644 index 7270bbf..0000000 --- a/vendor/github.com/golang/freetype/truetype/truetype.go +++ /dev/null @@ -1,653 +0,0 @@ -// Copyright 2010 The Freetype-Go Authors. All rights reserved. -// Use of this source code is governed by your choice of either the -// FreeType License or the GNU General Public License version 2 (or -// any later version), both of which can be found in the LICENSE file. - -// Package truetype provides a parser for the TTF and TTC file formats. -// Those formats are documented at http://developer.apple.com/fonts/TTRefMan/ -// and http://www.microsoft.com/typography/otspec/ -// -// Some of a font's methods provide lengths or co-ordinates, e.g. bounds, font -// metrics and control points. All these methods take a scale parameter, which -// is the number of pixels in 1 em, expressed as a 26.6 fixed point value. For -// example, if 1 em is 10 pixels then scale is fixed.I(10), which is equal to -// fixed.Int26_6(10 << 6). -// -// To measure a TrueType font in ideal FUnit space, use scale equal to -// font.FUnitsPerEm(). -package truetype // import "github.com/golang/freetype/truetype" - -import ( - "fmt" - - "golang.org/x/image/math/fixed" -) - -// An Index is a Font's index of a rune. -type Index uint16 - -// A NameID identifies a name table entry. -// -// See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html -type NameID uint16 - -const ( - NameIDCopyright NameID = 0 - NameIDFontFamily = 1 - NameIDFontSubfamily = 2 - NameIDUniqueSubfamilyID = 3 - NameIDFontFullName = 4 - NameIDNameTableVersion = 5 - NameIDPostscriptName = 6 - NameIDTrademarkNotice = 7 - NameIDManufacturerName = 8 - NameIDDesignerName = 9 - NameIDFontDescription = 10 - NameIDFontVendorURL = 11 - NameIDFontDesignerURL = 12 - NameIDFontLicense = 13 - NameIDFontLicenseURL = 14 - NameIDPreferredFamily = 16 - NameIDPreferredSubfamily = 17 - NameIDCompatibleName = 18 - NameIDSampleText = 19 -) - -const ( - // A 32-bit encoding consists of a most-significant 16-bit Platform ID and a - // least-significant 16-bit Platform Specific ID. The magic numbers are - // specified at https://www.microsoft.com/typography/otspec/name.htm - unicodeEncodingBMPOnly = 0x00000003 // PID = 0 (Unicode), PSID = 3 (Unicode 2.0 BMP Only) - unicodeEncodingFull = 0x00000004 // PID = 0 (Unicode), PSID = 4 (Unicode 2.0 Full Repertoire) - microsoftSymbolEncoding = 0x00030000 // PID = 3 (Microsoft), PSID = 0 (Symbol) - microsoftUCS2Encoding = 0x00030001 // PID = 3 (Microsoft), PSID = 1 (UCS-2) - microsoftUCS4Encoding = 0x0003000a // PID = 3 (Microsoft), PSID = 10 (UCS-4) -) - -// An HMetric holds the horizontal metrics of a single glyph. -type HMetric struct { - AdvanceWidth, LeftSideBearing fixed.Int26_6 -} - -// A VMetric holds the vertical metrics of a single glyph. -type VMetric struct { - AdvanceHeight, TopSideBearing fixed.Int26_6 -} - -// A FormatError reports that the input is not a valid TrueType font. -type FormatError string - -func (e FormatError) Error() string { - return "freetype: invalid TrueType format: " + string(e) -} - -// An UnsupportedError reports that the input uses a valid but unimplemented -// TrueType feature. -type UnsupportedError string - -func (e UnsupportedError) Error() string { - return "freetype: unsupported TrueType feature: " + string(e) -} - -// u32 returns the big-endian uint32 at b[i:]. -func u32(b []byte, i int) uint32 { - return uint32(b[i])<<24 | uint32(b[i+1])<<16 | uint32(b[i+2])<<8 | uint32(b[i+3]) -} - -// u16 returns the big-endian uint16 at b[i:]. -func u16(b []byte, i int) uint16 { - return uint16(b[i])<<8 | uint16(b[i+1]) -} - -// readTable returns a slice of the TTF data given by a table's directory entry. -func readTable(ttf []byte, offsetLength []byte) ([]byte, error) { - offset := int(u32(offsetLength, 0)) - if offset < 0 { - return nil, FormatError(fmt.Sprintf("offset too large: %d", uint32(offset))) - } - length := int(u32(offsetLength, 4)) - if length < 0 { - return nil, FormatError(fmt.Sprintf("length too large: %d", uint32(length))) - } - end := offset + length - if end < 0 || end > len(ttf) { - return nil, FormatError(fmt.Sprintf("offset + length too large: %d", uint32(offset)+uint32(length))) - } - return ttf[offset:end], nil -} - -// parseSubtables returns the offset and platformID of the best subtable in -// table, where best favors a Unicode cmap encoding, and failing that, a -// Microsoft cmap encoding. offset is the offset of the first subtable in -// table, and size is the size of each subtable. -// -// If pred is non-nil, then only subtables that satisfy that predicate will be -// considered. -func parseSubtables(table []byte, name string, offset, size int, pred func([]byte) bool) ( - bestOffset int, bestPID uint32, retErr error) { - - if len(table) < 4 { - return 0, 0, FormatError(name + " too short") - } - nSubtables := int(u16(table, 2)) - if len(table) < size*nSubtables+offset { - return 0, 0, FormatError(name + " too short") - } - ok := false - for i := 0; i < nSubtables; i, offset = i+1, offset+size { - if pred != nil && !pred(table[offset:]) { - continue - } - // We read the 16-bit Platform ID and 16-bit Platform Specific ID as a single uint32. - // All values are big-endian. - pidPsid := u32(table, offset) - // We prefer the Unicode cmap encoding. Failing to find that, we fall - // back onto the Microsoft cmap encoding. - if pidPsid == unicodeEncodingBMPOnly || pidPsid == unicodeEncodingFull { - bestOffset, bestPID, ok = offset, pidPsid>>16, true - break - - } else if pidPsid == microsoftSymbolEncoding || - pidPsid == microsoftUCS2Encoding || - pidPsid == microsoftUCS4Encoding { - - bestOffset, bestPID, ok = offset, pidPsid>>16, true - // We don't break out of the for loop, so that Unicode can override Microsoft. - } - } - if !ok { - return 0, 0, UnsupportedError(name + " encoding") - } - return bestOffset, bestPID, nil -} - -const ( - locaOffsetFormatUnknown int = iota - locaOffsetFormatShort - locaOffsetFormatLong -) - -// A cm holds a parsed cmap entry. -type cm struct { - start, end, delta, offset uint32 -} - -// A Font represents a Truetype font. -type Font struct { - // Tables sliced from the TTF data. The different tables are documented - // at http://developer.apple.com/fonts/TTRefMan/RM06/Chap6.html - cmap, cvt, fpgm, glyf, hdmx, head, hhea, hmtx, kern, loca, maxp, name, os2, prep, vmtx []byte - - cmapIndexes []byte - - // Cached values derived from the raw ttf data. - cm []cm - locaOffsetFormat int - nGlyph, nHMetric, nKern int - fUnitsPerEm int32 - ascent int32 // In FUnits. - descent int32 // In FUnits; typically negative. - bounds fixed.Rectangle26_6 // In FUnits. - // Values from the maxp section. - maxTwilightPoints, maxStorage, maxFunctionDefs, maxStackElements uint16 -} - -func (f *Font) parseCmap() error { - const ( - cmapFormat4 = 4 - cmapFormat12 = 12 - languageIndependent = 0 - ) - - offset, _, err := parseSubtables(f.cmap, "cmap", 4, 8, nil) - if err != nil { - return err - } - offset = int(u32(f.cmap, offset+4)) - if offset <= 0 || offset > len(f.cmap) { - return FormatError("bad cmap offset") - } - - cmapFormat := u16(f.cmap, offset) - switch cmapFormat { - case cmapFormat4: - language := u16(f.cmap, offset+4) - if language != languageIndependent { - return UnsupportedError(fmt.Sprintf("language: %d", language)) - } - segCountX2 := int(u16(f.cmap, offset+6)) - if segCountX2%2 == 1 { - return FormatError(fmt.Sprintf("bad segCountX2: %d", segCountX2)) - } - segCount := segCountX2 / 2 - offset += 14 - f.cm = make([]cm, segCount) - for i := 0; i < segCount; i++ { - f.cm[i].end = uint32(u16(f.cmap, offset)) - offset += 2 - } - offset += 2 - for i := 0; i < segCount; i++ { - f.cm[i].start = uint32(u16(f.cmap, offset)) - offset += 2 - } - for i := 0; i < segCount; i++ { - f.cm[i].delta = uint32(u16(f.cmap, offset)) - offset += 2 - } - for i := 0; i < segCount; i++ { - f.cm[i].offset = uint32(u16(f.cmap, offset)) - offset += 2 - } - f.cmapIndexes = f.cmap[offset:] - return nil - - case cmapFormat12: - if u16(f.cmap, offset+2) != 0 { - return FormatError(fmt.Sprintf("cmap format: % x", f.cmap[offset:offset+4])) - } - length := u32(f.cmap, offset+4) - language := u32(f.cmap, offset+8) - if language != languageIndependent { - return UnsupportedError(fmt.Sprintf("language: %d", language)) - } - nGroups := u32(f.cmap, offset+12) - if length != 12*nGroups+16 { - return FormatError("inconsistent cmap length") - } - offset += 16 - f.cm = make([]cm, nGroups) - for i := uint32(0); i < nGroups; i++ { - f.cm[i].start = u32(f.cmap, offset+0) - f.cm[i].end = u32(f.cmap, offset+4) - f.cm[i].delta = u32(f.cmap, offset+8) - f.cm[i].start - offset += 12 - } - return nil - } - return UnsupportedError(fmt.Sprintf("cmap format: %d", cmapFormat)) -} - -func (f *Font) parseHead() error { - if len(f.head) != 54 { - return FormatError(fmt.Sprintf("bad head length: %d", len(f.head))) - } - f.fUnitsPerEm = int32(u16(f.head, 18)) - f.bounds.Min.X = fixed.Int26_6(int16(u16(f.head, 36))) - f.bounds.Min.Y = fixed.Int26_6(int16(u16(f.head, 38))) - f.bounds.Max.X = fixed.Int26_6(int16(u16(f.head, 40))) - f.bounds.Max.Y = fixed.Int26_6(int16(u16(f.head, 42))) - switch i := u16(f.head, 50); i { - case 0: - f.locaOffsetFormat = locaOffsetFormatShort - case 1: - f.locaOffsetFormat = locaOffsetFormatLong - default: - return FormatError(fmt.Sprintf("bad indexToLocFormat: %d", i)) - } - return nil -} - -func (f *Font) parseHhea() error { - if len(f.hhea) != 36 { - return FormatError(fmt.Sprintf("bad hhea length: %d", len(f.hhea))) - } - f.ascent = int32(int16(u16(f.hhea, 4))) - f.descent = int32(int16(u16(f.hhea, 6))) - f.nHMetric = int(u16(f.hhea, 34)) - if 4*f.nHMetric+2*(f.nGlyph-f.nHMetric) != len(f.hmtx) { - return FormatError(fmt.Sprintf("bad hmtx length: %d", len(f.hmtx))) - } - return nil -} - -func (f *Font) parseKern() error { - // Apple's TrueType documentation (http://developer.apple.com/fonts/TTRefMan/RM06/Chap6kern.html) says: - // "Previous versions of the 'kern' table defined both the version and nTables fields in the header - // as UInt16 values and not UInt32 values. Use of the older format on the Mac OS is discouraged - // (although AAT can sense an old kerning table and still make correct use of it). Microsoft - // Windows still uses the older format for the 'kern' table and will not recognize the newer one. - // Fonts targeted for the Mac OS only should use the new format; fonts targeted for both the Mac OS - // and Windows should use the old format." - // Since we expect that almost all fonts aim to be Windows-compatible, we only parse the "older" format, - // just like the C Freetype implementation. - if len(f.kern) == 0 { - if f.nKern != 0 { - return FormatError("bad kern table length") - } - return nil - } - if len(f.kern) < 18 { - return FormatError("kern data too short") - } - version, offset := u16(f.kern, 0), 2 - if version != 0 { - return UnsupportedError(fmt.Sprintf("kern version: %d", version)) - } - - n, offset := u16(f.kern, offset), offset+2 - if n == 0 { - return UnsupportedError("kern nTables: 0") - } - // TODO: support multiple subtables. In practice, almost all .ttf files - // have only one subtable, if they have a kern table at all. But it's not - // impossible. Xolonium Regular (https://fontlibrary.org/en/font/xolonium) - // has 3 subtables. Those subtables appear to be disjoint, rather than - // being the same kerning pairs encoded in three different ways. - // - // For now, we'll use only the first subtable. - - offset += 2 // Skip the version. - length, offset := int(u16(f.kern, offset)), offset+2 - coverage, offset := u16(f.kern, offset), offset+2 - if coverage != 0x0001 { - // We only support horizontal kerning. - return UnsupportedError(fmt.Sprintf("kern coverage: 0x%04x", coverage)) - } - f.nKern, offset = int(u16(f.kern, offset)), offset+2 - if 6*f.nKern != length-14 { - return FormatError("bad kern table length") - } - return nil -} - -func (f *Font) parseMaxp() error { - if len(f.maxp) != 32 { - return FormatError(fmt.Sprintf("bad maxp length: %d", len(f.maxp))) - } - f.nGlyph = int(u16(f.maxp, 4)) - f.maxTwilightPoints = u16(f.maxp, 16) - f.maxStorage = u16(f.maxp, 18) - f.maxFunctionDefs = u16(f.maxp, 20) - f.maxStackElements = u16(f.maxp, 24) - return nil -} - -// scale returns x divided by f.fUnitsPerEm, rounded to the nearest integer. -func (f *Font) scale(x fixed.Int26_6) fixed.Int26_6 { - if x >= 0 { - x += fixed.Int26_6(f.fUnitsPerEm) / 2 - } else { - x -= fixed.Int26_6(f.fUnitsPerEm) / 2 - } - return x / fixed.Int26_6(f.fUnitsPerEm) -} - -// Bounds returns the union of a Font's glyphs' bounds. -func (f *Font) Bounds(scale fixed.Int26_6) fixed.Rectangle26_6 { - b := f.bounds - b.Min.X = f.scale(scale * b.Min.X) - b.Min.Y = f.scale(scale * b.Min.Y) - b.Max.X = f.scale(scale * b.Max.X) - b.Max.Y = f.scale(scale * b.Max.Y) - return b -} - -// FUnitsPerEm returns the number of FUnits in a Font's em-square's side. -func (f *Font) FUnitsPerEm() int32 { - return f.fUnitsPerEm -} - -// Index returns a Font's index for the given rune. -func (f *Font) Index(x rune) Index { - c := uint32(x) - for i, j := 0, len(f.cm); i < j; { - h := i + (j-i)/2 - cm := &f.cm[h] - if c < cm.start { - j = h - } else if cm.end < c { - i = h + 1 - } else if cm.offset == 0 { - return Index(c + cm.delta) - } else { - offset := int(cm.offset) + 2*(h-len(f.cm)+int(c-cm.start)) - return Index(u16(f.cmapIndexes, offset)) - } - } - return 0 -} - -// Name returns the Font's name value for the given NameID. It returns "" if -// there was an error, or if that name was not found. -func (f *Font) Name(id NameID) string { - x, platformID, err := parseSubtables(f.name, "name", 6, 12, func(b []byte) bool { - return NameID(u16(b, 6)) == id - }) - if err != nil { - return "" - } - offset, length := u16(f.name, 4)+u16(f.name, x+10), u16(f.name, x+8) - // Return the ASCII value of the encoded string. - // The string is encoded as UTF-16 on non-Apple platformIDs; Apple is platformID 1. - src := f.name[offset : offset+length] - var dst []byte - if platformID != 1 { // UTF-16. - if len(src)&1 != 0 { - return "" - } - dst = make([]byte, len(src)/2) - for i := range dst { - dst[i] = printable(u16(src, 2*i)) - } - } else { // ASCII. - dst = make([]byte, len(src)) - for i, c := range src { - dst[i] = printable(uint16(c)) - } - } - return string(dst) -} - -func printable(r uint16) byte { - if 0x20 <= r && r < 0x7f { - return byte(r) - } - return '?' -} - -// unscaledHMetric returns the unscaled horizontal metrics for the glyph with -// the given index. -func (f *Font) unscaledHMetric(i Index) (h HMetric) { - j := int(i) - if j < 0 || f.nGlyph <= j { - return HMetric{} - } - if j >= f.nHMetric { - p := 4 * (f.nHMetric - 1) - return HMetric{ - AdvanceWidth: fixed.Int26_6(u16(f.hmtx, p)), - LeftSideBearing: fixed.Int26_6(int16(u16(f.hmtx, p+2*(j-f.nHMetric)+4))), - } - } - return HMetric{ - AdvanceWidth: fixed.Int26_6(u16(f.hmtx, 4*j)), - LeftSideBearing: fixed.Int26_6(int16(u16(f.hmtx, 4*j+2))), - } -} - -// HMetric returns the horizontal metrics for the glyph with the given index. -func (f *Font) HMetric(scale fixed.Int26_6, i Index) HMetric { - h := f.unscaledHMetric(i) - h.AdvanceWidth = f.scale(scale * h.AdvanceWidth) - h.LeftSideBearing = f.scale(scale * h.LeftSideBearing) - return h -} - -// unscaledVMetric returns the unscaled vertical metrics for the glyph with -// the given index. yMax is the top of the glyph's bounding box. -func (f *Font) unscaledVMetric(i Index, yMax fixed.Int26_6) (v VMetric) { - j := int(i) - if j < 0 || f.nGlyph <= j { - return VMetric{} - } - if 4*j+4 <= len(f.vmtx) { - return VMetric{ - AdvanceHeight: fixed.Int26_6(u16(f.vmtx, 4*j)), - TopSideBearing: fixed.Int26_6(int16(u16(f.vmtx, 4*j+2))), - } - } - // The OS/2 table has grown over time. - // https://developer.apple.com/fonts/TTRefMan/RM06/Chap6OS2.html - // says that it was originally 68 bytes. Optional fields, including - // the ascender and descender, are described at - // http://www.microsoft.com/typography/otspec/os2.htm - if len(f.os2) >= 72 { - sTypoAscender := fixed.Int26_6(int16(u16(f.os2, 68))) - sTypoDescender := fixed.Int26_6(int16(u16(f.os2, 70))) - return VMetric{ - AdvanceHeight: sTypoAscender - sTypoDescender, - TopSideBearing: sTypoAscender - yMax, - } - } - return VMetric{ - AdvanceHeight: fixed.Int26_6(f.fUnitsPerEm), - TopSideBearing: 0, - } -} - -// VMetric returns the vertical metrics for the glyph with the given index. -func (f *Font) VMetric(scale fixed.Int26_6, i Index) VMetric { - // TODO: should 0 be bounds.YMax? - v := f.unscaledVMetric(i, 0) - v.AdvanceHeight = f.scale(scale * v.AdvanceHeight) - v.TopSideBearing = f.scale(scale * v.TopSideBearing) - return v -} - -// Kern returns the horizontal adjustment for the given glyph pair. A positive -// kern means to move the glyphs further apart. -func (f *Font) Kern(scale fixed.Int26_6, i0, i1 Index) fixed.Int26_6 { - if f.nKern == 0 { - return 0 - } - g := uint32(i0)<<16 | uint32(i1) - lo, hi := 0, f.nKern - for lo < hi { - i := (lo + hi) / 2 - ig := u32(f.kern, 18+6*i) - if ig < g { - lo = i + 1 - } else if ig > g { - hi = i - } else { - return f.scale(scale * fixed.Int26_6(int16(u16(f.kern, 22+6*i)))) - } - } - return 0 -} - -// Parse returns a new Font for the given TTF or TTC data. -// -// For TrueType Collections, the first font in the collection is parsed. -func Parse(ttf []byte) (font *Font, err error) { - return parse(ttf, 0) -} - -func parse(ttf []byte, offset int) (font *Font, err error) { - if len(ttf)-offset < 12 { - err = FormatError("TTF data is too short") - return - } - originalOffset := offset - magic, offset := u32(ttf, offset), offset+4 - switch magic { - case 0x00010000: - // No-op. - case 0x74746366: // "ttcf" as a big-endian uint32. - if originalOffset != 0 { - err = FormatError("recursive TTC") - return - } - ttcVersion, offset := u32(ttf, offset), offset+4 - if ttcVersion != 0x00010000 && ttcVersion != 0x00020000 { - err = FormatError("bad TTC version") - return - } - numFonts, offset := int(u32(ttf, offset)), offset+4 - if numFonts <= 0 { - err = FormatError("bad number of TTC fonts") - return - } - if len(ttf[offset:])/4 < numFonts { - err = FormatError("TTC offset table is too short") - return - } - // TODO: provide an API to select which font in a TrueType collection to return, - // not just the first one. This may require an API to parse a TTC's name tables, - // so users of this package can select the font in a TTC by name. - offset = int(u32(ttf, offset)) - if offset <= 0 || offset > len(ttf) { - err = FormatError("bad TTC offset") - return - } - return parse(ttf, offset) - default: - err = FormatError("bad TTF version") - return - } - n, offset := int(u16(ttf, offset)), offset+2 - offset += 6 // Skip the searchRange, entrySelector and rangeShift. - if len(ttf) < 16*n+offset { - err = FormatError("TTF data is too short") - return - } - f := new(Font) - // Assign the table slices. - for i := 0; i < n; i++ { - x := 16*i + offset - switch string(ttf[x : x+4]) { - case "cmap": - f.cmap, err = readTable(ttf, ttf[x+8:x+16]) - case "cvt ": - f.cvt, err = readTable(ttf, ttf[x+8:x+16]) - case "fpgm": - f.fpgm, err = readTable(ttf, ttf[x+8:x+16]) - case "glyf": - f.glyf, err = readTable(ttf, ttf[x+8:x+16]) - case "hdmx": - f.hdmx, err = readTable(ttf, ttf[x+8:x+16]) - case "head": - f.head, err = readTable(ttf, ttf[x+8:x+16]) - case "hhea": - f.hhea, err = readTable(ttf, ttf[x+8:x+16]) - case "hmtx": - f.hmtx, err = readTable(ttf, ttf[x+8:x+16]) - case "kern": - f.kern, err = readTable(ttf, ttf[x+8:x+16]) - case "loca": - f.loca, err = readTable(ttf, ttf[x+8:x+16]) - case "maxp": - f.maxp, err = readTable(ttf, ttf[x+8:x+16]) - case "name": - f.name, err = readTable(ttf, ttf[x+8:x+16]) - case "OS/2": - f.os2, err = readTable(ttf, ttf[x+8:x+16]) - case "prep": - f.prep, err = readTable(ttf, ttf[x+8:x+16]) - case "vmtx": - f.vmtx, err = readTable(ttf, ttf[x+8:x+16]) - } - if err != nil { - return - } - } - // Parse and sanity-check the TTF data. - if err = f.parseHead(); err != nil { - return - } - if err = f.parseMaxp(); err != nil { - return - } - if err = f.parseCmap(); err != nil { - return - } - if err = f.parseKern(); err != nil { - return - } - if err = f.parseHhea(); err != nil { - return - } - font = f - return -} diff --git a/vendor/github.com/google/gxui/.travis.yml b/vendor/github.com/google/gxui/.travis.yml deleted file mode 100644 index e941998..0000000 --- a/vendor/github.com/google/gxui/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go -go: - - 1.4 -before_install: - - sudo apt-get update - - sudo apt-get install -qq libxi-dev libxcursor-dev libxrandr-dev libxinerama-dev mesa-common-dev libgl1-mesa-dev libxxf86vm-dev -install: - - go get golang.org/x/tools/cmd/vet -script: - - go get -t -v ./... - - diff -u <(echo -n) <(gofmt -d ./) - - go tool vet -composites=false ./ - - go test -v -race ./... diff --git a/vendor/github.com/google/gxui/LICENSE b/vendor/github.com/google/gxui/LICENSE deleted file mode 100644 index d29b372..0000000 --- a/vendor/github.com/google/gxui/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2015 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/google/gxui/README.md b/vendor/github.com/google/gxui/README.md deleted file mode 100644 index c4821a7..0000000 --- a/vendor/github.com/google/gxui/README.md +++ /dev/null @@ -1,71 +0,0 @@ -GXUI - A Go cross platform UI library. -======= - -[![Join the chat at https://gitter.im/google/gxui](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/google/gxui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/google/gxui.svg?branch=master)](https://travis-ci.org/google/gxui) [![GoDoc](https://godoc.org/github.com/google/gxui?status.svg)](https://godoc.org/github.com/google/gxui) - - -Notice: ---- - -Unfortunately due to a shortage of hours in a day, GXUI is no longer maintained. - -If you're looking for a GUI library for your next Go project, [check out these alternatives](https://github.com/avelino/awesome-go#gui). - -Disclaimer ---- - -The code is mostly undocumented, and is certainly **not idiomatic Go**. - -This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google. - -Dependencies ---- - -### Linux: - -In order to build GXUI on linux, you will need the following packages installed: - - sudo apt-get install libxi-dev libxcursor-dev libxrandr-dev libxinerama-dev mesa-common-dev libgl1-mesa-dev libxxf86vm-dev - -### Common: - -After setting up ```GOPATH``` (see [Go documentation](https://golang.org/doc/code.html)), you can then fetch the GXUI library and its dependencies: - - go get -u github.com/google/gxui/... - -Samples ---- -Samples can be found in [`gxui/samples`](https://github.com/google/gxui/tree/master/samples). - -To build all samples run: - - go install github.com/google/gxui/samples/... - -And they will be built into ```GOPATH/bin```. - -If you add ```GOPATH/bin``` to your PATH, you can simply type the name of a sample to run it. For example: ```image_viewer```. - -Web ---- - -gxui code is cross platform and can be compiled using GopherJS to JavaScript, allowing it to run in browsers with WebGL support. To do so, you'll need the [GopherJS compiler](https://github.com/gopherjs/gopherjs) and some additional dependencies: - - go get -u github.com/gopherjs/gopherjs - go get -u -d -tags=js github.com/google/gxui/... - -Afterwards, you can try the samples by running `gopherjs serve` command and opening in a browser. - -Fonts ---- -Many of the samples require a font to render text. The dark theme (and currently the only theme) uses `Roboto`. -This is built into the gxfont package. - -Make sure to mention this font in any notices file distributed with your application. - -Contributing ---- -GXUI was written by a couple of Googlers as an experiment and is now unmaintained. - -Contributions, however small, will require the author to have signed the [Google Individual Contributor License Agreement](https://developers.google.com/open-source/cla/individual?csw=1). - -The CLA is necessary mainly because you own the copyright to your changes, even after your contribution becomes part of our codebase, so we need your permission to use and distribute your code. We also need to be sure of various other things—for instance that you'll tell us if you know that your code infringes on other people's patents. You don't have to sign the CLA until after you've submitted your code for review and a member has approved it, but you must do it before we can put your code into our codebase. Before you start working on a larger contribution, you should get in touch with us first through the issue tracker with your idea so that we can help out and possibly guide you. Coordinating up front makes it much easier to avoid frustration later on. diff --git a/vendor/github.com/google/gxui/VERSION b/vendor/github.com/google/gxui/VERSION deleted file mode 100644 index 4c7fd87..0000000 --- a/vendor/github.com/google/gxui/VERSION +++ /dev/null @@ -1 +0,0 @@ -gxui0.1 \ No newline at end of file diff --git a/vendor/github.com/google/gxui/adapter_base.go b/vendor/github.com/google/gxui/adapter_base.go deleted file mode 100644 index 64426da..0000000 --- a/vendor/github.com/google/gxui/adapter_base.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type AdapterBase struct { - onDataChanged, onDataReplaced Event -} - -func (a *AdapterBase) DataChanged(recreateControls bool) { - if a.onDataChanged != nil { - a.onDataChanged.Fire(recreateControls) - } -} - -func (a *AdapterBase) DataReplaced() { - if a.onDataReplaced != nil { - a.onDataReplaced.Fire() - } -} - -func (a *AdapterBase) OnDataChanged(f func(recreateControls bool)) EventSubscription { - if a.onDataChanged == nil { - a.onDataChanged = CreateEvent(func(bool) {}) - } - return a.onDataChanged.Listen(f) -} - -func (a *AdapterBase) OnDataReplaced(f func()) EventSubscription { - if a.onDataReplaced == nil { - a.onDataReplaced = CreateEvent(func() {}) - } - return a.onDataReplaced.Listen(f) -} diff --git a/vendor/github.com/google/gxui/adapter_item.go b/vendor/github.com/google/gxui/adapter_item.go deleted file mode 100644 index c84d687..0000000 --- a/vendor/github.com/google/gxui/adapter_item.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -// AdapterItem is a user defined type that can be used to uniquely identify a -// single item in an adapter. The type must support equality and be hashable. -type AdapterItem interface{} diff --git a/vendor/github.com/google/gxui/alignment.go b/vendor/github.com/google/gxui/alignment.go deleted file mode 100644 index 58bc91e..0000000 --- a/vendor/github.com/google/gxui/alignment.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type HorizontalAlignment int - -const ( - AlignLeft HorizontalAlignment = iota - AlignCenter - AlignRight -) - -func (a HorizontalAlignment) AlignLeft() bool { return a == AlignLeft } -func (a HorizontalAlignment) AlignCenter() bool { return a == AlignCenter } -func (a HorizontalAlignment) AlignRight() bool { return a == AlignRight } - -type VerticalAlignment int - -const ( - AlignTop VerticalAlignment = iota - AlignMiddle - AlignBottom -) - -func (a VerticalAlignment) AlignTop() bool { return a == AlignTop } -func (a VerticalAlignment) AlignMiddle() bool { return a == AlignMiddle } -func (a VerticalAlignment) AlignBottom() bool { return a == AlignBottom } diff --git a/vendor/github.com/google/gxui/brush.go b/vendor/github.com/google/gxui/brush.go deleted file mode 100644 index 3a7fc35..0000000 --- a/vendor/github.com/google/gxui/brush.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -var WhiteBrush = CreateBrush(White) -var TransparentBrush = CreateBrush(Transparent) -var BlackBrush = CreateBrush(Black) -var DefaultBrush = WhiteBrush - -type Brush struct { - Color Color -} - -func CreateBrush(color Color) Brush { - return Brush{color} -} diff --git a/vendor/github.com/google/gxui/bubble_overlay.go b/vendor/github.com/google/gxui/bubble_overlay.go deleted file mode 100644 index 154677e..0000000 --- a/vendor/github.com/google/gxui/bubble_overlay.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" -) - -type BubbleOverlay interface { - Control - Show(control Control, target math.Point) - Hide() -} diff --git a/vendor/github.com/google/gxui/button.go b/vendor/github.com/google/gxui/button.go deleted file mode 100644 index ead2e67..0000000 --- a/vendor/github.com/google/gxui/button.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type ButtonType int - -const ( - PushButton ButtonType = iota - ToggleButton -) - -type Button interface { - LinearLayout - Text() string - SetText(string) - Type() ButtonType - SetType(ButtonType) - IsChecked() bool - SetChecked(bool) -} diff --git a/vendor/github.com/google/gxui/canvas.go b/vendor/github.com/google/gxui/canvas.go deleted file mode 100644 index 48d57f0..0000000 --- a/vendor/github.com/google/gxui/canvas.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" -) - -type Canvas interface { - Size() math.Size - IsComplete() bool - Complete() - Push() - Pop() - AddClip(math.Rect) - Clear(Color) - DrawCanvas(c Canvas, position math.Point) - DrawTexture(t Texture, bounds math.Rect) - DrawRunes(font Font, runes []rune, points []math.Point, color Color) - DrawLines(Polygon, Pen) - DrawPolygon(Polygon, Pen, Brush) - DrawRect(math.Rect, Brush) - DrawRoundedRect(rect math.Rect, tl, tr, bl, br float32, p Pen, b Brush) -} diff --git a/vendor/github.com/google/gxui/channeled_event.go b/vendor/github.com/google/gxui/channeled_event.go deleted file mode 100644 index 580c727..0000000 --- a/vendor/github.com/google/gxui/channeled_event.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "reflect" - "sync" -) - -type ChanneledEvent struct { - sync.RWMutex - base EventBase - channel chan func() -} - -func CreateChanneledEvent(signature interface{}, channel chan func()) Event { - e := &ChanneledEvent{ - channel: channel, - } - e.base.init(signature) - baseUnlisten := e.base.unlisten - e.base.unlisten = func(id int) { - e.RLock() - baseUnlisten(id) - e.RUnlock() - } - return e -} - -func (e *ChanneledEvent) Fire(args ...interface{}) { - e.base.VerifyArguments(args) - e.channel <- func() { - e.RLock() - e.base.InvokeListeners(args) - e.RUnlock() - } -} - -func (e *ChanneledEvent) Listen(listener interface{}) EventSubscription { - e.Lock() - res := e.base.Listen(listener) - e.Unlock() - return res -} - -func (e *ChanneledEvent) ParameterTypes() []reflect.Type { - return e.base.ParameterTypes() -} diff --git a/vendor/github.com/google/gxui/code_editor.go b/vendor/github.com/google/gxui/code_editor.go deleted file mode 100644 index 0686029..0000000 --- a/vendor/github.com/google/gxui/code_editor.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type CodeSuggestion interface { - Name() string - Code() string -} - -type CodeSuggestionProvider interface { - SuggestionsAt(runeIndex int) []CodeSuggestion -} - -type CodeEditor interface { - TextBox - SyntaxLayers() CodeSyntaxLayers - SetSyntaxLayers(CodeSyntaxLayers) - TabWidth() int - SetTabWidth(int) - SuggestionProvider() CodeSuggestionProvider - SetSuggestionProvider(CodeSuggestionProvider) - ShowSuggestionList() - HideSuggestionList() -} diff --git a/vendor/github.com/google/gxui/code_syntax_layer.go b/vendor/github.com/google/gxui/code_syntax_layer.go deleted file mode 100644 index d2a8346..0000000 --- a/vendor/github.com/google/gxui/code_syntax_layer.go +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/interval" - "github.com/google/gxui/math" -) - -type CodeSyntaxLayer struct { - spans interval.IntDataList - color *Color - backgroundColor *Color - borderColor *Color - data interface{} -} - -func CreateCodeSyntaxLayer() *CodeSyntaxLayer { return &CodeSyntaxLayer{} } - -func (l *CodeSyntaxLayer) Clear() { - l.spans = interval.IntDataList{} -} - -func (l *CodeSyntaxLayer) UpdateSpans(runeCount int, edits []TextBoxEdit) { - min := 0 - max := runeCount - for _, e := range edits { - if l == nil { - continue - } - for j, s := range l.spans { - at := e.At - start, end := s.Range() - if start >= at { - start = math.Clamp(start+e.Delta, min, max) - } - if end > at { - end = math.Clamp(end+e.Delta, min, max) - } - if end < start { - end = start - } - l.spans[j] = interval.CreateIntData(start, end, s.Data()) - } - } -} - -func (l *CodeSyntaxLayer) Add(start, count int) { - l.AddData(start, count, nil) -} - -func (l *CodeSyntaxLayer) AddData(start, count int, data interface{}) { - span := interval.CreateIntData(start, start+count, data) - interval.Replace(&l.spans, span) -} - -func (l *CodeSyntaxLayer) AddSpan(span interval.IntData) { - interval.Replace(&l.spans, span) -} - -func (l *CodeSyntaxLayer) Spans() interval.IntDataList { - return l.spans -} - -func (l *CodeSyntaxLayer) SpanAt(runeIndex int) *interval.IntData { - idx := interval.IndexOf(&l.spans, uint64(runeIndex)) - if idx >= 0 { - return &l.spans[idx] - } else { - return nil - } -} - -func (l *CodeSyntaxLayer) Color() *Color { - return l.color -} - -func (l *CodeSyntaxLayer) ClearColor() { - l.color = nil -} - -func (l *CodeSyntaxLayer) SetColor(color Color) { - l.color = &color -} - -func (l *CodeSyntaxLayer) BackgroundColor() *Color { - return l.backgroundColor -} - -func (l *CodeSyntaxLayer) ClearBackgroundColor() { - l.backgroundColor = nil -} - -func (l *CodeSyntaxLayer) SetBackgroundColor(color Color) { - l.backgroundColor = &color -} - -func (l *CodeSyntaxLayer) BorderColor() *Color { - return l.borderColor -} - -func (l *CodeSyntaxLayer) ClearBorderColor() { - l.borderColor = nil -} - -func (l *CodeSyntaxLayer) SetBorderColor(color Color) { - l.borderColor = &color -} - -func (l *CodeSyntaxLayer) Data() interface{} { - return l.data -} - -func (l *CodeSyntaxLayer) SetData(data interface{}) { - l.data = data -} - -type CodeSyntaxLayers []*CodeSyntaxLayer - -func (l *CodeSyntaxLayers) Get(idx int) *CodeSyntaxLayer { - if len(*l) <= idx { - old := *l - *l = make(CodeSyntaxLayers, idx+1) - copy(*l, old) - } - layer := (*l)[idx] - if layer == nil { - layer = &CodeSyntaxLayer{} - (*l)[idx] = layer - } - return layer -} - -func (l *CodeSyntaxLayers) Clear() { - *l = CodeSyntaxLayers{} -} diff --git a/vendor/github.com/google/gxui/color.go b/vendor/github.com/google/gxui/color.go deleted file mode 100644 index 58d5f26..0000000 --- a/vendor/github.com/google/gxui/color.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import "github.com/google/gxui/math" - -var Transparent = Color{0.0, 0.0, 0.0, 0.0} - -var Black = Color{0.0, 0.0, 0.0, 1.0} - -var Red10 = Color{0.1, 0.0, 0.0, 1.0} -var Red20 = Color{0.2, 0.0, 0.0, 1.0} -var Red30 = Color{0.3, 0.0, 0.0, 1.0} -var Red40 = Color{0.4, 0.0, 0.0, 1.0} -var Red50 = Color{0.5, 0.0, 0.0, 1.0} -var Red60 = Color{0.6, 0.0, 0.0, 1.0} -var Red70 = Color{0.7, 0.0, 0.0, 1.0} -var Red80 = Color{0.8, 0.0, 0.0, 1.0} -var Red90 = Color{0.9, 0.0, 0.0, 1.0} -var Red = Color{1.0, 0.0, 0.0, 1.0} - -var Green10 = Color{0.0, 0.1, 0.0, 1.0} -var Green20 = Color{0.0, 0.2, 0.0, 1.0} -var Green30 = Color{0.0, 0.3, 0.0, 1.0} -var Green40 = Color{0.0, 0.4, 0.0, 1.0} -var Green50 = Color{0.0, 0.5, 0.0, 1.0} -var Green60 = Color{0.0, 0.6, 0.0, 1.0} -var Green70 = Color{0.0, 0.7, 0.0, 1.0} -var Green80 = Color{0.0, 0.8, 0.0, 1.0} -var Green90 = Color{0.0, 0.9, 0.0, 1.0} -var Green = Color{0.0, 1.0, 0.0, 1.0} - -var Blue10 = Color{0.0, 0.0, 0.1, 1.0} -var Blue20 = Color{0.0, 0.0, 0.2, 1.0} -var Blue30 = Color{0.0, 0.0, 0.3, 1.0} -var Blue40 = Color{0.0, 0.0, 0.4, 1.0} -var Blue50 = Color{0.0, 0.0, 0.5, 1.0} -var Blue60 = Color{0.0, 0.0, 0.6, 1.0} -var Blue70 = Color{0.0, 0.0, 0.7, 1.0} -var Blue80 = Color{0.0, 0.0, 0.8, 1.0} -var Blue90 = Color{0.0, 0.0, 0.9, 1.0} -var Blue = Color{0.0, 0.0, 1.0, 1.0} - -var Gray10 = Color{0.1, 0.1, 0.1, 1.0} -var Gray15 = Color{0.15, 0.15, 0.15, 1.0} -var Gray20 = Color{0.2, 0.2, 0.2, 1.0} -var Gray30 = Color{0.3, 0.3, 0.3, 1.0} -var Gray40 = Color{0.4, 0.4, 0.4, 1.0} -var Gray50 = Color{0.5, 0.5, 0.5, 1.0} -var Gray60 = Color{0.6, 0.6, 0.6, 1.0} -var Gray70 = Color{0.7, 0.7, 0.7, 1.0} -var Gray80 = Color{0.8, 0.8, 0.8, 1.0} -var Gray90 = Color{0.9, 0.9, 0.9, 1.0} -var White = Color{1.0, 1.0, 1.0, 1.0} - -var Yellow = Color{1.0, 1.0, 0.0, 1.0} - -type Color struct { - R, G, B, A float32 -} - -func ColorFromHex(hex uint32) Color { - return Color{ - A: float32((hex>>24)&0xFF) / 255.0, - R: float32((hex>>16)&0xFF) / 255.0, - G: float32((hex>>8)&0xFF) / 255.0, - B: float32(hex&0xFF) / 255.0, - } -} - -func (c Color) MulRGB(s float32) Color { - return Color{c.R * s, c.G * s, c.B * s, c.A} -} - -func (c Color) Saturate() Color { - return Color{math.Saturate(c.R), math.Saturate(c.G), math.Saturate(c.B), math.Saturate(c.A)} -} diff --git a/vendor/github.com/google/gxui/container.go b/vendor/github.com/google/gxui/container.go deleted file mode 100644 index 1c45773..0000000 --- a/vendor/github.com/google/gxui/container.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "fmt" - "strings" - - "github.com/google/gxui/math" -) - -type Child struct { - Control Control - Offset math.Point -} - -type Parent interface { - Children() Children - Relayout() - Redraw() -} - -type Container interface { - Parent - AddChild(child Control) *Child - AddChildAt(index int, child Control) *Child - RemoveChild(child Control) - RemoveChildAt(index int) - RemoveAll() - Padding() math.Spacing - SetPadding(math.Spacing) -} - -// String returns a string describing the child type and bounds. -func (c *Child) String() string { - return fmt.Sprintf("Type: %T, Bounds: %v", c.Control, c.Bounds()) -} - -// Bounds returns the Child bounds relative to the parent. -func (c *Child) Bounds() math.Rect { - return c.Control.Size().Rect().Offset(c.Offset) -} - -// Layout sets the Child size and offset relative to the parent. -// Layout should only be called by the Child's parent. -func (c *Child) Layout(rect math.Rect) { - c.Offset = rect.Min - c.Control.SetSize(rect.Size()) -} - -// Children is a list of Child pointers. -type Children []*Child - -// String returns a string describing the child type and bounds. -func (c Children) String() string { - s := make([]string, len(c)) - for i, c := range c { - s[i] = fmt.Sprintf("%d: %s", i, c.String()) - } - return strings.Join(s, "\n") -} - -// IndexOf returns and returns the index of the child control, or -1 if the -// child is not in this Children list. -func (c Children) IndexOf(control Control) int { - for i, child := range c { - if child.Control == control { - return i - } - } - return -1 -} - -// Find returns and returns the Child pointer for the given Control, or nil -// if the child is not in this Children list. -func (c Children) Find(control Control) *Child { - for _, child := range c { - if child.Control == control { - return child - } - } - return nil -} diff --git a/vendor/github.com/google/gxui/control.go b/vendor/github.com/google/gxui/control.go deleted file mode 100644 index a0c6f30..0000000 --- a/vendor/github.com/google/gxui/control.go +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import "github.com/google/gxui/math" - -// Control is the interface exposed by all UI control elements. -type Control interface { - // Size returns the size of the control. If the control is not attached, then - // the returned size is undefined. - Size() math.Size - - // SetSize sets the size of the control to the specified value. - // SetSize should only be called by the parent of the control during layout. - SetSize(math.Size) - - // Draw draws the control's visual apperance into the returned, new canvas. - // Draw is typically called by the parent of the control - calling Draw will - // not issue a re-draw of an attached control. - Draw() Canvas - - // Parent returns the parent of the control. - Parent() Parent - - // SetParent sets the parent of the control. - // SetParent should only be called by the new parent of the control. - SetParent(Parent) - - // Attached returns true if the control is directly or indirectly attached - // to a window. - Attached() bool - - // Attach is called when the control is directly or indirectly attached to a - // window. - // Attach should only be called by the parent of the control. - Attach() - - // Detach is called when the control is directly or indirectly detached from a - // window. - // Detach should only be called by the parent of the control. - Detach() - - // DesiredSize returns the desired size of the control based on the min and - // max size limits. The parent control may ignore the desired size. - DesiredSize(min, max math.Size) math.Size - - // Margin returns the desired spacing between sibling controls. - Margin() math.Spacing - - // SetMargin set the desired spacing between sibling controls, issuing a - // relayout if the margin has changed. - SetMargin(math.Spacing) - - // IsVisible returns true if the control is visible. - IsVisible() bool - - // SetVisible sets the visibility of the control. - SetVisible(bool) - - // ContainsPoint returns true if the specified local-space point is considered - // within the control. - ContainsPoint(math.Point) bool - - // IsMouseOver returns true if the mouse cursor was last reported within the - // control. - IsMouseOver() bool - - // IsMouseDown returns true if button was last reported pressed on the - // control. - IsMouseDown(button MouseButton) bool - - // Click is called when the mouse is pressed and released on the control. - // If Click returns true, then the click event is consumed by the control, - // otherwise the next control below the should be considered for the click - // event. - Click(MouseEvent) (consume bool) - - // DoubleClick is called when the mouse is double-clicked on the control. - // If DoubleClick returns true, then the double-click event is consumed by the - // control, otherwise the next control below the should be considered for the - // double-click event. - DoubleClick(MouseEvent) (consume bool) - - // KeyPress is called when a keyboard key is pressed while the control (or - // non-consuming child) has focus. If KeyPress returns true, then the - // key-press event is consumed by the control, otherwise the parent control - // should be considered for the key-press event. - KeyPress(KeyboardEvent) (consume bool) - - // KeyStroke is called when a key-storke is made while the control (or - // non-consuming child) has focus. If KeyStroke returns true, then the - // key-stroke event is consumed by the control, otherwise the parent control - // should be considered for the key-stroke event. - KeyStroke(KeyStrokeEvent) (consume bool) - - // MouseScroll is called when a mouse scroll is made while the control (or - // non-consuming child) has focus. If MouseScroll returns true, then the - // mouse-scroll event is consumed by the control, otherwise the parent control - // should be considered for the key-stroke event. - MouseScroll(MouseEvent) (consume bool) - - // MouseMove is called when the mouse cursor moves over the control. - MouseMove(MouseEvent) - - // MouseEnter is called when the mouse cursor transitions from outside to - // inside the bounds of the control. - MouseEnter(MouseEvent) - - // MouseExit is called when the mouse cursor transitions from inside to - // outside the bounds of the control. - MouseExit(MouseEvent) - - // MouseDown is called when a mouse button is pressed while the mouse cursor - // is over the control. - MouseDown(MouseEvent) - - // MouseUp is called when a mouse button is released while the mouse cursor - // is over the control. - MouseUp(MouseEvent) - - // KeyDown is called when a keyboard button is pressed while the control (or - // child control) has focus. - KeyDown(KeyboardEvent) - - // KeyUp is called when a keyboard button is released while the control (or - // child control) has focus. - KeyUp(KeyboardEvent) - - // KeyRepeat is called when a keyboard button held long enough for a - // repeat-key event while the control (or child control) has focus. - KeyRepeat(KeyboardEvent) - - // OnAttach subscribes f to be called whenever the control is attached. - OnAttach(f func()) EventSubscription - - // OnDetach subscribes f to be called whenever the control is detached. - OnDetach(f func()) EventSubscription - - // OnKeyPress subscribes f to be called whenever the control receives a - // key-press event. - OnKeyPress(f func(KeyboardEvent)) EventSubscription - - // OnKeyStroke subscribes f to be called whenever the control receives a - // key-stroke event. - OnKeyStroke(f func(KeyStrokeEvent)) EventSubscription - - // OnClick subscribes f to be called whenever the control receives a click - // event. - OnClick(f func(MouseEvent)) EventSubscription - - // OnDoubleClick subscribes f to be called whenever the control receives a - // double-click event. - OnDoubleClick(f func(MouseEvent)) EventSubscription - - // OnMouseMove subscribes f to be called whenever the control receives a - // mouse-move event. - OnMouseMove(f func(MouseEvent)) EventSubscription - - // OnMouseEnter subscribes f to be called whenever the control receives a - // mouse-enter event. - OnMouseEnter(f func(MouseEvent)) EventSubscription - - // OnMouseExit subscribes f to be called whenever the control receives a - // mouse-exit event. - OnMouseExit(f func(MouseEvent)) EventSubscription - - // OnMouseDown subscribes f to be called whenever the control receives a - // mouse-down event. - OnMouseDown(f func(MouseEvent)) EventSubscription - - // OnMouseUp subscribes f to be called whenever the control receives a - // mouse-up event. - OnMouseUp(f func(MouseEvent)) EventSubscription - - // OnMouseScroll subscribes f to be called whenever the control receives a - // mouse-scroll event. - OnMouseScroll(f func(MouseEvent)) EventSubscription - - // OnKeyDown subscribes f to be called whenever the control receives a - // key-down event. - OnKeyDown(f func(KeyboardEvent)) EventSubscription - - // OnKeyUp subscribes f to be called whenever the control receives a - // key-up event. - OnKeyUp(f func(KeyboardEvent)) EventSubscription - - // OnKeyRepeat subscribes f to be called whenever the control receives a - // key-repeat event. - OnKeyRepeat(f func(KeyboardEvent)) EventSubscription -} diff --git a/vendor/github.com/google/gxui/control_list.go b/vendor/github.com/google/gxui/control_list.go deleted file mode 100644 index 2504166..0000000 --- a/vendor/github.com/google/gxui/control_list.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type ControlList []Control - -func (l ControlList) Contains(c Control) bool { - for _, i := range l { - if i == c { - return true - } - } - return false -} diff --git a/vendor/github.com/google/gxui/debug.go b/vendor/github.com/google/gxui/debug.go deleted file mode 100644 index fb7ccdc..0000000 --- a/vendor/github.com/google/gxui/debug.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "fmt" - "github.com/google/gxui/math" - "reflect" - "runtime" -) - -func indent(depth int) string { - s := "" - for i := 0; i < depth; i++ { - s += " |" - } - return s -} - -func dump(c interface{}, depth int) string { - s := "" - switch t := c.(type) { - case Control: - s += fmt.Sprintf("(%p) %T Size: %+v Margin: %+v \n", &t, t, t.Size(), t.Margin()) - default: - s += fmt.Sprintf("%T\n", t) - } - switch t := c.(type) { - case Container: - for i, c := range t.Children() { - s += fmt.Sprintf("%s--- Child %d: ", indent(depth), i) - s += dump(c.Control, depth+1) - } - } - return s -} - -func Dump(c interface{}) { - fmt.Printf("%s\n", dump(c, 0)) -} - -func FunctionName(i interface{}) string { - return runtime.FuncForPC(reflect.ValueOf(i).Pointer()).Name() -} - -func BreadcrumbsAt(p Container, pnt math.Point) string { - s := reflect.TypeOf(p).String() - for _, c := range p.Children() { - b := c.Control.Size().Rect().Offset(c.Offset) - if b.Contains(pnt) { - switch t := c.Control.(type) { - case Container: - return s + " > " + BreadcrumbsAt(t, pnt.Sub(c.Offset)) - default: - return s + " > " + reflect.TypeOf(c.Control).String() - } - } - } - return s -} - -func Path(p interface{}) string { - if p == nil { - return "nil" - } - - s := reflect.TypeOf(p).String() - - if c, _ := p.(Control); c != nil { - if c.Parent() != nil { - return Path(c.Parent()) + " > " + s - } - } - - return s -} diff --git a/vendor/github.com/google/gxui/default_adapter.go b/vendor/github.com/google/gxui/default_adapter.go deleted file mode 100644 index 77f60d8..0000000 --- a/vendor/github.com/google/gxui/default_adapter.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "fmt" - "reflect" - - "github.com/google/gxui/math" -) - -type Viewer interface { - View(t Theme) Control -} - -type Stringer interface { - String() string -} - -type DefaultAdapter struct { - AdapterBase - items reflect.Value - itemToIndex map[AdapterItem]int - size math.Size - styleLabel func(Theme, Label) -} - -func CreateDefaultAdapter() *DefaultAdapter { - l := &DefaultAdapter{ - size: math.Size{W: 200, H: 16}, - } - return l -} - -func (a *DefaultAdapter) SetSizeAsLargest(theme Theme) { - s := math.Size{} - font := theme.DefaultFont() - for i := 0; i < a.Count(); i++ { - switch t := a.ItemAt(i).(type) { - case Viewer: - s = s.Max(t.View(theme).DesiredSize(math.ZeroSize, math.MaxSize)) - - case Stringer: - s = s.Max(font.Measure(&TextBlock{ - Runes: []rune(t.String()), - })) - - default: - s = s.Max(font.Measure(&TextBlock{ - Runes: []rune(fmt.Sprintf("%+v", t)), - })) - } - } - a.SetSize(s) -} - -func (a *DefaultAdapter) SetStyleLabel(f func(Theme, Label)) { - a.styleLabel = f - a.DataChanged(true) -} - -func (a *DefaultAdapter) Count() int { - if !a.items.IsValid() { - return 0 - } - - switch a.items.Kind() { - case reflect.Slice, reflect.Array: - return a.items.Len() - - default: - return 1 - } -} - -func (a *DefaultAdapter) ItemAt(index int) AdapterItem { - count := a.Count() - if index < 0 || index >= count { - panic(fmt.Errorf("ItemAt index %d is out of bounds [%d, %d]", - index, 0, count-1)) - } - - switch a.items.Kind() { - case reflect.Slice, reflect.Array: - return a.items.Index(index).Interface() - - default: - return a.items.Interface() - } - -} - -func (a *DefaultAdapter) ItemIndex(item AdapterItem) int { - return a.itemToIndex[item] -} - -func (a *DefaultAdapter) Size(theme Theme) math.Size { - return a.size -} - -func (a *DefaultAdapter) SetSize(s math.Size) { - a.size = s - a.DataChanged(true) -} - -func (a *DefaultAdapter) Create(theme Theme, index int) Control { - switch t := a.ItemAt(index).(type) { - case Viewer: - return t.View(theme) - - case Stringer: - l := theme.CreateLabel() - l.SetMargin(math.ZeroSpacing) - l.SetMultiline(false) - l.SetText(t.String()) - if a.styleLabel != nil { - a.styleLabel(theme, l) - } - return l - - default: - l := theme.CreateLabel() - l.SetMargin(math.ZeroSpacing) - l.SetMultiline(false) - l.SetText(fmt.Sprintf("%+v", t)) - if a.styleLabel != nil { - a.styleLabel(theme, l) - } - return l - } -} - -func (a *DefaultAdapter) Items() interface{} { - return a.items.Interface() -} - -func (a *DefaultAdapter) SetItems(items interface{}) { - a.items = reflect.ValueOf(items) - a.itemToIndex = make(map[AdapterItem]int) - for idx := 0; idx < a.Count(); idx++ { - a.itemToIndex[a.ItemAt(idx)] = idx - } - a.DataReplaced() -} diff --git a/vendor/github.com/google/gxui/direction.go b/vendor/github.com/google/gxui/direction.go deleted file mode 100644 index d938176..0000000 --- a/vendor/github.com/google/gxui/direction.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import "fmt" - -type Direction int - -const ( - TopToBottom Direction = iota - LeftToRight - BottomToTop - RightToLeft -) - -func (d Direction) LeftToRight() bool { return d == LeftToRight } -func (d Direction) RightToLeft() bool { return d == RightToLeft } -func (d Direction) TopToBottom() bool { return d == TopToBottom } -func (d Direction) BottomToTop() bool { return d == BottomToTop } - -func (d Direction) Flip() Direction { - switch d { - case TopToBottom: - return BottomToTop - case LeftToRight: - return RightToLeft - case BottomToTop: - return TopToBottom - case RightToLeft: - return LeftToRight - default: - panic(fmt.Errorf("Unknown direction %d", d)) - } -} - -func (d Direction) Orientation() Orientation { - switch d { - case TopToBottom, BottomToTop: - return Vertical - case LeftToRight, RightToLeft: - return Horizontal - default: - panic(fmt.Errorf("Unknown direction %d", d)) - } -} diff --git a/vendor/github.com/google/gxui/driver.go b/vendor/github.com/google/gxui/driver.go deleted file mode 100644 index 5dd6c1b..0000000 --- a/vendor/github.com/google/gxui/driver.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "image" - - "github.com/google/gxui/math" -) - -type Driver interface { - // Call queues f to be run on the UI go-routine, returning before f may have - // been called. Call returns false if the driver has been terminated, in which - // case f may not be called. - Call(f func()) bool - - // CallSync queues and then blocks for f to be run on the UI go-routine. - // Call returns false if the driver has been terminated, in which case f may - // not be called. - CallSync(f func()) bool - - Terminate() - SetClipboard(str string) - GetClipboard() (string, error) - - // CreateFont loads a font from the provided TrueType bytes. - CreateFont(data []byte, size int) (Font, error) - - // CreateWindowedViewport creates a new windowed Viewport with the specified - // width and height in device independent pixels. - CreateWindowedViewport(width, height int, name string) Viewport - - // CreateFullscreenViewport creates a new fullscreen Viewport with the - // specified width and height in device independent pixels. If width or - // height is 0, then the viewport adopts the current screen resolution. - CreateFullscreenViewport(width, height int, name string) Viewport - - CreateCanvas(math.Size) Canvas - CreateTexture(img image.Image, pixelsPerDip float32) Texture - - // Debug function used to verify that the caller is executing on the UI - // go-routine. If the caller is not on the UI go-routine then the function - // panics. - AssertUIGoroutine() -} diff --git a/vendor/github.com/google/gxui/drivers/gl/blitter.go b/vendor/github.com/google/gxui/drivers/gl/blitter.go deleted file mode 100644 index 75e5c06..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/blitter.go +++ /dev/null @@ -1,306 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - - "github.com/goxjs/gl" -) - -const ( - debugWireframePolygons = false - - vsCopySrc = ` - attribute vec2 aPosition; - varying vec2 vTexcoords; - uniform mat3 mPos; - uniform mat3 mUV; - void main() { - vec3 pos3 = vec3(aPosition, 1.0); - gl_Position = vec4(mPos * pos3, 1.0); - vTexcoords = (mUV * pos3).xy; - }` - - fsCopySrc = ` - #ifdef GL_ES - precision mediump float; - #endif - - uniform sampler2D source; - varying vec2 vTexcoords; - void main() { - gl_FragColor = texture2D(source, vTexcoords); - }` - - vsColorSrc = ` - attribute vec2 aPosition; - uniform mat3 mPos; - void main() { - vec3 pos3 = vec3(aPosition, 1.0); - gl_Position = vec4((mPos * pos3).xy, 0.0, 1.0); - }` - - fsColorSrc = ` - #ifdef GL_ES - precision mediump float; - #endif - - uniform vec4 Color; - void main() { - gl_FragColor = Color; - gl_FragColor *= gl_FragColor.a; // PMA - }` - - vsFontSrc = ` - attribute vec2 aSrc; - attribute vec2 aDst; - attribute vec4 aClp; - attribute vec4 aCol; - varying vec2 vSrc; - varying vec4 vCol; - varying vec2 vClp; - uniform mat3 mSrc; - uniform mat3 mDst; - void main() { - vec2 vClipMin = (mDst * vec3(aClp.xy, 1.0)).xy; - vec2 vClipMax = (mDst * vec3(aClp.zw, 1.0)).xy; - gl_Position = vec4(mDst * vec3(aDst, 1.0), 1.0); - vSrc = (mSrc * vec3(aSrc, 1.0)).xy; - vClp = (gl_Position.xy - vClipMin) / (vClipMax - vClipMin); - vCol = aCol; - }` - - fsFontSrc = ` - #ifdef GL_ES - precision mediump float; - #endif - - uniform sampler2D source; - varying vec2 vSrc; - varying vec4 vCol; - varying vec2 vClp; - void main() { - vec2 clipping = step(vec2(0.0, 0.0), vClp) * step(vClp, vec2(1.0, 1.0)); - gl_FragColor = vCol * texture2D(source, vSrc).aaaa; - gl_FragColor *= clipping.x * clipping.y; - }` -) - -type glyphBatch struct { - DstRects []float32 - SrcRects []float32 - Colors []float32 - ClipRects []float32 - Indices []uint16 - GlyphPage *textureContext -} - -type blitter struct { - stats *contextStats - quad *shape - copyShader *shaderProgram - colorShader *shaderProgram - fontShader *shaderProgram - glyphBatch glyphBatch -} - -func newBlitter(ctx *context, stats *contextStats) *blitter { - return &blitter{ - stats: stats, - quad: newQuadShape(), - copyShader: newShaderProgram(ctx, vsCopySrc, fsCopySrc), - colorShader: newShaderProgram(ctx, vsColorSrc, fsColorSrc), - fontShader: newShaderProgram(ctx, vsFontSrc, fsFontSrc), - } -} - -func (b *blitter) destroy(ctx *context) { - b.copyShader.destroy(ctx) - b.colorShader.destroy(ctx) - b.fontShader.destroy(ctx) -} - -func (b *blitter) blit(ctx *context, tc *textureContext, srcRect, dstRect math.Rect, ds *drawState) { - b.commitGlyphs(ctx) - - dstRect = dstRect.Offset(ds.OriginPixels) - sw, sh := tc.sizePixels.WH() - dw, dh := ctx.sizePixels.WH() - - var mUV math.Mat3 - if tc.flipY { - mUV = math.CreateMat3( - float32(srcRect.W())/float32(sw), 0, 0, - 0, -float32(srcRect.H())/float32(sh), 0, - float32(srcRect.Min.X)/float32(sw), - 1.0-float32(srcRect.Min.Y)/float32(sh), 1, - ) - } else { - mUV = math.CreateMat3( - float32(srcRect.W())/float32(sw), 0, 0, - 0, float32(srcRect.H())/float32(sh), 0, - float32(srcRect.Min.X)/float32(sw), - float32(srcRect.Min.Y)/float32(sh), 1, - ) - } - mPos := math.CreateMat3( - +2.0*float32(dstRect.W())/float32(dw), 0, 0, - 0, -2.0*float32(dstRect.H())/float32(dh), 0, - -1.0+2.0*float32(dstRect.Min.X)/float32(dw), - +1.0-2.0*float32(dstRect.Min.Y)/float32(dh), 1, - ) - if !tc.pma { - gl.BlendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA) - } - b.quad.draw(ctx, b.copyShader, uniformBindings{ - "source": tc, - "mUV": mUV, - "mPos": mPos, - }) - if !tc.pma { - gl.BlendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA) - } - b.stats.drawCallCount++ -} - -func (b *blitter) blitGlyph(ctx *context, tc *textureContext, c gxui.Color, srcRect, dstRect math.Rect, ds *drawState) { - dstRect = dstRect.Offset(ds.OriginPixels) - - if b.glyphBatch.GlyphPage != tc { - b.commitGlyphs(ctx) - b.glyphBatch.GlyphPage = tc - } - i := uint16(len(b.glyphBatch.DstRects)) / 2 - clip := []float32{ - float32(ds.ClipPixels.Min.X), - float32(ds.ClipPixels.Min.Y), - float32(ds.ClipPixels.Max.X), - float32(ds.ClipPixels.Max.Y), - } - b.glyphBatch.DstRects = append(b.glyphBatch.DstRects, - float32(dstRect.Min.X), float32(dstRect.Min.Y), - float32(dstRect.Max.X), float32(dstRect.Min.Y), - float32(dstRect.Min.X), float32(dstRect.Max.Y), - float32(dstRect.Max.X), float32(dstRect.Max.Y), - ) - b.glyphBatch.SrcRects = append(b.glyphBatch.SrcRects, - float32(srcRect.Min.X), float32(srcRect.Min.Y), - float32(srcRect.Max.X), float32(srcRect.Min.Y), - float32(srcRect.Min.X), float32(srcRect.Max.Y), - float32(srcRect.Max.X), float32(srcRect.Max.Y), - ) - b.glyphBatch.ClipRects = append(b.glyphBatch.ClipRects, - clip[0], clip[1], clip[2], clip[3], - clip[0], clip[1], clip[2], clip[3], - clip[0], clip[1], clip[2], clip[3], - clip[0], clip[1], clip[2], clip[3], - ) - - c = c.MulRGB(c.A) // PMA - b.glyphBatch.Colors = append(b.glyphBatch.Colors, - c.R, c.G, c.B, c.A, - c.R, c.G, c.B, c.A, - c.R, c.G, c.B, c.A, - c.R, c.G, c.B, c.A, - ) - b.glyphBatch.Indices = append(b.glyphBatch.Indices, - i, i+1, i+2, - i+2, i+1, i+3, - ) -} - -func (b *blitter) blitShape(ctx *context, shape shape, color gxui.Color, ds *drawState) { - b.commitGlyphs(ctx) - dipsToPixels := ctx.resolution.dipsToPixels() - dw, dh := ctx.sizePixels.WH() - mPos := math.CreateMat3( - +2.0*dipsToPixels/float32(dw), 0, 0, - 0, -2.0*dipsToPixels/float32(dh), 0, - -1.0+2.0*float32(ds.OriginPixels.X)/float32(dw), - +1.0-2.0*float32(ds.OriginPixels.Y)/float32(dh), 1, - ) - - shape.draw(ctx, b.colorShader, uniformBindings{ - "mPos": mPos, - "Color": color, - }) - - if debugWireframePolygons { - // glPolygonMode is not available in OpenGL ES/WebGL (since its implementation is very inefficient; a shame because it's useful for debugging). - //gl.PolygonMode(gl.FRONT_AND_BACK, gl.LINE) - shape.draw(ctx, b.colorShader, uniformBindings{ - "mPos": mPos, - "Color": gxui.Blue, - }) - //gl.PolygonMode(gl.FRONT_AND_BACK, gl.FILL) - } - b.stats.drawCallCount++ -} - -func (b *blitter) blitRect(ctx *context, dstRect math.Rect, color gxui.Color, ds *drawState) { - b.commitGlyphs(ctx) - dstRect = dstRect.Offset(ds.OriginPixels) - dw, dh := ctx.sizePixels.WH() - mPos := math.CreateMat3( - +2.0*float32(dstRect.W())/float32(dw), 0, 0, - 0, -2.0*float32(dstRect.H())/float32(dh), 0, - -1.0+2.0*float32(dstRect.Min.X)/float32(dw), - +1.0-2.0*float32(dstRect.Min.Y)/float32(dh), 1, - ) - - b.quad.draw(ctx, b.colorShader, uniformBindings{ - "mPos": mPos, - "Color": color, - }) - b.stats.drawCallCount++ -} - -func (b *blitter) commit(ctx *context) { - b.commitGlyphs(ctx) -} - -func (b *blitter) commitGlyphs(ctx *context) { - tc := b.glyphBatch.GlyphPage - if tc == nil { - return - } - sw, sh := tc.sizePixels.WH() - dw, dh := ctx.sizePixels.WH() - - mSrc := math.CreateMat3( - 1.0/float32(sw), 0, 0, - 0, 1.0/float32(sh), 0, - 0.0, 0.0, 1, - ) - mDst := math.CreateMat3( - +2.0/float32(dw), 0, 0, - 0, -2.0/float32(dh), 0, - -1.0, +1.0, 1, - ) - vb := newVertexBuffer( - newVertexStream("aDst", stFloatVec2, b.glyphBatch.DstRects), - newVertexStream("aSrc", stFloatVec2, b.glyphBatch.SrcRects), - newVertexStream("aClp", stFloatVec4, b.glyphBatch.ClipRects), - newVertexStream("aCol", stFloatVec4, b.glyphBatch.Colors), - ) - ib := newIndexBuffer(ptUshort, b.glyphBatch.Indices) - s := newShape(vb, ib, dmTriangles) - gl.Disable(gl.SCISSOR_TEST) - s.draw(ctx, b.fontShader, uniformBindings{ - "source": tc, - "mDst": mDst, - "mSrc": mSrc, - }) - gl.Enable(gl.SCISSOR_TEST) - b.glyphBatch.GlyphPage = nil - b.glyphBatch.DstRects = b.glyphBatch.DstRects[:0] - b.glyphBatch.SrcRects = b.glyphBatch.SrcRects[:0] - b.glyphBatch.ClipRects = b.glyphBatch.ClipRects[:0] - b.glyphBatch.Colors = b.glyphBatch.Colors[:0] - b.glyphBatch.Indices = b.glyphBatch.Indices[:0] - b.stats.drawCallCount++ -} diff --git a/vendor/github.com/google/gxui/drivers/gl/canvas.go b/vendor/github.com/google/gxui/drivers/gl/canvas.go deleted file mode 100644 index ba25737..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/canvas.go +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/goxjs/gl" -) - -type drawStateStack []drawState - -func (s *drawStateStack) head() *drawState { - return &(*s)[len(*s)-1] -} -func (s *drawStateStack) push(ds drawState) { - *s = append(*s, ds) -} -func (s *drawStateStack) pop() { - *s = (*s)[:len(*s)-1] -} - -type canvasOp func(ctx *context, dss *drawStateStack) - -type drawState struct { - // The below are all in window coordinates - ClipPixels math.Rect - OriginPixels math.Point -} - -type canvas struct { - sizeDips math.Size - ops []canvasOp - built bool - buildingPushCount int -} - -func newCanvas(sizeDips math.Size) *canvas { - if sizeDips.W <= 0 || sizeDips.H < 0 { - panic(fmt.Errorf("Canvas width and height must be positive. Size: %d", sizeDips)) - } - c := &canvas{ - sizeDips: sizeDips, - } - return c -} - -func (c *canvas) draw(ctx *context, dss *drawStateStack) { - ds := dss.head() - ctx.apply(ds) - - for _, op := range c.ops { - op(ctx, dss) - } -} - -func (c *canvas) appendOp(name string, op canvasOp) { - if c.built { - panic(fmt.Errorf("%s() called after Complete()", name)) - } - c.ops = append(c.ops, op) -} - -// gxui.Canvas compliance -func (c *canvas) Size() math.Size { - return c.sizeDips -} - -func (c *canvas) IsComplete() bool { - return c.built -} - -func (c *canvas) Complete() { - if c.built { - panic("Complete() called twice") - } - if c.buildingPushCount != 0 { - panic(fmt.Errorf("Push() count was %d when calling Complete", c.buildingPushCount)) - } - c.built = true -} - -func (c *canvas) Push() { - c.buildingPushCount++ - c.appendOp("Push", func(ctx *context, dss *drawStateStack) { - dss.push(*dss.head()) - }) -} - -func (c *canvas) Pop() { - c.buildingPushCount-- - c.appendOp("Pop", func(ctx *context, dss *drawStateStack) { - dss.pop() - ctx.apply(dss.head()) - }) -} - -func (c *canvas) AddClip(r math.Rect) { - c.appendOp("AddClip", func(ctx *context, dss *drawStateStack) { - ds := dss.head() - rectLocalPixels := ctx.resolution.rectDipsToPixels(r) - rectWindowPixels := rectLocalPixels.Offset(ds.OriginPixels) - ds.ClipPixels = ds.ClipPixels.Intersect(rectWindowPixels) - ctx.apply(ds) - }) -} - -func (c *canvas) Clear(color gxui.Color) { - c.appendOp("Clear", func(ctx *context, dss *drawStateStack) { - gl.ClearColor( - color.R, - color.G, - color.B, - color.A, - ) - gl.Clear(gl.COLOR_BUFFER_BIT) - }) -} - -func (c *canvas) DrawCanvas(cc gxui.Canvas, offsetDips math.Point) { - if cc == nil { - panic("Canvas cannot be nil") - } - childCanvas := cc.(*canvas) - c.appendOp("DrawCanvas", func(ctx *context, dss *drawStateStack) { - offsetPixels := ctx.resolution.pointDipsToPixels(offsetDips) - dss.push(*dss.head()) - ds := dss.head() - ds.OriginPixels = ds.OriginPixels.Add(offsetPixels) - childCanvas.draw(ctx, dss) - dss.pop() - ctx.apply(dss.head()) - }) -} - -func (c *canvas) DrawRunes(f gxui.Font, r []rune, p []math.Point, col gxui.Color) { - if f == nil { - panic("Font cannot be nil") - } - runes := append([]rune{}, r...) - points := append([]math.Point{}, p...) - c.appendOp("DrawRunes", func(ctx *context, dss *drawStateStack) { - f.(*font).DrawRunes(ctx, runes, points, col, dss.head()) - }) -} - -func (c *canvas) DrawLines(lines gxui.Polygon, pen gxui.Pen) { - edge := openPolyToShape(lines, pen.Width) - c.appendOp("DrawLines", func(ctx *context, dss *drawStateStack) { - ds := dss.head() - if edge != nil && pen.Color.A > 0 { - ctx.blitter.blitShape(ctx, *edge, pen.Color, ds) - } - }) -} - -func (c *canvas) DrawPolygon(poly gxui.Polygon, pen gxui.Pen, brush gxui.Brush) { - fill, edge := closedPolyToShape(poly, pen.Width) - c.appendOp("DrawPolygon", func(ctx *context, dss *drawStateStack) { - ds := dss.head() - if fill != nil && brush.Color.A > 0 { - ctx.blitter.blitShape(ctx, *fill, brush.Color, ds) - } - if edge != nil && pen.Color.A > 0 { - ctx.blitter.blitShape(ctx, *edge, pen.Color, ds) - } - }) -} - -func (c *canvas) DrawRect(r math.Rect, brush gxui.Brush) { - c.appendOp("DrawRect", func(ctx *context, dss *drawStateStack) { - ctx.blitter.blitRect(ctx, ctx.resolution.rectDipsToPixels(r), brush.Color, dss.head()) - }) -} - -func (c *canvas) DrawRoundedRect(r math.Rect, tl, tr, bl, br float32, pen gxui.Pen, brush gxui.Brush) { - if tl == 0 && tr == 0 && bl == 0 && br == 0 && pen.Color.A == 0 { - c.DrawRect(r, brush) - return - } - p := gxui.Polygon{ - gxui.PolygonVertex{Position: r.TL(), RoundedRadius: tl}, - gxui.PolygonVertex{Position: r.TR(), RoundedRadius: tr}, - gxui.PolygonVertex{Position: r.BR(), RoundedRadius: br}, - gxui.PolygonVertex{Position: r.BL(), RoundedRadius: bl}, - } - c.DrawPolygon(p, pen, brush) -} - -func (c *canvas) DrawTexture(t gxui.Texture, r math.Rect) { - if t == nil { - panic("Texture cannot be nil") - } - - c.appendOp("DrawTexture", func(ctx *context, dss *drawStateStack) { - tc := ctx.getOrCreateTextureContext(t.(*texture)) - ctx.blitter.blit(ctx, tc, tc.sizePixels.Rect(), ctx.resolution.rectDipsToPixels(r), dss.head()) - }) -} diff --git a/vendor/github.com/google/gxui/drivers/gl/check_error.go b/vendor/github.com/google/gxui/drivers/gl/check_error.go deleted file mode 100644 index bd3ffe4..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/check_error.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - - "github.com/goxjs/gl" -) - -func checkError() { - if v := gl.GetError(); v != 0 { - switch v { - case gl.INVALID_ENUM: - panic("GL returned error GL_INVALID_ENUM") - case gl.INVALID_FRAMEBUFFER_OPERATION: - panic("GL returned error GL_INVALID_FRAMEBUFFER_OPERATION") - case gl.INVALID_OPERATION: - panic("GL returned error GL_INVALID_OPERATION") - case gl.INVALID_VALUE: - panic("GL returned error GL_INVALID_VALUE") - default: - panic(fmt.Errorf("GL returned error 0x%.4x", v)) - } - } -} diff --git a/vendor/github.com/google/gxui/drivers/gl/context.go b/vendor/github.com/google/gxui/drivers/gl/context.go deleted file mode 100644 index 2b7a26f..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/context.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "github.com/google/gxui/math" - - "github.com/goxjs/gl" -) - -// contextResource is used as an anonymous field by types that are constructed -// per context. -type contextResource struct { - lastContextUse int // used for mark-and-sweeping the resource. -} - -type context struct { - blitter *blitter - resolution resolution - stats contextStats - textureContexts map[*texture]*textureContext - vertexStreamContexts map[*vertexStream]*vertexStreamContext - indexBufferContexts map[*indexBuffer]*indexBufferContext - sizeDips, sizePixels math.Size - clip math.Rect - frame int -} - -func newContext() *context { - ctx := &context{ - textureContexts: make(map[*texture]*textureContext), - vertexStreamContexts: make(map[*vertexStream]*vertexStreamContext), - indexBufferContexts: make(map[*indexBuffer]*indexBufferContext), - } - ctx.blitter = newBlitter(ctx, &ctx.stats) - return ctx -} - -func (c *context) destroy() { - for texture, tc := range c.textureContexts { - delete(c.textureContexts, texture) - tc.destroy() - c.stats.textureCount-- - } - for stream, sc := range c.vertexStreamContexts { - delete(c.vertexStreamContexts, stream) - sc.destroy() - c.stats.vertexStreamCount-- - } - for buffer, ic := range c.indexBufferContexts { - delete(c.indexBufferContexts, buffer) - ic.destroy() - c.stats.indexBufferCount-- - } - c.blitter.destroy(c) - c.blitter = nil -} - -func (c *context) beginDraw(sizeDips, sizePixels math.Size) { - dipsToPixels := float32(sizePixels.W) / float32(sizeDips.W) - - c.sizeDips = sizeDips - c.sizePixels = sizePixels - c.resolution = resolution(dipsToPixels*65536 + 0.5) - - c.stats.drawCallCount = 0 - c.stats.timer("Frame").start() -} - -func (c *context) endDraw() { - // Reap any unused resources - for texture, tc := range c.textureContexts { - if tc.lastContextUse != c.frame { - delete(c.textureContexts, texture) - tc.destroy() - c.stats.textureCount-- - } - } - for stream, sc := range c.vertexStreamContexts { - if sc.lastContextUse != c.frame { - delete(c.vertexStreamContexts, stream) - sc.destroy() - c.stats.vertexStreamCount-- - } - } - for buffer, ic := range c.indexBufferContexts { - if ic.lastContextUse != c.frame { - delete(c.indexBufferContexts, buffer) - ic.destroy() - c.stats.indexBufferCount-- - } - } - - c.stats.timer("Frame").stop() - c.stats.frameCount++ - c.frame++ -} - -func (c *context) getOrCreateTextureContext(t *texture) *textureContext { - tc, found := c.textureContexts[t] - if !found { - tc = t.newContext() - c.textureContexts[t] = tc - c.stats.textureCount++ - } - tc.lastContextUse = c.frame - return tc -} - -func (c *context) getOrCreateVertexStreamContext(vs *vertexStream) *vertexStreamContext { - vc, found := c.vertexStreamContexts[vs] - if !found { - vc = vs.newContext() - c.vertexStreamContexts[vs] = vc - c.stats.vertexStreamCount++ - } - vc.lastContextUse = c.frame - return vc -} - -func (c *context) getOrCreateIndexBufferContext(ib *indexBuffer) *indexBufferContext { - ic, found := c.indexBufferContexts[ib] - if !found { - ic = ib.newContext() - c.indexBufferContexts[ib] = ic - c.stats.indexBufferCount++ - } - ic.lastContextUse = c.frame - return ic -} - -func (c *context) apply(ds *drawState) { - r := ds.ClipPixels - o := c.clip - if o != r { - c.clip = r - vs := c.sizePixels - rs := r.Size() - gl.Scissor(int32(r.Min.X), int32(vs.H)-int32(r.Max.Y), int32(rs.W), int32(rs.H)) - } -} diff --git a/vendor/github.com/google/gxui/drivers/gl/debug.go b/vendor/github.com/google/gxui/drivers/gl/debug.go deleted file mode 100644 index fd89594..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/debug.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !js - -package gl - -import ( - "runtime" - "strings" -) - -// discoverUIGoRoutine finds and stores the program counter of the -// function 'applicationLoop' that must be in the callstack. The -// PC is stored so that AssertUIGoroutine can verify that the call -// came from the application loop (the UI go-routine). -func (d *driver) discoverUIGoRoutine() { - for _, pc := range d.pcs[:runtime.Callers(2, d.pcs)] { - name := runtime.FuncForPC(pc).Name() - if strings.HasSuffix(name, "applicationLoop") { - d.uiPC = pc - return - } - } - panic("applicationLoop was not found in the callstack") -} - -func (d *driver) AssertUIGoroutine() { - for _, pc := range d.pcs[:runtime.Callers(2, d.pcs)] { - if pc == d.uiPC { - return - } - } - panic("AssertUIGoroutine called on a go-routine that was not the UI go-routine") -} diff --git a/vendor/github.com/google/gxui/drivers/gl/debug_js.go b/vendor/github.com/google/gxui/drivers/gl/debug_js.go deleted file mode 100644 index fb18149..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/debug_js.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build js - -package gl - -func (d *driver) discoverUIGoRoutine() { - println("discoverUIGoRoutine not yet implemented on js architecture") -} - -func (d *driver) AssertUIGoroutine() { - // AssertUIGoroutine not yet implemented on js architecture, so it never panics. -} diff --git a/vendor/github.com/google/gxui/drivers/gl/draw_mode.go b/vendor/github.com/google/gxui/drivers/gl/draw_mode.go deleted file mode 100644 index 6a67040..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/draw_mode.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - - "github.com/goxjs/gl" -) - -type drawMode int - -const ( - dmPoints drawMode = gl.POINTS - dmLineStrip drawMode = gl.LINE_STRIP - dmLineLoop drawMode = gl.LINE_LOOP - dmLines drawMode = gl.LINES - dmTriangleStrip drawMode = gl.TRIANGLE_STRIP - dmTriangleFan drawMode = gl.TRIANGLE_FAN - dmTriangles drawMode = gl.TRIANGLES -) - -func (d drawMode) primitiveCount(vertexCount int) int { - switch d { - case dmPoints: - return vertexCount - case dmLineStrip: - return vertexCount - 1 - case dmLineLoop: - return vertexCount - case dmLines: - return vertexCount / 2 - case dmTriangleStrip: - return vertexCount - 2 - case dmTriangleFan: - return vertexCount - 2 - case dmTriangles: - return vertexCount / 3 - default: - panic(fmt.Errorf("Unknown drawMode 0x%.4x", d)) - } -} diff --git a/vendor/github.com/google/gxui/drivers/gl/driver.go b/vendor/github.com/google/gxui/drivers/gl/driver.go deleted file mode 100644 index a56cd76..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/driver.go +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package gl contains an OpenGL implementation of the gxui.Driver interface. -package gl - -import ( - "container/list" - "image" - "runtime" - "sync/atomic" - "time" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/goxjs/gl" - "github.com/goxjs/glfw" -) - -// Maximum time allowed for application to process events on termination. -const maxFlushTime = time.Second * 3 - -func init() { - runtime.LockOSThread() -} - -type driver struct { - pendingDriver chan func() - pendingApp chan func() - terminated int32 // non-zero represents driver terminations - viewports *list.List - - pcs []uintptr // reusable scratch-buffer for use by runtime.Callers. - uiPC uintptr // the program-counter of the applicationLoop function. -} - -// StartDriver starts the gl driver with the given appRoutine. -func StartDriver(appRoutine func(driver gxui.Driver)) { - if runtime.GOMAXPROCS(-1) < 2 { - runtime.GOMAXPROCS(2) - } - - if err := glfw.Init(gl.ContextWatcher); err != nil { - panic(err) - } - defer glfw.Terminate() - - driver := &driver{ - pendingDriver: make(chan func(), 256), - pendingApp: make(chan func(), 256), - viewports: list.New(), - pcs: make([]uintptr, 256), - } - - driver.pendingApp <- driver.discoverUIGoRoutine - driver.pendingApp <- func() { appRoutine(driver) } - go driver.applicationLoop() - driver.driverLoop() -} - -func (d *driver) asyncDriver(f func()) { - d.pendingDriver <- f - d.wake() -} - -func (d *driver) syncDriver(f func()) { - c := make(chan bool, 1) - d.asyncDriver(func() { f(); c <- true }) - <-c -} - -func (d *driver) createDriverEvent(signature interface{}) gxui.Event { - return gxui.CreateChanneledEvent(signature, d.pendingDriver) -} - -func (d *driver) createAppEvent(signature interface{}) gxui.Event { - return gxui.CreateChanneledEvent(signature, d.pendingApp) -} - -// driverLoop pulls and executes funcs from the pendingDriver chan until chan -// close. If there are no funcs enqueued, the driver routine calls and blocks on -// glfw.WaitEvents. All sends on the pendingDriver chan should be paired with a -// call to wake() so that glfw.WaitEvents can return. -func (d *driver) driverLoop() { - for { - select { - case ev, open := <-d.pendingDriver: - if open { - ev() - } else { - return // termintated - } - default: - glfw.WaitEvents() - } - } -} - -func (d *driver) wake() { - glfw.PostEmptyEvent() -} - -// applicationLoop pulls and executes funcs from the pendingApp chan until -// the chan is closed. -func (d *driver) applicationLoop() { - for ev := range d.pendingApp { - ev() - } -} - -// gxui.Driver compliance -func (d *driver) Call(f func()) bool { - if f == nil { - panic("Function must not be nil") - } - if atomic.LoadInt32(&d.terminated) != 0 { - return false // Driver.Terminate has been called - } - d.pendingApp <- f - return true -} - -func (d *driver) CallSync(f func()) bool { - c := make(chan struct{}) - if d.Call(func() { f(); close(c) }) { - <-c - return true - } - return false -} - -func (d *driver) Terminate() { - d.asyncDriver(func() { - // Close all viewports. This will notify the application. - for v := d.viewports.Front(); v != nil; v = v.Next() { - v.Value.(*viewport).Destroy() - } - - // Flush all remaining events from the application and driver. - // This gives the application an opportunity to handle shutdown. - flushStart := time.Now() - for time.Since(flushStart) < maxFlushTime { - done := true - - // Process any application events - sync := make(chan struct{}) - d.Call(func() { - select { - case ev := <-d.pendingApp: - ev() - done = false - default: - } - close(sync) - }) - <-sync - - // Process any driver events - select { - case ev := <-d.pendingDriver: - ev() - done = false - default: - } - - if done { - break - } - } - - // All done. - atomic.StoreInt32(&d.terminated, 1) - close(d.pendingApp) - close(d.pendingDriver) - - d.viewports = nil - }) -} - -func (d *driver) SetClipboard(str string) { - d.asyncDriver(func() { - v := d.viewports.Front().Value.(*viewport) - v.window.SetClipboardString(str) - }) -} - -func (d *driver) GetClipboard() (str string, err error) { - d.syncDriver(func() { - c := d.viewports.Front().Value.(*viewport) - str, err = c.window.GetClipboardString() - }) - return -} - -func (d *driver) CreateFont(data []byte, size int) (gxui.Font, error) { - return newFont(data, size) -} - -func (d *driver) CreateWindowedViewport(width, height int, name string) gxui.Viewport { - var v *viewport - d.syncDriver(func() { - v = newViewport(d, width, height, name, false) - e := d.viewports.PushBack(v) - v.onDestroy.Listen(func() { - d.viewports.Remove(e) - }) - }) - return v -} - -func (d *driver) CreateFullscreenViewport(width, height int, name string) gxui.Viewport { - var v *viewport - d.syncDriver(func() { - v = newViewport(d, width, height, name, true) - e := d.viewports.PushBack(v) - v.onDestroy.Listen(func() { - d.viewports.Remove(e) - }) - }) - return v -} - -func (d *driver) CreateCanvas(s math.Size) gxui.Canvas { - return newCanvas(s) -} - -func (d *driver) CreateTexture(img image.Image, pixelsPerDip float32) gxui.Texture { - return newTexture(img, pixelsPerDip) -} diff --git a/vendor/github.com/google/gxui/drivers/gl/font.go b/vendor/github.com/google/gxui/drivers/gl/font.go deleted file mode 100644 index ec8b7f5..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/font.go +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - "unicode" - - "github.com/golang/freetype/truetype" - "github.com/google/gxui" - "github.com/google/gxui/math" - fnt "golang.org/x/image/font" - "golang.org/x/image/math/fixed" -) - -type font struct { - size int - scale fixed.Int26_6 - glyphMaxSizeDips math.Size - ascentDips int - ttf *truetype.Font - resolutions map[resolution]*glyphTable - glyphAdvanceDips map[rune]int -} - -func newFont(data []byte, size int) (*font, error) { - ttf, err := truetype.Parse(data) - if err != nil { - return nil, err - } - - scale := fixed.Int26_6(size << 6) - bounds := rectangle26_6toRect(ttf.Bounds(scale)) - ascentDips := bounds.Max.Y - - return &font{ - size: size, - scale: scale, - glyphMaxSizeDips: bounds.Size(), - ascentDips: ascentDips, - ttf: ttf, - resolutions: make(map[resolution]*glyphTable), - glyphAdvanceDips: make(map[rune]int), - }, nil -} - -func (f *font) advanceDips(r rune) int { - if g, found := f.glyphAdvanceDips[r]; found { - return g - } - idx := f.ttf.Index(r) - gb := &truetype.GlyphBuf{} - err := gb.Load(f.ttf, f.scale, idx, fnt.HintingFull) - if err != nil { - panic(err) - } - - advance := int((gb.AdvanceWidth + 0x3f) >> 6) - f.glyphAdvanceDips[r] = advance - return advance -} - -func (f *font) glyphTable(resolution resolution) *glyphTable { - t, found := f.resolutions[resolution] - if !found { - opt := truetype.Options{ - Size: float64(f.size), - DPI: float64(resolution.intDipsToPixels(72)), - Hinting: fnt.HintingFull, - GlyphCacheEntries: 1, - SubPixelsX: 1, - SubPixelsY: 1, - } - t = newGlyphTable(truetype.NewFace(f.ttf, &opt)) - f.resolutions[resolution] = t - } - return t -} - -func (f *font) align(rect math.Rect, size math.Size, ascent int, h gxui.HorizontalAlignment, v gxui.VerticalAlignment) math.Point { - var origin math.Point - switch h { - case gxui.AlignLeft: - origin.X = rect.Min.X - case gxui.AlignCenter: - origin.X = rect.Mid().X - (size.W / 2) - case gxui.AlignRight: - origin.X = rect.Max.X - size.W - } - switch v { - case gxui.AlignTop: - origin.Y = rect.Min.Y + ascent - case gxui.AlignMiddle: - origin.Y = rect.Mid().Y - (size.H / 2) + ascent - case gxui.AlignBottom: - origin.Y = rect.Max.Y - size.H + ascent - } - return origin -} - -func (f *font) DrawRunes(ctx *context, runes []rune, offsets []math.Point, col gxui.Color, ds *drawState) { - if len(runes) != len(offsets) { - panic(fmt.Errorf("There must be the same number of runes to offsets. Got %d runes and %d offsets", - len(runes), len(offsets))) - } - resolution := ctx.resolution - table := f.glyphTable(resolution) - - for i, r := range runes { - if unicode.IsSpace(r) { - continue - } - page := table.get(r) - texture := page.texture() - entry := page.get(r) - srcRect := entry.bounds.Offset(entry.offset) - dstRect := entry.bounds.Offset(resolution.pointDipsToPixels(offsets[i])) - tc := ctx.getOrCreateTextureContext(texture) - ctx.blitter.blitGlyph(ctx, tc, col, srcRect, dstRect, ds) - } -} - -func (f *font) Size() int { - return f.size -} - -func (f *font) Measure(fl *gxui.TextBlock) math.Size { - size := math.Size{W: 0, H: f.glyphMaxSizeDips.H} - var offset math.Point - for _, r := range fl.Runes { - if r == '\n' { - offset.X = 0 - offset.Y += f.glyphMaxSizeDips.H - continue - } - offset.X += f.advanceDips(r) - size = size.Max(math.Size{W: offset.X, H: offset.Y + f.glyphMaxSizeDips.H}) - } - return size -} - -func (f *font) Layout(fl *gxui.TextBlock) (offsets []math.Point) { - sizeDips := math.Size{} - offsets = make([]math.Point, len(fl.Runes)) - var offset math.Point - for i, r := range fl.Runes { - if r == '\n' { - offset.X = 0 - offset.Y += f.glyphMaxSizeDips.H - continue - } - - offsets[i] = offset - offset.X += f.advanceDips(r) - sizeDips = sizeDips.Max(math.Size{W: offset.X, H: offset.Y + f.glyphMaxSizeDips.H}) - } - - origin := f.align(fl.AlignRect, sizeDips, f.ascentDips, fl.H, fl.V) - for i, p := range offsets { - offsets[i] = p.Add(origin) - } - return offsets -} - -func (f *font) LoadGlyphs(first, last rune) { - if first > last { - first, last = last, first - } - for r := first; r < last; r++ { - f.advanceDips(r) - } -} - -func (f *font) GlyphMaxSize() math.Size { - return f.glyphMaxSizeDips -} diff --git a/vendor/github.com/google/gxui/drivers/gl/glyph_page.go b/vendor/github.com/google/gxui/drivers/gl/glyph_page.go deleted file mode 100644 index c5ac4bb..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/glyph_page.go +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "image" - "image/draw" - "image/png" - "os" - - "github.com/google/gxui/math" - fnt "golang.org/x/image/font" - "golang.org/x/image/math/fixed" -) - -const ( - dumpGlyphPages = false - glyphPageWidth = 512 - glyphPageHeight = 512 - glyphSizeAlignment = 8 - glyphPadding = 1 -) - -type glyphEntry struct { - offset math.Point - bounds math.Rect -} - -type glyphPage struct { - image *image.Alpha - size math.Size // in pixels - entries map[rune]glyphEntry - rowHeight int - tex *texture - nextPoint math.Point -} - -func point26_6toPoint(p fixed.Point26_6) math.Point { - return math.Point{X: int(p.X) >> 6, Y: int(p.Y) >> 6} -} - -func rectangle26_6toRect(p fixed.Rectangle26_6) math.Rect { - return math.Rect{Min: point26_6toPoint(p.Min), Max: point26_6toPoint(p.Max)} -} - -func align(v, pot int) int { - return (v + pot - 1) & ^(pot - 1) -} - -func newGlyphPage(face fnt.Face, r rune) *glyphPage { - // Start the page big enough to hold the initial rune. - b, _, _ := face.GlyphBounds(r) - bounds := rectangle26_6toRect(b) - size := math.Size{W: glyphPageWidth, H: glyphPageHeight}.Max(bounds.Size()) - size.W = align(size.W, glyphSizeAlignment) - size.H = align(size.H, glyphSizeAlignment) - - page := &glyphPage{ - image: image.NewAlpha(image.Rect(0, 0, size.W, size.H)), - size: size, - entries: make(map[rune]glyphEntry), - rowHeight: 0, - } - page.add(face, r) - return page -} - -func (p *glyphPage) commit() { - if p.tex != nil { - return - } - p.tex = newTexture(p.image, 1.0) - if dumpGlyphPages { - f, _ := os.Create("glyph-page.png") - defer f.Close() - png.Encode(f, p.image) - } -} - -func (p *glyphPage) add(face fnt.Face, r rune) bool { - if _, found := p.entries[r]; found { - panic("Glyph already added to glyph page") - } - - b, mask, maskp, _, _ := face.Glyph(fixed.Point26_6{}, r) - bounds := math.CreateRect(b.Min.X, b.Min.Y, b.Max.X, b.Max.Y) - - w, h := bounds.Size().WH() - x, y := p.nextPoint.X, p.nextPoint.Y - - if x+w > p.size.W { - // Row full, start new line - x = 0 - y += p.rowHeight + glyphPadding - p.rowHeight = 0 - } - - if y+h > p.size.H { - return false // Page full - } - - draw.Draw(p.image, image.Rect(x, y, x+w, y+h), mask, maskp, draw.Src) - - p.entries[r] = glyphEntry{ - offset: math.Point{X: x, Y: y}.Sub(bounds.Min), - bounds: bounds, - } - p.nextPoint = math.Point{X: x + w + glyphPadding, Y: y} - if h > p.rowHeight { - p.rowHeight = h - } - p.tex = nil - - return true -} - -func (p *glyphPage) texture() *texture { - if p.tex == nil { - p.commit() - } - return p.tex -} - -func (p *glyphPage) get(rune rune) glyphEntry { - return p.entries[rune] -} diff --git a/vendor/github.com/google/gxui/drivers/gl/glyph_table.go b/vendor/github.com/google/gxui/drivers/gl/glyph_table.go deleted file mode 100644 index 3c5fa3b..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/glyph_table.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import fnt "golang.org/x/image/font" - -type glyphTable struct { - face fnt.Face - index map[rune]int - pages []*glyphPage -} - -func newGlyphTable(face fnt.Face) *glyphTable { - return &glyphTable{face: face, index: make(map[rune]int)} -} - -func (t *glyphTable) get(r rune) *glyphPage { - if i, found := t.index[r]; found { - return t.pages[i] - } - if len(t.pages) == 0 { - t.pages = append(t.pages, newGlyphPage(t.face, r)) - } else { - page := t.pages[len(t.pages)-1] - if !page.add(t.face, r) { - page = newGlyphPage(t.face, r) - t.pages = append(t.pages, page) - } - } - index := len(t.pages) - 1 - t.index[r] = index - return t.pages[index] -} diff --git a/vendor/github.com/google/gxui/drivers/gl/index_buffer.go b/vendor/github.com/google/gxui/drivers/gl/index_buffer.go deleted file mode 100644 index 172c225..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/index_buffer.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - "reflect" - - "github.com/goxjs/gl" -) - -type indexBuffer struct { - data []byte - ty primitiveType -} - -func newIndexBuffer(ty primitiveType, data16 []uint16) *indexBuffer { - switch ty { - case ptUbyte, ptUshort, ptUint: - if !ty.isArrayOfType(data16) { - panic(fmt.Errorf("Index data is not of type %v", ty)) - } - default: - panic(fmt.Errorf("Index type must be either UBYTE, USHORT or UINT. Got: %v", ty)) - } - - // HACK: Hardcode support for only ptUshort. - data := make([]byte, len(data16)*2) - for i, v := range data16 { - data[2*i+0] = byte(v >> 0) - data[2*i+1] = byte(v >> 8) - } - - ib := &indexBuffer{ - data: data, - ty: ty, - } - return ib -} - -func (b *indexBuffer) newContext() *indexBufferContext { - dataVal := reflect.ValueOf(b.data) - length := dataVal.Len() / 2 // HACK: Hardcode support for only ptUshort. - - buffer := gl.CreateBuffer() - gl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, buffer) - gl.BufferData(gl.ELEMENT_ARRAY_BUFFER, b.data, gl.STATIC_DRAW) - gl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, gl.Buffer{}) - checkError() - - globalStats.indexBufferContextCount.inc() - return &indexBufferContext{ - buffer: buffer, - ty: b.ty, - length: length, - } -} - -type indexBufferContext struct { - contextResource - buffer gl.Buffer - ty primitiveType - length int -} - -func (c *indexBufferContext) destroy() { - globalStats.indexBufferContextCount.dec() - gl.DeleteBuffer(c.buffer) - c.buffer = gl.Buffer{} -} - -func (c *indexBufferContext) render(drawMode drawMode) { - gl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, c.buffer) - gl.DrawElements(gl.Enum(drawMode), c.length, gl.Enum(c.ty), 0) - gl.BindBuffer(gl.ELEMENT_ARRAY_BUFFER, gl.Buffer{}) - checkError() -} diff --git a/vendor/github.com/google/gxui/drivers/gl/keyboard_translate.go b/vendor/github.com/google/gxui/drivers/gl/keyboard_translate.go deleted file mode 100644 index bc5275c..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/keyboard_translate.go +++ /dev/null @@ -1,249 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "github.com/google/gxui" - - "github.com/goxjs/glfw" -) - -func translateKeyboardKey(in glfw.Key) gxui.KeyboardKey { - switch in { - case glfw.KeySpace: - return gxui.KeySpace - case glfw.KeyApostrophe: - return gxui.KeyApostrophe - case glfw.KeyComma: - return gxui.KeyComma - case glfw.KeyMinus: - return gxui.KeyMinus - case glfw.KeyPeriod: - return gxui.KeyPeriod - case glfw.KeySlash: - return gxui.KeySlash - case glfw.Key0: - return gxui.Key0 - case glfw.Key1: - return gxui.Key1 - case glfw.Key2: - return gxui.Key2 - case glfw.Key3: - return gxui.Key3 - case glfw.Key4: - return gxui.Key4 - case glfw.Key5: - return gxui.Key5 - case glfw.Key6: - return gxui.Key6 - case glfw.Key7: - return gxui.Key7 - case glfw.Key8: - return gxui.Key8 - case glfw.Key9: - return gxui.Key9 - case glfw.KeySemicolon: - return gxui.KeySemicolon - case glfw.KeyEqual: - return gxui.KeyEqual - case glfw.KeyA: - return gxui.KeyA - case glfw.KeyB: - return gxui.KeyB - case glfw.KeyC: - return gxui.KeyC - case glfw.KeyD: - return gxui.KeyD - case glfw.KeyE: - return gxui.KeyE - case glfw.KeyF: - return gxui.KeyF - case glfw.KeyG: - return gxui.KeyG - case glfw.KeyH: - return gxui.KeyH - case glfw.KeyI: - return gxui.KeyI - case glfw.KeyJ: - return gxui.KeyJ - case glfw.KeyK: - return gxui.KeyK - case glfw.KeyL: - return gxui.KeyL - case glfw.KeyM: - return gxui.KeyM - case glfw.KeyN: - return gxui.KeyN - case glfw.KeyO: - return gxui.KeyO - case glfw.KeyP: - return gxui.KeyP - case glfw.KeyQ: - return gxui.KeyQ - case glfw.KeyR: - return gxui.KeyR - case glfw.KeyS: - return gxui.KeyS - case glfw.KeyT: - return gxui.KeyT - case glfw.KeyU: - return gxui.KeyU - case glfw.KeyV: - return gxui.KeyV - case glfw.KeyW: - return gxui.KeyW - case glfw.KeyX: - return gxui.KeyX - case glfw.KeyY: - return gxui.KeyY - case glfw.KeyZ: - return gxui.KeyZ - case glfw.KeyLeftBracket: - return gxui.KeyLeftBracket - case glfw.KeyBackslash: - return gxui.KeyBackslash - case glfw.KeyRightBracket: - return gxui.KeyRightBracket - case glfw.KeyGraveAccent: - return gxui.KeyGraveAccent - case glfw.KeyWorld1: - return gxui.KeyWorld1 - case glfw.KeyWorld2: - return gxui.KeyWorld2 - case glfw.KeyEscape: - return gxui.KeyEscape - case glfw.KeyEnter: - return gxui.KeyEnter - case glfw.KeyTab: - return gxui.KeyTab - case glfw.KeyBackspace: - return gxui.KeyBackspace - case glfw.KeyInsert: - return gxui.KeyInsert - case glfw.KeyDelete: - return gxui.KeyDelete - case glfw.KeyRight: - return gxui.KeyRight - case glfw.KeyLeft: - return gxui.KeyLeft - case glfw.KeyDown: - return gxui.KeyDown - case glfw.KeyUp: - return gxui.KeyUp - case glfw.KeyPageUp: - return gxui.KeyPageUp - case glfw.KeyPageDown: - return gxui.KeyPageDown - case glfw.KeyHome: - return gxui.KeyHome - case glfw.KeyEnd: - return gxui.KeyEnd - case glfw.KeyCapsLock: - return gxui.KeyCapsLock - case glfw.KeyScrollLock: - return gxui.KeyScrollLock - case glfw.KeyNumLock: - return gxui.KeyNumLock - case glfw.KeyPrintScreen: - return gxui.KeyPrintScreen - case glfw.KeyPause: - return gxui.KeyPause - case glfw.KeyF1: - return gxui.KeyF1 - case glfw.KeyF2: - return gxui.KeyF2 - case glfw.KeyF3: - return gxui.KeyF3 - case glfw.KeyF4: - return gxui.KeyF4 - case glfw.KeyF5: - return gxui.KeyF5 - case glfw.KeyF6: - return gxui.KeyF6 - case glfw.KeyF7: - return gxui.KeyF7 - case glfw.KeyF8: - return gxui.KeyF8 - case glfw.KeyF9: - return gxui.KeyF9 - case glfw.KeyF10: - return gxui.KeyF10 - case glfw.KeyF11: - return gxui.KeyF11 - case glfw.KeyF12: - return gxui.KeyF12 - case glfw.KeyKP0: - return gxui.KeyKp0 - case glfw.KeyKP1: - return gxui.KeyKp1 - case glfw.KeyKP2: - return gxui.KeyKp2 - case glfw.KeyKP3: - return gxui.KeyKp3 - case glfw.KeyKP4: - return gxui.KeyKp4 - case glfw.KeyKP5: - return gxui.KeyKp5 - case glfw.KeyKP6: - return gxui.KeyKp6 - case glfw.KeyKP7: - return gxui.KeyKp7 - case glfw.KeyKP8: - return gxui.KeyKp8 - case glfw.KeyKP9: - return gxui.KeyKp9 - case glfw.KeyKPDecimal: - return gxui.KeyKpDecimal - case glfw.KeyKPDivide: - return gxui.KeyKpDivide - case glfw.KeyKPMultiply: - return gxui.KeyKpMultiply - case glfw.KeyKPSubtract: - return gxui.KeyKpSubtract - case glfw.KeyKPAdd: - return gxui.KeyKpAdd - case glfw.KeyKPEnter: - return gxui.KeyKpEnter - case glfw.KeyKPEqual: - return gxui.KeyKpEqual - case glfw.KeyLeftShift: - return gxui.KeyLeftShift - case glfw.KeyLeftControl: - return gxui.KeyLeftControl - case glfw.KeyLeftAlt: - return gxui.KeyLeftAlt - case glfw.KeyLeftSuper: - return gxui.KeyLeftSuper - case glfw.KeyRightShift: - return gxui.KeyRightShift - case glfw.KeyRightControl: - return gxui.KeyRightControl - case glfw.KeyRightAlt: - return gxui.KeyRightAlt - case glfw.KeyRightSuper: - return gxui.KeyRightSuper - case glfw.KeyMenu: - return gxui.KeyMenu - default: - return gxui.KeyUnknown - } -} - -func translateKeyboardModifier(in glfw.ModifierKey) gxui.KeyboardModifier { - out := gxui.ModNone - if in&glfw.ModShift != 0 { - out |= gxui.ModShift - } - if in&glfw.ModControl != 0 { - out |= gxui.ModControl - } - if in&glfw.ModAlt != 0 { - out |= gxui.ModAlt - } - if in&glfw.ModSuper != 0 { - out |= gxui.ModSuper - } - return out -} diff --git a/vendor/github.com/google/gxui/drivers/gl/mouse_translate.go b/vendor/github.com/google/gxui/drivers/gl/mouse_translate.go deleted file mode 100644 index 4883413..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/mouse_translate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - - "github.com/google/gxui" - - "github.com/goxjs/glfw" -) - -func translateMouseButton(button glfw.MouseButton) gxui.MouseButton { - switch button { - case glfw.MouseButtonLeft: - return gxui.MouseButtonLeft - case glfw.MouseButtonMiddle: - return gxui.MouseButtonMiddle - case glfw.MouseButtonRight: - return gxui.MouseButtonRight - default: - panic(fmt.Errorf("Unknown mouse button %v", button)) - } -} - -func getMouseState(w *glfw.Window) gxui.MouseState { - var s gxui.MouseState - for _, button := range []glfw.MouseButton{glfw.MouseButtonLeft, glfw.MouseButtonMiddle, glfw.MouseButtonRight} { - if w.GetMouseButton(button) == glfw.Press { - s |= 1 << uint(translateMouseButton(button)) - } - } - return s -} diff --git a/vendor/github.com/google/gxui/drivers/gl/platform/linux_constants.go b/vendor/github.com/google/gxui/drivers/gl/platform/linux_constants.go deleted file mode 100644 index c2f0f29..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/platform/linux_constants.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build linux - -package platform - -const ScrollSpeed = 20.0 diff --git a/vendor/github.com/google/gxui/drivers/gl/platform/osx_constants.go b/vendor/github.com/google/gxui/drivers/gl/platform/osx_constants.go deleted file mode 100644 index 8dc3d77..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/platform/osx_constants.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build darwin - -package platform - -const ScrollSpeed = 4.0 diff --git a/vendor/github.com/google/gxui/drivers/gl/platform/windows_constants.go b/vendor/github.com/google/gxui/drivers/gl/platform/windows_constants.go deleted file mode 100644 index b8e66af..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/platform/windows_constants.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build windows - -package platform - -const ScrollSpeed = 20.0 diff --git a/vendor/github.com/google/gxui/drivers/gl/polygon.go b/vendor/github.com/google/gxui/drivers/gl/polygon.go deleted file mode 100644 index 507b9c2..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/polygon.go +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" -) - -func appendVec2(arr []float32, vecs ...math.Vec2) []float32 { - for _, v := range vecs { - arr = append(arr, v.X, v.Y) - } - return arr -} - -func pruneDuplicates(p gxui.Polygon) gxui.Polygon { - pruned := make(gxui.Polygon, 0, len(p)) - last := gxui.PolygonVertex{} - for i, v := range p { - if i == 0 || last.Position.Sub(v.Position).Vec2().Len() > 0.001 { - pruned = append(pruned, v) - } - last = v - } - return pruned -} - -func segment(penWidth, r float32, a, b, c math.Vec2, aIsLast bool, vsEdgePos []float32, fillEdge []math.Vec2) ([]float32, []math.Vec2) { - ba, ca := a.Sub(b), a.Sub(c) - baLen, caLen := ba.Len(), ca.Len() - baDir, caDir := ba.DivS(baLen), ca.DivS(caLen) - dp := baDir.Dot(caDir) - if dp < -0.99999 { - // Straight lines cause DBZs, special case - inner := a.Sub(caDir.Tangent().MulS(penWidth)) - vsEdgePos = appendVec2(vsEdgePos, a, inner) - if fillEdge != nil /*&& i != 0*/ { - fillEdge = append(fillEdge, inner) - } - return vsEdgePos, fillEdge - } - α := math.Acosf(dp) / 2 - // ╔═══════════════════════════╦════════════════╗ - // ║ ║ ║ - // ║ A ║ ║ - // ║ ╱:╲ ║ ║ - // ║ ╱α:α╲ ║ A ║ - // ║ ╱ : ╲ ║ |╲ ║ - // ║ ╱ . d . ╲ ║ |α╲ ║ - // ║ . : . ║ | ╲ ║ - // ║ .P : Q. ║ | ╲ ║ - // ║ ╱ X ╲ ║ | ╲ ║ - // ║ ╱ . ┊ . ╲ ║ | ╲ ║ - // ║ ╱ . r . ╲ ║ | ╲ ║ - // ║ ╱ . ┊ . ╲ ║ |┐ β╲ ║ - // ║ B ┊ C ║ P————————X ║ - // ║ ║ ║ - // ║ ^ ║ ║ - // ║ ┊v ║ ║ - // ║ ┊ u ║ ║ - // ║ ┊—————> ║ ║ - // ║ ║ ║ - // ╚═══════════════════════════╩════════════════╝ - v := baDir.Add(caDir).Normalize() - u := v.Tangent() - // - // cos(2 • α) = dp - // - // cos⁻¹(dp) - // α = ─────────── - // 2 - // - // r - // sin(α) = ─── - // d - // - // r - // d = ────── - // sin(α) - // - d := r / math.Sinf(α) - - // X cannot be futher than half way along ab or ac - dMax := math.Minf(baLen, caLen) / (2 * math.Cosf(α)) - if d > dMax { - // Adjust d and r to compensate - d = dMax - r = d * math.Sinf(α) - } - - x := a.Sub(v.MulS(d)) - - convex := baDir.Tangent().Dot(caDir) <= 0 - - w := penWidth - β := math.Pi/2 - α - - // Special case for convex vertices where the pen width is greater than - // the rounding. Without dealing with this, we'd end up with the inner - // vertices overlapping. Instead use a point calculated much the same as - // x, but using the pen width. - useFixedInnerPoint := convex && w > r - fixedInnerPoint := a.Sub(v.MulS(math.Minf(w/math.Sinf(α), dMax))) - - // Concave vertices behave much the same as convex, but we have to flip - // β as the sweep is reversed and w as we're extruding. - if !convex { - w, β = -w, -β - } - - steps := 1 + int(d*α) - - if aIsLast { - // No curvy edge required for the last vertex. - // This is already done by the first vertex. - steps = 1 - } - - for j := 0; j < steps; j++ { - γ := float32(0) - if steps > 1 { - γ = math.Lerpf(-β, β, float32(j)/float32(steps-1)) - } - - dir := v.MulS(math.Cosf(γ)).Add(u.MulS(math.Sinf(γ))) - va := x.Add(dir.MulS(r)) - vb := va.Sub(dir.MulS(w)) - if useFixedInnerPoint { - vb = fixedInnerPoint - } - - vsEdgePos = appendVec2(vsEdgePos, va, vb) - if fillEdge != nil { - fillEdge = append(fillEdge, vb) - } - } - - return vsEdgePos, fillEdge -} - -func closedPolyToShape(p gxui.Polygon, penWidth float32) (fillShape, edgeShape *shape) { - p = pruneDuplicates(p) - - fillEdge := []math.Vec2{} - vsEdgePos := []float32{} - - for i, cnt := 0, len(p); i < cnt; i++ { - r := p[i].RoundedRadius - a := p[i].Position.Vec2() - b := p[(i+cnt-1)%cnt].Position.Vec2() - c := p[(i+1)%cnt].Position.Vec2() - vsEdgePos, fillEdge = segment(penWidth, r, a, b, c, i == len(p), vsEdgePos, fillEdge) - } - - // Close the edge - if len(vsEdgePos) >= 4 { - vsEdgePos = append(vsEdgePos, vsEdgePos[:4]...) - } - - fillTris := triangulate(fillEdge) - if len(fillTris) > 0 { - fillPos := make([]float32, len(fillTris)*2) - for i, t := range fillTris { - fillPos[i*2+0] = t.X - fillPos[i*2+1] = t.Y - } - fillShape = newShape(newVertexBuffer( - newVertexStream("aPosition", stFloatVec2, fillPos), - ), nil, dmTriangles) - } - - if len(vsEdgePos) > 0 { - edgeShape = newShape(newVertexBuffer( - newVertexStream("aPosition", stFloatVec2, vsEdgePos), - ), nil, dmTriangleStrip) - } - - return fillShape, edgeShape -} - -func openPolyToShape(p gxui.Polygon, penWidth float32) *shape { - p = pruneDuplicates(p) - if len(p) < 2 { - return nil - } - - vsEdgePos := []float32{} - - { // p[0] -> p[1] - a, c := p[0].Position.Vec2(), p[1].Position.Vec2() - caDir := a.Sub(c).Normalize() - inner := a.Sub(caDir.Tangent().MulS(penWidth)) - vsEdgePos = appendVec2(vsEdgePos, a, inner) - } - for i := 1; i < len(p)-1; i++ { - r := p[i].RoundedRadius - a := p[i].Position.Vec2() - b := p[i-1].Position.Vec2() - c := p[i+1].Position.Vec2() - vsEdgePos, _ = segment(penWidth, r, a, b, c, false, vsEdgePos, nil) - } - { // p[N-2] -> p[N-1] - a, c := p[len(p)-2].Position.Vec2(), p[len(p)-1].Position.Vec2() - caDir := a.Sub(c).Normalize() - inner := c.Sub(caDir.Tangent().MulS(penWidth)) - vsEdgePos = appendVec2(vsEdgePos, c, inner) - } - if len(vsEdgePos) > 0 { - return newShape(newVertexBuffer( - newVertexStream("aPosition", stFloatVec2, vsEdgePos), - ), nil, dmTriangleStrip) - } - return nil -} diff --git a/vendor/github.com/google/gxui/drivers/gl/primitive_type.go b/vendor/github.com/google/gxui/drivers/gl/primitive_type.go deleted file mode 100644 index 819a7ed..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/primitive_type.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - "reflect" - - "github.com/goxjs/gl" -) - -type primitiveType int - -const ( - ptFloat primitiveType = gl.FLOAT - ptInt primitiveType = gl.INT - ptUint primitiveType = gl.UNSIGNED_INT - ptUshort primitiveType = gl.UNSIGNED_SHORT - ptUbyte primitiveType = gl.UNSIGNED_BYTE -) - -func (p primitiveType) sizeInBytes() int { - switch p { - case ptFloat: - return 4 - case ptInt: - return 4 - case ptUint: - return 4 - case ptUshort: - return 2 - case ptUbyte: - return 1 - default: - panic(fmt.Errorf("Unknown primitiveType 0x%.4x", p)) - } -} - -func (p primitiveType) isArrayOfType(array interface{}) bool { - ty := reflect.TypeOf(array).Elem() - switch p { - case ptFloat: - return ty.Name() == "float32" - case ptInt: - return ty.Name() == "int32" - case ptUint: - return ty.Name() == "uint32" - case ptUshort: - return ty.Name() == "uint16" - case ptUbyte: - return ty.Name() == "uint8" - default: - panic(fmt.Errorf("Unknown primitiveType 0x%.4x", p)) - } -} diff --git a/vendor/github.com/google/gxui/drivers/gl/refcounted.go b/vendor/github.com/google/gxui/drivers/gl/refcounted.go deleted file mode 100644 index 4df427a..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/refcounted.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -/* -import ( - "fmt" - "runtime" - "strings" - "sync/atomic" -) - -const debugTrackReferences = false - -type refCounted struct { - refCount int32 - history []string -} - -func verifyRefCountIsZero(r *refCounted) { - if r.alive() { - panic(fmt.Errorf("RefCounted object was garbage collected with a reference count of %d.\n%s", - r.refCount, strings.Join(r.history, "\n"))) - } -} - -func (r *refCounted) init() { - r.refCount = 1 - - if debugTrackReferences { - _, file, line, _ := runtime.Caller(1) - r.history = append(r.history, fmt.Sprintf("0 -> 1: %s:%d", file, line)) - runtime.SetFinalizer(r, verifyRefCountIsZero) - } -} - -func (r *refCounted) addRef() { - r.assertAlive("AddRef") - count := atomic.AddInt32(&r.refCount, 1) - - if debugTrackReferences { - _, file, line, _ := runtime.Caller(1) - r.history = append(r.history, fmt.Sprintf("%d -> %d: %s:%d", - count-1, count, file, line)) - } -} - -func (r *refCounted) release() bool { - r.assertAlive("Release") - count := atomic.AddInt32(&r.refCount, -1) - - if debugTrackReferences { - _, file, line, _ := runtime.Caller(2) - r.history = append(r.history, fmt.Sprintf("%d -> %d: %s:%d", - count+1, count, file, line)) - } - return count == 0 -} - -func (r *refCounted) alive() bool { - return atomic.LoadInt32(&r.refCount) > 0 -} - -func (r *refCounted) assertAlive(funcName string) { - if !r.alive() { - if debugTrackReferences { - panic(fmt.Errorf("Attempting to call %s()) on a fully released object.\n%s", - funcName, strings.Join(r.history, "\n"))) - } else { - panic(fmt.Errorf("Attempting to call %s() on a fully released object. Enable debugTrackReferences for more info.", funcName)) - } - } -} -*/ diff --git a/vendor/github.com/google/gxui/drivers/gl/resolution.go b/vendor/github.com/google/gxui/drivers/gl/resolution.go deleted file mode 100644 index 4c3af5a..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/resolution.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - - "github.com/google/gxui/math" -) - -// 16:16 fixed point ratio of DIPs to pixels -type resolution uint32 - -func (r resolution) String() string { - return fmt.Sprintf("%f", r.dipsToPixels()) -} - -func (r resolution) dipsToPixels() float32 { - return float32(r) / 65536.0 -} - -func (r resolution) intDipsToPixels(s int) int { - return (s * int(r)) >> 16 -} - -func (r resolution) pointDipsToPixels(s math.Point) math.Point { - return math.Point{ - X: r.intDipsToPixels(s.X), - Y: r.intDipsToPixels(s.Y), - } -} - -func (r resolution) sizeDipsToPixels(s math.Size) math.Size { - return math.Size{ - W: r.intDipsToPixels(s.W), - H: r.intDipsToPixels(s.H), - } -} - -func (r resolution) rectDipsToPixels(s math.Rect) math.Rect { - return math.Rect{ - Min: r.pointDipsToPixels(s.Min), - Max: r.pointDipsToPixels(s.Max), - } -} diff --git a/vendor/github.com/google/gxui/drivers/gl/shader_attribute.go b/vendor/github.com/google/gxui/drivers/gl/shader_attribute.go deleted file mode 100644 index d9d705c..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/shader_attribute.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import "github.com/goxjs/gl" - -type shaderAttribute struct { - name string - size int - ty shaderDataType - location gl.Attrib -} - -func (a shaderAttribute) enableArray() { - gl.EnableVertexAttribArray(a.location) -} - -func (a shaderAttribute) disableArray() { - gl.DisableVertexAttribArray(a.location) -} - -func (a shaderAttribute) attribPointer(size int32, ty uint32, normalized bool, stride int32, offset int) { - gl.VertexAttribPointer(a.location, int(size), gl.Enum(ty), normalized, int(stride), offset) -} diff --git a/vendor/github.com/google/gxui/drivers/gl/shader_data_type.go b/vendor/github.com/google/gxui/drivers/gl/shader_data_type.go deleted file mode 100644 index 5325863..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/shader_data_type.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - - "github.com/goxjs/gl" -) - -type shaderDataType int - -const ( - stFloatMat2 shaderDataType = gl.FLOAT_MAT2 - stFloatMat3 shaderDataType = gl.FLOAT_MAT3 - stFloatMat4 shaderDataType = gl.FLOAT_MAT4 - stFloatVec1 shaderDataType = gl.FLOAT - stFloatVec2 shaderDataType = gl.FLOAT_VEC2 - stFloatVec3 shaderDataType = gl.FLOAT_VEC3 - stFloatVec4 shaderDataType = gl.FLOAT_VEC4 - stSampler2d shaderDataType = gl.SAMPLER_2D -) - -func (s shaderDataType) String() string { - switch s { - case stFloatMat2: - return "mat2" - case stFloatMat3: - return "mat3" - case stFloatMat4: - return "mat4" - case stFloatVec1: - return "float" - case stFloatVec2: - return "vec2" - case stFloatVec3: - return "vec3" - case stFloatVec4: - return "vec4" - case stSampler2d: - return "sampler2D" - default: - return "unknown" - } -} - -func (s shaderDataType) sizeInBytes() int { - return s.vectorElementCount() * s.vectorElementType().sizeInBytes() -} - -func (s shaderDataType) vectorElementCount() int { - switch s { - case stFloatMat2: - return 2 * 2 - case stFloatMat3: - return 3 * 3 - case stFloatMat4: - return 4 * 4 - case stFloatVec1: - return 1 - case stFloatVec2: - return 2 - case stFloatVec3: - return 3 - case stFloatVec4: - return 4 - case stSampler2d: - return 1 - default: - panic(fmt.Errorf("Unknown shaderDataType 0x%.4x", s)) - } -} - -func (s shaderDataType) vectorElementType() primitiveType { - switch s { - case stFloatMat2: - return ptFloat - case stFloatMat3: - return ptFloat - case stFloatMat4: - return ptFloat - case stFloatVec1: - return ptFloat - case stFloatVec2: - return ptFloat - case stFloatVec3: - return ptFloat - case stFloatVec4: - return ptFloat - case stSampler2d: - return ptInt - default: - panic(fmt.Errorf("Unknown shaderDataType 0x%.4x", s)) - } -} diff --git a/vendor/github.com/google/gxui/drivers/gl/shader_program.go b/vendor/github.com/google/gxui/drivers/gl/shader_program.go deleted file mode 100644 index d845594..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/shader_program.go +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - - "github.com/goxjs/gl" -) - -type uniformBindings map[string]interface{} - -type shaderProgram struct { - program gl.Program - uniforms []shaderUniform - attributes []shaderAttribute -} - -func compile(source string, ty int) gl.Shader { - shader := gl.CreateShader(gl.Enum(ty)) - gl.ShaderSource(shader, source) - - gl.CompileShader(shader) - if gl.GetShaderi(shader, gl.COMPILE_STATUS) != gl.TRUE { - panic(gl.GetShaderInfoLog(shader)) - } - checkError() - - return shader -} - -func newShaderProgram(ctx *context, vsSource, fsSource string) *shaderProgram { - vs := compile(vsSource, gl.VERTEX_SHADER) - fs := compile(fsSource, gl.FRAGMENT_SHADER) - - program := gl.CreateProgram() - gl.AttachShader(program, vs) - gl.AttachShader(program, fs) - gl.LinkProgram(program) - - if gl.GetProgrami(program, gl.LINK_STATUS) != gl.TRUE { - panic(gl.GetProgramInfoLog(program)) - } - - gl.UseProgram(program) - checkError() - - uniformCount := gl.GetProgrami(program, gl.ACTIVE_UNIFORMS) - uniforms := make([]shaderUniform, uniformCount) - textureUnit := 0 - for i := range uniforms { - name, size, ty := gl.GetActiveUniform(program, uint32(i)) - location := gl.GetUniformLocation(program, name) - uniforms[i] = shaderUniform{ - name: name, - size: size, - ty: shaderDataType(ty), - location: location, - textureUnit: textureUnit, - } - if ty == gl.SAMPLER_2D { - textureUnit++ - } - } - - attributeCount := gl.GetProgrami(program, gl.ACTIVE_ATTRIBUTES) - attributes := make([]shaderAttribute, attributeCount) - for i := range attributes { - name, size, ty := gl.GetActiveAttrib(program, uint32(i)) - location := gl.GetAttribLocation(program, name) - attributes[i] = shaderAttribute{ - name: name, - size: size, - ty: shaderDataType(ty), - location: location, - } - } - - ctx.stats.shaderProgramCount++ - - return &shaderProgram{ - program: program, - uniforms: uniforms, - attributes: attributes, - } -} - -func (s *shaderProgram) destroy(ctx *context) { - gl.DeleteProgram(s.program) - s.program = gl.Program{} - // TODO: Delete shaders. - ctx.stats.shaderProgramCount-- -} - -func (s *shaderProgram) bind(ctx *context, vb *vertexBuffer, uniforms uniformBindings) { - gl.UseProgram(s.program) - for _, a := range s.attributes { - vs, found := vb.streams[a.name] - if !found { - panic(fmt.Errorf("VertexBuffer missing required stream '%s'", a.name)) - } - if a.ty != vs.ty { - panic(fmt.Errorf("Attribute '%s' type '%s' does not match stream type '%s'", - a.name, a.ty, vs.ty)) - } - elementCount := a.ty.vectorElementCount() - elementTy := a.ty.vectorElementType() - ctx.getOrCreateVertexStreamContext(vs).bind() - a.enableArray() - a.attribPointer(int32(elementCount), uint32(elementTy), false, 0, 0) - } - for _, u := range s.uniforms { - v, found := uniforms[u.name] - if !found { - panic(fmt.Errorf("Uniforms missing '%s'", u.name)) - } - u.bind(ctx, v) - } - checkError() -} - -func (s *shaderProgram) unbind(ctx *context) { - for _, a := range s.attributes { - a.disableArray() - } - checkError() -} diff --git a/vendor/github.com/google/gxui/drivers/gl/shader_uniform.go b/vendor/github.com/google/gxui/drivers/gl/shader_uniform.go deleted file mode 100644 index c185c8b..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/shader_uniform.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/goxjs/gl" -) - -type shaderUniform struct { - name string - size int - ty shaderDataType - location gl.Uniform - textureUnit int -} - -func (u *shaderUniform) bind(context *context, v interface{}) { - switch u.ty { - case stFloatMat2: - gl.UniformMatrix2fv(u.location, v.([]float32)) - case stFloatMat3: - switch m := v.(type) { - case math.Mat3: - gl.UniformMatrix3fv(u.location, m[:]) - case []float32: - gl.UniformMatrix3fv(u.location, m) - } - case stFloatMat4: - gl.UniformMatrix4fv(u.location, v.([]float32)) - case stFloatVec1: - switch v := v.(type) { - case float32: - gl.Uniform1f(u.location, v) - case []float32: - gl.Uniform1fv(u.location, v) - } - case stFloatVec2: - switch v := v.(type) { - case math.Vec2: - gl.Uniform2fv(u.location, []float32{v.X, v.Y}) - case []float32: - if len(v)%2 != 0 { - panic(fmt.Errorf("Uniform '%s' of type vec2 should be an float32 array with a multiple of two length", u.name)) - } - gl.Uniform2fv(u.location, v) - } - case stFloatVec3: - switch v := v.(type) { - case math.Vec3: - gl.Uniform3fv(u.location, []float32{v.X, v.Y, v.Z}) - case []float32: - if len(v)%3 != 0 { - panic(fmt.Errorf("Uniform '%s' of type vec3 should be an float32 array with a multiple of three length", u.name)) - } - gl.Uniform3fv(u.location, v) - } - case stFloatVec4: - switch v := v.(type) { - case math.Vec4: - gl.Uniform4fv(u.location, []float32{v.X, v.Y, v.Z, v.W}) - case gxui.Color: - gl.Uniform4fv(u.location, []float32{v.R, v.G, v.B, v.A}) - case []float32: - if len(v)%4 != 0 { - panic(fmt.Errorf("Uniform '%s' of type vec4 should be an float32 array with a multiple of four length", u.name)) - } - gl.Uniform4fv(u.location, v) - } - case stSampler2d: - tc := v.(*textureContext) - gl.ActiveTexture(gl.Enum(gl.TEXTURE0 + u.textureUnit)) - gl.BindTexture(gl.TEXTURE_2D, tc.texture) - gl.Uniform1i(u.location, u.textureUnit) - default: - panic(fmt.Errorf("Uniform of unsupported type %s", u.ty)) - } -} diff --git a/vendor/github.com/google/gxui/drivers/gl/shape.go b/vendor/github.com/google/gxui/drivers/gl/shape.go deleted file mode 100644 index ffc1d82..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/shape.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import "github.com/goxjs/gl" - -type shape struct { - vb *vertexBuffer - ib *indexBuffer - drawMode drawMode -} - -func newShape(vb *vertexBuffer, ib *indexBuffer, drawMode drawMode) *shape { - if vb == nil { - panic("VertexBuffer cannot be nil") - } - - s := &shape{ - vb: vb, - ib: ib, - drawMode: drawMode, - } - return s -} - -func newQuadShape() *shape { - pos := newVertexStream("aPosition", stFloatVec2, []float32{ - 0.0, 0.0, - 1.0, 0.0, - 0.0, 1.0, - 1.0, 1.0, - }) - vb := newVertexBuffer(pos) - ib := newIndexBuffer(ptUshort, []uint16{ - 0, 1, 2, - 2, 1, 3, - }) - return newShape(vb, ib, dmTriangles) -} - -func (s shape) draw(ctx *context, shader *shaderProgram, ub uniformBindings) { - shader.bind(ctx, s.vb, ub) - if s.ib != nil { - ctx.getOrCreateIndexBufferContext(s.ib).render(s.drawMode) - } else { - gl.DrawArrays(gl.Enum(s.drawMode), 0, s.vb.count) - } - shader.unbind(ctx) - checkError() -} diff --git a/vendor/github.com/google/gxui/drivers/gl/stats.go b/vendor/github.com/google/gxui/drivers/gl/stats.go deleted file mode 100644 index 8c9333b..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/stats.go +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "bytes" - "fmt" - "sync/atomic" - "time" -) - -const ( - printGlobalStats = false - historySize = 100 -) - -func init() { - if printGlobalStats { - go func() { - for { - time.Sleep(time.Second) - println(globalStats.get()) - } - }() - } -} - -type count struct { - value int32 - incs int32 - decs int32 -} - -func (c *count) inc() { - atomic.AddInt32(&c.value, 1) - atomic.AddInt32(&c.incs, 1) -} - -func (c *count) dec() { - atomic.AddInt32(&c.decs, 1) - if atomic.AddInt32(&c.value, -1) < 0 { - panic("Count has gone negative") - } -} - -func (c *count) resetDeltas() { - atomic.StoreInt32(&c.incs, 0) - atomic.StoreInt32(&c.decs, 0) -} - -func (c count) String() string { - return fmt.Sprintf("%d [+%d/-%d]", c.value, c.incs, c.decs) -} - -type globalDriverStats struct { - vertexStreamContextCount count - indexBufferContextCount count - textureContextCount count -} - -func (s *globalDriverStats) get() string { - buffer := &bytes.Buffer{} - fmt.Fprintf(buffer, "Vertex stream context count: %v\n", s.vertexStreamContextCount) - fmt.Fprintf(buffer, "Index buffer context count: %v\n", s.indexBufferContextCount) - fmt.Fprintf(buffer, "Texture context count: %v\n", s.textureContextCount) - s.vertexStreamContextCount.resetDeltas() - s.indexBufferContextCount.resetDeltas() - s.textureContextCount.resetDeltas() - return buffer.String() -} - -var globalStats globalDriverStats - -type timer struct { - name string - duration time.Duration - total time.Duration - history [historySize]time.Duration - timer time.Time - current int -} - -func (t *timer) start() { - t.timer = time.Now() -} - -func (t *timer) stop() { - duration := time.Since(t.timer) - t.total -= t.history[t.current] - t.history[t.current] = duration - t.total += t.history[t.current] - t.duration = t.total / historySize - t.current++ - if t.current >= historySize { - t.current = 0 - } -} - -func (t timer) Format(f fmt.State, c rune) { - ps := 1.0 / t.duration.Seconds() - max := t.history[0] - min := t.history[0] - for _, h := range t.history { - if max < h { - max = h - } - if min > h { - min = h - } - } - fmt.Fprintf(f, "%s: %v [%.2f/s] %v<%v<%v", t.name, t.duration, ps, min, t.history[t.current], max) -} - -type contextStats struct { - textureCount int - vertexStreamCount int - indexBufferCount int - shaderProgramCount int - frameCount int - drawCallCount int - timers []timer -} - -func (s *contextStats) timer(name string) *timer { - for i := range s.timers { - t := &s.timers[i] - if t.name == name { - return t - } - } - s.timers = append(s.timers, timer{name: name}) - return &s.timers[len(s.timers)-1] -} - -func (s contextStats) String() string { - buffer := &bytes.Buffer{} - for _, t := range s.timers { - fmt.Fprintf(buffer, "%v\n", t) - } - fmt.Fprintf(buffer, "Draw calls per frame: %d\n", s.drawCallCount) - fmt.Fprintf(buffer, "Frame count: %d\n", s.frameCount) - fmt.Fprintf(buffer, "Textures: %d\n", s.textureCount) - fmt.Fprintf(buffer, "Vertex stream count: %d\n", s.vertexStreamCount) - fmt.Fprintf(buffer, "Index buffer count: %d\n", s.indexBufferCount) - fmt.Fprintf(buffer, "Shader program count: %d\n", s.shaderProgramCount) - return buffer.String() -} diff --git a/vendor/github.com/google/gxui/drivers/gl/texture.go b/vendor/github.com/google/gxui/drivers/gl/texture.go deleted file mode 100644 index 16a0df8..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/texture.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "image" - - "github.com/google/gxui/math" - "github.com/goxjs/gl" -) - -type texture struct { - image image.Image - pixelsPerDip float32 - flipY bool -} - -func newTexture(img image.Image, pixelsPerDip float32) *texture { - t := &texture{ - image: img, - pixelsPerDip: pixelsPerDip, - } - return t -} - -// gxui.Texture compliance -func (t *texture) Image() image.Image { - return t.image -} - -func (t *texture) Size() math.Size { - return t.SizePixels().ScaleS(1.0 / t.pixelsPerDip) -} - -func (t *texture) SizePixels() math.Size { - s := t.image.Bounds().Size() - return math.Size{W: s.X, H: s.Y} -} - -func (t *texture) FlipY() bool { - return t.flipY -} - -func (t *texture) SetFlipY(flipY bool) { - t.flipY = flipY -} - -func (t *texture) newContext() *textureContext { - var fmt gl.Enum - var data []byte - var pma bool - - switch ty := t.image.(type) { - case *image.RGBA: - fmt = gl.RGBA - data = ty.Pix - pma = true - case *image.NRGBA: - fmt = gl.RGBA - data = ty.Pix - case *image.Alpha: - fmt = gl.ALPHA - data = ty.Pix - default: - panic("Unsupported image type") - } - - texture := gl.CreateTexture() - gl.BindTexture(gl.TEXTURE_2D, texture) - w, h := t.SizePixels().WH() - gl.TexImage2D(gl.TEXTURE_2D, 0, w, h, fmt, gl.UNSIGNED_BYTE, data) - gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR) - gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR) - gl.BindTexture(gl.TEXTURE_2D, gl.Texture{}) - checkError() - - globalStats.textureContextCount.inc() - return &textureContext{ - texture: texture, - sizePixels: t.Size(), - flipY: t.flipY, - pma: pma, - } -} - -type textureContext struct { - contextResource - texture gl.Texture - sizePixels math.Size - flipY bool - pma bool -} - -func (c *textureContext) destroy() { - globalStats.textureContextCount.dec() - gl.DeleteTexture(c.texture) - c.texture = gl.Texture{} -} diff --git a/vendor/github.com/google/gxui/drivers/gl/triangulate.go b/vendor/github.com/google/gxui/drivers/gl/triangulate.go deleted file mode 100644 index 9a322b8..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/triangulate.go +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "container/list" - "fmt" - "github.com/google/gxui/math" -) - -const debugTriangulate = false -const epsilon = 0.00001 - -func isConcave(edges []math.Vec2, a, b, c int) bool { - return edges[b].Sub(edges[a]).Cross(edges[b].Sub(edges[c])) > -epsilon -} - -func isEar(edges []math.Vec2, a, b, c int) bool { - if isConcave(edges, a, b, c) { - if debugTriangulate { - fmt.Printf("concave: %c, %c, %c\n", 'A'+a, 'A'+b, 'A'+c) - } - return false - } - - plane := [3]math.Vec3{} - for i := 0; i < 3; i++ { - p := [3]int{a, b, c}[i] - q := [3]int{b, c, a}[i] - normal := edges[q].Sub(edges[p]).Normalize().Tangent() - plane[i] = normal.Vec3(-normal.Dot(edges[p])) - } - - for i := 0; i < len(edges); i++ { - if i == a || i == b || i == c { - continue - } - v := edges[i].Vec3(1) - - if v.Dot(plane[0]) > -epsilon && - v.Dot(plane[1]) > -epsilon && - v.Dot(plane[2]) > -epsilon { - if debugTriangulate { - fmt.Printf("non-ear: %c, %c, %c (%c %f:%f:%f)\n", - 'A'+a, 'A'+b, 'A'+c, - 'A'+i, - v.Dot(plane[0]), v.Dot(plane[1]), v.Dot(plane[2]), - ) - } - return false - } - } - if debugTriangulate { - fmt.Printf("ear: %c, %c, %c\n", - 'A'+a, 'A'+b, 'A'+c, - ) - } - return true -} - -func pruneEdgeDuplicates(edges []math.Vec2) []math.Vec2 { - pruned := make([]math.Vec2, 0, len(edges)) - last := math.Vec2{} - for i, v := range edges { - if i == 0 || last.Sub(v).Len() > 0.0001 { - pruned = append(pruned, v) - } - last = v - } - return pruned -} - -func triangulate(edges []math.Vec2) []math.Vec2 { - if debugTriangulate { - fmt.Printf("triangulate()\n") - } - - edges = pruneEdgeDuplicates(edges) - if len(edges) < 3 { - return []math.Vec2{} - } - - l := list.New() - for i := range edges { - l.PushBack(i) - } - - out := []math.Vec2{} - - pruned := true - for pruned { - pruned = false - for a := l.Front(); a != nil; { - b := a.Next() - if b == nil { - b = l.Front() - } - c := b.Next() - if c == nil { - c = l.Front() - } - - ia, ib, ic := a.Value.(int), b.Value.(int), c.Value.(int) - - if isEar(edges, ia, ib, ic) { - l.Remove(b) - out = append(out, edges[ia], edges[ib], edges[ic]) - pruned = true - if l.Len() < 3 { - return out - } - } else { - a = a.Next() - } - } - } - - if debugTriangulate { - fmt.Printf("Failed to prune an ear! edges: %#v, out: %v\n", edges, out) - } - - // assert.True(l.Len() < 3, "Failed to prune an ear! edges: %#v, out: %v", edges, out) - return out -} diff --git a/vendor/github.com/google/gxui/drivers/gl/vertex_buffer.go b/vendor/github.com/google/gxui/drivers/gl/vertex_buffer.go deleted file mode 100644 index b1284a0..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/vertex_buffer.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import "fmt" - -type vertexBuffer struct { - streams map[string]*vertexStream - count int -} - -func newVertexBuffer(streams ...*vertexStream) *vertexBuffer { - vb := &vertexBuffer{ - streams: map[string]*vertexStream{}, - } - for i, s := range streams { - if i == 0 { - vb.count = s.count - } else { - if vb.count != s.count { - panic(fmt.Errorf("Inconsistent vertex count in vertex buffer. %s has %d vertices, %s has %d", - streams[i-1].name, streams[i-1].count, s.name, s.count)) - } - } - vb.streams[s.name] = s - } - return vb -} diff --git a/vendor/github.com/google/gxui/drivers/gl/vertex_stream.go b/vendor/github.com/google/gxui/drivers/gl/vertex_stream.go deleted file mode 100644 index 343190e..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/vertex_stream.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "fmt" - "math" - "reflect" - - "github.com/goxjs/gl" -) - -type vertexStream struct { - name string - data []byte - ty shaderDataType - count int -} - -func newVertexStream(name string, ty shaderDataType, data32 []float32) *vertexStream { - dataVal := reflect.ValueOf(data32) - dataLen := dataVal.Len() - - if dataLen%ty.vectorElementCount() != 0 { - panic(fmt.Errorf("Incorrect multiple of elements. Got: %d, Requires multiple of %d", - dataLen, ty.vectorElementCount())) - } - if !ty.vectorElementType().isArrayOfType(data32) { - panic("Data is not of the specified type") - } - - // HACK. - data := float32Bytes(data32...) - - vs := &vertexStream{ - name: name, - data: data, - ty: ty, - count: dataLen / ty.vectorElementCount(), - } - return vs -} - -func (s *vertexStream) newContext() *vertexStreamContext { - buffer := gl.CreateBuffer() - gl.BindBuffer(gl.ARRAY_BUFFER, buffer) - gl.BufferData(gl.ARRAY_BUFFER, s.data, gl.STATIC_DRAW) - gl.BindBuffer(gl.ARRAY_BUFFER, gl.Buffer{}) - checkError() - - globalStats.vertexStreamContextCount.inc() - return &vertexStreamContext{buffer: buffer} -} - -type vertexStreamContext struct { - contextResource - buffer gl.Buffer -} - -func (c *vertexStreamContext) bind() { - gl.BindBuffer(gl.ARRAY_BUFFER, c.buffer) -} - -func (c *vertexStreamContext) destroy() { - globalStats.vertexStreamContextCount.dec() - gl.DeleteBuffer(c.buffer) - c.buffer = gl.Buffer{} -} - -// float32Bytes returns the byte representation of float32 values in little endian byte order. -func float32Bytes(values ...float32) []byte { - b := make([]byte, 4*len(values)) - for i, v := range values { - u := math.Float32bits(v) - b[4*i+0] = byte(u >> 0) - b[4*i+1] = byte(u >> 8) - b[4*i+2] = byte(u >> 16) - b[4*i+3] = byte(u >> 24) - } - return b -} diff --git a/vendor/github.com/google/gxui/drivers/gl/viewport.go b/vendor/github.com/google/gxui/drivers/gl/viewport.go deleted file mode 100644 index 14cf4a1..0000000 --- a/vendor/github.com/google/gxui/drivers/gl/viewport.go +++ /dev/null @@ -1,461 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -import ( - "sync" - "sync/atomic" - "unicode" - - "github.com/google/gxui" - "github.com/google/gxui/drivers/gl/platform" - "github.com/google/gxui/math" - "github.com/goxjs/gl" - "github.com/goxjs/glfw" -) - -const viewportDebugEnabled = false - -const clearColorR = 0.5 -const clearColorG = 0.5 -const clearColorB = 0.5 - -type viewport struct { - sync.Mutex - - driver *driver - context *context - window *glfw.Window - canvas *canvas - fullscreen bool - scaling float32 - sizeDipsUnscaled math.Size - sizeDips math.Size - sizePixels math.Size - position math.Point - title string - pendingMouseMoveEvent *gxui.MouseEvent - pendingMouseScrollEvent *gxui.MouseEvent - scrollAccumX float64 - scrollAccumY float64 - destroyed bool - redrawCount uint32 - - // Broadcasts to application thread - onClose gxui.Event // () - onResize gxui.Event // () - onMouseMove gxui.Event // (gxui.MouseEvent) - onMouseEnter gxui.Event // (gxui.MouseEvent) - onMouseExit gxui.Event // (gxui.MouseEvent) - onMouseDown gxui.Event // (gxui.MouseEvent) - onMouseUp gxui.Event // (gxui.MouseEvent) - onMouseScroll gxui.Event // (gxui.MouseEvent) - onKeyDown gxui.Event // (gxui.KeyboardEvent) - onKeyUp gxui.Event // (gxui.KeyboardEvent) - onKeyRepeat gxui.Event // (gxui.KeyboardEvent) - onKeyStroke gxui.Event // (gxui.KeyStrokeEvent) - // Broadcasts to driver thread - onDestroy gxui.Event -} - -func newViewport(driver *driver, width, height int, title string, fullscreen bool) *viewport { - v := &viewport{ - fullscreen: fullscreen, - scaling: 1, - title: title, - } - - glfw.DefaultWindowHints() - glfw.WindowHint(glfw.Samples, 4) - var monitor *glfw.Monitor - if fullscreen { - monitor = glfw.GetPrimaryMonitor() - if width == 0 || height == 0 { - vm := monitor.GetVideoMode() - width, height = vm.Width, vm.Height - } - } - wnd, err := glfw.CreateWindow(width, height, v.title, monitor, nil) - if err != nil { - panic(err) - } - width, height = wnd.GetSize() // At this time, width and height serve as a "hint" for glfw.CreateWindow, so get actual values from window. - - wnd.MakeContextCurrent() - - v.context = newContext() - - cursorPoint := func(x, y float64) math.Point { - // HACK: xpos is off by 1 and ypos is off by 3 on OSX. - // Compensate until real fix is found. - x -= 1.0 - y -= 3.0 - return math.Point{X: int(x), Y: int(y)}.ScaleS(1 / v.scaling) - } - wnd.SetCloseCallback(func(*glfw.Window) { - v.Close() - }) - wnd.SetPosCallback(func(w *glfw.Window, x, y int) { - v.Lock() - v.position = math.NewPoint(x, y) - v.Unlock() - }) - wnd.SetSizeCallback(func(_ *glfw.Window, w, h int) { - v.Lock() - v.sizeDipsUnscaled = math.Size{W: w, H: h} - v.sizeDips = v.sizeDipsUnscaled.ScaleS(1 / v.scaling) - v.Unlock() - v.onResize.Fire() - }) - wnd.SetFramebufferSizeCallback(func(_ *glfw.Window, w, h int) { - v.Lock() - v.sizePixels = math.Size{W: w, H: h} - v.Unlock() - gl.Viewport(0, 0, w, h) - gl.ClearColor(clearColorR, clearColorG, clearColorB, 1.0) - gl.Clear(gl.COLOR_BUFFER_BIT) - }) - wnd.SetCursorPosCallback(func(w *glfw.Window, x, y float64) { - p := cursorPoint(w.GetCursorPos()) - v.Lock() - if v.pendingMouseMoveEvent == nil { - v.pendingMouseMoveEvent = &gxui.MouseEvent{} - driver.Call(func() { - v.Lock() - ev := *v.pendingMouseMoveEvent - v.pendingMouseMoveEvent = nil - v.Unlock() - v.onMouseMove.Fire(ev) - }) - } - v.pendingMouseMoveEvent.Point = p - v.pendingMouseMoveEvent.State = getMouseState(w) - v.Unlock() - }) - wnd.SetCursorEnterCallback(func(w *glfw.Window, entered bool) { - p := cursorPoint(w.GetCursorPos()) - ev := gxui.MouseEvent{ - Point: p, - } - ev.State = getMouseState(w) - if entered { - v.onMouseEnter.Fire(ev) - } else { - v.onMouseExit.Fire(ev) - } - }) - wnd.SetScrollCallback(func(w *glfw.Window, xoff, yoff float64) { - p := cursorPoint(w.GetCursorPos()) - v.Lock() - if v.pendingMouseScrollEvent == nil { - v.pendingMouseScrollEvent = &gxui.MouseEvent{} - driver.Call(func() { - v.Lock() - ev := *v.pendingMouseScrollEvent - v.pendingMouseScrollEvent = nil - ev.ScrollX, ev.ScrollY = int(v.scrollAccumX), int(v.scrollAccumY) - if ev.ScrollX != 0 || ev.ScrollY != 0 { - v.scrollAccumX -= float64(ev.ScrollX) - v.scrollAccumY -= float64(ev.ScrollY) - v.Unlock() - v.onMouseScroll.Fire(ev) - } else { - v.Unlock() - } - }) - } - v.pendingMouseScrollEvent.Point = p - v.scrollAccumX += xoff * platform.ScrollSpeed - v.scrollAccumY += yoff * platform.ScrollSpeed - v.pendingMouseScrollEvent.State = getMouseState(w) - v.Unlock() - }) - wnd.SetMouseButtonCallback(func(w *glfw.Window, button glfw.MouseButton, action glfw.Action, mod glfw.ModifierKey) { - p := cursorPoint(w.GetCursorPos()) - ev := gxui.MouseEvent{ - Point: p, - Modifier: translateKeyboardModifier(mod), - } - ev.Button = translateMouseButton(button) - ev.State = getMouseState(w) - if action == glfw.Press { - v.onMouseDown.Fire(ev) - } else { - v.onMouseUp.Fire(ev) - } - }) - wnd.SetKeyCallback(func(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) { - ev := gxui.KeyboardEvent{ - Key: translateKeyboardKey(key), - Modifier: translateKeyboardModifier(mods), - } - switch action { - case glfw.Press: - v.onKeyDown.Fire(ev) - case glfw.Release: - v.onKeyUp.Fire(ev) - case glfw.Repeat: - v.onKeyRepeat.Fire(ev) - } - }) - wnd.SetCharModsCallback(func(w *glfw.Window, char rune, mods glfw.ModifierKey) { - if !unicode.IsControl(char) && - !unicode.IsGraphic(char) && - !unicode.IsLetter(char) && - !unicode.IsMark(char) && - !unicode.IsNumber(char) && - !unicode.IsPunct(char) && - !unicode.IsSpace(char) && - !unicode.IsSymbol(char) { - return // Weird unicode character. Ignore - } - - ev := gxui.KeyStrokeEvent{ - Character: char, - Modifier: translateKeyboardModifier(mods), - } - v.onKeyStroke.Fire(ev) - }) - wnd.SetRefreshCallback(func(w *glfw.Window) { - if v.canvas != nil { - v.render() - } - }) - - fw, fh := wnd.GetFramebufferSize() - posX, posY := wnd.GetPos() - - // Pre-multiplied alpha blending - gl.BlendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA) - gl.Enable(gl.BLEND) - gl.Enable(gl.SCISSOR_TEST) - gl.Viewport(0, 0, fw, fh) - gl.Scissor(0, 0, int32(fw), int32(fh)) - gl.ClearColor(clearColorR, clearColorG, clearColorB, 1.0) - gl.Clear(gl.COLOR_BUFFER_BIT) - wnd.SwapBuffers() - - v.window = wnd - v.driver = driver - v.onClose = driver.createAppEvent(func() {}) - v.onResize = driver.createAppEvent(func() {}) - v.onMouseMove = gxui.CreateEvent(func(gxui.MouseEvent) {}) - v.onMouseEnter = driver.createAppEvent(func(gxui.MouseEvent) {}) - v.onMouseExit = driver.createAppEvent(func(gxui.MouseEvent) {}) - v.onMouseDown = driver.createAppEvent(func(gxui.MouseEvent) {}) - v.onMouseUp = driver.createAppEvent(func(gxui.MouseEvent) {}) - v.onMouseScroll = gxui.CreateEvent(func(gxui.MouseEvent) {}) - v.onKeyDown = driver.createAppEvent(func(gxui.KeyboardEvent) {}) - v.onKeyUp = driver.createAppEvent(func(gxui.KeyboardEvent) {}) - v.onKeyRepeat = driver.createAppEvent(func(gxui.KeyboardEvent) {}) - v.onKeyStroke = driver.createAppEvent(func(gxui.KeyStrokeEvent) {}) - v.onDestroy = driver.createDriverEvent(func() {}) - v.sizeDipsUnscaled = math.Size{W: width, H: height} - v.sizeDips = v.sizeDipsUnscaled.ScaleS(1 / v.scaling) - v.sizePixels = math.Size{W: fw, H: fh} - v.position = math.Point{X: posX, Y: posY} - return v -} - -// Driver methods -// These methods are all called on the driver routine -func (v *viewport) render() { - if v.destroyed { - return - } - - v.window.MakeContextCurrent() - - ctx := v.context - ctx.beginDraw(v.SizeDips(), v.SizePixels()) - - dss := drawStateStack{drawState{ - ClipPixels: v.sizePixels.Rect(), - }} - - v.canvas.draw(ctx, &dss) - if len(dss) != 1 { - panic("DrawStateStack count was not 1 after calling Canvas.Draw") - } - - ctx.apply(dss.head()) - ctx.blitter.commit(ctx) - - if viewportDebugEnabled { - v.drawFrameUpdate(ctx) - } - - ctx.endDraw() - - v.window.SwapBuffers() -} - -func (v *viewport) drawFrameUpdate(ctx *context) { - dx := (ctx.stats.frameCount * 10) & 0xFF - r := math.CreateRect(dx-5, 0, dx+5, 3) - ds := &drawState{} - ctx.blitter.blitRect(ctx, r, gxui.White, ds) -} - -// gxui.viewport compliance -// These methods are all called on the application routine -func (v *viewport) SetCanvas(cc gxui.Canvas) { - cnt := atomic.AddUint32(&v.redrawCount, 1) - c := cc.(*canvas) - v.driver.asyncDriver(func() { - // Only use the canvas of the most recent SetCanvas call. - v.window.MakeContextCurrent() - if atomic.LoadUint32(&v.redrawCount) == cnt { - v.canvas = c - if v.canvas != nil { - v.render() - } - } - }) -} - -func (v *viewport) Scale() float32 { - v.Lock() - defer v.Unlock() - return v.scaling -} - -func (v *viewport) SetScale(s float32) { - v.Lock() - defer v.Unlock() - if s != v.scaling { - v.scaling = s - v.sizeDips = v.sizeDipsUnscaled.ScaleS(1 / s) - v.onResize.Fire() - } -} - -func (v *viewport) SizeDips() math.Size { - v.Lock() - defer v.Unlock() - return v.sizeDips -} - -func (v *viewport) SetSizeDips(size math.Size) { - v.driver.syncDriver(func() { - v.sizeDips = size - v.sizeDipsUnscaled = size.ScaleS(v.scaling) - v.window.SetSize(v.sizeDipsUnscaled.W, v.sizeDipsUnscaled.H) - }) -} - -func (v *viewport) SizePixels() math.Size { - v.Lock() - defer v.Unlock() - return v.sizePixels -} - -func (v *viewport) Title() string { - v.Lock() - defer v.Unlock() - return v.title -} - -func (v *viewport) SetTitle(title string) { - v.Lock() - v.title = title - v.Unlock() - v.driver.asyncDriver(func() { - v.window.SetTitle(title) - }) -} - -func (v *viewport) Position() math.Point { - v.Lock() - defer v.Unlock() - return v.position -} - -func (v *viewport) SetPosition(pos math.Point) { - v.Lock() - v.position = pos - v.Unlock() - v.driver.asyncDriver(func() { - v.window.SetPos(pos.X, pos.Y) - }) -} - -func (v *viewport) Fullscreen() bool { - return v.fullscreen -} - -func (v *viewport) Show() { - v.driver.asyncDriver(func() { v.window.Show() }) -} - -func (v *viewport) Hide() { - v.driver.asyncDriver(func() { v.window.Hide() }) -} - -func (v *viewport) Close() { - v.onClose.Fire() - v.Destroy() -} - -func (v *viewport) OnResize(f func()) gxui.EventSubscription { - return v.onResize.Listen(f) -} - -func (v *viewport) OnClose(f func()) gxui.EventSubscription { - return v.onClose.Listen(f) -} - -func (v *viewport) OnMouseMove(f func(gxui.MouseEvent)) gxui.EventSubscription { - return v.onMouseMove.Listen(f) -} - -func (v *viewport) OnMouseEnter(f func(gxui.MouseEvent)) gxui.EventSubscription { - return v.onMouseEnter.Listen(f) -} - -func (v *viewport) OnMouseExit(f func(gxui.MouseEvent)) gxui.EventSubscription { - return v.onMouseExit.Listen(f) -} - -func (v *viewport) OnMouseDown(f func(gxui.MouseEvent)) gxui.EventSubscription { - return v.onMouseDown.Listen(f) -} - -func (v *viewport) OnMouseUp(f func(gxui.MouseEvent)) gxui.EventSubscription { - return v.onMouseUp.Listen(f) -} - -func (v *viewport) OnMouseScroll(f func(gxui.MouseEvent)) gxui.EventSubscription { - return v.onMouseScroll.Listen(f) -} - -func (v *viewport) OnKeyDown(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return v.onKeyDown.Listen(f) -} - -func (v *viewport) OnKeyUp(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return v.onKeyUp.Listen(f) -} - -func (v *viewport) OnKeyRepeat(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return v.onKeyRepeat.Listen(f) -} - -func (v *viewport) OnKeyStroke(f func(gxui.KeyStrokeEvent)) gxui.EventSubscription { - return v.onKeyStroke.Listen(f) -} - -func (v *viewport) Destroy() { - v.driver.asyncDriver(func() { - if !v.destroyed { - v.window.MakeContextCurrent() - v.canvas = nil - v.context.destroy() - v.window.Destroy() - v.onDestroy.Fire() - v.destroyed = true - } - }) -} diff --git a/vendor/github.com/google/gxui/drop_down_list.go b/vendor/github.com/google/gxui/drop_down_list.go deleted file mode 100644 index 39c1f29..0000000 --- a/vendor/github.com/google/gxui/drop_down_list.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type DropDownList interface { - Focusable - Container - SetBubbleOverlay(BubbleOverlay) - BubbleOverlay() BubbleOverlay - Adapter() ListAdapter - SetAdapter(ListAdapter) - BorderPen() Pen - SetBorderPen(Pen) - BackgroundBrush() Brush - SetBackgroundBrush(Brush) - Selected() AdapterItem - Select(AdapterItem) - OnSelectionChanged(func(AdapterItem)) EventSubscription - OnShowList(func()) EventSubscription - OnHideList(func()) EventSubscription -} diff --git a/vendor/github.com/google/gxui/event.go b/vendor/github.com/google/gxui/event.go deleted file mode 100644 index 2486ad7..0000000 --- a/vendor/github.com/google/gxui/event.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "reflect" -) - -type EventSubscription interface { - Unlisten() -} - -type Event interface { - Fire(args ...interface{}) - Listen(interface{}) EventSubscription - ParameterTypes() []reflect.Type -} diff --git a/vendor/github.com/google/gxui/event_base.go b/vendor/github.com/google/gxui/event_base.go deleted file mode 100644 index 24357f3..0000000 --- a/vendor/github.com/google/gxui/event_base.go +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "fmt" - "reflect" -) - -type EventListener struct { - Id int - Function reflect.Value -} - -type eventBaseSubscription struct { - event *EventBase - id int -} - -func (s *eventBaseSubscription) Unlisten() { - if s.event != nil { - s.event.unlisten(s.id) - s.event = nil - } -} - -type EventBase struct { - unlisten func(id int) - paramTypes []reflect.Type - isVariadic bool - listeners []EventListener - nextId int -} - -func (e *EventBase) init(signature interface{}) { - e.unlisten = func(id int) { - for i, l := range e.listeners { - if l.Id == id { - copy(e.listeners[i:], e.listeners[i+1:]) - e.listeners = e.listeners[:len(e.listeners)-1] - return - } - } - panic(fmt.Errorf("Listener not added to event")) - } - - f := reflect.TypeOf(signature) - e.paramTypes = make([]reflect.Type, f.NumIn()) - for i, _ := range e.paramTypes { - e.paramTypes[i] = f.In(i) - } - e.isVariadic = f.IsVariadic() -} - -func (e *EventBase) String() string { - s := "Event<" - for i, t := range e.paramTypes { - if i > 0 { - s += ", " - } - if e.isVariadic && i == len(e.paramTypes)-1 { - - s += "..." - } - s += t.String() - } - return s + ">" -} - -func assignable(to, from reflect.Type) bool { - if from == nil { - switch to.Kind() { - case reflect.Chan, reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice, reflect.Func: - return true - } - return false - } - return from.AssignableTo(to) -} - -func (e *EventBase) VerifySignature(argTys []reflect.Type, isVariadic bool) { - paramTypes := e.paramTypes - if isVariadic { - if len(argTys) < len(paramTypes)-1 { - panic(fmt.Errorf("%v.Fire(%v) Too few arguments. Must have at least %v, but got %v", - e.String(), argTys, len(paramTypes), len(argTys))) - } - for i, argTy := range argTys { - varIdx := len(paramTypes) - 1 - if i >= varIdx { - paramTy := paramTypes[varIdx].Elem() - if !assignable(paramTy, argTy) { - panic(fmt.Errorf("%v.Fire(%v) Variadic argument %v for was of the wrong type. Got: %v, Expected: %v", - e.String(), argTys, i-varIdx, argTy, paramTy)) - } - } else { - paramTy := paramTypes[i] - if !assignable(paramTy, argTy) { - panic(fmt.Errorf("%v.Fire(%v) Argument %v for was of the wrong type. Got: %v, Expected: %v", - e.String(), argTys, i, argTy, paramTy)) - } - } - } - } else { - if len(paramTypes) != len(argTys) { - panic(fmt.Errorf("%v.Fire(%v) Argument count mismatch. Expected %d, got %d", - e.String(), argTys, len(paramTypes), len(argTys))) - } - for i, argTy := range argTys { - paramTy := paramTypes[i] - if !assignable(paramTy, argTy) { - panic(fmt.Errorf("%v.Fire(%v) Argument %v for was of the wrong type. Got: %v, Expected: %v", - e.String(), argTys, i, argTy, paramTy)) - } - } - } -} - -func (e *EventBase) VerifyArguments(args []interface{}) { - argTys := make([]reflect.Type, len(args)) - for i, arg := range args { - argTys[i] = reflect.TypeOf(arg) - } - e.VerifySignature(argTys, e.isVariadic) -} - -func (e *EventBase) InvokeListeners(args []interface{}) { - argVals := make([]reflect.Value, len(args)) - for i, arg := range args { - if arg == nil { - argVals[i] = reflect.New(e.paramTypes[i]).Elem() - } else { - argVals[i] = reflect.ValueOf(arg) - } - } - - for _, l := range e.listeners { - l.Function.Call(argVals) - } -} - -// Event compliance -func (e *EventBase) Listen(listener interface{}) EventSubscription { - var paramTypes []reflect.Type - var function reflect.Value - - reflectTy := reflect.TypeOf(listener) - if reflectTy.Kind() == reflect.Func { - paramTypes = make([]reflect.Type, reflectTy.NumIn()) - for i, _ := range paramTypes { - paramTypes[i] = reflectTy.In(i) - } - function = reflect.ValueOf(listener) - } else { - switch ty := listener.(type) { - case Event: - paramTypes = ty.ParameterTypes() - function = reflect.ValueOf(listener).MethodByName("Fire") - default: - panic(fmt.Errorf("Listener cannot be of type %v", reflectTy.String())) - } - } - - if function.IsNil() { - panic("Listener function is nil") - } - - for i, listenerTy := range paramTypes { - if !listenerTy.AssignableTo(e.paramTypes[i]) { - panic(fmt.Errorf("%v.Listen(%v) Listener parameter %v for was of the wrong type. Got: %v, Expected: %v", - e.String(), listener, i, listenerTy, e.paramTypes[i])) - } - } - - id := e.nextId - e.nextId++ - - e.listeners = append(e.listeners, EventListener{ - Id: id, - Function: function, - }) - - return &eventBaseSubscription{e, id} -} - -func (e *EventBase) Fire(args ...interface{}) { - e.VerifyArguments(args) - e.InvokeListeners(args) -} - -func (e *EventBase) ParameterTypes() []reflect.Type { - return e.paramTypes -} diff --git a/vendor/github.com/google/gxui/filtered_list_adapter.go b/vendor/github.com/google/gxui/filtered_list_adapter.go deleted file mode 100644 index ea21e5b..0000000 --- a/vendor/github.com/google/gxui/filtered_list_adapter.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "sort" - "strings" -) - -type FilteredListItem struct { - Name string - Data interface{} -} - -type FilteredListAdapter struct { - DefaultAdapter - items []FilteredListItem -} - -func (a *FilteredListAdapter) SetItems(items []FilteredListItem) { - // Clone, as the order can be mutated - a.items = append([]FilteredListItem{}, items...) - a.DefaultAdapter.SetItems(a.items) -} - -func (a *FilteredListAdapter) Sort(partial string) { - partialLower := strings.ToLower(partial) - sorter := flaSorter{items: a.items, scores: make([]int, len(a.items))} - for i, s := range a.items { - sorter.scores[i] = flaScore(s.Name, strings.ToLower(s.Name), partial, partialLower) - } - sort.Sort(sorter) - a.DefaultAdapter.SetItems(a.items) -} - -type flaSorter struct { - items []FilteredListItem - scores []int -} - -func (s flaSorter) Len() int { - return len(s.items) -} - -func (s flaSorter) Less(i, j int) bool { - return s.scores[i] > s.scores[j] -} - -func (s flaSorter) Swap(i, j int) { - items, scores := s.items, s.scores - items[i], items[j] = items[j], items[i] - scores[i], scores[j] = scores[j], scores[i] -} - -func flaScore(str, strLower, partial, partialLower string) int { - l := len(partial) - for i := l; i > 0; i-- { - c := 0 - if strings.Contains(str, partial[:i]) { - c = i*i + 1 - } else if strings.Contains(strLower, partialLower[:i]) { - c = i * i - } - - if c > 0 { - return c + flaScore(str, strLower, partial[i:], partialLower[i:]) - } - } - return 0 -} diff --git a/vendor/github.com/google/gxui/focus_controller.go b/vendor/github.com/google/gxui/focus_controller.go deleted file mode 100644 index c00d380..0000000 --- a/vendor/github.com/google/gxui/focus_controller.go +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type FocusController struct { - window Window - focus Focusable - setFocusCount int - detachSubscription EventSubscription -} - -func CreateFocusController(window Window) *FocusController { - return &FocusController{ - window: window, - } -} - -func (c *FocusController) SetFocus(f Focusable) { - c.setFocusCount++ - if c.focus == f { - return - } - if c.focus != nil { - o := c.focus - c.focus = nil - c.detachSubscription.Unlisten() - o.LostFocus() - if c.focus != nil { - return // Something in LostFocus() called SetFocus(). Respect their call. - } - } - c.focus = f - if c.focus != nil { - c.detachSubscription = c.focus.OnDetach(func() { c.SetFocus(nil) }) - c.focus.GainedFocus() - } -} - -func (c *FocusController) SetFocusCount() int { - return c.setFocusCount -} - -func (c *FocusController) Focus() Focusable { - return c.focus -} - -func (c *FocusController) FocusNext() { - c.SetFocus(c.NextFocusable(c.focus, true)) -} - -func (c *FocusController) FocusPrev() { - c.SetFocus(c.NextFocusable(c.focus, false)) -} - -func (c *FocusController) NextFocusable(after Control, forwards bool) Focusable { - container, _ := after.(Container) - if container != nil { - f := c.NextChildFocusable(container, nil, forwards) - if f != nil { - return f - } - } - - for after != nil { - parent := after.Parent() - if parent != nil { - f := c.NextChildFocusable(parent, after, forwards) - if f != nil { - return f - } - } - after, _ = parent.(Control) - } - - return c.NextChildFocusable(c.window, nil, forwards) -} - -func (c *FocusController) NextChildFocusable(p Parent, after Control, forwards bool) Focusable { - examineNext := after == nil - children := p.Children() - - i := 0 - e := len(children) - if !forwards { - i = len(children) - 1 - e = -1 - } - - for i != e { - f := children[i] - if forwards { - i++ - } else { - i-- - } - - if !examineNext { - if f.Control == after { - examineNext = true - } - continue - } - - if focusable := c.Focusable(f.Control); focusable != nil { - return focusable - } - - if container, ok := f.Control.(Container); ok { - focusable := c.NextChildFocusable(container, nil, forwards) - if focusable != nil { - return focusable - } - } - } - return nil -} - -func (c *FocusController) Focusable(ctrl Control) Focusable { - focusable, _ := ctrl.(Focusable) - if focusable != nil && focusable.IsFocusable() { - return focusable - } - return nil -} diff --git a/vendor/github.com/google/gxui/focusable.go b/vendor/github.com/google/gxui/focusable.go deleted file mode 100644 index dff6fc4..0000000 --- a/vendor/github.com/google/gxui/focusable.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -// Focusable is the optional interface implmented by controls that have the -// ability to acquire focus. A control with focus will receive keyboard input -// first. -type Focusable interface { - Control - - // IsFocusable returns true if the control is currently in a state where it - // can acquire focus. - IsFocusable() bool - - // HasFocus returns true when the control has focus. - HasFocus() bool - - // GainedFocus is called when the Focusable gains focus. - // This method is called by the FocusManager should not be called by the user. - GainedFocus() - - // LostFocus is called when the Focusable loses focus. - // This method is called by the FocusManager should not be called by the user. - LostFocus() - - // OnGainedFocus subscribes f to be called whenever the control gains focus. - OnGainedFocus(f func()) EventSubscription - - // OnLostFocus subscribes f to be called whenever the control loses focus. - OnLostFocus(f func()) EventSubscription -} diff --git a/vendor/github.com/google/gxui/font.go b/vendor/github.com/google/gxui/font.go deleted file mode 100644 index 1374e44..0000000 --- a/vendor/github.com/google/gxui/font.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" -) - -// A Font represents a TrueType font loaded by the GXUI driver. -type Font interface { - LoadGlyphs(first, last rune) - Size() int - GlyphMaxSize() math.Size - Measure(*TextBlock) math.Size - Layout(*TextBlock) (offsets []math.Point) -} - -// TextBlock is a sequence of runes to be laid out. -type TextBlock struct { - Runes []rune - AlignRect math.Rect - H HorizontalAlignment - V VerticalAlignment -} diff --git a/vendor/github.com/google/gxui/go.mod b/vendor/github.com/google/gxui/go.mod deleted file mode 100644 index 6051b1b..0000000 --- a/vendor/github.com/google/gxui/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/google/gxui - -go 1.13 diff --git a/vendor/github.com/google/gxui/gxfont/droid_sans_mono.go b/vendor/github.com/google/gxui/gxfont/droid_sans_mono.go deleted file mode 100644 index 835f062..0000000 --- a/vendor/github.com/google/gxui/gxfont/droid_sans_mono.go +++ /dev/null @@ -1,4726 +0,0 @@ -// GENERATED BY mkfont.go - -package gxfont - -var droid_sans_mono = []byte{ - 0x8c, 0xfc, 0x0b, 0x60, 0x4c, 0xd7, 0xfa, 0x3f, 0x0e, 0xaf, 0x67, 0xad, 0xbd, 0xf7, 0x5c, 0x33, - 0xf7, 0x99, 0x64, 0x12, 0xcc, 0x8c, 0x91, 0x44, 0x0c, 0x86, 0x0c, 0x22, 0x8a, 0x0c, 0x22, 0x89, - 0x50, 0xe2, 0xda, 0x88, 0x46, 0x82, 0x88, 0xe8, 0xc5, 0x2d, 0x5a, 0x54, 0x9d, 0x50, 0x47, 0x89, - 0x4b, 0x51, 0xd7, 0x96, 0x92, 0xaa, 0xa2, 0x28, 0x43, 0x89, 0x88, 0x7b, 0xf5, 0x7a, 0x9c, 0xba, - 0x1c, 0xd5, 0x1e, 0xed, 0x71, 0x24, 0xbd, 0xa9, 0x96, 0x4a, 0x6f, 0xaa, 0x24, 0x3b, 0xef, 0xb3, - 0xf6, 0x4c, 0x54, 0xcf, 0x39, 0xdf, 0xf7, 0xff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, 0xf2, 0x57, 0x75, 0x29, 0xf5, 0xb9, 0x09, 0x6c, 0xe6, 0xf7, 0x84, 0x6c, - 0xb1, 0x92, 0x73, 0x82, 0x53, 0x46, 0x4e, 0x45, 0x48, 0xb9, 0x06, 0xcd, 0x49, 0x3b, 0xc2, 0xcb, - 0x7b, 0x40, 0x1d, 0x24, 0x42, 0x12, 0x59, 0x40, 0xd6, 0x43, 0x15, 0x34, 0x87, 0x73, 0xe4, 0x22, - 0x59, 0x45, 0x6a, 0xc9, 0x26, 0x32, 0x9f, 0xf4, 0x20, 0xbb, 0xc9, 0xcb, 0x64, 0x39, 0xd9, 0x48, - 0x5e, 0xc6, 0x37, 0x5e, 0x26, 0xeb, 0x95, 0x6d, 0x07, 0x71, 0x11, 0x0f, 0x59, 0x48, 0xe6, 0xe1, - 0x7e, 0x99, 0xfc, 0x42, 0x9e, 0xc2, 0xef, 0x5a, 0x52, 0x8e, 0xef, 0x5d, 0x27, 0x53, 0xf1, 0x7c, - 0x18, 0x09, 0xe1, 0x5e, 0x4d, 0x96, 0x91, 0x62, 0x32, 0x07, 0x9f, 0xa4, 0xa4, 0x33, 0x1e, 0x8b, - 0x61, 0x23, 0xb9, 0x08, 0x1e, 0x32, 0xb9, 0xb1, 0x0e, 0xb6, 0xe0, 0x53, 0x9b, 0xb0, 0xee, 0x72, - 0x6c, 0x75, 0x23, 0x3e, 0x55, 0x41, 0xde, 0xc5, 0x92, 0x4f, 0xc9, 0x51, 0xf2, 0x28, 0x9e, 0x97, - 0xe2, 0xbd, 0x72, 0x50, 0x93, 0x33, 0x64, 0x09, 0x5e, 0x0d, 0x69, 0xac, 0x27, 0x85, 0xc8, 0xaf, - 0x4a, 0x52, 0x4b, 0xe3, 0xc8, 0x97, 0xd8, 0x3e, 0x52, 0x8f, 0xef, 0xce, 0x20, 0x7b, 0xc8, 0x40, - 0x2c, 0xf9, 0x05, 0xb2, 0x89, 0x04, 0x36, 0xac, 0x61, 0x3d, 0xf6, 0x49, 0x6a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x53, 0xa3, 0xc6, 0x69, 0x99, 0x8e, 0xe9, 0x59, - 0x14, 0x33, 0xa0, 0xee, 0x99, 0x98, 0x99, 0x59, 0x98, 0x95, 0xd9, 0x98, 0x9d, 0x39, 0x58, 0x34, - 0x8b, 0x61, 0x4e, 0x16, 0xcb, 0xe2, 0x58, 0x33, 0xd6, 0x9c, 0xb5, 0x60, 0x2e, 0xe6, 0x66, 0x1e, - 0xd6, 0x12, 0x35, 0xb4, 0x15, 0x8b, 0x67, 0x09, 0x2c, 0x91, 0xb5, 0x66, 0x49, 0xac, 0x0d, 0xf3, - 0xb1, 0xb6, 0xac, 0x1d, 0x6b, 0xcf, 0xfc, 0xac, 0x03, 0xeb, 0xc8, 0x92, 0x59, 0x80, 0x75, 0x62, - 0x9d, 0x59, 0x17, 0x96, 0xc2, 0xba, 0xb2, 0x54, 0xd6, 0x8d, 0x3d, 0xc4, 0xba, 0xb3, 0x1e, 0xac, - 0x27, 0x4b, 0x63, 0x41, 0xd6, 0x8b, 0xf5, 0x66, 0x7d, 0x58, 0x3a, 0xeb, 0xcb, 0x32, 0x58, 0x26, - 0xcb, 0x62, 0xfd, 0x58, 0x36, 0xeb, 0xcf, 0x06, 0xb0, 0x87, 0xd9, 0x40, 0x36, 0x88, 0xe5, 0xb0, - 0xc1, 0x6c, 0x08, 0x1b, 0xca, 0x86, 0xb1, 0xe1, 0x6c, 0x04, 0x7b, 0x84, 0xe5, 0xb2, 0x91, 0x2c, - 0x8f, 0x8d, 0x62, 0x8f, 0xb2, 0x7c, 0x36, 0x9a, 0x15, 0xb0, 0x42, 0x36, 0x86, 0x8d, 0x65, 0xe3, - 0x58, 0x11, 0x1b, 0xcf, 0x8a, 0xd9, 0x04, 0x56, 0xc2, 0x26, 0xb2, 0xc7, 0xd8, 0xe3, 0xec, 0x09, - 0xf6, 0x24, 0x9b, 0x44, 0x09, 0x05, 0x36, 0x99, 0x4d, 0x61, 0x53, 0xd9, 0x34, 0x56, 0xca, 0xa6, - 0xb3, 0xa7, 0x68, 0x33, 0xda, 0x89, 0x76, 0xa6, 0xf9, 0x74, 0x34, 0x91, 0xa8, 0x9e, 0x4b, 0x3b, - 0x90, 0xff, 0x11, 0xcd, 0x34, 0x45, 0x3e, 0xf4, 0xff, 0x43, 0x65, 0xc2, 0x6f, 0x32, 0xf4, 0x22, - 0x22, 0x5a, 0x54, 0x15, 0x22, 0x09, 0x0d, 0x7a, 0x66, 0x1d, 0xd1, 0x93, 0x28, 0x44, 0x5d, 0x46, - 0x8c, 0x82, 0xcc, 0xe8, 0xed, 0xad, 0xe8, 0x6d, 0xec, 0x88, 0xd1, 0xa3, 0x11, 0x59, 0x38, 0x49, - 0x2c, 0xfa, 0xac, 0x66, 0xa4, 0x39, 0x69, 0x81, 0x9e, 0xc7, 0x8d, 0xf6, 0xbc, 0x25, 0xfa, 0xa7, - 0x56, 0x24, 0x9e, 0x24, 0xa0, 0x8f, 0x6a, 0x8d, 0x5e, 0xa9, 0x0d, 0x7a, 0xab, 0xb6, 0xe8, 0x11, - 0xdb, 0xa3, 0x8f, 0xee, 0x80, 0xde, 0x2b, 0x99, 0x04, 0x48, 0x27, 0xf4, 0x67, 0x5d, 0x10, 0x43, - 0x74, 0x45, 0x6f, 0xdf, 0x0d, 0x3d, 0x73, 0x77, 0xf4, 0xde, 0x3d, 0xd1, 0xdb, 0x07, 0x49, 0x2f, - 0xc4, 0x0e, 0x7d, 0xd0, 0x23, 0xf6, 0x45, 0xbf, 0x9f, 0x89, 0xe8, 0xb7, 0x1f, 0xfa, 0x99, 0xfe, - 0xe8, 0x8f, 0x1e, 0x46, 0xbc, 0x33, 0x08, 0x7d, 0xde, 0x60, 0xf4, 0x17, 0x43, 0xd1, 0xbb, 0x0c, - 0x27, 0x23, 0xc8, 0x23, 0x88, 0x08, 0x46, 0x22, 0xe2, 0x1b, 0x85, 0xd8, 0x21, 0x1f, 0x31, 0x41, - 0x01, 0xfa, 0xc8, 0x31, 0x84, 0x7b, 0x84, 0x85, 0xe8, 0x53, 0x96, 0xa0, 0xef, 0x5c, 0x8f, 0x3e, - 0xf7, 0x35, 0xc4, 0x90, 0x5b, 0xd1, 0x37, 0xbe, 0x4e, 0xb6, 0x93, 0x37, 0xc8, 0x2e, 0xf4, 0xc1, - 0xbb, 0xc9, 0x9b, 0x64, 0x2f, 0xc6, 0x24, 0x21, 0xb2, 0x8f, 0xbc, 0x45, 0x0e, 0x62, 0xec, 0x51, - 0x89, 0x1e, 0xf8, 0x10, 0x7a, 0xa0, 0x23, 0xe4, 0x18, 0x39, 0x4e, 0xa3, 0xc8, 0x34, 0x52, 0x44, - 0xc6, 0x93, 0x89, 0xd4, 0x48, 0x66, 0x92, 0x57, 0xc9, 0x14, 0xf2, 0x38, 0x75, 0x93, 0xa7, 0xc9, - 0x63, 0xb4, 0x03, 0x59, 0x44, 0x5e, 0xa6, 0xed, 0x48, 0x29, 0xed, 0x48, 0x93, 0xc9, 0x04, 0x32, - 0x83, 0x26, 0xd2, 0x36, 0x34, 0x09, 0x96, 0xd1, 0xf6, 0xe4, 0x09, 0xf2, 0x2c, 0xf5, 0x60, 0xcc, - 0x52, 0x8d, 0x98, 0x62, 0x1c, 0x99, 0x44, 0xdb, 0x42, 0x6f, 0xea, 0xa7, 0xad, 0x11, 0x01, 0xce, - 0xa1, 0x26, 0xe4, 0xe9, 0x73, 0xe8, 0x49, 0xd7, 0x81, 0x0d, 0xec, 0x94, 0x52, 0x46, 0xb5, 0x54, - 0x47, 0x25, 0xaa, 0x22, 0x87, 0x69, 0x80, 0x9c, 0x82, 0x6e, 0x34, 0x9a, 0x14, 0x53, 0x1b, 0xb5, - 0x2b, 0xa3, 0x69, 0x20, 0xb3, 0xa8, 0x9a, 0xea, 0xa9, 0x99, 0xfc, 0x95, 0x2c, 0x45, 0x9c, 0xbc, - 0x8c, 0x2c, 0x46, 0x5c, 0xb4, 0x82, 0xac, 0x24, 0x2f, 0x90, 0x35, 0x64, 0x2d, 0xf6, 0x70, 0x35, - 0x62, 0xb9,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x49, 0x16, 0xd2, 0x8c, 0xb4, 0x24, 0x89, 0xe4, 0xa3, 0xe0, 0xf3, 0xd6, 0x56, 0x20, 0xb4, - 0x02, 0xab, 0x17, 0x04, 0x2f, 0x58, 0x35, 0x20, 0x69, 0x80, 0xa9, 0xad, 0x6a, 0x4a, 0x99, 0x85, - 0x61, 0x54, 0x6b, 0xa1, 0x54, 0x00, 0x1b, 0x50, 0x01, 0xa1, 0x36, 0x6d, 0x15, 0x63, 0x81, 0x29, - 0xcd, 0x8d, 0x78, 0x53, 0xcc, 0x4a, 0xc8, 0x4d, 0x98, 0x99, 0xc0, 0x12, 0x26, 0xd9, 0xe2, 0x82, - 0x66, 0x5b, 0x56, 0x30, 0x2e, 0x27, 0x8e, 0xc6, 0x25, 0x89, 0xa2, 0x7b, 0x12, 0xd1, 0xaf, 0xd0, - 0x57, 0xe8, 0xcf, 0xeb, 0x05, 0x7d, 0x74, 0x8b, 0x52, 0x63, 0x82, 0x57, 0x13, 0xd3, 0xdc, 0x2d, - 0x31, 0xbb, 0xc5, 0x58, 0x60, 0x9a, 0x6c, 0x2a, 0x33, 0x31, 0x93, 0xc9, 0x68, 0xf4, 0x1b, 0xd3, - 0x8c, 0x05, 0x46, 0xc1, 0xd8, 0x4a, 0x5d, 0xca, 0x24, 0x6c, 0x86, 0x30, 0x8c, 0x1e, 0xdf, 0xd2, - 0x1a, 0xb2, 0x18, 0xf1, 0xfb, 0x02, 0x01, 0xbf, 0x99, 0x33, 0x0e, 0x45, 0xd6, 0xcf, 0x59, 0x69, - 0xe1, 0x0c, 0xe2, 0x5c, 0xac, 0x0d, 0xf8, 0x4d, 0xff, 0xce, 0xf7, 0x25, 0xd7, 0x72, 0xd9, 0x0b, - 0x04, 0x50, 0xee, 0x92, 0x93, 0x3b, 0x76, 0xc8, 0xff, 0xe3, 0x13, 0x6f, 0xf7, 0x76, 0x6e, 0x99, - 0xd8, 0xd9, 0x11, 0x30, 0x27, 0x24, 0x74, 0xee, 0xd4, 0x25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x0d, 0x23, 0x82, 0x48, - 0xa3, 0x4d, 0xae, 0x3f, 0xff, 0x66, 0xb2, 0xff, 0xa6, 0xe2, 0xfc, 0x9b, 0x1a, 0xe6, 0x20, 0xa0, - 0x4b, 0x0a, 0x7d, 0x12, 0xdb, 0xfc, 0xd4, 0x10, 0x98, 0x53, 0xde, 0x33, 0x21, 0xd2, 0xf4, 0xa2, - 0xe8, 0x77, 0xe5, 0x6f, 0x1a, 0x7f, 0x53, 0x30, 0x0c, 0xb9, 0x82, 0x18, 0xe6, 0x43, 0xd4, 0x80, - 0x31, 0xc1, 0x1e, 0x13, 0xa4, 0x19, 0xd2, 0x42, 0x89, 0x95, 0x08, 0x33, 0x85, 0x45, 0x02, 0x7b, - 0x5a, 0x7c, 0x5e, 0xa4, 0xa2, 0x00, 0x02, 0x4a, 0x23, 0xa8, 0x28, 0x88, 0x22, 0x93, 0x6a, 0x08, - 0x5c, 0x25, 0x10, 0x24, 0x90, 0x16, 0x59, 0x4a, 0x25, 0xb8, 0xd9, 0x49, 0x46, 0x8d, 0x08, 0xc3, - 0x09, 0xb7, 0xe1, 0x01, 0xbf, 0x02, 0x91, 0x71, 0x6c, 0x30, 0xb2, 0xe3, 0x5e, 0x1d, 0x95, 0x03, - 0x2d, 0x22, 0x52, 0x45, 0x30, 0x7e, 0x83, 0xce, 0x80, 0xaa, 0x21, 0x04, 0xea, 0xc7, 0xb3, 0x0d, - 0x0d, 0x9d, 0xe9, 0x99, 0x2b, 0x70, 0xba, 0x18, 0x4e, 0x57, 0x20, 0xdb, 0x77, 0x72, 0x29, 0x59, - 0x0f, 0xd5, 0x42, 0x80, 0x5d, 0x57, 0xf2, 0x07, 0xc1, 0x60, 0xa2, 0x8a, 0xe7, 0x3b, 0x00, 0x3f, - 0x6a, 0xf1, 0xcd, 0x29, 0x02, 0x0c, 0x12, 0x0a, 0x84, 0xc9, 0x02, 0x23, 0x48, 0x90, 0x40, 0xde, - 0x5c, 0x0e, 0x90, 0x03, 0x60, 0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4f, 0x11, - 0xb4, 0xe6, 0xa1, 0x77, 0x41, 0xcb, 0xce, 0x80, 0x43, 0x01, 0x37, 0x46, 0x74, 0xe1, 0x96, 0xfd, - 0x52, 0x81, 0x74, 0x4b, 0x6a, 0xc4, 0x68, 0x38, 0x68, 0xb2, 0x67, 0x61, 0x18, 0xcf, 0xe9, 0xe0, - 0xdd, 0x57, 0x88, 0xf0, 0xe5, 0x73, 0x32, 0x14, 0xe8, 0x78, 0x56, 0xb1, 0x89, 0x1d, 0x3a, 0x62, - 0xbc, 0x15, 0x21, 0x03, 0xf6, 0x54, 0xb3, 0x7e, 0x0d, 0x53, 0x39, 0x0d, 0x48, 0x41, 0x43, 0xfd, - 0x56, 0x6c, 0xff, 0x29, 0x1c, 0xe1, 0x0c, 0x1c, 0x61, 0xc4, 0x70, 0xc1, 0x78, 0xa2, 0x72, 0xe4, - 0xe9, 0x69, 0xac, 0x65, 0x14, 0x51, 0x81, 0x2a, 0xa6, 0xc0, 0x4f, 0x0a, 0x70, 0x04, 0x82, 0xa6, - 0x98, 0x2c, 0x42, 0x6c, 0xc6, 0x82, 0x28, 0xad, 0x60, 0x2b, 0x10, 0xac, 0xf7, 0x51, 0xaa, 0x4f, - 0xe9, 0x31, 0x72, 0x3b, 0x59, 0x09, 0x52, 0xc0, 0x63, 0xfe, 0xf3, 0x80, 0x2b, 0x51, 0x66, 0x0a, - 0x86, 0xf9, 0x15, 0xb0, 0xed, 0x74, 0xad, 0x7c, 0x57, 0xbe, 0x0c, 0xe9, 0xd0, 0xec, 0xe4, 0xcb, - 0x59, 0x2f, 0x3e, 0x7f, 0xf2, 0x13, 0x58, 0x3c, 0x66, 0xe2, 0x4d, 0x26, 0x34, 0x04, 0xfa, 0xc3, - 0x72, 0x18, 0x0b, 0x05, 0xb0, 0x7c, 0xc4, 0x96, 0x61, 0xf2, 0x87, 0xf2, 0xf7, 0x0d, 0x07, 0x9a, - 0xc3, 0x01, 0x3e, 0x12, 0x7c, 0xe4, 0x33, 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94, 0x40, 0x8d, 0xb1, 0x10, 0xed, 0x42, 0xa9, 0x8a, 0x46, 0x53, 0x9a, 0x65, - 0x2e, 0x31, 0xef, 0x30, 0x57, 0x99, 0x85, 0x24, 0x73, 0xaa, 0x99, 0x9a, 0xaf, 0x99, 0x7e, 0x33, - 0xd1, 0xf7, 0x4c, 0x9f, 0x98, 0xe8, 0x01, 0x13, 0x98, 0x78, 0x4f, 0x3c, 0x46, 0x6b, 0xd6, 0x30, - 0x13, 0xf4, 0xc5, 0xcb, 0xe8, 0x6f, 0x00, 0xde, 0x87, 0x4f, 0x81, 0xbe, 0x0e, 0x07, 0x81, 0xae, - 0x05, 0x98, 0x01, 0x0b, 0x71, 0x8c, 0xf8, 0x53, 0x4b, 0x35, 0xc6, 0x2c, 0xb8, 0xce, 0xff, 0xe1, - 0xc6, 0x3f, 0x09, 0xdd, 0x89, 0x7a, 0x48, 0x5f, 0x22, 0x30, 0x93, 0x2c, 0xe2, 0xae, 0x08, 0x6f, - 0x91, 0xa8, 0x6f, 0xb5, 0x77, 0xb4, 0xf4, 0x43, 0xed, 0x65, 0x2d, 0x3d, 0xa2, 0x85, 0x45, 0xda, - 0x1d, 0x5a, 0x3a, 0x51, 0x3b, 0x4b, 0x4b, 0x47, 0x69, 0x21, 0x1b, 0x75, 0x71, 0x82, 0x66, 0xbb, - 0xe6, 0x90, 0x86, 0x25, 0x68, 0xba, 0x68, 0x32, 0x30, 0x58, 0x15, 0x5a, 0x45, 0x77, 0x8a, 0x5e, - 0x1d, 0xbd, 0x35, 0x5a, 0x10, 0x04, 0x9b, 0x50, 0x24, 0xbc, 0x23, 0x7c, 0x2c, 0x88, 0xd1, 0x51, - 0x82, 0x10, 0x15, 0xcd, 0x2c, 0xad, 0x11, 0x4b, 0x9a, 0x90, 0xb5, 0xea, 0x38, 0x74, 0x92, 0x56, - 0x8b, 0x10, 0xdd, 0x3f, 0x6a, 0x54, 0x14, 0x8d, 0x8a, 0x36, 0x13, 0xa2, 0xd2, 0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x77, 0x7e, 0x0f, 0xa3, 0xd5, 0x04, 0x74, 0x08, 0xca, 0x3d, 0x70, 0x42, 0x12, 0x06, - 0x00, 0x6a, 0x14, 0x4d, 0x41, 0x83, 0xbc, 0xde, 0xcb, 0x51, 0x55, 0x94, 0x4a, 0x62, 0x92, 0x40, - 0x45, 0x9d, 0x5a, 0x50, 0x69, 0xb4, 0x4c, 0x42, 0xf1, 0x0e, 0xab, 0x6c, 0x74, 0x72, 0x5a, 0x34, - 0x9f, 0xc3, 0xf3, 0x07, 0xc2, 0xf3, 0x46, 0xf9, 0xc9, 0x68, 0xb4, 0xcd, 0x88, 0xa9, 0x7c, 0xe1, - 0xad, 0x63, 0x87, 0x85, 0xea, 0x93, 0xea, 0x93, 0xa6, 0xff, 0x3a, 0xa2, 0x5f, 0x41, 0xb9, 0xe5, - 0xe1, 0x2c, 0x22, 0xa9, 0xb5, 0x17, 0xe5, 0x57, 0xe4, 0x17, 0x8f, 0x61, 0xf8, 0x9a, 0xf7, 0x3e, - 0xf4, 0x87, 0x81, 0x27, 0xe4, 0x3c, 0x3a, 0xbb, 0x61, 0x01, 0xad, 0xa7, 0xd5, 0x0d, 0x17, 0xa8, - 0xbf, 0x61, 0x40, 0x44, 0x17, 0x77, 0x2a, 0x91, 0xd8, 0xc1, 0xc3, 0x44, 0x8d, 0x94, 0xb7, 0x8a, - 0x32, 0x65, 0x71, 0x5c, 0x47, 0xa3, 0xd5, 0x50, 0x02, 0x33, 0x81, 0xe6, 0x01, 0x60, 0x7c, 0x98, - 0x04, 0xa9, 0x40, 0x63, 0x00, 0x12, 0xc9, 0x21, 0x94, 0x26, 0xec, 0xe2, 0x5b, 0xa8, 0x9b, 0x6a, - 0xde, 0xd5, 0x6c, 0x9e, 0xc4, 0xdd, 0xab, 0x6a, 0x54, 0xd1, 0x91, 0x7c, 0x3a, 0x32, 0x0c, 0x2e, - 0x79, 0x22, 0x99, 0xce, 0xa6, 0x90, 0xc3, 0xe7, 0x18, 0x88, 0x90, 0x77, 0x5e, 0x84, 0x2d, 0x22, - 0xac, 0x12, 0xd1, 0x48, 0x89, 0x68, 0xa4, 0x30, 0xd2, 0x37, 0x89, 0x39, 0xa8, 0xa7, 0x92, 0xd4, - 0x89, 0xff, 0x3b, 0x15, 0x54, 0x50, 0x8b, 0x0a, 0x14, 0x91, 0xb1, 0xf0, 0x4c, 0x73, 0xc0, 0xff, - 0x80, 0xc5, 0xfa, 0x31, 0xf5, 0x6d, 0x9e, 0x0e, 0x49, 0xf6, 0x99, 0xde, 0xe3, 0xc7, 0x30, 0x86, - 0x8c, 0x88, 0x83, 0x8f, 0x77, 0x14, 0xcd, 0x3d, 0x42, 0x88, 0x22, 0x98, 0xf3, 0xa1, 0xec, 0x44, - 0x3d, 0x3d, 0x43, 0x2f, 0xd2, 0x2f, 0xeb, 0xe7, 0x37, 0xbc, 0x4f, 0xfd, 0x6c, 0x21, 0x79, 0xc0, - 0x66, 0x6a, 0x48, 0x7a, 0xb0, 0x75, 0x82, 0x1a, 0x54, 0xea, 0x68, 0x35, 0x45, 0x63, 0xa3, 0x66, - 0x31, 0x68, 0x16, 0x54, 0x2a, 0x25, 0xf0, 0xc4, 0xa1, 0x11, 0x04, 0x0c, 0xde, 0x0b, 0x44, 0x04, - 0xb3, 0xe1, 0x00, 0x30, 0x1c, 0x05, 0x70, 0xe7, 0xa9, 0x48, 0xae, 0x3f, 0x10, 0x96, 0x45, 0x3e, - 0xcd, 0xa4, 0x24, 0xc1, 0x3d, 0x42, 0x51, 0x3d, 0x65, 0xce, 0xfa, 0x7a, 0x76, 0xa9, 0xfe, 0x1a, - 0x6b, 0xb7, 0x52, 0x28, 0xdb, 0xb6, 0xf2, 0xde, 0x3c, 0x3e, 0x07, 0xb9, 0x51, 0x3e, 0xca, 0x76, - 0x2b, 0x56, 0x3a, 0x10, 0x74, 0x0b, 0x4a, 0xfd, 0x1a, 0xe9, 0xc7, 0x32, 0x0c, 0x8a, 0x4e, 0xc0, - 0x39, 0xb8, 0x0a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c8, 0x6f, 0xd3, 0x78, 0xb6, 0xb1, 0xbe, - 0x88, 0x5e, 0x6d, 0x40, 0xf1, 0x84, 0xc6, 0x3a, 0xf9, 0xa8, 0xf0, 0x79, 0x23, 0x5f, 0xfd, 0x63, - 0xa9, 0xe4, 0xf3, 0xaa, 0x50, 0x4d, 0x89, 0x1f, 0x49, 0x33, 0x73, 0x3f, 0xcb, 0x87, 0x42, 0xf8, - 0xfc, 0x9e, 0x5d, 0xf8, 0x5e, 0x3e, 0xba, 0x94, 0xf7, 0x72, 0x8b, 0x70, 0x99, 0xf9, 0x24, 0x0f, - 0xf6, 0xd2, 0x15, 0x34, 0x89, 0x0b, 0x85, 0xe7, 0x39, 0xf3, 0xc5, 0x17, 0x8d, 0x18, 0x8d, 0x52, - 0x50, 0x26, 0x92, 0x39, 0x9b, 0x1a, 0x94, 0x39, 0xf7, 0x84, 0xc4, 0xce, 0x01, 0x47, 0x34, 0xf3, - 0xcd, 0xda, 0xf6, 0xd8, 0xe7, 0x23, 0x72, 0x85, 0xcb, 0x2f, 0xbc, 0x6e, 0xdf, 0x3f, 0x9b, 0xe7, - 0x27, 0xd0, 0x0b, 0x52, 0x61, 0x34, 0x89, 0x46, 0xfd, 0xe8, 0x1d, 0x4c, 0xd0, 0x81, 0x27, 0x73, - 0x79, 0xf4, 0xe6, 0x68, 0x1a, 0xed, 0x6d, 0x96, 0x65, 0x26, 0x6a, 0x13, 0x22, 0x7f, 0x75, 0xcc, - 0x10, 0x9d, 0xae, 0x85, 0xc9, 0x90, 0x63, 0x35, 0x41, 0x8b, 0x81, 0xa2, 0x83, 0x28, 0x0b, 0x29, - 0xc2, 0x33, 0x93, 0x7e, 0x25, 0x65, 0x11, 0x08, 0xa7, 0xf1, 0x79, 0xe0, 0x98, 0xe8, 0x95, 0x22, - 0xf3, 0x11, 0x29, 0x7c, 0xb9, 0x49, 0x24, 0x67, 0x69, 0x66, 0x3c, 0x67, 0x69, 0xe3, 0x08, 0x85, - 0x95, 0xc5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03, 0xef, 0x2e, 0xf7, - 0x41, 0x0a, 0x76, 0x70, 0xfc, 0xc1, 0xfa, 0x08, 0x76, 0xb0, 0x3f, 0x08, 0x1e, 0xd0, 0x45, 0xc6, - 0xa9, 0x27, 0x7d, 0xfc, 0x20, 0x78, 0x58, 0xbf, 0x60, 0xc9, 0x3c, 0x8f, 0xec, 0x93, 0xba, 0x20, - 0x13, 0x9a, 0xc0, 0x43, 0x51, 0x52, 0x18, 0x3d, 0x84, 0xb8, 0x95, 0x29, 0x47, 0xfa, 0xfc, 0x11, - 0xfa, 0xba, 0x07, 0xe3, 0x41, 0x6d, 0x65, 0x62, 0xe6, 0x0a, 0xa1, 0x02, 0x61, 0x19, 0xf7, 0xe4, - 0x86, 0x1a, 0x3e, 0xab, 0x66, 0xe0, 0x94, 0x39, 0x84, 0x38, 0x40, 0x2a, 0x4d, 0x8a, 0xfa, 0xd4, - 0x46, 0x46, 0x23, 0xec, 0xc9, 0xa3, 0xb9, 0xf8, 0x06, 0x52, 0x94, 0xd4, 0x68, 0xca, 0x1f, 0x1e, - 0xdd, 0xfa, 0x80, 0x27, 0x9f, 0xa5, 0x8e, 0x5b, 0x55, 0xa9, 0xd7, 0x87, 0xdd, 0x39, 0xa7, 0x2e, - 0xec, 0xc9, 0x59, 0xe5, 0xea, 0xdf, 0xff, 0x06, 0x97, 0x92, 0xe6, 0xdd, 0xf7, 0xe8, 0x0d, 0x1b, - 0xef, 0xbb, 0x72, 0x00, 0x35, 0x9f, 0x4f, 0x52, 0x64, 0xa4, 0x63, 0x30, 0x6e, 0x05, 0x87, 0xf7, - 0x16, 0x9d, 0x2a, 0xd3, 0xaf, 0x06, 0xc5, 0x0c, 0xa9, 0x10, 0xe0, 0x18, 0x31, 0xe0, 0x56, 0x29, - 0x60, 0x8b, 0xcf, 0xaa, 0x84, 0xe7, 0x90, 0x22, 0x8b, 0x0e, 0x55, 0x09, 0x0f, 0x08, 0x2b, 0x5f, - 0x96, 0xe4, 0xed, 0x38, 0x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, 0x92, 0x43, 0x58, 0x18, - 0xd8, 0x28, 0x8b, 0xe1, 0x41, 0x41, 0x80, 0x8a, 0xad, 0xbe, 0x8f, 0x24, 0x22, 0xf3, 0x8d, 0x66, - 0x0e, 0x23, 0xac, 0xe1, 0xf5, 0xa5, 0x08, 0x97, 0x59, 0xfd, 0x73, 0xcf, 0xc8, 0x6b, 0xe5, 0x5f, - 0x41, 0xf7, 0xf0, 0x44, 0xa8, 0x94, 0xb3, 0x4f, 0xe6, 0xaf, 0x5d, 0xec, 0x86, 0x5c, 0x3a, 0x67, - 0x74, 0x47, 0x70, 0xc9, 0x9f, 0x97, 0x37, 0xcc, 0x3f, 0xcd, 0xf5, 0x18, 0xa9, 0x6b, 0x27, 0x64, - 0xa3, 0x8f, 0xec, 0x10, 0x6c, 0x06, 0x4d, 0x30, 0xd0, 0x8a, 0x76, 0x57, 0x59, 0xd7, 0x69, 0x54, - 0x19, 0x41, 0x97, 0x23, 0xdc, 0xc7, 0xed, 0x81, 0xfb, 0xf0, 0x2f, 0x8c, 0xd7, 0x23, 0x29, 0xad, - 0xc8, 0x94, 0x0c, 0x7b, 0x39, 0x4e, 0x3b, 0xf1, 0x6b, 0x79, 0x56, 0xe5, 0x8d, 0x57, 0x57, 0x57, - 0x22, 0xcc, 0x5b, 0x49, 0x3f, 0x6a, 0xe8, 0x21, 0xd7, 0x1f, 0xfe, 0x98, 0x76, 0xbb, 0xc7, 0x63, - 0x2b, 0x32, 0x04, 0x25, 0x62, 0x16, 0xb6, 0xa6, 0x23, 0xa5, 0xc1, 0xae, 0x18, 0x30, 0x24, 0x11, - 0x48, 0xd1, 0x4d, 0xd0, 0x5d, 0xd3, 0xfd, 0xa6, 0x13, 0x24, 0x9d, 0x03, 0x61, 0x5d, 0x57, 0x52, - 0x42, 0xbe, 0x25, 0x77, 0x88, 0x10, 0x4e, 0x59, 0x89, 0x22, 0x68, 0xd4, 0x7c, 0x56, 0xc8, 0xa4, - 0x75, 0x6b, 0x3b, 0x68, 0x99, 0x56, 0x1b, 0xa5, 0xe4, 0xbc, 0xec, 0x58, 0x46, 0xfd, 0x90, 0x86, - 0xc1, 0x4a, 0x86, 0x38, 0x02, 0x9d, 0x85, 0x06, 0x8c, 0x0a, 0x8d, 0x81, 0xd4, 0x7c, 0x3e, 0xa2, - 0x3e, 0x25, 0x48, 0xf4, 0x45, 0x26, 0xb4, 0x23, 0x09, 0x12, 0x8f, 0x92, 0x16, 0x09, 0xf0, 0xbc, - 0x08, 0xc0, 0x4f, 0x72, 0xe1, 0xd1, 0xba, 0xe1, 0x46, 0x49, 0x35, 0xfa, 0xd6, 0x31, 0xb9, 0x50, - 0xc8, 0x6e, 0x98, 0x7e, 0x6d, 0x74, 0x5b, 0x70, 0xd2, 0xa5, 0x0a, 0xa5, 0x8d, 0xf5, 0x48, 0xe9, - 0x05, 0xa4, 0xd4, 0x09, 0xbe, 0xc3, 0xc4, 0xd9, 0x58, 0x57, 0x89, 0xb1, 0xda, 0x76, 0x27, 0x38, - 0x95, 0x65, 0x80, 0x51, 0x96, 0x2c, 0x8d, 0xc3, 0xe9, 0x48, 0x72, 0xb0, 0x24, 0x3b, 0x24, 0x9a, - 0x1f, 0x31, 0x53, 0xc9, 0xec, 0x30, 0x53, 0x25, 0x07, 0xd5, 0x3b, 0x2a, 0x26, 0x2b, 0xd1, 0x94, - 0x82, 0x8a, 0x66, 0xc2, 0xb3, 0xd6, 0xc6, 0xae, 0x46, 0xda, 0xda, 0x90, 0x6b, 0xa0, 0x1a, 0x83, - 0xd3, 0x40, 0x5b, 0x47, 0x41, 0x82, 0x16, 0x24, 0x8d, 0x43, 0x93, 0xa0, 0x61, 0x92, 0x09, 0xeb, - 0xdc, 0x21, 0x01, 0x5f, 0x71, 0xf6, 0x92, 0xc4, 0x5a, 0x4b, 0x59, 0x52, 0xae, 0x54, 0x22, 0x09, - 0x22, 0xaf, 0x46, 0xcb, 0xdb, 0x13, 0x21, 0x01, 0xe5, 0x82, 0x5f, 0xb6, 0xc1,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b, 0x27, 0xe4, 0xcc, 0xa6, 0x2a, - 0x03, 0x47, 0xcf, 0x9f, 0x64, 0x9d, 0x7b, 0x1e, 0x1d, 0xde, 0x11, 0x02, 0x23, 0x04, 0x28, 0x04, - 0x93, 0x42, 0x39, 0xfc, 0x43, 0x59, 0xe7, 0x3e, 0xe0, 0x73, 0x70, 0xbe, 0x81, 0x38, 0xc7, 0x63, - 0x8f, 0x31, 0xf2, 0x4e, 0xf2, 0x0c, 0x8e, 0x23, 0xd6, 0x33, 0xe6, 0x78, 0xed, 0x73, 0x8e, 0xb2, - 0x73, 0xf6, 0xe4, 0x15, 0x39, 0xfb, 0xd3, 0x2d, 0x2b, 0x0a, 0x96, 0xc1, 0xfe, 0x57, 0xd6, 0xcd, - 0x00, 0xd5, 0x63, 0xc9, 0x59, 0x2e, 0x55, 0x16, 0xb3, 0xa0, 0x0f, 0x1c, 0x3d, 0xff, 0x3a, 0x64, - 0xc9, 0x0d, 0x74, 0xf8, 0x54, 0xd5, 0xf5, 0x53, 0x63, 0x19, 0xc5, 0xed, 0x83, 0xfc, 0x55, 0x97, - 0x71, 0x12, 0xc8, 0x7c, 0xde, 0x16, 0x64, 0xaa, 0x25, 0x50, 0x1d, 0x01, 0x83, 0x9b, 0xae, 0x91, - 0x8e, 0xff, 0xb2, 0xcb, 0xf0, 0x5b, 0xe3, 0x33, 0x52, 0x16, 0xc3, 0xe8, 0x7a, 0xa9, 0x04, 0xe5, - 0x50, 0x1d, 0x61, 0xee, 0xb3, 0xc8, 0x49, 0x39, 0xe1, 0xd9, 0xba, 0x3f, 0x21, 0x15, 0xea, 0xbe, - 0x04, 0x14, 0x27, 0x0c, 0xb7, 0x93, 0x48, 0x0e, 0xd1, 0xc5, 0xfe, 0x06, 0xbf, 0x35, 0x7a, 0x0d, - 0x6c, 0x94, 0xe5, 0x25, 0x50, 0xf0, 0x40, 0xf0, 0x48, 0x90, 0x04, 0x51, 0x34, 0x19, 0x71, 0x4b, - 0x4e, 0x32, 0x3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2, 0xc0, 0xd1, 0xe8, 0xda, 0xfe, 0x90, 0xcd, 0x51, 0xac, 0x22, 0x98, 0x0d, - 0x59, 0xc2, 0xb5, 0xb5, 0x16, 0x0d, 0x89, 0xfa, 0xcb, 0xe1, 0xec, 0x48, 0xee, 0x4f, 0xed, 0x0b, - 0x3e, 0x63, 0x98, 0x05, 0xb7, 0x96, 0xc2, 0x1d, 0x76, 0x46, 0xff, 0x19, 0xf3, 0x7a, 0x5e, 0x7c, - 0xc7, 0x2b, 0x4e, 0x62, 0x13, 0x46, 0x5e, 0x4d, 0xcc, 0x1e, 0xcd, 0x65, 0x71, 0x79, 0x33, 0x1d, - 0x7d, 0xbe, 0x3d, 0xda, 0x0d, 0x2b, 0x2c, 0xf9, 0x04, 0x97, 0x81, 0x3b, 0xec, 0x95, 0x8d, 0x2c, - 0x19, 0x02, 0x71, 0xbf, 0x56, 0x37, 0xef, 0x4f, 0x70, 0x49, 0x7c, 0xb8, 0x5f, 0xd0, 0x9a, 0x14, - 0xd9, 0x19, 0x09, 0x11, 0xbd, 0xc9, 0x8b, 0x0e, 0x50, 0x59, 0x14, 0x1b, 0xee, 0x96, 0x50, 0x50, - 0x9d, 0xe5, 0x05, 0x6f, 0xab, 0x4f, 0x26, 0xbe, 0x59, 0x21, 0x08, 0xf9, 0x42, 0x3e, 0x30, 0x9c, - 0x5e, 0x11, 0x48, 0x56, 0x4b, 0x0b, 0x1e, 0x3a, 0x48, 0xc9, 0x88, 0x91, 0x89, 0x7c, 0xa0, 0x22, - 0x60, 0x15, 0x0f, 0x80, 0xf0, 0x51, 0x02, 0x92, 0x21, 0x22, 0xbc, 0xa2, 0x58, 0x49, 0x35, 0x13, - 0x5b, 0xdb, 0x59, 0x35, 0xb1, 0xf6, 0x76, 0x56, 0x57, 0xac, 0x9d, 0xac, 0x4c, 0x6d, 0x13, 0x5e, - 0xfa, 0x17, 0xfd, 0xb3, 0xf6, 0xf8, 0xbb, 0xac, 0xc2, 0x98, 0x30, 0x6c,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xec, 0x58, 0xdb, 0xdc, 0xfc, 0xe2, 0x4e, 0x73, - 0xcd, 0x32, 0x56, 0x4e, 0x22, 0xf4, 0xab, 0x61, 0x10, 0x15, 0xdc, 0xc7, 0x4d, 0x73, 0x24, 0x8b, - 0x59, 0xfb, 0x03, 0xa5, 0x17, 0x6e, 0x9e, 0x11, 0xec, 0xa1, 0x28, 0x3d, 0x88, 0xde, 0xd5, 0x2a, - 0xec, 0x6f, 0x08, 0xc8, 0x01, 0x23, 0xda, 0x50, 0xe8, 0x2c, 0xa4, 0x74, 0x11, 0x51, 0x14, 0x0b, - 0x40, 0x20, 0x98, 0x5f, 0x58, 0x98, 0x1f, 0x0c, 0x08, 0xa5, 0x65, 0x91, 0x64, 0xa8, 0x24, 0x9a, - 0xdb, 0xe8, 0xcd, 0xd7, 0x03, 0x01, 0xb7, 0x78, 0xa1, 0xc2, 0xdb, 0x16, 0x1c, 0xaa, 0xaa, 0xb3, - 0xc3, 0x58, 0xed, 0xe9, 0x54, 0xda, 0xf1, 0x94, 0x55, 0x76, 0x32, 0x58, 0x26, 0x75, 0xb8, 0x28, - 0xfd, 0x82, 0x79, 0x00, 0xad, 0xf0, 0x09, 0x4f, 0xb9, 0x9d, 0xc9, 0x0b, 0xe5, 0x2c, 0x99, 0x18, - 0x7f, 0xca, 0xbe, 0xa7, 0xd6, 0x76, 0x77, 0x43, 0xc5, 0x25, 0x33, 0x36, 0xbe, 0x0f, 0x77, 0x6d, - 0x7e, 0xe0, 0x56, 0x3b, 0xad, 0x98, 0x7f, 0x33, 0xcf, 0x3c, 0xde, 0x6d, 0xd6, 0xac, 0x2b, 0x7f, - 0xdf, 0xca, 0xed, 0xed, 0x7e, 0x81, 0xe1, 0x05, 0x93, 0x62, 0x9e, 0xe7, 0xd4, 0x6c, 0x98, 0x45, - 0x9f, 0x40, 0xcb, 0xc2, 0x66, 0xe4, 0x77, 0xcb, 0x8e, 0x6c, 0xda, 0x67, 0xfa, 0xc9, 0xab, 0x8c, - 0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d3, 0xc5, 0xd8, 0xbd, 0xc1, 0x7c, 0x28, 0x17, 0x8d, 0x8d, 0x0f, 0x71, 0x7b, 0x9b, 0x0c, - 0x3f, 0xf8, 0x0d, 0xbf, 0x21, 0x69, 0x28, 0x3f, 0xd2, 0x24, 0x79, 0x5a, 0x66, 0x51, 0xac, 0x77, - 0xfb, 0xb4, 0x16, 0x27, 0x09, 0xb5, 0x38, 0x84, 0x68, 0x8b, 0xe0, 0xf3, 0xd9, 0x04, 0xf6, 0x60, - 0x56, 0x3d, 0xea, 0x83, 0xe9, 0x74, 0x36, 0x2b, 0x59, 0xbd, 0x48, 0xb6, 0xca, 0x77, 0x56, 0x85, - 0x32, 0x81, 0x51, 0xa5, 0x1e, 0xdb, 0x16, 0x22, 0xbc, 0x91, 0x7a, 0x71, 0x78, 0xec, 0x54, 0x33, - 0x8c, 0xd1, 0xa4, 0x04, 0x95, 0x1e, 0xaf, 0x87, 0x99, 0xe6, 0x43, 0x70, 0x77, 0x6a, 0xf7, 0x19, - 0x63, 0xcd, 0xd7, 0xa1, 0xba, 0x5e, 0x55, 0x59, 0x19, 0xcf, 0x90, 0x15, 0x26, 0xa5, 0x09, 0x97, - 0x14, 0x59, 0x55, 0x4f, 0x09, 0xaa, 0xa5, 0x73, 0x5d, 0x4b, 0xf1, 0x89, 0x79, 0x89, 0x86, 0xa0, - 0xab, 0xe3, 0x43, 0x54, 0x34, 0xc4, 0xd3, 0x60, 0xe4, 0xc5, 0xf3, 0x92, 0x79, 0x73, 0xf3, 0x16, - 0xe7, 0x75, 0xe6, 0xed, 0xce, 0xdb, 0x93, 0xe7, 0xc8, 0xcb, 0x13, 0x4b, 0xeb, 0x83, 0x19, 0x97, - 0x66, 0x45, 0x71, 0x03, 0x8f, 0xe8, 0x0d, 0x7b, 0xc3, 0x09, 0xd1, 0x93, 0x1c, 0x32, 0x24, 0x5a, - 0xae, 0x16, 0x24, 0x35, 0x87, 0xe1, 0x43, 0xd1, 0x64, 0x38, 0x80, 0x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x8e, - 0x25, 0x43, 0x29, 0xab, 0x82, 0x08, 0x60, 0xa8, 0x44, 0x8b, 0xd0, 0xdb, 0x54, 0x9a, 0x11, 0x90, - 0xc0, 0x10, 0x81, 0x97, 0xd1, 0xcc, 0xa3, 0x78, 0xa9, 0x10, 0x87, 0xdd, 0xad, 0x8e, 0xb9, 0x61, - 0xa8, 0x9c, 0x68, 0xa1, 0x81, 0x85, 0x05, 0xff, 0x05, 0x09, 0x8a, 0x4a, 0x80, 0xc9, 0x8e, 0xac, - 0x37, 0x90, 0xb0, 0xe5, 0x35, 0xf3, 0xc3, 0xba, 0xfc, 0x61, 0x15, 0xe6, 0xbe, 0x97, 0xe1, 0xf3, - 0x9d, 0x64, 0xdd, 0x6b, 0x77, 0xfd, 0x71, 0x79, 0x4f, 0xab, 0xd8, 0x4d, 0xd7, 0x6f, 0x77, 0x96, - 0xa3, 0xeb, 0x1f, 0x9e, 0x39, 0xef, 0x31, 0xfc, 0xfd, 0x69, 0xfc, 0xbc, 0xdb, 0xec, 0xce, 0x73, - 0x84, 0xc7, 0xe0, 0x37, 0xc4, 0x87, 0x30, 0x8b, 0x14, 0x2e, 0x14, 0x86, 0x53, 0x69, 0x44, 0x14, - 0x44, 0x95, 0x4e, 0xdd, 0xc5, 0xf6, 0x0d, 0xa9, 0x72, 0xcb, 0x2c, 0xde, 0x10, 0xd8, 0xd9, 0xa2, - 0x7a, 0x49, 0x4b, 0x56, 0xcb, 0x50, 0x96, 0x2a, 0x5d, 0x79, 0x1d, 0xeb, 0xe6, 0x65, 0x57, 0xe8, - 0x61, 0x0d, 0x43, 0x03, 0x45, 0xec, 0x8b, 0xde, 0xd0, 0x6a, 0xde, 0x16, 0x78, 0x22, 0x3e, 0x9a, - 0x72, 0x90, 0x79, 0x3d, 0xbe, 0x74, 0x22, 0xf4, 0xc6, 0x8d, 0x19, 0x4f, 0x07, 0xa5, 0x3e, 0x12, - 0xa3, 0x6c, 0x59, 0x3d, 0x19, 0x65, 0x54, 0x1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73, 0xa2, 0xc5, 0xca, 0x6a, 0x96, 0x94, - 0x16, 0x59, 0x88, 0xd0, 0x4e, 0x56, 0xa7, 0x2a, 0x80, 0x39, 0x26, 0xfe, 0x73, 0xdc, 0xdc, 0x0b, - 0x39, 0x30, 0xe9, 0x89, 0x57, 0x8f, 0x73, 0x97, 0x24, 0x43, 0x4e, 0x8a, 0x01, 0xcb, 0x16, 0x0c, - 0x8c, 0x55, 0x48, 0xd3, 0x30, 0xf6, 0x9e, 0xd1, 0x30, 0x3a, 0x33, 0x89, 0xee, 0xcd, 0x2b, 0x3c, - 0x87, 0xd5, 0x87, 0x96, 0xc4, 0x23, 0x8a, 0xe1, 0x0d, 0x27, 0x9c, 0x54, 0xac, 0x2b, 0x74, 0xd2, - 0x9f, 0x54, 0xf6, 0x60, 0x3f, 0x23, 0x2a, 0x6b, 0x66, 0x70, 0x24, 0xee, 0x52, 0xc2, 0x09, 0xdf, - 0x54, 0xd9, 0x68, 0x52, 0xfd, 0x32, 0x73, 0x28, 0xef, 0x8e, 0x97, 0xaa, 0xe1, 0x04, 0x56, 0x41, - 0x56, 0x65, 0x55, 0xd4, 0xe0, 0x38, 0x42, 0xee, 0x26, 0x2d, 0x20, 0x1c, 0x17, 0x8d, 0x16, 0x95, - 0xf8, 0x34, 0xa9, 0x85, 0x20, 0x51, 0x64, 0xb1, 0x0e, 0xb1, 0x4a, 0x9e, 0xf6, 0x59, 0xc7, 0xd3, - 0xac, 0x3e, 0x64, 0x46, 0x49, 0x2b, 0x4c, 0xb5, 0xb9, 0x82, 0x67, 0xc6, 0x57, 0x34, 0xdb, 0xc1, - 0x5c, 0x60, 0xf9, 0x40, 0x63, 0x23, 0xbc, 0x3e, 0xba, 0xbb, 0xf4, 0x25, 0xc6, 0xb2, 0xf0, 0xca, - 0xef, 0x7b, 0x36, 0x74, 0x5e, 0xb7, 0xe4, 0x49, 0x0d, 0x27, 0x5f, 0x32, 0x97, 0x7e, 0xe7, 0xf9, - 0xd5, 0x55, 0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61, 0xae, 0xb0, 0x58, 0x10, 0x84, 0x21, 0x8e, 0x7d, 0x8e, 0x2f, - 0x1c, 0xff, 0x71, 0x08, 0x0e, 0xc5, 0x50, 0x94, 0x21, 0xb0, 0x0f, 0xbe, 0x80, 0xff, 0x80, 0x00, - 0x7b, 0x98, 0x53, 0x7f, 0x11, 0xbb, 0x03, 0x06, 0xa5, 0xe2, 0xad, 0x48, 0xa0, 0x3f, 0x65, 0xec, - 0x10, 0x89, 0x60, 0x87, 0x67, 0xb0, 0x56, 0xc6, 0x23, 0x19, 0x52, 0x35, 0x57, 0x71, 0x9c, 0xe3, - 0xad, 0x94, 0x2d, 0x03, 0x7a, 0x11, 0x47, 0x2b, 0x8e, 0x61, 0xc2, 0x93, 0x1f, 0xa4, 0x76, 0xec, - 0xd8, 0x81, 0x47, 0xbc, 0x95, 0x7a, 0x83, 0xe1, 0x0e, 0xe5, 0x32, 0x0c, 0x9b, 0xce, 0x61, 0x73, - 0x16, 0x7a, 0xbf, 0xe0, 0xa7, 0xa0, 0xa3, 0xb6, 0x78, 0x91, 0x8b, 0x49, 0x38, 0xbf, 0x73, 0xc1, - 0xcf, 0x5d, 0xbf, 0x74, 0x3d, 0xe2, 0x22, 0x4d, 0xae, 0x39, 0x2e, 0x3c, 0xcc, 0x35, 0xda, 0x75, - 0x81, 0x8b, 0x38, 0x5d, 0x51, 0x17, 0xe6, 0x6d, 0x69, 0x0d, 0x4a, 0x41, 0x84, 0x30, 0xfd, 0x46, - 0x57, 0xe0, 0x36, 0xe8, 0x7d, 0x62, 0x44, 0x24, 0xe8, 0x0a, 0x27, 0xdc, 0x6e, 0x07, 0x34, 0x21, - 0x8f, 0x83, 0x30, 0xb9, 0xae, 0x55, 0x91, 0x7c, 0x56, 0x11, 0x0d, 0xde, 0x18, 0xc3, 0xe2, 0x32, - 0x3c, 0x2c, 0xb6, 0xc2, 0x0e, 0x19, 0x61, 0xb1, 0x12, 0xcc, 0x60, 0xcd, 0x19, 0x3a, 0xa5,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x8a, 0xee, 0x71, 0x4a, 0x49, 0x02, 0xf4, 0x8e, 0x05, 0x06, 0x6a, - 0x87, 0xcd, 0x59, 0xea, 0x61, 0x33, 0xbb, 0x59, 0x15, 0x16, 0x32, 0xda, 0xaa, 0x21, 0x4a, 0x6b, - 0x86, 0x44, 0x98, 0xd5, 0x99, 0x8a, 0x74, 0x4e, 0x01, 0x49, 0xc0, 0xc9, 0x07, 0xcc, 0xa7, 0x8f, - 0x0d, 0x7a, 0xd5, 0x5c, 0x4a, 0x31, 0x73, 0x29, 0x0e, 0xc1, 0x32, 0x5c, 0xd1, 0x93, 0x24, 0x83, - 0xcc, 0x02, 0xf3, 0xb9, 0x5e, 0xbb, 0xd6, 0x25, 0xc7, 0xc3, 0x44, 0x9f, 0x56, 0xc8, 0xfc, 0x40, - 0xe0, 0x88, 0xff, 0x72, 0xb6, 0xbe, 0x40, 0x5f, 0xa1, 0x93, 0xf3, 0xf5, 0xa9, 0x3a, 0x1e, 0xa2, - 0xd7, 0xea, 0x38, 0x47, 0x07, 0x45, 0x87, 0x19, 0xd2, 0x7c, 0x69, 0xb9, 0x44, 0xc6, 0x48, 0x93, - 0x25, 0x5c, 0x26, 0x8d, 0x90, 0x70, 0x80, 0xd1, 0x06, 0xd8, 0x44, 0xbf, 0x93, 0x1f, 0x55, 0x98, - 0xa2, 0xce, 0x50, 0x71, 0x48, 0xad, 0x51, 0x1b, 0x54, 0x22, 0x51, 0x99, 0xbc, 0xe1, 0xb7, 0x54, - 0x36, 0x43, 0x61, 0x27, 0x28, 0xcc, 0xd5, 0xea, 0x96, 0x67, 0x09, 0x37, 0x0b, 0x77, 0x08, 0x84, - 0x47, 0x45, 0x0b, 0xa2, 0x21, 0x8a, 0x77, 0x50, 0x5d, 0xda, 0x70, 0x1a, 0x09, 0x87, 0x21, 0xc7, - 0xe5, 0x24, 0xc7, 0x97, 0xdd, 0xf2, 0x1e, 0x59, 0x96, 0x0d, 0x59, 0xf6, 0xcd, 0xf4, 0xdc, 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a9, 0x2b, 0x7a, 0xc8, - 0x83, 0xc7, 0xbb, 0x71, 0x3b, 0xe8, 0x3d, 0x73, 0x84, 0x71, 0x99, 0x6a, 0x50, 0x21, 0xaa, 0x61, - 0xfe, 0x99, 0xe7, 0x74, 0x8e, 0x28, 0xe5, 0xfd, 0x1b, 0x78, 0x2e, 0x73, 0xa7, 0x07, 0x16, 0x7b, - 0x60, 0xae, 0x87, 0x92, 0x6f, 0x4d, 0x15, 0x4a, 0xfb, 0xfa, 0x37, 0xd8, 0x55, 0xed, 0x98, 0x6f, - 0x58, 0x45, 0x2b, 0xe3, 0x8d, 0x97, 0x08, 0x20, 0x18, 0xaa, 0x2b, 0xf1, 0x19, 0xfe, 0x01, 0xe3, - 0xf7, 0x30, 0xac, 0xc5, 0x9b, 0xf0, 0xab, 0x98, 0x2c, 0xc3, 0x30, 0x1f, 0xc3, 0x95, 0x18, 0xea, - 0xf1, 0x14, 0x4c, 0xcf, 0x17, 0x82, 0xb8, 0x0c, 0x63, 0x19, 0xc3, 0x25, 0x14, 0x00, 0x1b, 0x4f, - 0x71, 0x5e, 0x11, 0x99, 0xd7, 0x46, 0x20, 0x9a, 0x8a, 0x59, 0xfc, 0xd3, 0x11, 0x19, 0xcb, 0x8c, - 0xd7, 0xb8, 0x75, 0x7f, 0x42, 0x16, 0x55, 0x4c, 0x64, 0x92, 0x89, 0x05, 0xb1, 0x2a, 0x98, 0x31, - 0x3f, 0xfd, 0x5b, 0x55, 0x55, 0x2c, 0x7e, 0x9c, 0x95, 0xfb, 0xaa, 0xc8, 0xf2, 0x81, 0x53, 0x1a, - 0x98, 0x46, 0xbe, 0x98, 0x87, 0xdc, 0xf3, 0x71, 0xea, 0x9f, 0x78, 0xc4, 0x3f, 0x52, 0x1f, 0x75, - 0x75, 0xd1, 0x85, 0xff, 0x33, 0xf5, 0x0a, 0xc3, 0x32, 0xfa, 0xea, 0x2b, 0xfa, 0xf0, 0x82, 0xde, - 0xef, 0x04, 0x83, 0xc7, 0x22, 0xbe, 0x15, 0x77, 0x6a, 0x85, 0x69, 0x33, 0x32, 0xd7, 0x2e, 0xdb, - 0x28, 0x33, 0x79, 0x46, 0x84, 0x4d, 0x22, 0xdc, 0x2f, 0xc2, 0x64, 0xf1, 0x0a, 0x11, 0x57, 0x89, - 0xe7, 0x58, 0xfd, 0x2f, 0x07, 0x51, 0xbd, 0xb7, 0x50, 0xa3, 0x47, 0x2b, 0x44, 0x84, 0x21, 0xac, - 0xc1, 0xf8, 0x43, 0x04, 0x6e, 0x26, 0x77, 0x10, 0x5c, 0x4b, 0xc6, 0x92, 0xd9, 0x84, 0x90, 0xaf, - 0x5c, 0xc7, 0x5d, 0xf8, 0x4f, 0xae, 0xbf, 0xb9, 0xf0, 0x43, 0xae, 0xdf, 0xba, 0x9e, 0x75, 0x91, - 0x3b, 0xe9, 0xe5, 0x63, 0x31, 0x44, 0x11, 0xd7, 0x10, 0x57, 0xad, 0x8b, 0x38, 0xe8, 0xdb, 0xdd, - 0xee, 0x3d, 0x6e, 0xfc, 0x98, 0x1b, 0x0c, 0x77, 0xa1, 0x7b, 0xb8, 0x9b, 0x70, 0xe5, 0x35, 0x42, - 0xb5, 0x38, 0xa6, 0xbc, 0x36, 0xac, 0x62, 0xad, 0x04, 0x1d, 0x24, 0xe9, 0xd6, 0x9d, 0x13, 0x14, - 0x29, 0x88, 0x02, 0x59, 0xfa, 0x6b, 0xb3, 0x25, 0x2e, 0xf0, 0x9c, 0x18, 0xbe, 0xec, 0x18, 0xd7, - 0xc6, 0x9a, 0x2b, 0xd2, 0x57, 0xb0, 0xe2, 0x24, 0x2a, 0xad, 0xd1, 0x6d, 0x6e, 0x29, 0xdd, 0xda, - 0x75, 0x56, 0x7e, 0x20, 0xb7, 0xad, 0x7d, 0x10, 0xde, 0x44, 0x3a, 0x4d, 0x9f, 0x59, 0xa9, 0x2d, - 0x95, 0xe0, 0x03, 0xf8, 0x37, 0x7d, 0x18, 0xd5, 0xae, 0x84, 0x26, 0xba, 0x13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d, 0x9a, 0xfb, 0x64, 0x04, 0x7e, 0x30, 0x35, 0x31, - 0xd0, 0xec, 0xc1, 0xcb, 0x48, 0x85, 0x4f, 0x74, 0xcf, 0x3e, 0x0f, 0xf2, 0x64, 0x19, 0xad, 0x36, - 0x46, 0x59, 0xaf, 0x03, 0xaa, 0xc3, 0x24, 0x8c, 0x23, 0xe5, 0x73, 0xd8, 0xa4, 0x29, 0xa7, 0x45, - 0xd3, 0xac, 0x35, 0x6a, 0x81, 0x53, 0xeb, 0xf4, 0x3a, 0x19, 0xfc, 0xa8, 0x55, 0xe9, 0x01, 0x91, - 0x86, 0xaa, 0x33, 0x68, 0xf9, 0x04, 0xbf, 0x17, 0x2f, 0xb4, 0x2f, 0x68, 0xfe, 0x99, 0x25, 0x63, - 0x18, 0xd4, 0x51, 0xd5, 0x26, 0x83, 0x09, 0xfa, 0x63, 0xc0, 0xf4, 0x22, 0x6c, 0x28, 0xba, 0xbb, - 0x6c, 0x50, 0xa7, 0x88, 0x4e, 0xdf, 0x03, 0xd7, 0x08, 0x77, 0x4b, 0xe5, 0x73, 0xff, 0x04, 0x37, - 0x09, 0x17, 0x5a, 0x84, 0x02, 0x82, 0x13, 0x3a, 0xe4, 0x7b, 0x28, 0xf5, 0xc2, 0xc2, 0xeb, 0xbf, - 0x16, 0x8e, 0xdc, 0xb8, 0x21, 0x5a, 0x02, 0x68, 0x8c, 0xcf, 0x79, 0x11, 0x53, 0x66, 0xb6, 0x18, - 0xe3, 0x43, 0xe0, 0xe1, 0xcb, 0x78, 0x19, 0xd3, 0xdf, 0x53, 0xfe, 0x4c, 0xdf, 0xce, 0x6a, 0x4b, - 0x0c, 0x14, 0xb7, 0x96, 0xc2, 0xe8, 0x30, 0x22, 0x5a, 0xc0, 0x5f, 0x22, 0xd1, 0x03, 0x52, 0x3e, - 0xdb, 0xca, 0x49, 0x93, 0x00, 0xef, 0x2c, 0x69, 0x4b, 0x98, 0x7b, 0x91, 0x43, 0x5d, 0x1c, 0x5c,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xb5, 0x3d, 0xe1, - 0x26, 0xc6, 0x9d, 0xa6, 0x3f, 0x9a, 0x7b, 0x1f, 0x76, 0x9a, 0x25, 0x83, 0x9d, 0x86, 0xca, 0xe4, - 0x37, 0x73, 0x19, 0xe5, 0xce, 0x7e, 0xd8, 0x69, 0x34, 0x43, 0x63, 0x43, 0x5a, 0x8f, 0x18, 0x92, - 0xc8, 0x27, 0xda, 0xad, 0x56, 0x72, 0x98, 0xda, 0x6b, 0x38, 0x2c, 0x89, 0xc0, 0xb4, 0x5c, 0xaf, - 0xc2, 0x72, 0xbd, 0xec, 0x30, 0x66, 0x73, 0x12, 0x2c, 0x33, 0xa5, 0x64, 0x26, 0x51, 0x3e, 0xc1, - 0x47, 0x49, 0x34, 0xdc, 0x2f, 0x5d, 0x96, 0x9c, 0x71, 0xd9, 0xa2, 0x84, 0x48, 0x85, 0x12, 0xaa, - 0x4c, 0x08, 0x7b, 0x8f, 0x09, 0xf7, 0xf5, 0x50, 0x89, 0x49, 0x94, 0x14, 0xd3, 0x28, 0x12, 0x01, - 0xfe, 0x23, 0x2c, 0xcd, 0x57, 0x25, 0x34, 0xe0, 0x1a, 0x43, 0x70, 0x24, 0x18, 0x19, 0x37, 0x81, - 0x84, 0x3e, 0xa5, 0x41, 0x24, 0xe8, 0xb1, 0xaa, 0xc2, 0x4a, 0x29, 0xcf, 0xb6, 0x4b, 0x20, 0x94, - 0xa4, 0x93, 0x74, 0xc3, 0x5a, 0x11, 0x4a, 0xe2, 0xb2, 0x18, 0x06, 0x0f, 0xd3, 0x8d, 0x31, 0x4b, - 0x0f, 0xf7, 0xde, 0x7f, 0x82, 0xeb, 0x81, 0x05, 0x42, 0x01, 0x05, 0x94, 0xa0, 0x56, 0x41, 0xe6, - 0x2a, 0xd7, 0x85, 0xdb, 0x28, 0x48, 0x38, 0xb8, 0xfa, 0x85, 0xd4, 0x3c, 0xce, 0x00, 0x19, 0xaa, - 0x27, 0xc6, 0x41, 0x84, 0xc5, 0x1e, 0x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x4b, 0xd9, 0x09, 0x1d, 0x62, 0x3f, 0xc7, 0x8d, 0xfd, 0xb3, 0x9b, 0x5e, 0x26, 0x48, 0x7e, 0x10, - 0x86, 0x0c, 0x4c, 0x0c, 0x32, 0x15, 0xc2, 0x6b, 0xcb, 0xbe, 0xfc, 0x72, 0x19, 0x2c, 0x45, 0x6a, - 0x61, 0x46, 0x13, 0x9c, 0x04, 0x27, 0x35, 0x09, 0x53, 0xb1, 0x2c, 0x72, 0xe3, 0xc6, 0x47, 0xcc, - 0xeb, 0x78, 0x24, 0x21, 0xbc, 0xd2, 0x3e, 0xa5, 0xd2, 0x0b, 0x7b, 0xc3, 0x8a, 0xc7, 0xe4, 0x4d, - 0x98, 0x18, 0xf4, 0x5b, 0x33, 0x3c, 0x69, 0x86, 0x87, 0xcd, 0x30, 0x61, 0x86, 0x45, 0x66, 0xe8, - 0x35, 0x43, 0x73, 0x06, 0x4e, 0xb5, 0x14, 0x73, 0x89, 0xa7, 0xf0, 0xda, 0xf4, 0x51, 0x24, 0x26, - 0x6f, 0x42, 0xc3, 0x00, 0xc0, 0x41, 0x80, 0xf7, 0x20, 0x62, 0x19, 0x1e, 0x5a, 0x31, 0x0f, 0x12, - 0x2d, 0x2c, 0x78, 0x45, 0xd0, 0x6e, 0x04, 0x20, 0xeb, 0xeb, 0x0d, 0xed, 0x45, 0xef, 0x93, 0x30, - 0x17, 0x82, 0x7b, 0x06, 0xe1, 0x20, 0xc6, 0xc5, 0x6c, 0xe1, 0x5e, 0x01, 0x7a, 0x2c, 0x4d, 0xe4, - 0x80, 0x4b, 0x61, 0x7d, 0x35, 0xde, 0x77, 0x7a, 0x85, 0xe4, 0x92, 0x56, 0xea, 0x95, 0x16, 0x49, - 0xd7, 0xa5, 0x77, 0xf8, 0x15, 0xa9, 0x54, 0xaa, 0x60, 0x3e, 0x51, 0x7f, 0x28, 0xfb, 0x83, 0x04, - 0xdc, 0x20, 0x4a, 0x48, 0x26, 0xe5, 0x3e, 0x0d, 0x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, 0xa8, 0xc4, 0x42, 0x62, 0x53, 0xed, 0x80, 0x54, - 0x4c, 0xbd, 0x92, 0x30, 0x19, 0x6d, 0x59, 0x36, 0x64, 0xb4, 0x64, 0x59, 0x90, 0xc3, 0x98, 0x6f, - 0x44, 0x0e, 0x7d, 0xbe, 0x1e, 0xd1, 0xbc, 0xec, 0x1c, 0xbd, 0x29, 0x79, 0xbb, 0xec, 0x2e, 0x19, - 0x6a, 0x95, 0xcd, 0x94, 0xa1, 0x98, 0xac, 0x5e, 0x86, 0x60, 0x11, 0xfe, 0x6c, 0x0d, 0xdc, 0x0c, - 0xd1, 0x78, 0x38, 0x07, 0xa2, 0x38, 0x4c, 0x42, 0x14, 0xca, 0x3a, 0x0e, 0x99, 0x5f, 0x1a, 0x14, - 0x50, 0x8d, 0x9f, 0x13, 0x56, 0xcd, 0x42, 0x4a, 0x94, 0x37, 0x0d, 0x17, 0x0d, 0x9c, 0x41, 0x63, - 0xd0, 0x48, 0xf2, 0xc8, 0x52, 0xc9, 0x73, 0xe3, 0x2f, 0xbb, 0xad, 0x03, 0x64, 0x0c, 0x4f, 0xae, - 0x2a, 0x96, 0x38, 0x7a, 0xb4, 0xbe, 0x1e, 0x93, 0x46, 0xeb, 0xd1, 0x22, 0xad, 0x49, 0x6b, 0x52, - 0x0f, 0x43, 0x13, 0xf1, 0x11, 0x9c, 0x90, 0x29, 0x93, 0x48, 0xca, 0xdc, 0x9d, 0x03, 0x5b, 0x73, - 0x66, 0xe6, 0x2c, 0xcf, 0x61, 0x72, 0xa6, 0x84, 0x08, 0xce, 0x11, 0x09, 0xfa, 0x3a, 0xd9, 0x43, - 0x80, 0x8b, 0xa0, 0x84, 0x16, 0x9e, 0xca, 0x6f, 0x8b, 0x5e, 0x6a, 0x6b, 0xab, 0x26, 0xcf, 0x69, - 0x5b, 0x1d, 0x31, 0xc0, 0x10, 0x5e, 0xf1, 0xbb, 0xcb, 0x67, 0xf2, 0x33, 0x68, 0xb2, 0x84, 0x75, - 0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1b, 0xad, 0x44, 0xf7, 0x20, 0x66, - 0x96, 0x18, 0x5b, 0xb1, 0x0a, 0x76, 0x61, 0xbd, 0x8c, 0x97, 0xb1, 0x4a, 0x29, 0xe2, 0x79, 0x05, - 0xee, 0x25, 0x6e, 0xfe, 0x12, 0x0f, 0x2f, 0xf2, 0x30, 0xc1, 0xa7, 0x55, 0x05, 0x9e, 0x47, 0x3f, - 0xda, 0xb5, 0xe8, 0xcd, 0xae, 0x89, 0x44, 0x4d, 0xe3, 0x27, 0x42, 0xd2, 0x35, 0x68, 0x22, 0x5c, - 0x02, 0xfd, 0xa6, 0xb7, 0x8c, 0x80, 0x5e, 0x33, 0x8f, 0xc1, 0xb5, 0xb0, 0x15, 0xb6, 0xee, 0x13, - 0x06, 0xcd, 0x14, 0x06, 0x5d, 0xa0, 0xfd, 0x22, 0xb1, 0x66, 0x29, 0xee, 0x34, 0x3e, 0x79, 0x64, - 0x60, 0x48, 0xc2, 0x83, 0xa0, 0x4c, 0xc6, 0x91, 0x28, 0x16, 0x1e, 0x28, 0xa4, 0x24, 0x76, 0x8e, - 0x91, 0x63, 0x5e, 0xc2, 0x48, 0xa5, 0x10, 0xaf, 0x03, 0x19, 0x04, 0x61, 0x5a, 0xf2, 0x9a, 0x20, - 0x80, 0xd3, 0x60, 0x73, 0x6b, 0x66, 0x26, 0xc9, 0x27, 0x51, 0xb1, 0xb4, 0x0b, 0x8d, 0x3c, 0x97, - 0x31, 0x6c, 0x4a, 0xa8, 0x18, 0x2e, 0x54, 0xc1, 0x97, 0x86, 0x43, 0x95, 0xf0, 0x86, 0xf0, 0x26, - 0x2c, 0x46, 0x97, 0x7b, 0x3d, 0x98, 0x03, 0xfc, 0xa9, 0xd7, 0x8d, 0x80, 0x00, 0x7a, 0x05, 0xcc, - 0x5b, 0x8a, 0x69, 0x1d, 0x63, 0x0f, 0xc5, 0x8b, 0xf6, 0x83, 0x91, 0x89, 0x7c, 0x97, 0xb7, 0x9e, - 0x44, 0x69, 0x30,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xc1, 0x0a, 0x35, 0x05, 0x29, 0x5d, 0xd5, 0x9c, 0x84, 0x04, 0xbd, - 0x46, 0xd1, 0x74, 0xdb, 0xb0, 0xa6, 0x06, 0xab, 0xb9, 0xb0, 0x2c, 0x91, 0xeb, 0xcf, 0xd7, 0x29, - 0x7d, 0x4a, 0x67, 0x55, 0x40, 0x19, 0x1e, 0x58, 0x53, 0x1d, 0x37, 0xbc, 0x20, 0xd8, 0x7e, 0x83, - 0x3e, 0x18, 0x76, 0x68, 0x5f, 0xd7, 0x80, 0x9c, 0x41, 0x21, 0xa3, 0x4c, 0xba, 0x95, 0xe1, 0xc2, - 0x95, 0xa6, 0x51, 0x0b, 0xd6, 0xdf, 0xb3, 0xb1, 0xb2, 0xf7, 0x23, 0x14, 0x66, 0x36, 0x91, 0xd5, - 0xa2, 0x27, 0xe8, 0x2a, 0x58, 0x8a, 0xf6, 0x82, 0x04, 0x68, 0x4f, 0x54, 0xba, 0x5d, 0xad, 0xf1, - 0x99, 0x71, 0x54, 0x1f, 0x87, 0xf1, 0x86, 0x58, 0x8c, 0xf3, 0x35, 0x68, 0x4d, 0x5e, 0x13, 0x32, - 0x99, 0x6a, 0x06, 0x34, 0x64, 0x12, 0x7a, 0x4e, 0x72, 0xbf, 0xe5, 0xf8, 0x30, 0x96, 0xe5, 0x63, - 0xb1, 0xe2, 0x90, 0x96, 0xc0, 0x39, 0x57, 0xba, 0x8b, 0x53, 0x76, 0x82, 0x0c, 0x1f, 0xa1, 0x59, - 0xd7, 0x11, 0xa2, 0x03, 0xd1, 0x24, 0x11, 0x9d, 0x58, 0xd3, 0x90, 0x62, 0x67, 0x96, 0x13, 0x7c, - 0x78, 0x71, 0x75, 0xc4, 0x44, 0x1c, 0x67, 0xc2, 0x32, 0x09, 0x3b, 0x25, 0x10, 0xe8, 0x3c, 0xc4, - 0xdb, 0x2b, 0xe4, 0xc3, 0xfb, 0x8d, 0xae, 0x13, 0xbc, 0x82, 0x4a, 0xa3, 0x26, 0x71,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- 0x9c, 0x4e, 0x25, 0x71, 0x49, 0x29, 0xdd, 0x28, 0x8c, 0xcf, 0x51, 0x50, 0xe9, 0x97, 0x2f, 0x56, - 0x67, 0x57, 0xe4, 0x59, 0x8c, 0x59, 0x11, 0x97, 0xb3, 0x44, 0xab, 0x8d, 0xe4, 0xde, 0x7d, 0x37, - 0xf7, 0x76, 0x68, 0x60, 0xae, 0x5d, 0xba, 0xf0, 0x30, 0xaf, 0xb5, 0xfa, 0xac, 0x56, 0xaf, 0x41, - 0xc2, 0x30, 0xf3, 0x18, 0x6e, 0x22, 0xad, 0x73, 0x2d, 0xec, 0x40, 0x6f, 0xdd, 0x58, 0x0b, 0x54, - 0x40, 0x73, 0x94, 0x94, 0xa0, 0xde, 0xca, 0x00, 0x52, 0xbd, 0xf7, 0x8b, 0xa2, 0x62, 0xae, 0x24, - 0x23, 0xfc, 0xe3, 0xed, 0x08, 0xaf, 0x0f, 0x2a, 0x18, 0x50, 0xad, 0x73, 0x85, 0xcc, 0x05, 0x83, - 0xbe, 0xad, 0x8c, 0xc5, 0x2a, 0x5d, 0xf9, 0x4e, 0x75, 0xac, 0x0f, 0xbb, 0x7a, 0x69, 0x1f, 0x76, - 0x75, 0xed, 0x8d, 0x63, 0x62, 0x1e, 0x86, 0x92, 0xe6, 0x61, 0xec, 0xeb, 0xd6, 0x28, 0x61, 0x7f, - 0x7c, 0x59, 0x11, 0xbd, 0x71, 0x69, 0x06, 0xbd, 0x11, 0x5f, 0x7f, 0x54, 0xbc, 0x5e, 0x47, 0xaf, - 0xef, 0xee, 0x36, 0xf6, 0x43, 0x6f, 0xcc, 0xe4, 0x16, 0x52, 0xa9, 0x42, 0xcc, 0x2d, 0xac, 0x7d, - 0x87, 0x56, 0x60, 0xb3, 0xd0, 0x0a, 0x6c, 0xef, 0x74, 0xdb, 0x2d, 0x8a, 0xfe, 0x77, 0x17, 0x91, - 0x3b, 0x7c, 0x19, 0xe4, 0x0e, 0x50, 0xfb, 0x4b, 0x9a, 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df, 0x41, 0x62, 0xc5, 0x34, 0x12, 0xe8, 0x90, 0xe8, 0x74, 0x12, 0x07, 0xe3, 0xce, - 0x0b, 0xfb, 0x5c, 0xd7, 0xdc, 0x52, 0x67, 0x3b, 0xe7, 0xf3, 0xa9, 0xf2, 0x41, 0x7b, 0x5e, 0x88, - 0xf5, 0x30, 0x6e, 0xbd, 0x56, 0xd5, 0xae, 0x33, 0x8b, 0xbb, 0x4d, 0xac, 0xcf, 0x40, 0xab, 0x69, - 0x12, 0x4b, 0x21, 0x01, 0x76, 0x4f, 0x5b, 0xb0, 0xa2, 0xe7, 0x08, 0x99, 0x89, 0x21, 0x03, 0x53, - 0xd6, 0xcd, 0x10, 0x08, 0x4e, 0x53, 0x7a, 0x5f, 0x85, 0xd2, 0x99, 0xdb, 0xa2, 0x32, 0x89, 0xc5, - 0x42, 0x66, 0xeb, 0x90, 0x25, 0x63, 0x62, 0x32, 0xf8, 0xb6, 0x90, 0xcb, 0x14, 0x8c, 0x59, 0x3b, - 0xb2, 0xe6, 0xf6, 0x72, 0x77, 0x45, 0xa2, 0x61, 0xc0, 0xca, 0x23, 0x2b, 0xab, 0x58, 0x02, 0x34, - 0xa7, 0x18, 0xbe, 0xee, 0xc8, 0xa2, 0xd1, 0x8f, 0x54, 0x36, 0x14, 0xcc, 0xe5, 0x42, 0x89, 0xd5, - 0x87, 0x17, 0xee, 0xbf, 0xf3, 0xdc, 0xbd, 0xc9, 0x80, 0x65, 0xbf, 0xc6, 0xa2, 0x96, 0x4c, 0x3f, - 0x0e, 0x99, 0xc7, 0x45, 0xd8, 0xb9, 0x2d, 0x7f, 0xfd, 0x3f, 0x93, 0x06, 0xe4, 0xed, 0xf6, 0x16, - 0x66, 0xea, 0xa2, 0xac, 0x61, 0x27, 0xe3, 0xd1, 0x8d, 0x49, 0x84, 0x3d, 0xfe, 0x06, 0xa5, 0x86, - 0xf3, 0x70, 0x88, 0xf3, 0x71, 0x3e, 0x69, 0xbe, 0x39, 0xac, 0x90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e, 0x34, 0x23, 0x70, 0xab, 0x1d, 0x78, 0xd8, 0xd6, 0xb7, - 0x7b, 0xdf, 0x81, 0xd3, 0x7f, 0xf9, 0x0b, 0x66, 0x88, 0x70, 0x82, 0xe0, 0x42, 0x43, 0x50, 0x8d, - 0xcf, 0x03, 0x1f, 0x77, 0x1a, 0x38, 0x41, 0x73, 0x22, 0x6c, 0xb7, 0x73, 0x36, 0x3e, 0x46, 0x71, - 0x43, 0x78, 0xab, 0x24, 0x8e, 0xd9, 0xba, 0x4a, 0xa7, 0x92, 0x02, 0x5b, 0x91, 0x2d, 0x65, 0xeb, - 0xb0, 0xb1, 0x36, 0x99, 0xd4, 0x0e, 0xa6, 0xd8, 0xcc, 0xac, 0x94, 0x51, 0x49, 0xf4, 0x3c, 0xc5, - 0xbe, 0xa1, 0x6a, 0x35, 0x3d, 0xe8, 0x69, 0xcc, 0x47, 0x9b, 0x58, 0xc7, 0x39, 0x12, 0x4e, 0xab, - 0xd4, 0x90, 0x28, 0x52, 0x66, 0xe2, 0x64, 0x88, 0x19, 0xfa, 0xf8, 0x10, 0xdb, 0x1d, 0x28, 0xcd, - 0xcb, 0xd2, 0x0b, 0xef, 0xbd, 0x25, 0x0c, 0x7a, 0x19, 0xca, 0xed, 0x05, 0x3a, 0x75, 0x9e, 0xfd, - 0x01, 0x6f, 0xe5, 0xf0, 0x59, 0xc3, 0x02, 0x43, 0xec, 0x96, 0x32, 0xae, 0x20, 0x3b, 0x39, 0xab, - 0xe6, 0x1a, 0x3e, 0xa8, 0xaf, 0xcf, 0x6f, 0x7b, 0xbe, 0xb9, 0xe9, 0x57, 0x53, 0x10, 0x58, 0xbc, - 0x7b, 0x2a, 0x3e, 0x59, 0x1e, 0x95, 0x91, 0xba, 0xa6, 0x23, 0x49, 0xad, 0x16, 0x76, 0x24, 0x96, - 0x5d, 0x52, 0x89, 0xa8, 0xcf, 0xea, 0x9f, 0xe9, 0x5f, 0xee, 0x47, 0x16, 0x7f, 0xcc, 0x5f,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 0x5c, 0x5e, 0xf3, 0xa3, 0xbe, 0x20, 0x99, 0xd1, 0x67, 0xb5, - 0xfa, 0x8c, 0xb2, 0x1f, 0xf5, 0x05, 0xe9, 0xbc, 0x85, 0x4e, 0x3c, 0xa3, 0xe3, 0xf0, 0x8c, 0x2e, - 0x95, 0x48, 0x41, 0x05, 0x68, 0x01, 0x53, 0xc1, 0xee, 0x44, 0xae, 0x26, 0xfc, 0x62, 0xf8, 0x46, - 0x98, 0x09, 0x27, 0x14, 0xba, 0x64, 0x38, 0x9c, 0xdb, 0xe0, 0x63, 0x14, 0xb1, 0xe9, 0x75, 0x0d, - 0xe3, 0x46, 0xb6, 0xb5, 0x8d, 0x19, 0x33, 0x68, 0x50, 0x52, 0x01, 0x0c, 0x87, 0x0d, 0x57, 0x0c, - 0x8c, 0x81, 0x98, 0xdc, 0x0a, 0xf0, 0x45, 0x06, 0x83, 0xad, 0x41, 0x31, 0xae, 0xa3, 0x75, 0x4c, - 0x47, 0x47, 0xb2, 0x76, 0x78, 0xe5, 0xa0, 0x41, 0x9a, 0x24, 0x4c, 0x26, 0xc7, 0x14, 0x0e, 0x18, - 0x60, 0x34, 0xb7, 0x44, 0xc2, 0x06, 0xad, 0x36, 0xe8, 0x73, 0xb6, 0x30, 0x80, 0x37, 0xa7, 0x67, - 0xb0, 0x5a, 0x84, 0x57, 0xd0, 0x45, 0xdf, 0x88, 0xd0, 0xba, 0xd3, 0xe7, 0x23, 0x64, 0x22, 0xcf, - 0x13, 0x28, 0x53, 0xea, 0x57, 0xd3, 0x9e, 0x11, 0x25, 0xf1, 0x0b, 0xe7, 0x08, 0x0e, 0x8e, 0x8e, - 0xe4, 0xaf, 0xd1, 0x72, 0x99, 0x9c, 0x5f, 0x5c, 0xf0, 0x37, 0x1d, 0xef, 0x92, 0xbe, 0x08, 0x1b, - 0x4c, 0x7a, 0x6a, 0x1e, 0xcf, 0x94, 0xce, 0xeb, 0x8b, 0xce, 0x33, 0xfc, 0xd3, 0xe9, 0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33, - 0x30, 0x9c, 0x79, 0x57, 0x54, 0x9c, 0xcd, 0x53, 0x22, 0xc5, 0xa2, 0x0c, 0x79, 0xa0, 0x21, 0xc3, - 0xf8, 0x1c, 0x30, 0x11, 0xbb, 0x25, 0x87, 0x0f, 0x80, 0x52, 0xf2, 0x06, 0xab, 0xd0, 0x31, 0x12, - 0x6f, 0x17, 0x82, 0xbc, 0x68, 0xd5, 0xb4, 0x90, 0xb3, 0x01, 0xcb, 0x61, 0x16, 0x09, 0x31, 0x24, - 0x49, 0xf0, 0xc5, 0x31, 0x74, 0x5c, 0x59, 0x60, 0x6b, 0xd6, 0x59, 0xb8, 0xe9, 0x5b, 0x15, 0x05, - 0x96, 0xd1, 0x12, 0xb5, 0x4a, 0xce, 0x4c, 0x87, 0x07, 0xcc, 0xa5, 0xe5, 0x03, 0x1d, 0xee, 0x44, - 0x55, 0xb9, 0xa5, 0x77, 0x78, 0xe1, 0xb2, 0xb8, 0xbd, 0x7a, 0x70, 0xa5, 0x09, 0x19, 0xca, 0x16, - 0x0e, 0xa8, 0x36, 0xc5, 0xe2, 0x25, 0xfa, 0x3a, 0xa1, 0x33, 0xbc, 0x38, 0x9a, 0xc8, 0x9d, 0x1f, - 0x4b, 0xae, 0x70, 0x95, 0xea, 0x07, 0xe9, 0xb2, 0xb3, 0xbc, 0xaa, 0x7a, 0x94, 0xf2, 0x44, 0x0c, - 0x15, 0xfa, 0x60, 0x96, 0x4f, 0xd5, 0x78, 0x3a, 0xbc, 0xa2, 0x6c, 0xec, 0x92, 0x00, 0xea, 0x2e, - 0x5a, 0x56, 0xe6, 0xac, 0xae, 0x1a, 0x68, 0x15, 0x04, 0x5e, 0x67, 0xb2, 0x2a, 0x71, 0x0b, 0x6a, - 0x39, 0x9a, 0xbe, 0x15, 0xb7, 0x3a, 0x92, 0x57, 0xa9, 0x14, 0x68, 0x16, 0x9c, 0xe3, 0x29, 0xd1, - 0x55, 0xa8, 0xb3, 0x82, 0x01, 0x75, 0x7d, 0x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 0xad, 0xc9, 0xfe, 0x51, 0x32, 0x65, 0x4a, 0x84, 0xd1, 0x8a, 0x61, 0x62, - 0xc1, 0x13, 0xde, 0xd2, 0xb4, 0xbc, 0x25, 0x37, 0x94, 0xc2, 0xd4, 0x69, 0xc8, 0xd5, 0x1a, 0xf2, - 0x93, 0x84, 0x3a, 0xe1, 0x74, 0x35, 0xd1, 0x74, 0x9c, 0x98, 0xc9, 0x64, 0x71, 0x4c, 0xe4, 0x03, - 0x34, 0x5c, 0x4c, 0xad, 0xbc, 0x35, 0x4e, 0x8c, 0xf9, 0xd1, 0x38, 0x31, 0x11, 0xcc, 0x90, 0x06, - 0x61, 0xdd, 0x1a, 0x27, 0xd6, 0x57, 0xbd, 0xa0, 0x5f, 0x9c, 0xd8, 0xfa, 0x43, 0x7d, 0x71, 0x62, - 0x1b, 0x76, 0xec, 0x38, 0x01, 0x9b, 0x84, 0x23, 0x47, 0x48, 0x94, 0xd8, 0xe6, 0xb6, 0x6d, 0xb7, - 0x44, 0x89, 0x1d, 0x39, 0xd2, 0x3f, 0x46, 0x8c, 0xc4, 0xb0, 0x0c, 0xa1, 0x58, 0x1b, 0x3e, 0xd0, - 0x90, 0x08, 0x91, 0xd2, 0x42, 0x48, 0xed, 0xac, 0x93, 0x06, 0x58, 0x60, 0xae, 0xd7, 0x6b, 0xd5, - 0xa6, 0x14, 0xcb, 0x68, 0x9b, 0x75, 0x40, 0x17, 0x66, 0x21, 0xab, 0x63, 0x75, 0x06, 0x60, 0x4e, - 0xa9, 0x4d, 0x99, 0x9e, 0xb6, 0xfd, 0x58, 0x57, 0x89, 0x60, 0x48, 0xc1, 0x16, 0x6f, 0x8d, 0x15, - 0x23, 0xd5, 0x47, 0xd2, 0xb6, 0x41, 0xb8, 0x05, 0x5a, 0x84, 0xcf, 0xa0, 0x29, 0x1d, 0x2b, 0x56, - 0x4e, 0xea, 0x2d, 0xb0, 0xf1, 0xb6, 0x5a, 0x1a, 0x28, 0xc6, 0xf9, 0xba, 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0xf1, 0x42, 0x32, 0xa7, 0x6f, 0xa7, 0x2b, 0xdb, 0xab, 0x31, 0x6f, 0x1c, 0xb1, - 0x49, 0x0d, 0x97, 0xa9, 0x61, 0x99, 0xba, 0x55, 0x8d, 0xd4, 0x0a, 0xc9, 0x04, 0x20, 0x25, 0xa9, - 0x2d, 0xeb, 0xa4, 0xac, 0x54, 0x39, 0x56, 0x05, 0x13, 0x2a, 0x98, 0xad, 0x82, 0x24, 0x48, 0x5d, - 0x95, 0x83, 0xf7, 0xd3, 0x18, 0x00, 0xcb, 0x00, 0xcc, 0x02, 0x90, 0x23, 0x48, 0x28, 0xd7, 0x3a, - 0xf1, 0x31, 0xc7, 0xab, 0xd5, 0x12, 0x3c, 0xc5, 0x1c, 0xa6, 0x24, 0x20, 0x0c, 0xe3, 0x0c, 0xf1, - 0xe9, 0x57, 0xa7, 0x83, 0xd0, 0xdb, 0x2e, 0x8b, 0x33, 0xdb, 0x26, 0xe2, 0xf8, 0x44, 0xd3, 0x25, - 0x45, 0x33, 0x45, 0xd7, 0xd3, 0x75, 0x34, 0x31, 0x75, 0xd8, 0xfc, 0x2d, 0x87, 0x63, 0xbd, 0x27, - 0x4e, 0x9c, 0x40, 0x65, 0x6f, 0xf4, 0xbe, 0x46, 0xcb, 0xae, 0x93, 0x79, 0xe4, 0x7a, 0xe8, 0x0c, - 0xd6, 0xd0, 0x7d, 0x23, 0x56, 0xc0, 0x53, 0x83, 0x11, 0x89, 0x01, 0x12, 0xa9, 0x14, 0xc8, 0x55, - 0x75, 0xeb, 0x94, 0x50, 0x29, 0xe3, 0x51, 0x3d, 0x60, 0xb4, 0x8c, 0x97, 0x59, 0x47, 0x6a, 0x08, - 0x4a, 0x18, 0x48, 0x30, 0x3f, 0x38, 0x8d, 0x1c, 0xcf, 0x18, 0x52, 0xa9, 0x28, 0x22, 0x0d, 0x15, - 0x05, 0x32, 0x7d, 0x9a, 0x2c, 0x46, 0xd7, 0x5c, 0x3e, 0x2f, 0x56, 0xf8, 0xf4, 0xf5, 0xf5, 0x81, - 0xd6, 0x33, 0x65, 0x9e, 0x25, 0xd5, 0x3c, 0x11, 0xff, 0x61, 0xef, 0xdf, 0xe0, 0xde, 0xbd, 0x87, - 0x33, 0x05, 0x3d, 0xf1, 0x74, 0xfc, 0x4d, 0x68, 0x27, 0xd3, 0x41, 0xe9, 0x47, 0xbc, 0x8c, 0x98, - 0x7e, 0x7a, 0xb0, 0xf9, 0x18, 0x26, 0x99, 0x54, 0xaf, 0x41, 0x0c, 0x01, 0xec, 0x6c, 0x50, 0x72, - 0x41, 0x16, 0x2a, 0x59, 0x27, 0x8b, 0x58, 0x16, 0xdc, 0xa4, 0xa4, 0x56, 0xa7, 0x83, 0xbf, 0x05, - 0x57, 0x00, 0x22, 0x48, 0x7e, 0x40, 0x0b, 0x12, 0xa0, 0x03, 0xb0, 0xf8, 0x19, 0xe9, 0xff, 0x3f, - 0xce, 0xde, 0x03, 0xbe, 0xad, 0xea, 0x8a, 0x1f, 0xbf, 0x43, 0x7b, 0x6f, 0xc9, 0xf2, 0x90, 0xbc, - 0xb7, 0x25, 0x4b, 0x1e, 0x52, 0x12, 0xc7, 0xf2, 0x1e, 0x49, 0x6c, 0x25, 0x71, 0x96, 0x13, 0xc7, - 0x71, 0x6c, 0xc5, 0x76, 0xe2, 0xd8, 0x89, 0x47, 0x26, 0x21, 0x9b, 0x10, 0xf6, 0x26, 0xd0, 0x14, - 0xd2, 0x94, 0xa6, 0x94, 0x52, 0x1a, 0xa8, 0x09, 0x90, 0x40, 0xcb, 0x1e, 0x65, 0x04, 0x5a, 0x28, - 0xa5, 0x94, 0xd2, 0x74, 0xb7, 0x40, 0x0b, 0x1d, 0x94, 0x12, 0xac, 0xfc, 0xef, 0xbd, 0xef, 0xea, - 0x49, 0x76, 0xdc, 0xfe, 0x7e, 0xbf, 0x7f, 0xf2, 0xb1, 0xee, 0x7d, 0xd2, 0x7b, 0xe7, 0x7b, 0xce, - 0xbd, 0xe7, 0xde, 0x77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, 0x8b, 0x90, 0xa1, 0xc2, 0x80, 0xec, 0x06, 0x38, 0x00, 0x77, - 0x40, 0xd4, 0x09, 0x61, 0x33, 0x8d, 0x61, 0x17, 0x84, 0xc8, 0x01, 0xe3, 0x3e, 0x82, 0x7e, 0xa0, - 0x35, 0xd2, 0xc0, 0xc3, 0x5f, 0x84, 0x3a, 0x2c, 0x8e, 0x66, 0xc3, 0xf7, 0xf5, 0x97, 0xf4, 0x68, - 0x95, 0x1e, 0xea, 0x95, 0x50, 0x41, 0xae, 0xe1, 0xaf, 0xd1, 0xa7, 0x08, 0xed, 0x46, 0x30, 0x4c, - 0xe7, 0x2e, 0x15, 0x40, 0xa9, 0x90, 0xc9, 0x24, 0x8a, 0x4e, 0xad, 0xfa, 0x4d, 0x25, 0x3c, 0xa9, - 0x84, 0xb7, 0x2a, 0x49, 0x95, 0x2b, 0x49, 0x95, 0x2b, 0x89, 0xcc, 0xca, 0xb0, 0x12, 0x29, 0xc9, - 0x58, 0x40, 0x27, 0x57, 0x77, 0x4b, 0x34, 0x1a, 0x48, 0x06, 0x40, 0xcc, 0x77, 0x76, 0xb5, 0x78, - 0x44, 0x29, 0xd1, 0xe9, 0xd0, 0x1b, 0xfe, 0xcf, 0x7c, 0x3f, 0xa6, 0x23, 0x19, 0xc3, 0xcb, 0xd4, - 0x0a, 0xf0, 0x15, 0x1a, 0x5e, 0xa3, 0x9f, 0xde, 0x52, 0x50, 0xd8, 0x05, 0xf9, 0x51, 0x97, 0x42, - 0xc8, 0xfc, 0x68, 0x5b, 0x79, 0x84, 0xf7, 0x72, 0xea, 0x82, 0x08, 0xee, 0x79, 0x25, 0x9a, 0x04, - 0x73, 0xa2, 0xbf, 0x38, 0x17, 0x7d, 0x0f, 0xe6, 0x46, 0x93, 0x5e, 0x45, 0x3f, 0x45, 0xbf, 0xfd, - 0xea, 0x60, 0xd5, 0x7d, 0xd1, 0xfb, 0xe1, 0xca, 0xfb, 0xfc, 0xf8, 0x48, 0x42, 0xcd, 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23, 0x97, 0x2b, 0x24, 0x52, - 0xa9, 0xba, 0x51, 0x21, 0x0f, 0x93, 0x62, 0xd4, 0xca, 0x88, 0x41, 0x02, 0x75, 0x2a, 0x95, 0xce, - 0x2a, 0x81, 0x2c, 0x3a, 0xaa, 0x5f, 0x18, 0x7b, 0x33, 0x4f, 0xe7, 0xc2, 0x51, 0x05, 0x7f, 0xcc, - 0x81, 0x9f, 0x87, 0x17, 0x09, 0xd1, 0x60, 0xea, 0xd7, 0x8f, 0x68, 0x71, 0x61, 0x37, 0x75, 0x06, - 0x4f, 0x73, 0x82, 0xec, 0x50, 0x2c, 0x8b, 0x68, 0x74, 0xfb, 0x79, 0x98, 0x01, 0x33, 0xcf, 0x47, - 0x27, 0x60, 0xf1, 0xc9, 0xd3, 0xe1, 0xe8, 0x8f, 0xa3, 0xaf, 0x9c, 0x47, 0x7e, 0x64, 0x8f, 0x6e, - 0x80, 0x77, 0x4f, 0xfd, 0x39, 0xda, 0x4f, 0xbb, 0x24, 0x38, 0x19, 0x65, 0xa5, 0x60, 0x17, 0x6b, - 0x3b, 0x18, 0x72, 0x01, 0x9d, 0x97, 0x46, 0x67, 0xd3, 0x77, 0xaa, 0x55, 0xb0, 0x53, 0x22, 0xbf, - 0x28, 0xd3, 0xab, 0xba, 0x91, 0x06, 0x4b, 0x40, 0x37, 0x8d, 0x32, 0x6f, 0x12, 0x83, 0xfc, 0xb3, - 0x63, 0xda, 0x1f, 0x5c, 0xf0, 0xbc, 0xfe, 0xd9, 0x2b, 0x74, 0xcd, 0x20, 0x3b, 0x5d, 0x8c, 0x2b, - 0x2f, 0x44, 0xb5, 0x78, 0x12, 0xde, 0x76, 0xf6, 0xf4, 0xe9, 0xaf, 0xbe, 0xf8, 0x08, 0xdd, 0xfc, - 0xf1, 0x29, 0xa9, 0x41, 0x58, 0x86, 0xa2, 0x3d, 0x2e, 0x45, 0xb4, 0x88, 0xe5, 0x5e, 0x4d, 0xca, - 0xba, 0x89, 0x14, 0xdb, 0x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x69, 0x96, 0xc7, 0x34, 0x44, 0xb2, 0x36, - 0x51, 0x1f, 0xdc, 0x19, 0xd2, 0xe8, 0xed, 0x70, 0xc2, 0xd8, 0x71, 0xe8, 0x91, 0x91, 0x19, 0x6a, - 0x73, 0x27, 0xd7, 0x12, 0x32, 0x32, 0xba, 0x00, 0x00, 0xfe, 0x33, 0x1b, 0x19, 0x15, 0xb1, 0x33, - 0x85, 0xec, 0x44, 0xbf, 0x7c, 0x10, 0xe5, 0xc0, 0xd3, 0xcc, 0xef, 0x63, 0x05, 0xf9, 0x14, 0xa2, - 0x9a, 0x5b, 0xa4, 0x39, 0xc4, 0x60, 0x31, 0x19, 0x55, 0x09, 0xfe, 0xa2, 0xd8, 0xdd, 0x34, 0x72, - 0x3d, 0x7c, 0x53, 0x88, 0x5c, 0x0f, 0x04, 0x9f, 0x95, 0x16, 0x23, 0xbb, 0xd7, 0x20, 0x4d, 0xf0, - 0x16, 0x75, 0x24, 0x0a, 0x58, 0x24, 0x9c, 0x6c, 0xb0, 0x32, 0x54, 0x7a, 0x95, 0x1a, 0xda, 0xd5, - 0x95, 0xea, 0x7e, 0x35, 0xde, 0xae, 0x80, 0x4a, 0x95, 0x2a, 0x7d, 0xb5, 0x31, 0x97, 0x4e, 0xec, - 0x49, 0x93, 0x93, 0xe9, 0x32, 0xae, 0x42, 0xdd, 0x43, 0xcc, 0x33, 0x89, 0x52, 0x86, 0x53, 0x5c, - 0xdd, 0xc9, 0x36, 0x9b, 0x84, 0x19, 0x04, 0xcc, 0x95, 0x9f, 0xf8, 0x06, 0x66, 0x66, 0x09, 0xed, - 0x9a, 0xd9, 0x5e, 0x42, 0x40, 0x47, 0x16, 0x30, 0xd6, 0x41, 0x12, 0x8b, 0xec, 0xbf, 0x2c, 0xea, - 0x7e, 0x1a, 0x5c, 0x92, 0x79, 0xee, 0x1c, 0x2a, 0x3f, 0x3f, 0xf5, 0x96, 0x6c, 0xef, 0x4f, 0xee, - 0x5c, 0xba, 0xe4, 0x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b, 0x17, 0xd0, 0xd5, 0x13, 0xae, 0x45, 0x19, 0x21, 0x1b, 0xce, - 0x20, 0x5a, 0x44, 0x85, 0x01, 0xae, 0x6c, 0x82, 0x84, 0x80, 0x95, 0x57, 0x3b, 0xab, 0xcc, 0xc2, - 0xf2, 0x98, 0x4e, 0xb1, 0x79, 0x45, 0x82, 0x08, 0x72, 0xe0, 0x02, 0x45, 0x4c, 0xb3, 0xe8, 0xf3, - 0xe5, 0x44, 0xb3, 0xa8, 0x70, 0x7a, 0x5f, 0x80, 0x20, 0xa3, 0x82, 0x3c, 0xae, 0x0a, 0xf1, 0xe7, - 0x05, 0x19, 0xcd, 0xa2, 0x8c, 0xbb, 0xd9, 0xfa, 0x0d, 0xe3, 0xd9, 0xcd, 0x66, 0xb5, 0x33, 0x93, - 0x67, 0x93, 0x91, 0xce, 0xdc, 0x72, 0x19, 0x77, 0x5f, 0xe2, 0x32, 0xfa, 0xa9, 0x8c, 0xee, 0x8a, - 0x92, 0x59, 0x4b, 0x31, 0x8e, 0x70, 0xc5, 0xff, 0x33, 0xc2, 0x15, 0xff, 0x57, 0x08, 0x2b, 0x45, - 0x84, 0x3d, 0x71, 0x04, 0x0b, 0x43, 0xb0, 0x5f, 0x16, 0x65, 0x99, 0xd5, 0x93, 0x4c, 0x44, 0xd8, - 0x13, 0x43, 0xc8, 0x65, 0x08, 0x05, 0x19, 0xff, 0x07, 0x4d, 0xb8, 0x52, 0x5c, 0xab, 0xb5, 0xc4, - 0xd6, 0x6a, 0x8b, 0xe6, 0xfc, 0x1f, 0x74, 0xe1, 0xca, 0xe9, 0x18, 0xd5, 0x8b, 0x66, 0xd5, 0x85, - 0x90, 0xa8, 0x0b, 0x6d, 0x97, 0xa6, 0x44, 0x5d, 0xc8, 0x0e, 0x19, 0x70, 0x1a, 0xd1, 0x05, 0x13, - 0xd5, 0x85, 0xe4, 0x74, 0xaa, 0x0b, 0x8f, 0x5f, 0x9a, 0x12, 0x57, 0x9f, 0x79, 0x75, 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9, - 0xc9, 0x33, 0x30, 0x5a, 0x99, 0x04, 0x71, 0x8c, 0x1d, 0x37, 0x08, 0xed, 0x2e, 0x45, 0x68, 0x77, - 0x37, 0x92, 0x27, 0x66, 0x5b, 0xcd, 0x65, 0xed, 0xce, 0xc7, 0xdb, 0xdd, 0x92, 0x69, 0x72, 0x2c, - 0x4e, 0xc9, 0x9e, 0x6d, 0xc5, 0x98, 0xb5, 0x3b, 0x01, 0x63, 0xe7, 0x92, 0x44, 0x39, 0x96, 0xa6, - 0x64, 0xcf, 0x8a, 0xb0, 0x5e, 0x44, 0xd8, 0x15, 0x5f, 0x93, 0x66, 0x82, 0x80, 0x92, 0x79, 0xb3, - 0x21, 0xb0, 0x56, 0x27, 0x20, 0xec, 0x8a, 0xed, 0xef, 0x60, 0x62, 0xa0, 0x92, 0x79, 0x33, 0x11, - 0xa8, 0xfe, 0xb0, 0x56, 0xe7, 0xbb, 0xcc, 0x42, 0xc9, 0x0b, 0x29, 0x71, 0x2e, 0x51, 0x24, 0x2a, - 0x0c, 0x51, 0xa6, 0x47, 0xb3, 0x0a, 0x10, 0x7b, 0x31, 0x5d, 0x9a, 0x74, 0xf2, 0xca, 0x8f, 0xb7, - 0x1d, 0xa6, 0x59, 0xac, 0xed, 0x2d, 0x11, 0xda, 0x9e, 0xa8, 0x5f, 0xb4, 0xed, 0xe5, 0x12, 0xfd, - 0xa2, 0x22, 0xc2, 0xac, 0x02, 0x82, 0x8f, 0xa0, 0x93, 0x2b, 0x44, 0xfc, 0x79, 0x16, 0x6d, 0x9d, - 0x45, 0x1c, 0xe9, 0x66, 0x6b, 0x7e, 0xdb, 0x40, 0x27, 0xd7, 0xb6, 0xb9, 0x44, 0xdb, 0x92, 0xcb, - 0x03, 0xaa, 0xa4, 0x19, 0xda, 0xf6, 0x39, 0x8b, 0x35, 0xb2, 0x8e, 0xad, 0xf7, 0x6d, 0x0b, 0xd3, - 0x73, 0xd4, 0x08, 0xa1, 0x22, 0x0f, 0xbf, 0x6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0, 0x1e, 0x0c, 0x12, 0x8d, 0x1b, 0x04, 0xe3, - 0xe4, 0x6f, 0x17, 0x88, 0x10, 0x5d, 0x75, 0x93, 0xbf, 0x1e, 0x72, 0xdd, 0x43, 0x72, 0xbd, 0x60, - 0x84, 0x68, 0xec, 0x4e, 0x30, 0xca, 0xee, 0x1a, 0x20, 0xdf, 0xba, 0xc1, 0x77, 0xc8, 0x9f, 0x0f, - 0x78, 0xc9, 0xff, 0x4a, 0xf2, 0xe6, 0x77, 0x83, 0x26, 0x72, 0xcf, 0x08, 0xf9, 0x75, 0x88, 0x3c, - 0xed, 0x26, 0xed, 0x61, 0x84, 0xdc, 0xbd, 0x85, 0x7d, 0xf6, 0x30, 0xaa, 0x23, 0x60, 0x18, 0x94, - 0x10, 0x9c, 0x51, 0x92, 0x1b, 0x64, 0xf4, 0x97, 0x92, 0x5f, 0x86, 0xc1, 0x18, 0xc9, 0x2d, 0x62, - 0xbf, 0x8e, 0x80, 0x25, 0xe4, 0xd9, 0x7e, 0x30, 0x41, 0x68, 0xf4, 0x90, 0xfb, 0x6a, 0xc8, 0x6f, - 0xbd, 0xe4, 0x9b, 0x61, 0x72, 0x77, 0x84, 0x5c, 0xbb, 0x41, 0x31, 0xf9, 0xfb, 0xdf, 0x14, 0x96, - 0xb3, 0x3b, 0xc7, 0x38, 0x9e, 0x1b, 0x94, 0x12, 0x4c, 0xca, 0xa3, 0x1b, 0xac, 0x27, 0x74, 0x07, - 0x09, 0xe5, 0x3e, 0xf6, 0x6d, 0x29, 0xe1, 0x3d, 0x4e, 0x29, 0x46, 0x27, 0x46, 0x25, 0x11, 0x63, - 0x90, 0xd1, 0xa7, 0xa5, 0x30, 0xce, 0x64, 0xa1, 0xbc, 0x6c, 0x66, 0xfc, 0x6d, 0x22, 0xdf, 0x8d, - 0x80, 0x0d, 0x97, 0xc9, 0xde, 0xc3, 0x38, 0x76, 0xb3, 0xbb, 0x76, 0x32, 0x64, 0xfa, 0xed, 0x28, - 0x93, 0x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 0x86, 0xb6, 0x9b, 0x99, 0x1a, 0xeb, 0x63, 0x1a, - 0xfb, 0xdf, 0xf8, 0x8e, 0xd3, 0x2a, 0x61, 0x3c, 0xf7, 0x93, 0x5f, 0x87, 0xa6, 0xd1, 0x1c, 0x23, - 0xdf, 0x2c, 0x04, 0x2d, 0x44, 0x2b, 0x1a, 0xc8, 0xbb, 0x65, 0x29, 0xf9, 0x2c, 0xe6, 0x34, 0x91, - 0xf0, 0x12, 0xbb, 0xb4, 0x81, 0xd4, 0x09, 0x10, 0xdf, 0x69, 0xe2, 0x3f, 0x4c, 0x06, 0x9a, 0x10, - 0x91, 0xbb, 0x30, 0x79, 0x3b, 0x48, 0xc9, 0x9b, 0x40, 0x4e, 0x7a, 0x7d, 0xda, 0xdb, 0xab, 0x49, - 0xcf, 0xae, 0x25, 0xbd, 0xb8, 0x9e, 0xd8, 0xf8, 0x46, 0xf2, 0xd6, 0x31, 0x93, 0xf7, 0x94, 0x15, - 0xd8, 0x80, 0x1d, 0x38, 0x40, 0x12, 0x79, 0xdf, 0x25, 0x93, 0xf1, 0x57, 0x2a, 0x48, 0x23, 0xf6, - 0xa7, 0x1b, 0xa4, 0x83, 0x0c, 0x90, 0x09, 0xb2, 0x40, 0x36, 0xc8, 0x01, 0xb9, 0x20, 0x8f, 0x8c, - 0x7a, 0x0a, 0x88, 0x15, 0x58, 0x44, 0x78, 0x28, 0x21, 0x7c, 0x79, 0x59, 0xbb, 0xf3, 0x93, 0xb7, - 0x56, 0x39, 0xa8, 0x20, 0xfd, 0x46, 0x00, 0x04, 0x89, 0x84, 0x73, 0xc1, 0x3c, 0xba, 0xb3, 0x17, - 0x54, 0x83, 0x10, 0x29, 0xad, 0x5a, 0xc2, 0x79, 0x3d, 0xe1, 0xba, 0x91, 0xb4, 0xaa, 0x66, 0x22, - 0x47, 0x2b, 0x58, 0x40, 0xe4, 0x59, 0x44, 0x64, 0x69, 0x07, 0x61, 0xb0, 0x98, 0xf4, 0x11, 0x4b, - 0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, 0x90, 0x13, 0x25, 0xa3, 0x14, 0x94, 0x8a, 0xd2, 0x88, 0x75, 0xef, 0x46, 0xe9, - 0x28, 0x03, 0x65, 0xa2, 0x2c, 0x94, 0x8d, 0x72, 0x50, 0x2e, 0xca, 0x43, 0xf9, 0xe0, 0x11, 0xf0, - 0x03, 0x54, 0x80, 0x0a, 0xc1, 0x19, 0xf0, 0x18, 0x78, 0x1e, 0x15, 0x81, 0x49, 0xf0, 0x28, 0x78, - 0x01, 0x1c, 0x00, 0xcf, 0x82, 0x23, 0xe0, 0xbb, 0xe0, 0x45, 0x54, 0x8c, 0x4a, 0xc0, 0x0f, 0xc1, - 0x8f, 0x90, 0x07, 0x3c, 0x89, 0xbc, 0xe0, 0xdf, 0xa8, 0x14, 0xf9, 0x90, 0x1f, 0x95, 0xa1, 0x72, - 0x54, 0x01, 0xae, 0x03, 0xf7, 0x92, 0xb1, 0x63, 0x00, 0x05, 0xd1, 0x1c, 0x34, 0x17, 0x1c, 0x43, - 0xf3, 0x88, 0x3d, 0x7e, 0x17, 0xf8, 0x1b, 0xf8, 0x16, 0xb8, 0x05, 0x1c, 0x07, 0xdf, 0x06, 0x37, - 0x82, 0xdb, 0xc0, 0xed, 0xe0, 0x09, 0x54, 0x85, 0xe6, 0xa3, 0x6a, 0x14, 0x42, 0x35, 0xa8, 0x16, - 0xd5, 0xa1, 0x7a, 0xd4, 0x80, 0x1a, 0x51, 0x13, 0x6a, 0x46, 0x2d, 0xa8, 0x15, 0x2d, 0x40, 0x0b, - 0xd1, 0x22, 0xd4, 0x86, 0xda, 0x51, 0x18, 0x2d, 0x46, 0x4b, 0xd0, 0x52, 0xd4, 0x81, 0x96, 0xa1, - 0xe5, 0x68, 0x05, 0x5a, 0x89, 0x56, 0xa1, 0x4e, 0xb4, 0x1a, 0xad, 0x41, 0x5d, 0x68, 0x2d, 0xea, - 0x46, 0xeb, 0x50, 0x0f, 0x5a, 0x8f, 0x7a, 0x51, 0x1f, 0x8a, 0xa0, 0x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x9d, 0xd9, 0xe8, 0x40, 0x5e, 0xb3, 0xb9, - 0xa7, 0x97, 0x58, 0xe8, 0xf2, 0x1e, 0x21, 0x95, 0xd5, 0xac, 0x1f, 0x8d, 0x6c, 0x8b, 0xc8, 0x7a, - 0x58, 0x22, 0xaf, 0x19, 0xe9, 0x1f, 0x19, 0x8e, 0x6c, 0x92, 0xf7, 0x08, 0xa9, 0xba, 0xae, 0x77, - 0x70, 0xb4, 0x77, 0x62, 0xf3, 0x86, 0xa1, 0xc8, 0x0e, 0x75, 0x6f, 0x3c, 0x2f, 0xa9, 0xeb, 0x1b, - 0x19, 0x97, 0xf4, 0x92, 0x0f, 0x59, 0x7d, 0x6f, 0x0f, 0x25, 0xd3, 0x27, 0x24, 0xf5, 0x84, 0x66, - 0xcf, 0x38, 0xb9, 0xa2, 0x89, 0xbc, 0x81, 0x63, 0x45, 0x38, 0x56, 0x83, 0x80, 0x15, 0x61, 0x89, - 0xaa, 0x81, 0x3c, 0xde, 0xd3, 0x4b, 0x19, 0x53, 0x45, 0xc4, 0xac, 0xbc, 0x81, 0x73, 0x10, 0x11, - 0x52, 0x59, 0x83, 0x40, 0x38, 0xc2, 0x12, 0x75, 0x53, 0x02, 0x3f, 0xfd, 0x09, 0xfc, 0x34, 0x51, - 0x7e, 0xfa, 0xc9, 0x87, 0xa6, 0x89, 0x0e, 0x3c, 0x7a, 0x04, 0x62, 0x9a, 0xfe, 0x84, 0x0b, 0x75, - 0x73, 0xc2, 0xb3, 0x03, 0x09, 0xcf, 0x36, 0xaf, 0xef, 0x19, 0x95, 0x0c, 0x90, 0x0f, 0x59, 0xcb, - 0xf8, 0xe0, 0x50, 0x5f, 0x44, 0x36, 0xc8, 0x12, 0x79, 0x0b, 0xe7, 0x7e, 0x90, 0x73, 0xdf, 0x22, - 0x70, 0x3f, 0x28, 0x94, 0x54, 0x0b, 0xe7, 0x73, 0x50, 0x48, 0x55, 0x2d, 0xa2, 0x08, 0xa8, 0xa5, - 0x15, 0x0d,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, 0x8f, 0xb4, 0xa9, 0x87, 0x70, 0xc7, 0x3a, 0x32, 0x7f, 0xb0, 0x4c, 0xce, 0xf1, 0x24, 0x9d, - 0xe4, 0x27, 0x4c, 0xf0, 0xa4, 0x1d, 0x03, 0x24, 0x27, 0xa1, 0x80, 0xd2, 0x05, 0x3d, 0x5b, 0xb6, - 0xf4, 0x90, 0x96, 0xb2, 0x79, 0x7d, 0x5f, 0x0f, 0x5a, 0x34, 0x81, 0xda, 0x26, 0xd0, 0xca, 0x41, - 0x39, 0xe7, 0x00, 0x85, 0x07, 0xf1, 0x92, 0x81, 0x11, 0xe9, 0xd2, 0xc1, 0xfe, 0xcd, 0x3d, 0xb8, - 0xa3, 0x67, 0x42, 0xce, 0xb9, 0xc1, 0xe1, 0x81, 0x41, 0x5c, 0x47, 0xfe, 0xc2, 0x63, 0x83, 0x02, - 0x4c, 0x4d, 0x50, 0xd3, 0x92, 0xc0, 0x91, 0x9e, 0xdf, 0x18, 0xbb, 0x56, 0xf5, 0x88, 0x05, 0xa1, - 0x89, 0x24, 0x8a, 0x1f, 0x89, 0x89, 0x3f, 0x18, 0x13, 0xdf, 0x32, 0x31, 0xfd, 0x51, 0x41, 0x38, - 0xf6, 0xbc, 0x64, 0x3d, 0x15, 0xae, 0x9f, 0x0a, 0x27, 0xed, 0x8b, 0x0c, 0x8d, 0xf7, 0xc8, 0x39, - 0x2d, 0xc9, 0x2e, 0x2a, 0x1a, 0xfd, 0x71, 0x9c, 0x89, 0x46, 0x89, 0x49, 0x37, 0x31, 0xd1, 0x86, - 0x98, 0x68, 0x02, 0x93, 0xb5, 0x75, 0x68, 0x78, 0x02, 0xed, 0x18, 0x24, 0xed, 0x90, 0xc9, 0x87, - 0x47, 0x07, 0x46, 0x64, 0x63, 0x54, 0xb8, 0x52, 0x29, 0x4b, 0xf0, 0x38, 0x91, 0x91, 0xe3, 0xe3, - 0x2d, 0x44, 0xbe, 0x5e, 0xf2, 0x47, 0x2e, 0xa5, 0x23, 0xb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0x5c, 0x29, 0x52, 0xae, 0x14, 0x29, 0x57, 0x8a, 0x94, 0x2b, 0x45, 0xca, 0x01, 0x91, 0x72, - 0x40, 0x94, 0x37, 0x20, 0x62, 0x04, 0x44, 0x8c, 0x80, 0x88, 0x11, 0x10, 0x31, 0x02, 0x22, 0x46, - 0x40, 0xc4, 0x08, 0x88, 0x18, 0x01, 0x11, 0x23, 0x28, 0x62, 0x04, 0x45, 0x8c, 0xa0, 0x88, 0x11, - 0x14, 0x31, 0x82, 0x22, 0x46, 0x50, 0xc4, 0x08, 0x8a, 0x18, 0xc1, 0xb8, 0x1c, 0x71, 0x2a, 0x31, - 0x0c, 0x92, 0x17, 0x73, 0xa5, 0x62, 0x4e, 0xd4, 0x5d, 0xaf, 0x5f, 0xcc, 0x95, 0x89, 0xb9, 0x72, - 0x31, 0x57, 0x21, 0xe6, 0x2a, 0xc5, 0x5c, 0x40, 0xcc, 0x89, 0x18, 0xa5, 0x22, 0x46, 0x9c, 0xe7, - 0xf2, 0xb8, 0x6c, 0x01, 0xd9, 0x8a, 0xfe, 0xd1, 0x1e, 0xf2, 0x3a, 0xdb, 0x2e, 0x24, 0x2b, 0x84, - 0xd7, 0xcc, 0x76, 0x96, 0x28, 0x57, 0xc4, 0x9a, 0xbd, 0x72, 0x7b, 0x2c, 0x27, 0x5b, 0x25, 0xdc, - 0xb8, 0x93, 0x25, 0x8c, 0x0e, 0x6d, 0x3e, 0x01, 0x2d, 0x9b, 0xaf, 0x65, 0x86, 0x64, 0xdf, 0xfa, - 0x21, 0xed, 0xd6, 0x89, 0x11, 0x6a, 0x45, 0x52, 0xdb, 0x32, 0xd2, 0x27, 0xdb, 0x3c, 0x38, 0xcc, - 0x5e, 0xd4, 0x91, 0x5e, 0xd2, 0x93, 0x28, 0x23, 0x3b, 0x7a, 0x49, 0x77, 0x45, 0xee, 0x52, 0x0e, - 0x8f, 0x4d, 0x30, 0xa3, 0x73, 0x54, 0xa0, 0x13, 0x08, 0x96, 0x95, 0xca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 0x04, 0xf0, 0xff, 0x17, 0x00, 0x00, 0xff, - 0xff, -} diff --git a/vendor/github.com/google/gxui/gxfont/gxfont.go b/vendor/github.com/google/gxui/gxfont/gxfont.go deleted file mode 100644 index 1b7b008..0000000 --- a/vendor/github.com/google/gxui/gxfont/gxfont.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package gxfont provides default fonts. -// -// Note that the Roboto and Droid Sans Mono fonts are owned by -// Google Inc. (one of the Go Authors) and released under the Apache 2 -// license. Any notices distributed with applications build with GXUI -// and using this package should include both the GXUI license and the -// fonts license. -package gxfont - -//go:generate go run mkfont.go - -import ( - "bytes" - "compress/flate" - "io/ioutil" -) - -var ( - // Default is the standard GXUI sans-serif font. - Default []byte = inflate(roboto_regular) - - // Monospace is the standard GXUI fixed-width font. - Monospace []byte = inflate(droid_sans_mono) -) - -func inflate(src []byte) []byte { - r := bytes.NewReader(src) - b, err := ioutil.ReadAll(flate.NewReader(r)) - if err != nil { - panic(err) - } - return b -} diff --git a/vendor/github.com/google/gxui/gxfont/mkfont.go b/vendor/github.com/google/gxui/gxfont/mkfont.go deleted file mode 100644 index af02b10..0000000 --- a/vendor/github.com/google/gxui/gxfont/mkfont.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build ignore - -// Small program to generate roboto_regular.go and droid_sans_mono.go. -// -// TODO(crawshaw): italics, bold. -package main - -import ( - "bytes" - "compress/flate" - "fmt" - "go/format" - "io/ioutil" - "log" - "net/http" - "os" -) - -var urls = map[string]string{ - "roboto_regular": "https://github.com/google/fonts/raw/master/apache/roboto/Roboto-Regular.ttf", - "droid_sans_mono": "https://github.com/google/fonts/raw/master/apache/droidsansmono/DroidSansMono.ttf", -} - -func write(name, url string) { - resp, err := http.Get(url) - if err != nil { - log.Fatal(err) - } - defer resp.Body.Close() - data, err := ioutil.ReadAll(resp.Body) - if err != nil { - log.Fatalf("error reading %q: %v", url, err) - } - data, err = deflate(data) - if err != nil { - log.Fatalf("error deflating %q: %v", url, err) - } - - w := new(bytes.Buffer) - fmt.Fprint(w, "// GENERATED BY mkfont.go\n\n") - fmt.Fprint(w, "package gxfont\n\n") - fmt.Fprintf(w, "var %s = []byte{\n", name) - - for len(data) > 0 { - n := 16 - if n > len(data) { - n = len(data) - } - for _, c := range data[:n] { - fmt.Fprintf(w, "0x%02x,", c) - } - fmt.Fprintf(w, "\n") - data = data[n:] - } - - fmt.Fprint(w, "}") - wbytes := w.Bytes() - - b, err := format.Source(wbytes) - if err != nil { - os.Stderr.Write(wbytes) - log.Fatalf("error formatting: %v", err) - } - - f, err := os.Create(name + ".go") - if err != nil { - log.Fatal(err) - } - if _, err := f.Write(b); err != nil { - log.Fatal(err) - } - if err := f.Close(); err != nil { - log.Fatal(err) - } -} - -func main() { - for name, url := range urls { - write(name, url) - } -} - -func deflate(src []byte) (dst []byte, err error) { - buf := new(bytes.Buffer) - w, err := flate.NewWriter(buf, flate.DefaultCompression) - if err != nil { - return nil, err - } - if _, err := w.Write(src); err != nil { - return nil, err - } - if err := w.Close(); err != nil { - return nil, err - } - return buf.Bytes(), nil -} diff --git a/vendor/github.com/google/gxui/gxfont/roboto_regular.go b/vendor/github.com/google/gxui/gxfont/roboto_regular.go deleted file mode 100644 index 5d47718..0000000 --- a/vendor/github.com/google/gxui/gxfont/roboto_regular.go +++ /dev/null @@ -1,5424 +0,0 @@ -// GENERATED BY mkfont.go - -package gxfont - -var roboto_regular = []byte{ - 0x9c, 0xbd, 0x07, 0x5c, 0x54, 0xd7, 0xf3, 0x37, 0x3c, 0xa7, 0xdc, 0xdd, 0xa5, 0x28, 0x4b, 0x47, - 0x51, 0x58, 0x40, 0xc0, 0x8e, 0x4a, 0x53, 0x63, 0x8f, 0xdd, 0xd8, 0x2b, 0x1a, 0x3b, 0x16, 0xec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3e, 0xf8, 0x3b, 0xed, 0x30, 0xd9, 0x15, 0x0f, 0xb5, - 0xf8, 0xe0, 0x2f, 0xb7, 0x74, 0xaa, 0xa6, 0xb4, 0x64, 0xf7, 0xe1, 0x4f, 0xc4, 0x11, 0xfc, 0x4e, - 0x01, 0x1f, 0xe8, 0x04, 0x92, 0xf5, 0x7c, 0x49, 0x71, 0x3b, 0xea, 0x05, 0x1a, 0xdc, 0x67, 0x7c, - 0x2e, 0x59, 0x8a, 0x67, 0x40, 0x5a, 0x2f, 0x45, 0x62, 0x93, 0x81, 0x2a, 0x67, 0x79, 0x30, 0x90, - 0xaa, 0x62, 0x59, 0x3f, 0xf9, 0xe0, 0x6c, 0x69, 0x07, 0x41, 0xd3, 0x71, 0x33, 0x48, 0xec, 0x37, - 0x6b, 0xdb, 0xb6, 0x19, 0x34, 0x00, 0xb0, 0x98, 0x35, 0x20, 0x03, 0x0c, 0xd4, 0xae, 0xa7, 0x60, - 0x00, 0xb2, 0x45, 0xb9, 0x6f, 0x6d, 0xc9, 0x88, 0x3b, 0x06, 0xa0, 0x6c, 0x11, 0xc4, 0xdb, 0x5a, - 0x20, 0x1f, 0x55, 0xa2, 0x6e, 0xb0, 0x95, 0xa6, 0x40, 0x12, 0xff, 0x19, 0x26, 0xf0, 0x69, 0x30, - 0x42, 0xba, 0x0f, 0x09, 0xfc, 0x3d, 0x0c, 0x20, 0x03, 0x60, 0x10, 0x3d, 0x06, 0x73, 0xe9, 0x79, - 0x08, 0x63, 0x63, 0xa0, 0x0c, 0x5f, 0x00, 0x6d, 0xc8, 0x72, 0x28, 0x4b, 0xa3, 0x21, 0x94, 0xfa, - 0xc3, 0x52, 0xf6, 0x05, 0x78, 0xe0, 0xf5, 0x63, 0x91, 0xf6, 0x20, 0xf5, 0x44, 0xea, 0x85, 0x14, - 0x8d, 0xb4, 0x1e, 0x69, 0x0e, 0x52, 0x6b, 0xa4, 0x51, 0x48, 0xf1, 0xe4, 0x57, 0x98, 0x47, 0xf6,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0, 0x56, 0x69, - 0x3e, 0xea, 0x2b, 0xdd, 0xf2, 0x4c, 0x9a, 0x06, 0x03, 0xf8, 0x72, 0xec, 0xcb, 0x52, 0xd4, 0xc5, - 0x1f, 0x90, 0x44, 0x99, 0x25, 0x8d, 0xc7, 0x42, 0x3f, 0x76, 0x1a, 0x76, 0xb3, 0xc5, 0xb0, 0x88, - 0xed, 0x85, 0x89, 0x6c, 0x08, 0xcc, 0x14, 0xfa, 0xa4, 0xdf, 0x41, 0x22, 0xad, 0x08, 0x35, 0xd8, - 0x59, 0x98, 0x4c, 0x0b, 0xa0, 0x17, 0xed, 0x0e, 0xd3, 0x00, 0x0a, 0x76, 0x02, 0x98, 0x47, 0x22, - 0x4f, 0x46, 0xde, 0x0b, 0x79, 0x38, 0x79, 0x6b, 0xae, 0x49, 0x4b, 0xe0, 0xf8, 0xbb, 0xc0, 0x68, - 0xea, 0x8b, 0xba, 0x19, 0x0b, 0xfb, 0xa5, 0xed, 0x10, 0x88, 0xfa, 0x1b, 0x24, 0xd5, 0x83, 0x1a, - 0x28, 0xef, 0x44, 0xe9, 0x20, 0x98, 0x90, 0x37, 0x91, 0x8e, 0x42, 0x6b, 0x69, 0x01, 0x74, 0x97, - 0x3a, 0xc0, 0x68, 0x3e, 0x17, 0xe2, 0xf9, 0x71, 0xd8, 0xca, 0x29, 0x54, 0x45, 0x79, 0xfb, 0xf0, - 0x76, 0xd0, 0x9f, 0x87, 0xe2, 0x38, 0xa3, 0xec, 0x7c, 0x09, 0x4c, 0xa2, 0x6b, 0xe0, 0x14, 0xea, - 0x34, 0x94, 0xbd, 0x41, 0x99, 0x4f, 0xa3, 0x5d, 0x8a, 0xe3, 0xad, 0x71, 0x5b, 0x5c, 0x5b, 0x19, - 0xda, 0xf3, 0x9e, 0x90, 0x22, 0x7d, 0x03, 0x5d, 0x51, 0x07, 0xbd, 0x35, 0x6b, 0x60, 0x12, 0xdf, - 0x06, 0x89, 0xbc, 0x91, 0xe5, 0xae, 0xa6,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 0x56, 0x51, 0xa7, 0x7a, 0x53, - 0x49, 0xb9, 0x95, 0xe0, 0x3a, 0xad, 0x62, 0xd2, 0x45, 0x9e, 0xa4, 0x58, 0x1a, 0xb7, 0xa9, 0xa8, - 0xf0, 0xae, 0xca, 0x5d, 0x98, 0xc6, 0x51, 0x66, 0x49, 0xe9, 0xa8, 0x38, 0x21, 0x54, 0x26, 0xe4, - 0x17, 0x1a, 0xd0, 0xaa, 0x4a, 0x54, 0xdc, 0x10, 0x37, 0xd4, 0x86, 0x04, 0x46, 0x48, 0x56, 0xc8, - 0xc2, 0x51, 0x29, 0xf4, 0x03, 0x8d, 0x6a, 0xf7, 0x62, 0x17, 0x7d, 0x97, 0x59, 0xa9, 0x0c, 0x7e, - 0x13, 0x2b, 0x77, 0x06, 0xd0, 0x24, 0x01, 0xd7, 0x0c, 0xc3, 0xfd, 0x1f, 0x61, 0x06, 0x68, 0x60, - 0x88, 0xf2, 0x80, 0xa3, 0x04, 0x4c, 0x83, 0xad, 0xb0, 0x0f, 0xbe, 0x83, 0x4c, 0x38, 0x0b, 0x57, - 0xe0, 0x05, 0xbc, 0x05, 0x99, 0xb8, 0x11, 0x77, 0x12, 0x4a, 0xc2, 0x49, 0x35, 0xd2, 0x91, 0xf4, - 0x26, 0x83, 0xc8, 0x34, 0x32, 0x9d, 0xa4, 0x90, 0xe5, 0x64, 0x1b, 0x31, 0x92, 0x5f, 0x89, 0x85, - 0xfa, 0xd3, 0x58, 0x1a, 0x47, 0x8f, 0xd1, 0x73, 0xf4, 0x02, 0x7d, 0x40, 0xff, 0x60, 0x04, 0x3d, - 0xc4, 0x89, 0xb9, 0xb1, 0x10, 0xb6, 0x90, 0x2d, 0x62, 0xcb, 0xd9, 0x36, 0x66, 0x64, 0xe9, 0xec, - 0x02, 0xcb, 0x61, 0x57, 0xd9, 0x4d, 0x1e, 0xca, 0x23, 0x78, 0x13, 0xde, 0x96, 0xf7, 0xe3, 0x23, - 0x79, 0x22, 0x9f, 0xc7, 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16, 0xec, 0x47, 0xf6, 0x13, 0x1f, 0xc6, 0x87, 0x93, 0x96, 0xec, 0x0d, 0x1f, 0xc1, - 0x7e, 0x66, 0xbf, 0x90, 0x04, 0x32, 0x04, 0x31, 0x6f, 0x24, 0x99, 0xce, 0x9b, 0x93, 0xb9, 0xe0, - 0x2a, 0x2c, 0xd7, 0xb5, 0x81, 0xd5, 0x87, 0xb8, 0xbd, 0x93, 0x81, 0xfa, 0x68, 0xdd, 0x46, 0x25, - 0xac, 0x24, 0x62, 0x96, 0x01, 0x69, 0x1a, 0x88, 0x95, 0x13, 0x80, 0x58, 0xad, 0x10, 0x6d, 0x82, - 0x7c, 0x1b, 0xd2, 0x3e, 0xa4, 0xfe, 0x48, 0xdf, 0xa9, 0x44, 0x9b, 0x22, 0xff, 0x1e, 0x29, 0x13, - 0x69, 0x24, 0x52, 0x16, 0xd2, 0x19, 0xe1, 0x2d, 0xc8, 0xcf, 0x5a, 0x09, 0xf1, 0x0e, 0x2d, 0x03, - 0x30, 0xb2, 0x01, 0xed, 0x88, 0x3c, 0x57, 0x25, 0xe1, 0xc7, 0xca, 0x93, 0xa0, 0x9b, 0xb8, 0xfd, - 0x25, 0xf2, 0x5b, 0x48, 0xb7, 0x91, 0x66, 0x21, 0xdd, 0x41, 0x7a, 0x80, 0xc7, 0x05, 0x16, 0x3c, - 0x44, 0x7a, 0x84, 0x34, 0x07, 0xc4, 0x22, 0x00, 0x04, 0x36, 0x3c, 0x3e, 0x08, 0xf9, 0x0b, 0x2b, - 0x21, 0x4e, 0x60, 0x14, 0x01, 0x8c, 0x9a, 0x40, 0x47, 0x20, 0xff, 0xd5, 0x4a, 0x88, 0xb7, 0x68, - 0x1f, 0x00, 0x7f, 0xe3, 0x71, 0xc4, 0x5a, 0xf8, 0x07, 0x49, 0xe0, 0x82, 0x58, 0x23, 0xf1, 0x1e, - 0xc9, 0x8c, 0xc7, 0xa7, 0x22, 0x97, 0xad, 0xb4, 0x10, 0x09, 0xd1, 0x90, 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d4, 0x0f, 0xa9, 0x14, 0x12, 0x8e, 0x39, 0x2d, 0x8d, 0xe4, 0x8f, 0x74, 0x0f, 0x29, - 0x56, 0x25, 0xd8, 0x80, 0x3c, 0x4e, 0x25, 0xd8, 0x88, 0xfc, 0x98, 0x4a, 0x0c, 0xed, 0x8f, 0xa2, - 0x4d, 0x51, 0x61, 0x4f, 0x9b, 0x90, 0x5f, 0x50, 0x09, 0xb6, 0x20, 0xbf, 0xad, 0xf6, 0x4f, 0xb1, - 0xd7, 0x3f, 0x54, 0x82, 0x1d, 0xd6, 0x54, 0x4c, 0xd8, 0x3b, 0x8e, 0x85, 0x28, 0xeb, 0x94, 0xd2, - 0x6e, 0x37, 0x72, 0x27, 0x95, 0x60, 0x0f, 0x72, 0x37, 0x95, 0x00, 0xe5, 0x67, 0x21, 0x2a, 0x09, - 0x5b, 0x67, 0x68, 0x73, 0x88, 0x4f, 0x8a, 0xad, 0x23, 0x46, 0xa9, 0x84, 0xba, 0x66, 0xf3, 0x55, - 0x02, 0xd4, 0x01, 0x43, 0x7b, 0x62, 0x68, 0x3b, 0x0c, 0x75, 0xcf, 0x16, 0x59, 0x09, 0x63, 0x2d, - 0x22, 0x17, 0x20, 0x46, 0x01, 0xc3, 0x58, 0x85, 0x08, 0x05, 0x0c, 0xf5, 0x8a, 0x58, 0x0b, 0x88, - 0x53, 0xc0, 0x50, 0x7f, 0x0c, 0x6b, 0x62, 0xb6, 0x56, 0x25, 0x30, 0x21, 0x47, 0x3d, 0xb2, 0xf5, - 0x48, 0x38, 0x6e, 0x6c, 0x83, 0x4a, 0x70, 0x00, 0x39, 0xf6, 0x9f, 0x61, 0x5f, 0x19, 0x8e, 0x21, - 0xdb, 0xac, 0x12, 0xa4, 0x21, 0xdf, 0x62, 0xa5, 0x78, 0xa4, 0xad, 0x2a, 0xc1, 0x41, 0xe4, 0xdb, - 0xac, 0x84, 0xe3, 0xcd, 0xbe, 0x51, 0x09, 0xd0, 0xae, 0xd8, 0x76, 0xa4, 0x6f, 0x91, 0x70, 0xfc, - 0xd9, 0x0e, 0x95, 0xe0, 0x30, 0xf2, 0x9d, 0x56, 0x42, 0x5b, 0x60, 0xbb, 0x90, 0x50, 0x37, 0x88, - 0xf5, 0xc0, 0x84, 0x5e, 0x84, 0xbc, 0x09, 0x48, 0x98, 0x63, 0x30, 0xcc, 0x35, 0x20, 0x03, 0xb9, - 0x8d, 0x46, 0x21, 0x1d, 0x55, 0x09, 0x4e, 0x21, 0x17, 0xe3, 0x73, 0x1c, 0x69, 0x0c, 0xd2, 0x09, - 0x95, 0xe0, 0x34, 0xf2, 0x4c, 0x2b, 0x8d, 0x46, 0x42, 0x7c, 0x60, 0x67, 0x55, 0x8c, 0x60, 0xe7, - 0xac, 0x84, 0x99, 0x00, 0x3b, 0x8f, 0x24, 0xc6, 0xf1, 0x12, 0x72, 0xcc, 0x72, 0x58, 0x0e, 0xd2, - 0x57, 0xca, 0x2a, 0x20, 0x60, 0x57, 0xf1, 0xb8, 0xd8, 0xbf, 0xa9, 0x92, 0xc0, 0x0e, 0x6e, 0x85, - 0x27, 0x21, 0x17, 0x27, 0x2a, 0x61, 0xac, 0x01, 0x4e, 0x55, 0x12, 0xb8, 0xc2, 0x99, 0x4a, 0x18, - 0x7f, 0x80, 0x73, 0x95, 0x00, 0xdb, 0xe2, 0x98, 0x9f, 0x73, 0x1d, 0x1e, 0x9f, 0x82, 0x1c, 0xc7, - 0x9f, 0xbb, 0xe0, 0xf1, 0x6b, 0xc8, 0x5d, 0x55, 0x62, 0x88, 0x57, 0xbc, 0x84, 0x4a, 0x0c, 0xc7, - 0x85, 0x97, 0x54, 0x09, 0x23, 0x16, 0x70, 0x37, 0x95, 0x04, 0x66, 0x71, 0xbd, 0x4a, 0x18, 0xc5, - 0x80, 0xbb, 0xab, 0x24, 0x30, 0x8c, 0x23, 0x3e, 0x70, 0x4f, 0xd5, 0x76, 0xc4, 0x93, 0x70, 0x41, - 0x02, 0xd7, 0xb8, 0xb7, 0x4a, 0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10, 0x24, 0xe2, 0xb9, 0x44, 0x54, 0x62, - 0x6f, 0x90, 0xa3, 0x4d, 0x4b, 0x7a, 0x35, 0xc6, 0x4b, 0xee, 0x2a, 0x71, 0xcc, 0x67, 0x24, 0xc4, - 0x13, 0x49, 0xe0, 0x09, 0xfa, 0x69, 0x00, 0xfe, 0x2e, 0x40, 0x5c, 0x8f, 0xe3, 0x11, 0x80, 0x7e, - 0x19, 0x80, 0xfa, 0x63, 0x38, 0x4e, 0x01, 0x88, 0x17, 0x01, 0x73, 0xd5, 0x18, 0x10, 0x20, 0x08, - 0xf3, 0x1e, 0x86, 0xf9, 0x50, 0x00, 0xd6, 0x47, 0x01, 0x7f, 0xa8, 0x58, 0x1f, 0x80, 0x7e, 0x1b, - 0x80, 0x72, 0x0a, 0xbf, 0x0d, 0x6c, 0xad, 0x92, 0x18, 0x73, 0x03, 0xb6, 0x69, 0x40, 0x0c, 0x24, - 0x38, 0x2e, 0x06, 0xbc, 0xbf, 0xc1, 0x5d, 0xcd, 0x0f, 0x0c, 0x78, 0x4f, 0x03, 0x62, 0x17, 0x41, - 0xfc, 0x37, 0x78, 0xab, 0x24, 0x7c, 0xc2, 0xe0, 0x8b, 0x84, 0x82, 0x90, 0xa1, 0xc8, 0xf1, 0xc7, - 0x06, 0xc4, 0x25, 0x32, 0x16, 0x39, 0xe2, 0x90, 0x41, 0xe4, 0x40, 0xe8, 0x1f, 0x86, 0x6a, 0x2a, - 0x11, 0xf4, 0x07, 0x03, 0xda, 0x9c, 0x21, 0x52, 0x8d, 0x2d, 0x06, 0xc4, 0x18, 0x03, 0xda, 0x08, - 0x41, 0xff, 0x30, 0xd4, 0x51, 0x49, 0xc4, 0x19, 0x43, 0x63, 0x95, 0x08, 0x62, 0xb2, 0x61, 0x9c, - 0x4a, 0x04, 0x73, 0x33, 0xc3, 0x74, 0x95, 0x44, 0x8e, 0x62, 0xf8, 0x46, 0x25, 0xe1, 0x9f, 0x86, - 0xed, 0x2a, 0x89, 0x7c, 0xc5, 0x80, 0x7d, 0x33, 0x60, 0x1b, 0x04, 0x75, 0x60, 0xd8, 0xab, 0x12, - 0x47, 0xfd, 0x1b, 0xf6, 0xa9, 0x84, 0x79, 0x30, 0x18, 0xf6, 0xab, 0x24, 0x6a, 0x4a, 0x03, 0xfa, - 0xa7, 0x21, 0x43, 0xad, 0xc7, 0x0d, 0x68, 0x87, 0x06, 0x61, 0x87, 0xe8, 0x9f, 0x41, 0x92, 0x4a, - 0x04, 0xfd, 0x33, 0xc8, 0x53, 0x25, 0x51, 0xb7, 0x07, 0xf9, 0xa8, 0x44, 0xd0, 0x47, 0x83, 0x82, - 0x55, 0x22, 0x18, 0xdb, 0x83, 0xc2, 0x54, 0x02, 0x6c, 0x2f, 0xa8, 0xaa, 0x4a, 0x22, 0x67, 0x0a, - 0x42, 0x3d, 0x06, 0xa1, 0xef, 0x12, 0xc4, 0xde, 0x60, 0xaa, 0x12, 0x41, 0x3f, 0x0e, 0xd6, 0xa8, - 0x04, 0x28, 0x47, 0xb0, 0x9b, 0x4a, 0x04, 0x7d, 0x3b, 0x18, 0xf5, 0x1d, 0x2c, 0x72, 0x4a, 0xf4, - 0xef, 0xe0, 0xd2, 0x2a, 0x11, 0xf4, 0xef, 0xe0, 0x00, 0x95, 0x08, 0xfa, 0x79, 0x70, 0x25, 0x95, - 0x08, 0xfa, 0x7a, 0x70, 0x73, 0x95, 0x08, 0xfa, 0x7c, 0x70, 0x1f, 0x95, 0x08, 0xfa, 0x7d, 0x30, - 0xfa, 0x40, 0x30, 0xc6, 0x7c, 0x82, 0xfe, 0x1f, 0x9a, 0xad, 0x92, 0x58, 0x0d, 0xfb, 0x0b, 0xda, - 0xcb, 0x2f, 0x54, 0xcd, 0xdd, 0xfe, 0x3e, 0xa5, 0x92, 0x58, 0x85, 0xf5, 0x11, 0x8f, 0x7f, 0xc4, - 0x98, 0x48, 0x50, 0x8f, 0xb2, 0x45, 0x25, 0x82, 0x7a, 0xb4, 0x14, 0x88, 0x35, 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 0x48, - 0x54, 0x8c, 0x41, 0x39, 0x63, 0xb0, 0x3f, 0x21, 0x74, 0x23, 0x85, 0x13, 0xdf, 0x84, 0x9d, 0xb3, - 0xe7, 0x7e, 0xbb, 0x73, 0xe6, 0xac, 0x3d, 0x0b, 0xbb, 0xb5, 0x6c, 0xd6, 0xb5, 0xcb, 0xca, 0x2e, - 0xf4, 0xb3, 0x9d, 0x44, 0xb3, 0x6b, 0xa7, 0x5c, 0x20, 0x8e, 0x34, 0xef, 0xd2, 0xb5, 0x45, 0xb3, - 0x38, 0x59, 0x9b, 0x40, 0xcf, 0x25, 0xf0, 0xb5, 0xb3, 0xf7, 0xec, 0x4d, 0x6a, 0x36, 0x67, 0xe7, - 0xce, 0x64, 0x6d, 0x9b, 0x01, 0xfd, 0x3a, 0xb7, 0x68, 0x33, 0x70, 0x60, 0x87, 0x82, 0xbc, 0xd9, - 0xbb, 0x77, 0x25, 0x37, 0x9b, 0xbd, 0x7b, 0x67, 0xb2, 0xa6, 0xed, 0x80, 0xfe, 0x9d, 0x5b, 0xb6, - 0x8d, 0xef, 0xdf, 0xe9, 0x8f, 0x46, 0x7c, 0x4c, 0x23, 0xf4, 0xd3, 0x01, 0x96, 0x37, 0xfc, 0x0f, - 0xe9, 0x34, 0x04, 0x40, 0x38, 0x44, 0xc2, 0xdc, 0x4f, 0xd8, 0x41, 0x19, 0xdc, 0x29, 0x63, 0x33, - 0x7c, 0x3f, 0xdc, 0xf1, 0x13, 0x46, 0x11, 0x5c, 0x46, 0x18, 0x85, 0xa9, 0xa2, 0x53, 0x19, 0xc1, - 0x58, 0x70, 0x45, 0xc1, 0xf4, 0x15, 0x83, 0x05, 0x73, 0x57, 0x0f, 0x7a, 0xaa, 0x97, 0x94, 0x52, - 0x99, 0x8f, 0x7b, 0x29, 0xa1, 0x88, 0x32, 0x7a, 0x53, 0x60, 0xa1, 0x45, 0x98, 0x82, 0x02, 0xdd, - 0x55, 0xd3, 0x32, 0x55, 0xb7, 0x33, 0x13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x5d, 0xe5, 0x44, 0x69, 0x23, 0x7f, 0xf9, - 0x61, 0x4c, 0xa7, 0x96, 0x87, 0x9e, 0x1d, 0x5d, 0xb7, 0xea, 0x24, 0x58, 0x2c, 0x30, 0x0f, 0x23, - 0xe0, 0x70, 0xde, 0x18, 0xd1, 0xcf, 0xe3, 0x6f, 0x20, 0x5a, 0x8c, 0x67, 0xff, 0xb0, 0xb1, 0x22, - 0xfb, 0x29, 0x34, 0x65, 0x3f, 0x11, 0xc8, 0xf0, 0xca, 0x0a, 0x18, 0x95, 0x3b, 0xe3, 0x95, 0xe1, - 0x78, 0xcd, 0x23, 0x36, 0x96, 0x68, 0x40, 0xef, 0x0a, 0xb6, 0x2b, 0x95, 0xc0, 0xa5, 0x5c, 0x89, - 0x36, 0xd6, 0x1c, 0x4e, 0xb1, 0x49, 0xbc, 0x25, 0xda, 0x98, 0x8f, 0x9d, 0x8d, 0xe1, 0x59, 0xc4, - 0x75, 0x25, 0x97, 0x22, 0x92, 0x37, 0x86, 0x22, 0x6f, 0xa2, 0xa3, 0x63, 0x0a, 0x72, 0x10, 0xb6, - 0xe6, 0x98, 0x4f, 0x93, 0xc9, 0xcb, 0xc9, 0xa4, 0xd3, 0x42, 0xbf, 0x6b, 0x49, 0x0a, 0xbb, 0xcb, - 0xae, 0xa0, 0x45, 0x69, 0x21, 0x14, 0xd0, 0x61, 0x30, 0x71, 0x50, 0x94, 0x68, 0xef, 0xdd, 0x76, - 0xd8, 0xa0, 0x46, 0x75, 0x91, 0x52, 0xb0, 0xbb, 0x05, 0x27, 0x58, 0x23, 0x41, 0xac, 0xea, 0x36, - 0x73, 0x96, 0x58, 0x02, 0x06, 0xf3, 0xe0, 0x34, 0xbb, 0xcf, 0x5b, 0x15, 0xc9, 0xa2, 0x04, 0x67, - 0x21, 0x8b, 0x94, 0x8b, 0x72, 0x09, 0x9b, 0x16, 0x92, 0x44, 0x33, 0x7f, 0xf3, 0x50, 0xd6, 0xa5, - 0x60, 0x0f, 0x5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b, 0x6c, 0x47, 0x29, 0x92, 0xfd, 0xec, 0x17, - 0x21, 0xf8, 0xfd, 0x7b, 0x4d, 0x8d, 0xba, 0x80, 0x4e, 0x94, 0x7e, 0xcc, 0x61, 0x15, 0x8a, 0xce, - 0xe1, 0x61, 0x9b, 0x7b, 0xae, 0xd1, 0x43, 0xe0, 0x98, 0xbb, 0xc8, 0x6c, 0x94, 0x61, 0xf7, 0x56, - 0xca, 0x16, 0x91, 0xf9, 0xb8, 0x93, 0xf9, 0xd9, 0xd9, 0x31, 0x0d, 0x0d, 0x35, 0x5b, 0x34, 0x99, - 0x32, 0xed, 0xcc, 0x19, 0xa9, 0x81, 0xfc, 0x21, 0xc5, 0xdc, 0xb7, 0x61, 0x43, 0xd7, 0xd5, 0x5e, - 0xab, 0x17, 0xd2, 0x2d, 0x29, 0x44, 0xfc, 0xbf, 0x72, 0x92, 0x50, 0xef, 0xf7, 0x11, 0x22, 0xf4, - 0x88, 0x56, 0xce, 0xee, 0x1e, 0x8e, 0x73, 0x64, 0x0e, 0x62, 0x7d, 0x32, 0xdc, 0x28, 0x89, 0xbe, - 0xba, 0xe8, 0x8a, 0x7e, 0x22, 0x07, 0x08, 0x55, 0x52, 0x16, 0x31, 0x1b, 0x24, 0x0c, 0x12, 0x0d, - 0x94, 0x95, 0x1f, 0x96, 0xf7, 0xdd, 0x41, 0x92, 0x7e, 0xfe, 0x7a, 0xd3, 0x74, 0xe3, 0xd0, 0xe9, - 0x17, 0xce, 0xd0, 0x2c, 0x73, 0x93, 0xbf, 0x37, 0x33, 0xcf, 0x8f, 0x67, 0x45, 0x44, 0x08, 0x12, - 0x7f, 0xf7, 0x00, 0xa5, 0xf9, 0xe4, 0x1c, 0x90, 0x83, 0xc9, 0x15, 0xaf, 0x86, 0x4c, 0x20, 0x39, - 0xcc, 0x01, 0x91, 0xdf, 0x88, 0xeb, 0x71, 0x79, 0xca, 0x62, 0x79, 0xe2, 0xf1, 0x8f, 0xac, 0xfe, - 0xc7, 0x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x9f, 0xd2, 0x67, 0xe3, - 0x85, 0x73, 0xfb, 0xf7, 0xec, 0x4d, 0xe9, 0xb8, 0x12, 0xbc, 0x8f, 0xad, 0xde, 0x3a, 0xb5, 0x69, - 0xc6, 0xf0, 0x0f, 0xbc, 0xd4, 0x3d, 0x28, 0x06, 0xdb, 0x87, 0x99, 0xec, 0x04, 0x81, 0xe7, 0x14, - 0x32, 0x2e, 0x68, 0xe9, 0x21, 0x27, 0xb1, 0x98, 0xb7, 0x41, 0xff, 0x05, 0x77, 0xc6, 0x56, 0x2b, - 0xa0, 0xcc, 0xd6, 0xcb, 0xf4, 0x93, 0x8f, 0x14, 0xcd, 0x33, 0x18, 0x58, 0x52, 0x9a, 0x82, 0xd5, - 0x93, 0x2f, 0xfd, 0x02, 0x06, 0x56, 0xdd, 0xa3, 0x62, 0x89, 0xb7, 0xe5, 0xc2, 0xc5, 0x1f, 0xd9, - 0xb1, 0xec, 0x21, 0x4b, 0x07, 0x3f, 0xd8, 0xd1, 0x72, 0x58, 0x07, 0x4b, 0xde, 0xec, 0x05, 0x5f, - 0x85, 0x81, 0xfe, 0x28, 0x87, 0x37, 0x67, 0xa1, 0x77, 0x32, 0x2d, 0xbf, 0x81, 0x29, 0xf0, 0x36, - 0xbe, 0x33, 0xbd, 0x98, 0x4b, 0xec, 0x6d, 0x6e, 0x20, 0xd6, 0x96, 0xef, 0xd2, 0xfa, 0x79, 0x57, - 0x31, 0x59, 0xe2, 0x6a, 0x12, 0xdc, 0x5c, 0xa9, 0xd5, 0xcd, 0xb1, 0x94, 0x24, 0x00, 0xd0, 0x68, - 0x22, 0x39, 0xe9, 0x7c, 0x99, 0xa0, 0xe6, 0xdc, 0xa4, 0xed, 0x22, 0xb1, 0x1a, 0x5f, 0x00, 0x12, - 0x00, 0xd0, 0x03, 0xbc, 0xdf, 0xa0, 0x17, 0x68, 0x87, 0x0e, 0x4f, 0x06, 0x6d, 0x41, 0xdb, 0xc9, - 0xe8, 0x30, 0x68, 0x37, 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86, 0x06, 0xb0, 0x23, 0x12, 0x1c, 0xf8, 0x48, 0xc1, 0x10, 0xc9, 0x89, 0x8a, 0x97, 0x44, - 0x77, 0x39, 0x79, 0x74, 0x57, 0x08, 0x0c, 0xf6, 0x16, 0x6d, 0x7c, 0x73, 0x78, 0x99, 0x0d, 0x27, - 0x40, 0x45, 0xad, 0x96, 0x6e, 0x0c, 0x95, 0xc0, 0xbe, 0xa2, 0xd0, 0x55, 0x49, 0x32, 0x37, 0x3e, - 0xae, 0xcf, 0xf4, 0x1f, 0x96, 0x8d, 0xf9, 0xb4, 0xed, 0x8c, 0x21, 0x27, 0x67, 0xdc, 0x5b, 0x3e, - 0xac, 0x7b, 0xbb, 0x19, 0x83, 0x2e, 0x16, 0xf4, 0x07, 0x3d, 0x9a, 0xb4, 0x59, 0xb4, 0x1d, 0x0e, - 0xe9, 0x81, 0x76, 0x27, 0x34, 0x5f, 0xbc, 0x0d, 0x1a, 0x73, 0x2c, 0x8b, 0x6b, 0xae, 0xba, 0xb8, - 0x16, 0x15, 0x6f, 0x40, 0x0b, 0x23, 0x57, 0x9f, 0x5f, 0x0d, 0x12, 0x4e, 0x24, 0xc3, 0x83, 0xe1, - 0x37, 0x0e, 0x1c, 0x4c, 0xb6, 0x74, 0x0e, 0xbc, 0x59, 0x80, 0x4f, 0xd8, 0x6a, 0xd4, 0x8f, 0x33, - 0x3a, 0xc1, 0xfa, 0x79, 0xbc, 0x05, 0x4d, 0xf9, 0xff, 0x11, 0x41, 0xa0, 0xad, 0x82, 0x20, 0x30, - 0x52, 0x04, 0x41, 0x41, 0xca, 0x09, 0x27, 0x00, 0x02, 0x75, 0xae, 0xe5, 0xeb, 0x79, 0x95, 0x11, - 0x04, 0xd5, 0xb0, 0x45, 0x45, 0xaa, 0x48, 0x7d, 0xf1, 0xf9, 0x19, 0x29, 0x4b, 0xa3, 0x54, 0x29, - 0x13, 0xf1, 0x13, 0xcb, 0x80, 0xfd, 0xb0, 0x5a, 0xf0, 0xf3, 0x16, 0xd5, 0x02, 0x39, 0x64, 0x0a, - 0x28, 0x25, 0x71, 0x6f, 0x5d, 0x88, 0xde, 0x26, 0xe1, 0x77, 0xb5, 0xe3, 0x6d, 0x3d, 0x05, 0x4b, - 0x69, 0x68, 0x90, 0xde, 0x5b, 0x23, 0xe6, 0x8f, 0x25, 0x66, 0x08, 0xfc, 0x45, 0x12, 0xc7, 0xb4, - 0x72, 0x8d, 0x1c, 0x38, 0x1e, 0xa6, 0xa6, 0x92, 0xe2, 0x20, 0xfc, 0x08, 0x6f, 0x97, 0x54, 0x0c, - 0x80, 0xb7, 0x2d, 0x91, 0xdc, 0xd2, 0xa5, 0x15, 0x0c, 0x29, 0x66, 0xe3, 0x98, 0xa5, 0x20, 0x02, - 0xdd, 0x01, 0x11, 0x96, 0xa5, 0x27, 0xb0, 0xde, 0x58, 0x47, 0x30, 0x40, 0xd8, 0x47, 0x52, 0x62, - 0x80, 0x2a, 0xcb, 0x4c, 0x1b, 0x06, 0xa8, 0xb0, 0x50, 0xcc, 0xc8, 0x12, 0xa6, 0xf9, 0x44, 0x9a, - 0x91, 0x1d, 0xe6, 0xe4, 0xe8, 0xfd, 0x3b, 0xce, 0x89, 0x48, 0x6c, 0x55, 0x19, 0xde, 0x46, 0x21, - 0x47, 0x05, 0x92, 0xf2, 0x8b, 0x54, 0xa5, 0xc4, 0xa5, 0x30, 0xe1, 0xe7, 0x82, 0x95, 0x3c, 0xc8, - 0x78, 0x1d, 0xdc, 0x80, 0xca, 0x66, 0xe3, 0x93, 0xdd, 0x8a, 0x11, 0xa1, 0x4d, 0x45, 0x23, 0x0b, - 0x0b, 0xfb, 0x80, 0x25, 0x77, 0x51, 0x63, 0xf0, 0xe8, 0x17, 0x70, 0x11, 0xc5, 0x70, 0x0d, 0x51, - 0x3c, 0xf8, 0xda, 0xf2, 0xa7, 0xe5, 0x1b, 0x32, 0xbe, 0x08, 0x3c, 0xbe, 0x60, 0xaa, 0xb5, 0xfb, - 0x38, 0xe1, 0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 0x29, 0x80, 0x56, 0x58, - 0x6e, 0x4a, 0x39, 0x59, 0x2c, 0x37, 0xa7, 0xe0, 0xdd, 0x54, 0x31, 0x94, 0x99, 0x0f, 0xcf, 0x8a, - 0x74, 0xcd, 0xab, 0x47, 0xd9, 0x6f, 0x6a, 0xfd, 0x13, 0x11, 0x07, 0xa7, 0x51, 0xd4, 0x6b, 0x8b, - 0x34, 0x10, 0x5c, 0x3d, 0x4b, 0xf3, 0x12, 0x76, 0x16, 0xa5, 0x80, 0x30, 0xe3, 0x3b, 0x12, 0xc6, - 0x30, 0xfc, 0x78, 0x89, 0xe9, 0xde, 0xf4, 0x36, 0x0e, 0x9c, 0x4a, 0x29, 0x6c, 0x15, 0x94, 0x1c, - 0xf6, 0x18, 0x60, 0x88, 0x32, 0x00, 0x98, 0xba, 0x13, 0xb6, 0x78, 0xb3, 0x1b, 0xa8, 0xd8, 0x0f, - 0xd1, 0x50, 0x42, 0x8d, 0x96, 0xcd, 0xd5, 0xc0, 0x9f, 0x37, 0x14, 0xdb, 0x74, 0x6f, 0x68, 0x45, - 0x9f, 0x3f, 0xb6, 0xea, 0x26, 0x0b, 0x2e, 0xa2, 0x55, 0xe7, 0x42, 0x6a, 0xfa, 0xc8, 0x63, 0xf8, - 0x3f, 0xf2, 0xa1, 0x40, 0x91, 0x0f, 0x05, 0xef, 0x75, 0x29, 0x24, 0x31, 0x1d, 0xf2, 0x60, 0x82, - 0x24, 0xd2, 0x03, 0x4b, 0x21, 0x4c, 0x91, 0x07, 0x53, 0xff, 0x99, 0x33, 0x85, 0x44, 0xb3, 0x2a, - 0x73, 0xd1, 0x28, 0x6d, 0xd9, 0x04, 0xb6, 0xd8, 0x52, 0x0e, 0x79, 0xd0, 0x70, 0x19, 0x7a, 0xb5, - 0x4f, 0xc6, 0x48, 0xe3, 0xb2, 0x02, 0x8a, 0x94, 0x34, 0x97, 0x8f, 0x90, 0x94, 0x4f, 0x7a, 0xd6, - 0x9c, 0xef, 0xd0, 0x89, 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x6a, 0x54, 0x85, 0x60, 0x6b, 0xb0, 0x26, 0xf3, 0xa9, 0xe0, 0x27, 0xae, 0xa7, 0x9f, 0x23, 0xde, - 0x43, 0x25, 0xa3, 0x2d, 0x8a, 0x65, 0x2f, 0x87, 0x66, 0x15, 0x10, 0x93, 0x60, 0x3f, 0x1a, 0xd5, - 0x0e, 0x36, 0x09, 0x35, 0xdc, 0x1d, 0x2b, 0x48, 0x13, 0x44, 0x4a, 0xca, 0x01, 0x07, 0x67, 0x82, - 0x1f, 0x65, 0xca, 0x14, 0xe3, 0x24, 0xa4, 0x16, 0xc5, 0x18, 0x1d, 0xed, 0x6b, 0x07, 0xc1, 0x47, - 0xa8, 0x6e, 0x9f, 0xdf, 0xbb, 0x38, 0x15, 0x66, 0xce, 0xe8, 0x3e, 0x18, 0x1c, 0x29, 0xe5, 0x27, - 0xdd, 0x5c, 0x71, 0x07, 0xbd, 0x3e, 0xba, 0x1c, 0x0c, 0x1c, 0xd9, 0x64, 0xe3, 0xc2, 0x05, 0xb9, - 0x3b, 0x66, 0x2e, 0xd8, 0xcc, 0xfd, 0xb5, 0x20, 0x27, 0x21, 0xb7, 0x51, 0x9b, 0x26, 0xa3, 0xd6, - 0xa0, 0x3f, 0x4f, 0x19, 0xd7, 0xfc, 0xf9, 0x05, 0x30, 0xfe, 0xe1, 0xb9, 0x05, 0xb8, 0x44, 0xf2, - 0xc6, 0x34, 0xcb, 0x40, 0xf3, 0xf9, 0xaf, 0xcf, 0x2c, 0xb8, 0x19, 0x78, 0x11, 0xaf, 0xe3, 0x40, - 0xca, 0x26, 0xd2, 0x81, 0x89, 0x62, 0x92, 0x05, 0x96, 0xc6, 0xb3, 0x64, 0xf1, 0xb9, 0xca, 0x55, - 0x35, 0xf2, 0xb2, 0x13, 0x37, 0xea, 0x13, 0xb8, 0x91, 0xb5, 0x30, 0x47, 0x60, 0x15, 0x17, 0x81, - 0x55, 0x5c, 0x11, 0x79, 0x90, 0x65, 0x2c, 0xbd, 0x23,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21, 0xf8, 0xa3, - 0xe0, 0x73, 0x9f, 0xad, 0x15, 0x57, 0xb0, 0xc4, 0x4a, 0x62, 0x37, 0x61, 0x65, 0x58, 0x03, 0x34, - 0x23, 0xff, 0x6b, 0x28, 0xde, 0x86, 0x63, 0x5c, 0x23, 0xec, 0xb1, 0xb6, 0x12, 0x38, 0x19, 0xae, - 0x41, 0x21, 0xb3, 0x14, 0x20, 0x07, 0xbb, 0x99, 0xe3, 0xe1, 0x4d, 0x15, 0x97, 0x87, 0x49, 0x81, - 0xcb, 0x32, 0xd0, 0x15, 0x13, 0xa3, 0x07, 0xb4, 0x32, 0x92, 0x3d, 0x56, 0x38, 0x6d, 0xf6, 0xf9, - 0xef, 0x60, 0x01, 0x7f, 0x7f, 0xf6, 0xb4, 0x42, 0xb0, 0x20, 0xbc, 0xac, 0x18, 0xb4, 0x40, 0x87, - 0xfe, 0x08, 0x87, 0x41, 0xe2, 0xa9, 0xe5, 0xef, 0xd1, 0xb9, 0xb6, 0x71, 0x22, 0x84, 0x14, 0x9b, - 0xae, 0x10, 0xdc, 0xff, 0x35, 0x6a, 0xd0, 0x1d, 0xa4, 0x15, 0x80, 0xc5, 0x85, 0x6f, 0x8e, 0xda, - 0x26, 0xce, 0x6e, 0xa2, 0x8d, 0x13, 0x08, 0x12, 0xb0, 0x48, 0x35, 0x9a, 0x4a, 0xc1, 0xf6, 0x76, - 0xd3, 0xe4, 0x3f, 0xfe, 0xf3, 0xb7, 0x44, 0x0d, 0x5c, 0x9d, 0x05, 0x0b, 0xda, 0x8b, 0x03, 0xc8, - 0xf2, 0xd9, 0xfa, 0xe6, 0x96, 0x63, 0x0c, 0xe2, 0x06, 0x50, 0x8b, 0x29, 0x14, 0xdf, 0xdb, 0x22, - 0x2a, 0xff, 0xfe, 0x21, 0x56, 0x50, 0x65, 0xda, 0xff, 0xe7, 0x58, 0x81, 0x68, 0x34, 0xca, 0x63, - 0x05, 0xa1, 0xe0, 0x0d, 0x08, 0x3c, 0xfc, 0xfd, 0xad, 0x42, 0x14, 0x8f, 0x8a, 0xf0, 0x73, 0xdf, - 0x61, 0xe3, 0x92, 0x07, 0x61, 0xb1, 0xb2, 0x18, 0x1e, 0xdd, 0x98, 0x77, 0x8a, 0xcd, 0x43, 0x69, - 0x68, 0xf8, 0xc8, 0xa4, 0xde, 0xe3, 0x69, 0xa4, 0x80, 0x48, 0xeb, 0x59, 0x78, 0xb4, 0x6e, 0xb4, - 0x73, 0xee, 0x68, 0x41, 0x25, 0x46, 0x0a, 0xc4, 0x3a, 0x65, 0x95, 0x23, 0x37, 0xf5, 0x76, 0x53, - 0x4a, 0x11, 0x29, 0x70, 0xb4, 0x76, 0xf2, 0xb4, 0x79, 0xe1, 0xde, 0x0a, 0x2f, 0x5c, 0xa3, 0xf4, - 0xc2, 0xa5, 0xc1, 0xc7, 0x00, 0x45, 0xf2, 0xa9, 0xbb, 0x6d, 0xfc, 0x05, 0xdc, 0x3b, 0x85, 0x85, - 0xe5, 0x57, 0xc5, 0x29, 0xc0, 0xd3, 0x74, 0x02, 0x44, 0xed, 0x70, 0x0d, 0x2d, 0x2f, 0x6c, 0x93, - 0x80, 0x64, 0x0e, 0xac, 0x85, 0xce, 0x81, 0xc4, 0x09, 0xd4, 0x62, 0x9c, 0x40, 0xed, 0x58, 0x71, - 0xc5, 0xd8, 0xff, 0xd7, 0x38, 0x81, 0x6d, 0x84, 0x5a, 0x27, 0xa3, 0xab, 0x34, 0x2e, 0xc7, 0x98, - 0x00, 0x33, 0xc8, 0xfa, 0x84, 0xbd, 0xc7, 0x75, 0x64, 0xc2, 0x98, 0x39, 0x12, 0x1f, 0x81, 0x93, - 0x7b, 0x68, 0x17, 0x6e, 0x2e, 0x8a, 0xfc, 0x4e, 0x35, 0x17, 0x8d, 0x88, 0x82, 0xc8, 0x37, 0x55, - 0x4b, 0xac, 0x46, 0xac, 0xb4, 0x6a, 0xa5, 0xe4, 0x5b, 0x4e, 0xb5, 0xbd, 0xd5, 0x88, 0x95, 0x56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e, 0xa5, 0xe3, - 0x3d, 0x4b, 0xc4, 0x7b, 0x56, 0x8d, 0x31, 0x30, 0x93, 0x84, 0x50, 0x11, 0xed, 0x1b, 0x4a, 0x56, - 0x93, 0x71, 0x08, 0x80, 0xca, 0x3d, 0xde, 0x14, 0x21, 0x1a, 0x45, 0x76, 0x43, 0x00, 0x9e, 0x21, - 0xa2, 0x5d, 0xa6, 0xc0, 0xfd, 0x96, 0x89, 0xb4, 0x94, 0xe4, 0x31, 0x94, 0x26, 0xdf, 0x15, 0x24, - 0x1b, 0x76, 0xd4, 0xa8, 0x31, 0x92, 0x58, 0x2e, 0x46, 0xc9, 0x82, 0xc1, 0x86, 0x76, 0x0c, 0x9d, - 0xb0, 0x81, 0x6b, 0x16, 0xfc, 0xe2, 0x09, 0x5b, 0x02, 0x66, 0xac, 0xfd, 0xc2, 0xbf, 0xc4, 0x73, - 0xc1, 0x86, 0x39, 0x5c, 0x31, 0xfb, 0xe4, 0xcf, 0x9a, 0x68, 0x0a, 0x27, 0x58, 0x72, 0x34, 0x20, - 0xc8, 0x72, 0x84, 0xad, 0xf9, 0xed, 0x35, 0x34, 0x07, 0x4c, 0x59, 0x3e, 0x07, 0x46, 0x5a, 0x32, - 0xe1, 0x24, 0xdd, 0xf4, 0x25, 0x68, 0x06, 0xf8, 0xec, 0xda, 0xb7, 0x30, 0xd5, 0x32, 0x0d, 0x3c, - 0x22, 0x33, 0xcd, 0xc0, 0xfb, 0x48, 0x2a, 0x20, 0x83, 0xb1, 0xad, 0x3d, 0x5e, 0x08, 0x11, 0x6d, - 0xed, 0x10, 0xb2, 0xc2, 0x4e, 0x02, 0xae, 0x8e, 0x42, 0xae, 0x96, 0x95, 0xba, 0x44, 0xdb, 0x7d, - 0xe3, 0x10, 0x3f, 0x0a, 0xb5, 0x0f, 0xa1, 0x16, 0x68, 0x08, 0xa1, 0x15, 0x92, 0x0b, 0x31, 0x3d, - 0xe5, 0x6f, 0x95, 0x03, 0xf6, 0x08, 0x75, 0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0xd9, 0x32, - 0x03, 0xce, 0xb3, 0x4c, 0xb3, 0x6f, 0x7d, 0x94, 0x65, 0x0d, 0x9c, 0xa8, 0x27, 0x5b, 0xcf, 0xd6, - 0xc4, 0x9b, 0x0e, 0x09, 0xbb, 0xb0, 0xba, 0x11, 0xde, 0x73, 0x03, 0x13, 0xc5, 0x64, 0x08, 0xa1, - 0x22, 0x3a, 0x02, 0x9f, 0xee, 0x28, 0x69, 0x55, 0x14, 0x31, 0x47, 0x45, 0x22, 0xc4, 0x29, 0x5b, - 0x7b, 0xd5, 0x48, 0x89, 0xcd, 0x0d, 0x17, 0xdc, 0xdc, 0x69, 0x54, 0xc0, 0xcd, 0xa4, 0xe8, 0xc9, - 0x4f, 0xcb, 0xcb, 0x3d, 0x69, 0x55, 0x8c, 0xce, 0x56, 0x6a, 0xee, 0xae, 0x6c, 0x2b, 0x6c, 0x88, - 0x93, 0x2f, 0x4c, 0xe5, 0xc3, 0xa1, 0x92, 0x0e, 0x07, 0x4c, 0x85, 0xad, 0xd0, 0x7c, 0xac, 0xb6, - 0x2e, 0x57, 0x39, 0x22, 0xed, 0xbf, 0x48, 0x96, 0x8e, 0xc8, 0xde, 0x3d, 0xc3, 0x50, 0x63, 0x6c, - 0x12, 0x45, 0x80, 0x3b, 0x95, 0xce, 0x09, 0x9c, 0x9d, 0xbe, 0x97, 0x1e, 0x14, 0xbc, 0x26, 0x9d, - 0x51, 0x2b, 0x76, 0xa7, 0x3a, 0x95, 0x79, 0x87, 0x69, 0x80, 0xed, 0xa2, 0x9a, 0x31, 0xb1, 0x64, - 0xdc, 0x35, 0x49, 0xde, 0x9d, 0xc1, 0xd3, 0x31, 0xd7, 0x35, 0x55, 0xb5, 0x91, 0xa8, 0x88, 0x23, - 0x53, 0x56, 0xf4, 0x6d, 0x14, 0x6a, 0xf0, 0x54, 0x78, 0x29, 0x59, 0x17, 0x3c, 0x28, 0xeb, 0x02, - 0xa1, 0x2b, 0x09, 0x93, 0x81, 0x1a, 0xe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d4, 0x6e, 0xde, 0x52, 0xe6, 0x48, 0x11, 0x54, 0x25, - 0xf5, 0x72, 0xc6, 0x32, 0xb3, 0xd1, 0x64, 0xae, 0x51, 0x46, 0xec, 0xc1, 0x08, 0x95, 0xfd, 0x87, - 0x35, 0x88, 0xb5, 0x6d, 0x8e, 0x32, 0xfd, 0x87, 0xb8, 0x6b, 0x54, 0x9c, 0x41, 0x6f, 0x20, 0x17, - 0xdd, 0x79, 0xfc, 0xb5, 0xa2, 0x39, 0x5b, 0x1b, 0xa0, 0x03, 0xdb, 0xff, 0x39, 0x0e, 0xfb, 0x68, - 0xe4, 0xc8, 0x99, 0x33, 0x89, 0xc4, 0xa2, 0xd1, 0x58, 0xac, 0x1f, 0x42, 0xb1, 0x47, 0xf4, 0x85, - 0xa0, 0x12, 0x3d, 0x22, 0x95, 0xa3, 0x5b, 0x8d, 0x22, 0x65, 0xae, 0x08, 0xc4, 0xd2, 0xc2, 0xfd, - 0x2a, 0x59, 0x17, 0xec, 0xe5, 0x71, 0x26, 0x41, 0xe5, 0x42, 0x2f, 0xb3, 0xa2, 0x3d, 0x34, 0x11, - 0xd5, 0x9e, 0xd2, 0x34, 0x49, 0xd3, 0x81, 0x68, 0x93, 0x10, 0xee, 0x58, 0x80, 0x68, 0xea, 0x1a, - 0x45, 0x9a, 0xfe, 0x35, 0x68, 0x0b, 0xa4, 0xe9, 0xbf, 0x25, 0x78, 0x5b, 0x91, 0xce, 0xd6, 0x66, - 0xd1, 0xfe, 0x1d, 0xff, 0x14, 0xc4, 0x05, 0xee, 0x23, 0x47, 0xce, 0x9e, 0x4d, 0x62, 0x9f, 0x13, - 0xd1, 0x3c, 0xee, 0x28, 0x7f, 0x9a, 0x09, 0x64, 0xda, 0x0a, 0x01, 0x36, 0xb6, 0x6e, 0x19, 0x27, - 0x70, 0x95, 0x48, 0x96, 0x1b, 0xa5, 0xa0, 0x77, 0x53, 0xcc, 0x0b, 0xca, 0x2d, 0x2b, 0x1a, 0x1a, - 0x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 0x4f, 0x9d, 0x64, 0x80, 0x9d, 0xb6, 0x41, 0x54, 0x1e, 0x1b, - 0xda, 0x22, 0x41, 0x30, 0x01, 0x40, 0xda, 0x55, 0xc8, 0x53, 0x4c, 0xa0, 0x52, 0xac, 0x50, 0x6c, - 0x27, 0x27, 0x55, 0x6d, 0x80, 0xe1, 0xf0, 0x0e, 0xfb, 0xbe, 0x65, 0x6e, 0xb1, 0x25, 0xa2, 0xa4, - 0x84, 0x6d, 0x02, 0xc7, 0x65, 0xbd, 0x79, 0x44, 0xba, 0x4d, 0xd2, 0xf8, 0x20, 0x96, 0x89, 0xfc, - 0x70, 0x8a, 0x04, 0x5d, 0xe7, 0x24, 0x7f, 0x5b, 0xb5, 0xb1, 0x67, 0x95, 0x31, 0xa9, 0x34, 0xd2, - 0xb0, 0x92, 0x01, 0xa9, 0x37, 0x01, 0xa5, 0xa4, 0x85, 0x4d, 0x22, 0x20, 0xf5, 0x26, 0xe0, 0x2e, - 0x20, 0xf5, 0x26, 0x80, 0xd4, 0x9b, 0x80, 0xbd, 0xe4, 0xb9, 0x15, 0x90, 0x78, 0x2d, 0x20, 0xf5, - 0x26, 0xe4, 0x19, 0x99, 0x49, 0x7e, 0x32, 0x98, 0x05, 0xe0, 0xb8, 0xff, 0x69, 0x42, 0xed, 0xc1, - 0x73, 0x58, 0x07, 0xa5, 0xd1, 0x42, 0x14, 0x38, 0x18, 0x7c, 0xb7, 0xa6, 0xa2, 0xaf, 0x58, 0x8c, - 0x42, 0x99, 0x00, 0xd0, 0x5d, 0xf5, 0x45, 0x3c, 0x37, 0x3d, 0x33, 0x4c, 0xd0, 0x52, 0x7c, 0x38, - 0xe9, 0x50, 0xe3, 0xb0, 0xbb, 0x42, 0x9c, 0x65, 0x2e, 0x6d, 0x59, 0x0a, 0x01, 0xe8, 0xd4, 0x12, - 0x76, 0x4e, 0x2d, 0x1f, 0x82, 0xb2, 0x2d, 0x34, 0x09, 0xa4, 0xfb, 0x28, 0xb2, 0xb4, 0x55, 0x85, - 0x33, 0x15, 0xd0, 0xd6, 0x49, 0x72, 0xf1, 0x3c, 0x55, 0xe4, 0xe5, 0x67, 0x9b, 0x55, 0x96, 0xcf, - 0x22, 0x51, 0xbf, 0x28, 0xa3, 0x55, 0xa4, 0xd2, 0x25, 0x00, 0x8f, 0xdd, 0x47, 0xe2, 0x01, 0x93, - 0x34, 0xa0, 0xa2, 0x79, 0xb2, 0xbd, 0x60, 0x4e, 0xae, 0x5a, 0x04, 0xa0, 0xb7, 0xc1, 0x1d, 0x5d, - 0x34, 0x95, 0x5a, 0x5a, 0xcb, 0xb0, 0xac, 0xfa, 0x4a, 0xf6, 0x15, 0x11, 0xd7, 0xea, 0x4a, 0xe2, - 0x9a, 0x8a, 0xec, 0x97, 0xb9, 0xaf, 0x40, 0x04, 0xeb, 0x77, 0x79, 0x4d, 0xbd, 0x19, 0xd3, 0x8f, - 0xe6, 0x6e, 0x16, 0x8b, 0x72, 0xe0, 0x17, 0x58, 0x64, 0x47, 0x6f, 0xfa, 0x21, 0x78, 0x65, 0x78, - 0xc6, 0xcc, 0x95, 0xdb, 0x50, 0x35, 0x7b, 0xed, 0x65, 0x8a, 0xf5, 0x3e, 0x9f, 0x87, 0xbd, 0xea, - 0x1a, 0x4c, 0x3c, 0xb3, 0x4e, 0x08, 0x48, 0x78, 0x57, 0x2b, 0xd6, 0xac, 0xbe, 0xe3, 0x2c, 0xba, - 0x1b, 0x86, 0x5f, 0x84, 0x55, 0x85, 0x3b, 0xd0, 0x26, 0x22, 0x90, 0x0b, 0x93, 0x2c, 0x44, 0xcf, - 0xca, 0xf4, 0x50, 0xfe, 0x0a, 0xef, 0xb6, 0xb6, 0x0c, 0x09, 0x03, 0x09, 0x8d, 0x87, 0x10, 0x5d, - 0x1b, 0x4a, 0xf8, 0x63, 0x47, 0x0b, 0x63, 0x73, 0x98, 0x46, 0x88, 0x91, 0x4d, 0x98, 0xa7, 0x51, - 0x86, 0xea, 0x12, 0x19, 0xbd, 0x58, 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0x55, 0xf7, 0x78, 0x3a, 0x29, 0x21, 0xb3, 0x53, 0xa4, 0xb1, 0x4a, 0x76, 0x56, - 0x62, 0x96, 0xc8, 0xe1, 0x3b, 0x62, 0x67, 0x5b, 0x95, 0x46, 0x6c, 0x03, 0x81, 0xc7, 0xe3, 0x1f, - 0x29, 0x1b, 0x4b, 0x7d, 0xf4, 0x3b, 0x3c, 0xf5, 0x1a, 0xfc, 0x51, 0x38, 0xdb, 0x67, 0x4b, 0xc5, - 0x15, 0x76, 0x53, 0x66, 0x66, 0xc5, 0x0b, 0x7b, 0x79, 0x95, 0x83, 0x9d, 0x45, 0xcf, 0x74, 0x12, - 0x38, 0x49, 0x12, 0x56, 0x31, 0xa7, 0x14, 0xca, 0xdd, 0x9e, 0x83, 0x52, 0x8b, 0x4d, 0x03, 0xd4, - 0x14, 0xc0, 0xa1, 0x28, 0x84, 0x11, 0xf9, 0xcc, 0x48, 0x80, 0x8e, 0x94, 0xaa, 0x25, 0xd0, 0x1a, - 0x68, 0x15, 0xc9, 0x47, 0x50, 0x1e, 0xd7, 0x1e, 0x60, 0x61, 0xee, 0xea, 0xa9, 0x53, 0x4a, 0x4a, - 0xc6, 0xcd, 0x5a, 0xfd, 0xea, 0x29, 0xc7, 0x9b, 0x51, 0x83, 0xb5, 0xf3, 0x40, 0x3c, 0xba, 0xe2, - 0x69, 0x80, 0x07, 0x09, 0x71, 0x4b, 0x84, 0xe7, 0xef, 0x8f, 0xae, 0xdf, 0x00, 0x57, 0xc9, 0x2e, - 0xce, 0xc5, 0xf6, 0xf8, 0x75, 0xae, 0x11, 0xb6, 0x48, 0x3b, 0x09, 0x2a, 0xc9, 0x22, 0xad, 0x02, - 0x36, 0x50, 0xd8, 0xa6, 0xf6, 0xe3, 0xed, 0x2d, 0xf2, 0xb8, 0x63, 0x2b, 0x4f, 0x2d, 0x47, 0x6a, - 0xd9, 0x8c, 0x3a, 0x83, 0x34, 0xa6, 0x68, 0x31, 0x98, 0xa8, 0x97, 0x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0x66, 0x92, 0x7a, 0xf8, - 0x11, 0x88, 0x41, 0x5f, 0xae, 0x01, 0x10, 0x21, 0xf6, 0x04, 0x9a, 0xed, 0x8f, 0x66, 0x83, 0x35, - 0x20, 0x17, 0x7f, 0xb3, 0x09, 0x33, 0x89, 0x1d, 0xa7, 0x09, 0xc7, 0xb8, 0xe3, 0x41, 0x9d, 0xe2, - 0xc9, 0x4f, 0x25, 0xe1, 0x69, 0xdb, 0x45, 0xc6, 0x3b, 0x89, 0xc0, 0x4d, 0x30, 0x30, 0x11, 0xae, - 0x85, 0x67, 0x34, 0x7b, 0x58, 0x1d, 0x71, 0x0a, 0x87, 0x6b, 0x89, 0xb7, 0xba, 0x8a, 0x4d, 0x24, - 0x44, 0x87, 0xc0, 0x3f, 0x0b, 0xae, 0x82, 0x7f, 0x6b, 0xca, 0x30, 0x1e, 0xf6, 0xe4, 0x3d, 0x5d, - 0xb3, 0xd1, 0xba, 0xb5, 0x14, 0x50, 0xab, 0x94, 0x49, 0x49, 0x66, 0x4c, 0x34, 0xb6, 0x5f, 0x72, - 0x06, 0xf5, 0x64, 0x15, 0xfa, 0x22, 0xbc, 0xdc, 0x61, 0x46, 0x62, 0xf1, 0x13, 0x8a, 0x3e, 0xbd, - 0x0e, 0x49, 0x5e, 0x0f, 0xb8, 0x83, 0x6c, 0xce, 0xa4, 0x7a, 0x07, 0x35, 0x87, 0x66, 0xaf, 0x44, - 0x57, 0x91, 0x17, 0xf8, 0x8f, 0x6d, 0xa2, 0xfd, 0x43, 0x36, 0x8c, 0x40, 0x33, 0x10, 0xd3, 0xb4, - 0x31, 0x9a, 0x2b, 0x98, 0x77, 0xd8, 0xcc, 0x5b, 0x15, 0xbc, 0x83, 0xfb, 0xfa, 0x83, 0xb5, 0x85, - 0x52, 0x83, 0xb5, 0x55, 0xde, 0xed, 0x2a, 0x6f, 0x25, 0x62, 0x38, 0xa2, 0xd6, 0x30, 0x82, 0xe4, - 0xb5, 0xa9, 0xa2, 0xb5, 0x36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 0x0a, 0x3d, 0x74, 0x68, 0x05, - 0x89, 0x4f, 0x61, 0x69, 0x98, 0x1e, 0x95, 0x17, 0x05, 0x1a, 0x21, 0x32, 0x36, 0x06, 0x95, 0x49, - 0xce, 0xab, 0x82, 0x24, 0x73, 0xd5, 0x55, 0xf0, 0xd1, 0x16, 0x22, 0x25, 0xf3, 0x31, 0x1e, 0xd5, - 0x05, 0xce, 0x12, 0x73, 0x5c, 0x66, 0xfc, 0x32, 0x46, 0x00, 0xab, 0x98, 0x7b, 0x8a, 0xe6, 0xf0, - 0x21, 0x9e, 0x92, 0xc0, 0x1a, 0x13, 0xa1, 0x89, 0x4b, 0xb0, 0x46, 0xc5, 0xc5, 0x80, 0x84, 0x08, - 0x4d, 0xdf, 0x07, 0xf8, 0xdf, 0x25, 0x74, 0x11, 0x0d, 0xbb, 0xf0, 0x25, 0xfe, 0x77, 0x01, 0x74, - 0x07, 0xb9, 0xe7, 0x2b, 0x87, 0x82, 0x26, 0x43, 0xbf, 0x82, 0xa6, 0xdb, 0xe8, 0x13, 0xd4, 0x65, - 0xc6, 0x0c, 0xf8, 0x70, 0x0c, 0x7b, 0x38, 0x7f, 0x63, 0x3e, 0x0a, 0x04, 0x3f, 0x91, 0x17, 0xfe, - 0x08, 0x39, 0x7b, 0x25, 0xe4, 0x2a, 0x2b, 0x36, 0x6e, 0xdc, 0x98, 0x7f, 0xb2, 0xf2, 0xd1, 0x76, - 0x72, 0x1a, 0xef, 0x73, 0x3c, 0xd1, 0xb2, 0xb4, 0x42, 0x7a, 0x2d, 0x66, 0x27, 0x1f, 0x21, 0xc4, - 0x37, 0x45, 0x18, 0xf0, 0xf9, 0xe1, 0x86, 0x1b, 0xa5, 0x13, 0xe8, 0x36, 0xc2, 0x47, 0xe5, 0xb1, - 0x28, 0x1b, 0x89, 0x42, 0xfe, 0xbd, 0x1a, 0x32, 0xad, 0x9b, 0xc5, 0x5b, 0x4d, 0x94, 0x91, 0xb5, - 0xc6, 0x2a, 0x9d, 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, 0x01, 0xc0, 0x54, - 0x67, 0x96, 0xe3, 0xb1, 0x66, 0x11, 0x96, 0x11, 0x6b, 0x50, 0x09, 0xf1, 0x1d, 0xe6, 0x14, 0x1f, - 0xdc, 0xb8, 0x89, 0x18, 0x1f, 0x45, 0xab, 0x59, 0x91, 0xc3, 0x33, 0x98, 0xe4, 0x15, 0x70, 0x53, - 0xd3, 0x28, 0x0a, 0xdf, 0x44, 0x89, 0x41, 0x18, 0x54, 0x2c, 0xe4, 0x7d, 0x3c, 0x09, 0x23, 0x7f, - 0xb2, 0x8e, 0x4f, 0x63, 0x9f, 0x64, 0x1f, 0x36, 0x8d, 0xc6, 0xd4, 0xaa, 0x44, 0xbf, 0x40, 0xce, - 0xa9, 0x42, 0x66, 0x89, 0x42, 0xa6, 0x34, 0xb1, 0x46, 0xfb, 0x1a, 0x78, 0x2e, 0xa2, 0x6a, 0x80, - 0xb4, 0xe2, 0x28, 0x91, 0x3c, 0xe3, 0x0f, 0x4a, 0x91, 0x31, 0x54, 0x29, 0x32, 0xf2, 0x89, 0xb4, - 0x64, 0x49, 0x71, 0x62, 0x2c, 0xdf, 0xc8, 0x93, 0xaa, 0xf3, 0x1a, 0x11, 0x3c, 0x15, 0x24, 0xc0, - 0x84, 0x78, 0x97, 0xf8, 0x5c, 0xc2, 0xf9, 0x60, 0x21, 0x31, 0x8c, 0xca, 0x88, 0x61, 0xd1, 0x09, - 0x16, 0xb5, 0x78, 0x88, 0x25, 0x1f, 0xb8, 0x3f, 0x7f, 0xf6, 0xac, 0x1d, 0x85, 0xb3, 0xb3, 0xb7, - 0xad, 0xec, 0xd4, 0xba, 0x55, 0xd7, 0x94, 0x56, 0xcd, 0xba, 0x00, 0xc3, 0x3e, 0xa0, 0xdd, 0xbf, - 0x0f, 0x55, 0x1e, 0x5c, 0x29, 0x49, 0x80, 0x48, 0x3b, 0x16, 0x5e, 0x1b, 0xcb, 0x85, 0x4c, 0x5a, - 0xbb, 0x7f, 0x45, 0x87, 0x85, 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2, 0xc2, 0x87, 0x3c, 0xf1, 0xa5, 0x19, 0x02, 0x8c, 0x15, 0x42, 0x1d, 0x79, 0xcc, - 0xa4, 0x92, 0xf1, 0xf8, 0xfb, 0xc7, 0x91, 0x0a, 0x44, 0x94, 0x68, 0x58, 0xd9, 0xfb, 0xab, 0xe3, - 0x57, 0x0f, 0xc8, 0x58, 0xbb, 0x36, 0x63, 0x00, 0xf2, 0xda, 0x30, 0x70, 0x23, 0x58, 0xa8, 0xb1, - 0xa2, 0xe9, 0x60, 0x05, 0x9a, 0x01, 0x83, 0x50, 0x26, 0xc8, 0xb5, 0x3f, 0x02, 0xd7, 0x51, 0x23, - 0x70, 0xbd, 0x3b, 0xc1, 0xd7, 0x7c, 0xcc, 0x7d, 0x6d, 0xe0, 0xba, 0xd1, 0x3c, 0x43, 0xc3, 0x78, - 0x28, 0xe4, 0x19, 0x82, 0xce, 0x0c, 0x43, 0x6e, 0x95, 0x81, 0x7c, 0x75, 0x4f, 0xea, 0x6b, 0x59, - 0x3d, 0x16, 0x73, 0x87, 0x4a, 0xcf, 0x35, 0x7f, 0xf9, 0x8e, 0x37, 0x0b, 0x4d, 0x30, 0x41, 0x08, - 0xf0, 0x54, 0x58, 0x62, 0x04, 0x3f, 0x78, 0xe2, 0x2e, 0xdb, 0x90, 0x64, 0x28, 0xb3, 0xd2, 0x78, - 0x48, 0x80, 0xc5, 0x7d, 0xab, 0x31, 0x9a, 0x0b, 0x38, 0x75, 0x66, 0xdd, 0x8b, 0x65, 0x6b, 0xff, - 0x5e, 0xbc, 0xe4, 0xfb, 0xc5, 0xac, 0x9d, 0x99, 0xf1, 0xde, 0x95, 0xc3, 0x68, 0x6d, 0xde, 0x2c, - 0x18, 0x3c, 0x65, 0x70, 0x56, 0x01, 0x00, 0x1b, 0x72, 0x01, 0xbb, 0x7d, 0xd5, 0x1f, 0x6b, 0x9b, - 0xa3, 0xd3, 0x93, 0x66, 0xb1, 0x75, 0x66, 0xa1, 0xc7, 0x20, 0x24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 0xc1, 0xec, 0x03, 0x5b, 0xb9, 0x97, 0xc4, 0x46, 0xc4, 0x44, 0x31, 0x3c, 0xb1, 0x11, 0x31, 0x51, - 0x5c, 0x24, 0x86, 0x65, 0x12, 0xcc, 0x86, 0x71, 0x58, 0xba, 0x62, 0xf1, 0xb3, 0x7a, 0x6e, 0x20, - 0x97, 0x2d, 0x7c, 0xd0, 0x20, 0xea, 0x6e, 0x45, 0x13, 0x9e, 0x7f, 0x84, 0x50, 0xa1, 0xe7, 0x4d, - 0x4e, 0x0e, 0x68, 0x94, 0x93, 0x03, 0xb3, 0xc1, 0x45, 0xd4, 0x02, 0x5c, 0x24, 0xeb, 0x3a, 0xc8, - 0x91, 0x0e, 0xfa, 0x32, 0x4f, 0x31, 0xed, 0x0b, 0x53, 0x58, 0x53, 0x05, 0x75, 0x6e, 0x69, 0x4b, - 0x2e, 0x95, 0x83, 0x69, 0x92, 0x3d, 0x55, 0x36, 0x44, 0x96, 0x8f, 0xed, 0x08, 0x4b, 0x52, 0x76, - 0x74, 0x9c, 0x38, 0x7f, 0x50, 0x97, 0x81, 0xc7, 0xa9, 0x05, 0x94, 0xd4, 0x59, 0xc7, 0xbb, 0x36, - 0x9a, 0x49, 0xa6, 0x5a, 0xc3, 0x64, 0x58, 0x8f, 0x9e, 0x96, 0x58, 0xba, 0x62, 0x3f, 0xa0, 0xbb, - 0x39, 0x88, 0x59, 0xc4, 0xeb, 0x69, 0xde, 0x1e, 0x32, 0x7b, 0x16, 0xa5, 0xcf, 0xad, 0x5b, 0x6f, - 0x55, 0x55, 0x70, 0x05, 0x75, 0x5d, 0x75, 0x9b, 0x6b, 0x55, 0xae, 0x97, 0x8f, 0xb7, 0x1c, 0x50, - 0x79, 0xd4, 0x29, 0x02, 0x0b, 0x68, 0xe1, 0x08, 0x5a, 0xf9, 0x20, 0x8e, 0x0a, 0x5c, 0xf1, 0x0a, - 0xcf, 0x10, 0xa2, 0x86, 0x26, 0xb1, 0x22, 0x37, 0x0f, 0x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xb2, 0xbb, 0x12, 0x10, 0x7e, 0xba, 0xf3, 0x6e, 0x06, 0x9d, 0xa4, - 0x59, 0x86, 0xe2, 0x25, 0x15, 0xc5, 0xb3, 0xe9, 0x54, 0xcd, 0x33, 0x14, 0xaf, 0xa8, 0x28, 0x9e, - 0x4f, 0x26, 0xac, 0x78, 0xa1, 0xa1, 0x38, 0xa7, 0x42, 0x52, 0xc3, 0xc5, 0x88, 0xfb, 0xd8, 0xdf, - 0x48, 0xab, 0x04, 0xd3, 0xbc, 0xdb, 0x11, 0x40, 0xad, 0x93, 0x13, 0x82, 0xd8, 0x48, 0x1c, 0x12, - 0xbd, 0x35, 0xc6, 0x61, 0xf2, 0x66, 0x25, 0x29, 0xaa, 0x8c, 0xc0, 0x68, 0x35, 0x47, 0x98, 0xa3, - 0x12, 0x48, 0xca, 0x2a, 0x60, 0xc6, 0x4c, 0x79, 0x7c, 0x8c, 0x3f, 0x11, 0xea, 0xc4, 0x17, 0x50, - 0x7c, 0xf6, 0x27, 0x7f, 0x8d, 0x8e, 0x88, 0x00, 0x92, 0x6e, 0x14, 0xbf, 0xa2, 0x14, 0x9f, 0xd9, - 0x77, 0xde, 0x1d, 0x31, 0x6a, 0x01, 0x9c, 0x37, 0x66, 0xe4, 0x02, 0xd8, 0xe6, 0xec, 0xb0, 0xac, - 0x5e, 0x0d, 0xe3, 0x2b, 0x50, 0x6e, 0x72, 0xab, 0x96, 0xc9, 0xc9, 0xad, 0x5b, 0x76, 0x62, 0xcb, - 0x06, 0x8d, 0xed, 0xd1, 0x6f, 0x62, 0xda, 0x98, 0xda, 0x89, 0xaf, 0xae, 0x64, 0x5e, 0xd1, 0xd4, - 0xba, 0x36, 0xf9, 0xef, 0x89, 0x20, 0xe1, 0x8a, 0xe6, 0x09, 0x48, 0x9c, 0x5c, 0x39, 0x68, 0xde, - 0xe8, 0x61, 0xb7, 0x40, 0x80, 0x7d, 0x20, 0x30, 0xdb, 0x07, 0x61, 0x81, 0xc8, 0xd3, 0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 0x5a, 0x4f, 0x26, 0xcd, 0xa9, 0x78, 0xe2, 0x2a, 0x24, 0xf8, 0x82, 0x30, 0xa1, 0x0f, 0x94, - 0x81, 0x14, 0xd6, 0xe7, 0xa4, 0xb0, 0x3c, 0x78, 0x2c, 0x90, 0x2e, 0x8e, 0x98, 0x2c, 0x45, 0x4f, - 0x10, 0x2c, 0x08, 0x43, 0x1f, 0x48, 0xa4, 0x14, 0xba, 0x3c, 0x27, 0x89, 0xb5, 0x32, 0xd6, 0x93, - 0x4d, 0x93, 0x21, 0xd5, 0x60, 0xa2, 0xcf, 0xb6, 0x2f, 0x3f, 0x78, 0xf0, 0x0a, 0x08, 0xcf, 0x47, - 0xb9, 0xab, 0xaf, 0x5f, 0xe3, 0xee, 0x14, 0x16, 0x02, 0x6d, 0x6f, 0x40, 0x69, 0xca, 0x24, 0xee, - 0x5b, 0xae, 0x9f, 0x76, 0x93, 0x2b, 0x3c, 0x42, 0xda, 0x58, 0x7a, 0xea, 0x9c, 0xf4, 0xc5, 0xe2, - 0x7e, 0x2c, 0xc3, 0x12, 0xbc, 0xc5, 0xe4, 0x29, 0x08, 0xd3, 0xa7, 0x40, 0x3c, 0xa7, 0x82, 0xd1, - 0x0b, 0xdf, 0x6a, 0x05, 0x70, 0x05, 0x27, 0x67, 0x3a, 0x99, 0x27, 0x05, 0x7c, 0xc7, 0xdf, 0xf0, - 0x20, 0x60, 0x05, 0x61, 0xb8, 0x02, 0xa9, 0xb2, 0x44, 0x80, 0x88, 0x8d, 0x00, 0xeb, 0xf3, 0x41, - 0x78, 0xf9, 0x81, 0x83, 0x57, 0xd9, 0xf0, 0xeb, 0x37, 0x72, 0x34, 0x3f, 0xa1, 0x57, 0xdb, 0xb7, - 0x83, 0x52, 0x92, 0x29, 0xe3, 0xff, 0x0f, 0x7b, 0x48, 0xa0, 0x71, 0xff, 0xb4, 0x87, 0x8c, 0x04, - 0x43, 0x83, 0x30, 0x8a, 0x56, 0xd9, 0x43, 0x51, 0x71, 0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0x21, 0x8b, - 0xf3, 0x27, 0x17, 0x0c, 0x53, 0x8c, 0x50, 0x88, 0xec, 0x98, 0x97, 0xef, 0xdf, 0x7b, 0x5e, 0x78, - 0x57, 0xbb, 0x7a, 0x1a, 0x7d, 0x76, 0x14, 0x55, 0x02, 0x80, 0x5e, 0x1c, 0x41, 0x9f, 0x9f, 0x02, - 0xd1, 0xa9, 0x2d, 0xd9, 0x19, 0x95, 0x4b, 0x9b, 0xa4, 0xb2, 0x23, 0xdf, 0x4c, 0x61, 0x37, 0x69, - 0x34, 0x95, 0xe3, 0x05, 0x78, 0xa3, 0xf1, 0x7c, 0x34, 0x50, 0xf2, 0x14, 0x2a, 0x26, 0x54, 0x45, - 0x4b, 0x55, 0x47, 0x8b, 0x9c, 0x48, 0x9f, 0x01, 0xf4, 0x18, 0xd1, 0x0a, 0x6f, 0x2c, 0x43, 0xe4, - 0x50, 0xde, 0x43, 0xcb, 0x88, 0xaa, 0x3c, 0x7a, 0x5e, 0x92, 0xff, 0xe3, 0x60, 0x2d, 0x10, 0x7a, - 0x0f, 0x4d, 0x03, 0x5b, 0xee, 0xa1, 0x4f, 0xd1, 0x17, 0xf7, 0xc0, 0x66, 0x34, 0xe5, 0x6b, 0xf8, - 0x15, 0x38, 0x6e, 0x3f, 0x67, 0x3f, 0x01, 0xce, 0xa0, 0x76, 0xb0, 0x33, 0x6c, 0x4d, 0x20, 0xf2, - 0xc6, 0x10, 0x05, 0x2b, 0x57, 0x48, 0x05, 0x91, 0x6a, 0x85, 0x64, 0xa4, 0x10, 0x80, 0x10, 0x7e, - 0x8f, 0x9c, 0x5e, 0x71, 0xd0, 0x04, 0x1a, 0x55, 0xa0, 0x1e, 0x36, 0xd4, 0xaf, 0x02, 0x26, 0xc3, - 0x36, 0x76, 0x4f, 0x34, 0x16, 0xec, 0x84, 0x8f, 0x49, 0xff, 0x1d, 0x30, 0x3e, 0x3f, 0xa4, 0x27, - 0x56, 0x5b, 0xa6, 0x6a, 0x97, 0x6e, 0xce, 0x66, 0x29, 0x0b, 0xa1, 0x4e, 0x69, 0x1f, 0xe3, 0x3d, - 0x34, 0x82, 0xe0, 0x1f, 0x45, 0x3d, 0x96, 0xa8, 0x52, 0x3b, 0x16, 0x96, 0x54, 0x8e, 0x86, 0xf9, - 0xf6, 0x4c, 0x76, 0x66, 0x5e, 0xde, 0x1c, 0x76, 0xe6, 0x96, 0x6c, 0x5a, 0x51, 0xd3, 0xf1, 0x12, - 0x16, 0xb0, 0x61, 0x78, 0x5c, 0x16, 0x72, 0x5e, 0x51, 0x2f, 0x69, 0x72, 0x5e, 0x19, 0x94, 0xe7, - 0x55, 0x80, 0x9b, 0xf3, 0xca, 0x00, 0x95, 0x47, 0x80, 0x19, 0xaa, 0xc8, 0xad, 0x42, 0x43, 0x1f, - 0x43, 0xea, 0xb5, 0x98, 0x89, 0x9d, 0x09, 0x16, 0xe4, 0xe7, 0xac, 0xda, 0x06, 0xb6, 0xae, 0xca, - 0xc9, 0x87, 0x05, 0x2b, 0x97, 0x70, 0xab, 0x16, 0x73, 0xa0, 0xdd, 0xce, 0xa3, 0x87, 0x8b, 0xd6, - 0xec, 0x3a, 0x7a, 0xb8, 0x40, 0x77, 0xa1, 0xf4, 0xf8, 0xa5, 0x13, 0x24, 0xe2, 0x0f, 0x4f, 0xc3, - 0x53, 0xd6, 0x8c, 0x65, 0xfb, 0x04, 0xc5, 0x99, 0x1d, 0xe0, 0x7a, 0x18, 0x71, 0x1a, 0x7a, 0x18, - 0x71, 0xb1, 0x3c, 0xeb, 0x84, 0x04, 0x0a, 0xb9, 0x45, 0x75, 0x58, 0x2c, 0x06, 0x4f, 0x0b, 0xbe, - 0x00, 0xc3, 0xfd, 0x60, 0xff, 0x77, 0x16, 0x4c, 0xc3, 0xbd, 0x12, 0x57, 0xd9, 0x43, 0x78, 0x9c, - 0x01, 0x4c, 0x2f, 0x5e, 0xaf, 0xc8, 0xbf, 0x47, 0x3d, 0x79, 0x02, 0x5c, 0x85, 0x4a, 0x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c, 0x11, 0x60, - 0x25, 0xda, 0xc6, 0xae, 0x40, 0x1b, 0xf3, 0xb6, 0x7d, 0xf2, 0xdd, 0x8f, 0x0f, 0x73, 0xe6, 0xcf, - 0x5d, 0x50, 0xb0, 0xd9, 0xc6, 0xbe, 0xd8, 0xb2, 0x05, 0x7d, 0xde, 0xa0, 0xe2, 0xca, 0xb9, 0x73, - 0x79, 0x13, 0x67, 0x2e, 0xca, 0x6e, 0x28, 0x54, 0x10, 0x94, 0x7c, 0x3d, 0x42, 0x98, 0xb9, 0x3c, - 0xab, 0xc8, 0x22, 0xeb, 0xd6, 0xd7, 0x83, 0xf7, 0xf5, 0xa2, 0x16, 0x7c, 0x95, 0xb3, 0x07, 0x1f, - 0x40, 0x1f, 0xce, 0xc1, 0x22, 0x62, 0x20, 0x5f, 0x14, 0x00, 0xd2, 0x4a, 0x87, 0x04, 0x64, 0x04, - 0x60, 0xba, 0x5d, 0x3f, 0x00, 0x64, 0x0a, 0x9f, 0x33, 0x95, 0xa6, 0x2e, 0x56, 0xc9, 0x21, 0xf0, - 0x21, 0xac, 0x97, 0xc0, 0xa0, 0xb9, 0x75, 0x0e, 0xb1, 0x0a, 0x15, 0x74, 0xdc, 0xba, 0x87, 0xec, - 0xd4, 0x82, 0xf3, 0xa8, 0x15, 0xb7, 0x63, 0x9d, 0x1b, 0x1f, 0x91, 0xcb, 0xc7, 0xf2, 0xf9, 0x4b, - 0xd4, 0x47, 0x24, 0x86, 0x61, 0xb4, 0x6f, 0x28, 0x77, 0x10, 0xc6, 0x4c, 0xe7, 0x39, 0x9a, 0x63, - 0x9c, 0x50, 0x52, 0x29, 0xd7, 0x00, 0x8d, 0xd9, 0xa9, 0x62, 0xdd, 0x54, 0x72, 0x94, 0x24, 0xe6, - 0x48, 0x11, 0xc7, 0xe1, 0xa5, 0x4c, 0x00, 0xcc, 0x9b, 0xfc, 0xe8, 0x84, 0x98, 0x62, 0x95, 0x09, - 0x47, 0x58, 0x97, 0x42, 0xee, 0x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 0x31, - 0xe0, 0x90, 0xe3, 0x79, 0x23, 0xf4, 0x15, 0x26, 0x96, 0x76, 0x74, 0x3b, 0xfb, 0x5d, 0x10, 0xd2, - 0xe8, 0xf0, 0x2e, 0x74, 0x99, 0x54, 0xbb, 0x11, 0xfd, 0x47, 0xa3, 0xc1, 0x5d, 0xbc, 0xdc, 0x3a, - 0x70, 0x9f, 0x69, 0x8b, 0xee, 0xd3, 0x9a, 0xa5, 0x9e, 0x62, 0x85, 0x9b, 0x68, 0xbc, 0x0b, 0x33, - 0xe9, 0x2e, 0x1c, 0xcf, 0x7b, 0x89, 0xbb, 0x50, 0x99, 0xff, 0xed, 0xbf, 0xef, 0x42, 0xd9, 0xa7, - 0x9c, 0x01, 0x34, 0xd3, 0xbd, 0x57, 0x35, 0x21, 0xdb, 0xa3, 0x17, 0x23, 0x58, 0x58, 0x95, 0xeb, - 0xed, 0xc3, 0x88, 0x1a, 0x43, 0xb2, 0xcc, 0x09, 0xc2, 0xa6, 0x53, 0x39, 0xc4, 0x36, 0xd8, 0xbf, - 0x7f, 0xaa, 0xab, 0x4b, 0x2c, 0x4a, 0x06, 0x74, 0xef, 0x29, 0xfc, 0x62, 0x31, 0xd4, 0x9a, 0xdf, - 0x29, 0x17, 0x39, 0x88, 0xf7, 0x50, 0x73, 0x91, 0x2a, 0x62, 0xfe, 0xdf, 0x19, 0x47, 0x55, 0x7d, - 0x7d, 0xcf, 0x0a, 0xa1, 0x28, 0xba, 0x0b, 0x27, 0x29, 0xe8, 0x93, 0x08, 0x27, 0xd9, 0xf6, 0x28, - 0x61, 0xeb, 0xd1, 0x56, 0x76, 0x05, 0xda, 0x04, 0xdb, 0x0b, 0xbc, 0x24, 0xd1, 0x22, 0x55, 0xee, - 0x56, 0x73, 0xf7, 0xae, 0x35, 0xf6, 0x55, 0xd8, 0x48, 0x25, 0xef, 0x2a, 0xec, 0xb4, 0x41, 0x98, - 0x2f, 0x83, 0x6b, 0x0d, 0x7b, 0x83, 0x41, 0x28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fb, 0xd6, 0xd7, 0xa0, 0xdb, 0xc9, - 0x1f, 0xbf, 0xda, 0xb4, 0x1a, 0xdd, 0xfb, 0xbd, 0xfd, 0x61, 0xf4, 0xe7, 0xea, 0xc6, 0xf5, 0x41, - 0xfb, 0xad, 0x18, 0x07, 0x49, 0x4c, 0x85, 0x91, 0x46, 0x0a, 0x98, 0x49, 0x14, 0xae, 0xec, 0x63, - 0x62, 0x56, 0xe6, 0xde, 0xa9, 0x52, 0x3d, 0x1d, 0x18, 0x5c, 0x76, 0x8e, 0x52, 0x17, 0x40, 0xab, - 0xf8, 0xf8, 0x61, 0x81, 0x14, 0x72, 0x3a, 0x92, 0x7c, 0x87, 0x78, 0x83, 0x31, 0x11, 0x3c, 0x96, - 0x2d, 0x41, 0xa3, 0x12, 0xee, 0x08, 0xba, 0x74, 0xeb, 0xe7, 0x07, 0xbf, 0x00, 0x7f, 0xf4, 0xd7, - 0x4f, 0x9a, 0xe2, 0xc3, 0xe8, 0xca, 0xf5, 0xe6, 0x15, 0xe8, 0x62, 0x09, 0xd4, 0xf8, 0xbd, 0x59, - 0x05, 0xea, 0x00, 0x36, 0xb2, 0x12, 0xd4, 0xc2, 0x70, 0x91, 0x79, 0x4f, 0xc7, 0xd8, 0x62, 0xc4, - 0x33, 0xdf, 0x9e, 0xe7, 0xe8, 0xcc, 0x13, 0x3b, 0x4a, 0xa8, 0x92, 0xd6, 0x06, 0xbb, 0x32, 0x24, - 0xde, 0x2a, 0xd1, 0x9f, 0x73, 0x71, 0x41, 0x30, 0x41, 0xd5, 0x9c, 0x12, 0x22, 0x0a, 0x09, 0x62, - 0x93, 0xc0, 0x43, 0x32, 0xad, 0x7e, 0x09, 0x9a, 0xf4, 0x9d, 0xe8, 0xbb, 0x63, 0x87, 0xd0, 0xb7, - 0x7b, 0xe1, 0x6e, 0x60, 0x3d, 0x74, 0x04, 0x84, 0xed, 0x02, 0xe7, 0x27, 0x5d, 0x9b, 0x3b, 0xf3, - 0x6a, 0x16, 0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c2, 0x9c, 0x75, 0x18, 0x57, 0xc4, 0x04, - 0x32, 0xbd, 0x78, 0x0f, 0x45, 0xbd, 0x76, 0x95, 0x9f, 0x8d, 0x33, 0xd9, 0x96, 0x42, 0xf1, 0x5a, - 0xc1, 0x63, 0x34, 0xa5, 0x7a, 0x45, 0x63, 0x80, 0x38, 0x61, 0x1e, 0x2a, 0x57, 0xd1, 0x6a, 0x52, - 0x5c, 0x74, 0x52, 0x92, 0xec, 0x76, 0x22, 0x26, 0xf7, 0x04, 0x56, 0x2e, 0xac, 0x72, 0x19, 0xb0, - 0xcf, 0xf5, 0x64, 0xe7, 0x8e, 0x9a, 0xb5, 0xc9, 0x36, 0xf3, 0xee, 0xbc, 0x33, 0xdf, 0x96, 0xa3, - 0xa5, 0x70, 0xe6, 0x22, 0x70, 0x63, 0x4a, 0xaf, 0x84, 0x5e, 0x13, 0xd6, 0x4c, 0xcb, 0x38, 0x3f, - 0xe1, 0x74, 0x7e, 0x49, 0x29, 0x3a, 0x2c, 0x79, 0xee, 0xe3, 0xfd, 0xaf, 0x63, 0x1a, 0xe2, 0xf5, - 0xf9, 0x07, 0x8f, 0xe9, 0x7f, 0x72, 0x92, 0x06, 0x71, 0x82, 0x93, 0x34, 0xbc, 0x6d, 0x23, 0xce, - 0xfb, 0xad, 0x35, 0x57, 0x50, 0x7d, 0xea, 0x26, 0x0d, 0x18, 0x5f, 0xb4, 0x8b, 0xbd, 0x8f, 0x3f, - 0x05, 0x92, 0xd8, 0x5a, 0xaf, 0x58, 0x95, 0x4e, 0x45, 0xa9, 0x23, 0xe7, 0x2a, 0x9c, 0xfa, 0x13, - 0x42, 0xd9, 0x0d, 0x2a, 0xc5, 0x89, 0x73, 0x56, 0xf8, 0x40, 0x8b, 0x46, 0x56, 0x9c, 0x98, 0xa9, - 0xe2, 0x84, 0x11, 0x73, 0x69, 0x4a, 0x4a, 0x93, 0x1f, 0xec, 0x53, 0xd9, 0x2c, 0xb4, 0x80, 0xff, - 0x0e, 0x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xd2, 0x4e, 0xa4, - 0xd6, 0xf5, 0x9a, 0xcc, 0x7b, 0xbc, 0x99, 0xca, 0x7a, 0x44, 0x67, 0xec, 0x59, 0xe1, 0x06, 0x45, - 0x55, 0x8a, 0x76, 0x15, 0xbe, 0xca, 0xe7, 0x98, 0x97, 0xcb, 0x39, 0x26, 0x66, 0xb7, 0x0e, 0xf5, - 0x05, 0x69, 0xfc, 0x03, 0x72, 0x31, 0xa8, 0x4e, 0x39, 0xb5, 0xf5, 0x47, 0x1d, 0xc6, 0xa9, 0x14, - 0x1e, 0xad, 0x56, 0x8d, 0xa8, 0xe9, 0xd3, 0xc8, 0xb9, 0xde, 0x34, 0x49, 0xc6, 0x18, 0x41, 0x7a, - 0xd4, 0x4e, 0xb4, 0x0f, 0x47, 0x6b, 0x04, 0x6d, 0x1f, 0x18, 0x08, 0x8f, 0x91, 0xdc, 0x6f, 0xf6, - 0x27, 0x70, 0xc2, 0x9b, 0xe7, 0xbf, 0x3c, 0xd9, 0x7c, 0xac, 0xd8, 0x20, 0xab, 0xf9, 0x0c, 0x5b, - 0x10, 0x9f, 0x8f, 0x56, 0x78, 0xeb, 0xd8, 0xd1, 0x1e, 0xd4, 0xd0, 0x8e, 0x67, 0x60, 0x21, 0x3a, - 0xc0, 0xb5, 0xe0, 0x76, 0x60, 0xba, 0x11, 0x45, 0xf6, 0xa5, 0x29, 0x56, 0xad, 0x88, 0x30, 0xa9, - 0x14, 0xb0, 0x1a, 0x53, 0x35, 0x51, 0xf3, 0xca, 0x6a, 0x28, 0x67, 0xae, 0x38, 0x57, 0xaa, 0x29, - 0x93, 0xb6, 0x63, 0x06, 0x17, 0x33, 0x15, 0x94, 0xe1, 0x13, 0x92, 0x00, 0xfb, 0x9b, 0xe9, 0x61, - 0x89, 0xd7, 0xdf, 0xdf, 0x59, 0x50, 0xcc, 0x14, 0x00, 0x1e, 0x94, 0xdc, 0x33, 0xcf, 0x38, 0x75, - 0xd7, 0x31, 0xed, 0xee, 0xe2, 0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, 0xd1, 0x9d, 0x57, 0x5f, 0xd4, 0x97, 0x45, - 0x83, 0x06, 0x55, 0x74, 0x9b, 0x7a, 0x91, 0x27, 0xda, 0x80, 0x67, 0x3c, 0x9e, 0xea, 0x1d, 0x53, - 0xc5, 0xd6, 0x81, 0x60, 0xb3, 0x0a, 0x53, 0x42, 0x9c, 0x12, 0x2a, 0x81, 0x85, 0x0b, 0xa6, 0xb0, - 0xd4, 0x17, 0x7f, 0x73, 0x02, 0xfd, 0xcd, 0xbe, 0x76, 0x07, 0xe8, 0x4d, 0x61, 0x49, 0x15, 0x9e, - 0xe3, 0x55, 0x28, 0x12, 0x29, 0x57, 0xb0, 0xa6, 0x44, 0x82, 0x05, 0xb7, 0xff, 0x94, 0xbb, 0x24, - 0x59, 0xac, 0x25, 0x5d, 0x0c, 0xed, 0x99, 0x60, 0xd5, 0x11, 0xca, 0x2f, 0xa4, 0x8a, 0x2d, 0xfb, - 0x60, 0x7e, 0x21, 0x95, 0xe1, 0x43, 0xf5, 0x84, 0x55, 0x20, 0x11, 0x7d, 0xa1, 0xfa, 0x58, 0x12, - 0xca, 0x77, 0x4c, 0x8f, 0x39, 0x86, 0x58, 0x7d, 0x0b, 0x3d, 0xcc, 0xe2, 0x1f, 0xe8, 0x41, 0xd6, - 0xc9, 0x74, 0xfd, 0x64, 0xfd, 0x7c, 0x3d, 0x9b, 0x55, 0x7a, 0x47, 0xff, 0x80, 0x34, 0x48, 0xd1, - 0x13, 0xe6, 0x81, 0x7c, 0x23, 0x45, 0x9f, 0xae, 0x27, 0xcc, 0x03, 0xe9, 0xe2, 0x19, 0x6e, 0x2a, - 0xf3, 0x0d, 0x8a, 0x31, 0x60, 0x7a, 0x70, 0xd6, 0x5e, 0x2e, 0x42, 0x50, 0xa4, 0x65, 0x18, 0x71, - 0x0c, 0xf8, 0x79, 0x23, 0xfb, 0x49, 0x79, 0x2f, 0xc7, 0xcb, 0x1a, 0xbf, 0x69, 0xe0, 0xa5, 0x53, - 0x3b, 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7, 0xb4, 0x54, 0xf8, 0xc8, 0x3d, 0x17, 0x31, 0x4f, 0x9d, 0x1a, 0x28, 0xd9, 0xba, - 0x1b, 0xa0, 0xea, 0xf9, 0x0b, 0x59, 0x33, 0x57, 0xc4, 0xac, 0x72, 0xd2, 0x1b, 0xb9, 0x6f, 0x93, - 0xaa, 0xef, 0x75, 0x72, 0xdf, 0x3b, 0x41, 0x67, 0xa7, 0xdd, 0x4f, 0xb6, 0x3d, 0x04, 0x68, 0x9d, - 0x9a, 0x36, 0x41, 0x4b, 0x38, 0x50, 0xee, 0x7f, 0x27, 0xf3, 0xc8, 0xa9, 0x67, 0x97, 0x35, 0x7f, - 0x26, 0xce, 0x49, 0x6f, 0x84, 0xdf, 0x48, 0x90, 0x7f, 0x63, 0x0f, 0x68, 0xeb, 0xb4, 0x6f, 0x28, - 0x6d, 0x27, 0x82, 0xdf, 0x96, 0xf0, 0x1b, 0x5c, 0x35, 0x4a, 0xd3, 0xfa, 0x8b, 0x34, 0xed, 0xa1, - 0x93, 0xa6, 0x29, 0xf5, 0x96, 0xc5, 0x16, 0xd1, 0xd3, 0x6b, 0x35, 0x9a, 0xcd, 0x1d, 0xc4, 0xfc, - 0x4f, 0x98, 0x94, 0x53, 0x9c, 0x46, 0x50, 0x04, 0xbb, 0x93, 0xbb, 0x68, 0x76, 0x01, 0x22, 0x77, - 0x05, 0x92, 0x9a, 0x58, 0x3c, 0xe7, 0x1f, 0x26, 0xba, 0x79, 0x39, 0x25, 0x30, 0x92, 0x0d, 0x45, - 0x95, 0x6a, 0xd7, 0xa8, 0xd5, 0xba, 0x08, 0x54, 0xba, 0x70, 0x46, 0x59, 0x37, 0xea, 0x20, 0x58, - 0xb9, 0x68, 0xab, 0x24, 0x42, 0xa5, 0x04, 0x3c, 0x45, 0x3f, 0xc0, 0x73, 0x47, 0x77, 0xec, 0x3a, - 0xa2, 0x29, 0xae, 0xb4, 0x6e, 0xfc, 0xae, 0x49, 0xd6, 0x10, 0x41, 0x6c,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2, 0xda, 0x0f, 0x3a, 0x3d, 0x53, - 0x84, 0xde, 0xb3, 0xe5, 0x6f, 0x10, 0xbb, 0x6e, 0xed, 0x2a, 0xdf, 0x50, 0x7a, 0xa6, 0x08, 0xdf, - 0x98, 0x23, 0x7c, 0x43, 0xb0, 0xeb, 0x32, 0x9e, 0x54, 0x23, 0x92, 0x4c, 0x72, 0xff, 0xe2, 0xe7, - 0x67, 0x45, 0x8e, 0x63, 0xaa, 0xc3, 0xee, 0x70, 0x08, 0x95, 0x8c, 0xe9, 0xcc, 0x9c, 0x13, 0xe7, - 0x71, 0xbf, 0x73, 0x66, 0x24, 0x07, 0x76, 0x79, 0x66, 0x5c, 0x5b, 0x13, 0xfc, 0x0a, 0x51, 0xed, - 0x0b, 0x11, 0x1e, 0x45, 0xeb, 0x10, 0xb1, 0x35, 0x9e, 0xc7, 0x56, 0x55, 0x7b, 0x36, 0x70, 0x8a, - 0xb6, 0x74, 0x6e, 0x84, 0xb6, 0xe3, 0x32, 0x43, 0x54, 0x5e, 0x29, 0xa4, 0xad, 0x3f, 0x9e, 0x99, - 0x60, 0xd1, 0xaa, 0xfb, 0xff, 0x63, 0xef, 0xbd, 0xe3, 0xa4, 0x28, 0xd6, 0xc6, 0xdf, 0x0a, 0x3d, - 0xb3, 0x81, 0x4d, 0x84, 0x5d, 0x60, 0xc9, 0x06, 0xc0, 0x04, 0x98, 0xce, 0x31, 0x87, 0x23, 0x62, - 0x02, 0x91, 0x20, 0x62, 0xe2, 0xa8, 0x20, 0x28, 0x82, 0x60, 0xce, 0x8a, 0x39, 0xe7, 0x80, 0x78, - 0x0c, 0x88, 0x1c, 0x23, 0xea, 0x8a, 0x01, 0x44, 0x45, 0x44, 0x40, 0x24, 0x28, 0x41, 0x10, 0x70, - 0x91, 0xb4, 0xcc, 0x0c, 0x30, 0x30, 0xb3, 0xc0, 0x9a, 0x99, 0xbe, 0xdf, 0xaa, 0xee, 0xe9, 0x99, - 0x0d, 0xbe, 0xaf, 0xf2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0x9a, 0x70, 0x2d, 0x87, 0x14, 0x55, 0x1c, 0x52, 0x44, 0x44, 0x8c, 0x70, 0xb3, - 0xf8, 0x8d, 0xf0, 0x0f, 0x0e, 0x29, 0x52, 0x46, 0x11, 0x48, 0x25, 0x95, 0x79, 0xa3, 0x4e, 0xe6, - 0x12, 0x96, 0xca, 0x96, 0x84, 0xad, 0x64, 0x2b, 0xc2, 0x76, 0xb2, 0x83, 0x30, 0x33, 0x68, 0x7b, - 0x09, 0x2d, 0x0f, 0x93, 0x87, 0x13, 0x3f, 0x46, 0x1e, 0x47, 0x78, 0xa2, 0x3c, 0x91, 0xb0, 0x97, - 0xec, 0x45, 0xd8, 0x5b, 0xf6, 0x26, 0xec, 0x27, 0xfb, 0x11, 0x9e, 0x29, 0xcf, 0x22, 0x3c, 0x5b, - 0x9e, 0x4d, 0x38, 0x01, 0x89, 0xd1, 0xf2, 0x15, 0xf9, 0x86, 0x50, 0x72, 0x1a, 0x7e, 0xa3, 0x94, - 0xeb, 0xe5, 0x7a, 0xc2, 0x2a, 0x49, 0x4b, 0xe4, 0x66, 0xbc, 0x01, 0x29, 0x77, 0xc8, 0x1d, 0x84, - 0x35, 0xb2, 0x86, 0xf0, 0x0f, 0x34, 0x18, 0xcd, 0x40, 0x33, 0x49, 0xa5, 0x15, 0x72, 0xa7, 0x72, - 0x54, 0x0e, 0x61, 0x9e, 0x6a, 0x44, 0xd8, 0x58, 0x35, 0x26, 0x2c, 0x53, 0x2d, 0x08, 0xcb, 0x55, - 0x39, 0xe1, 0x31, 0xea, 0x04, 0xc2, 0x93, 0xd4, 0xbb, 0x84, 0x93, 0xf5, 0x40, 0x21, 0xf5, 0xb9, - 0x7a, 0x38, 0xe1, 0x15, 0xfa, 0x0a, 0xc2, 0xab, 0xf4, 0x75, 0x84, 0x37, 0xea, 0xdb, 0x08, 0x6f, - 0xd7, 0x77, 0x11, 0xde, 0xa3, 0x1f, 0x20, 0x7c, 0x48, 0xbf, 0x46, 0xf8, 0x96,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x42, 0x22, 0xbf, 0xa4, 0xf4, 0x15, 0x5c, 0x63, 0xa7, 0x69, - 0xe7, 0x5a, 0xee, 0xde, 0x4a, 0x2e, 0xe3, 0x13, 0xb5, 0xb0, 0xb3, 0x3e, 0x39, 0x8c, 0x2e, 0xfa, - 0x8b, 0x37, 0x75, 0xa5, 0x73, 0x8e, 0x33, 0x2b, 0x14, 0x26, 0x3d, 0xc7, 0xce, 0x93, 0xef, 0x6b, - 0x67, 0x62, 0x8e, 0x45, 0x32, 0xf3, 0xc5, 0x61, 0xf4, 0x62, 0x31, 0xb0, 0x0c, 0x5b, 0x72, 0x10, - 0x70, 0x84, 0xbb, 0x42, 0xfd, 0x00, 0xac, 0x06, 0xd6, 0xb8, 0x2b, 0xf4, 0x23, 0xee, 0x0a, 0xa7, - 0x97, 0x6b, 0x30, 0x64, 0xd6, 0x40, 0x1c, 0x49, 0xdf, 0x8f, 0x16, 0x65, 0xb2, 0x85, 0x68, 0xa6, - 0x86, 0x8a, 0x32, 0x3c, 0xda, 0x26, 0x2a, 0xc1, 0xb9, 0x5a, 0x94, 0xe1, 0xc5, 0x96, 0xe9, 0x61, - 0xc0, 0x70, 0x60, 0xbc, 0x68, 0xa2, 0x27, 0x00, 0x13, 0x81, 0x57, 0xb9, 0x9e, 0x22, 0x9a, 0xe9, - 0xcf, 0x45, 0x99, 0x73, 0x3c, 0x70, 0x02, 0x70, 0x22, 0x40, 0x3e, 0xb1, 0x40, 0x94, 0xb8, 0x65, - 0xa2, 0x09, 0xb0, 0xb7, 0x3b, 0x40, 0x74, 0x49, 0xfd, 0x22, 0xcc, 0x17, 0xda, 0x4e, 0x44, 0xd7, - 0x9f, 0x84, 0xee, 0x38, 0x19, 0x38, 0x05, 0x38, 0x0d, 0xe8, 0x07, 0x9c, 0x09, 0x9c, 0x4d, 0x9f, - 0xcf, 0x01, 0x83, 0xe7, 0x03, 0x4f, 0x72, 0xfd, 0x2c, 0xf0, 0x1c, 0x69, 0xef, 0x71, 0xff, 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ce, 0x75, 0xb7, 0x38, 0xf9, 0x40, - 0x01, 0x50, 0x04, 0x94, 0x00, 0x4d, 0x80, 0x66, 0x40, 0x19, 0xd0, 0x1a, 0x68, 0x0b, 0xb4, 0x07, - 0xf6, 0x00, 0xf6, 0x02, 0x3a, 0x02, 0x9d, 0x81, 0x7d, 0x81, 0xfd, 0x81, 0x2e, 0x40, 0x37, 0xe0, - 0x20, 0xe0, 0x10, 0x77, 0xb3, 0xf3, 0x0f, 0xe0, 0x30, 0xe0, 0x08, 0xe0, 0x28, 0xe0, 0x18, 0xe0, - 0x38, 0xe0, 0x5f, 0x6e, 0xcc, 0xe9, 0x0e, 0xf4, 0x00, 0x7a, 0xc1, 0xc3, 0xed, 0x90, 0xd8, 0x65, - 0xe2, 0x08, 0xb4, 0xd2, 0x91, 0xf8, 0x20, 0x47, 0xbb, 0xab, 0x91, 0xde, 0x65, 0x48, 0xef, 0x32, - 0xd9, 0x02, 0xad, 0x75, 0x10, 0xe7, 0x23, 0xdc, 0x65, 0x6a, 0xa8, 0xbb, 0x1a, 0x29, 0x5e, 0x86, - 0x14, 0x2f, 0x43, 0x8a, 0x97, 0xa9, 0xad, 0x6e, 0x5c, 0x25, 0x48, 0xab, 0x76, 0x57, 0xeb, 0x81, - 0xc0, 0x30, 0x60, 0x38, 0xf0, 0x88, 0xbb, 0x4c, 0x8f, 0x77, 0xe3, 0x7a, 0x02, 0x30, 0x11, 0x78, - 0x95, 0xb4, 0x29, 0x6e, 0x95, 0xfe, 0xdc, 0x5d, 0xed, 0x1c, 0x0f, 0x9c, 0x00, 0x9c, 0x08, 0xf4, - 0x72, 0x97, 0x39, 0xe4, 0x17, 0xe5, 0xd4, 0x5e, 0x41, 0xed, 0x5b, 0xa9, 0x79, 0x11, 0x35, 0x57, - 0x50, 0x73, 0x05, 0x35, 0x6f, 0xa5, 0xe6, 0x0a, 0x6a, 0xae, 0xa0, 0xe6, 0x45, 0xd4, 0x5c, 0x41, - 0xcd, 0x15, 0xd4, 0x5c, 0x41, 0xad, 0x8b, 0xa8, 0x75, 0x11, 0xb5, 0x2e, 0xa2, 0xd6, 0x45, 0xd4, - 0xba, 0x88, 0x5a, 0x2b, 0xa8, 0x69, 0x11, 0x35, 0x6d, 0xa5, 0xa6, 0x45, 0xd4, 0xb4, 0x88, 0x9a, - 0x16, 0x51, 0xd3, 0x22, 0x6a, 0xaa, 0xa0, 0xa6, 0x45, 0x8c, 0xb1, 0xba, 0x60, 0x19, 0x0f, 0x77, - 0xb7, 0xa9, 0x8b, 0x80, 0xc1, 0xc0, 0x10, 0xe0, 0x62, 0x60, 0x32, 0xb0, 0x0e, 0xd8, 0x00, 0x6c, - 0x04, 0xa2, 0xc0, 0x26, 0x60, 0x8b, 0xbb, 0x4d, 0xdf, 0xe6, 0x6e, 0x73, 0x0e, 0x06, 0x0e, 0xe5, - 0xde, 0x93, 0xf0, 0x3d, 0xf0, 0x23, 0x81, 0x93, 0xd0, 0x07, 0x27, 0x03, 0xa7, 0x00, 0xa7, 0x01, - 0x67, 0x5a, 0xdd, 0x11, 0x43, 0x77, 0xc4, 0xd0, 0x17, 0x46, 0x57, 0xc4, 0xd0, 0x15, 0x31, 0xf4, - 0x43, 0x0c, 0xfd, 0x60, 0x74, 0x42, 0x0c, 0x9d, 0x10, 0x43, 0x1f, 0xc4, 0xd0, 0x05, 0x31, 0x74, - 0x41, 0x0c, 0x5d, 0x10, 0x93, 0x23, 0x44, 0x89, 0x1c, 0x09, 0x8c, 0x02, 0x46, 0x03, 0x57, 0x88, - 0x12, 0xe4, 0x3a, 0x86, 0x5c, 0xc7, 0x90, 0xeb, 0x18, 0x72, 0x1d, 0x43, 0xae, 0x63, 0xc8, 0x64, - 0x0c, 0x99, 0x8c, 0x21, 0x93, 0x31, 0x64, 0x32, 0x86, 0x4c, 0xc6, 0x90, 0xc9, 0x18, 0x32, 0x19, - 0x43, 0x26, 0x63, 0xc8, 0x64, 0x0c, 0x99, 0x8c, 0x21, 0x93, 0x31, 0x64, 0x32,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1, 0xfd, 0xcd, 0xb7, 0xcf, 0xa8, 0x16, 0xa3, 0x8d, 0xcd, 0x8c, 0xfe, 0x2a, - 0xb1, 0xde, 0x9b, 0xbb, 0x17, 0x9b, 0x04, 0xfe, 0xa4, 0xd8, 0x26, 0x92, 0x76, 0xd6, 0xe9, 0x37, - 0xe1, 0x4a, 0x25, 0x3b, 0x80, 0xeb, 0xa3, 0xcd, 0x8a, 0x6b, 0x68, 0x17, 0x87, 0x76, 0x71, 0x68, - 0x17, 0x87, 0x76, 0x71, 0xb3, 0x33, 0x12, 0xb4, 0x8b, 0x43, 0xbb, 0x38, 0xb4, 0x8b, 0x43, 0xbb, - 0x38, 0xb4, 0x8b, 0x43, 0xbb, 0x38, 0xb4, 0x8b, 0x43, 0xbb, 0x38, 0xb4, 0x8b, 0x43, 0xbb, 0x38, - 0xb4, 0x8b, 0x43, 0xbb, 0x38, 0x74, 0x8a, 0x43, 0xa7, 0x38, 0x74, 0x8a, 0x43, 0xa7, 0x38, 0x74, - 0x8a, 0x43, 0xa7, 0x38, 0x74, 0x8a, 0x43, 0xa7, 0x38, 0x74, 0x8a, 0x43, 0xa7, 0x38, 0x74, 0x8a, - 0x43, 0xa7, 0x38, 0x74, 0x8a, 0x43, 0xa7, 0x38, 0x74, 0x8a, 0x43, 0xa7, 0x38, 0x74, 0x8a, 0x43, - 0xa7, 0xb8, 0x32, 0x52, 0x72, 0x19, 0xf0, 0x38, 0xf0, 0x34, 0x40, 0x3e, 0x68, 0x13, 0x87, 0x36, - 0x71, 0x68, 0x13, 0x87, 0x36, 0x71, 0x68, 0x13, 0x87, 0x36, 0x71, 0x68, 0x13, 0x87, 0x36, 0x71, - 0x68, 0x13, 0x87, 0x36, 0x71, 0x68, 0x13, 0x87, 0x36, 0x71, 0x68, 0x13, 0x87, 0x36, 0x71, 0x68, - 0x13, 0x87, 0x36, 0x71, 0x68, 0x13, 0x87, 0x36, 0x71, 0x68, 0x13, 0x87, 0x36, 0x66, 0xf7, 0x9e,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25, 0xab, 0xc4, 0x92, 0x55, 0x62, - 0xc9, 0x2a, 0xb1, 0x64, 0x95, 0x58, 0xb2, 0x4a, 0x2c, 0x59, 0x25, 0x96, 0xac, 0x12, 0x4b, 0x56, - 0x89, 0xed, 0x59, 0x8e, 0xed, 0x59, 0x8e, 0xed, 0x59, 0x8e, 0xed, 0x59, 0x8e, 0xed, 0x59, 0x8e, - 0xed, 0x59, 0x8e, 0xed, 0x59, 0x8e, 0x95, 0xab, 0xc4, 0xca, 0x55, 0x62, 0xe5, 0x2a, 0xb1, 0x43, - 0xcb, 0xb1, 0x74, 0x95, 0x78, 0xbe, 0xab, 0xf1, 0x7c, 0x57, 0xe3, 0xf9, 0xae, 0xc6, 0xf3, 0x5d, - 0x8d, 0xe7, 0xbb, 0x1a, 0xcf, 0x77, 0x35, 0x9e, 0xef, 0x6a, 0x34, 0xfc, 0x3a, 0x34, 0xfc, 0x3a, - 0x34, 0xfc, 0x3a, 0xe7, 0x54, 0x74, 0x5e, 0x4f, 0x60, 0x00, 0x30, 0x18, 0xb8, 0x18, 0x18, 0x06, - 0x5f, 0x5c, 0x81, 0xbd, 0x59, 0x85, 0xbd, 0x59, 0x05, 0x87, 0x26, 0xe1, 0xd0, 0x24, 0x1c, 0x9a, - 0x84, 0x43, 0x93, 0x70, 0x64, 0x12, 0x8e, 0x4c, 0xc0, 0x91, 0x95, 0x70, 0x64, 0x25, 0x1c, 0x99, - 0x84, 0x23, 0x93, 0x70, 0x64, 0x02, 0x8e, 0x4c, 0xc2, 0x91, 0x95, 0x70, 0x63, 0x12, 0x6e, 0x4c, - 0xc2, 0x8d, 0x09, 0xb8, 0x2e, 0x09, 0x87, 0x25, 0xe1, 0xac, 0x4a, 0x38, 0x2b, 0x09, 0x67, 0x25, - 0xe1, 0xaa, 0x24, 0xdc, 0x94, 0x84, 0x9b, 0x92, 0x70, 0x53, 0x12, 0x1b, 0xb6, 0x0a, 0x1b, 0xb6, - 0x0a, 0x1b, 0xb6, 0x0a, 0x1b, 0xb6, 0x0a, 0x1b, 0xb6, 0x0a, 0x0e, 0x4b, 0xc2, 0x61, 0x49, 0x38, - 0x2c, 0x09, 0x87, 0x25, 0xe1, 0xb0, 0x24, 0x9c, 0x94, 0x80, 0x93, 0x12, 0x70, 0x52, 0x02, 0x4e, - 0x4a, 0xc0, 0x49, 0x95, 0x70, 0x52, 0x25, 0x9c, 0x94, 0x84, 0x93, 0x92, 0x70, 0x52, 0x12, 0x4e, - 0x4a, 0xc2, 0x49, 0x49, 0x38, 0x29, 0x09, 0x27, 0x25, 0xe1, 0xa4, 0x24, 0x9c, 0x94, 0x84, 0x93, - 0x92, 0x70, 0x52, 0x12, 0x4e, 0x4a, 0xc2, 0x49, 0x49, 0x38, 0x29, 0x09, 0xb7, 0x24, 0xe0, 0x96, - 0x04, 0xdc, 0x92, 0x80, 0x5b, 0x12, 0x70, 0x4b, 0x02, 0x6e, 0x49, 0xc0, 0x2d, 0x95, 0x70, 0x4b, - 0x12, 0x4e, 0x49, 0xc0, 0x25, 0x95, 0x70, 0x49, 0x02, 0x0e, 0x49, 0xc0, 0x21, 0x49, 0xb8, 0x22, - 0x09, 0x57, 0x54, 0xc2, 0x15, 0x49, 0xb8, 0xa1, 0x12, 0x6e, 0xa8, 0xc4, 0xa6, 0xae, 0xc2, 0xa6, - 0xae, 0xc2, 0xa6, 0xae, 0x82, 0x2b, 0x92, 0x70, 0x44, 0x25, 0x1c, 0x91, 0x84, 0x23, 0x92, 0x70, - 0x44, 0x25, 0x1c, 0x91, 0x84, 0x23, 0x92, 0x70, 0x44, 0x12, 0x2e, 0x48, 0xc2, 0x01, 0x95, 0x70, - 0x40, 0x25, 0x1c, 0x50, 0x09, 0xf5, 0x93, 0x50, 0x3f, 0x09, 0xf5, 0x93, 0x50, 0x3f, 0x09, 0xf5, - 0x93, 0x50, 0x3f, 0x09, 0xf5, 0x93, 0x50, 0x3f, 0x09, 0xf5, 0x93, 0x50, 0x38, 0x09, 0x85, 0x93, - 0x50, 0x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, 0xe0, 0x8a, 0x12, 0x47, 0x02, 0xe0, 0xd7, 0x09, 0x01, 0xad, 0xa0, 0x28, - 0x96, 0x94, 0x71, 0x76, 0x8c, 0x71, 0x76, 0x8c, 0x71, 0x76, 0x8c, 0x71, 0x76, 0x8c, 0x71, 0x76, - 0x8c, 0x71, 0x76, 0x8c, 0x71, 0x76, 0x8c, 0x71, 0x76, 0x8c, 0x71, 0x76, 0x8c, 0x71, 0x76, 0x0c, - 0xee, 0x58, 0x03, 0x77, 0xac, 0x81, 0x3b, 0xd6, 0xc0, 0x1d, 0x6b, 0xad, 0xb4, 0xf5, 0xe5, 0x6c, - 0x24, 0xae, 0x3f, 0xe7, 0x4b, 0x28, 0xf3, 0x52, 0x80, 0x7e, 0x31, 0x26, 0x8f, 0x89, 0x03, 0xe0, - 0x86, 0x6a, 0xb8, 0x61, 0xa7, 0xaf, 0x47, 0x93, 0x50, 0xbe, 0x5a, 0x2c, 0x75, 0x6b, 0xa0, 0x7a, - 0xb5, 0xd5, 0x95, 0x95, 0xc4, 0x57, 0x33, 0x36, 0x6b, 0xe1, 0xee, 0x84, 0xa2, 0xd5, 0x50, 0xb3, - 0x5a, 0xf6, 0x71, 0x6b, 0xa0, 0x42, 0x12, 0x6c, 0x56, 0x83, 0xcd, 0x6a, 0xb0, 0x59, 0x0d, 0x36, - 0x93, 0x60, 0x33, 0x09, 0x06, 0x93, 0x60, 0x2e, 0xe9, 0xeb, 0xad, 0x24, 0x3c, 0xbf, 0x03, 0xac, - 0x55, 0x5b, 0x7d, 0xf5, 0x2a, 0xd7, 0x53, 0x38, 0x7f, 0xce, 0xd9, 0xe8, 0x1c, 0xa3, 0x6f, 0xd6, - 0xf2, 0xff, 0x7a, 0xa0, 0x0a, 0x30, 0xfa, 0x64, 0xab, 0x5b, 0x43, 0x2f, 0x92, 0xf4, 0x22, 0x49, - 0x2f, 0x92, 0xf4, 0xa2, 0xda, 0xea, 0x0e, 0xa3, 0x2b, 0x2e, 0xe1, 0xbf,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0x9e, 0xfe, 0xda, 0x59, 0x04, 0xf3, 0x24, 0xd7, 0x3c, 0xc1, 0x35, 0xb3, - 0x07, 0xde, 0xd3, 0xda, 0xa4, 0x9d, 0x3d, 0x30, 0x33, 0x05, 0xe9, 0x59, 0x82, 0xec, 0x19, 0x02, - 0xef, 0x09, 0x6c, 0xd2, 0x3e, 0x81, 0xfd, 0x2b, 0xb3, 0x03, 0xff, 0xf3, 0x53, 0xd1, 0xcc, 0xcc, - 0x81, 0xf7, 0x54, 0x34, 0x29, 0x1e, 0x65, 0x34, 0x69, 0xde, 0x34, 0x2b, 0x14, 0x68, 0x70, 0xb0, - 0x5b, 0x01, 0x76, 0x2b, 0xc0, 0x6e, 0x05, 0xd8, 0xad, 0xb0, 0x33, 0x8f, 0x67, 0x72, 0xce, 0x8c, - 0x28, 0x2b, 0xc0, 0x72, 0x05, 0x58, 0xae, 0xb0, 0x23, 0xca, 0xb9, 0x9c, 0xab, 0xdd, 0x77, 0xc1, - 0x74, 0x05, 0x98, 0xae, 0x40, 0x4e, 0xdf, 0xf5, 0x66, 0x0e, 0xed, 0xa8, 0xb2, 0x02, 0x8c, 0x57, - 0x80, 0xf1, 0x0a, 0x30, 0x5e, 0x01, 0xc6, 0x2b, 0xc0, 0x78, 0x05, 0xa3, 0xca, 0x42, 0x46, 0x95, - 0x85, 0x8c, 0x2a, 0x0b, 0x19, 0x55, 0x16, 0x32, 0xaa, 0x2c, 0x54, 0x58, 0x21, 0x75, 0x09, 0x70, - 0x29, 0x80, 0xd5, 0x50, 0x60, 0x4a, 0x8d, 0x00, 0x46, 0x5a, 0x0a, 0x55, 0x40, 0xa1, 0x0a, 0x28, - 0x54, 0x01, 0x85, 0x2a, 0xa0, 0x50, 0x45, 0x83, 0x33, 0x8b, 0xe9, 0x11, 0xe7, 0x5d, 0xdc, 0x73, - 0x0f, 0x70, 0x1f, 0xf0, 0x00, 0x79, 0x1f, 0x02, 0x1e, 0x01, 0x1e, 0x03, 0x9e, 0x00, 0x9e, 0x02, - 0x9e, 0x01, 0xe8, 0x07, 0x54, 0xab, 0x80, 0x6a, 0x15, 0x50, 0xad, 0x02, 0xaa, 0x55, 0x40, 0xb5, - 0x0a, 0xa8, 0x56, 0x51, 0x6b, 0x16, 0xd1, 0x1b, 0x7d, 0x56, 0x78, 0xb3, 0x84, 0x76, 0xf4, 0xb9, - 0x5c, 0xc3, 0x01, 0x50, 0xb0, 0xc2, 0xce, 0x0e, 0x3e, 0xcd, 0xd9, 0x1b, 0x81, 0x56, 0x64, 0x8d, - 0x40, 0x0b, 0x19, 0x81, 0x16, 0x32, 0x02, 0x2d, 0xd4, 0x15, 0x96, 0xba, 0x15, 0xfe, 0x28, 0xb4, - 0x02, 0x0a, 0x57, 0xd8, 0x51, 0xe8, 0x1c, 0xd2, 0xe7, 0x5a, 0x6a, 0x57, 0x40, 0xed, 0x0a, 0xa8, - 0x5d, 0xe1, 0xcf, 0x0c, 0x56, 0x78, 0x33, 0x83, 0xb5, 0x46, 0xa3, 0x15, 0xe8, 0xae, 0x77, 0x75, - 0x92, 0xfc, 0xdb, 0x81, 0x9d, 0x00, 0xdc, 0xad, 0x7f, 0x01, 0x7e, 0x03, 0xfe, 0x00, 0x52, 0x50, - 0x55, 0x00, 0x70, 0xbc, 0xe3, 0x00, 0x61, 0xcb, 0x2d, 0x15, 0x70, 0x4b, 0x05, 0xdc, 0x52, 0x01, - 0xb7, 0x54, 0xc0, 0x2d, 0x15, 0x70, 0x4b, 0x05, 0xdc, 0x52, 0x01, 0xb7, 0x54, 0xfc, 0x2f, 0x33, - 0x89, 0x15, 0x70, 0x4b, 0x05, 0xdc, 0x52, 0xe1, 0xcf, 0x24, 0x56, 0x64, 0x8f, 0x60, 0xd1, 0x9b, - 0xef, 0x8a, 0x5c, 0xdf, 0xcb, 0x4c, 0x1a, 0x2f, 0x13, 0x49, 0x4d, 0x1a, 0xcf, 0x09, 0x69, 0x4d, - 0x22, 0xad, 0x49, 0xe3, 0xbd, 0x88, 0x13, 0xc5, 0x49, 0x8c, 0x5c, 0x4f, 0x06, 0x4e, 0x01, 0x4e, - 0x03, 0xce, 0x04, 0x9e, 0x04, 0x9e, 0x05, 0xa6, 0x01, 0x5f, 0x01, 0x73, 0x81, 0x6a, 0xd1, 0x42, - 0xfc, 0xc4, 0xf9, 0x17, 0xf7, 0x67, 0xa9, 0x44, 0x01, 0x25, 0xb6, 0x90, 0x6d, 0x38, 0x77, 0x00, - 0x0e, 0x07, 0xb8, 0x57, 0xf6, 0x04, 0x06, 0x98, 0x59, 0x08, 0x60, 0x14, 0x30, 0x1a, 0x30, 0xb3, - 0x12, 0x57, 0x02, 0x0f, 0x00, 0x0f, 0x01, 0x8f, 0x00, 0x8f, 0x01, 0x4f, 0x00, 0x4f, 0x01, 0xcf, - 0x00, 0xd4, 0xa5, 0x9e, 0x03, 0x9e, 0x07, 0x5e, 0x04, 0xc6, 0x03, 0x13, 0x80, 0x89, 0xa2, 0x40, - 0x5f, 0x06, 0x3c, 0x0e, 0x3c, 0x0d, 0x3c, 0x6b, 0x66, 0x0c, 0x80, 0x8f, 0x81, 0xe9, 0xc0, 0x02, - 0xe0, 0x1b, 0xe0, 0x5b, 0xe0, 0x07, 0x20, 0xea, 0xfe, 0xac, 0xe3, 0x9c, 0xb7, 0x89, 0x16, 0x4e, - 0xae, 0x28, 0x70, 0xf2, 0x81, 0x02, 0xa0, 0x08, 0x28, 0x01, 0x9a, 0x00, 0xcd, 0x80, 0x32, 0x60, - 0x5f, 0x60, 0x7f, 0xa0, 0x0b, 0x70, 0x10, 0xd0, 0xd7, 0xfd, 0x19, 0xac, 0xfc, 0x0c, 0x56, 0x5a, - 0x04, 0x23, 0xf3, 0xa4, 0x1d, 0x99, 0x7b, 0xa3, 0xf2, 0x24, 0x92, 0xb4, 0x03, 0x09, 0xda, 0x51, - 0x77, 0x74, 0x9e, 0x35, 0x22, 0x4f, 0x36, 0x30, 0x22, 0xf7, 0x34, 0x7a, 0xed, 0x11, 0x39, 0x74, - 0xb0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, 0x6d, 0x89, 0xb7, 0x73, 0xda, 0x11, 0x6f, 0xef, 0xb4, 0x27, 0xde, - 0xc1, 0xe9, 0x40, 0x7c, 0x0f, 0x67, 0x0f, 0xe2, 0x7b, 0x3a, 0x7b, 0x12, 0xdf, 0xcb, 0xd9, 0x8b, - 0xf8, 0xde, 0xce, 0xde, 0xc4, 0x3b, 0x3a, 0x1d, 0x89, 0x77, 0x72, 0x3a, 0x11, 0xef, 0xec, 0x74, - 0x26, 0x8e, 0x8d, 0x24, 0xc4, 0x46, 0x8a, 0x02, 0x63, 0x23, 0x09, 0x8f, 0x77, 0x8e, 0x17, 0xc5, - 0xce, 0xbf, 0x9c, 0x7f, 0x89, 0x96, 0xce, 0x09, 0xce, 0x09, 0xc4, 0xbb, 0x3b, 0xdd, 0x89, 0x9f, - 0xe8, 0x9c, 0x48, 0xbc, 0x87, 0xd3, 0x83, 0x38, 0x16, 0x54, 0xe4, 0xd9, 0xdd, 0x99, 0x94, 0xdd, - 0x9d, 0x29, 0x8c, 0x05, 0x35, 0xcf, 0xa5, 0xce, 0x70, 0xce, 0x10, 0xad, 0xb0, 0xa3, 0x67, 0x8a, - 0x1c, 0x67, 0x80, 0x33, 0x40, 0xe4, 0x3a, 0x67, 0xd9, 0x67, 0x53, 0x03, 0x9d, 0x81, 0xa4, 0x9b, - 0xbd, 0x9b, 0x9a, 0x63, 0x59, 0xcf, 0x17, 0xed, 0x9c, 0x41, 0xce, 0x20, 0xf2, 0x60, 0x5f, 0x29, - 0x07, 0xfb, 0x4a, 0x39, 0x66, 0x37, 0x27, 0x65, 0x77, 0x73, 0x2a, 0x36, 0xf6, 0x15, 0xbb, 0xa3, - 0xd0, 0xe4, 0xc6, 0xbe, 0xe6, 0x58, 0xfb, 0x9a, 0x63, 0xed, 0x6b, 0x53, 0x33, 0x96, 0xc4, 0x0e, - 0x19, 0x2b, 0xdb, 0x14, 0xcf, 0x71, 0x6f, 0xae, 0x8c, 0x95, 0x0d, 0x89, 0xfd, 0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 0xa0, 0x17, 0xfa, 0xa2, 0x1f, 0x7a, 0xdb, 0xbb, 0xab, 0x64, 0xde, 0xf4, 0xb7, 0x35, - 0x22, 0x2d, 0x4a, 0x11, 0x1e, 0xc9, 0xca, 0x51, 0x2b, 0x79, 0x66, 0x85, 0x89, 0xfc, 0x17, 0x00, - 0x00, 0xff, 0xff, -} diff --git a/vendor/github.com/google/gxui/image.go b/vendor/github.com/google/gxui/image.go deleted file mode 100644 index 084b784..0000000 --- a/vendor/github.com/google/gxui/image.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" -) - -type ScalingMode int - -const ( - Scaling1to1 ScalingMode = iota - ScalingExpandGreedy - ScalingExplicitSize -) - -type AspectMode int - -const ( - AspectStretch = iota - AspectCorrectLetterbox - AspectCorrectCrop -) - -type Image interface { - Control - Texture() Texture - SetTexture(Texture) - Canvas() Canvas - SetCanvas(Canvas) - BorderPen() Pen - SetBorderPen(Pen) - BackgroundBrush() Brush - SetBackgroundBrush(Brush) - ScalingMode() ScalingMode - SetScalingMode(ScalingMode) - SetExplicitSize(math.Size) - AspectMode() AspectMode - SetAspectMode(AspectMode) - PixelAt(math.Point) (math.Point, bool) // TODO: Remove -} diff --git a/vendor/github.com/google/gxui/interval/int_data.go b/vendor/github.com/google/gxui/interval/int_data.go deleted file mode 100644 index 1e8bb0b..0000000 --- a/vendor/github.com/google/gxui/interval/int_data.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package interval - -type IntData struct { - start, end int - data interface{} -} - -type IntDataList []IntData - -func CreateIntData(start, end int, data interface{}) IntData { - return IntData{ - start: start, - end: end, - data: data, - } -} - -func (t IntData) Range() (start, end int) { - return t.start, t.end -} - -func (t IntData) Data() interface{} { - return t.data -} - -func (t IntData) Span() (start, end uint64) { - return uint64(t.start), uint64(t.end) -} - -func (t IntData) Contains(v int) bool { - return v >= t.start && v < t.end -} - -func (l IntDataList) Len() int { - return len(l) -} - -func (l IntDataList) Cap() int { - return cap(l) -} - -func (l *IntDataList) SetLen(len int) { - *l = (*l)[:len] -} - -func (l *IntDataList) GrowTo(length, capacity int) { - old := *l - *l = make(IntDataList, length, capacity) - copy(*l, old) -} - -func (l IntDataList) Copy(to, from, count int) { - copy(l[to:to+count], l[from:from+count]) -} - -func (l IntDataList) GetInterval(index int) (start, end uint64) { - return l[index].Span() -} - -func (l IntDataList) SetInterval(index int, start, end uint64) { - l[index].start = int(start) - l[index].end = int(end) -} - -func (l IntDataList) MergeData(index int, i Node) { - l[index].data = i.(IntData).data -} - -func (l IntDataList) Overlaps(i IntData) IntDataList { - first, count := Intersect(l, i) - return l[first : first+count] -} diff --git a/vendor/github.com/google/gxui/interval/list.go b/vendor/github.com/google/gxui/interval/list.go deleted file mode 100644 index 7a09d3e..0000000 --- a/vendor/github.com/google/gxui/interval/list.go +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package interval - -import "sort" - -type Node interface { - Span() (start, end uint64) -} - -type RList interface { - Len() int - GetInterval(index int) (start, end uint64) - SetInterval(index int, start, end uint64) -} - -type List interface { - RList - Copy(to, from, count int) - Cap() int - SetLen(len int) - GrowTo(length, capacity int) -} - -type ExtendedList interface { - MergeData(index int, i Node) -} - -type intersection struct { - overlap int - lowIndex int - lowStart, lowEnd uint64 - intersectsLow bool - highIndex int - highStart, highEnd uint64 - intersectsHigh bool -} - -const ( - minSpace = 3 // Max growth of 2 plus one slot for temporary - minCap = 5 -) - -func Merge(l List, i Node) { - start, end := i.Span() - s := intersection{} - s.intersect(l, start, end) - adjust(l, s.lowIndex, 1-s.overlap) - if s.intersectsLow { - start = s.lowStart - } - if s.intersectsHigh { - end = s.highEnd - } - l.SetInterval(s.lowIndex, start, end) - if dl, ok := l.(ExtendedList); ok { - dl.MergeData(s.lowIndex, i) - } -} - -func Replace(l List, i Node) { - start, end := i.Span() - index, start, end := replace(l, start, end, true) - l.SetInterval(index, start, end) - if dl, ok := l.(ExtendedList); ok { - dl.MergeData(index, i) - } -} - -func Remove(l List, i Node) { - start, end := i.Span() - replace(l, start, end, false) -} - -func Intersect(l RList, i Node) (first, count int) { - start, end := i.Span() - s := intersection{} - s.intersect(l, start, end) - return s.lowIndex, s.overlap -} - -type Visitor func(start, end uint64, index int) - -func Visit(l RList, i Node, v Visitor) { - start, end := i.Span() - s := intersection{} - s.intersect(l, start, end) - for index := s.lowIndex; index < s.lowIndex+s.overlap; index++ { - s, e := l.GetInterval(index) - if s < start { - s = start - } - if e > end { - e = end - } - v(s, e, index) - } -} - -func Contains(l RList, p uint64) bool { - return IndexOf(l, p) >= 0 -} - -func IndexOf(l RList, p uint64) int { - index := sort.Search(l.Len(), func(at int) bool { - iStart, _ := l.GetInterval(at) - return p < iStart - }) - index-- - if index >= 0 { - _, iEnd := l.GetInterval(index) - if p < iEnd { - return index - } - } - return -1 -} - -func FindStart(l RList, at int, start uint64) bool { - _, iEnd := l.GetInterval(at) - return start < iEnd -} - -func FindEnd(l RList, at int, end uint64) bool { - iStart, _ := l.GetInterval(at) - return end <= iStart -} - -func Search(l RList, v uint64, f func(l RList, at int, v uint64) bool) int { - i, j := 0, l.Len() - for i < j { - h := i + (j-i)/2 - if !f(l, h, v) { - i = h + 1 - } else { - j = h - } - } - return i -} - -func (s *intersection) intersect(l RList, start, end uint64) { - beforeLen := Search(l, start, FindStart) - afterIndex := Search(l, end, FindEnd) - if afterIndex < beforeLen { - afterIndex, beforeLen = beforeLen, afterIndex - } - s.lowIndex = beforeLen - s.highIndex = afterIndex - 1 - s.overlap = afterIndex - beforeLen - s.intersectsLow = false - s.intersectsHigh = false - if s.overlap > 0 { - s.lowStart, s.lowEnd = l.GetInterval(s.lowIndex) - s.intersectsLow = s.lowStart < start - s.highStart, s.highEnd = l.GetInterval(s.highIndex) - s.intersectsHigh = end < s.highEnd - } -} - -func adjust(l List, at, delta int) { - if delta == 0 { - return - } - oldLen := l.Len() - newLen := oldLen + delta - if delta > 0 { - cap := l.Cap() - if cap < newLen { - newCap := newLen + (newLen >> 1) - l.GrowTo(newLen, newCap) - } else { - l.SetLen(newLen) - } - } - copyStart := at - delta - copyTo := at - if copyStart < 0 { - copyTo -= copyStart - copyStart = 0 - } - l.Copy(copyTo, copyStart, newLen-copyTo) - if delta < 0 { - l.SetLen(newLen) - } -} - -func replace(l List, start, end uint64, add bool) (int, uint64, uint64) { - s := intersection{} - s.intersect(l, start, end) - if s.overlap == 0 { - if add { - adjust(l, s.lowIndex, 1) - } - return s.lowIndex, start, end - } - - insertLen := 0 - insertPoint := s.lowIndex - if s.intersectsLow { - s.lowEnd = start - insertLen++ - insertPoint++ - } - if add { - insertLen++ - } - if s.intersectsHigh { - s.highStart = end - insertLen++ - } - delta := insertLen - s.overlap - adjust(l, insertPoint, delta) - if s.intersectsLow { - l.SetInterval(s.lowIndex, s.lowStart, s.lowEnd) - } - if s.intersectsHigh { - l.SetInterval(s.lowIndex+insertLen-1, s.highStart, s.highEnd) - } - return insertPoint, start, end -} diff --git a/vendor/github.com/google/gxui/interval/u64.go b/vendor/github.com/google/gxui/interval/u64.go deleted file mode 100644 index 63b0781..0000000 --- a/vendor/github.com/google/gxui/interval/u64.go +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package interval - -import ( - "bytes" - "encoding/binary" - "fmt" - "strings" -) - -type U64 struct { - first uint64 - count uint64 -} - -type U64List []U64 - -func CreateU64(first, count uint64) U64 { - return U64{first, count} -} - -func CreateU64Inc(first, last uint64) U64 { - if last < first { - panic(fmt.Errorf("Attempting to set last before first! [0x%.16x-0x%.16x]", first, last)) - } - return U64{first, 1 + last - first} -} - -func (i U64) Expand(value uint64) U64 { - if i.first > value { - i.first = value - } - if i.Last() < value { - i.count += value - i.Last() - } - return i -} - -func (i U64) Contains(value uint64) bool { - return i.first <= value && value <= i.Last() -} - -func (i U64) Range() (start, end uint64) { - return i.first, i.first + i.count -} - -func (i U64) First() uint64 { - return i.first -} - -func (i U64) Last() uint64 { - return i.first + i.count - 1 -} - -func (i U64) Count() uint64 { - return i.count -} - -func (i U64) String() string { - return fmt.Sprintf("[0x%.16x-0x%.16x]", i.first, i.Last()) -} - -func (i U64) Span() (start, end uint64) { - return i.first, i.first + i.count -} - -// encoding.BinaryMarshaler compliance -func (i U64) MarshalBinary() ([]byte, error) { - buf := &bytes.Buffer{} - err := binary.Write(buf, binary.LittleEndian, i.first) - if err != nil { - return nil, err - } - err = binary.Write(buf, binary.LittleEndian, i.count) - if err != nil { - return nil, err - } - return buf.Bytes(), nil -} - -// encoding.BinaryUnmarshaler compliance -func (i *U64) UnmarshalBinary(data []byte) error { - buf := bytes.NewBuffer(data) - err := binary.Read(buf, binary.LittleEndian, &i.first) - if err != nil { - return err - } - err = binary.Read(buf, binary.LittleEndian, &i.count) - return err -} - -func (l U64List) Len() int { - return len(l) -} - -func (l U64List) Cap() int { - return cap(l) -} - -func (l *U64List) SetLen(len int) { - *l = (*l)[:len] -} - -func (l *U64List) GrowTo(length, capacity int) { - old := *l - *l = make(U64List, length, capacity) - copy(*l, old) -} - -func (l U64List) Copy(to, from, count int) { - copy(l[to:to+count], l[from:from+count]) -} - -func (l U64List) GetInterval(index int) (start, end uint64) { - return l[index].Span() -} - -func (l U64List) SetInterval(index int, start, end uint64) { - l[index].first = start - l[index].count = end - start -} - -func (l U64List) Overlaps(i IntData) U64List { - first, count := Intersect(l, i) - return l[first : first+count] -} - -func (l U64List) String() string { - s := make([]string, len(l)) - for i, v := range l { - s[i] = fmt.Sprintf("%d%s", i, v) - } - return "{" + strings.Join(s, ",") + "}" -} diff --git a/vendor/github.com/google/gxui/keyboard_controller.go b/vendor/github.com/google/gxui/keyboard_controller.go deleted file mode 100644 index 5c899a9..0000000 --- a/vendor/github.com/google/gxui/keyboard_controller.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type KeyboardController struct { - window Window -} - -func CreateKeyboardController(w Window) *KeyboardController { - c := &KeyboardController{ - window: w, - } - w.OnKeyDown(c.keyDown) - w.OnKeyUp(c.keyUp) - w.OnKeyRepeat(c.keyPress) - w.OnKeyStroke(c.keyStroke) - return c -} - -func (c *KeyboardController) keyDown(ev KeyboardEvent) { - f := Control(c.window.Focus()) - for f != nil { - f.KeyDown(ev) - f, _ = f.Parent().(Control) - } - c.keyPress(ev) -} - -func (c *KeyboardController) keyUp(ev KeyboardEvent) { - f := Control(c.window.Focus()) - for f != nil { - f.KeyUp(ev) - f, _ = f.Parent().(Control) - } -} - -func (c *KeyboardController) keyPress(ev KeyboardEvent) { - f := Control(c.window.Focus()) - for f != nil { - if f.KeyPress(ev) { - return - } - f, _ = f.Parent().(Control) - } - c.window.KeyPress(ev) -} - -func (c *KeyboardController) keyStroke(ev KeyStrokeEvent) { - f := Control(c.window.Focus()) - for f != nil { - if f.KeyStroke(ev) { - return - } - f, _ = f.Parent().(Control) - } - c.window.KeyStroke(ev) -} diff --git a/vendor/github.com/google/gxui/keyboard_event.go b/vendor/github.com/google/gxui/keyboard_event.go deleted file mode 100644 index b2abde3..0000000 --- a/vendor/github.com/google/gxui/keyboard_event.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type KeyboardEvent struct { - Key KeyboardKey - Modifier KeyboardModifier -} diff --git a/vendor/github.com/google/gxui/keyboard_key.go b/vendor/github.com/google/gxui/keyboard_key.go deleted file mode 100644 index 917a015..0000000 --- a/vendor/github.com/google/gxui/keyboard_key.go +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type KeyboardKey int - -const ( - KeyUnknown KeyboardKey = iota - KeySpace - KeyApostrophe - KeyComma - KeyMinus - KeyPeriod - KeySlash - Key0 - Key1 - Key2 - Key3 - Key4 - Key5 - Key6 - Key7 - Key8 - Key9 - KeySemicolon - KeyEqual - KeyA - KeyB - KeyC - KeyD - KeyE - KeyF - KeyG - KeyH - KeyI - KeyJ - KeyK - KeyL - KeyM - KeyN - KeyO - KeyP - KeyQ - KeyR - KeyS - KeyT - KeyU - KeyV - KeyW - KeyX - KeyY - KeyZ - KeyLeftBracket - KeyBackslash - KeyRightBracket - KeyGraveAccent - KeyWorld1 - KeyWorld2 - KeyEscape - KeyEnter - KeyTab - KeyBackspace - KeyInsert - KeyDelete - KeyRight - KeyLeft - KeyDown - KeyUp - KeyPageUp - KeyPageDown - KeyHome - KeyEnd - KeyCapsLock - KeyScrollLock - KeyNumLock - KeyPrintScreen - KeyPause - KeyF1 - KeyF2 - KeyF3 - KeyF4 - KeyF5 - KeyF6 - KeyF7 - KeyF8 - KeyF9 - KeyF10 - KeyF11 - KeyF12 - KeyKp0 - KeyKp1 - KeyKp2 - KeyKp3 - KeyKp4 - KeyKp5 - KeyKp6 - KeyKp7 - KeyKp8 - KeyKp9 - KeyKpDecimal - KeyKpDivide - KeyKpMultiply - KeyKpSubtract - KeyKpAdd - KeyKpEnter - KeyKpEqual - KeyLeftShift - KeyLeftControl - KeyLeftAlt - KeyLeftSuper - KeyRightShift - KeyRightControl - KeyRightAlt - KeyRightSuper - KeyMenu - KeyLast -) diff --git a/vendor/github.com/google/gxui/keyboard_modifier.go b/vendor/github.com/google/gxui/keyboard_modifier.go deleted file mode 100644 index 7aa5f2e..0000000 --- a/vendor/github.com/google/gxui/keyboard_modifier.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type KeyboardModifier int - -const ( - ModNone KeyboardModifier = 0 - ModShift KeyboardModifier = 1 - ModControl KeyboardModifier = 2 - ModAlt KeyboardModifier = 4 - ModSuper KeyboardModifier = 8 -) - -func (m KeyboardModifier) Shift() bool { - return m&ModShift != 0 -} - -func (m KeyboardModifier) Control() bool { - return m&ModControl != 0 -} - -func (m KeyboardModifier) Alt() bool { - return m&ModAlt != 0 -} - -func (m KeyboardModifier) Super() bool { - return m&ModSuper != 0 -} diff --git a/vendor/github.com/google/gxui/keystroke_event.go b/vendor/github.com/google/gxui/keystroke_event.go deleted file mode 100644 index 998252c..0000000 --- a/vendor/github.com/google/gxui/keystroke_event.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type KeyStrokeEvent struct { - Character rune - Modifier KeyboardModifier -} diff --git a/vendor/github.com/google/gxui/label.go b/vendor/github.com/google/gxui/label.go deleted file mode 100644 index b8d2166..0000000 --- a/vendor/github.com/google/gxui/label.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type Label interface { - Control - Text() string - SetText(string) - Font() Font - SetFont(Font) - Color() Color - SetColor(Color) - Multiline() bool - SetMultiline(bool) - SetHorizontalAlignment(HorizontalAlignment) - HorizontalAlignment() HorizontalAlignment - SetVerticalAlignment(VerticalAlignment) - VerticalAlignment() VerticalAlignment -} diff --git a/vendor/github.com/google/gxui/linear_layout.go b/vendor/github.com/google/gxui/linear_layout.go deleted file mode 100644 index be194ac..0000000 --- a/vendor/github.com/google/gxui/linear_layout.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -// LinearLayout is a Container that lays out its child Controls into a column or -// row. The layout will always start by positioning the first (0'th) child, and -// then depending on the direction, will position each successive child either -// to the left, top, right or bottom of the preceding child Control. -// LinearLayout makes no effort to distribute remaining space evenly between the -// children - an child control that is laid out before others will reduce the -// remaining space given to the later children, even to the point that there is -// zero space remaining. -type LinearLayout interface { - // LinearLayout extends the Control interface. - Control - - // LinearLayout extends the Container interface. - Container - - // Direction returns the direction of layout for this LinearLayout. - Direction() Direction - - // Direction sets the direction of layout for this LinearLayout. - SetDirection(Direction) - - // SizeMode returns the desired size behaviour for this LinearLayout. - SizeMode() SizeMode - - // SetSizeMode sets the desired size behaviour for this LinearLayout. - SetSizeMode(SizeMode) - - // HorizontalAlignment returns the alignment of the child Controls when laying - // out TopToBottom or BottomToTop. It has no effect when the layout direction - // is LeftToRight or RightToLeft. - HorizontalAlignment() HorizontalAlignment - - // SetHorizontalAlignment sets the alignment of the child Controls when laying - // out TopToBottom or BottomToTop. It has no effect when the layout direction - // is LeftToRight or RightToLeft. - SetHorizontalAlignment(HorizontalAlignment) - - // VerticalAlignment returns the alignment of the child Controls when laying - // out LeftToRight or RightToLeft. It has no effect when the layout direction - // is TopToBottom or BottomToTop. - VerticalAlignment() VerticalAlignment - - // SetVerticalAlignment returns the alignment of the child Controls when - // laying out LeftToRight or RightToLeft. It has no effect when the layout - // direction is TopToBottom or BottomToTop. - SetVerticalAlignment(VerticalAlignment) - - // BorderPen returns the Pen used to draw the LinearLayout's border. - BorderPen() Pen - - // SetBorderPen sets the Pen used to draw the LinearLayout's border. - SetBorderPen(Pen) - - // BackgroundBrush returns the Brush used to fill the LinearLayout's - // background. - BackgroundBrush() Brush - - // SetBackgroundBrush sets the Brush used to fill the LinearLayout's - // background. - SetBackgroundBrush(Brush) -} diff --git a/vendor/github.com/google/gxui/list.go b/vendor/github.com/google/gxui/list.go deleted file mode 100644 index 2798b58..0000000 --- a/vendor/github.com/google/gxui/list.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import "github.com/google/gxui/math" - -type List interface { - Focusable - Parent - Adapter() ListAdapter - SetAdapter(ListAdapter) - SetOrientation(Orientation) - Orientation() Orientation - BorderPen() Pen - SetBorderPen(Pen) - BackgroundBrush() Brush - SetBackgroundBrush(Brush) - ScrollTo(AdapterItem) - IsItemVisible(AdapterItem) bool - ItemControl(AdapterItem) Control - Selected() AdapterItem - Select(AdapterItem) bool - OnSelectionChanged(func(AdapterItem)) EventSubscription - OnItemClicked(func(MouseEvent, AdapterItem)) EventSubscription -} - -// ListAdapter is an interface used to visualize a flat set of items. -// Users of the ListAdapter should presume the data is unchanged until the -// OnDataChanged or OnDataReplaced events are fired. -type ListAdapter interface { - // Count returns the total number of items. - Count() int - - // ItemAt returns the AdapterItem for the item at index i. It is important - // for the Adapter to return consistent AdapterItems for the same data, so - // that selections can be persisted, or re-ordering animations can be played - // when the dataset changes. - // The AdapterItem returned must be equality-unique across all indices. - ItemAt(index int) AdapterItem - - // ItemIndex returns the index of item, or -1 if the adapter does not contain - // item. - ItemIndex(item AdapterItem) int - - // Create returns a Control visualizing the item at the specified index. - Create(theme Theme, index int) Control - - // Size returns the size that each of the item's controls will be displayed - // at for the given theme. - Size(Theme) math.Size - - // OnDataChanged registers f to be called when there is a partial change in - // the items of the adapter. Scroll positions and selections should be - // preserved if possible. - // If recreateControls is true then each of the visible controls should be - // recreated by re-calling Create(). - OnDataChanged(f func(recreateControls bool)) EventSubscription - - // OnDataReplaced registers f to be called when there is a complete - // replacement of items in the adapter. - OnDataReplaced(f func()) EventSubscription -} diff --git a/vendor/github.com/google/gxui/math/constants.go b/vendor/github.com/google/gxui/math/constants.go deleted file mode 100644 index 51bf265..0000000 --- a/vendor/github.com/google/gxui/math/constants.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -import ( - "math" -) - -var ZeroSize Size -var ZeroSpacing Spacing -var ZeroPoint Point - -var MaxSize = Size{0x40000000, 0x40000000} // Picked to avoid integer overflows - -var Mat2Ident Mat2 = CreateMat2(1, 0, 0, 1) -var Mat3Ident Mat3 = CreateMat3(1, 0, 0, 0, 1, 0, 0, 0, 1) - -const Pi = float32(math.Pi) -const TwoPi = Pi * 2.0 - -const MaxUint = ^uint(0) -const MinUint = 0 -const MaxInt = int(MaxUint >> 1) -const MinInt = -(MaxInt - 1) diff --git a/vendor/github.com/google/gxui/math/line_intersect.go b/vendor/github.com/google/gxui/math/line_intersect.go deleted file mode 100644 index 9519056..0000000 --- a/vendor/github.com/google/gxui/math/line_intersect.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -func linesIntersect(p0, p1, q0, q1 Vec2) bool { - const epsilon = 0.0001 - // http://stackoverflow.com/a/565282 - // t = (q − p) × s / (r × s) - r, s := p1.Sub(p0), q1.Sub(q0) - PmQ := p0.Sub(q0) - QmP := q0.Sub(p0) - ScR := s.Cross(r) - if Absf(ScR) < 0.0001 { - // Lines are parallel - QmPcR := QmP.Cross(r) - if Absf(QmPcR) < 0.0001 { - // Colinear - QmPdR := QmP.Dot(r) - PmQdS := PmQ.Dot(s) - if (0 <= QmPdR && QmPdR < r.Dot(r)) || - (0 <= PmQdS && PmQdS < s.Dot(s)) { - return true - } - } - return false - } - t := PmQ.Cross(s) / ScR - u := PmQ.Cross(r) / ScR - return t > epsilon && u > epsilon && t < 1-epsilon && u < 1-epsilon -} diff --git a/vendor/github.com/google/gxui/math/mat2.go b/vendor/github.com/google/gxui/math/mat2.go deleted file mode 100644 index 9dec4b2..0000000 --- a/vendor/github.com/google/gxui/math/mat2.go +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -import ( - "fmt" -) - -// ╭ ╮ -// │ M₀ M₁ │ -// │ M₂ M₃ │ -// ╰ ╯ -type Mat2 [4]float32 - -func CreateMat2(r0c0, r0c1, r1c0, r1c1 float32) Mat2 { - return Mat2{ - r0c0, r0c1, - r1c0, r1c1, - } -} - -// ╭ ╮ -// │ R₀ │ -// │ R₁ │ -// ╰ ╯ -func CreateMat2FromRows(r0, r1 Vec2) Mat2 { - return Mat2{ - r0.X, r0.Y, - r1.X, r1.Y, - } -} - -func (m Mat2) String() string { - s := make([]string, 4) - l := 0 - for i, v := range m { - s[i] = fmt.Sprintf("%.5f", v) - l = Max(l, len(s[i])) - } - for i, _ := range m { - for len(s[i]) < l { - s[i] = " " + s[i] - } - } - p := "" - for i := 0; i < l; i++ { - p += " " - } - return fmt.Sprintf( - "\n╭ %s %s ╮"+ - "\n│ %s %s │"+ - "\n│ %s %s │"+ - "\n╰ %s %s ╯", - p, p, - s[0], s[1], - s[2], s[3], - p, p, - ) -} - -func (m Mat2) Rows() (r0, r1 Vec2) { - return Vec2{m[0], m[1]}, Vec2{m[2], m[3]} -} - -func (m Mat2) Row(i int) Vec2 { - i *= 2 - return Vec2{m[i+0], m[i+1]} -} - -func (m Mat2) Invert() Mat2 { - - // ╭ ╮⁻¹ ╭ ╮ - // │ M₀ M₁ │ = 1 │ M₃ -M₁ │ - // │ M₂ M₃ │ ─── │ -M₂ M₀ │ - // ╰ ╯ det ╰ ╯ - // - // Where: det = M₀ • M₃ - M₁ • M₂ - // - det := m[0]*m[3] - m[1]*m[2] - return DivM2S(CreateMat2(m[3], -m[1], -m[2], m[0]), det) -} - -func (m Mat2) Transpose() Mat2 { - return CreateMat2( - m[0], m[2], - m[1], m[3], - ) -} - -// ╭ ╮ -// │ M₀ M₁ │ -// [V₀, V₁] ⨯ │ M₂ M₃ │ = [V₀ • M₀ + V₁ • M₂, V₀ • M₁ + V₁ • M₃] -// ╰ ╯ -func MulVM2(v Vec2, m Mat2) Vec2 { - a := m.Row(0).MulS(v.X) - b := m.Row(1).MulS(v.Y) - return a.Add(b) -} - -func DivM2S(m Mat2, s float32) Mat2 { - return CreateMat2FromRows( - m.Row(0).DivS(s), - m.Row(1).DivS(s), - ) -} diff --git a/vendor/github.com/google/gxui/math/mat3.go b/vendor/github.com/google/gxui/math/mat3.go deleted file mode 100644 index 7591972..0000000 --- a/vendor/github.com/google/gxui/math/mat3.go +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -import ( - "fmt" -) - -// A 3x3 matrix: -// ╭ ╮ -// │ M₀ M₁ M₂ │ -// │ M₃ M₄ M₅ │ -// │ M₆ M₇ M₈ │ -// ╰ ╯ -type Mat3 [9]float32 - -func CreateMat3(r0c0, r0c1, r0c2, r1c0, r1c1, r1c2, r2c0, r2c1, r2c2 float32) Mat3 { - return Mat3{ - r0c0, r0c1, r0c2, - r1c0, r1c1, r1c2, - r2c0, r2c1, r2c2, - } -} - -// Build a 3x3 matrix from 3 row vectors -// ╭ ╮ -// │ R₀ │ -// │ R₁ │ -// │ R₂ │ -// ╰ ╯ -func CreateMat3FromRows(r0, r1, r2 Vec3) Mat3 { - return Mat3{ - r0.X, r0.Y, r0.Z, - r1.X, r1.Y, r1.Z, - r2.X, r2.Y, r2.Z, - } -} - -// A -// ╱ ╲ -// ╱___╲ -// B C -// -// [V₀, V₁, V₂] * M = [λ₀, λ₁, 1] -// λ₂ = 1 - (λ₀ + λ₁) -// -// [V₀, V₁, V₂] = A • λ₀ + B • λ₁ + C • λ₂ -// -// A * M = (1, 0, 1) -// B * M = (0, 1, 1) -// C * M = (0, 0, 1) -func CreateMat3PositionToBarycentric(a, b, c Vec2) Mat3 { - m := CreateMat2FromRows(a.Sub(c), b.Sub(c)).Invert() - o := MulVM2(c, m) - return Mat3{ - m[0], m[1], 0, - m[2], m[3], 0, - -o.X, -o.Y, 1, - } -} - -func (m Mat3) String() string { - s := make([]string, 9) - l := 0 - for i, v := range m { - s[i] = fmt.Sprintf("%.5f", v) - l = Max(l, len(s[i])) - } - for i, _ := range m { - for len(s[i]) < l { - s[i] = " " + s[i] - } - } - p := "" - for i := 0; i < l; i++ { - p += " " - } - return fmt.Sprintf( - "\n╭ %s %s %s ╮"+ - "\n│ %s %s %s │"+ - "\n│ %s %s %s │"+ - "\n│ %s %s %s │"+ - "\n╰ %s %s %s ╯", - p, p, p, - s[0], s[1], s[2], - s[3], s[4], s[5], - s[6], s[7], s[8], - p, p, p, - ) -} - -func (m Mat3) Rows() (r0, r1, r2 Vec3) { - return Vec3{m[0], m[1], m[2]}, Vec3{m[3], m[4], m[5]}, Vec3{m[6], m[7], m[8]} -} - -func (m Mat3) Row(i int) Vec3 { - i *= 3 - return Vec3{m[i+0], m[i+1], m[i+2]} -} - -func (m Mat3) Invert() Mat3 { - // ╭ ╮ - // 1 │ C₁ ⨯ C₂ │ - // M⁻¹ = ─── │ C₂ ⨯ C₀ │ - // det │ C₀ ⨯ C₁ │ - // ╰ ╯ - // - // Where: det = C₀ • (C₁ ⨯ C₂) - // - C0, C1, C2 := m.Transpose().Rows() - C0C1, C1C2, C2C0 := C0.Cross(C1), C1.Cross(C2), C2.Cross(C0) - det := C0.Dot(C1C2) - inv := CreateMat3FromRows(C1C2, C2C0, C0C1).DivS(det) - return inv -} - -func (m Mat3) Transpose() Mat3 { - return CreateMat3( - m[0], m[3], m[6], - m[1], m[4], m[7], - m[2], m[5], m[8], - ) -} - -func (m Mat3) DivS(s float32) Mat3 { - return CreateMat3FromRows( - m.Row(0).DivS(s), - m.Row(1).DivS(s), - m.Row(2).DivS(s), - ) -} diff --git a/vendor/github.com/google/gxui/math/math.go b/vendor/github.com/google/gxui/math/math.go deleted file mode 100644 index b0fdb8d..0000000 --- a/vendor/github.com/google/gxui/math/math.go +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -import ( - "math" -) - -func R2D(r float32) float32 { - return 180.0 * r / Pi -} - -func D2R(r float32) float32 { - return Pi * r / 180.0 -} - -func Absf(v float32) float32 { - if v < 0 { - return -v - } else { - return v - } -} - -func Round(v float32) int { - if v < 0 { - return int(v - 0.5) - } else { - return int(v + 0.4999999) - } -} - -func Sinf(v float32) float32 { - return float32(math.Sin(float64(v))) -} - -func Cosf(v float32) float32 { - return float32(math.Cos(float64(v))) -} - -func Tanf(v float32) float32 { - return float32(math.Tan(float64(v))) -} - -func Asinf(v float32) float32 { - return float32(math.Asin(float64(v))) -} - -func Acosf(v float32) float32 { - return float32(math.Acos(float64(v))) -} - -func Atanf(v float32) float32 { - return float32(math.Atan(float64(v))) -} - -func Sqrtf(v float32) float32 { - return float32(math.Sqrt(float64(v))) -} - -func Powf(v, e float32) float32 { - return float32(math.Pow(float64(v), float64(e))) -} - -func Lerp(a, b int, s float32) int { - r := float32(b - a) - return a + int(r*s) -} - -func Lerpf(a, b float32, s float32) float32 { - r := b - a - return a + r*s -} - -func Ramp(s float32, a, b float32) float32 { - return (s - a) / (b - a) -} - -func RampSat(s float32, a, b float32) float32 { - return Saturate((s - a) / (b - a)) -} - -func Saturate(x float32) float32 { - return Clampf(x, 0, 1) -} - -func SmoothStep(s float32, a, b float32) float32 { - x := RampSat(s, a, b) - return x * x * (3 - 2*x) -} - -func Clamp(x, min, max int) int { - switch { - case x < min: - return min - case x > max: - return max - default: - return x - } -} - -func Clampf(x, min, max float32) float32 { - switch { - case x < min: - return min - case x > max: - return max - default: - return x - } -} - -func Min(values ...int) int { - m := MaxInt - for _, v := range values { - if v < m { - m = v - } - } - return m -} - -func Minf(values ...float32) float32 { - m := float32(math.MaxFloat32) - for _, v := range values { - if v < m { - m = v - } - } - return m -} - -func Max(values ...int) int { - m := MinInt - for _, v := range values { - if v > m { - m = v - } - } - return m -} - -func Maxf(values ...float32) float32 { - m := float32(-math.MaxFloat32) - for _, v := range values { - if v > m { - m = v - } - } - return m -} - -func Mod(a, b int) int { - x := a % b - if x < 0 { - return x + b - } else { - return x - } -} diff --git a/vendor/github.com/google/gxui/math/point.go b/vendor/github.com/google/gxui/math/point.go deleted file mode 100644 index eae3517..0000000 --- a/vendor/github.com/google/gxui/math/point.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -type Point struct { - X, Y int -} - -func NewPoint(X, Y int) Point { - return Point{X: X, Y: Y} -} - -func (p Point) Add(o Point) Point { - return Point{p.X + o.X, p.Y + o.Y} -} - -func (p Point) AddX(o int) Point { - return Point{p.X + o, p.Y} -} - -func (p Point) AddY(o int) Point { - return Point{p.X, p.Y + o} -} - -func (p Point) Sub(o Point) Point { - return Point{p.X - o.X, p.Y - o.Y} -} - -func (p Point) Neg() Point { - return Point{-p.X, -p.Y} -} - -func (p Point) SqrLen() int { - return p.Dot(p) -} - -func (p Point) Len() float32 { - return Sqrtf(float32(p.SqrLen())) -} - -func (p Point) Dot(o Point) int { - return p.X*o.X + p.Y*o.Y -} - -func (p Point) XY() (x, y int) { - return p.X, p.Y -} - -func (p Point) Vec2() Vec2 { - return Vec2{float32(p.X), float32(p.Y)} -} - -func (p Point) Vec3(z float32) Vec3 { - return Vec3{float32(p.X), float32(p.Y), z} -} - -func (p Point) Scale(s Vec2) Point { - return Point{int(float32(p.X) * s.X), int(float32(p.Y) * s.Y)} -} - -func (p Point) ScaleS(s float32) Point { - return Point{int(float32(p.X) * s), int(float32(p.Y) * s)} -} - -func (p Point) ScaleX(s float32) Point { - return Point{int(float32(p.X) * s), p.Y} -} - -func (p Point) ScaleY(s float32) Point { - return Point{p.X, int(float32(p.Y) * s)} -} - -func (p Point) Size() Size { - return Size{p.X, p.Y} -} - -func (p Point) Min(o Point) Point { - return Point{Min(p.X, o.X), Min(p.Y, o.Y)} -} - -func (p Point) Max(o Point) Point { - return Point{Max(p.X, o.X), Max(p.Y, o.Y)} -} - -func (p Point) Clamp(min, max Point) Point { - return p.Min(max).Max(min) -} - -func (p Point) Remap(from, to Rect) Point { - return p.Sub(from.Min). - ScaleX(float32(to.W()) / float32(from.W())). - ScaleY(float32(to.H()) / float32(from.H())). - Add(to.Min) -} diff --git a/vendor/github.com/google/gxui/math/rect.go b/vendor/github.com/google/gxui/math/rect.go deleted file mode 100644 index 0961380..0000000 --- a/vendor/github.com/google/gxui/math/rect.go +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -type Rect struct { - Min, Max Point -} - -func CreateRect(minX, minY, maxX, maxY int) Rect { - return Rect{Point{minX, minY}, Point{maxX, maxY}} -} - -func (r Rect) Mid() Point { - return Point{ - (r.Min.X + r.Max.X) / 2, - (r.Min.Y + r.Max.Y) / 2, - } -} - -func (r Rect) W() int { - return r.Max.X - r.Min.X -} - -func (r Rect) H() int { - return r.Max.Y - r.Min.Y -} - -func (r Rect) TL() Point { - return r.Min -} - -func (r Rect) TC() Point { - return Point{(r.Min.X + r.Max.X) / 2, r.Min.Y} -} - -func (r Rect) TR() Point { - return Point{r.Max.X, r.Min.Y} -} - -func (r Rect) BL() Point { - return Point{r.Min.X, r.Max.Y} -} - -func (r Rect) BC() Point { - return Point{(r.Min.X + r.Max.X) / 2, r.Max.Y} -} - -func (r Rect) BR() Point { - return r.Max -} - -func (r Rect) ML() Point { - return Point{r.Min.X, (r.Min.Y + r.Max.Y) / 2} -} - -func (r Rect) MR() Point { - return Point{r.Max.X, (r.Min.Y + r.Max.Y) / 2} -} - -func (r Rect) Size() Size { - return Size{r.Max.X - r.Min.X, r.Max.Y - r.Min.Y} -} - -func (r Rect) ScaleAt(p Point, s Vec2) Rect { - return Rect{ - p.Add(r.Min.Sub(p).Scale(s)), - p.Add(r.Max.Sub(p).Scale(s)), - } -} - -func (r Rect) ScaleS(s float32) Rect { - return Rect{r.Min.ScaleS(s), r.Max.ScaleS(s)} -} - -func (r Rect) Offset(p Point) Rect { - return Rect{r.Min.Add(p), r.Max.Add(p)} -} - -func (r Rect) OffsetX(i int) Rect { - return r.Offset(Point{i, 0}) -} - -func (r Rect) OffsetY(i int) Rect { - return r.Offset(Point{0, i}) -} - -func (r Rect) ClampXY(x, y int) (int, int) { - return Clamp(x, r.Min.X, r.Max.X), Clamp(y, r.Min.Y, r.Max.Y) -} - -func (r Rect) Lerp(v Vec2) Point { - return r.Min.Add(r.Size().Scale(v).Point()) -} - -func (r Rect) Frac(v Point) Vec2 { - return v.Sub(r.Min).Vec2().Div(r.Size().Vec2()) -} - -func (r Rect) Remap(from, to Rect) Rect { - return Rect{r.Min.Remap(from, to), r.Max.Remap(from, to)} -} - -func (r Rect) Expand(s Spacing) Rect { - return Rect{ - Point{r.Min.X - s.L, r.Min.Y - s.T}, - Point{r.Max.X + s.R, r.Max.Y + s.B}, - }.Canon() -} - -func (r Rect) ExpandI(s int) Rect { - return Rect{ - Point{r.Min.X - s, r.Min.Y - s}, - Point{r.Max.X + s, r.Max.Y + s}, - }.Canon() -} - -func (r Rect) Contract(s Spacing) Rect { - return Rect{ - Point{r.Min.X + s.L, r.Min.Y + s.T}, - Point{r.Max.X - s.R, r.Max.Y - s.B}, - }.Canon() -} - -func (r Rect) ContractI(s int) Rect { - return Rect{ - Point{r.Min.X + s, r.Min.Y + s}, - Point{r.Max.X - s, r.Max.Y - s}, - }.Canon() -} - -func (r Rect) Union(o Rect) Rect { - return Rect{r.Min.Min(o.Min), r.Max.Max(o.Max)} -} - -func (r Rect) Intersect(o Rect) Rect { - return Rect{ - r.Min.Max(o.Min), - r.Max.Min(o.Max), - }.Canon() -} - -func (r Rect) Constrain(o Rect) Rect { - overflowMin := o.Min.Sub(r.Min).Max(ZeroPoint) - overflowMax := o.Max.Sub(r.Max).Min(ZeroPoint) - return Rect{ - r.Min.Add(overflowMax).Max(o.Min), - r.Max.Add(overflowMin).Min(o.Max), - } -} - -func (r Rect) Canon() Rect { - return Rect{ - r.Min.Min(r.Max), - r.Min.Max(r.Max), - } -} - -func (r Rect) Contains(p Point) bool { - return r.Min.X <= p.X && r.Min.Y <= p.Y && - r.Max.X > p.X && r.Max.Y > p.Y -} diff --git a/vendor/github.com/google/gxui/math/size.go b/vendor/github.com/google/gxui/math/size.go deleted file mode 100644 index 2cfcdab..0000000 --- a/vendor/github.com/google/gxui/math/size.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -import ( - "math" -) - -type Size struct { - W, H int -} - -func (s Size) Point() Point { - return Point{s.W, s.H} -} - -func (s Size) Vec2() Vec2 { - return Vec2{float32(s.W), float32(s.H)} -} - -func (s Size) Rect() Rect { - return CreateRect(0, 0, s.W, s.H) -} - -func (s Size) CenteredRect() Rect { - return CreateRect(-s.W/2, -s.H/2, s.W/2, s.H/2) -} - -func (s Size) Scale(v Vec2) Size { - return Size{ - int(math.Ceil(float64(s.W) * float64(v.X))), - int(math.Ceil(float64(s.H) * float64(v.Y))), - } -} -func (s Size) ScaleS(v float32) Size { - return Size{ - int(math.Ceil(float64(s.W) * float64(v))), - int(math.Ceil(float64(s.H) * float64(v))), - } -} - -func (s Size) Expand(sp Spacing) Size { - return Size{s.W + sp.W(), s.H + sp.H()} -} - -func (s Size) Contract(sp Spacing) Size { - return Size{s.W - sp.W(), s.H - sp.H()} -} - -func (s Size) Add(o Size) Size { - return Size{s.W + o.W, s.H + o.H} -} - -func (s Size) Sub(o Size) Size { - return Size{s.W - o.W, s.H - o.H} -} - -func (s Size) Min(o Size) Size { - return Size{Min(s.W, o.W), Min(s.H, o.H)} -} - -func (s Size) Max(o Size) Size { - return Size{Max(s.W, o.W), Max(s.H, o.H)} -} - -func (s Size) Clamp(min, max Size) Size { - return Size{Clamp(s.W, min.W, max.W), Clamp(s.H, min.H, max.H)} -} - -func (s Size) WH() (w, h int) { - return s.W, s.H -} - -func (s Size) Area() int { - return s.W * s.H -} - -func (s Size) EdgeAlignedFit(outer Rect, edgePoint Point) Rect { - r := s.CenteredRect().Offset(edgePoint).Constrain(outer) - if topFits := edgePoint.Y+s.H < outer.Max.Y; topFits { - return r.OffsetY(edgePoint.Y - r.Min.Y) - } - if bottomFits := edgePoint.Y-s.H >= outer.Min.Y; bottomFits { - return r.OffsetY(edgePoint.Y - r.Max.Y) - } - if leftFits := edgePoint.X+s.W < outer.Max.X; leftFits { - return r.OffsetX(edgePoint.X - r.Min.X) - } - if rightFits := edgePoint.X-s.W >= outer.Min.X; rightFits { - return r.OffsetX(edgePoint.X - r.Max.X) - } - return r -} diff --git a/vendor/github.com/google/gxui/math/spacing.go b/vendor/github.com/google/gxui/math/spacing.go deleted file mode 100644 index 4cf6a0e..0000000 --- a/vendor/github.com/google/gxui/math/spacing.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -type Spacing struct { - L, T, R, B int -} - -func CreateSpacing(s int) Spacing { - return Spacing{s, s, s, s} -} - -func (s Spacing) LT() Point { - return Point{s.L, s.T} -} - -func (s Spacing) W() int { - return s.L + s.R -} - -func (s Spacing) H() int { - return s.T + s.B -} - -func (s Spacing) Size() Size { - return Size{s.W(), s.H()} -} - -func (s Spacing) Add(o Spacing) Spacing { - return Spacing{s.L + o.L, s.T + o.T, s.R + o.R, s.B + o.B} -} - -func (s Spacing) Sub(o Spacing) Spacing { - return Spacing{s.L - o.L, s.T - o.T, s.R - o.R, s.B - o.B} -} - -func (s Spacing) Min(o Spacing) Spacing { - return Spacing{Min(s.L, o.L), Min(s.T, o.T), Min(s.R, o.R), Min(s.B, o.B)} -} - -func (s Spacing) Max(o Spacing) Spacing { - return Spacing{Max(s.L, o.L), Max(s.T, o.T), Max(s.R, o.R), Max(s.B, o.B)} -} diff --git a/vendor/github.com/google/gxui/math/vec2.go b/vendor/github.com/google/gxui/math/vec2.go deleted file mode 100644 index cd455c3..0000000 --- a/vendor/github.com/google/gxui/math/vec2.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -type Vec2 struct { - X, Y float32 -} - -func (v Vec2) SqrLen() float32 { - return v.Dot(v) -} - -func (v Vec2) Len() float32 { - return Sqrtf(v.SqrLen()) -} - -func (v Vec2) ZeroLength() bool { - return v.X == 0 && v.Y == 0 -} - -func (v Vec2) Normalize() Vec2 { - l := v.Len() - if l == 0 { - return Vec2{0, 0} - } else { - return v.MulS(1.0 / v.Len()) - } -} - -func (v Vec2) Neg() Vec2 { - return Vec2{-v.X, -v.Y} -} - -func (v Vec2) Tangent() Vec2 { - return Vec2{-v.Y, v.X} -} - -func (v Vec2) Point() Point { - return Point{Round(v.X), Round(v.Y)} -} - -func (v Vec2) Vec3(z float32) Vec3 { - return Vec3{v.X, v.Y, z} -} - -func (v Vec2) Vec4(z, w float32) Vec4 { - return Vec4{v.X, v.Y, z, w} -} - -func (v Vec2) XY() (x, y float32) { - return v.X, v.Y -} - -func (v Vec2) Add(o Vec2) Vec2 { - return Vec2{v.X + o.X, v.Y + o.Y} -} - -func (v Vec2) Sub(o Vec2) Vec2 { - return Vec2{v.X - o.X, v.Y - o.Y} -} - -func (v Vec2) Mul(o Vec2) Vec2 { - return Vec2{v.X * o.X, v.Y * o.Y} -} - -func (v Vec2) Div(o Vec2) Vec2 { - return Vec2{v.X / o.X, v.Y / o.Y} -} - -func (v Vec2) Dot(o Vec2) float32 { - return v.X*o.X + v.Y*o.Y -} - -func (v Vec2) Cross(o Vec2) float32 { - return v.X*o.Y - v.Y*o.X -} - -func (v Vec2) MulS(s float32) Vec2 { - return Vec2{v.X * s, v.Y * s} -} - -func (v Vec2) DivS(s float32) Vec2 { - return Vec2{v.X / s, v.Y / s} -} diff --git a/vendor/github.com/google/gxui/math/vec3.go b/vendor/github.com/google/gxui/math/vec3.go deleted file mode 100644 index e74a161..0000000 --- a/vendor/github.com/google/gxui/math/vec3.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -import ( - "fmt" -) - -type Vec3 struct { - X, Y, Z float32 -} - -func (v Vec3) String() string { - return fmt.Sprintf("(%.5f, %.5f, %.5f)", v.X, v.Y, v.Z) -} - -func (v Vec3) SqrLen() float32 { - return v.Dot(v) -} - -func (v Vec3) Len() float32 { - return Sqrtf(v.SqrLen()) -} - -func (v Vec3) Normalize() Vec3 { - l := v.Len() - if l == 0 { - return Vec3{0, 0, 0} - } else { - return v.MulS(1.0 / v.Len()) - } -} - -func (v Vec3) Neg() Vec3 { - return Vec3{-v.X, -v.Y, -v.Z} -} - -func (v Vec3) XY() Vec2 { - return Vec2{v.X, v.Y} -} - -func (v Vec3) Add(o Vec3) Vec3 { - return Vec3{v.X + o.X, v.Y + o.Y, v.Z + o.Z} -} - -func (v Vec3) Sub(o Vec3) Vec3 { - return Vec3{v.X - o.X, v.Y - o.Y, v.Z - o.Z} -} - -func (v Vec3) Mul(o Vec3) Vec3 { - return Vec3{v.X * o.X, v.Y * o.Y, v.Z * o.Z} -} - -func (v Vec3) Div(o Vec3) Vec3 { - return Vec3{v.X / o.X, v.Y / o.Y, v.Z / o.Z} -} - -func (v Vec3) Dot(o Vec3) float32 { - return v.X*o.X + v.Y*o.Y + v.Z*o.Z -} - -func (v Vec3) Cross(o Vec3) Vec3 { - return Vec3{ - v.Y*o.Z - v.Z*o.Y, - v.Z*o.X - v.X*o.Z, - v.X*o.Y - v.Y*o.X, - } -} - -// ╭ ╮ -// │ M₀ M₁ M₂ │ -// [V₀, V₁, V₂] ⨯ │ M₃ M₄ M₅ │ = [R₀, R₁, R₂] -// │ M₆ M₇ M₈ │ -// ╰ ╯ -// R₀ = V₀ • M₀ + V₁ • M₃ + V₂ • M₆ -// R₁ = V₀ • M₁ + V₁ • M₄ + V₂ • M₇ -// R₂ = V₀ • M₂ + V₁ • M₅ + V₂ • M₈ -func (v Vec3) MulM(m Mat3) Vec3 { - a := m.Row(0).MulS(v.X) - b := m.Row(1).MulS(v.Y) - c := m.Row(2).MulS(v.Z) - return a.Add(b).Add(c) -} - -func (v Vec3) MulS(s float32) Vec3 { - return Vec3{v.X * s, v.Y * s, v.Z * s} -} - -func (v Vec3) DivS(s float32) Vec3 { - return Vec3{v.X / s, v.Y / s, v.Z / s} -} diff --git a/vendor/github.com/google/gxui/math/vec4.go b/vendor/github.com/google/gxui/math/vec4.go deleted file mode 100644 index 77b96dd..0000000 --- a/vendor/github.com/google/gxui/math/vec4.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package math - -import ( - "fmt" -) - -type Vec4 struct { - X, Y, Z, W float32 -} - -func (v Vec4) String() string { - return fmt.Sprintf("(%.5f, %.5f, %.5f, %.5f)", v.X, v.Y, v.Z, v.W) -} - -func (v Vec4) SqrLen() float32 { - return v.Dot(v) -} - -func (v Vec4) Len() float32 { - return Sqrtf(v.SqrLen()) -} - -func (v Vec4) Normalize() Vec4 { - l := v.Len() - if l == 0 { - return Vec4{0, 0, 0, 0} - } else { - return v.MulS(1.0 / v.Len()) - } -} - -func (v Vec4) Neg() Vec4 { - return Vec4{-v.X, -v.Y, -v.Z, -v.W} -} - -func (v Vec4) XY() Vec2 { - return Vec2{v.X, v.Y} -} - -func (v Vec4) Add(o Vec4) Vec4 { - return Vec4{v.X + o.X, v.Y + o.Y, v.Z + o.Z, v.W + o.W} -} - -func (v Vec4) Sub(o Vec4) Vec4 { - return Vec4{v.X - o.X, v.Y - o.Y, v.Z - o.Z, v.W - o.W} -} - -func (v Vec4) Mul(o Vec4) Vec4 { - return Vec4{v.X * o.X, v.Y * o.Y, v.Z * o.Z, v.W * o.W} -} - -func (v Vec4) Div(o Vec4) Vec4 { - return Vec4{v.X / o.X, v.Y / o.Y, v.Z / o.Z, v.W / o.W} -} - -func (v Vec4) Dot(o Vec4) float32 { - return v.X*o.X + v.Y*o.Y + v.Z*o.Z + v.W*o.W -} - -func (v Vec4) MulS(s float32) Vec4 { - return Vec4{v.X * s, v.Y * s, v.Z * s, v.W * s} -} - -func (v Vec4) DivS(s float32) Vec4 { - return Vec4{v.X / s, v.Y / s, v.Z / s, v.W / s} -} diff --git a/vendor/github.com/google/gxui/mixins/base/container.go b/vendor/github.com/google/gxui/mixins/base/container.go deleted file mode 100644 index 2a0c026..0000000 --- a/vendor/github.com/google/gxui/mixins/base/container.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package base - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins/outer" - "github.com/google/gxui/mixins/parts" -) - -type ContainerNoControlOuter interface { - gxui.Container - outer.PaintChilder - outer.Painter - outer.LayoutChildren -} - -type ContainerOuter interface { - ContainerNoControlOuter - gxui.Control -} - -type Container struct { - parts.Attachable - parts.Container - parts.DrawPaint - parts.InputEventHandler - parts.Layoutable - parts.Paddable - parts.PaintChildren - parts.Parentable - parts.Visible -} - -func (c *Container) Init(outer ContainerOuter, theme gxui.Theme) { - c.Attachable.Init(outer) - c.Container.Init(outer) - c.DrawPaint.Init(outer, theme) - c.InputEventHandler.Init(outer) - c.Layoutable.Init(outer, theme) - c.Paddable.Init(outer) - c.PaintChildren.Init(outer) - c.Parentable.Init(outer) - c.Visible.Init(outer) - - // Interface compliance test - _ = gxui.Container(c) -} diff --git a/vendor/github.com/google/gxui/mixins/base/control.go b/vendor/github.com/google/gxui/mixins/base/control.go deleted file mode 100644 index c551d09..0000000 --- a/vendor/github.com/google/gxui/mixins/base/control.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package base - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/outer" - "github.com/google/gxui/mixins/parts" -) - -type ControlOuter interface { - gxui.Control - outer.Painter - outer.Redrawer - outer.Relayouter -} - -type Control struct { - parts.Attachable - parts.DrawPaint - parts.InputEventHandler - parts.Layoutable - parts.Parentable - parts.Visible -} - -func (c *Control) Init(outer ControlOuter, theme gxui.Theme) { - c.Attachable.Init(outer) - c.DrawPaint.Init(outer, theme) - c.Layoutable.Init(outer, theme) - c.InputEventHandler.Init(outer) - c.Parentable.Init(outer) - c.Visible.Init(outer) - - // Interface compliance test - _ = gxui.Control(c) -} - -func (c *Control) DesiredSize(min, max math.Size) math.Size { - return max -} - -func (c *Control) ContainsPoint(p math.Point) bool { - return c.IsVisible() && c.Size().Rect().Contains(p) -} diff --git a/vendor/github.com/google/gxui/mixins/bubble_overlay.go b/vendor/github.com/google/gxui/mixins/bubble_overlay.go deleted file mode 100644 index 848d676..0000000 --- a/vendor/github.com/google/gxui/mixins/bubble_overlay.go +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" -) - -type BubbleOverlayOuter interface { - base.ContainerOuter -} - -type BubbleOverlay struct { - base.Container - outer BubbleOverlayOuter - targetPoint math.Point - arrowLength int - arrowWidth int - brush gxui.Brush - pen gxui.Pen -} - -func (o *BubbleOverlay) Init(outer BubbleOverlayOuter, theme gxui.Theme) { - o.Container.Init(outer, theme) - o.outer = outer - o.arrowLength = 20 - o.arrowWidth = 15 - - // Interface compliance test - _ = gxui.BubbleOverlay(o) -} - -func (o *BubbleOverlay) LayoutChildren() { - for _, child := range o.outer.Children() { - bounds := o.outer.Size().Rect().Contract(o.outer.Padding()) - arrowPadding := math.CreateSpacing(o.arrowLength) - cm := child.Control.Margin() - cs := child.Control.DesiredSize(math.ZeroSize, bounds.Size().Contract(cm).Max(math.ZeroSize)) - cr := cs.Expand(arrowPadding).EdgeAlignedFit(bounds, o.targetPoint).Contract(arrowPadding) - child.Layout(cr) - } -} - -func (o *BubbleOverlay) DesiredSize(min, max math.Size) math.Size { - return max -} - -func (o *BubbleOverlay) Show(control gxui.Control, target math.Point) { - o.Hide() - o.outer.AddChild(control) - o.targetPoint = target -} - -func (o *BubbleOverlay) Hide() { - o.outer.RemoveAll() -} - -func (o *BubbleOverlay) Brush() gxui.Brush { - return o.brush -} - -func (o *BubbleOverlay) SetBrush(brush gxui.Brush) { - if o.brush != brush { - o.brush = brush - o.Redraw() - } -} - -func (o *BubbleOverlay) Pen() gxui.Pen { - return o.pen -} - -func (o *BubbleOverlay) SetPen(pen gxui.Pen) { - if o.pen != pen { - o.pen = pen - o.Redraw() - } -} - -func (o *BubbleOverlay) Paint(c gxui.Canvas) { - if !o.IsVisible() { - return - } - for _, child := range o.outer.Children() { - b := child.Bounds().Expand(o.outer.Padding()) - t := o.targetPoint - a := o.arrowWidth / 2 - var p gxui.Polygon - - switch { - case t.X < b.Min.X: - /* - A-----------------B - G | - F | - E | - D-----------------C - */ - p = gxui.Polygon{ - /*A*/ {Position: b.TL(), RoundedRadius: 5}, - /*B*/ {Position: b.TR(), RoundedRadius: 5}, - /*C*/ {Position: b.BR(), RoundedRadius: 5}, - /*D*/ {Position: b.BL(), RoundedRadius: 5}, - /*E*/ {Position: math.Point{X: b.Min.X, Y: math.Clamp(t.Y+a, b.Min.Y+a, b.Max.Y)}, RoundedRadius: 0}, - /*F*/ {Position: t, RoundedRadius: 0}, - /*G*/ {Position: math.Point{X: b.Min.X, Y: math.Clamp(t.Y-a, b.Min.Y, b.Max.Y-a)}, RoundedRadius: 0}, - } - // fmt.Printf("A: %+v\n", p) - case t.X > b.Max.X: - /* - A-----------------B - | C - | D - | E - G-----------------F - */ - p = gxui.Polygon{ - /*A*/ {Position: b.TL(), RoundedRadius: 5}, - /*B*/ {Position: b.TR(), RoundedRadius: 5}, - /*C*/ {Position: math.Point{X: b.Max.X, Y: math.Clamp(t.Y-a, b.Min.Y, b.Max.Y-a)}, RoundedRadius: 0}, - /*D*/ {Position: t, RoundedRadius: 0}, - /*E*/ {Position: math.Point{X: b.Max.X, Y: math.Clamp(t.Y+a, b.Min.Y+a, b.Max.Y)}, RoundedRadius: 0}, - /*F*/ {Position: b.BR(), RoundedRadius: 5}, - /*G*/ {Position: b.BL(), RoundedRadius: 5}, - } - // fmt.Printf("B: %+v\n", p) - case t.Y < b.Min.Y: - /* - C - / \ - A-----------B D-E - | | - | | - G-----------------F - */ - p = gxui.Polygon{ - /*A*/ {Position: b.TL(), RoundedRadius: 5}, - /*B*/ {Position: math.Point{X: math.Clamp(t.X-a, b.Min.X, b.Max.X-a), Y: b.Min.Y}, RoundedRadius: 0}, - /*C*/ {Position: t, RoundedRadius: 0}, - /*D*/ {Position: math.Point{X: math.Clamp(t.X+a, b.Min.X+a, b.Max.X), Y: b.Min.Y}, RoundedRadius: 0}, - /*E*/ {Position: b.TR(), RoundedRadius: 5}, - /*F*/ {Position: b.BR(), RoundedRadius: 5}, - /*G*/ {Position: b.BL(), RoundedRadius: 5}, - } - // fmt.Printf("C: %+v\n", p) - default: - /* - A-----------------B - | | - | | - G-----------F D-C - \ / - E - */ - p = gxui.Polygon{ - /*A*/ {Position: b.TL(), RoundedRadius: 5}, - /*B*/ {Position: b.TR(), RoundedRadius: 5}, - /*C*/ {Position: b.BR(), RoundedRadius: 5}, - /*D*/ {Position: math.Point{X: math.Clamp(t.X+a, b.Min.X+a, b.Max.X), Y: b.Max.Y}, RoundedRadius: 0}, - /*E*/ {Position: t, RoundedRadius: 0}, - /*F*/ {Position: math.Point{X: math.Clamp(t.X-a, b.Min.X, b.Max.X-a), Y: b.Max.Y}, RoundedRadius: 0}, - /*G*/ {Position: b.BL(), RoundedRadius: 5}, - } - // fmt.Printf("D: %+v\n", p) - } - c.DrawPolygon(p, o.pen, o.brush) - } - o.PaintChildren.Paint(c) -} diff --git a/vendor/github.com/google/gxui/mixins/button.go b/vendor/github.com/google/gxui/mixins/button.go deleted file mode 100644 index f2da5ad..0000000 --- a/vendor/github.com/google/gxui/mixins/button.go +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/parts" -) - -type ButtonOuter interface { - LinearLayoutOuter - IsChecked() bool - SetChecked(bool) -} - -type Button struct { - LinearLayout - parts.Focusable - - outer ButtonOuter - theme gxui.Theme - label gxui.Label - buttonType gxui.ButtonType - checked bool -} - -func (b *Button) Init(outer ButtonOuter, theme gxui.Theme) { - b.LinearLayout.Init(outer, theme) - b.Focusable.Init(outer) - - b.buttonType = gxui.PushButton - b.theme = theme - b.outer = outer - - // Interface compliance test - _ = gxui.Button(b) -} - -func (b *Button) Label() gxui.Label { - return b.label -} - -func (b *Button) Text() string { - if b.label != nil { - return b.label.Text() - } else { - return "" - } -} - -func (b *Button) SetText(text string) { - if b.Text() == text { - return - } - if text == "" { - if b.label != nil { - b.RemoveChild(b.label) - b.label = nil - } - } else { - if b.label == nil { - b.label = b.theme.CreateLabel() - b.label.SetMargin(math.ZeroSpacing) - b.AddChild(b.label) - } - b.label.SetText(text) - } -} - -func (b *Button) Type() gxui.ButtonType { - return b.buttonType -} - -func (b *Button) SetType(buttonType gxui.ButtonType) { - if buttonType != b.buttonType { - b.buttonType = buttonType - b.outer.Redraw() - } -} - -func (b *Button) IsChecked() bool { - return b.checked -} - -func (b *Button) SetChecked(checked bool) { - if checked != b.checked { - b.checked = checked - b.outer.Redraw() - } -} - -// InputEventHandler override -func (b *Button) Click(ev gxui.MouseEvent) (consume bool) { - if ev.Button == gxui.MouseButtonLeft { - if b.buttonType == gxui.ToggleButton { - b.outer.SetChecked(!b.outer.IsChecked()) - } - b.LinearLayout.Click(ev) - return true - } - return b.LinearLayout.Click(ev) -} - -func (b *Button) KeyPress(ev gxui.KeyboardEvent) (consume bool) { - consume = b.LinearLayout.KeyPress(ev) - if ev.Key == gxui.KeySpace || ev.Key == gxui.KeyEnter { - me := gxui.MouseEvent{ - Button: gxui.MouseButtonLeft, - } - return b.Click(me) - } - return -} diff --git a/vendor/github.com/google/gxui/mixins/code_editor.go b/vendor/github.com/google/gxui/mixins/code_editor.go deleted file mode 100644 index a7af1ab..0000000 --- a/vendor/github.com/google/gxui/mixins/code_editor.go +++ /dev/null @@ -1,234 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "fmt" - "github.com/google/gxui" - "github.com/google/gxui/math" - "strings" -) - -type CodeEditorOuter interface { - TextBoxOuter - CreateSuggestionList() gxui.List -} - -type CodeEditor struct { - TextBox - outer CodeEditorOuter - layers gxui.CodeSyntaxLayers - suggestionAdapter *SuggestionAdapter - suggestionList gxui.List - suggestionProvider gxui.CodeSuggestionProvider - tabWidth int - theme gxui.Theme -} - -func (t *CodeEditor) updateSpans(edits []gxui.TextBoxEdit) { - runeCount := len(t.controller.TextRunes()) - for _, l := range t.layers { - l.UpdateSpans(runeCount, edits) - } -} - -func (t *CodeEditor) Init(outer CodeEditorOuter, driver gxui.Driver, theme gxui.Theme, font gxui.Font) { - t.outer = outer - t.tabWidth = 2 - t.theme = theme - - t.suggestionAdapter = &SuggestionAdapter{} - t.suggestionList = t.outer.CreateSuggestionList() - t.suggestionList.SetAdapter(t.suggestionAdapter) - - t.TextBox.Init(outer, driver, theme, font) - t.controller.OnTextChanged(t.updateSpans) - - // Interface compliance test - _ = gxui.CodeEditor(t) -} - -func (t *CodeEditor) ItemSize(theme gxui.Theme) math.Size { - return math.Size{W: math.MaxSize.W, H: t.font.GlyphMaxSize().H} -} - -func (t *CodeEditor) CreateSuggestionList() gxui.List { - l := t.theme.CreateList() - l.SetBackgroundBrush(gxui.DefaultBrush) - l.SetBorderPen(gxui.DefaultPen) - return l -} - -func (t *CodeEditor) SyntaxLayers() gxui.CodeSyntaxLayers { - return t.layers -} - -func (t *CodeEditor) SetSyntaxLayers(layers gxui.CodeSyntaxLayers) { - t.layers = layers - t.onRedrawLines.Fire() -} - -func (t *CodeEditor) TabWidth() int { - return t.tabWidth -} - -func (t *CodeEditor) SetTabWidth(tabWidth int) { - t.tabWidth = tabWidth -} - -func (t *CodeEditor) SuggestionProvider() gxui.CodeSuggestionProvider { - return t.suggestionProvider -} - -func (t *CodeEditor) SetSuggestionProvider(provider gxui.CodeSuggestionProvider) { - if t.suggestionProvider != provider { - t.suggestionProvider = provider - if t.IsSuggestionListShowing() { - t.ShowSuggestionList() // Update list - } - } -} - -func (t *CodeEditor) IsSuggestionListShowing() bool { - return t.outer.Children().Find(t.suggestionList) != nil -} - -func (t *CodeEditor) SortSuggestionList() { - caret := t.controller.LastCaret() - partial := t.controller.TextRange(t.controller.WordAt(caret)) - t.suggestionAdapter.Sort(partial) -} - -func (t *CodeEditor) ShowSuggestionList() { - if t.suggestionProvider == nil || t.IsSuggestionListShowing() { - return - } - - caret := t.controller.LastCaret() - s, _ := t.controller.WordAt(caret) - - suggestions := t.suggestionProvider.SuggestionsAt(s) - if len(suggestions) == 0 { - t.HideSuggestionList() - return - } - - t.suggestionAdapter.SetSuggestions(suggestions) - t.SortSuggestionList() - child := t.AddChild(t.suggestionList) - - // Position the suggestion list below the last caret - lineIdx := t.controller.LineIndex(caret) - // TODO: What if the last caret is not visible? - bounds := t.Size().Rect().Contract(t.Padding()) - line := t.Line(lineIdx) - lineOffset := gxui.ChildToParent(math.ZeroPoint, line, t.outer) - target := line.PositionAt(caret).Add(lineOffset) - cs := t.suggestionList.DesiredSize(math.ZeroSize, bounds.Size()) - t.suggestionList.Select(t.suggestionList.Adapter().ItemAt(0)) - t.suggestionList.SetSize(cs) - child.Layout(cs.Rect().Offset(target).Intersect(bounds)) -} - -func (t *CodeEditor) HideSuggestionList() { - if t.IsSuggestionListShowing() { - t.RemoveChild(t.suggestionList) - } -} - -func (t *CodeEditor) Line(idx int) TextBoxLine { - return gxui.FindControl(t.ItemControl(idx).(gxui.Parent), func(c gxui.Control) bool { - _, b := c.(TextBoxLine) - return b - }).(TextBoxLine) -} - -// mixins.List overrides -func (t *CodeEditor) Click(ev gxui.MouseEvent) (consume bool) { - t.HideSuggestionList() - return t.TextBox.Click(ev) -} - -func (t *CodeEditor) KeyPress(ev gxui.KeyboardEvent) (consume bool) { - switch ev.Key { - case gxui.KeyTab: - replace := true - for _, sel := range t.controller.Selections() { - s, e := sel.Range() - if t.controller.LineIndex(s) != t.controller.LineIndex(e) { - replace = false - break - } - } - switch { - case replace: - t.controller.ReplaceAll(strings.Repeat(" ", t.tabWidth)) - t.controller.Deselect(false) - case ev.Modifier.Shift(): - t.controller.UnindentSelection(t.tabWidth) - default: - t.controller.IndentSelection(t.tabWidth) - } - return true - case gxui.KeySpace: - if ev.Modifier.Control() { - t.ShowSuggestionList() - return - } - case gxui.KeyUp: - fallthrough - case gxui.KeyDown: - if t.IsSuggestionListShowing() { - return t.suggestionList.KeyPress(ev) - } - case gxui.KeyLeft: - t.HideSuggestionList() - case gxui.KeyRight: - t.HideSuggestionList() - case gxui.KeyEnter: - controller := t.controller - if t.IsSuggestionListShowing() { - text := t.suggestionAdapter.Suggestion(t.suggestionList.Selected()).Code() - s, e := controller.WordAt(t.controller.LastCaret()) - controller.SetSelection(gxui.CreateTextSelection(s, e, false)) - controller.ReplaceAll(text) - controller.Deselect(false) - t.HideSuggestionList() - } else { - t.controller.ReplaceWithNewlineKeepIndent() - } - return true - case gxui.KeyEscape: - if t.IsSuggestionListShowing() { - t.HideSuggestionList() - return true - } - } - return t.TextBox.KeyPress(ev) -} - -func (t *CodeEditor) KeyStroke(ev gxui.KeyStrokeEvent) (consume bool) { - consume = t.TextBox.KeyStroke(ev) - if t.IsSuggestionListShowing() { - t.SortSuggestionList() - } - return -} - -// mixins.TextBox overrides -func (t *CodeEditor) CreateLine(theme gxui.Theme, index int) (TextBoxLine, gxui.Control) { - lineNumber := theme.CreateLabel() - lineNumber.SetText(fmt.Sprintf("%.4d", index+1)) // Displayed lines start at 1 - - line := &CodeEditorLine{} - line.Init(line, theme, t, index) - - layout := theme.CreateLinearLayout() - layout.SetDirection(gxui.LeftToRight) - layout.AddChild(lineNumber) - layout.AddChild(line) - - return line, layout -} diff --git a/vendor/github.com/google/gxui/mixins/code_editor_line.go b/vendor/github.com/google/gxui/mixins/code_editor_line.go deleted file mode 100644 index 993a5e4..0000000 --- a/vendor/github.com/google/gxui/mixins/code_editor_line.go +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/interval" - "github.com/google/gxui/math" -) - -type CodeEditorLinePaintInfo struct { - LineSpan interval.IntData - Runes []rune - GlyphOffsets []math.Point - GlyphWidth int - LineHeight int - Font gxui.Font -} - -type CodeEditorLineOuter interface { - DefaultTextBoxLineOuter - PaintBackgroundSpans(c gxui.Canvas, info CodeEditorLinePaintInfo) - PaintGlyphs(c gxui.Canvas, info CodeEditorLinePaintInfo) - PaintBorders(c gxui.Canvas, info CodeEditorLinePaintInfo) -} - -// CodeEditorLine -type CodeEditorLine struct { - DefaultTextBoxLine - outer CodeEditorLineOuter - ce *CodeEditor -} - -func (l *CodeEditorLine) Init(outer CodeEditorLineOuter, theme gxui.Theme, ce *CodeEditor, lineIndex int) { - l.DefaultTextBoxLine.Init(outer, theme, &ce.TextBox, lineIndex) - l.outer = outer - l.ce = ce - // Interface compliance test - _ = TextBoxLine(l) -} - -func (t *CodeEditorLine) PaintBackgroundSpans(c gxui.Canvas, info CodeEditorLinePaintInfo) { - start, _ := info.LineSpan.Span() - offsets := info.GlyphOffsets - remaining := interval.IntDataList{info.LineSpan} - for _, l := range t.ce.layers { - if l != nil && l.BackgroundColor() != nil { - color := *l.BackgroundColor() - for _, span := range l.Spans().Overlaps(info.LineSpan) { - interval.Visit(&remaining, span, func(vs, ve uint64, _ int) { - s, e := vs-start, ve-start - r := math.CreateRect(offsets[s].X, 0, offsets[e-1].X+info.GlyphWidth, info.LineHeight) - c.DrawRoundedRect(r, 3, 3, 3, 3, gxui.TransparentPen, gxui.Brush{Color: color}) - }) - interval.Remove(&remaining, span) - } - } - } -} - -func (t *CodeEditorLine) PaintGlyphs(c gxui.Canvas, info CodeEditorLinePaintInfo) { - start, _ := info.LineSpan.Span() - runes, offsets, font := info.Runes, info.GlyphOffsets, info.Font - remaining := interval.IntDataList{info.LineSpan} - for _, l := range t.ce.layers { - if l != nil && l.Color() != nil { - color := *l.Color() - for _, span := range l.Spans().Overlaps(info.LineSpan) { - interval.Visit(&remaining, span, func(vs, ve uint64, _ int) { - s, e := vs-start, ve-start - c.DrawRunes(font, runes[s:e], offsets[s:e], color) - }) - interval.Remove(&remaining, span) - } - } - } - for _, span := range remaining { - s, e := span.Span() - s, e = s-start, e-start - c.DrawRunes(font, runes[s:e], offsets[s:e], t.ce.textColor) - } -} - -func (t *CodeEditorLine) PaintBorders(c gxui.Canvas, info CodeEditorLinePaintInfo) { - start, _ := info.LineSpan.Span() - offsets := info.GlyphOffsets - for _, l := range t.ce.layers { - if l != nil && l.BorderColor() != nil { - color := *l.BorderColor() - interval.Visit(l.Spans(), info.LineSpan, func(vs, ve uint64, _ int) { - s, e := vs-start, ve-start - r := math.CreateRect(offsets[s].X, 0, offsets[e-1].X+info.GlyphWidth, info.LineHeight) - c.DrawRoundedRect(r, 3, 3, 3, 3, gxui.CreatePen(0.5, color), gxui.TransparentBrush) - }) - } - } -} - -// DefaultTextBoxLine overrides -func (t *CodeEditorLine) Paint(c gxui.Canvas) { - font := t.ce.font - rect := t.Size().Rect().OffsetX(t.caretWidth) - controller := t.ce.controller - runes := controller.LineRunes(t.lineIndex) - start := controller.LineStart(t.lineIndex) - end := controller.LineEnd(t.lineIndex) - - if start != end { - lineSpan := interval.CreateIntData(start, end, nil) - - lineHeight := t.Size().H - glyphWidth := font.GlyphMaxSize().W - offsets := font.Layout(&gxui.TextBlock{ - Runes: runes, - AlignRect: rect, - H: gxui.AlignLeft, - V: gxui.AlignMiddle, - }) - - info := CodeEditorLinePaintInfo{ - LineSpan: lineSpan, - Runes: runes, // TODO gxui.TextBlock? - GlyphOffsets: offsets, - GlyphWidth: glyphWidth, - LineHeight: lineHeight, - Font: font, - } - - // Background - t.outer.PaintBackgroundSpans(c, info) - - // Selections - if t.textbox.HasFocus() { - t.outer.PaintSelections(c) - } - - // Glyphs - t.outer.PaintGlyphs(c, info) - - // Borders - t.outer.PaintBorders(c, info) - } - - // Carets - if t.textbox.HasFocus() { - t.outer.PaintCarets(c) - } -} diff --git a/vendor/github.com/google/gxui/mixins/code_suggestion_adapter.go b/vendor/github.com/google/gxui/mixins/code_suggestion_adapter.go deleted file mode 100644 index 70f5520..0000000 --- a/vendor/github.com/google/gxui/mixins/code_suggestion_adapter.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" -) - -type SuggestionAdapter struct { - gxui.FilteredListAdapter -} - -func (a *SuggestionAdapter) SetSuggestions(suggestions []gxui.CodeSuggestion) { - items := make([]gxui.FilteredListItem, len(suggestions)) - for i, s := range suggestions { - items[i].Name = s.Name() - items[i].Data = s - } - a.SetItems(items) -} - -func (a *SuggestionAdapter) Suggestion(item gxui.AdapterItem) gxui.CodeSuggestion { - return item.(gxui.FilteredListItem).Data.(gxui.CodeSuggestion) -} diff --git a/vendor/github.com/google/gxui/mixins/default_textbox_line.go b/vendor/github.com/google/gxui/mixins/default_textbox_line.go deleted file mode 100644 index e5e437b..0000000 --- a/vendor/github.com/google/gxui/mixins/default_textbox_line.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/interval" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" -) - -type DefaultTextBoxLineOuter interface { - base.ControlOuter - MeasureRunes(s, e int) math.Size - PaintText(c gxui.Canvas) - PaintCarets(c gxui.Canvas) - PaintCaret(c gxui.Canvas, top, bottom math.Point) - PaintSelections(c gxui.Canvas) - PaintSelection(c gxui.Canvas, top, bottom math.Point) -} - -// DefaultTextBoxLine -type DefaultTextBoxLine struct { - base.Control - outer DefaultTextBoxLineOuter - textbox *TextBox - lineIndex int - caretWidth int -} - -func (t *DefaultTextBoxLine) Init(outer DefaultTextBoxLineOuter, theme gxui.Theme, textbox *TextBox, lineIndex int) { - t.Control.Init(outer, theme) - t.outer = outer - t.textbox = textbox - t.lineIndex = lineIndex - t.SetCaretWidth(2) - t.OnAttach(func() { - ev := t.textbox.OnRedrawLines(t.Redraw) - t.OnDetach(ev.Unlisten) - }) - - // Interface compliance test - _ = TextBoxLine(t) -} - -func (t *DefaultTextBoxLine) SetCaretWidth(width int) { - if t.caretWidth != width { - t.caretWidth = width - } -} - -func (t *DefaultTextBoxLine) DesiredSize(min, max math.Size) math.Size { - return max -} - -func (t *DefaultTextBoxLine) Paint(c gxui.Canvas) { - if t.textbox.HasFocus() { - t.outer.PaintSelections(c) - } - - t.outer.PaintText(c) - - if t.textbox.HasFocus() { - t.outer.PaintCarets(c) - } -} - -func (t *DefaultTextBoxLine) MeasureRunes(s, e int) math.Size { - controller := t.textbox.controller - return t.textbox.font.Measure(&gxui.TextBlock{ - Runes: controller.TextRunes()[s:e], - }) -} - -func (t *DefaultTextBoxLine) PaintText(c gxui.Canvas) { - runes := []rune(t.textbox.controller.Line(t.lineIndex)) - f := t.textbox.font - offsets := f.Layout(&gxui.TextBlock{ - Runes: runes, - AlignRect: t.Size().Rect().OffsetX(t.caretWidth), - H: gxui.AlignLeft, - V: gxui.AlignBottom, - }) - c.DrawRunes(f, runes, offsets, t.textbox.textColor) -} - -func (t *DefaultTextBoxLine) PaintCarets(c gxui.Canvas) { - controller := t.textbox.controller - for i, cnt := 0, controller.SelectionCount(); i < cnt; i++ { - e := controller.Caret(i) - l := controller.LineIndex(e) - if l == t.lineIndex { - s := controller.LineStart(l) - m := t.outer.MeasureRunes(s, e) - top := math.Point{X: t.caretWidth + m.W, Y: 0} - bottom := top.Add(math.Point{X: 0, Y: t.Size().H}) - t.outer.PaintCaret(c, top, bottom) - } - } -} - -func (t *DefaultTextBoxLine) PaintSelections(c gxui.Canvas) { - controller := t.textbox.controller - - ls, le := controller.LineStart(t.lineIndex), controller.LineEnd(t.lineIndex) - - selections := controller.Selections() - if t.textbox.selectionDragging { - interval.Replace(&selections, t.textbox.selectionDrag) - } - interval.Visit(&selections, gxui.CreateTextSelection(ls, le, false), func(s, e uint64, _ int) { - if s < e { - x := t.outer.MeasureRunes(ls, int(s)).W - m := t.outer.MeasureRunes(int(s), int(e)) - top := math.Point{X: t.caretWidth + x, Y: 0} - bottom := top.Add(m.Point()) - t.outer.PaintSelection(c, top, bottom) - } - }) -} - -func (t *DefaultTextBoxLine) PaintCaret(c gxui.Canvas, top, bottom math.Point) { - r := math.Rect{Min: top, Max: bottom}.ExpandI(t.caretWidth / 2) - c.DrawRoundedRect(r, 1, 1, 1, 1, gxui.CreatePen(0.5, gxui.Gray70), gxui.WhiteBrush) -} - -func (t *DefaultTextBoxLine) PaintSelection(c gxui.Canvas, top, bottom math.Point) { - r := math.Rect{Min: top, Max: bottom}.ExpandI(t.caretWidth / 2) - c.DrawRoundedRect(r, 1, 1, 1, 1, gxui.TransparentPen, gxui.Brush{Color: gxui.Gray40}) -} - -// TextBoxLine compliance -func (t *DefaultTextBoxLine) RuneIndexAt(p math.Point) int { - font := t.textbox.font - controller := t.textbox.controller - - x := p.X - line := controller.Line(t.lineIndex) - i := 0 - for ; i < len(line) && x > font.Measure(&gxui.TextBlock{Runes: []rune(line[:i+1])}).W; i++ { - } - - return controller.LineStart(t.lineIndex) + i -} - -func (t *DefaultTextBoxLine) PositionAt(runeIndex int) math.Point { - font := t.textbox.font - controller := t.textbox.controller - - x := runeIndex - controller.LineStart(t.lineIndex) - line := controller.Line(t.lineIndex) - return font.Measure(&gxui.TextBlock{Runes: []rune(line[:x])}).Point() -} diff --git a/vendor/github.com/google/gxui/mixins/drop_down_list.go b/vendor/github.com/google/gxui/mixins/drop_down_list.go deleted file mode 100644 index f1145ad..0000000 --- a/vendor/github.com/google/gxui/mixins/drop_down_list.go +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" - "github.com/google/gxui/mixins/parts" -) - -type DropDownListOuter interface { - base.ContainerOuter -} - -type DropDownList struct { - base.Container - parts.BackgroundBorderPainter - parts.Focusable - - outer DropDownListOuter - - theme gxui.Theme - list gxui.List - listShowing bool - itemSize math.Size - overlay gxui.BubbleOverlay - selected *gxui.Child - onShowList gxui.Event - onHideList gxui.Event -} - -func (l *DropDownList) Init(outer DropDownListOuter, theme gxui.Theme) { - l.outer = outer - l.Container.Init(outer, theme) - l.BackgroundBorderPainter.Init(outer) - l.Focusable.Init(outer) - - l.theme = theme - l.list = theme.CreateList() - l.list.OnSelectionChanged(func(item gxui.AdapterItem) { - l.outer.RemoveAll() - adapter := l.list.Adapter() - if item != nil && adapter != nil { - l.selected = l.AddChild(adapter.Create(l.theme, adapter.ItemIndex(item))) - } else { - l.selected = nil - } - l.Relayout() - }) - l.list.OnItemClicked(func(gxui.MouseEvent, gxui.AdapterItem) { - l.HideList() - }) - l.list.OnKeyPress(func(ev gxui.KeyboardEvent) { - switch ev.Key { - case gxui.KeyEnter, gxui.KeyEscape: - l.HideList() - } - }) - l.list.OnLostFocus(l.HideList) - l.OnDetach(l.HideList) - l.SetMouseEventTarget(true) - - // Interface compliance test - _ = gxui.DropDownList(l) -} - -func (l *DropDownList) LayoutChildren() { - if !l.RelayoutSuspended() { - // Disable relayout on AddChild / RemoveChild as we're performing layout here. - l.SetRelayoutSuspended(true) - defer l.SetRelayoutSuspended(false) - } - - if l.selected != nil { - s := l.outer.Size().Contract(l.Padding()).Max(math.ZeroSize) - o := l.Padding().LT() - l.selected.Layout(s.Rect().Offset(o)) - } -} - -func (l *DropDownList) DesiredSize(min, max math.Size) math.Size { - if l.selected != nil { - return l.selected.Control.DesiredSize(min, max).Expand(l.outer.Padding()).Clamp(min, max) - } else { - return l.itemSize.Expand(l.outer.Padding()).Clamp(min, max) - } -} - -func (l *DropDownList) DataReplaced() { - adapter := l.list.Adapter() - itemSize := adapter.Size(l.theme) - l.itemSize = itemSize - l.outer.Relayout() -} - -func (l *DropDownList) ListShowing() bool { - return l.listShowing -} - -func (l *DropDownList) ShowList() bool { - if l.listShowing || l.overlay == nil { - return false - } - l.listShowing = true - s := l.Size() - at := math.Point{X: s.W / 2, Y: s.H} - l.overlay.Show(l.list, gxui.TransformCoordinate(at, l.outer, l.overlay)) - gxui.SetFocus(l.list) - if l.onShowList != nil { - l.onShowList.Fire() - } - return true -} - -func (l *DropDownList) HideList() { - if l.listShowing { - l.listShowing = false - l.overlay.Hide() - if l.Attached() { - gxui.SetFocus(l) - } - if l.onHideList != nil { - l.onHideList.Fire() - } - } -} - -func (l *DropDownList) List() gxui.List { - return l.list -} - -// InputEventHandler override -func (l *DropDownList) Click(ev gxui.MouseEvent) (consume bool) { - l.InputEventHandler.Click(ev) - if l.ListShowing() { - l.HideList() - } else { - l.ShowList() - } - return true -} - -// gxui.DropDownList compliance -func (l *DropDownList) SetBubbleOverlay(overlay gxui.BubbleOverlay) { - l.overlay = overlay -} - -func (l *DropDownList) BubbleOverlay() gxui.BubbleOverlay { - return l.overlay -} - -func (l *DropDownList) Adapter() gxui.ListAdapter { - return l.list.Adapter() -} - -func (l *DropDownList) SetAdapter(adapter gxui.ListAdapter) { - if l.list.Adapter() != adapter { - l.list.SetAdapter(adapter) - if adapter != nil { - adapter.OnDataChanged(func(bool) { l.DataReplaced() }) - adapter.OnDataReplaced(l.DataReplaced) - } - // TODO: Unlisten - l.DataReplaced() - } -} - -func (l *DropDownList) Selected() gxui.AdapterItem { - return l.list.Selected() -} - -func (l *DropDownList) Select(item gxui.AdapterItem) { - if l.list.Selected() != item { - l.list.Select(item) - l.LayoutChildren() - } -} - -func (l *DropDownList) OnSelectionChanged(f func(gxui.AdapterItem)) gxui.EventSubscription { - return l.list.OnSelectionChanged(f) -} - -func (l *DropDownList) OnShowList(f func()) gxui.EventSubscription { - if l.onShowList == nil { - l.onShowList = gxui.CreateEvent(f) - } - return l.onShowList.Listen(f) -} - -func (l *DropDownList) OnHideList(f func()) gxui.EventSubscription { - if l.onHideList == nil { - l.onHideList = gxui.CreateEvent(f) - } - return l.onHideList.Listen(f) -} - -// InputEventHandler overrides -func (l *DropDownList) KeyPress(ev gxui.KeyboardEvent) (consume bool) { - if ev.Key == gxui.KeySpace || ev.Key == gxui.KeyEnter { - me := gxui.MouseEvent{ - Button: gxui.MouseButtonLeft, - } - return l.Click(me) - } - return l.InputEventHandler.KeyPress(ev) -} - -// parts.Container overrides -func (l *DropDownList) Paint(c gxui.Canvas) { - r := l.outer.Size().Rect() - l.PaintBackground(c, r) - l.Container.Paint(c) - l.PaintBorder(c, r) -} diff --git a/vendor/github.com/google/gxui/mixins/image.go b/vendor/github.com/google/gxui/mixins/image.go deleted file mode 100644 index 372988e..0000000 --- a/vendor/github.com/google/gxui/mixins/image.go +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" - "github.com/google/gxui/mixins/parts" -) - -type ImageOuter interface { - base.ControlOuter -} - -type Image struct { - base.Control - parts.BackgroundBorderPainter - - outer ImageOuter - texture gxui.Texture - canvas gxui.Canvas - scalingMode gxui.ScalingMode - aspectMode gxui.AspectMode - explicitSize math.Size -} - -func (i *Image) calculateDrawRect() math.Rect { - r := i.outer.Size().Rect() - texW, texH := i.texture.Size().WH() - aspectSrc := float32(texH) / float32(texW) - aspectDst := float32(r.H()) / float32(r.W()) - switch i.aspectMode { - case gxui.AspectCorrectLetterbox, gxui.AspectCorrectCrop: - if (aspectDst < aspectSrc) != (i.aspectMode == gxui.AspectCorrectLetterbox) { - contract := r.H() - int(float32(r.W())*aspectSrc) - r = r.Contract(math.Spacing{T: contract / 2, B: contract / 2}) - } else { - contract := r.W() - int(float32(r.H())/aspectSrc) - r = r.Contract(math.Spacing{L: contract / 2, R: contract / 2}) - } - } - return r -} - -func (i *Image) Init(outer ImageOuter, theme gxui.Theme) { - i.outer = outer - i.Control.Init(outer, theme) - i.BackgroundBorderPainter.Init(outer) - i.SetBorderPen(gxui.TransparentPen) - i.SetBackgroundBrush(gxui.TransparentBrush) - - // Interface compliance test - _ = gxui.Image(i) -} - -func (i *Image) Texture() gxui.Texture { - return i.texture -} - -func (i *Image) SetTexture(tex gxui.Texture) { - if i.texture != tex { - i.texture = tex - i.canvas = nil - i.outer.Relayout() - } -} - -func (i *Image) Canvas() gxui.Canvas { - return i.canvas -} - -func (i *Image) SetCanvas(canvas gxui.Canvas) { - if !canvas.IsComplete() { - panic("SetCanvas() called with an incomplete canvas") - } - - if i.canvas != canvas { - i.canvas = canvas - i.texture = nil - i.outer.Relayout() - } -} - -func (i *Image) ScalingMode() gxui.ScalingMode { - return i.scalingMode -} - -func (i *Image) SetScalingMode(mode gxui.ScalingMode) { - if i.scalingMode != mode { - i.scalingMode = mode - i.outer.Relayout() - } -} - -func (i *Image) AspectMode() gxui.AspectMode { - return i.aspectMode -} - -func (i *Image) SetAspectMode(mode gxui.AspectMode) { - if i.aspectMode != mode { - i.aspectMode = mode - i.outer.Redraw() - } -} - -func (i *Image) SetExplicitSize(explicitSize math.Size) { - if i.explicitSize != explicitSize { - i.explicitSize = explicitSize - i.outer.Relayout() - } - i.SetScalingMode(gxui.ScalingExplicitSize) -} - -func (i *Image) PixelAt(p math.Point) (math.Point, bool) { - ir := i.calculateDrawRect() - if tex := i.Texture(); tex != nil { - s := tex.SizePixels() - p = p.Sub(ir.Min). - ScaleX(float32(s.W) / float32(ir.W())). - ScaleY(float32(s.H) / float32(ir.H())) - if s.Rect().Contains(p) { - return p, true - } - } - return math.Point{X: -1, Y: -1}, false -} - -func (i *Image) DesiredSize(min, max math.Size) math.Size { - s := max - switch i.scalingMode { - case gxui.ScalingExplicitSize: - s = i.explicitSize - case gxui.Scaling1to1: - switch { - case i.texture != nil: - s = i.texture.Size() - case i.canvas != nil: - s = i.canvas.Size() - } - } - return s.Expand(math.CreateSpacing(int(i.BorderPen().Width))).Clamp(min, max) -} - -func (i *Image) Paint(c gxui.Canvas) { - r := i.outer.Size().Rect() - i.PaintBackground(c, r) - switch { - case i.texture != nil: - c.DrawTexture(i.texture, i.calculateDrawRect()) - case i.canvas != nil: - c.DrawCanvas(i.canvas, math.ZeroPoint) - } - i.PaintBorder(c, r) -} diff --git a/vendor/github.com/google/gxui/mixins/label.go b/vendor/github.com/google/gxui/mixins/label.go deleted file mode 100644 index fce0afc..0000000 --- a/vendor/github.com/google/gxui/mixins/label.go +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "strings" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" -) - -type LabelOuter interface { - base.ControlOuter -} - -type Label struct { - base.Control - - outer LabelOuter - font gxui.Font - color gxui.Color - horizontalAlignment gxui.HorizontalAlignment - verticalAlignment gxui.VerticalAlignment - multiline bool - text string -} - -func (l *Label) Init(outer LabelOuter, theme gxui.Theme, font gxui.Font, color gxui.Color) { - if font == nil { - panic("Cannot create a label with a nil font") - } - l.Control.Init(outer, theme) - l.outer = outer - l.font = font - l.color = color - l.horizontalAlignment = gxui.AlignLeft - l.verticalAlignment = gxui.AlignMiddle - // Interface compliance test - _ = gxui.Label(l) -} - -func (l *Label) Text() string { - return l.text -} - -func (l *Label) SetText(text string) { - if l.text != text { - l.text = text - l.outer.Relayout() - } -} - -func (l *Label) Font() gxui.Font { - return l.font -} - -func (l *Label) SetFont(font gxui.Font) { - if l.font != font { - l.font = font - l.Relayout() - } -} - -func (l *Label) Color() gxui.Color { - return l.color -} - -func (l *Label) SetColor(color gxui.Color) { - if l.color != color { - l.color = color - l.outer.Redraw() - } -} - -func (l *Label) Multiline() bool { - return l.multiline -} - -func (l *Label) SetMultiline(multiline bool) { - if l.multiline != multiline { - l.multiline = multiline - l.outer.Relayout() - } -} - -func (l *Label) DesiredSize(min, max math.Size) math.Size { - t := l.text - if !l.multiline { - t = strings.Replace(t, "\n", " ", -1) - } - s := l.font.Measure(&gxui.TextBlock{Runes: []rune(t)}) - return s.Clamp(min, max) -} - -func (l *Label) SetHorizontalAlignment(horizontalAlignment gxui.HorizontalAlignment) { - if l.horizontalAlignment != horizontalAlignment { - l.horizontalAlignment = horizontalAlignment - l.Redraw() - } -} - -func (l *Label) HorizontalAlignment() gxui.HorizontalAlignment { - return l.horizontalAlignment -} - -func (l *Label) SetVerticalAlignment(verticalAlignment gxui.VerticalAlignment) { - if l.verticalAlignment != verticalAlignment { - l.verticalAlignment = verticalAlignment - l.Redraw() - } -} - -func (l *Label) VerticalAlignment() gxui.VerticalAlignment { - return l.verticalAlignment -} - -// parts.DrawPaint overrides -func (l *Label) Paint(c gxui.Canvas) { - r := l.outer.Size().Rect() - t := l.text - if !l.multiline { - t = strings.Replace(t, "\n", " ", -1) - } - - runes := []rune(t) - offsets := l.font.Layout(&gxui.TextBlock{ - Runes: runes, - AlignRect: r, - H: l.horizontalAlignment, - V: l.verticalAlignment, - }) - c.DrawRunes(l.font, runes, offsets, l.color) -} diff --git a/vendor/github.com/google/gxui/mixins/linear_layout.go b/vendor/github.com/google/gxui/mixins/linear_layout.go deleted file mode 100644 index e99046f..0000000 --- a/vendor/github.com/google/gxui/mixins/linear_layout.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins/base" - "github.com/google/gxui/mixins/parts" -) - -type LinearLayoutOuter interface { - base.ContainerOuter -} - -type LinearLayout struct { - base.Container - parts.LinearLayout - parts.BackgroundBorderPainter -} - -func (l *LinearLayout) Init(outer LinearLayoutOuter, theme gxui.Theme) { - l.Container.Init(outer, theme) - l.LinearLayout.Init(outer) - l.BackgroundBorderPainter.Init(outer) - l.SetMouseEventTarget(true) - l.SetBackgroundBrush(gxui.TransparentBrush) - l.SetBorderPen(gxui.TransparentPen) - - // Interface compliance test - _ = gxui.LinearLayout(l) -} - -func (l *LinearLayout) Paint(c gxui.Canvas) { - r := l.Size().Rect() - l.BackgroundBorderPainter.PaintBackground(c, r) - l.PaintChildren.Paint(c) - l.BackgroundBorderPainter.PaintBorder(c, r) -} diff --git a/vendor/github.com/google/gxui/mixins/list.go b/vendor/github.com/google/gxui/mixins/list.go deleted file mode 100644 index 943a7ba..0000000 --- a/vendor/github.com/google/gxui/mixins/list.go +++ /dev/null @@ -1,525 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "fmt" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" - "github.com/google/gxui/mixins/parts" -) - -type ListOuter interface { - base.ContainerOuter - ContainsItem(gxui.AdapterItem) bool - PaintBackground(c gxui.Canvas, r math.Rect) - PaintMouseOverBackground(c gxui.Canvas, r math.Rect) - PaintSelection(c gxui.Canvas, r math.Rect) - PaintBorder(c gxui.Canvas, r math.Rect) -} - -type itemDetails struct { - child *gxui.Child - index int - mark int - onClickSubscription gxui.EventSubscription -} - -type List struct { - base.Container - parts.BackgroundBorderPainter - parts.Focusable - - outer ListOuter - - theme gxui.Theme - adapter gxui.ListAdapter - scrollBar gxui.ScrollBar - scrollBarChild *gxui.Child - scrollBarEnabled bool - selectedItem gxui.AdapterItem - onSelectionChanged gxui.Event - details map[gxui.AdapterItem]itemDetails - orientation gxui.Orientation - scrollOffset int - itemSize math.Size - itemCount int // Count number of items in the adapter - layoutMark int - mousePosition math.Point - itemMouseOver *gxui.Child - onItemClicked gxui.Event - dataChangedSubscription gxui.EventSubscription - dataReplacedSubscription gxui.EventSubscription -} - -func (l *List) Init(outer ListOuter, theme gxui.Theme) { - l.outer = outer - l.Container.Init(outer, theme) - l.BackgroundBorderPainter.Init(outer) - l.Focusable.Init(outer) - - l.theme = theme - l.scrollBar = theme.CreateScrollBar() - l.scrollBarChild = l.AddChild(l.scrollBar) - l.scrollBarEnabled = true - l.scrollBar.OnScroll(func(from, to int) { l.SetScrollOffset(from) }) - - l.SetOrientation(gxui.Vertical) - l.SetBackgroundBrush(gxui.TransparentBrush) - l.SetMouseEventTarget(true) - - l.details = make(map[gxui.AdapterItem]itemDetails) - - // Interface compliance test - _ = gxui.List(l) -} - -func (l *List) UpdateItemMouseOver() { - if !l.IsMouseOver() { - if l.itemMouseOver != nil { - l.itemMouseOver = nil - l.Redraw() - } - return - } - for _, details := range l.details { - if details.child.Bounds().Contains(l.mousePosition) { - if l.itemMouseOver != details.child { - l.itemMouseOver = details.child - l.Redraw() - return - } - } - } -} - -func (l *List) LayoutChildren() { - if l.adapter == nil { - l.outer.RemoveAll() - return - } - - if !l.RelayoutSuspended() { - // Disable relayout on AddChild / RemoveChild as we're performing layout here. - l.SetRelayoutSuspended(true) - defer l.SetRelayoutSuspended(false) - } - - s := l.outer.Size().Contract(l.Padding()) - o := l.Padding().LT() - - var itemSize math.Size - if l.orientation.Horizontal() { - itemSize = math.Size{W: l.itemSize.W, H: s.H} - } else { - itemSize = math.Size{W: s.W, H: l.itemSize.H} - } - - startIndex, endIndex := l.VisibleItemRange(true) - majorAxisItemSize := l.MajorAxisItemSize() - - d := startIndex*majorAxisItemSize - l.scrollOffset - - mark := l.layoutMark - l.layoutMark++ - - for idx := startIndex; idx < endIndex; idx++ { - item := l.adapter.ItemAt(idx) - - details, found := l.details[item] - if found { - if details.mark == mark { - panic(fmt.Errorf("Adapter for control '%s' returned duplicate item (%v) for indices %v and %v", - gxui.Path(l.outer), item, details.index, idx)) - } - } else { - control := l.adapter.Create(l.theme, idx) - details.onClickSubscription = control.OnClick(func(ev gxui.MouseEvent) { - l.ItemClicked(ev, item) - }) - details.child = l.AddChildAt(0, control) - } - details.mark = mark - details.index = idx - l.details[item] = details - - c := details.child - cm := c.Control.Margin() - cs := itemSize.Contract(cm).Max(math.ZeroSize) - if l.orientation.Horizontal() { - c.Layout(math.CreateRect(d, cm.T, d+cs.W, cm.T+cs.H).Offset(o)) - } else { - c.Layout(math.CreateRect(cm.L, d, cm.L+cs.W, d+cs.H).Offset(o)) - } - d += majorAxisItemSize - } - - // Reap unused items - for item, details := range l.details { - if details.mark != mark { - details.onClickSubscription.Unlisten() - l.RemoveChild(details.child.Control) - delete(l.details, item) - } - } - - if l.scrollBarEnabled { - ss := l.scrollBar.DesiredSize(math.ZeroSize, s) - if l.Orientation().Horizontal() { - l.scrollBarChild.Layout(math.CreateRect(0, s.H-ss.H, s.W, s.H).Canon().Offset(o)) - } else { - l.scrollBarChild.Layout(math.CreateRect(s.W-ss.W, 0, s.W, s.H).Canon().Offset(o)) - } - - // Only show the scroll bar if needed - entireContentVisible := startIndex == 0 && endIndex == l.itemCount - l.scrollBar.SetVisible(!entireContentVisible) - } - - l.UpdateItemMouseOver() -} - -func (l *List) SetSize(size math.Size) { - l.Layoutable.SetSize(size) - // Ensure scroll offset is still valid - l.SetScrollOffset(l.scrollOffset) -} - -func (l *List) DesiredSize(min, max math.Size) math.Size { - if l.adapter == nil { - return min - } - count := math.Max(l.itemCount, 1) - var s math.Size - if l.orientation.Horizontal() { - s = math.Size{W: l.itemSize.W * count, H: l.itemSize.H} - } else { - s = math.Size{W: l.itemSize.W, H: l.itemSize.H * count} - } - if l.scrollBarEnabled { - if l.orientation.Horizontal() { - s.H += l.scrollBar.DesiredSize(min, max).H - } else { - s.W += l.scrollBar.DesiredSize(min, max).W - } - } - return s.Expand(l.outer.Padding()).Clamp(min, max) -} - -func (l *List) ScrollBarEnabled(bool) bool { - return l.scrollBarEnabled -} - -func (l *List) SetScrollBarEnabled(enabled bool) { - if l.scrollBarEnabled != enabled { - l.scrollBarEnabled = enabled - l.Relayout() - } -} - -func (l *List) SetScrollOffset(scrollOffset int) { - if l.adapter == nil { - return - } - s := l.outer.Size().Contract(l.outer.Padding()) - if l.orientation.Horizontal() { - maxScroll := math.Max(l.itemSize.W*l.itemCount-s.W, 0) - scrollOffset = math.Clamp(scrollOffset, 0, maxScroll) - l.scrollBar.SetScrollPosition(scrollOffset, scrollOffset+s.W) - } else { - maxScroll := math.Max(l.itemSize.H*l.itemCount-s.H, 0) - scrollOffset = math.Clamp(scrollOffset, 0, maxScroll) - l.scrollBar.SetScrollPosition(scrollOffset, scrollOffset+s.H) - } - if l.scrollOffset != scrollOffset { - l.scrollOffset = scrollOffset - l.LayoutChildren() - } -} - -func (l *List) MajorAxisItemSize() int { - return l.orientation.Major(l.itemSize.WH()) -} - -func (l *List) VisibleItemRange(includePartiallyVisible bool) (startIndex, endIndex int) { - if l.itemCount == 0 { - return 0, 0 - } - s := l.outer.Size() - p := l.outer.Padding() - majorAxisItemSize := l.MajorAxisItemSize() - if majorAxisItemSize == 0 { - return 0, 0 - } - startIndex = l.scrollOffset - if !includePartiallyVisible { - startIndex += majorAxisItemSize - 1 - } - if l.orientation.Horizontal() { - endIndex = l.scrollOffset + s.W - p.W() - } else { - endIndex = l.scrollOffset + s.H - p.H() - } - if includePartiallyVisible { - endIndex += majorAxisItemSize - 1 - } - startIndex = math.Max(startIndex/majorAxisItemSize, 0) - endIndex = math.Min(endIndex/majorAxisItemSize, l.itemCount) - - return startIndex, endIndex -} - -func (l *List) SizeChanged() { - l.itemSize = l.adapter.Size(l.theme) - l.scrollBar.SetScrollLimit(l.itemCount * l.MajorAxisItemSize()) - l.SetScrollOffset(l.scrollOffset) - l.outer.Relayout() -} - -func (l *List) DataChanged(recreateControls bool) { - if recreateControls { - for item, details := range l.details { - details.onClickSubscription.Unlisten() - l.RemoveChild(details.child.Control) - delete(l.details, item) - } - } - l.itemCount = l.adapter.Count() - l.SizeChanged() -} - -func (l *List) DataReplaced() { - l.selectedItem = nil - l.DataChanged(true) -} - -func (l *List) Paint(c gxui.Canvas) { - r := l.outer.Size().Rect() - l.outer.PaintBackground(c, r) - l.Container.Paint(c) - l.outer.PaintBorder(c, r) -} - -func (l *List) PaintSelection(c gxui.Canvas, r math.Rect) { - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, gxui.WhitePen, gxui.TransparentBrush) -} - -func (l *List) PaintMouseOverBackground(c gxui.Canvas, r math.Rect) { - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, gxui.TransparentPen, gxui.CreateBrush(gxui.Gray90)) -} - -func (l *List) SelectPrevious() { - if l.selectedItem != nil { - selectedIndex := l.adapter.ItemIndex(l.selectedItem) - l.Select(l.adapter.ItemAt(math.Mod(selectedIndex-1, l.itemCount))) - } else { - l.Select(l.adapter.ItemAt(0)) - } -} - -func (l *List) SelectNext() { - if l.selectedItem != nil { - selectedIndex := l.adapter.ItemIndex(l.selectedItem) - l.Select(l.adapter.ItemAt(math.Mod(selectedIndex+1, l.itemCount))) - } else { - l.Select(l.adapter.ItemAt(0)) - } -} - -func (l *List) ContainsItem(item gxui.AdapterItem) bool { - return l.adapter != nil && l.adapter.ItemIndex(item) >= 0 -} - -func (l *List) RemoveAll() { - for _, details := range l.details { - details.onClickSubscription.Unlisten() - l.outer.RemoveChild(details.child.Control) - } - l.details = make(map[gxui.AdapterItem]itemDetails) -} - -// PaintChildren overrides -func (l *List) PaintChild(c gxui.Canvas, child *gxui.Child, idx int) { - if child == l.itemMouseOver { - b := child.Bounds().Expand(child.Control.Margin()) - l.outer.PaintMouseOverBackground(c, b) - } - l.PaintChildren.PaintChild(c, child, idx) - if selected, found := l.details[l.selectedItem]; found { - if child == selected.child { - b := child.Bounds().Expand(child.Control.Margin()) - l.outer.PaintSelection(c, b) - } - } -} - -// InputEventHandler override -func (l *List) MouseMove(ev gxui.MouseEvent) { - l.InputEventHandler.MouseMove(ev) - l.mousePosition = ev.Point - l.UpdateItemMouseOver() -} - -func (l *List) MouseExit(ev gxui.MouseEvent) { - l.InputEventHandler.MouseExit(ev) - l.itemMouseOver = nil -} - -func (l *List) MouseScroll(ev gxui.MouseEvent) (consume bool) { - if ev.ScrollY == 0 { - return l.InputEventHandler.MouseScroll(ev) - } - prevOffset := l.scrollOffset - if l.orientation.Horizontal() { - delta := ev.ScrollY * l.itemSize.W / 8 - l.SetScrollOffset(l.scrollOffset - delta) - } else { - delta := ev.ScrollY * l.itemSize.H / 8 - l.SetScrollOffset(l.scrollOffset - delta) - } - return prevOffset != l.scrollOffset -} - -func (l *List) KeyPress(ev gxui.KeyboardEvent) (consume bool) { - if l.itemCount > 0 { - if l.orientation.Horizontal() { - switch ev.Key { - case gxui.KeyLeft: - l.SelectPrevious() - return true - case gxui.KeyRight: - l.SelectNext() - return true - case gxui.KeyPageUp: - l.SetScrollOffset(l.scrollOffset - l.Size().W) - return true - case gxui.KeyPageDown: - l.SetScrollOffset(l.scrollOffset + l.Size().W) - return true - } - } else { - switch ev.Key { - case gxui.KeyUp: - l.SelectPrevious() - return true - case gxui.KeyDown: - l.SelectNext() - return true - case gxui.KeyPageUp: - l.SetScrollOffset(l.scrollOffset - l.Size().H) - return true - case gxui.KeyPageDown: - l.SetScrollOffset(l.scrollOffset + l.Size().H) - return true - } - } - } - return l.Container.KeyPress(ev) -} - -// gxui.List compliance -func (l *List) Adapter() gxui.ListAdapter { - return l.adapter -} - -func (l *List) SetAdapter(adapter gxui.ListAdapter) { - if l.adapter != adapter { - if l.adapter != nil { - l.dataChangedSubscription.Unlisten() - l.dataReplacedSubscription.Unlisten() - } - l.adapter = adapter - if l.adapter != nil { - l.dataChangedSubscription = l.adapter.OnDataChanged(l.DataChanged) - l.dataReplacedSubscription = l.adapter.OnDataReplaced(l.DataReplaced) - } - l.DataReplaced() - } -} - -func (l *List) Orientation() gxui.Orientation { - return l.orientation -} - -func (l *List) SetOrientation(o gxui.Orientation) { - l.scrollBar.SetOrientation(o) - if l.orientation != o { - l.orientation = o - l.Relayout() - } -} - -func (l *List) ScrollTo(item gxui.AdapterItem) { - idx := l.adapter.ItemIndex(item) - startIndex, endIndex := l.VisibleItemRange(false) - if idx < startIndex { - if l.Orientation().Horizontal() { - l.SetScrollOffset(l.itemSize.W * idx) - } else { - l.SetScrollOffset(l.itemSize.H * idx) - } - } else if idx >= endIndex { - count := endIndex - startIndex - if l.Orientation().Horizontal() { - l.SetScrollOffset(l.itemSize.W * (idx - count + 1)) - } else { - l.SetScrollOffset(l.itemSize.H * (idx - count + 1)) - } - } -} - -func (l *List) IsItemVisible(item gxui.AdapterItem) bool { - _, found := l.details[item] - return found -} - -func (l *List) ItemControl(item gxui.AdapterItem) gxui.Control { - if item, found := l.details[item]; found { - return item.child.Control - } - return nil -} - -func (l *List) ItemClicked(ev gxui.MouseEvent, item gxui.AdapterItem) { - if l.onItemClicked != nil { - l.onItemClicked.Fire(ev, item) - } - l.Select(item) -} - -func (l *List) OnItemClicked(f func(gxui.MouseEvent, gxui.AdapterItem)) gxui.EventSubscription { - if l.onItemClicked == nil { - l.onItemClicked = gxui.CreateEvent(f) - } - return l.onItemClicked.Listen(f) -} - -func (l *List) Selected() gxui.AdapterItem { - return l.selectedItem -} - -func (l *List) Select(item gxui.AdapterItem) bool { - if l.selectedItem != item { - if !l.outer.ContainsItem(item) { - return false - } - l.selectedItem = item - if l.onSelectionChanged != nil { - l.onSelectionChanged.Fire(item) - } - l.Redraw() - } - l.ScrollTo(item) - return true -} - -func (l *List) OnSelectionChanged(f func(gxui.AdapterItem)) gxui.EventSubscription { - if l.onItemClicked == nil { - l.onSelectionChanged = gxui.CreateEvent(f) - } - return l.onSelectionChanged.Listen(f) -} diff --git a/vendor/github.com/google/gxui/mixins/outer/attachable.go b/vendor/github.com/google/gxui/mixins/outer/attachable.go deleted file mode 100644 index 1bda576..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/attachable.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -import ( - "github.com/google/gxui" -) - -type Attachable interface { - Attached() bool - Attach() - Detach() - OnAttach(func()) gxui.EventSubscription - OnDetach(func()) gxui.EventSubscription -} diff --git a/vendor/github.com/google/gxui/mixins/outer/draw.go b/vendor/github.com/google/gxui/mixins/outer/draw.go deleted file mode 100644 index a60e9e4..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/draw.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -import ( - "github.com/google/gxui" -) - -type Draw interface { - Draw() gxui.Canvas -} diff --git a/vendor/github.com/google/gxui/mixins/outer/isvisibiler.go b/vendor/github.com/google/gxui/mixins/outer/isvisibiler.go deleted file mode 100644 index 3d3f143..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/isvisibiler.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -type IsVisibler interface { - IsVisible() bool -} diff --git a/vendor/github.com/google/gxui/mixins/outer/layout.go b/vendor/github.com/google/gxui/mixins/outer/layout.go deleted file mode 100644 index 88deae6..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/layout.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -import ( - "github.com/google/gxui/math" -) - -type Layout interface { - Layout(math.Rect) -} diff --git a/vendor/github.com/google/gxui/mixins/outer/layout_children.go b/vendor/github.com/google/gxui/mixins/outer/layout_children.go deleted file mode 100644 index dd8da6f..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/layout_children.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -type LayoutChildren interface { - LayoutChildren() -} diff --git a/vendor/github.com/google/gxui/mixins/outer/paint_childer.go b/vendor/github.com/google/gxui/mixins/outer/paint_childer.go deleted file mode 100644 index 78a0214..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/paint_childer.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -import ( - "github.com/google/gxui" -) - -type PaintChilder interface { - PaintChild(c gxui.Canvas, child *gxui.Child, idx int) -} diff --git a/vendor/github.com/google/gxui/mixins/outer/painter.go b/vendor/github.com/google/gxui/mixins/outer/painter.go deleted file mode 100644 index 4d9b02a..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/painter.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -import ( - "github.com/google/gxui" -) - -type Painter interface { - Paint(gxui.Canvas) -} diff --git a/vendor/github.com/google/gxui/mixins/outer/parenter.go b/vendor/github.com/google/gxui/mixins/outer/parenter.go deleted file mode 100644 index d7cfa43..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/parenter.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -import ( - "github.com/google/gxui" -) - -type Parenter interface { - Parent() gxui.Parent -} diff --git a/vendor/github.com/google/gxui/mixins/outer/redrawer.go b/vendor/github.com/google/gxui/mixins/outer/redrawer.go deleted file mode 100644 index 1bc40ca..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/redrawer.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -type Redrawer interface { - Redraw() -} diff --git a/vendor/github.com/google/gxui/mixins/outer/relayouter.go b/vendor/github.com/google/gxui/mixins/outer/relayouter.go deleted file mode 100644 index d488d8d..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/relayouter.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -type Relayouter interface { - Relayout() -} diff --git a/vendor/github.com/google/gxui/mixins/outer/sized.go b/vendor/github.com/google/gxui/mixins/outer/sized.go deleted file mode 100644 index 1707b12..0000000 --- a/vendor/github.com/google/gxui/mixins/outer/sized.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package outer - -import ( - "github.com/google/gxui/math" -) - -type Sized interface { - Size() math.Size - SetSize(math.Size) -} diff --git a/vendor/github.com/google/gxui/mixins/panel_holder.go b/vendor/github.com/google/gxui/mixins/panel_holder.go deleted file mode 100644 index 35d023e..0000000 --- a/vendor/github.com/google/gxui/mixins/panel_holder.go +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "fmt" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" -) - -type PanelTab interface { - gxui.Control - SetText(string) - SetActive(bool) -} - -type PanelTabCreater interface { - CreatePanelTab() PanelTab -} - -type PanelHolderOuter interface { - base.ContainerNoControlOuter - gxui.PanelHolder - PanelTabCreater -} - -type PanelEntry struct { - Tab PanelTab - Panel gxui.Control - MouseDownSubscription gxui.EventSubscription -} - -type PanelHolder struct { - base.Container - - outer PanelHolderOuter - - theme gxui.Theme - tabLayout gxui.LinearLayout - entries []PanelEntry - selected PanelEntry -} - -func insertIndex(holder gxui.PanelHolder, at math.Point) int { - count := holder.PanelCount() - bestIndex := count - bestScore := float32(1e20) - score := func(point math.Point, index int) { - score := point.Sub(at).Len() - if score < bestScore { - bestIndex = index - bestScore = score - } - } - for i := 0; i < holder.PanelCount(); i++ { - tab := holder.Tab(i) - size := tab.Size() - ml := math.Point{Y: size.H / 2} - mr := math.Point{Y: size.H / 2, X: size.W} - score(gxui.TransformCoordinate(ml, tab, holder), i) - score(gxui.TransformCoordinate(mr, tab, holder), i+1) - } - return bestIndex -} - -func beginTabDragging(holder gxui.PanelHolder, panel gxui.Control, name string, window gxui.Window) { - var mms, mos gxui.EventSubscription - mms = window.OnMouseMove(func(ev gxui.MouseEvent) { - for _, c := range gxui.TopControlsUnder(ev.WindowPoint, ev.Window) { - if over, ok := c.C.(gxui.PanelHolder); ok { - insertAt := insertIndex(over, c.P) - if over == holder { - if insertAt > over.PanelIndex(panel) { - insertAt-- - } - } - holder.RemovePanel(panel) - holder = over - holder.AddPanelAt(panel, name, insertAt) - holder.Select(insertAt) - } - } - }) - mos = window.OnMouseUp(func(gxui.MouseEvent) { - mms.Unlisten() - mos.Unlisten() - }) -} - -func (p *PanelHolder) Init(outer PanelHolderOuter, theme gxui.Theme) { - p.Container.Init(outer, theme) - - p.outer = outer - p.theme = theme - - p.tabLayout = theme.CreateLinearLayout() - p.tabLayout.SetDirection(gxui.LeftToRight) - p.Container.AddChild(p.tabLayout) - p.SetMargin(math.Spacing{L: 1, T: 2, R: 1, B: 1}) - p.SetMouseEventTarget(true) // For drag-drop targets - - // Interface compliance test - _ = gxui.PanelHolder(p) -} - -func (p *PanelHolder) LayoutChildren() { - s := p.Size() - - tabHeight := p.tabLayout.DesiredSize(math.ZeroSize, s).H - panelRect := math.CreateRect(0, tabHeight, s.W, s.H).Contract(p.Padding()) - - for _, child := range p.Children() { - if child.Control == p.tabLayout { - child.Control.SetSize(math.Size{W: s.W, H: tabHeight}) - child.Offset = math.ZeroPoint - } else { - rect := panelRect.Contract(child.Control.Margin()) - child.Control.SetSize(rect.Size()) - child.Offset = rect.Min - } - } -} - -func (p *PanelHolder) DesiredSize(min, max math.Size) math.Size { - return max -} - -func (p *PanelHolder) SelectedPanel() gxui.Control { - return p.selected.Panel -} - -// gxui.PanelHolder compliance -func (p *PanelHolder) AddPanel(panel gxui.Control, name string) { - p.AddPanelAt(panel, name, len(p.entries)) -} - -func (p *PanelHolder) AddPanelAt(panel gxui.Control, name string, index int) { - if index < 0 || index > p.PanelCount() { - panic(fmt.Errorf("Index %d is out of bounds. Acceptable range: [%d - %d]", - index, 0, p.PanelCount())) - } - tab := p.outer.CreatePanelTab() - tab.SetText(name) - mds := tab.OnMouseDown(func(ev gxui.MouseEvent) { - p.Select(p.PanelIndex(panel)) - beginTabDragging(p.outer, panel, name, ev.Window) - }) - - p.entries = append(p.entries, PanelEntry{}) - copy(p.entries[index+1:], p.entries[index:]) - p.entries[index] = PanelEntry{ - Panel: panel, - Tab: tab, - MouseDownSubscription: mds, - } - p.tabLayout.AddChildAt(index, tab) - - if p.selected.Panel == nil { - p.Select(index) - } -} - -func (p *PanelHolder) RemovePanel(panel gxui.Control) { - index := p.PanelIndex(panel) - if index < 0 { - panic("PanelHolder does not contain panel") - } - - entry := p.entries[index] - entry.MouseDownSubscription.Unlisten() - p.entries = append(p.entries[:index], p.entries[index+1:]...) - p.tabLayout.RemoveChildAt(index) - - if panel == p.selected.Panel { - if p.PanelCount() > 0 { - p.Select(math.Max(index-1, 0)) - } else { - p.Select(-1) - } - } -} - -func (p *PanelHolder) Select(index int) { - if index >= p.PanelCount() { - panic(fmt.Errorf("Index %d is out of bounds. Acceptable range: [%d - %d]", - index, -1, p.PanelCount()-1)) - } - - if p.selected.Panel != nil { - p.selected.Tab.SetActive(false) - p.Container.RemoveChild(p.selected.Panel) - } - - if index >= 0 { - p.selected = p.entries[index] - } else { - p.selected = PanelEntry{} - } - - if p.selected.Panel != nil { - p.Container.AddChild(p.selected.Panel) - p.selected.Tab.SetActive(true) - } -} - -func (p *PanelHolder) PanelCount() int { - return len(p.entries) -} - -func (p *PanelHolder) PanelIndex(panel gxui.Control) int { - for i, e := range p.entries { - if e.Panel == panel { - return i - } - } - return -1 -} - -func (p *PanelHolder) Panel(index int) gxui.Control { - return p.entries[index].Panel -} - -func (p *PanelHolder) Tab(index int) gxui.Control { - return p.entries[index].Tab -} diff --git a/vendor/github.com/google/gxui/mixins/parts/attachable.go b/vendor/github.com/google/gxui/mixins/parts/attachable.go deleted file mode 100644 index 3be829f..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/attachable.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins/outer" -) - -type AttachableOuter interface { - outer.Relayouter -} - -type Attachable struct { - outer AttachableOuter - onAttach gxui.Event - onDetach gxui.Event - attached bool -} - -func (a *Attachable) Init(outer AttachableOuter) { - a.outer = outer -} - -func (a *Attachable) Attached() bool { - return a.attached -} - -func (a *Attachable) Attach() { - if a.attached { - panic("Control already attached") - } - a.attached = true - if a.onAttach != nil { - a.onAttach.Fire() - } -} - -func (a *Attachable) Detach() { - if !a.attached { - panic("Control already detached") - } - a.attached = false - if a.onDetach != nil { - a.onDetach.Fire() - } -} - -func (a *Attachable) OnAttach(f func()) gxui.EventSubscription { - if a.onAttach == nil { - a.onAttach = gxui.CreateEvent(func() {}) - } - return a.onAttach.Listen(f) -} - -func (a *Attachable) OnDetach(f func()) gxui.EventSubscription { - if a.onDetach == nil { - a.onDetach = gxui.CreateEvent(func() {}) - } - return a.onDetach.Listen(f) -} diff --git a/vendor/github.com/google/gxui/mixins/parts/background_border_painter.go b/vendor/github.com/google/gxui/mixins/parts/background_border_painter.go deleted file mode 100644 index 31b8cd7..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/background_border_painter.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/outer" -) - -type BackgroundBorderPainterOuter interface { - outer.Redrawer -} - -type BackgroundBorderPainter struct { - outer BackgroundBorderPainterOuter - brush gxui.Brush - pen gxui.Pen -} - -func (b *BackgroundBorderPainter) Init(outer BackgroundBorderPainterOuter) { - b.outer = outer - b.brush = gxui.DefaultBrush - b.pen = gxui.DefaultPen -} - -func (b *BackgroundBorderPainter) PaintBackground(c gxui.Canvas, r math.Rect) { - if b.brush.Color.A != 0 { - w := b.pen.Width - c.DrawRoundedRect(r, w, w, w, w, gxui.TransparentPen, b.brush) - } -} - -func (b *BackgroundBorderPainter) PaintBorder(c gxui.Canvas, r math.Rect) { - if b.pen.Color.A != 0 && b.pen.Width != 0 { - w := b.pen.Width - c.DrawRoundedRect(r, w, w, w, w, b.pen, gxui.TransparentBrush) - } -} - -func (b *BackgroundBorderPainter) BackgroundBrush() gxui.Brush { - return b.brush -} - -func (b *BackgroundBorderPainter) SetBackgroundBrush(brush gxui.Brush) { - if b.brush != brush { - b.brush = brush - b.outer.Redraw() - } -} - -func (b *BackgroundBorderPainter) BorderPen() gxui.Pen { - return b.pen -} - -func (b *BackgroundBorderPainter) SetBorderPen(pen gxui.Pen) { - if b.pen != pen { - b.pen = pen - b.outer.Redraw() - } -} diff --git a/vendor/github.com/google/gxui/mixins/parts/container.go b/vendor/github.com/google/gxui/mixins/parts/container.go deleted file mode 100644 index 681f32e..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/container.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "fmt" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/outer" -) - -type ContainerOuter interface { - gxui.Container - outer.Attachable - outer.IsVisibler - outer.LayoutChildren - outer.Parenter - outer.Sized -} - -type Container struct { - outer ContainerOuter - children gxui.Children - isMouseEventTarget bool - relayoutSuspended bool -} - -func (c *Container) Init(outer ContainerOuter) { - c.outer = outer - c.children = gxui.Children{} - outer.OnAttach(func() { - for _, v := range c.children { - v.Control.Attach() - } - }) - outer.OnDetach(func() { - for _, v := range c.children { - v.Control.Detach() - } - }) -} - -func (c *Container) SetMouseEventTarget(mouseEventTarget bool) { - c.isMouseEventTarget = mouseEventTarget -} - -func (c *Container) IsMouseEventTarget() bool { - return c.isMouseEventTarget -} - -// RelayoutSuspended returns true if adding or removing a child Control to this -// Container will not trigger a relayout of this Container. The default is false -// where any mutation will trigger a relayout. -func (c *Container) RelayoutSuspended() bool { - return c.relayoutSuspended -} - -// SetRelayoutSuspended enables or disables relayout of the Container on -// adding or removing a child Control to this Container. -func (c *Container) SetRelayoutSuspended(enable bool) { - c.relayoutSuspended = true -} - -// gxui.Parent compliance -func (c *Container) Children() gxui.Children { - return c.children -} - -// gxui.Container compliance -func (c *Container) AddChild(control gxui.Control) *gxui.Child { - return c.outer.AddChildAt(len(c.children), control) -} - -func (c *Container) AddChildAt(index int, control gxui.Control) *gxui.Child { - if control.Parent() != nil { - panic("Child already has a parent") - } - if index < 0 || index > len(c.children) { - panic(fmt.Errorf("Index %d is out of bounds. Acceptable range: [%d - %d]", - index, 0, len(c.children))) - } - - child := &gxui.Child{Control: control} - - c.children = append(c.children, nil) - copy(c.children[index+1:], c.children[index:]) - c.children[index] = child - - control.SetParent(c.outer) - if c.outer.Attached() { - control.Attach() - } - if !c.relayoutSuspended { - c.outer.Relayout() - } - return child -} - -func (c *Container) RemoveChild(control gxui.Control) { - for i := range c.children { - if c.children[i].Control == control { - c.outer.RemoveChildAt(i) - return - } - } - panic("Child not part of container") -} - -func (c *Container) RemoveChildAt(index int) { - child := c.children[index] - c.children = append(c.children[:index], c.children[index+1:]...) - child.Control.SetParent(nil) - if c.outer.Attached() { - child.Control.Detach() - } - if !c.relayoutSuspended { - c.outer.Relayout() - } -} - -func (c *Container) RemoveAll() { - for i := len(c.children) - 1; i >= 0; i-- { - c.outer.RemoveChildAt(i) - } -} - -func (c *Container) ContainsPoint(p math.Point) bool { - if !c.outer.IsVisible() || !c.outer.Size().Rect().Contains(p) { - return false - } - for _, v := range c.children { - if v.Control.ContainsPoint(p.Sub(v.Offset)) { - return true - } - } - if c.IsMouseEventTarget() { - return true - } - return false -} diff --git a/vendor/github.com/google/gxui/mixins/parts/draw_paint.go b/vendor/github.com/google/gxui/mixins/parts/draw_paint.go deleted file mode 100644 index 8a791dd..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/draw_paint.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "fmt" - "runtime" - - "github.com/google/gxui" - "github.com/google/gxui/mixins/outer" -) - -const debugVerifyDetachOnGC = false - -type DrawPaintOuter interface { - outer.Attachable - outer.Painter - outer.Parenter - outer.Sized -} - -type DrawPaint struct { - outer DrawPaintOuter - driver gxui.Driver - canvas gxui.Canvas - dirty bool - redrawRequested bool -} - -func verifyDetach(o DrawPaintOuter) { - if o.Attached() { - panic(fmt.Errorf("%T garbage collected while still attached", o)) - } -} - -func (d *DrawPaint) Init(outer DrawPaintOuter, theme gxui.Theme) { - d.outer = outer - d.driver = theme.Driver() - - if debugVerifyDetachOnGC { - runtime.SetFinalizer(d.outer, verifyDetach) - } -} - -func (d *DrawPaint) Redraw() { - d.driver.AssertUIGoroutine() - if !d.redrawRequested { - if p := d.outer.Parent(); p != nil { - d.redrawRequested = true - p.Redraw() - } - } -} - -func (d *DrawPaint) Draw() gxui.Canvas { - if !d.outer.Attached() { - panic(fmt.Errorf("Attempting to draw a non-attached control %T", d.outer)) - } - - s := d.outer.Size() - if s.Area() == 0 { - return nil // No area to draw in - } - if d.canvas == nil || d.canvas.Size() != s || d.redrawRequested { - d.canvas = d.driver.CreateCanvas(s) - d.redrawRequested = false - d.outer.Paint(d.canvas) - d.canvas.Complete() - } - return d.canvas -} diff --git a/vendor/github.com/google/gxui/mixins/parts/focusable.go b/vendor/github.com/google/gxui/mixins/parts/focusable.go deleted file mode 100644 index 201c738..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/focusable.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui" -) - -type FocusableOuter interface{} - -type Focusable struct { - outer FocusableOuter - focusable bool - hasFocus bool - onGainedFocus gxui.Event - onLostFocus gxui.Event -} - -func (f *Focusable) Init(outer FocusableOuter) { - f.outer = outer - f.focusable = true -} - -// gxui.Control compliance -func (f *Focusable) IsFocusable() bool { - return f.focusable -} - -func (f *Focusable) HasFocus() bool { - return f.hasFocus -} - -func (f *Focusable) SetFocusable(bool) { - f.focusable = true -} - -func (f *Focusable) OnGainedFocus(l func()) gxui.EventSubscription { - if f.onGainedFocus == nil { - f.onGainedFocus = gxui.CreateEvent(f.GainedFocus) - } - return f.onGainedFocus.Listen(l) -} - -func (f *Focusable) OnLostFocus(l func()) gxui.EventSubscription { - if f.onLostFocus == nil { - f.onLostFocus = gxui.CreateEvent(f.LostFocus) - } - return f.onLostFocus.Listen(l) -} - -func (f *Focusable) GainedFocus() { - f.hasFocus = true - if f.onGainedFocus != nil { - f.onGainedFocus.Fire() - } -} - -func (f *Focusable) LostFocus() { - f.hasFocus = false - if f.onLostFocus != nil { - f.onLostFocus.Fire() - } -} diff --git a/vendor/github.com/google/gxui/mixins/parts/input_event_handler.go b/vendor/github.com/google/gxui/mixins/parts/input_event_handler.go deleted file mode 100644 index bc63502..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/input_event_handler.go +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui" -) - -type InputEventHandlerOuter interface{} - -type InputEventHandler struct { - outer InputEventHandlerOuter - isMouseOver bool - isMouseDown map[gxui.MouseButton]bool - onClick gxui.Event - onDoubleClick gxui.Event - onKeyPress gxui.Event - onKeyStroke gxui.Event - onMouseMove gxui.Event - onMouseEnter gxui.Event - onMouseExit gxui.Event - onMouseDown gxui.Event - onMouseUp gxui.Event - onMouseScroll gxui.Event - onKeyDown gxui.Event - onKeyUp gxui.Event - onKeyRepeat gxui.Event -} - -func (m *InputEventHandler) getOnClick() gxui.Event { - if m.onClick == nil { - m.onClick = gxui.CreateEvent(m.Click) - } - return m.onClick -} - -func (m *InputEventHandler) getOnDoubleClick() gxui.Event { - if m.onDoubleClick == nil { - m.onDoubleClick = gxui.CreateEvent(m.DoubleClick) - } - return m.onDoubleClick -} - -func (m *InputEventHandler) getOnKeyPress() gxui.Event { - if m.onKeyPress == nil { - m.onKeyPress = gxui.CreateEvent(m.KeyPress) - } - return m.onKeyPress -} - -func (m *InputEventHandler) getOnKeyStroke() gxui.Event { - if m.onKeyStroke == nil { - m.onKeyStroke = gxui.CreateEvent(m.KeyStroke) - } - return m.onKeyStroke -} - -func (m *InputEventHandler) getOnMouseMove() gxui.Event { - if m.onMouseMove == nil { - m.onMouseMove = gxui.CreateEvent(m.MouseMove) - } - return m.onMouseMove -} - -func (m *InputEventHandler) getOnMouseEnter() gxui.Event { - if m.onMouseEnter == nil { - m.onMouseEnter = gxui.CreateEvent(m.MouseEnter) - } - return m.onMouseEnter -} - -func (m *InputEventHandler) getOnMouseExit() gxui.Event { - if m.onMouseExit == nil { - m.onMouseExit = gxui.CreateEvent(m.MouseExit) - } - return m.onMouseExit -} - -func (m *InputEventHandler) getOnMouseDown() gxui.Event { - if m.onMouseDown == nil { - m.onMouseDown = gxui.CreateEvent(m.MouseDown) - } - return m.onMouseDown -} - -func (m *InputEventHandler) getOnMouseUp() gxui.Event { - if m.onMouseUp == nil { - m.onMouseUp = gxui.CreateEvent(m.MouseUp) - } - return m.onMouseUp -} - -func (m *InputEventHandler) getOnMouseScroll() gxui.Event { - if m.onMouseScroll == nil { - m.onMouseScroll = gxui.CreateEvent(m.MouseScroll) - } - return m.onMouseScroll -} - -func (m *InputEventHandler) getOnKeyDown() gxui.Event { - if m.onKeyDown == nil { - m.onKeyDown = gxui.CreateEvent(m.KeyDown) - } - return m.onKeyDown -} - -func (m *InputEventHandler) getOnKeyUp() gxui.Event { - if m.onKeyUp == nil { - m.onKeyUp = gxui.CreateEvent(m.KeyUp) - } - return m.onKeyUp -} - -func (m *InputEventHandler) getOnKeyRepeat() gxui.Event { - if m.onKeyRepeat == nil { - m.onKeyRepeat = gxui.CreateEvent(m.KeyRepeat) - } - return m.onKeyRepeat -} - -func (m *InputEventHandler) Init(outer InputEventHandlerOuter) { - m.outer = outer - m.isMouseDown = make(map[gxui.MouseButton]bool) -} - -func (m *InputEventHandler) Click(ev gxui.MouseEvent) (consume bool) { - m.getOnClick().Fire(ev) - return false -} - -func (m *InputEventHandler) DoubleClick(ev gxui.MouseEvent) (consume bool) { - m.getOnDoubleClick().Fire(ev) - return false -} - -func (m *InputEventHandler) KeyPress(ev gxui.KeyboardEvent) (consume bool) { - m.getOnKeyPress().Fire(ev) - return false -} - -func (m *InputEventHandler) KeyStroke(ev gxui.KeyStrokeEvent) (consume bool) { - m.getOnKeyStroke().Fire(ev) - return false -} - -func (m *InputEventHandler) MouseScroll(ev gxui.MouseEvent) (consume bool) { - m.getOnMouseScroll().Fire(ev) - return false -} - -func (m *InputEventHandler) MouseMove(ev gxui.MouseEvent) { - m.getOnMouseMove().Fire(ev) -} - -func (m *InputEventHandler) MouseEnter(ev gxui.MouseEvent) { - m.isMouseOver = true - m.getOnMouseEnter().Fire(ev) -} - -func (m *InputEventHandler) MouseExit(ev gxui.MouseEvent) { - m.isMouseOver = false - m.getOnMouseExit().Fire(ev) -} - -func (m *InputEventHandler) MouseDown(ev gxui.MouseEvent) { - m.isMouseDown[ev.Button] = true - m.getOnMouseDown().Fire(ev) -} - -func (m *InputEventHandler) MouseUp(ev gxui.MouseEvent) { - m.isMouseDown[ev.Button] = false - m.getOnMouseUp().Fire(ev) -} - -func (m *InputEventHandler) KeyDown(ev gxui.KeyboardEvent) { - m.getOnKeyDown().Fire(ev) -} - -func (m *InputEventHandler) KeyUp(ev gxui.KeyboardEvent) { - m.getOnKeyUp().Fire(ev) -} - -func (m *InputEventHandler) KeyRepeat(ev gxui.KeyboardEvent) { - m.getOnKeyRepeat().Fire(ev) -} - -func (m *InputEventHandler) OnClick(f func(gxui.MouseEvent)) gxui.EventSubscription { - return m.getOnClick().Listen(f) -} - -func (m *InputEventHandler) OnDoubleClick(f func(gxui.MouseEvent)) gxui.EventSubscription { - return m.getOnDoubleClick().Listen(f) -} - -func (m *InputEventHandler) OnKeyPress(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return m.getOnKeyPress().Listen(f) -} - -func (m *InputEventHandler) OnKeyStroke(f func(gxui.KeyStrokeEvent)) gxui.EventSubscription { - return m.getOnKeyStroke().Listen(f) -} - -func (m *InputEventHandler) OnMouseMove(f func(gxui.MouseEvent)) gxui.EventSubscription { - return m.getOnMouseMove().Listen(f) -} - -func (m *InputEventHandler) OnMouseEnter(f func(gxui.MouseEvent)) gxui.EventSubscription { - return m.getOnMouseEnter().Listen(f) -} - -func (m *InputEventHandler) OnMouseExit(f func(gxui.MouseEvent)) gxui.EventSubscription { - return m.getOnMouseExit().Listen(f) -} - -func (m *InputEventHandler) OnMouseDown(f func(gxui.MouseEvent)) gxui.EventSubscription { - return m.getOnMouseDown().Listen(f) -} - -func (m *InputEventHandler) OnMouseUp(f func(gxui.MouseEvent)) gxui.EventSubscription { - return m.getOnMouseUp().Listen(f) -} - -func (m *InputEventHandler) OnMouseScroll(f func(gxui.MouseEvent)) gxui.EventSubscription { - return m.getOnMouseScroll().Listen(f) -} - -func (m *InputEventHandler) OnKeyDown(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return m.getOnKeyDown().Listen(f) -} - -func (m *InputEventHandler) OnKeyUp(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return m.getOnKeyUp().Listen(f) -} - -func (m *InputEventHandler) OnKeyRepeat(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return m.getOnKeyRepeat().Listen(f) -} - -func (m *InputEventHandler) IsMouseOver() bool { - return m.isMouseOver -} - -func (m *InputEventHandler) IsMouseDown(button gxui.MouseButton) bool { - return m.isMouseDown[button] -} diff --git a/vendor/github.com/google/gxui/mixins/parts/layoutable.go b/vendor/github.com/google/gxui/mixins/parts/layoutable.go deleted file mode 100644 index cb5e1fb..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/layoutable.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "fmt" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/outer" -) - -type LayoutableOuter interface { - outer.Parenter - outer.Redrawer -} - -type Layoutable struct { - outer LayoutableOuter - driver gxui.Driver - margin math.Spacing - size math.Size - relayoutRequested bool - inLayoutChildren bool // True when calling LayoutChildren -} - -func (l *Layoutable) Init(outer LayoutableOuter, theme gxui.Theme) { - l.outer = outer - l.driver = theme.Driver() -} - -func (l *Layoutable) SetMargin(m math.Spacing) { - l.margin = m - if p := l.outer.Parent(); p != nil { - p.Relayout() - } -} - -func (l *Layoutable) Margin() math.Spacing { - return l.margin -} - -func (l *Layoutable) Size() math.Size { - return l.size -} - -func (l *Layoutable) SetSize(size math.Size) { - if size.W < 0 { - panic(fmt.Errorf("SetSize() called with a negative width. Size: %v", size)) - } - if size.H < 0 { - panic(fmt.Errorf("SetSize() called with a negative height. Size: %v", size)) - } - - sizeChanged := l.size != size - l.size = size - if l.relayoutRequested || sizeChanged { - l.relayoutRequested = false - l.inLayoutChildren = true - callLayoutChildrenIfSupported(l.outer) - l.inLayoutChildren = false - l.outer.Redraw() - } -} - -func (l *Layoutable) Relayout() { - l.driver.AssertUIGoroutine() - if l.inLayoutChildren { - panic("Cannot call Relayout() while in LayoutChildren") - } - if !l.relayoutRequested { - if p := l.outer.Parent(); p != nil { - l.relayoutRequested = true - p.Relayout() - } - } -} diff --git a/vendor/github.com/google/gxui/mixins/parts/linear_layout.go b/vendor/github.com/google/gxui/mixins/parts/linear_layout.go deleted file mode 100644 index f8bab98..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/linear_layout.go +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/outer" -) - -type LinearLayoutOuter interface { - gxui.Container - outer.Sized -} - -type LinearLayout struct { - outer LinearLayoutOuter - direction gxui.Direction - sizeMode gxui.SizeMode - horizontalAlignment gxui.HorizontalAlignment - verticalAlignment gxui.VerticalAlignment -} - -func (l *LinearLayout) Init(outer LinearLayoutOuter) { - l.outer = outer -} - -func (l *LinearLayout) LayoutChildren() { - s := l.outer.Size().Contract(l.outer.Padding()) - o := l.outer.Padding().LT() - children := l.outer.Children() - major := 0 - if l.direction.RightToLeft() || l.direction.BottomToTop() { - if l.direction.RightToLeft() { - major = s.W - } else { - major = s.H - } - } - for _, c := range children { - cm := c.Control.Margin() - cs := c.Control.DesiredSize(math.ZeroSize, s.Contract(cm).Max(math.ZeroSize)) - c.Control.SetSize(cs) - - // Calculate minor-axis alignment - var minor int - switch l.direction.Orientation() { - case gxui.Horizontal: - switch l.verticalAlignment { - case gxui.AlignTop: - minor = cm.T - case gxui.AlignMiddle: - minor = (s.H - cs.H) / 2 - case gxui.AlignBottom: - minor = s.H - cs.H - } - case gxui.Vertical: - switch l.horizontalAlignment { - case gxui.AlignLeft: - minor = cm.L - case gxui.AlignCenter: - minor = (s.W - cs.W) / 2 - case gxui.AlignRight: - minor = s.W - cs.W - } - } - - // Peform layout - switch l.direction { - case gxui.LeftToRight: - major += cm.L - c.Offset = math.Point{X: major, Y: minor}.Add(o) - major += cs.W - major += cm.R - s.W -= cs.W + cm.W() - case gxui.RightToLeft: - major -= cm.R - c.Offset = math.Point{X: major - cs.W, Y: minor}.Add(o) - major -= cs.W - major -= cm.L - s.W -= cs.W + cm.W() - case gxui.TopToBottom: - major += cm.T - c.Offset = math.Point{X: minor, Y: major}.Add(o) - major += cs.H - major += cm.B - s.H -= cs.H + cm.H() - case gxui.BottomToTop: - major -= cm.B - c.Offset = math.Point{X: minor, Y: major - cs.H}.Add(o) - major -= cs.H - major -= cm.T - s.H -= cs.H + cm.H() - } - } -} - -func (l *LinearLayout) DesiredSize(min, max math.Size) math.Size { - if l.sizeMode.Fill() { - return max - } - - bounds := min.Rect() - children := l.outer.Children() - - horizontal := l.direction.Orientation().Horizontal() - offset := math.Point{X: 0, Y: 0} - for _, c := range children { - cs := c.Control.DesiredSize(math.ZeroSize, max) - cm := c.Control.Margin() - cb := cs.Expand(cm).Rect().Offset(offset) - if horizontal { - offset.X += cb.W() - } else { - offset.Y += cb.H() - } - bounds = bounds.Union(cb) - } - - return bounds.Size().Expand(l.outer.Padding()).Clamp(min, max) -} - -func (l *LinearLayout) Direction() gxui.Direction { - return l.direction -} - -func (l *LinearLayout) SetDirection(d gxui.Direction) { - if l.direction != d { - l.direction = d - l.outer.Relayout() - } -} - -func (l *LinearLayout) SizeMode() gxui.SizeMode { - return l.sizeMode -} - -func (l *LinearLayout) SetSizeMode(mode gxui.SizeMode) { - if l.sizeMode != mode { - l.sizeMode = mode - l.outer.Relayout() - } -} - -func (l *LinearLayout) HorizontalAlignment() gxui.HorizontalAlignment { - return l.horizontalAlignment -} - -func (l *LinearLayout) SetHorizontalAlignment(alignment gxui.HorizontalAlignment) { - if l.horizontalAlignment != alignment { - l.horizontalAlignment = alignment - l.outer.Relayout() - } -} - -func (l *LinearLayout) VerticalAlignment() gxui.VerticalAlignment { - return l.verticalAlignment -} - -func (l *LinearLayout) SetVerticalAlignment(alignment gxui.VerticalAlignment) { - if l.verticalAlignment != alignment { - l.verticalAlignment = alignment - l.outer.Relayout() - } -} diff --git a/vendor/github.com/google/gxui/mixins/parts/paddable.go b/vendor/github.com/google/gxui/mixins/parts/paddable.go deleted file mode 100644 index 2b9090a..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/paddable.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/outer" -) - -type PaddableOuter interface { - outer.LayoutChildren - outer.Redrawer -} - -type Paddable struct { - outer PaddableOuter - padding math.Spacing -} - -func (p *Paddable) Init(outer PaddableOuter) { - p.outer = outer -} - -func (p *Paddable) SetPadding(m math.Spacing) { - p.padding = m - p.outer.LayoutChildren() - p.outer.Redraw() -} - -func (p *Paddable) Padding() math.Spacing { - return p.padding -} diff --git a/vendor/github.com/google/gxui/mixins/parts/paint_children.go b/vendor/github.com/google/gxui/mixins/parts/paint_children.go deleted file mode 100644 index b347863..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/paint_children.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins/outer" -) - -type PaintChildrenOuter interface { - gxui.Container - outer.PaintChilder - outer.Sized -} - -type PaintChildren struct { - outer PaintChildrenOuter -} - -func (p *PaintChildren) Init(outer PaintChildrenOuter) { - p.outer = outer -} - -func (p *PaintChildren) Paint(c gxui.Canvas) { - for i, v := range p.outer.Children() { - if v.Control.IsVisible() { - c.Push() - c.AddClip(v.Control.Size().Rect().Offset(v.Offset)) - p.outer.PaintChild(c, v, i) - c.Pop() - } - } -} - -func (p *PaintChildren) PaintChild(c gxui.Canvas, child *gxui.Child, idx int) { - if canvas := child.Control.Draw(); canvas != nil { - c.DrawCanvas(canvas, child.Offset) - } -} diff --git a/vendor/github.com/google/gxui/mixins/parts/parentable.go b/vendor/github.com/google/gxui/mixins/parts/parentable.go deleted file mode 100644 index 4b6e063..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/parentable.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui" -) - -type ParentableOuter interface{} - -type Parentable struct { - outer ParentableOuter - parent gxui.Parent -} - -func (p *Parentable) Init(outer ParentableOuter) { - p.outer = outer -} - -func (p *Parentable) Parent() gxui.Parent { - return p.parent -} - -func (p *Parentable) SetParent(parent gxui.Parent) { - p.parent = parent -} diff --git a/vendor/github.com/google/gxui/mixins/parts/utils.go b/vendor/github.com/google/gxui/mixins/parts/utils.go deleted file mode 100644 index ee98e38..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/utils.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui/mixins/outer" -) - -func callLayoutChildrenIfSupported(i interface{}) { - switch ty := i.(type) { - case outer.LayoutChildren: - ty.LayoutChildren() - } -} diff --git a/vendor/github.com/google/gxui/mixins/parts/visible.go b/vendor/github.com/google/gxui/mixins/parts/visible.go deleted file mode 100644 index e48bc23..0000000 --- a/vendor/github.com/google/gxui/mixins/parts/visible.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package parts - -import ( - "github.com/google/gxui/mixins/outer" -) - -type VisibleOuter interface { - outer.Redrawer - outer.Parenter -} - -type Visible struct { - outer VisibleOuter - visible bool -} - -func (v *Visible) Init(outer VisibleOuter) { - v.outer = outer - v.visible = true -} - -func (v *Visible) IsVisible() bool { - return v.visible -} - -func (v *Visible) SetVisible(visible bool) { - if v.visible != visible { - v.visible = visible - if p := v.outer.Parent(); p != nil { - p.Redraw() - } - } -} diff --git a/vendor/github.com/google/gxui/mixins/progress_bar.go b/vendor/github.com/google/gxui/mixins/progress_bar.go deleted file mode 100644 index fae2de3..0000000 --- a/vendor/github.com/google/gxui/mixins/progress_bar.go +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" - "github.com/google/gxui/mixins/parts" -) - -type ProgressBarOuter interface { - base.ControlOuter - PaintProgress(gxui.Canvas, math.Rect, float32) -} - -type ProgressBar struct { - base.Control - parts.BackgroundBorderPainter - - outer ProgressBarOuter - desiredSize math.Size - progress, target int -} - -func (b *ProgressBar) Init(outer ProgressBarOuter, theme gxui.Theme) { - b.outer = outer - b.Control.Init(outer, theme) - b.BackgroundBorderPainter.Init(outer) - b.desiredSize = math.MaxSize - b.target = 100 - - // Interface compliance test - _ = gxui.ProgressBar(b) -} - -func (b *ProgressBar) Paint(c gxui.Canvas) { - frac := math.Saturate(float32(b.progress) / float32(b.target)) - r := b.outer.Size().Rect() - b.PaintBackground(c, r) - b.outer.PaintProgress(c, r, frac) - b.PaintBorder(c, r) -} - -func (b *ProgressBar) PaintProgress(c gxui.Canvas, r math.Rect, frac float32) { - r.Max.X = math.Lerp(r.Min.X, r.Max.X, frac) - c.DrawRect(r, gxui.CreateBrush(gxui.Gray50)) -} - -func (b *ProgressBar) DesiredSize(min, max math.Size) math.Size { - return b.desiredSize.Clamp(min, max) -} - -// gxui.ProgressBar compliance -func (b *ProgressBar) SetDesiredSize(size math.Size) { - b.desiredSize = size - b.Relayout() -} - -func (b *ProgressBar) SetProgress(progress int) { - if b.progress != progress { - b.progress = progress - b.Redraw() - } -} - -func (b *ProgressBar) Progress() int { - return b.progress -} - -func (b *ProgressBar) SetTarget(target int) { - if b.target != target { - b.target = target - b.Redraw() - } -} - -func (b *ProgressBar) Target() int { - return b.target -} diff --git a/vendor/github.com/google/gxui/mixins/scroll_bar.go b/vendor/github.com/google/gxui/mixins/scroll_bar.go deleted file mode 100644 index f0e0072..0000000 --- a/vendor/github.com/google/gxui/mixins/scroll_bar.go +++ /dev/null @@ -1,242 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" -) - -type ScrollBarOuter interface { - base.ControlOuter -} - -type ScrollBar struct { - base.Control - outer ScrollBarOuter - - orientation gxui.Orientation - thickness int - minBarLength int - scrollPositionFrom int - scrollPositionTo int - scrollLimit int - railBrush, barBrush gxui.Brush - railPen, barPen gxui.Pen - barRect math.Rect - onScroll gxui.Event - autoHide bool -} - -func (s *ScrollBar) positionAt(p math.Point) int { - o := s.orientation - frac := float32(o.Major(p.XY())) / float32(o.Major(s.Size().WH())) - max := s.ScrollLimit() - return int(float32(max) * frac) -} - -func (s *ScrollBar) rangeAt(p math.Point) (from, to int) { - width := s.scrollPositionTo - s.scrollPositionFrom - from = math.Clamp(s.positionAt(p), 0, s.scrollLimit-width) - to = from + width - return -} - -func (s *ScrollBar) updateBarRect() { - sf, st := s.ScrollFraction() - size := s.Size() - b := size.Rect() - halfMinLen := s.minBarLength / 2 - if s.orientation.Horizontal() { - b.Min.X = math.Lerp(0, size.W, sf) - b.Max.X = math.Lerp(0, size.W, st) - if b.W() < s.minBarLength { - c := (b.Min.X + b.Max.X) / 2 - c = math.Clamp(c, b.Min.X+halfMinLen, b.Max.X-halfMinLen) - b.Min.X, b.Max.X = c-halfMinLen, c+halfMinLen - } - } else { - b.Min.Y = math.Lerp(0, size.H, sf) - b.Max.Y = math.Lerp(0, size.H, st) - if b.H() < s.minBarLength { - c := (b.Min.Y + b.Max.Y) / 2 - c = math.Clamp(c, b.Min.Y+halfMinLen, b.Max.Y-halfMinLen) - b.Min.Y, b.Max.Y = c-halfMinLen, c+halfMinLen - } - } - s.barRect = b -} - -func (s *ScrollBar) Init(outer ScrollBarOuter, theme gxui.Theme) { - s.Control.Init(outer, theme) - - s.outer = outer - s.thickness = 10 - s.minBarLength = 10 - s.scrollPositionFrom = 0 - s.scrollPositionTo = 100 - s.scrollLimit = 100 - s.onScroll = gxui.CreateEvent(s.SetScrollPosition) - - // Interface compliance test - _ = gxui.ScrollBar(s) -} - -func (s *ScrollBar) OnScroll(f func(from, to int)) gxui.EventSubscription { - return s.onScroll.Listen(f) -} - -func (s *ScrollBar) ScrollFraction() (from, to float32) { - from = float32(s.scrollPositionFrom) / float32(s.scrollLimit) - to = float32(s.scrollPositionTo) / float32(s.scrollLimit) - return -} - -func (s *ScrollBar) DesiredSize(min, max math.Size) math.Size { - if s.orientation.Horizontal() { - return math.Size{W: max.W, H: s.thickness}.Clamp(min, max) - } else { - return math.Size{W: s.thickness, H: max.H}.Clamp(min, max) - } -} - -func (s *ScrollBar) Paint(c gxui.Canvas) { - c.DrawRoundedRect(s.outer.Size().Rect(), 3, 3, 3, 3, s.railPen, s.railBrush) - c.DrawRoundedRect(s.barRect, 3, 3, 3, 3, s.barPen, s.barBrush) -} - -func (s *ScrollBar) RailBrush() gxui.Brush { - return s.railBrush -} - -func (s *ScrollBar) SetRailBrush(b gxui.Brush) { - if s.railBrush != b { - s.railBrush = b - s.Redraw() - } -} - -func (s *ScrollBar) BarBrush() gxui.Brush { - return s.barBrush -} - -func (s *ScrollBar) SetBarBrush(b gxui.Brush) { - if s.barBrush != b { - s.barBrush = b - s.Redraw() - } -} - -func (s *ScrollBar) RailPen() gxui.Pen { - return s.railPen -} - -func (s *ScrollBar) SetRailPen(b gxui.Pen) { - if s.railPen != b { - s.railPen = b - s.Redraw() - } -} - -func (s *ScrollBar) BarPen() gxui.Pen { - return s.barPen -} - -func (s *ScrollBar) SetBarPen(b gxui.Pen) { - if s.barPen != b { - s.barPen = b - s.Redraw() - } -} - -func (s *ScrollBar) ScrollPosition() (from, to int) { - return s.scrollPositionFrom, s.scrollPositionTo -} - -func (s *ScrollBar) SetScrollPosition(from, to int) { - if s.scrollPositionFrom != from || s.scrollPositionTo != to { - s.scrollPositionFrom, s.scrollPositionTo = from, to - s.updateBarRect() - s.Redraw() - s.onScroll.Fire(from, to) - } -} - -func (s *ScrollBar) ScrollLimit() int { - return s.scrollLimit -} - -func (s *ScrollBar) SetScrollLimit(l int) { - if s.scrollLimit != l { - s.scrollLimit = l - s.updateBarRect() - s.Redraw() - } -} - -func (s *ScrollBar) AutoHide() bool { - return s.autoHide -} - -func (s *ScrollBar) SetAutoHide(autoHide bool) { - if s.autoHide != autoHide { - s.autoHide = autoHide - s.Redraw() - } -} - -func (s *ScrollBar) IsVisible() bool { - if s.autoHide && s.scrollPositionFrom == 0 && s.scrollPositionTo == s.scrollLimit { - return false - } - return s.Control.IsVisible() -} - -func (s *ScrollBar) Orientation() gxui.Orientation { - return s.orientation -} - -func (s *ScrollBar) SetOrientation(o gxui.Orientation) { - if s.orientation != o { - s.orientation = o - s.Redraw() - } -} - -// InputEventHandler overrides -func (s *ScrollBar) Click(ev gxui.MouseEvent) (consume bool) { - if !s.barRect.Contains(ev.Point) { - p := s.positionAt(ev.Point) - from, to := s.scrollPositionFrom, s.scrollPositionTo - switch { - case p < from: - width := to - from - from = math.Max(from-width, 0) - s.SetScrollPosition(from, from+width) - case p > to: - width := to - from - to = math.Min(to+width, s.scrollLimit) - s.SetScrollPosition(to-width, to) - } - } - return true -} - -func (s *ScrollBar) MouseDown(ev gxui.MouseEvent) { - if s.barRect.Contains(ev.Point) { - initialOffset := ev.Point.Sub(s.barRect.Min) - var mms, mus gxui.EventSubscription - mms = ev.Window.OnMouseMove(func(we gxui.MouseEvent) { - p := gxui.WindowToChild(we.WindowPoint, s.outer) - s.SetScrollPosition(s.rangeAt(p.Sub(initialOffset))) - }) - mus = ev.Window.OnMouseUp(func(we gxui.MouseEvent) { - mms.Unlisten() - mus.Unlisten() - }) - } - s.InputEventHandler.MouseDown(ev) -} diff --git a/vendor/github.com/google/gxui/mixins/scroll_layout.go b/vendor/github.com/google/gxui/mixins/scroll_layout.go deleted file mode 100644 index e4f292e..0000000 --- a/vendor/github.com/google/gxui/mixins/scroll_layout.go +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" - "github.com/google/gxui/mixins/parts" -) - -type ScrollLayoutOuter interface { - base.ContainerOuter -} - -type ScrollLayout struct { - base.Container - parts.BackgroundBorderPainter - - outer ScrollLayoutOuter - theme gxui.Theme - scrollOffset math.Point - canScrollX, canScrollY bool - scrollBarX, scrollBarY *gxui.Child - child *gxui.Child - innerSize math.Size -} - -func (l *ScrollLayout) Init(outer ScrollLayoutOuter, theme gxui.Theme) { - l.Container.Init(outer, theme) - l.BackgroundBorderPainter.Init(outer) - - l.outer = outer - l.theme = theme - l.canScrollX = true - l.canScrollY = true - scrollBarX := theme.CreateScrollBar() - scrollBarX.SetOrientation(gxui.Horizontal) - scrollBarX.OnScroll(func(from, to int) { l.SetScrollOffset(math.Point{X: from, Y: l.scrollOffset.Y}) }) - scrollBarY := theme.CreateScrollBar() - scrollBarY.SetOrientation(gxui.Vertical) - scrollBarY.OnScroll(func(from, to int) { l.SetScrollOffset(math.Point{X: l.scrollOffset.X, Y: from}) }) - l.scrollBarX = l.AddChild(scrollBarX) - l.scrollBarY = l.AddChild(scrollBarY) - l.SetMouseEventTarget(true) - - // Interface compliance test - _ = gxui.ScrollLayout(l) -} - -func (l *ScrollLayout) LayoutChildren() { - s := l.outer.Size().Contract(l.Padding()) - o := l.Padding().LT() - - var sxs, sys math.Size - if l.canScrollX { - sxs = l.scrollBarX.Control.DesiredSize(math.ZeroSize, s) - } - if l.canScrollY { - sys = l.scrollBarY.Control.DesiredSize(math.ZeroSize, s) - } - - l.scrollBarX.Layout(math.CreateRect(0, s.H-sxs.H, s.W-sys.W, s.H).Canon().Offset(o)) - l.scrollBarY.Layout(math.CreateRect(s.W-sys.W, 0, s.W, s.H-sxs.H).Canon().Offset(o)) - - l.innerSize = s.Contract(math.Spacing{R: sys.W, B: sxs.H}) - - if l.child != nil { - max := l.innerSize - if l.canScrollX { - max.W = math.MaxSize.W - } - if l.canScrollY { - max.H = math.MaxSize.H - } - cs := l.child.Control.DesiredSize(math.ZeroSize, max) - l.child.Layout(cs.Rect().Offset(l.scrollOffset.Neg()).Offset(o)) - l.scrollBarX.Control.(gxui.ScrollBar).SetScrollLimit(cs.W) - l.scrollBarY.Control.(gxui.ScrollBar).SetScrollLimit(cs.H) - } - - l.SetScrollOffset(l.scrollOffset) -} - -func (l *ScrollLayout) DesiredSize(min, max math.Size) math.Size { - return max -} - -func (l *ScrollLayout) SetScrollOffset(scrollOffset math.Point) bool { - var cs math.Size - if l.child != nil { - cs = l.child.Control.Size() - } - - s := l.innerSize - scrollOffset = scrollOffset.Min(cs.Sub(s).Point()).Max(math.Point{}) - - l.scrollBarX.Control.SetVisible(l.canScrollX && cs.W > s.W) - l.scrollBarY.Control.SetVisible(l.canScrollY && cs.H > s.H) - l.scrollBarX.Control.(gxui.ScrollBar).SetScrollPosition(l.scrollOffset.X, l.scrollOffset.X+s.W) - l.scrollBarY.Control.(gxui.ScrollBar).SetScrollPosition(l.scrollOffset.Y, l.scrollOffset.Y+s.H) - - if l.scrollOffset != scrollOffset { - l.scrollOffset = scrollOffset - l.Relayout() - return true - } - - return false -} - -// InputEventHandler override -func (l *ScrollLayout) MouseScroll(ev gxui.MouseEvent) (consume bool) { - if ev.ScrollY == 0 { - return l.InputEventHandler.MouseScroll(ev) - } - switch { - case l.canScrollY: - return l.SetScrollOffset(l.scrollOffset.AddY(-ev.ScrollY)) - case l.canScrollX: - return l.SetScrollOffset(l.scrollOffset.AddX(-ev.ScrollY)) - default: - return false - } -} - -// gxui.ScrollLayout complaince -func (l *ScrollLayout) SetChild(control gxui.Control) { - if l.child != nil { - l.RemoveChild(l.child.Control) - } - if control != nil { - l.child = l.AddChildAt(0, control) - } -} - -func (l *ScrollLayout) Child() gxui.Control { - return l.child.Control -} - -func (l *ScrollLayout) SetScrollAxis(horizontal, vertical bool) { - if l.canScrollX != horizontal || l.canScrollY != vertical { - l.canScrollX, l.canScrollY = horizontal, vertical - l.scrollBarX.Control.SetVisible(horizontal) - l.scrollBarY.Control.SetVisible(vertical) - l.Relayout() - } -} - -func (l *ScrollLayout) ScrollAxis() (horizontal, vertical bool) { - return l.canScrollX, l.canScrollY -} diff --git a/vendor/github.com/google/gxui/mixins/splitter_bar.go b/vendor/github.com/google/gxui/mixins/splitter_bar.go deleted file mode 100644 index e60d792..0000000 --- a/vendor/github.com/google/gxui/mixins/splitter_bar.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" -) - -type SplitterBarOuter interface { - base.ControlOuter -} - -type SplitterBar struct { - base.Control - - onDrag func(wndPnt math.Point) - outer SplitterBarOuter - theme gxui.Theme - onDragStart gxui.Event - onDragEnd gxui.Event - backgroundColor gxui.Color - foregroundColor gxui.Color - isDragging bool -} - -func (b *SplitterBar) Init(outer SplitterBarOuter, theme gxui.Theme) { - b.Control.Init(outer, theme) - - b.outer = outer - b.theme = theme - b.onDragStart = gxui.CreateEvent(func(gxui.MouseEvent) {}) - b.onDragEnd = gxui.CreateEvent(func(gxui.MouseEvent) {}) - b.backgroundColor = gxui.Red - b.foregroundColor = gxui.Green -} - -func (b *SplitterBar) SetBackgroundColor(c gxui.Color) { - b.backgroundColor = c -} - -func (b *SplitterBar) SetForegroundColor(c gxui.Color) { - b.foregroundColor = c -} - -func (b *SplitterBar) OnSplitterDragged(f func(wndPnt math.Point)) { - b.onDrag = f -} - -func (b *SplitterBar) IsDragging() bool { - return b.isDragging -} - -func (b *SplitterBar) OnDragStart(f func(gxui.MouseEvent)) gxui.EventSubscription { - return b.onDragStart.Listen(f) -} - -func (b *SplitterBar) OnDragEnd(f func(gxui.MouseEvent)) gxui.EventSubscription { - return b.onDragEnd.Listen(f) -} - -// parts.DrawPaint overrides -func (b *SplitterBar) Paint(c gxui.Canvas) { - r := b.outer.Size().Rect() - c.DrawRect(r, gxui.CreateBrush(b.backgroundColor)) - if b.foregroundColor != b.backgroundColor { - c.DrawRect(r.ContractI(1), gxui.CreateBrush(b.foregroundColor)) - } -} - -// InputEventHandler overrides -func (b *SplitterBar) MouseDown(e gxui.MouseEvent) { - b.isDragging = true - b.onDragStart.Fire(e) - var mms, mus gxui.EventSubscription - mms = e.Window.OnMouseMove(func(we gxui.MouseEvent) { - if b.onDrag != nil { - b.onDrag(we.WindowPoint) - } - }) - mus = e.Window.OnMouseUp(func(we gxui.MouseEvent) { - mms.Unlisten() - mus.Unlisten() - b.isDragging = false - b.onDragEnd.Fire(we) - }) - - b.InputEventHandler.MouseDown(e) -} diff --git a/vendor/github.com/google/gxui/mixins/splitter_layout.go b/vendor/github.com/google/gxui/mixins/splitter_layout.go deleted file mode 100644 index d1b1485..0000000 --- a/vendor/github.com/google/gxui/mixins/splitter_layout.go +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" -) - -type SplitterLayoutOuter interface { - base.ContainerOuter - CreateSplitterBar() gxui.Control -} - -type SplitterLayout struct { - base.Container - - outer SplitterLayoutOuter - theme gxui.Theme - orientation gxui.Orientation - splitterWidth int - weights map[gxui.Control]float32 -} - -func (l *SplitterLayout) Init(outer SplitterLayoutOuter, theme gxui.Theme) { - l.Container.Init(outer, theme) - l.outer = outer - l.theme = theme - l.weights = make(map[gxui.Control]float32) - l.splitterWidth = 4 - l.SetMouseEventTarget(true) - - // Interface compliance test - _ = gxui.SplitterLayout(l) -} - -func (l *SplitterLayout) LayoutChildren() { - s := l.outer.Size().Contract(l.Padding()) - o := l.Padding().LT() - - children := l.outer.Children() - - splitterCount := len(children) / 2 - - splitterWidth := l.splitterWidth - if l.orientation.Horizontal() { - s.W -= splitterWidth * splitterCount - } else { - s.H -= splitterWidth * splitterCount - } - - netWeight := float32(0.0) - for i, c := range children { - if isSplitter := (i & 1) == 1; !isSplitter { - netWeight += l.weights[c.Control] - } - } - - d := 0 - for i, c := range children { - var cr math.Rect - if isSplitter := (i & 1) == 1; !isSplitter { - cm := c.Control.Margin() - frac := l.weights[c.Control] / netWeight - if l.orientation.Horizontal() { - cw := int(float32(s.W) * frac) - cr = math.CreateRect(d+cm.L, cm.T, d+cw-cm.R, s.H-cm.B) - d += cw - } else { - ch := int(float32(s.H) * frac) - cr = math.CreateRect(cm.L, d+cm.T, s.W-cm.R, d+ch-cm.B) - d += ch - } - } else { - if l.orientation.Horizontal() { - cr = math.CreateRect(d, 0, d+splitterWidth, s.H) - } else { - cr = math.CreateRect(0, d, s.W, d+splitterWidth) - } - d += splitterWidth - } - c.Layout(cr.Offset(o).Canon()) - } -} - -func (l *SplitterLayout) ChildWeight(child gxui.Control) float32 { - return l.weights[child] -} - -func (l *SplitterLayout) SetChildWeight(child gxui.Control, weight float32) { - if l.weights[child] != weight { - l.weights[child] = weight - l.LayoutChildren() - } -} - -func (l *SplitterLayout) DesiredSize(min, max math.Size) math.Size { - return max -} - -func (l *SplitterLayout) Orientation() gxui.Orientation { - return l.orientation -} - -func (l *SplitterLayout) SetOrientation(o gxui.Orientation) { - if l.orientation != o { - l.orientation = o - l.LayoutChildren() - } -} - -func (l *SplitterLayout) CreateSplitterBar() gxui.Control { - b := &SplitterBar{} - b.Init(b, l.theme) - b.OnSplitterDragged(func(wndPnt math.Point) { l.SplitterDragged(b, wndPnt) }) - return b -} - -func (l *SplitterLayout) SplitterDragged(splitter gxui.Control, wndPnt math.Point) { - o := l.orientation - p := gxui.WindowToChild(wndPnt, l.outer) - children := l.Container.Children() - splitterIndex := children.IndexOf(splitter) - childA, childB := children[splitterIndex-1], children[splitterIndex+1] - boundsA, boundsB := childA.Bounds(), childB.Bounds() - - min, max := o.Major(boundsA.Min.XY()), o.Major(boundsB.Max.XY()) - frac := math.RampSat(float32(o.Major(p.XY())), float32(min), float32(max)) - - netWeight := l.weights[childA.Control] + l.weights[childB.Control] - l.weights[childA.Control] = netWeight * frac - l.weights[childB.Control] = netWeight * (1.0 - frac) - l.LayoutChildren() -} - -// parts.Container overrides -func (l *SplitterLayout) AddChildAt(index int, control gxui.Control) *gxui.Child { - l.weights[control] = 1.0 - if len(l.Container.Children()) > 0 { - l.Container.AddChildAt(index, l.outer.CreateSplitterBar()) - index++ - } - return l.Container.AddChildAt(index, control) -} - -func (l *SplitterLayout) RemoveChildAt(index int) { - children := l.Container.Children() - if len(children) > 1 { - l.Container.RemoveChildAt(index + 1) - } - delete(l.weights, children[index].Control) - l.Container.RemoveChildAt(index) -} diff --git a/vendor/github.com/google/gxui/mixins/table_layout.go b/vendor/github.com/google/gxui/mixins/table_layout.go deleted file mode 100644 index 62e95e6..0000000 --- a/vendor/github.com/google/gxui/mixins/table_layout.go +++ /dev/null @@ -1,123 +0,0 @@ -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/base" -) - -type Cell struct { - x, y, w, h int -} - -func (c Cell) AtColumn(x int) bool { - return c.x <= x && c.x+c.w >= x -} - -func (c Cell) AtRow(y int) bool { - return c.y <= y && c.y+c.h >= y -} - -type TableLayoutOuter interface { - base.ContainerOuter -} - -type TableLayout struct { - base.Container - - outer TableLayoutOuter - - grid map[gxui.Control]Cell - rows int - columns int -} - -func (l *TableLayout) Init(outer TableLayoutOuter, theme gxui.Theme) { - l.Container.Init(outer, theme) - l.outer = outer - l.grid = make(map[gxui.Control]Cell) - - // Interface compliance test - _ = gxui.TableLayout(l) -} - -func (l *TableLayout) LayoutChildren() { - s := l.outer.Size().Contract(l.outer.Padding()) - o := l.outer.Padding().LT() - - cw, ch := s.W/l.columns, s.H/l.rows - - var cr math.Rect - - for _, c := range l.outer.Children() { - cm := c.Control.Margin() - cell := l.grid[c.Control] - - x, y := cell.x*cw, cell.y*ch - w, h := x+cell.w*cw, y+cell.h*ch - - cr = math.CreateRect(x+cm.L, y+cm.T, w-cm.R, h-cm.B) - - c.Layout(cr.Offset(o).Canon()) - } -} - -func (l *TableLayout) DesiredSize(min, max math.Size) math.Size { - return max -} - -func (l *TableLayout) SetGrid(columns, rows int) { - if l.columns != columns { - if l.columns > columns { - for c := l.columns; c > columns; c-- { - for _, cell := range l.grid { - if cell.AtColumn(c) { - panic("Can't remove column with cells") - } - } - l.columns-- - } - } else { - l.columns = columns - } - } - - if l.rows != rows { - if l.rows > rows { - for r := l.rows; r > rows; r-- { - for _, cell := range l.grid { - if cell.AtRow(r) { - panic("Can't remove row with cells") - } - } - l.rows-- - } - } else { - l.rows = rows - } - } - - if l.rows != rows || l.columns != columns { - l.LayoutChildren() - } -} - -func (l *TableLayout) SetChildAt(x, y, w, h int, child gxui.Control) *gxui.Child { - if x+w > l.columns || y+h > l.rows { - panic("Cell is out of grid") - } - - for _, c := range l.grid { - if c.x+c.w > x && c.x < x+w && c.y+c.h > y && c.y < y+h { - panic("Cell already has a child") - } - } - - l.grid[child] = Cell{x, y, w, h} - return l.Container.AddChild(child) -} - -func (l *TableLayout) RemoveChild(child gxui.Control) { - delete(l.grid, child) - l.Container.RemoveChild(child) -} diff --git a/vendor/github.com/google/gxui/mixins/textbox.go b/vendor/github.com/google/gxui/mixins/textbox.go deleted file mode 100644 index 5bebbab..0000000 --- a/vendor/github.com/google/gxui/mixins/textbox.go +++ /dev/null @@ -1,476 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "strings" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/parts" -) - -type TextBoxLine interface { - gxui.Control - RuneIndexAt(math.Point) int - PositionAt(int) math.Point -} - -type TextBoxOuter interface { - ListOuter - CreateLine(theme gxui.Theme, index int) (line TextBoxLine, container gxui.Control) -} - -type TextBox struct { - List - gxui.AdapterBase - parts.Focusable - - outer TextBoxOuter - driver gxui.Driver - font gxui.Font - textColor gxui.Color - onRedrawLines gxui.Event - multiline bool - controller *gxui.TextBoxController - adapter *TextBoxAdapter - selectionDragging bool - selectionDrag gxui.TextSelection - desiredWidth int -} - -func (t *TextBox) lineMouseDown(line TextBoxLine, ev gxui.MouseEvent) { - if ev.Button == gxui.MouseButtonLeft { - p := line.RuneIndexAt(ev.Point) - t.selectionDragging = true - t.selectionDrag = gxui.CreateTextSelection(p, p, false) - if !ev.Modifier.Control() { - t.controller.SetCaret(p) - } - } -} - -func (t *TextBox) lineMouseUp(line TextBoxLine, ev gxui.MouseEvent) { - if ev.Button == gxui.MouseButtonLeft { - t.selectionDragging = false - if !ev.Modifier.Control() { - t.controller.SetSelection(t.selectionDrag) - } else { - t.controller.AddSelection(t.selectionDrag) - } - } -} - -func (t *TextBox) Init(outer TextBoxOuter, driver gxui.Driver, theme gxui.Theme, font gxui.Font) { - t.List.Init(outer, theme) - t.Focusable.Init(outer) - t.outer = outer - t.driver = driver - t.font = font - t.onRedrawLines = gxui.CreateEvent(func() {}) - t.controller = gxui.CreateTextBoxController() - t.adapter = &TextBoxAdapter{TextBox: t} - t.desiredWidth = 100 - t.SetScrollBarEnabled(false) // Defaults to single line - t.OnGainedFocus(func() { t.onRedrawLines.Fire() }) - t.OnLostFocus(func() { t.onRedrawLines.Fire() }) - t.controller.OnTextChanged(func([]gxui.TextBoxEdit) { - t.onRedrawLines.Fire() - t.List.DataChanged(false) - }) - t.controller.OnSelectionChanged(func() { - t.onRedrawLines.Fire() - }) - - t.List.SetAdapter(t.adapter) - - // Interface compliance test - _ = gxui.TextBox(t) -} - -func (t *TextBox) textRect() math.Rect { - return t.outer.Size().Rect().Contract(t.Padding()) -} - -func (t *TextBox) pageLines() int { - return (t.outer.Size().H - t.outer.Padding().H()) / t.MajorAxisItemSize() -} - -func (t *TextBox) OnRedrawLines(f func()) gxui.EventSubscription { - return t.onRedrawLines.Listen(f) -} - -func (t *TextBox) OnSelectionChanged(f func()) gxui.EventSubscription { - return t.controller.OnSelectionChanged(f) -} - -func (t *TextBox) OnTextChanged(f func([]gxui.TextBoxEdit)) gxui.EventSubscription { - return t.controller.OnTextChanged(f) -} - -func (t *TextBox) Runes() []rune { - return t.controller.TextRunes() -} - -func (t *TextBox) Text() string { - return t.controller.Text() -} - -func (t *TextBox) SetText(text string) { - t.controller.SetText(text) - t.outer.Relayout() -} - -func (t *TextBox) TextColor() gxui.Color { - return t.textColor -} - -func (t *TextBox) SetTextColor(color gxui.Color) { - t.textColor = color - t.Relayout() -} - -func (t *TextBox) Font() gxui.Font { - return t.font -} - -func (t *TextBox) SetFont(font gxui.Font) { - if t.font != font { - t.font = font - t.Relayout() - } -} - -func (t *TextBox) Multiline() bool { - return t.multiline -} - -func (t *TextBox) SetMultiline(multiline bool) { - if t.multiline != multiline { - t.multiline = multiline - t.SetScrollBarEnabled(multiline) - t.outer.Relayout() - } -} - -func (t *TextBox) DesiredWidth() int { - return t.desiredWidth -} - -func (t *TextBox) SetDesiredWidth(desiredWidth int) { - if t.desiredWidth != desiredWidth { - t.desiredWidth = desiredWidth - t.SizeChanged() - } -} - -func (t *TextBox) Select(sel gxui.TextSelectionList) { - t.controller.StoreCaretLocations() - t.controller.SetSelections(sel) - // Use two scroll tos to try and display all selections (if it fits on screen) - t.ScrollToRune(t.controller.FirstSelection().First()) - t.ScrollToRune(t.controller.LastSelection().Last()) -} - -func (t *TextBox) SelectAll() { - t.controller.StoreCaretLocations() - t.controller.SelectAll() - t.ScrollToRune(t.controller.FirstCaret()) -} - -func (t *TextBox) Carets() []int { - return t.controller.Carets() -} - -func (t *TextBox) RuneIndexAt(pnt math.Point) (index int, found bool) { - for _, child := range gxui.ControlsUnder(pnt, t) { - line, _ := child.C.(TextBoxLine) - if line == nil { - continue - } - - pnt = gxui.ParentToChild(pnt, t.outer, line) - return line.RuneIndexAt(pnt), true - } - return -1, false -} - -func (t *TextBox) TextAt(s, e int) string { - return t.controller.TextRange(s, e) -} - -func (t *TextBox) WordAt(runeIndex int) string { - s, e := t.controller.WordAt(runeIndex) - return t.controller.TextRange(s, e) -} - -func (t *TextBox) LineIndex(runeIndex int) int { - return t.controller.LineIndex(runeIndex) -} - -func (t *TextBox) LineStart(line int) int { - return t.controller.LineStart(line) -} - -func (t *TextBox) LineEnd(line int) int { - return t.controller.LineEnd(line) -} - -func (t *TextBox) ScrollToLine(i int) { - t.List.ScrollTo(i) -} - -func (t *TextBox) ScrollToRune(i int) { - t.ScrollToLine(t.controller.LineIndex(i)) -} - -func (t *TextBox) KeyPress(ev gxui.KeyboardEvent) (consume bool) { - switch ev.Key { - case gxui.KeyLeft: - switch { - case ev.Modifier.Shift() && ev.Modifier.Control(): - t.controller.SelectLeftByWord() - case ev.Modifier.Shift(): - t.controller.SelectLeft() - case ev.Modifier.Alt(): - t.controller.RestorePreviousSelections() - case !t.controller.Deselect(true): - if ev.Modifier.Control() { - t.controller.MoveLeftByWord() - } else { - t.controller.MoveLeft() - } - } - t.ScrollToRune(t.controller.FirstCaret()) - return true - case gxui.KeyRight: - switch { - case ev.Modifier.Shift() && ev.Modifier.Control(): - t.controller.SelectRightByWord() - case ev.Modifier.Shift(): - t.controller.SelectRight() - case ev.Modifier.Alt(): - t.controller.RestoreNextSelections() - case !t.controller.Deselect(false): - if ev.Modifier.Control() { - t.controller.MoveRightByWord() - } else { - t.controller.MoveRight() - } - } - t.ScrollToRune(t.controller.LastCaret()) - return true - case gxui.KeyUp: - switch { - case ev.Modifier.Shift() && ev.Modifier.Alt(): - t.controller.AddCaretsUp() - case ev.Modifier.Shift(): - t.controller.SelectUp() - default: - t.controller.Deselect(true) - t.controller.MoveUp() - } - t.ScrollToRune(t.controller.FirstCaret()) - return true - case gxui.KeyDown: - switch { - case ev.Modifier.Shift() && ev.Modifier.Alt(): - t.controller.AddCaretsDown() - case ev.Modifier.Shift(): - t.controller.SelectDown() - default: - t.controller.Deselect(false) - t.controller.MoveDown() - } - t.ScrollToRune(t.controller.LastCaret()) - return true - case gxui.KeyHome: - switch { - case ev.Modifier.Shift() && ev.Modifier.Control(): - t.controller.SelectFirst() - case ev.Modifier.Control(): - t.controller.MoveFirst() - case ev.Modifier.Shift(): - t.controller.SelectHome() - default: - t.controller.Deselect(true) - t.controller.MoveHome() - } - t.ScrollToRune(t.controller.FirstCaret()) - return true - case gxui.KeyEnd: - switch { - case ev.Modifier.Shift() && ev.Modifier.Control(): - t.controller.SelectLast() - case ev.Modifier.Control(): - t.controller.MoveLast() - case ev.Modifier.Shift(): - t.controller.SelectEnd() - default: - t.controller.Deselect(false) - t.controller.MoveEnd() - } - t.ScrollToRune(t.controller.LastCaret()) - return true - case gxui.KeyPageUp: - switch { - case ev.Modifier.Shift(): - for i, c := 0, t.pageLines(); i < c; i++ { - t.controller.SelectUp() - } - default: - t.controller.Deselect(true) - for i, c := 0, t.pageLines(); i < c; i++ { - t.controller.MoveUp() - } - } - t.ScrollToRune(t.controller.FirstCaret()) - return true - case gxui.KeyPageDown: - switch { - case ev.Modifier.Shift(): - for i, c := 0, t.pageLines(); i < c; i++ { - t.controller.SelectDown() - } - default: - t.controller.Deselect(false) - for i, c := 0, t.pageLines(); i < c; i++ { - t.controller.MoveDown() - } - } - t.ScrollToRune(t.controller.LastCaret()) - return true - case gxui.KeyBackspace: - t.controller.Backspace() - return true - case gxui.KeyDelete: - t.controller.Delete() - return true - case gxui.KeyEnter: - if t.multiline { - t.controller.ReplaceWithNewline() - return true - } - case gxui.KeyA: - if ev.Modifier.Control() { - t.controller.SelectAll() - return true - } - case gxui.KeyX: - fallthrough - case gxui.KeyC: - if ev.Modifier.Control() { - parts := make([]string, t.controller.SelectionCount()) - for i, _ := range parts { - parts[i] = t.controller.SelectionText(i) - if parts[i] == "" { - // Copy line instead. - parts[i] = "\n" + t.controller.SelectionLineText(i) - } - } - str := strings.Join(parts, "\n") - t.driver.SetClipboard(str) - - if ev.Key == gxui.KeyX { - t.controller.ReplaceAll("") - } - return true - } - case gxui.KeyV: - if ev.Modifier.Control() { - str, _ := t.driver.GetClipboard() - t.controller.ReplaceAll(str) - t.controller.Deselect(false) - return true - } - case gxui.KeyEscape: - t.controller.ClearSelections() - } - - return t.List.KeyPress(ev) -} - -func (t *TextBox) KeyStroke(ev gxui.KeyStrokeEvent) (consume bool) { - if !ev.Modifier.Control() && !ev.Modifier.Alt() { - t.controller.ReplaceAllRunes([]rune{ev.Character}) - t.controller.Deselect(false) - } - t.InputEventHandler.KeyStroke(ev) - return true -} - -func (t *TextBox) Click(ev gxui.MouseEvent) (consume bool) { - t.InputEventHandler.Click(ev) - return true -} - -func (t *TextBox) DoubleClick(ev gxui.MouseEvent) (consume bool) { - if p, ok := t.RuneIndexAt(ev.Point); ok { - s, e := t.controller.WordAt(p) - if ev.Modifier&gxui.ModControl != 0 { - t.controller.AddSelection(gxui.CreateTextSelection(s, e, false)) - } else { - t.controller.SetSelection(gxui.CreateTextSelection(s, e, false)) - } - } - t.InputEventHandler.DoubleClick(ev) - return true -} - -func (t *TextBox) MouseMove(ev gxui.MouseEvent) { - t.List.MouseMove(ev) - if t.selectionDragging { - if p, ok := t.RuneIndexAt(ev.Point); ok { - t.selectionDrag = gxui.CreateTextSelection(t.selectionDrag.From(), p, false) - t.selectionDragging = true - t.onRedrawLines.Fire() - } - } -} - -func (t *TextBox) CreateLine(theme gxui.Theme, index int) (line TextBoxLine, container gxui.Control) { - l := &DefaultTextBoxLine{} - l.Init(l, theme, t, index) - return l, l -} - -// mixins.List overrides -func (t *TextBox) PaintSelection(c gxui.Canvas, r math.Rect) {} - -func (t *TextBox) PaintMouseOverBackground(c gxui.Canvas, r math.Rect) {} - -// gxui.AdapterCompliance -type TextBoxAdapter struct { - gxui.DefaultAdapter - TextBox *TextBox -} - -func (t *TextBoxAdapter) Count() int { - return math.Max(t.TextBox.controller.LineCount(), 1) -} - -func (t *TextBoxAdapter) ItemAt(index int) gxui.AdapterItem { - return index -} - -func (t *TextBoxAdapter) ItemIndex(item gxui.AdapterItem) int { - return item.(int) -} - -func (t *TextBoxAdapter) Size(theme gxui.Theme) math.Size { - tb := t.TextBox - return math.Size{W: tb.desiredWidth, H: tb.font.GlyphMaxSize().H} -} - -func (t *TextBoxAdapter) Create(theme gxui.Theme, index int) gxui.Control { - line, container := t.TextBox.outer.CreateLine(theme, index) - line.OnMouseDown(func(ev gxui.MouseEvent) { - t.TextBox.lineMouseDown(line, ev) - }) - line.OnMouseUp(func(ev gxui.MouseEvent) { - t.TextBox.lineMouseUp(line, ev) - }) - return container -} diff --git a/vendor/github.com/google/gxui/mixins/tree.go b/vendor/github.com/google/gxui/mixins/tree.go deleted file mode 100644 index 3f3c64e..0000000 --- a/vendor/github.com/google/gxui/mixins/tree.go +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/parts" -) - -type TreeOuter interface { - ListOuter - PaintUnexpandedSelection(c gxui.Canvas, r math.Rect) -} - -type Tree struct { - List - parts.Focusable - outer TreeOuter - treeAdapter gxui.TreeAdapter - listAdapter *TreeToListAdapter - creator TreeControlCreator -} - -func (t *Tree) Init(outer TreeOuter, theme gxui.Theme) { - t.List.Init(outer, theme) - t.Focusable.Init(outer) - t.outer = outer - t.creator = defaultTreeControlCreator{} - - // Interface compliance test - _ = gxui.Tree(t) -} - -func (t *Tree) SetControlCreator(c TreeControlCreator) { - t.creator = c - if t.treeAdapter != nil { - t.listAdapter = CreateTreeToListAdapter(t.treeAdapter, t.creator) - t.DataReplaced() - } -} - -// gxui.Tree complaince -func (t *Tree) SetAdapter(adapter gxui.TreeAdapter) { - if t.treeAdapter == adapter { - return - } - if adapter != nil { - t.treeAdapter = adapter - t.listAdapter = CreateTreeToListAdapter(adapter, t.creator) - t.List.SetAdapter(t.listAdapter) - } else { - t.listAdapter = nil - t.treeAdapter = nil - t.List.SetAdapter(nil) - } -} - -func (t *Tree) Adapter() gxui.TreeAdapter { - return t.treeAdapter -} - -func (t *Tree) Show(item gxui.AdapterItem) { - t.listAdapter.ExpandItem(item) - t.List.ScrollTo(item) -} - -func (t *Tree) ContainsItem(item gxui.AdapterItem) bool { - return t.listAdapter != nil && t.listAdapter.Contains(item) -} - -func (t *Tree) ExpandAll() { - t.listAdapter.ExpandAll() -} - -func (t *Tree) CollapseAll() { - t.listAdapter.CollapseAll() -} - -func (t *Tree) PaintUnexpandedSelection(c gxui.Canvas, r math.Rect) { - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, gxui.CreatePen(1, gxui.Gray50), gxui.TransparentBrush) -} - -// List override -func (t *Tree) PaintChild(c gxui.Canvas, child *gxui.Child, idx int) { - t.List.PaintChild(c, child, idx) - if t.selectedItem != nil { - if deepest := t.listAdapter.DeepestNode(t.selectedItem); deepest != nil { - if item := deepest.Item(); item != t.selectedItem { - // The selected item is hidden by an unexpanded node. - // Highlight the deepest visible node instead. - if details, found := t.details[item]; found { - if child == details.child { - b := child.Bounds().Expand(child.Control.Margin()) - t.outer.PaintUnexpandedSelection(c, b) - } - } - } - } - } -} - -// InputEventHandler override -func (t *Tree) KeyPress(ev gxui.KeyboardEvent) (consume bool) { - switch ev.Key { - case gxui.KeyLeft: - if item := t.Selected(); item != nil { - node := t.listAdapter.DeepestNode(item) - if node.Collapse() { - return true - } - if p := node.Parent(); p != nil { - return t.Select(p.Item()) - } - } - case gxui.KeyRight: - if item := t.Selected(); item != nil { - node := t.listAdapter.DeepestNode(item) - if node.Expand() { - return true - } - } - } - return t.List.KeyPress(ev) -} - -type defaultTreeControlCreator struct{} - -func (defaultTreeControlCreator) Create(theme gxui.Theme, control gxui.Control, node *TreeToListNode) gxui.Control { - ll := theme.CreateLinearLayout() - ll.SetDirection(gxui.LeftToRight) - - btn := theme.CreateButton() - btn.SetBackgroundBrush(gxui.TransparentBrush) - btn.SetBorderPen(gxui.CreatePen(1, gxui.Gray30)) - btn.SetMargin(math.Spacing{L: 2, R: 2, T: 1, B: 1}) - btn.OnClick(func(ev gxui.MouseEvent) { - if ev.Button == gxui.MouseButtonLeft { - node.ToggleExpanded() - } - }) - - update := func() { - btn.SetVisible(!node.IsLeaf()) - if node.IsExpanded() { - btn.SetText("-") - } else { - btn.SetText("+") - } - } - update() - - gxui.WhileAttached(btn, node.OnChange, update) - - ll.AddChild(btn) - ll.AddChild(control) - ll.SetPadding(math.Spacing{L: 16 * node.Depth()}) - return ll -} - -func (defaultTreeControlCreator) Size(theme gxui.Theme, treeControlSize math.Size) math.Size { - return treeControlSize -} diff --git a/vendor/github.com/google/gxui/mixins/tree_to_list_adapter.go b/vendor/github.com/google/gxui/mixins/tree_to_list_adapter.go deleted file mode 100644 index 0c4ab7d..0000000 --- a/vendor/github.com/google/gxui/mixins/tree_to_list_adapter.go +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" -) - -// Interface used to visualize tree nodes in as a list. -type TreeControlCreator interface { - // Create returns a Control that contains control (returned by the backing - // TreeNode) and visualizes the expanded state of node. - Create(theme gxui.Theme, control gxui.Control, node *TreeToListNode) gxui.Control - - // Size returns the size that each of the controls returned by Create will - // be displayed at for the given theme. - // treeControlSize is the size returned the backing TreeNode. - Size(theme gxui.Theme, treeControlSize math.Size) math.Size -} - -// TreeToListAdapter converts a TreeAdapter to a ListAdapter so that the -// tree can be visualized with a List. -type TreeToListAdapter struct { - gxui.AdapterBase - node TreeToListNode - adapter gxui.TreeAdapter - creator TreeControlCreator -} - -// CreateTreeToListAdapter wraps the provided TreeAdapter with an adapter -// conforming to the ListAdapter interface. -func CreateTreeToListAdapter(treeAdapter gxui.TreeAdapter, creator TreeControlCreator) *TreeToListAdapter { - listAdapter := &TreeToListAdapter{} - listAdapter.node.depth = -1 // The node is just a container. - listAdapter.node.container = treeAdapter - listAdapter.adapter = treeAdapter - listAdapter.creator = creator - treeAdapter.OnDataReplaced(func() { - listAdapter.reset() - listAdapter.DataReplaced() - }) - treeAdapter.OnDataChanged(func(recreateControls bool) { - listAdapter.node.update(listAdapter) - listAdapter.DataChanged(recreateControls) - }) - listAdapter.reset() - return listAdapter -} - -func (a *TreeToListAdapter) adjustDescendants(delta int) { - if delta != 0 { - a.node.descendants += delta - a.DataChanged(false) - } -} - -// reset clears the current state of the tree. -func (a *TreeToListAdapter) reset() { - count := a.adapter.Count() - a.node.descendants = count - a.node.children = make([]*TreeToListNode, count) - for i := range a.node.children { - node := a.adapter.NodeAt(i) - item := node.Item() - a.node.children[i] = &TreeToListNode{container: node, item: item, parent: a} - } -} - -// Count returns the total number of expanded nodes in the tree. -func (a *TreeToListAdapter) Count() int { - return a.node.descendants -} - -// Create returns a Control visualizing the item at the specified index in the -// list of all the expanded nodes treated as as a flattened list. -func (a *TreeToListAdapter) Create(theme gxui.Theme, index int) gxui.Control { - n := a.node.NodeAt(index) - c := n.container.(gxui.TreeNode).Create(theme) - return a.creator.Create(theme, c, n) -} - -// Size returns the size that each of the item's controls will be displayed -// at for the given theme. -func (a *TreeToListAdapter) Size(theme gxui.Theme) math.Size { - return a.creator.Size(theme, a.adapter.Size(theme)) -} - -// DeepestNode returns the deepest expanded node to represent item. -// If the item is not found in the adapter, then nil is returned. -func (a *TreeToListAdapter) DeepestNode(item gxui.AdapterItem) *TreeToListNode { - n := &a.node - for { - if i := n.DirectItemIndex(item); i >= 0 { - n = n.children[i] - } else { - return nil - } - if item == n.item || !n.IsExpanded() { - return n - } - } -} - -// ItemAt returns the idx'th item of all the expanded nodes treated as a -// flattened list. -// Index 0 represents the first root node, index 1 may represent the the second -// root node or the first child of the first root node, and so on. -func (a *TreeToListAdapter) ItemAt(idx int) gxui.AdapterItem { - return a.node.ItemAt(idx) -} - -// ItemIndex returns the index of item in the list of all the expanded nodes -// treated as a flattened list. -// Index 0 represents the first root node, index 1 may represent the the second -// root node or the first child of the first root node, and so on. -func (a *TreeToListAdapter) ItemIndex(item gxui.AdapterItem) int { - return a.node.ItemIndex(item) -} - -// ExpandItem expands the tree to show item. -func (a *TreeToListAdapter) ExpandItem(item gxui.AdapterItem) { - node := &a.node - for { - idx := node.DirectItemIndex(item) - if idx < 0 { - break - } - node = node.children[idx] - node.Expand() - } -} - -// ExpandAll expands this node and all child nodes. -func (a *TreeToListAdapter) ExpandAll() { - for _, n := range a.node.children { - n.ExpandAll() - } -} - -// CollapseAll collapses this node and all child nodes. -func (a *TreeToListAdapter) CollapseAll() { - for _, n := range a.node.children { - n.CollapseAll() - } -} - -// Contains returns true if item is part of the tree (regardless of whether it -// is part of the expanded tree or not). -func (a *TreeToListAdapter) Contains(item gxui.AdapterItem) bool { - return a.node.DirectItemIndex(item) >= 0 -} diff --git a/vendor/github.com/google/gxui/mixins/tree_to_list_node.go b/vendor/github.com/google/gxui/mixins/tree_to_list_node.go deleted file mode 100644 index e01fc4f..0000000 --- a/vendor/github.com/google/gxui/mixins/tree_to_list_node.go +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "fmt" - - "github.com/google/gxui" -) - -type treeToListNodeParent interface { - adjustDescendants(delta int) -} - -type TreeToListNode struct { - item gxui.AdapterItem // The wrapped AdapterItem. - container gxui.TreeNodeContainer // The wrapped TreeNode. - descendants int // Total number of descendants. - children []*TreeToListNode // The child nodes if expanded, or nil if collapsed. - parent treeToListNodeParent // The parent of this node. - depth int // The depth of this node. - onChange gxui.Event // event() -} - -func (n *TreeToListNode) adjustDescendants(delta int) { - n.descendants += delta - n.parent.adjustDescendants(delta) -} - -func (n *TreeToListNode) update(nAsParent treeToListNodeParent) { - if n.IsExpanded() { - // Build a map of item -> child for the current state. - m := make(map[gxui.AdapterItem]*TreeToListNode, len(n.children)) - for _, c := range n.children { - m[c.item] = c - } - - // Re-create children, reusing previous nodes if found. - depth := n.depth + 1 - n.descendants = 0 - n.children = make([]*TreeToListNode, n.container.Count()) - for i := range n.children { - node := n.container.NodeAt(i) - item := node.Item() - if p, ok := m[item]; ok { - p.container = node - p.update(p) - n.children[i] = p - n.descendants += p.descendants + 1 - } else { - n.children[i] = &TreeToListNode{container: node, item: item, parent: nAsParent, depth: depth} - n.descendants++ - } - } - } - if n.onChange != nil { - n.onChange.Fire() - } -} - -// Item returns the AdapterItem this node represents. -func (n *TreeToListNode) Item() gxui.AdapterItem { - return n.item -} - -// Depth returns the depth of this node. -func (n *TreeToListNode) Depth() int { - return n.depth -} - -// IsExpanded returns true if the node is currently expanded. -func (n *TreeToListNode) IsExpanded() bool { - return n.children != nil -} - -// IsLeaf returns true if the node is a leaf in the tree. -func (n *TreeToListNode) IsLeaf() bool { - return n.container == nil || n.container.Count() == 0 -} - -// Expand attempts to expand the node, returning true if the node expands. -// If the node is already expanded or is a leaf then Expand returns false. -func (n *TreeToListNode) Expand() bool { - if n.parent == nil { - panic("Expand cannot be called for root nodes") - } - if n.IsExpanded() || n.IsLeaf() { - return false - } - depth := n.depth + 1 - n.descendants = n.container.Count() - n.children = make([]*TreeToListNode, n.descendants) - for i := range n.children { - node := n.container.NodeAt(i) - item := node.Item() - n.children[i] = &TreeToListNode{container: node, item: item, parent: n, depth: depth} - } - n.parent.adjustDescendants(n.descendants) - if n.onChange != nil { - n.onChange.Fire() - } - return true -} - -// Collapse attempts to collapse the node, returning true if the node collapses. -// If the node is already collapsed then Collapse returns false. -func (n *TreeToListNode) Collapse() bool { - if n.parent == nil { - panic("Collapse cannot be called for root nodes") - } - if !n.IsExpanded() || n.IsLeaf() { - return false - } - n.parent.adjustDescendants(-n.descendants) - n.descendants = 0 - n.children = nil - if n.onChange != nil { - n.onChange.Fire() - } - return true -} - -// ToggleExpanded attempts to toggles the expanded state of the node, returning -// true if the state changed. -func (n *TreeToListNode) ToggleExpanded() bool { - if n.IsExpanded() { - return n.Collapse() - } else { - return n.Expand() - } -} - -// ExpandAll expands this node and all child nodes. -func (n *TreeToListNode) ExpandAll() { - n.Expand() - for _, c := range n.children { - c.ExpandAll() - } -} - -// CollapseAll collapses this node and all child nodes. -func (n *TreeToListNode) CollapseAll() { - n.Collapse() - for _, c := range n.children { - c.CollapseAll() - } -} - -// OnChange registers f to be called when the node is expanded, collapsed or has -// a change in the number of children. -func (n *TreeToListNode) OnChange(f func()) gxui.EventSubscription { - if n.onChange == nil { - n.onChange = gxui.CreateEvent(f) - } - return n.onChange.Listen(f) -} - -// Descendants returns the total number of descendants of this node. -func (n *TreeToListNode) Descendants() int { - return n.descendants -} - -// Children returns all the immediate child nodes. -func (n *TreeToListNode) Children() []*TreeToListNode { - return n.children -} - -// Parent returns the parent of this node, or nil if this node is a root. -func (n *TreeToListNode) Parent() *TreeToListNode { - p, _ := n.parent.(*TreeToListNode) - return p -} - -// NodeAt returns the idx'th TreeToListNode of all the expanded nodes under -// this node treated as a flattened list. -// Index 0 represents the first child of n, index 1 may represent the the second -// child of n or the first grandchild of n, and so on. -func (n *TreeToListNode) NodeAt(idx int) *TreeToListNode { - for _, c := range n.children { - switch { - case idx == 0: - return c - case idx <= c.descendants: - return c.NodeAt(idx - 1) - default: - idx -= c.descendants + 1 - } - } - panic("Index out of bounds") -} - -// ItemAt returns the idx'th item of all the expanded nodes treated as a -// flattened list. -// Index 0 represents the first child of n, index 1 may represent the the second -// child of n or the first grandchild of n, and so on. -func (n *TreeToListNode) ItemAt(idx int) gxui.AdapterItem { - return n.NodeAt(idx).item -} - -// ItemIndex returns the index of item in the list of all the expanded nodes -// treated as a flattened list. -// Index 0 represents the first child of n, index 1 may represent the the second -// child of n or the first grandchild of n, and so on. -func (n *TreeToListNode) ItemIndex(item gxui.AdapterItem) int { - c := n.DirectItemIndex(item) - if c < 0 { - return c - } - base := 0 - for i := 0; i < c; i++ { - base += n.children[i].descendants + 1 - } - if n.children[c].item == item { - return base - } else { - return base + n.children[c].ItemIndex(item) + 1 - } -} - -// DirectItemIndex returns the immediate child index that wraps or indirectly -// contains item. If no children contain item, the function returns -1. -func (n *TreeToListNode) DirectItemIndex(item gxui.AdapterItem) int { - if !n.IsExpanded() { - return -1 - } - childIdx := n.container.ItemIndex(item) - if childIdx < 0 { - return -1 // Not found - } - if childIdx >= len(n.children) { - panic(fmt.Errorf( - "%T.ItemIndex(%v) returned out of bounds index %v. Acceptable range: [%d - %d]", - n.container, item, childIdx, 0, len(n.children)-1)) - } - return childIdx -} diff --git a/vendor/github.com/google/gxui/mixins/window.go b/vendor/github.com/google/gxui/mixins/window.go deleted file mode 100644 index 6d69932..0000000 --- a/vendor/github.com/google/gxui/mixins/window.go +++ /dev/null @@ -1,383 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mixins - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins/outer" - "github.com/google/gxui/mixins/parts" -) - -type WindowOuter interface { - gxui.Window - outer.Attachable - outer.IsVisibler - outer.LayoutChildren - outer.PaintChilder - outer.Painter - outer.Parenter - outer.Sized -} - -type Window struct { - parts.Attachable - parts.BackgroundBorderPainter - parts.Container - parts.Paddable - parts.PaintChildren - - driver gxui.Driver - outer WindowOuter - viewport gxui.Viewport - windowedSize math.Size - mouseController *gxui.MouseController - keyboardController *gxui.KeyboardController - focusController *gxui.FocusController - layoutPending bool - drawPending bool - updatePending bool - onClose gxui.Event // Raised by viewport - onResize gxui.Event // Raised by viewport - onMouseMove gxui.Event // Raised by viewport - onMouseEnter gxui.Event // Raised by viewport - onMouseExit gxui.Event // Raised by viewport - onMouseDown gxui.Event // Raised by viewport - onMouseUp gxui.Event // Raised by viewport - onMouseScroll gxui.Event // Raised by viewport - onKeyDown gxui.Event // Raised by viewport - onKeyUp gxui.Event // Raised by viewport - onKeyRepeat gxui.Event // Raised by viewport - onKeyStroke gxui.Event // Raised by viewport - - onClick gxui.Event // Raised by MouseController - onDoubleClick gxui.Event // Raised by MouseController - - viewportSubscriptions []gxui.EventSubscription -} - -func (w *Window) requestUpdate() { - if !w.updatePending { - w.updatePending = true - w.driver.Call(w.update) - } -} - -func (w *Window) update() { - if !w.Attached() { - // Window was detached between requestUpdate() and update() - w.updatePending = false - w.layoutPending = false - w.drawPending = false - return - } - w.updatePending = false - if w.layoutPending { - w.layoutPending = false - w.drawPending = true - w.outer.LayoutChildren() - } - if w.drawPending { - w.drawPending = false - w.Draw() - } -} - -func (w *Window) Init(outer WindowOuter, driver gxui.Driver, width, height int, title string) { - w.Attachable.Init(outer) - w.BackgroundBorderPainter.Init(outer) - w.Container.Init(outer) - w.Paddable.Init(outer) - w.PaintChildren.Init(outer) - w.outer = outer - w.driver = driver - - w.onClose = gxui.CreateEvent(func() {}) - w.onResize = gxui.CreateEvent(func() {}) - w.onMouseMove = gxui.CreateEvent(func(gxui.MouseEvent) {}) - w.onMouseEnter = gxui.CreateEvent(func(gxui.MouseEvent) {}) - w.onMouseExit = gxui.CreateEvent(func(gxui.MouseEvent) {}) - w.onMouseDown = gxui.CreateEvent(func(gxui.MouseEvent) {}) - w.onMouseUp = gxui.CreateEvent(func(gxui.MouseEvent) {}) - w.onMouseScroll = gxui.CreateEvent(func(gxui.MouseEvent) {}) - w.onKeyDown = gxui.CreateEvent(func(gxui.KeyboardEvent) {}) - w.onKeyUp = gxui.CreateEvent(func(gxui.KeyboardEvent) {}) - w.onKeyRepeat = gxui.CreateEvent(func(gxui.KeyboardEvent) {}) - w.onKeyStroke = gxui.CreateEvent(func(gxui.KeyStrokeEvent) {}) - - w.onClick = gxui.CreateEvent(func(gxui.MouseEvent) {}) - w.onDoubleClick = gxui.CreateEvent(func(gxui.MouseEvent) {}) - - w.focusController = gxui.CreateFocusController(outer) - w.mouseController = gxui.CreateMouseController(outer, w.focusController) - w.keyboardController = gxui.CreateKeyboardController(outer) - - w.onResize.Listen(func() { - w.outer.LayoutChildren() - w.Draw() - }) - - w.SetBorderPen(gxui.TransparentPen) - - w.setViewport(driver.CreateWindowedViewport(width, height, title)) - - // Window starts shown - w.Attach() - - // Interface compliance test - _ = gxui.Window(w) -} - -func (w *Window) Draw() gxui.Canvas { - if s := w.viewport.SizeDips(); s != math.ZeroSize { - c := w.driver.CreateCanvas(s) - w.outer.Paint(c) - c.Complete() - w.viewport.SetCanvas(c) - return c - } else { - return nil - } -} - -func (w *Window) Paint(c gxui.Canvas) { - w.PaintBackground(c, c.Size().Rect()) - w.PaintChildren.Paint(c) - w.PaintBorder(c, c.Size().Rect()) -} - -func (w *Window) LayoutChildren() { - s := w.Size().Contract(w.Padding()).Max(math.ZeroSize) - o := w.Padding().LT() - for _, c := range w.outer.Children() { - c.Layout(c.Control.DesiredSize(math.ZeroSize, s).Rect().Offset(o)) - } -} - -func (w *Window) Size() math.Size { - return w.viewport.SizeDips() -} - -func (w *Window) SetSize(size math.Size) { - w.viewport.SetSizeDips(size) -} - -func (w *Window) Parent() gxui.Parent { - return nil -} - -func (w *Window) Viewport() gxui.Viewport { - return w.viewport -} - -func (w *Window) Title() string { - return w.viewport.Title() -} - -func (w *Window) SetTitle(t string) { - w.viewport.SetTitle(t) -} - -func (w *Window) Scale() float32 { - return w.viewport.Scale() -} - -func (w *Window) SetScale(scale float32) { - w.viewport.SetScale(scale) -} - -func (w *Window) Position() math.Point { - return w.viewport.Position() -} - -func (w *Window) SetPosition(pos math.Point) { - w.viewport.SetPosition(pos) -} - -func (w *Window) Fullscreen() bool { - return w.viewport.Fullscreen() -} - -func (w *Window) SetFullscreen(fullscreen bool) { - title := w.viewport.Title() - if fullscreen != w.Fullscreen() { - old := w.viewport - if fullscreen { - w.windowedSize = old.SizeDips() - w.setViewport(w.driver.CreateFullscreenViewport(0, 0, title)) - } else { - width, height := w.windowedSize.WH() - w.setViewport(w.driver.CreateWindowedViewport(width, height, title)) - } - old.Close() - } -} - -func (w *Window) Show() { - w.Attach() - w.viewport.Show() -} - -func (w *Window) Hide() { - w.Detach() - w.viewport.Hide() -} - -func (w *Window) Close() { - w.Detach() - w.viewport.Close() -} - -func (w *Window) Focus() gxui.Focusable { - return w.focusController.Focus() -} - -func (w *Window) SetFocus(c gxui.Control) bool { - fc := w.focusController - if c == nil { - fc.SetFocus(nil) - return true - } - if f := fc.Focusable(c); f != nil { - fc.SetFocus(f) - return true - } - return false -} - -func (w *Window) IsVisible() bool { - return true -} - -func (w *Window) OnClose(f func()) gxui.EventSubscription { - return w.onClose.Listen(f) -} - -func (w *Window) OnResize(f func()) gxui.EventSubscription { - return w.onResize.Listen(f) -} - -func (w *Window) OnClick(f func(gxui.MouseEvent)) gxui.EventSubscription { - return w.onClick.Listen(f) -} - -func (w *Window) OnDoubleClick(f func(gxui.MouseEvent)) gxui.EventSubscription { - return w.onDoubleClick.Listen(f) -} - -func (w *Window) OnMouseMove(f func(gxui.MouseEvent)) gxui.EventSubscription { - return w.onMouseMove.Listen(func(ev gxui.MouseEvent) { - ev.Window = w - ev.WindowPoint = ev.Point - f(ev) - }) -} - -func (w *Window) OnMouseEnter(f func(gxui.MouseEvent)) gxui.EventSubscription { - return w.onMouseEnter.Listen(func(ev gxui.MouseEvent) { - ev.Window = w - ev.WindowPoint = ev.Point - f(ev) - }) -} - -func (w *Window) OnMouseExit(f func(gxui.MouseEvent)) gxui.EventSubscription { - return w.onMouseExit.Listen(func(ev gxui.MouseEvent) { - ev.Window = w - ev.WindowPoint = ev.Point - f(ev) - }) -} - -func (w *Window) OnMouseDown(f func(gxui.MouseEvent)) gxui.EventSubscription { - return w.onMouseDown.Listen(func(ev gxui.MouseEvent) { - ev.Window = w - ev.WindowPoint = ev.Point - f(ev) - }) -} - -func (w *Window) OnMouseUp(f func(gxui.MouseEvent)) gxui.EventSubscription { - return w.onMouseUp.Listen(func(ev gxui.MouseEvent) { - ev.Window = w - ev.WindowPoint = ev.Point - f(ev) - }) -} - -func (w *Window) OnMouseScroll(f func(gxui.MouseEvent)) gxui.EventSubscription { - return w.onMouseScroll.Listen(func(ev gxui.MouseEvent) { - ev.Window = w - ev.WindowPoint = ev.Point - f(ev) - }) -} - -func (w *Window) OnKeyDown(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return w.onKeyDown.Listen(f) -} - -func (w *Window) OnKeyUp(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return w.onKeyUp.Listen(f) -} - -func (w *Window) OnKeyRepeat(f func(gxui.KeyboardEvent)) gxui.EventSubscription { - return w.onKeyRepeat.Listen(f) -} - -func (w *Window) OnKeyStroke(f func(gxui.KeyStrokeEvent)) gxui.EventSubscription { - return w.onKeyStroke.Listen(f) -} - -func (w *Window) Relayout() { - w.layoutPending = true - w.requestUpdate() -} - -func (w *Window) Redraw() { - w.drawPending = true - w.requestUpdate() -} - -func (w *Window) Click(ev gxui.MouseEvent) { - w.onClick.Fire(ev) -} - -func (w *Window) DoubleClick(ev gxui.MouseEvent) { - w.onDoubleClick.Fire(ev) -} - -func (w *Window) KeyPress(ev gxui.KeyboardEvent) { - if ev.Key == gxui.KeyTab { - if ev.Modifier&gxui.ModShift != 0 { - w.focusController.FocusPrev() - } else { - w.focusController.FocusNext() - } - } -} -func (w *Window) KeyStroke(gxui.KeyStrokeEvent) {} - -func (w *Window) setViewport(v gxui.Viewport) { - for _, s := range w.viewportSubscriptions { - s.Unlisten() - } - w.viewport = v - w.viewportSubscriptions = []gxui.EventSubscription{ - v.OnClose(func() { w.onClose.Fire() }), - v.OnResize(func() { w.onResize.Fire() }), - v.OnMouseMove(func(ev gxui.MouseEvent) { w.onMouseMove.Fire(ev) }), - v.OnMouseEnter(func(ev gxui.MouseEvent) { w.onMouseEnter.Fire(ev) }), - v.OnMouseExit(func(ev gxui.MouseEvent) { w.onMouseExit.Fire(ev) }), - v.OnMouseDown(func(ev gxui.MouseEvent) { w.onMouseDown.Fire(ev) }), - v.OnMouseUp(func(ev gxui.MouseEvent) { w.onMouseUp.Fire(ev) }), - v.OnMouseScroll(func(ev gxui.MouseEvent) { w.onMouseScroll.Fire(ev) }), - v.OnKeyDown(func(ev gxui.KeyboardEvent) { w.onKeyDown.Fire(ev) }), - v.OnKeyUp(func(ev gxui.KeyboardEvent) { w.onKeyUp.Fire(ev) }), - v.OnKeyRepeat(func(ev gxui.KeyboardEvent) { w.onKeyRepeat.Fire(ev) }), - v.OnKeyStroke(func(ev gxui.KeyStrokeEvent) { w.onKeyStroke.Fire(ev) }), - } - w.Relayout() -} diff --git a/vendor/github.com/google/gxui/mouse_button.go b/vendor/github.com/google/gxui/mouse_button.go deleted file mode 100644 index 9edaa36..0000000 --- a/vendor/github.com/google/gxui/mouse_button.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type MouseButton int - -const ( - MouseButtonLeft MouseButton = iota - MouseButtonMiddle - MouseButtonRight -) diff --git a/vendor/github.com/google/gxui/mouse_controller.go b/vendor/github.com/google/gxui/mouse_controller.go deleted file mode 100644 index 27d24fc..0000000 --- a/vendor/github.com/google/gxui/mouse_controller.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "time" -) - -var doubleClickTime = time.Millisecond * 300 - -type MouseController struct { - window Window - focusController *FocusController - lastOver ControlPointList - lastDown map[MouseButton]ControlPointList - lastUpTime map[MouseButton]time.Time -} - -func CreateMouseController(w Window, focusController *FocusController) *MouseController { - c := &MouseController{ - window: w, - focusController: focusController, - lastDown: make(map[MouseButton]ControlPointList), - lastUpTime: make(map[MouseButton]time.Time), - } - w.OnMouseMove(c.mouseMove) - w.OnMouseEnter(c.mouseMove) - w.OnMouseExit(c.mouseMove) - w.OnMouseDown(c.mouseDown) - w.OnMouseUp(c.mouseUp) - w.OnMouseScroll(c.mouseScroll) - return c -} - -func (m *MouseController) updatePosition(ev MouseEvent) { - ValidateHierarchy(m.window) - - nowOver := TopControlsUnder(ev.Point, m.window) - - for _, cp := range m.lastOver { - if !nowOver.Contains(cp.C) { - e := ev - e.Point = cp.P - cp.C.MouseExit(e) - } - } - - for _, cp := range nowOver { - if !m.lastOver.Contains(cp.C) { - e := ev - e.Point = cp.P - cp.C.MouseEnter(e) - } - } - - m.lastOver = nowOver -} - -func (m *MouseController) mouseMove(ev MouseEvent) { - m.updatePosition(ev) - for _, cp := range m.lastOver { - e := ev - e.Point = cp.P - cp.C.MouseMove(e) - } -} - -func (m *MouseController) mouseDown(ev MouseEvent) { - m.updatePosition(ev) - - for _, cp := range m.lastOver { - e := ev - e.Point = cp.P - cp.C.MouseDown(e) - } - - m.lastDown[ev.Button] = m.lastOver -} - -func (m *MouseController) mouseUp(ev MouseEvent) { - m.updatePosition(ev) - - for _, cp := range m.lastDown[ev.Button] { - e := ev - e.Point = cp.P - cp.C.MouseUp(e) - } - - setFocusCount := m.focusController.SetFocusCount() - - dblClick := time.Since(m.lastUpTime[ev.Button]) < doubleClickTime - clickConsumed := false - for i := len(m.lastDown[ev.Button]) - 1; i >= 0; i-- { - cp := m.lastDown[ev.Button][i] - if p, found := m.lastOver.Find(cp.C); found { - ev.Point = p - if (dblClick && cp.C.DoubleClick(ev)) || (!dblClick && cp.C.Click(ev)) { - clickConsumed = true - break - } - } - } - - if !clickConsumed { - ev.Point = ev.WindowPoint - if dblClick { - m.window.DoubleClick(ev) - } else { - m.window.Click(ev) - } - } - - focusSet := setFocusCount != m.focusController.SetFocusCount() - if !focusSet { - for i := len(m.lastDown[ev.Button]) - 1; i >= 0; i-- { - cp := m.lastDown[ev.Button][i] - if m.lastOver.Contains(cp.C) && m.window.SetFocus(cp.C) { - focusSet = true - break - } - } - - if !focusSet { - m.window.SetFocus(nil) - } - } - - delete(m.lastDown, ev.Button) - m.lastUpTime[ev.Button] = time.Now() -} - -func (m *MouseController) mouseScroll(ev MouseEvent) { - m.updatePosition(ev) - - for i := len(m.lastOver) - 1; i >= 0; i-- { - cp := m.lastOver[i] - e := ev - e.Point = cp.P - cp.C.MouseScroll(e) - } -} diff --git a/vendor/github.com/google/gxui/mouse_event.go b/vendor/github.com/google/gxui/mouse_event.go deleted file mode 100644 index 64b0742..0000000 --- a/vendor/github.com/google/gxui/mouse_event.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" -) - -type MouseEvent struct { - Button MouseButton - State MouseState - Point math.Point // Local to the event receiver - WindowPoint math.Point - Window Window - ScrollX, ScrollY int - Modifier KeyboardModifier -} diff --git a/vendor/github.com/google/gxui/mouse_state.go b/vendor/github.com/google/gxui/mouse_state.go deleted file mode 100644 index 153fefa..0000000 --- a/vendor/github.com/google/gxui/mouse_state.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type MouseState int - -func (s MouseState) IsDown(b MouseButton) bool { - return s&(1<= from { - start = transform(start) - } - if end >= from { - end = transform(end) - } - interval.Merge(&res, TextSelection{start, end, s.caretAtStart}) - } - return res -} - -func (l TextSelectionList) TransformCarets(from int, transform func(i int) int) TextSelectionList { - res := TextSelectionList{} - for _, s := range l { - if s.caretAtStart && s.start >= from { - s.start = transform(s.start) - } else if s.end >= from { - s.end = transform(s.end) - } - if s.start > s.end { - tmp := s.start - s.start = s.end - s.end = tmp - s.caretAtStart = !s.caretAtStart - } - interval.Merge(&res, s) - } - return res -} - -func (l TextSelectionList) Len() int { - return len(l) -} - -func (l TextSelectionList) Cap() int { - return cap(l) -} - -func (l *TextSelectionList) SetLen(len int) { - *l = (*l)[:len] -} - -func (l *TextSelectionList) GrowTo(length, capacity int) { - old := *l - *l = make(TextSelectionList, length, capacity) - copy(*l, old) -} - -func (l TextSelectionList) Copy(to, from, count int) { - copy(l[to:to+count], l[from:from+count]) -} - -func (l TextSelectionList) GetInterval(index int) (start, end uint64) { - return l[index].Span() -} - -func (l TextSelectionList) SetInterval(index int, start, end uint64) { - l[index].start = int(start) - l[index].end = int(end) -} - -func (l TextSelectionList) MergeData(index int, i interval.Node) { - l[index].caretAtStart = i.(TextSelection).caretAtStart -} diff --git a/vendor/github.com/google/gxui/textbox.go b/vendor/github.com/google/gxui/textbox.go deleted file mode 100644 index 91c66b2..0000000 --- a/vendor/github.com/google/gxui/textbox.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" -) - -type TextBox interface { - Focusable - OnSelectionChanged(func()) EventSubscription - OnTextChanged(func([]TextBoxEdit)) EventSubscription - Padding() math.Spacing - SetPadding(math.Spacing) - Runes() []rune - Text() string - SetText(string) - Font() Font - SetFont(Font) - Multiline() bool - SetMultiline(bool) - DesiredWidth() int - SetDesiredWidth(desiredWidth int) - TextColor() Color - SetTextColor(Color) - Select(TextSelectionList) - SelectAll() - Carets() []int - RuneIndexAt(p math.Point) (idx int, found bool) - TextAt(s, e int) string - WordAt(runeIndex int) string - ScrollToLine(int) - ScrollToRune(int) - LineIndex(runeIndex int) int - LineStart(line int) int - LineEnd(line int) int -} diff --git a/vendor/github.com/google/gxui/textbox_controller.go b/vendor/github.com/google/gxui/textbox_controller.go deleted file mode 100644 index 5535f24..0000000 --- a/vendor/github.com/google/gxui/textbox_controller.go +++ /dev/null @@ -1,617 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/interval" - "github.com/google/gxui/math" - "sort" - "strings" - "unicode" -) - -type TextBoxEdit struct { - At int - Delta int -} - -type TextBoxController struct { - onSelectionChanged Event - onTextChanged Event - text []rune - lineStarts []int - lineEnds []int - selections TextSelectionList - locationHistory [][]int - locationHistoryIndex int - storeCaretLocationsNextEdit bool -} - -func CreateTextBoxController() *TextBoxController { - t := &TextBoxController{ - onSelectionChanged: CreateEvent(func() {}), - onTextChanged: CreateEvent(func([]TextBoxEdit) {}), - } - t.selections = TextSelectionList{TextSelection{}} - return t -} - -func (t *TextBoxController) textEdited(edits []TextBoxEdit) { - t.updateSelectionsForEdits(edits) - t.onTextChanged.Fire(edits) -} - -func (t *TextBoxController) updateSelectionsForEdits(edits []TextBoxEdit) { - min := 0 - max := len(t.text) - selections := TextSelectionList{} - for _, selection := range t.selections { - for _, e := range edits { - at := e.At - delta := e.Delta - if selection.start > at { - selection.start += delta - } - if selection.end >= at { - selection.end += delta - } - } - if selection.end < selection.start { - selection.end = selection.start - } - selection.start = math.Clamp(selection.start, min, max) - selection.end = math.Clamp(selection.end, min, max) - interval.Merge(&selections, selection) - } - t.selections = selections -} - -func (t *TextBoxController) setTextRunesNoEvent(text []rune) { - t.text = text - t.lineStarts = t.lineStarts[:0] - t.lineEnds = t.lineEnds[:0] - - t.lineStarts = append(t.lineStarts, 0) - for i, r := range text { - if r == '\n' { - t.lineEnds = append(t.lineEnds, i) - t.lineStarts = append(t.lineStarts, i+1) - } - } - t.lineEnds = append(t.lineEnds, len(text)) -} - -func (t *TextBoxController) maybeStoreCaretLocations() { - if t.storeCaretLocationsNextEdit { - t.StoreCaretLocations() - t.storeCaretLocationsNextEdit = false - } -} - -func (t *TextBoxController) StoreCaretLocations() { - if t.locationHistoryIndex < len(t.locationHistory) { - t.locationHistory = t.locationHistory[:t.locationHistoryIndex] - } - t.locationHistory = append(t.locationHistory, t.Carets()) - t.locationHistoryIndex = len(t.locationHistory) -} - -func (t *TextBoxController) OnSelectionChanged(f func()) EventSubscription { - return t.onSelectionChanged.Listen(f) -} - -func (t *TextBoxController) OnTextChanged(f func([]TextBoxEdit)) EventSubscription { - return t.onTextChanged.Listen(f) -} - -func (t *TextBoxController) SelectionCount() int { - return len(t.selections) -} - -func (t *TextBoxController) Selection(i int) TextSelection { - return t.selections[i] -} - -func (t *TextBoxController) Selections() TextSelectionList { - return append(TextSelectionList{}, t.selections...) -} - -func (t *TextBoxController) SelectionText(i int) string { - sel := t.selections[i] - runes := t.text[sel.start:sel.end] - return RuneArrayToString(runes) -} - -func (t *TextBoxController) SelectionLineText(i int) string { - sel := t.selections[i] - line := t.LineIndex(sel.start) - runes := t.text[t.LineStart(line):t.LineEnd(line)] - return RuneArrayToString(runes) -} - -func (t *TextBoxController) Caret(i int) int { - return t.selections[i].Caret() -} - -func (t *TextBoxController) Carets() []int { - l := make([]int, len(t.selections)) - for i, s := range t.selections { - l[i] = s.Caret() - } - return l -} - -func (t *TextBoxController) FirstCaret() int { - return t.Caret(0) -} - -func (t *TextBoxController) LastCaret() int { - return t.Caret(t.SelectionCount() - 1) -} - -func (t *TextBoxController) FirstSelection() TextSelection { - return t.Selection(0) -} - -func (t *TextBoxController) LastSelection() TextSelection { - return t.Selection(t.SelectionCount() - 1) -} - -func (t *TextBoxController) LineCount() int { - return len(t.lineStarts) -} - -func (t *TextBoxController) Line(i int) string { - return RuneArrayToString(t.LineRunes(i)) -} - -func (t *TextBoxController) LineRunes(i int) []rune { - s := t.LineStart(i) - e := t.LineEnd(i) - return t.text[s:e] -} - -func (t *TextBoxController) LineStart(i int) int { - if t.LineCount() == 0 { - return 0 - } - return t.lineStarts[i] -} - -func (t *TextBoxController) LineEnd(i int) int { - if t.LineCount() == 0 { - return 0 - } - return t.lineEnds[i] -} - -func (t *TextBoxController) LineIndent(i int) int { - s, e := t.LineStart(i), t.LineEnd(i) - l := e - s - for i := 0; i < l; i++ { - if !unicode.IsSpace(t.text[i+s]) { - return i - } - } - return l -} - -func (t *TextBoxController) LineIndex(p int) int { - return sort.Search(len(t.lineStarts), func(i int) bool { - return p <= t.lineEnds[i] - }) -} - -func (t *TextBoxController) Text() string { - return RuneArrayToString(t.text) -} - -func (t *TextBoxController) TextRange(s, e int) string { - return RuneArrayToString(t.text[s:e]) -} - -func (t *TextBoxController) TextRunes() []rune { - return t.text -} - -func (t *TextBoxController) SetText(str string) { - t.SetTextRunes(StringToRuneArray(str)) -} - -func (t *TextBoxController) SetTextRunes(text []rune) { - t.setTextRunesNoEvent(text) - t.textEdited([]TextBoxEdit{}) -} - -func (t *TextBoxController) SetTextEdits(text []rune, edits []TextBoxEdit) { - t.setTextRunesNoEvent(text) - t.textEdited(edits) -} - -func (t *TextBoxController) IndexFirst(i int) int { - return 0 -} - -func (t *TextBoxController) IndexLast(i int) int { - return len(t.text) -} - -func (t *TextBoxController) IndexLeft(i int) int { - return math.Max(i-1, 0) -} - -func (t *TextBoxController) IndexRight(i int) int { - return math.Min(i+1, len(t.text)) -} - -func (t *TextBoxController) IndexWordLeft(i int) int { - i-- - if i >= 0 { - wasInWord := t.RuneInWord(t.text[i]) - for i > 0 { - isInWord := t.RuneInWord(t.text[i-1]) - if isInWord != wasInWord { - return i - } - wasInWord = isInWord - i-- - } - } - return 0 -} - -func (t *TextBoxController) IndexWordRight(i int) int { - if i < len(t.text) { - wasInWord := t.RuneInWord(t.text[i]) - for i < len(t.text)-1 { - i++ - isInWord := t.RuneInWord(t.text[i]) - if isInWord != wasInWord { - return i - } - wasInWord = isInWord - } - } - return len(t.text) -} - -func (t *TextBoxController) IndexUp(i int) int { - l := t.LineIndex(i) - x := i - t.LineStart(l) - if l > 0 { - return math.Min(t.LineStart(l-1)+x, t.LineEnd(l-1)) - } else { - return 0 - } -} - -func (t *TextBoxController) IndexDown(i int) int { - l := t.LineIndex(i) - x := i - t.LineStart(l) - if l < t.LineCount()-1 { - return math.Min(t.LineStart(l+1)+x, t.LineEnd(l+1)) - } else { - return t.LineEnd(l) - } -} - -func (t *TextBoxController) IndexHome(i int) int { - l := t.LineIndex(i) - s := t.LineStart(l) - x := i - s - indent := t.LineIndent(l) - if x > indent { - return s + indent - } else { - return s - } -} - -func (t *TextBoxController) IndexEnd(i int) int { - return t.LineEnd(t.LineIndex(i)) -} - -type SelectionTransform func(int) int - -func (t *TextBoxController) ClearSelections() { - t.storeCaretLocationsNextEdit = true - t.SetCaret(t.Caret(0)) -} - -func (t *TextBoxController) SetCaret(c int) { - t.storeCaretLocationsNextEdit = true - t.selections = TextSelectionList{} - t.AddCaret(c) -} - -func (t *TextBoxController) AddCaret(c int) { - t.storeCaretLocationsNextEdit = true - t.AddSelection(TextSelection{c, c, false}) -} - -func (t *TextBoxController) AddSelection(s TextSelection) { - t.storeCaretLocationsNextEdit = true - interval.Merge(&t.selections, s) - t.onSelectionChanged.Fire() -} - -func (t *TextBoxController) SetSelection(s TextSelection) { - t.storeCaretLocationsNextEdit = true - t.selections = []TextSelection{s} - t.onSelectionChanged.Fire() -} - -func (t *TextBoxController) SetSelections(s TextSelectionList) { - t.storeCaretLocationsNextEdit = true - t.selections = s - if len(s) == 0 { - t.AddCaret(0) - } else { - t.onSelectionChanged.Fire() - } -} - -func (t *TextBoxController) SelectAll() { - t.storeCaretLocationsNextEdit = true - t.SetSelection(TextSelection{0, len(t.text), false}) -} - -func (t *TextBoxController) RestorePreviousSelections() { - if t.locationHistoryIndex == len(t.locationHistory) { - t.StoreCaretLocations() - t.locationHistoryIndex-- - } - if t.locationHistoryIndex > 0 { - t.locationHistoryIndex-- - locations := t.locationHistory[t.locationHistoryIndex] - t.selections = make(TextSelectionList, len(locations)) - for i, l := range locations { - t.selections[i] = TextSelection{l, l, false} - } - t.onSelectionChanged.Fire() - } -} - -func (t *TextBoxController) RestoreNextSelections() { - if t.locationHistoryIndex < len(t.locationHistory)-1 { - t.locationHistoryIndex++ - locations := t.locationHistory[t.locationHistoryIndex] - t.selections = make(TextSelectionList, len(locations)) - for i, l := range locations { - t.selections[i] = TextSelection{l, l, false} - } - t.onSelectionChanged.Fire() - } -} - -func (t *TextBoxController) AddCarets(transform SelectionTransform) { - t.storeCaretLocationsNextEdit = true - up := t.selections.Transform(0, transform) - for _, s := range up { - interval.Merge(&t.selections, s) - } - t.onSelectionChanged.Fire() -} - -func (t *TextBoxController) GrowSelections(transform SelectionTransform) { - t.storeCaretLocationsNextEdit = true - t.selections = t.selections.TransformCarets(0, transform) - t.onSelectionChanged.Fire() -} - -func (t *TextBoxController) MoveSelections(transform SelectionTransform) { - t.storeCaretLocationsNextEdit = true - t.selections = t.selections.Transform(0, transform) - t.onSelectionChanged.Fire() -} - -func (t *TextBoxController) AddCaretsUp() { t.AddCarets(t.IndexUp) } -func (t *TextBoxController) AddCaretsDown() { t.AddCarets(t.IndexDown) } -func (t *TextBoxController) SelectFirst() { t.GrowSelections(t.IndexFirst) } -func (t *TextBoxController) SelectLast() { t.GrowSelections(t.IndexLast) } -func (t *TextBoxController) SelectLeft() { t.GrowSelections(t.IndexLeft) } -func (t *TextBoxController) SelectRight() { t.GrowSelections(t.IndexRight) } -func (t *TextBoxController) SelectUp() { t.GrowSelections(t.IndexUp) } -func (t *TextBoxController) SelectDown() { t.GrowSelections(t.IndexDown) } -func (t *TextBoxController) SelectHome() { t.GrowSelections(t.IndexHome) } -func (t *TextBoxController) SelectEnd() { t.GrowSelections(t.IndexEnd) } -func (t *TextBoxController) SelectLeftByWord() { t.GrowSelections(t.IndexWordLeft) } -func (t *TextBoxController) SelectRightByWord() { t.GrowSelections(t.IndexWordRight) } -func (t *TextBoxController) MoveFirst() { t.MoveSelections(t.IndexFirst) } -func (t *TextBoxController) MoveLast() { t.MoveSelections(t.IndexLast) } -func (t *TextBoxController) MoveLeft() { t.MoveSelections(t.IndexLeft) } -func (t *TextBoxController) MoveRight() { t.MoveSelections(t.IndexRight) } -func (t *TextBoxController) MoveUp() { t.MoveSelections(t.IndexUp) } -func (t *TextBoxController) MoveDown() { t.MoveSelections(t.IndexDown) } -func (t *TextBoxController) MoveLeftByWord() { t.MoveSelections(t.IndexWordLeft) } -func (t *TextBoxController) MoveRightByWord() { t.MoveSelections(t.IndexWordRight) } -func (t *TextBoxController) MoveHome() { t.MoveSelections(t.IndexHome) } -func (t *TextBoxController) MoveEnd() { t.MoveSelections(t.IndexEnd) } - -func (t *TextBoxController) Delete() { - t.maybeStoreCaretLocations() - text := t.text - edits := []TextBoxEdit{} - for i := len(t.selections) - 1; i >= 0; i-- { - s := t.selections[i] - if s.start == s.end && s.end < len(t.text) { - copy(text[s.start:], text[s.start+1:]) - text = text[:len(text)-1] - edits = append(edits, TextBoxEdit{s.start, -1}) - } else { - copy(text[s.start:], text[s.end:]) - l := s.Length() - text = text[:len(text)-l] - edits = append(edits, TextBoxEdit{s.start, -l}) - } - t.selections[i] = TextSelection{s.end, s.end, false} - } - t.SetTextEdits(text, edits) -} - -func (t *TextBoxController) Backspace() { - t.maybeStoreCaretLocations() - text := t.text - edits := []TextBoxEdit{} - for i := len(t.selections) - 1; i >= 0; i-- { - s := t.selections[i] - if s.start == s.end && s.start > 0 { - copy(text[s.start-1:], text[s.start:]) - text = text[:len(text)-1] - edits = append(edits, TextBoxEdit{s.start - 1, -1}) - } else { - copy(text[s.start:], text[s.end:]) - l := s.Length() - text = text[:len(text)-l] - edits = append(edits, TextBoxEdit{s.start - 1, -l}) - } - t.selections[i] = TextSelection{s.end, s.end, false} - } - t.SetTextEdits(text, edits) -} - -func (t *TextBoxController) ReplaceAll(str string) { - t.Replace(func(TextSelection) string { return str }) -} - -func (t *TextBoxController) ReplaceAllRunes(str []rune) { - t.ReplaceRunes(func(TextSelection) []rune { return str }) -} - -func (t *TextBoxController) Replace(f func(sel TextSelection) string) { - t.ReplaceRunes(func(s TextSelection) []rune { return StringToRuneArray(f(s)) }) -} - -func (t *TextBoxController) ReplaceRunes(f func(sel TextSelection) []rune) { - t.maybeStoreCaretLocations() - text, edit, edits := t.text, TextBoxEdit{}, []TextBoxEdit{} - for i := len(t.selections) - 1; i >= 0; i-- { - s := t.selections[i] - text, edit = t.ReplaceAt(text, s.start, s.end, f(s)) - edits = append(edits, edit) - } - t.setTextRunesNoEvent(text) - t.textEdited(edits) -} - -func (t *TextBoxController) ReplaceAt(text []rune, s, e int, replacement []rune) ([]rune, TextBoxEdit) { - replacementLen := len(replacement) - delta := replacementLen - (e - s) - if delta > 0 { - text = append(text, make([]rune, delta)...) - } - copy(text[e+delta:], text[e:]) - copy(text[s:], replacement) - if delta < 0 { - text = text[:len(text)+delta] - } - return text, TextBoxEdit{s, delta} -} - -func (t *TextBoxController) ReplaceWithNewline() { - t.ReplaceAll("\n") - t.Deselect(false) -} - -func (t *TextBoxController) ReplaceWithNewlineKeepIndent() { - t.Replace(func(sel TextSelection) string { - s, _ := sel.Range() - indent := t.LineIndent(t.LineIndex(s)) - return "\n" + strings.Repeat(" ", indent) - }) - t.Deselect(false) -} - -func (t *TextBoxController) IndentSelection(tabWidth int) { - tab := make([]rune, tabWidth) - for i := range tab { - tab[i] = ' ' - } - text, edit, edits := t.text, TextBoxEdit{}, []TextBoxEdit{} - lastLine := -1 - for i := len(t.selections) - 1; i >= 0; i-- { - s := t.selections[i] - lis, lie := t.LineIndex(s.start), t.LineIndex(s.end) - if lastLine == lie { - lie-- - } - for l := lie; l >= lis; l-- { - ls := t.LineStart(l) - text, edit = t.ReplaceAt(text, ls, ls, tab) - edits = append(edits, edit) - } - lastLine = lis - } - t.SetTextEdits(text, edits) -} - -func (t *TextBoxController) UnindentSelection(tabWidth int) { - text, edit, edits := t.text, TextBoxEdit{}, []TextBoxEdit{} - lastLine := -1 - for i := len(t.selections) - 1; i >= 0; i-- { - s := t.selections[i] - lis, lie := t.LineIndex(s.start), t.LineIndex(s.end) - if lastLine == lie { - lie-- - } - for l := lie; l >= lis; l-- { - c := math.Min(t.LineIndent(l), tabWidth) - if c > 0 { - ls := t.LineStart(l) - text, edit = t.ReplaceAt(text, ls, ls+c, []rune{}) - edits = append(edits, edit) - } - } - lastLine = lis - } - t.SetTextEdits(text, edits) -} - -func (t *TextBoxController) RuneInWord(r rune) bool { - switch { - case unicode.IsLetter(r), unicode.IsNumber(r), r == '_': - return true - default: - return false - } -} - -func (t *TextBoxController) WordAt(runeIdx int) (s, e int) { - text := t.text - s, e = runeIdx, runeIdx - for s > 0 && t.RuneInWord(text[s-1]) { - s-- - } - for e < len(t.text) && t.RuneInWord(text[e]) { - e++ - } - return s, e -} - -func (t *TextBoxController) Deselect(moveCaretToStart bool) (deselected bool) { - deselected = false - for i, s := range t.selections { - if s.start == s.end { - continue - } - deselected = true - if moveCaretToStart { - s.end = s.start - } else { - s.start = s.end - } - t.selections[i] = s - } - if deselected { - t.onSelectionChanged.Fire() - } - return -} - -func (t *TextBoxController) LineAndRow(index int) (line, row int) { - line = t.LineIndex(index) - row = index - t.LineStart(line) - return -} diff --git a/vendor/github.com/google/gxui/texture.go b/vendor/github.com/google/gxui/texture.go deleted file mode 100644 index c6a9d02..0000000 --- a/vendor/github.com/google/gxui/texture.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "image" - - "github.com/google/gxui/math" -) - -type Texture interface { - Image() image.Image - Size() math.Size - SizePixels() math.Size - FlipY() bool - SetFlipY(bool) -} diff --git a/vendor/github.com/google/gxui/theme.go b/vendor/github.com/google/gxui/theme.go deleted file mode 100644 index dbf98b2..0000000 --- a/vendor/github.com/google/gxui/theme.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -type Theme interface { - Driver() Driver - DefaultFont() Font - SetDefaultFont(Font) - DefaultMonospaceFont() Font - SetDefaultMonospaceFont(Font) - CreateBubbleOverlay() BubbleOverlay - CreateButton() Button - CreateCodeEditor() CodeEditor - CreateDropDownList() DropDownList - CreateImage() Image - CreateLabel() Label - CreateLinearLayout() LinearLayout - CreateList() List - CreatePanelHolder() PanelHolder - CreateProgressBar() ProgressBar - CreateScrollBar() ScrollBar - CreateScrollLayout() ScrollLayout - CreateSplitterLayout() SplitterLayout - CreateTableLayout() TableLayout - CreateTextBox() TextBox - CreateTree() Tree - CreateWindow(width, height int, title string) Window -} diff --git a/vendor/github.com/google/gxui/themes/basic/bubble_overlay.go b/vendor/github.com/google/gxui/themes/basic/bubble_overlay.go deleted file mode 100644 index e4f12b9..0000000 --- a/vendor/github.com/google/gxui/themes/basic/bubble_overlay.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type BubbleOverlay struct { - mixins.BubbleOverlay - theme *Theme -} - -func CreateBubbleOverlay(theme *Theme) gxui.BubbleOverlay { - b := &BubbleOverlay{} - b.Init(b, theme) - b.SetMargin(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - b.SetPadding(math.Spacing{L: 5, T: 5, R: 5, B: 5}) - b.SetPen(theme.BubbleOverlayStyle.Pen) - b.SetBrush(theme.BubbleOverlayStyle.Brush) - b.theme = theme - return b -} diff --git a/vendor/github.com/google/gxui/themes/basic/button.go b/vendor/github.com/google/gxui/themes/basic/button.go deleted file mode 100644 index 23946ca..0000000 --- a/vendor/github.com/google/gxui/themes/basic/button.go +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type Button struct { - mixins.Button - theme *Theme -} - -func CreateButton(theme *Theme) gxui.Button { - b := &Button{} - b.Init(b, theme) - b.theme = theme - b.SetPadding(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - b.SetMargin(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - b.SetBackgroundBrush(b.theme.ButtonDefaultStyle.Brush) - b.SetBorderPen(b.theme.ButtonDefaultStyle.Pen) - b.OnMouseEnter(func(gxui.MouseEvent) { b.Redraw() }) - b.OnMouseExit(func(gxui.MouseEvent) { b.Redraw() }) - b.OnMouseDown(func(gxui.MouseEvent) { b.Redraw() }) - b.OnMouseUp(func(gxui.MouseEvent) { b.Redraw() }) - b.OnGainedFocus(b.Redraw) - b.OnLostFocus(b.Redraw) - return b -} - -// Button internal overrides -func (b *Button) Paint(c gxui.Canvas) { - pen := b.Button.BorderPen() - brush := b.Button.BackgroundBrush() - fontColor := b.theme.ButtonDefaultStyle.FontColor - - switch { - case b.IsMouseDown(gxui.MouseButtonLeft) && b.IsMouseOver(): - pen = b.theme.ButtonPressedStyle.Pen - brush = b.theme.ButtonPressedStyle.Brush - fontColor = b.theme.ButtonPressedStyle.FontColor - case b.IsMouseOver(): - pen = b.theme.ButtonOverStyle.Pen - brush = b.theme.ButtonOverStyle.Brush - fontColor = b.theme.ButtonOverStyle.FontColor - } - - if l := b.Label(); l != nil { - l.SetColor(fontColor) - } - - r := b.Size().Rect() - - c.DrawRoundedRect(r, 2, 2, 2, 2, gxui.TransparentPen, brush) - - b.PaintChildren.Paint(c) - - c.DrawRoundedRect(r, 2, 2, 2, 2, pen, gxui.TransparentBrush) - - if b.IsChecked() { - pen = b.theme.HighlightStyle.Pen - brush = b.theme.HighlightStyle.Brush - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, pen, brush) - } - - if b.HasFocus() { - pen = b.theme.FocusedStyle.Pen - brush = b.theme.FocusedStyle.Brush - c.DrawRoundedRect(r.ContractI(int(pen.Width)), 3.0, 3.0, 3.0, 3.0, pen, brush) - } -} diff --git a/vendor/github.com/google/gxui/themes/basic/code_editor.go b/vendor/github.com/google/gxui/themes/basic/code_editor.go deleted file mode 100644 index fb16c43..0000000 --- a/vendor/github.com/google/gxui/themes/basic/code_editor.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type CodeEditor struct { - mixins.CodeEditor - theme *Theme -} - -func CreateCodeEditor(theme *Theme) gxui.CodeEditor { - t := &CodeEditor{} - t.theme = theme - t.Init(t, theme.Driver(), theme, theme.DefaultMonospaceFont()) - t.SetTextColor(theme.TextBoxDefaultStyle.FontColor) - t.SetMargin(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - t.SetPadding(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - t.SetBorderPen(gxui.TransparentPen) - - return t -} - -// mixins.CodeEditor overrides -func (t *CodeEditor) Paint(c gxui.Canvas) { - t.CodeEditor.Paint(c) - - if t.HasFocus() { - r := t.Size().Rect() - c.DrawRoundedRect(r, 3, 3, 3, 3, t.theme.FocusedStyle.Pen, t.theme.FocusedStyle.Brush) - } -} - -func (t *CodeEditor) CreateSuggestionList() gxui.List { - l := t.theme.CreateList() - l.SetBackgroundBrush(t.theme.CodeSuggestionListStyle.Brush) - l.SetBorderPen(t.theme.CodeSuggestionListStyle.Pen) - return l -} diff --git a/vendor/github.com/google/gxui/themes/basic/colors.go b/vendor/github.com/google/gxui/themes/basic/colors.go deleted file mode 100644 index a23b61d..0000000 --- a/vendor/github.com/google/gxui/themes/basic/colors.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" -) - -var Blue30 = gxui.Color{R: 0.0, G: 0.0, B: 0.3, A: 1.0} diff --git a/vendor/github.com/google/gxui/themes/basic/drop_down_list.go b/vendor/github.com/google/gxui/themes/basic/drop_down_list.go deleted file mode 100644 index beb7f53..0000000 --- a/vendor/github.com/google/gxui/themes/basic/drop_down_list.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type DropDownList struct { - mixins.DropDownList - theme *Theme -} - -func CreateDropDownList(theme *Theme) gxui.DropDownList { - l := &DropDownList{} - l.Init(l, theme) - l.OnGainedFocus(l.Redraw) - l.OnLostFocus(l.Redraw) - l.List().OnAttach(l.Redraw) - l.List().OnDetach(l.Redraw) - l.OnMouseEnter(func(gxui.MouseEvent) { - l.SetBorderPen(theme.DropDownListOverStyle.Pen) - }) - l.OnMouseExit(func(gxui.MouseEvent) { - l.SetBorderPen(theme.DropDownListDefaultStyle.Pen) - }) - l.SetPadding(math.CreateSpacing(2)) - l.SetBorderPen(theme.DropDownListDefaultStyle.Pen) - l.SetBackgroundBrush(theme.DropDownListDefaultStyle.Brush) - l.theme = theme - return l -} - -// mixin.List overrides -func (l *DropDownList) Paint(c gxui.Canvas) { - l.DropDownList.Paint(c) - if l.HasFocus() || l.ListShowing() { - r := l.Size().Rect().ContractI(1) - c.DrawRoundedRect(r, 3.0, 3.0, 3.0, 3.0, l.theme.FocusedStyle.Pen, l.theme.FocusedStyle.Brush) - } -} - -func (l *DropDownList) DrawSelection(c gxui.Canvas, r math.Rect) { - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, l.theme.HighlightStyle.Pen, l.theme.HighlightStyle.Brush) -} diff --git a/vendor/github.com/google/gxui/themes/basic/image.go b/vendor/github.com/google/gxui/themes/basic/image.go deleted file mode 100644 index dc34f53..0000000 --- a/vendor/github.com/google/gxui/themes/basic/image.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins" -) - -func CreateImage(theme *Theme) gxui.Image { - i := &mixins.Image{} - i.Init(i, theme) - return i -} diff --git a/vendor/github.com/google/gxui/themes/basic/label.go b/vendor/github.com/google/gxui/themes/basic/label.go deleted file mode 100644 index c9d64ac..0000000 --- a/vendor/github.com/google/gxui/themes/basic/label.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -func CreateLabel(theme *Theme) gxui.Label { - l := &mixins.Label{} - l.Init(l, theme, theme.DefaultFont(), theme.LabelStyle.FontColor) - l.SetMargin(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - return l -} diff --git a/vendor/github.com/google/gxui/themes/basic/linear_layout.go b/vendor/github.com/google/gxui/themes/basic/linear_layout.go deleted file mode 100644 index 12ae5bb..0000000 --- a/vendor/github.com/google/gxui/themes/basic/linear_layout.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins" -) - -func CreateLinearLayout(theme *Theme) gxui.LinearLayout { - l := &mixins.LinearLayout{} - l.Init(l, theme) - return l -} diff --git a/vendor/github.com/google/gxui/themes/basic/list.go b/vendor/github.com/google/gxui/themes/basic/list.go deleted file mode 100644 index 7944d0d..0000000 --- a/vendor/github.com/google/gxui/themes/basic/list.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type List struct { - mixins.List - theme *Theme -} - -func CreateList(theme *Theme) gxui.List { - l := &List{} - l.Init(l, theme) - l.OnGainedFocus(l.Redraw) - l.OnLostFocus(l.Redraw) - l.SetPadding(math.CreateSpacing(2)) - l.SetBorderPen(gxui.TransparentPen) - l.theme = theme - return l -} - -// mixin.List overrides -func (l *List) Paint(c gxui.Canvas) { - l.List.Paint(c) - if l.HasFocus() { - r := l.Size().Rect().ContractI(1) - c.DrawRoundedRect(r, 3.0, 3.0, 3.0, 3.0, l.theme.FocusedStyle.Pen, l.theme.FocusedStyle.Brush) - } -} - -func (l *List) PaintSelection(c gxui.Canvas, r math.Rect) { - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, l.theme.HighlightStyle.Pen, l.theme.HighlightStyle.Brush) -} - -func (l *List) PaintMouseOverBackground(c gxui.Canvas, r math.Rect) { - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, gxui.TransparentPen, gxui.CreateBrush(gxui.Gray15)) -} diff --git a/vendor/github.com/google/gxui/themes/basic/panel_holder.go b/vendor/github.com/google/gxui/themes/basic/panel_holder.go deleted file mode 100644 index 1513461..0000000 --- a/vendor/github.com/google/gxui/themes/basic/panel_holder.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type PanelHolder struct { - mixins.PanelHolder - theme *Theme -} - -func CreatePanelHolder(theme *Theme) gxui.PanelHolder { - p := &PanelHolder{} - p.PanelHolder.Init(p, theme) - p.theme = theme - p.SetMargin(math.Spacing{L: 0, T: 2, R: 0, B: 0}) - return p -} - -func (p *PanelHolder) CreatePanelTab() mixins.PanelTab { - return CreatePanelTab(p.theme) -} - -func (p *PanelHolder) Paint(c gxui.Canvas) { - panel := p.SelectedPanel() - if panel != nil { - bounds := p.Children().Find(panel).Bounds() - c.DrawRoundedRect(bounds, 0.0, 0.0, 3.0, 3.0, p.theme.PanelBackgroundStyle.Pen, p.theme.PanelBackgroundStyle.Brush) - } - p.PanelHolder.Paint(c) -} diff --git a/vendor/github.com/google/gxui/themes/basic/panel_tab.go b/vendor/github.com/google/gxui/themes/basic/panel_tab.go deleted file mode 100644 index 2a20864..0000000 --- a/vendor/github.com/google/gxui/themes/basic/panel_tab.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type PanelTab struct { - mixins.Button - theme *Theme - active bool -} - -func CreatePanelTab(theme *Theme) mixins.PanelTab { - t := &PanelTab{} - t.Button.Init(t, theme) - t.theme = theme - t.SetPadding(math.Spacing{L: 5, T: 3, R: 5, B: 3}) - t.OnMouseEnter(func(gxui.MouseEvent) { t.Redraw() }) - t.OnMouseExit(func(gxui.MouseEvent) { t.Redraw() }) - t.OnMouseDown(func(gxui.MouseEvent) { t.Redraw() }) - t.OnMouseUp(func(gxui.MouseEvent) { t.Redraw() }) - t.OnGainedFocus(t.Redraw) - t.OnLostFocus(t.Redraw) - return t -} - -func (t *PanelTab) SetActive(active bool) { - t.active = active - t.Redraw() -} - -func (t *PanelTab) Paint(c gxui.Canvas) { - s := t.Size() - var style Style - switch { - case t.IsMouseDown(gxui.MouseButtonLeft) && t.IsMouseOver(): - style = t.theme.TabPressedStyle - case t.IsMouseOver(): - style = t.theme.TabOverStyle - default: - style = t.theme.TabDefaultStyle - } - if l := t.Label(); l != nil { - l.SetColor(style.FontColor) - } - - c.DrawRoundedRect(s.Rect(), 5.0, 5.0, 0.0, 0.0, style.Pen, style.Brush) - - if t.HasFocus() { - style = t.theme.FocusedStyle - r := math.CreateRect(1, 1, s.W-1, s.H-1) - c.DrawRoundedRect(r, 4.0, 4.0, 0.0, 0.0, style.Pen, style.Brush) - } - - if t.active { - style = t.theme.TabActiveHighlightStyle - r := math.CreateRect(1, s.H-1, s.W-1, s.H) - c.DrawRect(r, style.Brush) - } - - t.Button.Paint(c) -} diff --git a/vendor/github.com/google/gxui/themes/basic/progress_bar.go b/vendor/github.com/google/gxui/themes/basic/progress_bar.go deleted file mode 100644 index 11c625e..0000000 --- a/vendor/github.com/google/gxui/themes/basic/progress_bar.go +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "time" - - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type ProgressBar struct { - mixins.ProgressBar - theme *Theme - ticker *time.Ticker - chevrons gxui.Canvas - chevronWidth int - scroll int -} - -func CreateProgressBar(theme *Theme) gxui.ProgressBar { - b := &ProgressBar{} - b.Init(b, theme) - b.theme = theme - b.chevronWidth = 10 - - b.OnAttach(func() { - driver := theme.Driver() - b.ticker = time.NewTicker(time.Millisecond * 50) - go func() { - for _ = range b.ticker.C { - if !driver.Call(b.animationTick) { - return - } - } - }() - }) - - b.OnDetach(func() { - if b.chevrons != nil { - b.chevrons = nil - b.ticker.Stop() - b.ticker = nil - } - }) - b.SetBackgroundBrush(gxui.CreateBrush(gxui.Gray10)) - b.SetBorderPen(gxui.CreatePen(1, gxui.Gray40)) - return b -} - -func (b *ProgressBar) animationTick() { - if b.Attached() { - b.scroll = (b.scroll + 1) % (b.chevronWidth * 2) - b.Redraw() - } -} - -func (b *ProgressBar) SetSize(size math.Size) { - b.ProgressBar.SetSize(size) - - b.chevrons = nil - if size.Area() > 0 { - b.chevrons = b.theme.Driver().CreateCanvas(size) - b.chevronWidth = size.H / 2 - cw := b.chevronWidth - for x := -cw * 2; x < size.W; x += cw * 2 { - // x0 x2 - // | x1 | x3 - // | | - // A-----B - y0 - // \ \ - // \ \ - // F C - y1 - // / / - // / / - // E-----D - y2 - y0, y1, y2 := 0, size.H/2, size.H - x0, x1 := x, x+cw/2 - x2, x3 := x0+cw, x1+cw - var chevron = gxui.Polygon{ - /* A */ gxui.PolygonVertex{Position: math.Point{X: x0, Y: y0}}, - /* B */ gxui.PolygonVertex{Position: math.Point{X: x2, Y: y0}}, - /* C */ gxui.PolygonVertex{Position: math.Point{X: x3, Y: y1}}, - /* D */ gxui.PolygonVertex{Position: math.Point{X: x2, Y: y2}}, - /* E */ gxui.PolygonVertex{Position: math.Point{X: x0, Y: y2}}, - /* F */ gxui.PolygonVertex{Position: math.Point{X: x1, Y: y1}}, - } - b.chevrons.DrawPolygon(chevron, gxui.TransparentPen, gxui.CreateBrush(gxui.Gray30)) - } - b.chevrons.Complete() - } -} - -func (b *ProgressBar) PaintProgress(c gxui.Canvas, r math.Rect, frac float32) { - r.Max.X = math.Lerp(r.Min.X, r.Max.X, frac) - c.DrawRect(r, gxui.CreateBrush(gxui.Gray50)) - c.Push() - c.AddClip(r) - c.DrawCanvas(b.chevrons, math.Point{X: b.scroll}) - c.Pop() -} diff --git a/vendor/github.com/google/gxui/themes/basic/scroll_bar.go b/vendor/github.com/google/gxui/themes/basic/scroll_bar.go deleted file mode 100644 index 6a44285..0000000 --- a/vendor/github.com/google/gxui/themes/basic/scroll_bar.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins" -) - -type ScrollBar struct { - mixins.ScrollBar -} - -func CreateScrollBar(theme *Theme) gxui.ScrollBar { - s := &ScrollBar{} - s.ScrollBar.Init(s, theme) - s.SetBarBrush(theme.ScrollBarBarDefaultStyle.Brush) - s.SetBarPen(theme.ScrollBarBarDefaultStyle.Pen) - s.SetRailBrush(theme.ScrollBarRailDefaultStyle.Brush) - s.SetRailPen(theme.ScrollBarRailDefaultStyle.Pen) - updateColors := func() { - switch { - case s.IsMouseOver(): - s.SetBarBrush(theme.ScrollBarBarOverStyle.Brush) - s.SetBarPen(theme.ScrollBarBarOverStyle.Pen) - s.SetRailBrush(theme.ScrollBarRailOverStyle.Brush) - s.SetRailPen(theme.ScrollBarRailOverStyle.Pen) - default: - s.SetBarBrush(theme.ScrollBarBarDefaultStyle.Brush) - s.SetBarPen(theme.ScrollBarBarDefaultStyle.Pen) - s.SetRailBrush(theme.ScrollBarRailDefaultStyle.Brush) - s.SetRailPen(theme.ScrollBarRailDefaultStyle.Pen) - } - s.Redraw() - } - s.OnMouseEnter(func(gxui.MouseEvent) { updateColors() }) - s.OnMouseExit(func(gxui.MouseEvent) { updateColors() }) - return s -} diff --git a/vendor/github.com/google/gxui/themes/basic/scroll_layout.go b/vendor/github.com/google/gxui/themes/basic/scroll_layout.go deleted file mode 100644 index f118613..0000000 --- a/vendor/github.com/google/gxui/themes/basic/scroll_layout.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins" -) - -func CreateScrollLayout(theme *Theme) gxui.ScrollLayout { - l := &mixins.ScrollLayout{} - l.Init(l, theme) - return l -} diff --git a/vendor/github.com/google/gxui/themes/basic/splitter_layout.go b/vendor/github.com/google/gxui/themes/basic/splitter_layout.go deleted file mode 100644 index e23ee7c..0000000 --- a/vendor/github.com/google/gxui/themes/basic/splitter_layout.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type SplitterLayout struct { - mixins.SplitterLayout - theme *Theme -} - -func CreateSplitterLayout(theme *Theme) gxui.SplitterLayout { - l := &SplitterLayout{} - l.theme = theme - l.Init(l, theme) - return l -} - -// mixins.SplitterLayout overrides -func (l *SplitterLayout) CreateSplitterBar() gxui.Control { - b := &mixins.SplitterBar{} - b.Init(b, l.theme) - b.SetBackgroundColor(l.theme.SplitterBarDefaultStyle.Brush.Color) - b.SetForegroundColor(l.theme.SplitterBarDefaultStyle.Pen.Color) - b.OnSplitterDragged(func(wndPnt math.Point) { l.SplitterDragged(b, wndPnt) }) - updateForegroundColor := func() { - switch { - case b.IsDragging(): - b.SetForegroundColor(l.theme.HighlightStyle.Pen.Color) - case b.IsMouseOver(): - b.SetForegroundColor(l.theme.SplitterBarOverStyle.Pen.Color) - default: - b.SetForegroundColor(l.theme.SplitterBarDefaultStyle.Pen.Color) - } - b.Redraw() - } - b.OnDragStart(func(gxui.MouseEvent) { updateForegroundColor() }) - b.OnDragEnd(func(gxui.MouseEvent) { updateForegroundColor() }) - b.OnDragStart(func(gxui.MouseEvent) { updateForegroundColor() }) - b.OnMouseEnter(func(gxui.MouseEvent) { updateForegroundColor() }) - b.OnMouseExit(func(gxui.MouseEvent) { updateForegroundColor() }) - return b -} diff --git a/vendor/github.com/google/gxui/themes/basic/style.go b/vendor/github.com/google/gxui/themes/basic/style.go deleted file mode 100644 index e086c4a..0000000 --- a/vendor/github.com/google/gxui/themes/basic/style.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" -) - -type Style struct { - FontColor gxui.Color - Brush gxui.Brush - Pen gxui.Pen -} - -func CreateStyle(fontColor, brushColor, penColor gxui.Color, penWidth float32) Style { - return Style{ - FontColor: fontColor, - Pen: gxui.CreatePen(penWidth, penColor), - Brush: gxui.CreateBrush(brushColor), - } -} diff --git a/vendor/github.com/google/gxui/themes/basic/table_layout.go b/vendor/github.com/google/gxui/themes/basic/table_layout.go deleted file mode 100644 index d86838a..0000000 --- a/vendor/github.com/google/gxui/themes/basic/table_layout.go +++ /dev/null @@ -1,12 +0,0 @@ -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins" -) - -func CreateTableLayout(theme *Theme) gxui.TableLayout { - l := &mixins.TableLayout{} - l.Init(l, theme) - return l -} diff --git a/vendor/github.com/google/gxui/themes/basic/textbox.go b/vendor/github.com/google/gxui/themes/basic/textbox.go deleted file mode 100644 index 22f25b7..0000000 --- a/vendor/github.com/google/gxui/themes/basic/textbox.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type TextBox struct { - mixins.TextBox - theme *Theme -} - -func CreateTextBox(theme *Theme) gxui.TextBox { - t := &TextBox{} - t.Init(t, theme.Driver(), theme, theme.DefaultFont()) - t.SetTextColor(theme.TextBoxDefaultStyle.FontColor) - t.SetMargin(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - t.SetPadding(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - t.SetBackgroundBrush(theme.TextBoxDefaultStyle.Brush) - t.SetBorderPen(theme.TextBoxDefaultStyle.Pen) - t.OnMouseEnter(func(gxui.MouseEvent) { - t.SetBackgroundBrush(theme.TextBoxOverStyle.Brush) - t.SetBorderPen(theme.TextBoxOverStyle.Pen) - }) - t.OnMouseExit(func(gxui.MouseEvent) { - t.SetBackgroundBrush(theme.TextBoxDefaultStyle.Brush) - t.SetBorderPen(theme.TextBoxDefaultStyle.Pen) - }) - - t.theme = theme - - return t -} - -// mixins.TextBox overrides -func (t *TextBox) Paint(c gxui.Canvas) { - t.TextBox.Paint(c) - - if t.HasFocus() { - r := t.Size().Rect() - s := t.theme.FocusedStyle - c.DrawRoundedRect(r, 3, 3, 3, 3, s.Pen, s.Brush) - } -} diff --git a/vendor/github.com/google/gxui/themes/basic/theme.go b/vendor/github.com/google/gxui/themes/basic/theme.go deleted file mode 100644 index 5d49624..0000000 --- a/vendor/github.com/google/gxui/themes/basic/theme.go +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" -) - -type Theme struct { - DriverInfo gxui.Driver - DefaultFontInfo gxui.Font - DefaultMonospaceFontInfo gxui.Font - - WindowBackground gxui.Color - - BubbleOverlayStyle Style - ButtonDefaultStyle Style - ButtonOverStyle Style - ButtonPressedStyle Style - CodeSuggestionListStyle Style - DropDownListDefaultStyle Style - DropDownListOverStyle Style - FocusedStyle Style - HighlightStyle Style - LabelStyle Style - PanelBackgroundStyle Style - ScrollBarBarDefaultStyle Style - ScrollBarBarOverStyle Style - ScrollBarRailDefaultStyle Style - ScrollBarRailOverStyle Style - SplitterBarDefaultStyle Style - SplitterBarOverStyle Style - TabActiveHighlightStyle Style - TabDefaultStyle Style - TabOverStyle Style - TabPressedStyle Style - TextBoxDefaultStyle Style - TextBoxOverStyle Style -} - -// gxui.Theme compliance -func (t *Theme) Driver() gxui.Driver { - return t.DriverInfo -} - -func (t *Theme) DefaultFont() gxui.Font { - return t.DefaultFontInfo -} - -func (t *Theme) SetDefaultFont(f gxui.Font) { - t.DefaultFontInfo = f -} - -func (t *Theme) DefaultMonospaceFont() gxui.Font { - return t.DefaultMonospaceFontInfo -} - -func (t *Theme) SetDefaultMonospaceFont(f gxui.Font) { - t.DefaultMonospaceFontInfo = f -} - -func (t *Theme) CreateBubbleOverlay() gxui.BubbleOverlay { - return CreateBubbleOverlay(t) -} - -func (t *Theme) CreateButton() gxui.Button { - return CreateButton(t) -} - -func (t *Theme) CreateCodeEditor() gxui.CodeEditor { - return CreateCodeEditor(t) -} - -func (t *Theme) CreateDropDownList() gxui.DropDownList { - return CreateDropDownList(t) -} - -func (t *Theme) CreateImage() gxui.Image { - return CreateImage(t) -} - -func (t *Theme) CreateLabel() gxui.Label { - return CreateLabel(t) -} - -func (t *Theme) CreateLinearLayout() gxui.LinearLayout { - return CreateLinearLayout(t) -} - -func (t *Theme) CreateList() gxui.List { - return CreateList(t) -} - -func (t *Theme) CreatePanelHolder() gxui.PanelHolder { - return CreatePanelHolder(t) -} - -func (t *Theme) CreateProgressBar() gxui.ProgressBar { - return CreateProgressBar(t) -} - -func (t *Theme) CreateScrollBar() gxui.ScrollBar { - return CreateScrollBar(t) -} - -func (t *Theme) CreateScrollLayout() gxui.ScrollLayout { - return CreateScrollLayout(t) -} - -func (t *Theme) CreateSplitterLayout() gxui.SplitterLayout { - return CreateSplitterLayout(t) -} - -func (t *Theme) CreateTableLayout() gxui.TableLayout { - return CreateTableLayout(t) -} - -func (t *Theme) CreateTextBox() gxui.TextBox { - return CreateTextBox(t) -} - -func (t *Theme) CreateTree() gxui.Tree { - return CreateTree(t) -} - -func (t *Theme) CreateWindow(width, height int, title string) gxui.Window { - return CreateWindow(t, width, height, title) -} diff --git a/vendor/github.com/google/gxui/themes/basic/tree.go b/vendor/github.com/google/gxui/themes/basic/tree.go deleted file mode 100644 index bddaac7..0000000 --- a/vendor/github.com/google/gxui/themes/basic/tree.go +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/math" - "github.com/google/gxui/mixins" -) - -type Tree struct { - mixins.Tree - theme *Theme -} - -var expandedPoly = gxui.Polygon{ - gxui.PolygonVertex{Position: math.Point{X: 2, Y: 3}}, - gxui.PolygonVertex{Position: math.Point{X: 8, Y: 3}}, - gxui.PolygonVertex{Position: math.Point{X: 5, Y: 8}}, -} - -var collapsedPoly = gxui.Polygon{ - gxui.PolygonVertex{Position: math.Point{X: 3, Y: 2}}, - gxui.PolygonVertex{Position: math.Point{X: 8, Y: 5}}, - gxui.PolygonVertex{Position: math.Point{X: 3, Y: 8}}, -} - -func CreateTree(theme *Theme) gxui.Tree { - t := &Tree{} - t.Init(t, theme) - t.SetPadding(math.Spacing{L: 3, T: 3, R: 3, B: 3}) - t.SetBorderPen(gxui.TransparentPen) - t.theme = theme - t.SetControlCreator(treeControlCreator{}) - - return t -} - -// mixins.Tree overrides -func (t *Tree) Paint(c gxui.Canvas) { - r := t.Size().Rect() - - t.Tree.Paint(c) - - if t.HasFocus() { - s := t.theme.FocusedStyle - c.DrawRoundedRect(r, 3, 3, 3, 3, s.Pen, s.Brush) - } -} - -func (t *Tree) PaintMouseOverBackground(c gxui.Canvas, r math.Rect) { - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, gxui.TransparentPen, gxui.CreateBrush(gxui.Gray15)) -} - -// mixins.List overrides -func (l *Tree) PaintSelection(c gxui.Canvas, r math.Rect) { - s := l.theme.HighlightStyle - c.DrawRoundedRect(r, 2.0, 2.0, 2.0, 2.0, s.Pen, s.Brush) -} - -type treeControlCreator struct{} - -func (treeControlCreator) Create(theme gxui.Theme, control gxui.Control, node *mixins.TreeToListNode) gxui.Control { - img := theme.CreateImage() - imgSize := math.Size{W: 10, H: 10} - - ll := theme.CreateLinearLayout() - ll.SetDirection(gxui.LeftToRight) - - btn := theme.CreateButton() - btn.SetBackgroundBrush(gxui.TransparentBrush) - btn.SetBorderPen(gxui.CreatePen(1, gxui.Gray30)) - btn.SetMargin(math.Spacing{L: 1, R: 1, T: 1, B: 1}) - btn.OnClick(func(ev gxui.MouseEvent) { - if ev.Button == gxui.MouseButtonLeft { - node.ToggleExpanded() - } - }) - btn.AddChild(img) - - update := func() { - expanded := node.IsExpanded() - canvas := theme.Driver().CreateCanvas(imgSize) - btn.SetVisible(!node.IsLeaf()) - switch { - case !btn.IsMouseDown(gxui.MouseButtonLeft) && expanded: - canvas.DrawPolygon(expandedPoly, gxui.TransparentPen, gxui.CreateBrush(gxui.Gray70)) - case !btn.IsMouseDown(gxui.MouseButtonLeft) && !expanded: - canvas.DrawPolygon(collapsedPoly, gxui.TransparentPen, gxui.CreateBrush(gxui.Gray70)) - case expanded: - canvas.DrawPolygon(expandedPoly, gxui.TransparentPen, gxui.CreateBrush(gxui.Gray30)) - case !expanded: - canvas.DrawPolygon(collapsedPoly, gxui.TransparentPen, gxui.CreateBrush(gxui.Gray30)) - } - canvas.Complete() - img.SetCanvas(canvas) - } - btn.OnMouseDown(func(gxui.MouseEvent) { update() }) - btn.OnMouseUp(func(gxui.MouseEvent) { update() }) - update() - - gxui.WhileAttached(btn, node.OnChange, update) - - ll.AddChild(btn) - ll.AddChild(control) - ll.SetPadding(math.Spacing{L: 16 * node.Depth()}) - return ll -} - -func (treeControlCreator) Size(theme gxui.Theme, treeControlSize math.Size) math.Size { - return treeControlSize -} diff --git a/vendor/github.com/google/gxui/themes/basic/window.go b/vendor/github.com/google/gxui/themes/basic/window.go deleted file mode 100644 index c383944..0000000 --- a/vendor/github.com/google/gxui/themes/basic/window.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package basic - -import ( - "github.com/google/gxui" - "github.com/google/gxui/mixins" -) - -type Window struct { - mixins.Window -} - -func CreateWindow(theme *Theme, width, height int, title string) gxui.Window { - w := &Window{} - w.Window.Init(w, theme.Driver(), width, height, title) - w.SetBackgroundBrush(gxui.CreateBrush(theme.WindowBackground)) - return w -} diff --git a/vendor/github.com/google/gxui/themes/dark/theme.go b/vendor/github.com/google/gxui/themes/dark/theme.go deleted file mode 100644 index 2707aba..0000000 --- a/vendor/github.com/google/gxui/themes/dark/theme.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package dark - -import ( - "fmt" - - "github.com/google/gxui" - "github.com/google/gxui/gxfont" - "github.com/google/gxui/themes/basic" -) - -func CreateTheme(driver gxui.Driver) gxui.Theme { - defaultFont, err := driver.CreateFont(gxfont.Default, 12) - if err == nil { - defaultFont.LoadGlyphs(32, 126) - } else { - fmt.Printf("Warning: Failed to load default font - %v\n", err) - } - - defaultMonospaceFont, err := driver.CreateFont(gxfont.Monospace, 12) - if err == nil { - defaultFont.LoadGlyphs(32, 126) - } else { - fmt.Printf("Warning: Failed to load default monospace font - %v\n", err) - } - - scrollBarRailDefaultBg := gxui.Black - scrollBarRailDefaultBg.A = 0.7 - - scrollBarRailOverBg := gxui.Gray20 - scrollBarRailOverBg.A = 0.7 - - neonBlue := gxui.ColorFromHex(0xFF5C8CFF) - focus := gxui.ColorFromHex(0xA0C4D6FF) - - return &basic.Theme{ - DriverInfo: driver, - DefaultFontInfo: defaultFont, - DefaultMonospaceFontInfo: defaultMonospaceFont, - WindowBackground: gxui.Black, - - // fontColor brushColor penColor - BubbleOverlayStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray20, gxui.Gray40, 1.0), - ButtonDefaultStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray10, gxui.Gray20, 1.0), - ButtonOverStyle: basic.CreateStyle(gxui.Gray90, gxui.Gray15, gxui.Gray50, 1.0), - ButtonPressedStyle: basic.CreateStyle(gxui.Gray20, gxui.Gray70, gxui.Gray30, 1.0), - CodeSuggestionListStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray20, gxui.Gray10, 1.0), - DropDownListDefaultStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray10, gxui.Gray20, 1.0), - DropDownListOverStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray15, gxui.Gray50, 1.0), - FocusedStyle: basic.CreateStyle(gxui.Gray80, gxui.Transparent, focus, 1.0), - HighlightStyle: basic.CreateStyle(gxui.Gray80, gxui.Transparent, neonBlue, 2.0), - LabelStyle: basic.CreateStyle(gxui.Gray80, gxui.Transparent, gxui.Transparent, 0.0), - PanelBackgroundStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray10, gxui.Gray15, 1.0), - ScrollBarBarDefaultStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray30, gxui.Gray40, 1.0), - ScrollBarBarOverStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray50, gxui.Gray60, 1.0), - ScrollBarRailDefaultStyle: basic.CreateStyle(gxui.Gray80, scrollBarRailDefaultBg, gxui.Transparent, 1.0), - ScrollBarRailOverStyle: basic.CreateStyle(gxui.Gray80, scrollBarRailOverBg, gxui.Gray20, 1.0), - SplitterBarDefaultStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray10, gxui.Gray10, 1.0), - SplitterBarOverStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray10, gxui.Gray50, 1.0), - TabActiveHighlightStyle: basic.CreateStyle(gxui.Gray90, neonBlue, neonBlue, 0.0), - TabDefaultStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray30, gxui.Gray40, 1.0), - TabOverStyle: basic.CreateStyle(gxui.Gray90, gxui.Gray30, gxui.Gray50, 1.0), - TabPressedStyle: basic.CreateStyle(gxui.Gray20, gxui.Gray70, gxui.Gray30, 1.0), - TextBoxDefaultStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray10, gxui.Gray20, 1.0), - TextBoxOverStyle: basic.CreateStyle(gxui.Gray80, gxui.Gray10, gxui.Gray50, 1.0), - } -} diff --git a/vendor/github.com/google/gxui/themes/light/theme.go b/vendor/github.com/google/gxui/themes/light/theme.go deleted file mode 100644 index b50b0ce..0000000 --- a/vendor/github.com/google/gxui/themes/light/theme.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package light - -import ( - "fmt" - - "github.com/google/gxui" - "github.com/google/gxui/gxfont" - "github.com/google/gxui/themes/basic" -) - -func CreateTheme(driver gxui.Driver) gxui.Theme { - defaultFont, err := driver.CreateFont(gxfont.Default, 12) - if err == nil { - defaultFont.LoadGlyphs(32, 126) - } else { - fmt.Printf("Warning: Failed to load default font - %v\n", err) - } - - defaultMonospaceFont, err := driver.CreateFont(gxfont.Monospace, 12) - if err == nil { - defaultFont.LoadGlyphs(32, 126) - } else { - fmt.Printf("Warning: Failed to load default monospace font - %v\n", err) - } - - scrollBarRailDefaultBg := gxui.Black - scrollBarRailDefaultBg.A = 0.7 - - scrollBarRailOverBg := gxui.Gray20 - scrollBarRailOverBg.A = 0.7 - - neonBlue := gxui.ColorFromHex(0xFF5C8CFF) - focus := gxui.ColorFromHex(0xFFC4D6FF) - - return &basic.Theme{ - DriverInfo: driver, - DefaultFontInfo: defaultFont, - DefaultMonospaceFontInfo: defaultMonospaceFont, - WindowBackground: gxui.White, - - // fontColor brushColor penColor - BubbleOverlayStyle: basic.CreateStyle(gxui.Gray40, gxui.Gray20, gxui.Gray40, 1.0), - ButtonDefaultStyle: basic.CreateStyle(gxui.Gray40, gxui.White, gxui.Gray40, 1.0), - ButtonOverStyle: basic.CreateStyle(gxui.Gray40, gxui.Gray90, gxui.Gray40, 1.0), - ButtonPressedStyle: basic.CreateStyle(gxui.Gray20, gxui.Gray70, gxui.Gray30, 1.0), - CodeSuggestionListStyle: basic.CreateStyle(gxui.Gray40, gxui.Gray20, gxui.Gray10, 1.0), - DropDownListDefaultStyle: basic.CreateStyle(gxui.Gray40, gxui.White, gxui.Gray20, 1.0), - DropDownListOverStyle: basic.CreateStyle(gxui.Gray40, gxui.Gray90, gxui.Gray50, 1.0), - FocusedStyle: basic.CreateStyle(gxui.Gray20, gxui.Transparent, focus, 1.0), - HighlightStyle: basic.CreateStyle(gxui.Gray40, gxui.Transparent, neonBlue, 2.0), - LabelStyle: basic.CreateStyle(gxui.Gray40, gxui.Transparent, gxui.Transparent, 0.0), - PanelBackgroundStyle: basic.CreateStyle(gxui.Gray40, gxui.White, gxui.Gray15, 1.0), - ScrollBarBarDefaultStyle: basic.CreateStyle(gxui.Gray40, gxui.Gray30, gxui.Gray40, 1.0), - ScrollBarBarOverStyle: basic.CreateStyle(gxui.Gray40, gxui.Gray50, gxui.Gray60, 1.0), - ScrollBarRailDefaultStyle: basic.CreateStyle(gxui.Gray40, scrollBarRailDefaultBg, gxui.Transparent, 1.0), - ScrollBarRailOverStyle: basic.CreateStyle(gxui.Gray40, scrollBarRailOverBg, gxui.Gray20, 1.0), - SplitterBarDefaultStyle: basic.CreateStyle(gxui.Gray40, gxui.Gray80, gxui.Gray40, 1.0), - SplitterBarOverStyle: basic.CreateStyle(gxui.Gray40, gxui.Gray80, gxui.Gray50, 1.0), - TabActiveHighlightStyle: basic.CreateStyle(gxui.Gray30, neonBlue, neonBlue, 0.0), - TabDefaultStyle: basic.CreateStyle(gxui.Gray40, gxui.White, gxui.Gray40, 1.0), - TabOverStyle: basic.CreateStyle(gxui.Gray30, gxui.Gray90, gxui.Gray50, 1.0), - TabPressedStyle: basic.CreateStyle(gxui.Gray20, gxui.Gray70, gxui.Gray30, 1.0), - TextBoxDefaultStyle: basic.CreateStyle(gxui.Gray40, gxui.White, gxui.Gray20, 1.0), - TextBoxOverStyle: basic.CreateStyle(gxui.Gray40, gxui.White, gxui.Gray50, 1.0), - } -} diff --git a/vendor/github.com/google/gxui/tooltip_controller.go b/vendor/github.com/google/gxui/tooltip_controller.go deleted file mode 100644 index eda4c35..0000000 --- a/vendor/github.com/google/gxui/tooltip_controller.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" - "time" -) - -type ToolTipCreator func(math.Point) Control - -type toolTipTracker struct { - creator ToolTipCreator - control Control - onEnterES EventSubscription - onExitES EventSubscription - onMoveES EventSubscription - lastPosition math.Point -} - -type ToolTipController struct { - driver Driver - timer *time.Timer - bubbleOverlay BubbleOverlay - trackers []*toolTipTracker - showing *toolTipTracker -} - -func (c *ToolTipController) beginTimer(tracker *toolTipTracker, timeout time.Duration) { - if c.timer != nil { - c.timer.Stop() - c.timer = nil - } - if timeout > 0 { - c.timer = time.AfterFunc(timeout, func() { - c.driver.Call(func() { c.showToolTipForTracker(tracker) }) - }) - } else { - c.showToolTipForTracker(tracker) - } -} - -func (c *ToolTipController) showToolTipForTracker(tracker *toolTipTracker) { - toolTip := tracker.creator(tracker.lastPosition) - if toolTip != nil { - at := TransformCoordinate(tracker.lastPosition, tracker.control, c.bubbleOverlay) - c.ShowToolTip(toolTip, at) - c.showing = tracker - } else { - c.hideToolTipForTracker(tracker) - } -} - -func (c *ToolTipController) hideToolTipForTracker(tracker *toolTipTracker) { - if c.showing == tracker { - c.bubbleOverlay.Hide() - c.showing = nil - } -} - -func CreateToolTipController(bubbleOverlay BubbleOverlay, driver Driver) *ToolTipController { - return &ToolTipController{ - driver: driver, - bubbleOverlay: bubbleOverlay, - } -} - -func (c *ToolTipController) AddToolTip(control Control, delaySeconds float32, creator ToolTipCreator) { - tracker := &toolTipTracker{ - control: control, - creator: creator, - } - duration := time.Duration(delaySeconds * float32(time.Second)) - bind := func() { - tracker.onEnterES = control.OnMouseEnter(func(ev MouseEvent) { - tracker.lastPosition = ev.Point - c.beginTimer(tracker, duration) - }) - tracker.onExitES = control.OnMouseExit(func(ev MouseEvent) { - if c.timer != nil { - c.timer.Stop() - c.timer = nil - } - c.hideToolTipForTracker(tracker) - }) - tracker.onMoveES = control.OnMouseMove(func(ev MouseEvent) { - tracker.lastPosition = ev.Point - c.beginTimer(tracker, duration) - }) - } - control.OnAttach(bind) - control.OnDetach(func() { - if c.timer != nil { - c.timer.Stop() - c.timer = nil - } - tracker.onEnterES.Unlisten() - tracker.onExitES.Unlisten() - tracker.onMoveES.Unlisten() - }) - if control.Attached() { - bind() - } -} - -func (c *ToolTipController) ShowToolTip(toolTip Control, at math.Point) { - c.bubbleOverlay.Show(toolTip, at) -} diff --git a/vendor/github.com/google/gxui/tree.go b/vendor/github.com/google/gxui/tree.go deleted file mode 100644 index 30e815f..0000000 --- a/vendor/github.com/google/gxui/tree.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import "github.com/google/gxui/math" - -// Tree is the interface of all controls that visualize a hierarchical tree -// structure of items. -type Tree interface { - Focusable - - // SetAdapter binds the specified TreeAdapter to this Tree control, replacing - // any previously bound adapter. - SetAdapter(TreeAdapter) - - // TreeAdapter returns the currently bound adapter. - Adapter() TreeAdapter - - // Show makes the specified item visible, expanding the tree if necessary. - Show(AdapterItem) - - // ExpandAll expands all tree nodes. - ExpandAll() - - // CollapseAll collapses all tree nodes. - CollapseAll() - - // Selected returns the currently selected item. - Selected() AdapterItem - - // Select makes the specified item selected. The tree will not automatically - // expand to the newly selected item. If the Tree does not contain the - // specified item, then Select returns false and the previous selection - // remains unaltered. - Select(AdapterItem) bool - - // OnSelectionChanged registers the function f to be called when the selection - // changes. - OnSelectionChanged(f func(AdapterItem)) EventSubscription -} - -// TreeNodeContainer is the interface used by nodes that can hold sub-nodes in the tree. -type TreeNodeContainer interface { - // Count returns the number of immediate child nodes. - Count() int - - // Node returns the i'th child TreeNode. - NodeAt(i int) TreeNode - - // ItemIndex returns the index of the child equal to item, or the index of the - // child that indirectly contains item, or if the item is not found under this - // node, -1. - ItemIndex(item AdapterItem) int -} - -// TreeNode is the interface used by nodes in the tree. -type TreeNode interface { - TreeNodeContainer - - // Item returns the AdapterItem this node. - // It is important for the TreeNode to return consistent AdapterItems for - // the same data, so that selections can be persisted, or re-ordering - // animations can be played when the dataset changes. - // The AdapterItem returned must be equality-unique across the entire Adapter. - Item() AdapterItem - - // Create returns a Control visualizing this node. - Create(theme Theme) Control -} - -// TreeAdapter is an interface used to visualize a set of hierarchical items. -// Users of the TreeAdapter should presume the data is unchanged until the -// OnDataChanged or OnDataReplaced events are fired. -type TreeAdapter interface { - TreeNodeContainer - - // Size returns the size that each of the item's controls will be displayed - // at for the given theme. - Size(Theme) math.Size - - // OnDataChanged registers f to be called when there is a partial change in - // the items of the adapter. Scroll positions and selections should be - // preserved if possible. - // If recreateControls is true then each of the visible controls should be - // recreated by re-calling Create(). - OnDataChanged(f func(recreateControls bool)) EventSubscription - - // OnDataReplaced registers f to be called when there is a complete - // replacement of items in the adapter. - OnDataReplaced(f func()) EventSubscription -} diff --git a/vendor/github.com/google/gxui/utils.go b/vendor/github.com/google/gxui/utils.go deleted file mode 100644 index 165ca83..0000000 --- a/vendor/github.com/google/gxui/utils.go +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "bytes" - "fmt" - "unicode/utf8" - - "github.com/google/gxui/math" -) - -type ParentPoint struct { - C Parent - P math.Point -} - -type ControlPoint struct { - C Control - P math.Point -} - -type ControlPointList []ControlPoint - -func (l ControlPointList) Contains(c Control) bool { - _, found := l.Find(c) - return found -} - -func (l ControlPointList) Find(c Control) (math.Point, bool) { - for _, i := range l { - if i.C == c { - return i.P, true - } - } - return math.Point{}, false -} - -func ValidateHierarchy(p Parent) { - for _, c := range p.Children() { - if p != c.Control.Parent() { - panic(fmt.Errorf("Child's parent is not as expected.\nChild: %s\nExpected parent: %s", - Path(c.Control), Path(p))) - } - if cp, ok := c.Control.(Parent); ok { - ValidateHierarchy(cp) - } - } -} - -func CommonAncestor(a, b Control) Parent { - seen := make(map[Parent]bool) - if c, _ := a.(Parent); c != nil { - seen[c] = true - } - for a != nil { - p := a.Parent() - seen[p] = true - a, _ = p.(Control) - } - if c, _ := b.(Parent); c != nil { - if seen[c] { - return c - } - } - for b != nil { - p := b.Parent() - if seen[p] { - return p - } - b, _ = p.(Control) - } - return nil -} - -func TopControlsUnder(p math.Point, c Parent) ControlPointList { - children := c.Children() - for i := len(children) - 1; i >= 0; i-- { - child := children[i] - cp := p.Sub(child.Offset) - if child.Control.ContainsPoint(cp) { - l := ControlPointList{ControlPoint{child.Control, cp}} - if cc, ok := child.Control.(Parent); ok { - l = append(l, TopControlsUnder(cp, cc)...) - } - return l - } - } - return ControlPointList{} -} - -func ControlsUnder(p math.Point, c Parent) ControlPointList { - toVisit := []ParentPoint{ParentPoint{c, p}} - l := ControlPointList{} - for len(toVisit) > 0 { - c = toVisit[0].C - p = toVisit[0].P - toVisit = toVisit[1:] - for _, child := range c.Children() { - cp := p.Sub(child.Offset) - if child.Control.ContainsPoint(cp) { - l = append(l, ControlPoint{child.Control, cp}) - if cc, ok := child.Control.(Parent); ok { - toVisit = append(toVisit, ParentPoint{cc, cp}) - } - } - } - } - return l -} - -func WindowToChild(coord math.Point, to Control) math.Point { - c := to - for { - p := c.Parent() - if p == nil { - panic("Control's parent was nil") - } - child := p.Children().Find(c) - if child == nil { - Dump(p) - panic(fmt.Errorf("Control's parent (%p %T) did not contain control (%p %T).", &p, p, &c, c)) - } - coord = coord.Sub(child.Offset) - if _, ok := p.(Window); ok { - return coord - } - c = p.(Control) - } -} - -func ChildToParent(coord math.Point, from Control, to Parent) math.Point { - c := from - for { - p := c.Parent() - if p == nil { - panic(fmt.Errorf("Control detached: %s", Path(c))) - } - child := p.Children().Find(c) - if child == nil { - Dump(p) - panic(fmt.Errorf("Control's parent (%p %T) did not contain control (%p %T).", &p, p, &c, c)) - } - coord = coord.Add(child.Offset) - if p == to { - return coord - } - - if control, ok := p.(Control); ok { - c = control - } else { - Dump(p) - panic(fmt.Errorf("ChildToParent (%p %T) -> (%p %T) reached non-control parent (%p %T).", - &from, from, &to, to, &p, p)) - } - } -} - -func ParentToChild(coord math.Point, from Parent, to Control) math.Point { - return coord.Sub(ChildToParent(math.ZeroPoint, to, from)) -} - -func TransformCoordinate(coord math.Point, from, to Control) math.Point { - if from == to { - return coord - } - - ancestor := CommonAncestor(from, to) - if ancestor == nil { - panic(fmt.Errorf("No common ancestor between %s and %s", Path(from), Path(to))) - } - - if parent, ok := ancestor.(Control); !ok || parent != from { - coord = ChildToParent(coord, from, ancestor) - } - if parent, ok := ancestor.(Control); !ok || parent != to { - coord = ParentToChild(coord, ancestor, to) - } - return coord -} - -// FindControl performs a depth-first search of the controls starting from root, -// calling test with each visited control. If test returns true then the search -// is stopped and FindControl returns the Control passed to test. If no call to -// test returns true then FindControl returns nil. -func FindControl(root Parent, test func(Control) (found bool)) Control { - if c, ok := root.(Control); ok && test(c) { - return c - } - - for _, child := range root.Children() { - if test(child.Control) { - return child.Control - } - if parent, ok := child.Control.(Parent); ok { - if c := FindControl(parent, test); c != nil { - return c - } - } - } - return nil -} - -func WindowContaining(c Control) Window { - for { - p := c.Parent() - if p == nil { - panic("Control's parent was nil") - } - if window, ok := p.(Window); ok { - return window - } - c = p.(Control) - } -} - -func SetFocus(focusable Focusable) { - wnd := WindowContaining(focusable) - wnd.SetFocus(focusable) -} - -func StringToRuneArray(str string) []rune { - return bytes.Runes([]byte(str)) -} - -func RuneArrayToString(arr []rune) string { - tmp := make([]byte, 8) - enc := make([]byte, 0, len(arr)) - offset := 0 - for _, r := range arr { - size := utf8.EncodeRune(tmp, r) - enc = append(enc, tmp[:size]...) - offset += size - } - return string(enc) -} diff --git a/vendor/github.com/google/gxui/viewport.go b/vendor/github.com/google/gxui/viewport.go deleted file mode 100644 index 3e262db..0000000 --- a/vendor/github.com/google/gxui/viewport.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" -) - -type Viewport interface { - // SizeDips returns the size of the viewport in device-independent pixels. - // The ratio of pixels to DIPs is based on the screen density and scale - // adjustments made with the SetScale method. - SizeDips() math.Size - - // SetSizeDips sets the size of the viewport in device-independent pixels. - // The ratio of pixels to DIPs is based on the screen density and scale - // adjustments made with the SetScale method. - SetSizeDips(math.Size) - - // SizePixels returns the size of the viewport in pixels. - SizePixels() math.Size - - // Scale returns the display scaling for this viewport. - // A scale of 1 is unscaled, 2 is twice the regular scaling. - Scale() float32 - - // SetScale alters the display scaling for this viewport. - // A scale of 1 is unscaled, 2 is twice the regular scaling. - SetScale(float32) - - // Fullscreen returns true if the viewport was created full-screen. - Fullscreen() bool - - // Title returns the title of the window. - // This is usually the text displayed at the top of the window. - Title() string - - // SetTitle changes the title of the window. - SetTitle(string) - - // Position returns position of the window. - Position() math.Point - - // SetPosition changes position of the window. - SetPosition(math.Point) - - // Show makes the window visible. - Show() - - // Hide makes the window invisible. - Hide() - - // Close destroys the window. - // Once the window is closed, no further calls should be made to it. - Close() - - // SetCanvas changes the displayed content of the viewport to the specified - // Canvas. As canvases are immutable once completed, every visual update of a - // viewport will require a call to SetCanvas. - SetCanvas(Canvas) - - // OnClose subscribes f to be called when the viewport closes. - OnClose(f func()) EventSubscription - - // OnResize subscribes f to be called whenever the viewport changes size. - OnResize(f func()) EventSubscription - - // OnMouseMove subscribes f to be called whenever the mouse cursor moves over - // the viewport. - OnMouseMove(f func(MouseEvent)) EventSubscription - - // OnMouseEnter subscribes f to be called whenever the mouse cursor enters the - // viewport. - OnMouseEnter(f func(MouseEvent)) EventSubscription - - // OnMouseEnter subscribes f to be called whenever the mouse cursor leaves the - // viewport. - OnMouseExit(f func(MouseEvent)) EventSubscription - - // OnMouseDown subscribes f to be called whenever a mouse button is pressed - // while the cursor is inside the viewport. - OnMouseDown(f func(MouseEvent)) EventSubscription - - // OnMouseUp subscribes f to be called whenever a mouse button is released - // while the cursor is inside the viewport. - OnMouseUp(f func(MouseEvent)) EventSubscription - - // OnMouseScroll subscribes f to be called whenever the mouse scroll wheel - // turns while the cursor is inside the viewport. - OnMouseScroll(f func(MouseEvent)) EventSubscription - - // OnKeyDown subscribes f to be called whenever a keyboard key is pressed - // while the viewport has focus. - OnKeyDown(f func(KeyboardEvent)) EventSubscription - - // OnKeyUp subscribes f to be called whenever a keyboard key is released - // while the viewport has focus. - OnKeyUp(f func(KeyboardEvent)) EventSubscription - - // OnKeyRepeat subscribes f to be called whenever a keyboard key-repeat event - // is raised while the viewport has focus. - OnKeyRepeat(f func(KeyboardEvent)) EventSubscription - - // OnKeyStroke subscribes f to be called whenever a keyboard key-stroke event - // is raised while the viewport has focus. - OnKeyStroke(f func(KeyStrokeEvent)) EventSubscription -} diff --git a/vendor/github.com/google/gxui/while_attached.go b/vendor/github.com/google/gxui/while_attached.go deleted file mode 100644 index add1884..0000000 --- a/vendor/github.com/google/gxui/while_attached.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "fmt" - "reflect" -) - -// WhileAttached binds the function callback to event for the duration of c -// being attached. -// event can either be: -// • A event of the signature: event(callback) -// • A function of the signature: func(callback) EventSubscription -func WhileAttached(c Control, event, callback interface{}) { - if err := verifyWhileAttachedSignature(event, callback); err != nil { - panic(err) - } - var s EventSubscription - bind := func() { - if e, ok := event.(Event); ok { - s = e.Listen(callback) - } else { - params := []reflect.Value{reflect.ValueOf(callback)} - res := reflect.ValueOf(event).Call(params)[0] - s = res.Interface().(EventSubscription) - } - } - if c.Attached() { - bind() - } - c.OnAttach(bind) - c.OnDetach(func() { s.Unlisten() }) -} - -func verifyWhileAttachedSignature(event, callback interface{}) error { - if _, ok := event.(Event); ok { - return nil // Leave validation up to Event - } - e, c := reflect.TypeOf(event), reflect.TypeOf(callback) - if e.Kind() != reflect.Func { - return fmt.Errorf("event must be of type Event or func, got type %T", event) - } - if c.Kind() != reflect.Func { - return fmt.Errorf("callback must be of type func, got type %T", callback) - } - if c := e.NumIn(); c != 1 { - return fmt.Errorf("event as func must only take 1 parameter, got %d", c) - } - if got := e.In(0); got != c { - return fmt.Errorf("event as func must only take 1 parameter of type callback, got type %s, callback type: %s", - got, c) - } - if c := e.NumOut(); c != 1 { - return fmt.Errorf("event as func must only return 1 value, got %d", c) - } - if got, expected := e.Out(0), reflect.TypeOf((*EventSubscription)(nil)).Elem(); got != expected { - return fmt.Errorf("event as func must only return 1 value of type %s, got type %s", - expected, got) - } - return nil -} diff --git a/vendor/github.com/google/gxui/window.go b/vendor/github.com/google/gxui/window.go deleted file mode 100644 index 7056bc2..0000000 --- a/vendor/github.com/google/gxui/window.go +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gxui - -import ( - "github.com/google/gxui/math" -) - -type Window interface { - Container - - // Title returns the title of the window. - // This is usually the text displayed at the top of the window. - Title() string - - // SetTitle changes the title of the window. - SetTitle(string) - - // Scale returns the display scaling for this window. - // A scale of 1 is unscaled, 2 is twice the regular scaling. - Scale() float32 - - // SetScale alters the display scaling for this window. - // A scale of 1 is unscaled, 2 is twice the regular scaling. - SetScale(float32) - - // Position returns position of the window. - Position() math.Point - - // SetPosition changes position of the window. - SetPosition(math.Point) - - // Fullscreen returns true if the window is currently full-screen. - Fullscreen() bool - - // SetFullscreen makes the window either full-screen or windowed. - SetFullscreen(bool) - - // Show makes the window visible. - Show() - - // Hide makes the window invisible. - Hide() - - // Close destroys the window. - // Once the window is closed, no further calls should be made to it. - Close() - - // Focus returns the control currently with focus. - Focus() Focusable - - // SetFocus gives the specified control Focus, returning true on success or - // false if the control cannot be given focus. - SetFocus(Control) bool - - // BackgroundBrush returns the brush used to draw the window background. - BackgroundBrush() Brush - - // SetBackgroundBrush sets the brush used to draw the window background. - SetBackgroundBrush(Brush) - - // BorderPen returns the pen used to draw the window border. - BorderPen() Pen - - // SetBorderPen sets the pen used to draw the window border. - SetBorderPen(Pen) - - Click(MouseEvent) - DoubleClick(MouseEvent) - KeyPress(KeyboardEvent) - KeyStroke(KeyStrokeEvent) - - // Events - OnClose(func()) EventSubscription - OnResize(func()) EventSubscription - OnClick(func(MouseEvent)) EventSubscription - OnDoubleClick(func(MouseEvent)) EventSubscription - OnMouseMove(func(MouseEvent)) EventSubscription - OnMouseEnter(func(MouseEvent)) EventSubscription - OnMouseExit(func(MouseEvent)) EventSubscription - OnMouseDown(func(MouseEvent)) EventSubscription - OnMouseUp(func(MouseEvent)) EventSubscription - OnMouseScroll(func(MouseEvent)) EventSubscription - OnKeyDown(func(KeyboardEvent)) EventSubscription - OnKeyUp(func(KeyboardEvent)) EventSubscription - OnKeyRepeat(func(KeyboardEvent)) EventSubscription - OnKeyStroke(func(KeyStrokeEvent)) EventSubscription -} diff --git a/vendor/github.com/gopherjs/gopherjs/LICENSE b/vendor/github.com/gopherjs/gopherjs/LICENSE deleted file mode 100644 index d496fef..0000000 --- a/vendor/github.com/gopherjs/gopherjs/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2013 Richard Musiol. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/gopherjs/gopherjs/js/js.go b/vendor/github.com/gopherjs/gopherjs/js/js.go deleted file mode 100644 index 3fbf1d8..0000000 --- a/vendor/github.com/gopherjs/gopherjs/js/js.go +++ /dev/null @@ -1,168 +0,0 @@ -// Package js provides functions for interacting with native JavaScript APIs. Calls to these functions are treated specially by GopherJS and translated directly to their corresponding JavaScript syntax. -// -// Use MakeWrapper to expose methods to JavaScript. When passing values directly, the following type conversions are performed: -// -// | Go type | JavaScript type | Conversions back to interface{} | -// | --------------------- | --------------------- | ------------------------------- | -// | bool | Boolean | bool | -// | integers and floats | Number | float64 | -// | string | String | string | -// | []int8 | Int8Array | []int8 | -// | []int16 | Int16Array | []int16 | -// | []int32, []int | Int32Array | []int | -// | []uint8 | Uint8Array | []uint8 | -// | []uint16 | Uint16Array | []uint16 | -// | []uint32, []uint | Uint32Array | []uint | -// | []float32 | Float32Array | []float32 | -// | []float64 | Float64Array | []float64 | -// | all other slices | Array | []interface{} | -// | arrays | see slice type | see slice type | -// | functions | Function | func(...interface{}) *js.Object | -// | time.Time | Date | time.Time | -// | - | instanceof Node | *js.Object | -// | maps, structs | instanceof Object | map[string]interface{} | -// -// Additionally, for a struct containing a *js.Object field, only the content of the field will be passed to JavaScript and vice versa. -package js - -// Object is a container for a native JavaScript object. Calls to its methods are treated specially by GopherJS and translated directly to their JavaScript syntax. A nil pointer to Object is equal to JavaScript's "null". Object can not be used as a map key. -type Object struct{ object *Object } - -// Get returns the object's property with the given key. -func (o *Object) Get(key string) *Object { return o.object.Get(key) } - -// Set assigns the value to the object's property with the given key. -func (o *Object) Set(key string, value interface{}) { o.object.Set(key, value) } - -// Delete removes the object's property with the given key. -func (o *Object) Delete(key string) { o.object.Delete(key) } - -// Length returns the object's "length" property, converted to int. -func (o *Object) Length() int { return o.object.Length() } - -// Index returns the i'th element of an array. -func (o *Object) Index(i int) *Object { return o.object.Index(i) } - -// SetIndex sets the i'th element of an array. -func (o *Object) SetIndex(i int, value interface{}) { o.object.SetIndex(i, value) } - -// Call calls the object's method with the given name. -func (o *Object) Call(name string, args ...interface{}) *Object { return o.object.Call(name, args...) } - -// Invoke calls the object itself. This will fail if it is not a function. -func (o *Object) Invoke(args ...interface{}) *Object { return o.object.Invoke(args...) } - -// New creates a new instance of this type object. This will fail if it not a function (constructor). -func (o *Object) New(args ...interface{}) *Object { return o.object.New(args...) } - -// Bool returns the object converted to bool according to JavaScript type conversions. -func (o *Object) Bool() bool { return o.object.Bool() } - -// String returns the object converted to string according to JavaScript type conversions. -func (o *Object) String() string { return o.object.String() } - -// Int returns the object converted to int according to JavaScript type conversions (parseInt). -func (o *Object) Int() int { return o.object.Int() } - -// Int64 returns the object converted to int64 according to JavaScript type conversions (parseInt). -func (o *Object) Int64() int64 { return o.object.Int64() } - -// Uint64 returns the object converted to uint64 according to JavaScript type conversions (parseInt). -func (o *Object) Uint64() uint64 { return o.object.Uint64() } - -// Float returns the object converted to float64 according to JavaScript type conversions (parseFloat). -func (o *Object) Float() float64 { return o.object.Float() } - -// Interface returns the object converted to interface{}. See table in package comment for details. -func (o *Object) Interface() interface{} { return o.object.Interface() } - -// Unsafe returns the object as an uintptr, which can be converted via unsafe.Pointer. Not intended for public use. -func (o *Object) Unsafe() uintptr { return o.object.Unsafe() } - -// Error encapsulates JavaScript errors. Those are turned into a Go panic and may be recovered, giving an *Error that holds the JavaScript error object. -type Error struct { - *Object -} - -// Error returns the message of the encapsulated JavaScript error object. -func (err *Error) Error() string { - return "JavaScript error: " + err.Get("message").String() -} - -// Stack returns the stack property of the encapsulated JavaScript error object. -func (err *Error) Stack() string { - return err.Get("stack").String() -} - -// Global gives JavaScript's global object ("window" for browsers and "GLOBAL" for Node.js). -var Global *Object - -// Module gives the value of the "module" variable set by Node.js. Hint: Set a module export with 'js.Module.Get("exports").Set("exportName", ...)'. -var Module *Object - -// Undefined gives the JavaScript value "undefined". -var Undefined *Object - -// Debugger gets compiled to JavaScript's "debugger;" statement. -func Debugger() {} - -// InternalObject returns the internal JavaScript object that represents i. Not intended for public use. -func InternalObject(i interface{}) *Object { - return nil -} - -// MakeFunc wraps a function and gives access to the values of JavaScript's "this" and "arguments" keywords. -func MakeFunc(fn func(this *Object, arguments []*Object) interface{}) *Object { - return Global.Call("$makeFunc", InternalObject(fn)) -} - -// Keys returns the keys of the given JavaScript object. -func Keys(o *Object) []string { - if o == nil || o == Undefined { - return nil - } - a := Global.Get("Object").Call("keys", o) - s := make([]string, a.Length()) - for i := 0; i < a.Length(); i++ { - s[i] = a.Index(i).String() - } - return s -} - -// MakeWrapper creates a JavaScript object which has wrappers for the exported methods of i. Use explicit getter and setter methods to expose struct fields to JavaScript. -func MakeWrapper(i interface{}) *Object { - v := InternalObject(i) - o := Global.Get("Object").New() - o.Set("__internal_object__", v) - methods := v.Get("constructor").Get("methods") - for i := 0; i < methods.Length(); i++ { - m := methods.Index(i) - if m.Get("pkg").String() != "" { // not exported - continue - } - o.Set(m.Get("name").String(), func(args ...*Object) *Object { - return Global.Call("$externalizeFunction", v.Get(m.Get("prop").String()), m.Get("typ"), true).Call("apply", v, args) - }) - } - return o -} - -// NewArrayBuffer creates a JavaScript ArrayBuffer from a byte slice. -func NewArrayBuffer(b []byte) *Object { - slice := InternalObject(b) - offset := slice.Get("$offset").Int() - length := slice.Get("$length").Int() - return slice.Get("$array").Get("buffer").Call("slice", offset, offset+length) -} - -// M is a simple map type. It is intended as a shorthand for JavaScript objects (before conversion). -type M map[string]interface{} - -// S is a simple slice type. It is intended as a shorthand for JavaScript arrays (before conversion). -type S []interface{} - -func init() { - // avoid dead code elimination - e := Error{} - _ = e -} diff --git a/vendor/github.com/goxjs/gl/.travis.yml b/vendor/github.com/goxjs/gl/.travis.yml deleted file mode 100644 index a5818bb..0000000 --- a/vendor/github.com/goxjs/gl/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -sudo: false -addons: - apt_packages: - - libgles2-mesa-dev -language: go -go: - - 1.x - - master -matrix: - allow_failures: - - go: master - fast_finish: true -install: - - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). -before_script: - - export DISPLAY=:99.0 - - sh -e /etc/init.d/xvfb start - - sleep 3 # Give xvfb some time to start. -script: - - go get -t -v ./... - - diff -u <(echo -n) <(gofmt -d -s .) - - go tool vet . - - go test -v -race ./... diff --git a/vendor/github.com/goxjs/gl/LICENSE b/vendor/github.com/goxjs/gl/LICENSE deleted file mode 100644 index 6a66aea..0000000 --- a/vendor/github.com/goxjs/gl/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/goxjs/gl/README.md b/vendor/github.com/goxjs/gl/README.md deleted file mode 100644 index fb12b7b..0000000 --- a/vendor/github.com/goxjs/gl/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# gl [![Build Status](https://travis-ci.org/goxjs/gl.svg?branch=master)](https://travis-ci.org/goxjs/gl) [![GoDoc](https://godoc.org/github.com/goxjs/gl?status.svg)](https://godoc.org/github.com/goxjs/gl) - -Package gl is a Go cross-platform binding for OpenGL, with an OpenGL ES 2-like API. - -It supports: - -- **macOS**, **Linux** and **Windows** via OpenGL 2.1 backend, - -- **iOS** and **Android** via OpenGL ES 2.0 backend, - -- **Modern Browsers** (desktop and mobile) via WebGL 1.0 backend. - -This is a fork of golang.org/x/mobile/gl package with [CL 8793](https://go-review.googlesource.com/8793) -merged in and Windows support added. This package is fully functional, but may eventually become superceded by -the new x/mobile/gl plan. It will exist and be fully supported until it can be safely replaced by a better package. - -Installation ------------- - -```bash -go get -u github.com/goxjs/gl/... -GOARCH=js go get -u -d github.com/goxjs/gl/... -``` - -Usage ------ - -This OpenGL binding has a ContextWatcher, which implements [glfw.ContextWatcher](https://godoc.org/github.com/goxjs/glfw#ContextWatcher) -interface. Recommended usage is with github.com/goxjs/glfw package, which accepts a ContextWatcher in its Init, and takes on the responsibility -of notifying it when context is made current or detached. - -```Go -if err := glfw.Init(gl.ContextWatcher); err != nil { - // Handle error. -} -defer glfw.Terminate() -``` - -If you're not using a ContextWatcher-aware glfw library, you must call methods of gl.ContextWatcher yourself whenever -you make a context current or detached. - -```Go -window.MakeContextCurrent() -gl.ContextWatcher.OnMakeCurrent(nil) - -glfw.DetachCurrentContext() -gl.ContextWatcher.OnDetach() -``` diff --git a/vendor/github.com/goxjs/gl/consts.go b/vendor/github.com/goxjs/gl/consts.go deleted file mode 100644 index 10d56f3..0000000 --- a/vendor/github.com/goxjs/gl/consts.go +++ /dev/null @@ -1,348 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gl - -/* -Partially generated from the Khronos OpenGL API specification in XML -format, which is covered by the license: - - Copyright (c) 2013-2014 The Khronos Group Inc. - - Permission is hereby granted, free of charge, to any person obtaining a - copy of this software and/or associated documentation files (the - "Materials"), to deal in the Materials without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Materials, and to - permit persons to whom the Materials are furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be included - in all copies or substantial portions of the Materials. - - THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. - IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY - CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, - TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. - -*/ - -const ( - POINTS = 0x0000 - LINES = 0x0001 - LINE_LOOP = 0x0002 - LINE_STRIP = 0x0003 - TRIANGLES = 0x0004 - TRIANGLE_STRIP = 0x0005 - TRIANGLE_FAN = 0x0006 - SRC_COLOR = 0x0300 - ONE_MINUS_SRC_COLOR = 0x0301 - SRC_ALPHA = 0x0302 - ONE_MINUS_SRC_ALPHA = 0x0303 - DST_ALPHA = 0x0304 - ONE_MINUS_DST_ALPHA = 0x0305 - DST_COLOR = 0x0306 - ONE_MINUS_DST_COLOR = 0x0307 - SRC_ALPHA_SATURATE = 0x0308 - FUNC_ADD = 0x8006 - BLEND_EQUATION = 0x8009 - BLEND_EQUATION_RGB = 0x8009 - BLEND_EQUATION_ALPHA = 0x883D - FUNC_SUBTRACT = 0x800A - FUNC_REVERSE_SUBTRACT = 0x800B - BLEND_DST_RGB = 0x80C8 - BLEND_SRC_RGB = 0x80C9 - BLEND_DST_ALPHA = 0x80CA - BLEND_SRC_ALPHA = 0x80CB - CONSTANT_COLOR = 0x8001 - ONE_MINUS_CONSTANT_COLOR = 0x8002 - CONSTANT_ALPHA = 0x8003 - ONE_MINUS_CONSTANT_ALPHA = 0x8004 - BLEND_COLOR = 0x8005 - ARRAY_BUFFER = 0x8892 - ELEMENT_ARRAY_BUFFER = 0x8893 - ARRAY_BUFFER_BINDING = 0x8894 - ELEMENT_ARRAY_BUFFER_BINDING = 0x8895 - STREAM_DRAW = 0x88E0 - STATIC_DRAW = 0x88E4 - DYNAMIC_DRAW = 0x88E8 - BUFFER_SIZE = 0x8764 - BUFFER_USAGE = 0x8765 - CURRENT_VERTEX_ATTRIB = 0x8626 - FRONT = 0x0404 - BACK = 0x0405 - FRONT_AND_BACK = 0x0408 - TEXTURE_2D = 0x0DE1 - CULL_FACE = 0x0B44 - BLEND = 0x0BE2 - DITHER = 0x0BD0 - STENCIL_TEST = 0x0B90 - DEPTH_TEST = 0x0B71 - SCISSOR_TEST = 0x0C11 - POLYGON_OFFSET_FILL = 0x8037 - SAMPLE_ALPHA_TO_COVERAGE = 0x809E - SAMPLE_COVERAGE = 0x80A0 - INVALID_ENUM = 0x0500 - INVALID_VALUE = 0x0501 - INVALID_OPERATION = 0x0502 - OUT_OF_MEMORY = 0x0505 - CW = 0x0900 - CCW = 0x0901 - LINE_WIDTH = 0x0B21 - ALIASED_POINT_SIZE_RANGE = 0x846D - ALIASED_LINE_WIDTH_RANGE = 0x846E - CULL_FACE_MODE = 0x0B45 - FRONT_FACE = 0x0B46 - DEPTH_RANGE = 0x0B70 - DEPTH_WRITEMASK = 0x0B72 - DEPTH_CLEAR_VALUE = 0x0B73 - DEPTH_FUNC = 0x0B74 - STENCIL_CLEAR_VALUE = 0x0B91 - STENCIL_FUNC = 0x0B92 - STENCIL_FAIL = 0x0B94 - STENCIL_PASS_DEPTH_FAIL = 0x0B95 - STENCIL_PASS_DEPTH_PASS = 0x0B96 - STENCIL_REF = 0x0B97 - STENCIL_VALUE_MASK = 0x0B93 - STENCIL_WRITEMASK = 0x0B98 - STENCIL_BACK_FUNC = 0x8800 - STENCIL_BACK_FAIL = 0x8801 - STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802 - STENCIL_BACK_PASS_DEPTH_PASS = 0x8803 - STENCIL_BACK_REF = 0x8CA3 - STENCIL_BACK_VALUE_MASK = 0x8CA4 - STENCIL_BACK_WRITEMASK = 0x8CA5 - VIEWPORT = 0x0BA2 - SCISSOR_BOX = 0x0C10 - COLOR_CLEAR_VALUE = 0x0C22 - COLOR_WRITEMASK = 0x0C23 - UNPACK_ALIGNMENT = 0x0CF5 - PACK_ALIGNMENT = 0x0D05 - MAX_TEXTURE_SIZE = 0x0D33 - MAX_VIEWPORT_DIMS = 0x0D3A - SUBPIXEL_BITS = 0x0D50 - RED_BITS = 0x0D52 - GREEN_BITS = 0x0D53 - BLUE_BITS = 0x0D54 - ALPHA_BITS = 0x0D55 - DEPTH_BITS = 0x0D56 - STENCIL_BITS = 0x0D57 - POLYGON_OFFSET_UNITS = 0x2A00 - POLYGON_OFFSET_FACTOR = 0x8038 - TEXTURE_BINDING_2D = 0x8069 - SAMPLE_BUFFERS = 0x80A8 - SAMPLES = 0x80A9 - SAMPLE_COVERAGE_VALUE = 0x80AA - SAMPLE_COVERAGE_INVERT = 0x80AB - NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2 - COMPRESSED_TEXTURE_FORMATS = 0x86A3 - DONT_CARE = 0x1100 - FASTEST = 0x1101 - NICEST = 0x1102 - GENERATE_MIPMAP_HINT = 0x8192 - BYTE = 0x1400 - UNSIGNED_BYTE = 0x1401 - SHORT = 0x1402 - UNSIGNED_SHORT = 0x1403 - INT = 0x1404 - UNSIGNED_INT = 0x1405 - FLOAT = 0x1406 - FIXED = 0x140C - DEPTH_COMPONENT = 0x1902 - ALPHA = 0x1906 - RGB = 0x1907 - RGBA = 0x1908 - LUMINANCE = 0x1909 - LUMINANCE_ALPHA = 0x190A - UNSIGNED_SHORT_4_4_4_4 = 0x8033 - UNSIGNED_SHORT_5_5_5_1 = 0x8034 - UNSIGNED_SHORT_5_6_5 = 0x8363 - MAX_VERTEX_ATTRIBS = 0x8869 - MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB - MAX_VARYING_VECTORS = 0x8DFC - MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D - MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C - MAX_TEXTURE_IMAGE_UNITS = 0x8872 - MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD - SHADER_TYPE = 0x8B4F - DELETE_STATUS = 0x8B80 - LINK_STATUS = 0x8B82 - VALIDATE_STATUS = 0x8B83 - ATTACHED_SHADERS = 0x8B85 - ACTIVE_UNIFORMS = 0x8B86 - ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87 - ACTIVE_ATTRIBUTES = 0x8B89 - ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A - SHADING_LANGUAGE_VERSION = 0x8B8C - CURRENT_PROGRAM = 0x8B8D - NEVER = 0x0200 - LESS = 0x0201 - EQUAL = 0x0202 - LEQUAL = 0x0203 - GREATER = 0x0204 - NOTEQUAL = 0x0205 - GEQUAL = 0x0206 - ALWAYS = 0x0207 - KEEP = 0x1E00 - REPLACE = 0x1E01 - INCR = 0x1E02 - DECR = 0x1E03 - INVERT = 0x150A - INCR_WRAP = 0x8507 - DECR_WRAP = 0x8508 - VENDOR = 0x1F00 - RENDERER = 0x1F01 - VERSION = 0x1F02 - EXTENSIONS = 0x1F03 - NEAREST = 0x2600 - LINEAR = 0x2601 - NEAREST_MIPMAP_NEAREST = 0x2700 - LINEAR_MIPMAP_NEAREST = 0x2701 - NEAREST_MIPMAP_LINEAR = 0x2702 - LINEAR_MIPMAP_LINEAR = 0x2703 - TEXTURE_MAG_FILTER = 0x2800 - TEXTURE_MIN_FILTER = 0x2801 - TEXTURE_WRAP_S = 0x2802 - TEXTURE_WRAP_T = 0x2803 - TEXTURE = 0x1702 - TEXTURE_CUBE_MAP = 0x8513 - TEXTURE_BINDING_CUBE_MAP = 0x8514 - TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515 - TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516 - TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517 - TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518 - TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519 - TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A - MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C - TEXTURE0 = 0x84C0 - TEXTURE1 = 0x84C1 - TEXTURE2 = 0x84C2 - TEXTURE3 = 0x84C3 - TEXTURE4 = 0x84C4 - TEXTURE5 = 0x84C5 - TEXTURE6 = 0x84C6 - TEXTURE7 = 0x84C7 - TEXTURE8 = 0x84C8 - TEXTURE9 = 0x84C9 - TEXTURE10 = 0x84CA - TEXTURE11 = 0x84CB - TEXTURE12 = 0x84CC - TEXTURE13 = 0x84CD - TEXTURE14 = 0x84CE - TEXTURE15 = 0x84CF - TEXTURE16 = 0x84D0 - TEXTURE17 = 0x84D1 - TEXTURE18 = 0x84D2 - TEXTURE19 = 0x84D3 - TEXTURE20 = 0x84D4 - TEXTURE21 = 0x84D5 - TEXTURE22 = 0x84D6 - TEXTURE23 = 0x84D7 - TEXTURE24 = 0x84D8 - TEXTURE25 = 0x84D9 - TEXTURE26 = 0x84DA - TEXTURE27 = 0x84DB - TEXTURE28 = 0x84DC - TEXTURE29 = 0x84DD - TEXTURE30 = 0x84DE - TEXTURE31 = 0x84DF - ACTIVE_TEXTURE = 0x84E0 - REPEAT = 0x2901 - CLAMP_TO_EDGE = 0x812F - MIRRORED_REPEAT = 0x8370 - VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622 - VERTEX_ATTRIB_ARRAY_SIZE = 0x8623 - VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624 - VERTEX_ATTRIB_ARRAY_TYPE = 0x8625 - VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A - VERTEX_ATTRIB_ARRAY_POINTER = 0x8645 - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F - IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A - IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B - COMPILE_STATUS = 0x8B81 - INFO_LOG_LENGTH = 0x8B84 - SHADER_SOURCE_LENGTH = 0x8B88 - SHADER_COMPILER = 0x8DFA - SHADER_BINARY_FORMATS = 0x8DF8 - NUM_SHADER_BINARY_FORMATS = 0x8DF9 - LOW_FLOAT = 0x8DF0 - MEDIUM_FLOAT = 0x8DF1 - HIGH_FLOAT = 0x8DF2 - LOW_INT = 0x8DF3 - MEDIUM_INT = 0x8DF4 - HIGH_INT = 0x8DF5 - FRAMEBUFFER = 0x8D40 - RENDERBUFFER = 0x8D41 - RGBA4 = 0x8056 - RGB5_A1 = 0x8057 - RGB565 = 0x8D62 - DEPTH_COMPONENT16 = 0x81A5 - STENCIL_INDEX8 = 0x8D48 - RENDERBUFFER_WIDTH = 0x8D42 - RENDERBUFFER_HEIGHT = 0x8D43 - RENDERBUFFER_INTERNAL_FORMAT = 0x8D44 - RENDERBUFFER_RED_SIZE = 0x8D50 - RENDERBUFFER_GREEN_SIZE = 0x8D51 - RENDERBUFFER_BLUE_SIZE = 0x8D52 - RENDERBUFFER_ALPHA_SIZE = 0x8D53 - RENDERBUFFER_DEPTH_SIZE = 0x8D54 - RENDERBUFFER_STENCIL_SIZE = 0x8D55 - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0 - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2 - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3 - COLOR_ATTACHMENT0 = 0x8CE0 - DEPTH_ATTACHMENT = 0x8D00 - STENCIL_ATTACHMENT = 0x8D20 - FRAMEBUFFER_COMPLETE = 0x8CD5 - FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6 - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7 - FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9 - FRAMEBUFFER_UNSUPPORTED = 0x8CDD - FRAMEBUFFER_BINDING = 0x8CA6 - RENDERBUFFER_BINDING = 0x8CA7 - MAX_RENDERBUFFER_SIZE = 0x84E8 - INVALID_FRAMEBUFFER_OPERATION = 0x0506 -) - -const ( - DEPTH_BUFFER_BIT = 0x00000100 - STENCIL_BUFFER_BIT = 0x00000400 - COLOR_BUFFER_BIT = 0x00004000 -) - -const ( - FLOAT_VEC2 = 0x8B50 - FLOAT_VEC3 = 0x8B51 - FLOAT_VEC4 = 0x8B52 - INT_VEC2 = 0x8B53 - INT_VEC3 = 0x8B54 - INT_VEC4 = 0x8B55 - BOOL = 0x8B56 - BOOL_VEC2 = 0x8B57 - BOOL_VEC3 = 0x8B58 - BOOL_VEC4 = 0x8B59 - FLOAT_MAT2 = 0x8B5A - FLOAT_MAT3 = 0x8B5B - FLOAT_MAT4 = 0x8B5C - SAMPLER_2D = 0x8B5E - SAMPLER_CUBE = 0x8B60 -) - -const ( - FRAGMENT_SHADER = 0x8B30 - VERTEX_SHADER = 0x8B31 -) - -const ( - FALSE = 0 - TRUE = 1 - ZERO = 0 - ONE = 1 - NO_ERROR = 0 - NONE = 0 -) diff --git a/vendor/github.com/goxjs/gl/doc.go b/vendor/github.com/goxjs/gl/doc.go deleted file mode 100644 index b9533c2..0000000 --- a/vendor/github.com/goxjs/gl/doc.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -/* -Package gl is a Go cross-platform binding for OpenGL, with an OpenGL ES 2-like API. - -It supports: - -- macOS, Linux and Windows via OpenGL 2.1 backend, - -- iOS and Android via OpenGL ES 2.0 backend, - -- Modern Browsers (desktop and mobile) via WebGL 1.0 backend. - -This is a fork of golang.org/x/mobile/gl package with [CL 8793](https://go-review.googlesource.com/8793) -merged in and Windows support added. This package is fully functional, but may eventually become superceded by -the new x/mobile/gl plan. It will exist and be fully supported until it can be safely replaced by a better package. - -Usage - -This OpenGL binding has a ContextWatcher, which implements [glfw.ContextWatcher](https://godoc.org/github.com/goxjs/glfw#ContextWatcher) -interface. Recommended usage is with github.com/goxjs/glfw package, which accepts a ContextWatcher in its Init, and takes on the responsibility -of notifying it when context is made current or detached. - - if err := glfw.Init(gl.ContextWatcher); err != nil { - // Handle error. - } - defer glfw.Terminate() - -If you're not using a ContextWatcher-aware glfw library, you must call methods of gl.ContextWatcher yourself whenever -you make a context current or detached. - - window.MakeContextCurrent() - gl.ContextWatcher.OnMakeCurrent(nil) - - glfw.DetachCurrentContext() - gl.ContextWatcher.OnDetach() -*/ -package gl // import "github.com/goxjs/gl" diff --git a/vendor/github.com/goxjs/gl/gl_opengl.go b/vendor/github.com/goxjs/gl/gl_opengl.go deleted file mode 100644 index a71c652..0000000 --- a/vendor/github.com/goxjs/gl/gl_opengl.go +++ /dev/null @@ -1,1206 +0,0 @@ -// +build !js - -package gl - -import ( - "log" - "strings" - "unsafe" - - "github.com/go-gl/gl/v2.1/gl" -) - -// ContextWatcher is this library's context watcher, satisfying glfw.ContextWatcher interface. -// It must be notified when context is made current or detached. -var ContextWatcher = new(contextWatcher) - -type contextWatcher struct { - initGL bool -} - -func (cw *contextWatcher) OnMakeCurrent(context interface{}) { - if !cw.initGL { - // Initialise gl bindings using the current context. - err := gl.Init() - if err != nil { - log.Fatalln("gl.Init:", err) - } - cw.initGL = true - } -} -func (contextWatcher) OnDetach() {} - -// ActiveTexture sets the active texture unit. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glActiveTexture.xhtml -func ActiveTexture(texture Enum) { - gl.ActiveTexture(uint32(texture)) -} - -// AttachShader attaches a shader to a program. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glAttachShader.xhtml -func AttachShader(p Program, s Shader) { - gl.AttachShader(p.Value, s.Value) -} - -// BindAttribLocation binds a vertex attribute index with a named -// variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBindAttribLocation.xhtml -func BindAttribLocation(p Program, a Attrib, name string) { - gl.BindAttribLocation(p.Value, uint32(a.Value), gl.Str(name+"\x00")) -} - -// BindBuffer binds a buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBindBuffer.xhtml -func BindBuffer(target Enum, b Buffer) { - gl.BindBuffer(uint32(target), b.Value) -} - -// BindFramebuffer binds a framebuffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBindFramebuffer.xhtml -func BindFramebuffer(target Enum, fb Framebuffer) { - gl.BindFramebuffer(uint32(target), fb.Value) -} - -// BindRenderbuffer binds a render buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBindRenderbuffer.xhtml -func BindRenderbuffer(target Enum, rb Renderbuffer) { - gl.BindRenderbuffer(uint32(target), rb.Value) -} - -// BindTexture binds a texture. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBindTexture.xhtml -func BindTexture(target Enum, t Texture) { - gl.BindTexture(uint32(target), t.Value) -} - -// BlendColor sets the blend color. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBlendColor.xhtml -func BlendColor(red, green, blue, alpha float32) { - gl.BlendColor(red, green, blue, alpha) -} - -// BlendEquation sets both RGB and alpha blend equations. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBlendEquation.xhtml -func BlendEquation(mode Enum) { - gl.BlendEquation(uint32(mode)) -} - -// BlendEquationSeparate sets RGB and alpha blend equations separately. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBlendEquationSeparate.xhtml -func BlendEquationSeparate(modeRGB, modeAlpha Enum) { - gl.BlendEquationSeparate(uint32(modeRGB), uint32(modeAlpha)) -} - -// BlendFunc sets the pixel blending factors. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBlendFunc.xhtml -func BlendFunc(sfactor, dfactor Enum) { - gl.BlendFunc(uint32(sfactor), uint32(dfactor)) -} - -// BlendFunc sets the pixel RGB and alpha blending factors separately. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBlendFuncSeparate.xhtml -func BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha Enum) { - gl.BlendFuncSeparate(uint32(sfactorRGB), uint32(dfactorRGB), uint32(sfactorAlpha), uint32(dfactorAlpha)) -} - -// BufferData creates a new data store for the bound buffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBufferData.xhtml -func BufferData(target Enum, src []byte, usage Enum) { - gl.BufferData(uint32(target), int(len(src)), gl.Ptr(&src[0]), uint32(usage)) -} - -// BufferInit creates a new unitialized data store for the bound buffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBufferData.xhtml -func BufferInit(target Enum, size int, usage Enum) { - gl.BufferData(uint32(target), size, nil, uint32(usage)) -} - -// BufferSubData sets some of data in the bound buffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glBufferSubData.xhtml -func BufferSubData(target Enum, offset int, data []byte) { - gl.BufferSubData(uint32(target), offset, int(len(data)), gl.Ptr(&data[0])) -} - -// CheckFramebufferStatus reports the completeness status of the -// active framebuffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCheckFramebufferStatus.xhtml -func CheckFramebufferStatus(target Enum) Enum { - return Enum(gl.CheckFramebufferStatus(uint32(target))) -} - -// Clear clears the window. -// -// The behavior of Clear is influenced by the pixel ownership test, -// the scissor test, dithering, and the buffer writemasks. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glClear.xhtml -func Clear(mask Enum) { - gl.Clear(uint32(mask)) -} - -// ClearColor specifies the RGBA values used to clear color buffers. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glClearColor.xhtml -func ClearColor(red, green, blue, alpha float32) { - gl.ClearColor(red, green, blue, alpha) -} - -// ClearDepthf sets the depth value used to clear the depth buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glClearDepthf.xhtml -func ClearDepthf(d float32) { - gl.ClearDepthf(d) -} - -// ClearStencil sets the index used to clear the stencil buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glClearStencil.xhtml -func ClearStencil(s int) { - gl.ClearStencil(int32(s)) -} - -// ColorMask specifies whether color components in the framebuffer -// can be written. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glColorMask.xhtml -func ColorMask(red, green, blue, alpha bool) { - gl.ColorMask(red, green, blue, alpha) -} - -// CompileShader compiles the source code of s. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCompileShader.xhtml -func CompileShader(s Shader) { - gl.CompileShader(s.Value) -} - -// CompressedTexImage2D writes a compressed 2D texture. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCompressedTexImage2D.xhtml -func CompressedTexImage2D(target Enum, level int, internalformat Enum, width, height, border int, data []byte) { - gl.CompressedTexImage2D(uint32(target), int32(level), uint32(internalformat), int32(width), int32(height), int32(border), int32(len(data)), gl.Ptr(data)) -} - -// CompressedTexSubImage2D writes a subregion of a compressed 2D texture. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCompressedTexSubImage2D.xhtml -func CompressedTexSubImage2D(target Enum, level, xoffset, yoffset, width, height int, format Enum, data []byte) { - gl.CompressedTexSubImage2D(uint32(target), int32(level), int32(xoffset), int32(yoffset), int32(width), int32(height), uint32(format), int32(len(data)), gl.Ptr(data)) -} - -// CopyTexImage2D writes a 2D texture from the current framebuffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCopyTexImage2D.xhtml -func CopyTexImage2D(target Enum, level int, internalformat Enum, x, y, width, height, border int) { - gl.CopyTexImage2D(uint32(target), int32(level), uint32(internalformat), int32(x), int32(y), int32(width), int32(height), int32(border)) -} - -// CopyTexSubImage2D writes a 2D texture subregion from the -// current framebuffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCopyTexSubImage2D.xhtml -func CopyTexSubImage2D(target Enum, level, xoffset, yoffset, x, y, width, height int) { - gl.CopyTexSubImage2D(uint32(target), int32(level), int32(xoffset), int32(yoffset), int32(x), int32(y), int32(width), int32(height)) -} - -// CreateBuffer creates a buffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGenBuffers.xhtml -func CreateBuffer() Buffer { - var b Buffer - gl.GenBuffers(1, &b.Value) - return b -} - -// CreateFramebuffer creates a framebuffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGenFramebuffers.xhtml -func CreateFramebuffer() Framebuffer { - var b Framebuffer - gl.GenFramebuffers(1, &b.Value) - return b -} - -// CreateProgram creates a new empty program object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCreateProgram.xhtml -func CreateProgram() Program { - return Program{Value: uint32(gl.CreateProgram())} -} - -// CreateRenderbuffer create a renderbuffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGenRenderbuffers.xhtml -func CreateRenderbuffer() Renderbuffer { - var b Renderbuffer - gl.GenRenderbuffers(1, &b.Value) - return b -} - -// CreateShader creates a new empty shader object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCreateShader.xhtml -func CreateShader(ty Enum) Shader { - return Shader{Value: uint32(gl.CreateShader(uint32(ty)))} -} - -// CreateTexture creates a texture object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGenTextures.xhtml -func CreateTexture() Texture { - var t Texture - gl.GenTextures(1, &t.Value) - return t -} - -// CullFace specifies which polygons are candidates for culling. -// -// Valid modes: FRONT, BACK, FRONT_AND_BACK. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glCullFace.xhtml -func CullFace(mode Enum) { - gl.CullFace(uint32(mode)) -} - -// DeleteBuffer deletes the given buffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDeleteBuffers.xhtml -func DeleteBuffer(v Buffer) { - gl.DeleteBuffers(1, &v.Value) -} - -// DeleteFramebuffer deletes the given framebuffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDeleteFramebuffers.xhtml -func DeleteFramebuffer(v Framebuffer) { - gl.DeleteFramebuffers(1, &v.Value) -} - -// DeleteProgram deletes the given program object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDeleteProgram.xhtml -func DeleteProgram(p Program) { - gl.DeleteProgram(p.Value) -} - -// DeleteRenderbuffer deletes the given render buffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDeleteRenderbuffers.xhtml -func DeleteRenderbuffer(v Renderbuffer) { - gl.DeleteRenderbuffers(1, &v.Value) -} - -// DeleteShader deletes shader s. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDeleteShader.xhtml -func DeleteShader(s Shader) { - gl.DeleteShader(s.Value) -} - -// DeleteTexture deletes the given texture object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDeleteTextures.xhtml -func DeleteTexture(v Texture) { - gl.DeleteTextures(1, &v.Value) -} - -// DepthFunc sets the function used for depth buffer comparisons. -// -// Valid fn values: -// NEVER -// LESS -// EQUAL -// LEQUAL -// GREATER -// NOTEQUAL -// GEQUAL -// ALWAYS -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDepthFunc.xhtml -func DepthFunc(fn Enum) { - gl.DepthFunc(uint32(fn)) -} - -// DepthMask sets the depth buffer enabled for writing. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDepthMask.xhtml -func DepthMask(flag bool) { - gl.DepthMask(flag) -} - -// DepthRangef sets the mapping from normalized device coordinates to -// window coordinates. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDepthRangef.xhtml -func DepthRangef(n, f float32) { - gl.DepthRangef(n, f) -} - -// DetachShader detaches the shader s from the program p. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDetachShader.xhtml -func DetachShader(p Program, s Shader) { - gl.DetachShader(p.Value, s.Value) -} - -// Disable disables various GL capabilities. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDisable.xhtml -func Disable(cap Enum) { - gl.Disable(uint32(cap)) -} - -// DisableVertexAttribArray disables a vertex attribute array. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDisableVertexAttribArray.xhtml -func DisableVertexAttribArray(a Attrib) { - gl.DisableVertexAttribArray(uint32(a.Value)) -} - -// DrawArrays renders geometric primitives from the bound data. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDrawArrays.xhtml -func DrawArrays(mode Enum, first, count int) { - gl.DrawArrays(uint32(mode), int32(first), int32(count)) -} - -// DrawElements renders primitives from a bound buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glDrawElements.xhtml -func DrawElements(mode Enum, count int, ty Enum, offset int) { - gl.DrawElements(uint32(mode), int32(count), uint32(ty), gl.PtrOffset(offset)) -} - -// Enable enables various GL capabilities. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glEnable.xhtml -func Enable(cap Enum) { - gl.Enable(uint32(cap)) -} - -// EnableVertexAttribArray enables a vertex attribute array. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glEnableVertexAttribArray.xhtml -func EnableVertexAttribArray(a Attrib) { - gl.EnableVertexAttribArray(uint32(a.Value)) -} - -// Finish blocks until the effects of all previously called GL -// commands are complete. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glFinish.xhtml -func Finish() { - gl.Finish() -} - -// Flush empties all buffers. It does not block. -// -// An OpenGL implementation may buffer network communication, -// the command stream, or data inside the graphics accelerator. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glFlush.xhtml -func Flush() { - gl.Flush() -} - -// FramebufferRenderbuffer attaches rb to the current frame buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glFramebufferRenderbuffer.xhtml -func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) { - gl.FramebufferRenderbuffer(uint32(target), uint32(attachment), uint32(rbTarget), rb.Value) -} - -// FramebufferTexture2D attaches the t to the current frame buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glFramebufferTexture2D.xhtml -func FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) { - gl.FramebufferTexture2D(uint32(target), uint32(attachment), uint32(texTarget), t.Value, int32(level)) -} - -// FrontFace defines which polygons are front-facing. -// -// Valid modes: CW, CCW. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glFrontFace.xhtml -func FrontFace(mode Enum) { - gl.FrontFace(uint32(mode)) -} - -// GenerateMipmap generates mipmaps for the current texture. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGenerateMipmap.xhtml -func GenerateMipmap(target Enum) { - gl.GenerateMipmap(uint32(target)) -} - -// GetActiveAttrib returns details about an active attribute variable. -// A value of 0 for index selects the first active attribute variable. -// Permissible values for index range from 0 to the number of active -// attribute variables minus 1. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetActiveAttrib.xhtml -func GetActiveAttrib(p Program, index uint32) (name string, size int, ty Enum) { - var length, si int32 - var typ uint32 - name = strings.Repeat("\x00", 256) - cname := gl.Str(name) - gl.GetActiveAttrib(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname) - name = name[:strings.IndexRune(name, 0)] - return name, int(si), Enum(typ) -} - -// GetActiveUniform returns details about an active uniform variable. -// A value of 0 for index selects the first active uniform variable. -// Permissible values for index range from 0 to the number of active -// uniform variables minus 1. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetActiveUniform.xhtml -func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) { - var length, si int32 - var typ uint32 - name = strings.Repeat("\x00", 256) - cname := gl.Str(name) - gl.GetActiveUniform(p.Value, uint32(index), int32(len(name)-1), &length, &si, &typ, cname) - name = name[:strings.IndexRune(name, 0)] - return name, int(si), Enum(typ) -} - -// GetAttachedShaders returns the shader objects attached to program p. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetAttachedShaders.xhtml -func GetAttachedShaders(p Program) []Shader { - log.Println("GetAttachedShaders: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - shadersLen := GetProgrami(p, ATTACHED_SHADERS) - var n int32 - buf := make([]uint32, shadersLen) - gl.GetAttachedShaders(uint32(p.Value), int32(shadersLen), &n, &buf[0]) - buf = buf[:int(n)] - shaders := make([]Shader, int(n)) - for i, s := range buf { - shaders[i] = Shader{Value: uint32(s)} - } - return shaders -} - -// GetAttribLocation returns the location of an attribute variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetAttribLocation.xhtml -func GetAttribLocation(p Program, name string) Attrib { - return Attrib{Value: uint(gl.GetAttribLocation(p.Value, gl.Str(name+"\x00")))} -} - -// GetBooleanv returns the boolean values of parameter pname. -// -// Many boolean parameters can be queried more easily using IsEnabled. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGet.xhtml -func GetBooleanv(dst []bool, pname Enum) { - gl.GetBooleanv(uint32(pname), &dst[0]) -} - -// GetFloatv returns the float values of parameter pname. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGet.xhtml -func GetFloatv(dst []float32, pname Enum) { - gl.GetFloatv(uint32(pname), &dst[0]) -} - -// GetIntegerv returns the int values of parameter pname. -// -// Single values may be queried more easily using GetInteger. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGet.xhtml -func GetIntegerv(pname Enum, data []int32) { - gl.GetIntegerv(uint32(pname), &data[0]) -} - -// GetInteger returns the int value of parameter pname. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGet.xhtml -func GetInteger(pname Enum) int { - var data int32 - gl.GetIntegerv(uint32(pname), &data) - return int(data) -} - -// GetBufferParameteri returns a parameter for the active buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetBufferParameteriv.xhtml -func GetBufferParameteri(target, pname Enum) int { - var params int32 - gl.GetBufferParameteriv(uint32(target), uint32(pname), ¶ms) - return int(params) -} - -// GetError returns the next error. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetError.xhtml -func GetError() Enum { - return Enum(gl.GetError()) -} - -// GetBoundFramebuffer returns the currently bound framebuffer. -// Use this method instead of gl.GetInteger(gl.FRAMEBUFFER_BINDING) to -// enable support on all platforms -func GetBoundFramebuffer() Framebuffer { - var b int32 - gl.GetIntegerv(FRAMEBUFFER_BINDING, &b) - return Framebuffer{Value: uint32(b)} -} - -// GetFramebufferAttachmentParameteri returns attachment parameters -// for the active framebuffer object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetFramebufferAttachmentParameteriv.xhtml -func GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int { - log.Println("GetFramebufferAttachmentParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - var param int32 - gl.GetFramebufferAttachmentParameteriv(uint32(target), uint32(attachment), uint32(pname), ¶m) - return int(param) -} - -// GetProgrami returns a parameter value for a program. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetProgramiv.xhtml -func GetProgrami(p Program, pname Enum) int { - var result int32 - gl.GetProgramiv(p.Value, uint32(pname), &result) - return int(result) -} - -// GetProgramInfoLog returns the information log for a program. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetProgramInfoLog.xhtml -func GetProgramInfoLog(p Program) string { - var logLength int32 - gl.GetProgramiv(p.Value, gl.INFO_LOG_LENGTH, &logLength) - if logLength == 0 { - return "" - } - - logBuffer := make([]uint8, logLength) - gl.GetProgramInfoLog(p.Value, logLength, nil, &logBuffer[0]) - return gl.GoStr(&logBuffer[0]) -} - -// GetRenderbufferParameteri returns a parameter value for a render buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetRenderbufferParameteriv.xhtml -func GetRenderbufferParameteri(target, pname Enum) int { - log.Println("GetRenderbufferParameteri: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - var result int32 - gl.GetRenderbufferParameteriv(uint32(target), uint32(pname), &result) - return int(result) -} - -// GetRenderbufferParameteri returns a parameter value for a shader. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetShaderiv.xhtml -func GetShaderi(s Shader, pname Enum) int { - var result int32 - gl.GetShaderiv(s.Value, uint32(pname), &result) - return int(result) -} - -// GetShaderInfoLog returns the information log for a shader. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetShaderInfoLog.xhtml -func GetShaderInfoLog(s Shader) string { - var logLength int32 - gl.GetShaderiv(s.Value, gl.INFO_LOG_LENGTH, &logLength) - if logLength == 0 { - return "" - } - - logBuffer := make([]uint8, logLength) - gl.GetShaderInfoLog(s.Value, logLength, nil, &logBuffer[0]) - return gl.GoStr(&logBuffer[0]) -} - -// GetShaderPrecisionFormat returns range and precision limits for -// shader types. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetShaderPrecisionFormat.xhtml -func GetShaderPrecisionFormat(shadertype, precisiontype Enum) (rangeLow, rangeHigh, precision int) { - log.Println("GetShaderPrecisionFormat: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - var cRange [2]int32 - var cPrecision int32 - - gl.GetShaderPrecisionFormat(uint32(shadertype), uint32(precisiontype), &cRange[0], &cPrecision) - return int(cRange[0]), int(cRange[1]), int(cPrecision) -} - -// GetShaderSource returns source code of shader s. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetShaderSource.xhtml -func GetShaderSource(s Shader) string { - log.Println("GetShaderSource: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - sourceLen := GetShaderi(s, gl.SHADER_SOURCE_LENGTH) - if sourceLen == 0 { - return "" - } - buf := make([]byte, sourceLen) - gl.GetShaderSource(s.Value, int32(sourceLen), nil, &buf[0]) - return string(buf) -} - -// GetString reports current GL state. -// -// Valid name values: -// EXTENSIONS -// RENDERER -// SHADING_LANGUAGE_VERSION -// VENDOR -// VERSION -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetString.xhtml -func GetString(pname Enum) string { - return gl.GoStr(gl.GetString(uint32(pname))) -} - -// GetTexParameterfv returns the float values of a texture parameter. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetTexParameter.xhtml -func GetTexParameterfv(dst []float32, target, pname Enum) { - gl.GetTexParameterfv(uint32(target), uint32(pname), &dst[0]) -} - -// GetTexParameteriv returns the int values of a texture parameter. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetTexParameter.xhtml -func GetTexParameteriv(dst []int32, target, pname Enum) { - gl.GetTexParameteriv(uint32(target), uint32(pname), &dst[0]) -} - -// GetUniformfv returns the float values of a uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetUniform.xhtml -func GetUniformfv(dst []float32, src Uniform, p Program) { - gl.GetUniformfv(p.Value, src.Value, &dst[0]) -} - -// GetUniformiv returns the float values of a uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetUniform.xhtml -func GetUniformiv(dst []int32, src Uniform, p Program) { - gl.GetUniformiv(p.Value, src.Value, &dst[0]) -} - -// GetUniformLocation returns the location of a uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetUniformLocation.xhtml -func GetUniformLocation(p Program, name string) Uniform { - return Uniform{Value: gl.GetUniformLocation(p.Value, gl.Str(name+"\x00"))} -} - -// GetVertexAttribf reads the float value of a vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetVertexAttrib.xhtml -func GetVertexAttribf(src Attrib, pname Enum) float32 { - log.Println("GetVertexAttribf: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - var result float32 - gl.GetVertexAttribfv(uint32(src.Value), uint32(pname), &result) - return result -} - -// GetVertexAttribfv reads float values of a vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetVertexAttrib.xhtml -func GetVertexAttribfv(dst []float32, src Attrib, pname Enum) { - gl.GetVertexAttribfv(uint32(src.Value), uint32(pname), &dst[0]) -} - -// GetVertexAttribi reads the int value of a vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetVertexAttrib.xhtml -func GetVertexAttribi(src Attrib, pname Enum) int32 { - var result int32 - gl.GetVertexAttribiv(uint32(src.Value), uint32(pname), &result) - return result -} - -// GetVertexAttribiv reads int values of a vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glGetVertexAttrib.xhtml -func GetVertexAttribiv(dst []int32, src Attrib, pname Enum) { - gl.GetVertexAttribiv(uint32(src.Value), uint32(pname), &dst[0]) -} - -// Hint sets implementation-specific modes. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glHint.xhtml -func Hint(target, mode Enum) { - gl.Hint(uint32(target), uint32(mode)) -} - -// IsBuffer reports if b is a valid buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glIsBuffer.xhtml -func IsBuffer(b Buffer) bool { - return gl.IsBuffer(b.Value) -} - -// IsEnabled reports if cap is an enabled capability. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glIsEnabled.xhtml -func IsEnabled(cap Enum) bool { - return gl.IsEnabled(uint32(cap)) -} - -// IsFramebuffer reports if fb is a valid frame buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glIsFramebuffer.xhtml -func IsFramebuffer(fb Framebuffer) bool { - return gl.IsFramebuffer(fb.Value) -} - -// IsProgram reports if p is a valid program object. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glIsProgram.xhtml -func IsProgram(p Program) bool { - return gl.IsProgram(p.Value) -} - -// IsRenderbuffer reports if rb is a valid render buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glIsRenderbuffer.xhtml -func IsRenderbuffer(rb Renderbuffer) bool { - return gl.IsRenderbuffer(rb.Value) -} - -// IsShader reports if s is valid shader. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glIsShader.xhtml -func IsShader(s Shader) bool { - return gl.IsShader(s.Value) -} - -// IsTexture reports if t is a valid texture. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glIsTexture.xhtml -func IsTexture(t Texture) bool { - return gl.IsTexture(t.Value) -} - -// LineWidth specifies the width of lines. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glLineWidth.xhtml -func LineWidth(width float32) { - gl.LineWidth(width) -} - -// LinkProgram links the specified program. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glLinkProgram.xhtml -func LinkProgram(p Program) { - gl.LinkProgram(p.Value) -} - -// PixelStorei sets pixel storage parameters. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glPixelStorei.xhtml -func PixelStorei(pname Enum, param int32) { - gl.PixelStorei(uint32(pname), param) -} - -// PolygonOffset sets the scaling factors for depth offsets. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glPolygonOffset.xhtml -func PolygonOffset(factor, units float32) { - gl.PolygonOffset(factor, units) -} - -// ReadPixels returns pixel data from a buffer. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glReadPixels.xhtml -func ReadPixels(dst []byte, x, y, width, height int, format, ty Enum) { - gl.ReadPixels(int32(x), int32(y), int32(width), int32(height), uint32(format), uint32(ty), gl.Ptr(&dst[0])) -} - -// ReleaseShaderCompiler frees resources allocated by the shader compiler. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glReleaseShaderCompiler.xhtml -func ReleaseShaderCompiler() { - gl.ReleaseShaderCompiler() -} - -// RenderbufferStorage establishes the data storage, format, and -// dimensions of a renderbuffer object's image. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glRenderbufferStorage.xhtml -func RenderbufferStorage(target, internalFormat Enum, width, height int) { - gl.RenderbufferStorage(uint32(target), uint32(internalFormat), int32(width), int32(height)) -} - -// SampleCoverage sets multisample coverage parameters. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glSampleCoverage.xhtml -func SampleCoverage(value float32, invert bool) { - gl.SampleCoverage(value, invert) -} - -// Scissor defines the scissor box rectangle, in window coordinates. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glScissor.xhtml -func Scissor(x, y, width, height int32) { - gl.Scissor(x, y, width, height) -} - -// ShaderSource sets the source code of s to the given source code. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glShaderSource.xhtml -func ShaderSource(s Shader, src string) { - glsource, free := gl.Strs(src + "\x00") - gl.ShaderSource(s.Value, 1, glsource, nil) - free() -} - -// StencilFunc sets the front and back stencil test reference value. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glStencilFunc.xhtml -func StencilFunc(fn Enum, ref int, mask uint32) { - gl.StencilFunc(uint32(fn), int32(ref), mask) -} - -// StencilFunc sets the front or back stencil test reference value. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glStencilFuncSeparate.xhtml -func StencilFuncSeparate(face, fn Enum, ref int, mask uint32) { - gl.StencilFuncSeparate(uint32(face), uint32(fn), int32(ref), mask) -} - -// StencilMask controls the writing of bits in the stencil planes. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glStencilMask.xhtml -func StencilMask(mask uint32) { - gl.StencilMask(mask) -} - -// StencilMaskSeparate controls the writing of bits in the stencil planes. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glStencilMaskSeparate.xhtml -func StencilMaskSeparate(face Enum, mask uint32) { - gl.StencilMaskSeparate(uint32(face), mask) -} - -// StencilOp sets front and back stencil test actions. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glStencilOp.xhtml -func StencilOp(fail, zfail, zpass Enum) { - gl.StencilOp(uint32(fail), uint32(zfail), uint32(zpass)) -} - -// StencilOpSeparate sets front or back stencil tests. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glStencilOpSeparate.xhtml -func StencilOpSeparate(face, sfail, dpfail, dppass Enum) { - gl.StencilOpSeparate(uint32(face), uint32(sfail), uint32(dpfail), uint32(dppass)) -} - -// TexImage2D writes a 2D texture image. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glTexImage2D.xhtml -func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) { - p := unsafe.Pointer(nil) - if len(data) > 0 { - p = gl.Ptr(&data[0]) - } - gl.TexImage2D(uint32(target), int32(level), int32(format), int32(width), int32(height), 0, uint32(format), uint32(ty), p) -} - -// TexSubImage2D writes a subregion of a 2D texture image. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glTexSubImage2D.xhtml -func TexSubImage2D(target Enum, level int, x, y, width, height int, format, ty Enum, data []byte) { - gl.TexSubImage2D(uint32(target), int32(level), int32(x), int32(y), int32(width), int32(height), uint32(format), uint32(ty), gl.Ptr(&data[0])) -} - -// TexParameterf sets a float texture parameter. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glTexParameter.xhtml -func TexParameterf(target, pname Enum, param float32) { - gl.TexParameterf(uint32(target), uint32(pname), param) -} - -// TexParameterfv sets a float texture parameter array. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glTexParameter.xhtml -func TexParameterfv(target, pname Enum, params []float32) { - gl.TexParameterfv(uint32(target), uint32(pname), ¶ms[0]) -} - -// TexParameteri sets an integer texture parameter. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glTexParameter.xhtml -func TexParameteri(target, pname Enum, param int) { - gl.TexParameteri(uint32(target), uint32(pname), int32(param)) -} - -// TexParameteriv sets an integer texture parameter array. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glTexParameter.xhtml -func TexParameteriv(target, pname Enum, params []int32) { - gl.TexParameteriv(uint32(target), uint32(pname), ¶ms[0]) -} - -// Uniform1f writes a float uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform1f(dst Uniform, v float32) { - gl.Uniform1f(dst.Value, v) -} - -// Uniform1fv writes a [len(src)]float uniform array. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform1fv(dst Uniform, src []float32) { - gl.Uniform1fv(dst.Value, int32(len(src)), &src[0]) -} - -// Uniform1i writes an int uniform variable. -// -// Uniform1i and Uniform1iv are the only two functions that may be used -// to load uniform variables defined as sampler types. Loading samplers -// with any other function will result in a INVALID_OPERATION error. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform1i(dst Uniform, v int) { - gl.Uniform1i(dst.Value, int32(v)) -} - -// Uniform1iv writes a int uniform array of len(src) elements. -// -// Uniform1i and Uniform1iv are the only two functions that may be used -// to load uniform variables defined as sampler types. Loading samplers -// with any other function will result in a INVALID_OPERATION error. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform1iv(dst Uniform, src []int32) { - gl.Uniform1iv(dst.Value, int32(len(src)), &src[0]) -} - -// Uniform2f writes a vec2 uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform2f(dst Uniform, v0, v1 float32) { - gl.Uniform2f(dst.Value, v0, v1) -} - -// Uniform2fv writes a vec2 uniform array of len(src)/2 elements. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform2fv(dst Uniform, src []float32) { - gl.Uniform2fv(dst.Value, int32(len(src)/2), &src[0]) -} - -// Uniform2i writes an ivec2 uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform2i(dst Uniform, v0, v1 int) { - gl.Uniform2i(dst.Value, int32(v0), int32(v1)) -} - -// Uniform2iv writes an ivec2 uniform array of len(src)/2 elements. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform2iv(dst Uniform, src []int32) { - gl.Uniform2iv(dst.Value, int32(len(src)/2), &src[0]) -} - -// Uniform3f writes a vec3 uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform3f(dst Uniform, v0, v1, v2 float32) { - gl.Uniform3f(dst.Value, v0, v1, v2) -} - -// Uniform3fv writes a vec3 uniform array of len(src)/3 elements. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform3fv(dst Uniform, src []float32) { - gl.Uniform3fv(dst.Value, int32(len(src)/3), &src[0]) -} - -// Uniform3i writes an ivec3 uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform3i(dst Uniform, v0, v1, v2 int32) { - gl.Uniform3i(dst.Value, v0, v1, v2) -} - -// Uniform3iv writes an ivec3 uniform array of len(src)/3 elements. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform3iv(dst Uniform, src []int32) { - gl.Uniform3iv(dst.Value, int32(len(src)/3), &src[0]) -} - -// Uniform4f writes a vec4 uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform4f(dst Uniform, v0, v1, v2, v3 float32) { - gl.Uniform4f(dst.Value, v0, v1, v2, v3) -} - -// Uniform4fv writes a vec4 uniform array of len(src)/4 elements. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform4fv(dst Uniform, src []float32) { - gl.Uniform4fv(dst.Value, int32(len(src)/4), &src[0]) -} - -// Uniform4i writes an ivec4 uniform variable. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform4i(dst Uniform, v0, v1, v2, v3 int32) { - gl.Uniform4i(dst.Value, v0, v1, v2, v3) -} - -// Uniform4i writes an ivec4 uniform array of len(src)/4 elements. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func Uniform4iv(dst Uniform, src []int32) { - gl.Uniform4iv(dst.Value, int32(len(src)/4), &src[0]) -} - -// UniformMatrix2fv writes 2x2 matrices. Each matrix uses four -// float32 values, so the number of matrices written is len(src)/4. -// -// Each matrix must be supplied in column major order. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func UniformMatrix2fv(dst Uniform, src []float32) { - gl.UniformMatrix2fv(dst.Value, int32(len(src)/(2*2)), false, &src[0]) -} - -// UniformMatrix3fv writes 3x3 matrices. Each matrix uses nine -// float32 values, so the number of matrices written is len(src)/9. -// -// Each matrix must be supplied in column major order. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func UniformMatrix3fv(dst Uniform, src []float32) { - gl.UniformMatrix3fv(dst.Value, int32(len(src)/(3*3)), false, &src[0]) -} - -// UniformMatrix4fv writes 4x4 matrices. Each matrix uses 16 -// float32 values, so the number of matrices written is len(src)/16. -// -// Each matrix must be supplied in column major order. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml -func UniformMatrix4fv(dst Uniform, src []float32) { - gl.UniformMatrix4fv(dst.Value, int32(len(src)/(4*4)), false, &src[0]) -} - -// UseProgram sets the active program. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glUseProgram.xhtml -func UseProgram(p Program) { - gl.UseProgram(p.Value) -} - -// ValidateProgram checks to see whether the executables contained in -// program can execute given the current OpenGL state. -// -// Typically only used for debugging. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glValidateProgram.xhtml -func ValidateProgram(p Program) { - gl.ValidateProgram(uint32(p.Value)) -} - -// VertexAttrib1f writes a float vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttrib.xhtml -func VertexAttrib1f(dst Attrib, x float32) { - gl.VertexAttrib1f(uint32(dst.Value), x) -} - -// VertexAttrib1fv writes a float vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttrib.xhtml -func VertexAttrib1fv(dst Attrib, src []float32) { - gl.VertexAttrib1fv(uint32(dst.Value), &src[0]) -} - -// VertexAttrib2f writes a vec2 vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttrib.xhtml -func VertexAttrib2f(dst Attrib, x, y float32) { - gl.VertexAttrib2f(uint32(dst.Value), x, y) -} - -// VertexAttrib2fv writes a vec2 vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttrib.xhtml -func VertexAttrib2fv(dst Attrib, src []float32) { - gl.VertexAttrib2fv(uint32(dst.Value), &src[0]) -} - -// VertexAttrib3f writes a vec3 vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttrib.xhtml -func VertexAttrib3f(dst Attrib, x, y, z float32) { - gl.VertexAttrib3f(uint32(dst.Value), x, y, z) -} - -// VertexAttrib3fv writes a vec3 vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttrib.xhtml -func VertexAttrib3fv(dst Attrib, src []float32) { - gl.VertexAttrib3fv(uint32(dst.Value), &src[0]) -} - -// VertexAttrib4f writes a vec4 vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttrib.xhtml -func VertexAttrib4f(dst Attrib, x, y, z, w float32) { - gl.VertexAttrib4f(uint32(dst.Value), x, y, z, w) -} - -// VertexAttrib4fv writes a vec4 vertex attribute. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttrib.xhtml -func VertexAttrib4fv(dst Attrib, src []float32) { - gl.VertexAttrib4fv(uint32(dst.Value), &src[0]) -} - -// VertexAttribPointer uses a bound buffer to define vertex attribute data. -// -// Direct use of VertexAttribPointer to load data into OpenGL is not -// supported via the Go bindings. Instead, use BindBuffer with an -// ARRAY_BUFFER and then fill it using BufferData. -// -// The size argument specifies the number of components per attribute, -// between 1-4. The stride argument specifies the byte offset between -// consecutive vertex attributes. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glVertexAttribPointer.xhtml -func VertexAttribPointer(dst Attrib, size int, ty Enum, normalized bool, stride, offset int) { - gl.VertexAttribPointer(uint32(dst.Value), int32(size), uint32(ty), normalized, int32(stride), gl.PtrOffset(offset)) -} - -// Viewport sets the viewport, an affine transformation that -// normalizes device coordinates to window coordinates. -// -// http://www.khronos.org/opengles/sdk/docs/man3/html/glViewport.xhtml -func Viewport(x, y, width, height int) { - gl.Viewport(int32(x), int32(y), int32(width), int32(height)) -} diff --git a/vendor/github.com/goxjs/gl/gl_opengles.go b/vendor/github.com/goxjs/gl/gl_opengles.go deleted file mode 100644 index 971fb5d..0000000 --- a/vendor/github.com/goxjs/gl/gl_opengles.go +++ /dev/null @@ -1,705 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build darwin linux -// +build arm arm64 - -package gl - -/* -#include - -#ifdef os_darwin_arm -#include -#endif -#ifdef os_linux_arm -#include -#endif -*/ -import "C" - -import "unsafe" - -var ContextWatcher contextWatcher - -type contextWatcher struct{} - -func (contextWatcher) OnMakeCurrent(context interface{}) {} -func (contextWatcher) OnDetach() {} - -func ActiveTexture(texture Enum) { - C.glActiveTexture(texture.c()) -} - -func AttachShader(p Program, s Shader) { - C.glAttachShader(p.c(), s.c()) -} - -func BindAttribLocation(p Program, a Attrib, name string) { - str := unsafe.Pointer(C.CString(name)) - defer C.free(str) - C.glBindAttribLocation(p.c(), a.c(), (*C.GLchar)(str)) -} - -func BindBuffer(target Enum, b Buffer) { - C.glBindBuffer(target.c(), b.c()) -} - -func BindFramebuffer(target Enum, fb Framebuffer) { - C.glBindFramebuffer(target.c(), fb.c()) -} - -func BindRenderbuffer(target Enum, rb Renderbuffer) { - C.glBindRenderbuffer(target.c(), rb.c()) -} - -func BindTexture(target Enum, t Texture) { - C.glBindTexture(target.c(), t.c()) -} - -func BlendColor(red, green, blue, alpha float32) { - blendColor(red, green, blue, alpha) -} - -func BlendEquation(mode Enum) { - C.glBlendEquation(mode.c()) -} - -func BlendEquationSeparate(modeRGB, modeAlpha Enum) { - C.glBlendEquationSeparate(modeRGB.c(), modeAlpha.c()) -} - -func BlendFunc(sfactor, dfactor Enum) { - C.glBlendFunc(sfactor.c(), dfactor.c()) -} - -func BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha Enum) { - C.glBlendFuncSeparate(sfactorRGB.c(), dfactorRGB.c(), sfactorAlpha.c(), dfactorAlpha.c()) -} - -func BufferData(target Enum, src []byte, usage Enum) { - C.glBufferData(target.c(), C.GLsizeiptr(len(src)), unsafe.Pointer(&src[0]), usage.c()) -} - -func BufferInit(target Enum, size int, usage Enum) { - C.glBufferData(target.c(), C.GLsizeiptr(size), nil, usage.c()) -} - -func BufferSubData(target Enum, offset int, data []byte) { - C.glBufferSubData(target.c(), C.GLintptr(offset), C.GLsizeiptr(len(data)), unsafe.Pointer(&data[0])) -} - -func CheckFramebufferStatus(target Enum) Enum { - return Enum(C.glCheckFramebufferStatus(target.c())) -} - -func Clear(mask Enum) { - C.glClear(C.GLbitfield(mask)) -} - -func ClearColor(red, green, blue, alpha float32) { - clearColor(red, green, blue, alpha) -} - -func ClearDepthf(d float32) { - clearDepthf(d) -} - -func ClearStencil(s int) { - C.glClearStencil(C.GLint(s)) -} - -func ColorMask(red, green, blue, alpha bool) { - C.glColorMask(glBoolean(red), glBoolean(green), glBoolean(blue), glBoolean(alpha)) -} - -func CompileShader(s Shader) { - C.glCompileShader(s.c()) -} - -func CompressedTexImage2D(target Enum, level int, internalformat Enum, width, height, border int, data []byte) { - C.glCompressedTexImage2D(target.c(), C.GLint(level), internalformat.c(), C.GLsizei(width), C.GLsizei(height), C.GLint(border), C.GLsizei(len(data)), unsafe.Pointer(&data[0])) -} - -func CompressedTexSubImage2D(target Enum, level, xoffset, yoffset, width, height int, format Enum, data []byte) { - C.glCompressedTexSubImage2D(target.c(), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLsizei(width), C.GLsizei(height), format.c(), C.GLsizei(len(data)), unsafe.Pointer(&data[0])) -} - -func CopyTexImage2D(target Enum, level int, internalformat Enum, x, y, width, height, border int) { - C.glCopyTexImage2D(target.c(), C.GLint(level), internalformat.c(), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), C.GLint(border)) -} - -func CopyTexSubImage2D(target Enum, level, xoffset, yoffset, x, y, width, height int) { - C.glCopyTexSubImage2D(target.c(), C.GLint(level), C.GLint(xoffset), C.GLint(yoffset), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height)) -} - -func CreateBuffer() Buffer { - var b Buffer - C.glGenBuffers(1, (*C.GLuint)(&b.Value)) - return b -} - -func CreateFramebuffer() Framebuffer { - var b Framebuffer - C.glGenFramebuffers(1, (*C.GLuint)(&b.Value)) - return b -} - -func CreateProgram() Program { - return Program{Value: uint32(C.glCreateProgram())} -} - -func CreateRenderbuffer() Renderbuffer { - var b Renderbuffer - C.glGenRenderbuffers(1, (*C.GLuint)(&b.Value)) - return b -} - -func CreateShader(ty Enum) Shader { - return Shader{Value: uint32(C.glCreateShader(ty.c()))} -} - -func CreateTexture() Texture { - var t Texture - C.glGenTextures(1, (*C.GLuint)(&t.Value)) - return t -} - -func CullFace(mode Enum) { - C.glCullFace(mode.c()) -} - -func DeleteBuffer(v Buffer) { - C.glDeleteBuffers(1, (*C.GLuint)(&v.Value)) -} - -func DeleteFramebuffer(v Framebuffer) { - C.glDeleteFramebuffers(1, (*C.GLuint)(&v.Value)) -} - -func DeleteProgram(p Program) { - C.glDeleteProgram(p.c()) -} - -func DeleteRenderbuffer(v Renderbuffer) { - C.glDeleteRenderbuffers(1, (*C.GLuint)(&v.Value)) -} - -func DeleteShader(s Shader) { - C.glDeleteShader(s.c()) -} - -func DeleteTexture(v Texture) { - C.glDeleteTextures(1, (*C.GLuint)(&v.Value)) -} - -func DepthFunc(fn Enum) { - C.glDepthFunc(fn.c()) -} - -func DepthMask(flag bool) { - C.glDepthMask(glBoolean(flag)) -} - -func DepthRangef(n, f float32) { - depthRangef(n, f) -} - -func DetachShader(p Program, s Shader) { - C.glDetachShader(p.c(), s.c()) -} - -func Disable(cap Enum) { - C.glDisable(cap.c()) -} - -func DisableVertexAttribArray(a Attrib) { - C.glDisableVertexAttribArray(a.c()) -} - -func DrawArrays(mode Enum, first, count int) { - C.glDrawArrays(mode.c(), C.GLint(first), C.GLsizei(count)) -} - -func DrawElements(mode Enum, count int, ty Enum, offset int) { - C.glDrawElements(mode.c(), C.GLsizei(count), ty.c(), unsafe.Pointer(uintptr(offset))) -} - -func Enable(cap Enum) { - C.glEnable(cap.c()) -} - -func EnableVertexAttribArray(a Attrib) { - C.glEnableVertexAttribArray(a.c()) -} - -func Finish() { - C.glFinish() -} - -func Flush() { - C.glFlush() -} - -func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) { - C.glFramebufferRenderbuffer(target.c(), attachment.c(), rbTarget.c(), rb.c()) -} - -func FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) { - C.glFramebufferTexture2D(target.c(), attachment.c(), texTarget.c(), t.c(), C.GLint(level)) -} - -func FrontFace(mode Enum) { - C.glFrontFace(mode.c()) -} - -func GenerateMipmap(target Enum) { - C.glGenerateMipmap(target.c()) -} - -func GetActiveAttrib(p Program, index uint32) (name string, size int, ty Enum) { - bufSize := GetProgrami(p, ACTIVE_ATTRIBUTE_MAX_LENGTH) - buf := C.malloc(C.size_t(bufSize)) - defer C.free(buf) - - var cSize C.GLint - var cType C.GLenum - C.glGetActiveAttrib(p.c(), C.GLuint(index), C.GLsizei(bufSize), nil, &cSize, &cType, (*C.GLchar)(buf)) - return C.GoString((*C.char)(buf)), int(cSize), Enum(cType) -} - -func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) { - bufSize := GetProgrami(p, ACTIVE_UNIFORM_MAX_LENGTH) - buf := C.malloc(C.size_t(bufSize)) - defer C.free(buf) - - var cSize C.GLint - var cType C.GLenum - - C.glGetActiveUniform(p.c(), C.GLuint(index), C.GLsizei(bufSize), nil, &cSize, &cType, (*C.GLchar)(buf)) - return C.GoString((*C.char)(buf)), int(cSize), Enum(cType) -} - -func GetAttachedShaders(p Program) []Shader { - shadersLen := GetProgrami(p, ATTACHED_SHADERS) - var n C.GLsizei - buf := make([]C.GLuint, shadersLen) - C.glGetAttachedShaders(p.c(), C.GLsizei(shadersLen), &n, &buf[0]) - buf = buf[:int(n)] - shaders := make([]Shader, len(buf)) - for i, s := range buf { - shaders[i] = Shader{Value: uint32(s)} - } - return shaders -} - -func GetAttribLocation(p Program, name string) Attrib { - str := unsafe.Pointer(C.CString(name)) - defer C.free(str) - return Attrib{Value: uint(C.glGetAttribLocation(p.c(), (*C.GLchar)(str)))} -} - -func GetBooleanv(dst []bool, pname Enum) { - buf := make([]C.GLboolean, len(dst)) - C.glGetBooleanv(pname.c(), &buf[0]) - for i, v := range buf { - dst[i] = v != 0 - } -} - -func GetFloatv(dst []float32, pname Enum) { - C.glGetFloatv(pname.c(), (*C.GLfloat)(&dst[0])) -} - -func GetIntegerv(pname Enum, data []int32) { - buf := make([]C.GLint, len(data)) - C.glGetIntegerv(pname.c(), &buf[0]) - for i, v := range buf { - data[i] = int32(v) - } -} - -func GetInteger(pname Enum) int { - var v C.GLint - C.glGetIntegerv(pname.c(), &v) - return int(v) -} - -func GetBufferParameteri(target, pname Enum) int { - var params C.GLint - C.glGetBufferParameteriv(target.c(), pname.c(), ¶ms) - return int(params) -} - -func GetError() Enum { - return Enum(C.glGetError()) -} - -func GetBoundFramebuffer() Framebuffer { - println("GetBoundFramebuffer: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - var b C.GLint - C.glGetIntegerv(FRAMEBUFFER_BINDING, &b) - return Framebuffer{Value: uint32(b)} -} - -func GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int { - var params C.GLint - C.glGetFramebufferAttachmentParameteriv(target.c(), attachment.c(), pname.c(), ¶ms) - return int(params) -} - -func GetProgrami(p Program, pname Enum) int { - var params C.GLint - C.glGetProgramiv(p.c(), pname.c(), ¶ms) - return int(params) -} - -func GetProgramInfoLog(p Program) string { - infoLen := GetProgrami(p, INFO_LOG_LENGTH) - buf := C.malloc(C.size_t(infoLen)) - C.free(buf) - C.glGetProgramInfoLog(p.c(), C.GLsizei(infoLen), nil, (*C.GLchar)(buf)) - return C.GoString((*C.char)(buf)) -} - -func GetRenderbufferParameteri(target, pname Enum) int { - var params C.GLint - C.glGetRenderbufferParameteriv(target.c(), pname.c(), ¶ms) - return int(params) -} - -func GetShaderi(s Shader, pname Enum) int { - var params C.GLint - C.glGetShaderiv(s.c(), pname.c(), ¶ms) - return int(params) -} - -func GetShaderInfoLog(s Shader) string { - infoLen := GetShaderi(s, INFO_LOG_LENGTH) - buf := C.malloc(C.size_t(infoLen)) - defer C.free(buf) - C.glGetShaderInfoLog(s.c(), C.GLsizei(infoLen), nil, (*C.GLchar)(buf)) - return C.GoString((*C.char)(buf)) -} - -func GetShaderPrecisionFormat(shadertype, precisiontype Enum) (rangeLow, rangeHigh, precision int) { - const glintSize = 4 - var cRange [2]C.GLint - var cPrecision C.GLint - - C.glGetShaderPrecisionFormat(shadertype.c(), precisiontype.c(), &cRange[0], &cPrecision) - return int(cRange[0]), int(cRange[1]), int(cPrecision) -} - -func GetShaderSource(s Shader) string { - sourceLen := GetShaderi(s, SHADER_SOURCE_LENGTH) - if sourceLen == 0 { - return "" - } - buf := C.malloc(C.size_t(sourceLen)) - defer C.free(buf) - C.glGetShaderSource(s.c(), C.GLsizei(sourceLen), nil, (*C.GLchar)(buf)) - return C.GoString((*C.char)(buf)) -} - -func GetString(pname Enum) string { - // Bounce through unsafe.Pointer, because on some platforms - // GetString returns an *unsigned char which doesn't convert. - return C.GoString((*C.char)((unsafe.Pointer)(C.glGetString(pname.c())))) -} - -func GetTexParameterfv(dst []float32, target, pname Enum) { - C.glGetTexParameterfv(target.c(), pname.c(), (*C.GLfloat)(&dst[0])) -} - -func GetTexParameteriv(dst []int32, target, pname Enum) { - C.glGetTexParameteriv(target.c(), pname.c(), (*C.GLint)(&dst[0])) -} - -func GetUniformfv(dst []float32, src Uniform, p Program) { - C.glGetUniformfv(p.c(), src.c(), (*C.GLfloat)(&dst[0])) -} - -func GetUniformiv(dst []int32, src Uniform, p Program) { - C.glGetUniformiv(p.c(), src.c(), (*C.GLint)(&dst[0])) -} - -func GetUniformLocation(p Program, name string) Uniform { - str := unsafe.Pointer(C.CString(name)) - defer C.free(str) - return Uniform{Value: int32(C.glGetUniformLocation(p.c(), (*C.GLchar)(str)))} -} - -func GetVertexAttribf(src Attrib, pname Enum) float32 { - var params C.GLfloat - C.glGetVertexAttribfv(src.c(), pname.c(), ¶ms) - return float32(params) -} - -func GetVertexAttribfv(dst []float32, src Attrib, pname Enum) { - C.glGetVertexAttribfv(src.c(), pname.c(), (*C.GLfloat)(&dst[0])) -} - -func GetVertexAttribi(src Attrib, pname Enum) int32 { - var params C.GLint - C.glGetVertexAttribiv(src.c(), pname.c(), ¶ms) - return int32(params) -} - -func GetVertexAttribiv(dst []int32, src Attrib, pname Enum) { - C.glGetVertexAttribiv(src.c(), pname.c(), (*C.GLint)(&dst[0])) -} - -func Hint(target, mode Enum) { - C.glHint(target.c(), mode.c()) -} - -func IsBuffer(b Buffer) bool { - return C.glIsBuffer(b.c()) != 0 -} - -func IsEnabled(cap Enum) bool { - return C.glIsEnabled(cap.c()) != 0 -} - -func IsFramebuffer(fb Framebuffer) bool { - return C.glIsFramebuffer(fb.c()) != 0 -} - -func IsProgram(p Program) bool { - return C.glIsProgram(p.c()) != 0 -} - -func IsRenderbuffer(rb Renderbuffer) bool { - return C.glIsRenderbuffer(rb.c()) != 0 -} - -func IsShader(s Shader) bool { - return C.glIsShader(s.c()) != 0 -} - -func IsTexture(t Texture) bool { - return C.glIsTexture(t.c()) != 0 -} - -func LineWidth(width float32) { - C.glLineWidth(C.GLfloat(width)) -} - -func LinkProgram(p Program) { - C.glLinkProgram(p.c()) -} - -func PixelStorei(pname Enum, param int32) { - C.glPixelStorei(pname.c(), C.GLint(param)) -} - -func PolygonOffset(factor, units float32) { - C.glPolygonOffset(C.GLfloat(factor), C.GLfloat(units)) -} - -func ReadPixels(dst []byte, x, y, width, height int, format, ty Enum) { - C.glReadPixels(C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), format.c(), ty.c(), unsafe.Pointer(&dst[0])) -} - -func ReleaseShaderCompiler() { - C.glReleaseShaderCompiler() -} - -func RenderbufferStorage(target, internalFormat Enum, width, height int) { - C.glRenderbufferStorage(target.c(), internalFormat.c(), C.GLsizei(width), C.GLsizei(height)) -} - -func SampleCoverage(value float32, invert bool) { - sampleCoverage(value, invert) -} - -func Scissor(x, y, width, height int32) { - C.glScissor(C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height)) -} - -func ShaderSource(s Shader, src string) { - str := (*C.GLchar)(C.CString(src)) - defer C.free(unsafe.Pointer(str)) - C.glShaderSource(s.c(), 1, &str, nil) -} - -func StencilFunc(fn Enum, ref int, mask uint32) { - C.glStencilFunc(fn.c(), C.GLint(ref), C.GLuint(mask)) -} - -func StencilFuncSeparate(face, fn Enum, ref int, mask uint32) { - C.glStencilFuncSeparate(face.c(), fn.c(), C.GLint(ref), C.GLuint(mask)) -} - -func StencilMask(mask uint32) { - C.glStencilMask(C.GLuint(mask)) -} - -func StencilMaskSeparate(face Enum, mask uint32) { - C.glStencilMaskSeparate(face.c(), C.GLuint(mask)) -} - -func StencilOp(fail, zfail, zpass Enum) { - C.glStencilOp(fail.c(), zfail.c(), zpass.c()) -} - -func StencilOpSeparate(face, sfail, dpfail, dppass Enum) { - C.glStencilOpSeparate(face.c(), sfail.c(), dpfail.c(), dppass.c()) -} - -func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) { - p := unsafe.Pointer(nil) - if len(data) > 0 { - p = unsafe.Pointer(&data[0]) - } - C.glTexImage2D(target.c(), C.GLint(level), C.GLint(format), C.GLsizei(width), C.GLsizei(height), 0, format.c(), ty.c(), p) -} - -func TexSubImage2D(target Enum, level int, x, y, width, height int, format, ty Enum, data []byte) { - C.glTexSubImage2D(target.c(), C.GLint(level), C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height), format.c(), ty.c(), unsafe.Pointer(&data[0])) -} - -func TexParameterf(target, pname Enum, param float32) { - C.glTexParameterf(target.c(), pname.c(), C.GLfloat(param)) -} - -func TexParameterfv(target, pname Enum, params []float32) { - C.glTexParameterfv(target.c(), pname.c(), (*C.GLfloat)(¶ms[0])) -} - -func TexParameteri(target, pname Enum, param int) { - C.glTexParameteri(target.c(), pname.c(), C.GLint(param)) -} - -func TexParameteriv(target, pname Enum, params []int32) { - C.glTexParameteriv(target.c(), pname.c(), (*C.GLint)(¶ms[0])) -} - -func Uniform1f(dst Uniform, v float32) { - C.glUniform1f(dst.c(), C.GLfloat(v)) -} - -func Uniform1fv(dst Uniform, src []float32) { - C.glUniform1fv(dst.c(), C.GLsizei(len(src)), (*C.GLfloat)(&src[0])) -} - -func Uniform1i(dst Uniform, v int) { - C.glUniform1i(dst.c(), C.GLint(v)) -} - -func Uniform1iv(dst Uniform, src []int32) { - C.glUniform1iv(dst.c(), C.GLsizei(len(src)), (*C.GLint)(&src[0])) -} - -func Uniform2f(dst Uniform, v0, v1 float32) { - C.glUniform2f(dst.c(), C.GLfloat(v0), C.GLfloat(v1)) -} - -func Uniform2fv(dst Uniform, src []float32) { - C.glUniform2fv(dst.c(), C.GLsizei(len(src)/2), (*C.GLfloat)(&src[0])) -} - -func Uniform2i(dst Uniform, v0, v1 int) { - C.glUniform2i(dst.c(), C.GLint(v0), C.GLint(v1)) -} - -func Uniform2iv(dst Uniform, src []int32) { - C.glUniform2iv(dst.c(), C.GLsizei(len(src)/2), (*C.GLint)(&src[0])) -} - -func Uniform3f(dst Uniform, v0, v1, v2 float32) { - C.glUniform3f(dst.c(), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2)) -} - -func Uniform3fv(dst Uniform, src []float32) { - C.glUniform3fv(dst.c(), C.GLsizei(len(src)/3), (*C.GLfloat)(&src[0])) -} - -func Uniform3i(dst Uniform, v0, v1, v2 int32) { - C.glUniform3i(dst.c(), C.GLint(v0), C.GLint(v1), C.GLint(v2)) -} - -func Uniform3iv(dst Uniform, src []int32) { - C.glUniform3iv(dst.c(), C.GLsizei(len(src)/3), (*C.GLint)(&src[0])) -} - -func Uniform4f(dst Uniform, v0, v1, v2, v3 float32) { - C.glUniform4f(dst.c(), C.GLfloat(v0), C.GLfloat(v1), C.GLfloat(v2), C.GLfloat(v3)) -} - -func Uniform4fv(dst Uniform, src []float32) { - C.glUniform4fv(dst.c(), C.GLsizei(len(src)/4), (*C.GLfloat)(&src[0])) -} - -func Uniform4i(dst Uniform, v0, v1, v2, v3 int32) { - C.glUniform4i(dst.c(), C.GLint(v0), C.GLint(v1), C.GLint(v2), C.GLint(v3)) -} - -func Uniform4iv(dst Uniform, src []int32) { - C.glUniform4iv(dst.c(), C.GLsizei(len(src)/4), (*C.GLint)(&src[0])) -} - -func UniformMatrix2fv(dst Uniform, src []float32) { - // OpenGL ES 2 does not support transpose. - C.glUniformMatrix2fv(dst.c(), C.GLsizei(len(src)/4), 0, (*C.GLfloat)(&src[0])) -} - -func UniformMatrix3fv(dst Uniform, src []float32) { - C.glUniformMatrix3fv(dst.c(), C.GLsizei(len(src)/9), 0, (*C.GLfloat)(&src[0])) -} - -func UniformMatrix4fv(dst Uniform, src []float32) { - C.glUniformMatrix4fv(dst.c(), C.GLsizei(len(src)/16), 0, (*C.GLfloat)(&src[0])) -} - -func UseProgram(p Program) { - C.glUseProgram(p.c()) -} - -func ValidateProgram(p Program) { - C.glValidateProgram(p.c()) -} - -func VertexAttrib1f(dst Attrib, x float32) { - C.glVertexAttrib1f(dst.c(), C.GLfloat(x)) -} - -func VertexAttrib1fv(dst Attrib, src []float32) { - C.glVertexAttrib1fv(dst.c(), (*C.GLfloat)(&src[0])) -} - -func VertexAttrib2f(dst Attrib, x, y float32) { - C.glVertexAttrib2f(dst.c(), C.GLfloat(x), C.GLfloat(y)) -} - -func VertexAttrib2fv(dst Attrib, src []float32) { - C.glVertexAttrib2fv(dst.c(), (*C.GLfloat)(&src[0])) -} - -func VertexAttrib3f(dst Attrib, x, y, z float32) { - C.glVertexAttrib3f(dst.c(), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z)) -} - -func VertexAttrib3fv(dst Attrib, src []float32) { - C.glVertexAttrib3fv(dst.c(), (*C.GLfloat)(&src[0])) -} - -func VertexAttrib4f(dst Attrib, x, y, z, w float32) { - C.glVertexAttrib4f(dst.c(), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z), C.GLfloat(w)) -} - -func VertexAttrib4fv(dst Attrib, src []float32) { - C.glVertexAttrib4fv(dst.c(), (*C.GLfloat)(&src[0])) -} - -func VertexAttribPointer(dst Attrib, size int, ty Enum, normalized bool, stride, offset int) { - n := glBoolean(normalized) - s := C.GLsizei(stride) - C.glVertexAttribPointer(dst.c(), C.GLint(size), ty.c(), n, s, unsafe.Pointer(uintptr(offset))) -} - -func Viewport(x, y, width, height int) { - C.glViewport(C.GLint(x), C.GLint(y), C.GLsizei(width), C.GLsizei(height)) -} diff --git a/vendor/github.com/goxjs/gl/gl_webgl.go b/vendor/github.com/goxjs/gl/gl_webgl.go deleted file mode 100644 index 7d6a444..0000000 --- a/vendor/github.com/goxjs/gl/gl_webgl.go +++ /dev/null @@ -1,697 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build js - -package gl - -import ( - "encoding/binary" - "math" - - "github.com/gopherjs/gopherjs/js" -) - -var ContextWatcher contextWatcher - -type contextWatcher struct{} - -func (contextWatcher) OnMakeCurrent(context interface{}) { - // context must be a WebGLRenderingContext *js.Object. - c = context.(*js.Object) -} -func (contextWatcher) OnDetach() { - c = nil -} - -// c is the current WebGL context, or nil if there is no current context. -var c *js.Object - -func ActiveTexture(texture Enum) { - c.Call("activeTexture", texture) -} - -func AttachShader(p Program, s Shader) { - c.Call("attachShader", p.Object, s.Object) -} - -func BindAttribLocation(p Program, a Attrib, name string) { - c.Call("bindAttribLocation", p.Object, a.Value, name) -} - -func BindBuffer(target Enum, b Buffer) { - c.Call("bindBuffer", target, b.Object) -} - -func BindFramebuffer(target Enum, fb Framebuffer) { - c.Call("bindFramebuffer", target, fb.Object) -} - -func BindRenderbuffer(target Enum, rb Renderbuffer) { - c.Call("bindRenderbuffer", target, rb.Object) -} - -func BindTexture(target Enum, t Texture) { - c.Call("bindTexture", target, t.Object) -} - -func BlendColor(red, green, blue, alpha float32) { - c.Call("blendColor", red, green, blue, alpha) -} - -func BlendEquation(mode Enum) { - c.Call("blendEquation", mode) -} - -func BlendEquationSeparate(modeRGB, modeAlpha Enum) { - c.Call("blendEquationSeparate", modeRGB, modeAlpha) -} - -func BlendFunc(sfactor, dfactor Enum) { - c.Call("blendFunc", sfactor, dfactor) -} - -func BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha Enum) { - c.Call("blendFuncSeparate", sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha) -} - -func BufferData(target Enum, src []byte, usage Enum) { - c.Call("bufferData", target, src, usage) -} - -func BufferInit(target Enum, size int, usage Enum) { - c.Call("bufferData", target, size, usage) -} - -func BufferSubData(target Enum, offset int, data []byte) { - c.Call("bufferSubData", target, offset, data) -} - -func CheckFramebufferStatus(target Enum) Enum { - return Enum(c.Call("checkFramebufferStatus", target).Int()) -} - -func Clear(mask Enum) { - c.Call("clear", mask) -} - -func ClearColor(red, green, blue, alpha float32) { - c.Call("clearColor", red, green, blue, alpha) -} - -func ClearDepthf(d float32) { - c.Call("clearDepth", d) -} - -func ClearStencil(s int) { - c.Call("clearStencil", s) -} - -func ColorMask(red, green, blue, alpha bool) { - c.Call("colorMask", red, green, blue, alpha) -} - -func CompileShader(s Shader) { - c.Call("compileShader", s.Object) -} - -func CompressedTexImage2D(target Enum, level int, internalformat Enum, width, height, border int, data []byte) { - c.Call("compressedTexImage2D", target, level, internalformat, width, height, border, data) -} - -func CompressedTexSubImage2D(target Enum, level, xoffset, yoffset, width, height int, format Enum, data []byte) { - c.Call("compressedTexSubImage2D", target, level, xoffset, yoffset, width, height, format, data) -} - -func CopyTexImage2D(target Enum, level int, internalformat Enum, x, y, width, height, border int) { - c.Call("copyTexImage2D", target, level, internalformat, x, y, width, height, border) -} - -func CopyTexSubImage2D(target Enum, level, xoffset, yoffset, x, y, width, height int) { - c.Call("copyTexSubImage2D", target, level, xoffset, yoffset, x, y, width, height) -} - -func CreateBuffer() Buffer { - return Buffer{Object: c.Call("createBuffer")} -} - -func CreateFramebuffer() Framebuffer { - return Framebuffer{Object: c.Call("createFramebuffer")} -} - -func CreateProgram() Program { - return Program{Object: c.Call("createProgram")} -} - -func CreateRenderbuffer() Renderbuffer { - return Renderbuffer{Object: c.Call("createRenderbuffer")} -} - -func CreateShader(ty Enum) Shader { - return Shader{Object: c.Call("createShader", ty)} -} - -func CreateTexture() Texture { - return Texture{Object: c.Call("createTexture")} -} - -func CullFace(mode Enum) { - c.Call("cullFace", mode) -} - -func DeleteBuffer(v Buffer) { - c.Call("deleteBuffer", v.Object) -} - -func DeleteFramebuffer(v Framebuffer) { - c.Call("deleteFramebuffer", v.Object) -} - -func DeleteProgram(p Program) { - c.Call("deleteProgram", p.Object) -} - -func DeleteRenderbuffer(v Renderbuffer) { - c.Call("deleteRenderbuffer", v.Object) -} - -func DeleteShader(s Shader) { - c.Call("deleteShader", s.Object) -} - -func DeleteTexture(v Texture) { - c.Call("deleteTexture", v.Object) -} - -func DepthFunc(fn Enum) { - c.Call("depthFunc", fn) -} - -func DepthMask(flag bool) { - c.Call("depthMask", flag) -} - -func DepthRangef(n, f float32) { - c.Call("depthRange", n, f) -} - -func DetachShader(p Program, s Shader) { - c.Call("detachShader", p.Object, s.Object) -} - -func Disable(cap Enum) { - c.Call("disable", cap) -} - -func DisableVertexAttribArray(a Attrib) { - c.Call("disableVertexAttribArray", a.Value) -} - -func DrawArrays(mode Enum, first, count int) { - c.Call("drawArrays", mode, first, count) -} - -func DrawElements(mode Enum, count int, ty Enum, offset int) { - c.Call("drawElements", mode, count, ty, offset) -} - -func Enable(cap Enum) { - c.Call("enable", cap) -} - -func EnableVertexAttribArray(a Attrib) { - c.Call("enableVertexAttribArray", a.Value) -} - -func Finish() { - c.Call("finish") -} - -func Flush() { - c.Call("flush") -} - -func FramebufferRenderbuffer(target, attachment, rbTarget Enum, rb Renderbuffer) { - c.Call("framebufferRenderbuffer", target, attachment, rbTarget, rb.Object) -} - -func FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) { - c.Call("framebufferTexture2D", target, attachment, texTarget, t.Object, level) -} - -func FrontFace(mode Enum) { - c.Call("frontFace", mode) -} - -func GenerateMipmap(target Enum) { - c.Call("generateMipmap", target) -} - -type activeInfo struct { - *js.Object - Size int `js:"size"` - Type int `js:"type"` - Name string `js:"name"` -} - -func GetActiveAttrib(p Program, index uint32) (name string, size int, ty Enum) { - ai := activeInfo{Object: c.Call("getActiveAttrib", p.Object, index)} - return ai.Name, ai.Size, Enum(ai.Type) -} - -func GetActiveUniform(p Program, index uint32) (name string, size int, ty Enum) { - ai := activeInfo{Object: c.Call("getActiveUniform", p.Object, index)} - return ai.Name, ai.Size, Enum(ai.Type) -} - -func GetAttachedShaders(p Program) []Shader { - objs := c.Call("getAttachedShaders", p.Object) - shaders := make([]Shader, objs.Length()) - for i := 0; i < objs.Length(); i++ { - shaders[i] = Shader{Object: objs.Index(i)} - } - return shaders -} - -func GetAttribLocation(p Program, name string) Attrib { - return Attrib{Value: c.Call("getAttribLocation", p.Object, name).Int()} -} - -func GetBooleanv(dst []bool, pname Enum) { - println("GetBooleanv: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - result := c.Call("getParameter", pname) - length := result.Length() - for i := 0; i < length; i++ { - dst[i] = result.Index(i).Bool() - } -} - -func GetFloatv(dst []float32, pname Enum) { - println("GetFloatv: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - result := c.Call("getParameter", pname) - length := result.Length() - for i := 0; i < length; i++ { - dst[i] = float32(result.Index(i).Float()) - } -} - -func GetIntegerv(pname Enum, data []int32) { - result := c.Call("getParameter", pname) - length := result.Length() - for i := 0; i < length; i++ { - data[i] = int32(result.Index(i).Int()) - } -} - -func GetInteger(pname Enum) int { - return c.Call("getParameter", pname).Int() -} - -func GetBufferParameteri(target, pname Enum) int { - return c.Call("getBufferParameter", target, pname).Int() -} - -func GetError() Enum { - return Enum(c.Call("getError").Int()) -} - -func GetBoundFramebuffer() Framebuffer { - return Framebuffer{Object: c.Call("getParameter", FRAMEBUFFER_BINDING)} -} - -func GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int { - return c.Call("getFramebufferAttachmentParameter", target, attachment, pname).Int() -} - -func GetProgrami(p Program, pname Enum) int { - switch pname { - case DELETE_STATUS, LINK_STATUS, VALIDATE_STATUS: - if c.Call("getProgramParameter", p.Object, pname).Bool() { - return TRUE - } - return FALSE - default: - return c.Call("getProgramParameter", p.Object, pname).Int() - } -} - -func GetProgramInfoLog(p Program) string { - return c.Call("getProgramInfoLog", p.Object).String() -} - -func GetRenderbufferParameteri(target, pname Enum) int { - return c.Call("getRenderbufferParameter", target, pname).Int() -} - -func GetShaderi(s Shader, pname Enum) int { - switch pname { - case DELETE_STATUS, COMPILE_STATUS: - if c.Call("getShaderParameter", s.Object, pname).Bool() { - return TRUE - } - return FALSE - default: - return c.Call("getShaderParameter", s.Object, pname).Int() - } -} - -func GetShaderInfoLog(s Shader) string { - return c.Call("getShaderInfoLog", s.Object).String() -} - -func GetShaderPrecisionFormat(shadertype, precisiontype Enum) (rangeMin, rangeMax, precision int) { - println("GetShaderPrecisionFormat: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - format := c.Call("getShaderPrecisionFormat", shadertype, precisiontype) - rangeMin = format.Get("rangeMin").Int() - rangeMax = format.Get("rangeMax").Int() - precision = format.Get("precision").Int() - return -} - -func GetShaderSource(s Shader) string { - return c.Call("getShaderSource", s.Object).String() -} - -func GetString(pname Enum) string { - return c.Call("getParameter", pname).String() -} - -func GetTexParameterfv(dst []float32, target, pname Enum) { - dst[0] = float32(c.Call("getTexParameter", pname).Float()) -} - -func GetTexParameteriv(dst []int32, target, pname Enum) { - dst[0] = int32(c.Call("getTexParameter", pname).Int()) -} - -func GetUniformfv(dst []float32, src Uniform, p Program) { - println("GetUniformfv: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - result := c.Call("getUniform") - length := result.Length() - for i := 0; i < length; i++ { - dst[i] = float32(result.Index(i).Float()) - } -} - -func GetUniformiv(dst []int32, src Uniform, p Program) { - println("GetUniformiv: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - result := c.Call("getUniform") - length := result.Length() - for i := 0; i < length; i++ { - dst[i] = int32(result.Index(i).Int()) - } -} - -func GetUniformLocation(p Program, name string) Uniform { - return Uniform{Object: c.Call("getUniformLocation", p.Object, name)} -} - -func GetVertexAttribf(src Attrib, pname Enum) float32 { - return float32(c.Call("getVertexAttrib", src.Value, pname).Float()) -} - -func GetVertexAttribfv(dst []float32, src Attrib, pname Enum) { - println("GetVertexAttribfv: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - result := c.Call("getVertexAttrib") - length := result.Length() - for i := 0; i < length; i++ { - dst[i] = float32(result.Index(i).Float()) - } -} - -func GetVertexAttribi(src Attrib, pname Enum) int32 { - return int32(c.Call("getVertexAttrib", src.Value, pname).Int()) -} - -func GetVertexAttribiv(dst []int32, src Attrib, pname Enum) { - println("GetVertexAttribiv: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - result := c.Call("getVertexAttrib") - length := result.Length() - for i := 0; i < length; i++ { - dst[i] = int32(result.Index(i).Int()) - } -} - -func Hint(target, mode Enum) { - c.Call("hint", target, mode) -} - -func IsBuffer(b Buffer) bool { - return c.Call("isBuffer", b.Object).Bool() -} - -func IsEnabled(cap Enum) bool { - return c.Call("isEnabled", cap).Bool() -} - -func IsFramebuffer(fb Framebuffer) bool { - return c.Call("isFramebuffer", fb.Object).Bool() -} - -func IsProgram(p Program) bool { - return c.Call("isProgram", p.Object).Bool() -} - -func IsRenderbuffer(rb Renderbuffer) bool { - return c.Call("isRenderbuffer", rb.Object).Bool() -} - -func IsShader(s Shader) bool { - return c.Call("isShader", s.Object).Bool() -} - -func IsTexture(t Texture) bool { - return c.Call("isTexture", t.Object).Bool() -} - -func LineWidth(width float32) { - c.Call("lineWidth", width) -} - -func LinkProgram(p Program) { - c.Call("linkProgram", p.Object) -} - -func PixelStorei(pname Enum, param int32) { - c.Call("pixelStorei", pname, param) -} - -func PolygonOffset(factor, units float32) { - c.Call("polygonOffset", factor, units) -} - -func ReadPixels(dst []byte, x, y, width, height int, format, ty Enum) { - println("ReadPixels: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - if ty == Enum(UNSIGNED_BYTE) { - c.Call("readPixels", x, y, width, height, format, ty, dst) - } else { - tmpDst := make([]float32, len(dst)/4) - c.Call("readPixels", x, y, width, height, format, ty, tmpDst) - for i, f := range tmpDst { - binary.LittleEndian.PutUint32(dst[i*4:], math.Float32bits(f)) - } - } -} - -func ReleaseShaderCompiler() { - // do nothing -} - -func RenderbufferStorage(target, internalFormat Enum, width, height int) { - c.Call("renderbufferStorage", target, internalFormat, width, height) -} - -func SampleCoverage(value float32, invert bool) { - c.Call("sampleCoverage", value, invert) -} - -func Scissor(x, y, width, height int32) { - c.Call("scissor", x, y, width, height) -} - -func ShaderSource(s Shader, src string) { - c.Call("shaderSource", s.Object, src) -} - -func StencilFunc(fn Enum, ref int, mask uint32) { - c.Call("stencilFunc", fn, ref, mask) -} - -func StencilFuncSeparate(face, fn Enum, ref int, mask uint32) { - c.Call("stencilFuncSeparate", face, fn, ref, mask) -} - -func StencilMask(mask uint32) { - c.Call("stencilMask", mask) -} - -func StencilMaskSeparate(face Enum, mask uint32) { - c.Call("stencilMaskSeparate", face, mask) -} - -func StencilOp(fail, zfail, zpass Enum) { - c.Call("stencilOp", fail, zfail, zpass) -} - -func StencilOpSeparate(face, sfail, dpfail, dppass Enum) { - c.Call("stencilOpSeparate", face, sfail, dpfail, dppass) -} - -func TexImage2D(target Enum, level int, width, height int, format Enum, ty Enum, data []byte) { - var p interface{} - if data != nil { - p = data - } - c.Call("texImage2D", target, level, format, width, height, 0, format, ty, p) -} - -func TexSubImage2D(target Enum, level int, x, y, width, height int, format, ty Enum, data []byte) { - c.Call("texSubImage2D", target, level, x, y, width, height, format, ty, data) -} - -func TexParameterf(target, pname Enum, param float32) { - c.Call("texParameterf", target, pname, param) -} - -func TexParameterfv(target, pname Enum, params []float32) { - println("TexParameterfv: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - for _, param := range params { - c.Call("texParameterf", target, pname, param) - } -} - -func TexParameteri(target, pname Enum, param int) { - c.Call("texParameteri", target, pname, param) -} - -func TexParameteriv(target, pname Enum, params []int32) { - println("TexParameteriv: not yet tested (TODO: remove this after it's confirmed to work. Your feedback is welcome.)") - for _, param := range params { - c.Call("texParameteri", target, pname, param) - } -} - -func Uniform1f(dst Uniform, v float32) { - c.Call("uniform1f", dst.Object, v) -} - -func Uniform1fv(dst Uniform, src []float32) { - c.Call("uniform1fv", dst.Object, src) -} - -func Uniform1i(dst Uniform, v int) { - c.Call("uniform1i", dst.Object, v) -} - -func Uniform1iv(dst Uniform, src []int32) { - c.Call("uniform1iv", dst.Object, src) -} - -func Uniform2f(dst Uniform, v0, v1 float32) { - c.Call("uniform2f", dst.Object, v0, v1) -} - -func Uniform2fv(dst Uniform, src []float32) { - c.Call("uniform2fv", dst.Object, src) -} - -func Uniform2i(dst Uniform, v0, v1 int) { - c.Call("uniform2i", dst.Object, v0, v1) -} - -func Uniform2iv(dst Uniform, src []int32) { - c.Call("uniform2iv", dst.Object, src) -} - -func Uniform3f(dst Uniform, v0, v1, v2 float32) { - c.Call("uniform3f", dst.Object, v0, v1, v2) -} - -func Uniform3fv(dst Uniform, src []float32) { - c.Call("uniform3fv", dst.Object, src) -} - -func Uniform3i(dst Uniform, v0, v1, v2 int32) { - c.Call("uniform3i", dst.Object, v0, v1, v2) -} - -func Uniform3iv(dst Uniform, src []int32) { - c.Call("uniform3iv", dst.Object, src) -} - -func Uniform4f(dst Uniform, v0, v1, v2, v3 float32) { - c.Call("uniform4f", dst.Object, v0, v1, v2, v3) -} - -func Uniform4fv(dst Uniform, src []float32) { - c.Call("uniform4fv", dst.Object, src) -} - -func Uniform4i(dst Uniform, v0, v1, v2, v3 int32) { - c.Call("uniform4i", dst.Object, v0, v1, v2, v3) -} - -func Uniform4iv(dst Uniform, src []int32) { - c.Call("uniform4iv", dst.Object, src) -} - -func UniformMatrix2fv(dst Uniform, src []float32) { - c.Call("uniformMatrix2fv", dst.Object, false, src) -} - -func UniformMatrix3fv(dst Uniform, src []float32) { - c.Call("uniformMatrix3fv", dst.Object, false, src) -} - -func UniformMatrix4fv(dst Uniform, src []float32) { - c.Call("uniformMatrix4fv", dst.Object, false, src) -} - -func UseProgram(p Program) { - c.Call("useProgram", p.Object) -} - -func ValidateProgram(p Program) { - c.Call("validateProgram", p.Object) -} - -func VertexAttrib1f(dst Attrib, x float32) { - c.Call("vertexAttrib1f", dst.Value, x) -} - -func VertexAttrib1fv(dst Attrib, src []float32) { - c.Call("vertexAttrib1fv", dst.Value, src) -} - -func VertexAttrib2f(dst Attrib, x, y float32) { - c.Call("vertexAttrib2f", dst.Value, x, y) -} - -func VertexAttrib2fv(dst Attrib, src []float32) { - c.Call("vertexAttrib2fv", dst.Value, src) -} - -func VertexAttrib3f(dst Attrib, x, y, z float32) { - c.Call("vertexAttrib3f", dst.Value, x, y, z) -} - -func VertexAttrib3fv(dst Attrib, src []float32) { - c.Call("vertexAttrib3fv", dst.Value, src) -} - -func VertexAttrib4f(dst Attrib, x, y, z, w float32) { - c.Call("vertexAttrib4f", dst.Value, x, y, z, w) -} - -func VertexAttrib4fv(dst Attrib, src []float32) { - c.Call("vertexAttrib4fv", dst.Value, src) -} - -func VertexAttribPointer(dst Attrib, size int, ty Enum, normalized bool, stride, offset int) { - c.Call("vertexAttribPointer", dst.Value, size, ty, normalized, stride, offset) -} - -func Viewport(x, y, width, height int) { - c.Call("viewport", x, y, width, height) -} diff --git a/vendor/github.com/goxjs/gl/types_opengl.go b/vendor/github.com/goxjs/gl/types_opengl.go deleted file mode 100644 index d8550f2..0000000 --- a/vendor/github.com/goxjs/gl/types_opengl.go +++ /dev/null @@ -1,56 +0,0 @@ -// +build !js - -package gl - -// Enum is equivalent to GLenum, and is normally used with one of the -// constants defined in this package. -type Enum uint32 - -// Attrib identifies the location of a specific attribute variable. -type Attrib struct { - Value uint -} - -// Program identifies a compiled shader program. -type Program struct { - Value uint32 -} - -// Shader identifies a GLSL shader. -type Shader struct { - Value uint32 -} - -// Buffer identifies a GL buffer object. -type Buffer struct { - Value uint32 -} - -// Framebuffer identifies a GL framebuffer. -type Framebuffer struct { - Value uint32 -} - -// A Renderbuffer is a GL object that holds an image in an internal format. -type Renderbuffer struct { - Value uint32 -} - -// A Texture identifies a GL texture unit. -type Texture struct { - Value uint32 -} - -// Uniform identifies the location of a specific uniform variable. -type Uniform struct { - Value int32 -} - -func (v Attrib) Valid() bool { return v.Value != 0 } -func (v Program) Valid() bool { return v.Value != 0 } -func (v Shader) Valid() bool { return v.Value != 0 } -func (v Buffer) Valid() bool { return v.Value != 0 } -func (v Framebuffer) Valid() bool { return v.Value != 0 } -func (v Renderbuffer) Valid() bool { return v.Value != 0 } -func (v Texture) Valid() bool { return v.Value != 0 } -func (v Uniform) Valid() bool { return v.Value != 0 } diff --git a/vendor/github.com/goxjs/gl/types_opengles.go b/vendor/github.com/goxjs/gl/types_opengles.go deleted file mode 100644 index 74af2b8..0000000 --- a/vendor/github.com/goxjs/gl/types_opengles.go +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build darwin linux -// +build arm arm64 - -package gl - -/* -#cgo darwin LDFLAGS: -framework OpenGLES -#cgo linux LDFLAGS: -lGLESv2 - -#cgo darwin CFLAGS: -Dos_darwin_arm -#cgo linux CFLAGS: -Dos_linux_arm - -#ifdef os_darwin_arm -#include -#endif -#ifdef os_linux_arm -#include -#endif - -void blendColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a) { glBlendColor(r, g, b, a); } -void clearColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a) { glClearColor(r, g, b, a); } -void clearDepthf(GLfloat d) { glClearDepthf(d); } -void depthRangef(GLfloat n, GLfloat f) { glDepthRangef(n, f); } -void sampleCoverage(GLfloat v, GLboolean invert) { glSampleCoverage(v, invert); } -*/ -import "C" - -type Enum uint32 - -type Attrib struct { - Value uint -} - -type Program struct { - Value uint32 -} - -type Shader struct { - Value uint32 -} - -type Buffer struct { - Value uint32 -} - -type Framebuffer struct { - Value uint32 -} - -type Renderbuffer struct { - Value uint32 -} - -type Texture struct { - Value uint32 -} - -type Uniform struct { - Value int32 -} - -func (v Attrib) c() C.GLuint { return C.GLuint(v.Value) } -func (v Enum) c() C.GLenum { return C.GLenum(v) } -func (v Program) c() C.GLuint { return C.GLuint(v.Value) } -func (v Shader) c() C.GLuint { return C.GLuint(v.Value) } -func (v Buffer) c() C.GLuint { return C.GLuint(v.Value) } -func (v Framebuffer) c() C.GLuint { return C.GLuint(v.Value) } -func (v Renderbuffer) c() C.GLuint { return C.GLuint(v.Value) } -func (v Texture) c() C.GLuint { return C.GLuint(v.Value) } -func (v Uniform) c() C.GLint { return C.GLint(v.Value) } - -func (v Attrib) Valid() bool { return v.Value != 0 } -func (v Program) Valid() bool { return v.Value != 0 } -func (v Shader) Valid() bool { return v.Value != 0 } -func (v Buffer) Valid() bool { return v.Value != 0 } -func (v Framebuffer) Valid() bool { return v.Value != 0 } -func (v Renderbuffer) Valid() bool { return v.Value != 0 } -func (v Texture) Valid() bool { return v.Value != 0 } -func (v Uniform) Valid() bool { return v.Value != 0 } - -func glBoolean(b bool) C.GLboolean { - if b { - return TRUE - } - return FALSE -} - -// Desktop OpenGL and the ES 2/3 APIs have a very slight difference -// that is imperceptible to C programmers: some function parameters -// use the type Glclampf and some use GLfloat. These two types are -// equivalent in size and bit layout (both are single-precision -// floats), but it plays havoc with cgo. We adjust the types by using -// C wrappers for the problematic functions. - -func blendColor(r, g, b, a float32) { - C.blendColor(C.GLfloat(r), C.GLfloat(g), C.GLfloat(b), C.GLfloat(a)) -} -func clearColor(r, g, b, a float32) { - C.clearColor(C.GLfloat(r), C.GLfloat(g), C.GLfloat(b), C.GLfloat(a)) -} -func clearDepthf(d float32) { C.clearDepthf(C.GLfloat(d)) } -func depthRangef(n, f float32) { C.depthRangef(C.GLfloat(n), C.GLfloat(f)) } -func sampleCoverage(v float32, i bool) { C.sampleCoverage(C.GLfloat(v), glBoolean(i)) } diff --git a/vendor/github.com/goxjs/gl/types_webgl.go b/vendor/github.com/goxjs/gl/types_webgl.go deleted file mode 100644 index 7fa6091..0000000 --- a/vendor/github.com/goxjs/gl/types_webgl.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build js - -package gl - -import "github.com/gopherjs/gopherjs/js" - -type Enum int - -type Attrib struct { - Value int -} - -type Program struct { - *js.Object -} - -type Shader struct { - *js.Object -} - -type Buffer struct { - *js.Object -} - -type Framebuffer struct { - *js.Object -} - -type Renderbuffer struct { - *js.Object -} - -type Texture struct { - *js.Object -} - -type Uniform struct { - *js.Object -} - -func (v Attrib) Valid() bool { return v.Value != 0 } -func (v Program) Valid() bool { return v.Object != nil } -func (v Shader) Valid() bool { return v.Object != nil } -func (v Buffer) Valid() bool { return v.Object != nil } -func (v Framebuffer) Valid() bool { return v.Object != nil } -func (v Renderbuffer) Valid() bool { return v.Object != nil } -func (v Texture) Valid() bool { return v.Object != nil } -func (v Uniform) Valid() bool { return v.Object != nil } diff --git a/vendor/github.com/goxjs/glfw/.travis.yml b/vendor/github.com/goxjs/glfw/.travis.yml deleted file mode 100644 index 9c89d2d..0000000 --- a/vendor/github.com/goxjs/glfw/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -sudo: false -addons: - apt_packages: - - libgl1-mesa-dev - - xorg-dev -language: go -go: - - 1.x - - master -matrix: - allow_failures: - - go: master - fast_finish: true -install: - - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). -script: - - go get -t -v ./... - - diff -u <(echo -n) <(gofmt -d -s .) - - go tool vet . - - go test -v -race ./... diff --git a/vendor/github.com/goxjs/glfw/README.md b/vendor/github.com/goxjs/glfw/README.md deleted file mode 100644 index b1df1e6..0000000 --- a/vendor/github.com/goxjs/glfw/README.md +++ /dev/null @@ -1,31 +0,0 @@ -glfw -==== - -[![Build Status](https://travis-ci.org/goxjs/glfw.svg?branch=master)](https://travis-ci.org/goxjs/glfw) [![GoDoc](https://godoc.org/github.com/goxjs/glfw?status.svg)](https://godoc.org/github.com/goxjs/glfw) - -Package glfw experimentally provides a glfw-like API -with desktop (via glfw) and browser (via HTML5 canvas) backends. - -It is used for creating a GL context and receiving events. - -**Note:** This package is currently in development. The API is incomplete and may change. - -Installation ------------- - -```bash -go get -u github.com/goxjs/glfw -GOARCH=js go get -u -d github.com/goxjs/glfw -``` - -Directories ------------ - -| Path | Synopsis | -|--------------------------------------------------------------------|--------------------------------------------------------------------| -| [test/events](https://godoc.org/github.com/goxjs/glfw/test/events) | events hooks every available callback and outputs their arguments. | - -License -------- - -- [MIT License](https://opensource.org/licenses/mit-license.php) diff --git a/vendor/github.com/goxjs/glfw/browser.go b/vendor/github.com/goxjs/glfw/browser.go deleted file mode 100644 index 89893fc..0000000 --- a/vendor/github.com/goxjs/glfw/browser.go +++ /dev/null @@ -1,917 +0,0 @@ -// +build js - -package glfw - -import ( - "errors" - "fmt" - "io" - "log" - "net/http" - "runtime" - - "github.com/gopherjs/gopherjs/js" - "honnef.co/go/js/dom" -) - -var document = dom.GetWindow().Document().(dom.HTMLDocument) - -var contextWatcher ContextWatcher - -func Init(cw ContextWatcher) error { - contextWatcher = cw - return nil -} - -func Terminate() error { - return nil -} - -func CreateWindow(_, _ int, title string, monitor *Monitor, share *Window) (*Window, error) { - // THINK: Consider https://developer.mozilla.org/en-US/docs/Web/API/Window.open? - - // HACK: Go fullscreen? - width := dom.GetWindow().InnerWidth() - height := dom.GetWindow().InnerHeight() - - canvas := document.CreateElement("canvas").(*dom.HTMLCanvasElement) - - devicePixelRatio := js.Global.Get("devicePixelRatio").Float() - canvas.Width = int(float64(width)*devicePixelRatio + 0.5) // Nearest non-negative int. - canvas.Height = int(float64(height)*devicePixelRatio + 0.5) // Nearest non-negative int. - canvas.Style().SetProperty("width", fmt.Sprintf("%vpx", width), "") - canvas.Style().SetProperty("height", fmt.Sprintf("%vpx", height), "") - - if js.Global.Get("document").Get("body") == nil { - body := js.Global.Get("document").Call("createElement", "body") - js.Global.Get("document").Set("body", body) - log.Println("Creating body, since it doesn't exist.") - } - document.Body().Style().SetProperty("margin", "0", "") - document.Body().AppendChild(canvas) - - document.SetTitle(title) - - // DEBUG: Add framebuffer information div. - if false { - //canvas.Height -= 30 - text := document.CreateElement("div") - textContent := fmt.Sprintf("%v %v (%v) @%v", dom.GetWindow().InnerWidth(), canvas.Width, float64(width)*devicePixelRatio, devicePixelRatio) - text.SetTextContent(textContent) - document.Body().AppendChild(text) - } - - // Use glfw hints. - attrs := defaultAttributes() - attrs.Alpha = (hints[AlphaBits] > 0) - if _, ok := hints[DepthBits]; ok { - attrs.Depth = (hints[DepthBits] > 0) - } - attrs.Stencil = (hints[StencilBits] > 0) - attrs.Antialias = (hints[Samples] > 0) - attrs.PremultipliedAlpha = (hints[PremultipliedAlpha] > 0) - attrs.PreserveDrawingBuffer = (hints[PreserveDrawingBuffer] > 0) - attrs.PreferLowPowerToHighPerformance = (hints[PreferLowPowerToHighPerformance] > 0) - attrs.FailIfMajorPerformanceCaveat = (hints[FailIfMajorPerformanceCaveat] > 0) - - // Create GL context. - context, err := newContext(canvas.Underlying(), attrs) - if err != nil { - return nil, err - } - - w := &Window{ - canvas: canvas, - context: context, - } - - if w.canvas.Underlying().Get("requestPointerLock") == js.Undefined || - document.Underlying().Get("exitPointerLock") == js.Undefined { - - w.missing.pointerLock = true - } - if w.canvas.Underlying().Get("webkitRequestFullscreen") == js.Undefined || - document.Underlying().Get("webkitExitFullscreen") == js.Undefined { - - w.missing.fullscreen = true - } - - if monitor != nil { - if w.missing.fullscreen { - log.Println("warning: Fullscreen API unsupported") - } else { - w.requestFullscreen = true - } - } - - dom.GetWindow().AddEventListener("resize", false, func(event dom.Event) { - // HACK: Go fullscreen? - width := dom.GetWindow().InnerWidth() - height := dom.GetWindow().InnerHeight() - - devicePixelRatio := js.Global.Get("devicePixelRatio").Float() - w.canvas.Width = int(float64(width)*devicePixelRatio + 0.5) // Nearest non-negative int. - w.canvas.Height = int(float64(height)*devicePixelRatio + 0.5) // Nearest non-negative int. - w.canvas.Style().SetProperty("width", fmt.Sprintf("%vpx", width), "") - w.canvas.Style().SetProperty("height", fmt.Sprintf("%vpx", height), "") - - if w.framebufferSizeCallback != nil { - // TODO: Callbacks may be blocking so they need to happen asyncronously. However, - // GLFW API promises the callbacks will occur from one thread (i.e., sequentially), so may want to do that. - go w.framebufferSizeCallback(w, w.canvas.Width, w.canvas.Height) - } - if w.sizeCallback != nil { - go w.sizeCallback(w, int(w.canvas.GetBoundingClientRect().Width), int(w.canvas.GetBoundingClientRect().Height)) - } - }) - - document.AddEventListener("keydown", false, func(event dom.Event) { - w.goFullscreenIfRequested() - - ke := event.(*dom.KeyboardEvent) - - action := Press - if ke.Repeat { - action = Repeat - } - - key := toKey(ke) - - // Extend slice if needed. - neededSize := int(key) + 1 - if neededSize > len(w.keys) { - w.keys = append(w.keys, make([]Action, neededSize-len(w.keys))...) - } - w.keys[key] = action - - if w.keyCallback != nil { - mods := toModifierKey(ke) - - go w.keyCallback(w, key, -1, action, mods) - } - - ke.PreventDefault() - }) - document.AddEventListener("keyup", false, func(event dom.Event) { - w.goFullscreenIfRequested() - - ke := event.(*dom.KeyboardEvent) - - key := toKey(ke) - - // Extend slice if needed. - neededSize := int(key) + 1 - if neededSize > len(w.keys) { - w.keys = append(w.keys, make([]Action, neededSize-len(w.keys))...) - } - w.keys[key] = Release - - if w.keyCallback != nil { - mods := toModifierKey(ke) - - go w.keyCallback(w, key, -1, Release, mods) - } - - ke.PreventDefault() - }) - - document.AddEventListener("mousedown", false, func(event dom.Event) { - w.goFullscreenIfRequested() - - me := event.(*dom.MouseEvent) - if !(me.Button >= 0 && me.Button <= 2) { - return - } - - w.mouseButton[me.Button] = Press - if w.mouseButtonCallback != nil { - go w.mouseButtonCallback(w, MouseButton(me.Button), Press, 0) - } - - me.PreventDefault() - }) - document.AddEventListener("mouseup", false, func(event dom.Event) { - w.goFullscreenIfRequested() - - me := event.(*dom.MouseEvent) - if !(me.Button >= 0 && me.Button <= 2) { - return - } - - w.mouseButton[me.Button] = Release - if w.mouseButtonCallback != nil { - go w.mouseButtonCallback(w, MouseButton(me.Button), Release, 0) - } - - me.PreventDefault() - }) - document.AddEventListener("contextmenu", false, func(event dom.Event) { - event.PreventDefault() - }) - - document.AddEventListener("mousemove", false, func(event dom.Event) { - me := event.(*dom.MouseEvent) - - var movementX, movementY float64 - if !w.missing.pointerLock { - movementX = float64(me.MovementX) - movementY = float64(me.MovementY) - } else { - movementX = float64(me.ClientX) - w.cursorPos[0] - movementY = float64(me.ClientY) - w.cursorPos[1] - } - - w.cursorPos[0], w.cursorPos[1] = float64(me.ClientX), float64(me.ClientY) - if w.cursorPosCallback != nil { - go w.cursorPosCallback(w, w.cursorPos[0], w.cursorPos[1]) - } - if w.mouseMovementCallback != nil { - go w.mouseMovementCallback(w, w.cursorPos[0], w.cursorPos[1], movementX, movementY) - } - - me.PreventDefault() - }) - document.AddEventListener("wheel", false, func(event dom.Event) { - we := event.(*dom.WheelEvent) - - var multiplier float64 - switch we.DeltaMode { - case dom.DeltaPixel: - multiplier = 0.1 - case dom.DeltaLine: - multiplier = 1 - default: - log.Println("unsupported WheelEvent.DeltaMode:", we.DeltaMode) - multiplier = 1 - } - - if w.scrollCallback != nil { - go w.scrollCallback(w, -we.DeltaX*multiplier, -we.DeltaY*multiplier) - } - - we.PreventDefault() - }) - - // Hacky mouse-emulation-via-touch. - touchHandler := func(event dom.Event) { - w.goFullscreenIfRequested() - - te := event.(*dom.TouchEvent) - - touches := te.Get("touches") - if touches.Length() > 0 { - t := touches.Index(0) - - if w.touches != nil && w.touches.Length() > 0 { // This event is a movement only if we previously had > 0 touch points. - if w.mouseMovementCallback != nil { - go w.mouseMovementCallback(w, t.Get("clientX").Float(), t.Get("clientY").Float(), t.Get("clientX").Float()-w.cursorPos[0], t.Get("clientY").Float()-w.cursorPos[1]) - } - } - - w.cursorPos[0], w.cursorPos[1] = t.Get("clientX").Float(), t.Get("clientY").Float() - if w.cursorPosCallback != nil { - go w.cursorPosCallback(w, w.cursorPos[0], w.cursorPos[1]) - } - } - w.touches = touches - - te.PreventDefault() - } - document.AddEventListener("touchstart", false, touchHandler) - document.AddEventListener("touchmove", false, touchHandler) - document.AddEventListener("touchend", false, touchHandler) - - // Request first animation frame. - js.Global.Call("requestAnimationFrame", animationFrame) - - return w, nil -} - -func SwapInterval(interval int) error { - // TODO: Implement. - return nil -} - -type Window struct { - canvas *dom.HTMLCanvasElement - context *js.Object - requestFullscreen bool // requestFullscreen is set to true when fullscreen should be entered as soon as possible (in a user input handler). - fullscreen bool // fullscreen is true if we're currently in fullscreen mode. - - // Unavailable browser APIs. - missing struct { - pointerLock bool // Pointer Lock API. - fullscreen bool // Fullscreen API. - } - - cursorMode int - cursorPos [2]float64 - mouseButton [3]Action - - keys []Action - - cursorPosCallback CursorPosCallback - mouseMovementCallback MouseMovementCallback - mouseButtonCallback MouseButtonCallback - keyCallback KeyCallback - scrollCallback ScrollCallback - framebufferSizeCallback FramebufferSizeCallback - sizeCallback SizeCallback - - touches *js.Object // Hacky mouse-emulation-via-touch. -} - -func (w *Window) SetPos(xpos, ypos int) { - fmt.Println("not implemented: SetPos:", xpos, ypos) -} - -func (w *Window) SetSize(width, height int) { - fmt.Println("not implemented: SetSize:", width, height) -} - -// goFullscreenIfRequested performs webkitRequestFullscreen if it was scheduled. It is called only from -// user events, because that API will fail if called at any other time. -func (w *Window) goFullscreenIfRequested() { - if !w.requestFullscreen { - return - } - w.requestFullscreen = false - w.canvas.Underlying().Call("webkitRequestFullscreen") - w.fullscreen = true -} - -type Monitor struct{} - -func (m *Monitor) GetVideoMode() *VidMode { - return &VidMode{ - // HACK: Hardcoded sample values. - // TODO: Try to get real values from browser via some API, if possible. - Width: 1680, - Height: 1050, - RedBits: 8, - GreenBits: 8, - BlueBits: 8, - RefreshRate: 60, - } -} - -func GetPrimaryMonitor() *Monitor { - // TODO: Implement real functionality. - return &Monitor{} -} - -func PollEvents() error { - return nil -} - -func (w *Window) MakeContextCurrent() { - contextWatcher.OnMakeCurrent(w.context) -} - -func DetachCurrentContext() { - contextWatcher.OnDetach() -} - -func GetCurrentContext() *Window { - panic("not implemented") -} - -type CursorPosCallback func(w *Window, xpos float64, ypos float64) - -func (w *Window) SetCursorPosCallback(cbfun CursorPosCallback) (previous CursorPosCallback) { - w.cursorPosCallback = cbfun - - // TODO: Handle previous. - return nil -} - -type MouseMovementCallback func(w *Window, xpos float64, ypos float64, xdelta float64, ydelta float64) - -func (w *Window) SetMouseMovementCallback(cbfun MouseMovementCallback) (previous MouseMovementCallback) { - w.mouseMovementCallback = cbfun - - // TODO: Handle previous. - return nil -} - -type KeyCallback func(w *Window, key Key, scancode int, action Action, mods ModifierKey) - -func (w *Window) SetKeyCallback(cbfun KeyCallback) (previous KeyCallback) { - w.keyCallback = cbfun - - // TODO: Handle previous. - return nil -} - -type CharCallback func(w *Window, char rune) - -func (w *Window) SetCharCallback(cbfun CharCallback) (previous CharCallback) { - // TODO. - return nil -} - -type ScrollCallback func(w *Window, xoff float64, yoff float64) - -func (w *Window) SetScrollCallback(cbfun ScrollCallback) (previous ScrollCallback) { - w.scrollCallback = cbfun - - // TODO: Handle previous. - return nil -} - -type MouseButtonCallback func(w *Window, button MouseButton, action Action, mods ModifierKey) - -func (w *Window) SetMouseButtonCallback(cbfun MouseButtonCallback) (previous MouseButtonCallback) { - w.mouseButtonCallback = cbfun - - // TODO: Handle previous. - return nil -} - -type FramebufferSizeCallback func(w *Window, width int, height int) - -func (w *Window) SetFramebufferSizeCallback(cbfun FramebufferSizeCallback) (previous FramebufferSizeCallback) { - w.framebufferSizeCallback = cbfun - - // TODO: Handle previous. - return nil -} - -func (w *Window) GetSize() (width, height int) { - // TODO: See if dpi adjustments need to be made. - fmt.Println("Window.GetSize:", w.canvas.GetBoundingClientRect().Width, w.canvas.GetBoundingClientRect().Height, - "->", int(w.canvas.GetBoundingClientRect().Width), int(w.canvas.GetBoundingClientRect().Height)) - - return int(w.canvas.GetBoundingClientRect().Width), int(w.canvas.GetBoundingClientRect().Height) -} - -func (w *Window) GetFramebufferSize() (width, height int) { - return w.canvas.Width, w.canvas.Height -} - -func (w *Window) GetPos() (x, y int) { - // Not implemented. - return -} - -func (w *Window) ShouldClose() bool { - return false -} - -func (w *Window) SetShouldClose(value bool) { - // TODO: Implement. - // THINK: What should happen in the browser if we're told to "close" the window. Do we destroy/remove the canvas? Or nothing? - // Perhaps https://developer.mozilla.org/en-US/docs/Web/API/Window.close is relevant. -} - -func (w *Window) SwapBuffers() error { - <-animationFrameChan - js.Global.Call("requestAnimationFrame", animationFrame) - - return nil -} - -var animationFrameChan = make(chan struct{}, 1) - -func animationFrame() { - animationFrameChan <- struct{}{} -} - -func (w *Window) GetCursorPos() (x, y float64) { - return w.cursorPos[0], w.cursorPos[1] -} - -var keyWarnings = 10 - -func (w *Window) GetKey(key Key) Action { - if key == -1 && keyWarnings > 0 { - // TODO: Implement all keys, get rid of this. - keyWarnings-- - log.Println("GetKey: key not implemented.") - return Release - } - if int(key) >= len(w.keys) { - return Release - } - return w.keys[key] -} - -func (w *Window) GetMouseButton(button MouseButton) Action { - if !(button >= 0 && button <= 2) { - panic(fmt.Errorf("button is out of range: %v", button)) - } - - // Hacky mouse-emulation-via-touch. - if w.touches != nil { - switch button { - case MouseButton1: - if w.touches.Length() == 1 || w.touches.Length() == 3 { - return Press - } - case MouseButton2: - if w.touches.Length() == 2 || w.touches.Length() == 3 { - return Press - } - } - - return Release - } - - return w.mouseButton[button] -} - -func (w *Window) GetInputMode(mode InputMode) int { - switch mode { - case CursorMode: - return w.cursorMode - default: - panic(errors.New("not implemented")) - } -} - -var ErrInvalidParameter = errors.New("invalid parameter") -var ErrInvalidValue = errors.New("invalid value") - -func (w *Window) SetInputMode(mode InputMode, value int) { - switch mode { - case CursorMode: - if w.missing.pointerLock { - log.Println("warning: Pointer Lock API unsupported") - return - } - switch value { - case CursorNormal: - w.cursorMode = value - document.Underlying().Call("exitPointerLock") - w.canvas.Style().SetProperty("cursor", "initial", "") - return - case CursorHidden: - w.cursorMode = value - document.Underlying().Call("exitPointerLock") - w.canvas.Style().SetProperty("cursor", "none", "") - return - case CursorDisabled: - w.cursorMode = value - w.canvas.Underlying().Call("requestPointerLock") - return - default: - panic(ErrInvalidValue) - } - case StickyKeysMode: - panic(errors.New("not implemented")) - case StickyMouseButtonsMode: - panic(errors.New("not implemented")) - default: - panic(ErrInvalidParameter) - } -} - -type Key int - -// TODO: Keys defined as -iota-1 need to be set to a valid positive value that matches the keyCode -// generated by browsers. -iota-1 is used as a temporary solution to have unique but invalid values. -// See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode. -const ( - KeySpace Key = 32 - KeyApostrophe Key = 222 - KeyComma Key = 188 - KeyMinus Key = 189 - KeyPeriod Key = 190 - KeySlash Key = 191 - Key0 Key = 48 - Key1 Key = 49 - Key2 Key = 50 - Key3 Key = 51 - Key4 Key = 52 - Key5 Key = 53 - Key6 Key = 54 - Key7 Key = 55 - Key8 Key = 56 - Key9 Key = 57 - KeySemicolon Key = 186 - KeyEqual Key = 187 - KeyA Key = 65 - KeyB Key = 66 - KeyC Key = 67 - KeyD Key = 68 - KeyE Key = 69 - KeyF Key = 70 - KeyG Key = 71 - KeyH Key = 72 - KeyI Key = 73 - KeyJ Key = 74 - KeyK Key = 75 - KeyL Key = 76 - KeyM Key = 77 - KeyN Key = 78 - KeyO Key = 79 - KeyP Key = 80 - KeyQ Key = 81 - KeyR Key = 82 - KeyS Key = 83 - KeyT Key = 84 - KeyU Key = 85 - KeyV Key = 86 - KeyW Key = 87 - KeyX Key = 88 - KeyY Key = 89 - KeyZ Key = 90 - KeyLeftBracket Key = 219 - KeyBackslash Key = 220 - KeyRightBracket Key = 221 - KeyGraveAccent Key = 192 - KeyWorld1 Key = -iota - 1 - KeyWorld2 Key = -iota - 1 - KeyEscape Key = 27 - KeyEnter Key = 13 - KeyTab Key = 9 - KeyBackspace Key = 8 - KeyInsert Key = -iota - 1 - KeyDelete Key = 46 - KeyRight Key = 39 - KeyLeft Key = 37 - KeyDown Key = 40 - KeyUp Key = 38 - KeyPageUp Key = -iota - 1 - KeyPageDown Key = -iota - 1 - KeyHome Key = -iota - 1 - KeyEnd Key = -iota - 1 - KeyCapsLock Key = 20 - KeyScrollLock Key = -iota - 1 - KeyNumLock Key = -iota - 1 - KeyPrintScreen Key = -iota - 1 - KeyPause Key = -iota - 1 - KeyF1 Key = 112 - KeyF2 Key = 113 - KeyF3 Key = 114 - KeyF4 Key = 115 - KeyF5 Key = 116 - KeyF6 Key = 117 - KeyF7 Key = 118 - KeyF8 Key = 119 - KeyF9 Key = 120 - KeyF10 Key = 121 - KeyF11 Key = 122 - KeyF12 Key = 123 - KeyF13 Key = -iota - 1 - KeyF14 Key = -iota - 1 - KeyF15 Key = -iota - 1 - KeyF16 Key = -iota - 1 - KeyF17 Key = -iota - 1 - KeyF18 Key = -iota - 1 - KeyF19 Key = -iota - 1 - KeyF20 Key = -iota - 1 - KeyF21 Key = -iota - 1 - KeyF22 Key = -iota - 1 - KeyF23 Key = -iota - 1 - KeyF24 Key = -iota - 1 - KeyF25 Key = -iota - 1 - KeyKP0 Key = -iota - 1 - KeyKP1 Key = -iota - 1 - KeyKP2 Key = -iota - 1 - KeyKP3 Key = -iota - 1 - KeyKP4 Key = -iota - 1 - KeyKP5 Key = -iota - 1 - KeyKP6 Key = -iota - 1 - KeyKP7 Key = -iota - 1 - KeyKP8 Key = -iota - 1 - KeyKP9 Key = -iota - 1 - KeyKPDecimal Key = -iota - 1 - KeyKPDivide Key = -iota - 1 - KeyKPMultiply Key = -iota - 1 - KeyKPSubtract Key = -iota - 1 - KeyKPAdd Key = -iota - 1 - KeyKPEnter Key = -iota - 1 - KeyKPEqual Key = -iota - 1 - KeyLeftShift Key = 340 - KeyLeftControl Key = 341 - KeyLeftAlt Key = 342 - KeyLeftSuper Key = 91 - KeyRightShift Key = 344 - KeyRightControl Key = 345 - KeyRightAlt Key = 346 - KeyRightSuper Key = 93 - KeyMenu Key = -iota - 1 -) - -// toKey extracts Key from given KeyboardEvent. -func toKey(ke *dom.KeyboardEvent) Key { - key := Key(ke.KeyCode) - switch { - case key == 16 && ke.Location == dom.KeyLocationLeft: - key = KeyLeftShift - case key == 16 && ke.Location == dom.KeyLocationRight: - key = KeyRightShift - case key == 17 && ke.Location == dom.KeyLocationLeft: - key = KeyLeftControl - case key == 17 && ke.Location == dom.KeyLocationRight: - key = KeyRightControl - case key == 18 && ke.Location == dom.KeyLocationLeft: - key = KeyLeftAlt - case key == 18 && ke.Location == dom.KeyLocationRight: - key = KeyRightAlt - } - return key -} - -// toModifierKey extracts ModifierKey from given KeyboardEvent. -func toModifierKey(ke *dom.KeyboardEvent) ModifierKey { - mods := ModifierKey(0) - if ke.ShiftKey { - mods += ModShift - } - if ke.CtrlKey { - mods += ModControl - } - if ke.AltKey { - mods += ModAlt - } - if ke.MetaKey { - mods += ModSuper - } - return mods -} - -type MouseButton int - -const ( - MouseButton1 MouseButton = 0 - MouseButton2 MouseButton = 2 // Web MouseEvent has middle and right mouse buttons in reverse order. - MouseButton3 MouseButton = 1 // Web MouseEvent has middle and right mouse buttons in reverse order. - - MouseButtonLeft = MouseButton1 - MouseButtonRight = MouseButton2 - MouseButtonMiddle = MouseButton3 -) - -type Action int - -const ( - Release Action = 0 - Press Action = 1 - Repeat Action = 2 -) - -type InputMode int - -const ( - CursorMode InputMode = iota - StickyKeysMode - StickyMouseButtonsMode -) - -const ( - CursorNormal = iota - CursorHidden - CursorDisabled -) - -type ModifierKey int - -const ( - ModShift ModifierKey = (1 << iota) - ModControl - ModAlt - ModSuper -) - -// Open opens a named asset. It's the caller's responsibility to close it when done. -func Open(name string) (io.ReadCloser, error) { - resp, err := http.Get(name) - if err != nil { - return nil, err - } - if resp.StatusCode != 200 { - return nil, fmt.Errorf("non-200 status: %s", resp.Status) - } - return resp.Body, nil -} - -// --- - -func WaitEvents() { - // TODO. - - runtime.Gosched() -} - -func PostEmptyEvent() { - // TODO: Implement. -} - -func DefaultWindowHints() { - // TODO: Implement. -} - -func (w *Window) SetClipboardString(str string) { - // TODO: Implement. -} -func (w *Window) GetClipboardString() (string, error) { - // TODO: Implement. - return "", errors.New("GetClipboardString not implemented") -} - -func (w *Window) SetTitle(title string) { - document.SetTitle(title) -} - -func (w *Window) Show() { - // TODO: Implement. -} - -func (w *Window) Hide() { - // TODO: Implement. -} - -func (w *Window) Destroy() { - document.Body().RemoveChild(w.canvas) - if w.fullscreen { - if w.missing.fullscreen { - log.Println("warning: Fullscreen API unsupported") - } else { - document.Underlying().Call("webkitExitFullscreen") - w.fullscreen = false - } - } -} - -type CloseCallback func(w *Window) - -func (w *Window) SetCloseCallback(cbfun CloseCallback) (previous CloseCallback) { - // TODO: Implement. - - // TODO: Handle previous. - return nil -} - -type RefreshCallback func(w *Window) - -func (w *Window) SetRefreshCallback(cbfun RefreshCallback) (previous RefreshCallback) { - // TODO: Implement. - - // TODO: Handle previous. - return nil -} - -type SizeCallback func(w *Window, width int, height int) - -func (w *Window) SetSizeCallback(cbfun SizeCallback) (previous SizeCallback) { - w.sizeCallback = cbfun - - // TODO: Handle previous. - return nil -} - -type CursorEnterCallback func(w *Window, entered bool) - -func (w *Window) SetCursorEnterCallback(cbfun CursorEnterCallback) (previous CursorEnterCallback) { - // TODO: Implement. - - // TODO: Handle previous. - return nil -} - -type CharModsCallback func(w *Window, char rune, mods ModifierKey) - -func (w *Window) SetCharModsCallback(cbfun CharModsCallback) (previous CharModsCallback) { - // TODO: Implement. - - // TODO: Handle previous. - return nil -} - -type PosCallback func(w *Window, xpos int, ypos int) - -func (w *Window) SetPosCallback(cbfun PosCallback) (previous PosCallback) { - // TODO: Implement. - - // TODO: Handle previous. - return nil -} - -type FocusCallback func(w *Window, focused bool) - -func (w *Window) SetFocusCallback(cbfun FocusCallback) (previous FocusCallback) { - // TODO: Implement. - - // TODO: Handle previous. - return nil -} - -type IconifyCallback func(w *Window, iconified bool) - -func (w *Window) SetIconifyCallback(cbfun IconifyCallback) (previous IconifyCallback) { - // TODO: Implement. - - // TODO: Handle previous. - return nil -} - -type DropCallback func(w *Window, names []string) - -func (w *Window) SetDropCallback(cbfun DropCallback) (previous DropCallback) { - // TODO: Implement. Can use HTML5 file drag and drop API? - - // TODO: Handle previous. - return nil -} diff --git a/vendor/github.com/goxjs/glfw/context_webgl.go b/vendor/github.com/goxjs/glfw/context_webgl.go deleted file mode 100644 index fb7e6de..0000000 --- a/vendor/github.com/goxjs/glfw/context_webgl.go +++ /dev/null @@ -1,56 +0,0 @@ -// +build js - -package glfw - -import ( - "errors" - - "github.com/gopherjs/gopherjs/js" -) - -func newContext(canvas *js.Object, ca *contextAttributes) (context *js.Object, err error) { - if js.Global.Get("WebGLRenderingContext") == js.Undefined { - return nil, errors.New("Your browser doesn't appear to support WebGL.") - } - - attrs := map[string]bool{ - "alpha": ca.Alpha, - "depth": ca.Depth, - "stencil": ca.Stencil, - "antialias": ca.Antialias, - "premultipliedAlpha": ca.PremultipliedAlpha, - "preserveDrawingBuffer": ca.PreserveDrawingBuffer, - "preferLowPowerToHighPerformance": ca.PreferLowPowerToHighPerformance, - "failIfMajorPerformanceCaveat": ca.FailIfMajorPerformanceCaveat, - } - - if gl := canvas.Call("getContext", "webgl", attrs); gl != nil { - return gl, nil - } else if gl := canvas.Call("getContext", "experimental-webgl", attrs); gl != nil { - return gl, nil - } else { - return nil, errors.New("Creating a WebGL context has failed.") - } -} - -type contextAttributes struct { - Alpha bool - Depth bool - Stencil bool - Antialias bool - PremultipliedAlpha bool - PreserveDrawingBuffer bool - PreferLowPowerToHighPerformance bool - FailIfMajorPerformanceCaveat bool -} - -func defaultAttributes() *contextAttributes { - return &contextAttributes{ - Alpha: false, - Depth: true, - Stencil: false, - Antialias: false, - PremultipliedAlpha: false, - PreserveDrawingBuffer: false, - } -} diff --git a/vendor/github.com/goxjs/glfw/desktop.go b/vendor/github.com/goxjs/glfw/desktop.go deleted file mode 100644 index 68aba09..0000000 --- a/vendor/github.com/goxjs/glfw/desktop.go +++ /dev/null @@ -1,520 +0,0 @@ -// +build !js - -package glfw - -import ( - "io" - "os" - "runtime" - - "github.com/go-gl/glfw/v3.2/glfw" -) - -func init() { - runtime.LockOSThread() -} - -var contextWatcher ContextWatcher - -// Init initializes the library. -// -// A valid ContextWatcher must be provided. It gets notified when context becomes current or detached. -// It should be provided by the GL bindings you are using, so you can do glfw.Init(gl.ContextWatcher). -func Init(cw ContextWatcher) error { - contextWatcher = cw - return glfw.Init() -} - -func Terminate() { - glfw.Terminate() -} - -func CreateWindow(width, height int, title string, monitor *Monitor, share *Window) (*Window, error) { - var m *glfw.Monitor - if monitor != nil { - m = monitor.Monitor - } - var s *glfw.Window - if share != nil { - s = share.Window - } - - w, err := glfw.CreateWindow(width, height, title, m, s) - if err != nil { - return nil, err - } - - window := &Window{Window: w} - - return window, err -} - -func SwapInterval(interval int) { - glfw.SwapInterval(interval) -} - -func (w *Window) MakeContextCurrent() { - w.Window.MakeContextCurrent() - // In reality, context is available on each platform via GetGLXContext, GetWGLContext, GetNSGLContext, etc. - // Pretend it is not available and pass nil, since it's not actually needed at this time. - contextWatcher.OnMakeCurrent(nil) -} - -func DetachCurrentContext() { - glfw.DetachCurrentContext() - contextWatcher.OnDetach() -} - -type Window struct { - *glfw.Window -} - -type Monitor struct { - *glfw.Monitor -} - -func GetPrimaryMonitor() *Monitor { - m := glfw.GetPrimaryMonitor() - return &Monitor{Monitor: m} -} - -func PollEvents() { - glfw.PollEvents() -} - -type CursorPosCallback func(w *Window, xpos float64, ypos float64) - -func (w *Window) SetCursorPosCallback(cbfun CursorPosCallback) (previous CursorPosCallback) { - wrappedCbfun := func(_ *glfw.Window, xpos float64, ypos float64) { - cbfun(w, xpos, ypos) - } - - p := w.Window.SetCursorPosCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type MouseMovementCallback func(w *Window, xpos float64, ypos float64, xdelta float64, ydelta float64) - -var lastMousePos [2]float64 // HACK. - -// TODO: For now, this overrides SetCursorPosCallback; should support both. -func (w *Window) SetMouseMovementCallback(cbfun MouseMovementCallback) (previous MouseMovementCallback) { - lastMousePos[0], lastMousePos[1] = w.Window.GetCursorPos() - wrappedCbfun := func(_ *glfw.Window, xpos float64, ypos float64) { - xdelta, ydelta := xpos-lastMousePos[0], ypos-lastMousePos[1] - lastMousePos[0], lastMousePos[1] = xpos, ypos - cbfun(w, xpos, ypos, xdelta, ydelta) - } - - p := w.Window.SetCursorPosCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type KeyCallback func(w *Window, key Key, scancode int, action Action, mods ModifierKey) - -func (w *Window) SetKeyCallback(cbfun KeyCallback) (previous KeyCallback) { - wrappedCbfun := func(_ *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) { - cbfun(w, Key(key), scancode, Action(action), ModifierKey(mods)) - } - - p := w.Window.SetKeyCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type CharCallback func(w *Window, char rune) - -func (w *Window) SetCharCallback(cbfun CharCallback) (previous CharCallback) { - wrappedCbfun := func(_ *glfw.Window, char rune) { - cbfun(w, char) - } - - p := w.Window.SetCharCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type ScrollCallback func(w *Window, xoff float64, yoff float64) - -func (w *Window) SetScrollCallback(cbfun ScrollCallback) (previous ScrollCallback) { - wrappedCbfun := func(_ *glfw.Window, xoff float64, yoff float64) { - cbfun(w, xoff, yoff) - } - - p := w.Window.SetScrollCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type MouseButtonCallback func(w *Window, button MouseButton, action Action, mods ModifierKey) - -func (w *Window) SetMouseButtonCallback(cbfun MouseButtonCallback) (previous MouseButtonCallback) { - wrappedCbfun := func(_ *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey) { - cbfun(w, MouseButton(button), Action(action), ModifierKey(mods)) - } - - p := w.Window.SetMouseButtonCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type FramebufferSizeCallback func(w *Window, width int, height int) - -func (w *Window) SetFramebufferSizeCallback(cbfun FramebufferSizeCallback) (previous FramebufferSizeCallback) { - wrappedCbfun := func(_ *glfw.Window, width int, height int) { - cbfun(w, width, height) - } - - p := w.Window.SetFramebufferSizeCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -func (w *Window) GetKey(key Key) Action { - a := w.Window.GetKey(glfw.Key(key)) - return Action(a) -} - -func (w *Window) GetMouseButton(button MouseButton) Action { - a := w.Window.GetMouseButton(glfw.MouseButton(button)) - return Action(a) -} - -func (w *Window) GetInputMode(mode InputMode) int { - return w.Window.GetInputMode(glfw.InputMode(mode)) -} - -func (w *Window) SetInputMode(mode InputMode, value int) { - w.Window.SetInputMode(glfw.InputMode(mode), value) -} - -type Key glfw.Key - -const ( - KeySpace = Key(glfw.KeySpace) - KeyApostrophe = Key(glfw.KeyApostrophe) - KeyComma = Key(glfw.KeyComma) - KeyMinus = Key(glfw.KeyMinus) - KeyPeriod = Key(glfw.KeyPeriod) - KeySlash = Key(glfw.KeySlash) - Key0 = Key(glfw.Key0) - Key1 = Key(glfw.Key1) - Key2 = Key(glfw.Key2) - Key3 = Key(glfw.Key3) - Key4 = Key(glfw.Key4) - Key5 = Key(glfw.Key5) - Key6 = Key(glfw.Key6) - Key7 = Key(glfw.Key7) - Key8 = Key(glfw.Key8) - Key9 = Key(glfw.Key9) - KeySemicolon = Key(glfw.KeySemicolon) - KeyEqual = Key(glfw.KeyEqual) - KeyA = Key(glfw.KeyA) - KeyB = Key(glfw.KeyB) - KeyC = Key(glfw.KeyC) - KeyD = Key(glfw.KeyD) - KeyE = Key(glfw.KeyE) - KeyF = Key(glfw.KeyF) - KeyG = Key(glfw.KeyG) - KeyH = Key(glfw.KeyH) - KeyI = Key(glfw.KeyI) - KeyJ = Key(glfw.KeyJ) - KeyK = Key(glfw.KeyK) - KeyL = Key(glfw.KeyL) - KeyM = Key(glfw.KeyM) - KeyN = Key(glfw.KeyN) - KeyO = Key(glfw.KeyO) - KeyP = Key(glfw.KeyP) - KeyQ = Key(glfw.KeyQ) - KeyR = Key(glfw.KeyR) - KeyS = Key(glfw.KeyS) - KeyT = Key(glfw.KeyT) - KeyU = Key(glfw.KeyU) - KeyV = Key(glfw.KeyV) - KeyW = Key(glfw.KeyW) - KeyX = Key(glfw.KeyX) - KeyY = Key(glfw.KeyY) - KeyZ = Key(glfw.KeyZ) - KeyLeftBracket = Key(glfw.KeyLeftBracket) - KeyBackslash = Key(glfw.KeyBackslash) - KeyRightBracket = Key(glfw.KeyRightBracket) - KeyGraveAccent = Key(glfw.KeyGraveAccent) - KeyWorld1 = Key(glfw.KeyWorld1) - KeyWorld2 = Key(glfw.KeyWorld2) - KeyEscape = Key(glfw.KeyEscape) - KeyEnter = Key(glfw.KeyEnter) - KeyTab = Key(glfw.KeyTab) - KeyBackspace = Key(glfw.KeyBackspace) - KeyInsert = Key(glfw.KeyInsert) - KeyDelete = Key(glfw.KeyDelete) - KeyRight = Key(glfw.KeyRight) - KeyLeft = Key(glfw.KeyLeft) - KeyDown = Key(glfw.KeyDown) - KeyUp = Key(glfw.KeyUp) - KeyPageUp = Key(glfw.KeyPageUp) - KeyPageDown = Key(glfw.KeyPageDown) - KeyHome = Key(glfw.KeyHome) - KeyEnd = Key(glfw.KeyEnd) - KeyCapsLock = Key(glfw.KeyCapsLock) - KeyScrollLock = Key(glfw.KeyScrollLock) - KeyNumLock = Key(glfw.KeyNumLock) - KeyPrintScreen = Key(glfw.KeyPrintScreen) - KeyPause = Key(glfw.KeyPause) - KeyF1 = Key(glfw.KeyF1) - KeyF2 = Key(glfw.KeyF2) - KeyF3 = Key(glfw.KeyF3) - KeyF4 = Key(glfw.KeyF4) - KeyF5 = Key(glfw.KeyF5) - KeyF6 = Key(glfw.KeyF6) - KeyF7 = Key(glfw.KeyF7) - KeyF8 = Key(glfw.KeyF8) - KeyF9 = Key(glfw.KeyF9) - KeyF10 = Key(glfw.KeyF10) - KeyF11 = Key(glfw.KeyF11) - KeyF12 = Key(glfw.KeyF12) - KeyF13 = Key(glfw.KeyF13) - KeyF14 = Key(glfw.KeyF14) - KeyF15 = Key(glfw.KeyF15) - KeyF16 = Key(glfw.KeyF16) - KeyF17 = Key(glfw.KeyF17) - KeyF18 = Key(glfw.KeyF18) - KeyF19 = Key(glfw.KeyF19) - KeyF20 = Key(glfw.KeyF20) - KeyF21 = Key(glfw.KeyF21) - KeyF22 = Key(glfw.KeyF22) - KeyF23 = Key(glfw.KeyF23) - KeyF24 = Key(glfw.KeyF24) - KeyF25 = Key(glfw.KeyF25) - KeyKP0 = Key(glfw.KeyKP0) - KeyKP1 = Key(glfw.KeyKP1) - KeyKP2 = Key(glfw.KeyKP2) - KeyKP3 = Key(glfw.KeyKP3) - KeyKP4 = Key(glfw.KeyKP4) - KeyKP5 = Key(glfw.KeyKP5) - KeyKP6 = Key(glfw.KeyKP6) - KeyKP7 = Key(glfw.KeyKP7) - KeyKP8 = Key(glfw.KeyKP8) - KeyKP9 = Key(glfw.KeyKP9) - KeyKPDecimal = Key(glfw.KeyKPDecimal) - KeyKPDivide = Key(glfw.KeyKPDivide) - KeyKPMultiply = Key(glfw.KeyKPMultiply) - KeyKPSubtract = Key(glfw.KeyKPSubtract) - KeyKPAdd = Key(glfw.KeyKPAdd) - KeyKPEnter = Key(glfw.KeyKPEnter) - KeyKPEqual = Key(glfw.KeyKPEqual) - KeyLeftShift = Key(glfw.KeyLeftShift) - KeyLeftControl = Key(glfw.KeyLeftControl) - KeyLeftAlt = Key(glfw.KeyLeftAlt) - KeyLeftSuper = Key(glfw.KeyLeftSuper) - KeyRightShift = Key(glfw.KeyRightShift) - KeyRightControl = Key(glfw.KeyRightControl) - KeyRightAlt = Key(glfw.KeyRightAlt) - KeyRightSuper = Key(glfw.KeyRightSuper) - KeyMenu = Key(glfw.KeyMenu) -) - -type MouseButton glfw.MouseButton - -const ( - MouseButton1 = MouseButton(glfw.MouseButton1) - MouseButton2 = MouseButton(glfw.MouseButton2) - MouseButton3 = MouseButton(glfw.MouseButton3) - - MouseButtonLeft = MouseButton(glfw.MouseButtonLeft) - MouseButtonRight = MouseButton(glfw.MouseButtonRight) - MouseButtonMiddle = MouseButton(glfw.MouseButtonMiddle) -) - -type Action glfw.Action - -const ( - Release = Action(glfw.Release) - Press = Action(glfw.Press) - Repeat = Action(glfw.Repeat) -) - -type InputMode int - -const ( - CursorMode = InputMode(glfw.CursorMode) - StickyKeysMode = InputMode(glfw.StickyKeysMode) - StickyMouseButtonsMode = InputMode(glfw.StickyMouseButtonsMode) -) - -const ( - CursorNormal = int(glfw.CursorNormal) - CursorHidden = int(glfw.CursorHidden) - CursorDisabled = int(glfw.CursorDisabled) -) - -type ModifierKey int - -const ( - ModShift = ModifierKey(glfw.ModShift) - ModControl = ModifierKey(glfw.ModControl) - ModAlt = ModifierKey(glfw.ModAlt) - ModSuper = ModifierKey(glfw.ModSuper) -) - -// Open opens a named asset. It's the caller's responsibility to close it when done. -// -// For now, assets are read directly from the current working directory. -func Open(name string) (io.ReadCloser, error) { - return os.Open(name) -} - -// --- - -func WaitEvents() { - glfw.WaitEvents() -} - -func PostEmptyEvent() { - glfw.PostEmptyEvent() -} - -func DefaultWindowHints() { - glfw.DefaultWindowHints() -} - -type CloseCallback func(w *Window) - -func (w *Window) SetCloseCallback(cbfun CloseCallback) (previous CloseCallback) { - wrappedCbfun := func(_ *glfw.Window) { - cbfun(w) - } - - p := w.Window.SetCloseCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type RefreshCallback func(w *Window) - -func (w *Window) SetRefreshCallback(cbfun RefreshCallback) (previous RefreshCallback) { - wrappedCbfun := func(_ *glfw.Window) { - cbfun(w) - } - - p := w.Window.SetRefreshCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type SizeCallback func(w *Window, width int, height int) - -func (w *Window) SetSizeCallback(cbfun SizeCallback) (previous SizeCallback) { - wrappedCbfun := func(_ *glfw.Window, width int, height int) { - cbfun(w, width, height) - } - - p := w.Window.SetSizeCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type CursorEnterCallback func(w *Window, entered bool) - -func (w *Window) SetCursorEnterCallback(cbfun CursorEnterCallback) (previous CursorEnterCallback) { - wrappedCbfun := func(_ *glfw.Window, entered bool) { - cbfun(w, entered) - } - - p := w.Window.SetCursorEnterCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type CharModsCallback func(w *Window, char rune, mods ModifierKey) - -func (w *Window) SetCharModsCallback(cbfun CharModsCallback) (previous CharModsCallback) { - wrappedCbfun := func(_ *glfw.Window, char rune, mods glfw.ModifierKey) { - cbfun(w, char, ModifierKey(mods)) - } - - p := w.Window.SetCharModsCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type PosCallback func(w *Window, xpos int, ypos int) - -func (w *Window) SetPosCallback(cbfun PosCallback) (previous PosCallback) { - wrappedCbfun := func(_ *glfw.Window, xpos int, ypos int) { - cbfun(w, xpos, ypos) - } - - p := w.Window.SetPosCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type FocusCallback func(w *Window, focused bool) - -func (w *Window) SetFocusCallback(cbfun FocusCallback) (previous FocusCallback) { - wrappedCbfun := func(_ *glfw.Window, focused bool) { - cbfun(w, focused) - } - - p := w.Window.SetFocusCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type IconifyCallback func(w *Window, iconified bool) - -func (w *Window) SetIconifyCallback(cbfun IconifyCallback) (previous IconifyCallback) { - wrappedCbfun := func(_ *glfw.Window, iconified bool) { - cbfun(w, iconified) - } - - p := w.Window.SetIconifyCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} - -type DropCallback func(w *Window, names []string) - -func (w *Window) SetDropCallback(cbfun DropCallback) (previous DropCallback) { - wrappedCbfun := func(_ *glfw.Window, names []string) { - cbfun(w, names) - } - - p := w.Window.SetDropCallback(wrappedCbfun) - _ = p - - // TODO: Handle previous. - return nil -} diff --git a/vendor/github.com/goxjs/glfw/glfw.go b/vendor/github.com/goxjs/glfw/glfw.go deleted file mode 100644 index 723d02c..0000000 --- a/vendor/github.com/goxjs/glfw/glfw.go +++ /dev/null @@ -1,27 +0,0 @@ -// Package glfw experimentally provides a glfw-like API -// with desktop (via glfw) and browser (via HTML5 canvas) backends. -// -// It is used for creating a GL context and receiving events. -// -// Note: This package is currently in development. The API is incomplete and may change. -package glfw - -// ContextWatcher is a general mechanism for being notified when context is made current or detached. -type ContextWatcher interface { - // OnMakeCurrent is called after a context is made current. - // context is is a platform-specific representation of the context, or nil if unavailable. - OnMakeCurrent(context interface{}) - - // OnDetach is called after the current context is detached. - OnDetach() -} - -// VidMode describes a single video mode. -type VidMode struct { - Width int // The width, in pixels, of the video mode. - Height int // The height, in pixels, of the video mode. - RedBits int // The bit depth of the red channel of the video mode. - GreenBits int // The bit depth of the green channel of the video mode. - BlueBits int // The bit depth of the blue channel of the video mode. - RefreshRate int // The refresh rate, in Hz, of the video mode. -} diff --git a/vendor/github.com/goxjs/glfw/hint_glfw.go b/vendor/github.com/goxjs/glfw/hint_glfw.go deleted file mode 100644 index 0c26dc7..0000000 --- a/vendor/github.com/goxjs/glfw/hint_glfw.go +++ /dev/null @@ -1,32 +0,0 @@ -// +build !js - -package glfw - -import "github.com/go-gl/glfw/v3.2/glfw" - -type Hint int - -const ( - AlphaBits = Hint(glfw.AlphaBits) - DepthBits = Hint(glfw.DepthBits) - StencilBits = Hint(glfw.StencilBits) - Samples = Hint(glfw.Samples) - Resizable = Hint(glfw.Resizable) - - // These hints used for WebGL contexts, ignored on desktop. - PremultipliedAlpha = noopHint - PreserveDrawingBuffer - PreferLowPowerToHighPerformance - FailIfMajorPerformanceCaveat -) - -// noopHint is ignored. -const noopHint Hint = -1 - -func WindowHint(target Hint, hint int) { - if target == noopHint { - return - } - - glfw.WindowHint(glfw.Hint(target), hint) -} diff --git a/vendor/github.com/goxjs/glfw/hint_js.go b/vendor/github.com/goxjs/glfw/hint_js.go deleted file mode 100644 index 5477173..0000000 --- a/vendor/github.com/goxjs/glfw/hint_js.go +++ /dev/null @@ -1,25 +0,0 @@ -// +build js - -package glfw - -var hints = make(map[Hint]int) - -type Hint int - -const ( - AlphaBits Hint = iota - DepthBits - StencilBits - Samples - Resizable - - // goxjs/glfw-specific hints for WebGL. - PremultipliedAlpha - PreserveDrawingBuffer - PreferLowPowerToHighPerformance - FailIfMajorPerformanceCaveat -) - -func WindowHint(target Hint, hint int) { - hints[target] = hint -} diff --git a/vendor/github.com/jroimartin/gocui/.gitignore b/vendor/github.com/jroimartin/gocui/.gitignore deleted file mode 100644 index 1377554..0000000 --- a/vendor/github.com/jroimartin/gocui/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.swp diff --git a/vendor/github.com/jroimartin/gocui/AUTHORS b/vendor/github.com/jroimartin/gocui/AUTHORS deleted file mode 100644 index 43ec4ce..0000000 --- a/vendor/github.com/jroimartin/gocui/AUTHORS +++ /dev/null @@ -1,30 +0,0 @@ -# This is the official list of gocui authors for copyright purposes. - -# Names should be added to this file as -# Name or Organization contribution -# Contribution -# The email address is not required for organizations. - -Roi Martin - Main developer - -Ryan Sullivan - Toggleable view frames - -Matthieu Rakotojaona - Wrapped views - -Harry Lawrence - Basic mouse support - -Danny Tylman - Masked views - -Frederik Deweerdt - Colored fonts - -Henri Koski - Custom current view color - -Dustin Willis Webber - 256-colors output mode support diff --git a/vendor/github.com/jroimartin/gocui/LICENSE b/vendor/github.com/jroimartin/gocui/LICENSE deleted file mode 100644 index 8cb2821..0000000 --- a/vendor/github.com/jroimartin/gocui/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -Copyright (c) 2014 The gocui Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the gocui Authors nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/jroimartin/gocui/README.md b/vendor/github.com/jroimartin/gocui/README.md deleted file mode 100644 index b1b44cd..0000000 --- a/vendor/github.com/jroimartin/gocui/README.md +++ /dev/null @@ -1,105 +0,0 @@ -# GOCUI - Go Console User Interface - -[![GoDoc](https://godoc.org/github.com/jroimartin/gocui?status.svg)](https://godoc.org/github.com/jroimartin/gocui) - -Minimalist Go package aimed at creating Console User Interfaces. - -## Features - -* Minimalist API. -* Views (the "windows" in the GUI) implement the interface io.ReadWriter. -* Support for overlapping views. -* The GUI can be modified at runtime (concurrent-safe). -* Global and view-level keybindings. -* Mouse support. -* Colored text. -* Customizable edition mode. -* Easy to build reusable widgets, complex layouts... - -## Installation - -Execute: - -``` -$ go get github.com/jroimartin/gocui -``` - -## Documentation - -Execute: - -``` -$ go doc github.com/jroimartin/gocui -``` - -Or visit [godoc.org](https://godoc.org/github.com/jroimartin/gocui) to read it -online. - -## Example - -```go -package main - -import ( - "fmt" - "log" - - "github.com/jroimartin/gocui" -) - -func main() { - g, err := gocui.NewGui(gocui.OutputNormal) - if err != nil { - log.Panicln(err) - } - defer g.Close() - - g.SetManagerFunc(layout) - - if err := g.SetKeybinding("", gocui.KeyCtrlC, gocui.ModNone, quit); err != nil { - log.Panicln(err) - } - - if err := g.MainLoop(); err != nil && err != gocui.ErrQuit { - log.Panicln(err) - } -} - -func layout(g *gocui.Gui) error { - maxX, maxY := g.Size() - if v, err := g.SetView("hello", maxX/2-7, maxY/2, maxX/2+7, maxY/2+2); err != nil { - if err != gocui.ErrUnknownView { - return err - } - fmt.Fprintln(v, "Hello world!") - } - return nil -} - -func quit(g *gocui.Gui, v *gocui.View) error { - return gocui.ErrQuit -} -``` - -## Screenshots - -![r2cui](https://cloud.githubusercontent.com/assets/1223476/19418932/63645052-93ce-11e6-867c-da5e97e37237.png) - -![_examples/demo.go](https://cloud.githubusercontent.com/assets/1223476/5992750/720b84f0-aa36-11e4-88ec-296fa3247b52.png) - -![_examples/dynamic.go](https://cloud.githubusercontent.com/assets/1223476/5992751/76ad5cc2-aa36-11e4-8204-6a90269db827.png) - -## Projects using gocui - -* [komanda-cli](https://github.com/mephux/komanda-cli): IRC Client For Developers. -* [vuls](https://github.com/future-architect/vuls): Agentless vulnerability scanner for Linux/FreeBSD. -* [wuzz](https://github.com/asciimoo/wuzz): Interactive cli tool for HTTP inspection. -* [httplab](https://github.com/gchaincl/httplab): Interactive web server. -* [domainr](https://github.com/MichaelThessel/domainr): Tool that checks the availability of domains based on keywords. -* [gotime](https://github.com/nanohard/gotime): Time tracker for projects and tasks. -* [claws](https://github.com/thehowl/claws): Interactive command line client for testing websockets. -* [terminews](http://github.com/antavelos/terminews): Terminal based RSS reader. -* [diagram](https://github.com/esimov/diagram): Tool to convert ascii arts into hand drawn diagrams. -* [pody](https://github.com/JulienBreux/pody): CLI app to manage Pods in a Kubernetes cluster. - -Note: if your project is not listed here, let us know! :) diff --git a/vendor/github.com/jroimartin/gocui/attribute.go b/vendor/github.com/jroimartin/gocui/attribute.go deleted file mode 100644 index bad758a..0000000 --- a/vendor/github.com/jroimartin/gocui/attribute.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2014 The gocui Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gocui - -import "github.com/nsf/termbox-go" - -// Attribute represents a terminal attribute, like color, font style, etc. They -// can be combined using bitwise OR (|). Note that it is not possible to -// combine multiple color attributes. -type Attribute termbox.Attribute - -// Color attributes. -const ( - ColorDefault Attribute = Attribute(termbox.ColorDefault) - ColorBlack = Attribute(termbox.ColorBlack) - ColorRed = Attribute(termbox.ColorRed) - ColorGreen = Attribute(termbox.ColorGreen) - ColorYellow = Attribute(termbox.ColorYellow) - ColorBlue = Attribute(termbox.ColorBlue) - ColorMagenta = Attribute(termbox.ColorMagenta) - ColorCyan = Attribute(termbox.ColorCyan) - ColorWhite = Attribute(termbox.ColorWhite) -) - -// Text style attributes. -const ( - AttrBold Attribute = Attribute(termbox.AttrBold) - AttrUnderline = Attribute(termbox.AttrUnderline) - AttrReverse = Attribute(termbox.AttrReverse) -) diff --git a/vendor/github.com/jroimartin/gocui/doc.go b/vendor/github.com/jroimartin/gocui/doc.go deleted file mode 100644 index fe128af..0000000 --- a/vendor/github.com/jroimartin/gocui/doc.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2014 The gocui Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -/* -Package gocui allows to create console user interfaces. - -Create a new GUI: - - g, err := gocui.NewGui(gocui.OutputNormal) - if err != nil { - // handle error - } - defer g.Close() - - // Set GUI managers and key bindings - // ... - - if err := g.MainLoop(); err != nil && err != gocui.ErrQuit { - // handle error - } - -Set GUI managers: - - g.SetManager(mgr1, mgr2) - -Managers are in charge of GUI's layout and can be used to build widgets. On -each iteration of the GUI's main loop, the Layout function of each configured -manager is executed. Managers are used to set-up and update the application's -main views, being possible to freely change them during execution. Also, it is -important to mention that a main loop iteration is executed on each reported -event (key-press, mouse event, window resize, etc). - -GUIs are composed by Views, you can think of it as buffers. Views implement the -io.ReadWriter interface, so you can just write to them if you want to modify -their content. The same is valid for reading. - -Create and initialize a view with absolute coordinates: - - if v, err := g.SetView("viewname", 2, 2, 22, 7); err != nil { - if err != gocui.ErrUnknownView { - // handle error - } - fmt.Fprintln(v, "This is a new view") - // ... - } - -Views can also be created using relative coordinates: - - maxX, maxY := g.Size() - if v, err := g.SetView("viewname", maxX/2-30, maxY/2, maxX/2+30, maxY/2+2); err != nil { - // ... - } - -Configure keybindings: - - if err := g.SetKeybinding("viewname", gocui.KeyEnter, gocui.ModNone, fcn); err != nil { - // handle error - } - -gocui implements full mouse support that can be enabled with: - - g.Mouse = true - -Mouse events are handled like any other keybinding: - - if err := g.SetKeybinding("viewname", gocui.MouseLeft, gocui.ModNone, fcn); err != nil { - // handle error - } - -IMPORTANT: Views can only be created, destroyed or updated in three ways: from -the Layout function within managers, from keybinding callbacks or via -*Gui.Update(). The reason for this is that it allows gocui to be -concurrent-safe. So, if you want to update your GUI from a goroutine, you must -use *Gui.Update(). For example: - - g.Update(func(g *gocui.Gui) error { - v, err := g.View("viewname") - if err != nil { - // handle error - } - v.Clear() - fmt.Fprintln(v, "Writing from different goroutines") - return nil - }) - -By default, gocui provides a basic edition mode. This mode can be extended -and customized creating a new Editor and assigning it to *View.Editor: - - type Editor interface { - Edit(v *View, key Key, ch rune, mod Modifier) - } - -DefaultEditor can be taken as example to create your own custom Editor: - - var DefaultEditor Editor = EditorFunc(simpleEditor) - - func simpleEditor(v *View, key Key, ch rune, mod Modifier) { - switch { - case ch != 0 && mod == 0: - v.EditWrite(ch) - case key == KeySpace: - v.EditWrite(' ') - case key == KeyBackspace || key == KeyBackspace2: - v.EditDelete(true) - // ... - } - } - -Colored text: - -Views allow to add colored text using ANSI colors. For example: - - fmt.Fprintln(v, "\x1b[0;31mHello world") - -For more information, see the examples in folder "_examples/". -*/ -package gocui diff --git a/vendor/github.com/jroimartin/gocui/edit.go b/vendor/github.com/jroimartin/gocui/edit.go deleted file mode 100644 index e1b19c2..0000000 --- a/vendor/github.com/jroimartin/gocui/edit.go +++ /dev/null @@ -1,344 +0,0 @@ -// Copyright 2014 The gocui Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gocui - -import "errors" - -const maxInt = int(^uint(0) >> 1) - -// Editor interface must be satisfied by gocui editors. -type Editor interface { - Edit(v *View, key Key, ch rune, mod Modifier) -} - -// The EditorFunc type is an adapter to allow the use of ordinary functions as -// Editors. If f is a function with the appropriate signature, EditorFunc(f) -// is an Editor object that calls f. -type EditorFunc func(v *View, key Key, ch rune, mod Modifier) - -// Edit calls f(v, key, ch, mod) -func (f EditorFunc) Edit(v *View, key Key, ch rune, mod Modifier) { - f(v, key, ch, mod) -} - -// DefaultEditor is the default editor. -var DefaultEditor Editor = EditorFunc(simpleEditor) - -// simpleEditor is used as the default gocui editor. -func simpleEditor(v *View, key Key, ch rune, mod Modifier) { - switch { - case ch != 0 && mod == 0: - v.EditWrite(ch) - case key == KeySpace: - v.EditWrite(' ') - case key == KeyBackspace || key == KeyBackspace2: - v.EditDelete(true) - case key == KeyDelete: - v.EditDelete(false) - case key == KeyInsert: - v.Overwrite = !v.Overwrite - case key == KeyEnter: - v.EditNewLine() - case key == KeyArrowDown: - v.MoveCursor(0, 1, false) - case key == KeyArrowUp: - v.MoveCursor(0, -1, false) - case key == KeyArrowLeft: - v.MoveCursor(-1, 0, false) - case key == KeyArrowRight: - v.MoveCursor(1, 0, false) - } -} - -// EditWrite writes a rune at the cursor position. -func (v *View) EditWrite(ch rune) { - v.writeRune(v.cx, v.cy, ch) - v.MoveCursor(1, 0, true) -} - -// EditDelete deletes a rune at the cursor position. back determines the -// direction. -func (v *View) EditDelete(back bool) { - x, y := v.ox+v.cx, v.oy+v.cy - if y < 0 { - return - } else if y >= len(v.viewLines) { - v.MoveCursor(-1, 0, true) - return - } - - maxX, _ := v.Size() - if back { - if x == 0 { // start of the line - if y < 1 { - return - } - - var maxPrevWidth int - if v.Wrap { - maxPrevWidth = maxX - } else { - maxPrevWidth = maxInt - } - - if v.viewLines[y].linesX == 0 { // regular line - v.mergeLines(v.cy - 1) - if len(v.viewLines[y-1].line) < maxPrevWidth { - v.MoveCursor(-1, 0, true) - } - } else { // wrapped line - v.deleteRune(len(v.viewLines[y-1].line)-1, v.cy-1) - v.MoveCursor(-1, 0, true) - } - } else { // middle/end of the line - v.deleteRune(v.cx-1, v.cy) - v.MoveCursor(-1, 0, true) - } - } else { - if x == len(v.viewLines[y].line) { // end of the line - v.mergeLines(v.cy) - } else { // start/middle of the line - v.deleteRune(v.cx, v.cy) - } - } -} - -// EditNewLine inserts a new line under the cursor. -func (v *View) EditNewLine() { - v.breakLine(v.cx, v.cy) - v.ox = 0 - v.cx = 0 - v.MoveCursor(0, 1, true) -} - -// MoveCursor moves the cursor taking into account the width of the line/view, -// displacing the origin if necessary. -func (v *View) MoveCursor(dx, dy int, writeMode bool) { - maxX, maxY := v.Size() - cx, cy := v.cx+dx, v.cy+dy - x, y := v.ox+cx, v.oy+cy - - var curLineWidth, prevLineWidth int - // get the width of the current line - if writeMode { - if v.Wrap { - curLineWidth = maxX - 1 - } else { - curLineWidth = maxInt - } - } else { - if y >= 0 && y < len(v.viewLines) { - curLineWidth = len(v.viewLines[y].line) - if v.Wrap && curLineWidth >= maxX { - curLineWidth = maxX - 1 - } - } else { - curLineWidth = 0 - } - } - // get the width of the previous line - if y-1 >= 0 && y-1 < len(v.viewLines) { - prevLineWidth = len(v.viewLines[y-1].line) - } else { - prevLineWidth = 0 - } - - // adjust cursor's x position and view's x origin - if x > curLineWidth { // move to next line - if dx > 0 { // horizontal movement - cy++ - if writeMode || v.oy+cy < len(v.viewLines) { - if !v.Wrap { - v.ox = 0 - } - v.cx = 0 - } - } else { // vertical movement - if curLineWidth > 0 { // move cursor to the EOL - if v.Wrap { - v.cx = curLineWidth - } else { - ncx := curLineWidth - v.ox - if ncx < 0 { - v.ox += ncx - if v.ox < 0 { - v.ox = 0 - } - v.cx = 0 - } else { - v.cx = ncx - } - } - } else { - if writeMode || v.oy+cy < len(v.viewLines) { - if !v.Wrap { - v.ox = 0 - } - v.cx = 0 - } - } - } - } else if cx < 0 { - if !v.Wrap && v.ox > 0 { // move origin to the left - v.ox += cx - v.cx = 0 - } else { // move to previous line - cy-- - if prevLineWidth > 0 { - if !v.Wrap { // set origin so the EOL is visible - nox := prevLineWidth - maxX + 1 - if nox < 0 { - v.ox = 0 - } else { - v.ox = nox - } - } - v.cx = prevLineWidth - } else { - if !v.Wrap { - v.ox = 0 - } - v.cx = 0 - } - } - } else { // stay on the same line - if v.Wrap { - v.cx = cx - } else { - if cx >= maxX { - v.ox += cx - maxX + 1 - v.cx = maxX - } else { - v.cx = cx - } - } - } - - // adjust cursor's y position and view's y origin - if cy < 0 { - if v.oy > 0 { - v.oy-- - } - } else if writeMode || v.oy+cy < len(v.viewLines) { - if cy >= maxY { - v.oy++ - } else { - v.cy = cy - } - } -} - -// writeRune writes a rune into the view's internal buffer, at the -// position corresponding to the point (x, y). The length of the internal -// buffer is increased if the point is out of bounds. Overwrite mode is -// governed by the value of View.overwrite. -func (v *View) writeRune(x, y int, ch rune) error { - v.tainted = true - - x, y, err := v.realPosition(x, y) - if err != nil { - return err - } - - if x < 0 || y < 0 { - return errors.New("invalid point") - } - - if y >= len(v.lines) { - s := make([][]cell, y-len(v.lines)+1) - v.lines = append(v.lines, s...) - } - - olen := len(v.lines[y]) - - var s []cell - if x >= len(v.lines[y]) { - s = make([]cell, x-len(v.lines[y])+1) - } else if !v.Overwrite { - s = make([]cell, 1) - } - v.lines[y] = append(v.lines[y], s...) - - if !v.Overwrite || (v.Overwrite && x >= olen-1) { - copy(v.lines[y][x+1:], v.lines[y][x:]) - } - v.lines[y][x] = cell{ - fgColor: v.FgColor, - bgColor: v.BgColor, - chr: ch, - } - - return nil -} - -// deleteRune removes a rune from the view's internal buffer, at the -// position corresponding to the point (x, y). -func (v *View) deleteRune(x, y int) error { - v.tainted = true - - x, y, err := v.realPosition(x, y) - if err != nil { - return err - } - - if x < 0 || y < 0 || y >= len(v.lines) || x >= len(v.lines[y]) { - return errors.New("invalid point") - } - v.lines[y] = append(v.lines[y][:x], v.lines[y][x+1:]...) - return nil -} - -// mergeLines merges the lines "y" and "y+1" if possible. -func (v *View) mergeLines(y int) error { - v.tainted = true - - _, y, err := v.realPosition(0, y) - if err != nil { - return err - } - - if y < 0 || y >= len(v.lines) { - return errors.New("invalid point") - } - - if y < len(v.lines)-1 { // otherwise we don't need to merge anything - v.lines[y] = append(v.lines[y], v.lines[y+1]...) - v.lines = append(v.lines[:y+1], v.lines[y+2:]...) - } - return nil -} - -// breakLine breaks a line of the internal buffer at the position corresponding -// to the point (x, y). -func (v *View) breakLine(x, y int) error { - v.tainted = true - - x, y, err := v.realPosition(x, y) - if err != nil { - return err - } - - if y < 0 || y >= len(v.lines) { - return errors.New("invalid point") - } - - var left, right []cell - if x < len(v.lines[y]) { // break line - left = make([]cell, len(v.lines[y][:x])) - copy(left, v.lines[y][:x]) - right = make([]cell, len(v.lines[y][x:])) - copy(right, v.lines[y][x:]) - } else { // new empty line - left = v.lines[y] - } - - lines := make([][]cell, len(v.lines)+1) - lines[y] = left - lines[y+1] = right - copy(lines, v.lines[:y]) - copy(lines[y+2:], v.lines[y+1:]) - v.lines = lines - return nil -} diff --git a/vendor/github.com/jroimartin/gocui/escape.go b/vendor/github.com/jroimartin/gocui/escape.go deleted file mode 100644 index ec31bbe..0000000 --- a/vendor/github.com/jroimartin/gocui/escape.go +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright 2014 The gocui Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gocui - -import ( - "errors" - "strconv" -) - -type escapeInterpreter struct { - state escapeState - curch rune - csiParam []string - curFgColor, curBgColor Attribute - mode OutputMode -} - -type escapeState int - -const ( - stateNone escapeState = iota - stateEscape - stateCSI - stateParams -) - -var ( - errNotCSI = errors.New("Not a CSI escape sequence") - errCSIParseError = errors.New("CSI escape sequence parsing error") - errCSITooLong = errors.New("CSI escape sequence is too long") -) - -// runes in case of error will output the non-parsed runes as a string. -func (ei *escapeInterpreter) runes() []rune { - switch ei.state { - case stateNone: - return []rune{0x1b} - case stateEscape: - return []rune{0x1b, ei.curch} - case stateCSI: - return []rune{0x1b, '[', ei.curch} - case stateParams: - ret := []rune{0x1b, '['} - for _, s := range ei.csiParam { - ret = append(ret, []rune(s)...) - ret = append(ret, ';') - } - return append(ret, ei.curch) - } - return nil -} - -// newEscapeInterpreter returns an escapeInterpreter that will be able to parse -// terminal escape sequences. -func newEscapeInterpreter(mode OutputMode) *escapeInterpreter { - ei := &escapeInterpreter{ - state: stateNone, - curFgColor: ColorDefault, - curBgColor: ColorDefault, - mode: mode, - } - return ei -} - -// reset sets the escapeInterpreter in initial state. -func (ei *escapeInterpreter) reset() { - ei.state = stateNone - ei.curFgColor = ColorDefault - ei.curBgColor = ColorDefault - ei.csiParam = nil -} - -// parseOne parses a rune. If isEscape is true, it means that the rune is part -// of an escape sequence, and as such should not be printed verbatim. Otherwise, -// it's not an escape sequence. -func (ei *escapeInterpreter) parseOne(ch rune) (isEscape bool, err error) { - // Sanity checks - if len(ei.csiParam) > 20 { - return false, errCSITooLong - } - if len(ei.csiParam) > 0 && len(ei.csiParam[len(ei.csiParam)-1]) > 255 { - return false, errCSITooLong - } - - ei.curch = ch - - switch ei.state { - case stateNone: - if ch == 0x1b { - ei.state = stateEscape - return true, nil - } - return false, nil - case stateEscape: - if ch == '[' { - ei.state = stateCSI - return true, nil - } - return false, errNotCSI - case stateCSI: - switch { - case ch >= '0' && ch <= '9': - ei.csiParam = append(ei.csiParam, "") - case ch == 'm': - ei.csiParam = append(ei.csiParam, "0") - default: - return false, errCSIParseError - } - ei.state = stateParams - fallthrough - case stateParams: - switch { - case ch >= '0' && ch <= '9': - ei.csiParam[len(ei.csiParam)-1] += string(ch) - return true, nil - case ch == ';': - ei.csiParam = append(ei.csiParam, "") - return true, nil - case ch == 'm': - var err error - switch ei.mode { - case OutputNormal: - err = ei.outputNormal() - case Output256: - err = ei.output256() - } - if err != nil { - return false, errCSIParseError - } - - ei.state = stateNone - ei.csiParam = nil - return true, nil - default: - return false, errCSIParseError - } - } - return false, nil -} - -// outputNormal provides 8 different colors: -// black, red, green, yellow, blue, magenta, cyan, white -func (ei *escapeInterpreter) outputNormal() error { - for _, param := range ei.csiParam { - p, err := strconv.Atoi(param) - if err != nil { - return errCSIParseError - } - - switch { - case p >= 30 && p <= 37: - ei.curFgColor = Attribute(p - 30 + 1) - case p == 39: - ei.curFgColor = ColorDefault - case p >= 40 && p <= 47: - ei.curBgColor = Attribute(p - 40 + 1) - case p == 49: - ei.curBgColor = ColorDefault - case p == 1: - ei.curFgColor |= AttrBold - case p == 4: - ei.curFgColor |= AttrUnderline - case p == 7: - ei.curFgColor |= AttrReverse - case p == 0: - ei.curFgColor = ColorDefault - ei.curBgColor = ColorDefault - } - } - - return nil -} - -// output256 allows you to leverage the 256-colors terminal mode: -// 0x01 - 0x08: the 8 colors as in OutputNormal -// 0x09 - 0x10: Color* | AttrBold -// 0x11 - 0xe8: 216 different colors -// 0xe9 - 0x1ff: 24 different shades of grey -func (ei *escapeInterpreter) output256() error { - if len(ei.csiParam) < 3 { - return ei.outputNormal() - } - - mode, err := strconv.Atoi(ei.csiParam[1]) - if err != nil { - return errCSIParseError - } - if mode != 5 { - return ei.outputNormal() - } - - fgbg, err := strconv.Atoi(ei.csiParam[0]) - if err != nil { - return errCSIParseError - } - color, err := strconv.Atoi(ei.csiParam[2]) - if err != nil { - return errCSIParseError - } - - switch fgbg { - case 38: - ei.curFgColor = Attribute(color + 1) - - for _, param := range ei.csiParam[3:] { - p, err := strconv.Atoi(param) - if err != nil { - return errCSIParseError - } - - switch { - case p == 1: - ei.curFgColor |= AttrBold - case p == 4: - ei.curFgColor |= AttrUnderline - case p == 7: - ei.curFgColor |= AttrReverse - } - } - case 48: - ei.curBgColor = Attribute(color + 1) - default: - return errCSIParseError - } - - return nil -} diff --git a/vendor/github.com/jroimartin/gocui/gui.go b/vendor/github.com/jroimartin/gocui/gui.go deleted file mode 100644 index 9499d3c..0000000 --- a/vendor/github.com/jroimartin/gocui/gui.go +++ /dev/null @@ -1,636 +0,0 @@ -// Copyright 2014 The gocui Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gocui - -import ( - "errors" - - "github.com/nsf/termbox-go" -) - -var ( - // ErrQuit is used to decide if the MainLoop finished successfully. - ErrQuit = errors.New("quit") - - // ErrUnknownView allows to assert if a View must be initialized. - ErrUnknownView = errors.New("unknown view") -) - -// OutputMode represents the terminal's output mode (8 or 256 colors). -type OutputMode termbox.OutputMode - -const ( - // OutputNormal provides 8-colors terminal mode. - OutputNormal = OutputMode(termbox.OutputNormal) - - // Output256 provides 256-colors terminal mode. - Output256 = OutputMode(termbox.Output256) -) - -// Gui represents the whole User Interface, including the views, layouts -// and keybindings. -type Gui struct { - tbEvents chan termbox.Event - userEvents chan userEvent - views []*View - currentView *View - managers []Manager - keybindings []*keybinding - maxX, maxY int - outputMode OutputMode - - // BgColor and FgColor allow to configure the background and foreground - // colors of the GUI. - BgColor, FgColor Attribute - - // SelBgColor and SelFgColor allow to configure the background and - // foreground colors of the frame of the current view. - SelBgColor, SelFgColor Attribute - - // If Highlight is true, Sel{Bg,Fg}Colors will be used to draw the - // frame of the current view. - Highlight bool - - // If Cursor is true then the cursor is enabled. - Cursor bool - - // If Mouse is true then mouse events will be enabled. - Mouse bool - - // If InputEsc is true, when ESC sequence is in the buffer and it doesn't - // match any known sequence, ESC means KeyEsc. - InputEsc bool - - // If ASCII is true then use ASCII instead of unicode to draw the - // interface. Using ASCII is more portable. - ASCII bool -} - -// NewGui returns a new Gui object with a given output mode. -func NewGui(mode OutputMode) (*Gui, error) { - if err := termbox.Init(); err != nil { - return nil, err - } - - g := &Gui{} - - g.outputMode = mode - termbox.SetOutputMode(termbox.OutputMode(mode)) - - g.tbEvents = make(chan termbox.Event, 20) - g.userEvents = make(chan userEvent, 20) - - g.maxX, g.maxY = termbox.Size() - - g.BgColor, g.FgColor = ColorDefault, ColorDefault - g.SelBgColor, g.SelFgColor = ColorDefault, ColorDefault - - return g, nil -} - -// Close finalizes the library. It should be called after a successful -// initialization and when gocui is not needed anymore. -func (g *Gui) Close() { - termbox.Close() -} - -// Size returns the terminal's size. -func (g *Gui) Size() (x, y int) { - return g.maxX, g.maxY -} - -// SetRune writes a rune at the given point, relative to the top-left -// corner of the terminal. It checks if the position is valid and applies -// the given colors. -func (g *Gui) SetRune(x, y int, ch rune, fgColor, bgColor Attribute) error { - if x < 0 || y < 0 || x >= g.maxX || y >= g.maxY { - return errors.New("invalid point") - } - termbox.SetCell(x, y, ch, termbox.Attribute(fgColor), termbox.Attribute(bgColor)) - return nil -} - -// Rune returns the rune contained in the cell at the given position. -// It checks if the position is valid. -func (g *Gui) Rune(x, y int) (rune, error) { - if x < 0 || y < 0 || x >= g.maxX || y >= g.maxY { - return ' ', errors.New("invalid point") - } - c := termbox.CellBuffer()[y*g.maxX+x] - return c.Ch, nil -} - -// SetView creates a new view with its top-left corner at (x0, y0) -// and the bottom-right one at (x1, y1). If a view with the same name -// already exists, its dimensions are updated; otherwise, the error -// ErrUnknownView is returned, which allows to assert if the View must -// be initialized. It checks if the position is valid. -func (g *Gui) SetView(name string, x0, y0, x1, y1 int) (*View, error) { - if x0 >= x1 || y0 >= y1 { - return nil, errors.New("invalid dimensions") - } - if name == "" { - return nil, errors.New("invalid name") - } - - if v, err := g.View(name); err == nil { - v.x0 = x0 - v.y0 = y0 - v.x1 = x1 - v.y1 = y1 - v.tainted = true - return v, nil - } - - v := newView(name, x0, y0, x1, y1, g.outputMode) - v.BgColor, v.FgColor = g.BgColor, g.FgColor - v.SelBgColor, v.SelFgColor = g.SelBgColor, g.SelFgColor - g.views = append(g.views, v) - return v, ErrUnknownView -} - -// SetViewOnTop sets the given view on top of the existing ones. -func (g *Gui) SetViewOnTop(name string) (*View, error) { - for i, v := range g.views { - if v.name == name { - s := append(g.views[:i], g.views[i+1:]...) - g.views = append(s, v) - return v, nil - } - } - return nil, ErrUnknownView -} - -// SetViewOnBottom sets the given view on bottom of the existing ones. -func (g *Gui) SetViewOnBottom(name string) (*View, error) { - for i, v := range g.views { - if v.name == name { - s := append(g.views[:i], g.views[i+1:]...) - g.views = append([]*View{v}, s...) - return v, nil - } - } - return nil, ErrUnknownView -} - -// Views returns all the views in the GUI. -func (g *Gui) Views() []*View { - return g.views -} - -// View returns a pointer to the view with the given name, or error -// ErrUnknownView if a view with that name does not exist. -func (g *Gui) View(name string) (*View, error) { - for _, v := range g.views { - if v.name == name { - return v, nil - } - } - return nil, ErrUnknownView -} - -// ViewByPosition returns a pointer to a view matching the given position, or -// error ErrUnknownView if a view in that position does not exist. -func (g *Gui) ViewByPosition(x, y int) (*View, error) { - // traverse views in reverse order checking top views first - for i := len(g.views); i > 0; i-- { - v := g.views[i-1] - if x > v.x0 && x < v.x1 && y > v.y0 && y < v.y1 { - return v, nil - } - } - return nil, ErrUnknownView -} - -// ViewPosition returns the coordinates of the view with the given name, or -// error ErrUnknownView if a view with that name does not exist. -func (g *Gui) ViewPosition(name string) (x0, y0, x1, y1 int, err error) { - for _, v := range g.views { - if v.name == name { - return v.x0, v.y0, v.x1, v.y1, nil - } - } - return 0, 0, 0, 0, ErrUnknownView -} - -// DeleteView deletes a view by name. -func (g *Gui) DeleteView(name string) error { - for i, v := range g.views { - if v.name == name { - g.views = append(g.views[:i], g.views[i+1:]...) - return nil - } - } - return ErrUnknownView -} - -// SetCurrentView gives the focus to a given view. -func (g *Gui) SetCurrentView(name string) (*View, error) { - for _, v := range g.views { - if v.name == name { - g.currentView = v - return v, nil - } - } - return nil, ErrUnknownView -} - -// CurrentView returns the currently focused view, or nil if no view -// owns the focus. -func (g *Gui) CurrentView() *View { - return g.currentView -} - -// SetKeybinding creates a new keybinding. If viewname equals to "" -// (empty string) then the keybinding will apply to all views. key must -// be a rune or a Key. -func (g *Gui) SetKeybinding(viewname string, key interface{}, mod Modifier, handler func(*Gui, *View) error) error { - var kb *keybinding - - k, ch, err := getKey(key) - if err != nil { - return err - } - kb = newKeybinding(viewname, k, ch, mod, handler) - g.keybindings = append(g.keybindings, kb) - return nil -} - -// DeleteKeybinding deletes a keybinding. -func (g *Gui) DeleteKeybinding(viewname string, key interface{}, mod Modifier) error { - k, ch, err := getKey(key) - if err != nil { - return err - } - - for i, kb := range g.keybindings { - if kb.viewName == viewname && kb.ch == ch && kb.key == k && kb.mod == mod { - g.keybindings = append(g.keybindings[:i], g.keybindings[i+1:]...) - return nil - } - } - return errors.New("keybinding not found") -} - -// DeleteKeybindings deletes all keybindings of view. -func (g *Gui) DeleteKeybindings(viewname string) { - var s []*keybinding - for _, kb := range g.keybindings { - if kb.viewName != viewname { - s = append(s, kb) - } - } - g.keybindings = s -} - -// getKey takes an empty interface with a key and returns the corresponding -// typed Key or rune. -func getKey(key interface{}) (Key, rune, error) { - switch t := key.(type) { - case Key: - return t, 0, nil - case rune: - return 0, t, nil - default: - return 0, 0, errors.New("unknown type") - } -} - -// userEvent represents an event triggered by the user. -type userEvent struct { - f func(*Gui) error -} - -// Update executes the passed function. This method can be called safely from a -// goroutine in order to update the GUI. It is important to note that the -// passed function won't be executed immediately, instead it will be added to -// the user events queue. Given that Update spawns a goroutine, the order in -// which the user events will be handled is not guaranteed. -func (g *Gui) Update(f func(*Gui) error) { - go func() { g.userEvents <- userEvent{f: f} }() -} - -// A Manager is in charge of GUI's layout and can be used to build widgets. -type Manager interface { - // Layout is called every time the GUI is redrawn, it must contain the - // base views and its initializations. - Layout(*Gui) error -} - -// The ManagerFunc type is an adapter to allow the use of ordinary functions as -// Managers. If f is a function with the appropriate signature, ManagerFunc(f) -// is an Manager object that calls f. -type ManagerFunc func(*Gui) error - -// Layout calls f(g) -func (f ManagerFunc) Layout(g *Gui) error { - return f(g) -} - -// SetManager sets the given GUI managers. It deletes all views and -// keybindings. -func (g *Gui) SetManager(managers ...Manager) { - g.managers = managers - g.currentView = nil - g.views = nil - g.keybindings = nil - - go func() { g.tbEvents <- termbox.Event{Type: termbox.EventResize} }() -} - -// SetManagerFunc sets the given manager function. It deletes all views and -// keybindings. -func (g *Gui) SetManagerFunc(manager func(*Gui) error) { - g.SetManager(ManagerFunc(manager)) -} - -// MainLoop runs the main loop until an error is returned. A successful -// finish should return ErrQuit. -func (g *Gui) MainLoop() error { - go func() { - for { - g.tbEvents <- termbox.PollEvent() - } - }() - - inputMode := termbox.InputAlt - if g.InputEsc { - inputMode = termbox.InputEsc - } - if g.Mouse { - inputMode |= termbox.InputMouse - } - termbox.SetInputMode(inputMode) - - if err := g.flush(); err != nil { - return err - } - for { - select { - case ev := <-g.tbEvents: - if err := g.handleEvent(&ev); err != nil { - return err - } - case ev := <-g.userEvents: - if err := ev.f(g); err != nil { - return err - } - } - if err := g.consumeevents(); err != nil { - return err - } - if err := g.flush(); err != nil { - return err - } - } -} - -// consumeevents handles the remaining events in the events pool. -func (g *Gui) consumeevents() error { - for { - select { - case ev := <-g.tbEvents: - if err := g.handleEvent(&ev); err != nil { - return err - } - case ev := <-g.userEvents: - if err := ev.f(g); err != nil { - return err - } - default: - return nil - } - } -} - -// handleEvent handles an event, based on its type (key-press, error, -// etc.) -func (g *Gui) handleEvent(ev *termbox.Event) error { - switch ev.Type { - case termbox.EventKey, termbox.EventMouse: - return g.onKey(ev) - case termbox.EventError: - return ev.Err - default: - return nil - } -} - -// flush updates the gui, re-drawing frames and buffers. -func (g *Gui) flush() error { - termbox.Clear(termbox.Attribute(g.FgColor), termbox.Attribute(g.BgColor)) - - maxX, maxY := termbox.Size() - // if GUI's size has changed, we need to redraw all views - if maxX != g.maxX || maxY != g.maxY { - for _, v := range g.views { - v.tainted = true - } - } - g.maxX, g.maxY = maxX, maxY - - for _, m := range g.managers { - if err := m.Layout(g); err != nil { - return err - } - } - for _, v := range g.views { - if v.Frame { - var fgColor, bgColor Attribute - if g.Highlight && v == g.currentView { - fgColor = g.SelFgColor - bgColor = g.SelBgColor - } else { - fgColor = g.FgColor - bgColor = g.BgColor - } - - if err := g.drawFrameEdges(v, fgColor, bgColor); err != nil { - return err - } - if err := g.drawFrameCorners(v, fgColor, bgColor); err != nil { - return err - } - if v.Title != "" { - if err := g.drawTitle(v, fgColor, bgColor); err != nil { - return err - } - } - } - if err := g.draw(v); err != nil { - return err - } - } - termbox.Flush() - return nil -} - -// drawFrameEdges draws the horizontal and vertical edges of a view. -func (g *Gui) drawFrameEdges(v *View, fgColor, bgColor Attribute) error { - runeH, runeV := '─', '│' - if g.ASCII { - runeH, runeV = '-', '|' - } - - for x := v.x0 + 1; x < v.x1 && x < g.maxX; x++ { - if x < 0 { - continue - } - if v.y0 > -1 && v.y0 < g.maxY { - if err := g.SetRune(x, v.y0, runeH, fgColor, bgColor); err != nil { - return err - } - } - if v.y1 > -1 && v.y1 < g.maxY { - if err := g.SetRune(x, v.y1, runeH, fgColor, bgColor); err != nil { - return err - } - } - } - for y := v.y0 + 1; y < v.y1 && y < g.maxY; y++ { - if y < 0 { - continue - } - if v.x0 > -1 && v.x0 < g.maxX { - if err := g.SetRune(v.x0, y, runeV, fgColor, bgColor); err != nil { - return err - } - } - if v.x1 > -1 && v.x1 < g.maxX { - if err := g.SetRune(v.x1, y, runeV, fgColor, bgColor); err != nil { - return err - } - } - } - return nil -} - -// drawFrameCorners draws the corners of the view. -func (g *Gui) drawFrameCorners(v *View, fgColor, bgColor Attribute) error { - runeTL, runeTR, runeBL, runeBR := '┌', '┐', '└', '┘' - if g.ASCII { - runeTL, runeTR, runeBL, runeBR = '+', '+', '+', '+' - } - - corners := []struct { - x, y int - ch rune - }{{v.x0, v.y0, runeTL}, {v.x1, v.y0, runeTR}, {v.x0, v.y1, runeBL}, {v.x1, v.y1, runeBR}} - - for _, c := range corners { - if c.x >= 0 && c.y >= 0 && c.x < g.maxX && c.y < g.maxY { - if err := g.SetRune(c.x, c.y, c.ch, fgColor, bgColor); err != nil { - return err - } - } - } - return nil -} - -// drawTitle draws the title of the view. -func (g *Gui) drawTitle(v *View, fgColor, bgColor Attribute) error { - if v.y0 < 0 || v.y0 >= g.maxY { - return nil - } - - for i, ch := range v.Title { - x := v.x0 + i + 2 - if x < 0 { - continue - } else if x > v.x1-2 || x >= g.maxX { - break - } - if err := g.SetRune(x, v.y0, ch, fgColor, bgColor); err != nil { - return err - } - } - return nil -} - -// draw manages the cursor and calls the draw function of a view. -func (g *Gui) draw(v *View) error { - if g.Cursor { - if curview := g.currentView; curview != nil { - vMaxX, vMaxY := curview.Size() - if curview.cx < 0 { - curview.cx = 0 - } else if curview.cx >= vMaxX { - curview.cx = vMaxX - 1 - } - if curview.cy < 0 { - curview.cy = 0 - } else if curview.cy >= vMaxY { - curview.cy = vMaxY - 1 - } - - gMaxX, gMaxY := g.Size() - cx, cy := curview.x0+curview.cx+1, curview.y0+curview.cy+1 - if cx >= 0 && cx < gMaxX && cy >= 0 && cy < gMaxY { - termbox.SetCursor(cx, cy) - } else { - termbox.HideCursor() - } - } - } else { - termbox.HideCursor() - } - - v.clearRunes() - if err := v.draw(); err != nil { - return err - } - return nil -} - -// onKey manages key-press events. A keybinding handler is called when -// a key-press or mouse event satisfies a configured keybinding. Furthermore, -// currentView's internal buffer is modified if currentView.Editable is true. -func (g *Gui) onKey(ev *termbox.Event) error { - switch ev.Type { - case termbox.EventKey: - matched, err := g.execKeybindings(g.currentView, ev) - if err != nil { - return err - } - if matched { - break - } - if g.currentView != nil && g.currentView.Editable && g.currentView.Editor != nil { - g.currentView.Editor.Edit(g.currentView, Key(ev.Key), ev.Ch, Modifier(ev.Mod)) - } - case termbox.EventMouse: - mx, my := ev.MouseX, ev.MouseY - v, err := g.ViewByPosition(mx, my) - if err != nil { - break - } - if err := v.SetCursor(mx-v.x0-1, my-v.y0-1); err != nil { - return err - } - if _, err := g.execKeybindings(v, ev); err != nil { - return err - } - } - - return nil -} - -// execKeybindings executes the keybinding handlers that match the passed view -// and event. The value of matched is true if there is a match and no errors. -func (g *Gui) execKeybindings(v *View, ev *termbox.Event) (matched bool, err error) { - matched = false - for _, kb := range g.keybindings { - if kb.handler == nil { - continue - } - if kb.matchKeypress(Key(ev.Key), ev.Ch, Modifier(ev.Mod)) && kb.matchView(v) { - if err := kb.handler(g, v); err != nil { - return false, err - } - matched = true - } - } - return matched, nil -} diff --git a/vendor/github.com/jroimartin/gocui/keybinding.go b/vendor/github.com/jroimartin/gocui/keybinding.go deleted file mode 100644 index 03fe677..0000000 --- a/vendor/github.com/jroimartin/gocui/keybinding.go +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2014 The gocui Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gocui - -import "github.com/nsf/termbox-go" - -// Keybidings are used to link a given key-press event with a handler. -type keybinding struct { - viewName string - key Key - ch rune - mod Modifier - handler func(*Gui, *View) error -} - -// newKeybinding returns a new Keybinding object. -func newKeybinding(viewname string, key Key, ch rune, mod Modifier, handler func(*Gui, *View) error) (kb *keybinding) { - kb = &keybinding{ - viewName: viewname, - key: key, - ch: ch, - mod: mod, - handler: handler, - } - return kb -} - -// matchKeypress returns if the keybinding matches the keypress. -func (kb *keybinding) matchKeypress(key Key, ch rune, mod Modifier) bool { - return kb.key == key && kb.ch == ch && kb.mod == mod -} - -// matchView returns if the keybinding matches the current view. -func (kb *keybinding) matchView(v *View) bool { - if kb.viewName == "" { - return true - } - return v != nil && kb.viewName == v.name -} - -// Key represents special keys or keys combinations. -type Key termbox.Key - -// Special keys. -const ( - KeyF1 Key = Key(termbox.KeyF1) - KeyF2 = Key(termbox.KeyF2) - KeyF3 = Key(termbox.KeyF3) - KeyF4 = Key(termbox.KeyF4) - KeyF5 = Key(termbox.KeyF5) - KeyF6 = Key(termbox.KeyF6) - KeyF7 = Key(termbox.KeyF7) - KeyF8 = Key(termbox.KeyF8) - KeyF9 = Key(termbox.KeyF9) - KeyF10 = Key(termbox.KeyF10) - KeyF11 = Key(termbox.KeyF11) - KeyF12 = Key(termbox.KeyF12) - KeyInsert = Key(termbox.KeyInsert) - KeyDelete = Key(termbox.KeyDelete) - KeyHome = Key(termbox.KeyHome) - KeyEnd = Key(termbox.KeyEnd) - KeyPgup = Key(termbox.KeyPgup) - KeyPgdn = Key(termbox.KeyPgdn) - KeyArrowUp = Key(termbox.KeyArrowUp) - KeyArrowDown = Key(termbox.KeyArrowDown) - KeyArrowLeft = Key(termbox.KeyArrowLeft) - KeyArrowRight = Key(termbox.KeyArrowRight) - - MouseLeft = Key(termbox.MouseLeft) - MouseMiddle = Key(termbox.MouseMiddle) - MouseRight = Key(termbox.MouseRight) - MouseRelease = Key(termbox.MouseRelease) - MouseWheelUp = Key(termbox.MouseWheelUp) - MouseWheelDown = Key(termbox.MouseWheelDown) -) - -// Keys combinations. -const ( - KeyCtrlTilde Key = Key(termbox.KeyCtrlTilde) - KeyCtrl2 = Key(termbox.KeyCtrl2) - KeyCtrlSpace = Key(termbox.KeyCtrlSpace) - KeyCtrlA = Key(termbox.KeyCtrlA) - KeyCtrlB = Key(termbox.KeyCtrlB) - KeyCtrlC = Key(termbox.KeyCtrlC) - KeyCtrlD = Key(termbox.KeyCtrlD) - KeyCtrlE = Key(termbox.KeyCtrlE) - KeyCtrlF = Key(termbox.KeyCtrlF) - KeyCtrlG = Key(termbox.KeyCtrlG) - KeyBackspace = Key(termbox.KeyBackspace) - KeyCtrlH = Key(termbox.KeyCtrlH) - KeyTab = Key(termbox.KeyTab) - KeyCtrlI = Key(termbox.KeyCtrlI) - KeyCtrlJ = Key(termbox.KeyCtrlJ) - KeyCtrlK = Key(termbox.KeyCtrlK) - KeyCtrlL = Key(termbox.KeyCtrlL) - KeyEnter = Key(termbox.KeyEnter) - KeyCtrlM = Key(termbox.KeyCtrlM) - KeyCtrlN = Key(termbox.KeyCtrlN) - KeyCtrlO = Key(termbox.KeyCtrlO) - KeyCtrlP = Key(termbox.KeyCtrlP) - KeyCtrlQ = Key(termbox.KeyCtrlQ) - KeyCtrlR = Key(termbox.KeyCtrlR) - KeyCtrlS = Key(termbox.KeyCtrlS) - KeyCtrlT = Key(termbox.KeyCtrlT) - KeyCtrlU = Key(termbox.KeyCtrlU) - KeyCtrlV = Key(termbox.KeyCtrlV) - KeyCtrlW = Key(termbox.KeyCtrlW) - KeyCtrlX = Key(termbox.KeyCtrlX) - KeyCtrlY = Key(termbox.KeyCtrlY) - KeyCtrlZ = Key(termbox.KeyCtrlZ) - KeyEsc = Key(termbox.KeyEsc) - KeyCtrlLsqBracket = Key(termbox.KeyCtrlLsqBracket) - KeyCtrl3 = Key(termbox.KeyCtrl3) - KeyCtrl4 = Key(termbox.KeyCtrl4) - KeyCtrlBackslash = Key(termbox.KeyCtrlBackslash) - KeyCtrl5 = Key(termbox.KeyCtrl5) - KeyCtrlRsqBracket = Key(termbox.KeyCtrlRsqBracket) - KeyCtrl6 = Key(termbox.KeyCtrl6) - KeyCtrl7 = Key(termbox.KeyCtrl7) - KeyCtrlSlash = Key(termbox.KeyCtrlSlash) - KeyCtrlUnderscore = Key(termbox.KeyCtrlUnderscore) - KeySpace = Key(termbox.KeySpace) - KeyBackspace2 = Key(termbox.KeyBackspace2) - KeyCtrl8 = Key(termbox.KeyCtrl8) -) - -// Modifier allows to define special keys combinations. They can be used -// in combination with Keys or Runes when a new keybinding is defined. -type Modifier termbox.Modifier - -// Modifiers. -const ( - ModNone Modifier = Modifier(0) - ModAlt = Modifier(termbox.ModAlt) -) diff --git a/vendor/github.com/jroimartin/gocui/view.go b/vendor/github.com/jroimartin/gocui/view.go deleted file mode 100644 index 9e4da4d..0000000 --- a/vendor/github.com/jroimartin/gocui/view.go +++ /dev/null @@ -1,479 +0,0 @@ -// Copyright 2014 The gocui Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package gocui - -import ( - "bytes" - "errors" - "io" - "strings" - - "github.com/nsf/termbox-go" -) - -// A View is a window. It maintains its own internal buffer and cursor -// position. -type View struct { - name string - x0, y0, x1, y1 int - ox, oy int - cx, cy int - lines [][]cell - readOffset int - readCache string - - tainted bool // marks if the viewBuffer must be updated - viewLines []viewLine // internal representation of the view's buffer - - ei *escapeInterpreter // used to decode ESC sequences on Write - - // BgColor and FgColor allow to configure the background and foreground - // colors of the View. - BgColor, FgColor Attribute - - // SelBgColor and SelFgColor are used to configure the background and - // foreground colors of the selected line, when it is highlighted. - SelBgColor, SelFgColor Attribute - - // If Editable is true, keystrokes will be added to the view's internal - // buffer at the cursor position. - Editable bool - - // Editor allows to define the editor that manages the edition mode, - // including keybindings or cursor behaviour. DefaultEditor is used by - // default. - Editor Editor - - // Overwrite enables or disables the overwrite mode of the view. - Overwrite bool - - // If Highlight is true, Sel{Bg,Fg}Colors will be used - // for the line under the cursor position. - Highlight bool - - // If Frame is true, a border will be drawn around the view. - Frame bool - - // If Wrap is true, the content that is written to this View is - // automatically wrapped when it is longer than its width. If true the - // view's x-origin will be ignored. - Wrap bool - - // If Autoscroll is true, the View will automatically scroll down when the - // text overflows. If true the view's y-origin will be ignored. - Autoscroll bool - - // If Frame is true, Title allows to configure a title for the view. - Title string - - // If Mask is true, the View will display the mask instead of the real - // content - Mask rune -} - -type viewLine struct { - linesX, linesY int // coordinates relative to v.lines - line []cell -} - -type cell struct { - chr rune - bgColor, fgColor Attribute -} - -type lineType []cell - -// String returns a string from a given cell slice. -func (l lineType) String() string { - str := "" - for _, c := range l { - str += string(c.chr) - } - return str -} - -// newView returns a new View object. -func newView(name string, x0, y0, x1, y1 int, mode OutputMode) *View { - v := &View{ - name: name, - x0: x0, - y0: y0, - x1: x1, - y1: y1, - Frame: true, - Editor: DefaultEditor, - tainted: true, - ei: newEscapeInterpreter(mode), - } - return v -} - -// Size returns the number of visible columns and rows in the View. -func (v *View) Size() (x, y int) { - return v.x1 - v.x0 - 1, v.y1 - v.y0 - 1 -} - -// Name returns the name of the view. -func (v *View) Name() string { - return v.name -} - -// setRune sets a rune at the given point relative to the view. It applies the -// specified colors, taking into account if the cell must be highlighted. Also, -// it checks if the position is valid. -func (v *View) setRune(x, y int, ch rune, fgColor, bgColor Attribute) error { - maxX, maxY := v.Size() - if x < 0 || x >= maxX || y < 0 || y >= maxY { - return errors.New("invalid point") - } - - var ( - ry, rcy int - err error - ) - if v.Highlight { - _, ry, err = v.realPosition(x, y) - if err != nil { - return err - } - _, rcy, err = v.realPosition(v.cx, v.cy) - if err != nil { - return err - } - } - - if v.Mask != 0 { - fgColor = v.FgColor - bgColor = v.BgColor - ch = v.Mask - } else if v.Highlight && ry == rcy { - fgColor = v.SelFgColor - bgColor = v.SelBgColor - } - - termbox.SetCell(v.x0+x+1, v.y0+y+1, ch, - termbox.Attribute(fgColor), termbox.Attribute(bgColor)) - - return nil -} - -// SetCursor sets the cursor position of the view at the given point, -// relative to the view. It checks if the position is valid. -func (v *View) SetCursor(x, y int) error { - maxX, maxY := v.Size() - if x < 0 || x >= maxX || y < 0 || y >= maxY { - return errors.New("invalid point") - } - v.cx = x - v.cy = y - return nil -} - -// Cursor returns the cursor position of the view. -func (v *View) Cursor() (x, y int) { - return v.cx, v.cy -} - -// SetOrigin sets the origin position of the view's internal buffer, -// so the buffer starts to be printed from this point, which means that -// it is linked with the origin point of view. It can be used to -// implement Horizontal and Vertical scrolling with just incrementing -// or decrementing ox and oy. -func (v *View) SetOrigin(x, y int) error { - if x < 0 || y < 0 { - return errors.New("invalid point") - } - v.ox = x - v.oy = y - return nil -} - -// Origin returns the origin position of the view. -func (v *View) Origin() (x, y int) { - return v.ox, v.oy -} - -// Write appends a byte slice into the view's internal buffer. Because -// View implements the io.Writer interface, it can be passed as parameter -// of functions like fmt.Fprintf, fmt.Fprintln, io.Copy, etc. Clear must -// be called to clear the view's buffer. -func (v *View) Write(p []byte) (n int, err error) { - v.tainted = true - - for _, ch := range bytes.Runes(p) { - switch ch { - case '\n': - v.lines = append(v.lines, nil) - case '\r': - nl := len(v.lines) - if nl > 0 { - v.lines[nl-1] = nil - } else { - v.lines = make([][]cell, 1) - } - default: - cells := v.parseInput(ch) - if cells == nil { - continue - } - - nl := len(v.lines) - if nl > 0 { - v.lines[nl-1] = append(v.lines[nl-1], cells...) - } else { - v.lines = append(v.lines, cells) - } - } - } - return len(p), nil -} - -// parseInput parses char by char the input written to the View. It returns nil -// while processing ESC sequences. Otherwise, it returns a cell slice that -// contains the processed data. -func (v *View) parseInput(ch rune) []cell { - cells := []cell{} - - isEscape, err := v.ei.parseOne(ch) - if err != nil { - for _, r := range v.ei.runes() { - c := cell{ - fgColor: v.FgColor, - bgColor: v.BgColor, - chr: r, - } - cells = append(cells, c) - } - v.ei.reset() - } else { - if isEscape { - return nil - } - c := cell{ - fgColor: v.ei.curFgColor, - bgColor: v.ei.curBgColor, - chr: ch, - } - cells = append(cells, c) - } - - return cells -} - -// Read reads data into p. It returns the number of bytes read into p. -// At EOF, err will be io.EOF. Calling Read() after Rewind() makes the -// cache to be refreshed with the contents of the view. -func (v *View) Read(p []byte) (n int, err error) { - if v.readOffset == 0 { - v.readCache = v.Buffer() - } - if v.readOffset < len(v.readCache) { - n = copy(p, v.readCache[v.readOffset:]) - v.readOffset += n - } else { - err = io.EOF - } - return -} - -// Rewind sets the offset for the next Read to 0, which also refresh the -// read cache. -func (v *View) Rewind() { - v.readOffset = 0 -} - -// draw re-draws the view's contents. -func (v *View) draw() error { - maxX, maxY := v.Size() - - if v.Wrap { - if maxX == 0 { - return errors.New("X size of the view cannot be 0") - } - v.ox = 0 - } - if v.tainted { - v.viewLines = nil - for i, line := range v.lines { - if v.Wrap { - if len(line) < maxX { - vline := viewLine{linesX: 0, linesY: i, line: line} - v.viewLines = append(v.viewLines, vline) - continue - } else { - for n := 0; n <= len(line); n += maxX { - if len(line[n:]) <= maxX { - vline := viewLine{linesX: n, linesY: i, line: line[n:]} - v.viewLines = append(v.viewLines, vline) - } else { - vline := viewLine{linesX: n, linesY: i, line: line[n : n+maxX]} - v.viewLines = append(v.viewLines, vline) - } - } - } - } else { - vline := viewLine{linesX: 0, linesY: i, line: line} - v.viewLines = append(v.viewLines, vline) - } - } - v.tainted = false - } - - if v.Autoscroll && len(v.viewLines) > maxY { - v.oy = len(v.viewLines) - maxY - } - y := 0 - for i, vline := range v.viewLines { - if i < v.oy { - continue - } - if y >= maxY { - break - } - x := 0 - for j, c := range vline.line { - if j < v.ox { - continue - } - if x >= maxX { - break - } - - fgColor := c.fgColor - if fgColor == ColorDefault { - fgColor = v.FgColor - } - bgColor := c.bgColor - if bgColor == ColorDefault { - bgColor = v.BgColor - } - - if err := v.setRune(x, y, c.chr, fgColor, bgColor); err != nil { - return err - } - x++ - } - y++ - } - return nil -} - -// realPosition returns the position in the internal buffer corresponding to the -// point (x, y) of the view. -func (v *View) realPosition(vx, vy int) (x, y int, err error) { - vx = v.ox + vx - vy = v.oy + vy - - if vx < 0 || vy < 0 { - return 0, 0, errors.New("invalid point") - } - - if len(v.viewLines) == 0 { - return vx, vy, nil - } - - if vy < len(v.viewLines) { - vline := v.viewLines[vy] - x = vline.linesX + vx - y = vline.linesY - } else { - vline := v.viewLines[len(v.viewLines)-1] - x = vx - y = vline.linesY + vy - len(v.viewLines) + 1 - } - - return x, y, nil -} - -// Clear empties the view's internal buffer. -func (v *View) Clear() { - v.tainted = true - - v.lines = nil - v.viewLines = nil - v.readOffset = 0 - v.clearRunes() -} - -// clearRunes erases all the cells in the view. -func (v *View) clearRunes() { - maxX, maxY := v.Size() - for x := 0; x < maxX; x++ { - for y := 0; y < maxY; y++ { - termbox.SetCell(v.x0+x+1, v.y0+y+1, ' ', - termbox.Attribute(v.FgColor), termbox.Attribute(v.BgColor)) - } - } -} - -// Buffer returns a string with the contents of the view's internal -// buffer. -func (v *View) Buffer() string { - str := "" - for _, l := range v.lines { - str += lineType(l).String() + "\n" - } - return strings.Replace(str, "\x00", " ", -1) -} - -// ViewBuffer returns a string with the contents of the view's buffer that is -// shown to the user. -func (v *View) ViewBuffer() string { - str := "" - for _, l := range v.viewLines { - str += lineType(l.line).String() + "\n" - } - return strings.Replace(str, "\x00", " ", -1) -} - -// Line returns a string with the line of the view's internal buffer -// at the position corresponding to the point (x, y). -func (v *View) Line(y int) (string, error) { - _, y, err := v.realPosition(0, y) - if err != nil { - return "", err - } - - if y < 0 || y >= len(v.lines) { - return "", errors.New("invalid point") - } - - return lineType(v.lines[y]).String(), nil -} - -// Word returns a string with the word of the view's internal buffer -// at the position corresponding to the point (x, y). -func (v *View) Word(x, y int) (string, error) { - x, y, err := v.realPosition(x, y) - if err != nil { - return "", err - } - - if x < 0 || y < 0 || y >= len(v.lines) || x >= len(v.lines[y]) { - return "", errors.New("invalid point") - } - - str := lineType(v.lines[y]).String() - - nl := strings.LastIndexFunc(str[:x], indexFunc) - if nl == -1 { - nl = 0 - } else { - nl = nl + 1 - } - nr := strings.IndexFunc(str[x:], indexFunc) - if nr == -1 { - nr = len(str) - } else { - nr = nr + x - } - return string(str[nl:nr]), nil -} - -// indexFunc allows to split lines by words taking into account spaces -// and 0. -func indexFunc(r rune) bool { - return r == ' ' || r == 0 -} diff --git a/vendor/github.com/mattn/go-runewidth/.travis.yml b/vendor/github.com/mattn/go-runewidth/.travis.yml deleted file mode 100644 index 5c9c2a3..0000000 --- a/vendor/github.com/mattn/go-runewidth/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go -go: - - tip -before_install: - - go get github.com/mattn/goveralls - - go get golang.org/x/tools/cmd/cover -script: - - $HOME/gopath/bin/goveralls -repotoken lAKAWPzcGsD3A8yBX3BGGtRUdJ6CaGERL diff --git a/vendor/github.com/mattn/go-runewidth/LICENSE b/vendor/github.com/mattn/go-runewidth/LICENSE deleted file mode 100644 index 91b5cef..0000000 --- a/vendor/github.com/mattn/go-runewidth/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Yasuhiro Matsumoto - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/github.com/mattn/go-runewidth/README.mkd b/vendor/github.com/mattn/go-runewidth/README.mkd deleted file mode 100644 index 66663a9..0000000 --- a/vendor/github.com/mattn/go-runewidth/README.mkd +++ /dev/null @@ -1,27 +0,0 @@ -go-runewidth -============ - -[![Build Status](https://travis-ci.org/mattn/go-runewidth.png?branch=master)](https://travis-ci.org/mattn/go-runewidth) -[![Coverage Status](https://coveralls.io/repos/mattn/go-runewidth/badge.png?branch=HEAD)](https://coveralls.io/r/mattn/go-runewidth?branch=HEAD) -[![GoDoc](https://godoc.org/github.com/mattn/go-runewidth?status.svg)](http://godoc.org/github.com/mattn/go-runewidth) -[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/go-runewidth)](https://goreportcard.com/report/github.com/mattn/go-runewidth) - -Provides functions to get fixed width of the character or string. - -Usage ------ - -```go -runewidth.StringWidth("つのだ☆HIRO") == 12 -``` - - -Author ------- - -Yasuhiro Matsumoto - -License -------- - -under the MIT License: http://mattn.mit-license.org/2013 diff --git a/vendor/github.com/mattn/go-runewidth/runewidth.go b/vendor/github.com/mattn/go-runewidth/runewidth.go deleted file mode 100644 index 70de0dc..0000000 --- a/vendor/github.com/mattn/go-runewidth/runewidth.go +++ /dev/null @@ -1,1226 +0,0 @@ -package runewidth - -import "os" - -var ( - // EastAsianWidth will be set true if the current locale is CJK - EastAsianWidth = os.Getenv("RUNEWIDTH_EASTASIAN") == "1" || IsEastAsian() - - // DefaultCondition is a condition in current locale - DefaultCondition = &Condition{EastAsianWidth} -) - -type interval struct { - first rune - last rune -} - -type table []interval - -func inTables(r rune, ts ...table) bool { - for _, t := range ts { - if inTable(r, t) { - return true - } - } - return false -} - -func inTable(r rune, t table) bool { - // func (t table) IncludesRune(r rune) bool { - if r < t[0].first { - return false - } - - bot := 0 - top := len(t) - 1 - for top >= bot { - mid := (bot + top) / 2 - - switch { - case t[mid].last < r: - bot = mid + 1 - case t[mid].first > r: - top = mid - 1 - default: - return true - } - } - - return false -} - -var private = table{ - {0x00E000, 0x00F8FF}, {0x0F0000, 0x0FFFFD}, {0x100000, 0x10FFFD}, -} - -var nonprint = table{ - {0x0000, 0x001F}, {0x007F, 0x009F}, {0x00AD, 0x00AD}, - {0x070F, 0x070F}, {0x180B, 0x180E}, {0x200B, 0x200F}, - {0x2028, 0x2029}, - {0x202A, 0x202E}, {0x206A, 0x206F}, {0xD800, 0xDFFF}, - {0xFEFF, 0xFEFF}, {0xFFF9, 0xFFFB}, {0xFFFE, 0xFFFF}, -} - -var combining = table{ - {0x0300, 0x036F}, {0x0483, 0x0489}, {0x0591, 0x05BD}, - {0x05BF, 0x05BF}, {0x05C1, 0x05C2}, {0x05C4, 0x05C5}, - {0x05C7, 0x05C7}, {0x0610, 0x061A}, {0x064B, 0x065F}, - {0x0670, 0x0670}, {0x06D6, 0x06DC}, {0x06DF, 0x06E4}, - {0x06E7, 0x06E8}, {0x06EA, 0x06ED}, {0x0711, 0x0711}, - {0x0730, 0x074A}, {0x07A6, 0x07B0}, {0x07EB, 0x07F3}, - {0x0816, 0x0819}, {0x081B, 0x0823}, {0x0825, 0x0827}, - {0x0829, 0x082D}, {0x0859, 0x085B}, {0x08D4, 0x08E1}, - {0x08E3, 0x0903}, {0x093A, 0x093C}, {0x093E, 0x094F}, - {0x0951, 0x0957}, {0x0962, 0x0963}, {0x0981, 0x0983}, - {0x09BC, 0x09BC}, {0x09BE, 0x09C4}, {0x09C7, 0x09C8}, - {0x09CB, 0x09CD}, {0x09D7, 0x09D7}, {0x09E2, 0x09E3}, - {0x0A01, 0x0A03}, {0x0A3C, 0x0A3C}, {0x0A3E, 0x0A42}, - {0x0A47, 0x0A48}, {0x0A4B, 0x0A4D}, {0x0A51, 0x0A51}, - {0x0A70, 0x0A71}, {0x0A75, 0x0A75}, {0x0A81, 0x0A83}, - {0x0ABC, 0x0ABC}, {0x0ABE, 0x0AC5}, {0x0AC7, 0x0AC9}, - {0x0ACB, 0x0ACD}, {0x0AE2, 0x0AE3}, {0x0B01, 0x0B03}, - {0x0B3C, 0x0B3C}, {0x0B3E, 0x0B44}, {0x0B47, 0x0B48}, - {0x0B4B, 0x0B4D}, {0x0B56, 0x0B57}, {0x0B62, 0x0B63}, - {0x0B82, 0x0B82}, {0x0BBE, 0x0BC2}, {0x0BC6, 0x0BC8}, - {0x0BCA, 0x0BCD}, {0x0BD7, 0x0BD7}, {0x0C00, 0x0C03}, - {0x0C3E, 0x0C44}, {0x0C46, 0x0C48}, {0x0C4A, 0x0C4D}, - {0x0C55, 0x0C56}, {0x0C62, 0x0C63}, {0x0C81, 0x0C83}, - {0x0CBC, 0x0CBC}, {0x0CBE, 0x0CC4}, {0x0CC6, 0x0CC8}, - {0x0CCA, 0x0CCD}, {0x0CD5, 0x0CD6}, {0x0CE2, 0x0CE3}, - {0x0D01, 0x0D03}, {0x0D3E, 0x0D44}, {0x0D46, 0x0D48}, - {0x0D4A, 0x0D4D}, {0x0D57, 0x0D57}, {0x0D62, 0x0D63}, - {0x0D82, 0x0D83}, {0x0DCA, 0x0DCA}, {0x0DCF, 0x0DD4}, - {0x0DD6, 0x0DD6}, {0x0DD8, 0x0DDF}, {0x0DF2, 0x0DF3}, - {0x0E31, 0x0E31}, {0x0E34, 0x0E3A}, {0x0E47, 0x0E4E}, - {0x0EB1, 0x0EB1}, {0x0EB4, 0x0EB9}, {0x0EBB, 0x0EBC}, - {0x0EC8, 0x0ECD}, {0x0F18, 0x0F19}, {0x0F35, 0x0F35}, - {0x0F37, 0x0F37}, {0x0F39, 0x0F39}, {0x0F3E, 0x0F3F}, - {0x0F71, 0x0F84}, {0x0F86, 0x0F87}, {0x0F8D, 0x0F97}, - {0x0F99, 0x0FBC}, {0x0FC6, 0x0FC6}, {0x102B, 0x103E}, - {0x1056, 0x1059}, {0x105E, 0x1060}, {0x1062, 0x1064}, - {0x1067, 0x106D}, {0x1071, 0x1074}, {0x1082, 0x108D}, - {0x108F, 0x108F}, {0x109A, 0x109D}, {0x135D, 0x135F}, - {0x1712, 0x1714}, {0x1732, 0x1734}, {0x1752, 0x1753}, - {0x1772, 0x1773}, {0x17B4, 0x17D3}, {0x17DD, 0x17DD}, - {0x180B, 0x180D}, {0x1885, 0x1886}, {0x18A9, 0x18A9}, - {0x1920, 0x192B}, {0x1930, 0x193B}, {0x1A17, 0x1A1B}, - {0x1A55, 0x1A5E}, {0x1A60, 0x1A7C}, {0x1A7F, 0x1A7F}, - {0x1AB0, 0x1ABE}, {0x1B00, 0x1B04}, {0x1B34, 0x1B44}, - {0x1B6B, 0x1B73}, {0x1B80, 0x1B82}, {0x1BA1, 0x1BAD}, - {0x1BE6, 0x1BF3}, {0x1C24, 0x1C37}, {0x1CD0, 0x1CD2}, - {0x1CD4, 0x1CE8}, {0x1CED, 0x1CED}, {0x1CF2, 0x1CF4}, - {0x1CF8, 0x1CF9}, {0x1DC0, 0x1DF5}, {0x1DFB, 0x1DFF}, - {0x20D0, 0x20F0}, {0x2CEF, 0x2CF1}, {0x2D7F, 0x2D7F}, - {0x2DE0, 0x2DFF}, {0x302A, 0x302F}, {0x3099, 0x309A}, - {0xA66F, 0xA672}, {0xA674, 0xA67D}, {0xA69E, 0xA69F}, - {0xA6F0, 0xA6F1}, {0xA802, 0xA802}, {0xA806, 0xA806}, - {0xA80B, 0xA80B}, {0xA823, 0xA827}, {0xA880, 0xA881}, - {0xA8B4, 0xA8C5}, {0xA8E0, 0xA8F1}, {0xA926, 0xA92D}, - {0xA947, 0xA953}, {0xA980, 0xA983}, {0xA9B3, 0xA9C0}, - {0xA9E5, 0xA9E5}, {0xAA29, 0xAA36}, {0xAA43, 0xAA43}, - {0xAA4C, 0xAA4D}, {0xAA7B, 0xAA7D}, {0xAAB0, 0xAAB0}, - {0xAAB2, 0xAAB4}, {0xAAB7, 0xAAB8}, {0xAABE, 0xAABF}, - {0xAAC1, 0xAAC1}, {0xAAEB, 0xAAEF}, {0xAAF5, 0xAAF6}, - {0xABE3, 0xABEA}, {0xABEC, 0xABED}, {0xFB1E, 0xFB1E}, - {0xFE00, 0xFE0F}, {0xFE20, 0xFE2F}, {0x101FD, 0x101FD}, - {0x102E0, 0x102E0}, {0x10376, 0x1037A}, {0x10A01, 0x10A03}, - {0x10A05, 0x10A06}, {0x10A0C, 0x10A0F}, {0x10A38, 0x10A3A}, - {0x10A3F, 0x10A3F}, {0x10AE5, 0x10AE6}, {0x11000, 0x11002}, - {0x11038, 0x11046}, {0x1107F, 0x11082}, {0x110B0, 0x110BA}, - {0x11100, 0x11102}, {0x11127, 0x11134}, {0x11173, 0x11173}, - {0x11180, 0x11182}, {0x111B3, 0x111C0}, {0x111CA, 0x111CC}, - {0x1122C, 0x11237}, {0x1123E, 0x1123E}, {0x112DF, 0x112EA}, - {0x11300, 0x11303}, {0x1133C, 0x1133C}, {0x1133E, 0x11344}, - {0x11347, 0x11348}, {0x1134B, 0x1134D}, {0x11357, 0x11357}, - {0x11362, 0x11363}, {0x11366, 0x1136C}, {0x11370, 0x11374}, - {0x11435, 0x11446}, {0x114B0, 0x114C3}, {0x115AF, 0x115B5}, - {0x115B8, 0x115C0}, {0x115DC, 0x115DD}, {0x11630, 0x11640}, - {0x116AB, 0x116B7}, {0x1171D, 0x1172B}, {0x11C2F, 0x11C36}, - {0x11C38, 0x11C3F}, {0x11C92, 0x11CA7}, {0x11CA9, 0x11CB6}, - {0x16AF0, 0x16AF4}, {0x16B30, 0x16B36}, {0x16F51, 0x16F7E}, - {0x16F8F, 0x16F92}, {0x1BC9D, 0x1BC9E}, {0x1D165, 0x1D169}, - {0x1D16D, 0x1D172}, {0x1D17B, 0x1D182}, {0x1D185, 0x1D18B}, - {0x1D1AA, 0x1D1AD}, {0x1D242, 0x1D244}, {0x1DA00, 0x1DA36}, - {0x1DA3B, 0x1DA6C}, {0x1DA75, 0x1DA75}, {0x1DA84, 0x1DA84}, - {0x1DA9B, 0x1DA9F}, {0x1DAA1, 0x1DAAF}, {0x1E000, 0x1E006}, - {0x1E008, 0x1E018}, {0x1E01B, 0x1E021}, {0x1E023, 0x1E024}, - {0x1E026, 0x1E02A}, {0x1E8D0, 0x1E8D6}, {0x1E944, 0x1E94A}, - {0xE0100, 0xE01EF}, -} - -var doublewidth = table{ - {0x1100, 0x115F}, {0x231A, 0x231B}, {0x2329, 0x232A}, - {0x23E9, 0x23EC}, {0x23F0, 0x23F0}, {0x23F3, 0x23F3}, - {0x25FD, 0x25FE}, {0x2614, 0x2615}, {0x2648, 0x2653}, - {0x267F, 0x267F}, {0x2693, 0x2693}, {0x26A1, 0x26A1}, - {0x26AA, 0x26AB}, {0x26BD, 0x26BE}, {0x26C4, 0x26C5}, - {0x26CE, 0x26CE}, {0x26D4, 0x26D4}, {0x26EA, 0x26EA}, - {0x26F2, 0x26F3}, {0x26F5, 0x26F5}, {0x26FA, 0x26FA}, - {0x26FD, 0x26FD}, {0x2705, 0x2705}, {0x270A, 0x270B}, - {0x2728, 0x2728}, {0x274C, 0x274C}, {0x274E, 0x274E}, - {0x2753, 0x2755}, {0x2757, 0x2757}, {0x2795, 0x2797}, - {0x27B0, 0x27B0}, {0x27BF, 0x27BF}, {0x2B1B, 0x2B1C}, - {0x2B50, 0x2B50}, {0x2B55, 0x2B55}, {0x2E80, 0x2E99}, - {0x2E9B, 0x2EF3}, {0x2F00, 0x2FD5}, {0x2FF0, 0x2FFB}, - {0x3000, 0x303E}, {0x3041, 0x3096}, {0x3099, 0x30FF}, - {0x3105, 0x312D}, {0x3131, 0x318E}, {0x3190, 0x31BA}, - {0x31C0, 0x31E3}, {0x31F0, 0x321E}, {0x3220, 0x3247}, - {0x3250, 0x32FE}, {0x3300, 0x4DBF}, {0x4E00, 0xA48C}, - {0xA490, 0xA4C6}, {0xA960, 0xA97C}, {0xAC00, 0xD7A3}, - {0xF900, 0xFAFF}, {0xFE10, 0xFE19}, {0xFE30, 0xFE52}, - {0xFE54, 0xFE66}, {0xFE68, 0xFE6B}, {0xFF01, 0xFF60}, - {0xFFE0, 0xFFE6}, {0x16FE0, 0x16FE0}, {0x17000, 0x187EC}, - {0x18800, 0x18AF2}, {0x1B000, 0x1B001}, {0x1F004, 0x1F004}, - {0x1F0CF, 0x1F0CF}, {0x1F18E, 0x1F18E}, {0x1F191, 0x1F19A}, - {0x1F200, 0x1F202}, {0x1F210, 0x1F23B}, {0x1F240, 0x1F248}, - {0x1F250, 0x1F251}, {0x1F300, 0x1F320}, {0x1F32D, 0x1F335}, - {0x1F337, 0x1F37C}, {0x1F37E, 0x1F393}, {0x1F3A0, 0x1F3CA}, - {0x1F3CF, 0x1F3D3}, {0x1F3E0, 0x1F3F0}, {0x1F3F4, 0x1F3F4}, - {0x1F3F8, 0x1F43E}, {0x1F440, 0x1F440}, {0x1F442, 0x1F4FC}, - {0x1F4FF, 0x1F53D}, {0x1F54B, 0x1F54E}, {0x1F550, 0x1F567}, - {0x1F57A, 0x1F57A}, {0x1F595, 0x1F596}, {0x1F5A4, 0x1F5A4}, - {0x1F5FB, 0x1F64F}, {0x1F680, 0x1F6C5}, {0x1F6CC, 0x1F6CC}, - {0x1F6D0, 0x1F6D2}, {0x1F6EB, 0x1F6EC}, {0x1F6F4, 0x1F6F6}, - {0x1F910, 0x1F91E}, {0x1F920, 0x1F927}, {0x1F930, 0x1F930}, - {0x1F933, 0x1F93E}, {0x1F940, 0x1F94B}, {0x1F950, 0x1F95E}, - {0x1F980, 0x1F991}, {0x1F9C0, 0x1F9C0}, {0x20000, 0x2FFFD}, - {0x30000, 0x3FFFD}, -} - -var ambiguous = table{ - {0x00A1, 0x00A1}, {0x00A4, 0x00A4}, {0x00A7, 0x00A8}, - {0x00AA, 0x00AA}, {0x00AD, 0x00AE}, {0x00B0, 0x00B4}, - {0x00B6, 0x00BA}, {0x00BC, 0x00BF}, {0x00C6, 0x00C6}, - {0x00D0, 0x00D0}, {0x00D7, 0x00D8}, {0x00DE, 0x00E1}, - {0x00E6, 0x00E6}, {0x00E8, 0x00EA}, {0x00EC, 0x00ED}, - {0x00F0, 0x00F0}, {0x00F2, 0x00F3}, {0x00F7, 0x00FA}, - {0x00FC, 0x00FC}, {0x00FE, 0x00FE}, {0x0101, 0x0101}, - {0x0111, 0x0111}, {0x0113, 0x0113}, {0x011B, 0x011B}, - {0x0126, 0x0127}, {0x012B, 0x012B}, {0x0131, 0x0133}, - {0x0138, 0x0138}, {0x013F, 0x0142}, {0x0144, 0x0144}, - {0x0148, 0x014B}, {0x014D, 0x014D}, {0x0152, 0x0153}, - {0x0166, 0x0167}, {0x016B, 0x016B}, {0x01CE, 0x01CE}, - {0x01D0, 0x01D0}, {0x01D2, 0x01D2}, {0x01D4, 0x01D4}, - {0x01D6, 0x01D6}, {0x01D8, 0x01D8}, {0x01DA, 0x01DA}, - {0x01DC, 0x01DC}, {0x0251, 0x0251}, {0x0261, 0x0261}, - {0x02C4, 0x02C4}, {0x02C7, 0x02C7}, {0x02C9, 0x02CB}, - {0x02CD, 0x02CD}, {0x02D0, 0x02D0}, {0x02D8, 0x02DB}, - {0x02DD, 0x02DD}, {0x02DF, 0x02DF}, {0x0300, 0x036F}, - {0x0391, 0x03A1}, {0x03A3, 0x03A9}, {0x03B1, 0x03C1}, - {0x03C3, 0x03C9}, {0x0401, 0x0401}, {0x0410, 0x044F}, - {0x0451, 0x0451}, {0x2010, 0x2010}, {0x2013, 0x2016}, - {0x2018, 0x2019}, {0x201C, 0x201D}, {0x2020, 0x2022}, - {0x2024, 0x2027}, {0x2030, 0x2030}, {0x2032, 0x2033}, - {0x2035, 0x2035}, {0x203B, 0x203B}, {0x203E, 0x203E}, - {0x2074, 0x2074}, {0x207F, 0x207F}, {0x2081, 0x2084}, - {0x20AC, 0x20AC}, {0x2103, 0x2103}, {0x2105, 0x2105}, - {0x2109, 0x2109}, {0x2113, 0x2113}, {0x2116, 0x2116}, - {0x2121, 0x2122}, {0x2126, 0x2126}, {0x212B, 0x212B}, - {0x2153, 0x2154}, {0x215B, 0x215E}, {0x2160, 0x216B}, - {0x2170, 0x2179}, {0x2189, 0x2189}, {0x2190, 0x2199}, - {0x21B8, 0x21B9}, {0x21D2, 0x21D2}, {0x21D4, 0x21D4}, - {0x21E7, 0x21E7}, {0x2200, 0x2200}, {0x2202, 0x2203}, - {0x2207, 0x2208}, {0x220B, 0x220B}, {0x220F, 0x220F}, - {0x2211, 0x2211}, {0x2215, 0x2215}, {0x221A, 0x221A}, - {0x221D, 0x2220}, {0x2223, 0x2223}, {0x2225, 0x2225}, - {0x2227, 0x222C}, {0x222E, 0x222E}, {0x2234, 0x2237}, - {0x223C, 0x223D}, {0x2248, 0x2248}, {0x224C, 0x224C}, - {0x2252, 0x2252}, {0x2260, 0x2261}, {0x2264, 0x2267}, - {0x226A, 0x226B}, {0x226E, 0x226F}, {0x2282, 0x2283}, - {0x2286, 0x2287}, {0x2295, 0x2295}, {0x2299, 0x2299}, - {0x22A5, 0x22A5}, {0x22BF, 0x22BF}, {0x2312, 0x2312}, - {0x2460, 0x24E9}, {0x24EB, 0x254B}, {0x2550, 0x2573}, - {0x2580, 0x258F}, {0x2592, 0x2595}, {0x25A0, 0x25A1}, - {0x25A3, 0x25A9}, {0x25B2, 0x25B3}, {0x25B6, 0x25B7}, - {0x25BC, 0x25BD}, {0x25C0, 0x25C1}, {0x25C6, 0x25C8}, - {0x25CB, 0x25CB}, {0x25CE, 0x25D1}, {0x25E2, 0x25E5}, - {0x25EF, 0x25EF}, {0x2605, 0x2606}, {0x2609, 0x2609}, - {0x260E, 0x260F}, {0x261C, 0x261C}, {0x261E, 0x261E}, - {0x2640, 0x2640}, {0x2642, 0x2642}, {0x2660, 0x2661}, - {0x2663, 0x2665}, {0x2667, 0x266A}, {0x266C, 0x266D}, - {0x266F, 0x266F}, {0x269E, 0x269F}, {0x26BF, 0x26BF}, - {0x26C6, 0x26CD}, {0x26CF, 0x26D3}, {0x26D5, 0x26E1}, - {0x26E3, 0x26E3}, {0x26E8, 0x26E9}, {0x26EB, 0x26F1}, - {0x26F4, 0x26F4}, {0x26F6, 0x26F9}, {0x26FB, 0x26FC}, - {0x26FE, 0x26FF}, {0x273D, 0x273D}, {0x2776, 0x277F}, - {0x2B56, 0x2B59}, {0x3248, 0x324F}, {0xE000, 0xF8FF}, - {0xFE00, 0xFE0F}, {0xFFFD, 0xFFFD}, {0x1F100, 0x1F10A}, - {0x1F110, 0x1F12D}, {0x1F130, 0x1F169}, {0x1F170, 0x1F18D}, - {0x1F18F, 0x1F190}, {0x1F19B, 0x1F1AC}, {0xE0100, 0xE01EF}, - {0xF0000, 0xFFFFD}, {0x100000, 0x10FFFD}, -} - -var emoji = table{ - {0x1F1E6, 0x1F1FF}, {0x1F321, 0x1F321}, {0x1F324, 0x1F32C}, - {0x1F336, 0x1F336}, {0x1F37D, 0x1F37D}, {0x1F396, 0x1F397}, - {0x1F399, 0x1F39B}, {0x1F39E, 0x1F39F}, {0x1F3CB, 0x1F3CE}, - {0x1F3D4, 0x1F3DF}, {0x1F3F3, 0x1F3F5}, {0x1F3F7, 0x1F3F7}, - {0x1F43F, 0x1F43F}, {0x1F441, 0x1F441}, {0x1F4FD, 0x1F4FD}, - {0x1F549, 0x1F54A}, {0x1F56F, 0x1F570}, {0x1F573, 0x1F579}, - {0x1F587, 0x1F587}, {0x1F58A, 0x1F58D}, {0x1F590, 0x1F590}, - {0x1F5A5, 0x1F5A5}, {0x1F5A8, 0x1F5A8}, {0x1F5B1, 0x1F5B2}, - {0x1F5BC, 0x1F5BC}, {0x1F5C2, 0x1F5C4}, {0x1F5D1, 0x1F5D3}, - {0x1F5DC, 0x1F5DE}, {0x1F5E1, 0x1F5E1}, {0x1F5E3, 0x1F5E3}, - {0x1F5E8, 0x1F5E8}, {0x1F5EF, 0x1F5EF}, {0x1F5F3, 0x1F5F3}, - {0x1F5FA, 0x1F5FA}, {0x1F6CB, 0x1F6CF}, {0x1F6E0, 0x1F6E5}, - {0x1F6E9, 0x1F6E9}, {0x1F6F0, 0x1F6F0}, {0x1F6F3, 0x1F6F3}, -} - -var notassigned = table{ - {0x0378, 0x0379}, {0x0380, 0x0383}, {0x038B, 0x038B}, - {0x038D, 0x038D}, {0x03A2, 0x03A2}, {0x0530, 0x0530}, - {0x0557, 0x0558}, {0x0560, 0x0560}, {0x0588, 0x0588}, - {0x058B, 0x058C}, {0x0590, 0x0590}, {0x05C8, 0x05CF}, - {0x05EB, 0x05EF}, {0x05F5, 0x05FF}, {0x061D, 0x061D}, - {0x070E, 0x070E}, {0x074B, 0x074C}, {0x07B2, 0x07BF}, - {0x07FB, 0x07FF}, {0x082E, 0x082F}, {0x083F, 0x083F}, - {0x085C, 0x085D}, {0x085F, 0x089F}, {0x08B5, 0x08B5}, - {0x08BE, 0x08D3}, {0x0984, 0x0984}, {0x098D, 0x098E}, - {0x0991, 0x0992}, {0x09A9, 0x09A9}, {0x09B1, 0x09B1}, - {0x09B3, 0x09B5}, {0x09BA, 0x09BB}, {0x09C5, 0x09C6}, - {0x09C9, 0x09CA}, {0x09CF, 0x09D6}, {0x09D8, 0x09DB}, - {0x09DE, 0x09DE}, {0x09E4, 0x09E5}, {0x09FC, 0x0A00}, - {0x0A04, 0x0A04}, {0x0A0B, 0x0A0E}, {0x0A11, 0x0A12}, - {0x0A29, 0x0A29}, {0x0A31, 0x0A31}, {0x0A34, 0x0A34}, - {0x0A37, 0x0A37}, {0x0A3A, 0x0A3B}, {0x0A3D, 0x0A3D}, - {0x0A43, 0x0A46}, {0x0A49, 0x0A4A}, {0x0A4E, 0x0A50}, - {0x0A52, 0x0A58}, {0x0A5D, 0x0A5D}, {0x0A5F, 0x0A65}, - {0x0A76, 0x0A80}, {0x0A84, 0x0A84}, {0x0A8E, 0x0A8E}, - {0x0A92, 0x0A92}, {0x0AA9, 0x0AA9}, {0x0AB1, 0x0AB1}, - {0x0AB4, 0x0AB4}, {0x0ABA, 0x0ABB}, {0x0AC6, 0x0AC6}, - {0x0ACA, 0x0ACA}, {0x0ACE, 0x0ACF}, {0x0AD1, 0x0ADF}, - {0x0AE4, 0x0AE5}, {0x0AF2, 0x0AF8}, {0x0AFA, 0x0B00}, - {0x0B04, 0x0B04}, {0x0B0D, 0x0B0E}, {0x0B11, 0x0B12}, - {0x0B29, 0x0B29}, {0x0B31, 0x0B31}, {0x0B34, 0x0B34}, - {0x0B3A, 0x0B3B}, {0x0B45, 0x0B46}, {0x0B49, 0x0B4A}, - {0x0B4E, 0x0B55}, {0x0B58, 0x0B5B}, {0x0B5E, 0x0B5E}, - {0x0B64, 0x0B65}, {0x0B78, 0x0B81}, {0x0B84, 0x0B84}, - {0x0B8B, 0x0B8D}, {0x0B91, 0x0B91}, {0x0B96, 0x0B98}, - {0x0B9B, 0x0B9B}, {0x0B9D, 0x0B9D}, {0x0BA0, 0x0BA2}, - {0x0BA5, 0x0BA7}, {0x0BAB, 0x0BAD}, {0x0BBA, 0x0BBD}, - {0x0BC3, 0x0BC5}, {0x0BC9, 0x0BC9}, {0x0BCE, 0x0BCF}, - {0x0BD1, 0x0BD6}, {0x0BD8, 0x0BE5}, {0x0BFB, 0x0BFF}, - {0x0C04, 0x0C04}, {0x0C0D, 0x0C0D}, {0x0C11, 0x0C11}, - {0x0C29, 0x0C29}, {0x0C3A, 0x0C3C}, {0x0C45, 0x0C45}, - {0x0C49, 0x0C49}, {0x0C4E, 0x0C54}, {0x0C57, 0x0C57}, - {0x0C5B, 0x0C5F}, {0x0C64, 0x0C65}, {0x0C70, 0x0C77}, - {0x0C84, 0x0C84}, {0x0C8D, 0x0C8D}, {0x0C91, 0x0C91}, - {0x0CA9, 0x0CA9}, {0x0CB4, 0x0CB4}, {0x0CBA, 0x0CBB}, - {0x0CC5, 0x0CC5}, {0x0CC9, 0x0CC9}, {0x0CCE, 0x0CD4}, - {0x0CD7, 0x0CDD}, {0x0CDF, 0x0CDF}, {0x0CE4, 0x0CE5}, - {0x0CF0, 0x0CF0}, {0x0CF3, 0x0D00}, {0x0D04, 0x0D04}, - {0x0D0D, 0x0D0D}, {0x0D11, 0x0D11}, {0x0D3B, 0x0D3C}, - {0x0D45, 0x0D45}, {0x0D49, 0x0D49}, {0x0D50, 0x0D53}, - {0x0D64, 0x0D65}, {0x0D80, 0x0D81}, {0x0D84, 0x0D84}, - {0x0D97, 0x0D99}, {0x0DB2, 0x0DB2}, {0x0DBC, 0x0DBC}, - {0x0DBE, 0x0DBF}, {0x0DC7, 0x0DC9}, {0x0DCB, 0x0DCE}, - {0x0DD5, 0x0DD5}, {0x0DD7, 0x0DD7}, {0x0DE0, 0x0DE5}, - {0x0DF0, 0x0DF1}, {0x0DF5, 0x0E00}, {0x0E3B, 0x0E3E}, - {0x0E5C, 0x0E80}, {0x0E83, 0x0E83}, {0x0E85, 0x0E86}, - {0x0E89, 0x0E89}, {0x0E8B, 0x0E8C}, {0x0E8E, 0x0E93}, - {0x0E98, 0x0E98}, {0x0EA0, 0x0EA0}, {0x0EA4, 0x0EA4}, - {0x0EA6, 0x0EA6}, {0x0EA8, 0x0EA9}, {0x0EAC, 0x0EAC}, - {0x0EBA, 0x0EBA}, {0x0EBE, 0x0EBF}, {0x0EC5, 0x0EC5}, - {0x0EC7, 0x0EC7}, {0x0ECE, 0x0ECF}, {0x0EDA, 0x0EDB}, - {0x0EE0, 0x0EFF}, {0x0F48, 0x0F48}, {0x0F6D, 0x0F70}, - {0x0F98, 0x0F98}, {0x0FBD, 0x0FBD}, {0x0FCD, 0x0FCD}, - {0x0FDB, 0x0FFF}, {0x10C6, 0x10C6}, {0x10C8, 0x10CC}, - {0x10CE, 0x10CF}, {0x1249, 0x1249}, {0x124E, 0x124F}, - {0x1257, 0x1257}, {0x1259, 0x1259}, {0x125E, 0x125F}, - {0x1289, 0x1289}, {0x128E, 0x128F}, {0x12B1, 0x12B1}, - {0x12B6, 0x12B7}, {0x12BF, 0x12BF}, {0x12C1, 0x12C1}, - {0x12C6, 0x12C7}, {0x12D7, 0x12D7}, {0x1311, 0x1311}, - {0x1316, 0x1317}, {0x135B, 0x135C}, {0x137D, 0x137F}, - {0x139A, 0x139F}, {0x13F6, 0x13F7}, {0x13FE, 0x13FF}, - {0x169D, 0x169F}, {0x16F9, 0x16FF}, {0x170D, 0x170D}, - {0x1715, 0x171F}, {0x1737, 0x173F}, {0x1754, 0x175F}, - {0x176D, 0x176D}, {0x1771, 0x1771}, {0x1774, 0x177F}, - {0x17DE, 0x17DF}, {0x17EA, 0x17EF}, {0x17FA, 0x17FF}, - {0x180F, 0x180F}, {0x181A, 0x181F}, {0x1878, 0x187F}, - {0x18AB, 0x18AF}, {0x18F6, 0x18FF}, {0x191F, 0x191F}, - {0x192C, 0x192F}, {0x193C, 0x193F}, {0x1941, 0x1943}, - {0x196E, 0x196F}, {0x1975, 0x197F}, {0x19AC, 0x19AF}, - {0x19CA, 0x19CF}, {0x19DB, 0x19DD}, {0x1A1C, 0x1A1D}, - {0x1A5F, 0x1A5F}, {0x1A7D, 0x1A7E}, {0x1A8A, 0x1A8F}, - {0x1A9A, 0x1A9F}, {0x1AAE, 0x1AAF}, {0x1ABF, 0x1AFF}, - {0x1B4C, 0x1B4F}, {0x1B7D, 0x1B7F}, {0x1BF4, 0x1BFB}, - {0x1C38, 0x1C3A}, {0x1C4A, 0x1C4C}, {0x1C89, 0x1CBF}, - {0x1CC8, 0x1CCF}, {0x1CF7, 0x1CF7}, {0x1CFA, 0x1CFF}, - {0x1DF6, 0x1DFA}, {0x1F16, 0x1F17}, {0x1F1E, 0x1F1F}, - {0x1F46, 0x1F47}, {0x1F4E, 0x1F4F}, {0x1F58, 0x1F58}, - {0x1F5A, 0x1F5A}, {0x1F5C, 0x1F5C}, {0x1F5E, 0x1F5E}, - {0x1F7E, 0x1F7F}, {0x1FB5, 0x1FB5}, {0x1FC5, 0x1FC5}, - {0x1FD4, 0x1FD5}, {0x1FDC, 0x1FDC}, {0x1FF0, 0x1FF1}, - {0x1FF5, 0x1FF5}, {0x1FFF, 0x1FFF}, {0x2065, 0x2065}, - {0x2072, 0x2073}, {0x208F, 0x208F}, {0x209D, 0x209F}, - {0x20BF, 0x20CF}, {0x20F1, 0x20FF}, {0x218C, 0x218F}, - {0x23FF, 0x23FF}, {0x2427, 0x243F}, {0x244B, 0x245F}, - {0x2B74, 0x2B75}, {0x2B96, 0x2B97}, {0x2BBA, 0x2BBC}, - {0x2BC9, 0x2BC9}, {0x2BD2, 0x2BEB}, {0x2BF0, 0x2BFF}, - {0x2C2F, 0x2C2F}, {0x2C5F, 0x2C5F}, {0x2CF4, 0x2CF8}, - {0x2D26, 0x2D26}, {0x2D28, 0x2D2C}, {0x2D2E, 0x2D2F}, - {0x2D68, 0x2D6E}, {0x2D71, 0x2D7E}, {0x2D97, 0x2D9F}, - {0x2DA7, 0x2DA7}, {0x2DAF, 0x2DAF}, {0x2DB7, 0x2DB7}, - {0x2DBF, 0x2DBF}, {0x2DC7, 0x2DC7}, {0x2DCF, 0x2DCF}, - {0x2DD7, 0x2DD7}, {0x2DDF, 0x2DDF}, {0x2E45, 0x2E7F}, - {0x2E9A, 0x2E9A}, {0x2EF4, 0x2EFF}, {0x2FD6, 0x2FEF}, - {0x2FFC, 0x2FFF}, {0x3040, 0x3040}, {0x3097, 0x3098}, - {0x3100, 0x3104}, {0x312E, 0x3130}, {0x318F, 0x318F}, - {0x31BB, 0x31BF}, {0x31E4, 0x31EF}, {0x321F, 0x321F}, - {0x32FF, 0x32FF}, {0x4DB6, 0x4DBF}, {0x9FD6, 0x9FFF}, - {0xA48D, 0xA48F}, {0xA4C7, 0xA4CF}, {0xA62C, 0xA63F}, - {0xA6F8, 0xA6FF}, {0xA7AF, 0xA7AF}, {0xA7B8, 0xA7F6}, - {0xA82C, 0xA82F}, {0xA83A, 0xA83F}, {0xA878, 0xA87F}, - {0xA8C6, 0xA8CD}, {0xA8DA, 0xA8DF}, {0xA8FE, 0xA8FF}, - {0xA954, 0xA95E}, {0xA97D, 0xA97F}, {0xA9CE, 0xA9CE}, - {0xA9DA, 0xA9DD}, {0xA9FF, 0xA9FF}, {0xAA37, 0xAA3F}, - {0xAA4E, 0xAA4F}, {0xAA5A, 0xAA5B}, {0xAAC3, 0xAADA}, - {0xAAF7, 0xAB00}, {0xAB07, 0xAB08}, {0xAB0F, 0xAB10}, - {0xAB17, 0xAB1F}, {0xAB27, 0xAB27}, {0xAB2F, 0xAB2F}, - {0xAB66, 0xAB6F}, {0xABEE, 0xABEF}, {0xABFA, 0xABFF}, - {0xD7A4, 0xD7AF}, {0xD7C7, 0xD7CA}, {0xD7FC, 0xD7FF}, - {0xFA6E, 0xFA6F}, {0xFADA, 0xFAFF}, {0xFB07, 0xFB12}, - {0xFB18, 0xFB1C}, {0xFB37, 0xFB37}, {0xFB3D, 0xFB3D}, - {0xFB3F, 0xFB3F}, {0xFB42, 0xFB42}, {0xFB45, 0xFB45}, - {0xFBC2, 0xFBD2}, {0xFD40, 0xFD4F}, {0xFD90, 0xFD91}, - {0xFDC8, 0xFDEF}, {0xFDFE, 0xFDFF}, {0xFE1A, 0xFE1F}, - {0xFE53, 0xFE53}, {0xFE67, 0xFE67}, {0xFE6C, 0xFE6F}, - {0xFE75, 0xFE75}, {0xFEFD, 0xFEFE}, {0xFF00, 0xFF00}, - {0xFFBF, 0xFFC1}, {0xFFC8, 0xFFC9}, {0xFFD0, 0xFFD1}, - {0xFFD8, 0xFFD9}, {0xFFDD, 0xFFDF}, {0xFFE7, 0xFFE7}, - {0xFFEF, 0xFFF8}, {0xFFFE, 0xFFFF}, {0x1000C, 0x1000C}, - {0x10027, 0x10027}, {0x1003B, 0x1003B}, {0x1003E, 0x1003E}, - {0x1004E, 0x1004F}, {0x1005E, 0x1007F}, {0x100FB, 0x100FF}, - {0x10103, 0x10106}, {0x10134, 0x10136}, {0x1018F, 0x1018F}, - {0x1019C, 0x1019F}, {0x101A1, 0x101CF}, {0x101FE, 0x1027F}, - {0x1029D, 0x1029F}, {0x102D1, 0x102DF}, {0x102FC, 0x102FF}, - {0x10324, 0x1032F}, {0x1034B, 0x1034F}, {0x1037B, 0x1037F}, - {0x1039E, 0x1039E}, {0x103C4, 0x103C7}, {0x103D6, 0x103FF}, - {0x1049E, 0x1049F}, {0x104AA, 0x104AF}, {0x104D4, 0x104D7}, - {0x104FC, 0x104FF}, {0x10528, 0x1052F}, {0x10564, 0x1056E}, - {0x10570, 0x105FF}, {0x10737, 0x1073F}, {0x10756, 0x1075F}, - {0x10768, 0x107FF}, {0x10806, 0x10807}, {0x10809, 0x10809}, - {0x10836, 0x10836}, {0x10839, 0x1083B}, {0x1083D, 0x1083E}, - {0x10856, 0x10856}, {0x1089F, 0x108A6}, {0x108B0, 0x108DF}, - {0x108F3, 0x108F3}, {0x108F6, 0x108FA}, {0x1091C, 0x1091E}, - {0x1093A, 0x1093E}, {0x10940, 0x1097F}, {0x109B8, 0x109BB}, - {0x109D0, 0x109D1}, {0x10A04, 0x10A04}, {0x10A07, 0x10A0B}, - {0x10A14, 0x10A14}, {0x10A18, 0x10A18}, {0x10A34, 0x10A37}, - {0x10A3B, 0x10A3E}, {0x10A48, 0x10A4F}, {0x10A59, 0x10A5F}, - {0x10AA0, 0x10ABF}, {0x10AE7, 0x10AEA}, {0x10AF7, 0x10AFF}, - {0x10B36, 0x10B38}, {0x10B56, 0x10B57}, {0x10B73, 0x10B77}, - {0x10B92, 0x10B98}, {0x10B9D, 0x10BA8}, {0x10BB0, 0x10BFF}, - {0x10C49, 0x10C7F}, {0x10CB3, 0x10CBF}, {0x10CF3, 0x10CF9}, - {0x10D00, 0x10E5F}, {0x10E7F, 0x10FFF}, {0x1104E, 0x11051}, - {0x11070, 0x1107E}, {0x110C2, 0x110CF}, {0x110E9, 0x110EF}, - {0x110FA, 0x110FF}, {0x11135, 0x11135}, {0x11144, 0x1114F}, - {0x11177, 0x1117F}, {0x111CE, 0x111CF}, {0x111E0, 0x111E0}, - {0x111F5, 0x111FF}, {0x11212, 0x11212}, {0x1123F, 0x1127F}, - {0x11287, 0x11287}, {0x11289, 0x11289}, {0x1128E, 0x1128E}, - {0x1129E, 0x1129E}, {0x112AA, 0x112AF}, {0x112EB, 0x112EF}, - {0x112FA, 0x112FF}, {0x11304, 0x11304}, {0x1130D, 0x1130E}, - {0x11311, 0x11312}, {0x11329, 0x11329}, {0x11331, 0x11331}, - {0x11334, 0x11334}, {0x1133A, 0x1133B}, {0x11345, 0x11346}, - {0x11349, 0x1134A}, {0x1134E, 0x1134F}, {0x11351, 0x11356}, - {0x11358, 0x1135C}, {0x11364, 0x11365}, {0x1136D, 0x1136F}, - {0x11375, 0x113FF}, {0x1145A, 0x1145A}, {0x1145C, 0x1145C}, - {0x1145E, 0x1147F}, {0x114C8, 0x114CF}, {0x114DA, 0x1157F}, - {0x115B6, 0x115B7}, {0x115DE, 0x115FF}, {0x11645, 0x1164F}, - {0x1165A, 0x1165F}, {0x1166D, 0x1167F}, {0x116B8, 0x116BF}, - {0x116CA, 0x116FF}, {0x1171A, 0x1171C}, {0x1172C, 0x1172F}, - {0x11740, 0x1189F}, {0x118F3, 0x118FE}, {0x11900, 0x11ABF}, - {0x11AF9, 0x11BFF}, {0x11C09, 0x11C09}, {0x11C37, 0x11C37}, - {0x11C46, 0x11C4F}, {0x11C6D, 0x11C6F}, {0x11C90, 0x11C91}, - {0x11CA8, 0x11CA8}, {0x11CB7, 0x11FFF}, {0x1239A, 0x123FF}, - {0x1246F, 0x1246F}, {0x12475, 0x1247F}, {0x12544, 0x12FFF}, - {0x1342F, 0x143FF}, {0x14647, 0x167FF}, {0x16A39, 0x16A3F}, - {0x16A5F, 0x16A5F}, {0x16A6A, 0x16A6D}, {0x16A70, 0x16ACF}, - {0x16AEE, 0x16AEF}, {0x16AF6, 0x16AFF}, {0x16B46, 0x16B4F}, - {0x16B5A, 0x16B5A}, {0x16B62, 0x16B62}, {0x16B78, 0x16B7C}, - {0x16B90, 0x16EFF}, {0x16F45, 0x16F4F}, {0x16F7F, 0x16F8E}, - {0x16FA0, 0x16FDF}, {0x16FE1, 0x16FFF}, {0x187ED, 0x187FF}, - {0x18AF3, 0x1AFFF}, {0x1B002, 0x1BBFF}, {0x1BC6B, 0x1BC6F}, - {0x1BC7D, 0x1BC7F}, {0x1BC89, 0x1BC8F}, {0x1BC9A, 0x1BC9B}, - {0x1BCA4, 0x1CFFF}, {0x1D0F6, 0x1D0FF}, {0x1D127, 0x1D128}, - {0x1D1E9, 0x1D1FF}, {0x1D246, 0x1D2FF}, {0x1D357, 0x1D35F}, - {0x1D372, 0x1D3FF}, {0x1D455, 0x1D455}, {0x1D49D, 0x1D49D}, - {0x1D4A0, 0x1D4A1}, {0x1D4A3, 0x1D4A4}, {0x1D4A7, 0x1D4A8}, - {0x1D4AD, 0x1D4AD}, {0x1D4BA, 0x1D4BA}, {0x1D4BC, 0x1D4BC}, - {0x1D4C4, 0x1D4C4}, {0x1D506, 0x1D506}, {0x1D50B, 0x1D50C}, - {0x1D515, 0x1D515}, {0x1D51D, 0x1D51D}, {0x1D53A, 0x1D53A}, - {0x1D53F, 0x1D53F}, {0x1D545, 0x1D545}, {0x1D547, 0x1D549}, - {0x1D551, 0x1D551}, {0x1D6A6, 0x1D6A7}, {0x1D7CC, 0x1D7CD}, - {0x1DA8C, 0x1DA9A}, {0x1DAA0, 0x1DAA0}, {0x1DAB0, 0x1DFFF}, - {0x1E007, 0x1E007}, {0x1E019, 0x1E01A}, {0x1E022, 0x1E022}, - {0x1E025, 0x1E025}, {0x1E02B, 0x1E7FF}, {0x1E8C5, 0x1E8C6}, - {0x1E8D7, 0x1E8FF}, {0x1E94B, 0x1E94F}, {0x1E95A, 0x1E95D}, - {0x1E960, 0x1EDFF}, {0x1EE04, 0x1EE04}, {0x1EE20, 0x1EE20}, - {0x1EE23, 0x1EE23}, {0x1EE25, 0x1EE26}, {0x1EE28, 0x1EE28}, - {0x1EE33, 0x1EE33}, {0x1EE38, 0x1EE38}, {0x1EE3A, 0x1EE3A}, - {0x1EE3C, 0x1EE41}, {0x1EE43, 0x1EE46}, {0x1EE48, 0x1EE48}, - {0x1EE4A, 0x1EE4A}, {0x1EE4C, 0x1EE4C}, {0x1EE50, 0x1EE50}, - {0x1EE53, 0x1EE53}, {0x1EE55, 0x1EE56}, {0x1EE58, 0x1EE58}, - {0x1EE5A, 0x1EE5A}, {0x1EE5C, 0x1EE5C}, {0x1EE5E, 0x1EE5E}, - {0x1EE60, 0x1EE60}, {0x1EE63, 0x1EE63}, {0x1EE65, 0x1EE66}, - {0x1EE6B, 0x1EE6B}, {0x1EE73, 0x1EE73}, {0x1EE78, 0x1EE78}, - {0x1EE7D, 0x1EE7D}, {0x1EE7F, 0x1EE7F}, {0x1EE8A, 0x1EE8A}, - {0x1EE9C, 0x1EEA0}, {0x1EEA4, 0x1EEA4}, {0x1EEAA, 0x1EEAA}, - {0x1EEBC, 0x1EEEF}, {0x1EEF2, 0x1EFFF}, {0x1F02C, 0x1F02F}, - {0x1F094, 0x1F09F}, {0x1F0AF, 0x1F0B0}, {0x1F0C0, 0x1F0C0}, - {0x1F0D0, 0x1F0D0}, {0x1F0F6, 0x1F0FF}, {0x1F10D, 0x1F10F}, - {0x1F12F, 0x1F12F}, {0x1F16C, 0x1F16F}, {0x1F1AD, 0x1F1E5}, - {0x1F203, 0x1F20F}, {0x1F23C, 0x1F23F}, {0x1F249, 0x1F24F}, - {0x1F252, 0x1F2FF}, {0x1F6D3, 0x1F6DF}, {0x1F6ED, 0x1F6EF}, - {0x1F6F7, 0x1F6FF}, {0x1F774, 0x1F77F}, {0x1F7D5, 0x1F7FF}, - {0x1F80C, 0x1F80F}, {0x1F848, 0x1F84F}, {0x1F85A, 0x1F85F}, - {0x1F888, 0x1F88F}, {0x1F8AE, 0x1F90F}, {0x1F91F, 0x1F91F}, - {0x1F928, 0x1F92F}, {0x1F931, 0x1F932}, {0x1F93F, 0x1F93F}, - {0x1F94C, 0x1F94F}, {0x1F95F, 0x1F97F}, {0x1F992, 0x1F9BF}, - {0x1F9C1, 0x1FFFF}, {0x2A6D7, 0x2A6FF}, {0x2B735, 0x2B73F}, - {0x2B81E, 0x2B81F}, {0x2CEA2, 0x2F7FF}, {0x2FA1E, 0xE0000}, - {0xE0002, 0xE001F}, {0xE0080, 0xE00FF}, {0xE01F0, 0xEFFFF}, - {0xFFFFE, 0xFFFFF}, -} - -var neutral = table{ - {0x0000, 0x001F}, {0x007F, 0x007F}, {0x0080, 0x009F}, - {0x00A0, 0x00A0}, {0x00A9, 0x00A9}, {0x00AB, 0x00AB}, - {0x00B5, 0x00B5}, {0x00BB, 0x00BB}, {0x00C0, 0x00C5}, - {0x00C7, 0x00CF}, {0x00D1, 0x00D6}, {0x00D9, 0x00DD}, - {0x00E2, 0x00E5}, {0x00E7, 0x00E7}, {0x00EB, 0x00EB}, - {0x00EE, 0x00EF}, {0x00F1, 0x00F1}, {0x00F4, 0x00F6}, - {0x00FB, 0x00FB}, {0x00FD, 0x00FD}, {0x00FF, 0x00FF}, - {0x0100, 0x0100}, {0x0102, 0x0110}, {0x0112, 0x0112}, - {0x0114, 0x011A}, {0x011C, 0x0125}, {0x0128, 0x012A}, - {0x012C, 0x0130}, {0x0134, 0x0137}, {0x0139, 0x013E}, - {0x0143, 0x0143}, {0x0145, 0x0147}, {0x014C, 0x014C}, - {0x014E, 0x0151}, {0x0154, 0x0165}, {0x0168, 0x016A}, - {0x016C, 0x017F}, {0x0180, 0x01BA}, {0x01BB, 0x01BB}, - {0x01BC, 0x01BF}, {0x01C0, 0x01C3}, {0x01C4, 0x01CD}, - {0x01CF, 0x01CF}, {0x01D1, 0x01D1}, {0x01D3, 0x01D3}, - {0x01D5, 0x01D5}, {0x01D7, 0x01D7}, {0x01D9, 0x01D9}, - {0x01DB, 0x01DB}, {0x01DD, 0x024F}, {0x0250, 0x0250}, - {0x0252, 0x0260}, {0x0262, 0x0293}, {0x0294, 0x0294}, - {0x0295, 0x02AF}, {0x02B0, 0x02C1}, {0x02C2, 0x02C3}, - {0x02C5, 0x02C5}, {0x02C6, 0x02C6}, {0x02C8, 0x02C8}, - {0x02CC, 0x02CC}, {0x02CE, 0x02CF}, {0x02D1, 0x02D1}, - {0x02D2, 0x02D7}, {0x02DC, 0x02DC}, {0x02DE, 0x02DE}, - {0x02E0, 0x02E4}, {0x02E5, 0x02EB}, {0x02EC, 0x02EC}, - {0x02ED, 0x02ED}, {0x02EE, 0x02EE}, {0x02EF, 0x02FF}, - {0x0370, 0x0373}, {0x0374, 0x0374}, {0x0375, 0x0375}, - {0x0376, 0x0377}, {0x037A, 0x037A}, {0x037B, 0x037D}, - {0x037E, 0x037E}, {0x037F, 0x037F}, {0x0384, 0x0385}, - {0x0386, 0x0386}, {0x0387, 0x0387}, {0x0388, 0x038A}, - {0x038C, 0x038C}, {0x038E, 0x0390}, {0x03AA, 0x03B0}, - {0x03C2, 0x03C2}, {0x03CA, 0x03F5}, {0x03F6, 0x03F6}, - {0x03F7, 0x03FF}, {0x0400, 0x0400}, {0x0402, 0x040F}, - {0x0450, 0x0450}, {0x0452, 0x0481}, {0x0482, 0x0482}, - {0x0483, 0x0487}, {0x0488, 0x0489}, {0x048A, 0x04FF}, - {0x0500, 0x052F}, {0x0531, 0x0556}, {0x0559, 0x0559}, - {0x055A, 0x055F}, {0x0561, 0x0587}, {0x0589, 0x0589}, - {0x058A, 0x058A}, {0x058D, 0x058E}, {0x058F, 0x058F}, - {0x0591, 0x05BD}, {0x05BE, 0x05BE}, {0x05BF, 0x05BF}, - {0x05C0, 0x05C0}, {0x05C1, 0x05C2}, {0x05C3, 0x05C3}, - {0x05C4, 0x05C5}, {0x05C6, 0x05C6}, {0x05C7, 0x05C7}, - {0x05D0, 0x05EA}, {0x05F0, 0x05F2}, {0x05F3, 0x05F4}, - {0x0600, 0x0605}, {0x0606, 0x0608}, {0x0609, 0x060A}, - {0x060B, 0x060B}, {0x060C, 0x060D}, {0x060E, 0x060F}, - {0x0610, 0x061A}, {0x061B, 0x061B}, {0x061C, 0x061C}, - {0x061E, 0x061F}, {0x0620, 0x063F}, {0x0640, 0x0640}, - {0x0641, 0x064A}, {0x064B, 0x065F}, {0x0660, 0x0669}, - {0x066A, 0x066D}, {0x066E, 0x066F}, {0x0670, 0x0670}, - {0x0671, 0x06D3}, {0x06D4, 0x06D4}, {0x06D5, 0x06D5}, - {0x06D6, 0x06DC}, {0x06DD, 0x06DD}, {0x06DE, 0x06DE}, - {0x06DF, 0x06E4}, {0x06E5, 0x06E6}, {0x06E7, 0x06E8}, - {0x06E9, 0x06E9}, {0x06EA, 0x06ED}, {0x06EE, 0x06EF}, - {0x06F0, 0x06F9}, {0x06FA, 0x06FC}, {0x06FD, 0x06FE}, - {0x06FF, 0x06FF}, {0x0700, 0x070D}, {0x070F, 0x070F}, - {0x0710, 0x0710}, {0x0711, 0x0711}, {0x0712, 0x072F}, - {0x0730, 0x074A}, {0x074D, 0x074F}, {0x0750, 0x077F}, - {0x0780, 0x07A5}, {0x07A6, 0x07B0}, {0x07B1, 0x07B1}, - {0x07C0, 0x07C9}, {0x07CA, 0x07EA}, {0x07EB, 0x07F3}, - {0x07F4, 0x07F5}, {0x07F6, 0x07F6}, {0x07F7, 0x07F9}, - {0x07FA, 0x07FA}, {0x0800, 0x0815}, {0x0816, 0x0819}, - {0x081A, 0x081A}, {0x081B, 0x0823}, {0x0824, 0x0824}, - {0x0825, 0x0827}, {0x0828, 0x0828}, {0x0829, 0x082D}, - {0x0830, 0x083E}, {0x0840, 0x0858}, {0x0859, 0x085B}, - {0x085E, 0x085E}, {0x08A0, 0x08B4}, {0x08B6, 0x08BD}, - {0x08D4, 0x08E1}, {0x08E2, 0x08E2}, {0x08E3, 0x08FF}, - {0x0900, 0x0902}, {0x0903, 0x0903}, {0x0904, 0x0939}, - {0x093A, 0x093A}, {0x093B, 0x093B}, {0x093C, 0x093C}, - {0x093D, 0x093D}, {0x093E, 0x0940}, {0x0941, 0x0948}, - {0x0949, 0x094C}, {0x094D, 0x094D}, {0x094E, 0x094F}, - {0x0950, 0x0950}, {0x0951, 0x0957}, {0x0958, 0x0961}, - {0x0962, 0x0963}, {0x0964, 0x0965}, {0x0966, 0x096F}, - {0x0970, 0x0970}, {0x0971, 0x0971}, {0x0972, 0x097F}, - {0x0980, 0x0980}, {0x0981, 0x0981}, {0x0982, 0x0983}, - {0x0985, 0x098C}, {0x098F, 0x0990}, {0x0993, 0x09A8}, - {0x09AA, 0x09B0}, {0x09B2, 0x09B2}, {0x09B6, 0x09B9}, - {0x09BC, 0x09BC}, {0x09BD, 0x09BD}, {0x09BE, 0x09C0}, - {0x09C1, 0x09C4}, {0x09C7, 0x09C8}, {0x09CB, 0x09CC}, - {0x09CD, 0x09CD}, {0x09CE, 0x09CE}, {0x09D7, 0x09D7}, - {0x09DC, 0x09DD}, {0x09DF, 0x09E1}, {0x09E2, 0x09E3}, - {0x09E6, 0x09EF}, {0x09F0, 0x09F1}, {0x09F2, 0x09F3}, - {0x09F4, 0x09F9}, {0x09FA, 0x09FA}, {0x09FB, 0x09FB}, - {0x0A01, 0x0A02}, {0x0A03, 0x0A03}, {0x0A05, 0x0A0A}, - {0x0A0F, 0x0A10}, {0x0A13, 0x0A28}, {0x0A2A, 0x0A30}, - {0x0A32, 0x0A33}, {0x0A35, 0x0A36}, {0x0A38, 0x0A39}, - {0x0A3C, 0x0A3C}, {0x0A3E, 0x0A40}, {0x0A41, 0x0A42}, - {0x0A47, 0x0A48}, {0x0A4B, 0x0A4D}, {0x0A51, 0x0A51}, - {0x0A59, 0x0A5C}, {0x0A5E, 0x0A5E}, {0x0A66, 0x0A6F}, - {0x0A70, 0x0A71}, {0x0A72, 0x0A74}, {0x0A75, 0x0A75}, - {0x0A81, 0x0A82}, {0x0A83, 0x0A83}, {0x0A85, 0x0A8D}, - {0x0A8F, 0x0A91}, {0x0A93, 0x0AA8}, {0x0AAA, 0x0AB0}, - {0x0AB2, 0x0AB3}, {0x0AB5, 0x0AB9}, {0x0ABC, 0x0ABC}, - {0x0ABD, 0x0ABD}, {0x0ABE, 0x0AC0}, {0x0AC1, 0x0AC5}, - {0x0AC7, 0x0AC8}, {0x0AC9, 0x0AC9}, {0x0ACB, 0x0ACC}, - {0x0ACD, 0x0ACD}, {0x0AD0, 0x0AD0}, {0x0AE0, 0x0AE1}, - {0x0AE2, 0x0AE3}, {0x0AE6, 0x0AEF}, {0x0AF0, 0x0AF0}, - {0x0AF1, 0x0AF1}, {0x0AF9, 0x0AF9}, {0x0B01, 0x0B01}, - {0x0B02, 0x0B03}, {0x0B05, 0x0B0C}, {0x0B0F, 0x0B10}, - {0x0B13, 0x0B28}, {0x0B2A, 0x0B30}, {0x0B32, 0x0B33}, - {0x0B35, 0x0B39}, {0x0B3C, 0x0B3C}, {0x0B3D, 0x0B3D}, - {0x0B3E, 0x0B3E}, {0x0B3F, 0x0B3F}, {0x0B40, 0x0B40}, - {0x0B41, 0x0B44}, {0x0B47, 0x0B48}, {0x0B4B, 0x0B4C}, - {0x0B4D, 0x0B4D}, {0x0B56, 0x0B56}, {0x0B57, 0x0B57}, - {0x0B5C, 0x0B5D}, {0x0B5F, 0x0B61}, {0x0B62, 0x0B63}, - {0x0B66, 0x0B6F}, {0x0B70, 0x0B70}, {0x0B71, 0x0B71}, - {0x0B72, 0x0B77}, {0x0B82, 0x0B82}, {0x0B83, 0x0B83}, - {0x0B85, 0x0B8A}, {0x0B8E, 0x0B90}, {0x0B92, 0x0B95}, - {0x0B99, 0x0B9A}, {0x0B9C, 0x0B9C}, {0x0B9E, 0x0B9F}, - {0x0BA3, 0x0BA4}, {0x0BA8, 0x0BAA}, {0x0BAE, 0x0BB9}, - {0x0BBE, 0x0BBF}, {0x0BC0, 0x0BC0}, {0x0BC1, 0x0BC2}, - {0x0BC6, 0x0BC8}, {0x0BCA, 0x0BCC}, {0x0BCD, 0x0BCD}, - {0x0BD0, 0x0BD0}, {0x0BD7, 0x0BD7}, {0x0BE6, 0x0BEF}, - {0x0BF0, 0x0BF2}, {0x0BF3, 0x0BF8}, {0x0BF9, 0x0BF9}, - {0x0BFA, 0x0BFA}, {0x0C00, 0x0C00}, {0x0C01, 0x0C03}, - {0x0C05, 0x0C0C}, {0x0C0E, 0x0C10}, {0x0C12, 0x0C28}, - {0x0C2A, 0x0C39}, {0x0C3D, 0x0C3D}, {0x0C3E, 0x0C40}, - {0x0C41, 0x0C44}, {0x0C46, 0x0C48}, {0x0C4A, 0x0C4D}, - {0x0C55, 0x0C56}, {0x0C58, 0x0C5A}, {0x0C60, 0x0C61}, - {0x0C62, 0x0C63}, {0x0C66, 0x0C6F}, {0x0C78, 0x0C7E}, - {0x0C7F, 0x0C7F}, {0x0C80, 0x0C80}, {0x0C81, 0x0C81}, - {0x0C82, 0x0C83}, {0x0C85, 0x0C8C}, {0x0C8E, 0x0C90}, - {0x0C92, 0x0CA8}, {0x0CAA, 0x0CB3}, {0x0CB5, 0x0CB9}, - {0x0CBC, 0x0CBC}, {0x0CBD, 0x0CBD}, {0x0CBE, 0x0CBE}, - {0x0CBF, 0x0CBF}, {0x0CC0, 0x0CC4}, {0x0CC6, 0x0CC6}, - {0x0CC7, 0x0CC8}, {0x0CCA, 0x0CCB}, {0x0CCC, 0x0CCD}, - {0x0CD5, 0x0CD6}, {0x0CDE, 0x0CDE}, {0x0CE0, 0x0CE1}, - {0x0CE2, 0x0CE3}, {0x0CE6, 0x0CEF}, {0x0CF1, 0x0CF2}, - {0x0D01, 0x0D01}, {0x0D02, 0x0D03}, {0x0D05, 0x0D0C}, - {0x0D0E, 0x0D10}, {0x0D12, 0x0D3A}, {0x0D3D, 0x0D3D}, - {0x0D3E, 0x0D40}, {0x0D41, 0x0D44}, {0x0D46, 0x0D48}, - {0x0D4A, 0x0D4C}, {0x0D4D, 0x0D4D}, {0x0D4E, 0x0D4E}, - {0x0D4F, 0x0D4F}, {0x0D54, 0x0D56}, {0x0D57, 0x0D57}, - {0x0D58, 0x0D5E}, {0x0D5F, 0x0D61}, {0x0D62, 0x0D63}, - {0x0D66, 0x0D6F}, {0x0D70, 0x0D78}, {0x0D79, 0x0D79}, - {0x0D7A, 0x0D7F}, {0x0D82, 0x0D83}, {0x0D85, 0x0D96}, - {0x0D9A, 0x0DB1}, {0x0DB3, 0x0DBB}, {0x0DBD, 0x0DBD}, - {0x0DC0, 0x0DC6}, {0x0DCA, 0x0DCA}, {0x0DCF, 0x0DD1}, - {0x0DD2, 0x0DD4}, {0x0DD6, 0x0DD6}, {0x0DD8, 0x0DDF}, - {0x0DE6, 0x0DEF}, {0x0DF2, 0x0DF3}, {0x0DF4, 0x0DF4}, - {0x0E01, 0x0E30}, {0x0E31, 0x0E31}, {0x0E32, 0x0E33}, - {0x0E34, 0x0E3A}, {0x0E3F, 0x0E3F}, {0x0E40, 0x0E45}, - {0x0E46, 0x0E46}, {0x0E47, 0x0E4E}, {0x0E4F, 0x0E4F}, - {0x0E50, 0x0E59}, {0x0E5A, 0x0E5B}, {0x0E81, 0x0E82}, - {0x0E84, 0x0E84}, {0x0E87, 0x0E88}, {0x0E8A, 0x0E8A}, - {0x0E8D, 0x0E8D}, {0x0E94, 0x0E97}, {0x0E99, 0x0E9F}, - {0x0EA1, 0x0EA3}, {0x0EA5, 0x0EA5}, {0x0EA7, 0x0EA7}, - {0x0EAA, 0x0EAB}, {0x0EAD, 0x0EB0}, {0x0EB1, 0x0EB1}, - {0x0EB2, 0x0EB3}, {0x0EB4, 0x0EB9}, {0x0EBB, 0x0EBC}, - {0x0EBD, 0x0EBD}, {0x0EC0, 0x0EC4}, {0x0EC6, 0x0EC6}, - {0x0EC8, 0x0ECD}, {0x0ED0, 0x0ED9}, {0x0EDC, 0x0EDF}, - {0x0F00, 0x0F00}, {0x0F01, 0x0F03}, {0x0F04, 0x0F12}, - {0x0F13, 0x0F13}, {0x0F14, 0x0F14}, {0x0F15, 0x0F17}, - {0x0F18, 0x0F19}, {0x0F1A, 0x0F1F}, {0x0F20, 0x0F29}, - {0x0F2A, 0x0F33}, {0x0F34, 0x0F34}, {0x0F35, 0x0F35}, - {0x0F36, 0x0F36}, {0x0F37, 0x0F37}, {0x0F38, 0x0F38}, - {0x0F39, 0x0F39}, {0x0F3A, 0x0F3A}, {0x0F3B, 0x0F3B}, - {0x0F3C, 0x0F3C}, {0x0F3D, 0x0F3D}, {0x0F3E, 0x0F3F}, - {0x0F40, 0x0F47}, {0x0F49, 0x0F6C}, {0x0F71, 0x0F7E}, - {0x0F7F, 0x0F7F}, {0x0F80, 0x0F84}, {0x0F85, 0x0F85}, - {0x0F86, 0x0F87}, {0x0F88, 0x0F8C}, {0x0F8D, 0x0F97}, - {0x0F99, 0x0FBC}, {0x0FBE, 0x0FC5}, {0x0FC6, 0x0FC6}, - {0x0FC7, 0x0FCC}, {0x0FCE, 0x0FCF}, {0x0FD0, 0x0FD4}, - {0x0FD5, 0x0FD8}, {0x0FD9, 0x0FDA}, {0x1000, 0x102A}, - {0x102B, 0x102C}, {0x102D, 0x1030}, {0x1031, 0x1031}, - {0x1032, 0x1037}, {0x1038, 0x1038}, {0x1039, 0x103A}, - {0x103B, 0x103C}, {0x103D, 0x103E}, {0x103F, 0x103F}, - {0x1040, 0x1049}, {0x104A, 0x104F}, {0x1050, 0x1055}, - {0x1056, 0x1057}, {0x1058, 0x1059}, {0x105A, 0x105D}, - {0x105E, 0x1060}, {0x1061, 0x1061}, {0x1062, 0x1064}, - {0x1065, 0x1066}, {0x1067, 0x106D}, {0x106E, 0x1070}, - {0x1071, 0x1074}, {0x1075, 0x1081}, {0x1082, 0x1082}, - {0x1083, 0x1084}, {0x1085, 0x1086}, {0x1087, 0x108C}, - {0x108D, 0x108D}, {0x108E, 0x108E}, {0x108F, 0x108F}, - {0x1090, 0x1099}, {0x109A, 0x109C}, {0x109D, 0x109D}, - {0x109E, 0x109F}, {0x10A0, 0x10C5}, {0x10C7, 0x10C7}, - {0x10CD, 0x10CD}, {0x10D0, 0x10FA}, {0x10FB, 0x10FB}, - {0x10FC, 0x10FC}, {0x10FD, 0x10FF}, {0x1160, 0x11FF}, - {0x1200, 0x1248}, {0x124A, 0x124D}, {0x1250, 0x1256}, - {0x1258, 0x1258}, {0x125A, 0x125D}, {0x1260, 0x1288}, - {0x128A, 0x128D}, {0x1290, 0x12B0}, {0x12B2, 0x12B5}, - {0x12B8, 0x12BE}, {0x12C0, 0x12C0}, {0x12C2, 0x12C5}, - {0x12C8, 0x12D6}, {0x12D8, 0x1310}, {0x1312, 0x1315}, - {0x1318, 0x135A}, {0x135D, 0x135F}, {0x1360, 0x1368}, - {0x1369, 0x137C}, {0x1380, 0x138F}, {0x1390, 0x1399}, - {0x13A0, 0x13F5}, {0x13F8, 0x13FD}, {0x1400, 0x1400}, - {0x1401, 0x166C}, {0x166D, 0x166E}, {0x166F, 0x167F}, - {0x1680, 0x1680}, {0x1681, 0x169A}, {0x169B, 0x169B}, - {0x169C, 0x169C}, {0x16A0, 0x16EA}, {0x16EB, 0x16ED}, - {0x16EE, 0x16F0}, {0x16F1, 0x16F8}, {0x1700, 0x170C}, - {0x170E, 0x1711}, {0x1712, 0x1714}, {0x1720, 0x1731}, - {0x1732, 0x1734}, {0x1735, 0x1736}, {0x1740, 0x1751}, - {0x1752, 0x1753}, {0x1760, 0x176C}, {0x176E, 0x1770}, - {0x1772, 0x1773}, {0x1780, 0x17B3}, {0x17B4, 0x17B5}, - {0x17B6, 0x17B6}, {0x17B7, 0x17BD}, {0x17BE, 0x17C5}, - {0x17C6, 0x17C6}, {0x17C7, 0x17C8}, {0x17C9, 0x17D3}, - {0x17D4, 0x17D6}, {0x17D7, 0x17D7}, {0x17D8, 0x17DA}, - {0x17DB, 0x17DB}, {0x17DC, 0x17DC}, {0x17DD, 0x17DD}, - {0x17E0, 0x17E9}, {0x17F0, 0x17F9}, {0x1800, 0x1805}, - {0x1806, 0x1806}, {0x1807, 0x180A}, {0x180B, 0x180D}, - {0x180E, 0x180E}, {0x1810, 0x1819}, {0x1820, 0x1842}, - {0x1843, 0x1843}, {0x1844, 0x1877}, {0x1880, 0x1884}, - {0x1885, 0x1886}, {0x1887, 0x18A8}, {0x18A9, 0x18A9}, - {0x18AA, 0x18AA}, {0x18B0, 0x18F5}, {0x1900, 0x191E}, - {0x1920, 0x1922}, {0x1923, 0x1926}, {0x1927, 0x1928}, - {0x1929, 0x192B}, {0x1930, 0x1931}, {0x1932, 0x1932}, - {0x1933, 0x1938}, {0x1939, 0x193B}, {0x1940, 0x1940}, - {0x1944, 0x1945}, {0x1946, 0x194F}, {0x1950, 0x196D}, - {0x1970, 0x1974}, {0x1980, 0x19AB}, {0x19B0, 0x19C9}, - {0x19D0, 0x19D9}, {0x19DA, 0x19DA}, {0x19DE, 0x19DF}, - {0x19E0, 0x19FF}, {0x1A00, 0x1A16}, {0x1A17, 0x1A18}, - {0x1A19, 0x1A1A}, {0x1A1B, 0x1A1B}, {0x1A1E, 0x1A1F}, - {0x1A20, 0x1A54}, {0x1A55, 0x1A55}, {0x1A56, 0x1A56}, - {0x1A57, 0x1A57}, {0x1A58, 0x1A5E}, {0x1A60, 0x1A60}, - {0x1A61, 0x1A61}, {0x1A62, 0x1A62}, {0x1A63, 0x1A64}, - {0x1A65, 0x1A6C}, {0x1A6D, 0x1A72}, {0x1A73, 0x1A7C}, - {0x1A7F, 0x1A7F}, {0x1A80, 0x1A89}, {0x1A90, 0x1A99}, - {0x1AA0, 0x1AA6}, {0x1AA7, 0x1AA7}, {0x1AA8, 0x1AAD}, - {0x1AB0, 0x1ABD}, {0x1ABE, 0x1ABE}, {0x1B00, 0x1B03}, - {0x1B04, 0x1B04}, {0x1B05, 0x1B33}, {0x1B34, 0x1B34}, - {0x1B35, 0x1B35}, {0x1B36, 0x1B3A}, {0x1B3B, 0x1B3B}, - {0x1B3C, 0x1B3C}, {0x1B3D, 0x1B41}, {0x1B42, 0x1B42}, - {0x1B43, 0x1B44}, {0x1B45, 0x1B4B}, {0x1B50, 0x1B59}, - {0x1B5A, 0x1B60}, {0x1B61, 0x1B6A}, {0x1B6B, 0x1B73}, - {0x1B74, 0x1B7C}, {0x1B80, 0x1B81}, {0x1B82, 0x1B82}, - {0x1B83, 0x1BA0}, {0x1BA1, 0x1BA1}, {0x1BA2, 0x1BA5}, - {0x1BA6, 0x1BA7}, {0x1BA8, 0x1BA9}, {0x1BAA, 0x1BAA}, - {0x1BAB, 0x1BAD}, {0x1BAE, 0x1BAF}, {0x1BB0, 0x1BB9}, - {0x1BBA, 0x1BBF}, {0x1BC0, 0x1BE5}, {0x1BE6, 0x1BE6}, - {0x1BE7, 0x1BE7}, {0x1BE8, 0x1BE9}, {0x1BEA, 0x1BEC}, - {0x1BED, 0x1BED}, {0x1BEE, 0x1BEE}, {0x1BEF, 0x1BF1}, - {0x1BF2, 0x1BF3}, {0x1BFC, 0x1BFF}, {0x1C00, 0x1C23}, - {0x1C24, 0x1C2B}, {0x1C2C, 0x1C33}, {0x1C34, 0x1C35}, - {0x1C36, 0x1C37}, {0x1C3B, 0x1C3F}, {0x1C40, 0x1C49}, - {0x1C4D, 0x1C4F}, {0x1C50, 0x1C59}, {0x1C5A, 0x1C77}, - {0x1C78, 0x1C7D}, {0x1C7E, 0x1C7F}, {0x1C80, 0x1C88}, - {0x1CC0, 0x1CC7}, {0x1CD0, 0x1CD2}, {0x1CD3, 0x1CD3}, - {0x1CD4, 0x1CE0}, {0x1CE1, 0x1CE1}, {0x1CE2, 0x1CE8}, - {0x1CE9, 0x1CEC}, {0x1CED, 0x1CED}, {0x1CEE, 0x1CF1}, - {0x1CF2, 0x1CF3}, {0x1CF4, 0x1CF4}, {0x1CF5, 0x1CF6}, - {0x1CF8, 0x1CF9}, {0x1D00, 0x1D2B}, {0x1D2C, 0x1D6A}, - {0x1D6B, 0x1D77}, {0x1D78, 0x1D78}, {0x1D79, 0x1D7F}, - {0x1D80, 0x1D9A}, {0x1D9B, 0x1DBF}, {0x1DC0, 0x1DF5}, - {0x1DFB, 0x1DFF}, {0x1E00, 0x1EFF}, {0x1F00, 0x1F15}, - {0x1F18, 0x1F1D}, {0x1F20, 0x1F45}, {0x1F48, 0x1F4D}, - {0x1F50, 0x1F57}, {0x1F59, 0x1F59}, {0x1F5B, 0x1F5B}, - {0x1F5D, 0x1F5D}, {0x1F5F, 0x1F7D}, {0x1F80, 0x1FB4}, - {0x1FB6, 0x1FBC}, {0x1FBD, 0x1FBD}, {0x1FBE, 0x1FBE}, - {0x1FBF, 0x1FC1}, {0x1FC2, 0x1FC4}, {0x1FC6, 0x1FCC}, - {0x1FCD, 0x1FCF}, {0x1FD0, 0x1FD3}, {0x1FD6, 0x1FDB}, - {0x1FDD, 0x1FDF}, {0x1FE0, 0x1FEC}, {0x1FED, 0x1FEF}, - {0x1FF2, 0x1FF4}, {0x1FF6, 0x1FFC}, {0x1FFD, 0x1FFE}, - {0x2000, 0x200A}, {0x200B, 0x200F}, {0x2011, 0x2012}, - {0x2017, 0x2017}, {0x201A, 0x201A}, {0x201B, 0x201B}, - {0x201E, 0x201E}, {0x201F, 0x201F}, {0x2023, 0x2023}, - {0x2028, 0x2028}, {0x2029, 0x2029}, {0x202A, 0x202E}, - {0x202F, 0x202F}, {0x2031, 0x2031}, {0x2034, 0x2034}, - {0x2036, 0x2038}, {0x2039, 0x2039}, {0x203A, 0x203A}, - {0x203C, 0x203D}, {0x203F, 0x2040}, {0x2041, 0x2043}, - {0x2044, 0x2044}, {0x2045, 0x2045}, {0x2046, 0x2046}, - {0x2047, 0x2051}, {0x2052, 0x2052}, {0x2053, 0x2053}, - {0x2054, 0x2054}, {0x2055, 0x205E}, {0x205F, 0x205F}, - {0x2060, 0x2064}, {0x2066, 0x206F}, {0x2070, 0x2070}, - {0x2071, 0x2071}, {0x2075, 0x2079}, {0x207A, 0x207C}, - {0x207D, 0x207D}, {0x207E, 0x207E}, {0x2080, 0x2080}, - {0x2085, 0x2089}, {0x208A, 0x208C}, {0x208D, 0x208D}, - {0x208E, 0x208E}, {0x2090, 0x209C}, {0x20A0, 0x20A8}, - {0x20AA, 0x20AB}, {0x20AD, 0x20BE}, {0x20D0, 0x20DC}, - {0x20DD, 0x20E0}, {0x20E1, 0x20E1}, {0x20E2, 0x20E4}, - {0x20E5, 0x20F0}, {0x2100, 0x2101}, {0x2102, 0x2102}, - {0x2104, 0x2104}, {0x2106, 0x2106}, {0x2107, 0x2107}, - {0x2108, 0x2108}, {0x210A, 0x2112}, {0x2114, 0x2114}, - {0x2115, 0x2115}, {0x2117, 0x2117}, {0x2118, 0x2118}, - {0x2119, 0x211D}, {0x211E, 0x2120}, {0x2123, 0x2123}, - {0x2124, 0x2124}, {0x2125, 0x2125}, {0x2127, 0x2127}, - {0x2128, 0x2128}, {0x2129, 0x2129}, {0x212A, 0x212A}, - {0x212C, 0x212D}, {0x212E, 0x212E}, {0x212F, 0x2134}, - {0x2135, 0x2138}, {0x2139, 0x2139}, {0x213A, 0x213B}, - {0x213C, 0x213F}, {0x2140, 0x2144}, {0x2145, 0x2149}, - {0x214A, 0x214A}, {0x214B, 0x214B}, {0x214C, 0x214D}, - {0x214E, 0x214E}, {0x214F, 0x214F}, {0x2150, 0x2152}, - {0x2155, 0x215A}, {0x215F, 0x215F}, {0x216C, 0x216F}, - {0x217A, 0x2182}, {0x2183, 0x2184}, {0x2185, 0x2188}, - {0x218A, 0x218B}, {0x219A, 0x219B}, {0x219C, 0x219F}, - {0x21A0, 0x21A0}, {0x21A1, 0x21A2}, {0x21A3, 0x21A3}, - {0x21A4, 0x21A5}, {0x21A6, 0x21A6}, {0x21A7, 0x21AD}, - {0x21AE, 0x21AE}, {0x21AF, 0x21B7}, {0x21BA, 0x21CD}, - {0x21CE, 0x21CF}, {0x21D0, 0x21D1}, {0x21D3, 0x21D3}, - {0x21D5, 0x21E6}, {0x21E8, 0x21F3}, {0x21F4, 0x21FF}, - {0x2201, 0x2201}, {0x2204, 0x2206}, {0x2209, 0x220A}, - {0x220C, 0x220E}, {0x2210, 0x2210}, {0x2212, 0x2214}, - {0x2216, 0x2219}, {0x221B, 0x221C}, {0x2221, 0x2222}, - {0x2224, 0x2224}, {0x2226, 0x2226}, {0x222D, 0x222D}, - {0x222F, 0x2233}, {0x2238, 0x223B}, {0x223E, 0x2247}, - {0x2249, 0x224B}, {0x224D, 0x2251}, {0x2253, 0x225F}, - {0x2262, 0x2263}, {0x2268, 0x2269}, {0x226C, 0x226D}, - {0x2270, 0x2281}, {0x2284, 0x2285}, {0x2288, 0x2294}, - {0x2296, 0x2298}, {0x229A, 0x22A4}, {0x22A6, 0x22BE}, - {0x22C0, 0x22FF}, {0x2300, 0x2307}, {0x2308, 0x2308}, - {0x2309, 0x2309}, {0x230A, 0x230A}, {0x230B, 0x230B}, - {0x230C, 0x2311}, {0x2313, 0x2319}, {0x231C, 0x231F}, - {0x2320, 0x2321}, {0x2322, 0x2328}, {0x232B, 0x237B}, - {0x237C, 0x237C}, {0x237D, 0x239A}, {0x239B, 0x23B3}, - {0x23B4, 0x23DB}, {0x23DC, 0x23E1}, {0x23E2, 0x23E8}, - {0x23ED, 0x23EF}, {0x23F1, 0x23F2}, {0x23F4, 0x23FE}, - {0x2400, 0x2426}, {0x2440, 0x244A}, {0x24EA, 0x24EA}, - {0x254C, 0x254F}, {0x2574, 0x257F}, {0x2590, 0x2591}, - {0x2596, 0x259F}, {0x25A2, 0x25A2}, {0x25AA, 0x25B1}, - {0x25B4, 0x25B5}, {0x25B8, 0x25BB}, {0x25BE, 0x25BF}, - {0x25C2, 0x25C5}, {0x25C9, 0x25CA}, {0x25CC, 0x25CD}, - {0x25D2, 0x25E1}, {0x25E6, 0x25EE}, {0x25F0, 0x25F7}, - {0x25F8, 0x25FC}, {0x25FF, 0x25FF}, {0x2600, 0x2604}, - {0x2607, 0x2608}, {0x260A, 0x260D}, {0x2610, 0x2613}, - {0x2616, 0x261B}, {0x261D, 0x261D}, {0x261F, 0x263F}, - {0x2641, 0x2641}, {0x2643, 0x2647}, {0x2654, 0x265F}, - {0x2662, 0x2662}, {0x2666, 0x2666}, {0x266B, 0x266B}, - {0x266E, 0x266E}, {0x2670, 0x267E}, {0x2680, 0x2692}, - {0x2694, 0x269D}, {0x26A0, 0x26A0}, {0x26A2, 0x26A9}, - {0x26AC, 0x26BC}, {0x26C0, 0x26C3}, {0x26E2, 0x26E2}, - {0x26E4, 0x26E7}, {0x2700, 0x2704}, {0x2706, 0x2709}, - {0x270C, 0x2727}, {0x2729, 0x273C}, {0x273E, 0x274B}, - {0x274D, 0x274D}, {0x274F, 0x2752}, {0x2756, 0x2756}, - {0x2758, 0x2767}, {0x2768, 0x2768}, {0x2769, 0x2769}, - {0x276A, 0x276A}, {0x276B, 0x276B}, {0x276C, 0x276C}, - {0x276D, 0x276D}, {0x276E, 0x276E}, {0x276F, 0x276F}, - {0x2770, 0x2770}, {0x2771, 0x2771}, {0x2772, 0x2772}, - {0x2773, 0x2773}, {0x2774, 0x2774}, {0x2775, 0x2775}, - {0x2780, 0x2793}, {0x2794, 0x2794}, {0x2798, 0x27AF}, - {0x27B1, 0x27BE}, {0x27C0, 0x27C4}, {0x27C5, 0x27C5}, - {0x27C6, 0x27C6}, {0x27C7, 0x27E5}, {0x27EE, 0x27EE}, - {0x27EF, 0x27EF}, {0x27F0, 0x27FF}, {0x2800, 0x28FF}, - {0x2900, 0x297F}, {0x2980, 0x2982}, {0x2983, 0x2983}, - {0x2984, 0x2984}, {0x2987, 0x2987}, {0x2988, 0x2988}, - {0x2989, 0x2989}, {0x298A, 0x298A}, {0x298B, 0x298B}, - {0x298C, 0x298C}, {0x298D, 0x298D}, {0x298E, 0x298E}, - {0x298F, 0x298F}, {0x2990, 0x2990}, {0x2991, 0x2991}, - {0x2992, 0x2992}, {0x2993, 0x2993}, {0x2994, 0x2994}, - {0x2995, 0x2995}, {0x2996, 0x2996}, {0x2997, 0x2997}, - {0x2998, 0x2998}, {0x2999, 0x29D7}, {0x29D8, 0x29D8}, - {0x29D9, 0x29D9}, {0x29DA, 0x29DA}, {0x29DB, 0x29DB}, - {0x29DC, 0x29FB}, {0x29FC, 0x29FC}, {0x29FD, 0x29FD}, - {0x29FE, 0x29FF}, {0x2A00, 0x2AFF}, {0x2B00, 0x2B1A}, - {0x2B1D, 0x2B2F}, {0x2B30, 0x2B44}, {0x2B45, 0x2B46}, - {0x2B47, 0x2B4C}, {0x2B4D, 0x2B4F}, {0x2B51, 0x2B54}, - {0x2B5A, 0x2B73}, {0x2B76, 0x2B95}, {0x2B98, 0x2BB9}, - {0x2BBD, 0x2BC8}, {0x2BCA, 0x2BD1}, {0x2BEC, 0x2BEF}, - {0x2C00, 0x2C2E}, {0x2C30, 0x2C5E}, {0x2C60, 0x2C7B}, - {0x2C7C, 0x2C7D}, {0x2C7E, 0x2C7F}, {0x2C80, 0x2CE4}, - {0x2CE5, 0x2CEA}, {0x2CEB, 0x2CEE}, {0x2CEF, 0x2CF1}, - {0x2CF2, 0x2CF3}, {0x2CF9, 0x2CFC}, {0x2CFD, 0x2CFD}, - {0x2CFE, 0x2CFF}, {0x2D00, 0x2D25}, {0x2D27, 0x2D27}, - {0x2D2D, 0x2D2D}, {0x2D30, 0x2D67}, {0x2D6F, 0x2D6F}, - {0x2D70, 0x2D70}, {0x2D7F, 0x2D7F}, {0x2D80, 0x2D96}, - {0x2DA0, 0x2DA6}, {0x2DA8, 0x2DAE}, {0x2DB0, 0x2DB6}, - {0x2DB8, 0x2DBE}, {0x2DC0, 0x2DC6}, {0x2DC8, 0x2DCE}, - {0x2DD0, 0x2DD6}, {0x2DD8, 0x2DDE}, {0x2DE0, 0x2DFF}, - {0x2E00, 0x2E01}, {0x2E02, 0x2E02}, {0x2E03, 0x2E03}, - {0x2E04, 0x2E04}, {0x2E05, 0x2E05}, {0x2E06, 0x2E08}, - {0x2E09, 0x2E09}, {0x2E0A, 0x2E0A}, {0x2E0B, 0x2E0B}, - {0x2E0C, 0x2E0C}, {0x2E0D, 0x2E0D}, {0x2E0E, 0x2E16}, - {0x2E17, 0x2E17}, {0x2E18, 0x2E19}, {0x2E1A, 0x2E1A}, - {0x2E1B, 0x2E1B}, {0x2E1C, 0x2E1C}, {0x2E1D, 0x2E1D}, - {0x2E1E, 0x2E1F}, {0x2E20, 0x2E20}, {0x2E21, 0x2E21}, - {0x2E22, 0x2E22}, {0x2E23, 0x2E23}, {0x2E24, 0x2E24}, - {0x2E25, 0x2E25}, {0x2E26, 0x2E26}, {0x2E27, 0x2E27}, - {0x2E28, 0x2E28}, {0x2E29, 0x2E29}, {0x2E2A, 0x2E2E}, - {0x2E2F, 0x2E2F}, {0x2E30, 0x2E39}, {0x2E3A, 0x2E3B}, - {0x2E3C, 0x2E3F}, {0x2E40, 0x2E40}, {0x2E41, 0x2E41}, - {0x2E42, 0x2E42}, {0x2E43, 0x2E44}, {0x303F, 0x303F}, - {0x4DC0, 0x4DFF}, {0xA4D0, 0xA4F7}, {0xA4F8, 0xA4FD}, - {0xA4FE, 0xA4FF}, {0xA500, 0xA60B}, {0xA60C, 0xA60C}, - {0xA60D, 0xA60F}, {0xA610, 0xA61F}, {0xA620, 0xA629}, - {0xA62A, 0xA62B}, {0xA640, 0xA66D}, {0xA66E, 0xA66E}, - {0xA66F, 0xA66F}, {0xA670, 0xA672}, {0xA673, 0xA673}, - {0xA674, 0xA67D}, {0xA67E, 0xA67E}, {0xA67F, 0xA67F}, - {0xA680, 0xA69B}, {0xA69C, 0xA69D}, {0xA69E, 0xA69F}, - {0xA6A0, 0xA6E5}, {0xA6E6, 0xA6EF}, {0xA6F0, 0xA6F1}, - {0xA6F2, 0xA6F7}, {0xA700, 0xA716}, {0xA717, 0xA71F}, - {0xA720, 0xA721}, {0xA722, 0xA76F}, {0xA770, 0xA770}, - {0xA771, 0xA787}, {0xA788, 0xA788}, {0xA789, 0xA78A}, - {0xA78B, 0xA78E}, {0xA78F, 0xA78F}, {0xA790, 0xA7AE}, - {0xA7B0, 0xA7B7}, {0xA7F7, 0xA7F7}, {0xA7F8, 0xA7F9}, - {0xA7FA, 0xA7FA}, {0xA7FB, 0xA7FF}, {0xA800, 0xA801}, - {0xA802, 0xA802}, {0xA803, 0xA805}, {0xA806, 0xA806}, - {0xA807, 0xA80A}, {0xA80B, 0xA80B}, {0xA80C, 0xA822}, - {0xA823, 0xA824}, {0xA825, 0xA826}, {0xA827, 0xA827}, - {0xA828, 0xA82B}, {0xA830, 0xA835}, {0xA836, 0xA837}, - {0xA838, 0xA838}, {0xA839, 0xA839}, {0xA840, 0xA873}, - {0xA874, 0xA877}, {0xA880, 0xA881}, {0xA882, 0xA8B3}, - {0xA8B4, 0xA8C3}, {0xA8C4, 0xA8C5}, {0xA8CE, 0xA8CF}, - {0xA8D0, 0xA8D9}, {0xA8E0, 0xA8F1}, {0xA8F2, 0xA8F7}, - {0xA8F8, 0xA8FA}, {0xA8FB, 0xA8FB}, {0xA8FC, 0xA8FC}, - {0xA8FD, 0xA8FD}, {0xA900, 0xA909}, {0xA90A, 0xA925}, - {0xA926, 0xA92D}, {0xA92E, 0xA92F}, {0xA930, 0xA946}, - {0xA947, 0xA951}, {0xA952, 0xA953}, {0xA95F, 0xA95F}, - {0xA980, 0xA982}, {0xA983, 0xA983}, {0xA984, 0xA9B2}, - {0xA9B3, 0xA9B3}, {0xA9B4, 0xA9B5}, {0xA9B6, 0xA9B9}, - {0xA9BA, 0xA9BB}, {0xA9BC, 0xA9BC}, {0xA9BD, 0xA9C0}, - {0xA9C1, 0xA9CD}, {0xA9CF, 0xA9CF}, {0xA9D0, 0xA9D9}, - {0xA9DE, 0xA9DF}, {0xA9E0, 0xA9E4}, {0xA9E5, 0xA9E5}, - {0xA9E6, 0xA9E6}, {0xA9E7, 0xA9EF}, {0xA9F0, 0xA9F9}, - {0xA9FA, 0xA9FE}, {0xAA00, 0xAA28}, {0xAA29, 0xAA2E}, - {0xAA2F, 0xAA30}, {0xAA31, 0xAA32}, {0xAA33, 0xAA34}, - {0xAA35, 0xAA36}, {0xAA40, 0xAA42}, {0xAA43, 0xAA43}, - {0xAA44, 0xAA4B}, {0xAA4C, 0xAA4C}, {0xAA4D, 0xAA4D}, - {0xAA50, 0xAA59}, {0xAA5C, 0xAA5F}, {0xAA60, 0xAA6F}, - {0xAA70, 0xAA70}, {0xAA71, 0xAA76}, {0xAA77, 0xAA79}, - {0xAA7A, 0xAA7A}, {0xAA7B, 0xAA7B}, {0xAA7C, 0xAA7C}, - {0xAA7D, 0xAA7D}, {0xAA7E, 0xAA7F}, {0xAA80, 0xAAAF}, - {0xAAB0, 0xAAB0}, {0xAAB1, 0xAAB1}, {0xAAB2, 0xAAB4}, - {0xAAB5, 0xAAB6}, {0xAAB7, 0xAAB8}, {0xAAB9, 0xAABD}, - {0xAABE, 0xAABF}, {0xAAC0, 0xAAC0}, {0xAAC1, 0xAAC1}, - {0xAAC2, 0xAAC2}, {0xAADB, 0xAADC}, {0xAADD, 0xAADD}, - {0xAADE, 0xAADF}, {0xAAE0, 0xAAEA}, {0xAAEB, 0xAAEB}, - {0xAAEC, 0xAAED}, {0xAAEE, 0xAAEF}, {0xAAF0, 0xAAF1}, - {0xAAF2, 0xAAF2}, {0xAAF3, 0xAAF4}, {0xAAF5, 0xAAF5}, - {0xAAF6, 0xAAF6}, {0xAB01, 0xAB06}, {0xAB09, 0xAB0E}, - {0xAB11, 0xAB16}, {0xAB20, 0xAB26}, {0xAB28, 0xAB2E}, - {0xAB30, 0xAB5A}, {0xAB5B, 0xAB5B}, {0xAB5C, 0xAB5F}, - {0xAB60, 0xAB65}, {0xAB70, 0xABBF}, {0xABC0, 0xABE2}, - {0xABE3, 0xABE4}, {0xABE5, 0xABE5}, {0xABE6, 0xABE7}, - {0xABE8, 0xABE8}, {0xABE9, 0xABEA}, {0xABEB, 0xABEB}, - {0xABEC, 0xABEC}, {0xABED, 0xABED}, {0xABF0, 0xABF9}, - {0xD7B0, 0xD7C6}, {0xD7CB, 0xD7FB}, {0xD800, 0xDB7F}, - {0xDB80, 0xDBFF}, {0xDC00, 0xDFFF}, {0xFB00, 0xFB06}, - {0xFB13, 0xFB17}, {0xFB1D, 0xFB1D}, {0xFB1E, 0xFB1E}, - {0xFB1F, 0xFB28}, {0xFB29, 0xFB29}, {0xFB2A, 0xFB36}, - {0xFB38, 0xFB3C}, {0xFB3E, 0xFB3E}, {0xFB40, 0xFB41}, - {0xFB43, 0xFB44}, {0xFB46, 0xFB4F}, {0xFB50, 0xFBB1}, - {0xFBB2, 0xFBC1}, {0xFBD3, 0xFD3D}, {0xFD3E, 0xFD3E}, - {0xFD3F, 0xFD3F}, {0xFD50, 0xFD8F}, {0xFD92, 0xFDC7}, - {0xFDF0, 0xFDFB}, {0xFDFC, 0xFDFC}, {0xFDFD, 0xFDFD}, - {0xFE20, 0xFE2F}, {0xFE70, 0xFE74}, {0xFE76, 0xFEFC}, - {0xFEFF, 0xFEFF}, {0xFFF9, 0xFFFB}, {0xFFFC, 0xFFFC}, - {0x10000, 0x1000B}, {0x1000D, 0x10026}, {0x10028, 0x1003A}, - {0x1003C, 0x1003D}, {0x1003F, 0x1004D}, {0x10050, 0x1005D}, - {0x10080, 0x100FA}, {0x10100, 0x10102}, {0x10107, 0x10133}, - {0x10137, 0x1013F}, {0x10140, 0x10174}, {0x10175, 0x10178}, - {0x10179, 0x10189}, {0x1018A, 0x1018B}, {0x1018C, 0x1018E}, - {0x10190, 0x1019B}, {0x101A0, 0x101A0}, {0x101D0, 0x101FC}, - {0x101FD, 0x101FD}, {0x10280, 0x1029C}, {0x102A0, 0x102D0}, - {0x102E0, 0x102E0}, {0x102E1, 0x102FB}, {0x10300, 0x1031F}, - {0x10320, 0x10323}, {0x10330, 0x10340}, {0x10341, 0x10341}, - {0x10342, 0x10349}, {0x1034A, 0x1034A}, {0x10350, 0x10375}, - {0x10376, 0x1037A}, {0x10380, 0x1039D}, {0x1039F, 0x1039F}, - {0x103A0, 0x103C3}, {0x103C8, 0x103CF}, {0x103D0, 0x103D0}, - {0x103D1, 0x103D5}, {0x10400, 0x1044F}, {0x10450, 0x1047F}, - {0x10480, 0x1049D}, {0x104A0, 0x104A9}, {0x104B0, 0x104D3}, - {0x104D8, 0x104FB}, {0x10500, 0x10527}, {0x10530, 0x10563}, - {0x1056F, 0x1056F}, {0x10600, 0x10736}, {0x10740, 0x10755}, - {0x10760, 0x10767}, {0x10800, 0x10805}, {0x10808, 0x10808}, - {0x1080A, 0x10835}, {0x10837, 0x10838}, {0x1083C, 0x1083C}, - {0x1083F, 0x1083F}, {0x10840, 0x10855}, {0x10857, 0x10857}, - {0x10858, 0x1085F}, {0x10860, 0x10876}, {0x10877, 0x10878}, - {0x10879, 0x1087F}, {0x10880, 0x1089E}, {0x108A7, 0x108AF}, - {0x108E0, 0x108F2}, {0x108F4, 0x108F5}, {0x108FB, 0x108FF}, - {0x10900, 0x10915}, {0x10916, 0x1091B}, {0x1091F, 0x1091F}, - {0x10920, 0x10939}, {0x1093F, 0x1093F}, {0x10980, 0x1099F}, - {0x109A0, 0x109B7}, {0x109BC, 0x109BD}, {0x109BE, 0x109BF}, - {0x109C0, 0x109CF}, {0x109D2, 0x109FF}, {0x10A00, 0x10A00}, - {0x10A01, 0x10A03}, {0x10A05, 0x10A06}, {0x10A0C, 0x10A0F}, - {0x10A10, 0x10A13}, {0x10A15, 0x10A17}, {0x10A19, 0x10A33}, - {0x10A38, 0x10A3A}, {0x10A3F, 0x10A3F}, {0x10A40, 0x10A47}, - {0x10A50, 0x10A58}, {0x10A60, 0x10A7C}, {0x10A7D, 0x10A7E}, - {0x10A7F, 0x10A7F}, {0x10A80, 0x10A9C}, {0x10A9D, 0x10A9F}, - {0x10AC0, 0x10AC7}, {0x10AC8, 0x10AC8}, {0x10AC9, 0x10AE4}, - {0x10AE5, 0x10AE6}, {0x10AEB, 0x10AEF}, {0x10AF0, 0x10AF6}, - {0x10B00, 0x10B35}, {0x10B39, 0x10B3F}, {0x10B40, 0x10B55}, - {0x10B58, 0x10B5F}, {0x10B60, 0x10B72}, {0x10B78, 0x10B7F}, - {0x10B80, 0x10B91}, {0x10B99, 0x10B9C}, {0x10BA9, 0x10BAF}, - {0x10C00, 0x10C48}, {0x10C80, 0x10CB2}, {0x10CC0, 0x10CF2}, - {0x10CFA, 0x10CFF}, {0x10E60, 0x10E7E}, {0x11000, 0x11000}, - {0x11001, 0x11001}, {0x11002, 0x11002}, {0x11003, 0x11037}, - {0x11038, 0x11046}, {0x11047, 0x1104D}, {0x11052, 0x11065}, - {0x11066, 0x1106F}, {0x1107F, 0x1107F}, {0x11080, 0x11081}, - {0x11082, 0x11082}, {0x11083, 0x110AF}, {0x110B0, 0x110B2}, - {0x110B3, 0x110B6}, {0x110B7, 0x110B8}, {0x110B9, 0x110BA}, - {0x110BB, 0x110BC}, {0x110BD, 0x110BD}, {0x110BE, 0x110C1}, - {0x110D0, 0x110E8}, {0x110F0, 0x110F9}, {0x11100, 0x11102}, - {0x11103, 0x11126}, {0x11127, 0x1112B}, {0x1112C, 0x1112C}, - {0x1112D, 0x11134}, {0x11136, 0x1113F}, {0x11140, 0x11143}, - {0x11150, 0x11172}, {0x11173, 0x11173}, {0x11174, 0x11175}, - {0x11176, 0x11176}, {0x11180, 0x11181}, {0x11182, 0x11182}, - {0x11183, 0x111B2}, {0x111B3, 0x111B5}, {0x111B6, 0x111BE}, - {0x111BF, 0x111C0}, {0x111C1, 0x111C4}, {0x111C5, 0x111C9}, - {0x111CA, 0x111CC}, {0x111CD, 0x111CD}, {0x111D0, 0x111D9}, - {0x111DA, 0x111DA}, {0x111DB, 0x111DB}, {0x111DC, 0x111DC}, - {0x111DD, 0x111DF}, {0x111E1, 0x111F4}, {0x11200, 0x11211}, - {0x11213, 0x1122B}, {0x1122C, 0x1122E}, {0x1122F, 0x11231}, - {0x11232, 0x11233}, {0x11234, 0x11234}, {0x11235, 0x11235}, - {0x11236, 0x11237}, {0x11238, 0x1123D}, {0x1123E, 0x1123E}, - {0x11280, 0x11286}, {0x11288, 0x11288}, {0x1128A, 0x1128D}, - {0x1128F, 0x1129D}, {0x1129F, 0x112A8}, {0x112A9, 0x112A9}, - {0x112B0, 0x112DE}, {0x112DF, 0x112DF}, {0x112E0, 0x112E2}, - {0x112E3, 0x112EA}, {0x112F0, 0x112F9}, {0x11300, 0x11301}, - {0x11302, 0x11303}, {0x11305, 0x1130C}, {0x1130F, 0x11310}, - {0x11313, 0x11328}, {0x1132A, 0x11330}, {0x11332, 0x11333}, - {0x11335, 0x11339}, {0x1133C, 0x1133C}, {0x1133D, 0x1133D}, - {0x1133E, 0x1133F}, {0x11340, 0x11340}, {0x11341, 0x11344}, - {0x11347, 0x11348}, {0x1134B, 0x1134D}, {0x11350, 0x11350}, - {0x11357, 0x11357}, {0x1135D, 0x11361}, {0x11362, 0x11363}, - {0x11366, 0x1136C}, {0x11370, 0x11374}, {0x11400, 0x11434}, - {0x11435, 0x11437}, {0x11438, 0x1143F}, {0x11440, 0x11441}, - {0x11442, 0x11444}, {0x11445, 0x11445}, {0x11446, 0x11446}, - {0x11447, 0x1144A}, {0x1144B, 0x1144F}, {0x11450, 0x11459}, - {0x1145B, 0x1145B}, {0x1145D, 0x1145D}, {0x11480, 0x114AF}, - {0x114B0, 0x114B2}, {0x114B3, 0x114B8}, {0x114B9, 0x114B9}, - {0x114BA, 0x114BA}, {0x114BB, 0x114BE}, {0x114BF, 0x114C0}, - {0x114C1, 0x114C1}, {0x114C2, 0x114C3}, {0x114C4, 0x114C5}, - {0x114C6, 0x114C6}, {0x114C7, 0x114C7}, {0x114D0, 0x114D9}, - {0x11580, 0x115AE}, {0x115AF, 0x115B1}, {0x115B2, 0x115B5}, - {0x115B8, 0x115BB}, {0x115BC, 0x115BD}, {0x115BE, 0x115BE}, - {0x115BF, 0x115C0}, {0x115C1, 0x115D7}, {0x115D8, 0x115DB}, - {0x115DC, 0x115DD}, {0x11600, 0x1162F}, {0x11630, 0x11632}, - {0x11633, 0x1163A}, {0x1163B, 0x1163C}, {0x1163D, 0x1163D}, - {0x1163E, 0x1163E}, {0x1163F, 0x11640}, {0x11641, 0x11643}, - {0x11644, 0x11644}, {0x11650, 0x11659}, {0x11660, 0x1166C}, - {0x11680, 0x116AA}, {0x116AB, 0x116AB}, {0x116AC, 0x116AC}, - {0x116AD, 0x116AD}, {0x116AE, 0x116AF}, {0x116B0, 0x116B5}, - {0x116B6, 0x116B6}, {0x116B7, 0x116B7}, {0x116C0, 0x116C9}, - {0x11700, 0x11719}, {0x1171D, 0x1171F}, {0x11720, 0x11721}, - {0x11722, 0x11725}, {0x11726, 0x11726}, {0x11727, 0x1172B}, - {0x11730, 0x11739}, {0x1173A, 0x1173B}, {0x1173C, 0x1173E}, - {0x1173F, 0x1173F}, {0x118A0, 0x118DF}, {0x118E0, 0x118E9}, - {0x118EA, 0x118F2}, {0x118FF, 0x118FF}, {0x11AC0, 0x11AF8}, - {0x11C00, 0x11C08}, {0x11C0A, 0x11C2E}, {0x11C2F, 0x11C2F}, - {0x11C30, 0x11C36}, {0x11C38, 0x11C3D}, {0x11C3E, 0x11C3E}, - {0x11C3F, 0x11C3F}, {0x11C40, 0x11C40}, {0x11C41, 0x11C45}, - {0x11C50, 0x11C59}, {0x11C5A, 0x11C6C}, {0x11C70, 0x11C71}, - {0x11C72, 0x11C8F}, {0x11C92, 0x11CA7}, {0x11CA9, 0x11CA9}, - {0x11CAA, 0x11CB0}, {0x11CB1, 0x11CB1}, {0x11CB2, 0x11CB3}, - {0x11CB4, 0x11CB4}, {0x11CB5, 0x11CB6}, {0x12000, 0x12399}, - {0x12400, 0x1246E}, {0x12470, 0x12474}, {0x12480, 0x12543}, - {0x13000, 0x1342E}, {0x14400, 0x14646}, {0x16800, 0x16A38}, - {0x16A40, 0x16A5E}, {0x16A60, 0x16A69}, {0x16A6E, 0x16A6F}, - {0x16AD0, 0x16AED}, {0x16AF0, 0x16AF4}, {0x16AF5, 0x16AF5}, - {0x16B00, 0x16B2F}, {0x16B30, 0x16B36}, {0x16B37, 0x16B3B}, - {0x16B3C, 0x16B3F}, {0x16B40, 0x16B43}, {0x16B44, 0x16B44}, - {0x16B45, 0x16B45}, {0x16B50, 0x16B59}, {0x16B5B, 0x16B61}, - {0x16B63, 0x16B77}, {0x16B7D, 0x16B8F}, {0x16F00, 0x16F44}, - {0x16F50, 0x16F50}, {0x16F51, 0x16F7E}, {0x16F8F, 0x16F92}, - {0x16F93, 0x16F9F}, {0x1BC00, 0x1BC6A}, {0x1BC70, 0x1BC7C}, - {0x1BC80, 0x1BC88}, {0x1BC90, 0x1BC99}, {0x1BC9C, 0x1BC9C}, - {0x1BC9D, 0x1BC9E}, {0x1BC9F, 0x1BC9F}, {0x1BCA0, 0x1BCA3}, - {0x1D000, 0x1D0F5}, {0x1D100, 0x1D126}, {0x1D129, 0x1D164}, - {0x1D165, 0x1D166}, {0x1D167, 0x1D169}, {0x1D16A, 0x1D16C}, - {0x1D16D, 0x1D172}, {0x1D173, 0x1D17A}, {0x1D17B, 0x1D182}, - {0x1D183, 0x1D184}, {0x1D185, 0x1D18B}, {0x1D18C, 0x1D1A9}, - {0x1D1AA, 0x1D1AD}, {0x1D1AE, 0x1D1E8}, {0x1D200, 0x1D241}, - {0x1D242, 0x1D244}, {0x1D245, 0x1D245}, {0x1D300, 0x1D356}, - {0x1D360, 0x1D371}, {0x1D400, 0x1D454}, {0x1D456, 0x1D49C}, - {0x1D49E, 0x1D49F}, {0x1D4A2, 0x1D4A2}, {0x1D4A5, 0x1D4A6}, - {0x1D4A9, 0x1D4AC}, {0x1D4AE, 0x1D4B9}, {0x1D4BB, 0x1D4BB}, - {0x1D4BD, 0x1D4C3}, {0x1D4C5, 0x1D505}, {0x1D507, 0x1D50A}, - {0x1D50D, 0x1D514}, {0x1D516, 0x1D51C}, {0x1D51E, 0x1D539}, - {0x1D53B, 0x1D53E}, {0x1D540, 0x1D544}, {0x1D546, 0x1D546}, - {0x1D54A, 0x1D550}, {0x1D552, 0x1D6A5}, {0x1D6A8, 0x1D6C0}, - {0x1D6C1, 0x1D6C1}, {0x1D6C2, 0x1D6DA}, {0x1D6DB, 0x1D6DB}, - {0x1D6DC, 0x1D6FA}, {0x1D6FB, 0x1D6FB}, {0x1D6FC, 0x1D714}, - {0x1D715, 0x1D715}, {0x1D716, 0x1D734}, {0x1D735, 0x1D735}, - {0x1D736, 0x1D74E}, {0x1D74F, 0x1D74F}, {0x1D750, 0x1D76E}, - {0x1D76F, 0x1D76F}, {0x1D770, 0x1D788}, {0x1D789, 0x1D789}, - {0x1D78A, 0x1D7A8}, {0x1D7A9, 0x1D7A9}, {0x1D7AA, 0x1D7C2}, - {0x1D7C3, 0x1D7C3}, {0x1D7C4, 0x1D7CB}, {0x1D7CE, 0x1D7FF}, - {0x1D800, 0x1D9FF}, {0x1DA00, 0x1DA36}, {0x1DA37, 0x1DA3A}, - {0x1DA3B, 0x1DA6C}, {0x1DA6D, 0x1DA74}, {0x1DA75, 0x1DA75}, - {0x1DA76, 0x1DA83}, {0x1DA84, 0x1DA84}, {0x1DA85, 0x1DA86}, - {0x1DA87, 0x1DA8B}, {0x1DA9B, 0x1DA9F}, {0x1DAA1, 0x1DAAF}, - {0x1E000, 0x1E006}, {0x1E008, 0x1E018}, {0x1E01B, 0x1E021}, - {0x1E023, 0x1E024}, {0x1E026, 0x1E02A}, {0x1E800, 0x1E8C4}, - {0x1E8C7, 0x1E8CF}, {0x1E8D0, 0x1E8D6}, {0x1E900, 0x1E943}, - {0x1E944, 0x1E94A}, {0x1E950, 0x1E959}, {0x1E95E, 0x1E95F}, - {0x1EE00, 0x1EE03}, {0x1EE05, 0x1EE1F}, {0x1EE21, 0x1EE22}, - {0x1EE24, 0x1EE24}, {0x1EE27, 0x1EE27}, {0x1EE29, 0x1EE32}, - {0x1EE34, 0x1EE37}, {0x1EE39, 0x1EE39}, {0x1EE3B, 0x1EE3B}, - {0x1EE42, 0x1EE42}, {0x1EE47, 0x1EE47}, {0x1EE49, 0x1EE49}, - {0x1EE4B, 0x1EE4B}, {0x1EE4D, 0x1EE4F}, {0x1EE51, 0x1EE52}, - {0x1EE54, 0x1EE54}, {0x1EE57, 0x1EE57}, {0x1EE59, 0x1EE59}, - {0x1EE5B, 0x1EE5B}, {0x1EE5D, 0x1EE5D}, {0x1EE5F, 0x1EE5F}, - {0x1EE61, 0x1EE62}, {0x1EE64, 0x1EE64}, {0x1EE67, 0x1EE6A}, - {0x1EE6C, 0x1EE72}, {0x1EE74, 0x1EE77}, {0x1EE79, 0x1EE7C}, - {0x1EE7E, 0x1EE7E}, {0x1EE80, 0x1EE89}, {0x1EE8B, 0x1EE9B}, - {0x1EEA1, 0x1EEA3}, {0x1EEA5, 0x1EEA9}, {0x1EEAB, 0x1EEBB}, - {0x1EEF0, 0x1EEF1}, {0x1F000, 0x1F003}, {0x1F005, 0x1F02B}, - {0x1F030, 0x1F093}, {0x1F0A0, 0x1F0AE}, {0x1F0B1, 0x1F0BF}, - {0x1F0C1, 0x1F0CE}, {0x1F0D1, 0x1F0F5}, {0x1F10B, 0x1F10C}, - {0x1F12E, 0x1F12E}, {0x1F16A, 0x1F16B}, {0x1F1E6, 0x1F1FF}, - {0x1F321, 0x1F32C}, {0x1F336, 0x1F336}, {0x1F37D, 0x1F37D}, - {0x1F394, 0x1F39F}, {0x1F3CB, 0x1F3CE}, {0x1F3D4, 0x1F3DF}, - {0x1F3F1, 0x1F3F3}, {0x1F3F5, 0x1F3F7}, {0x1F43F, 0x1F43F}, - {0x1F441, 0x1F441}, {0x1F4FD, 0x1F4FE}, {0x1F53E, 0x1F54A}, - {0x1F54F, 0x1F54F}, {0x1F568, 0x1F579}, {0x1F57B, 0x1F594}, - {0x1F597, 0x1F5A3}, {0x1F5A5, 0x1F5FA}, {0x1F650, 0x1F67F}, - {0x1F6C6, 0x1F6CB}, {0x1F6CD, 0x1F6CF}, {0x1F6E0, 0x1F6EA}, - {0x1F6F0, 0x1F6F3}, {0x1F700, 0x1F773}, {0x1F780, 0x1F7D4}, - {0x1F800, 0x1F80B}, {0x1F810, 0x1F847}, {0x1F850, 0x1F859}, - {0x1F860, 0x1F887}, {0x1F890, 0x1F8AD}, {0xE0001, 0xE0001}, - {0xE0020, 0xE007F}, -} - -// Condition have flag EastAsianWidth whether the current locale is CJK or not. -type Condition struct { - EastAsianWidth bool -} - -// NewCondition return new instance of Condition which is current locale. -func NewCondition() *Condition { - return &Condition{EastAsianWidth} -} - -// RuneWidth returns the number of cells in r. -// See http://www.unicode.org/reports/tr11/ -func (c *Condition) RuneWidth(r rune) int { - switch { - case r < 0 || r > 0x10FFFF || - inTables(r, nonprint, combining, notassigned): - return 0 - case (c.EastAsianWidth && IsAmbiguousWidth(r)) || - inTables(r, doublewidth, emoji): - return 2 - default: - return 1 - } -} - -// StringWidth return width as you can see -func (c *Condition) StringWidth(s string) (width int) { - for _, r := range []rune(s) { - width += c.RuneWidth(r) - } - return width -} - -// Truncate return string truncated with w cells -func (c *Condition) Truncate(s string, w int, tail string) string { - if c.StringWidth(s) <= w { - return s - } - r := []rune(s) - tw := c.StringWidth(tail) - w -= tw - width := 0 - i := 0 - for ; i < len(r); i++ { - cw := c.RuneWidth(r[i]) - if width+cw > w { - break - } - width += cw - } - return string(r[0:i]) + tail -} - -// Wrap return string wrapped with w cells -func (c *Condition) Wrap(s string, w int) string { - width := 0 - out := "" - for _, r := range []rune(s) { - cw := RuneWidth(r) - if r == '\n' { - out += string(r) - width = 0 - continue - } else if width+cw > w { - out += "\n" - width = 0 - out += string(r) - width += cw - continue - } - out += string(r) - width += cw - } - return out -} - -// FillLeft return string filled in left by spaces in w cells -func (c *Condition) FillLeft(s string, w int) string { - width := c.StringWidth(s) - count := w - width - if count > 0 { - b := make([]byte, count) - for i := range b { - b[i] = ' ' - } - return string(b) + s - } - return s -} - -// FillRight return string filled in left by spaces in w cells -func (c *Condition) FillRight(s string, w int) string { - width := c.StringWidth(s) - count := w - width - if count > 0 { - b := make([]byte, count) - for i := range b { - b[i] = ' ' - } - return s + string(b) - } - return s -} - -// RuneWidth returns the number of cells in r. -// See http://www.unicode.org/reports/tr11/ -func RuneWidth(r rune) int { - return DefaultCondition.RuneWidth(r) -} - -// IsAmbiguousWidth returns whether is ambiguous width or not. -func IsAmbiguousWidth(r rune) bool { - return inTables(r, private, ambiguous) -} - -// IsNeutralWidth returns whether is neutral width or not. -func IsNeutralWidth(r rune) bool { - return inTable(r, neutral) -} - -// StringWidth return width as you can see -func StringWidth(s string) (width int) { - return DefaultCondition.StringWidth(s) -} - -// Truncate return string truncated with w cells -func Truncate(s string, w int, tail string) string { - return DefaultCondition.Truncate(s, w, tail) -} - -// Wrap return string wrapped with w cells -func Wrap(s string, w int) string { - return DefaultCondition.Wrap(s, w) -} - -// FillLeft return string filled in left by spaces in w cells -func FillLeft(s string, w int) string { - return DefaultCondition.FillLeft(s, w) -} - -// FillRight return string filled in left by spaces in w cells -func FillRight(s string, w int) string { - return DefaultCondition.FillRight(s, w) -} diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_js.go b/vendor/github.com/mattn/go-runewidth/runewidth_js.go deleted file mode 100644 index 0ce32c5..0000000 --- a/vendor/github.com/mattn/go-runewidth/runewidth_js.go +++ /dev/null @@ -1,8 +0,0 @@ -// +build js - -package runewidth - -func IsEastAsian() bool { - // TODO: Implement this for the web. Detect east asian in a compatible way, and return true. - return false -} diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_posix.go b/vendor/github.com/mattn/go-runewidth/runewidth_posix.go deleted file mode 100644 index c579e9a..0000000 --- a/vendor/github.com/mattn/go-runewidth/runewidth_posix.go +++ /dev/null @@ -1,77 +0,0 @@ -// +build !windows,!js - -package runewidth - -import ( - "os" - "regexp" - "strings" -) - -var reLoc = regexp.MustCompile(`^[a-z][a-z][a-z]?(?:_[A-Z][A-Z])?\.(.+)`) - -var mblenTable = map[string]int{ - "utf-8": 6, - "utf8": 6, - "jis": 8, - "eucjp": 3, - "euckr": 2, - "euccn": 2, - "sjis": 2, - "cp932": 2, - "cp51932": 2, - "cp936": 2, - "cp949": 2, - "cp950": 2, - "big5": 2, - "gbk": 2, - "gb2312": 2, -} - -func isEastAsian(locale string) bool { - charset := strings.ToLower(locale) - r := reLoc.FindStringSubmatch(locale) - if len(r) == 2 { - charset = strings.ToLower(r[1]) - } - - if strings.HasSuffix(charset, "@cjk_narrow") { - return false - } - - for pos, b := range []byte(charset) { - if b == '@' { - charset = charset[:pos] - break - } - } - max := 1 - if m, ok := mblenTable[charset]; ok { - max = m - } - if max > 1 && (charset[0] != 'u' || - strings.HasPrefix(locale, "ja") || - strings.HasPrefix(locale, "ko") || - strings.HasPrefix(locale, "zh")) { - return true - } - return false -} - -// IsEastAsian return true if the current locale is CJK -func IsEastAsian() bool { - locale := os.Getenv("LC_CTYPE") - if locale == "" { - locale = os.Getenv("LANG") - } - - // ignore C locale - if locale == "POSIX" || locale == "C" { - return false - } - if len(locale) > 1 && locale[0] == 'C' && (locale[1] == '.' || locale[1] == '-') { - return false - } - - return isEastAsian(locale) -} diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_windows.go b/vendor/github.com/mattn/go-runewidth/runewidth_windows.go deleted file mode 100644 index 0258876..0000000 --- a/vendor/github.com/mattn/go-runewidth/runewidth_windows.go +++ /dev/null @@ -1,25 +0,0 @@ -package runewidth - -import ( - "syscall" -) - -var ( - kernel32 = syscall.NewLazyDLL("kernel32") - procGetConsoleOutputCP = kernel32.NewProc("GetConsoleOutputCP") -) - -// IsEastAsian return true if the current locale is CJK -func IsEastAsian() bool { - r1, _, _ := procGetConsoleOutputCP.Call() - if r1 == 0 { - return false - } - - switch int(r1) { - case 932, 51932, 936, 949, 950: - return true - } - - return false -} diff --git a/vendor/github.com/nsf/termbox-go/AUTHORS b/vendor/github.com/nsf/termbox-go/AUTHORS deleted file mode 100644 index fe26fb0..0000000 --- a/vendor/github.com/nsf/termbox-go/AUTHORS +++ /dev/null @@ -1,4 +0,0 @@ -# Please keep this file sorted. - -Georg Reinke -nsf diff --git a/vendor/github.com/nsf/termbox-go/LICENSE b/vendor/github.com/nsf/termbox-go/LICENSE deleted file mode 100644 index d9bc068..0000000 --- a/vendor/github.com/nsf/termbox-go/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (C) 2012 termbox-go authors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/github.com/nsf/termbox-go/README.md b/vendor/github.com/nsf/termbox-go/README.md deleted file mode 100644 index fcc493d..0000000 --- a/vendor/github.com/nsf/termbox-go/README.md +++ /dev/null @@ -1,38 +0,0 @@ -[![GoDoc](https://godoc.org/github.com/nsf/termbox-go?status.svg)](http://godoc.org/github.com/nsf/termbox-go) - -## Termbox -Termbox is a library that provides a minimalistic API which allows the programmer to write text-based user interfaces. The library is crossplatform and has both terminal-based implementations on *nix operating systems and a winapi console based implementation for windows operating systems. The basic idea is an abstraction of the greatest common subset of features available on all major terminals and other terminal-like APIs in a minimalistic fashion. Small API means it is easy to implement, test, maintain and learn it, that's what makes the termbox a distinct library in its area. - -### Installation -Install and update this go package with `go get -u github.com/nsf/termbox-go` - -### Examples -For examples of what can be done take a look at demos in the _demos directory. You can try them with go run: `go run _demos/keyboard.go` - -There are also some interesting projects using termbox-go: - - [godit](https://github.com/nsf/godit) is an emacsish lightweight text editor written using termbox. - - [gomatrix](https://github.com/GeertJohan/gomatrix) connects to The Matrix and displays its data streams in your terminal. - - [gotetris](https://github.com/jjinux/gotetris) is an implementation of Tetris. - - [sokoban-go](https://github.com/rn2dy/sokoban-go) is an implementation of sokoban game. - - [hecate](https://github.com/evanmiller/hecate) is a hex editor designed by Satan. - - [httopd](https://github.com/verdverm/httopd) is top for httpd logs. - - [mop](https://github.com/mop-tracker/mop) is stock market tracker for hackers. - - [termui](https://github.com/gizak/termui) is a terminal dashboard. - - [termloop](https://github.com/JoelOtter/termloop) is a terminal game engine. - - [xterm-color-chart](https://github.com/kutuluk/xterm-color-chart) is a XTerm 256 color chart. - - [gocui](https://github.com/jroimartin/gocui) is a minimalist Go library aimed at creating console user interfaces. - - [dry](https://github.com/moncho/dry) is an interactive cli to manage Docker containers. - - [pxl](https://github.com/ichinaski/pxl) displays images in the terminal. - - [snake-game](https://github.com/DyegoCosta/snake-game) is an implementation of the Snake game. - - [gone](https://github.com/guillaumebreton/gone) is a CLI pomodoro® timer. - - [Spoof.go](https://github.com/sabey/spoofgo) controllable movement spoofing from the cli - - [lf](https://github.com/gokcehan/lf) is a terminal file manager - - [rat](https://github.com/ericfreese/rat) lets you compose shell commands to build terminal applications. - - [httplab](https://github.com/gchaincl/httplab) An interactive web server. - - [tetris](https://github.com/MichaelS11/tetris) Go Tetris with AI option - - [wot](https://github.com/kyu-suke/wot) Wait time during command is completed. - - [2048-go](https://github.com/1984weed/2048-go) is 2048 in Go - - [jv](https://github.com/maxzender/jv) helps you view JSON on the command-line. - - [pinger](https://github.com/hirose31/pinger) helps you to monitor numerous hosts using ICMP ECHO_REQUEST. - - [vixl44](https://github.com/sebashwa/vixl44) lets you create pixel art inside your terminal using vim movements - - [zterm](https://github.com/varunrau/zterm) is a typing game inspired by http://zty.pe/ diff --git a/vendor/github.com/nsf/termbox-go/api.go b/vendor/github.com/nsf/termbox-go/api.go deleted file mode 100644 index d530ab5..0000000 --- a/vendor/github.com/nsf/termbox-go/api.go +++ /dev/null @@ -1,489 +0,0 @@ -// +build !windows - -package termbox - -import "github.com/mattn/go-runewidth" -import "fmt" -import "os" -import "os/signal" -import "syscall" -import "runtime" -import "time" - -// public API - -// Initializes termbox library. This function should be called before any other functions. -// After successful initialization, the library must be finalized using 'Close' function. -// -// Example usage: -// err := termbox.Init() -// if err != nil { -// panic(err) -// } -// defer termbox.Close() -func Init() error { - var err error - - out, err = os.OpenFile("/dev/tty", syscall.O_WRONLY, 0) - if err != nil { - return err - } - in, err = syscall.Open("/dev/tty", syscall.O_RDONLY, 0) - if err != nil { - return err - } - - err = setup_term() - if err != nil { - return fmt.Errorf("termbox: error while reading terminfo data: %v", err) - } - - signal.Notify(sigwinch, syscall.SIGWINCH) - signal.Notify(sigio, syscall.SIGIO) - - _, err = fcntl(in, syscall.F_SETFL, syscall.O_ASYNC|syscall.O_NONBLOCK) - if err != nil { - return err - } - _, err = fcntl(in, syscall.F_SETOWN, syscall.Getpid()) - if runtime.GOOS != "darwin" && err != nil { - return err - } - err = tcgetattr(out.Fd(), &orig_tios) - if err != nil { - return err - } - - tios := orig_tios - tios.Iflag &^= syscall_IGNBRK | syscall_BRKINT | syscall_PARMRK | - syscall_ISTRIP | syscall_INLCR | syscall_IGNCR | - syscall_ICRNL | syscall_IXON - tios.Lflag &^= syscall_ECHO | syscall_ECHONL | syscall_ICANON | - syscall_ISIG | syscall_IEXTEN - tios.Cflag &^= syscall_CSIZE | syscall_PARENB - tios.Cflag |= syscall_CS8 - tios.Cc[syscall_VMIN] = 1 - tios.Cc[syscall_VTIME] = 0 - - err = tcsetattr(out.Fd(), &tios) - if err != nil { - return err - } - - out.WriteString(funcs[t_enter_ca]) - out.WriteString(funcs[t_enter_keypad]) - out.WriteString(funcs[t_hide_cursor]) - out.WriteString(funcs[t_clear_screen]) - - termw, termh = get_term_size(out.Fd()) - back_buffer.init(termw, termh) - front_buffer.init(termw, termh) - back_buffer.clear() - front_buffer.clear() - - go func() { - buf := make([]byte, 128) - for { - select { - case <-sigio: - for { - n, err := syscall.Read(in, buf) - if err == syscall.EAGAIN || err == syscall.EWOULDBLOCK { - break - } - select { - case input_comm <- input_event{buf[:n], err}: - ie := <-input_comm - buf = ie.data[:128] - case <-quit: - return - } - } - case <-quit: - return - } - } - }() - - IsInit = true - return nil -} - -// Interrupt an in-progress call to PollEvent by causing it to return -// EventInterrupt. Note that this function will block until the PollEvent -// function has successfully been interrupted. -func Interrupt() { - interrupt_comm <- struct{}{} -} - -// Finalizes termbox library, should be called after successful initialization -// when termbox's functionality isn't required anymore. -func Close() { - quit <- 1 - out.WriteString(funcs[t_show_cursor]) - out.WriteString(funcs[t_sgr0]) - out.WriteString(funcs[t_clear_screen]) - out.WriteString(funcs[t_exit_ca]) - out.WriteString(funcs[t_exit_keypad]) - out.WriteString(funcs[t_exit_mouse]) - tcsetattr(out.Fd(), &orig_tios) - - out.Close() - syscall.Close(in) - - // reset the state, so that on next Init() it will work again - termw = 0 - termh = 0 - input_mode = InputEsc - out = nil - in = 0 - lastfg = attr_invalid - lastbg = attr_invalid - lastx = coord_invalid - lasty = coord_invalid - cursor_x = cursor_hidden - cursor_y = cursor_hidden - foreground = ColorDefault - background = ColorDefault - IsInit = false -} - -// Synchronizes the internal back buffer with the terminal. -func Flush() error { - // invalidate cursor position - lastx = coord_invalid - lasty = coord_invalid - - update_size_maybe() - - for y := 0; y < front_buffer.height; y++ { - line_offset := y * front_buffer.width - for x := 0; x < front_buffer.width; { - cell_offset := line_offset + x - back := &back_buffer.cells[cell_offset] - front := &front_buffer.cells[cell_offset] - if back.Ch < ' ' { - back.Ch = ' ' - } - w := runewidth.RuneWidth(back.Ch) - if w == 0 || w == 2 && runewidth.IsAmbiguousWidth(back.Ch) { - w = 1 - } - if *back == *front { - x += w - continue - } - *front = *back - send_attr(back.Fg, back.Bg) - - if w == 2 && x == front_buffer.width-1 { - // there's not enough space for 2-cells rune, - // let's just put a space in there - send_char(x, y, ' ') - } else { - send_char(x, y, back.Ch) - if w == 2 { - next := cell_offset + 1 - front_buffer.cells[next] = Cell{ - Ch: 0, - Fg: back.Fg, - Bg: back.Bg, - } - } - } - x += w - } - } - if !is_cursor_hidden(cursor_x, cursor_y) { - write_cursor(cursor_x, cursor_y) - } - return flush() -} - -// Sets the position of the cursor. See also HideCursor(). -func SetCursor(x, y int) { - if is_cursor_hidden(cursor_x, cursor_y) && !is_cursor_hidden(x, y) { - outbuf.WriteString(funcs[t_show_cursor]) - } - - if !is_cursor_hidden(cursor_x, cursor_y) && is_cursor_hidden(x, y) { - outbuf.WriteString(funcs[t_hide_cursor]) - } - - cursor_x, cursor_y = x, y - if !is_cursor_hidden(cursor_x, cursor_y) { - write_cursor(cursor_x, cursor_y) - } -} - -// The shortcut for SetCursor(-1, -1). -func HideCursor() { - SetCursor(cursor_hidden, cursor_hidden) -} - -// Changes cell's parameters in the internal back buffer at the specified -// position. -func SetCell(x, y int, ch rune, fg, bg Attribute) { - if x < 0 || x >= back_buffer.width { - return - } - if y < 0 || y >= back_buffer.height { - return - } - - back_buffer.cells[y*back_buffer.width+x] = Cell{ch, fg, bg} -} - -// Returns a slice into the termbox's back buffer. You can get its dimensions -// using 'Size' function. The slice remains valid as long as no 'Clear' or -// 'Flush' function calls were made after call to this function. -func CellBuffer() []Cell { - return back_buffer.cells -} - -// After getting a raw event from PollRawEvent function call, you can parse it -// again into an ordinary one using termbox logic. That is parse an event as -// termbox would do it. Returned event in addition to usual Event struct fields -// sets N field to the amount of bytes used within 'data' slice. If the length -// of 'data' slice is zero or event cannot be parsed for some other reason, the -// function will return a special event type: EventNone. -// -// IMPORTANT: EventNone may contain a non-zero N, which means you should skip -// these bytes, because termbox cannot recognize them. -// -// NOTE: This API is experimental and may change in future. -func ParseEvent(data []byte) Event { - event := Event{Type: EventKey} - status := extract_event(data, &event, false) - if status != event_extracted { - return Event{Type: EventNone, N: event.N} - } - return event -} - -// Wait for an event and return it. This is a blocking function call. Instead -// of EventKey and EventMouse it returns EventRaw events. Raw event is written -// into `data` slice and Event's N field is set to the amount of bytes written. -// The minimum required length of the 'data' slice is 1. This requirement may -// vary on different platforms. -// -// NOTE: This API is experimental and may change in future. -func PollRawEvent(data []byte) Event { - if len(data) == 0 { - panic("len(data) >= 1 is a requirement") - } - - var event Event - if extract_raw_event(data, &event) { - return event - } - - for { - select { - case ev := <-input_comm: - if ev.err != nil { - return Event{Type: EventError, Err: ev.err} - } - - inbuf = append(inbuf, ev.data...) - input_comm <- ev - if extract_raw_event(data, &event) { - return event - } - case <-interrupt_comm: - event.Type = EventInterrupt - return event - - case <-sigwinch: - event.Type = EventResize - event.Width, event.Height = get_term_size(out.Fd()) - return event - } - } -} - -// Wait for an event and return it. This is a blocking function call. -func PollEvent() Event { - // Constant governing macOS specific behavior. See https://github.com/nsf/termbox-go/issues/132 - // This is an arbitrary delay which hopefully will be enough time for any lagging - // partial escape sequences to come through. - const esc_wait_delay = 100 * time.Millisecond - - var event Event - var esc_wait_timer *time.Timer - var esc_timeout <-chan time.Time - - // try to extract event from input buffer, return on success - event.Type = EventKey - status := extract_event(inbuf, &event, true) - if event.N != 0 { - copy(inbuf, inbuf[event.N:]) - inbuf = inbuf[:len(inbuf)-event.N] - } - if status == event_extracted { - return event - } else if status == esc_wait { - esc_wait_timer = time.NewTimer(esc_wait_delay) - esc_timeout = esc_wait_timer.C - } - - for { - select { - case ev := <-input_comm: - if esc_wait_timer != nil { - if !esc_wait_timer.Stop() { - <-esc_wait_timer.C - } - esc_wait_timer = nil - } - - if ev.err != nil { - return Event{Type: EventError, Err: ev.err} - } - - inbuf = append(inbuf, ev.data...) - input_comm <- ev - status := extract_event(inbuf, &event, true) - if event.N != 0 { - copy(inbuf, inbuf[event.N:]) - inbuf = inbuf[:len(inbuf)-event.N] - } - if status == event_extracted { - return event - } else if status == esc_wait { - esc_wait_timer = time.NewTimer(esc_wait_delay) - esc_timeout = esc_wait_timer.C - } - case <-esc_timeout: - esc_wait_timer = nil - - status := extract_event(inbuf, &event, false) - if event.N != 0 { - copy(inbuf, inbuf[event.N:]) - inbuf = inbuf[:len(inbuf)-event.N] - } - if status == event_extracted { - return event - } - case <-interrupt_comm: - event.Type = EventInterrupt - return event - - case <-sigwinch: - event.Type = EventResize - event.Width, event.Height = get_term_size(out.Fd()) - return event - } - } -} - -// Returns the size of the internal back buffer (which is mostly the same as -// terminal's window size in characters). But it doesn't always match the size -// of the terminal window, after the terminal size has changed, the internal -// back buffer will get in sync only after Clear or Flush function calls. -func Size() (width int, height int) { - return termw, termh -} - -// Clears the internal back buffer. -func Clear(fg, bg Attribute) error { - foreground, background = fg, bg - err := update_size_maybe() - back_buffer.clear() - return err -} - -// Sets termbox input mode. Termbox has two input modes: -// -// 1. Esc input mode. When ESC sequence is in the buffer and it doesn't match -// any known sequence. ESC means KeyEsc. This is the default input mode. -// -// 2. Alt input mode. When ESC sequence is in the buffer and it doesn't match -// any known sequence. ESC enables ModAlt modifier for the next keyboard event. -// -// Both input modes can be OR'ed with Mouse mode. Setting Mouse mode bit up will -// enable mouse button press/release and drag events. -// -// If 'mode' is InputCurrent, returns the current input mode. See also Input* -// constants. -func SetInputMode(mode InputMode) InputMode { - if mode == InputCurrent { - return input_mode - } - if mode&(InputEsc|InputAlt) == 0 { - mode |= InputEsc - } - if mode&(InputEsc|InputAlt) == InputEsc|InputAlt { - mode &^= InputAlt - } - if mode&InputMouse != 0 { - out.WriteString(funcs[t_enter_mouse]) - } else { - out.WriteString(funcs[t_exit_mouse]) - } - - input_mode = mode - return input_mode -} - -// Sets the termbox output mode. Termbox has four output options: -// -// 1. OutputNormal => [1..8] -// This mode provides 8 different colors: -// black, red, green, yellow, blue, magenta, cyan, white -// Shortcut: ColorBlack, ColorRed, ... -// Attributes: AttrBold, AttrUnderline, AttrReverse -// -// Example usage: -// SetCell(x, y, '@', ColorBlack | AttrBold, ColorRed); -// -// 2. Output256 => [1..256] -// In this mode you can leverage the 256 terminal mode: -// 0x01 - 0x08: the 8 colors as in OutputNormal -// 0x09 - 0x10: Color* | AttrBold -// 0x11 - 0xe8: 216 different colors -// 0xe9 - 0x1ff: 24 different shades of grey -// -// Example usage: -// SetCell(x, y, '@', 184, 240); -// SetCell(x, y, '@', 0xb8, 0xf0); -// -// 3. Output216 => [1..216] -// This mode supports the 3rd range of the 256 mode only. -// But you don't need to provide an offset. -// -// 4. OutputGrayscale => [1..26] -// This mode supports the 4th range of the 256 mode -// and black and white colors from 3th range of the 256 mode -// But you don't need to provide an offset. -// -// In all modes, 0x00 represents the default color. -// -// `go run _demos/output.go` to see its impact on your terminal. -// -// If 'mode' is OutputCurrent, it returns the current output mode. -// -// Note that this may return a different OutputMode than the one requested, -// as the requested mode may not be available on the target platform. -func SetOutputMode(mode OutputMode) OutputMode { - if mode == OutputCurrent { - return output_mode - } - - output_mode = mode - return output_mode -} - -// Sync comes handy when something causes desync between termbox's understanding -// of a terminal buffer and the reality. Such as a third party process. Sync -// forces a complete resync between the termbox and a terminal, it may not be -// visually pretty though. -func Sync() error { - front_buffer.clear() - err := send_clear() - if err != nil { - return err - } - - return Flush() -} diff --git a/vendor/github.com/nsf/termbox-go/api_common.go b/vendor/github.com/nsf/termbox-go/api_common.go deleted file mode 100644 index 5ca1371..0000000 --- a/vendor/github.com/nsf/termbox-go/api_common.go +++ /dev/null @@ -1,187 +0,0 @@ -// termbox is a library for creating cross-platform text-based interfaces -package termbox - -// public API, common OS agnostic part - -type ( - InputMode int - OutputMode int - EventType uint8 - Modifier uint8 - Key uint16 - Attribute uint16 -) - -// This type represents a termbox event. The 'Mod', 'Key' and 'Ch' fields are -// valid if 'Type' is EventKey. The 'Width' and 'Height' fields are valid if -// 'Type' is EventResize. The 'Err' field is valid if 'Type' is EventError. -type Event struct { - Type EventType // one of Event* constants - Mod Modifier // one of Mod* constants or 0 - Key Key // one of Key* constants, invalid if 'Ch' is not 0 - Ch rune // a unicode character - Width int // width of the screen - Height int // height of the screen - Err error // error in case if input failed - MouseX int // x coord of mouse - MouseY int // y coord of mouse - N int // number of bytes written when getting a raw event -} - -// A cell, single conceptual entity on the screen. The screen is basically a 2d -// array of cells. 'Ch' is a unicode character, 'Fg' and 'Bg' are foreground -// and background attributes respectively. -type Cell struct { - Ch rune - Fg Attribute - Bg Attribute -} - -// To know if termbox has been initialized or not -var ( - IsInit bool = false -) - -// Key constants, see Event.Key field. -const ( - KeyF1 Key = 0xFFFF - iota - KeyF2 - KeyF3 - KeyF4 - KeyF5 - KeyF6 - KeyF7 - KeyF8 - KeyF9 - KeyF10 - KeyF11 - KeyF12 - KeyInsert - KeyDelete - KeyHome - KeyEnd - KeyPgup - KeyPgdn - KeyArrowUp - KeyArrowDown - KeyArrowLeft - KeyArrowRight - key_min // see terminfo - MouseLeft - MouseMiddle - MouseRight - MouseRelease - MouseWheelUp - MouseWheelDown -) - -const ( - KeyCtrlTilde Key = 0x00 - KeyCtrl2 Key = 0x00 - KeyCtrlSpace Key = 0x00 - KeyCtrlA Key = 0x01 - KeyCtrlB Key = 0x02 - KeyCtrlC Key = 0x03 - KeyCtrlD Key = 0x04 - KeyCtrlE Key = 0x05 - KeyCtrlF Key = 0x06 - KeyCtrlG Key = 0x07 - KeyBackspace Key = 0x08 - KeyCtrlH Key = 0x08 - KeyTab Key = 0x09 - KeyCtrlI Key = 0x09 - KeyCtrlJ Key = 0x0A - KeyCtrlK Key = 0x0B - KeyCtrlL Key = 0x0C - KeyEnter Key = 0x0D - KeyCtrlM Key = 0x0D - KeyCtrlN Key = 0x0E - KeyCtrlO Key = 0x0F - KeyCtrlP Key = 0x10 - KeyCtrlQ Key = 0x11 - KeyCtrlR Key = 0x12 - KeyCtrlS Key = 0x13 - KeyCtrlT Key = 0x14 - KeyCtrlU Key = 0x15 - KeyCtrlV Key = 0x16 - KeyCtrlW Key = 0x17 - KeyCtrlX Key = 0x18 - KeyCtrlY Key = 0x19 - KeyCtrlZ Key = 0x1A - KeyEsc Key = 0x1B - KeyCtrlLsqBracket Key = 0x1B - KeyCtrl3 Key = 0x1B - KeyCtrl4 Key = 0x1C - KeyCtrlBackslash Key = 0x1C - KeyCtrl5 Key = 0x1D - KeyCtrlRsqBracket Key = 0x1D - KeyCtrl6 Key = 0x1E - KeyCtrl7 Key = 0x1F - KeyCtrlSlash Key = 0x1F - KeyCtrlUnderscore Key = 0x1F - KeySpace Key = 0x20 - KeyBackspace2 Key = 0x7F - KeyCtrl8 Key = 0x7F -) - -// Alt modifier constant, see Event.Mod field and SetInputMode function. -const ( - ModAlt Modifier = 1 << iota - ModMotion -) - -// Cell colors, you can combine a color with multiple attributes using bitwise -// OR ('|'). -const ( - ColorDefault Attribute = iota - ColorBlack - ColorRed - ColorGreen - ColorYellow - ColorBlue - ColorMagenta - ColorCyan - ColorWhite -) - -// Cell attributes, it is possible to use multiple attributes by combining them -// using bitwise OR ('|'). Although, colors cannot be combined. But you can -// combine attributes and a single color. -// -// It's worth mentioning that some platforms don't support certain attributes. -// For example windows console doesn't support AttrUnderline. And on some -// terminals applying AttrBold to background may result in blinking text. Use -// them with caution and test your code on various terminals. -const ( - AttrBold Attribute = 1 << (iota + 9) - AttrUnderline - AttrReverse -) - -// Input mode. See SetInputMode function. -const ( - InputEsc InputMode = 1 << iota - InputAlt - InputMouse - InputCurrent InputMode = 0 -) - -// Output mode. See SetOutputMode function. -const ( - OutputCurrent OutputMode = iota - OutputNormal - Output256 - Output216 - OutputGrayscale -) - -// Event type. See Event.Type field. -const ( - EventKey EventType = iota - EventResize - EventMouse - EventError - EventInterrupt - EventRaw - EventNone -) diff --git a/vendor/github.com/nsf/termbox-go/api_windows.go b/vendor/github.com/nsf/termbox-go/api_windows.go deleted file mode 100644 index 7def30a..0000000 --- a/vendor/github.com/nsf/termbox-go/api_windows.go +++ /dev/null @@ -1,239 +0,0 @@ -package termbox - -import ( - "syscall" -) - -// public API - -// Initializes termbox library. This function should be called before any other functions. -// After successful initialization, the library must be finalized using 'Close' function. -// -// Example usage: -// err := termbox.Init() -// if err != nil { -// panic(err) -// } -// defer termbox.Close() -func Init() error { - var err error - - interrupt, err = create_event() - if err != nil { - return err - } - - in, err = syscall.Open("CONIN$", syscall.O_RDWR, 0) - if err != nil { - return err - } - out, err = syscall.Open("CONOUT$", syscall.O_RDWR, 0) - if err != nil { - return err - } - - err = get_console_mode(in, &orig_mode) - if err != nil { - return err - } - - err = set_console_mode(in, enable_window_input) - if err != nil { - return err - } - - orig_size = get_term_size(out) - win_size := get_win_size(out) - - err = set_console_screen_buffer_size(out, win_size) - if err != nil { - return err - } - - err = get_console_cursor_info(out, &orig_cursor_info) - if err != nil { - return err - } - - show_cursor(false) - term_size = get_term_size(out) - back_buffer.init(int(term_size.x), int(term_size.y)) - front_buffer.init(int(term_size.x), int(term_size.y)) - back_buffer.clear() - front_buffer.clear() - clear() - - diffbuf = make([]diff_msg, 0, 32) - - go input_event_producer() - IsInit = true - return nil -} - -// Finalizes termbox library, should be called after successful initialization -// when termbox's functionality isn't required anymore. -func Close() { - // we ignore errors here, because we can't really do anything about them - Clear(0, 0) - Flush() - - // stop event producer - cancel_comm <- true - set_event(interrupt) - select { - case <-input_comm: - default: - } - <-cancel_done_comm - - set_console_cursor_info(out, &orig_cursor_info) - set_console_cursor_position(out, coord{}) - set_console_screen_buffer_size(out, orig_size) - set_console_mode(in, orig_mode) - syscall.Close(in) - syscall.Close(out) - syscall.Close(interrupt) - IsInit = false -} - -// Interrupt an in-progress call to PollEvent by causing it to return -// EventInterrupt. Note that this function will block until the PollEvent -// function has successfully been interrupted. -func Interrupt() { - interrupt_comm <- struct{}{} -} - -// Synchronizes the internal back buffer with the terminal. -func Flush() error { - update_size_maybe() - prepare_diff_messages() - for _, diff := range diffbuf { - r := small_rect{ - left: 0, - top: diff.pos, - right: term_size.x - 1, - bottom: diff.pos + diff.lines - 1, - } - write_console_output(out, diff.chars, r) - } - if !is_cursor_hidden(cursor_x, cursor_y) { - move_cursor(cursor_x, cursor_y) - } - return nil -} - -// Sets the position of the cursor. See also HideCursor(). -func SetCursor(x, y int) { - if is_cursor_hidden(cursor_x, cursor_y) && !is_cursor_hidden(x, y) { - show_cursor(true) - } - - if !is_cursor_hidden(cursor_x, cursor_y) && is_cursor_hidden(x, y) { - show_cursor(false) - } - - cursor_x, cursor_y = x, y - if !is_cursor_hidden(cursor_x, cursor_y) { - move_cursor(cursor_x, cursor_y) - } -} - -// The shortcut for SetCursor(-1, -1). -func HideCursor() { - SetCursor(cursor_hidden, cursor_hidden) -} - -// Changes cell's parameters in the internal back buffer at the specified -// position. -func SetCell(x, y int, ch rune, fg, bg Attribute) { - if x < 0 || x >= back_buffer.width { - return - } - if y < 0 || y >= back_buffer.height { - return - } - - back_buffer.cells[y*back_buffer.width+x] = Cell{ch, fg, bg} -} - -// Returns a slice into the termbox's back buffer. You can get its dimensions -// using 'Size' function. The slice remains valid as long as no 'Clear' or -// 'Flush' function calls were made after call to this function. -func CellBuffer() []Cell { - return back_buffer.cells -} - -// Wait for an event and return it. This is a blocking function call. -func PollEvent() Event { - select { - case ev := <-input_comm: - return ev - case <-interrupt_comm: - return Event{Type: EventInterrupt} - } -} - -// Returns the size of the internal back buffer (which is mostly the same as -// console's window size in characters). But it doesn't always match the size -// of the console window, after the console size has changed, the internal back -// buffer will get in sync only after Clear or Flush function calls. -func Size() (int, int) { - return int(term_size.x), int(term_size.y) -} - -// Clears the internal back buffer. -func Clear(fg, bg Attribute) error { - foreground, background = fg, bg - update_size_maybe() - back_buffer.clear() - return nil -} - -// Sets termbox input mode. Termbox has two input modes: -// -// 1. Esc input mode. When ESC sequence is in the buffer and it doesn't match -// any known sequence. ESC means KeyEsc. This is the default input mode. -// -// 2. Alt input mode. When ESC sequence is in the buffer and it doesn't match -// any known sequence. ESC enables ModAlt modifier for the next keyboard event. -// -// Both input modes can be OR'ed with Mouse mode. Setting Mouse mode bit up will -// enable mouse button press/release and drag events. -// -// If 'mode' is InputCurrent, returns the current input mode. See also Input* -// constants. -func SetInputMode(mode InputMode) InputMode { - if mode == InputCurrent { - return input_mode - } - if mode&InputMouse != 0 { - err := set_console_mode(in, enable_window_input|enable_mouse_input|enable_extended_flags) - if err != nil { - panic(err) - } - } else { - err := set_console_mode(in, enable_window_input) - if err != nil { - panic(err) - } - } - - input_mode = mode - return input_mode -} - -// Sets the termbox output mode. -// -// Windows console does not support extra colour modes, -// so this will always set and return OutputNormal. -func SetOutputMode(mode OutputMode) OutputMode { - return OutputNormal -} - -// Sync comes handy when something causes desync between termbox's understanding -// of a terminal buffer and the reality. Such as a third party process. Sync -// forces a complete resync between the termbox and a terminal, it may not be -// visually pretty though. At the moment on Windows it does nothing. -func Sync() error { - return nil -} diff --git a/vendor/github.com/nsf/termbox-go/collect_terminfo.py b/vendor/github.com/nsf/termbox-go/collect_terminfo.py deleted file mode 100644 index 5e50975..0000000 --- a/vendor/github.com/nsf/termbox-go/collect_terminfo.py +++ /dev/null @@ -1,110 +0,0 @@ -#!/usr/bin/env python - -import sys, os, subprocess - -def escaped(s): - return repr(s)[1:-1] - -def tput(term, name): - try: - return subprocess.check_output(['tput', '-T%s' % term, name]).decode() - except subprocess.CalledProcessError as e: - return e.output.decode() - - -def w(s): - if s == None: - return - sys.stdout.write(s) - -terminals = { - 'xterm' : 'xterm', - 'rxvt-256color' : 'rxvt_256color', - 'rxvt-unicode' : 'rxvt_unicode', - 'linux' : 'linux', - 'Eterm' : 'eterm', - 'screen' : 'screen' -} - -keys = [ - "F1", "kf1", - "F2", "kf2", - "F3", "kf3", - "F4", "kf4", - "F5", "kf5", - "F6", "kf6", - "F7", "kf7", - "F8", "kf8", - "F9", "kf9", - "F10", "kf10", - "F11", "kf11", - "F12", "kf12", - "INSERT", "kich1", - "DELETE", "kdch1", - "HOME", "khome", - "END", "kend", - "PGUP", "kpp", - "PGDN", "knp", - "KEY_UP", "kcuu1", - "KEY_DOWN", "kcud1", - "KEY_LEFT", "kcub1", - "KEY_RIGHT", "kcuf1" -] - -funcs = [ - "T_ENTER_CA", "smcup", - "T_EXIT_CA", "rmcup", - "T_SHOW_CURSOR", "cnorm", - "T_HIDE_CURSOR", "civis", - "T_CLEAR_SCREEN", "clear", - "T_SGR0", "sgr0", - "T_UNDERLINE", "smul", - "T_BOLD", "bold", - "T_BLINK", "blink", - "T_REVERSE", "rev", - "T_ENTER_KEYPAD", "smkx", - "T_EXIT_KEYPAD", "rmkx" -] - -def iter_pairs(iterable): - iterable = iter(iterable) - while True: - yield (next(iterable), next(iterable)) - -def do_term(term, nick): - w("// %s\n" % term) - w("var %s_keys = []string{\n\t" % nick) - for k, v in iter_pairs(keys): - w('"') - w(escaped(tput(term, v))) - w('",') - w("\n}\n") - w("var %s_funcs = []string{\n\t" % nick) - for k,v in iter_pairs(funcs): - w('"') - if v == "sgr": - w("\\033[3%d;4%dm") - elif v == "cup": - w("\\033[%d;%dH") - else: - w(escaped(tput(term, v))) - w('", ') - w("\n}\n\n") - -def do_terms(d): - w("var terms = []struct {\n") - w("\tname string\n") - w("\tkeys []string\n") - w("\tfuncs []string\n") - w("}{\n") - for k, v in d.items(): - w('\t{"%s", %s_keys, %s_funcs},\n' % (k, v, v)) - w("}\n\n") - -w("// +build !windows\n\npackage termbox\n\n") - -for k,v in terminals.items(): - do_term(k, v) - -do_terms(terminals) - diff --git a/vendor/github.com/nsf/termbox-go/escwait.go b/vendor/github.com/nsf/termbox-go/escwait.go deleted file mode 100644 index b7bbb89..0000000 --- a/vendor/github.com/nsf/termbox-go/escwait.go +++ /dev/null @@ -1,11 +0,0 @@ -// +build !darwin - -package termbox - -// On all systems other than macOS, disable behavior which will wait before -// deciding that the escape key was pressed, to account for partially send -// escape sequences, especially with regard to lengthy mouse sequences. -// See https://github.com/nsf/termbox-go/issues/132 -func enable_wait_for_escape_sequence() bool { - return false -} diff --git a/vendor/github.com/nsf/termbox-go/escwait_darwin.go b/vendor/github.com/nsf/termbox-go/escwait_darwin.go deleted file mode 100644 index dde69b6..0000000 --- a/vendor/github.com/nsf/termbox-go/escwait_darwin.go +++ /dev/null @@ -1,9 +0,0 @@ -package termbox - -// On macOS, enable behavior which will wait before deciding that the escape -// key was pressed, to account for partially send escape sequences, especially -// with regard to lengthy mouse sequences. -// See https://github.com/nsf/termbox-go/issues/132 -func enable_wait_for_escape_sequence() bool { - return true -} diff --git a/vendor/github.com/nsf/termbox-go/syscalls.go b/vendor/github.com/nsf/termbox-go/syscalls.go deleted file mode 100644 index 4f52bb9..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls.go +++ /dev/null @@ -1,39 +0,0 @@ -// +build ignore - -package termbox - -/* -#include -#include -*/ -import "C" - -type syscall_Termios C.struct_termios - -const ( - syscall_IGNBRK = C.IGNBRK - syscall_BRKINT = C.BRKINT - syscall_PARMRK = C.PARMRK - syscall_ISTRIP = C.ISTRIP - syscall_INLCR = C.INLCR - syscall_IGNCR = C.IGNCR - syscall_ICRNL = C.ICRNL - syscall_IXON = C.IXON - syscall_OPOST = C.OPOST - syscall_ECHO = C.ECHO - syscall_ECHONL = C.ECHONL - syscall_ICANON = C.ICANON - syscall_ISIG = C.ISIG - syscall_IEXTEN = C.IEXTEN - syscall_CSIZE = C.CSIZE - syscall_PARENB = C.PARENB - syscall_CS8 = C.CS8 - syscall_VMIN = C.VMIN - syscall_VTIME = C.VTIME - - // on darwin change these to (on *bsd too?): - // C.TIOCGETA - // C.TIOCSETA - syscall_TCGETS = C.TCGETS - syscall_TCSETS = C.TCSETS -) diff --git a/vendor/github.com/nsf/termbox-go/syscalls_darwin.go b/vendor/github.com/nsf/termbox-go/syscalls_darwin.go deleted file mode 100644 index 25b78f7..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls_darwin.go +++ /dev/null @@ -1,41 +0,0 @@ -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs syscalls.go - -// +build !amd64 - -package termbox - -type syscall_Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -const ( - syscall_IGNBRK = 0x1 - syscall_BRKINT = 0x2 - syscall_PARMRK = 0x8 - syscall_ISTRIP = 0x20 - syscall_INLCR = 0x40 - syscall_IGNCR = 0x80 - syscall_ICRNL = 0x100 - syscall_IXON = 0x200 - syscall_OPOST = 0x1 - syscall_ECHO = 0x8 - syscall_ECHONL = 0x10 - syscall_ICANON = 0x100 - syscall_ISIG = 0x80 - syscall_IEXTEN = 0x400 - syscall_CSIZE = 0x300 - syscall_PARENB = 0x1000 - syscall_CS8 = 0x300 - syscall_VMIN = 0x10 - syscall_VTIME = 0x11 - - syscall_TCGETS = 0x402c7413 - syscall_TCSETS = 0x802c7414 -) diff --git a/vendor/github.com/nsf/termbox-go/syscalls_darwin_amd64.go b/vendor/github.com/nsf/termbox-go/syscalls_darwin_amd64.go deleted file mode 100644 index 11f25be..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls_darwin_amd64.go +++ /dev/null @@ -1,40 +0,0 @@ -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs syscalls.go - -package termbox - -type syscall_Termios struct { - Iflag uint64 - Oflag uint64 - Cflag uint64 - Lflag uint64 - Cc [20]uint8 - Pad_cgo_0 [4]byte - Ispeed uint64 - Ospeed uint64 -} - -const ( - syscall_IGNBRK = 0x1 - syscall_BRKINT = 0x2 - syscall_PARMRK = 0x8 - syscall_ISTRIP = 0x20 - syscall_INLCR = 0x40 - syscall_IGNCR = 0x80 - syscall_ICRNL = 0x100 - syscall_IXON = 0x200 - syscall_OPOST = 0x1 - syscall_ECHO = 0x8 - syscall_ECHONL = 0x10 - syscall_ICANON = 0x100 - syscall_ISIG = 0x80 - syscall_IEXTEN = 0x400 - syscall_CSIZE = 0x300 - syscall_PARENB = 0x1000 - syscall_CS8 = 0x300 - syscall_VMIN = 0x10 - syscall_VTIME = 0x11 - - syscall_TCGETS = 0x40487413 - syscall_TCSETS = 0x80487414 -) diff --git a/vendor/github.com/nsf/termbox-go/syscalls_dragonfly.go b/vendor/github.com/nsf/termbox-go/syscalls_dragonfly.go deleted file mode 100644 index e03624e..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls_dragonfly.go +++ /dev/null @@ -1,39 +0,0 @@ -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs syscalls.go - -package termbox - -type syscall_Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -const ( - syscall_IGNBRK = 0x1 - syscall_BRKINT = 0x2 - syscall_PARMRK = 0x8 - syscall_ISTRIP = 0x20 - syscall_INLCR = 0x40 - syscall_IGNCR = 0x80 - syscall_ICRNL = 0x100 - syscall_IXON = 0x200 - syscall_OPOST = 0x1 - syscall_ECHO = 0x8 - syscall_ECHONL = 0x10 - syscall_ICANON = 0x100 - syscall_ISIG = 0x80 - syscall_IEXTEN = 0x400 - syscall_CSIZE = 0x300 - syscall_PARENB = 0x1000 - syscall_CS8 = 0x300 - syscall_VMIN = 0x10 - syscall_VTIME = 0x11 - - syscall_TCGETS = 0x402c7413 - syscall_TCSETS = 0x802c7414 -) diff --git a/vendor/github.com/nsf/termbox-go/syscalls_freebsd.go b/vendor/github.com/nsf/termbox-go/syscalls_freebsd.go deleted file mode 100644 index e03624e..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls_freebsd.go +++ /dev/null @@ -1,39 +0,0 @@ -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs syscalls.go - -package termbox - -type syscall_Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -const ( - syscall_IGNBRK = 0x1 - syscall_BRKINT = 0x2 - syscall_PARMRK = 0x8 - syscall_ISTRIP = 0x20 - syscall_INLCR = 0x40 - syscall_IGNCR = 0x80 - syscall_ICRNL = 0x100 - syscall_IXON = 0x200 - syscall_OPOST = 0x1 - syscall_ECHO = 0x8 - syscall_ECHONL = 0x10 - syscall_ICANON = 0x100 - syscall_ISIG = 0x80 - syscall_IEXTEN = 0x400 - syscall_CSIZE = 0x300 - syscall_PARENB = 0x1000 - syscall_CS8 = 0x300 - syscall_VMIN = 0x10 - syscall_VTIME = 0x11 - - syscall_TCGETS = 0x402c7413 - syscall_TCSETS = 0x802c7414 -) diff --git a/vendor/github.com/nsf/termbox-go/syscalls_linux.go b/vendor/github.com/nsf/termbox-go/syscalls_linux.go deleted file mode 100644 index b88960d..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls_linux.go +++ /dev/null @@ -1,33 +0,0 @@ -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs syscalls.go - -package termbox - -import "syscall" - -type syscall_Termios syscall.Termios - -const ( - syscall_IGNBRK = syscall.IGNBRK - syscall_BRKINT = syscall.BRKINT - syscall_PARMRK = syscall.PARMRK - syscall_ISTRIP = syscall.ISTRIP - syscall_INLCR = syscall.INLCR - syscall_IGNCR = syscall.IGNCR - syscall_ICRNL = syscall.ICRNL - syscall_IXON = syscall.IXON - syscall_OPOST = syscall.OPOST - syscall_ECHO = syscall.ECHO - syscall_ECHONL = syscall.ECHONL - syscall_ICANON = syscall.ICANON - syscall_ISIG = syscall.ISIG - syscall_IEXTEN = syscall.IEXTEN - syscall_CSIZE = syscall.CSIZE - syscall_PARENB = syscall.PARENB - syscall_CS8 = syscall.CS8 - syscall_VMIN = syscall.VMIN - syscall_VTIME = syscall.VTIME - - syscall_TCGETS = syscall.TCGETS - syscall_TCSETS = syscall.TCSETS -) diff --git a/vendor/github.com/nsf/termbox-go/syscalls_netbsd.go b/vendor/github.com/nsf/termbox-go/syscalls_netbsd.go deleted file mode 100644 index 49a3355..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls_netbsd.go +++ /dev/null @@ -1,39 +0,0 @@ -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs syscalls.go - -package termbox - -type syscall_Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed int32 - Ospeed int32 -} - -const ( - syscall_IGNBRK = 0x1 - syscall_BRKINT = 0x2 - syscall_PARMRK = 0x8 - syscall_ISTRIP = 0x20 - syscall_INLCR = 0x40 - syscall_IGNCR = 0x80 - syscall_ICRNL = 0x100 - syscall_IXON = 0x200 - syscall_OPOST = 0x1 - syscall_ECHO = 0x8 - syscall_ECHONL = 0x10 - syscall_ICANON = 0x100 - syscall_ISIG = 0x80 - syscall_IEXTEN = 0x400 - syscall_CSIZE = 0x300 - syscall_PARENB = 0x1000 - syscall_CS8 = 0x300 - syscall_VMIN = 0x10 - syscall_VTIME = 0x11 - - syscall_TCGETS = 0x402c7413 - syscall_TCSETS = 0x802c7414 -) diff --git a/vendor/github.com/nsf/termbox-go/syscalls_openbsd.go b/vendor/github.com/nsf/termbox-go/syscalls_openbsd.go deleted file mode 100644 index 49a3355..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls_openbsd.go +++ /dev/null @@ -1,39 +0,0 @@ -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs syscalls.go - -package termbox - -type syscall_Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed int32 - Ospeed int32 -} - -const ( - syscall_IGNBRK = 0x1 - syscall_BRKINT = 0x2 - syscall_PARMRK = 0x8 - syscall_ISTRIP = 0x20 - syscall_INLCR = 0x40 - syscall_IGNCR = 0x80 - syscall_ICRNL = 0x100 - syscall_IXON = 0x200 - syscall_OPOST = 0x1 - syscall_ECHO = 0x8 - syscall_ECHONL = 0x10 - syscall_ICANON = 0x100 - syscall_ISIG = 0x80 - syscall_IEXTEN = 0x400 - syscall_CSIZE = 0x300 - syscall_PARENB = 0x1000 - syscall_CS8 = 0x300 - syscall_VMIN = 0x10 - syscall_VTIME = 0x11 - - syscall_TCGETS = 0x402c7413 - syscall_TCSETS = 0x802c7414 -) diff --git a/vendor/github.com/nsf/termbox-go/syscalls_windows.go b/vendor/github.com/nsf/termbox-go/syscalls_windows.go deleted file mode 100644 index 472d002..0000000 --- a/vendor/github.com/nsf/termbox-go/syscalls_windows.go +++ /dev/null @@ -1,61 +0,0 @@ -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -DUNICODE syscalls.go - -package termbox - -const ( - foreground_blue = 0x1 - foreground_green = 0x2 - foreground_red = 0x4 - foreground_intensity = 0x8 - background_blue = 0x10 - background_green = 0x20 - background_red = 0x40 - background_intensity = 0x80 - std_input_handle = -0xa - std_output_handle = -0xb - key_event = 0x1 - mouse_event = 0x2 - window_buffer_size_event = 0x4 - enable_window_input = 0x8 - enable_mouse_input = 0x10 - enable_extended_flags = 0x80 - - vk_f1 = 0x70 - vk_f2 = 0x71 - vk_f3 = 0x72 - vk_f4 = 0x73 - vk_f5 = 0x74 - vk_f6 = 0x75 - vk_f7 = 0x76 - vk_f8 = 0x77 - vk_f9 = 0x78 - vk_f10 = 0x79 - vk_f11 = 0x7a - vk_f12 = 0x7b - vk_insert = 0x2d - vk_delete = 0x2e - vk_home = 0x24 - vk_end = 0x23 - vk_pgup = 0x21 - vk_pgdn = 0x22 - vk_arrow_up = 0x26 - vk_arrow_down = 0x28 - vk_arrow_left = 0x25 - vk_arrow_right = 0x27 - vk_backspace = 0x8 - vk_tab = 0x9 - vk_enter = 0xd - vk_esc = 0x1b - vk_space = 0x20 - - left_alt_pressed = 0x2 - left_ctrl_pressed = 0x8 - right_alt_pressed = 0x1 - right_ctrl_pressed = 0x4 - shift_pressed = 0x10 - - generic_read = 0x80000000 - generic_write = 0x40000000 - console_textmode_buffer = 0x1 -) diff --git a/vendor/github.com/nsf/termbox-go/termbox.go b/vendor/github.com/nsf/termbox-go/termbox.go deleted file mode 100644 index fbe4c3d..0000000 --- a/vendor/github.com/nsf/termbox-go/termbox.go +++ /dev/null @@ -1,529 +0,0 @@ -// +build !windows - -package termbox - -import "unicode/utf8" -import "bytes" -import "syscall" -import "unsafe" -import "strings" -import "strconv" -import "os" -import "io" - -// private API - -const ( - t_enter_ca = iota - t_exit_ca - t_show_cursor - t_hide_cursor - t_clear_screen - t_sgr0 - t_underline - t_bold - t_blink - t_reverse - t_enter_keypad - t_exit_keypad - t_enter_mouse - t_exit_mouse - t_max_funcs -) - -const ( - coord_invalid = -2 - attr_invalid = Attribute(0xFFFF) -) - -type input_event struct { - data []byte - err error -} - -type extract_event_res int - -const ( - event_not_extracted extract_event_res = iota - event_extracted - esc_wait -) - -var ( - // term specific sequences - keys []string - funcs []string - - // termbox inner state - orig_tios syscall_Termios - back_buffer cellbuf - front_buffer cellbuf - termw int - termh int - input_mode = InputEsc - output_mode = OutputNormal - out *os.File - in int - lastfg = attr_invalid - lastbg = attr_invalid - lastx = coord_invalid - lasty = coord_invalid - cursor_x = cursor_hidden - cursor_y = cursor_hidden - foreground = ColorDefault - background = ColorDefault - inbuf = make([]byte, 0, 64) - outbuf bytes.Buffer - sigwinch = make(chan os.Signal, 1) - sigio = make(chan os.Signal, 1) - quit = make(chan int) - input_comm = make(chan input_event) - interrupt_comm = make(chan struct{}) - intbuf = make([]byte, 0, 16) - - // grayscale indexes - grayscale = []Attribute{ - 0, 17, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, - 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 232, - } -) - -func write_cursor(x, y int) { - outbuf.WriteString("\033[") - outbuf.Write(strconv.AppendUint(intbuf, uint64(y+1), 10)) - outbuf.WriteString(";") - outbuf.Write(strconv.AppendUint(intbuf, uint64(x+1), 10)) - outbuf.WriteString("H") -} - -func write_sgr_fg(a Attribute) { - switch output_mode { - case Output256, Output216, OutputGrayscale: - outbuf.WriteString("\033[38;5;") - outbuf.Write(strconv.AppendUint(intbuf, uint64(a-1), 10)) - outbuf.WriteString("m") - default: - outbuf.WriteString("\033[3") - outbuf.Write(strconv.AppendUint(intbuf, uint64(a-1), 10)) - outbuf.WriteString("m") - } -} - -func write_sgr_bg(a Attribute) { - switch output_mode { - case Output256, Output216, OutputGrayscale: - outbuf.WriteString("\033[48;5;") - outbuf.Write(strconv.AppendUint(intbuf, uint64(a-1), 10)) - outbuf.WriteString("m") - default: - outbuf.WriteString("\033[4") - outbuf.Write(strconv.AppendUint(intbuf, uint64(a-1), 10)) - outbuf.WriteString("m") - } -} - -func write_sgr(fg, bg Attribute) { - switch output_mode { - case Output256, Output216, OutputGrayscale: - outbuf.WriteString("\033[38;5;") - outbuf.Write(strconv.AppendUint(intbuf, uint64(fg-1), 10)) - outbuf.WriteString("m") - outbuf.WriteString("\033[48;5;") - outbuf.Write(strconv.AppendUint(intbuf, uint64(bg-1), 10)) - outbuf.WriteString("m") - default: - outbuf.WriteString("\033[3") - outbuf.Write(strconv.AppendUint(intbuf, uint64(fg-1), 10)) - outbuf.WriteString(";4") - outbuf.Write(strconv.AppendUint(intbuf, uint64(bg-1), 10)) - outbuf.WriteString("m") - } -} - -type winsize struct { - rows uint16 - cols uint16 - xpixels uint16 - ypixels uint16 -} - -func get_term_size(fd uintptr) (int, int) { - var sz winsize - _, _, _ = syscall.Syscall(syscall.SYS_IOCTL, - fd, uintptr(syscall.TIOCGWINSZ), uintptr(unsafe.Pointer(&sz))) - return int(sz.cols), int(sz.rows) -} - -func send_attr(fg, bg Attribute) { - if fg == lastfg && bg == lastbg { - return - } - - outbuf.WriteString(funcs[t_sgr0]) - - var fgcol, bgcol Attribute - - switch output_mode { - case Output256: - fgcol = fg & 0x1FF - bgcol = bg & 0x1FF - case Output216: - fgcol = fg & 0xFF - bgcol = bg & 0xFF - if fgcol > 216 { - fgcol = ColorDefault - } - if bgcol > 216 { - bgcol = ColorDefault - } - if fgcol != ColorDefault { - fgcol += 0x10 - } - if bgcol != ColorDefault { - bgcol += 0x10 - } - case OutputGrayscale: - fgcol = fg & 0x1F - bgcol = bg & 0x1F - if fgcol > 26 { - fgcol = ColorDefault - } - if bgcol > 26 { - bgcol = ColorDefault - } - if fgcol != ColorDefault { - fgcol = grayscale[fgcol] - } - if bgcol != ColorDefault { - bgcol = grayscale[bgcol] - } - default: - fgcol = fg & 0x0F - bgcol = bg & 0x0F - } - - if fgcol != ColorDefault { - if bgcol != ColorDefault { - write_sgr(fgcol, bgcol) - } else { - write_sgr_fg(fgcol) - } - } else if bgcol != ColorDefault { - write_sgr_bg(bgcol) - } - - if fg&AttrBold != 0 { - outbuf.WriteString(funcs[t_bold]) - } - if bg&AttrBold != 0 { - outbuf.WriteString(funcs[t_blink]) - } - if fg&AttrUnderline != 0 { - outbuf.WriteString(funcs[t_underline]) - } - if fg&AttrReverse|bg&AttrReverse != 0 { - outbuf.WriteString(funcs[t_reverse]) - } - - lastfg, lastbg = fg, bg -} - -func send_char(x, y int, ch rune) { - var buf [8]byte - n := utf8.EncodeRune(buf[:], ch) - if x-1 != lastx || y != lasty { - write_cursor(x, y) - } - lastx, lasty = x, y - outbuf.Write(buf[:n]) -} - -func flush() error { - _, err := io.Copy(out, &outbuf) - outbuf.Reset() - return err -} - -func send_clear() error { - send_attr(foreground, background) - outbuf.WriteString(funcs[t_clear_screen]) - if !is_cursor_hidden(cursor_x, cursor_y) { - write_cursor(cursor_x, cursor_y) - } - - // we need to invalidate cursor position too and these two vars are - // used only for simple cursor positioning optimization, cursor - // actually may be in the correct place, but we simply discard - // optimization once and it gives us simple solution for the case when - // cursor moved - lastx = coord_invalid - lasty = coord_invalid - - return flush() -} - -func update_size_maybe() error { - w, h := get_term_size(out.Fd()) - if w != termw || h != termh { - termw, termh = w, h - back_buffer.resize(termw, termh) - front_buffer.resize(termw, termh) - front_buffer.clear() - return send_clear() - } - return nil -} - -func tcsetattr(fd uintptr, termios *syscall_Termios) error { - r, _, e := syscall.Syscall(syscall.SYS_IOCTL, - fd, uintptr(syscall_TCSETS), uintptr(unsafe.Pointer(termios))) - if r != 0 { - return os.NewSyscallError("SYS_IOCTL", e) - } - return nil -} - -func tcgetattr(fd uintptr, termios *syscall_Termios) error { - r, _, e := syscall.Syscall(syscall.SYS_IOCTL, - fd, uintptr(syscall_TCGETS), uintptr(unsafe.Pointer(termios))) - if r != 0 { - return os.NewSyscallError("SYS_IOCTL", e) - } - return nil -} - -func parse_mouse_event(event *Event, buf string) (int, bool) { - if strings.HasPrefix(buf, "\033[M") && len(buf) >= 6 { - // X10 mouse encoding, the simplest one - // \033 [ M Cb Cx Cy - b := buf[3] - 32 - switch b & 3 { - case 0: - if b&64 != 0 { - event.Key = MouseWheelUp - } else { - event.Key = MouseLeft - } - case 1: - if b&64 != 0 { - event.Key = MouseWheelDown - } else { - event.Key = MouseMiddle - } - case 2: - event.Key = MouseRight - case 3: - event.Key = MouseRelease - default: - return 6, false - } - event.Type = EventMouse // KeyEvent by default - if b&32 != 0 { - event.Mod |= ModMotion - } - - // the coord is 1,1 for upper left - event.MouseX = int(buf[4]) - 1 - 32 - event.MouseY = int(buf[5]) - 1 - 32 - return 6, true - } else if strings.HasPrefix(buf, "\033[<") || strings.HasPrefix(buf, "\033[") { - // xterm 1006 extended mode or urxvt 1015 extended mode - // xterm: \033 [ < Cb ; Cx ; Cy (M or m) - // urxvt: \033 [ Cb ; Cx ; Cy M - - // find the first M or m, that's where we stop - mi := strings.IndexAny(buf, "Mm") - if mi == -1 { - return 0, false - } - - // whether it's a capital M or not - isM := buf[mi] == 'M' - - // whether it's urxvt or not - isU := false - - // buf[2] is safe here, because having M or m found means we have at - // least 3 bytes in a string - if buf[2] == '<' { - buf = buf[3:mi] - } else { - isU = true - buf = buf[2:mi] - } - - s1 := strings.Index(buf, ";") - s2 := strings.LastIndex(buf, ";") - // not found or only one ';' - if s1 == -1 || s2 == -1 || s1 == s2 { - return 0, false - } - - n1, err := strconv.ParseInt(buf[0:s1], 10, 64) - if err != nil { - return 0, false - } - n2, err := strconv.ParseInt(buf[s1+1:s2], 10, 64) - if err != nil { - return 0, false - } - n3, err := strconv.ParseInt(buf[s2+1:], 10, 64) - if err != nil { - return 0, false - } - - // on urxvt, first number is encoded exactly as in X10, but we need to - // make it zero-based, on xterm it is zero-based already - if isU { - n1 -= 32 - } - switch n1 & 3 { - case 0: - if n1&64 != 0 { - event.Key = MouseWheelUp - } else { - event.Key = MouseLeft - } - case 1: - if n1&64 != 0 { - event.Key = MouseWheelDown - } else { - event.Key = MouseMiddle - } - case 2: - event.Key = MouseRight - case 3: - event.Key = MouseRelease - default: - return mi + 1, false - } - if !isM { - // on xterm mouse release is signaled by lowercase m - event.Key = MouseRelease - } - - event.Type = EventMouse // KeyEvent by default - if n1&32 != 0 { - event.Mod |= ModMotion - } - - event.MouseX = int(n2) - 1 - event.MouseY = int(n3) - 1 - return mi + 1, true - } - - return 0, false -} - -func parse_escape_sequence(event *Event, buf []byte) (int, bool) { - bufstr := string(buf) - for i, key := range keys { - if strings.HasPrefix(bufstr, key) { - event.Ch = 0 - event.Key = Key(0xFFFF - i) - return len(key), true - } - } - - // if none of the keys match, let's try mouse sequences - return parse_mouse_event(event, bufstr) -} - -func extract_raw_event(data []byte, event *Event) bool { - if len(inbuf) == 0 { - return false - } - - n := len(data) - if n == 0 { - return false - } - - n = copy(data, inbuf) - copy(inbuf, inbuf[n:]) - inbuf = inbuf[:len(inbuf)-n] - - event.N = n - event.Type = EventRaw - return true -} - -func extract_event(inbuf []byte, event *Event, allow_esc_wait bool) extract_event_res { - if len(inbuf) == 0 { - event.N = 0 - return event_not_extracted - } - - if inbuf[0] == '\033' { - // possible escape sequence - if n, ok := parse_escape_sequence(event, inbuf); n != 0 { - event.N = n - if ok { - return event_extracted - } else { - return event_not_extracted - } - } - - // possible partially read escape sequence; trigger a wait if appropriate - if enable_wait_for_escape_sequence() && allow_esc_wait { - event.N = 0 - return esc_wait - } - - // it's not escape sequence, then it's Alt or Esc, check input_mode - switch { - case input_mode&InputEsc != 0: - // if we're in escape mode, fill Esc event, pop buffer, return success - event.Ch = 0 - event.Key = KeyEsc - event.Mod = 0 - event.N = 1 - return event_extracted - case input_mode&InputAlt != 0: - // if we're in alt mode, set Alt modifier to event and redo parsing - event.Mod = ModAlt - status := extract_event(inbuf[1:], event, false) - if status == event_extracted { - event.N++ - } else { - event.N = 0 - } - return status - default: - panic("unreachable") - } - } - - // if we're here, this is not an escape sequence and not an alt sequence - // so, it's a FUNCTIONAL KEY or a UNICODE character - - // first of all check if it's a functional key - if Key(inbuf[0]) <= KeySpace || Key(inbuf[0]) == KeyBackspace2 { - // fill event, pop buffer, return success - event.Ch = 0 - event.Key = Key(inbuf[0]) - event.N = 1 - return event_extracted - } - - // the only possible option is utf8 rune - if r, n := utf8.DecodeRune(inbuf); r != utf8.RuneError { - event.Ch = r - event.Key = 0 - event.N = n - return event_extracted - } - - return event_not_extracted -} - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r, _, e := syscall.Syscall(syscall.SYS_FCNTL, uintptr(fd), uintptr(cmd), - uintptr(arg)) - val = int(r) - if e != 0 { - err = e - } - return -} diff --git a/vendor/github.com/nsf/termbox-go/termbox_common.go b/vendor/github.com/nsf/termbox-go/termbox_common.go deleted file mode 100644 index c3355cc..0000000 --- a/vendor/github.com/nsf/termbox-go/termbox_common.go +++ /dev/null @@ -1,59 +0,0 @@ -package termbox - -// private API, common OS agnostic part - -type cellbuf struct { - width int - height int - cells []Cell -} - -func (this *cellbuf) init(width, height int) { - this.width = width - this.height = height - this.cells = make([]Cell, width*height) -} - -func (this *cellbuf) resize(width, height int) { - if this.width == width && this.height == height { - return - } - - oldw := this.width - oldh := this.height - oldcells := this.cells - - this.init(width, height) - this.clear() - - minw, minh := oldw, oldh - - if width < minw { - minw = width - } - if height < minh { - minh = height - } - - for i := 0; i < minh; i++ { - srco, dsto := i*oldw, i*width - src := oldcells[srco : srco+minw] - dst := this.cells[dsto : dsto+minw] - copy(dst, src) - } -} - -func (this *cellbuf) clear() { - for i := range this.cells { - c := &this.cells[i] - c.Ch = ' ' - c.Fg = foreground - c.Bg = background - } -} - -const cursor_hidden = -1 - -func is_cursor_hidden(x, y int) bool { - return x == cursor_hidden || y == cursor_hidden -} diff --git a/vendor/github.com/nsf/termbox-go/termbox_windows.go b/vendor/github.com/nsf/termbox-go/termbox_windows.go deleted file mode 100644 index 738847c..0000000 --- a/vendor/github.com/nsf/termbox-go/termbox_windows.go +++ /dev/null @@ -1,889 +0,0 @@ -package termbox - -import "syscall" -import "unsafe" -import "unicode/utf16" -import "github.com/mattn/go-runewidth" - -type ( - wchar uint16 - short int16 - dword uint32 - word uint16 - char_info struct { - char wchar - attr word - } - coord struct { - x short - y short - } - small_rect struct { - left short - top short - right short - bottom short - } - console_screen_buffer_info struct { - size coord - cursor_position coord - attributes word - window small_rect - maximum_window_size coord - } - console_cursor_info struct { - size dword - visible int32 - } - input_record struct { - event_type word - _ [2]byte - event [16]byte - } - key_event_record struct { - key_down int32 - repeat_count word - virtual_key_code word - virtual_scan_code word - unicode_char wchar - control_key_state dword - } - window_buffer_size_record struct { - size coord - } - mouse_event_record struct { - mouse_pos coord - button_state dword - control_key_state dword - event_flags dword - } -) - -const ( - mouse_lmb = 0x1 - mouse_rmb = 0x2 - mouse_mmb = 0x4 | 0x8 | 0x10 - SM_CXMIN = 28 - SM_CYMIN = 29 -) - -func (this coord) uintptr() uintptr { - return uintptr(*(*int32)(unsafe.Pointer(&this))) -} - -var kernel32 = syscall.NewLazyDLL("kernel32.dll") -var moduser32 = syscall.NewLazyDLL("user32.dll") -var is_cjk = runewidth.IsEastAsian() - -var ( - proc_set_console_active_screen_buffer = kernel32.NewProc("SetConsoleActiveScreenBuffer") - proc_set_console_screen_buffer_size = kernel32.NewProc("SetConsoleScreenBufferSize") - proc_create_console_screen_buffer = kernel32.NewProc("CreateConsoleScreenBuffer") - proc_get_console_screen_buffer_info = kernel32.NewProc("GetConsoleScreenBufferInfo") - proc_write_console_output = kernel32.NewProc("WriteConsoleOutputW") - proc_write_console_output_character = kernel32.NewProc("WriteConsoleOutputCharacterW") - proc_write_console_output_attribute = kernel32.NewProc("WriteConsoleOutputAttribute") - proc_set_console_cursor_info = kernel32.NewProc("SetConsoleCursorInfo") - proc_set_console_cursor_position = kernel32.NewProc("SetConsoleCursorPosition") - proc_get_console_cursor_info = kernel32.NewProc("GetConsoleCursorInfo") - proc_read_console_input = kernel32.NewProc("ReadConsoleInputW") - proc_get_console_mode = kernel32.NewProc("GetConsoleMode") - proc_set_console_mode = kernel32.NewProc("SetConsoleMode") - proc_fill_console_output_character = kernel32.NewProc("FillConsoleOutputCharacterW") - proc_fill_console_output_attribute = kernel32.NewProc("FillConsoleOutputAttribute") - proc_create_event = kernel32.NewProc("CreateEventW") - proc_wait_for_multiple_objects = kernel32.NewProc("WaitForMultipleObjects") - proc_set_event = kernel32.NewProc("SetEvent") - get_system_metrics = moduser32.NewProc("GetSystemMetrics") -) - -func set_console_active_screen_buffer(h syscall.Handle) (err error) { - r0, _, e1 := syscall.Syscall(proc_set_console_active_screen_buffer.Addr(), - 1, uintptr(h), 0, 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func set_console_screen_buffer_size(h syscall.Handle, size coord) (err error) { - r0, _, e1 := syscall.Syscall(proc_set_console_screen_buffer_size.Addr(), - 2, uintptr(h), size.uintptr(), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func create_console_screen_buffer() (h syscall.Handle, err error) { - r0, _, e1 := syscall.Syscall6(proc_create_console_screen_buffer.Addr(), - 5, uintptr(generic_read|generic_write), 0, 0, console_textmode_buffer, 0, 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return syscall.Handle(r0), err -} - -func get_console_screen_buffer_info(h syscall.Handle, info *console_screen_buffer_info) (err error) { - r0, _, e1 := syscall.Syscall(proc_get_console_screen_buffer_info.Addr(), - 2, uintptr(h), uintptr(unsafe.Pointer(info)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func write_console_output(h syscall.Handle, chars []char_info, dst small_rect) (err error) { - tmp_coord = coord{dst.right - dst.left + 1, dst.bottom - dst.top + 1} - tmp_rect = dst - r0, _, e1 := syscall.Syscall6(proc_write_console_output.Addr(), - 5, uintptr(h), uintptr(unsafe.Pointer(&chars[0])), tmp_coord.uintptr(), - tmp_coord0.uintptr(), uintptr(unsafe.Pointer(&tmp_rect)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func write_console_output_character(h syscall.Handle, chars []wchar, pos coord) (err error) { - r0, _, e1 := syscall.Syscall6(proc_write_console_output_character.Addr(), - 5, uintptr(h), uintptr(unsafe.Pointer(&chars[0])), uintptr(len(chars)), - pos.uintptr(), uintptr(unsafe.Pointer(&tmp_arg)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func write_console_output_attribute(h syscall.Handle, attrs []word, pos coord) (err error) { - r0, _, e1 := syscall.Syscall6(proc_write_console_output_attribute.Addr(), - 5, uintptr(h), uintptr(unsafe.Pointer(&attrs[0])), uintptr(len(attrs)), - pos.uintptr(), uintptr(unsafe.Pointer(&tmp_arg)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func set_console_cursor_info(h syscall.Handle, info *console_cursor_info) (err error) { - r0, _, e1 := syscall.Syscall(proc_set_console_cursor_info.Addr(), - 2, uintptr(h), uintptr(unsafe.Pointer(info)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func get_console_cursor_info(h syscall.Handle, info *console_cursor_info) (err error) { - r0, _, e1 := syscall.Syscall(proc_get_console_cursor_info.Addr(), - 2, uintptr(h), uintptr(unsafe.Pointer(info)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func set_console_cursor_position(h syscall.Handle, pos coord) (err error) { - r0, _, e1 := syscall.Syscall(proc_set_console_cursor_position.Addr(), - 2, uintptr(h), pos.uintptr(), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func read_console_input(h syscall.Handle, record *input_record) (err error) { - r0, _, e1 := syscall.Syscall6(proc_read_console_input.Addr(), - 4, uintptr(h), uintptr(unsafe.Pointer(record)), 1, uintptr(unsafe.Pointer(&tmp_arg)), 0, 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func get_console_mode(h syscall.Handle, mode *dword) (err error) { - r0, _, e1 := syscall.Syscall(proc_get_console_mode.Addr(), - 2, uintptr(h), uintptr(unsafe.Pointer(mode)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func set_console_mode(h syscall.Handle, mode dword) (err error) { - r0, _, e1 := syscall.Syscall(proc_set_console_mode.Addr(), - 2, uintptr(h), uintptr(mode), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func fill_console_output_character(h syscall.Handle, char wchar, n int) (err error) { - r0, _, e1 := syscall.Syscall6(proc_fill_console_output_character.Addr(), - 5, uintptr(h), uintptr(char), uintptr(n), tmp_coord.uintptr(), - uintptr(unsafe.Pointer(&tmp_arg)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func fill_console_output_attribute(h syscall.Handle, attr word, n int) (err error) { - r0, _, e1 := syscall.Syscall6(proc_fill_console_output_attribute.Addr(), - 5, uintptr(h), uintptr(attr), uintptr(n), tmp_coord.uintptr(), - uintptr(unsafe.Pointer(&tmp_arg)), 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func create_event() (out syscall.Handle, err error) { - r0, _, e1 := syscall.Syscall6(proc_create_event.Addr(), - 4, 0, 0, 0, 0, 0, 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return syscall.Handle(r0), err -} - -func wait_for_multiple_objects(objects []syscall.Handle) (err error) { - r0, _, e1 := syscall.Syscall6(proc_wait_for_multiple_objects.Addr(), - 4, uintptr(len(objects)), uintptr(unsafe.Pointer(&objects[0])), - 0, 0xFFFFFFFF, 0, 0) - if uint32(r0) == 0xFFFFFFFF { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func set_event(ev syscall.Handle) (err error) { - r0, _, e1 := syscall.Syscall(proc_set_event.Addr(), - 1, uintptr(ev), 0, 0) - if int(r0) == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -type diff_msg struct { - pos short - lines short - chars []char_info -} - -type input_event struct { - event Event - err error -} - -var ( - orig_cursor_info console_cursor_info - orig_size coord - orig_mode dword - orig_screen syscall.Handle - back_buffer cellbuf - front_buffer cellbuf - term_size coord - input_mode = InputEsc - cursor_x = cursor_hidden - cursor_y = cursor_hidden - foreground = ColorDefault - background = ColorDefault - in syscall.Handle - out syscall.Handle - interrupt syscall.Handle - charbuf []char_info - diffbuf []diff_msg - beg_x = -1 - beg_y = -1 - beg_i = -1 - input_comm = make(chan Event) - interrupt_comm = make(chan struct{}) - cancel_comm = make(chan bool, 1) - cancel_done_comm = make(chan bool) - alt_mode_esc = false - - // these ones just to prevent heap allocs at all costs - tmp_info console_screen_buffer_info - tmp_arg dword - tmp_coord0 = coord{0, 0} - tmp_coord = coord{0, 0} - tmp_rect = small_rect{0, 0, 0, 0} -) - -func get_cursor_position(out syscall.Handle) coord { - err := get_console_screen_buffer_info(out, &tmp_info) - if err != nil { - panic(err) - } - return tmp_info.cursor_position -} - -func get_term_size(out syscall.Handle) coord { - err := get_console_screen_buffer_info(out, &tmp_info) - if err != nil { - panic(err) - } - return tmp_info.size -} - -func get_win_min_size(out syscall.Handle) coord { - x, _, err := get_system_metrics.Call(SM_CXMIN) - y, _, err := get_system_metrics.Call(SM_CYMIN) - - if x == 0 || y == 0 { - if err != nil { - panic(err) - } - } - - return coord{ - x: short(x), - y: short(y), - } -} - -func get_win_size(out syscall.Handle) coord { - err := get_console_screen_buffer_info(out, &tmp_info) - if err != nil { - panic(err) - } - - min_size := get_win_min_size(out) - - size := coord{ - x: tmp_info.window.right - tmp_info.window.left + 1, - y: tmp_info.window.bottom - tmp_info.window.top + 1, - } - - if size.x < min_size.x { - size.x = min_size.x - } - - if size.y < min_size.y { - size.y = min_size.y - } - - return size -} - -func update_size_maybe() { - size := get_term_size(out) - if size.x != term_size.x || size.y != term_size.y { - term_size = size - back_buffer.resize(int(size.x), int(size.y)) - front_buffer.resize(int(size.x), int(size.y)) - front_buffer.clear() - clear() - - area := int(size.x) * int(size.y) - if cap(charbuf) < area { - charbuf = make([]char_info, 0, area) - } - } -} - -var color_table_bg = []word{ - 0, // default (black) - 0, // black - background_red, - background_green, - background_red | background_green, // yellow - background_blue, - background_red | background_blue, // magenta - background_green | background_blue, // cyan - background_red | background_blue | background_green, // white -} - -var color_table_fg = []word{ - foreground_red | foreground_blue | foreground_green, // default (white) - 0, - foreground_red, - foreground_green, - foreground_red | foreground_green, // yellow - foreground_blue, - foreground_red | foreground_blue, // magenta - foreground_green | foreground_blue, // cyan - foreground_red | foreground_blue | foreground_green, // white -} - -const ( - replacement_char = '\uFFFD' - max_rune = '\U0010FFFF' - surr1 = 0xd800 - surr2 = 0xdc00 - surr3 = 0xe000 - surr_self = 0x10000 -) - -func append_diff_line(y int) int { - n := 0 - for x := 0; x < front_buffer.width; { - cell_offset := y*front_buffer.width + x - back := &back_buffer.cells[cell_offset] - front := &front_buffer.cells[cell_offset] - attr, char := cell_to_char_info(*back) - charbuf = append(charbuf, char_info{attr: attr, char: char[0]}) - *front = *back - n++ - w := runewidth.RuneWidth(back.Ch) - if w == 0 || w == 2 && runewidth.IsAmbiguousWidth(back.Ch) { - w = 1 - } - x += w - // If not CJK, fill trailing space with whitespace - if !is_cjk && w == 2 { - charbuf = append(charbuf, char_info{attr: attr, char: ' '}) - } - } - return n -} - -// compares 'back_buffer' with 'front_buffer' and prepares all changes in the form of -// 'diff_msg's in the 'diff_buf' -func prepare_diff_messages() { - // clear buffers - diffbuf = diffbuf[:0] - charbuf = charbuf[:0] - - var diff diff_msg - gbeg := 0 - for y := 0; y < front_buffer.height; y++ { - same := true - line_offset := y * front_buffer.width - for x := 0; x < front_buffer.width; x++ { - cell_offset := line_offset + x - back := &back_buffer.cells[cell_offset] - front := &front_buffer.cells[cell_offset] - if *back != *front { - same = false - break - } - } - if same && diff.lines > 0 { - diffbuf = append(diffbuf, diff) - diff = diff_msg{} - } - if !same { - beg := len(charbuf) - end := beg + append_diff_line(y) - if diff.lines == 0 { - diff.pos = short(y) - gbeg = beg - } - diff.lines++ - diff.chars = charbuf[gbeg:end] - } - } - if diff.lines > 0 { - diffbuf = append(diffbuf, diff) - diff = diff_msg{} - } -} - -func get_ct(table []word, idx int) word { - idx = idx & 0x0F - if idx >= len(table) { - idx = len(table) - 1 - } - return table[idx] -} - -func cell_to_char_info(c Cell) (attr word, wc [2]wchar) { - attr = get_ct(color_table_fg, int(c.Fg)) | get_ct(color_table_bg, int(c.Bg)) - if c.Fg&AttrReverse|c.Bg&AttrReverse != 0 { - attr = (attr&0xF0)>>4 | (attr&0x0F)<<4 - } - if c.Fg&AttrBold != 0 { - attr |= foreground_intensity - } - if c.Bg&AttrBold != 0 { - attr |= background_intensity - } - - r0, r1 := utf16.EncodeRune(c.Ch) - if r0 == 0xFFFD { - wc[0] = wchar(c.Ch) - wc[1] = ' ' - } else { - wc[0] = wchar(r0) - wc[1] = wchar(r1) - } - return -} - -func move_cursor(x, y int) { - err := set_console_cursor_position(out, coord{short(x), short(y)}) - if err != nil { - panic(err) - } -} - -func show_cursor(visible bool) { - var v int32 - if visible { - v = 1 - } - - var info console_cursor_info - info.size = 100 - info.visible = v - err := set_console_cursor_info(out, &info) - if err != nil { - panic(err) - } -} - -func clear() { - var err error - attr, char := cell_to_char_info(Cell{ - ' ', - foreground, - background, - }) - - area := int(term_size.x) * int(term_size.y) - err = fill_console_output_attribute(out, attr, area) - if err != nil { - panic(err) - } - err = fill_console_output_character(out, char[0], area) - if err != nil { - panic(err) - } - if !is_cursor_hidden(cursor_x, cursor_y) { - move_cursor(cursor_x, cursor_y) - } -} - -func key_event_record_to_event(r *key_event_record) (Event, bool) { - if r.key_down == 0 { - return Event{}, false - } - - e := Event{Type: EventKey} - if input_mode&InputAlt != 0 { - if alt_mode_esc { - e.Mod = ModAlt - alt_mode_esc = false - } - if r.control_key_state&(left_alt_pressed|right_alt_pressed) != 0 { - e.Mod = ModAlt - } - } - - ctrlpressed := r.control_key_state&(left_ctrl_pressed|right_ctrl_pressed) != 0 - - if r.virtual_key_code >= vk_f1 && r.virtual_key_code <= vk_f12 { - switch r.virtual_key_code { - case vk_f1: - e.Key = KeyF1 - case vk_f2: - e.Key = KeyF2 - case vk_f3: - e.Key = KeyF3 - case vk_f4: - e.Key = KeyF4 - case vk_f5: - e.Key = KeyF5 - case vk_f6: - e.Key = KeyF6 - case vk_f7: - e.Key = KeyF7 - case vk_f8: - e.Key = KeyF8 - case vk_f9: - e.Key = KeyF9 - case vk_f10: - e.Key = KeyF10 - case vk_f11: - e.Key = KeyF11 - case vk_f12: - e.Key = KeyF12 - default: - panic("unreachable") - } - - return e, true - } - - if r.virtual_key_code <= vk_delete { - switch r.virtual_key_code { - case vk_insert: - e.Key = KeyInsert - case vk_delete: - e.Key = KeyDelete - case vk_home: - e.Key = KeyHome - case vk_end: - e.Key = KeyEnd - case vk_pgup: - e.Key = KeyPgup - case vk_pgdn: - e.Key = KeyPgdn - case vk_arrow_up: - e.Key = KeyArrowUp - case vk_arrow_down: - e.Key = KeyArrowDown - case vk_arrow_left: - e.Key = KeyArrowLeft - case vk_arrow_right: - e.Key = KeyArrowRight - case vk_backspace: - if ctrlpressed { - e.Key = KeyBackspace2 - } else { - e.Key = KeyBackspace - } - case vk_tab: - e.Key = KeyTab - case vk_enter: - e.Key = KeyEnter - case vk_esc: - switch { - case input_mode&InputEsc != 0: - e.Key = KeyEsc - case input_mode&InputAlt != 0: - alt_mode_esc = true - return Event{}, false - } - case vk_space: - if ctrlpressed { - // manual return here, because KeyCtrlSpace is zero - e.Key = KeyCtrlSpace - return e, true - } else { - e.Key = KeySpace - } - } - - if e.Key != 0 { - return e, true - } - } - - if ctrlpressed { - if Key(r.unicode_char) >= KeyCtrlA && Key(r.unicode_char) <= KeyCtrlRsqBracket { - e.Key = Key(r.unicode_char) - if input_mode&InputAlt != 0 && e.Key == KeyEsc { - alt_mode_esc = true - return Event{}, false - } - return e, true - } - switch r.virtual_key_code { - case 192, 50: - // manual return here, because KeyCtrl2 is zero - e.Key = KeyCtrl2 - return e, true - case 51: - if input_mode&InputAlt != 0 { - alt_mode_esc = true - return Event{}, false - } - e.Key = KeyCtrl3 - case 52: - e.Key = KeyCtrl4 - case 53: - e.Key = KeyCtrl5 - case 54: - e.Key = KeyCtrl6 - case 189, 191, 55: - e.Key = KeyCtrl7 - case 8, 56: - e.Key = KeyCtrl8 - } - - if e.Key != 0 { - return e, true - } - } - - if r.unicode_char != 0 { - e.Ch = rune(r.unicode_char) - return e, true - } - - return Event{}, false -} - -func input_event_producer() { - var r input_record - var err error - var last_button Key - var last_button_pressed Key - var last_state = dword(0) - var last_x, last_y = -1, -1 - handles := []syscall.Handle{in, interrupt} - for { - err = wait_for_multiple_objects(handles) - if err != nil { - input_comm <- Event{Type: EventError, Err: err} - } - - select { - case <-cancel_comm: - cancel_done_comm <- true - return - default: - } - - err = read_console_input(in, &r) - if err != nil { - input_comm <- Event{Type: EventError, Err: err} - } - - switch r.event_type { - case key_event: - kr := (*key_event_record)(unsafe.Pointer(&r.event)) - ev, ok := key_event_record_to_event(kr) - if ok { - for i := 0; i < int(kr.repeat_count); i++ { - input_comm <- ev - } - } - case window_buffer_size_event: - sr := *(*window_buffer_size_record)(unsafe.Pointer(&r.event)) - input_comm <- Event{ - Type: EventResize, - Width: int(sr.size.x), - Height: int(sr.size.y), - } - case mouse_event: - mr := *(*mouse_event_record)(unsafe.Pointer(&r.event)) - ev := Event{Type: EventMouse} - switch mr.event_flags { - case 0, 2: - // single or double click - cur_state := mr.button_state - switch { - case last_state&mouse_lmb == 0 && cur_state&mouse_lmb != 0: - last_button = MouseLeft - last_button_pressed = last_button - case last_state&mouse_rmb == 0 && cur_state&mouse_rmb != 0: - last_button = MouseRight - last_button_pressed = last_button - case last_state&mouse_mmb == 0 && cur_state&mouse_mmb != 0: - last_button = MouseMiddle - last_button_pressed = last_button - case last_state&mouse_lmb != 0 && cur_state&mouse_lmb == 0: - last_button = MouseRelease - case last_state&mouse_rmb != 0 && cur_state&mouse_rmb == 0: - last_button = MouseRelease - case last_state&mouse_mmb != 0 && cur_state&mouse_mmb == 0: - last_button = MouseRelease - default: - last_state = cur_state - continue - } - last_state = cur_state - ev.Key = last_button - last_x, last_y = int(mr.mouse_pos.x), int(mr.mouse_pos.y) - ev.MouseX = last_x - ev.MouseY = last_y - case 1: - // mouse motion - x, y := int(mr.mouse_pos.x), int(mr.mouse_pos.y) - if last_state != 0 && (last_x != x || last_y != y) { - ev.Key = last_button_pressed - ev.Mod = ModMotion - ev.MouseX = x - ev.MouseY = y - last_x, last_y = x, y - } else { - ev.Type = EventNone - } - case 4: - // mouse wheel - n := int16(mr.button_state >> 16) - if n > 0 { - ev.Key = MouseWheelUp - } else { - ev.Key = MouseWheelDown - } - last_x, last_y = int(mr.mouse_pos.x), int(mr.mouse_pos.y) - ev.MouseX = last_x - ev.MouseY = last_y - default: - ev.Type = EventNone - } - if ev.Type != EventNone { - input_comm <- ev - } - } - } -} diff --git a/vendor/github.com/nsf/termbox-go/terminfo.go b/vendor/github.com/nsf/termbox-go/terminfo.go deleted file mode 100644 index 5d38fce..0000000 --- a/vendor/github.com/nsf/termbox-go/terminfo.go +++ /dev/null @@ -1,226 +0,0 @@ -// +build !windows -// This file contains a simple and incomplete implementation of the terminfo -// database. Information was taken from the ncurses manpages term(5) and -// terminfo(5). Currently, only the string capabilities for special keys and for -// functions without parameters are actually used. Colors are still done with -// ANSI escape sequences. Other special features that are not (yet?) supported -// are reading from ~/.terminfo, the TERMINFO_DIRS variable, Berkeley database -// format and extended capabilities. - -package termbox - -import ( - "bytes" - "encoding/binary" - "encoding/hex" - "errors" - "fmt" - "io/ioutil" - "os" - "strings" -) - -const ( - ti_magic = 0432 - ti_header_length = 12 - ti_mouse_enter = "\x1b[?1000h\x1b[?1002h\x1b[?1015h\x1b[?1006h" - ti_mouse_leave = "\x1b[?1006l\x1b[?1015l\x1b[?1002l\x1b[?1000l" -) - -func load_terminfo() ([]byte, error) { - var data []byte - var err error - - term := os.Getenv("TERM") - if term == "" { - return nil, fmt.Errorf("termbox: TERM not set") - } - - // The following behaviour follows the one described in terminfo(5) as - // distributed by ncurses. - - terminfo := os.Getenv("TERMINFO") - if terminfo != "" { - // if TERMINFO is set, no other directory should be searched - return ti_try_path(terminfo) - } - - // next, consider ~/.terminfo - home := os.Getenv("HOME") - if home != "" { - data, err = ti_try_path(home + "/.terminfo") - if err == nil { - return data, nil - } - } - - // next, TERMINFO_DIRS - dirs := os.Getenv("TERMINFO_DIRS") - if dirs != "" { - for _, dir := range strings.Split(dirs, ":") { - if dir == "" { - // "" -> "/usr/share/terminfo" - dir = "/usr/share/terminfo" - } - data, err = ti_try_path(dir) - if err == nil { - return data, nil - } - } - } - - // fall back to /usr/share/terminfo - return ti_try_path("/usr/share/terminfo") -} - -func ti_try_path(path string) (data []byte, err error) { - // load_terminfo already made sure it is set - term := os.Getenv("TERM") - - // first try, the typical *nix path - terminfo := path + "/" + term[0:1] + "/" + term - data, err = ioutil.ReadFile(terminfo) - if err == nil { - return - } - - // fallback to darwin specific dirs structure - terminfo = path + "/" + hex.EncodeToString([]byte(term[:1])) + "/" + term - data, err = ioutil.ReadFile(terminfo) - return -} - -func setup_term_builtin() error { - name := os.Getenv("TERM") - if name == "" { - return errors.New("termbox: TERM environment variable not set") - } - - for _, t := range terms { - if t.name == name { - keys = t.keys - funcs = t.funcs - return nil - } - } - - compat_table := []struct { - partial string - keys []string - funcs []string - }{ - {"xterm", xterm_keys, xterm_funcs}, - {"rxvt", rxvt_unicode_keys, rxvt_unicode_funcs}, - {"linux", linux_keys, linux_funcs}, - {"Eterm", eterm_keys, eterm_funcs}, - {"screen", screen_keys, screen_funcs}, - // let's assume that 'cygwin' is xterm compatible - {"cygwin", xterm_keys, xterm_funcs}, - {"st", xterm_keys, xterm_funcs}, - } - - // try compatibility variants - for _, it := range compat_table { - if strings.Contains(name, it.partial) { - keys = it.keys - funcs = it.funcs - return nil - } - } - - return errors.New("termbox: unsupported terminal") -} - -func setup_term() (err error) { - var data []byte - var header [6]int16 - var str_offset, table_offset int16 - - data, err = load_terminfo() - if err != nil { - return setup_term_builtin() - } - - rd := bytes.NewReader(data) - // 0: magic number, 1: size of names section, 2: size of boolean section, 3: - // size of numbers section (in integers), 4: size of the strings section (in - // integers), 5: size of the string table - - err = binary.Read(rd, binary.LittleEndian, header[:]) - if err != nil { - return - } - - number_sec_len := int16(2) - if header[0] == 542 { // doc says it should be octal 0542, but what I see it terminfo files is 542, learn to program please... thank you.. - number_sec_len = 4 - } - - if (header[1]+header[2])%2 != 0 { - // old quirk to align everything on word boundaries - header[2] += 1 - } - str_offset = ti_header_length + header[1] + header[2] + number_sec_len*header[3] - table_offset = str_offset + 2*header[4] - - keys = make([]string, 0xFFFF-key_min) - for i, _ := range keys { - keys[i], err = ti_read_string(rd, str_offset+2*ti_keys[i], table_offset) - if err != nil { - return - } - } - funcs = make([]string, t_max_funcs) - // the last two entries are reserved for mouse. because the table offset is - // not there, the two entries have to fill in manually - for i, _ := range funcs[:len(funcs)-2] { - funcs[i], err = ti_read_string(rd, str_offset+2*ti_funcs[i], table_offset) - if err != nil { - return - } - } - funcs[t_max_funcs-2] = ti_mouse_enter - funcs[t_max_funcs-1] = ti_mouse_leave - return nil -} - -func ti_read_string(rd *bytes.Reader, str_off, table int16) (string, error) { - var off int16 - - _, err := rd.Seek(int64(str_off), 0) - if err != nil { - return "", err - } - err = binary.Read(rd, binary.LittleEndian, &off) - if err != nil { - return "", err - } - _, err = rd.Seek(int64(table+off), 0) - if err != nil { - return "", err - } - var bs []byte - for { - b, err := rd.ReadByte() - if err != nil { - return "", err - } - if b == byte(0x00) { - break - } - bs = append(bs, b) - } - return string(bs), nil -} - -// "Maps" the function constants from termbox.go to the number of the respective -// string capability in the terminfo file. Taken from (ncurses) term.h. -var ti_funcs = []int16{ - 28, 40, 16, 13, 5, 39, 36, 27, 26, 34, 89, 88, -} - -// Same as above for the special keys. -var ti_keys = []int16{ - 66, 68 /* apparently not a typo; 67 is F10 for whatever reason */, 69, 70, - 71, 72, 73, 74, 75, 67, 216, 217, 77, 59, 76, 164, 82, 81, 87, 61, 79, 83, -} diff --git a/vendor/github.com/nsf/termbox-go/terminfo_builtin.go b/vendor/github.com/nsf/termbox-go/terminfo_builtin.go deleted file mode 100644 index a948660..0000000 --- a/vendor/github.com/nsf/termbox-go/terminfo_builtin.go +++ /dev/null @@ -1,64 +0,0 @@ -// +build !windows - -package termbox - -// Eterm -var eterm_keys = []string{ - "\x1b[11~", "\x1b[12~", "\x1b[13~", "\x1b[14~", "\x1b[15~", "\x1b[17~", "\x1b[18~", "\x1b[19~", "\x1b[20~", "\x1b[21~", "\x1b[23~", "\x1b[24~", "\x1b[2~", "\x1b[3~", "\x1b[7~", "\x1b[8~", "\x1b[5~", "\x1b[6~", "\x1b[A", "\x1b[B", "\x1b[D", "\x1b[C", -} -var eterm_funcs = []string{ - "\x1b7\x1b[?47h", "\x1b[2J\x1b[?47l\x1b8", "\x1b[?25h", "\x1b[?25l", "\x1b[H\x1b[2J", "\x1b[m\x0f", "\x1b[4m", "\x1b[1m", "\x1b[5m", "\x1b[7m", "", "", "", "", -} - -// screen -var screen_keys = []string{ - "\x1bOP", "\x1bOQ", "\x1bOR", "\x1bOS", "\x1b[15~", "\x1b[17~", "\x1b[18~", "\x1b[19~", "\x1b[20~", "\x1b[21~", "\x1b[23~", "\x1b[24~", "\x1b[2~", "\x1b[3~", "\x1b[1~", "\x1b[4~", "\x1b[5~", "\x1b[6~", "\x1bOA", "\x1bOB", "\x1bOD", "\x1bOC", -} -var screen_funcs = []string{ - "\x1b[?1049h", "\x1b[?1049l", "\x1b[34h\x1b[?25h", "\x1b[?25l", "\x1b[H\x1b[J", "\x1b[m\x0f", "\x1b[4m", "\x1b[1m", "\x1b[5m", "\x1b[7m", "\x1b[?1h\x1b=", "\x1b[?1l\x1b>", ti_mouse_enter, ti_mouse_leave, -} - -// xterm -var xterm_keys = []string{ - "\x1bOP", "\x1bOQ", "\x1bOR", "\x1bOS", "\x1b[15~", "\x1b[17~", "\x1b[18~", "\x1b[19~", "\x1b[20~", "\x1b[21~", "\x1b[23~", "\x1b[24~", "\x1b[2~", "\x1b[3~", "\x1bOH", "\x1bOF", "\x1b[5~", "\x1b[6~", "\x1bOA", "\x1bOB", "\x1bOD", "\x1bOC", -} -var xterm_funcs = []string{ - "\x1b[?1049h", "\x1b[?1049l", "\x1b[?12l\x1b[?25h", "\x1b[?25l", "\x1b[H\x1b[2J", "\x1b(B\x1b[m", "\x1b[4m", "\x1b[1m", "\x1b[5m", "\x1b[7m", "\x1b[?1h\x1b=", "\x1b[?1l\x1b>", ti_mouse_enter, ti_mouse_leave, -} - -// rxvt-unicode -var rxvt_unicode_keys = []string{ - "\x1b[11~", "\x1b[12~", "\x1b[13~", "\x1b[14~", "\x1b[15~", "\x1b[17~", "\x1b[18~", "\x1b[19~", "\x1b[20~", "\x1b[21~", "\x1b[23~", "\x1b[24~", "\x1b[2~", "\x1b[3~", "\x1b[7~", "\x1b[8~", "\x1b[5~", "\x1b[6~", "\x1b[A", "\x1b[B", "\x1b[D", "\x1b[C", -} -var rxvt_unicode_funcs = []string{ - "\x1b[?1049h", "\x1b[r\x1b[?1049l", "\x1b[?25h", "\x1b[?25l", "\x1b[H\x1b[2J", "\x1b[m\x1b(B", "\x1b[4m", "\x1b[1m", "\x1b[5m", "\x1b[7m", "\x1b=", "\x1b>", ti_mouse_enter, ti_mouse_leave, -} - -// linux -var linux_keys = []string{ - "\x1b[[A", "\x1b[[B", "\x1b[[C", "\x1b[[D", "\x1b[[E", "\x1b[17~", "\x1b[18~", "\x1b[19~", "\x1b[20~", "\x1b[21~", "\x1b[23~", "\x1b[24~", "\x1b[2~", "\x1b[3~", "\x1b[1~", "\x1b[4~", "\x1b[5~", "\x1b[6~", "\x1b[A", "\x1b[B", "\x1b[D", "\x1b[C", -} -var linux_funcs = []string{ - "", "", "\x1b[?25h\x1b[?0c", "\x1b[?25l\x1b[?1c", "\x1b[H\x1b[J", "\x1b[0;10m", "\x1b[4m", "\x1b[1m", "\x1b[5m", "\x1b[7m", "", "", "", "", -} - -// rxvt-256color -var rxvt_256color_keys = []string{ - "\x1b[11~", "\x1b[12~", "\x1b[13~", "\x1b[14~", "\x1b[15~", "\x1b[17~", "\x1b[18~", "\x1b[19~", "\x1b[20~", "\x1b[21~", "\x1b[23~", "\x1b[24~", "\x1b[2~", "\x1b[3~", "\x1b[7~", "\x1b[8~", "\x1b[5~", "\x1b[6~", "\x1b[A", "\x1b[B", "\x1b[D", "\x1b[C", -} -var rxvt_256color_funcs = []string{ - "\x1b7\x1b[?47h", "\x1b[2J\x1b[?47l\x1b8", "\x1b[?25h", "\x1b[?25l", "\x1b[H\x1b[2J", "\x1b[m\x0f", "\x1b[4m", "\x1b[1m", "\x1b[5m", "\x1b[7m", "\x1b=", "\x1b>", ti_mouse_enter, ti_mouse_leave, -} - -var terms = []struct { - name string - keys []string - funcs []string -}{ - {"Eterm", eterm_keys, eterm_funcs}, - {"screen", screen_keys, screen_funcs}, - {"xterm", xterm_keys, xterm_funcs}, - {"rxvt-unicode", rxvt_unicode_keys, rxvt_unicode_funcs}, - {"linux", linux_keys, linux_funcs}, - {"rxvt-256color", rxvt_256color_keys, rxvt_256color_funcs}, -} diff --git a/vendor/golang.org/x/image/AUTHORS b/vendor/golang.org/x/image/AUTHORS deleted file mode 100644 index 15167cd..0000000 --- a/vendor/golang.org/x/image/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/image/CONTRIBUTORS b/vendor/golang.org/x/image/CONTRIBUTORS deleted file mode 100644 index 1c4577e..0000000 --- a/vendor/golang.org/x/image/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/image/LICENSE b/vendor/golang.org/x/image/LICENSE deleted file mode 100644 index 6a66aea..0000000 --- a/vendor/golang.org/x/image/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/image/PATENTS b/vendor/golang.org/x/image/PATENTS deleted file mode 100644 index 7330990..0000000 --- a/vendor/golang.org/x/image/PATENTS +++ /dev/null @@ -1,22 +0,0 @@ -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by -Google as part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in -the future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any -entity (including a cross-claim or counterclaim in a lawsuit) alleging -that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent -infringement, or inducement of patent infringement, then any patent -rights granted to you under this License for this implementation of Go -shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/image/draw/draw.go b/vendor/golang.org/x/image/draw/draw.go deleted file mode 100644 index dfaa7fc..0000000 --- a/vendor/golang.org/x/image/draw/draw.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package draw provides image composition functions. -// -// See "The Go image/draw package" for an introduction to this package: -// http://golang.org/doc/articles/image_draw.html -// -// This package is a superset of and a drop-in replacement for the image/draw -// package in the standard library. -package draw - -// This file, and the go1_*.go files, just contains the API exported by the -// image/draw package in the standard library. Other files in this package -// provide additional features. - -import ( - "image" - "image/draw" -) - -// Draw calls DrawMask with a nil mask. -func Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point, op Op) { - draw.Draw(dst, r, src, sp, draw.Op(op)) -} - -// DrawMask aligns r.Min in dst with sp in src and mp in mask and then -// replaces the rectangle r in dst with the result of a Porter-Duff -// composition. A nil mask is treated as opaque. -func DrawMask(dst Image, r image.Rectangle, src image.Image, sp image.Point, mask image.Image, mp image.Point, op Op) { - draw.DrawMask(dst, r, src, sp, mask, mp, draw.Op(op)) -} - -// FloydSteinberg is a Drawer that is the Src Op with Floyd-Steinberg error -// diffusion. -var FloydSteinberg Drawer = floydSteinberg{} - -type floydSteinberg struct{} - -func (floydSteinberg) Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point) { - draw.FloydSteinberg.Draw(dst, r, src, sp) -} diff --git a/vendor/golang.org/x/image/draw/gen.go b/vendor/golang.org/x/image/draw/gen.go deleted file mode 100644 index 822bb6a..0000000 --- a/vendor/golang.org/x/image/draw/gen.go +++ /dev/null @@ -1,1404 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build ignore - -package main - -import ( - "bytes" - "flag" - "fmt" - "go/format" - "io/ioutil" - "log" - "os" - "strings" -) - -var debug = flag.Bool("debug", false, "") - -func main() { - flag.Parse() - - w := new(bytes.Buffer) - w.WriteString("// generated by \"go run gen.go\". DO NOT EDIT.\n\n" + - "package draw\n\nimport (\n" + - "\"image\"\n" + - "\"image/color\"\n" + - "\"math\"\n" + - "\n" + - "\"golang.org/x/image/math/f64\"\n" + - ")\n") - - gen(w, "nnInterpolator", codeNNScaleLeaf, codeNNTransformLeaf) - gen(w, "ablInterpolator", codeABLScaleLeaf, codeABLTransformLeaf) - genKernel(w) - - if *debug { - os.Stdout.Write(w.Bytes()) - return - } - out, err := format.Source(w.Bytes()) - if err != nil { - log.Fatal(err) - } - if err := ioutil.WriteFile("impl.go", out, 0660); err != nil { - log.Fatal(err) - } -} - -var ( - // dsTypes are the (dst image type, src image type) pairs to generate - // scale_DType_SType implementations for. The last element in the slice - // should be the fallback pair ("Image", "image.Image"). - // - // TODO: add *image.CMYK src type after Go 1.5 is released. - // An *image.CMYK is also alwaysOpaque. - dsTypes = []struct{ dType, sType string }{ - {"*image.RGBA", "*image.Gray"}, - {"*image.RGBA", "*image.NRGBA"}, - {"*image.RGBA", "*image.RGBA"}, - {"*image.RGBA", "*image.YCbCr"}, - {"*image.RGBA", "image.Image"}, - {"Image", "image.Image"}, - } - dTypes, sTypes []string - sTypesForDType = map[string][]string{} - subsampleRatios = []string{ - "444", - "422", - "420", - "440", - } - ops = []string{"Over", "Src"} - // alwaysOpaque are those image.Image implementations that are always - // opaque. For these types, Over is equivalent to the faster Src, in the - // absence of a source mask. - alwaysOpaque = map[string]bool{ - "*image.Gray": true, - "*image.YCbCr": true, - } -) - -func init() { - dTypesSeen := map[string]bool{} - sTypesSeen := map[string]bool{} - for _, t := range dsTypes { - if !sTypesSeen[t.sType] { - sTypesSeen[t.sType] = true - sTypes = append(sTypes, t.sType) - } - if !dTypesSeen[t.dType] { - dTypesSeen[t.dType] = true - dTypes = append(dTypes, t.dType) - } - sTypesForDType[t.dType] = append(sTypesForDType[t.dType], t.sType) - } - sTypesForDType["anyDType"] = sTypes -} - -type data struct { - dType string - sType string - sratio string - receiver string - op string -} - -func gen(w *bytes.Buffer, receiver string, codes ...string) { - expn(w, codeRoot, &data{receiver: receiver}) - for _, code := range codes { - for _, t := range dsTypes { - for _, op := range ops { - if op == "Over" && alwaysOpaque[t.sType] { - continue - } - expn(w, code, &data{ - dType: t.dType, - sType: t.sType, - receiver: receiver, - op: op, - }) - } - } - } -} - -func genKernel(w *bytes.Buffer) { - expn(w, codeKernelRoot, &data{}) - for _, sType := range sTypes { - expn(w, codeKernelScaleLeafX, &data{ - sType: sType, - }) - } - for _, dType := range dTypes { - for _, op := range ops { - expn(w, codeKernelScaleLeafY, &data{ - dType: dType, - op: op, - }) - } - } - for _, t := range dsTypes { - for _, op := range ops { - if op == "Over" && alwaysOpaque[t.sType] { - continue - } - expn(w, codeKernelTransformLeaf, &data{ - dType: t.dType, - sType: t.sType, - op: op, - }) - } - } -} - -func expn(w *bytes.Buffer, code string, d *data) { - if d.sType == "*image.YCbCr" && d.sratio == "" { - for _, sratio := range subsampleRatios { - e := *d - e.sratio = sratio - expn(w, code, &e) - } - return - } - - for _, line := range strings.Split(code, "\n") { - line = expnLine(line, d) - if line == ";" { - continue - } - fmt.Fprintln(w, line) - } -} - -func expnLine(line string, d *data) string { - for { - i := strings.IndexByte(line, '$') - if i < 0 { - break - } - prefix, s := line[:i], line[i+1:] - - i = len(s) - for j, c := range s { - if !('A' <= c && c <= 'Z' || 'a' <= c && c <= 'z') { - i = j - break - } - } - dollar, suffix := s[:i], s[i:] - - e := expnDollar(prefix, dollar, suffix, d) - if e == "" { - log.Fatalf("couldn't expand %q", line) - } - line = e - } - return line -} - -// expnDollar expands a "$foo" fragment in a line of generated code. It returns -// the empty string if there was a problem. It returns ";" if the generated -// code is a no-op. -func expnDollar(prefix, dollar, suffix string, d *data) string { - switch dollar { - case "dType": - return prefix + d.dType + suffix - case "dTypeRN": - return prefix + relName(d.dType) + suffix - case "sratio": - return prefix + d.sratio + suffix - case "sType": - return prefix + d.sType + suffix - case "sTypeRN": - return prefix + relName(d.sType) + suffix - case "receiver": - return prefix + d.receiver + suffix - case "op": - return prefix + d.op + suffix - - case "switch": - return expnSwitch("", "", true, suffix) - case "switchD": - return expnSwitch("", "", false, suffix) - case "switchS": - return expnSwitch("", "anyDType", false, suffix) - - case "preOuter": - switch d.dType { - default: - return ";" - case "Image": - s := "" - if d.sType == "image.Image" { - s = "srcMask, smp := opts.SrcMask, opts.SrcMaskP\n" - } - return s + - "dstMask, dmp := opts.DstMask, opts.DstMaskP\n" + - "dstColorRGBA64 := &color.RGBA64{}\n" + - "dstColor := color.Color(dstColorRGBA64)" - } - - case "preInner": - switch d.dType { - default: - return ";" - case "*image.RGBA": - return "d := " + pixOffset("dst", "dr.Min.X+adr.Min.X", "dr.Min.Y+int(dy)", "*4", "*dst.Stride") - } - - case "preKernelOuter": - switch d.sType { - default: - return ";" - case "image.Image": - return "srcMask, smp := opts.SrcMask, opts.SrcMaskP" - } - - case "preKernelInner": - switch d.dType { - default: - return ";" - case "*image.RGBA": - return "d := " + pixOffset("dst", "dr.Min.X+int(dx)", "dr.Min.Y+adr.Min.Y", "*4", "*dst.Stride") - } - - case "blend": - args, _ := splitArgs(suffix) - if len(args) != 4 { - return "" - } - switch d.sType { - default: - return argf(args, ""+ - "$3r = $0*$1r + $2*$3r\n"+ - "$3g = $0*$1g + $2*$3g\n"+ - "$3b = $0*$1b + $2*$3b\n"+ - "$3a = $0*$1a + $2*$3a", - ) - case "*image.Gray": - return argf(args, ""+ - "$3r = $0*$1r + $2*$3r", - ) - case "*image.YCbCr": - return argf(args, ""+ - "$3r = $0*$1r + $2*$3r\n"+ - "$3g = $0*$1g + $2*$3g\n"+ - "$3b = $0*$1b + $2*$3b", - ) - } - - case "clampToAlpha": - if alwaysOpaque[d.sType] { - return ";" - } - // Go uses alpha-premultiplied color. The naive computation can lead to - // invalid colors, e.g. red > alpha, when some weights are negative. - return ` - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - ` - - case "convFtou": - args, _ := splitArgs(suffix) - if len(args) != 2 { - return "" - } - - switch d.sType { - default: - return argf(args, ""+ - "$0r := uint32($1r)\n"+ - "$0g := uint32($1g)\n"+ - "$0b := uint32($1b)\n"+ - "$0a := uint32($1a)", - ) - case "*image.Gray": - return argf(args, ""+ - "$0r := uint32($1r)", - ) - case "*image.YCbCr": - return argf(args, ""+ - "$0r := uint32($1r)\n"+ - "$0g := uint32($1g)\n"+ - "$0b := uint32($1b)", - ) - } - - case "outputu": - args, _ := splitArgs(suffix) - if len(args) != 3 { - return "" - } - - switch d.op { - case "Over": - switch d.dType { - default: - log.Fatalf("bad dType %q", d.dType) - case "Image": - return argf(args, ""+ - "qr, qg, qb, qa := dst.At($0, $1).RGBA()\n"+ - "if dstMask != nil {\n"+ - " _, _, _, ma := dstMask.At(dmp.X + $0, dmp.Y + $1).RGBA()\n"+ - " $2r = $2r * ma / 0xffff\n"+ - " $2g = $2g * ma / 0xffff\n"+ - " $2b = $2b * ma / 0xffff\n"+ - " $2a = $2a * ma / 0xffff\n"+ - "}\n"+ - "$2a1 := 0xffff - $2a\n"+ - "dstColorRGBA64.R = uint16(qr*$2a1/0xffff + $2r)\n"+ - "dstColorRGBA64.G = uint16(qg*$2a1/0xffff + $2g)\n"+ - "dstColorRGBA64.B = uint16(qb*$2a1/0xffff + $2b)\n"+ - "dstColorRGBA64.A = uint16(qa*$2a1/0xffff + $2a)\n"+ - "dst.Set($0, $1, dstColor)", - ) - case "*image.RGBA": - return argf(args, ""+ - "$2a1 := (0xffff - $2a) * 0x101\n"+ - "dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*$2a1/0xffff + $2r) >> 8)\n"+ - "dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*$2a1/0xffff + $2g) >> 8)\n"+ - "dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*$2a1/0xffff + $2b) >> 8)\n"+ - "dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*$2a1/0xffff + $2a) >> 8)", - ) - } - - case "Src": - switch d.dType { - default: - log.Fatalf("bad dType %q", d.dType) - case "Image": - return argf(args, ""+ - "if dstMask != nil {\n"+ - " qr, qg, qb, qa := dst.At($0, $1).RGBA()\n"+ - " _, _, _, ma := dstMask.At(dmp.X + $0, dmp.Y + $1).RGBA()\n"+ - " pr = pr * ma / 0xffff\n"+ - " pg = pg * ma / 0xffff\n"+ - " pb = pb * ma / 0xffff\n"+ - " pa = pa * ma / 0xffff\n"+ - " $2a1 := 0xffff - ma\n"+ // Note that this is ma, not $2a. - " dstColorRGBA64.R = uint16(qr*$2a1/0xffff + $2r)\n"+ - " dstColorRGBA64.G = uint16(qg*$2a1/0xffff + $2g)\n"+ - " dstColorRGBA64.B = uint16(qb*$2a1/0xffff + $2b)\n"+ - " dstColorRGBA64.A = uint16(qa*$2a1/0xffff + $2a)\n"+ - " dst.Set($0, $1, dstColor)\n"+ - "} else {\n"+ - " dstColorRGBA64.R = uint16($2r)\n"+ - " dstColorRGBA64.G = uint16($2g)\n"+ - " dstColorRGBA64.B = uint16($2b)\n"+ - " dstColorRGBA64.A = uint16($2a)\n"+ - " dst.Set($0, $1, dstColor)\n"+ - "}", - ) - case "*image.RGBA": - switch d.sType { - default: - return argf(args, ""+ - "dst.Pix[d+0] = uint8($2r >> 8)\n"+ - "dst.Pix[d+1] = uint8($2g >> 8)\n"+ - "dst.Pix[d+2] = uint8($2b >> 8)\n"+ - "dst.Pix[d+3] = uint8($2a >> 8)", - ) - case "*image.Gray": - return argf(args, ""+ - "out := uint8($2r >> 8)\n"+ - "dst.Pix[d+0] = out\n"+ - "dst.Pix[d+1] = out\n"+ - "dst.Pix[d+2] = out\n"+ - "dst.Pix[d+3] = 0xff", - ) - case "*image.YCbCr": - return argf(args, ""+ - "dst.Pix[d+0] = uint8($2r >> 8)\n"+ - "dst.Pix[d+1] = uint8($2g >> 8)\n"+ - "dst.Pix[d+2] = uint8($2b >> 8)\n"+ - "dst.Pix[d+3] = 0xff", - ) - } - } - } - - case "outputf": - args, _ := splitArgs(suffix) - if len(args) != 5 { - return "" - } - ret := "" - - switch d.op { - case "Over": - switch d.dType { - default: - log.Fatalf("bad dType %q", d.dType) - case "Image": - ret = argf(args, ""+ - "qr, qg, qb, qa := dst.At($0, $1).RGBA()\n"+ - "$3r0 := uint32($2($3r * $4))\n"+ - "$3g0 := uint32($2($3g * $4))\n"+ - "$3b0 := uint32($2($3b * $4))\n"+ - "$3a0 := uint32($2($3a * $4))\n"+ - "if dstMask != nil {\n"+ - " _, _, _, ma := dstMask.At(dmp.X + $0, dmp.Y + $1).RGBA()\n"+ - " $3r0 = $3r0 * ma / 0xffff\n"+ - " $3g0 = $3g0 * ma / 0xffff\n"+ - " $3b0 = $3b0 * ma / 0xffff\n"+ - " $3a0 = $3a0 * ma / 0xffff\n"+ - "}\n"+ - "$3a1 := 0xffff - $3a0\n"+ - "dstColorRGBA64.R = uint16(qr*$3a1/0xffff + $3r0)\n"+ - "dstColorRGBA64.G = uint16(qg*$3a1/0xffff + $3g0)\n"+ - "dstColorRGBA64.B = uint16(qb*$3a1/0xffff + $3b0)\n"+ - "dstColorRGBA64.A = uint16(qa*$3a1/0xffff + $3a0)\n"+ - "dst.Set($0, $1, dstColor)", - ) - case "*image.RGBA": - ret = argf(args, ""+ - "$3r0 := uint32($2($3r * $4))\n"+ - "$3g0 := uint32($2($3g * $4))\n"+ - "$3b0 := uint32($2($3b * $4))\n"+ - "$3a0 := uint32($2($3a * $4))\n"+ - "$3a1 := (0xffff - uint32($3a0)) * 0x101\n"+ - "dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*$3a1/0xffff + $3r0) >> 8)\n"+ - "dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*$3a1/0xffff + $3g0) >> 8)\n"+ - "dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*$3a1/0xffff + $3b0) >> 8)\n"+ - "dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*$3a1/0xffff + $3a0) >> 8)", - ) - } - - case "Src": - switch d.dType { - default: - log.Fatalf("bad dType %q", d.dType) - case "Image": - ret = argf(args, ""+ - "if dstMask != nil {\n"+ - " qr, qg, qb, qa := dst.At($0, $1).RGBA()\n"+ - " _, _, _, ma := dstMask.At(dmp.X + $0, dmp.Y + $1).RGBA()\n"+ - " pr := uint32($2($3r * $4)) * ma / 0xffff\n"+ - " pg := uint32($2($3g * $4)) * ma / 0xffff\n"+ - " pb := uint32($2($3b * $4)) * ma / 0xffff\n"+ - " pa := uint32($2($3a * $4)) * ma / 0xffff\n"+ - " pa1 := 0xffff - ma\n"+ // Note that this is ma, not pa. - " dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr)\n"+ - " dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg)\n"+ - " dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb)\n"+ - " dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa)\n"+ - " dst.Set($0, $1, dstColor)\n"+ - "} else {\n"+ - " dstColorRGBA64.R = $2($3r * $4)\n"+ - " dstColorRGBA64.G = $2($3g * $4)\n"+ - " dstColorRGBA64.B = $2($3b * $4)\n"+ - " dstColorRGBA64.A = $2($3a * $4)\n"+ - " dst.Set($0, $1, dstColor)\n"+ - "}", - ) - case "*image.RGBA": - switch d.sType { - default: - ret = argf(args, ""+ - "dst.Pix[d+0] = uint8($2($3r * $4) >> 8)\n"+ - "dst.Pix[d+1] = uint8($2($3g * $4) >> 8)\n"+ - "dst.Pix[d+2] = uint8($2($3b * $4) >> 8)\n"+ - "dst.Pix[d+3] = uint8($2($3a * $4) >> 8)", - ) - case "*image.Gray": - ret = argf(args, ""+ - "out := uint8($2($3r * $4) >> 8)\n"+ - "dst.Pix[d+0] = out\n"+ - "dst.Pix[d+1] = out\n"+ - "dst.Pix[d+2] = out\n"+ - "dst.Pix[d+3] = 0xff", - ) - case "*image.YCbCr": - ret = argf(args, ""+ - "dst.Pix[d+0] = uint8($2($3r * $4) >> 8)\n"+ - "dst.Pix[d+1] = uint8($2($3g * $4) >> 8)\n"+ - "dst.Pix[d+2] = uint8($2($3b * $4) >> 8)\n"+ - "dst.Pix[d+3] = 0xff", - ) - } - } - } - - return strings.Replace(ret, " * 1)", ")", -1) - - case "srcf", "srcu": - lhs, eqOp := splitEq(prefix) - if lhs == "" { - return "" - } - args, extra := splitArgs(suffix) - if len(args) != 2 { - return "" - } - - tmp := "" - if dollar == "srcf" { - tmp = "u" - } - - // TODO: there's no need to multiply by 0x101 in the switch below if - // the next thing we're going to do is shift right by 8. - - buf := new(bytes.Buffer) - switch d.sType { - default: - log.Fatalf("bad sType %q", d.sType) - case "image.Image": - fmt.Fprintf(buf, ""+ - "%sr%s, %sg%s, %sb%s, %sa%s := src.At(%s, %s).RGBA()\n", - lhs, tmp, lhs, tmp, lhs, tmp, lhs, tmp, args[0], args[1], - ) - if d.dType == "" || d.dType == "Image" { - fmt.Fprintf(buf, ""+ - "if srcMask != nil {\n"+ - " _, _, _, ma := srcMask.At(smp.X+%s, smp.Y+%s).RGBA()\n"+ - " %sr%s = %sr%s * ma / 0xffff\n"+ - " %sg%s = %sg%s * ma / 0xffff\n"+ - " %sb%s = %sb%s * ma / 0xffff\n"+ - " %sa%s = %sa%s * ma / 0xffff\n"+ - "}\n", - args[0], args[1], - lhs, tmp, lhs, tmp, - lhs, tmp, lhs, tmp, - lhs, tmp, lhs, tmp, - lhs, tmp, lhs, tmp, - ) - } - case "*image.Gray": - fmt.Fprintf(buf, ""+ - "%si := %s\n"+ - "%sr%s := uint32(src.Pix[%si]) * 0x101\n", - lhs, pixOffset("src", args[0], args[1], "", "*src.Stride"), - lhs, tmp, lhs, - ) - case "*image.NRGBA": - fmt.Fprintf(buf, ""+ - "%si := %s\n"+ - "%sa%s := uint32(src.Pix[%si+3]) * 0x101\n"+ - "%sr%s := uint32(src.Pix[%si+0]) * %sa%s / 0xff\n"+ - "%sg%s := uint32(src.Pix[%si+1]) * %sa%s / 0xff\n"+ - "%sb%s := uint32(src.Pix[%si+2]) * %sa%s / 0xff\n", - lhs, pixOffset("src", args[0], args[1], "*4", "*src.Stride"), - lhs, tmp, lhs, - lhs, tmp, lhs, lhs, tmp, - lhs, tmp, lhs, lhs, tmp, - lhs, tmp, lhs, lhs, tmp, - ) - case "*image.RGBA": - fmt.Fprintf(buf, ""+ - "%si := %s\n"+ - "%sr%s := uint32(src.Pix[%si+0]) * 0x101\n"+ - "%sg%s := uint32(src.Pix[%si+1]) * 0x101\n"+ - "%sb%s := uint32(src.Pix[%si+2]) * 0x101\n"+ - "%sa%s := uint32(src.Pix[%si+3]) * 0x101\n", - lhs, pixOffset("src", args[0], args[1], "*4", "*src.Stride"), - lhs, tmp, lhs, - lhs, tmp, lhs, - lhs, tmp, lhs, - lhs, tmp, lhs, - ) - case "*image.YCbCr": - fmt.Fprintf(buf, ""+ - "%si := %s\n"+ - "%sj := %s\n"+ - "%s\n", - lhs, pixOffset("src", args[0], args[1], "", "*src.YStride"), - lhs, cOffset(args[0], args[1], d.sratio), - ycbcrToRGB(lhs, tmp), - ) - } - - if dollar == "srcf" { - switch d.sType { - default: - fmt.Fprintf(buf, ""+ - "%sr %s float64(%sru)%s\n"+ - "%sg %s float64(%sgu)%s\n"+ - "%sb %s float64(%sbu)%s\n"+ - "%sa %s float64(%sau)%s\n", - lhs, eqOp, lhs, extra, - lhs, eqOp, lhs, extra, - lhs, eqOp, lhs, extra, - lhs, eqOp, lhs, extra, - ) - case "*image.Gray": - fmt.Fprintf(buf, ""+ - "%sr %s float64(%sru)%s\n", - lhs, eqOp, lhs, extra, - ) - case "*image.YCbCr": - fmt.Fprintf(buf, ""+ - "%sr %s float64(%sru)%s\n"+ - "%sg %s float64(%sgu)%s\n"+ - "%sb %s float64(%sbu)%s\n", - lhs, eqOp, lhs, extra, - lhs, eqOp, lhs, extra, - lhs, eqOp, lhs, extra, - ) - } - } - - return strings.TrimSpace(buf.String()) - - case "tweakD": - if d.dType == "*image.RGBA" { - return "d += dst.Stride" - } - return ";" - - case "tweakDx": - if d.dType == "*image.RGBA" { - return strings.Replace(prefix, "dx++", "dx, d = dx+1, d+4", 1) - } - return prefix - - case "tweakDy": - if d.dType == "*image.RGBA" { - return strings.Replace(prefix, "for dy, s", "for _, s", 1) - } - return prefix - - case "tweakP": - switch d.sType { - case "*image.Gray": - if strings.HasPrefix(strings.TrimSpace(prefix), "pa * ") { - return "1," - } - return "pr," - case "*image.YCbCr": - if strings.HasPrefix(strings.TrimSpace(prefix), "pa * ") { - return "1," - } - } - return prefix - - case "tweakPr": - if d.sType == "*image.Gray" { - return "pr *= s.invTotalWeightFFFF" - } - return ";" - - case "tweakVarP": - switch d.sType { - case "*image.Gray": - return strings.Replace(prefix, "var pr, pg, pb, pa", "var pr", 1) - case "*image.YCbCr": - return strings.Replace(prefix, "var pr, pg, pb, pa", "var pr, pg, pb", 1) - } - return prefix - } - return "" -} - -func expnSwitch(op, dType string, expandBoth bool, template string) string { - if op == "" && dType != "anyDType" { - lines := []string{"switch op {"} - for _, op = range ops { - lines = append(lines, - fmt.Sprintf("case %s:", op), - expnSwitch(op, dType, expandBoth, template), - ) - } - lines = append(lines, "}") - return strings.Join(lines, "\n") - } - - switchVar := "dst" - if dType != "" { - switchVar = "src" - } - lines := []string{fmt.Sprintf("switch %s := %s.(type) {", switchVar, switchVar)} - - fallback, values := "Image", dTypes - if dType != "" { - fallback, values = "image.Image", sTypesForDType[dType] - } - for _, v := range values { - if dType != "" { - // v is the sType. Skip those always-opaque sTypes, where Over is - // equivalent to Src. - if op == "Over" && alwaysOpaque[v] { - continue - } - } - - if v == fallback { - lines = append(lines, "default:") - } else { - lines = append(lines, fmt.Sprintf("case %s:", v)) - } - - if dType != "" { - if v == "*image.YCbCr" { - lines = append(lines, expnSwitchYCbCr(op, dType, template)) - } else { - lines = append(lines, expnLine(template, &data{dType: dType, sType: v, op: op})) - } - } else if !expandBoth { - lines = append(lines, expnLine(template, &data{dType: v, op: op})) - } else { - lines = append(lines, expnSwitch(op, v, false, template)) - } - } - - lines = append(lines, "}") - return strings.Join(lines, "\n") -} - -func expnSwitchYCbCr(op, dType, template string) string { - lines := []string{ - "switch src.SubsampleRatio {", - "default:", - expnLine(template, &data{dType: dType, sType: "image.Image", op: op}), - } - for _, sratio := range subsampleRatios { - lines = append(lines, - fmt.Sprintf("case image.YCbCrSubsampleRatio%s:", sratio), - expnLine(template, &data{dType: dType, sType: "*image.YCbCr", sratio: sratio, op: op}), - ) - } - lines = append(lines, "}") - return strings.Join(lines, "\n") -} - -func argf(args []string, s string) string { - if len(args) > 9 { - panic("too many args") - } - for i, a := range args { - old := fmt.Sprintf("$%d", i) - s = strings.Replace(s, old, a, -1) - } - return s -} - -func pixOffset(m, x, y, xstride, ystride string) string { - return fmt.Sprintf("(%s-%s.Rect.Min.Y)%s + (%s-%s.Rect.Min.X)%s", y, m, ystride, x, m, xstride) -} - -func cOffset(x, y, sratio string) string { - switch sratio { - case "444": - return fmt.Sprintf("( %s - src.Rect.Min.Y )*src.CStride + ( %s - src.Rect.Min.X )", y, x) - case "422": - return fmt.Sprintf("( %s - src.Rect.Min.Y )*src.CStride + ((%s)/2 - src.Rect.Min.X/2)", y, x) - case "420": - return fmt.Sprintf("((%s)/2 - src.Rect.Min.Y/2)*src.CStride + ((%s)/2 - src.Rect.Min.X/2)", y, x) - case "440": - return fmt.Sprintf("((%s)/2 - src.Rect.Min.Y/2)*src.CStride + ( %s - src.Rect.Min.X )", y, x) - } - return fmt.Sprintf("unsupported sratio %q", sratio) -} - -func ycbcrToRGB(lhs, tmp string) string { - s := ` - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - $yy1 := int(src.Y[$i]) * 0x10101 - $cb1 := int(src.Cb[$j]) - 128 - $cr1 := int(src.Cr[$j]) - 128 - $r@ := ($yy1 + 91881*$cr1) >> 8 - $g@ := ($yy1 - 22554*$cb1 - 46802*$cr1) >> 8 - $b@ := ($yy1 + 116130*$cb1) >> 8 - if $r@ < 0 { - $r@ = 0 - } else if $r@ > 0xffff { - $r@ = 0xffff - } - if $g@ < 0 { - $g@ = 0 - } else if $g@ > 0xffff { - $g@ = 0xffff - } - if $b@ < 0 { - $b@ = 0 - } else if $b@ > 0xffff { - $b@ = 0xffff - } - ` - s = strings.Replace(s, "$", lhs, -1) - s = strings.Replace(s, "@", tmp, -1) - return s -} - -func split(s, sep string) (string, string) { - if i := strings.Index(s, sep); i >= 0 { - return strings.TrimSpace(s[:i]), strings.TrimSpace(s[i+len(sep):]) - } - return "", "" -} - -func splitEq(s string) (lhs, eqOp string) { - s = strings.TrimSpace(s) - if lhs, _ = split(s, ":="); lhs != "" { - return lhs, ":=" - } - if lhs, _ = split(s, "+="); lhs != "" { - return lhs, "+=" - } - return "", "" -} - -func splitArgs(s string) (args []string, extra string) { - s = strings.TrimSpace(s) - if s == "" || s[0] != '[' { - return nil, "" - } - s = s[1:] - - i := strings.IndexByte(s, ']') - if i < 0 { - return nil, "" - } - args, extra = strings.Split(s[:i], ","), s[i+1:] - for i := range args { - args[i] = strings.TrimSpace(args[i]) - } - return args, extra -} - -func relName(s string) string { - if i := strings.LastIndex(s, "."); i >= 0 { - return s[i+1:] - } - return s -} - -const ( - codeRoot = ` - func (z $receiver) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) { - // Try to simplify a Scale to a Copy when DstMask is not specified. - // If DstMask is not nil, Copy will call Scale back with same dr and sr, and cause stack overflow. - if dr.Size() == sr.Size() && (opts == nil || opts.DstMask == nil) { - Copy(dst, dr.Min, src, sr, op, opts) - return - } - - var o Options - if opts != nil { - o = *opts - } - - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.DstMask != nil || o.SrcMask != nil || !sr.In(src.Bounds()) { - switch op { - case Over: - z.scale_Image_Image_Over(dst, dr, adr, src, sr, &o) - case Src: - z.scale_Image_Image_Src(dst, dr, adr, src, sr, &o) - } - } else if _, ok := src.(*image.Uniform); ok { - Draw(dst, dr, src, src.Bounds().Min, op) - } else { - $switch z.scale_$dTypeRN_$sTypeRN$sratio_$op(dst, dr, adr, src, sr, &o) - } - } - - func (z $receiver) Transform(dst Image, s2d f64.Aff3, src image.Image, sr image.Rectangle, op Op, opts *Options) { - // Try to simplify a Transform to a Copy. - if s2d[0] == 1 && s2d[1] == 0 && s2d[3] == 0 && s2d[4] == 1 { - dx := int(s2d[2]) - dy := int(s2d[5]) - if float64(dx) == s2d[2] && float64(dy) == s2d[5] { - Copy(dst, image.Point{X: sr.Min.X + dx, Y: sr.Min.X + dy}, src, sr, op, opts) - return - } - } - - var o Options - if opts != nil { - o = *opts - } - - dr := transformRect(&s2d, &sr) - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - - d2s := invert(&s2d) - // bias is a translation of the mapping from dst coordinates to src - // coordinates such that the latter temporarily have non-negative X - // and Y coordinates. This allows us to write int(f) instead of - // int(math.Floor(f)), since "round to zero" and "round down" are - // equivalent when f >= 0, but the former is much cheaper. The X-- - // and Y-- are because the TransformLeaf methods have a "sx -= 0.5" - // adjustment. - bias := transformRect(&d2s, &adr).Min - bias.X-- - bias.Y-- - d2s[2] -= float64(bias.X) - d2s[5] -= float64(bias.Y) - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.DstMask != nil || o.SrcMask != nil || !sr.In(src.Bounds()) { - switch op { - case Over: - z.transform_Image_Image_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - case Src: - z.transform_Image_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - } else if u, ok := src.(*image.Uniform); ok { - transform_Uniform(dst, dr, adr, &d2s, u, sr, bias, op) - } else { - $switch z.transform_$dTypeRN_$sTypeRN$sratio_$op(dst, dr, adr, &d2s, src, sr, bias, &o) - } - } - ` - - codeNNScaleLeaf = ` - func (nnInterpolator) scale_$dTypeRN_$sTypeRN$sratio_$op(dst $dType, dr, adr image.Rectangle, src $sType, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - $preOuter - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - $preInner - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { $tweakDx - sx := (2*uint64(dx) + 1) * sw / dw2 - p := $srcu[sr.Min.X + int(sx), sr.Min.Y + int(sy)] - $outputu[dr.Min.X + int(dx), dr.Min.Y + int(dy), p] - } - } - } - ` - - codeNNTransformLeaf = ` - func (nnInterpolator) transform_$dTypeRN_$sTypeRN$sratio_$op(dst $dType, dr, adr image.Rectangle, d2s *f64.Aff3, src $sType, sr image.Rectangle, bias image.Point, opts *Options) { - $preOuter - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y + int(dy)) + 0.5 - $preInner - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { $tweakDx - dxf := float64(dr.Min.X + int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf + d2s[1]*dyf + d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf + d2s[4]*dyf + d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - p := $srcu[sx0, sy0] - $outputu[dr.Min.X + int(dx), dr.Min.Y + int(dy), p] - } - } - } - ` - - codeABLScaleLeaf = ` - func (ablInterpolator) scale_$dTypeRN_$sTypeRN$sratio_$op(dst $dType, dr, adr image.Rectangle, src $sType, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw - 1, sh - 1 - $preOuter - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - $preInner - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { $tweakDx - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00 := $srcf[sr.Min.X + int(sx0), sr.Min.Y + int(sy0)] - s10 := $srcf[sr.Min.X + int(sx1), sr.Min.Y + int(sy0)] - $blend[xFrac1, s00, xFrac0, s10] - s01 := $srcf[sr.Min.X + int(sx0), sr.Min.Y + int(sy1)] - s11 := $srcf[sr.Min.X + int(sx1), sr.Min.Y + int(sy1)] - $blend[xFrac1, s01, xFrac0, s11] - $blend[yFrac1, s10, yFrac0, s11] - $convFtou[p, s11] - $outputu[dr.Min.X + int(dx), dr.Min.Y + int(dy), p] - } - } - } - ` - - codeABLTransformLeaf = ` - func (ablInterpolator) transform_$dTypeRN_$sTypeRN$sratio_$op(dst $dType, dr, adr image.Rectangle, d2s *f64.Aff3, src $sType, sr image.Rectangle, bias image.Point, opts *Options) { - $preOuter - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y + int(dy)) + 0.5 - $preInner - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { $tweakDx - dxf := float64(dr.Min.X + int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00 := $srcf[sx0, sy0] - s10 := $srcf[sx1, sy0] - $blend[xFrac1, s00, xFrac0, s10] - s01 := $srcf[sx0, sy1] - s11 := $srcf[sx1, sy1] - $blend[xFrac1, s01, xFrac0, s11] - $blend[yFrac1, s10, yFrac0, s11] - $convFtou[p, s11] - $outputu[dr.Min.X + int(dx), dr.Min.Y + int(dy), p] - } - } - } - ` - - codeKernelRoot = ` - func (z *kernelScaler) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) { - if z.dw != int32(dr.Dx()) || z.dh != int32(dr.Dy()) || z.sw != int32(sr.Dx()) || z.sh != int32(sr.Dy()) { - z.kernel.Scale(dst, dr, src, sr, op, opts) - return - } - - var o Options - if opts != nil { - o = *opts - } - - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - - if _, ok := src.(*image.Uniform); ok && o.DstMask == nil && o.SrcMask == nil && sr.In(src.Bounds()) { - Draw(dst, dr, src, src.Bounds().Min, op) - return - } - - // Create a temporary buffer: - // scaleX distributes the source image's columns over the temporary image. - // scaleY distributes the temporary image's rows over the destination image. - var tmp [][4]float64 - if z.pool.New != nil { - tmpp := z.pool.Get().(*[][4]float64) - defer z.pool.Put(tmpp) - tmp = *tmpp - } else { - tmp = z.makeTmpBuf() - } - - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.SrcMask != nil || !sr.In(src.Bounds()) { - z.scaleX_Image(tmp, src, sr, &o) - } else { - $switchS z.scaleX_$sTypeRN$sratio(tmp, src, sr, &o) - } - - if o.DstMask != nil { - switch op { - case Over: - z.scaleY_Image_Over(dst, dr, adr, tmp, &o) - case Src: - z.scaleY_Image_Src(dst, dr, adr, tmp, &o) - } - } else { - $switchD z.scaleY_$dTypeRN_$op(dst, dr, adr, tmp, &o) - } - } - - func (q *Kernel) Transform(dst Image, s2d f64.Aff3, src image.Image, sr image.Rectangle, op Op, opts *Options) { - var o Options - if opts != nil { - o = *opts - } - - dr := transformRect(&s2d, &sr) - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - d2s := invert(&s2d) - // bias is a translation of the mapping from dst coordinates to src - // coordinates such that the latter temporarily have non-negative X - // and Y coordinates. This allows us to write int(f) instead of - // int(math.Floor(f)), since "round to zero" and "round down" are - // equivalent when f >= 0, but the former is much cheaper. The X-- - // and Y-- are because the TransformLeaf methods have a "sx -= 0.5" - // adjustment. - bias := transformRect(&d2s, &adr).Min - bias.X-- - bias.Y-- - d2s[2] -= float64(bias.X) - d2s[5] -= float64(bias.Y) - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - - if u, ok := src.(*image.Uniform); ok && o.DstMask != nil && o.SrcMask != nil && sr.In(src.Bounds()) { - transform_Uniform(dst, dr, adr, &d2s, u, sr, bias, op) - return - } - - xscale := abs(d2s[0]) - if s := abs(d2s[1]); xscale < s { - xscale = s - } - yscale := abs(d2s[3]) - if s := abs(d2s[4]); yscale < s { - yscale = s - } - - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.DstMask != nil || o.SrcMask != nil || !sr.In(src.Bounds()) { - switch op { - case Over: - q.transform_Image_Image_Over(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case Src: - q.transform_Image_Image_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - } - } else { - $switch q.transform_$dTypeRN_$sTypeRN$sratio_$op(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - } - } - ` - - codeKernelScaleLeafX = ` - func (z *kernelScaler) scaleX_$sTypeRN$sratio(tmp [][4]float64, src $sType, sr image.Rectangle, opts *Options) { - t := 0 - $preKernelOuter - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr, pg, pb, pa float64 $tweakVarP - for _, c := range z.horizontal.contribs[s.i:s.j] { - p += $srcf[sr.Min.X + int(c.coord), sr.Min.Y + int(y)] * c.weight - } - $tweakPr - tmp[t] = [4]float64{ - pr * s.invTotalWeightFFFF, $tweakP - pg * s.invTotalWeightFFFF, $tweakP - pb * s.invTotalWeightFFFF, $tweakP - pa * s.invTotalWeightFFFF, $tweakP - } - t++ - } - } - } - ` - - codeKernelScaleLeafY = ` - func (z *kernelScaler) scaleY_$dTypeRN_$op(dst $dType, dr, adr image.Rectangle, tmp [][4]float64, opts *Options) { - $preOuter - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - $preKernelInner - for dy, s := range z.vertical.sources[adr.Min.Y:adr.Max.Y] { $tweakDy - var pr, pg, pb, pa float64 - for _, c := range z.vertical.contribs[s.i:s.j] { - p := &tmp[c.coord*z.dw+dx] - pr += p[0] * c.weight - pg += p[1] * c.weight - pb += p[2] * c.weight - pa += p[3] * c.weight - } - $clampToAlpha - $outputf[dr.Min.X + int(dx), dr.Min.Y + int(adr.Min.Y + dy), ftou, p, s.invTotalWeight] - $tweakD - } - } - } - ` - - codeKernelTransformLeaf = ` - func (q *Kernel) transform_$dTypeRN_$sTypeRN$sratio_$op(dst $dType, dr, adr image.Rectangle, d2s *f64.Aff3, src $sType, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1 + 2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1 + 2*int(math.Ceil(yHalfWidth))) - - $preOuter - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y + int(dy)) + 0.5 - $preInner - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { $tweakDx - dxf := float64(dr.Min.X + int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx - ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky - iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 $tweakVarP - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky - iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx - ix] * yWeight; w != 0 { - p += $srcf[kx, ky] * w - } - } - } - } - $clampToAlpha - $outputf[dr.Min.X + int(dx), dr.Min.Y + int(dy), fffftou, p, 1] - } - } - } - ` -) diff --git a/vendor/golang.org/x/image/draw/go1_8.go b/vendor/golang.org/x/image/draw/go1_8.go deleted file mode 100644 index ec192b7..0000000 --- a/vendor/golang.org/x/image/draw/go1_8.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !go1.9,!go1.8.typealias - -package draw - -import ( - "image" - "image/color" - "image/draw" -) - -// Drawer contains the Draw method. -type Drawer interface { - // Draw aligns r.Min in dst with sp in src and then replaces the - // rectangle r in dst with the result of drawing src on dst. - Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point) -} - -// Image is an image.Image with a Set method to change a single pixel. -type Image interface { - image.Image - Set(x, y int, c color.Color) -} - -// Op is a Porter-Duff compositing operator. -type Op int - -const ( - // Over specifies ``(src in mask) over dst''. - Over Op = Op(draw.Over) - // Src specifies ``src in mask''. - Src Op = Op(draw.Src) -) - -// Draw implements the Drawer interface by calling the Draw function with -// this Op. -func (op Op) Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point) { - (draw.Op(op)).Draw(dst, r, src, sp) -} - -// Quantizer produces a palette for an image. -type Quantizer interface { - // Quantize appends up to cap(p) - len(p) colors to p and returns the - // updated palette suitable for converting m to a paletted image. - Quantize(p color.Palette, m image.Image) color.Palette -} diff --git a/vendor/golang.org/x/image/draw/go1_9.go b/vendor/golang.org/x/image/draw/go1_9.go deleted file mode 100644 index fc548e9..0000000 --- a/vendor/golang.org/x/image/draw/go1_9.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.9 go1.8.typealias - -package draw - -import ( - "image/draw" -) - -// We use type aliases (new in Go 1.9) for the exported names from the standard -// library's image/draw package. This is not merely syntactic sugar for -// -// type Drawer draw.Drawer -// -// as aliasing means that the types in this package, such as draw.Image and -// draw.Op, are identical to the corresponding draw.Image and draw.Op types in -// the standard library. In comparison, prior to Go 1.9, the code in go1_8.go -// defines new types that mimic the old but are different types. -// -// The package documentation, in draw.go, explicitly gives the intent of this -// package: -// -// This package is a superset of and a drop-in replacement for the -// image/draw package in the standard library. -// -// Drop-in replacement means that I can replace all of my "image/draw" imports -// with "golang.org/x/image/draw", to access additional features in this -// package, and no further changes are required. That's mostly true, but not -// completely true unless we use type aliases. -// -// Without type aliases, users might need to import both "image/draw" and -// "golang.org/x/image/draw" in order to convert from two conceptually -// equivalent but different (from the compiler's point of view) types, such as -// from one draw.Op type to another draw.Op type, to satisfy some other -// interface or function signature. - -// Drawer contains the Draw method. -type Drawer = draw.Drawer - -// Image is an image.Image with a Set method to change a single pixel. -type Image = draw.Image - -// Op is a Porter-Duff compositing operator. -type Op = draw.Op - -const ( - // Over specifies ``(src in mask) over dst''. - Over Op = draw.Over - // Src specifies ``src in mask''. - Src Op = draw.Src -) - -// Quantizer produces a palette for an image. -type Quantizer = draw.Quantizer diff --git a/vendor/golang.org/x/image/draw/impl.go b/vendor/golang.org/x/image/draw/impl.go deleted file mode 100644 index 75498ad..0000000 --- a/vendor/golang.org/x/image/draw/impl.go +++ /dev/null @@ -1,6670 +0,0 @@ -// generated by "go run gen.go". DO NOT EDIT. - -package draw - -import ( - "image" - "image/color" - "math" - - "golang.org/x/image/math/f64" -) - -func (z nnInterpolator) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) { - // Try to simplify a Scale to a Copy when DstMask is not specified. - // If DstMask is not nil, Copy will call Scale back with same dr and sr, and cause stack overflow. - if dr.Size() == sr.Size() && (opts == nil || opts.DstMask == nil) { - Copy(dst, dr.Min, src, sr, op, opts) - return - } - - var o Options - if opts != nil { - o = *opts - } - - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.DstMask != nil || o.SrcMask != nil || !sr.In(src.Bounds()) { - switch op { - case Over: - z.scale_Image_Image_Over(dst, dr, adr, src, sr, &o) - case Src: - z.scale_Image_Image_Src(dst, dr, adr, src, sr, &o) - } - } else if _, ok := src.(*image.Uniform); ok { - Draw(dst, dr, src, src.Bounds().Min, op) - } else { - switch op { - case Over: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.NRGBA: - z.scale_RGBA_NRGBA_Over(dst, dr, adr, src, sr, &o) - case *image.RGBA: - z.scale_RGBA_RGBA_Over(dst, dr, adr, src, sr, &o) - default: - z.scale_RGBA_Image_Over(dst, dr, adr, src, sr, &o) - } - default: - switch src := src.(type) { - default: - z.scale_Image_Image_Over(dst, dr, adr, src, sr, &o) - } - } - case Src: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.Gray: - z.scale_RGBA_Gray_Src(dst, dr, adr, src, sr, &o) - case *image.NRGBA: - z.scale_RGBA_NRGBA_Src(dst, dr, adr, src, sr, &o) - case *image.RGBA: - z.scale_RGBA_RGBA_Src(dst, dr, adr, src, sr, &o) - case *image.YCbCr: - switch src.SubsampleRatio { - default: - z.scale_RGBA_Image_Src(dst, dr, adr, src, sr, &o) - case image.YCbCrSubsampleRatio444: - z.scale_RGBA_YCbCr444_Src(dst, dr, adr, src, sr, &o) - case image.YCbCrSubsampleRatio422: - z.scale_RGBA_YCbCr422_Src(dst, dr, adr, src, sr, &o) - case image.YCbCrSubsampleRatio420: - z.scale_RGBA_YCbCr420_Src(dst, dr, adr, src, sr, &o) - case image.YCbCrSubsampleRatio440: - z.scale_RGBA_YCbCr440_Src(dst, dr, adr, src, sr, &o) - } - default: - z.scale_RGBA_Image_Src(dst, dr, adr, src, sr, &o) - } - default: - switch src := src.(type) { - default: - z.scale_Image_Image_Src(dst, dr, adr, src, sr, &o) - } - } - } - } -} - -func (z nnInterpolator) Transform(dst Image, s2d f64.Aff3, src image.Image, sr image.Rectangle, op Op, opts *Options) { - // Try to simplify a Transform to a Copy. - if s2d[0] == 1 && s2d[1] == 0 && s2d[3] == 0 && s2d[4] == 1 { - dx := int(s2d[2]) - dy := int(s2d[5]) - if float64(dx) == s2d[2] && float64(dy) == s2d[5] { - Copy(dst, image.Point{X: sr.Min.X + dx, Y: sr.Min.X + dy}, src, sr, op, opts) - return - } - } - - var o Options - if opts != nil { - o = *opts - } - - dr := transformRect(&s2d, &sr) - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - - d2s := invert(&s2d) - // bias is a translation of the mapping from dst coordinates to src - // coordinates such that the latter temporarily have non-negative X - // and Y coordinates. This allows us to write int(f) instead of - // int(math.Floor(f)), since "round to zero" and "round down" are - // equivalent when f >= 0, but the former is much cheaper. The X-- - // and Y-- are because the TransformLeaf methods have a "sx -= 0.5" - // adjustment. - bias := transformRect(&d2s, &adr).Min - bias.X-- - bias.Y-- - d2s[2] -= float64(bias.X) - d2s[5] -= float64(bias.Y) - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.DstMask != nil || o.SrcMask != nil || !sr.In(src.Bounds()) { - switch op { - case Over: - z.transform_Image_Image_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - case Src: - z.transform_Image_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - } else if u, ok := src.(*image.Uniform); ok { - transform_Uniform(dst, dr, adr, &d2s, u, sr, bias, op) - } else { - switch op { - case Over: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.NRGBA: - z.transform_RGBA_NRGBA_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - case *image.RGBA: - z.transform_RGBA_RGBA_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - default: - z.transform_RGBA_Image_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - } - default: - switch src := src.(type) { - default: - z.transform_Image_Image_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - } - } - case Src: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.Gray: - z.transform_RGBA_Gray_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case *image.NRGBA: - z.transform_RGBA_NRGBA_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case *image.RGBA: - z.transform_RGBA_RGBA_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case *image.YCbCr: - switch src.SubsampleRatio { - default: - z.transform_RGBA_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case image.YCbCrSubsampleRatio444: - z.transform_RGBA_YCbCr444_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case image.YCbCrSubsampleRatio422: - z.transform_RGBA_YCbCr422_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case image.YCbCrSubsampleRatio420: - z.transform_RGBA_YCbCr420_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case image.YCbCrSubsampleRatio440: - z.transform_RGBA_YCbCr440_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - default: - z.transform_RGBA_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - default: - switch src := src.(type) { - default: - z.transform_Image_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - } - } - } -} - -func (nnInterpolator) scale_RGBA_Gray_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.Gray, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.Stride + (sr.Min.X + int(sx) - src.Rect.Min.X) - pr := uint32(src.Pix[pi]) * 0x101 - out := uint8(pr >> 8) - dst.Pix[d+0] = out - dst.Pix[d+1] = out - dst.Pix[d+2] = out - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) scale_RGBA_NRGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, src *image.NRGBA, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx)-src.Rect.Min.X)*4 - pa := uint32(src.Pix[pi+3]) * 0x101 - pr := uint32(src.Pix[pi+0]) * pa / 0xff - pg := uint32(src.Pix[pi+1]) * pa / 0xff - pb := uint32(src.Pix[pi+2]) * pa / 0xff - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (nnInterpolator) scale_RGBA_NRGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.NRGBA, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx)-src.Rect.Min.X)*4 - pa := uint32(src.Pix[pi+3]) * 0x101 - pr := uint32(src.Pix[pi+0]) * pa / 0xff - pg := uint32(src.Pix[pi+1]) * pa / 0xff - pb := uint32(src.Pix[pi+2]) * pa / 0xff - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (nnInterpolator) scale_RGBA_RGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, src *image.RGBA, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx)-src.Rect.Min.X)*4 - pr := uint32(src.Pix[pi+0]) * 0x101 - pg := uint32(src.Pix[pi+1]) * 0x101 - pb := uint32(src.Pix[pi+2]) * 0x101 - pa := uint32(src.Pix[pi+3]) * 0x101 - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (nnInterpolator) scale_RGBA_RGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.RGBA, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx)-src.Rect.Min.X)*4 - pr := uint32(src.Pix[pi+0]) * 0x101 - pg := uint32(src.Pix[pi+1]) * 0x101 - pb := uint32(src.Pix[pi+2]) * 0x101 - pa := uint32(src.Pix[pi+3]) * 0x101 - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (nnInterpolator) scale_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.YCbCr, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx) - src.Rect.Min.X) - pj := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pr := (pyy1 + 91881*pcr1) >> 8 - pg := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pb := (pyy1 + 116130*pcb1) >> 8 - if pr < 0 { - pr = 0 - } else if pr > 0xffff { - pr = 0xffff - } - if pg < 0 { - pg = 0 - } else if pg > 0xffff { - pg = 0xffff - } - if pb < 0 { - pb = 0 - } else if pb > 0xffff { - pb = 0xffff - } - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) scale_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.YCbCr, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx) - src.Rect.Min.X) - pj := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pr := (pyy1 + 91881*pcr1) >> 8 - pg := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pb := (pyy1 + 116130*pcb1) >> 8 - if pr < 0 { - pr = 0 - } else if pr > 0xffff { - pr = 0xffff - } - if pg < 0 { - pg = 0 - } else if pg > 0xffff { - pg = 0xffff - } - if pb < 0 { - pb = 0 - } else if pb > 0xffff { - pb = 0xffff - } - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) scale_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.YCbCr, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx) - src.Rect.Min.X) - pj := ((sr.Min.Y+int(sy))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pr := (pyy1 + 91881*pcr1) >> 8 - pg := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pb := (pyy1 + 116130*pcb1) >> 8 - if pr < 0 { - pr = 0 - } else if pr > 0xffff { - pr = 0xffff - } - if pg < 0 { - pg = 0 - } else if pg > 0xffff { - pg = 0xffff - } - if pb < 0 { - pb = 0 - } else if pb > 0xffff { - pb = 0xffff - } - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) scale_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.YCbCr, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pi := (sr.Min.Y+int(sy)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx) - src.Rect.Min.X) - pj := ((sr.Min.Y+int(sy))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pr := (pyy1 + 91881*pcr1) >> 8 - pg := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pb := (pyy1 + 116130*pcb1) >> 8 - if pr < 0 { - pr = 0 - } else if pr > 0xffff { - pr = 0xffff - } - if pg < 0 { - pg = 0 - } else if pg > 0xffff { - pg = 0xffff - } - if pb < 0 { - pb = 0 - } else if pb > 0xffff { - pb = 0xffff - } - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) scale_RGBA_Image_Over(dst *image.RGBA, dr, adr image.Rectangle, src image.Image, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pr, pg, pb, pa := src.At(sr.Min.X+int(sx), sr.Min.Y+int(sy)).RGBA() - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (nnInterpolator) scale_RGBA_Image_Src(dst *image.RGBA, dr, adr image.Rectangle, src image.Image, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (2*uint64(dx) + 1) * sw / dw2 - pr, pg, pb, pa := src.At(sr.Min.X+int(sx), sr.Min.Y+int(sy)).RGBA() - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (nnInterpolator) scale_Image_Image_Over(dst Image, dr, adr image.Rectangle, src image.Image, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - sx := (2*uint64(dx) + 1) * sw / dw2 - pr, pg, pb, pa := src.At(sr.Min.X+int(sx), sr.Min.Y+int(sy)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx), smp.Y+sr.Min.Y+int(sy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - } - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - if dstMask != nil { - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - } - pa1 := 0xffff - pa - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } -} - -func (nnInterpolator) scale_Image_Image_Src(dst Image, dr, adr image.Rectangle, src image.Image, sr image.Rectangle, opts *Options) { - dw2 := uint64(dr.Dx()) * 2 - dh2 := uint64(dr.Dy()) * 2 - sw := uint64(sr.Dx()) - sh := uint64(sr.Dy()) - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (2*uint64(dy) + 1) * sh / dh2 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - sx := (2*uint64(dx) + 1) * sw / dw2 - pr, pg, pb, pa := src.At(sr.Min.X+int(sx), sr.Min.Y+int(sy)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx), smp.Y+sr.Min.Y+int(sy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - } - if dstMask != nil { - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - pa1 := 0xffff - ma - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } else { - dstColorRGBA64.R = uint16(pr) - dstColorRGBA64.G = uint16(pg) - dstColorRGBA64.B = uint16(pb) - dstColorRGBA64.A = uint16(pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } - } -} - -func (nnInterpolator) transform_RGBA_Gray_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.Gray, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.Stride + (sx0 - src.Rect.Min.X) - pr := uint32(src.Pix[pi]) * 0x101 - out := uint8(pr >> 8) - dst.Pix[d+0] = out - dst.Pix[d+1] = out - dst.Pix[d+2] = out - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) transform_RGBA_NRGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.NRGBA, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - pa := uint32(src.Pix[pi+3]) * 0x101 - pr := uint32(src.Pix[pi+0]) * pa / 0xff - pg := uint32(src.Pix[pi+1]) * pa / 0xff - pb := uint32(src.Pix[pi+2]) * pa / 0xff - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (nnInterpolator) transform_RGBA_NRGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.NRGBA, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - pa := uint32(src.Pix[pi+3]) * 0x101 - pr := uint32(src.Pix[pi+0]) * pa / 0xff - pg := uint32(src.Pix[pi+1]) * pa / 0xff - pb := uint32(src.Pix[pi+2]) * pa / 0xff - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (nnInterpolator) transform_RGBA_RGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.RGBA, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - pr := uint32(src.Pix[pi+0]) * 0x101 - pg := uint32(src.Pix[pi+1]) * 0x101 - pb := uint32(src.Pix[pi+2]) * 0x101 - pa := uint32(src.Pix[pi+3]) * 0x101 - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (nnInterpolator) transform_RGBA_RGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.RGBA, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - pr := uint32(src.Pix[pi+0]) * 0x101 - pg := uint32(src.Pix[pi+1]) * 0x101 - pb := uint32(src.Pix[pi+2]) * 0x101 - pa := uint32(src.Pix[pi+3]) * 0x101 - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (nnInterpolator) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - pj := (sy0-src.Rect.Min.Y)*src.CStride + (sx0 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pr := (pyy1 + 91881*pcr1) >> 8 - pg := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pb := (pyy1 + 116130*pcb1) >> 8 - if pr < 0 { - pr = 0 - } else if pr > 0xffff { - pr = 0xffff - } - if pg < 0 { - pg = 0 - } else if pg > 0xffff { - pg = 0xffff - } - if pb < 0 { - pb = 0 - } else if pb > 0xffff { - pb = 0xffff - } - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - pj := (sy0-src.Rect.Min.Y)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pr := (pyy1 + 91881*pcr1) >> 8 - pg := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pb := (pyy1 + 116130*pcb1) >> 8 - if pr < 0 { - pr = 0 - } else if pr > 0xffff { - pr = 0xffff - } - if pg < 0 { - pg = 0 - } else if pg > 0xffff { - pg = 0xffff - } - if pb < 0 { - pb = 0 - } else if pb > 0xffff { - pb = 0xffff - } - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - pj := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pr := (pyy1 + 91881*pcr1) >> 8 - pg := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pb := (pyy1 + 116130*pcb1) >> 8 - if pr < 0 { - pr = 0 - } else if pr > 0xffff { - pr = 0xffff - } - if pg < 0 { - pg = 0 - } else if pg > 0xffff { - pg = 0xffff - } - if pb < 0 { - pb = 0 - } else if pb > 0xffff { - pb = 0xffff - } - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pi := (sy0-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - pj := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + (sx0 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pr := (pyy1 + 91881*pcr1) >> 8 - pg := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pb := (pyy1 + 116130*pcb1) >> 8 - if pr < 0 { - pr = 0 - } else if pr > 0xffff { - pr = 0xffff - } - if pg < 0 { - pg = 0 - } else if pg > 0xffff { - pg = 0xffff - } - if pb < 0 { - pb = 0 - } else if pb > 0xffff { - pb = 0xffff - } - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (nnInterpolator) transform_RGBA_Image_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pr, pg, pb, pa := src.At(sx0, sy0).RGBA() - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (nnInterpolator) transform_RGBA_Image_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pr, pg, pb, pa := src.At(sx0, sy0).RGBA() - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (nnInterpolator) transform_Image_Image_Over(dst Image, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, opts *Options) { - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pr, pg, pb, pa := src.At(sx0, sy0).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx0, smp.Y+sy0).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - } - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - if dstMask != nil { - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - } - pa1 := 0xffff - pa - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } -} - -func (nnInterpolator) transform_Image_Image_Src(dst Image, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, opts *Options) { - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - pr, pg, pb, pa := src.At(sx0, sy0).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx0, smp.Y+sy0).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - } - if dstMask != nil { - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - pa1 := 0xffff - ma - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } else { - dstColorRGBA64.R = uint16(pr) - dstColorRGBA64.G = uint16(pg) - dstColorRGBA64.B = uint16(pb) - dstColorRGBA64.A = uint16(pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } - } -} - -func (z ablInterpolator) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) { - // Try to simplify a Scale to a Copy when DstMask is not specified. - // If DstMask is not nil, Copy will call Scale back with same dr and sr, and cause stack overflow. - if dr.Size() == sr.Size() && (opts == nil || opts.DstMask == nil) { - Copy(dst, dr.Min, src, sr, op, opts) - return - } - - var o Options - if opts != nil { - o = *opts - } - - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.DstMask != nil || o.SrcMask != nil || !sr.In(src.Bounds()) { - switch op { - case Over: - z.scale_Image_Image_Over(dst, dr, adr, src, sr, &o) - case Src: - z.scale_Image_Image_Src(dst, dr, adr, src, sr, &o) - } - } else if _, ok := src.(*image.Uniform); ok { - Draw(dst, dr, src, src.Bounds().Min, op) - } else { - switch op { - case Over: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.NRGBA: - z.scale_RGBA_NRGBA_Over(dst, dr, adr, src, sr, &o) - case *image.RGBA: - z.scale_RGBA_RGBA_Over(dst, dr, adr, src, sr, &o) - default: - z.scale_RGBA_Image_Over(dst, dr, adr, src, sr, &o) - } - default: - switch src := src.(type) { - default: - z.scale_Image_Image_Over(dst, dr, adr, src, sr, &o) - } - } - case Src: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.Gray: - z.scale_RGBA_Gray_Src(dst, dr, adr, src, sr, &o) - case *image.NRGBA: - z.scale_RGBA_NRGBA_Src(dst, dr, adr, src, sr, &o) - case *image.RGBA: - z.scale_RGBA_RGBA_Src(dst, dr, adr, src, sr, &o) - case *image.YCbCr: - switch src.SubsampleRatio { - default: - z.scale_RGBA_Image_Src(dst, dr, adr, src, sr, &o) - case image.YCbCrSubsampleRatio444: - z.scale_RGBA_YCbCr444_Src(dst, dr, adr, src, sr, &o) - case image.YCbCrSubsampleRatio422: - z.scale_RGBA_YCbCr422_Src(dst, dr, adr, src, sr, &o) - case image.YCbCrSubsampleRatio420: - z.scale_RGBA_YCbCr420_Src(dst, dr, adr, src, sr, &o) - case image.YCbCrSubsampleRatio440: - z.scale_RGBA_YCbCr440_Src(dst, dr, adr, src, sr, &o) - } - default: - z.scale_RGBA_Image_Src(dst, dr, adr, src, sr, &o) - } - default: - switch src := src.(type) { - default: - z.scale_Image_Image_Src(dst, dr, adr, src, sr, &o) - } - } - } - } -} - -func (z ablInterpolator) Transform(dst Image, s2d f64.Aff3, src image.Image, sr image.Rectangle, op Op, opts *Options) { - // Try to simplify a Transform to a Copy. - if s2d[0] == 1 && s2d[1] == 0 && s2d[3] == 0 && s2d[4] == 1 { - dx := int(s2d[2]) - dy := int(s2d[5]) - if float64(dx) == s2d[2] && float64(dy) == s2d[5] { - Copy(dst, image.Point{X: sr.Min.X + dx, Y: sr.Min.X + dy}, src, sr, op, opts) - return - } - } - - var o Options - if opts != nil { - o = *opts - } - - dr := transformRect(&s2d, &sr) - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - - d2s := invert(&s2d) - // bias is a translation of the mapping from dst coordinates to src - // coordinates such that the latter temporarily have non-negative X - // and Y coordinates. This allows us to write int(f) instead of - // int(math.Floor(f)), since "round to zero" and "round down" are - // equivalent when f >= 0, but the former is much cheaper. The X-- - // and Y-- are because the TransformLeaf methods have a "sx -= 0.5" - // adjustment. - bias := transformRect(&d2s, &adr).Min - bias.X-- - bias.Y-- - d2s[2] -= float64(bias.X) - d2s[5] -= float64(bias.Y) - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.DstMask != nil || o.SrcMask != nil || !sr.In(src.Bounds()) { - switch op { - case Over: - z.transform_Image_Image_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - case Src: - z.transform_Image_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - } else if u, ok := src.(*image.Uniform); ok { - transform_Uniform(dst, dr, adr, &d2s, u, sr, bias, op) - } else { - switch op { - case Over: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.NRGBA: - z.transform_RGBA_NRGBA_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - case *image.RGBA: - z.transform_RGBA_RGBA_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - default: - z.transform_RGBA_Image_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - } - default: - switch src := src.(type) { - default: - z.transform_Image_Image_Over(dst, dr, adr, &d2s, src, sr, bias, &o) - } - } - case Src: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.Gray: - z.transform_RGBA_Gray_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case *image.NRGBA: - z.transform_RGBA_NRGBA_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case *image.RGBA: - z.transform_RGBA_RGBA_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case *image.YCbCr: - switch src.SubsampleRatio { - default: - z.transform_RGBA_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case image.YCbCrSubsampleRatio444: - z.transform_RGBA_YCbCr444_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case image.YCbCrSubsampleRatio422: - z.transform_RGBA_YCbCr422_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case image.YCbCrSubsampleRatio420: - z.transform_RGBA_YCbCr420_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - case image.YCbCrSubsampleRatio440: - z.transform_RGBA_YCbCr440_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - default: - z.transform_RGBA_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - default: - switch src := src.(type) { - default: - z.transform_Image_Image_Src(dst, dr, adr, &d2s, src, sr, bias, &o) - } - } - } - } -} - -func (ablInterpolator) scale_RGBA_Gray_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.Gray, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s00ru := uint32(src.Pix[s00i]) * 0x101 - s00r := float64(s00ru) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s10ru := uint32(src.Pix[s10i]) * 0x101 - s10r := float64(s10ru) - s10r = xFrac1*s00r + xFrac0*s10r - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s01ru := uint32(src.Pix[s01i]) * 0x101 - s01r := float64(s01ru) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s11ru := uint32(src.Pix[s11i]) * 0x101 - s11r := float64(s11ru) - s11r = xFrac1*s01r + xFrac0*s11r - s11r = yFrac1*s10r + yFrac0*s11r - pr := uint32(s11r) - out := uint8(pr >> 8) - dst.Pix[d+0] = out - dst.Pix[d+1] = out - dst.Pix[d+2] = out - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) scale_RGBA_NRGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, src *image.NRGBA, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx0)-src.Rect.Min.X)*4 - s00au := uint32(src.Pix[s00i+3]) * 0x101 - s00ru := uint32(src.Pix[s00i+0]) * s00au / 0xff - s00gu := uint32(src.Pix[s00i+1]) * s00au / 0xff - s00bu := uint32(src.Pix[s00i+2]) * s00au / 0xff - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx1)-src.Rect.Min.X)*4 - s10au := uint32(src.Pix[s10i+3]) * 0x101 - s10ru := uint32(src.Pix[s10i+0]) * s10au / 0xff - s10gu := uint32(src.Pix[s10i+1]) * s10au / 0xff - s10bu := uint32(src.Pix[s10i+2]) * s10au / 0xff - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx0)-src.Rect.Min.X)*4 - s01au := uint32(src.Pix[s01i+3]) * 0x101 - s01ru := uint32(src.Pix[s01i+0]) * s01au / 0xff - s01gu := uint32(src.Pix[s01i+1]) * s01au / 0xff - s01bu := uint32(src.Pix[s01i+2]) * s01au / 0xff - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx1)-src.Rect.Min.X)*4 - s11au := uint32(src.Pix[s11i+3]) * 0x101 - s11ru := uint32(src.Pix[s11i+0]) * s11au / 0xff - s11gu := uint32(src.Pix[s11i+1]) * s11au / 0xff - s11bu := uint32(src.Pix[s11i+2]) * s11au / 0xff - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (ablInterpolator) scale_RGBA_NRGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.NRGBA, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx0)-src.Rect.Min.X)*4 - s00au := uint32(src.Pix[s00i+3]) * 0x101 - s00ru := uint32(src.Pix[s00i+0]) * s00au / 0xff - s00gu := uint32(src.Pix[s00i+1]) * s00au / 0xff - s00bu := uint32(src.Pix[s00i+2]) * s00au / 0xff - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx1)-src.Rect.Min.X)*4 - s10au := uint32(src.Pix[s10i+3]) * 0x101 - s10ru := uint32(src.Pix[s10i+0]) * s10au / 0xff - s10gu := uint32(src.Pix[s10i+1]) * s10au / 0xff - s10bu := uint32(src.Pix[s10i+2]) * s10au / 0xff - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx0)-src.Rect.Min.X)*4 - s01au := uint32(src.Pix[s01i+3]) * 0x101 - s01ru := uint32(src.Pix[s01i+0]) * s01au / 0xff - s01gu := uint32(src.Pix[s01i+1]) * s01au / 0xff - s01bu := uint32(src.Pix[s01i+2]) * s01au / 0xff - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx1)-src.Rect.Min.X)*4 - s11au := uint32(src.Pix[s11i+3]) * 0x101 - s11ru := uint32(src.Pix[s11i+0]) * s11au / 0xff - s11gu := uint32(src.Pix[s11i+1]) * s11au / 0xff - s11bu := uint32(src.Pix[s11i+2]) * s11au / 0xff - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (ablInterpolator) scale_RGBA_RGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, src *image.RGBA, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx0)-src.Rect.Min.X)*4 - s00ru := uint32(src.Pix[s00i+0]) * 0x101 - s00gu := uint32(src.Pix[s00i+1]) * 0x101 - s00bu := uint32(src.Pix[s00i+2]) * 0x101 - s00au := uint32(src.Pix[s00i+3]) * 0x101 - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx1)-src.Rect.Min.X)*4 - s10ru := uint32(src.Pix[s10i+0]) * 0x101 - s10gu := uint32(src.Pix[s10i+1]) * 0x101 - s10bu := uint32(src.Pix[s10i+2]) * 0x101 - s10au := uint32(src.Pix[s10i+3]) * 0x101 - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx0)-src.Rect.Min.X)*4 - s01ru := uint32(src.Pix[s01i+0]) * 0x101 - s01gu := uint32(src.Pix[s01i+1]) * 0x101 - s01bu := uint32(src.Pix[s01i+2]) * 0x101 - s01au := uint32(src.Pix[s01i+3]) * 0x101 - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx1)-src.Rect.Min.X)*4 - s11ru := uint32(src.Pix[s11i+0]) * 0x101 - s11gu := uint32(src.Pix[s11i+1]) * 0x101 - s11bu := uint32(src.Pix[s11i+2]) * 0x101 - s11au := uint32(src.Pix[s11i+3]) * 0x101 - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (ablInterpolator) scale_RGBA_RGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.RGBA, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx0)-src.Rect.Min.X)*4 - s00ru := uint32(src.Pix[s00i+0]) * 0x101 - s00gu := uint32(src.Pix[s00i+1]) * 0x101 - s00bu := uint32(src.Pix[s00i+2]) * 0x101 - s00au := uint32(src.Pix[s00i+3]) * 0x101 - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx1)-src.Rect.Min.X)*4 - s10ru := uint32(src.Pix[s10i+0]) * 0x101 - s10gu := uint32(src.Pix[s10i+1]) * 0x101 - s10bu := uint32(src.Pix[s10i+2]) * 0x101 - s10au := uint32(src.Pix[s10i+3]) * 0x101 - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx0)-src.Rect.Min.X)*4 - s01ru := uint32(src.Pix[s01i+0]) * 0x101 - s01gu := uint32(src.Pix[s01i+1]) * 0x101 - s01bu := uint32(src.Pix[s01i+2]) * 0x101 - s01au := uint32(src.Pix[s01i+3]) * 0x101 - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(sx1)-src.Rect.Min.X)*4 - s11ru := uint32(src.Pix[s11i+0]) * 0x101 - s11gu := uint32(src.Pix[s11i+1]) * 0x101 - s11bu := uint32(src.Pix[s11i+2]) * 0x101 - s11au := uint32(src.Pix[s11i+3]) * 0x101 - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (ablInterpolator) scale_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.YCbCr, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s00j := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s00yy1 := int(src.Y[s00i]) * 0x10101 - s00cb1 := int(src.Cb[s00j]) - 128 - s00cr1 := int(src.Cr[s00j]) - 128 - s00ru := (s00yy1 + 91881*s00cr1) >> 8 - s00gu := (s00yy1 - 22554*s00cb1 - 46802*s00cr1) >> 8 - s00bu := (s00yy1 + 116130*s00cb1) >> 8 - if s00ru < 0 { - s00ru = 0 - } else if s00ru > 0xffff { - s00ru = 0xffff - } - if s00gu < 0 { - s00gu = 0 - } else if s00gu > 0xffff { - s00gu = 0xffff - } - if s00bu < 0 { - s00bu = 0 - } else if s00bu > 0xffff { - s00bu = 0xffff - } - - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s10j := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s10yy1 := int(src.Y[s10i]) * 0x10101 - s10cb1 := int(src.Cb[s10j]) - 128 - s10cr1 := int(src.Cr[s10j]) - 128 - s10ru := (s10yy1 + 91881*s10cr1) >> 8 - s10gu := (s10yy1 - 22554*s10cb1 - 46802*s10cr1) >> 8 - s10bu := (s10yy1 + 116130*s10cb1) >> 8 - if s10ru < 0 { - s10ru = 0 - } else if s10ru > 0xffff { - s10ru = 0xffff - } - if s10gu < 0 { - s10gu = 0 - } else if s10gu > 0xffff { - s10gu = 0xffff - } - if s10bu < 0 { - s10bu = 0 - } else if s10bu > 0xffff { - s10bu = 0xffff - } - - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s01j := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s01yy1 := int(src.Y[s01i]) * 0x10101 - s01cb1 := int(src.Cb[s01j]) - 128 - s01cr1 := int(src.Cr[s01j]) - 128 - s01ru := (s01yy1 + 91881*s01cr1) >> 8 - s01gu := (s01yy1 - 22554*s01cb1 - 46802*s01cr1) >> 8 - s01bu := (s01yy1 + 116130*s01cb1) >> 8 - if s01ru < 0 { - s01ru = 0 - } else if s01ru > 0xffff { - s01ru = 0xffff - } - if s01gu < 0 { - s01gu = 0 - } else if s01gu > 0xffff { - s01gu = 0xffff - } - if s01bu < 0 { - s01bu = 0 - } else if s01bu > 0xffff { - s01bu = 0xffff - } - - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s11j := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s11yy1 := int(src.Y[s11i]) * 0x10101 - s11cb1 := int(src.Cb[s11j]) - 128 - s11cr1 := int(src.Cr[s11j]) - 128 - s11ru := (s11yy1 + 91881*s11cr1) >> 8 - s11gu := (s11yy1 - 22554*s11cb1 - 46802*s11cr1) >> 8 - s11bu := (s11yy1 + 116130*s11cb1) >> 8 - if s11ru < 0 { - s11ru = 0 - } else if s11ru > 0xffff { - s11ru = 0xffff - } - if s11gu < 0 { - s11gu = 0 - } else if s11gu > 0xffff { - s11gu = 0xffff - } - if s11bu < 0 { - s11bu = 0 - } else if s11bu > 0xffff { - s11bu = 0xffff - } - - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) scale_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.YCbCr, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s00j := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx0))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s00yy1 := int(src.Y[s00i]) * 0x10101 - s00cb1 := int(src.Cb[s00j]) - 128 - s00cr1 := int(src.Cr[s00j]) - 128 - s00ru := (s00yy1 + 91881*s00cr1) >> 8 - s00gu := (s00yy1 - 22554*s00cb1 - 46802*s00cr1) >> 8 - s00bu := (s00yy1 + 116130*s00cb1) >> 8 - if s00ru < 0 { - s00ru = 0 - } else if s00ru > 0xffff { - s00ru = 0xffff - } - if s00gu < 0 { - s00gu = 0 - } else if s00gu > 0xffff { - s00gu = 0xffff - } - if s00bu < 0 { - s00bu = 0 - } else if s00bu > 0xffff { - s00bu = 0xffff - } - - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s10j := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx1))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s10yy1 := int(src.Y[s10i]) * 0x10101 - s10cb1 := int(src.Cb[s10j]) - 128 - s10cr1 := int(src.Cr[s10j]) - 128 - s10ru := (s10yy1 + 91881*s10cr1) >> 8 - s10gu := (s10yy1 - 22554*s10cb1 - 46802*s10cr1) >> 8 - s10bu := (s10yy1 + 116130*s10cb1) >> 8 - if s10ru < 0 { - s10ru = 0 - } else if s10ru > 0xffff { - s10ru = 0xffff - } - if s10gu < 0 { - s10gu = 0 - } else if s10gu > 0xffff { - s10gu = 0xffff - } - if s10bu < 0 { - s10bu = 0 - } else if s10bu > 0xffff { - s10bu = 0xffff - } - - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s01j := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx0))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s01yy1 := int(src.Y[s01i]) * 0x10101 - s01cb1 := int(src.Cb[s01j]) - 128 - s01cr1 := int(src.Cr[s01j]) - 128 - s01ru := (s01yy1 + 91881*s01cr1) >> 8 - s01gu := (s01yy1 - 22554*s01cb1 - 46802*s01cr1) >> 8 - s01bu := (s01yy1 + 116130*s01cb1) >> 8 - if s01ru < 0 { - s01ru = 0 - } else if s01ru > 0xffff { - s01ru = 0xffff - } - if s01gu < 0 { - s01gu = 0 - } else if s01gu > 0xffff { - s01gu = 0xffff - } - if s01bu < 0 { - s01bu = 0 - } else if s01bu > 0xffff { - s01bu = 0xffff - } - - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s11j := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(sx1))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s11yy1 := int(src.Y[s11i]) * 0x10101 - s11cb1 := int(src.Cb[s11j]) - 128 - s11cr1 := int(src.Cr[s11j]) - 128 - s11ru := (s11yy1 + 91881*s11cr1) >> 8 - s11gu := (s11yy1 - 22554*s11cb1 - 46802*s11cr1) >> 8 - s11bu := (s11yy1 + 116130*s11cb1) >> 8 - if s11ru < 0 { - s11ru = 0 - } else if s11ru > 0xffff { - s11ru = 0xffff - } - if s11gu < 0 { - s11gu = 0 - } else if s11gu > 0xffff { - s11gu = 0xffff - } - if s11bu < 0 { - s11bu = 0 - } else if s11bu > 0xffff { - s11bu = 0xffff - } - - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) scale_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.YCbCr, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s00j := ((sr.Min.Y+int(sy0))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx0))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s00yy1 := int(src.Y[s00i]) * 0x10101 - s00cb1 := int(src.Cb[s00j]) - 128 - s00cr1 := int(src.Cr[s00j]) - 128 - s00ru := (s00yy1 + 91881*s00cr1) >> 8 - s00gu := (s00yy1 - 22554*s00cb1 - 46802*s00cr1) >> 8 - s00bu := (s00yy1 + 116130*s00cb1) >> 8 - if s00ru < 0 { - s00ru = 0 - } else if s00ru > 0xffff { - s00ru = 0xffff - } - if s00gu < 0 { - s00gu = 0 - } else if s00gu > 0xffff { - s00gu = 0xffff - } - if s00bu < 0 { - s00bu = 0 - } else if s00bu > 0xffff { - s00bu = 0xffff - } - - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s10j := ((sr.Min.Y+int(sy0))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx1))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s10yy1 := int(src.Y[s10i]) * 0x10101 - s10cb1 := int(src.Cb[s10j]) - 128 - s10cr1 := int(src.Cr[s10j]) - 128 - s10ru := (s10yy1 + 91881*s10cr1) >> 8 - s10gu := (s10yy1 - 22554*s10cb1 - 46802*s10cr1) >> 8 - s10bu := (s10yy1 + 116130*s10cb1) >> 8 - if s10ru < 0 { - s10ru = 0 - } else if s10ru > 0xffff { - s10ru = 0xffff - } - if s10gu < 0 { - s10gu = 0 - } else if s10gu > 0xffff { - s10gu = 0xffff - } - if s10bu < 0 { - s10bu = 0 - } else if s10bu > 0xffff { - s10bu = 0xffff - } - - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s01j := ((sr.Min.Y+int(sy1))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx0))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s01yy1 := int(src.Y[s01i]) * 0x10101 - s01cb1 := int(src.Cb[s01j]) - 128 - s01cr1 := int(src.Cr[s01j]) - 128 - s01ru := (s01yy1 + 91881*s01cr1) >> 8 - s01gu := (s01yy1 - 22554*s01cb1 - 46802*s01cr1) >> 8 - s01bu := (s01yy1 + 116130*s01cb1) >> 8 - if s01ru < 0 { - s01ru = 0 - } else if s01ru > 0xffff { - s01ru = 0xffff - } - if s01gu < 0 { - s01gu = 0 - } else if s01gu > 0xffff { - s01gu = 0xffff - } - if s01bu < 0 { - s01bu = 0 - } else if s01bu > 0xffff { - s01bu = 0xffff - } - - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s11j := ((sr.Min.Y+int(sy1))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(sx1))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s11yy1 := int(src.Y[s11i]) * 0x10101 - s11cb1 := int(src.Cb[s11j]) - 128 - s11cr1 := int(src.Cr[s11j]) - 128 - s11ru := (s11yy1 + 91881*s11cr1) >> 8 - s11gu := (s11yy1 - 22554*s11cb1 - 46802*s11cr1) >> 8 - s11bu := (s11yy1 + 116130*s11cb1) >> 8 - if s11ru < 0 { - s11ru = 0 - } else if s11ru > 0xffff { - s11ru = 0xffff - } - if s11gu < 0 { - s11gu = 0 - } else if s11gu > 0xffff { - s11gu = 0xffff - } - if s11bu < 0 { - s11bu = 0 - } else if s11bu > 0xffff { - s11bu = 0xffff - } - - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) scale_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Rectangle, src *image.YCbCr, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s00j := ((sr.Min.Y+int(sy0))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s00yy1 := int(src.Y[s00i]) * 0x10101 - s00cb1 := int(src.Cb[s00j]) - 128 - s00cr1 := int(src.Cr[s00j]) - 128 - s00ru := (s00yy1 + 91881*s00cr1) >> 8 - s00gu := (s00yy1 - 22554*s00cb1 - 46802*s00cr1) >> 8 - s00bu := (s00yy1 + 116130*s00cb1) >> 8 - if s00ru < 0 { - s00ru = 0 - } else if s00ru > 0xffff { - s00ru = 0xffff - } - if s00gu < 0 { - s00gu = 0 - } else if s00gu > 0xffff { - s00gu = 0xffff - } - if s00bu < 0 { - s00bu = 0 - } else if s00bu > 0xffff { - s00bu = 0xffff - } - - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s10i := (sr.Min.Y+int(sy0)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s10j := ((sr.Min.Y+int(sy0))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s10yy1 := int(src.Y[s10i]) * 0x10101 - s10cb1 := int(src.Cb[s10j]) - 128 - s10cr1 := int(src.Cr[s10j]) - 128 - s10ru := (s10yy1 + 91881*s10cr1) >> 8 - s10gu := (s10yy1 - 22554*s10cb1 - 46802*s10cr1) >> 8 - s10bu := (s10yy1 + 116130*s10cb1) >> 8 - if s10ru < 0 { - s10ru = 0 - } else if s10ru > 0xffff { - s10ru = 0xffff - } - if s10gu < 0 { - s10gu = 0 - } else if s10gu > 0xffff { - s10gu = 0xffff - } - if s10bu < 0 { - s10bu = 0 - } else if s10bu > 0xffff { - s10bu = 0xffff - } - - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s01i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - s01j := ((sr.Min.Y+int(sy1))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx0) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s01yy1 := int(src.Y[s01i]) * 0x10101 - s01cb1 := int(src.Cb[s01j]) - 128 - s01cr1 := int(src.Cr[s01j]) - 128 - s01ru := (s01yy1 + 91881*s01cr1) >> 8 - s01gu := (s01yy1 - 22554*s01cb1 - 46802*s01cr1) >> 8 - s01bu := (s01yy1 + 116130*s01cb1) >> 8 - if s01ru < 0 { - s01ru = 0 - } else if s01ru > 0xffff { - s01ru = 0xffff - } - if s01gu < 0 { - s01gu = 0 - } else if s01gu > 0xffff { - s01gu = 0xffff - } - if s01bu < 0 { - s01bu = 0 - } else if s01bu > 0xffff { - s01bu = 0xffff - } - - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s11i := (sr.Min.Y+int(sy1)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - s11j := ((sr.Min.Y+int(sy1))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(sx1) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s11yy1 := int(src.Y[s11i]) * 0x10101 - s11cb1 := int(src.Cb[s11j]) - 128 - s11cr1 := int(src.Cr[s11j]) - 128 - s11ru := (s11yy1 + 91881*s11cr1) >> 8 - s11gu := (s11yy1 - 22554*s11cb1 - 46802*s11cr1) >> 8 - s11bu := (s11yy1 + 116130*s11cb1) >> 8 - if s11ru < 0 { - s11ru = 0 - } else if s11ru > 0xffff { - s11ru = 0xffff - } - if s11gu < 0 { - s11gu = 0 - } else if s11gu > 0xffff { - s11gu = 0xffff - } - if s11bu < 0 { - s11bu = 0 - } else if s11bu > 0xffff { - s11bu = 0xffff - } - - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) scale_RGBA_Image_Over(dst *image.RGBA, dr, adr image.Rectangle, src image.Image, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00ru, s00gu, s00bu, s00au := src.At(sr.Min.X+int(sx0), sr.Min.Y+int(sy0)).RGBA() - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10ru, s10gu, s10bu, s10au := src.At(sr.Min.X+int(sx1), sr.Min.Y+int(sy0)).RGBA() - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01ru, s01gu, s01bu, s01au := src.At(sr.Min.X+int(sx0), sr.Min.Y+int(sy1)).RGBA() - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11ru, s11gu, s11bu, s11au := src.At(sr.Min.X+int(sx1), sr.Min.Y+int(sy1)).RGBA() - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (ablInterpolator) scale_RGBA_Image_Src(dst *image.RGBA, dr, adr image.Rectangle, src image.Image, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00ru, s00gu, s00bu, s00au := src.At(sr.Min.X+int(sx0), sr.Min.Y+int(sy0)).RGBA() - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10ru, s10gu, s10bu, s10au := src.At(sr.Min.X+int(sx1), sr.Min.Y+int(sy0)).RGBA() - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01ru, s01gu, s01bu, s01au := src.At(sr.Min.X+int(sx0), sr.Min.Y+int(sy1)).RGBA() - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11ru, s11gu, s11bu, s11au := src.At(sr.Min.X+int(sx1), sr.Min.Y+int(sy1)).RGBA() - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (ablInterpolator) scale_Image_Image_Over(dst Image, dr, adr image.Rectangle, src image.Image, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00ru, s00gu, s00bu, s00au := src.At(sr.Min.X+int(sx0), sr.Min.Y+int(sy0)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx0), smp.Y+sr.Min.Y+int(sy0)).RGBA() - s00ru = s00ru * ma / 0xffff - s00gu = s00gu * ma / 0xffff - s00bu = s00bu * ma / 0xffff - s00au = s00au * ma / 0xffff - } - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10ru, s10gu, s10bu, s10au := src.At(sr.Min.X+int(sx1), sr.Min.Y+int(sy0)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx1), smp.Y+sr.Min.Y+int(sy0)).RGBA() - s10ru = s10ru * ma / 0xffff - s10gu = s10gu * ma / 0xffff - s10bu = s10bu * ma / 0xffff - s10au = s10au * ma / 0xffff - } - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01ru, s01gu, s01bu, s01au := src.At(sr.Min.X+int(sx0), sr.Min.Y+int(sy1)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx0), smp.Y+sr.Min.Y+int(sy1)).RGBA() - s01ru = s01ru * ma / 0xffff - s01gu = s01gu * ma / 0xffff - s01bu = s01bu * ma / 0xffff - s01au = s01au * ma / 0xffff - } - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11ru, s11gu, s11bu, s11au := src.At(sr.Min.X+int(sx1), sr.Min.Y+int(sy1)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx1), smp.Y+sr.Min.Y+int(sy1)).RGBA() - s11ru = s11ru * ma / 0xffff - s11gu = s11gu * ma / 0xffff - s11bu = s11bu * ma / 0xffff - s11au = s11au * ma / 0xffff - } - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - if dstMask != nil { - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - } - pa1 := 0xffff - pa - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } -} - -func (ablInterpolator) scale_Image_Image_Src(dst Image, dr, adr image.Rectangle, src image.Image, sr image.Rectangle, opts *Options) { - sw := int32(sr.Dx()) - sh := int32(sr.Dy()) - yscale := float64(sh) / float64(dr.Dy()) - xscale := float64(sw) / float64(dr.Dx()) - swMinus1, shMinus1 := sw-1, sh-1 - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - sy := (float64(dy)+0.5)*yscale - 0.5 - // If sy < 0, we will clamp sy0 to 0 anyway, so it doesn't matter if - // we say int32(sy) instead of int32(math.Floor(sy)). Similarly for - // sx, below. - sy0 := int32(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy1 := sy0 + 1 - if sy < 0 { - sy0, sy1 = 0, 0 - yFrac0, yFrac1 = 0, 1 - } else if sy1 > shMinus1 { - sy0, sy1 = shMinus1, shMinus1 - yFrac0, yFrac1 = 1, 0 - } - - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - sx := (float64(dx)+0.5)*xscale - 0.5 - sx0 := int32(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx1 := sx0 + 1 - if sx < 0 { - sx0, sx1 = 0, 0 - xFrac0, xFrac1 = 0, 1 - } else if sx1 > swMinus1 { - sx0, sx1 = swMinus1, swMinus1 - xFrac0, xFrac1 = 1, 0 - } - - s00ru, s00gu, s00bu, s00au := src.At(sr.Min.X+int(sx0), sr.Min.Y+int(sy0)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx0), smp.Y+sr.Min.Y+int(sy0)).RGBA() - s00ru = s00ru * ma / 0xffff - s00gu = s00gu * ma / 0xffff - s00bu = s00bu * ma / 0xffff - s00au = s00au * ma / 0xffff - } - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10ru, s10gu, s10bu, s10au := src.At(sr.Min.X+int(sx1), sr.Min.Y+int(sy0)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx1), smp.Y+sr.Min.Y+int(sy0)).RGBA() - s10ru = s10ru * ma / 0xffff - s10gu = s10gu * ma / 0xffff - s10bu = s10bu * ma / 0xffff - s10au = s10au * ma / 0xffff - } - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01ru, s01gu, s01bu, s01au := src.At(sr.Min.X+int(sx0), sr.Min.Y+int(sy1)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx0), smp.Y+sr.Min.Y+int(sy1)).RGBA() - s01ru = s01ru * ma / 0xffff - s01gu = s01gu * ma / 0xffff - s01bu = s01bu * ma / 0xffff - s01au = s01au * ma / 0xffff - } - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11ru, s11gu, s11bu, s11au := src.At(sr.Min.X+int(sx1), sr.Min.Y+int(sy1)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(sx1), smp.Y+sr.Min.Y+int(sy1)).RGBA() - s11ru = s11ru * ma / 0xffff - s11gu = s11gu * ma / 0xffff - s11bu = s11bu * ma / 0xffff - s11au = s11au * ma / 0xffff - } - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - if dstMask != nil { - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - pa1 := 0xffff - ma - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } else { - dstColorRGBA64.R = uint16(pr) - dstColorRGBA64.G = uint16(pg) - dstColorRGBA64.B = uint16(pb) - dstColorRGBA64.A = uint16(pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } - } -} - -func (ablInterpolator) transform_RGBA_Gray_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.Gray, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.Stride + (sx0 - src.Rect.Min.X) - s00ru := uint32(src.Pix[s00i]) * 0x101 - s00r := float64(s00ru) - s10i := (sy0-src.Rect.Min.Y)*src.Stride + (sx1 - src.Rect.Min.X) - s10ru := uint32(src.Pix[s10i]) * 0x101 - s10r := float64(s10ru) - s10r = xFrac1*s00r + xFrac0*s10r - s01i := (sy1-src.Rect.Min.Y)*src.Stride + (sx0 - src.Rect.Min.X) - s01ru := uint32(src.Pix[s01i]) * 0x101 - s01r := float64(s01ru) - s11i := (sy1-src.Rect.Min.Y)*src.Stride + (sx1 - src.Rect.Min.X) - s11ru := uint32(src.Pix[s11i]) * 0x101 - s11r := float64(s11ru) - s11r = xFrac1*s01r + xFrac0*s11r - s11r = yFrac1*s10r + yFrac0*s11r - pr := uint32(s11r) - out := uint8(pr >> 8) - dst.Pix[d+0] = out - dst.Pix[d+1] = out - dst.Pix[d+2] = out - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) transform_RGBA_NRGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.NRGBA, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - s00au := uint32(src.Pix[s00i+3]) * 0x101 - s00ru := uint32(src.Pix[s00i+0]) * s00au / 0xff - s00gu := uint32(src.Pix[s00i+1]) * s00au / 0xff - s00bu := uint32(src.Pix[s00i+2]) * s00au / 0xff - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10i := (sy0-src.Rect.Min.Y)*src.Stride + (sx1-src.Rect.Min.X)*4 - s10au := uint32(src.Pix[s10i+3]) * 0x101 - s10ru := uint32(src.Pix[s10i+0]) * s10au / 0xff - s10gu := uint32(src.Pix[s10i+1]) * s10au / 0xff - s10bu := uint32(src.Pix[s10i+2]) * s10au / 0xff - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01i := (sy1-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - s01au := uint32(src.Pix[s01i+3]) * 0x101 - s01ru := uint32(src.Pix[s01i+0]) * s01au / 0xff - s01gu := uint32(src.Pix[s01i+1]) * s01au / 0xff - s01bu := uint32(src.Pix[s01i+2]) * s01au / 0xff - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11i := (sy1-src.Rect.Min.Y)*src.Stride + (sx1-src.Rect.Min.X)*4 - s11au := uint32(src.Pix[s11i+3]) * 0x101 - s11ru := uint32(src.Pix[s11i+0]) * s11au / 0xff - s11gu := uint32(src.Pix[s11i+1]) * s11au / 0xff - s11bu := uint32(src.Pix[s11i+2]) * s11au / 0xff - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (ablInterpolator) transform_RGBA_NRGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.NRGBA, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - s00au := uint32(src.Pix[s00i+3]) * 0x101 - s00ru := uint32(src.Pix[s00i+0]) * s00au / 0xff - s00gu := uint32(src.Pix[s00i+1]) * s00au / 0xff - s00bu := uint32(src.Pix[s00i+2]) * s00au / 0xff - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10i := (sy0-src.Rect.Min.Y)*src.Stride + (sx1-src.Rect.Min.X)*4 - s10au := uint32(src.Pix[s10i+3]) * 0x101 - s10ru := uint32(src.Pix[s10i+0]) * s10au / 0xff - s10gu := uint32(src.Pix[s10i+1]) * s10au / 0xff - s10bu := uint32(src.Pix[s10i+2]) * s10au / 0xff - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01i := (sy1-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - s01au := uint32(src.Pix[s01i+3]) * 0x101 - s01ru := uint32(src.Pix[s01i+0]) * s01au / 0xff - s01gu := uint32(src.Pix[s01i+1]) * s01au / 0xff - s01bu := uint32(src.Pix[s01i+2]) * s01au / 0xff - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11i := (sy1-src.Rect.Min.Y)*src.Stride + (sx1-src.Rect.Min.X)*4 - s11au := uint32(src.Pix[s11i+3]) * 0x101 - s11ru := uint32(src.Pix[s11i+0]) * s11au / 0xff - s11gu := uint32(src.Pix[s11i+1]) * s11au / 0xff - s11bu := uint32(src.Pix[s11i+2]) * s11au / 0xff - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (ablInterpolator) transform_RGBA_RGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.RGBA, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - s00ru := uint32(src.Pix[s00i+0]) * 0x101 - s00gu := uint32(src.Pix[s00i+1]) * 0x101 - s00bu := uint32(src.Pix[s00i+2]) * 0x101 - s00au := uint32(src.Pix[s00i+3]) * 0x101 - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10i := (sy0-src.Rect.Min.Y)*src.Stride + (sx1-src.Rect.Min.X)*4 - s10ru := uint32(src.Pix[s10i+0]) * 0x101 - s10gu := uint32(src.Pix[s10i+1]) * 0x101 - s10bu := uint32(src.Pix[s10i+2]) * 0x101 - s10au := uint32(src.Pix[s10i+3]) * 0x101 - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01i := (sy1-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - s01ru := uint32(src.Pix[s01i+0]) * 0x101 - s01gu := uint32(src.Pix[s01i+1]) * 0x101 - s01bu := uint32(src.Pix[s01i+2]) * 0x101 - s01au := uint32(src.Pix[s01i+3]) * 0x101 - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11i := (sy1-src.Rect.Min.Y)*src.Stride + (sx1-src.Rect.Min.X)*4 - s11ru := uint32(src.Pix[s11i+0]) * 0x101 - s11gu := uint32(src.Pix[s11i+1]) * 0x101 - s11bu := uint32(src.Pix[s11i+2]) * 0x101 - s11au := uint32(src.Pix[s11i+3]) * 0x101 - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (ablInterpolator) transform_RGBA_RGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.RGBA, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - s00ru := uint32(src.Pix[s00i+0]) * 0x101 - s00gu := uint32(src.Pix[s00i+1]) * 0x101 - s00bu := uint32(src.Pix[s00i+2]) * 0x101 - s00au := uint32(src.Pix[s00i+3]) * 0x101 - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10i := (sy0-src.Rect.Min.Y)*src.Stride + (sx1-src.Rect.Min.X)*4 - s10ru := uint32(src.Pix[s10i+0]) * 0x101 - s10gu := uint32(src.Pix[s10i+1]) * 0x101 - s10bu := uint32(src.Pix[s10i+2]) * 0x101 - s10au := uint32(src.Pix[s10i+3]) * 0x101 - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01i := (sy1-src.Rect.Min.Y)*src.Stride + (sx0-src.Rect.Min.X)*4 - s01ru := uint32(src.Pix[s01i+0]) * 0x101 - s01gu := uint32(src.Pix[s01i+1]) * 0x101 - s01bu := uint32(src.Pix[s01i+2]) * 0x101 - s01au := uint32(src.Pix[s01i+3]) * 0x101 - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11i := (sy1-src.Rect.Min.Y)*src.Stride + (sx1-src.Rect.Min.X)*4 - s11ru := uint32(src.Pix[s11i+0]) * 0x101 - s11gu := uint32(src.Pix[s11i+1]) * 0x101 - s11bu := uint32(src.Pix[s11i+2]) * 0x101 - s11au := uint32(src.Pix[s11i+3]) * 0x101 - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (ablInterpolator) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - s00j := (sy0-src.Rect.Min.Y)*src.CStride + (sx0 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s00yy1 := int(src.Y[s00i]) * 0x10101 - s00cb1 := int(src.Cb[s00j]) - 128 - s00cr1 := int(src.Cr[s00j]) - 128 - s00ru := (s00yy1 + 91881*s00cr1) >> 8 - s00gu := (s00yy1 - 22554*s00cb1 - 46802*s00cr1) >> 8 - s00bu := (s00yy1 + 116130*s00cb1) >> 8 - if s00ru < 0 { - s00ru = 0 - } else if s00ru > 0xffff { - s00ru = 0xffff - } - if s00gu < 0 { - s00gu = 0 - } else if s00gu > 0xffff { - s00gu = 0xffff - } - if s00bu < 0 { - s00bu = 0 - } else if s00bu > 0xffff { - s00bu = 0xffff - } - - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s10i := (sy0-src.Rect.Min.Y)*src.YStride + (sx1 - src.Rect.Min.X) - s10j := (sy0-src.Rect.Min.Y)*src.CStride + (sx1 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s10yy1 := int(src.Y[s10i]) * 0x10101 - s10cb1 := int(src.Cb[s10j]) - 128 - s10cr1 := int(src.Cr[s10j]) - 128 - s10ru := (s10yy1 + 91881*s10cr1) >> 8 - s10gu := (s10yy1 - 22554*s10cb1 - 46802*s10cr1) >> 8 - s10bu := (s10yy1 + 116130*s10cb1) >> 8 - if s10ru < 0 { - s10ru = 0 - } else if s10ru > 0xffff { - s10ru = 0xffff - } - if s10gu < 0 { - s10gu = 0 - } else if s10gu > 0xffff { - s10gu = 0xffff - } - if s10bu < 0 { - s10bu = 0 - } else if s10bu > 0xffff { - s10bu = 0xffff - } - - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s01i := (sy1-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - s01j := (sy1-src.Rect.Min.Y)*src.CStride + (sx0 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s01yy1 := int(src.Y[s01i]) * 0x10101 - s01cb1 := int(src.Cb[s01j]) - 128 - s01cr1 := int(src.Cr[s01j]) - 128 - s01ru := (s01yy1 + 91881*s01cr1) >> 8 - s01gu := (s01yy1 - 22554*s01cb1 - 46802*s01cr1) >> 8 - s01bu := (s01yy1 + 116130*s01cb1) >> 8 - if s01ru < 0 { - s01ru = 0 - } else if s01ru > 0xffff { - s01ru = 0xffff - } - if s01gu < 0 { - s01gu = 0 - } else if s01gu > 0xffff { - s01gu = 0xffff - } - if s01bu < 0 { - s01bu = 0 - } else if s01bu > 0xffff { - s01bu = 0xffff - } - - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s11i := (sy1-src.Rect.Min.Y)*src.YStride + (sx1 - src.Rect.Min.X) - s11j := (sy1-src.Rect.Min.Y)*src.CStride + (sx1 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s11yy1 := int(src.Y[s11i]) * 0x10101 - s11cb1 := int(src.Cb[s11j]) - 128 - s11cr1 := int(src.Cr[s11j]) - 128 - s11ru := (s11yy1 + 91881*s11cr1) >> 8 - s11gu := (s11yy1 - 22554*s11cb1 - 46802*s11cr1) >> 8 - s11bu := (s11yy1 + 116130*s11cb1) >> 8 - if s11ru < 0 { - s11ru = 0 - } else if s11ru > 0xffff { - s11ru = 0xffff - } - if s11gu < 0 { - s11gu = 0 - } else if s11gu > 0xffff { - s11gu = 0xffff - } - if s11bu < 0 { - s11bu = 0 - } else if s11bu > 0xffff { - s11bu = 0xffff - } - - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - s00j := (sy0-src.Rect.Min.Y)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s00yy1 := int(src.Y[s00i]) * 0x10101 - s00cb1 := int(src.Cb[s00j]) - 128 - s00cr1 := int(src.Cr[s00j]) - 128 - s00ru := (s00yy1 + 91881*s00cr1) >> 8 - s00gu := (s00yy1 - 22554*s00cb1 - 46802*s00cr1) >> 8 - s00bu := (s00yy1 + 116130*s00cb1) >> 8 - if s00ru < 0 { - s00ru = 0 - } else if s00ru > 0xffff { - s00ru = 0xffff - } - if s00gu < 0 { - s00gu = 0 - } else if s00gu > 0xffff { - s00gu = 0xffff - } - if s00bu < 0 { - s00bu = 0 - } else if s00bu > 0xffff { - s00bu = 0xffff - } - - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s10i := (sy0-src.Rect.Min.Y)*src.YStride + (sx1 - src.Rect.Min.X) - s10j := (sy0-src.Rect.Min.Y)*src.CStride + ((sx1)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s10yy1 := int(src.Y[s10i]) * 0x10101 - s10cb1 := int(src.Cb[s10j]) - 128 - s10cr1 := int(src.Cr[s10j]) - 128 - s10ru := (s10yy1 + 91881*s10cr1) >> 8 - s10gu := (s10yy1 - 22554*s10cb1 - 46802*s10cr1) >> 8 - s10bu := (s10yy1 + 116130*s10cb1) >> 8 - if s10ru < 0 { - s10ru = 0 - } else if s10ru > 0xffff { - s10ru = 0xffff - } - if s10gu < 0 { - s10gu = 0 - } else if s10gu > 0xffff { - s10gu = 0xffff - } - if s10bu < 0 { - s10bu = 0 - } else if s10bu > 0xffff { - s10bu = 0xffff - } - - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s01i := (sy1-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - s01j := (sy1-src.Rect.Min.Y)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s01yy1 := int(src.Y[s01i]) * 0x10101 - s01cb1 := int(src.Cb[s01j]) - 128 - s01cr1 := int(src.Cr[s01j]) - 128 - s01ru := (s01yy1 + 91881*s01cr1) >> 8 - s01gu := (s01yy1 - 22554*s01cb1 - 46802*s01cr1) >> 8 - s01bu := (s01yy1 + 116130*s01cb1) >> 8 - if s01ru < 0 { - s01ru = 0 - } else if s01ru > 0xffff { - s01ru = 0xffff - } - if s01gu < 0 { - s01gu = 0 - } else if s01gu > 0xffff { - s01gu = 0xffff - } - if s01bu < 0 { - s01bu = 0 - } else if s01bu > 0xffff { - s01bu = 0xffff - } - - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s11i := (sy1-src.Rect.Min.Y)*src.YStride + (sx1 - src.Rect.Min.X) - s11j := (sy1-src.Rect.Min.Y)*src.CStride + ((sx1)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s11yy1 := int(src.Y[s11i]) * 0x10101 - s11cb1 := int(src.Cb[s11j]) - 128 - s11cr1 := int(src.Cr[s11j]) - 128 - s11ru := (s11yy1 + 91881*s11cr1) >> 8 - s11gu := (s11yy1 - 22554*s11cb1 - 46802*s11cr1) >> 8 - s11bu := (s11yy1 + 116130*s11cb1) >> 8 - if s11ru < 0 { - s11ru = 0 - } else if s11ru > 0xffff { - s11ru = 0xffff - } - if s11gu < 0 { - s11gu = 0 - } else if s11gu > 0xffff { - s11gu = 0xffff - } - if s11bu < 0 { - s11bu = 0 - } else if s11bu > 0xffff { - s11bu = 0xffff - } - - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - s00j := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s00yy1 := int(src.Y[s00i]) * 0x10101 - s00cb1 := int(src.Cb[s00j]) - 128 - s00cr1 := int(src.Cr[s00j]) - 128 - s00ru := (s00yy1 + 91881*s00cr1) >> 8 - s00gu := (s00yy1 - 22554*s00cb1 - 46802*s00cr1) >> 8 - s00bu := (s00yy1 + 116130*s00cb1) >> 8 - if s00ru < 0 { - s00ru = 0 - } else if s00ru > 0xffff { - s00ru = 0xffff - } - if s00gu < 0 { - s00gu = 0 - } else if s00gu > 0xffff { - s00gu = 0xffff - } - if s00bu < 0 { - s00bu = 0 - } else if s00bu > 0xffff { - s00bu = 0xffff - } - - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s10i := (sy0-src.Rect.Min.Y)*src.YStride + (sx1 - src.Rect.Min.X) - s10j := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + ((sx1)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s10yy1 := int(src.Y[s10i]) * 0x10101 - s10cb1 := int(src.Cb[s10j]) - 128 - s10cr1 := int(src.Cr[s10j]) - 128 - s10ru := (s10yy1 + 91881*s10cr1) >> 8 - s10gu := (s10yy1 - 22554*s10cb1 - 46802*s10cr1) >> 8 - s10bu := (s10yy1 + 116130*s10cb1) >> 8 - if s10ru < 0 { - s10ru = 0 - } else if s10ru > 0xffff { - s10ru = 0xffff - } - if s10gu < 0 { - s10gu = 0 - } else if s10gu > 0xffff { - s10gu = 0xffff - } - if s10bu < 0 { - s10bu = 0 - } else if s10bu > 0xffff { - s10bu = 0xffff - } - - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s01i := (sy1-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - s01j := ((sy1)/2-src.Rect.Min.Y/2)*src.CStride + ((sx0)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s01yy1 := int(src.Y[s01i]) * 0x10101 - s01cb1 := int(src.Cb[s01j]) - 128 - s01cr1 := int(src.Cr[s01j]) - 128 - s01ru := (s01yy1 + 91881*s01cr1) >> 8 - s01gu := (s01yy1 - 22554*s01cb1 - 46802*s01cr1) >> 8 - s01bu := (s01yy1 + 116130*s01cb1) >> 8 - if s01ru < 0 { - s01ru = 0 - } else if s01ru > 0xffff { - s01ru = 0xffff - } - if s01gu < 0 { - s01gu = 0 - } else if s01gu > 0xffff { - s01gu = 0xffff - } - if s01bu < 0 { - s01bu = 0 - } else if s01bu > 0xffff { - s01bu = 0xffff - } - - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s11i := (sy1-src.Rect.Min.Y)*src.YStride + (sx1 - src.Rect.Min.X) - s11j := ((sy1)/2-src.Rect.Min.Y/2)*src.CStride + ((sx1)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s11yy1 := int(src.Y[s11i]) * 0x10101 - s11cb1 := int(src.Cb[s11j]) - 128 - s11cr1 := int(src.Cr[s11j]) - 128 - s11ru := (s11yy1 + 91881*s11cr1) >> 8 - s11gu := (s11yy1 - 22554*s11cb1 - 46802*s11cr1) >> 8 - s11bu := (s11yy1 + 116130*s11cb1) >> 8 - if s11ru < 0 { - s11ru = 0 - } else if s11ru > 0xffff { - s11ru = 0xffff - } - if s11gu < 0 { - s11gu = 0 - } else if s11gu > 0xffff { - s11gu = 0xffff - } - if s11bu < 0 { - s11bu = 0 - } else if s11bu > 0xffff { - s11bu = 0xffff - } - - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00i := (sy0-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - s00j := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + (sx0 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s00yy1 := int(src.Y[s00i]) * 0x10101 - s00cb1 := int(src.Cb[s00j]) - 128 - s00cr1 := int(src.Cr[s00j]) - 128 - s00ru := (s00yy1 + 91881*s00cr1) >> 8 - s00gu := (s00yy1 - 22554*s00cb1 - 46802*s00cr1) >> 8 - s00bu := (s00yy1 + 116130*s00cb1) >> 8 - if s00ru < 0 { - s00ru = 0 - } else if s00ru > 0xffff { - s00ru = 0xffff - } - if s00gu < 0 { - s00gu = 0 - } else if s00gu > 0xffff { - s00gu = 0xffff - } - if s00bu < 0 { - s00bu = 0 - } else if s00bu > 0xffff { - s00bu = 0xffff - } - - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s10i := (sy0-src.Rect.Min.Y)*src.YStride + (sx1 - src.Rect.Min.X) - s10j := ((sy0)/2-src.Rect.Min.Y/2)*src.CStride + (sx1 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s10yy1 := int(src.Y[s10i]) * 0x10101 - s10cb1 := int(src.Cb[s10j]) - 128 - s10cr1 := int(src.Cr[s10j]) - 128 - s10ru := (s10yy1 + 91881*s10cr1) >> 8 - s10gu := (s10yy1 - 22554*s10cb1 - 46802*s10cr1) >> 8 - s10bu := (s10yy1 + 116130*s10cb1) >> 8 - if s10ru < 0 { - s10ru = 0 - } else if s10ru > 0xffff { - s10ru = 0xffff - } - if s10gu < 0 { - s10gu = 0 - } else if s10gu > 0xffff { - s10gu = 0xffff - } - if s10bu < 0 { - s10bu = 0 - } else if s10bu > 0xffff { - s10bu = 0xffff - } - - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s01i := (sy1-src.Rect.Min.Y)*src.YStride + (sx0 - src.Rect.Min.X) - s01j := ((sy1)/2-src.Rect.Min.Y/2)*src.CStride + (sx0 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s01yy1 := int(src.Y[s01i]) * 0x10101 - s01cb1 := int(src.Cb[s01j]) - 128 - s01cr1 := int(src.Cr[s01j]) - 128 - s01ru := (s01yy1 + 91881*s01cr1) >> 8 - s01gu := (s01yy1 - 22554*s01cb1 - 46802*s01cr1) >> 8 - s01bu := (s01yy1 + 116130*s01cb1) >> 8 - if s01ru < 0 { - s01ru = 0 - } else if s01ru > 0xffff { - s01ru = 0xffff - } - if s01gu < 0 { - s01gu = 0 - } else if s01gu > 0xffff { - s01gu = 0xffff - } - if s01bu < 0 { - s01bu = 0 - } else if s01bu > 0xffff { - s01bu = 0xffff - } - - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s11i := (sy1-src.Rect.Min.Y)*src.YStride + (sx1 - src.Rect.Min.X) - s11j := ((sy1)/2-src.Rect.Min.Y/2)*src.CStride + (sx1 - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - s11yy1 := int(src.Y[s11i]) * 0x10101 - s11cb1 := int(src.Cb[s11j]) - 128 - s11cr1 := int(src.Cr[s11j]) - 128 - s11ru := (s11yy1 + 91881*s11cr1) >> 8 - s11gu := (s11yy1 - 22554*s11cb1 - 46802*s11cr1) >> 8 - s11bu := (s11yy1 + 116130*s11cb1) >> 8 - if s11ru < 0 { - s11ru = 0 - } else if s11ru > 0xffff { - s11ru = 0xffff - } - if s11gu < 0 { - s11gu = 0 - } else if s11gu > 0xffff { - s11gu = 0xffff - } - if s11bu < 0 { - s11bu = 0 - } else if s11bu > 0xffff { - s11bu = 0xffff - } - - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (ablInterpolator) transform_RGBA_Image_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00ru, s00gu, s00bu, s00au := src.At(sx0, sy0).RGBA() - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10ru, s10gu, s10bu, s10au := src.At(sx1, sy0).RGBA() - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01ru, s01gu, s01bu, s01au := src.At(sx0, sy1).RGBA() - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11ru, s11gu, s11bu, s11au := src.At(sx1, sy1).RGBA() - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - pa1 := (0xffff - pa) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } -} - -func (ablInterpolator) transform_RGBA_Image_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, opts *Options) { - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00ru, s00gu, s00bu, s00au := src.At(sx0, sy0).RGBA() - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10ru, s10gu, s10bu, s10au := src.At(sx1, sy0).RGBA() - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01ru, s01gu, s01bu, s01au := src.At(sx0, sy1).RGBA() - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11ru, s11gu, s11bu, s11au := src.At(sx1, sy1).RGBA() - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - dst.Pix[d+0] = uint8(pr >> 8) - dst.Pix[d+1] = uint8(pg >> 8) - dst.Pix[d+2] = uint8(pb >> 8) - dst.Pix[d+3] = uint8(pa >> 8) - } - } -} - -func (ablInterpolator) transform_Image_Image_Over(dst Image, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, opts *Options) { - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00ru, s00gu, s00bu, s00au := src.At(sx0, sy0).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx0, smp.Y+sy0).RGBA() - s00ru = s00ru * ma / 0xffff - s00gu = s00gu * ma / 0xffff - s00bu = s00bu * ma / 0xffff - s00au = s00au * ma / 0xffff - } - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10ru, s10gu, s10bu, s10au := src.At(sx1, sy0).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx1, smp.Y+sy0).RGBA() - s10ru = s10ru * ma / 0xffff - s10gu = s10gu * ma / 0xffff - s10bu = s10bu * ma / 0xffff - s10au = s10au * ma / 0xffff - } - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01ru, s01gu, s01bu, s01au := src.At(sx0, sy1).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx0, smp.Y+sy1).RGBA() - s01ru = s01ru * ma / 0xffff - s01gu = s01gu * ma / 0xffff - s01bu = s01bu * ma / 0xffff - s01au = s01au * ma / 0xffff - } - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11ru, s11gu, s11bu, s11au := src.At(sx1, sy1).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx1, smp.Y+sy1).RGBA() - s11ru = s11ru * ma / 0xffff - s11gu = s11gu * ma / 0xffff - s11bu = s11bu * ma / 0xffff - s11au = s11au * ma / 0xffff - } - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - if dstMask != nil { - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - } - pa1 := 0xffff - pa - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } -} - -func (ablInterpolator) transform_Image_Image_Src(dst Image, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, opts *Options) { - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - sx -= 0.5 - sx0 := int(sx) - xFrac0 := sx - float64(sx0) - xFrac1 := 1 - xFrac0 - sx0 += bias.X - sx1 := sx0 + 1 - if sx0 < sr.Min.X { - sx0, sx1 = sr.Min.X, sr.Min.X - xFrac0, xFrac1 = 0, 1 - } else if sx1 >= sr.Max.X { - sx0, sx1 = sr.Max.X-1, sr.Max.X-1 - xFrac0, xFrac1 = 1, 0 - } - - sy -= 0.5 - sy0 := int(sy) - yFrac0 := sy - float64(sy0) - yFrac1 := 1 - yFrac0 - sy0 += bias.Y - sy1 := sy0 + 1 - if sy0 < sr.Min.Y { - sy0, sy1 = sr.Min.Y, sr.Min.Y - yFrac0, yFrac1 = 0, 1 - } else if sy1 >= sr.Max.Y { - sy0, sy1 = sr.Max.Y-1, sr.Max.Y-1 - yFrac0, yFrac1 = 1, 0 - } - - s00ru, s00gu, s00bu, s00au := src.At(sx0, sy0).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx0, smp.Y+sy0).RGBA() - s00ru = s00ru * ma / 0xffff - s00gu = s00gu * ma / 0xffff - s00bu = s00bu * ma / 0xffff - s00au = s00au * ma / 0xffff - } - s00r := float64(s00ru) - s00g := float64(s00gu) - s00b := float64(s00bu) - s00a := float64(s00au) - s10ru, s10gu, s10bu, s10au := src.At(sx1, sy0).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx1, smp.Y+sy0).RGBA() - s10ru = s10ru * ma / 0xffff - s10gu = s10gu * ma / 0xffff - s10bu = s10bu * ma / 0xffff - s10au = s10au * ma / 0xffff - } - s10r := float64(s10ru) - s10g := float64(s10gu) - s10b := float64(s10bu) - s10a := float64(s10au) - s10r = xFrac1*s00r + xFrac0*s10r - s10g = xFrac1*s00g + xFrac0*s10g - s10b = xFrac1*s00b + xFrac0*s10b - s10a = xFrac1*s00a + xFrac0*s10a - s01ru, s01gu, s01bu, s01au := src.At(sx0, sy1).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx0, smp.Y+sy1).RGBA() - s01ru = s01ru * ma / 0xffff - s01gu = s01gu * ma / 0xffff - s01bu = s01bu * ma / 0xffff - s01au = s01au * ma / 0xffff - } - s01r := float64(s01ru) - s01g := float64(s01gu) - s01b := float64(s01bu) - s01a := float64(s01au) - s11ru, s11gu, s11bu, s11au := src.At(sx1, sy1).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sx1, smp.Y+sy1).RGBA() - s11ru = s11ru * ma / 0xffff - s11gu = s11gu * ma / 0xffff - s11bu = s11bu * ma / 0xffff - s11au = s11au * ma / 0xffff - } - s11r := float64(s11ru) - s11g := float64(s11gu) - s11b := float64(s11bu) - s11a := float64(s11au) - s11r = xFrac1*s01r + xFrac0*s11r - s11g = xFrac1*s01g + xFrac0*s11g - s11b = xFrac1*s01b + xFrac0*s11b - s11a = xFrac1*s01a + xFrac0*s11a - s11r = yFrac1*s10r + yFrac0*s11r - s11g = yFrac1*s10g + yFrac0*s11g - s11b = yFrac1*s10b + yFrac0*s11b - s11a = yFrac1*s10a + yFrac0*s11a - pr := uint32(s11r) - pg := uint32(s11g) - pb := uint32(s11b) - pa := uint32(s11a) - if dstMask != nil { - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr = pr * ma / 0xffff - pg = pg * ma / 0xffff - pb = pb * ma / 0xffff - pa = pa * ma / 0xffff - pa1 := 0xffff - ma - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } else { - dstColorRGBA64.R = uint16(pr) - dstColorRGBA64.G = uint16(pg) - dstColorRGBA64.B = uint16(pb) - dstColorRGBA64.A = uint16(pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } - } -} - -func (z *kernelScaler) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) { - if z.dw != int32(dr.Dx()) || z.dh != int32(dr.Dy()) || z.sw != int32(sr.Dx()) || z.sh != int32(sr.Dy()) { - z.kernel.Scale(dst, dr, src, sr, op, opts) - return - } - - var o Options - if opts != nil { - o = *opts - } - - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - - if _, ok := src.(*image.Uniform); ok && o.DstMask == nil && o.SrcMask == nil && sr.In(src.Bounds()) { - Draw(dst, dr, src, src.Bounds().Min, op) - return - } - - // Create a temporary buffer: - // scaleX distributes the source image's columns over the temporary image. - // scaleY distributes the temporary image's rows over the destination image. - var tmp [][4]float64 - if z.pool.New != nil { - tmpp := z.pool.Get().(*[][4]float64) - defer z.pool.Put(tmpp) - tmp = *tmpp - } else { - tmp = z.makeTmpBuf() - } - - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.SrcMask != nil || !sr.In(src.Bounds()) { - z.scaleX_Image(tmp, src, sr, &o) - } else { - switch src := src.(type) { - case *image.Gray: - z.scaleX_Gray(tmp, src, sr, &o) - case *image.NRGBA: - z.scaleX_NRGBA(tmp, src, sr, &o) - case *image.RGBA: - z.scaleX_RGBA(tmp, src, sr, &o) - case *image.YCbCr: - switch src.SubsampleRatio { - default: - z.scaleX_Image(tmp, src, sr, &o) - case image.YCbCrSubsampleRatio444: - z.scaleX_YCbCr444(tmp, src, sr, &o) - case image.YCbCrSubsampleRatio422: - z.scaleX_YCbCr422(tmp, src, sr, &o) - case image.YCbCrSubsampleRatio420: - z.scaleX_YCbCr420(tmp, src, sr, &o) - case image.YCbCrSubsampleRatio440: - z.scaleX_YCbCr440(tmp, src, sr, &o) - } - default: - z.scaleX_Image(tmp, src, sr, &o) - } - } - - if o.DstMask != nil { - switch op { - case Over: - z.scaleY_Image_Over(dst, dr, adr, tmp, &o) - case Src: - z.scaleY_Image_Src(dst, dr, adr, tmp, &o) - } - } else { - switch op { - case Over: - switch dst := dst.(type) { - case *image.RGBA: - z.scaleY_RGBA_Over(dst, dr, adr, tmp, &o) - default: - z.scaleY_Image_Over(dst, dr, adr, tmp, &o) - } - case Src: - switch dst := dst.(type) { - case *image.RGBA: - z.scaleY_RGBA_Src(dst, dr, adr, tmp, &o) - default: - z.scaleY_Image_Src(dst, dr, adr, tmp, &o) - } - } - } -} - -func (q *Kernel) Transform(dst Image, s2d f64.Aff3, src image.Image, sr image.Rectangle, op Op, opts *Options) { - var o Options - if opts != nil { - o = *opts - } - - dr := transformRect(&s2d, &sr) - // adr is the affected destination pixels. - adr := dst.Bounds().Intersect(dr) - adr, o.DstMask = clipAffectedDestRect(adr, o.DstMask, o.DstMaskP) - if adr.Empty() || sr.Empty() { - return - } - if op == Over && o.SrcMask == nil && opaque(src) { - op = Src - } - d2s := invert(&s2d) - // bias is a translation of the mapping from dst coordinates to src - // coordinates such that the latter temporarily have non-negative X - // and Y coordinates. This allows us to write int(f) instead of - // int(math.Floor(f)), since "round to zero" and "round down" are - // equivalent when f >= 0, but the former is much cheaper. The X-- - // and Y-- are because the TransformLeaf methods have a "sx -= 0.5" - // adjustment. - bias := transformRect(&d2s, &adr).Min - bias.X-- - bias.Y-- - d2s[2] -= float64(bias.X) - d2s[5] -= float64(bias.Y) - // Make adr relative to dr.Min. - adr = adr.Sub(dr.Min) - - if u, ok := src.(*image.Uniform); ok && o.DstMask != nil && o.SrcMask != nil && sr.In(src.Bounds()) { - transform_Uniform(dst, dr, adr, &d2s, u, sr, bias, op) - return - } - - xscale := abs(d2s[0]) - if s := abs(d2s[1]); xscale < s { - xscale = s - } - yscale := abs(d2s[3]) - if s := abs(d2s[4]); yscale < s { - yscale = s - } - - // sr is the source pixels. If it extends beyond the src bounds, - // we cannot use the type-specific fast paths, as they access - // the Pix fields directly without bounds checking. - // - // Similarly, the fast paths assume that the masks are nil. - if o.DstMask != nil || o.SrcMask != nil || !sr.In(src.Bounds()) { - switch op { - case Over: - q.transform_Image_Image_Over(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case Src: - q.transform_Image_Image_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - } - } else { - switch op { - case Over: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.NRGBA: - q.transform_RGBA_NRGBA_Over(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case *image.RGBA: - q.transform_RGBA_RGBA_Over(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - default: - q.transform_RGBA_Image_Over(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - } - default: - switch src := src.(type) { - default: - q.transform_Image_Image_Over(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - } - } - case Src: - switch dst := dst.(type) { - case *image.RGBA: - switch src := src.(type) { - case *image.Gray: - q.transform_RGBA_Gray_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case *image.NRGBA: - q.transform_RGBA_NRGBA_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case *image.RGBA: - q.transform_RGBA_RGBA_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case *image.YCbCr: - switch src.SubsampleRatio { - default: - q.transform_RGBA_Image_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case image.YCbCrSubsampleRatio444: - q.transform_RGBA_YCbCr444_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case image.YCbCrSubsampleRatio422: - q.transform_RGBA_YCbCr422_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case image.YCbCrSubsampleRatio420: - q.transform_RGBA_YCbCr420_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - case image.YCbCrSubsampleRatio440: - q.transform_RGBA_YCbCr440_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - } - default: - q.transform_RGBA_Image_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - } - default: - switch src := src.(type) { - default: - q.transform_Image_Image_Src(dst, dr, adr, &d2s, src, sr, bias, xscale, yscale, &o) - } - } - } - } -} - -func (z *kernelScaler) scaleX_Gray(tmp [][4]float64, src *image.Gray, sr image.Rectangle, opts *Options) { - t := 0 - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr float64 - for _, c := range z.horizontal.contribs[s.i:s.j] { - pi := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.Stride + (sr.Min.X + int(c.coord) - src.Rect.Min.X) - pru := uint32(src.Pix[pi]) * 0x101 - pr += float64(pru) * c.weight - } - pr *= s.invTotalWeightFFFF - tmp[t] = [4]float64{ - pr, - pr, - pr, - 1, - } - t++ - } - } -} - -func (z *kernelScaler) scaleX_NRGBA(tmp [][4]float64, src *image.NRGBA, sr image.Rectangle, opts *Options) { - t := 0 - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr, pg, pb, pa float64 - for _, c := range z.horizontal.contribs[s.i:s.j] { - pi := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(c.coord)-src.Rect.Min.X)*4 - pau := uint32(src.Pix[pi+3]) * 0x101 - pru := uint32(src.Pix[pi+0]) * pau / 0xff - pgu := uint32(src.Pix[pi+1]) * pau / 0xff - pbu := uint32(src.Pix[pi+2]) * pau / 0xff - pr += float64(pru) * c.weight - pg += float64(pgu) * c.weight - pb += float64(pbu) * c.weight - pa += float64(pau) * c.weight - } - tmp[t] = [4]float64{ - pr * s.invTotalWeightFFFF, - pg * s.invTotalWeightFFFF, - pb * s.invTotalWeightFFFF, - pa * s.invTotalWeightFFFF, - } - t++ - } - } -} - -func (z *kernelScaler) scaleX_RGBA(tmp [][4]float64, src *image.RGBA, sr image.Rectangle, opts *Options) { - t := 0 - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr, pg, pb, pa float64 - for _, c := range z.horizontal.contribs[s.i:s.j] { - pi := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.Stride + (sr.Min.X+int(c.coord)-src.Rect.Min.X)*4 - pru := uint32(src.Pix[pi+0]) * 0x101 - pgu := uint32(src.Pix[pi+1]) * 0x101 - pbu := uint32(src.Pix[pi+2]) * 0x101 - pau := uint32(src.Pix[pi+3]) * 0x101 - pr += float64(pru) * c.weight - pg += float64(pgu) * c.weight - pb += float64(pbu) * c.weight - pa += float64(pau) * c.weight - } - tmp[t] = [4]float64{ - pr * s.invTotalWeightFFFF, - pg * s.invTotalWeightFFFF, - pb * s.invTotalWeightFFFF, - pa * s.invTotalWeightFFFF, - } - t++ - } - } -} - -func (z *kernelScaler) scaleX_YCbCr444(tmp [][4]float64, src *image.YCbCr, sr image.Rectangle, opts *Options) { - t := 0 - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr, pg, pb float64 - for _, c := range z.horizontal.contribs[s.i:s.j] { - pi := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(c.coord) - src.Rect.Min.X) - pj := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.CStride + (sr.Min.X + int(c.coord) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pru := (pyy1 + 91881*pcr1) >> 8 - pgu := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pbu := (pyy1 + 116130*pcb1) >> 8 - if pru < 0 { - pru = 0 - } else if pru > 0xffff { - pru = 0xffff - } - if pgu < 0 { - pgu = 0 - } else if pgu > 0xffff { - pgu = 0xffff - } - if pbu < 0 { - pbu = 0 - } else if pbu > 0xffff { - pbu = 0xffff - } - - pr += float64(pru) * c.weight - pg += float64(pgu) * c.weight - pb += float64(pbu) * c.weight - } - tmp[t] = [4]float64{ - pr * s.invTotalWeightFFFF, - pg * s.invTotalWeightFFFF, - pb * s.invTotalWeightFFFF, - 1, - } - t++ - } - } -} - -func (z *kernelScaler) scaleX_YCbCr422(tmp [][4]float64, src *image.YCbCr, sr image.Rectangle, opts *Options) { - t := 0 - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr, pg, pb float64 - for _, c := range z.horizontal.contribs[s.i:s.j] { - pi := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(c.coord) - src.Rect.Min.X) - pj := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.CStride + ((sr.Min.X+int(c.coord))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pru := (pyy1 + 91881*pcr1) >> 8 - pgu := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pbu := (pyy1 + 116130*pcb1) >> 8 - if pru < 0 { - pru = 0 - } else if pru > 0xffff { - pru = 0xffff - } - if pgu < 0 { - pgu = 0 - } else if pgu > 0xffff { - pgu = 0xffff - } - if pbu < 0 { - pbu = 0 - } else if pbu > 0xffff { - pbu = 0xffff - } - - pr += float64(pru) * c.weight - pg += float64(pgu) * c.weight - pb += float64(pbu) * c.weight - } - tmp[t] = [4]float64{ - pr * s.invTotalWeightFFFF, - pg * s.invTotalWeightFFFF, - pb * s.invTotalWeightFFFF, - 1, - } - t++ - } - } -} - -func (z *kernelScaler) scaleX_YCbCr420(tmp [][4]float64, src *image.YCbCr, sr image.Rectangle, opts *Options) { - t := 0 - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr, pg, pb float64 - for _, c := range z.horizontal.contribs[s.i:s.j] { - pi := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(c.coord) - src.Rect.Min.X) - pj := ((sr.Min.Y+int(y))/2-src.Rect.Min.Y/2)*src.CStride + ((sr.Min.X+int(c.coord))/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pru := (pyy1 + 91881*pcr1) >> 8 - pgu := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pbu := (pyy1 + 116130*pcb1) >> 8 - if pru < 0 { - pru = 0 - } else if pru > 0xffff { - pru = 0xffff - } - if pgu < 0 { - pgu = 0 - } else if pgu > 0xffff { - pgu = 0xffff - } - if pbu < 0 { - pbu = 0 - } else if pbu > 0xffff { - pbu = 0xffff - } - - pr += float64(pru) * c.weight - pg += float64(pgu) * c.weight - pb += float64(pbu) * c.weight - } - tmp[t] = [4]float64{ - pr * s.invTotalWeightFFFF, - pg * s.invTotalWeightFFFF, - pb * s.invTotalWeightFFFF, - 1, - } - t++ - } - } -} - -func (z *kernelScaler) scaleX_YCbCr440(tmp [][4]float64, src *image.YCbCr, sr image.Rectangle, opts *Options) { - t := 0 - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr, pg, pb float64 - for _, c := range z.horizontal.contribs[s.i:s.j] { - pi := (sr.Min.Y+int(y)-src.Rect.Min.Y)*src.YStride + (sr.Min.X + int(c.coord) - src.Rect.Min.X) - pj := ((sr.Min.Y+int(y))/2-src.Rect.Min.Y/2)*src.CStride + (sr.Min.X + int(c.coord) - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pru := (pyy1 + 91881*pcr1) >> 8 - pgu := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pbu := (pyy1 + 116130*pcb1) >> 8 - if pru < 0 { - pru = 0 - } else if pru > 0xffff { - pru = 0xffff - } - if pgu < 0 { - pgu = 0 - } else if pgu > 0xffff { - pgu = 0xffff - } - if pbu < 0 { - pbu = 0 - } else if pbu > 0xffff { - pbu = 0xffff - } - - pr += float64(pru) * c.weight - pg += float64(pgu) * c.weight - pb += float64(pbu) * c.weight - } - tmp[t] = [4]float64{ - pr * s.invTotalWeightFFFF, - pg * s.invTotalWeightFFFF, - pb * s.invTotalWeightFFFF, - 1, - } - t++ - } - } -} - -func (z *kernelScaler) scaleX_Image(tmp [][4]float64, src image.Image, sr image.Rectangle, opts *Options) { - t := 0 - srcMask, smp := opts.SrcMask, opts.SrcMaskP - for y := int32(0); y < z.sh; y++ { - for _, s := range z.horizontal.sources { - var pr, pg, pb, pa float64 - for _, c := range z.horizontal.contribs[s.i:s.j] { - pru, pgu, pbu, pau := src.At(sr.Min.X+int(c.coord), sr.Min.Y+int(y)).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+sr.Min.X+int(c.coord), smp.Y+sr.Min.Y+int(y)).RGBA() - pru = pru * ma / 0xffff - pgu = pgu * ma / 0xffff - pbu = pbu * ma / 0xffff - pau = pau * ma / 0xffff - } - pr += float64(pru) * c.weight - pg += float64(pgu) * c.weight - pb += float64(pbu) * c.weight - pa += float64(pau) * c.weight - } - tmp[t] = [4]float64{ - pr * s.invTotalWeightFFFF, - pg * s.invTotalWeightFFFF, - pb * s.invTotalWeightFFFF, - pa * s.invTotalWeightFFFF, - } - t++ - } - } -} - -func (z *kernelScaler) scaleY_RGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, tmp [][4]float64, opts *Options) { - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - d := (dr.Min.Y+adr.Min.Y-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+int(dx)-dst.Rect.Min.X)*4 - for _, s := range z.vertical.sources[adr.Min.Y:adr.Max.Y] { - var pr, pg, pb, pa float64 - for _, c := range z.vertical.contribs[s.i:s.j] { - p := &tmp[c.coord*z.dw+dx] - pr += p[0] * c.weight - pg += p[1] * c.weight - pb += p[2] * c.weight - pa += p[3] * c.weight - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - pr0 := uint32(ftou(pr * s.invTotalWeight)) - pg0 := uint32(ftou(pg * s.invTotalWeight)) - pb0 := uint32(ftou(pb * s.invTotalWeight)) - pa0 := uint32(ftou(pa * s.invTotalWeight)) - pa1 := (0xffff - uint32(pa0)) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr0) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg0) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb0) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa0) >> 8) - d += dst.Stride - } - } -} - -func (z *kernelScaler) scaleY_RGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, tmp [][4]float64, opts *Options) { - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - d := (dr.Min.Y+adr.Min.Y-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+int(dx)-dst.Rect.Min.X)*4 - for _, s := range z.vertical.sources[adr.Min.Y:adr.Max.Y] { - var pr, pg, pb, pa float64 - for _, c := range z.vertical.contribs[s.i:s.j] { - p := &tmp[c.coord*z.dw+dx] - pr += p[0] * c.weight - pg += p[1] * c.weight - pb += p[2] * c.weight - pa += p[3] * c.weight - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - dst.Pix[d+0] = uint8(ftou(pr*s.invTotalWeight) >> 8) - dst.Pix[d+1] = uint8(ftou(pg*s.invTotalWeight) >> 8) - dst.Pix[d+2] = uint8(ftou(pb*s.invTotalWeight) >> 8) - dst.Pix[d+3] = uint8(ftou(pa*s.invTotalWeight) >> 8) - d += dst.Stride - } - } -} - -func (z *kernelScaler) scaleY_Image_Over(dst Image, dr, adr image.Rectangle, tmp [][4]float64, opts *Options) { - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - for dy, s := range z.vertical.sources[adr.Min.Y:adr.Max.Y] { - var pr, pg, pb, pa float64 - for _, c := range z.vertical.contribs[s.i:s.j] { - p := &tmp[c.coord*z.dw+dx] - pr += p[0] * c.weight - pg += p[1] * c.weight - pb += p[2] * c.weight - pa += p[3] * c.weight - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(adr.Min.Y+dy)).RGBA() - pr0 := uint32(ftou(pr * s.invTotalWeight)) - pg0 := uint32(ftou(pg * s.invTotalWeight)) - pb0 := uint32(ftou(pb * s.invTotalWeight)) - pa0 := uint32(ftou(pa * s.invTotalWeight)) - if dstMask != nil { - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(adr.Min.Y+dy)).RGBA() - pr0 = pr0 * ma / 0xffff - pg0 = pg0 * ma / 0xffff - pb0 = pb0 * ma / 0xffff - pa0 = pa0 * ma / 0xffff - } - pa1 := 0xffff - pa0 - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr0) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg0) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb0) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa0) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(adr.Min.Y+dy), dstColor) - } - } -} - -func (z *kernelScaler) scaleY_Image_Src(dst Image, dr, adr image.Rectangle, tmp [][4]float64, opts *Options) { - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - for dy, s := range z.vertical.sources[adr.Min.Y:adr.Max.Y] { - var pr, pg, pb, pa float64 - for _, c := range z.vertical.contribs[s.i:s.j] { - p := &tmp[c.coord*z.dw+dx] - pr += p[0] * c.weight - pg += p[1] * c.weight - pb += p[2] * c.weight - pa += p[3] * c.weight - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - if dstMask != nil { - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(adr.Min.Y+dy)).RGBA() - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(adr.Min.Y+dy)).RGBA() - pr := uint32(ftou(pr*s.invTotalWeight)) * ma / 0xffff - pg := uint32(ftou(pg*s.invTotalWeight)) * ma / 0xffff - pb := uint32(ftou(pb*s.invTotalWeight)) * ma / 0xffff - pa := uint32(ftou(pa*s.invTotalWeight)) * ma / 0xffff - pa1 := 0xffff - ma - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(adr.Min.Y+dy), dstColor) - } else { - dstColorRGBA64.R = ftou(pr * s.invTotalWeight) - dstColorRGBA64.G = ftou(pg * s.invTotalWeight) - dstColorRGBA64.B = ftou(pb * s.invTotalWeight) - dstColorRGBA64.A = ftou(pa * s.invTotalWeight) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(adr.Min.Y+dy), dstColor) - } - } - } -} - -func (q *Kernel) transform_RGBA_Gray_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.Gray, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.Stride + (kx - src.Rect.Min.X) - pru := uint32(src.Pix[pi]) * 0x101 - pr += float64(pru) * w - } - } - } - } - out := uint8(fffftou(pr) >> 8) - dst.Pix[d+0] = out - dst.Pix[d+1] = out - dst.Pix[d+2] = out - dst.Pix[d+3] = 0xff - } - } -} - -func (q *Kernel) transform_RGBA_NRGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.NRGBA, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.Stride + (kx-src.Rect.Min.X)*4 - pau := uint32(src.Pix[pi+3]) * 0x101 - pru := uint32(src.Pix[pi+0]) * pau / 0xff - pgu := uint32(src.Pix[pi+1]) * pau / 0xff - pbu := uint32(src.Pix[pi+2]) * pau / 0xff - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - pa += float64(pau) * w - } - } - } - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - pr0 := uint32(fffftou(pr)) - pg0 := uint32(fffftou(pg)) - pb0 := uint32(fffftou(pb)) - pa0 := uint32(fffftou(pa)) - pa1 := (0xffff - uint32(pa0)) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr0) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg0) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb0) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa0) >> 8) - } - } -} - -func (q *Kernel) transform_RGBA_NRGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.NRGBA, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.Stride + (kx-src.Rect.Min.X)*4 - pau := uint32(src.Pix[pi+3]) * 0x101 - pru := uint32(src.Pix[pi+0]) * pau / 0xff - pgu := uint32(src.Pix[pi+1]) * pau / 0xff - pbu := uint32(src.Pix[pi+2]) * pau / 0xff - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - pa += float64(pau) * w - } - } - } - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - dst.Pix[d+0] = uint8(fffftou(pr) >> 8) - dst.Pix[d+1] = uint8(fffftou(pg) >> 8) - dst.Pix[d+2] = uint8(fffftou(pb) >> 8) - dst.Pix[d+3] = uint8(fffftou(pa) >> 8) - } - } -} - -func (q *Kernel) transform_RGBA_RGBA_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.RGBA, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.Stride + (kx-src.Rect.Min.X)*4 - pru := uint32(src.Pix[pi+0]) * 0x101 - pgu := uint32(src.Pix[pi+1]) * 0x101 - pbu := uint32(src.Pix[pi+2]) * 0x101 - pau := uint32(src.Pix[pi+3]) * 0x101 - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - pa += float64(pau) * w - } - } - } - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - pr0 := uint32(fffftou(pr)) - pg0 := uint32(fffftou(pg)) - pb0 := uint32(fffftou(pb)) - pa0 := uint32(fffftou(pa)) - pa1 := (0xffff - uint32(pa0)) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr0) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg0) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb0) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa0) >> 8) - } - } -} - -func (q *Kernel) transform_RGBA_RGBA_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.RGBA, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.Stride + (kx-src.Rect.Min.X)*4 - pru := uint32(src.Pix[pi+0]) * 0x101 - pgu := uint32(src.Pix[pi+1]) * 0x101 - pbu := uint32(src.Pix[pi+2]) * 0x101 - pau := uint32(src.Pix[pi+3]) * 0x101 - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - pa += float64(pau) * w - } - } - } - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - dst.Pix[d+0] = uint8(fffftou(pr) >> 8) - dst.Pix[d+1] = uint8(fffftou(pg) >> 8) - dst.Pix[d+2] = uint8(fffftou(pb) >> 8) - dst.Pix[d+3] = uint8(fffftou(pa) >> 8) - } - } -} - -func (q *Kernel) transform_RGBA_YCbCr444_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.YStride + (kx - src.Rect.Min.X) - pj := (ky-src.Rect.Min.Y)*src.CStride + (kx - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pru := (pyy1 + 91881*pcr1) >> 8 - pgu := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pbu := (pyy1 + 116130*pcb1) >> 8 - if pru < 0 { - pru = 0 - } else if pru > 0xffff { - pru = 0xffff - } - if pgu < 0 { - pgu = 0 - } else if pgu > 0xffff { - pgu = 0xffff - } - if pbu < 0 { - pbu = 0 - } else if pbu > 0xffff { - pbu = 0xffff - } - - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - } - } - } - } - dst.Pix[d+0] = uint8(fffftou(pr) >> 8) - dst.Pix[d+1] = uint8(fffftou(pg) >> 8) - dst.Pix[d+2] = uint8(fffftou(pb) >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (q *Kernel) transform_RGBA_YCbCr422_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.YStride + (kx - src.Rect.Min.X) - pj := (ky-src.Rect.Min.Y)*src.CStride + ((kx)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pru := (pyy1 + 91881*pcr1) >> 8 - pgu := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pbu := (pyy1 + 116130*pcb1) >> 8 - if pru < 0 { - pru = 0 - } else if pru > 0xffff { - pru = 0xffff - } - if pgu < 0 { - pgu = 0 - } else if pgu > 0xffff { - pgu = 0xffff - } - if pbu < 0 { - pbu = 0 - } else if pbu > 0xffff { - pbu = 0xffff - } - - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - } - } - } - } - dst.Pix[d+0] = uint8(fffftou(pr) >> 8) - dst.Pix[d+1] = uint8(fffftou(pg) >> 8) - dst.Pix[d+2] = uint8(fffftou(pb) >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (q *Kernel) transform_RGBA_YCbCr420_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.YStride + (kx - src.Rect.Min.X) - pj := ((ky)/2-src.Rect.Min.Y/2)*src.CStride + ((kx)/2 - src.Rect.Min.X/2) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pru := (pyy1 + 91881*pcr1) >> 8 - pgu := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pbu := (pyy1 + 116130*pcb1) >> 8 - if pru < 0 { - pru = 0 - } else if pru > 0xffff { - pru = 0xffff - } - if pgu < 0 { - pgu = 0 - } else if pgu > 0xffff { - pgu = 0xffff - } - if pbu < 0 { - pbu = 0 - } else if pbu > 0xffff { - pbu = 0xffff - } - - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - } - } - } - } - dst.Pix[d+0] = uint8(fffftou(pr) >> 8) - dst.Pix[d+1] = uint8(fffftou(pg) >> 8) - dst.Pix[d+2] = uint8(fffftou(pb) >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (q *Kernel) transform_RGBA_YCbCr440_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.YCbCr, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pi := (ky-src.Rect.Min.Y)*src.YStride + (kx - src.Rect.Min.X) - pj := ((ky)/2-src.Rect.Min.Y/2)*src.CStride + (kx - src.Rect.Min.X) - - // This is an inline version of image/color/ycbcr.go's YCbCr.RGBA method. - pyy1 := int(src.Y[pi]) * 0x10101 - pcb1 := int(src.Cb[pj]) - 128 - pcr1 := int(src.Cr[pj]) - 128 - pru := (pyy1 + 91881*pcr1) >> 8 - pgu := (pyy1 - 22554*pcb1 - 46802*pcr1) >> 8 - pbu := (pyy1 + 116130*pcb1) >> 8 - if pru < 0 { - pru = 0 - } else if pru > 0xffff { - pru = 0xffff - } - if pgu < 0 { - pgu = 0 - } else if pgu > 0xffff { - pgu = 0xffff - } - if pbu < 0 { - pbu = 0 - } else if pbu > 0xffff { - pbu = 0xffff - } - - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - } - } - } - } - dst.Pix[d+0] = uint8(fffftou(pr) >> 8) - dst.Pix[d+1] = uint8(fffftou(pg) >> 8) - dst.Pix[d+2] = uint8(fffftou(pb) >> 8) - dst.Pix[d+3] = 0xff - } - } -} - -func (q *Kernel) transform_RGBA_Image_Over(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pru, pgu, pbu, pau := src.At(kx, ky).RGBA() - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - pa += float64(pau) * w - } - } - } - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - pr0 := uint32(fffftou(pr)) - pg0 := uint32(fffftou(pg)) - pb0 := uint32(fffftou(pb)) - pa0 := uint32(fffftou(pa)) - pa1 := (0xffff - uint32(pa0)) * 0x101 - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr0) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg0) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb0) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa0) >> 8) - } - } -} - -func (q *Kernel) transform_RGBA_Image_Src(dst *image.RGBA, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := (dr.Min.Y+int(dy)-dst.Rect.Min.Y)*dst.Stride + (dr.Min.X+adr.Min.X-dst.Rect.Min.X)*4 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pru, pgu, pbu, pau := src.At(kx, ky).RGBA() - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - pa += float64(pau) * w - } - } - } - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - dst.Pix[d+0] = uint8(fffftou(pr) >> 8) - dst.Pix[d+1] = uint8(fffftou(pg) >> 8) - dst.Pix[d+2] = uint8(fffftou(pb) >> 8) - dst.Pix[d+3] = uint8(fffftou(pa) >> 8) - } - } -} - -func (q *Kernel) transform_Image_Image_Over(dst Image, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pru, pgu, pbu, pau := src.At(kx, ky).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+kx, smp.Y+ky).RGBA() - pru = pru * ma / 0xffff - pgu = pgu * ma / 0xffff - pbu = pbu * ma / 0xffff - pau = pau * ma / 0xffff - } - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - pa += float64(pau) * w - } - } - } - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - pr0 := uint32(fffftou(pr)) - pg0 := uint32(fffftou(pg)) - pb0 := uint32(fffftou(pb)) - pa0 := uint32(fffftou(pa)) - if dstMask != nil { - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr0 = pr0 * ma / 0xffff - pg0 = pg0 * ma / 0xffff - pb0 = pb0 * ma / 0xffff - pa0 = pa0 * ma / 0xffff - } - pa1 := 0xffff - pa0 - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr0) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg0) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb0) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa0) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } -} - -func (q *Kernel) transform_Image_Image_Src(dst Image, dr, adr image.Rectangle, d2s *f64.Aff3, src image.Image, sr image.Rectangle, bias image.Point, xscale, yscale float64, opts *Options) { - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - xHalfWidth, xKernelArgScale := q.Support, 1.0 - if xscale > 1 { - xHalfWidth *= xscale - xKernelArgScale = 1 / xscale - } - yHalfWidth, yKernelArgScale := q.Support, 1.0 - if yscale > 1 { - yHalfWidth *= yscale - yKernelArgScale = 1 / yscale - } - - xWeights := make([]float64, 1+2*int(math.Ceil(xHalfWidth))) - yWeights := make([]float64, 1+2*int(math.Ceil(yHalfWidth))) - - srcMask, smp := opts.SrcMask, opts.SrcMaskP - dstMask, dmp := opts.DstMask, opts.DstMaskP - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx := d2s[0]*dxf + d2s[1]*dyf + d2s[2] - sy := d2s[3]*dxf + d2s[4]*dyf + d2s[5] - if !(image.Point{int(sx) + bias.X, int(sy) + bias.Y}).In(sr) { - continue - } - - // TODO: adjust the bias so that we can use int(f) instead - // of math.Floor(f) and math.Ceil(f). - sx += float64(bias.X) - sx -= 0.5 - ix := int(math.Floor(sx - xHalfWidth)) - if ix < sr.Min.X { - ix = sr.Min.X - } - jx := int(math.Ceil(sx + xHalfWidth)) - if jx > sr.Max.X { - jx = sr.Max.X - } - - totalXWeight := 0.0 - for kx := ix; kx < jx; kx++ { - xWeight := 0.0 - if t := abs((sx - float64(kx)) * xKernelArgScale); t < q.Support { - xWeight = q.At(t) - } - xWeights[kx-ix] = xWeight - totalXWeight += xWeight - } - for x := range xWeights[:jx-ix] { - xWeights[x] /= totalXWeight - } - - sy += float64(bias.Y) - sy -= 0.5 - iy := int(math.Floor(sy - yHalfWidth)) - if iy < sr.Min.Y { - iy = sr.Min.Y - } - jy := int(math.Ceil(sy + yHalfWidth)) - if jy > sr.Max.Y { - jy = sr.Max.Y - } - - totalYWeight := 0.0 - for ky := iy; ky < jy; ky++ { - yWeight := 0.0 - if t := abs((sy - float64(ky)) * yKernelArgScale); t < q.Support { - yWeight = q.At(t) - } - yWeights[ky-iy] = yWeight - totalYWeight += yWeight - } - for y := range yWeights[:jy-iy] { - yWeights[y] /= totalYWeight - } - - var pr, pg, pb, pa float64 - for ky := iy; ky < jy; ky++ { - if yWeight := yWeights[ky-iy]; yWeight != 0 { - for kx := ix; kx < jx; kx++ { - if w := xWeights[kx-ix] * yWeight; w != 0 { - pru, pgu, pbu, pau := src.At(kx, ky).RGBA() - if srcMask != nil { - _, _, _, ma := srcMask.At(smp.X+kx, smp.Y+ky).RGBA() - pru = pru * ma / 0xffff - pgu = pgu * ma / 0xffff - pbu = pbu * ma / 0xffff - pau = pau * ma / 0xffff - } - pr += float64(pru) * w - pg += float64(pgu) * w - pb += float64(pbu) * w - pa += float64(pau) * w - } - } - } - } - - if pr > pa { - pr = pa - } - if pg > pa { - pg = pa - } - if pb > pa { - pb = pa - } - - if dstMask != nil { - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - _, _, _, ma := dstMask.At(dmp.X+dr.Min.X+int(dx), dmp.Y+dr.Min.Y+int(dy)).RGBA() - pr := uint32(fffftou(pr)) * ma / 0xffff - pg := uint32(fffftou(pg)) * ma / 0xffff - pb := uint32(fffftou(pb)) * ma / 0xffff - pa := uint32(fffftou(pa)) * ma / 0xffff - pa1 := 0xffff - ma - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } else { - dstColorRGBA64.R = fffftou(pr) - dstColorRGBA64.G = fffftou(pg) - dstColorRGBA64.B = fffftou(pb) - dstColorRGBA64.A = fffftou(pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } - } -} diff --git a/vendor/golang.org/x/image/draw/scale.go b/vendor/golang.org/x/image/draw/scale.go deleted file mode 100644 index 98ab404..0000000 --- a/vendor/golang.org/x/image/draw/scale.go +++ /dev/null @@ -1,527 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:generate go run gen.go - -package draw - -import ( - "image" - "image/color" - "math" - "sync" - - "golang.org/x/image/math/f64" -) - -// Copy copies the part of the source image defined by src and sr and writes -// the result of a Porter-Duff composition to the part of the destination image -// defined by dst and the translation of sr so that sr.Min translates to dp. -func Copy(dst Image, dp image.Point, src image.Image, sr image.Rectangle, op Op, opts *Options) { - var o Options - if opts != nil { - o = *opts - } - dr := sr.Add(dp.Sub(sr.Min)) - if o.DstMask == nil { - DrawMask(dst, dr, src, sr.Min, o.SrcMask, o.SrcMaskP.Add(sr.Min), op) - } else { - NearestNeighbor.Scale(dst, dr, src, sr, op, opts) - } -} - -// Scaler scales the part of the source image defined by src and sr and writes -// the result of a Porter-Duff composition to the part of the destination image -// defined by dst and dr. -// -// A Scaler is safe to use concurrently. -type Scaler interface { - Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) -} - -// Transformer transforms the part of the source image defined by src and sr -// and writes the result of a Porter-Duff composition to the part of the -// destination image defined by dst and the affine transform m applied to sr. -// -// For example, if m is the matrix -// -// m00 m01 m02 -// m10 m11 m12 -// -// then the src-space point (sx, sy) maps to the dst-space point -// (m00*sx + m01*sy + m02, m10*sx + m11*sy + m12). -// -// A Transformer is safe to use concurrently. -type Transformer interface { - Transform(dst Image, m f64.Aff3, src image.Image, sr image.Rectangle, op Op, opts *Options) -} - -// Options are optional parameters to Copy, Scale and Transform. -// -// A nil *Options means to use the default (zero) values of each field. -type Options struct { - // Masks limit what parts of the dst image are drawn to and what parts of - // the src image are drawn from. - // - // A dst or src mask image having a zero alpha (transparent) pixel value in - // the respective coordinate space means that that dst pixel is entirely - // unaffected or that src pixel is considered transparent black. A full - // alpha (opaque) value means that the dst pixel is maximally affected or - // the src pixel contributes maximally. The default values, nil, are - // equivalent to fully opaque, infinitely large mask images. - // - // The DstMask is otherwise known as a clip mask, and its pixels map 1:1 to - // the dst image's pixels. DstMaskP in DstMask space corresponds to - // image.Point{X:0, Y:0} in dst space. For example, when limiting - // repainting to a 'dirty rectangle', use that image.Rectangle and a zero - // image.Point as the DstMask and DstMaskP. - // - // The SrcMask's pixels map 1:1 to the src image's pixels. SrcMaskP in - // SrcMask space corresponds to image.Point{X:0, Y:0} in src space. For - // example, when drawing font glyphs in a uniform color, use an - // *image.Uniform as the src, and use the glyph atlas image and the - // per-glyph offset as SrcMask and SrcMaskP: - // Copy(dst, dp, image.NewUniform(color), image.Rect(0, 0, glyphWidth, glyphHeight), &Options{ - // SrcMask: glyphAtlas, - // SrcMaskP: glyphOffset, - // }) - DstMask image.Image - DstMaskP image.Point - SrcMask image.Image - SrcMaskP image.Point - - // TODO: a smooth vs sharp edges option, for arbitrary rotations? -} - -// Interpolator is an interpolation algorithm, when dst and src pixels don't -// have a 1:1 correspondence. -// -// Of the interpolators provided by this package: -// - NearestNeighbor is fast but usually looks worst. -// - CatmullRom is slow but usually looks best. -// - ApproxBiLinear has reasonable speed and quality. -// -// The time taken depends on the size of dr. For kernel interpolators, the -// speed also depends on the size of sr, and so are often slower than -// non-kernel interpolators, especially when scaling down. -type Interpolator interface { - Scaler - Transformer -} - -// Kernel is an interpolator that blends source pixels weighted by a symmetric -// kernel function. -type Kernel struct { - // Support is the kernel support and must be >= 0. At(t) is assumed to be - // zero when t >= Support. - Support float64 - // At is the kernel function. It will only be called with t in the - // range [0, Support). - At func(t float64) float64 -} - -// Scale implements the Scaler interface. -func (q *Kernel) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) { - q.newScaler(dr.Dx(), dr.Dy(), sr.Dx(), sr.Dy(), false).Scale(dst, dr, src, sr, op, opts) -} - -// NewScaler returns a Scaler that is optimized for scaling multiple times with -// the same fixed destination and source width and height. -func (q *Kernel) NewScaler(dw, dh, sw, sh int) Scaler { - return q.newScaler(dw, dh, sw, sh, true) -} - -func (q *Kernel) newScaler(dw, dh, sw, sh int, usePool bool) Scaler { - z := &kernelScaler{ - kernel: q, - dw: int32(dw), - dh: int32(dh), - sw: int32(sw), - sh: int32(sh), - horizontal: newDistrib(q, int32(dw), int32(sw)), - vertical: newDistrib(q, int32(dh), int32(sh)), - } - if usePool { - z.pool.New = func() interface{} { - tmp := z.makeTmpBuf() - return &tmp - } - } - return z -} - -var ( - // NearestNeighbor is the nearest neighbor interpolator. It is very fast, - // but usually gives very low quality results. When scaling up, the result - // will look 'blocky'. - NearestNeighbor = Interpolator(nnInterpolator{}) - - // ApproxBiLinear is a mixture of the nearest neighbor and bi-linear - // interpolators. It is fast, but usually gives medium quality results. - // - // It implements bi-linear interpolation when upscaling and a bi-linear - // blend of the 4 nearest neighbor pixels when downscaling. This yields - // nicer quality than nearest neighbor interpolation when upscaling, but - // the time taken is independent of the number of source pixels, unlike the - // bi-linear interpolator. When downscaling a large image, the performance - // difference can be significant. - ApproxBiLinear = Interpolator(ablInterpolator{}) - - // BiLinear is the tent kernel. It is slow, but usually gives high quality - // results. - BiLinear = &Kernel{1, func(t float64) float64 { - return 1 - t - }} - - // CatmullRom is the Catmull-Rom kernel. It is very slow, but usually gives - // very high quality results. - // - // It is an instance of the more general cubic BC-spline kernel with parameters - // B=0 and C=0.5. See Mitchell and Netravali, "Reconstruction Filters in - // Computer Graphics", Computer Graphics, Vol. 22, No. 4, pp. 221-228. - CatmullRom = &Kernel{2, func(t float64) float64 { - if t < 1 { - return (1.5*t-2.5)*t*t + 1 - } - return ((-0.5*t+2.5)*t-4)*t + 2 - }} - - // TODO: a Kaiser-Bessel kernel? -) - -type nnInterpolator struct{} - -type ablInterpolator struct{} - -type kernelScaler struct { - kernel *Kernel - dw, dh, sw, sh int32 - horizontal, vertical distrib - pool sync.Pool -} - -func (z *kernelScaler) makeTmpBuf() [][4]float64 { - return make([][4]float64, z.dw*z.sh) -} - -// source is a range of contribs, their inverse total weight, and that ITW -// divided by 0xffff. -type source struct { - i, j int32 - invTotalWeight float64 - invTotalWeightFFFF float64 -} - -// contrib is the weight of a column or row. -type contrib struct { - coord int32 - weight float64 -} - -// distrib measures how source pixels are distributed over destination pixels. -type distrib struct { - // sources are what contribs each column or row in the source image owns, - // and the total weight of those contribs. - sources []source - // contribs are the contributions indexed by sources[s].i and sources[s].j. - contribs []contrib -} - -// newDistrib returns a distrib that distributes sw source columns (or rows) -// over dw destination columns (or rows). -func newDistrib(q *Kernel, dw, sw int32) distrib { - scale := float64(sw) / float64(dw) - halfWidth, kernelArgScale := q.Support, 1.0 - // When shrinking, broaden the effective kernel support so that we still - // visit every source pixel. - if scale > 1 { - halfWidth *= scale - kernelArgScale = 1 / scale - } - - // Make the sources slice, one source for each column or row, and temporarily - // appropriate its elements' fields so that invTotalWeight is the scaled - // coordinate of the source column or row, and i and j are the lower and - // upper bounds of the range of destination columns or rows affected by the - // source column or row. - n, sources := int32(0), make([]source, dw) - for x := range sources { - center := (float64(x)+0.5)*scale - 0.5 - i := int32(math.Floor(center - halfWidth)) - if i < 0 { - i = 0 - } - j := int32(math.Ceil(center + halfWidth)) - if j > sw { - j = sw - if j < i { - j = i - } - } - sources[x] = source{i: i, j: j, invTotalWeight: center} - n += j - i - } - - contribs := make([]contrib, 0, n) - for k, b := range sources { - totalWeight := 0.0 - l := int32(len(contribs)) - for coord := b.i; coord < b.j; coord++ { - t := abs((b.invTotalWeight - float64(coord)) * kernelArgScale) - if t >= q.Support { - continue - } - weight := q.At(t) - if weight == 0 { - continue - } - totalWeight += weight - contribs = append(contribs, contrib{coord, weight}) - } - totalWeight = 1 / totalWeight - sources[k] = source{ - i: l, - j: int32(len(contribs)), - invTotalWeight: totalWeight, - invTotalWeightFFFF: totalWeight / 0xffff, - } - } - - return distrib{sources, contribs} -} - -// abs is like math.Abs, but it doesn't care about negative zero, infinities or -// NaNs. -func abs(f float64) float64 { - if f < 0 { - f = -f - } - return f -} - -// ftou converts the range [0.0, 1.0] to [0, 0xffff]. -func ftou(f float64) uint16 { - i := int32(0xffff*f + 0.5) - if i > 0xffff { - return 0xffff - } - if i > 0 { - return uint16(i) - } - return 0 -} - -// fffftou converts the range [0.0, 65535.0] to [0, 0xffff]. -func fffftou(f float64) uint16 { - i := int32(f + 0.5) - if i > 0xffff { - return 0xffff - } - if i > 0 { - return uint16(i) - } - return 0 -} - -// invert returns the inverse of m. -// -// TODO: move this into the f64 package, once we work out the convention for -// matrix methods in that package: do they modify the receiver, take a dst -// pointer argument, or return a new value? -func invert(m *f64.Aff3) f64.Aff3 { - m00 := +m[3*1+1] - m01 := -m[3*0+1] - m02 := +m[3*1+2]*m[3*0+1] - m[3*1+1]*m[3*0+2] - m10 := -m[3*1+0] - m11 := +m[3*0+0] - m12 := +m[3*1+0]*m[3*0+2] - m[3*1+2]*m[3*0+0] - - det := m00*m11 - m10*m01 - - return f64.Aff3{ - m00 / det, - m01 / det, - m02 / det, - m10 / det, - m11 / det, - m12 / det, - } -} - -func matMul(p, q *f64.Aff3) f64.Aff3 { - return f64.Aff3{ - p[3*0+0]*q[3*0+0] + p[3*0+1]*q[3*1+0], - p[3*0+0]*q[3*0+1] + p[3*0+1]*q[3*1+1], - p[3*0+0]*q[3*0+2] + p[3*0+1]*q[3*1+2] + p[3*0+2], - p[3*1+0]*q[3*0+0] + p[3*1+1]*q[3*1+0], - p[3*1+0]*q[3*0+1] + p[3*1+1]*q[3*1+1], - p[3*1+0]*q[3*0+2] + p[3*1+1]*q[3*1+2] + p[3*1+2], - } -} - -// transformRect returns a rectangle dr that contains sr transformed by s2d. -func transformRect(s2d *f64.Aff3, sr *image.Rectangle) (dr image.Rectangle) { - ps := [...]image.Point{ - {sr.Min.X, sr.Min.Y}, - {sr.Max.X, sr.Min.Y}, - {sr.Min.X, sr.Max.Y}, - {sr.Max.X, sr.Max.Y}, - } - for i, p := range ps { - sxf := float64(p.X) - syf := float64(p.Y) - dx := int(math.Floor(s2d[0]*sxf + s2d[1]*syf + s2d[2])) - dy := int(math.Floor(s2d[3]*sxf + s2d[4]*syf + s2d[5])) - - // The +1 adjustments below are because an image.Rectangle is inclusive - // on the low end but exclusive on the high end. - - if i == 0 { - dr = image.Rectangle{ - Min: image.Point{dx + 0, dy + 0}, - Max: image.Point{dx + 1, dy + 1}, - } - continue - } - - if dr.Min.X > dx { - dr.Min.X = dx - } - dx++ - if dr.Max.X < dx { - dr.Max.X = dx - } - - if dr.Min.Y > dy { - dr.Min.Y = dy - } - dy++ - if dr.Max.Y < dy { - dr.Max.Y = dy - } - } - return dr -} - -func clipAffectedDestRect(adr image.Rectangle, dstMask image.Image, dstMaskP image.Point) (image.Rectangle, image.Image) { - if dstMask == nil { - return adr, nil - } - // TODO: enable this fast path once Go 1.5 is released, where an - // image.Rectangle implements image.Image. - // if r, ok := dstMask.(image.Rectangle); ok { - // return adr.Intersect(r.Sub(dstMaskP)), nil - // } - // TODO: clip to dstMask.Bounds() if the color model implies that out-of-bounds means 0 alpha? - return adr, dstMask -} - -func transform_Uniform(dst Image, dr, adr image.Rectangle, d2s *f64.Aff3, src *image.Uniform, sr image.Rectangle, bias image.Point, op Op) { - switch op { - case Over: - switch dst := dst.(type) { - case *image.RGBA: - pr, pg, pb, pa := src.C.RGBA() - pa1 := (0xffff - pa) * 0x101 - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := dst.PixOffset(dr.Min.X+adr.Min.X, dr.Min.Y+int(dy)) - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - dst.Pix[d+0] = uint8((uint32(dst.Pix[d+0])*pa1/0xffff + pr) >> 8) - dst.Pix[d+1] = uint8((uint32(dst.Pix[d+1])*pa1/0xffff + pg) >> 8) - dst.Pix[d+2] = uint8((uint32(dst.Pix[d+2])*pa1/0xffff + pb) >> 8) - dst.Pix[d+3] = uint8((uint32(dst.Pix[d+3])*pa1/0xffff + pa) >> 8) - } - } - - default: - pr, pg, pb, pa := src.C.RGBA() - pa1 := 0xffff - pa - dstColorRGBA64 := &color.RGBA64{} - dstColor := color.Color(dstColorRGBA64) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - qr, qg, qb, qa := dst.At(dr.Min.X+int(dx), dr.Min.Y+int(dy)).RGBA() - dstColorRGBA64.R = uint16(qr*pa1/0xffff + pr) - dstColorRGBA64.G = uint16(qg*pa1/0xffff + pg) - dstColorRGBA64.B = uint16(qb*pa1/0xffff + pb) - dstColorRGBA64.A = uint16(qa*pa1/0xffff + pa) - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } - } - - case Src: - switch dst := dst.(type) { - case *image.RGBA: - pr, pg, pb, pa := src.C.RGBA() - pr8 := uint8(pr >> 8) - pg8 := uint8(pg >> 8) - pb8 := uint8(pb >> 8) - pa8 := uint8(pa >> 8) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - d := dst.PixOffset(dr.Min.X+adr.Min.X, dr.Min.Y+int(dy)) - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx, d = dx+1, d+4 { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - dst.Pix[d+0] = pr8 - dst.Pix[d+1] = pg8 - dst.Pix[d+2] = pb8 - dst.Pix[d+3] = pa8 - } - } - - default: - pr, pg, pb, pa := src.C.RGBA() - dstColorRGBA64 := &color.RGBA64{ - uint16(pr), - uint16(pg), - uint16(pb), - uint16(pa), - } - dstColor := color.Color(dstColorRGBA64) - - for dy := int32(adr.Min.Y); dy < int32(adr.Max.Y); dy++ { - dyf := float64(dr.Min.Y+int(dy)) + 0.5 - for dx := int32(adr.Min.X); dx < int32(adr.Max.X); dx++ { - dxf := float64(dr.Min.X+int(dx)) + 0.5 - sx0 := int(d2s[0]*dxf+d2s[1]*dyf+d2s[2]) + bias.X - sy0 := int(d2s[3]*dxf+d2s[4]*dyf+d2s[5]) + bias.Y - if !(image.Point{sx0, sy0}).In(sr) { - continue - } - dst.Set(dr.Min.X+int(dx), dr.Min.Y+int(dy), dstColor) - } - } - } - } -} - -func opaque(m image.Image) bool { - o, ok := m.(interface { - Opaque() bool - }) - return ok && o.Opaque() -} diff --git a/vendor/golang.org/x/image/font/basicfont/basicfont.go b/vendor/golang.org/x/image/font/basicfont/basicfont.go deleted file mode 100644 index 1acc79f..0000000 --- a/vendor/golang.org/x/image/font/basicfont/basicfont.go +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:generate go run gen.go - -// Package basicfont provides fixed-size font faces. -package basicfont // import "golang.org/x/image/font/basicfont" - -import ( - "image" - - "golang.org/x/image/font" - "golang.org/x/image/math/fixed" -) - -// Range maps a contiguous range of runes to vertically adjacent sub-images of -// a Face's Mask image. The rune range is inclusive on the low end and -// exclusive on the high end. -// -// If Low <= r && r < High, then the rune r is mapped to the sub-image of -// Face.Mask whose bounds are image.Rect(0, y*h, Face.Width, (y+1)*h), -// where y = (int(r-Low) + Offset) and h = (Face.Ascent + Face.Descent). -type Range struct { - Low, High rune - Offset int -} - -// Face7x13 is a Face derived from the public domain X11 misc-fixed font files. -// -// At the moment, it holds the printable characters in ASCII starting with -// space, and the Unicode replacement character U+FFFD. -// -// Its data is entirely self-contained and does not require loading from -// separate files. -var Face7x13 = &Face{ - Advance: 7, - Width: 6, - Height: 13, - Ascent: 11, - Descent: 2, - Mask: mask7x13, - Ranges: []Range{ - {'\u0020', '\u007f', 0}, - {'\ufffd', '\ufffe', 95}, - }, -} - -// Face is a basic font face whose glyphs all have the same metrics. -// -// It is safe to use concurrently. -type Face struct { - // Advance is the glyph advance, in pixels. - Advance int - // Width is the glyph width, in pixels. - Width int - // Height is the inter-line height, in pixels. - Height int - // Ascent is the glyph ascent, in pixels. - Ascent int - // Descent is the glyph descent, in pixels. - Descent int - // Left is the left side bearing, in pixels. A positive value means that - // all of a glyph is to the right of the dot. - Left int - - // Mask contains all of the glyph masks. Its width is typically the Face's - // Width, and its height a multiple of the Face's Height. - Mask image.Image - // Ranges map runes to sub-images of Mask. The rune ranges must not - // overlap, and must be in increasing rune order. - Ranges []Range -} - -func (f *Face) Close() error { return nil } -func (f *Face) Kern(r0, r1 rune) fixed.Int26_6 { return 0 } - -func (f *Face) Metrics() font.Metrics { - return font.Metrics{ - Height: fixed.I(f.Height), - Ascent: fixed.I(f.Ascent), - Descent: fixed.I(f.Descent), - } -} - -func (f *Face) Glyph(dot fixed.Point26_6, r rune) ( - dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool) { - -loop: - for _, rr := range [2]rune{r, '\ufffd'} { - for _, rng := range f.Ranges { - if rr < rng.Low || rng.High <= rr { - continue - } - maskp.Y = (int(rr-rng.Low) + rng.Offset) * (f.Ascent + f.Descent) - ok = true - break loop - } - } - if !ok { - return image.Rectangle{}, nil, image.Point{}, 0, false - } - - x := int(dot.X+32)>>6 + f.Left - y := int(dot.Y+32) >> 6 - dr = image.Rectangle{ - Min: image.Point{ - X: x, - Y: y - f.Ascent, - }, - Max: image.Point{ - X: x + f.Width, - Y: y + f.Descent, - }, - } - - return dr, f.Mask, maskp, fixed.I(f.Advance), true -} - -func (f *Face) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool) { - return fixed.R(0, -f.Ascent, f.Width, +f.Descent), fixed.I(f.Advance), true -} - -func (f *Face) GlyphAdvance(r rune) (advance fixed.Int26_6, ok bool) { - return fixed.I(f.Advance), true -} diff --git a/vendor/golang.org/x/image/font/basicfont/data.go b/vendor/golang.org/x/image/font/basicfont/data.go deleted file mode 100644 index 8835321..0000000 --- a/vendor/golang.org/x/image/font/basicfont/data.go +++ /dev/null @@ -1,1456 +0,0 @@ -// generated by go generate; DO NOT EDIT. - -package basicfont - -// This data is derived from files in the font/fixed directory of the Plan 9 -// Port source code (https://github.com/9fans/plan9port) which were originally -// based on the public domain X11 misc-fixed font files. - -import "image" - -// mask7x13 contains 96 6×13 glyphs in 7488 Pix bytes. -var mask7x13 = &image.Alpha{ - Stride: 6, - Rect: image.Rectangle{Max: image.Point{6, 96 * 13}}, - Pix: []byte{ - // 0x20 ' ' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x21 '!' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x22 '"' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x23 '#' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x24 '$' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x25 '%' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x26 '&' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x27 '\'' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x28 '(' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x29 ')' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x2a '*' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x2b '+' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x2c ',' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x2d '-' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x2e '.' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x2f '/' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x30 '0' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x31 '1' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x32 '2' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x33 '3' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x34 '4' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x35 '5' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x36 '6' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x37 '7' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x38 '8' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x39 '9' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x3a ':' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x3b ';' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x3c '<' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x3d '=' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x3e '>' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x3f '?' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x40 '@' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, - 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, - 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, - 0xff, 0x00, 0x00, 0xff, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x41 'A' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x42 'B' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x43 'C' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x44 'D' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x45 'E' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x46 'F' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x47 'G' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x48 'H' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x49 'I' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x4a 'J' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x4b 'K' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, - 0xff, 0x00, 0xff, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0xff, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x4c 'L' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x4d 'M' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, - 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, - 0xff, 0x00, 0xff, 0xff, 0x00, 0xff, - 0xff, 0x00, 0xff, 0xff, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x4e 'N' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0xff, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x4f 'O' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x50 'P' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x51 'Q' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x52 'R' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0xff, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x53 'S' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x54 'T' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x55 'U' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x56 'V' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x57 'W' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0xff, 0xff, 0x00, 0xff, - 0xff, 0x00, 0xff, 0xff, 0x00, 0xff, - 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, - 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x58 'X' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x59 'Y' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x5a 'Z' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x5b '[' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x5c '\\' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x5d ']' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x5e '^' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x5f '_' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x60 '`' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x61 'a' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x62 'b' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x63 'c' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x64 'd' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x65 'e' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x66 'f' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x67 'g' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - - // 0x68 'h' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x69 'i' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x6a 'j' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - - // 0x6b 'k' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, - 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x6c 'l' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x6d 'm' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x6e 'n' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x6f 'o' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x70 'p' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x71 'q' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - - // 0x72 'r' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x73 's' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x74 't' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x75 'u' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x76 'v' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x77 'w' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x78 'x' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x79 'y' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, - - // 0x7a 'z' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x7b '{' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x7c '|' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x7d '}' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, - 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // 0x7e '~' - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - // U+FFFD REPLACEMENT CHARACTER - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0xff, 0xff, 0x00, 0xff, 0xff, - 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, - 0x00, 0xff, 0xff, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0x00, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x00, 0xff, 0xff, 0x00, 0xff, 0xff, - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - }, -} diff --git a/vendor/golang.org/x/image/font/basicfont/gen.go b/vendor/golang.org/x/image/font/basicfont/gen.go deleted file mode 100644 index 67a21a7..0000000 --- a/vendor/golang.org/x/image/font/basicfont/gen.go +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build ignore - -// This program generates data.go. -package main - -import ( - "bytes" - "fmt" - "go/format" - "image" - "image/draw" - "io/ioutil" - "log" - "path" - "path/filepath" - - "golang.org/x/image/font" - "golang.org/x/image/font/plan9font" - "golang.org/x/image/math/fixed" -) - -func main() { - // nGlyphs is the number of glyphs to generate: 95 characters in the range - // [0x20, 0x7e], plus the replacement character. - const nGlyphs = 95 + 1 - // The particular font (unicode.7x13.font) leaves the right-most column - // empty in its ASCII glyphs. We don't have to include that column in the - // generated glyphs, so we subtract one off the effective width. - const width, height, ascent = 7 - 1, 13, 11 - - readFile := func(name string) ([]byte, error) { - return ioutil.ReadFile(filepath.FromSlash(path.Join("../testdata/fixed", name))) - } - fontData, err := readFile("unicode.7x13.font") - if err != nil { - log.Fatalf("readFile: %v", err) - } - face, err := plan9font.ParseFont(fontData, readFile) - if err != nil { - log.Fatalf("plan9font.ParseFont: %v", err) - } - - dst := image.NewRGBA(image.Rect(0, 0, width, nGlyphs*height)) - draw.Draw(dst, dst.Bounds(), image.Black, image.Point{}, draw.Src) - d := &font.Drawer{ - Dst: dst, - Src: image.White, - Face: face, - } - for i := 0; i < nGlyphs; i++ { - r := '\ufffd' - if i < nGlyphs-1 { - r = 0x20 + rune(i) - } - d.Dot = fixed.P(0, height*i+ascent) - d.DrawString(string(r)) - } - - w := bytes.NewBuffer(nil) - w.WriteString(preamble) - fmt.Fprintf(w, "// mask7x13 contains %d %d×%d glyphs in %d Pix bytes.\n", nGlyphs, width, height, nGlyphs*width*height) - fmt.Fprintf(w, "var mask7x13 = &image.Alpha{\n") - fmt.Fprintf(w, " Stride: %d,\n", width) - fmt.Fprintf(w, " Rect: image.Rectangle{Max: image.Point{%d, %d*%d}},\n", width, nGlyphs, height) - fmt.Fprintf(w, " Pix: []byte{\n") - b := dst.Bounds() - for y := b.Min.Y; y < b.Max.Y; y++ { - if y%height == 0 { - if y != 0 { - w.WriteByte('\n') - } - i := y / height - if i < nGlyphs-1 { - i += 0x20 - fmt.Fprintf(w, "// %#2x %q\n", i, rune(i)) - } else { - fmt.Fprintf(w, "// U+FFFD REPLACEMENT CHARACTER\n") - } - } - - for x := b.Min.X; x < b.Max.X; x++ { - if dst.RGBAAt(x, y).R > 0 { - w.WriteString("0xff,") - } else { - w.WriteString("0x00,") - } - } - w.WriteByte('\n') - } - w.WriteString("},\n}\n") - - fmted, err := format.Source(w.Bytes()) - if err != nil { - log.Fatalf("format.Source: %v", err) - } - if err := ioutil.WriteFile("data.go", fmted, 0644); err != nil { - log.Fatalf("ioutil.WriteFile: %v", err) - } -} - -const preamble = `// generated by go generate; DO NOT EDIT. - -package basicfont - -// This data is derived from files in the font/fixed directory of the Plan 9 -// Port source code (https://github.com/9fans/plan9port) which were originally -// based on the public domain X11 misc-fixed font files. - -import "image" - -` diff --git a/vendor/golang.org/x/image/font/font.go b/vendor/golang.org/x/image/font/font.go deleted file mode 100644 index 05f4357..0000000 --- a/vendor/golang.org/x/image/font/font.go +++ /dev/null @@ -1,359 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package font defines an interface for font faces, for drawing text on an -// image. -// -// Other packages provide font face implementations. For example, a truetype -// package would provide one based on .ttf font files. -package font // import "golang.org/x/image/font" - -import ( - "image" - "image/draw" - "io" - "unicode/utf8" - - "golang.org/x/image/math/fixed" -) - -// TODO: who is responsible for caches (glyph images, glyph indices, kerns)? -// The Drawer or the Face? - -// Face is a font face. Its glyphs are often derived from a font file, such as -// "Comic_Sans_MS.ttf", but a face has a specific size, style, weight and -// hinting. For example, the 12pt and 18pt versions of Comic Sans are two -// different faces, even if derived from the same font file. -// -// A Face is not safe for concurrent use by multiple goroutines, as its methods -// may re-use implementation-specific caches and mask image buffers. -// -// To create a Face, look to other packages that implement specific font file -// formats. -type Face interface { - io.Closer - - // Glyph returns the draw.DrawMask parameters (dr, mask, maskp) to draw r's - // glyph at the sub-pixel destination location dot, and that glyph's - // advance width. - // - // It returns !ok if the face does not contain a glyph for r. - // - // The contents of the mask image returned by one Glyph call may change - // after the next Glyph call. Callers that want to cache the mask must make - // a copy. - Glyph(dot fixed.Point26_6, r rune) ( - dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool) - - // GlyphBounds returns the bounding box of r's glyph, drawn at a dot equal - // to the origin, and that glyph's advance width. - // - // It returns !ok if the face does not contain a glyph for r. - // - // The glyph's ascent and descent equal -bounds.Min.Y and +bounds.Max.Y. A - // visual depiction of what these metrics are is at - // https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/Art/glyph_metrics_2x.png - GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool) - - // GlyphAdvance returns the advance width of r's glyph. - // - // It returns !ok if the face does not contain a glyph for r. - GlyphAdvance(r rune) (advance fixed.Int26_6, ok bool) - - // Kern returns the horizontal adjustment for the kerning pair (r0, r1). A - // positive kern means to move the glyphs further apart. - Kern(r0, r1 rune) fixed.Int26_6 - - // Metrics returns the metrics for this Face. - Metrics() Metrics - - // TODO: ColoredGlyph for various emoji? - // TODO: Ligatures? Shaping? -} - -// Metrics holds the metrics for a Face. A visual depiction is at -// https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/Art/glyph_metrics_2x.png -type Metrics struct { - // Height is the recommended amount of vertical space between two lines of - // text. - Height fixed.Int26_6 - - // Ascent is the distance from the top of a line to its baseline. - Ascent fixed.Int26_6 - - // Descent is the distance from the bottom of a line to its baseline. The - // value is typically positive, even though a descender goes below the - // baseline. - Descent fixed.Int26_6 -} - -// Drawer draws text on a destination image. -// -// A Drawer is not safe for concurrent use by multiple goroutines, since its -// Face is not. -type Drawer struct { - // Dst is the destination image. - Dst draw.Image - // Src is the source image. - Src image.Image - // Face provides the glyph mask images. - Face Face - // Dot is the baseline location to draw the next glyph. The majority of the - // affected pixels will be above and to the right of the dot, but some may - // be below or to the left. For example, drawing a 'j' in an italic face - // may affect pixels below and to the left of the dot. - Dot fixed.Point26_6 - - // TODO: Clip image.Image? - // TODO: SrcP image.Point for Src images other than *image.Uniform? How - // does it get updated during DrawString? -} - -// TODO: should DrawString return the last rune drawn, so the next DrawString -// call can kern beforehand? Or should that be the responsibility of the caller -// if they really want to do that, since they have to explicitly shift d.Dot -// anyway? What if ligatures span more than two runes? What if grapheme -// clusters span multiple runes? -// -// TODO: do we assume that the input is in any particular Unicode Normalization -// Form? -// -// TODO: have DrawRunes(s []rune)? DrawRuneReader(io.RuneReader)?? If we take -// io.RuneReader, we can't assume that we can rewind the stream. -// -// TODO: how does this work with line breaking: drawing text up until a -// vertical line? Should DrawString return the number of runes drawn? - -// DrawBytes draws s at the dot and advances the dot's location. -// -// It is equivalent to DrawString(string(s)) but may be more efficient. -func (d *Drawer) DrawBytes(s []byte) { - prevC := rune(-1) - for len(s) > 0 { - c, size := utf8.DecodeRune(s) - s = s[size:] - if prevC >= 0 { - d.Dot.X += d.Face.Kern(prevC, c) - } - dr, mask, maskp, advance, ok := d.Face.Glyph(d.Dot, c) - if !ok { - // TODO: is falling back on the U+FFFD glyph the responsibility of - // the Drawer or the Face? - // TODO: set prevC = '\ufffd'? - continue - } - draw.DrawMask(d.Dst, dr, d.Src, image.Point{}, mask, maskp, draw.Over) - d.Dot.X += advance - prevC = c - } -} - -// DrawString draws s at the dot and advances the dot's location. -func (d *Drawer) DrawString(s string) { - prevC := rune(-1) - for _, c := range s { - if prevC >= 0 { - d.Dot.X += d.Face.Kern(prevC, c) - } - dr, mask, maskp, advance, ok := d.Face.Glyph(d.Dot, c) - if !ok { - // TODO: is falling back on the U+FFFD glyph the responsibility of - // the Drawer or the Face? - // TODO: set prevC = '\ufffd'? - continue - } - draw.DrawMask(d.Dst, dr, d.Src, image.Point{}, mask, maskp, draw.Over) - d.Dot.X += advance - prevC = c - } -} - -// BoundBytes returns the bounding box of s, drawn at the drawer dot, as well as -// the advance. -// -// It is equivalent to BoundBytes(string(s)) but may be more efficient. -func (d *Drawer) BoundBytes(s []byte) (bounds fixed.Rectangle26_6, advance fixed.Int26_6) { - bounds, advance = BoundBytes(d.Face, s) - bounds.Min = bounds.Min.Add(d.Dot) - bounds.Max = bounds.Max.Add(d.Dot) - return -} - -// BoundString returns the bounding box of s, drawn at the drawer dot, as well -// as the advance. -func (d *Drawer) BoundString(s string) (bounds fixed.Rectangle26_6, advance fixed.Int26_6) { - bounds, advance = BoundString(d.Face, s) - bounds.Min = bounds.Min.Add(d.Dot) - bounds.Max = bounds.Max.Add(d.Dot) - return -} - -// MeasureBytes returns how far dot would advance by drawing s. -// -// It is equivalent to MeasureString(string(s)) but may be more efficient. -func (d *Drawer) MeasureBytes(s []byte) (advance fixed.Int26_6) { - return MeasureBytes(d.Face, s) -} - -// MeasureString returns how far dot would advance by drawing s. -func (d *Drawer) MeasureString(s string) (advance fixed.Int26_6) { - return MeasureString(d.Face, s) -} - -// BoundBytes returns the bounding box of s with f, drawn at a dot equal to the -// origin, as well as the advance. -// -// It is equivalent to BoundString(string(s)) but may be more efficient. -func BoundBytes(f Face, s []byte) (bounds fixed.Rectangle26_6, advance fixed.Int26_6) { - prevC := rune(-1) - for len(s) > 0 { - c, size := utf8.DecodeRune(s) - s = s[size:] - if prevC >= 0 { - advance += f.Kern(prevC, c) - } - b, a, ok := f.GlyphBounds(c) - if !ok { - // TODO: is falling back on the U+FFFD glyph the responsibility of - // the Drawer or the Face? - // TODO: set prevC = '\ufffd'? - continue - } - b.Min.X += advance - b.Max.X += advance - bounds = bounds.Union(b) - advance += a - prevC = c - } - return -} - -// BoundString returns the bounding box of s with f, drawn at a dot equal to the -// origin, as well as the advance. -func BoundString(f Face, s string) (bounds fixed.Rectangle26_6, advance fixed.Int26_6) { - prevC := rune(-1) - for _, c := range s { - if prevC >= 0 { - advance += f.Kern(prevC, c) - } - b, a, ok := f.GlyphBounds(c) - if !ok { - // TODO: is falling back on the U+FFFD glyph the responsibility of - // the Drawer or the Face? - // TODO: set prevC = '\ufffd'? - continue - } - b.Min.X += advance - b.Max.X += advance - bounds = bounds.Union(b) - advance += a - prevC = c - } - return -} - -// MeasureBytes returns how far dot would advance by drawing s with f. -// -// It is equivalent to MeasureString(string(s)) but may be more efficient. -func MeasureBytes(f Face, s []byte) (advance fixed.Int26_6) { - prevC := rune(-1) - for len(s) > 0 { - c, size := utf8.DecodeRune(s) - s = s[size:] - if prevC >= 0 { - advance += f.Kern(prevC, c) - } - a, ok := f.GlyphAdvance(c) - if !ok { - // TODO: is falling back on the U+FFFD glyph the responsibility of - // the Drawer or the Face? - // TODO: set prevC = '\ufffd'? - continue - } - advance += a - prevC = c - } - return advance -} - -// MeasureString returns how far dot would advance by drawing s with f. -func MeasureString(f Face, s string) (advance fixed.Int26_6) { - prevC := rune(-1) - for _, c := range s { - if prevC >= 0 { - advance += f.Kern(prevC, c) - } - a, ok := f.GlyphAdvance(c) - if !ok { - // TODO: is falling back on the U+FFFD glyph the responsibility of - // the Drawer or the Face? - // TODO: set prevC = '\ufffd'? - continue - } - advance += a - prevC = c - } - return advance -} - -// Hinting selects how to quantize a vector font's glyph nodes. -// -// Not all fonts support hinting. -type Hinting int - -const ( - HintingNone Hinting = iota - HintingVertical - HintingFull -) - -// Stretch selects a normal, condensed, or expanded face. -// -// Not all fonts support stretches. -type Stretch int - -const ( - StretchUltraCondensed Stretch = -4 - StretchExtraCondensed Stretch = -3 - StretchCondensed Stretch = -2 - StretchSemiCondensed Stretch = -1 - StretchNormal Stretch = +0 - StretchSemiExpanded Stretch = +1 - StretchExpanded Stretch = +2 - StretchExtraExpanded Stretch = +3 - StretchUltraExpanded Stretch = +4 -) - -// Style selects a normal, italic, or oblique face. -// -// Not all fonts support styles. -type Style int - -const ( - StyleNormal Style = iota - StyleItalic - StyleOblique -) - -// Weight selects a normal, light or bold face. -// -// Not all fonts support weights. -// -// The named Weight constants (e.g. WeightBold) correspond to CSS' common -// weight names (e.g. "Bold"), but the numerical values differ, so that in Go, -// the zero value means to use a normal weight. For the CSS names and values, -// see https://developer.mozilla.org/en/docs/Web/CSS/font-weight -type Weight int - -const ( - WeightThin Weight = -3 // CSS font-weight value 100. - WeightExtraLight Weight = -2 // CSS font-weight value 200. - WeightLight Weight = -1 // CSS font-weight value 300. - WeightNormal Weight = +0 // CSS font-weight value 400. - WeightMedium Weight = +1 // CSS font-weight value 500. - WeightSemiBold Weight = +2 // CSS font-weight value 600. - WeightBold Weight = +3 // CSS font-weight value 700. - WeightExtraBold Weight = +4 // CSS font-weight value 800. - WeightBlack Weight = +5 // CSS font-weight value 900. -) diff --git a/vendor/golang.org/x/image/font/plan9font/plan9font.go b/vendor/golang.org/x/image/font/plan9font/plan9font.go deleted file mode 100644 index 315e793..0000000 --- a/vendor/golang.org/x/image/font/plan9font/plan9font.go +++ /dev/null @@ -1,610 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package plan9font implements font faces for the Plan 9 font and subfont file -// formats. These formats are described at -// http://plan9.bell-labs.com/magic/man2html/6/font -package plan9font // import "golang.org/x/image/font/plan9font" - -import ( - "bytes" - "errors" - "fmt" - "image" - "image/color" - "log" - "strconv" - "strings" - - "golang.org/x/image/font" - "golang.org/x/image/math/fixed" -) - -// fontchar describes one character glyph in a subfont. -// -// For more detail, look for "struct Fontchar" in -// http://plan9.bell-labs.com/magic/man2html/2/cachechars -type fontchar struct { - x uint32 // X position in the image holding the glyphs. - top uint8 // First non-zero scan line. - bottom uint8 // Last non-zero scan line. - left int8 // Offset of baseline. - width uint8 // Width of baseline. -} - -func parseFontchars(p []byte) []fontchar { - fc := make([]fontchar, len(p)/6) - for i := range fc { - fc[i] = fontchar{ - x: uint32(p[0]) | uint32(p[1])<<8, - top: uint8(p[2]), - bottom: uint8(p[3]), - left: int8(p[4]), - width: uint8(p[5]), - } - p = p[6:] - } - return fc -} - -// subface implements font.Face for a Plan 9 subfont. -type subface struct { - firstRune rune // First rune in the subfont. - n int // Number of characters in the subfont. - height int // Inter-line spacing. - ascent int // Height above the baseline. - fontchars []fontchar // Character descriptions. - img *image.Alpha // Image holding the glyphs. -} - -func (f *subface) Close() error { return nil } -func (f *subface) Kern(r0, r1 rune) fixed.Int26_6 { return 0 } - -func (f *subface) Metrics() font.Metrics { - return font.Metrics{ - Height: fixed.I(f.height), - Ascent: fixed.I(f.ascent), - Descent: fixed.I(f.height - f.ascent), - } -} - -func (f *subface) Glyph(dot fixed.Point26_6, r rune) ( - dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool) { - - r -= f.firstRune - if r < 0 || f.n <= int(r) { - return image.Rectangle{}, nil, image.Point{}, 0, false - } - i := &f.fontchars[r+0] - j := &f.fontchars[r+1] - - minX := int(dot.X+32)>>6 + int(i.left) - minY := int(dot.Y+32)>>6 + int(i.top) - f.ascent - dr = image.Rectangle{ - Min: image.Point{ - X: minX, - Y: minY, - }, - Max: image.Point{ - X: minX + int(j.x-i.x), - Y: minY + int(i.bottom) - int(i.top), - }, - } - return dr, f.img, image.Point{int(i.x), int(i.top)}, fixed.Int26_6(i.width) << 6, true -} - -func (f *subface) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool) { - r -= f.firstRune - if r < 0 || f.n <= int(r) { - return fixed.Rectangle26_6{}, 0, false - } - i := &f.fontchars[r+0] - j := &f.fontchars[r+1] - - bounds = fixed.R( - int(i.left), - int(i.top)-f.ascent, - int(i.left)+int(j.x-i.x), - int(i.bottom)-f.ascent, - ) - return bounds, fixed.Int26_6(i.width) << 6, true -} - -func (f *subface) GlyphAdvance(r rune) (advance fixed.Int26_6, ok bool) { - r -= f.firstRune - if r < 0 || f.n <= int(r) { - return 0, false - } - return fixed.Int26_6(f.fontchars[r].width) << 6, true -} - -// runeRange maps a single rune range [lo, hi] to a lazily loaded subface. Both -// ends of the range are inclusive. -type runeRange struct { - lo, hi rune - offset rune // subfont index that the lo rune maps to. - relFilename string - subface *subface - bad bool -} - -// face implements font.Face for a Plan 9 font. -// -// It maps multiple rune ranges to *subface values. Rune ranges may overlap; -// the first match wins. -type face struct { - height int - ascent int - readFile func(relFilename string) ([]byte, error) - runeRanges []runeRange -} - -func (f *face) Close() error { return nil } -func (f *face) Kern(r0, r1 rune) fixed.Int26_6 { return 0 } - -func (f *face) Metrics() font.Metrics { - return font.Metrics{ - Height: fixed.I(f.height), - Ascent: fixed.I(f.ascent), - Descent: fixed.I(f.height - f.ascent), - } -} - -func (f *face) Glyph(dot fixed.Point26_6, r rune) ( - dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool) { - - if s, rr := f.subface(r); s != nil { - return s.Glyph(dot, rr) - } - return image.Rectangle{}, nil, image.Point{}, 0, false -} - -func (f *face) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool) { - if s, rr := f.subface(r); s != nil { - return s.GlyphBounds(rr) - } - return fixed.Rectangle26_6{}, 0, false -} - -func (f *face) GlyphAdvance(r rune) (advance fixed.Int26_6, ok bool) { - if s, rr := f.subface(r); s != nil { - return s.GlyphAdvance(rr) - } - return 0, false -} - -// For subfont files, if reading the given file name fails, we try appending -// ".n" where n is the log2 of the grayscale depth in bits (so at most 3) and -// then work down to 0. This was done in Plan 9 when antialiased fonts were -// introduced so that the 1-bit displays could keep using the 1-bit forms but -// higher depth displays could use the antialiased forms. -var subfontSuffixes = [...]string{ - "", - ".3", - ".2", - ".1", - ".0", -} - -func (f *face) readSubfontFile(name string) ([]byte, error) { - var firstErr error - for _, suffix := range subfontSuffixes { - if b, err := f.readFile(name + suffix); err == nil { - return b, nil - } else if firstErr == nil { - firstErr = err - } - } - return nil, firstErr -} - -func (f *face) subface(r rune) (*subface, rune) { - // Fall back on U+FFFD if we can't find r. - for _, rr := range [2]rune{r, '\ufffd'} { - // We have to do linear, not binary search. plan9port's - // lucsans/unicode.8.font says: - // 0x2591 0x2593 ../luc/Altshades.7.0 - // 0x2500 0x25ee ../luc/FormBlock.7.0 - // and the rune ranges overlap. - for i := range f.runeRanges { - x := &f.runeRanges[i] - if rr < x.lo || x.hi < rr || x.bad { - continue - } - if x.subface == nil { - data, err := f.readSubfontFile(x.relFilename) - if err != nil { - log.Printf("plan9font: couldn't read subfont %q: %v", x.relFilename, err) - x.bad = true - continue - } - sub, err := ParseSubfont(data, x.lo-x.offset) - if err != nil { - log.Printf("plan9font: couldn't parse subfont %q: %v", x.relFilename, err) - x.bad = true - continue - } - x.subface = sub.(*subface) - } - return x.subface, rr - } - } - return nil, 0 -} - -// ParseFont parses a Plan 9 font file. data is the contents of that font file, -// which gives relative filenames for subfont files. readFile returns the -// contents of those subfont files. It is similar to io/ioutil's ReadFile -// function, except that it takes a relative filename instead of an absolute -// one. -func ParseFont(data []byte, readFile func(relFilename string) ([]byte, error)) (font.Face, error) { - f := &face{ - readFile: readFile, - } - // TODO: don't use strconv, to avoid the conversions from []byte to string? - for first := true; len(data) > 0; first = false { - i := bytes.IndexByte(data, '\n') - if i < 0 { - return nil, errors.New("plan9font: invalid font: no final newline") - } - row := string(data[:i]) - data = data[i+1:] - if first { - height, s, ok := nextInt32(row) - if !ok { - return nil, fmt.Errorf("plan9font: invalid font: invalid header %q", row) - } - ascent, s, ok := nextInt32(s) - if !ok { - return nil, fmt.Errorf("plan9font: invalid font: invalid header %q", row) - } - if height < 0 || 0xffff < height || ascent < 0 || 0xffff < ascent { - return nil, fmt.Errorf("plan9font: invalid font: invalid header %q", row) - } - f.height, f.ascent = int(height), int(ascent) - continue - } - lo, s, ok := nextInt32(row) - if !ok { - return nil, fmt.Errorf("plan9font: invalid font: invalid row %q", row) - } - hi, s, ok := nextInt32(s) - if !ok { - return nil, fmt.Errorf("plan9font: invalid font: invalid row %q", row) - } - offset, s, _ := nextInt32(s) - - f.runeRanges = append(f.runeRanges, runeRange{ - lo: lo, - hi: hi, - offset: offset, - relFilename: s, - }) - } - return f, nil -} - -func nextInt32(s string) (ret int32, remaining string, ok bool) { - i := 0 - for ; i < len(s) && s[i] <= ' '; i++ { - } - j := i - for ; j < len(s) && s[j] > ' '; j++ { - } - n, err := strconv.ParseInt(s[i:j], 0, 32) - if err != nil { - return 0, s, false - } - for ; j < len(s) && s[j] <= ' '; j++ { - } - return int32(n), s[j:], true -} - -// ParseSubfont parses a Plan 9 subfont file. -// -// firstRune is the first rune in the subfont file. For example, the -// Phonetic.6.0 subfont, containing glyphs in the range U+0250 to U+02E9, would -// set firstRune to '\u0250'. -func ParseSubfont(data []byte, firstRune rune) (font.Face, error) { - data, m, err := parseImage(data) - if err != nil { - return nil, err - } - if len(data) < 3*12 { - return nil, errors.New("plan9font: invalid subfont: header too short") - } - n := atoi(data[0*12:]) - height := atoi(data[1*12:]) - ascent := atoi(data[2*12:]) - data = data[3*12:] - if len(data) != 6*(n+1) { - return nil, errors.New("plan9font: invalid subfont: data length mismatch") - } - - // Convert from plan9Image to image.Alpha, as the standard library's - // image/draw package works best when glyph masks are of that type. - img := image.NewAlpha(m.Bounds()) - for y := img.Rect.Min.Y; y < img.Rect.Max.Y; y++ { - i := img.PixOffset(img.Rect.Min.X, y) - for x := img.Rect.Min.X; x < img.Rect.Max.X; x++ { - img.Pix[i] = m.at(x, y) - i++ - } - } - - return &subface{ - firstRune: firstRune, - n: n, - height: height, - ascent: ascent, - fontchars: parseFontchars(data), - img: img, - }, nil -} - -// plan9Image implements that subset of the Plan 9 image feature set that is -// used by this font file format. -// -// Some features, such as the repl bit and a clip rectangle, are omitted for -// simplicity. -type plan9Image struct { - depth int // Depth of the pixels in bits. - width int // Width in bytes of a single scan line. - rect image.Rectangle // Extent of the image. - pix []byte // Pixel bits. -} - -func (m *plan9Image) byteoffset(x, y int) int { - a := y * m.width - if m.depth < 8 { - // We need to always round down, but Go rounds toward zero. - np := 8 / m.depth - if x < 0 { - return a + (x-np+1)/np - } - return a + x/np - } - return a + x*(m.depth/8) -} - -func (m *plan9Image) Bounds() image.Rectangle { return m.rect } -func (m *plan9Image) ColorModel() color.Model { return color.AlphaModel } - -func (m *plan9Image) At(x, y int) color.Color { - if (image.Point{x, y}).In(m.rect) { - return color.Alpha{m.at(x, y)} - } - return color.Alpha{0x00} -} - -func (m *plan9Image) at(x, y int) uint8 { - b := m.pix[m.byteoffset(x, y)] - switch m.depth { - case 1: - // CGrey, 1. - mask := uint8(1 << uint8(7-x&7)) - if (b & mask) != 0 { - return 0xff - } - return 0 - case 2: - // CGrey, 2. - shift := uint(x&3) << 1 - // Place pixel at top of word. - y := b << shift - y &= 0xc0 - // Replicate throughout. - y |= y >> 2 - y |= y >> 4 - return y - } - return 0 -} - -var compressed = []byte("compressed\n") - -func parseImage(data []byte) (remainingData []byte, m *plan9Image, retErr error) { - if !bytes.HasPrefix(data, compressed) { - return nil, nil, errors.New("plan9font: unsupported uncompressed format") - } - data = data[len(compressed):] - - const hdrSize = 5 * 12 - if len(data) < hdrSize { - return nil, nil, errors.New("plan9font: invalid image: header too short") - } - hdr, data := data[:hdrSize], data[hdrSize:] - - // Distinguish new channel descriptor from old ldepth. Channel descriptors - // have letters as well as numbers, while ldepths are a single digit - // formatted as %-11d. - new := false - for m := 0; m < 10; m++ { - if hdr[m] != ' ' { - new = true - break - } - } - if hdr[11] != ' ' { - return nil, nil, errors.New("plan9font: invalid image: bad header") - } - if !new { - return nil, nil, errors.New("plan9font: unsupported ldepth format") - } - - depth := 0 - switch s := strings.TrimSpace(string(hdr[:1*12])); s { - default: - return nil, nil, fmt.Errorf("plan9font: unsupported pixel format %q", s) - case "k1": - depth = 1 - case "k2": - depth = 2 - } - r := ator(hdr[1*12:]) - if r.Min.X > r.Max.X || r.Min.Y > r.Max.Y { - return nil, nil, errors.New("plan9font: invalid image: bad rectangle") - } - - width := bytesPerLine(r, depth) - m = &plan9Image{ - depth: depth, - width: width, - rect: r, - pix: make([]byte, width*r.Dy()), - } - - miny := r.Min.Y - for miny != r.Max.Y { - if len(data) < 2*12 { - return nil, nil, errors.New("plan9font: invalid image: data band too short") - } - maxy := atoi(data[0*12:]) - nb := atoi(data[1*12:]) - data = data[2*12:] - - if len(data) < nb { - return nil, nil, errors.New("plan9font: invalid image: data band length mismatch") - } - buf := data[:nb] - data = data[nb:] - - if maxy <= miny || r.Max.Y < maxy { - return nil, nil, fmt.Errorf("plan9font: bad maxy %d", maxy) - } - // An old-format image would flip the bits here, but we don't support - // the old format. - rr := r - rr.Min.Y = miny - rr.Max.Y = maxy - if err := decompress(m, rr, buf); err != nil { - return nil, nil, err - } - miny = maxy - } - return data, m, nil -} - -// Compressed data are sequences of byte codes. If the first byte b has the -// 0x80 bit set, the next (b^0x80)+1 bytes are data. Otherwise, these two bytes -// specify a previous string to repeat. -const ( - compShortestMatch = 3 // shortest match possible. - compWindowSize = 1024 // window size. -) - -var ( - errDecompressBufferTooSmall = errors.New("plan9font: decompress: buffer too small") - errDecompressPhaseError = errors.New("plan9font: decompress: phase error") -) - -func decompress(m *plan9Image, r image.Rectangle, data []byte) error { - if !r.In(m.rect) { - return errors.New("plan9font: decompress: bad rectangle") - } - bpl := bytesPerLine(r, m.depth) - mem := make([]byte, compWindowSize) - memi := 0 - omemi := -1 - y := r.Min.Y - linei := m.byteoffset(r.Min.X, y) - eline := linei + bpl - datai := 0 - for { - if linei == eline { - y++ - if y == r.Max.Y { - break - } - linei = m.byteoffset(r.Min.X, y) - eline = linei + bpl - } - if datai == len(data) { - return errDecompressBufferTooSmall - } - c := data[datai] - datai++ - if c >= 128 { - for cnt := c - 128 + 1; cnt != 0; cnt-- { - if datai == len(data) { - return errDecompressBufferTooSmall - } - if linei == eline { - return errDecompressPhaseError - } - m.pix[linei] = data[datai] - linei++ - mem[memi] = data[datai] - memi++ - datai++ - if memi == len(mem) { - memi = 0 - } - } - } else { - if datai == len(data) { - return errDecompressBufferTooSmall - } - offs := int(data[datai]) + ((int(c) & 3) << 8) + 1 - datai++ - if memi < offs { - omemi = memi + (compWindowSize - offs) - } else { - omemi = memi - offs - } - for cnt := (c >> 2) + compShortestMatch; cnt != 0; cnt-- { - if linei == eline { - return errDecompressPhaseError - } - m.pix[linei] = mem[omemi] - linei++ - mem[memi] = mem[omemi] - memi++ - omemi++ - if omemi == len(mem) { - omemi = 0 - } - if memi == len(mem) { - memi = 0 - } - } - } - } - return nil -} - -func ator(b []byte) image.Rectangle { - return image.Rectangle{atop(b), atop(b[2*12:])} -} - -func atop(b []byte) image.Point { - return image.Pt(atoi(b), atoi(b[12:])) -} - -func atoi(b []byte) int { - i := 0 - for ; i < len(b) && b[i] == ' '; i++ { - } - n := 0 - for ; i < len(b) && '0' <= b[i] && b[i] <= '9'; i++ { - n = n*10 + int(b[i]) - '0' - } - return n -} - -func bytesPerLine(r image.Rectangle, depth int) int { - if depth <= 0 || 32 < depth { - panic("invalid depth") - } - var l int - if r.Min.X >= 0 { - l = (r.Max.X*depth + 7) / 8 - l -= (r.Min.X * depth) / 8 - } else { - // Make positive before divide. - t := (-r.Min.X*depth + 7) / 8 - l = t + (r.Max.X*depth+7)/8 - } - return l -} diff --git a/vendor/golang.org/x/image/math/f64/f64.go b/vendor/golang.org/x/image/math/f64/f64.go deleted file mode 100644 index a1f7fc0..0000000 --- a/vendor/golang.org/x/image/math/f64/f64.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package f64 implements float64 vector and matrix types. -package f64 // import "golang.org/x/image/math/f64" - -// Vec2 is a 2-element vector. -type Vec2 [2]float64 - -// Vec3 is a 3-element vector. -type Vec3 [3]float64 - -// Vec4 is a 4-element vector. -type Vec4 [4]float64 - -// Mat3 is a 3x3 matrix in row major order. -// -// m[3*r + c] is the element in the r'th row and c'th column. -type Mat3 [9]float64 - -// Mat4 is a 4x4 matrix in row major order. -// -// m[4*r + c] is the element in the r'th row and c'th column. -type Mat4 [16]float64 - -// Aff3 is a 3x3 affine transformation matrix in row major order, where the -// bottom row is implicitly [0 0 1]. -// -// m[3*r + c] is the element in the r'th row and c'th column. -type Aff3 [6]float64 - -// Aff4 is a 4x4 affine transformation matrix in row major order, where the -// bottom row is implicitly [0 0 0 1]. -// -// m[4*r + c] is the element in the r'th row and c'th column. -type Aff4 [12]float64 diff --git a/vendor/golang.org/x/image/math/fixed/fixed.go b/vendor/golang.org/x/image/math/fixed/fixed.go deleted file mode 100644 index 3d91663..0000000 --- a/vendor/golang.org/x/image/math/fixed/fixed.go +++ /dev/null @@ -1,410 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package fixed implements fixed-point integer types. -package fixed // import "golang.org/x/image/math/fixed" - -import ( - "fmt" -) - -// TODO: implement fmt.Formatter for %f and %g. - -// I returns the integer value i as an Int26_6. -// -// For example, passing the integer value 2 yields Int26_6(128). -func I(i int) Int26_6 { - return Int26_6(i << 6) -} - -// Int26_6 is a signed 26.6 fixed-point number. -// -// The integer part ranges from -33554432 to 33554431, inclusive. The -// fractional part has 6 bits of precision. -// -// For example, the number one-and-a-quarter is Int26_6(1<<6 + 1<<4). -type Int26_6 int32 - -// String returns a human-readable representation of a 26.6 fixed-point number. -// -// For example, the number one-and-a-quarter becomes "1:16". -func (x Int26_6) String() string { - const shift, mask = 6, 1<<6 - 1 - if x >= 0 { - return fmt.Sprintf("%d:%02d", int32(x>>shift), int32(x&mask)) - } - x = -x - if x >= 0 { - return fmt.Sprintf("-%d:%02d", int32(x>>shift), int32(x&mask)) - } - return "-33554432:00" // The minimum value is -(1<<25). -} - -// Floor returns the greatest integer value less than or equal to x. -// -// Its return type is int, not Int26_6. -func (x Int26_6) Floor() int { return int((x + 0x00) >> 6) } - -// Round returns the nearest integer value to x. Ties are rounded up. -// -// Its return type is int, not Int26_6. -func (x Int26_6) Round() int { return int((x + 0x20) >> 6) } - -// Ceil returns the least integer value greater than or equal to x. -// -// Its return type is int, not Int26_6. -func (x Int26_6) Ceil() int { return int((x + 0x3f) >> 6) } - -// Mul returns x*y in 26.6 fixed-point arithmetic. -func (x Int26_6) Mul(y Int26_6) Int26_6 { - return Int26_6((int64(x)*int64(y) + 1<<5) >> 6) -} - -// Int52_12 is a signed 52.12 fixed-point number. -// -// The integer part ranges from -2251799813685248 to 2251799813685247, -// inclusive. The fractional part has 12 bits of precision. -// -// For example, the number one-and-a-quarter is Int52_12(1<<12 + 1<<10). -type Int52_12 int64 - -// String returns a human-readable representation of a 52.12 fixed-point -// number. -// -// For example, the number one-and-a-quarter becomes "1:1024". -func (x Int52_12) String() string { - const shift, mask = 12, 1<<12 - 1 - if x >= 0 { - return fmt.Sprintf("%d:%04d", int64(x>>shift), int64(x&mask)) - } - x = -x - if x >= 0 { - return fmt.Sprintf("-%d:%04d", int64(x>>shift), int64(x&mask)) - } - return "-2251799813685248:0000" // The minimum value is -(1<<51). -} - -// Floor returns the greatest integer value less than or equal to x. -// -// Its return type is int, not Int52_12. -func (x Int52_12) Floor() int { return int((x + 0x000) >> 12) } - -// Round returns the nearest integer value to x. Ties are rounded up. -// -// Its return type is int, not Int52_12. -func (x Int52_12) Round() int { return int((x + 0x800) >> 12) } - -// Ceil returns the least integer value greater than or equal to x. -// -// Its return type is int, not Int52_12. -func (x Int52_12) Ceil() int { return int((x + 0xfff) >> 12) } - -// Mul returns x*y in 52.12 fixed-point arithmetic. -func (x Int52_12) Mul(y Int52_12) Int52_12 { - const M, N = 52, 12 - lo, hi := muli64(int64(x), int64(y)) - ret := Int52_12(hi<>N) - ret += Int52_12((lo >> (N - 1)) & 1) // Round to nearest, instead of rounding down. - return ret -} - -// muli64 multiplies two int64 values, returning the 128-bit signed integer -// result as two uint64 values. -// -// This implementation is similar to $GOROOT/src/runtime/softfloat64.go's mullu -// function, which is in turn adapted from Hacker's Delight. -func muli64(u, v int64) (lo, hi uint64) { - const ( - s = 32 - mask = 1<> s) - u0 := uint64(u & mask) - v1 := uint64(v >> s) - v0 := uint64(v & mask) - - w0 := u0 * v0 - t := u1*v0 + w0>>s - w1 := t & mask - w2 := uint64(int64(t) >> s) - w1 += u0 * v1 - return uint64(u) * uint64(v), u1*v1 + w2 + uint64(int64(w1)>>s) -} - -// P returns the integer values x and y as a Point26_6. -// -// For example, passing the integer values (2, -3) yields Point26_6{128, -192}. -func P(x, y int) Point26_6 { - return Point26_6{Int26_6(x << 6), Int26_6(y << 6)} -} - -// Point26_6 is a 26.6 fixed-point coordinate pair. -// -// It is analogous to the image.Point type in the standard library. -type Point26_6 struct { - X, Y Int26_6 -} - -// Add returns the vector p+q. -func (p Point26_6) Add(q Point26_6) Point26_6 { - return Point26_6{p.X + q.X, p.Y + q.Y} -} - -// Sub returns the vector p-q. -func (p Point26_6) Sub(q Point26_6) Point26_6 { - return Point26_6{p.X - q.X, p.Y - q.Y} -} - -// Mul returns the vector p*k. -func (p Point26_6) Mul(k Int26_6) Point26_6 { - return Point26_6{p.X * k / 64, p.Y * k / 64} -} - -// Div returns the vector p/k. -func (p Point26_6) Div(k Int26_6) Point26_6 { - return Point26_6{p.X * 64 / k, p.Y * 64 / k} -} - -// In returns whether p is in r. -func (p Point26_6) In(r Rectangle26_6) bool { - return r.Min.X <= p.X && p.X < r.Max.X && r.Min.Y <= p.Y && p.Y < r.Max.Y -} - -// Point52_12 is a 52.12 fixed-point coordinate pair. -// -// It is analogous to the image.Point type in the standard library. -type Point52_12 struct { - X, Y Int52_12 -} - -// Add returns the vector p+q. -func (p Point52_12) Add(q Point52_12) Point52_12 { - return Point52_12{p.X + q.X, p.Y + q.Y} -} - -// Sub returns the vector p-q. -func (p Point52_12) Sub(q Point52_12) Point52_12 { - return Point52_12{p.X - q.X, p.Y - q.Y} -} - -// Mul returns the vector p*k. -func (p Point52_12) Mul(k Int52_12) Point52_12 { - return Point52_12{p.X * k / 4096, p.Y * k / 4096} -} - -// Div returns the vector p/k. -func (p Point52_12) Div(k Int52_12) Point52_12 { - return Point52_12{p.X * 4096 / k, p.Y * 4096 / k} -} - -// In returns whether p is in r. -func (p Point52_12) In(r Rectangle52_12) bool { - return r.Min.X <= p.X && p.X < r.Max.X && r.Min.Y <= p.Y && p.Y < r.Max.Y -} - -// R returns the integer values minX, minY, maxX, maxY as a Rectangle26_6. -// -// For example, passing the integer values (0, 1, 2, 3) yields -// Rectangle26_6{Point26_6{0, 64}, Point26_6{128, 192}}. -// -// Like the image.Rect function in the standard library, the returned rectangle -// has minimum and maximum coordinates swapped if necessary so that it is -// well-formed. -func R(minX, minY, maxX, maxY int) Rectangle26_6 { - if minX > maxX { - minX, maxX = maxX, minX - } - if minY > maxY { - minY, maxY = maxY, minY - } - return Rectangle26_6{ - Point26_6{ - Int26_6(minX << 6), - Int26_6(minY << 6), - }, - Point26_6{ - Int26_6(maxX << 6), - Int26_6(maxY << 6), - }, - } -} - -// Rectangle26_6 is a 26.6 fixed-point coordinate rectangle. The Min bound is -// inclusive and the Max bound is exclusive. It is well-formed if Min.X <= -// Max.X and likewise for Y. -// -// It is analogous to the image.Rectangle type in the standard library. -type Rectangle26_6 struct { - Min, Max Point26_6 -} - -// Add returns the rectangle r translated by p. -func (r Rectangle26_6) Add(p Point26_6) Rectangle26_6 { - return Rectangle26_6{ - Point26_6{r.Min.X + p.X, r.Min.Y + p.Y}, - Point26_6{r.Max.X + p.X, r.Max.Y + p.Y}, - } -} - -// Sub returns the rectangle r translated by -p. -func (r Rectangle26_6) Sub(p Point26_6) Rectangle26_6 { - return Rectangle26_6{ - Point26_6{r.Min.X - p.X, r.Min.Y - p.Y}, - Point26_6{r.Max.X - p.X, r.Max.Y - p.Y}, - } -} - -// Intersect returns the largest rectangle contained by both r and s. If the -// two rectangles do not overlap then the zero rectangle will be returned. -func (r Rectangle26_6) Intersect(s Rectangle26_6) Rectangle26_6 { - if r.Min.X < s.Min.X { - r.Min.X = s.Min.X - } - if r.Min.Y < s.Min.Y { - r.Min.Y = s.Min.Y - } - if r.Max.X > s.Max.X { - r.Max.X = s.Max.X - } - if r.Max.Y > s.Max.Y { - r.Max.Y = s.Max.Y - } - // Letting r0 and s0 be the values of r and s at the time that the method - // is called, this next line is equivalent to: - // - // if max(r0.Min.X, s0.Min.X) >= min(r0.Max.X, s0.Max.X) || likewiseForY { etc } - if r.Empty() { - return Rectangle26_6{} - } - return r -} - -// Union returns the smallest rectangle that contains both r and s. -func (r Rectangle26_6) Union(s Rectangle26_6) Rectangle26_6 { - if r.Empty() { - return s - } - if s.Empty() { - return r - } - if r.Min.X > s.Min.X { - r.Min.X = s.Min.X - } - if r.Min.Y > s.Min.Y { - r.Min.Y = s.Min.Y - } - if r.Max.X < s.Max.X { - r.Max.X = s.Max.X - } - if r.Max.Y < s.Max.Y { - r.Max.Y = s.Max.Y - } - return r -} - -// Empty returns whether the rectangle contains no points. -func (r Rectangle26_6) Empty() bool { - return r.Min.X >= r.Max.X || r.Min.Y >= r.Max.Y -} - -// In returns whether every point in r is in s. -func (r Rectangle26_6) In(s Rectangle26_6) bool { - if r.Empty() { - return true - } - // Note that r.Max is an exclusive bound for r, so that r.In(s) - // does not require that r.Max.In(s). - return s.Min.X <= r.Min.X && r.Max.X <= s.Max.X && - s.Min.Y <= r.Min.Y && r.Max.Y <= s.Max.Y -} - -// Rectangle52_12 is a 52.12 fixed-point coordinate rectangle. The Min bound is -// inclusive and the Max bound is exclusive. It is well-formed if Min.X <= -// Max.X and likewise for Y. -// -// It is analogous to the image.Rectangle type in the standard library. -type Rectangle52_12 struct { - Min, Max Point52_12 -} - -// Add returns the rectangle r translated by p. -func (r Rectangle52_12) Add(p Point52_12) Rectangle52_12 { - return Rectangle52_12{ - Point52_12{r.Min.X + p.X, r.Min.Y + p.Y}, - Point52_12{r.Max.X + p.X, r.Max.Y + p.Y}, - } -} - -// Sub returns the rectangle r translated by -p. -func (r Rectangle52_12) Sub(p Point52_12) Rectangle52_12 { - return Rectangle52_12{ - Point52_12{r.Min.X - p.X, r.Min.Y - p.Y}, - Point52_12{r.Max.X - p.X, r.Max.Y - p.Y}, - } -} - -// Intersect returns the largest rectangle contained by both r and s. If the -// two rectangles do not overlap then the zero rectangle will be returned. -func (r Rectangle52_12) Intersect(s Rectangle52_12) Rectangle52_12 { - if r.Min.X < s.Min.X { - r.Min.X = s.Min.X - } - if r.Min.Y < s.Min.Y { - r.Min.Y = s.Min.Y - } - if r.Max.X > s.Max.X { - r.Max.X = s.Max.X - } - if r.Max.Y > s.Max.Y { - r.Max.Y = s.Max.Y - } - // Letting r0 and s0 be the values of r and s at the time that the method - // is called, this next line is equivalent to: - // - // if max(r0.Min.X, s0.Min.X) >= min(r0.Max.X, s0.Max.X) || likewiseForY { etc } - if r.Empty() { - return Rectangle52_12{} - } - return r -} - -// Union returns the smallest rectangle that contains both r and s. -func (r Rectangle52_12) Union(s Rectangle52_12) Rectangle52_12 { - if r.Empty() { - return s - } - if s.Empty() { - return r - } - if r.Min.X > s.Min.X { - r.Min.X = s.Min.X - } - if r.Min.Y > s.Min.Y { - r.Min.Y = s.Min.Y - } - if r.Max.X < s.Max.X { - r.Max.X = s.Max.X - } - if r.Max.Y < s.Max.Y { - r.Max.Y = s.Max.Y - } - return r -} - -// Empty returns whether the rectangle contains no points. -func (r Rectangle52_12) Empty() bool { - return r.Min.X >= r.Max.X || r.Min.Y >= r.Max.Y -} - -// In returns whether every point in r is in s. -func (r Rectangle52_12) In(s Rectangle52_12) bool { - if r.Empty() { - return true - } - // Note that r.Max is an exclusive bound for r, so that r.In(s) - // does not require that r.Max.In(s). - return s.Min.X <= r.Min.X && r.Max.X <= s.Max.X && - s.Min.Y <= r.Min.Y && r.Max.Y <= s.Max.Y -} diff --git a/vendor/honnef.co/go/js/dom/LICENSE b/vendor/honnef.co/go/js/dom/LICENSE deleted file mode 100644 index 676a9fe..0000000 --- a/vendor/honnef.co/go/js/dom/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2014 Dominik Honnef - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/honnef.co/go/js/dom/README.md b/vendor/honnef.co/go/js/dom/README.md deleted file mode 100644 index 3ea280f..0000000 --- a/vendor/honnef.co/go/js/dom/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# js/dom - -Package dom provides GopherJS bindings for the JavaScript DOM APIs. - -## Install - - go get honnef.co/go/js/dom - -## Documentation - -For documentation, see http://godoc.org/honnef.co/go/js/dom diff --git a/vendor/honnef.co/go/js/dom/dom.go b/vendor/honnef.co/go/js/dom/dom.go deleted file mode 100644 index f84d139..0000000 --- a/vendor/honnef.co/go/js/dom/dom.go +++ /dev/null @@ -1,3082 +0,0 @@ -// Package dom provides GopherJS bindings for the JavaScript DOM APIs. -// -// This package is an in progress effort of providing idiomatic Go -// bindings for the DOM, wrapping the JavaScript DOM APIs. The API is -// neither complete nor frozen yet, but a great amount of the DOM is -// already useable. -// -// While the package tries to be idiomatic Go, it also tries to stick -// closely to the JavaScript APIs, so that one does not need to learn -// a new set of APIs if one is already familiar with it. -// -// One decision that hasn't been made yet is what parts exactly should -// be part of this package. It is, for example, possible that the -// canvas APIs will live in a separate package. On the other hand, -// types such as StorageEvent (the event that gets fired when the -// HTML5 storage area changes) will be part of this package, simply -// due to how the DOM is structured – even if the actual storage APIs -// might live in a separate package. This might require special care -// to avoid circular dependencies. -// -// The documentation for some of the identifiers is based on the -// MDN Web Docs by Mozilla Contributors (https://developer.mozilla.org/en-US/docs/Web/API), -// licensed under CC-BY-SA 2.5 (https://creativecommons.org/licenses/by-sa/2.5/). -// -// -// Getting started -// -// The usual entry point of using the dom package is by using the -// GetWindow() function which will return a Window, from which you can -// get things such as the current Document. -// -// -// Interfaces -// -// The DOM has a big amount of different element and event types, but -// they all follow three interfaces. All functions that work on or -// return generic elements/events will return one of the three -// interfaces Element, HTMLElement or Event. In these interface values -// there will be concrete implementations, such as -// HTMLParagraphElement or FocusEvent. It's also not unusual that -// values of type Element also implement HTMLElement. In all cases, -// type assertions can be used. -// -// Example: -// el := dom.GetWindow().Document().QuerySelector(".some-element") -// htmlEl := el.(dom.HTMLElement) -// pEl := el.(*dom.HTMLParagraphElement) -// -// -// Live collections -// -// Several functions in the JavaScript DOM return "live" -// collections of elements, that is collections that will be -// automatically updated when elements get removed or added to the -// DOM. Our bindings, however, return static slices of elements that, -// once created, will not automatically reflect updates to the DOM. -// This is primarily done so that slices can actually be used, as -// opposed to a form of iterator, but also because we think that -// magically changing data isn't Go's nature and that snapshots of -// state are a lot easier to reason about. -// -// This does not, however, mean that all objects are snapshots. -// Elements, events and generally objects that aren't slices or maps -// are simple wrappers around JavaScript objects, and as such -// attributes as well as method calls will always return the most -// current data. To reflect this behaviour, these bindings use -// pointers to make the semantics clear. Consider the following -// example: -// -// d := dom.GetWindow().Document() -// e1 := d.GetElementByID("my-element") -// e2 := d.GetElementByID("my-element") -// -// e1.Class().SetString("some-class") -// println(e1.Class().String() == e2.Class().String()) -// -// The above example will print `true`. -// -// -// DOMTokenList -// -// Some objects in the JS API have two versions of attributes, one -// that returns a string and one that returns a DOMTokenList to ease -// manipulation of string-delimited lists. Some other objects only -// provide DOMTokenList, sometimes DOMSettableTokenList. To simplify -// these bindings, only the DOMTokenList variant will be made -// available, by the type TokenList. In cases where the string -// attribute was the only way to completely replace the value, our -// TokenList will provide Set([]string) and SetString(string) methods, -// which will be able to accomplish the same. Additionally, our -// TokenList will provide methods to convert it to strings and slices. -// -// -// Backwards compatibility -// -// This package has a relatively stable API. However, there will be -// backwards incompatible changes from time to time. This is because -// the package isn't complete yet, as well as because the DOM is a -// moving target, and APIs do change sometimes. -// -// While an attempt is made to reduce changing function signatures to -// a minimum, it can't always be guaranteed. Sometimes mistakes in the -// bindings are found that require changing arguments or return -// values. -// -// Interfaces defined in this package may also change on a -// semi-regular basis, as new methods are added to them. This happens -// because the bindings aren't complete and can never really be, as -// new features are added to the DOM. -// -// If you depend on none of the APIs changing unexpectedly, you're -// advised to vendor this package. -package dom // import "honnef.co/go/js/dom" - -import ( - "image" - "image/color" - "strings" - "time" - - "github.com/gopherjs/gopherjs/js" -) - -// toString returns the string representation of o. If o is nil or -// undefined, the empty string will be returned instead. -func toString(o *js.Object) string { - if o == nil || o == js.Undefined { - return "" - } - return o.String() -} - -func callRecover(o *js.Object, fn string, args ...interface{}) (err error) { - defer func() { - e := recover() - if e == nil { - return - } - if panicErr, ok := e.(error); ok && panicErr != nil { - err = panicErr - } else { - panic(e) - } - }() - o.Call(fn, args...) - return nil -} - -func elementConstructor(o *js.Object) *js.Object { - if n := o.Get("node"); n != js.Undefined { - // Support elements wrapped in Polymer's DOM APIs. - return n.Get("constructor") - } - return o.Get("constructor") -} - -func arrayToObjects(o *js.Object) []*js.Object { - var out []*js.Object - for i := 0; i < o.Length(); i++ { - out = append(out, o.Index(i)) - } - return out -} - -func nodeListToObjects(o *js.Object) []*js.Object { - if o.Get("constructor") == js.Global.Get("Array") { - // Support Polymer's DOM APIs, which uses Arrays instead of - // NodeLists - return arrayToObjects(o) - } - var out []*js.Object - length := o.Get("length").Int() - for i := 0; i < length; i++ { - out = append(out, o.Call("item", i)) - } - return out -} - -func nodeListToNodes(o *js.Object) []Node { - var out []Node - for _, obj := range nodeListToObjects(o) { - out = append(out, wrapNode(obj)) - } - return out -} - -func nodeListToElements(o *js.Object) []Element { - var out []Element - for _, obj := range nodeListToObjects(o) { - out = append(out, wrapElement(obj)) - } - return out -} - -func nodeListToHTMLElements(o *js.Object) []HTMLElement { - var out []HTMLElement - for _, obj := range nodeListToObjects(o) { - out = append(out, wrapHTMLElement(obj)) - } - return out -} - -func WrapDocument(o *js.Object) Document { - return wrapDocument(o) -} - -func WrapDocumentFragment(o *js.Object) DocumentFragment { - return wrapDocumentFragment(o) -} - -func WrapNode(o *js.Object) Node { - return wrapNode(o) -} - -func WrapElement(o *js.Object) Element { - return wrapElement(o) -} - -func WrapHTMLElement(o *js.Object) HTMLElement { - return wrapHTMLElement(o) -} - -func wrapDocument(o *js.Object) Document { - switch elementConstructor(o) { - case js.Global.Get("HTMLDocument"): - return &htmlDocument{&document{&BasicNode{o}}} - default: - return &document{&BasicNode{o}} - } -} - -func wrapDocumentFragment(o *js.Object) DocumentFragment { - switch elementConstructor(o) { - // TODO: do we have any other stuff we want to check - default: - return &documentFragment{&BasicNode{o}} - } -} - -func wrapNode(o *js.Object) Node { - if o == nil || o == js.Undefined { - return nil - } - switch elementConstructor(o) { - // TODO all the non-element cases - case js.Global.Get("Text"): - return &Text{&BasicNode{o}} - default: - return wrapElement(o) - } -} - -func wrapElement(o *js.Object) Element { - if o == nil || o == js.Undefined { - return nil - } - switch elementConstructor(o) { - // TODO all the non-HTML cases - default: - return wrapHTMLElement(o) - } -} - -func wrapHTMLElement(o *js.Object) HTMLElement { - if o == nil || o == js.Undefined { - return nil - } - el := &BasicHTMLElement{&BasicElement{&BasicNode{o}}} - c := elementConstructor(o) - switch c { - case js.Global.Get("HTMLAnchorElement"): - return &HTMLAnchorElement{BasicHTMLElement: el, URLUtils: &URLUtils{Object: o}} - case js.Global.Get("HTMLAppletElement"): - return &HTMLAppletElement{BasicHTMLElement: el} - case js.Global.Get("HTMLAreaElement"): - return &HTMLAreaElement{BasicHTMLElement: el, URLUtils: &URLUtils{Object: o}} - case js.Global.Get("HTMLAudioElement"): - return &HTMLAudioElement{HTMLMediaElement: &HTMLMediaElement{BasicHTMLElement: el}} - case js.Global.Get("HTMLBaseElement"): - return &HTMLBaseElement{BasicHTMLElement: el} - case js.Global.Get("HTMLBodyElement"): - return &HTMLBodyElement{BasicHTMLElement: el} - case js.Global.Get("HTMLBRElement"): - return &HTMLBRElement{BasicHTMLElement: el} - case js.Global.Get("HTMLButtonElement"): - return &HTMLButtonElement{BasicHTMLElement: el} - case js.Global.Get("HTMLCanvasElement"): - return &HTMLCanvasElement{BasicHTMLElement: el} - case js.Global.Get("HTMLDataElement"): - return &HTMLDataElement{BasicHTMLElement: el} - case js.Global.Get("HTMLDataListElement"): - return &HTMLDataListElement{BasicHTMLElement: el} - case js.Global.Get("HTMLDirectoryElement"): - return &HTMLDirectoryElement{BasicHTMLElement: el} - case js.Global.Get("HTMLDivElement"): - return &HTMLDivElement{BasicHTMLElement: el} - case js.Global.Get("HTMLDListElement"): - return &HTMLDListElement{BasicHTMLElement: el} - case js.Global.Get("HTMLEmbedElement"): - return &HTMLEmbedElement{BasicHTMLElement: el} - case js.Global.Get("HTMLFieldSetElement"): - return &HTMLFieldSetElement{BasicHTMLElement: el} - case js.Global.Get("HTMLFontElement"): - return &HTMLFontElement{BasicHTMLElement: el} - case js.Global.Get("HTMLFormElement"): - return &HTMLFormElement{BasicHTMLElement: el} - case js.Global.Get("HTMLFrameElement"): - return &HTMLFrameElement{BasicHTMLElement: el} - case js.Global.Get("HTMLFrameSetElement"): - return &HTMLFrameSetElement{BasicHTMLElement: el} - case js.Global.Get("HTMLHeadElement"): - return &HTMLHeadElement{BasicHTMLElement: el} - case js.Global.Get("HTMLHeadingElement"): - return &HTMLHeadingElement{BasicHTMLElement: el} - case js.Global.Get("HTMLHtmlElement"): - return &HTMLHtmlElement{BasicHTMLElement: el} - case js.Global.Get("HTMLHRElement"): - return &HTMLHRElement{BasicHTMLElement: el} - case js.Global.Get("HTMLIFrameElement"): - return &HTMLIFrameElement{BasicHTMLElement: el} - case js.Global.Get("HTMLImageElement"): - return &HTMLImageElement{BasicHTMLElement: el} - case js.Global.Get("HTMLInputElement"): - return &HTMLInputElement{BasicHTMLElement: el} - case js.Global.Get("HTMLKeygenElement"): - return &HTMLKeygenElement{BasicHTMLElement: el} - case js.Global.Get("HTMLLabelElement"): - return &HTMLLabelElement{BasicHTMLElement: el} - case js.Global.Get("HTMLLegendElement"): - return &HTMLLegendElement{BasicHTMLElement: el} - case js.Global.Get("HTMLLIElement"): - return &HTMLLIElement{BasicHTMLElement: el} - case js.Global.Get("HTMLLinkElement"): - return &HTMLLinkElement{BasicHTMLElement: el} - case js.Global.Get("HTMLMapElement"): - return &HTMLMapElement{BasicHTMLElement: el} - case js.Global.Get("HTMLMediaElement"): - return &HTMLMediaElement{BasicHTMLElement: el} - case js.Global.Get("HTMLMenuElement"): - return &HTMLMenuElement{BasicHTMLElement: el} - case js.Global.Get("HTMLMetaElement"): - return &HTMLMetaElement{BasicHTMLElement: el} - case js.Global.Get("HTMLMeterElement"): - return &HTMLMeterElement{BasicHTMLElement: el} - case js.Global.Get("HTMLModElement"): - return &HTMLModElement{BasicHTMLElement: el} - case js.Global.Get("HTMLObjectElement"): - return &HTMLObjectElement{BasicHTMLElement: el} - case js.Global.Get("HTMLOListElement"): - return &HTMLOListElement{BasicHTMLElement: el} - case js.Global.Get("HTMLOptGroupElement"): - return &HTMLOptGroupElement{BasicHTMLElement: el} - case js.Global.Get("HTMLOptionElement"): - return &HTMLOptionElement{BasicHTMLElement: el} - case js.Global.Get("HTMLOutputElement"): - return &HTMLOutputElement{BasicHTMLElement: el} - case js.Global.Get("HTMLParagraphElement"): - return &HTMLParagraphElement{BasicHTMLElement: el} - case js.Global.Get("HTMLParamElement"): - return &HTMLParamElement{BasicHTMLElement: el} - case js.Global.Get("HTMLPreElement"): - return &HTMLPreElement{BasicHTMLElement: el} - case js.Global.Get("HTMLProgressElement"): - return &HTMLProgressElement{BasicHTMLElement: el} - case js.Global.Get("HTMLQuoteElement"): - return &HTMLQuoteElement{BasicHTMLElement: el} - case js.Global.Get("HTMLScriptElement"): - return &HTMLScriptElement{BasicHTMLElement: el} - case js.Global.Get("HTMLSelectElement"): - return &HTMLSelectElement{BasicHTMLElement: el} - case js.Global.Get("HTMLSourceElement"): - return &HTMLSourceElement{BasicHTMLElement: el} - case js.Global.Get("HTMLSpanElement"): - return &HTMLSpanElement{BasicHTMLElement: el} - case js.Global.Get("HTMLStyleElement"): - return &HTMLStyleElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTableElement"): - return &HTMLTableElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTableCaptionElement"): - return &HTMLTableCaptionElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTableCellElement"): - return &HTMLTableCellElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTableDataCellElement"): - return &HTMLTableDataCellElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTableHeaderCellElement"): - return &HTMLTableHeaderCellElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTableColElement"): - return &HTMLTableColElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTableRowElement"): - return &HTMLTableRowElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTableSectionElement"): - return &HTMLTableSectionElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTextAreaElement"): - return &HTMLTextAreaElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTimeElement"): - return &HTMLTimeElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTitleElement"): - return &HTMLTitleElement{BasicHTMLElement: el} - case js.Global.Get("HTMLTrackElement"): - return &HTMLTrackElement{BasicHTMLElement: el} - case js.Global.Get("HTMLUListElement"): - return &HTMLUListElement{BasicHTMLElement: el} - case js.Global.Get("HTMLUnknownElement"): - return &HTMLUnknownElement{BasicHTMLElement: el} - case js.Global.Get("HTMLVideoElement"): - return &HTMLVideoElement{HTMLMediaElement: &HTMLMediaElement{BasicHTMLElement: el}} - case js.Global.Get("HTMLElement"): - return el - default: - return el - } -} - -func getForm(o *js.Object) *HTMLFormElement { - form := wrapHTMLElement(o.Get("form")) - if form == nil { - return nil - } - return form.(*HTMLFormElement) -} - -func getLabels(o *js.Object) []*HTMLLabelElement { - labels := nodeListToElements(o.Get("labels")) - out := make([]*HTMLLabelElement, len(labels)) - for i, label := range labels { - out[i] = label.(*HTMLLabelElement) - } - return out -} - -func getOptions(o *js.Object, attr string) []*HTMLOptionElement { - options := nodeListToElements(o.Get(attr)) - out := make([]*HTMLOptionElement, len(options)) - for i, option := range options { - out[i] = option.(*HTMLOptionElement) - } - return out -} - -func GetWindow() Window { - return &window{js.Global} -} - -type TokenList struct { - dtl *js.Object // the underlying DOMTokenList - o *js.Object // the object to which the DOMTokenList belongs - sa string // the name of the corresponding string attribute, empty if there isn't one - - Length int `js:"length"` -} - -func (tl *TokenList) Item(idx int) string { - o := tl.dtl.Call("item", idx) - return toString(o) -} - -func (tl *TokenList) Contains(token string) bool { - return tl.dtl.Call("contains", token).Bool() -} - -func (tl *TokenList) Add(token string) { - tl.dtl.Call("add", token) -} - -func (tl *TokenList) Remove(token string) { - tl.dtl.Call("remove", token) -} - -func (tl *TokenList) Toggle(token string) { - tl.dtl.Call("toggle", token) -} - -func (tl *TokenList) String() string { - if tl.sa != "" { - return tl.o.Get(tl.sa).String() - } - if tl.dtl.Get("constructor") == js.Global.Get("DOMSettableTokenList") { - return tl.dtl.Get("value").String() - } - // We could manually construct the string, but I am not aware of - // any case where we have neither a string attribute nor - // DOMSettableTokenList. - return "" -} - -func (tl *TokenList) Slice() []string { - var out []string - length := tl.dtl.Get("length").Int() - for i := 0; i < length; i++ { - out = append(out, tl.dtl.Call("item", i).String()) - } - return out -} - -// SetString sets the TokenList's value to the space-separated list of -// tokens in s. -func (tl *TokenList) SetString(s string) { - if tl.sa != "" { - tl.o.Set(tl.sa, s) - return - } - if tl.dtl.Get("constructor") == js.Global.Get("DOMSettableTokenList") { - tl.dtl.Set("value", s) - return - } - // This shouldn't be possible - panic("no way to SetString on this TokenList") -} - -// Set sets the TokenList's value to the list of tokens in s. -// -// Individual tokens in s shouldn't countain spaces. -func (tl *TokenList) Set(s []string) { - tl.SetString(strings.Join(s, " ")) -} - -type Document interface { - Node - ParentNode - - Async() bool - SetAsync(bool) - Doctype() DocumentType - DocumentElement() Element - DocumentURI() string - Implementation() DOMImplementation - LastStyleSheetSet() string - PreferredStyleSheetSet() string // TODO correct type? - SelectedStyleSheetSet() string // TODO correct type? - StyleSheets() []StyleSheet // TODO s/StyleSheet/Stylesheet/ ? - StyleSheetSets() []StyleSheet // TODO correct type? - AdoptNode(node Node) Node - ImportNode(node Node, deep bool) Node - CreateElement(name string) Element - CreateElementNS(namespace, name string) Element - CreateTextNode(s string) *Text - ElementFromPoint(x, y int) Element - EnableStyleSheetsForSet(name string) - GetElementsByClassName(name string) []Element - GetElementsByTagName(name string) []Element - GetElementsByTagNameNS(ns, name string) []Element - GetElementByID(id string) Element - QuerySelector(sel string) Element - QuerySelectorAll(sel string) []Element - - CreateDocumentFragment() DocumentFragment -} - -type DocumentFragment interface { - Node - ParentNode - QuerySelector(sel string) Element - QuerySelectorAll(sel string) []Element - GetElementByID(id string) Element -} - -type HTMLDocument interface { - Document - - ActiveElement() HTMLElement - Body() HTMLElement - Cookie() string - SetCookie(string) - DefaultView() Window - DesignMode() bool - SetDesignMode(bool) - Domain() string - SetDomain(string) - Forms() []*HTMLFormElement - Head() *HTMLHeadElement - Images() []*HTMLImageElement - LastModified() time.Time - Links() []HTMLElement - Location() *Location - Plugins() []*HTMLEmbedElement - ReadyState() string - Referrer() string - Scripts() []*HTMLScriptElement - Title() string - SetTitle(string) - URL() string - - // TODO HTMLDocument methods -} - -type documentFragment struct { - *BasicNode -} - -func (d documentFragment) GetElementByID(id string) Element { - return wrapElement(d.Call("getElementById", id)) -} - -func (d documentFragment) QuerySelector(sel string) Element { - return (&BasicElement{&BasicNode{d.Object}}).QuerySelector(sel) -} - -func (d documentFragment) QuerySelectorAll(sel string) []Element { - return (&BasicElement{&BasicNode{d.Object}}).QuerySelectorAll(sel) -} - -type document struct { - *BasicNode -} - -type htmlDocument struct { - *document -} - -func (d *htmlDocument) ActiveElement() HTMLElement { - return wrapHTMLElement(d.Get("activeElement")) -} - -func (d *htmlDocument) Body() HTMLElement { - return wrapHTMLElement(d.Get("body")) -} - -func (d *htmlDocument) Cookie() string { - return d.Get("cookie").String() -} - -func (d *htmlDocument) SetCookie(s string) { - d.Set("cookie", s) -} - -func (d *htmlDocument) DefaultView() Window { - return &window{d.Get("defaultView")} -} - -func (d *htmlDocument) DesignMode() bool { - s := d.Get("designMode").String() - return s != "off" -} - -func (d *htmlDocument) SetDesignMode(b bool) { - s := "off" - if b { - s = "on" - } - d.Set("designMode", s) -} - -func (d *htmlDocument) Domain() string { - return d.Get("domain").String() -} - -func (d *htmlDocument) SetDomain(s string) { - d.Set("domain", s) -} - -func (d *htmlDocument) Forms() []*HTMLFormElement { - var els []*HTMLFormElement - forms := d.Get("forms") - length := forms.Get("length").Int() - for i := 0; i < length; i++ { - els = append(els, wrapHTMLElement(forms.Call("item", i)).(*HTMLFormElement)) - } - return els -} - -func (d *htmlDocument) Head() *HTMLHeadElement { - head := wrapElement(d.Get("head")) - if head == nil { - return nil - } - return head.(*HTMLHeadElement) -} - -func (d *htmlDocument) Images() []*HTMLImageElement { - var els []*HTMLImageElement - images := d.Get("images") - length := images.Get("length").Int() - for i := 0; i < length; i++ { - els = append(els, wrapHTMLElement(images.Call("item", i)).(*HTMLImageElement)) - } - return els -} - -func (d *htmlDocument) LastModified() time.Time { - return d.Get("lastModified").Interface().(time.Time) -} - -func (d *htmlDocument) Links() []HTMLElement { - var els []HTMLElement - links := d.Get("links") - length := links.Get("length").Int() - for i := 0; i < length; i++ { - els = append(els, wrapHTMLElement(links.Call("item", i))) - } - return els -} - -func (d *htmlDocument) Location() *Location { - o := d.Get("location") - return &Location{Object: o, URLUtils: &URLUtils{Object: o}} -} - -func (d *htmlDocument) Plugins() []*HTMLEmbedElement { - var els []*HTMLEmbedElement - forms := d.Get("plugins") - length := forms.Get("length").Int() - for i := 0; i < length; i++ { - els = append(els, wrapHTMLElement(forms.Call("item", i)).(*HTMLEmbedElement)) - } - return els -} - -func (d *htmlDocument) ReadyState() string { - return d.Get("readyState").String() -} - -func (d *htmlDocument) Referrer() string { - return d.Get("referrer").String() -} - -func (d *htmlDocument) Scripts() []*HTMLScriptElement { - var els []*HTMLScriptElement - forms := d.Get("scripts") - length := forms.Get("length").Int() - for i := 0; i < length; i++ { - els = append(els, wrapHTMLElement(forms.Call("item", i)).(*HTMLScriptElement)) - } - return els -} - -func (d *htmlDocument) Title() string { - return d.Get("title").String() -} - -func (d *htmlDocument) SetTitle(s string) { - d.Set("title", s) -} - -func (d *htmlDocument) URL() string { - return d.Get("URL").String() -} - -func (d document) Async() bool { - return d.Get("async").Bool() -} - -func (d document) SetAsync(b bool) { - d.Set("async", b) -} - -func (d document) Doctype() DocumentType { - // FIXME implement - panic("not implemented") -} - -func (d document) DocumentElement() Element { - return wrapElement(d.Get("documentElement")) -} - -func (d document) DocumentURI() string { - return d.Get("documentURI").String() -} - -func (d document) Implementation() DOMImplementation { - // FIXME implement - panic("not implemented") -} - -func (d document) LastStyleSheetSet() string { - return d.Get("lastStyleSheetSet").String() -} - -func (d document) PreferredStyleSheetSet() string { - return d.Get("preferredStyleSheetSet").String() -} - -func (d document) SelectedStyleSheetSet() string { - return d.Get("selectedStyleSheetSet").String() -} - -func (d document) StyleSheets() []StyleSheet { - // FIXME implement - panic("not implemented") -} - -func (d document) StyleSheetSets() []StyleSheet { - // FIXME implement - panic("not implemented") -} - -func (d document) AdoptNode(node Node) Node { - return wrapNode(d.Call("adoptNode", node.Underlying())) -} - -func (d document) ImportNode(node Node, deep bool) Node { - return wrapNode(d.Call("importNode", node.Underlying(), deep)) -} - -func (d document) CreateDocumentFragment() DocumentFragment { - return wrapDocumentFragment(d.Call("createDocumentFragment")) -} - -func (d document) CreateElement(name string) Element { - return wrapElement(d.Call("createElement", name)) -} - -func (d document) CreateElementNS(ns string, name string) Element { - return wrapElement(d.Call("createElementNS", ns, name)) -} - -func (d document) CreateTextNode(s string) *Text { - return wrapNode(d.Call("createTextNode", s)).(*Text) -} - -func (d document) ElementFromPoint(x, y int) Element { - return wrapElement(d.Call("elementFromPoint", x, y)) -} - -func (d document) EnableStyleSheetsForSet(name string) { - d.Call("enableStyleSheetsForSet", name) -} - -func (d document) GetElementsByClassName(name string) []Element { - return (&BasicElement{&BasicNode{d.Object}}).GetElementsByClassName(name) -} - -func (d document) GetElementsByTagName(name string) []Element { - return (&BasicElement{&BasicNode{d.Object}}).GetElementsByTagName(name) -} - -func (d document) GetElementsByTagNameNS(ns, name string) []Element { - return (&BasicElement{&BasicNode{d.Object}}).GetElementsByTagNameNS(ns, name) -} - -func (d document) GetElementByID(id string) Element { - return wrapElement(d.Call("getElementById", id)) -} - -func (d document) QuerySelector(sel string) Element { - return (&BasicElement{&BasicNode{d.Object}}).QuerySelector(sel) -} - -func (d document) QuerySelectorAll(sel string) []Element { - return (&BasicElement{&BasicNode{d.Object}}).QuerySelectorAll(sel) -} - -type URLUtils struct { - *js.Object - - Href string `js:"href"` - Protocol string `js:"protocol"` - Host string `js:"host"` - Hostname string `js:"hostname"` - Port string `js:"port"` - Pathname string `js:"pathname"` - Search string `js:"search"` - Hash string `js:"hash"` - Username string `js:"username"` - Password string `js:"password"` - Origin string `js:"origin"` -} - -// TODO Location methods - -type Location struct { - *js.Object - *URLUtils -} - -type HTMLElement interface { - Element - GlobalEventHandlers - - AccessKey() string - Dataset() map[string]string - SetAccessKey(string) - AccessKeyLabel() string - SetAccessKeyLabel(string) - ContentEditable() string - SetContentEditable(string) - IsContentEditable() bool - Dir() string - SetDir(string) - Draggable() bool - SetDraggable(bool) - Lang() string - SetLang(string) - OffsetHeight() float64 - OffsetLeft() float64 - OffsetParent() HTMLElement - OffsetTop() float64 - OffsetWidth() float64 - Style() *CSSStyleDeclaration - Title() string - SetTitle(string) - Blur() - Click() - Focus() -} -type SVGElement interface { - Element - // TODO -} - -type GlobalEventHandlers interface{} - -type Window interface { - EventTarget - - Console() *Console - Document() Document - FrameElement() Element - Location() *Location - Name() string - SetName(string) - InnerHeight() int - InnerWidth() int - Length() int - Opener() Window - OuterHeight() int - OuterWidth() int - ScrollX() int - ScrollY() int - Parent() Window - ScreenX() int - ScreenY() int - ScrollMaxX() int - ScrollMaxY() int - Top() Window - History() History - Navigator() Navigator - Screen() *Screen - Alert(string) - Back() - Blur() - CancelAnimationFrame(int) - ClearInterval(int) - ClearTimeout(int) - Close() - Confirm(string) bool - Focus() - Forward() - GetComputedStyle(el Element, pseudoElt string) *CSSStyleDeclaration - GetSelection() Selection - Home() - MoveBy(dx, dy int) - MoveTo(x, y int) - Open(url, name, features string) Window - OpenDialog(url, name, features string, args []interface{}) Window - PostMessage(message string, target string, transfer []interface{}) - Print() - Prompt(prompt string, initial string) string - RequestAnimationFrame(callback func(time.Duration)) int - ResizeBy(dw, dh int) - ResizeTo(w, h int) - Scroll(x, y int) - ScrollBy(dx, dy int) - ScrollByLines(int) - ScrollTo(x, y int) - SetCursor(name string) - SetInterval(fn func(), delay int) int - SetTimeout(fn func(), delay int) int - Stop() - // TODO constructors -} - -type window struct { - // TODO EventTarget - *js.Object -} - -func (w *window) Console() *Console { - return &Console{w.Get("console")} -} - -func (w *window) Document() Document { - return wrapDocument(w.Get("document")) -} - -func (w *window) FrameElement() Element { - return wrapElement(w.Get("frameElement")) -} - -func (w *window) Location() *Location { - o := w.Get("location") - return &Location{Object: o, URLUtils: &URLUtils{Object: o}} -} - -func (w *window) Name() string { - return w.Get("name").String() -} - -func (w *window) SetName(s string) { - w.Set("name", s) -} - -func (w *window) InnerHeight() int { - return w.Get("innerHeight").Int() -} - -func (w *window) InnerWidth() int { - return w.Get("innerWidth").Int() -} - -func (w *window) Length() int { - return w.Get("length").Int() -} - -func (w *window) Opener() Window { - return &window{w.Get("opener")} -} - -func (w *window) OuterHeight() int { - return w.Get("outerHeight").Int() -} - -func (w *window) OuterWidth() int { - return w.Get("outerWidth").Int() -} - -func (w *window) ScrollX() int { - return w.Get("scrollX").Int() -} - -func (w *window) ScrollY() int { - return w.Get("scrollY").Int() -} - -func (w *window) Parent() Window { - return &window{w.Get("parent")} -} - -func (w *window) ScreenX() int { - return w.Get("screenX").Int() -} - -func (w *window) ScreenY() int { - return w.Get("screenY").Int() -} - -func (w *window) ScrollMaxX() int { - return w.Get("scrollMaxX").Int() -} - -func (w *window) ScrollMaxY() int { - return w.Get("scrollMaxY").Int() -} - -func (w *window) Top() Window { - return &window{w.Get("top")} -} - -func (w *window) History() History { - // FIXME implement - return nil -} - -func (w *window) Navigator() Navigator { - // FIXME implement - panic("not implemented") -} - -func (w *window) Screen() *Screen { - return &Screen{Object: w.Get("screen")} -} - -func (w *window) Alert(msg string) { - w.Call("alert", msg) -} - -func (w *window) Back() { - w.Call("back") -} - -func (w *window) Blur() { - w.Call("blur") -} - -func (w *window) ClearInterval(id int) { - w.Call("clearInterval", id) -} - -func (w *window) ClearTimeout(id int) { - w.Call("clearTimeout", id) -} - -func (w *window) Close() { - w.Call("close") -} - -func (w *window) Confirm(prompt string) bool { - return w.Call("confirm", prompt).Bool() -} - -func (w *window) Focus() { - w.Call("focus") -} - -func (w *window) Forward() { - w.Call("forward") -} - -// GetComputedStyle returns the values of all CSS properties of an -// element after applying the active stylesheets. pseudoElt specifies -// the pseudo-element to match. For normal elements, it must be the -// empty string. -func (w *window) GetComputedStyle(el Element, pseudoElt string) *CSSStyleDeclaration { - var optArg interface{} - if pseudoElt != "" { - optArg = pseudoElt - } - return &CSSStyleDeclaration{w.Call("getComputedStyle", el.Underlying(), optArg)} -} - -func (w *window) GetSelection() Selection { - // FIXME implement - panic("not implemented") -} - -func (w *window) Home() { - w.Call("home") -} - -func (w *window) MoveBy(dx, dy int) { - w.Call("moveBy", dx, dy) -} - -func (w *window) MoveTo(x, y int) { - w.Call("moveTo", x, y) -} - -func (w *window) Open(url, name, features string) Window { - return &window{w.Call("open", url, name, features)} -} - -func (w *window) OpenDialog(url, name, features string, args []interface{}) Window { - return &window{w.Call("openDialog", url, name, features, args)} -} - -func (w *window) PostMessage(message string, target string, transfer []interface{}) { - w.Call("postMessage", message, target, transfer) -} - -func (w *window) Print() { - w.Call("print") -} - -func (w *window) Prompt(prompt string, initial string) string { - return w.Call("prompt", prompt, initial).String() -} - -func (w *window) ResizeBy(dw, dh int) { - w.Call("resizeBy", dw, dh) -} - -func (w *window) ResizeTo(width, height int) { - w.Call("resizeTo", width, height) -} - -func (w *window) Scroll(x, y int) { - w.Call("scroll", x, y) -} - -func (w *window) ScrollBy(dx, dy int) { - w.Call("scrollBy", dx, dy) -} - -func (w *window) ScrollByLines(i int) { - w.Call("scrollByLines", i) -} - -func (w *window) ScrollTo(x, y int) { - w.Call("scrollTo", x, y) -} - -func (w *window) SetCursor(name string) { - w.Call("setCursor", name) -} - -func (w *window) SetInterval(fn func(), delay int) int { - return w.Call("setInterval", fn, delay).Int() -} - -func (w *window) SetTimeout(fn func(), delay int) int { - return w.Call("setTimeout", fn, delay).Int() -} - -func (w *window) Stop() { - w.Call("stop") -} - -// TODO reuse util.EventTarget - -func (w *window) AddEventListener(typ string, useCapture bool, listener func(Event)) func(o *js.Object) { - wrapper := func(o *js.Object) { listener(wrapEvent(o)) } - w.Call("addEventListener", typ, wrapper, useCapture) - return wrapper -} - -func (w *window) RemoveEventListener(typ string, useCapture bool, listener func(*js.Object)) { - w.Call("removeEventListener", typ, listener, useCapture) -} - -func (w *window) DispatchEvent(event Event) bool { - return w.Call("dispatchEvent", event).Bool() -} - -func wrapDOMHighResTimeStamp(o *js.Object) time.Duration { - return time.Duration(o.Float() * float64(time.Millisecond)) -} - -func (w *window) RequestAnimationFrame(callback func(time.Duration)) int { - wrapper := func(o *js.Object) { callback(wrapDOMHighResTimeStamp(o)) } - return w.Call("requestAnimationFrame", wrapper).Int() -} - -func (w *window) CancelAnimationFrame(requestID int) { - w.Call("cancelAnimationFrame", requestID) -} - -// TODO all the other window methods - -type Selection interface { - // TODO -} - -type Screen struct { - *js.Object - AvailTop int `js:"availTop"` - AvailLeft int `js:"availLeft"` - AvailHeight int `js:"availHeight"` - AvailWidth int `js:"availWidth"` - ColorDepth int `js:"colorDepth"` - Height int `js:"height"` - Left int `js:"left"` - PixelDepth int `js:"pixelDepth"` - Top int `js:"top"` - Width int `js:"width"` -} - -type Navigator interface { - NavigatorID - NavigatorLanguage - NavigatorOnLine - NavigatorGeolocation - // NavigatorPlugins - // NetworkInformation - CookieEnabled() bool - DoNotTrack() string - RegisterProtocolHandler(protocol, uri, title string) -} - -type NavigatorID interface { - AppName() string - AppVersion() string - Platform() string - Product() string - UserAgent() string -} - -type NavigatorLanguage interface { - Language() string -} - -type NavigatorOnLine interface { - Online() bool -} - -type NavigatorGeolocation interface { - Geolocation() Geolocation -} - -type Geolocation interface { - // TODO wrap PositionOptions into something that uses the JS - // object - CurrentPosition(success func(Position), err func(PositionError), opts PositionOptions) Position - WatchPosition(success func(Position), err func(PositionError), opts PositionOptions) int - ClearWatch(int) -} - -type PositionError struct { - *js.Object - Code int `js:"code"` -} - -func (err *PositionError) Error() string { - return err.Call("message").String() -} - -type PositionOptions struct { - EnableHighAccuracy bool - Timeout time.Duration - MaximumAge time.Duration -} - -type Position struct { - Coords *Coordinates - Timestamp time.Time -} - -type Coordinates struct { - *js.Object - Latitude float64 `js:"latitude"` - Longitude float64 `js:"longitude"` - Altitude float64 `js:"altitude"` - Accuracy float64 `js:"accuracy"` - AltitudeAccuracy float64 `js:"altitudeAccuracy"` - Heading float64 `js:"heading"` - Speed float64 `js:"speed"` -} - -type History interface { - Length() int - State() interface{} - Back() - Forward() - Go(offset int) - PushState(state interface{}, title string, url string) - ReplaceState(state interface{}, title string, url string) -} - -type Console struct { - *js.Object - // TODO will replace the js/console package -} - -type SVGDocument interface{} -type DocumentType interface{} -type DOMImplementation interface{} -type StyleSheet interface{} -type CSSStyleSheet interface{} - -type Node interface { - EventTarget - - Underlying() *js.Object - BaseURI() string - ChildNodes() []Node - FirstChild() Node - LastChild() Node - NextSibling() Node - NodeName() string - NodeType() int - NodeValue() string - SetNodeValue(string) - OwnerDocument() Document - ParentNode() Node - ParentElement() Element - PreviousSibling() Node - TextContent() string - SetTextContent(string) - AppendChild(Node) - CloneNode(deep bool) Node - CompareDocumentPosition(Node) int - Contains(Node) bool - HasChildNodes() bool - InsertBefore(which Node, before Node) - IsDefaultNamespace(string) bool - IsEqualNode(Node) bool - LookupPrefix() string - LookupNamespaceURI(string) string - Normalize() - RemoveChild(Node) - ReplaceChild(newChild, oldChild Node) -} - -// Type BasicNode implements the Node interface and is embedded by -// concrete node types and element types. -type BasicNode struct { - *js.Object -} - -func (n *BasicNode) Underlying() *js.Object { - return n.Object -} - -func (n *BasicNode) AddEventListener(typ string, useCapture bool, listener func(Event)) func(*js.Object) { - wrapper := func(o *js.Object) { listener(wrapEvent(o)) } - n.Call("addEventListener", typ, wrapper, useCapture) - return wrapper -} - -func (n *BasicNode) RemoveEventListener(typ string, useCapture bool, listener func(*js.Object)) { - n.Call("removeEventListener", typ, listener, useCapture) -} - -func (n *BasicNode) DispatchEvent(event Event) bool { - return n.Call("dispatchEvent", event).Bool() -} - -func (n *BasicNode) BaseURI() string { - return n.Get("baseURI").String() -} - -func (n *BasicNode) ChildNodes() []Node { - return nodeListToNodes(n.Get("childNodes")) -} - -func (n *BasicNode) FirstChild() Node { - return wrapNode(n.Get("firstChild")) -} - -func (n *BasicNode) LastChild() Node { - return wrapNode(n.Get("lastChild")) -} - -func (n *BasicNode) NextSibling() Node { - return wrapNode(n.Get("nextSibling")) -} - -func (n *BasicNode) NodeName() string { - return n.Get("nodeName").String() -} - -func (n *BasicNode) NodeType() int { - return n.Get("nodeType").Int() -} - -func (n *BasicNode) NodeValue() string { - return toString(n.Get("nodeValue")) -} - -func (n *BasicNode) SetNodeValue(s string) { - n.Set("nodeValue", s) -} - -func (n *BasicNode) OwnerDocument() Document { - // FIXME implement - panic("not implemented") -} - -func (n *BasicNode) ParentNode() Node { - return wrapNode(n.Get("parentNode")) -} - -func (n *BasicNode) ParentElement() Element { - return wrapElement(n.Get("parentElement")) -} - -func (n *BasicNode) PreviousSibling() Node { - return wrapNode(n.Get("previousSibling")) -} - -func (n *BasicNode) TextContent() string { - return toString(n.Get("textContent")) -} - -func (n *BasicNode) SetTextContent(s string) { - n.Set("textContent", s) -} - -func (n *BasicNode) AppendChild(newchild Node) { - n.Call("appendChild", newchild.Underlying()) -} - -func (n *BasicNode) CloneNode(deep bool) Node { - return wrapNode(n.Call("cloneNode", deep)) -} - -const ( - DocumentPositionDisconnected = 1 - DocumentPositionPreceding = 2 - DocumentPositionFollowing = 4 - DocumentPositionContains = 8 - DocumentPositionContainedBy = 16 - DocumentPositionImplementationSpecific = 32 -) - -func (n *BasicNode) CompareDocumentPosition(other Node) int { - return n.Call("compareDocumentPosition", other.Underlying()).Int() -} - -func (n *BasicNode) Contains(other Node) bool { - return n.Call("contains", other.Underlying()).Bool() -} - -func (n *BasicNode) HasChildNodes() bool { - return n.Call("hasChildNodes").Bool() -} - -func (n *BasicNode) InsertBefore(which Node, before Node) { - var o interface{} - if before != nil { - o = before.Underlying() - } - n.Call("insertBefore", which.Underlying(), o) -} - -func (n *BasicNode) IsDefaultNamespace(s string) bool { - return n.Call("isDefaultNamespace", s).Bool() -} - -func (n *BasicNode) IsEqualNode(other Node) bool { - return n.Call("isEqualNode", other.Underlying()).Bool() -} - -func (n *BasicNode) LookupPrefix() string { - return n.Call("lookupPrefix").String() -} - -func (n *BasicNode) LookupNamespaceURI(s string) string { - return toString(n.Call("lookupNamespaceURI", s)) -} - -func (n *BasicNode) Normalize() { - n.Call("normalize") -} - -func (n *BasicNode) RemoveChild(other Node) { - n.Call("removeChild", other.Underlying()) -} - -func (n *BasicNode) ReplaceChild(newChild, oldChild Node) { - n.Call("replaceChild", newChild.Underlying(), oldChild.Underlying()) -} - -type Element interface { - Node - ParentNode - ChildNode - - Attributes() map[string]string - Class() *TokenList - ID() string - SetID(string) - TagName() string - GetAttribute(string) string // TODO can attributes only be strings? - GetAttributeNS(ns string, name string) string // can attributes only be strings? - GetBoundingClientRect() ClientRect - GetElementsByClassName(string) []Element - GetElementsByTagName(string) []Element - GetElementsByTagNameNS(ns string, name string) []Element - HasAttribute(string) bool - HasAttributeNS(ns string, name string) bool - QuerySelector(string) Element - QuerySelectorAll(string) []Element - RemoveAttribute(string) - RemoveAttributeNS(ns string, name string) - SetAttribute(name string, value string) - SetAttributeNS(ns string, name string, value string) - InnerHTML() string - SetInnerHTML(string) - OuterHTML() string - SetOuterHTML(string) -} - -type ClientRect struct { - *js.Object - Height float64 `js:"height"` - Width float64 `js:"width"` - Left float64 `js:"left"` - Right float64 `js:"right"` - Top float64 `js:"top"` - Bottom float64 `js:"bottom"` -} - -type ParentNode interface { - // No properties/methods that aren't experimental -} - -type ChildNode interface { - PreviousElementSibling() Element - NextElementSibling() Element -} - -// Type BasicHTMLElement implements the HTMLElement interface and is -// embedded by concrete HTML element types. -type BasicHTMLElement struct { - *BasicElement - // TODO globalEventHandlers -} - -func (e *BasicHTMLElement) AccessKey() string { - return e.Get("accessKey").String() -} - -func (e *BasicHTMLElement) Dataset() map[string]string { - o := e.Get("dataset") - data := map[string]string{} - keys := js.Keys(o) - for _, key := range keys { - data[key] = o.Get(key).String() - } - return data -} - -func (e *BasicHTMLElement) SetAccessKey(s string) { - e.Set("accessKey", s) -} - -func (e *BasicHTMLElement) AccessKeyLabel() string { - return e.Get("accessKeyLabel").String() -} - -func (e *BasicHTMLElement) SetAccessKeyLabel(s string) { - e.Set("accessKeyLabel", s) -} - -func (e *BasicHTMLElement) ContentEditable() string { - return e.Get("contentEditable").String() -} - -func (e *BasicHTMLElement) SetContentEditable(s string) { - e.Set("contentEditable", s) -} - -func (e *BasicHTMLElement) IsContentEditable() bool { - return e.Get("isContentEditable").Bool() -} - -func (e *BasicHTMLElement) Dir() string { - return e.Get("dir").String() -} - -func (e *BasicHTMLElement) SetDir(s string) { - e.Set("dir", s) -} - -func (e *BasicHTMLElement) Draggable() bool { - return e.Get("draggable").Bool() -} - -func (e *BasicHTMLElement) SetDraggable(b bool) { - e.Set("draggable", b) -} - -func (e *BasicHTMLElement) Lang() string { - return e.Get("lang").String() -} - -func (e *BasicHTMLElement) SetLang(s string) { - e.Set("lang", s) -} - -func (e *BasicHTMLElement) OffsetHeight() float64 { - return e.Get("offsetHeight").Float() -} - -func (e *BasicHTMLElement) OffsetLeft() float64 { - return e.Get("offsetLeft").Float() -} - -func (e *BasicHTMLElement) OffsetParent() HTMLElement { - return wrapHTMLElement(e.Get("offsetParent")) -} - -func (e *BasicHTMLElement) OffsetTop() float64 { - return e.Get("offsetTop").Float() -} - -func (e *BasicHTMLElement) OffsetWidth() float64 { - return e.Get("offsetWidth").Float() -} - -func (e *BasicHTMLElement) Style() *CSSStyleDeclaration { - return &CSSStyleDeclaration{e.Get("style")} -} - -func (e *BasicHTMLElement) TabIndex() int { - return e.Get("tabIndex").Int() -} - -func (e *BasicHTMLElement) SetTabIndex(i int) { - e.Set("tabIndex", i) -} - -func (e *BasicHTMLElement) Title() string { - return e.Get("title").String() -} - -func (e *BasicHTMLElement) SetTitle(s string) { - e.Set("title", s) -} - -func (e *BasicHTMLElement) Blur() { - e.Call("blur") -} - -func (e *BasicHTMLElement) Click() { - e.Call("click") -} - -func (e *BasicHTMLElement) Focus() { - e.Call("focus") -} - -// Type BasicElement implements the Element interface and is embedded -// by concrete element types and HTML element types. -type BasicElement struct { - *BasicNode -} - -func (e *BasicElement) Attributes() map[string]string { - o := e.Get("attributes") - attrs := map[string]string{} - length := o.Get("length").Int() - for i := 0; i < length; i++ { - item := o.Call("item", i) - attrs[item.Get("name").String()] = item.Get("value").String() - } - return attrs -} - -func (e *BasicElement) GetBoundingClientRect() ClientRect { - obj := e.Call("getBoundingClientRect") - return ClientRect{Object: obj} -} - -func (e *BasicElement) PreviousElementSibling() Element { - return wrapElement(e.Get("previousElementSibling")) -} - -func (e *BasicElement) NextElementSibling() Element { - return wrapElement(e.Get("nextElementSibling")) -} - -func (e *BasicElement) Class() *TokenList { - return &TokenList{dtl: e.Get("classList"), o: e.Object, sa: "className"} -} - -// SetClass sets the element's className attribute to s. Consider -// using the Class method instead. -func (e *BasicElement) SetClass(s string) { - e.Set("className", s) -} - -func (e *BasicElement) ID() string { - return e.Get("id").String() -} - -func (e *BasicElement) SetID(s string) { - e.Set("id", s) -} - -func (e *BasicElement) TagName() string { - return e.Get("tagName").String() -} - -func (e *BasicElement) GetAttribute(name string) string { - return toString(e.Call("getAttribute", name)) -} - -func (e *BasicElement) GetAttributeNS(ns string, name string) string { - return toString(e.Call("getAttributeNS", ns, name)) -} - -func (e *BasicElement) GetElementsByClassName(s string) []Element { - return nodeListToElements(e.Call("getElementsByClassName", s)) -} - -func (e *BasicElement) GetElementsByTagName(s string) []Element { - return nodeListToElements(e.Call("getElementsByTagName", s)) -} - -func (e *BasicElement) GetElementsByTagNameNS(ns string, name string) []Element { - return nodeListToElements(e.Call("getElementsByTagNameNS", ns, name)) -} - -func (e *BasicElement) HasAttribute(s string) bool { - return e.Call("hasAttribute", s).Bool() -} - -func (e *BasicElement) HasAttributeNS(ns string, name string) bool { - return e.Call("hasAttributeNS", ns, name).Bool() -} - -func (e *BasicElement) QuerySelector(s string) Element { - return wrapElement(e.Call("querySelector", s)) -} - -func (e *BasicElement) QuerySelectorAll(s string) []Element { - return nodeListToElements(e.Call("querySelectorAll", s)) -} - -func (e *BasicElement) RemoveAttribute(s string) { - e.Call("removeAttribute", s) -} - -func (e *BasicElement) RemoveAttributeNS(ns string, name string) { - e.Call("removeAttributeNS", ns, name) -} - -func (e *BasicElement) SetAttribute(name string, value string) { - e.Call("setAttribute", name, value) -} - -func (e *BasicElement) SetAttributeNS(ns string, name string, value string) { - e.Call("setAttributeNS", ns, name, value) -} - -func (e *BasicElement) InnerHTML() string { - return e.Get("innerHTML").String() -} - -func (e *BasicElement) SetInnerHTML(s string) { - e.Set("innerHTML", s) -} - -func (e *BasicElement) OuterHTML() string { - return e.Get("outerHTML").String() -} - -func (e *BasicElement) SetOuterHTML(s string) { - e.Set("outerHTML", s) -} - -type HTMLAnchorElement struct { - *BasicHTMLElement - *URLUtils - HrefLang string `js:"hreflang"` - Media string `js:"media"` - TabIndex int `js:"tabIndex"` - Target string `js:"target"` - Text string `js:"text"` - Type string `js:"type"` -} - -func (e *HTMLAnchorElement) Rel() *TokenList { - return &TokenList{dtl: e.Get("relList"), o: e.Object, sa: "rel"} -} - -type HTMLAppletElement struct { - *BasicHTMLElement - Alt string `js:"alt"` - Coords string `js:"coords"` - HrefLang string `js:"hreflang"` - Media string `js:"media"` - Search string `js:"search"` - Shape string `js:"shape"` - TabIndex int `js:"tabIndex"` - Target string `js:"target"` - Type string `js:"type"` -} - -func (e *HTMLAppletElement) Rel() *TokenList { - return &TokenList{dtl: e.Get("relList"), o: e.Object, sa: "rel"} -} - -type HTMLAreaElement struct { - *BasicHTMLElement - *URLUtils - Alt string `js:"alt"` - Coords string `js:"coords"` - HrefLang string `js:"hreflang"` - Media string `js:"media"` - Search string `js:"search"` - Shape string `js:"shape"` - TabIndex int `js:"tabIndex"` - Target string `js:"target"` - Type string `js:"type"` -} - -func (e *HTMLAreaElement) Rel() *TokenList { - return &TokenList{dtl: e.Get("relList"), o: e.Object, sa: "rel"} -} - -type HTMLAudioElement struct{ *HTMLMediaElement } - -type HTMLBRElement struct{ *BasicHTMLElement } - -type HTMLBaseElement struct{ *BasicHTMLElement } - -func (e *HTMLBaseElement) Href() string { - return e.Get("href").String() -} - -func (e *HTMLBaseElement) Target() string { - return e.Get("target").String() -} - -type HTMLBodyElement struct{ *BasicHTMLElement } - -type HTMLButtonElement struct { - *BasicHTMLElement - AutoFocus bool `js:"autofocus"` - Disabled bool `js:"disabled"` - FormAction string `js:"formAction"` - FormEncType string `js:"formEncType"` - FormMethod string `js:"formMethod"` - FormNoValidate bool `js:"formNoValidate"` - FormTarget string `js:"formTarget"` - Name string `js:"name"` - TabIndex int `js:"tabIndex"` - Type string `js:"type"` - ValidationMessage string `js:"validationMessage"` - Value string `js:"value"` - WillValidate bool `js:"willValidate"` -} - -func (e *HTMLButtonElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -func (e *HTMLButtonElement) Labels() []*HTMLLabelElement { - return getLabels(e.Object) -} - -func (e *HTMLButtonElement) Validity() *ValidityState { - // TODO replace with a field once GopherJS supports that - return &ValidityState{Object: e.Get("validity")} -} - -func (e *HTMLButtonElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLButtonElement) SetCustomValidity(s string) { - e.Call("setCustomValidity", s) -} - -type HTMLCanvasElement struct { - *BasicHTMLElement - Height int `js:"height"` - Width int `js:"width"` -} - -type CanvasRenderingContext2D struct { - *js.Object - - // Colors, Styles, and Shadows - - FillStyle string `js:"fillStyle"` - StrokeStyle string `js:"strokeStyle"` - ShadowColor string `js:"shadowColor"` - ShadowBlur int `js:"shadowBlur"` - ShadowOffsetX int `js:"shadowOffsetX"` - ShadowOffsetY int `js:"shadowOffsetY"` - - // Line Styles - - LineCap string `js:"lineCap"` - LineJoin string `js:"lineJoin"` - LineWidth int `js:"lineWidth"` - MiterLimit int `js:"miterLimit"` - - // Text - - Font string `js:"font"` - TextAlign string `js:"textAlign"` - TextBaseline string `js:"textBaseline"` - - // Compositing - - GlobalAlpha float64 `js:"globalAlpha"` - GlobalCompositeOperation string `js:"globalCompositeOperation"` -} - -type ImageData struct { - *js.Object - - Width int `js:"width"` - Height int `js:"height"` - Data *js.Object `js:"data"` -} - -func (m *ImageData) ColorModel() color.Model { return color.NRGBAModel } - -func (m *ImageData) Bounds() image.Rectangle { - return image.Rect(0, 0, m.Width, m.Height) -} - -func (m *ImageData) At(x, y int) color.Color { - return m.NRGBAAt(x, y) -} - -func (m *ImageData) NRGBAAt(x, y int) color.NRGBA { - if x < 0 || x >= m.Width || - y < 0 || y >= m.Height { - return color.NRGBA{} - } - i := (y*m.Width + x) * 4 - return color.NRGBA{ - R: uint8(m.Data.Index(i + 0).Int()), - G: uint8(m.Data.Index(i + 1).Int()), - B: uint8(m.Data.Index(i + 2).Int()), - A: uint8(m.Data.Index(i + 3).Int()), - } -} - -func (m *ImageData) Set(x, y int, c color.Color) { - if x < 0 || x >= m.Width || - y < 0 || y >= m.Height { - return - } - c1 := color.NRGBAModel.Convert(c).(color.NRGBA) - i := (y*m.Width + x) * 4 - m.Data.SetIndex(i+0, c1.R) - m.Data.SetIndex(i+1, c1.G) - m.Data.SetIndex(i+2, c1.B) - m.Data.SetIndex(i+3, c1.A) -} - -func (m *ImageData) SetNRGBA(x, y int, c color.NRGBA) { - if x < 0 || x >= m.Width || - y < 0 || y >= m.Height { - return - } - i := (y*m.Width + x) * 4 - m.Data.SetIndex(i+0, c.R) - m.Data.SetIndex(i+1, c.G) - m.Data.SetIndex(i+2, c.B) - m.Data.SetIndex(i+3, c.A) -} - -// CanvasGradient represents an opaque object describing a gradient. -// It is returned by the methods CanvasRenderingContext2D.CreateLinearGradient -// or CanvasRenderingContext2D.CreateRadialGradient. -// -// Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient. -type CanvasGradient struct { - *js.Object -} - -// AddColorStop adds a new stop, defined by an offset and a color, to the gradient. -// It panics with *js.Error if the offset is not between 0 and 1, or if the color -// can't be parsed as a CSS . -// -// Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient/addColorStop. -func (cg *CanvasGradient) AddColorStop(offset float64, color string) { - cg.Call("addColorStop", offset, color) -} - -// CanvasPattern represents an opaque object describing a pattern. -// It is based on an image, a canvas or a video, created by the -// CanvasRenderingContext2D.CreatePattern method. -// -// Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern. -type CanvasPattern struct { - *js.Object -} - -type TextMetrics struct { - *js.Object - - Width float64 `js:"width"` - ActualBoundingBoxLeft float64 `js:"actualBoundingBoxLeft"` - ActualBoundingBoxRight float64 `js:"actualBoundingBoxRight"` - FontBoundingBoxAscent float64 `js:"fontBoundingBoxAscent"` - FontBoundingBoxDescent float64 `js:"fontBoundingBoxDescent"` - ActualBoundingBoxAscent float64 `js:"actualBoundingBoxAscent"` - ActualBoundingBoxDescent float64 `js:"actualBoundingBoxDescent"` - EmHeightAscent float64 `js:"emHeightAscent"` - EmHeightDescent float64 `js:"emHeightDescent"` - HangingBaseline float64 `js:"hangingBaseline"` - AlphabeticBaseline float64 `js:"alphabeticBaseline"` - IdeographicBaseline float64 `js:"ideographicBaseline"` -} - -// Creating canvas 2d context - -func (e *HTMLCanvasElement) GetContext2d() *CanvasRenderingContext2D { - ctx := e.GetContext("2d") - return &CanvasRenderingContext2D{Object: ctx} -} - -func (e *HTMLCanvasElement) GetContext(param string) *js.Object { - return e.Call("getContext", param) -} - -// Drawing Rectangles - -func (ctx *CanvasRenderingContext2D) ClearRect(x, y, width, height float64) { - ctx.Call("clearRect", x, y, width, height) -} - -func (ctx *CanvasRenderingContext2D) FillRect(x, y, width, height float64) { - ctx.Call("fillRect", x, y, width, height) -} - -func (ctx *CanvasRenderingContext2D) StrokeRect(x, y, width, height float64) { - ctx.Call("strokeRect", x, y, width, height) -} - -// Drawing Text - -// FillText fills a given text at the given (x, y) position. -// If the optional maxWidth parameter is not -1, -// the text will be scaled to fit that width. -func (ctx *CanvasRenderingContext2D) FillText(text string, x, y, maxWidth float64) { - if maxWidth == -1 { - ctx.Call("fillText", text, x, y) - return - } - - ctx.Call("fillText", text, x, y, maxWidth) -} - -// StrokeText strokes a given text at the given (x, y) position. -// If the optional maxWidth parameter is not -1, -// the text will be scaled to fit that width. -func (ctx *CanvasRenderingContext2D) StrokeText(text string, x, y, maxWidth float64) { - if maxWidth == -1 { - ctx.Call("strokeText", text, x, y) - return - } - - ctx.Call("strokeText", text, x, y, maxWidth) -} -func (ctx *CanvasRenderingContext2D) MeasureText(text string) *TextMetrics { - textMetrics := ctx.Call("measureText", text) - return &TextMetrics{Object: textMetrics} -} - -// Line styles - -func (ctx *CanvasRenderingContext2D) GetLineDash() []float64 { - var dashes []float64 - for _, dash := range ctx.Call("getLineDash").Interface().([]interface{}) { - dashes = append(dashes, dash.(float64)) - } - return dashes -} - -func (ctx *CanvasRenderingContext2D) SetLineDash(dashes []float64) { - ctx.Call("setLineDash", dashes) -} - -// Gradients and patterns - -// CreateLinearGradient creates a linear gradient along the line given -// by the coordinates represented by the parameters. -// -// Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient. -func (ctx *CanvasRenderingContext2D) CreateLinearGradient(x0, y0, x1, y1 float64) *CanvasGradient { - return &CanvasGradient{Object: ctx.Call("createLinearGradient", x0, y0, x1, y1)} -} - -// CreateRadialGradient creates a radial gradient given by the coordinates of the two circles -// represented by the parameters. -// -// Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createRadialGradient. -func (ctx *CanvasRenderingContext2D) CreateRadialGradient(x0, y0, r0, x1, y1, r1 float64) *CanvasGradient { - return &CanvasGradient{Object: ctx.Call("createRadialGradient", x0, y0, r0, x1, y1, r1)} -} - -// CreatePattern creates a pattern using the specified image (a CanvasImageSource). -// It repeats the source in the directions specified by the repetition argument. -// -// Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern. -func (ctx *CanvasRenderingContext2D) CreatePattern(image Element, repetition string) *CanvasPattern { - return &CanvasPattern{Object: ctx.Call("createPattern", image, repetition)} -} - -// Paths - -func (ctx *CanvasRenderingContext2D) BeginPath() { - ctx.Call("beginPath") -} - -func (ctx *CanvasRenderingContext2D) ClosePath() { - ctx.Call("closePath") -} - -func (ctx *CanvasRenderingContext2D) MoveTo(x, y float64) { - ctx.Call("moveTo", x, y) -} - -func (ctx *CanvasRenderingContext2D) LineTo(x, y float64) { - ctx.Call("lineTo", x, y) -} - -func (ctx *CanvasRenderingContext2D) BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y float64) { - ctx.Call("bezierCurveTo", cp1x, cp1y, cp2x, cp2y, x, y) -} - -func (ctx *CanvasRenderingContext2D) QuadraticCurveTo(cpx, cpy, x, y float64) { - ctx.Call("quadraticCurveTo", cpx, cpy, x, y) -} - -func (ctx *CanvasRenderingContext2D) Arc(x, y, r, sAngle, eAngle float64, counterclockwise bool) { - ctx.Call("arc", x, y, r, sAngle, eAngle, counterclockwise) -} - -func (ctx *CanvasRenderingContext2D) ArcTo(x1, y1, x2, y2, r float64) { - ctx.Call("arcTo", x1, y1, x2, y2, r) -} - -func (ctx *CanvasRenderingContext2D) Ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle float64, anticlockwise bool) { - ctx.Call("ellipse", x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise) -} - -func (ctx *CanvasRenderingContext2D) Rect(x, y, width, height float64) { - ctx.Call("rect", x, y, width, height) -} - -// Drawing paths - -func (ctx *CanvasRenderingContext2D) Fill() { - ctx.Call("fill") -} - -func (ctx *CanvasRenderingContext2D) Stroke() { - ctx.Call("stroke") -} - -func (ctx *CanvasRenderingContext2D) DrawFocusIfNeeded(element HTMLElement, path *js.Object) { - ctx.Call("drawFocusIfNeeded", element, path) -} - -func (ctx *CanvasRenderingContext2D) ScrollPathIntoView(path *js.Object) { - ctx.Call("scrollPathIntoView", path) -} - -func (ctx *CanvasRenderingContext2D) Clip() { - ctx.Call("clip") -} - -func (ctx *CanvasRenderingContext2D) IsPointInPath(x, y float64) bool { - return ctx.Call("isPointInPath", x, y).Bool() -} - -func (ctx *CanvasRenderingContext2D) IsPointInStroke(path *js.Object, x, y float64) bool { - return ctx.Call("isPointInStroke", path, x, y).Bool() -} - -// Transformations - -func (ctx *CanvasRenderingContext2D) Rotate(angle float64) { - ctx.Call("rotate", angle) -} - -func (ctx *CanvasRenderingContext2D) Scale(scaleWidth, scaleHeight float64) { - ctx.Call("scale", scaleWidth, scaleHeight) -} - -func (ctx *CanvasRenderingContext2D) Translate(x, y float64) { - ctx.Call("translate", x, y) -} - -func (ctx *CanvasRenderingContext2D) Transform(a, b, c, d, e, f float64) { - ctx.Call("transform", a, b, c, d, e, f) -} - -func (ctx *CanvasRenderingContext2D) SetTransform(a, b, c, d, e, f float64) { - ctx.Call("setTransform", a, b, c, d, e, f) -} - -func (ctx *CanvasRenderingContext2D) ResetTransform() { - ctx.Call("resetTransform") -} - -// Drawing images - -func (ctx *CanvasRenderingContext2D) DrawImage(image Element, dx, dy float64) { - ctx.Call("drawImage", image, dx, dy) -} - -func (ctx *CanvasRenderingContext2D) DrawImageWithDst(image Element, dx, dy, dWidth, dHeight float64) { - ctx.Call("drawImage", image, dx, dy, dWidth, dHeight) -} - -func (ctx *CanvasRenderingContext2D) DrawImageWithSrcAndDst(image Element, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight float64) { - ctx.Call("drawImage", image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight) -} - -// Pixel manipulation - -func (ctx *CanvasRenderingContext2D) CreateImageData(width, height int) *ImageData { - return &ImageData{Object: ctx.Call("createImageData", width, height)} -} - -func (ctx *CanvasRenderingContext2D) GetImageData(sx, sy, sw, sh int) *ImageData { - return &ImageData{Object: ctx.Call("getImageData", sx, sy, sw, sh)} -} - -func (ctx *CanvasRenderingContext2D) PutImageData(imageData *ImageData, dx, dy float64) { - ctx.Call("putImageData", imageData, dx, dy) -} - -func (ctx *CanvasRenderingContext2D) PutImageDataDirty(imageData *ImageData, dx, dy float64, dirtyX, dirtyY, dirtyWidth, dirtyHeight int) { - ctx.Call("putImageData", imageData, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) -} - -// State - -func (ctx *CanvasRenderingContext2D) Save() { - ctx.Call("save") -} - -func (ctx *CanvasRenderingContext2D) Restore() { - ctx.Call("restore") -} - -// TODO Hit regions: -// addHitRegion -// removeHitRegion -// clearHitRegions - -type HTMLDListElement struct{ *BasicHTMLElement } - -type HTMLDataElement struct { - *BasicHTMLElement - Value string `js:"value"` -} - -type HTMLDataListElement struct{ *BasicHTMLElement } - -func (e *HTMLDataListElement) Options() []*HTMLOptionElement { - return getOptions(e.Object, "options") -} - -type HTMLDirectoryElement struct{ *BasicHTMLElement } -type HTMLDivElement struct{ *BasicHTMLElement } - -type HTMLEmbedElement struct { - *BasicHTMLElement - Src string `js:"src"` - Type string `js:"type"` - Width string `js:"width"` -} - -type HTMLFieldSetElement struct { - *BasicHTMLElement - Disabled bool `js:"disabled"` - Name string `js:"name"` - Type string `js:"type"` - ValidationMessage string `js:"validationMessage"` - WillValidate bool `js:"willValidate"` -} - -func (e *HTMLFieldSetElement) Elements() []HTMLElement { - return nodeListToHTMLElements(e.Get("elements")) -} - -func (e *HTMLFieldSetElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -func (e *HTMLFieldSetElement) Validity() *ValidityState { - // TODO replace with a field once GopherJS supports that - return &ValidityState{Object: e.Get("validity")} -} - -func (e *HTMLFieldSetElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLFieldSetElement) SetCustomValidity(s string) { - e.Call("setCustomValidity", s) -} - -type HTMLFontElement struct{ *BasicHTMLElement } - -type HTMLFormElement struct { - *BasicHTMLElement - AcceptCharset string `js:"acceptCharset"` - Action string `js:"action"` - Autocomplete string `js:"autocomplete"` - Encoding string `js:"encoding"` - Enctype string `js:"enctype"` - Length int `js:"length"` - Method string `js:"method"` - Name string `js:"name"` - NoValidate bool `js:"noValidate"` - Target string `js:"target"` -} - -func (e *HTMLFormElement) Elements() []HTMLElement { - return nodeListToHTMLElements(e.Get("elements")) -} - -func (e *HTMLFormElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLFormElement) Submit() { - e.Call("submit") -} - -func (e *HTMLFormElement) Reset() { - e.Call("reset") -} - -func (e *HTMLFormElement) Item(index int) HTMLElement { - return wrapHTMLElement(e.Call("item", index)) -} - -func (e *HTMLFormElement) NamedItem(name string) HTMLElement { - return wrapHTMLElement(e.Call("namedItem", name)) -} - -type HTMLFrameElement struct{ *BasicHTMLElement } -type HTMLFrameSetElement struct{ *BasicHTMLElement } -type HTMLHRElement struct{ *BasicHTMLElement } -type HTMLHeadElement struct{ *BasicHTMLElement } -type HTMLHeadingElement struct{ *BasicHTMLElement } -type HTMLHtmlElement struct{ *BasicHTMLElement } - -type HTMLIFrameElement struct { - *BasicHTMLElement - Width string `js:"width"` - Height string `js:"height"` - Name string `js:"name"` - Src string `js:"src"` - SrcDoc string `js:"srcdoc"` - Seamless bool `js:"seamless"` - // TODO sandbox attribute -} - -func (e *HTMLIFrameElement) ContentDocument() Document { - return wrapDocument(e.Get("contentDocument")) -} - -func (e *HTMLIFrameElement) ContentWindow() Window { - return &window{e.Get("contentWindow")} -} - -type HTMLImageElement struct { - *BasicHTMLElement - Complete bool `js:"complete"` - CrossOrigin string `js:"crossOrigin"` - Height int `js:"height"` - IsMap bool `js:"isMap"` - NaturalHeight int `js:"naturalHeight"` - NaturalWidth int `js:"naturalWidth"` - Src string `js:"src"` - UseMap string `js:"useMap"` - Width int `js:"width"` - // TODO constructor -} - -type HTMLInputElement struct { - *BasicHTMLElement - Accept string `js:"accept"` - Alt string `js:"alt"` - Autocomplete string `js:"autocomplete"` - Autofocus bool `js:"autofocus"` - Checked bool `js:"checked"` - DefaultChecked bool `js:"defaultChecked"` - DefaultValue string `js:"defaultValue"` - DirName string `js:"dirName"` - Disabled bool `js:"disabled"` - FormAction string `js:"formAction"` - FormEncType string `js:"formEncType"` - FormMethod string `js:"formMethod"` - FormNoValidate bool `js:"formNoValidate"` - FormTarget string `js:"formTarget"` - Height string `js:"height"` - Indeterminate bool `js:"indeterminate"` - Max string `js:"max"` - MaxLength int `js:"maxLength"` - Min string `js:"min"` - Multiple bool `js:"multiple"` - Name string `js:"name"` - Pattern string `js:"pattern"` - Placeholder string `js:"placeholder"` - ReadOnly bool `js:"readOnly"` - Required bool `js:"required"` - SelectionDirection string `js:"selectionDirection"` - SelectionEnd int `js:"selectionEnd"` - SelectionStart int `js:"selectionStart"` - Size int `js:"size"` - Src string `js:"src"` - Step string `js:"step"` - TabIndex int `js:"tabIndex"` - Type string `js:"type"` - ValidationMessage string `js:"validationMessage"` - Value string `js:"value"` - ValueAsDate time.Time `js:"valueAsDate"` - ValueAsNumber float64 `js:"valueAsNumber"` - Width string `js:"width"` - WillValidate bool `js:"willValidate"` -} - -// File represents files as can be obtained from file choosers or drag -// and drop. The dom package does not define any methods on File nor -// does it provide access to the blob or a way to read it. -type File struct { - *js.Object -} - -func (e *HTMLInputElement) Files() []*File { - files := e.Get("files") - out := make([]*File, files.Get("length").Int()) - for i := range out { - out[i] = &File{files.Call("item", i)} - } - return out -} - -func (e *HTMLInputElement) List() *HTMLDataListElement { - list := wrapHTMLElement(e.Get("list")) - if list == nil { - return nil - } - return list.(*HTMLDataListElement) -} - -func (e *HTMLInputElement) Labels() []*HTMLLabelElement { - return getLabels(e.Object) -} - -func (e *HTMLInputElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -func (e *HTMLInputElement) Validity() *ValidityState { - // TODO replace with a field once GopherJS supports that - return &ValidityState{Object: e.Get("validity")} -} - -func (e *HTMLInputElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLInputElement) SetCustomValidity(s string) { - e.Call("setCustomValidity", s) -} - -func (e *HTMLInputElement) Select() { - e.Call("select") -} - -func (e *HTMLInputElement) SetSelectionRange(start, end int, direction string) { - e.Call("setSelectionRange", start, end, direction) -} - -func (e *HTMLInputElement) StepDown(n int) error { - return callRecover(e.Object, "stepDown", n) -} - -func (e *HTMLInputElement) StepUp(n int) error { - return callRecover(e.Object, "stepUp", n) -} - -type HTMLKeygenElement struct { - *BasicHTMLElement - Autofocus bool `js:"autofocus"` - Challenge string `js:"challenge"` - Disabled bool `js:"disabled"` - Keytype string `js:"keytype"` - Name string `js:"name"` - Type string `js:"type"` - ValidationMessage string `js:"validationMessage"` - WillValidate bool `js:"willValidate"` -} - -func (e *HTMLKeygenElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -func (e *HTMLKeygenElement) Labels() []*HTMLLabelElement { - return getLabels(e.Object) -} - -func (e *HTMLKeygenElement) Validity() *ValidityState { - // TODO replace with a field once GopherJS supports that - return &ValidityState{Object: e.Get("validity")} -} - -func (e *HTMLKeygenElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLKeygenElement) SetCustomValidity(s string) { - e.Call("setCustomValidity", s) -} - -type HTMLLIElement struct { - *BasicHTMLElement - Value int `js:"value"` -} - -type HTMLLabelElement struct { - *BasicHTMLElement - For string `js:"htmlFor"` -} - -func (e *HTMLLabelElement) Control() HTMLElement { - return wrapHTMLElement(e.Get("control")) -} - -func (e *HTMLLabelElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -type HTMLLegendElement struct{ *BasicHTMLElement } - -func (e *HTMLLegendElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -type HTMLLinkElement struct { - *BasicHTMLElement - Disabled bool `js:"disabled"` - Href string `js:"href"` - HrefLang string `js:"hrefLang"` - Media string `js:"media"` - Type string `js:"type"` -} - -func (e *HTMLLinkElement) Rel() *TokenList { - return &TokenList{dtl: e.Get("relList"), o: e.Object, sa: "rel"} -} - -func (e *HTMLLinkElement) Sizes() *TokenList { - return &TokenList{dtl: e.Get("sizes"), o: e.Object} -} - -func (e *HTMLLinkElement) Sheet() StyleSheet { - // FIXME implement - panic("not implemented") -} - -type HTMLMapElement struct { - *BasicHTMLElement - Name string `js:"name"` -} - -func (e *HTMLMapElement) Areas() []*HTMLAreaElement { - areas := nodeListToElements(e.Get("areas")) - out := make([]*HTMLAreaElement, len(areas)) - for i, area := range areas { - out[i] = area.(*HTMLAreaElement) - } - return out -} - -func (e *HTMLMapElement) Images() []HTMLElement { - return nodeListToHTMLElements(e.Get("areas")) -} - -type HTMLMediaElement struct { - *BasicHTMLElement - Paused bool `js:"paused"` -} - -func (e *HTMLMediaElement) Play() { - e.Call("play") -} - -func (e *HTMLMediaElement) Pause() { - e.Call("pause") -} - -type HTMLMenuElement struct{ *BasicHTMLElement } - -type HTMLMetaElement struct { - *BasicHTMLElement - Content string `js:"content"` - HTTPEquiv string `js:"httpEquiv"` - Name string `js:"name"` -} - -type HTMLMeterElement struct { - *BasicHTMLElement - High float64 `js:"high"` - Low float64 `js:"low"` - Max float64 `js:"max"` - Min float64 `js:"min"` - Optimum float64 `js:"optimum"` -} - -func (e HTMLMeterElement) Labels() []*HTMLLabelElement { - return getLabels(e.Object) -} - -type HTMLModElement struct { - *BasicHTMLElement - Cite string `js:"cite"` - DateTime string `js:"dateTime"` -} - -type HTMLOListElement struct { - *BasicHTMLElement - Reversed bool `js:"reversed"` - Start int `js:"start"` - Type string `js:"type"` -} - -type HTMLObjectElement struct { - *BasicHTMLElement - Data string `js:"data"` - Height string `js:"height"` - Name string `js:"name"` - TabIndex int `js:"tabIndex"` - Type string `js:"type"` - TypeMustMatch bool `js:"typeMustMatch"` - UseMap string `js:"useMap"` - ValidationMessage string `js:"validationMessage"` - With string `js:"with"` - WillValidate bool `js:"willValidate"` -} - -func (e *HTMLObjectElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -func (e *HTMLObjectElement) ContentDocument() Document { - return wrapDocument(e.Get("contentDocument")) -} - -func (e *HTMLObjectElement) ContentWindow() Window { - return &window{e.Get("contentWindow")} -} - -func (e *HTMLObjectElement) Validity() *ValidityState { - // TODO replace with a field once GopherJS supports that - return &ValidityState{Object: e.Get("validity")} -} - -func (e *HTMLObjectElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLObjectElement) SetCustomValidity(s string) { - e.Call("setCustomValidity", s) -} - -type HTMLOptGroupElement struct { - *BasicHTMLElement - Disabled bool `js:"disabled"` - Label string `js:"label"` -} - -type HTMLOptionElement struct { - *BasicHTMLElement - DefaultSelected bool `js:"defaultSelected"` - Disabled bool `js:"disabled"` - Index int `js:"index"` - Label string `js:"label"` - Selected bool `js:"selected"` - Text string `js:"text"` - Value string `js:"value"` -} - -func (e *HTMLOptionElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -type HTMLOutputElement struct { - *BasicHTMLElement - DefaultValue string `js:"defaultValue"` - Name string `js:"name"` - Type string `js:"type"` - ValidationMessage string `js:"validationMessage"` - Value string `js:"value"` - WillValidate bool `js:"willValidate"` -} - -func (e *HTMLOutputElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -func (e *HTMLOutputElement) Labels() []*HTMLLabelElement { - return getLabels(e.Object) -} - -func (e *HTMLOutputElement) Validity() *ValidityState { - // TODO replace with a field once GopherJS supports that - return &ValidityState{Object: e.Get("validity")} -} - -func (e *HTMLOutputElement) For() *TokenList { - return &TokenList{dtl: e.Get("htmlFor"), o: e.Object} -} - -func (e *HTMLOutputElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLOutputElement) SetCustomValidity(s string) { - e.Call("setCustomValidity", s) -} - -type HTMLParagraphElement struct{ *BasicHTMLElement } - -type HTMLParamElement struct { - *BasicHTMLElement - Name string `js:"name"` - Value string `js:"value"` -} - -type HTMLPreElement struct{ *BasicHTMLElement } - -type HTMLProgressElement struct { - *BasicHTMLElement - Max float64 `js:"max"` - Position float64 `js:"position"` - Value float64 `js:"value"` -} - -func (e HTMLProgressElement) Labels() []*HTMLLabelElement { - return getLabels(e.Object) -} - -type HTMLQuoteElement struct { - *BasicHTMLElement - Cite string `js:"cite"` -} - -type HTMLScriptElement struct { - *BasicHTMLElement - Type string `js:"type"` - Src string `js:"src"` - Charset string `js:"charset"` - Async bool `js:"async"` - Defer bool `js:"defer"` - Text string `js:"text"` -} - -type HTMLSelectElement struct { - *BasicHTMLElement - Autofocus bool `js:"autofocus"` - Disabled bool `js:"disabled"` - Length int `js:"length"` - Multiple bool `js:"multiple"` - Name string `js:"name"` - Required bool `js:"required"` - SelectedIndex int `js:"selectedIndex"` - Size int `js:"size"` - Type string `js:"type"` - ValidationMessage string `js:"validationMessage"` - Value string `js:"value"` - WillValidate bool `js:"willValidate"` -} - -func (e *HTMLSelectElement) Labels() []*HTMLLabelElement { - return getLabels(e.Object) -} - -func (e *HTMLSelectElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -func (e *HTMLSelectElement) Options() []*HTMLOptionElement { - return getOptions(e.Object, "options") -} - -func (e *HTMLSelectElement) SelectedOptions() []*HTMLOptionElement { - return getOptions(e.Object, "selectedOptions") -} - -func (e *HTMLSelectElement) Item(index int) *HTMLOptionElement { - el := wrapHTMLElement(e.Call("item", index)) - if el == nil { - return nil - } - return el.(*HTMLOptionElement) -} - -func (e *HTMLSelectElement) NamedItem(name string) *HTMLOptionElement { - el := wrapHTMLElement(e.Call("namedItem", name)) - if el == nil { - return nil - } - return el.(*HTMLOptionElement) -} - -// TODO(dominikh): Not implementing Add or Remove for now. For one, -// Add with "before" behaves weird when dealing with optgroups. Also, -// there's already InsertBefore and RemoveChild which can be used -// instead. - -func (e *HTMLSelectElement) Validity() *ValidityState { - return &ValidityState{Object: e.Get("validity")} -} - -func (e *HTMLSelectElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLSelectElement) SetCustomValidity(s string) { - e.Call("setCustomValidity", s) -} - -type HTMLSourceElement struct { - *BasicHTMLElement - Media string `js:"media"` - Src string `js:"src"` - Type string `js:"type"` -} - -type HTMLSpanElement struct{ *BasicHTMLElement } -type HTMLStyleElement struct{ *BasicHTMLElement } -type HTMLTableCaptionElement struct{ *BasicHTMLElement } - -type HTMLTableCellElement struct { - *BasicHTMLElement - ColSpan int `js:"colSpan"` - RowSpan int `js:"rowSpan"` - CellIndex int `js:"cellIndex"` - // TODO headers -} - -type HTMLTableColElement struct { - *BasicHTMLElement - Span int `js:"span"` -} - -type HTMLTableDataCellElement struct{ *BasicHTMLElement } -type HTMLTableElement struct{ *BasicHTMLElement } - -type HTMLTableHeaderCellElement struct { - *BasicHTMLElement - Abbr string `js:"abbr"` - Scope string `js:"scope"` -} - -type HTMLTableRowElement struct { - *BasicHTMLElement - RowIndex int `js:"rowIndex"` - SectionRowIndex int `js:"sectionRowIndex"` -} - -func (e *HTMLTableRowElement) Cells() []*HTMLTableCellElement { - cells := nodeListToElements(e.Get("cells")) - out := make([]*HTMLTableCellElement, len(cells)) - for i, cell := range cells { - out[i] = cell.(*HTMLTableCellElement) - } - return out -} - -func (e *HTMLTableRowElement) InsertCell(index int) *HTMLTableCellElement { - return wrapHTMLElement(e.Call("insertCell", index)).(*HTMLTableCellElement) -} - -func (e *HTMLTableRowElement) DeleteCell(index int) { - // FIXME exception handling/check that index is in bounds - e.Call("deleteCell", index) -} - -type HTMLTableSectionElement struct{ *BasicHTMLElement } - -func (e *HTMLTableSectionElement) Rows() []*HTMLTableRowElement { - rows := nodeListToElements(e.Get("rows")) - out := make([]*HTMLTableRowElement, len(rows)) - for i, row := range rows { - out[i] = row.(*HTMLTableRowElement) - } - return out -} - -func (e *HTMLTableSectionElement) DeleteRow(index int) { - // FIXME exception handling/check that index is in bounds - e.Call("deleteRow", index) -} - -func (e *HTMLTableSectionElement) InsertRow(index int) *HTMLTableRowElement { - return wrapHTMLElement(e.Call("insertRow", index)).(*HTMLTableRowElement) -} - -type HTMLTextAreaElement struct { - *BasicHTMLElement - Autocomplete string `js:"autocomplete"` - Autofocus bool `js:"autofocus"` - Cols int `js:"cols"` - DefaultValue string `js:"defaultValue"` - DirName string `js:"dirName"` - Disabled bool `js:"disabled"` - MaxLength int `js:"maxLength"` - Name string `js:"name"` - Placeholder string `js:"placeholder"` - ReadOnly bool `js:"readOnly"` - Required bool `js:"required"` - Rows int `js:"rows"` - SelectionDirection string `js:"selectionDirection"` - SelectionStart int `js:"selectionStart"` - SelectionEnd int `js:"selectionEnd"` - TabIndex int `js:"tabIndex"` - TextLength int `js:"textLength"` - Type string `js:"type"` - ValidationMessage string `js:"validationMessage"` - Value string `js:"value"` - WillValidate bool `js:"willValidate"` - Wrap string `js:"wrap"` -} - -func (e *HTMLTextAreaElement) Form() *HTMLFormElement { - return getForm(e.Object) -} - -func (e *HTMLTextAreaElement) Labels() []*HTMLLabelElement { - return getLabels(e.Object) -} - -func (e *HTMLTextAreaElement) Validity() *ValidityState { - // TODO replace with a field once GopherJS supports that - return &ValidityState{Object: e.Get("validity")} -} - -func (e *HTMLTextAreaElement) CheckValidity() bool { - return e.Call("checkValidity").Bool() -} - -func (e *HTMLTextAreaElement) SetCustomValidity(s string) { - e.Call("setCustomValidity", s) -} - -func (e *HTMLTextAreaElement) Select() { - e.Call("select") -} - -func (e *HTMLTextAreaElement) SetSelectionRange(start, end int, direction string) { - e.Call("setSelectionRange", start, end, direction) -} - -type HTMLTimeElement struct { - *BasicHTMLElement - DateTime string `js:"dateTime"` -} - -type HTMLTitleElement struct { - *BasicHTMLElement - Text string `js:"text"` -} - -// TextTrack represents text track data for elements. It does -// not currently provide any methods or attributes and it hasn't been -// decided yet whether they will be added to this package or a -// separate package. -type TextTrack struct{ *js.Object } - -type HTMLTrackElement struct { - *BasicHTMLElement - Kind string `js:"kind"` - Src string `js:"src"` - Srclang string `js:"srclang"` - Label string `js:"label"` - Default bool `js:"default"` - ReadyState int `js:"readyState"` -} - -func (e *HTMLTrackElement) Track() *TextTrack { - return &TextTrack{e.Get("track")} -} - -type HTMLUListElement struct{ *BasicHTMLElement } -type HTMLUnknownElement struct{ *BasicHTMLElement } - -type HTMLVideoElement struct{ *HTMLMediaElement } - -type ValidityState struct { - *js.Object - CustomError bool `js:"customError"` - PatternMismatch bool `js:"patternMismatch"` - RangeOverflow bool `js:"rangeOverflow"` - RangeUnderflow bool `js:"rangeUnderflow"` - StepMismatch bool `js:"stepMismatch"` - TooLong bool `js:"tooLong"` - TypeMismatch bool `js:"typeMismatch"` - Valid bool `js:"valid"` - ValueMissing bool `js:"valueMissing"` -} - -type CSSStyleDeclaration struct{ *js.Object } - -func (css *CSSStyleDeclaration) ToMap() map[string]string { - m := make(map[string]string) - N := css.Get("length").Int() - for i := 0; i < N; i++ { - name := css.Call("item", i).String() - value := css.Call("getPropertyValue", name).String() - m[name] = value - } - - return m -} - -func (css *CSSStyleDeclaration) RemoveProperty(name string) { - css.Call("removeProperty", name) -} - -func (css *CSSStyleDeclaration) GetPropertyValue(name string) string { - return toString(css.Call("getPropertyValue", name)) -} - -func (css *CSSStyleDeclaration) GetPropertyPriority(name string) string { - return toString(css.Call("getPropertyPriority", name)) -} - -func (css *CSSStyleDeclaration) SetProperty(name, value, priority string) { - css.Call("setProperty", name, value, priority) -} - -func (css *CSSStyleDeclaration) Index(idx int) string { - return css.Call("index", idx).String() -} - -func (css *CSSStyleDeclaration) Length() int { - return css.Get("length").Int() -} - -type Text struct { - *BasicNode -} diff --git a/vendor/honnef.co/go/js/dom/events.go b/vendor/honnef.co/go/js/dom/events.go deleted file mode 100644 index 2fb8c0f..0000000 --- a/vendor/honnef.co/go/js/dom/events.go +++ /dev/null @@ -1,338 +0,0 @@ -package dom - -import ( - "time" - - "github.com/gopherjs/gopherjs/js" -) - -func WrapEvent(o *js.Object) Event { - return wrapEvent(o) -} - -func wrapEvent(o *js.Object) Event { - if o == nil || o == js.Undefined { - return nil - } - ev := &BasicEvent{o} - c := o.Get("constructor") - switch c { - case js.Global.Get("AnimationEvent"): - return &AnimationEvent{ev} - case js.Global.Get("AudioProcessingEvent"): - return &AudioProcessingEvent{ev} - case js.Global.Get("BeforeInputEvent"): - return &BeforeInputEvent{ev} - case js.Global.Get("BeforeUnloadEvent"): - return &BeforeUnloadEvent{ev} - case js.Global.Get("BlobEvent"): - return &BlobEvent{ev} - case js.Global.Get("ClipboardEvent"): - return &ClipboardEvent{ev} - case js.Global.Get("CloseEvent"): - return &CloseEvent{BasicEvent: ev} - case js.Global.Get("CompositionEvent"): - return &CompositionEvent{ev} - case js.Global.Get("CSSFontFaceLoadEvent"): - return &CSSFontFaceLoadEvent{ev} - case js.Global.Get("CustomEvent"): - return &CustomEvent{ev} - case js.Global.Get("DeviceLightEvent"): - return &DeviceLightEvent{ev} - case js.Global.Get("DeviceMotionEvent"): - return &DeviceMotionEvent{ev} - case js.Global.Get("DeviceOrientationEvent"): - return &DeviceOrientationEvent{ev} - case js.Global.Get("DeviceProximityEvent"): - return &DeviceProximityEvent{ev} - case js.Global.Get("DOMTransactionEvent"): - return &DOMTransactionEvent{ev} - case js.Global.Get("DragEvent"): - return &DragEvent{ev} - case js.Global.Get("EditingBeforeInputEvent"): - return &EditingBeforeInputEvent{ev} - case js.Global.Get("ErrorEvent"): - return &ErrorEvent{ev} - case js.Global.Get("FocusEvent"): - return &FocusEvent{ev} - case js.Global.Get("GamepadEvent"): - return &GamepadEvent{ev} - case js.Global.Get("HashChangeEvent"): - return &HashChangeEvent{ev} - case js.Global.Get("IDBVersionChangeEvent"): - return &IDBVersionChangeEvent{ev} - case js.Global.Get("KeyboardEvent"): - return &KeyboardEvent{BasicEvent: ev} - case js.Global.Get("MediaStreamEvent"): - return &MediaStreamEvent{ev} - case js.Global.Get("MessageEvent"): - return &MessageEvent{BasicEvent: ev} - case js.Global.Get("MouseEvent"): - return &MouseEvent{UIEvent: &UIEvent{ev}} - case js.Global.Get("MutationEvent"): - return &MutationEvent{ev} - case js.Global.Get("OfflineAudioCompletionEvent"): - return &OfflineAudioCompletionEvent{ev} - case js.Global.Get("PageTransitionEvent"): - return &PageTransitionEvent{ev} - case js.Global.Get("PointerEvent"): - return &PointerEvent{ev} - case js.Global.Get("PopStateEvent"): - return &PopStateEvent{ev} - case js.Global.Get("ProgressEvent"): - return &ProgressEvent{ev} - case js.Global.Get("RelatedEvent"): - return &RelatedEvent{ev} - case js.Global.Get("RTCPeerConnectionIceEvent"): - return &RTCPeerConnectionIceEvent{ev} - case js.Global.Get("SensorEvent"): - return &SensorEvent{ev} - case js.Global.Get("StorageEvent"): - return &StorageEvent{ev} - case js.Global.Get("SVGEvent"): - return &SVGEvent{ev} - case js.Global.Get("SVGZoomEvent"): - return &SVGZoomEvent{ev} - case js.Global.Get("TimeEvent"): - return &TimeEvent{ev} - case js.Global.Get("TouchEvent"): - return &TouchEvent{ev} - case js.Global.Get("TrackEvent"): - return &TrackEvent{ev} - case js.Global.Get("TransitionEvent"): - return &TransitionEvent{ev} - case js.Global.Get("UIEvent"): - return &UIEvent{ev} - case js.Global.Get("UserProximityEvent"): - return &UserProximityEvent{ev} - case js.Global.Get("WheelEvent"): - return &WheelEvent{BasicEvent: ev} - default: - return ev - } -} - -const ( - EvPhaseNone = 0 - EvPhaseCapturing = 1 - EvPhaseAtTarget = 2 - EvPhaseBubbling = 3 -) - -type Event interface { - Bubbles() bool - Cancelable() bool - CurrentTarget() Element - DefaultPrevented() bool - EventPhase() int - Target() Element - Timestamp() time.Time - Type() string - PreventDefault() - StopImmediatePropagation() - StopPropagation() - Underlying() *js.Object -} - -// Type BasicEvent implements the Event interface and is embedded by -// concrete event types. -type BasicEvent struct{ *js.Object } - -type EventOptions struct { - Bubbles bool - Cancelable bool -} - -func CreateEvent(typ string, opts EventOptions) *BasicEvent { - var event = js.Global.Get("Event").New(typ, js.M{ - "bubbles": opts.Bubbles, - "cancelable": opts.Cancelable, - }) - return &BasicEvent{event} -} - -func (ev *BasicEvent) Bubbles() bool { - return ev.Get("bubbles").Bool() -} - -func (ev *BasicEvent) Cancelable() bool { - return ev.Get("cancelable").Bool() -} - -func (ev *BasicEvent) CurrentTarget() Element { - return wrapElement(ev.Get("currentTarget")) -} - -func (ev *BasicEvent) DefaultPrevented() bool { - return ev.Get("defaultPrevented").Bool() -} - -func (ev *BasicEvent) EventPhase() int { - return ev.Get("eventPhase").Int() -} - -func (ev *BasicEvent) Target() Element { - return wrapElement(ev.Get("target")) -} - -func (ev *BasicEvent) Timestamp() time.Time { - ms := ev.Get("timeStamp").Int() - s := ms / 1000 - ns := (ms % 1000 * 1e6) - return time.Unix(int64(s), int64(ns)) -} - -func (ev *BasicEvent) Type() string { - return ev.Get("type").String() -} - -func (ev *BasicEvent) PreventDefault() { - ev.Call("preventDefault") -} - -func (ev *BasicEvent) StopImmediatePropagation() { - ev.Call("stopImmediatePropagation") -} - -func (ev *BasicEvent) StopPropagation() { - ev.Call("stopPropagation") -} - -func (ev *BasicEvent) Underlying() *js.Object { - return ev.Object -} - -type AnimationEvent struct{ *BasicEvent } -type AudioProcessingEvent struct{ *BasicEvent } -type BeforeInputEvent struct{ *BasicEvent } -type BeforeUnloadEvent struct{ *BasicEvent } -type BlobEvent struct{ *BasicEvent } -type ClipboardEvent struct{ *BasicEvent } - -type CloseEvent struct { - *BasicEvent - Code int `js:"code"` - Reason string `js:"reason"` - WasClean bool `js:"wasClean"` -} - -type CompositionEvent struct{ *BasicEvent } -type CSSFontFaceLoadEvent struct{ *BasicEvent } -type CustomEvent struct{ *BasicEvent } -type DeviceLightEvent struct{ *BasicEvent } -type DeviceMotionEvent struct{ *BasicEvent } -type DeviceOrientationEvent struct{ *BasicEvent } -type DeviceProximityEvent struct{ *BasicEvent } -type DOMTransactionEvent struct{ *BasicEvent } -type DragEvent struct{ *BasicEvent } -type EditingBeforeInputEvent struct{ *BasicEvent } -type ErrorEvent struct{ *BasicEvent } - -type FocusEvent struct{ *BasicEvent } - -func (ev *FocusEvent) RelatedTarget() Element { - return wrapElement(ev.Get("relatedTarget")) -} - -type GamepadEvent struct{ *BasicEvent } -type HashChangeEvent struct{ *BasicEvent } -type IDBVersionChangeEvent struct{ *BasicEvent } - -const ( - KeyLocationStandard = 0 - KeyLocationLeft = 1 - KeyLocationRight = 2 - KeyLocationNumpad = 3 -) - -type KeyboardEvent struct { - *BasicEvent - AltKey bool `js:"altKey"` - CharCode int `js:"charCode"` - CtrlKey bool `js:"ctrlKey"` - Key string `js:"key"` - KeyIdentifier string `js:"keyIdentifier"` - KeyCode int `js:"keyCode"` - Locale string `js:"locale"` - Location int `js:"location"` - KeyLocation int `js:"keyLocation"` - MetaKey bool `js:"metaKey"` - Repeat bool `js:"repeat"` - ShiftKey bool `js:"shiftKey"` -} - -func (ev *KeyboardEvent) ModifierState(mod string) bool { - return ev.Call("getModifierState", mod).Bool() -} - -type MediaStreamEvent struct{ *BasicEvent } - -type MessageEvent struct { - *BasicEvent - Data *js.Object `js:"data"` -} - -type MouseEvent struct { - *UIEvent - AltKey bool `js:"altKey"` - Button int `js:"button"` - ClientX int `js:"clientX"` - ClientY int `js:"clientY"` - CtrlKey bool `js:"ctrlKey"` - MetaKey bool `js:"metaKey"` - MovementX int `js:"movementX"` - MovementY int `js:"movementY"` - ScreenX int `js:"screenX"` - ScreenY int `js:"screenY"` - ShiftKey bool `js:"shiftKey"` -} - -func (ev *MouseEvent) RelatedTarget() Element { - return wrapElement(ev.Get("relatedTarget")) -} - -func (ev *MouseEvent) ModifierState(mod string) bool { - return ev.Call("getModifierState", mod).Bool() -} - -type MutationEvent struct{ *BasicEvent } -type OfflineAudioCompletionEvent struct{ *BasicEvent } -type PageTransitionEvent struct{ *BasicEvent } -type PointerEvent struct{ *BasicEvent } -type PopStateEvent struct{ *BasicEvent } -type ProgressEvent struct{ *BasicEvent } -type RelatedEvent struct{ *BasicEvent } -type RTCPeerConnectionIceEvent struct{ *BasicEvent } -type SensorEvent struct{ *BasicEvent } -type StorageEvent struct{ *BasicEvent } -type SVGEvent struct{ *BasicEvent } -type SVGZoomEvent struct{ *BasicEvent } -type TimeEvent struct{ *BasicEvent } -type TouchEvent struct{ *BasicEvent } -type TrackEvent struct{ *BasicEvent } -type TransitionEvent struct{ *BasicEvent } -type UIEvent struct{ *BasicEvent } -type UserProximityEvent struct{ *BasicEvent } - -const ( - DeltaPixel = 0 - DeltaLine = 1 - DeltaPage = 2 -) - -type WheelEvent struct { - *BasicEvent - DeltaX float64 `js:"deltaX"` - DeltaY float64 `js:"deltaY"` - DeltaZ float64 `js:"deltaZ"` - DeltaMode int `js:"deltaMode"` -} - -type EventTarget interface { - // AddEventListener adds a new event listener and returns the - // wrapper function it generated. If using RemoveEventListener, - // that wrapper has to be used. - AddEventListener(typ string, useCapture bool, listener func(Event)) func(*js.Object) - RemoveEventListener(typ string, useCapture bool, listener func(*js.Object)) - DispatchEvent(event Event) bool -}