`use glfw` and `use vulkan` load the native libraries and expose every function with a snake_case name, plus constants, struct sizes and field offsets. Generated from the official headers/registry, not hand-written: - tools/gen_glfw.py: parses glfw3.h -> std/glfw/glfw.cat (124 fns + GLFW_* constants + GLFWvidmode/GLFWgammaramp offsets). - tools/gen_vulkan.py: parses vk.xml -> std/vulkan/vulkan.cat (650 commands + 1454 struct sizes/offsets + enum constants), with a recursive x86-64 layout engine that resolves nested structs and macro-sized arrays (sizes verified against the C headers). - ffi: `memory` values pass their address where a pointer is expected; `ffi.pointer(addr, name, sig)` binds a call at a raw address (Vulkan dispatch). `VkResult`/enum returns are ints. - compiler: a keyword is allowed as a member name after `.` / method-call position (glfw.false, glfw.visible). - vendor/lib/libglfw.so.3: the host has no libglfw, so it is vendored. Proved live: GLFW 3.4 window + framebuffer under xvfb-run; a Vulkan 1.0 instance + physical-device enumeration on lavapipe (headless). tests/glfw.cat, tests/vulkan.cat wired into the suite (125 green).
439 lines
17 KiB
Plaintext
439 lines
17 KiB
Plaintext
-- std/glfw/glfw.cat -- generated GLFW bindings (snake_case).
|
|
-- Generated by tools/gen_glfw.py from the official glfw3.h.
|
|
--
|
|
-- import it with: use glfw
|
|
-- Then call functions as `glfw.init()`, `glfw.create_window(...)`;
|
|
-- constants and struct offsets live on `glfw` too (glfw.visible).
|
|
|
|
local _lib = ffi::load('libglfw.so.3')
|
|
|
|
glfw = {}
|
|
glfw.lib = _lib
|
|
|
|
glfw.init = _lib:func('glfwInit', 'int()')
|
|
glfw.terminate = _lib:func('glfwTerminate', 'void()')
|
|
glfw.init_hint = _lib:func('glfwInitHint', 'void(int,int)')
|
|
glfw.init_allocator = _lib:func('glfwInitAllocator', 'void(ptr)')
|
|
glfw.init_vulkan_loader = _lib:func('glfwInitVulkanLoader', 'void(int)')
|
|
glfw.get_version = _lib:func('glfwGetVersion', 'void(ptr,ptr,ptr)')
|
|
glfw.get_version_string = _lib:func('glfwGetVersionString', 'string()')
|
|
glfw.get_error = _lib:func('glfwGetError', 'int(ptr)')
|
|
glfw.set_error_callback = _lib:func('glfwSetErrorCallback', 'int(int)')
|
|
glfw.get_platform = _lib:func('glfwGetPlatform', 'int()')
|
|
glfw.platform_supported = _lib:func('glfwPlatformSupported', 'int(int)')
|
|
glfw.get_monitors = _lib:func('glfwGetMonitors', 'ptr(ptr)')
|
|
glfw.get_primary_monitor = _lib:func('glfwGetPrimaryMonitor', 'ptr()')
|
|
glfw.get_monitor_pos = _lib:func('glfwGetMonitorPos', 'void(ptr,ptr,ptr)')
|
|
glfw.get_monitor_workarea = _lib:func('glfwGetMonitorWorkarea', 'void(ptr,ptr,ptr,ptr,ptr)')
|
|
glfw.get_monitor_physical_size = _lib:func('glfwGetMonitorPhysicalSize', 'void(ptr,ptr,ptr)')
|
|
glfw.get_monitor_content_scale = _lib:func('glfwGetMonitorContentScale', 'void(ptr,ptr,ptr)')
|
|
glfw.get_monitor_name = _lib:func('glfwGetMonitorName', 'string(ptr)')
|
|
glfw.set_monitor_user_pointer = _lib:func('glfwSetMonitorUserPointer', 'void(ptr,ptr)')
|
|
glfw.get_monitor_user_pointer = _lib:func('glfwGetMonitorUserPointer', 'ptr(ptr)')
|
|
glfw.set_monitor_callback = _lib:func('glfwSetMonitorCallback', 'int(int)')
|
|
glfw.get_video_modes = _lib:func('glfwGetVideoModes', 'ptr(ptr,ptr)')
|
|
glfw.get_video_mode = _lib:func('glfwGetVideoMode', 'ptr(ptr)')
|
|
glfw.set_gamma = _lib:func('glfwSetGamma', 'void(ptr,float)')
|
|
glfw.get_gamma_ramp = _lib:func('glfwGetGammaRamp', 'ptr(ptr)')
|
|
glfw.set_gamma_ramp = _lib:func('glfwSetGammaRamp', 'void(ptr,ptr)')
|
|
glfw.default_window_hints = _lib:func('glfwDefaultWindowHints', 'void()')
|
|
glfw.window_hint = _lib:func('glfwWindowHint', 'void(int,int)')
|
|
glfw.window_hint_string = _lib:func('glfwWindowHintString', 'void(int,string)')
|
|
glfw.create_window = _lib:func('glfwCreateWindow', 'ptr(int,int,string,ptr,ptr)')
|
|
glfw.destroy_window = _lib:func('glfwDestroyWindow', 'void(ptr)')
|
|
glfw.window_should_close = _lib:func('glfwWindowShouldClose', 'int(ptr)')
|
|
glfw.set_window_should_close = _lib:func('glfwSetWindowShouldClose', 'void(ptr,int)')
|
|
glfw.get_window_title = _lib:func('glfwGetWindowTitle', 'string(ptr)')
|
|
glfw.set_window_title = _lib:func('glfwSetWindowTitle', 'void(ptr,string)')
|
|
glfw.set_window_icon = _lib:func('glfwSetWindowIcon', 'void(ptr,int,ptr)')
|
|
glfw.get_window_pos = _lib:func('glfwGetWindowPos', 'void(ptr,ptr,ptr)')
|
|
glfw.set_window_pos = _lib:func('glfwSetWindowPos', 'void(ptr,int,int)')
|
|
glfw.get_window_size = _lib:func('glfwGetWindowSize', 'void(ptr,ptr,ptr)')
|
|
glfw.set_window_size_limits = _lib:func('glfwSetWindowSizeLimits', 'void(ptr,int,int,int,int)')
|
|
glfw.set_window_aspect_ratio = _lib:func('glfwSetWindowAspectRatio', 'void(ptr,int,int)')
|
|
glfw.set_window_size = _lib:func('glfwSetWindowSize', 'void(ptr,int,int)')
|
|
glfw.get_framebuffer_size = _lib:func('glfwGetFramebufferSize', 'void(ptr,ptr,ptr)')
|
|
glfw.get_window_frame_size = _lib:func('glfwGetWindowFrameSize', 'void(ptr,ptr,ptr,ptr,ptr)')
|
|
glfw.get_window_content_scale = _lib:func('glfwGetWindowContentScale', 'void(ptr,ptr,ptr)')
|
|
glfw.get_window_opacity = _lib:func('glfwGetWindowOpacity', 'float(ptr)')
|
|
glfw.set_window_opacity = _lib:func('glfwSetWindowOpacity', 'void(ptr,float)')
|
|
glfw.iconify_window = _lib:func('glfwIconifyWindow', 'void(ptr)')
|
|
glfw.restore_window = _lib:func('glfwRestoreWindow', 'void(ptr)')
|
|
glfw.maximize_window = _lib:func('glfwMaximizeWindow', 'void(ptr)')
|
|
glfw.show_window = _lib:func('glfwShowWindow', 'void(ptr)')
|
|
glfw.hide_window = _lib:func('glfwHideWindow', 'void(ptr)')
|
|
glfw.focus_window = _lib:func('glfwFocusWindow', 'void(ptr)')
|
|
glfw.request_window_attention = _lib:func('glfwRequestWindowAttention', 'void(ptr)')
|
|
glfw.get_window_monitor = _lib:func('glfwGetWindowMonitor', 'ptr(ptr)')
|
|
glfw.set_window_monitor = _lib:func('glfwSetWindowMonitor', 'void(ptr,ptr,int,int,int,int,int)')
|
|
glfw.get_window_attrib = _lib:func('glfwGetWindowAttrib', 'int(ptr,int)')
|
|
glfw.set_window_attrib = _lib:func('glfwSetWindowAttrib', 'void(ptr,int,int)')
|
|
glfw.set_window_user_pointer = _lib:func('glfwSetWindowUserPointer', 'void(ptr,ptr)')
|
|
glfw.get_window_user_pointer = _lib:func('glfwGetWindowUserPointer', 'ptr(ptr)')
|
|
glfw.set_window_pos_callback = _lib:func('glfwSetWindowPosCallback', 'int(ptr,int)')
|
|
glfw.set_window_size_callback = _lib:func('glfwSetWindowSizeCallback', 'int(ptr,int)')
|
|
glfw.set_window_close_callback = _lib:func('glfwSetWindowCloseCallback', 'int(ptr,int)')
|
|
glfw.set_window_refresh_callback = _lib:func('glfwSetWindowRefreshCallback', 'int(ptr,int)')
|
|
glfw.set_window_focus_callback = _lib:func('glfwSetWindowFocusCallback', 'int(ptr,int)')
|
|
glfw.set_window_iconify_callback = _lib:func('glfwSetWindowIconifyCallback', 'int(ptr,int)')
|
|
glfw.set_window_maximize_callback = _lib:func('glfwSetWindowMaximizeCallback', 'int(ptr,int)')
|
|
glfw.set_framebuffer_size_callback = _lib:func('glfwSetFramebufferSizeCallback', 'int(ptr,int)')
|
|
glfw.set_window_content_scale_callback = _lib:func('glfwSetWindowContentScaleCallback', 'int(ptr,int)')
|
|
glfw.poll_events = _lib:func('glfwPollEvents', 'void()')
|
|
glfw.wait_events = _lib:func('glfwWaitEvents', 'void()')
|
|
glfw.wait_events_timeout = _lib:func('glfwWaitEventsTimeout', 'void(double)')
|
|
glfw.post_empty_event = _lib:func('glfwPostEmptyEvent', 'void()')
|
|
glfw.get_input_mode = _lib:func('glfwGetInputMode', 'int(ptr,int)')
|
|
glfw.set_input_mode = _lib:func('glfwSetInputMode', 'void(ptr,int,int)')
|
|
glfw.raw_mouse_motion_supported = _lib:func('glfwRawMouseMotionSupported', 'int()')
|
|
glfw.get_key_name = _lib:func('glfwGetKeyName', 'string(int,int)')
|
|
glfw.get_key_scancode = _lib:func('glfwGetKeyScancode', 'int(int)')
|
|
glfw.get_key = _lib:func('glfwGetKey', 'int(ptr,int)')
|
|
glfw.get_mouse_button = _lib:func('glfwGetMouseButton', 'int(ptr,int)')
|
|
glfw.get_cursor_pos = _lib:func('glfwGetCursorPos', 'void(ptr,ptr,ptr)')
|
|
glfw.set_cursor_pos = _lib:func('glfwSetCursorPos', 'void(ptr,double,double)')
|
|
glfw.create_cursor = _lib:func('glfwCreateCursor', 'ptr(ptr,int,int)')
|
|
glfw.create_standard_cursor = _lib:func('glfwCreateStandardCursor', 'ptr(int)')
|
|
glfw.destroy_cursor = _lib:func('glfwDestroyCursor', 'void(ptr)')
|
|
glfw.set_cursor = _lib:func('glfwSetCursor', 'void(ptr,ptr)')
|
|
glfw.set_key_callback = _lib:func('glfwSetKeyCallback', 'int(ptr,int)')
|
|
glfw.set_char_callback = _lib:func('glfwSetCharCallback', 'int(ptr,int)')
|
|
glfw.set_char_mods_callback = _lib:func('glfwSetCharModsCallback', 'int(ptr,int)')
|
|
glfw.set_mouse_button_callback = _lib:func('glfwSetMouseButtonCallback', 'int(ptr,int)')
|
|
glfw.set_cursor_pos_callback = _lib:func('glfwSetCursorPosCallback', 'int(ptr,int)')
|
|
glfw.set_cursor_enter_callback = _lib:func('glfwSetCursorEnterCallback', 'int(ptr,int)')
|
|
glfw.set_scroll_callback = _lib:func('glfwSetScrollCallback', 'int(ptr,int)')
|
|
glfw.set_drop_callback = _lib:func('glfwSetDropCallback', 'int(ptr,int)')
|
|
glfw.joystick_present = _lib:func('glfwJoystickPresent', 'int(int)')
|
|
glfw.get_joystick_axes = _lib:func('glfwGetJoystickAxes', 'ptr(int,ptr)')
|
|
glfw.get_joystick_buttons = _lib:func('glfwGetJoystickButtons', 'ptr(int,ptr)')
|
|
glfw.get_joystick_hats = _lib:func('glfwGetJoystickHats', 'ptr(int,ptr)')
|
|
glfw.get_joystick_name = _lib:func('glfwGetJoystickName', 'string(int)')
|
|
glfw.get_joystick_guid = _lib:func('glfwGetJoystickGUID', 'string(int)')
|
|
glfw.set_joystick_user_pointer = _lib:func('glfwSetJoystickUserPointer', 'void(int,ptr)')
|
|
glfw.get_joystick_user_pointer = _lib:func('glfwGetJoystickUserPointer', 'ptr(int)')
|
|
glfw.joystick_is_gamepad = _lib:func('glfwJoystickIsGamepad', 'int(int)')
|
|
glfw.set_joystick_callback = _lib:func('glfwSetJoystickCallback', 'int(int)')
|
|
glfw.update_gamepad_mappings = _lib:func('glfwUpdateGamepadMappings', 'int(string)')
|
|
glfw.get_gamepad_name = _lib:func('glfwGetGamepadName', 'string(int)')
|
|
glfw.get_gamepad_state = _lib:func('glfwGetGamepadState', 'int(int,ptr)')
|
|
glfw.set_clipboard_string = _lib:func('glfwSetClipboardString', 'void(ptr,string)')
|
|
glfw.get_clipboard_string = _lib:func('glfwGetClipboardString', 'string(ptr)')
|
|
glfw.get_time = _lib:func('glfwGetTime', 'double()')
|
|
glfw.set_time = _lib:func('glfwSetTime', 'void(double)')
|
|
glfw.get_timer_value = _lib:func('glfwGetTimerValue', 'uint64()')
|
|
glfw.get_timer_frequency = _lib:func('glfwGetTimerFrequency', 'uint64()')
|
|
glfw.make_context_current = _lib:func('glfwMakeContextCurrent', 'void(ptr)')
|
|
glfw.get_current_context = _lib:func('glfwGetCurrentContext', 'ptr()')
|
|
glfw.swap_buffers = _lib:func('glfwSwapBuffers', 'void(ptr)')
|
|
glfw.swap_interval = _lib:func('glfwSwapInterval', 'void(int)')
|
|
glfw.extension_supported = _lib:func('glfwExtensionSupported', 'int(string)')
|
|
glfw.get_proc_address = _lib:func('glfwGetProcAddress', 'int(string)')
|
|
glfw.vulkan_supported = _lib:func('glfwVulkanSupported', 'int()')
|
|
glfw.get_required_instance_extensions = _lib:func('glfwGetRequiredInstanceExtensions', 'ptr(ptr)')
|
|
glfw.get_instance_proc_address = _lib:func('glfwGetInstanceProcAddress', 'int(int,string)')
|
|
glfw.get_physical_device_presentation_support = _lib:func('glfwGetPhysicalDevicePresentationSupport', 'int(int,int,int)')
|
|
glfw.create_window_surface = _lib:func('glfwCreateWindowSurface', 'int(int,ptr,ptr,ptr)')
|
|
|
|
-- constants
|
|
glfw.version_major = 3
|
|
glfw.version_minor = 4
|
|
glfw.version_revision = 0
|
|
glfw.true = 1
|
|
glfw.false = 0
|
|
glfw.release = 0
|
|
glfw.press = 1
|
|
glfw.repeat = 2
|
|
glfw.hat_centered = 0
|
|
glfw.hat_up = 1
|
|
glfw.hat_right = 2
|
|
glfw.hat_down = 4
|
|
glfw.hat_left = 8
|
|
glfw.key_unknown = -1
|
|
glfw.key_space = 32
|
|
glfw.key_0 = 48
|
|
glfw.key_1 = 49
|
|
glfw.key_2 = 50
|
|
glfw.key_3 = 51
|
|
glfw.key_4 = 52
|
|
glfw.key_5 = 53
|
|
glfw.key_6 = 54
|
|
glfw.key_7 = 55
|
|
glfw.key_8 = 56
|
|
glfw.key_9 = 57
|
|
glfw.key_a = 65
|
|
glfw.key_b = 66
|
|
glfw.key_c = 67
|
|
glfw.key_d = 68
|
|
glfw.key_e = 69
|
|
glfw.key_f = 70
|
|
glfw.key_g = 71
|
|
glfw.key_h = 72
|
|
glfw.key_i = 73
|
|
glfw.key_j = 74
|
|
glfw.key_k = 75
|
|
glfw.key_l = 76
|
|
glfw.key_m = 77
|
|
glfw.key_n = 78
|
|
glfw.key_o = 79
|
|
glfw.key_p = 80
|
|
glfw.key_q = 81
|
|
glfw.key_r = 82
|
|
glfw.key_s = 83
|
|
glfw.key_t = 84
|
|
glfw.key_u = 85
|
|
glfw.key_v = 86
|
|
glfw.key_w = 87
|
|
glfw.key_x = 88
|
|
glfw.key_y = 89
|
|
glfw.key_z = 90
|
|
glfw.key_escape = 256
|
|
glfw.key_enter = 257
|
|
glfw.key_tab = 258
|
|
glfw.key_backspace = 259
|
|
glfw.key_insert = 260
|
|
glfw.key_delete = 261
|
|
glfw.key_right = 262
|
|
glfw.key_left = 263
|
|
glfw.key_down = 264
|
|
glfw.key_up = 265
|
|
glfw.key_page_up = 266
|
|
glfw.key_page_down = 267
|
|
glfw.key_home = 268
|
|
glfw.key_end = 269
|
|
glfw.key_caps_lock = 280
|
|
glfw.key_scroll_lock = 281
|
|
glfw.key_num_lock = 282
|
|
glfw.key_print_screen = 283
|
|
glfw.key_pause = 284
|
|
glfw.key_f1 = 290
|
|
glfw.key_f2 = 291
|
|
glfw.key_f3 = 292
|
|
glfw.key_f4 = 293
|
|
glfw.key_f5 = 294
|
|
glfw.key_f6 = 295
|
|
glfw.key_f7 = 296
|
|
glfw.key_f8 = 297
|
|
glfw.key_f9 = 298
|
|
glfw.key_f10 = 299
|
|
glfw.key_f11 = 300
|
|
glfw.key_f12 = 301
|
|
glfw.key_f13 = 302
|
|
glfw.key_f14 = 303
|
|
glfw.key_f15 = 304
|
|
glfw.key_f16 = 305
|
|
glfw.key_f17 = 306
|
|
glfw.key_f18 = 307
|
|
glfw.key_f19 = 308
|
|
glfw.key_f20 = 309
|
|
glfw.key_f21 = 310
|
|
glfw.key_f22 = 311
|
|
glfw.key_f23 = 312
|
|
glfw.key_f24 = 313
|
|
glfw.key_f25 = 314
|
|
glfw.key_kp_0 = 320
|
|
glfw.key_kp_1 = 321
|
|
glfw.key_kp_2 = 322
|
|
glfw.key_kp_3 = 323
|
|
glfw.key_kp_4 = 324
|
|
glfw.key_kp_5 = 325
|
|
glfw.key_kp_6 = 326
|
|
glfw.key_kp_7 = 327
|
|
glfw.key_kp_8 = 328
|
|
glfw.key_kp_9 = 329
|
|
glfw.key_kp_decimal = 330
|
|
glfw.key_kp_divide = 331
|
|
glfw.key_kp_multiply = 332
|
|
glfw.key_kp_subtract = 333
|
|
glfw.key_kp_add = 334
|
|
glfw.key_kp_enter = 335
|
|
glfw.key_kp_equal = 336
|
|
glfw.key_left_shift = 340
|
|
glfw.key_left_control = 341
|
|
glfw.key_left_alt = 342
|
|
glfw.key_left_super = 343
|
|
glfw.key_right_shift = 344
|
|
glfw.key_right_control = 345
|
|
glfw.key_right_alt = 346
|
|
glfw.key_right_super = 347
|
|
glfw.key_menu = 348
|
|
glfw.mod_shift = 0x0001
|
|
glfw.mod_control = 0x0002
|
|
glfw.mod_alt = 0x0004
|
|
glfw.mod_super = 0x0008
|
|
glfw.mod_caps_lock = 0x0010
|
|
glfw.mod_num_lock = 0x0020
|
|
glfw.mouse_button_1 = 0
|
|
glfw.mouse_button_2 = 1
|
|
glfw.mouse_button_3 = 2
|
|
glfw.mouse_button_4 = 3
|
|
glfw.mouse_button_5 = 4
|
|
glfw.mouse_button_6 = 5
|
|
glfw.mouse_button_7 = 6
|
|
glfw.mouse_button_8 = 7
|
|
glfw.joystick_1 = 0
|
|
glfw.joystick_2 = 1
|
|
glfw.joystick_3 = 2
|
|
glfw.joystick_4 = 3
|
|
glfw.joystick_5 = 4
|
|
glfw.joystick_6 = 5
|
|
glfw.joystick_7 = 6
|
|
glfw.joystick_8 = 7
|
|
glfw.joystick_9 = 8
|
|
glfw.joystick_10 = 9
|
|
glfw.joystick_11 = 10
|
|
glfw.joystick_12 = 11
|
|
glfw.joystick_13 = 12
|
|
glfw.joystick_14 = 13
|
|
glfw.joystick_15 = 14
|
|
glfw.joystick_16 = 15
|
|
glfw.gamepad_button_a = 0
|
|
glfw.gamepad_button_b = 1
|
|
glfw.gamepad_button_x = 2
|
|
glfw.gamepad_button_y = 3
|
|
glfw.gamepad_button_left_bumper = 4
|
|
glfw.gamepad_button_right_bumper = 5
|
|
glfw.gamepad_button_back = 6
|
|
glfw.gamepad_button_start = 7
|
|
glfw.gamepad_button_guide = 8
|
|
glfw.gamepad_button_left_thumb = 9
|
|
glfw.gamepad_button_right_thumb = 10
|
|
glfw.gamepad_button_dpad_up = 11
|
|
glfw.gamepad_button_dpad_right = 12
|
|
glfw.gamepad_button_dpad_down = 13
|
|
glfw.gamepad_button_dpad_left = 14
|
|
glfw.gamepad_axis_left_x = 0
|
|
glfw.gamepad_axis_left_y = 1
|
|
glfw.gamepad_axis_right_x = 2
|
|
glfw.gamepad_axis_right_y = 3
|
|
glfw.gamepad_axis_left_trigger = 4
|
|
glfw.gamepad_axis_right_trigger = 5
|
|
glfw.no_error = 0
|
|
glfw.not_initialized = 0x00010001
|
|
glfw.no_current_context = 0x00010002
|
|
glfw.invalid_enum = 0x00010003
|
|
glfw.invalid_value = 0x00010004
|
|
glfw.out_of_memory = 0x00010005
|
|
glfw.api_unavailable = 0x00010006
|
|
glfw.version_unavailable = 0x00010007
|
|
glfw.platform_error = 0x00010008
|
|
glfw.format_unavailable = 0x00010009
|
|
glfw.no_window_context = 0x0001000A
|
|
glfw.cursor_unavailable = 0x0001000B
|
|
glfw.feature_unavailable = 0x0001000C
|
|
glfw.feature_unimplemented = 0x0001000D
|
|
glfw.platform_unavailable = 0x0001000E
|
|
glfw.focused = 0x00020001
|
|
glfw.iconified = 0x00020002
|
|
glfw.resizable = 0x00020003
|
|
glfw.visible = 0x00020004
|
|
glfw.decorated = 0x00020005
|
|
glfw.auto_iconify = 0x00020006
|
|
glfw.floating = 0x00020007
|
|
glfw.maximized = 0x00020008
|
|
glfw.center_cursor = 0x00020009
|
|
glfw.transparent_framebuffer = 0x0002000A
|
|
glfw.hovered = 0x0002000B
|
|
glfw.focus_on_show = 0x0002000C
|
|
glfw.mouse_passthrough = 0x0002000D
|
|
glfw.position_x = 0x0002000E
|
|
glfw.position_y = 0x0002000F
|
|
glfw.red_bits = 0x00021001
|
|
glfw.green_bits = 0x00021002
|
|
glfw.blue_bits = 0x00021003
|
|
glfw.alpha_bits = 0x00021004
|
|
glfw.depth_bits = 0x00021005
|
|
glfw.stencil_bits = 0x00021006
|
|
glfw.accum_red_bits = 0x00021007
|
|
glfw.accum_green_bits = 0x00021008
|
|
glfw.accum_blue_bits = 0x00021009
|
|
glfw.accum_alpha_bits = 0x0002100A
|
|
glfw.aux_buffers = 0x0002100B
|
|
glfw.stereo = 0x0002100C
|
|
glfw.samples = 0x0002100D
|
|
glfw.srgb_capable = 0x0002100E
|
|
glfw.refresh_rate = 0x0002100F
|
|
glfw.doublebuffer = 0x00021010
|
|
glfw.client_api = 0x00022001
|
|
glfw.context_version_major = 0x00022002
|
|
glfw.context_version_minor = 0x00022003
|
|
glfw.context_revision = 0x00022004
|
|
glfw.context_robustness = 0x00022005
|
|
glfw.opengl_forward_compat = 0x00022006
|
|
glfw.context_debug = 0x00022007
|
|
glfw.opengl_profile = 0x00022008
|
|
glfw.context_release_behavior = 0x00022009
|
|
glfw.context_no_error = 0x0002200A
|
|
glfw.context_creation_api = 0x0002200B
|
|
glfw.scale_to_monitor = 0x0002200C
|
|
glfw.scale_framebuffer = 0x0002200D
|
|
glfw.cocoa_retina_framebuffer = 0x00023001
|
|
glfw.cocoa_frame_name = 0x00023002
|
|
glfw.cocoa_graphics_switching = 0x00023003
|
|
glfw.x11_class_name = 0x00024001
|
|
glfw.x11_instance_name = 0x00024002
|
|
glfw.win32_keyboard_menu = 0x00025001
|
|
glfw.win32_showdefault = 0x00025002
|
|
glfw.wayland_app_id = 0x00026001
|
|
glfw.no_api = 0
|
|
glfw.opengl_api = 0x00030001
|
|
glfw.opengl_es_api = 0x00030002
|
|
glfw.no_robustness = 0
|
|
glfw.no_reset_notification = 0x00031001
|
|
glfw.lose_context_on_reset = 0x00031002
|
|
glfw.opengl_any_profile = 0
|
|
glfw.opengl_core_profile = 0x00032001
|
|
glfw.opengl_compat_profile = 0x00032002
|
|
glfw.cursor = 0x00033001
|
|
glfw.sticky_keys = 0x00033002
|
|
glfw.sticky_mouse_buttons = 0x00033003
|
|
glfw.lock_key_mods = 0x00033004
|
|
glfw.raw_mouse_motion = 0x00033005
|
|
glfw.cursor_normal = 0x00034001
|
|
glfw.cursor_hidden = 0x00034002
|
|
glfw.cursor_disabled = 0x00034003
|
|
glfw.cursor_captured = 0x00034004
|
|
glfw.any_release_behavior = 0
|
|
glfw.release_behavior_flush = 0x00035001
|
|
glfw.release_behavior_none = 0x00035002
|
|
glfw.native_context_api = 0x00036001
|
|
glfw.egl_context_api = 0x00036002
|
|
glfw.osmesa_context_api = 0x00036003
|
|
glfw.angle_platform_type_none = 0x00037001
|
|
glfw.angle_platform_type_opengl = 0x00037002
|
|
glfw.angle_platform_type_opengles = 0x00037003
|
|
glfw.angle_platform_type_d3d9 = 0x00037004
|
|
glfw.angle_platform_type_d3d11 = 0x00037005
|
|
glfw.angle_platform_type_vulkan = 0x00037007
|
|
glfw.angle_platform_type_metal = 0x00037008
|
|
glfw.wayland_prefer_libdecor = 0x00038001
|
|
glfw.wayland_disable_libdecor = 0x00038002
|
|
glfw.any_position = 0x80000000
|
|
glfw.arrow_cursor = 0x00036001
|
|
glfw.ibeam_cursor = 0x00036002
|
|
glfw.crosshair_cursor = 0x00036003
|
|
glfw.pointing_hand_cursor = 0x00036004
|
|
glfw.resize_ew_cursor = 0x00036005
|
|
glfw.resize_ns_cursor = 0x00036006
|
|
glfw.resize_nwse_cursor = 0x00036007
|
|
glfw.resize_nesw_cursor = 0x00036008
|
|
glfw.resize_all_cursor = 0x00036009
|
|
glfw.not_allowed_cursor = 0x0003600A
|
|
glfw.connected = 0x00040001
|
|
glfw.disconnected = 0x00040002
|
|
glfw.joystick_hat_buttons = 0x00050001
|
|
glfw.angle_platform_type = 0x00050002
|
|
glfw.platform = 0x00050003
|
|
glfw.cocoa_chdir_resources = 0x00051001
|
|
glfw.cocoa_menubar = 0x00051002
|
|
glfw.x11_xcb_vulkan_surface = 0x00052001
|
|
glfw.wayland_libdecor = 0x00053001
|
|
glfw.any_platform = 0x00060000
|
|
glfw.platform_win32 = 0x00060001
|
|
glfw.platform_cocoa = 0x00060002
|
|
glfw.platform_wayland = 0x00060003
|
|
glfw.platform_x11 = 0x00060004
|
|
glfw.platform_null = 0x00060005
|
|
glfw.dont_care = -1
|
|
|