Home
last modified time | relevance | path

Searched refs:_glfw (Results 1 - 25 of 32) sorted by relevance

12

/third_party/glfw/src/
H A Dx11_init.c217 memset(_glfw.x11.keycodes, -1, sizeof(_glfw.x11.keycodes)); in createKeyTables()
218 memset(_glfw.x11.scancodes, -1, sizeof(_glfw.x11.scancodes)); in createKeyTables()
220 if (_glfw.x11.xkb.available) in createKeyTables()
225 XkbDescPtr desc = XkbGetMap(_glfw.x11.display, 0, XkbUseCoreKbd); in createKeyTables()
226 XkbGetNames(_glfw.x11.display, XkbKeyNamesMask | XkbKeyAliasesMask, desc); in createKeyTables()
405 _glfw.x11.keycodes[scancode] = key; in createKeyTables()
412 XDisplayKeycodes(_glfw.x11.display, &scancodeMin, &scancodeMax); in createKeyTables()
415 KeySym* keysyms = XGetKeyboardMapping(_glfw in createKeyTables()
[all...]
H A Dwl_init.c114 _glfw.wl.compositor = in registryHandleGlobal()
120 _glfw.wl.subcompositor = in registryHandleGlobal()
125 _glfw.wl.shm = in registryHandleGlobal()
134 if (!_glfw.wl.seat) in registryHandleGlobal()
136 _glfw.wl.seat = in registryHandleGlobal()
139 _glfwAddSeatListenerWayland(_glfw.wl.seat); in registryHandleGlobal()
141 if (wl_seat_get_version(_glfw.wl.seat) >= in registryHandleGlobal()
144 _glfw.wl.keyRepeatTimerfd = in registryHandleGlobal()
151 if (!_glfw.wl.dataDeviceManager) in registryHandleGlobal()
153 _glfw in registryHandleGlobal()
[all...]
H A Dwin32_init.c76 (const WCHAR*) &_glfw, in loadLibraries()
77 (HMODULE*) &_glfw.win32.instance)) in loadLibraries()
84 _glfw.win32.user32.instance = _glfwPlatformLoadModule("user32.dll"); in loadLibraries()
85 if (!_glfw.win32.user32.instance) in loadLibraries()
92 _glfw.win32.user32.SetProcessDPIAware_ = (PFN_SetProcessDPIAware) in loadLibraries()
93 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "SetProcessDPIAware"); in loadLibraries()
94 _glfw.win32.user32.ChangeWindowMessageFilterEx_ = (PFN_ChangeWindowMessageFilterEx) in loadLibraries()
95 _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "ChangeWindowMessageFilterEx"); in loadLibraries()
96 _glfw.win32.user32.EnableNonClientDpiScaling_ = (PFN_EnableNonClientDpiScaling) in loadLibraries()
97 _glfwPlatformGetModuleSymbol(_glfw in loadLibraries()
[all...]
H A Dnull_init.c124 memset(_glfw.null.keycodes, -1, sizeof(_glfw.null.keycodes)); in _glfwInitNull()
125 memset(_glfw.null.scancodes, -1, sizeof(_glfw.null.scancodes)); in _glfwInitNull()
127 _glfw.null.keycodes[GLFW_NULL_SC_SPACE] = GLFW_KEY_SPACE; in _glfwInitNull()
128 _glfw.null.keycodes[GLFW_NULL_SC_APOSTROPHE] = GLFW_KEY_APOSTROPHE; in _glfwInitNull()
129 _glfw.null.keycodes[GLFW_NULL_SC_COMMA] = GLFW_KEY_COMMA; in _glfwInitNull()
130 _glfw.null.keycodes[GLFW_NULL_SC_MINUS] = GLFW_KEY_MINUS; in _glfwInitNull()
131 _glfw.null.keycodes[GLFW_NULL_SC_PERIOD] = GLFW_KEY_PERIOD; in _glfwInitNull()
132 _glfw in _glfwInitNull()
[all...]
H A Dglx_context.c46 glXGetFBConfigAttrib(_glfw.x11.display, fbconfig, attrib, &value); in getGLXFBConfigAttrib()
64 vendor = glXGetClientString(_glfw.x11.display, GLX_VENDOR); in chooseGLXFBConfig()
69 glXGetFBConfigs(_glfw.x11.display, _glfw.x11.screen, &nativeCount); in chooseGLXFBConfig()
100 XVisualInfo* vi = glXGetVisualFromFBConfig(_glfw.x11.display, n); in chooseGLXFBConfig()
126 if (_glfw.glx.ARB_multisample) in chooseGLXFBConfig()
129 if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB) in chooseGLXFBConfig()
152 return glXCreateNewContext(_glfw.x11.display, in createLegacyContextGLX()
163 if (!glXMakeCurrent(_glfw in makeContextCurrentGLX()
[all...]
H A Dx11_window.c65 struct pollfd fd = { ConnectionNumber(_glfw.x11.display), POLLIN }; in waitForX11Event()
67 while (!XPending(_glfw.x11.display)) in waitForX11Event()
85 [XLIB_FD] = { ConnectionNumber(_glfw.x11.display), POLLIN }, in waitForAnyEvent()
86 [PIPE_FD] = { _glfw.x11.emptyEventPipe[0], POLLIN }, in waitForAnyEvent()
91 if (_glfw.joysticksInitialized) in waitForAnyEvent()
92 fds[INOTIFY_FD].fd = _glfw.linjs.inotify; in waitForAnyEvent()
95 while (!XPending(_glfw.x11.display)) in waitForAnyEvent()
117 const ssize_t result = write(_glfw.x11.emptyEventPipe[1], &byte, 1); in writeEmptyEvent()
130 const ssize_t result = read(_glfw.x11.emptyEventPipe[0], dummy, sizeof(dummy)); in drainEmptyEvents()
144 while (!XCheckTypedWindowEvent(_glfw in waitForVisibilityNotify()
[all...]
H A Degl_context.c82 eglGetConfigAttrib(_glfw.egl.display, config, attrib, &value); in getEGLConfigAttrib()
108 if (_glfw.egl.platform == EGL_PLATFORM_SURFACELESS_MESA) in chooseEGLConfig()
119 eglGetConfigs(_glfw.egl.display, NULL, 0, &nativeCount); in chooseEGLConfig()
127 eglGetConfigs(_glfw.egl.display, nativeConfigs, nativeCount, &nativeCount); in chooseEGLConfig()
145 if (_glfw.platform.platformID == GLFW_PLATFORM_X11) in chooseEGLConfig()
158 XGetVisualInfo(_glfw.x11.display, VisualIDMask, &vi, &count); in chooseEGLConfig()
183 if (_glfw.platform.platformID == GLFW_PLATFORM_WAYLAND) in chooseEGLConfig()
189 if (!_glfw.egl.EXT_present_opaque) in chooseEGLConfig()
247 if (!eglMakeCurrent(_glfw.egl.display, in makeContextCurrentEGL()
260 if (!eglMakeCurrent(_glfw in makeContextCurrentEGL()
[all...]
H A Dx11_monitor.c89 _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), in vidmodeFromModeInfo()
104 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) in _glfwPollMonitorsX11()
109 XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, in _glfwPollMonitorsX11()
110 _glfw.x11.root); in _glfwPollMonitorsX11()
111 RROutput primary = XRRGetOutputPrimary(_glfw.x11.display, in _glfwPollMonitorsX11()
112 _glfw.x11.root); in _glfwPollMonitorsX11()
114 if (_glfw.x11.xinerama.available) in _glfwPollMonitorsX11()
115 screens = XineramaQueryScreens(_glfw in _glfwPollMonitorsX11()
[all...]
H A Dx11_platform.h202 #define XAllocClassHint _glfw.x11.xlib.AllocClassHint
203 #define XAllocSizeHints _glfw.x11.xlib.AllocSizeHints
204 #define XAllocWMHints _glfw.x11.xlib.AllocWMHints
205 #define XChangeProperty _glfw.x11.xlib.ChangeProperty
206 #define XChangeWindowAttributes _glfw.x11.xlib.ChangeWindowAttributes
207 #define XCheckIfEvent _glfw.x11.xlib.CheckIfEvent
208 #define XCheckTypedWindowEvent _glfw.x11.xlib.CheckTypedWindowEvent
209 #define XCloseDisplay _glfw.x11.xlib.CloseDisplay
210 #define XCloseIM _glfw.x11.xlib.CloseIM
211 #define XConvertSelection _glfw
[all...]
H A Dvulkan.c49 if (_glfw.vk.available) in _glfwInitVulkan()
52 if (_glfw.hints.init.vulkanLoader) in _glfwInitVulkan()
53 _glfw.vk.GetInstanceProcAddr = _glfw.hints.init.vulkanLoader; in _glfwInitVulkan()
57 _glfw.vk.handle = _glfwPlatformLoadModule(_GLFW_VULKAN_LIBRARY); in _glfwInitVulkan()
59 _glfw.vk.handle = _glfwPlatformLoadModule("vulkan-1.dll"); in _glfwInitVulkan()
61 _glfw.vk.handle = _glfwPlatformLoadModule("libvulkan.1.dylib"); in _glfwInitVulkan()
62 if (!_glfw.vk.handle) in _glfwInitVulkan()
63 _glfw.vk.handle = _glfwLoadLocalVulkanLoaderCocoa(); in _glfwInitVulkan()
65 _glfw in _glfwInitVulkan()
[all...]
H A Dinit.c42 _GLFWlibrary _glfw = { GLFW_FALSE }; variable
44 // These are outside of _glfw so they can be used before initialization and
45 // after termination without special handling when _glfw is cleared to zero
98 memset(&_glfw.callbacks, 0, sizeof(_glfw.callbacks)); in terminate()
100 while (_glfw.windowListHead) in terminate()
101 glfwDestroyWindow((GLFWwindow*) _glfw.windowListHead); in terminate()
103 while (_glfw.cursorListHead) in terminate()
104 glfwDestroyCursor((GLFWcursor*) _glfw.cursorListHead); in terminate()
106 for (i = 0; i < _glfw in terminate()
[all...]
H A Dwindow.c59 const int scancode = _glfw.platform.getKeyScancode(key); in _glfwInputWindowFocus()
205 fbconfig = _glfw.hints.framebuffer; in glfwCreateWindow()
206 ctxconfig = _glfw.hints.context; in glfwCreateWindow()
207 wndconfig = _glfw.hints.window; in glfwCreateWindow()
218 window->next = _glfw.windowListHead; in glfwCreateWindow()
219 _glfw.windowListHead = window; in glfwCreateWindow()
226 window->videoMode.refreshRate = _glfw.hints.refreshRate; in glfwCreateWindow()
247 if (!_glfw.platform.createWindow(window, &wndconfig, &ctxconfig, &fbconfig)) in glfwCreateWindow()
261 memset(&_glfw.hints.context, 0, sizeof(_glfw in glfwDefaultWindowHints()
[all...]
H A Dwgl_context.c80 if (_glfw.wgl.ARB_pixel_format) in choosePixelFormatWGL()
105 if (_glfw.wgl.ARB_multisample) in choosePixelFormatWGL()
110 if (_glfw.wgl.ARB_framebuffer_sRGB || _glfw.wgl.EXT_framebuffer_sRGB) in choosePixelFormatWGL()
115 if (_glfw.wgl.EXT_colorspace) in choosePixelFormatWGL()
144 if (_glfw.wgl.ARB_pixel_format) in choosePixelFormatWGL()
193 if (_glfw.wgl.ARB_multisample) in choosePixelFormatWGL()
198 if (_glfw.wgl.ARB_framebuffer_sRGB || in choosePixelFormatWGL()
199 _glfw.wgl.EXT_framebuffer_sRGB) in choosePixelFormatWGL()
207 if (_glfw in choosePixelFormatWGL()
[all...]
H A Dwl_window.c169 struct wl_shm_pool* pool = wl_shm_create_pool(_glfw.wl.shm, fd, length); in createShmBuffer()
203 edge->surface = wl_compositor_create_surface(_glfw.wl.compositor); in createFallbackEdge()
205 wl_proxy_set_tag((struct wl_proxy*) edge->surface, &_glfw.wl.tag); in createFallbackEdge()
206 edge->subsurface = wl_subcompositor_get_subsurface(_glfw.wl.subcompositor, in createFallbackEdge()
209 edge->viewport = wp_viewporter_get_viewport(_glfw.wl.viewporter, in createFallbackEdge()
214 struct wl_region* region = wl_compositor_create_region(_glfw.wl.compositor); in createFallbackEdge()
226 if (!_glfw.wl.viewporter) in createFallbackDecorations()
305 region = wl_compositor_create_region(_glfw.wl.compositor); in setContentAreaOpaque()
393 if (wl_compositor_get_version(_glfw.wl.compositor) < in _glfwUpdateBufferScaleFromOutputsWayland()
429 if (wl_proxy_get_tag((struct wl_proxy*) output) != &_glfw in surfaceHandleEnter()
[all...]
H A Dwl_platform.h68 #define wl_display_flush _glfw.wl.client.display_flush
69 #define wl_display_cancel_read _glfw.wl.client.display_cancel_read
70 #define wl_display_dispatch_pending _glfw.wl.client.display_dispatch_pending
71 #define wl_display_read_events _glfw.wl.client.display_read_events
72 #define wl_display_disconnect _glfw.wl.client.display_disconnect
73 #define wl_display_roundtrip _glfw.wl.client.display_roundtrip
74 #define wl_display_get_fd _glfw.wl.client.display_get_fd
75 #define wl_display_prepare_read _glfw.wl.client.display_prepare_read
76 #define wl_proxy_marshal _glfw.wl.client.proxy_marshal
77 #define wl_proxy_add_listener _glfw
[all...]
H A Dosmesa_context.c39 _glfw.platform.getFramebufferSize(window, &width, &height); in makeContextCurrentOSMesa()
65 _glfwPlatformSetTls(&_glfw.contextSlot, window); in makeContextCurrentOSMesa()
133 if (_glfw.osmesa.handle) in _glfwInitOSMesa()
138 _glfw.osmesa.handle = _glfwPlatformLoadModule(sonames[i]); in _glfwInitOSMesa()
139 if (_glfw.osmesa.handle) in _glfwInitOSMesa()
143 if (!_glfw.osmesa.handle) in _glfwInitOSMesa()
149 _glfw.osmesa.CreateContextExt = (PFN_OSMesaCreateContextExt) in _glfwInitOSMesa()
150 _glfwPlatformGetModuleSymbol(_glfw.osmesa.handle, "OSMesaCreateContextExt"); in _glfwInitOSMesa()
151 _glfw.osmesa.CreateContextAttribs = (PFN_OSMesaCreateContextAttribs) in _glfwInitOSMesa()
152 _glfwPlatformGetModuleSymbol(_glfw in _glfwInitOSMesa()
[all...]
H A Dlinux_joystick.c131 if (!_glfw.joysticks[jid].connected) in openJoystickDevice()
133 if (strcmp(_glfw.joysticks[jid].linjs.path, path) == 0) in openJoystickDevice()
269 if (_glfw.linjs.inotify <= 0) in _glfwDetectJoystickConnectionLinux()
274 const ssize_t size = read(_glfw.linjs.inotify, buffer, sizeof(buffer)); in _glfwDetectJoystickConnectionLinux()
283 if (regexec(&_glfw.linjs.regex, e->name, 1, &match, 0) != 0) in _glfwDetectJoystickConnectionLinux()
295 if (strcmp(_glfw.joysticks[jid].linjs.path, path) == 0) in _glfwDetectJoystickConnectionLinux()
297 closeJoystick(_glfw.joysticks + jid); in _glfwDetectJoystickConnectionLinux()
314 _glfw.linjs.inotify = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); in _glfwInitJoysticksLinux()
315 if (_glfw.linjs.inotify > 0) in _glfwInitJoysticksLinux()
320 _glfw in _glfwInitJoysticksLinux()
[all...]
H A Dmonitor.c75 modes = _glfw.platform.getVideoModes(monitor, &modeCount); in refreshVideoModes()
103 _glfw.monitorCount++; in _glfwInputMonitor()
104 _glfw.monitors = in _glfwInputMonitor()
105 _glfw_realloc(_glfw.monitors, in _glfwInputMonitor()
106 sizeof(_GLFWmonitor*) * _glfw.monitorCount); in _glfwInputMonitor()
110 memmove(_glfw.monitors + 1, in _glfwInputMonitor()
111 _glfw.monitors, in _glfwInputMonitor()
112 ((size_t) _glfw.monitorCount - 1) * sizeof(_GLFWmonitor*)); in _glfwInputMonitor()
113 _glfw.monitors[0] = monitor; in _glfwInputMonitor()
116 _glfw in _glfwInputMonitor()
[all...]
H A Dinput.c56 if (!_glfw.joysticksInitialized) in initJoysticks()
58 if (!_glfw.platform.initJoysticks()) in initJoysticks()
60 _glfw.platform.terminateJoysticks(); in initJoysticks()
65 return _glfw.joysticksInitialized = GLFW_TRUE; in initJoysticks()
74 for (i = 0; i < _glfw.mappingCount; i++) in findMapping()
76 if (strcmp(_glfw.mappings[i].guid, guid) == 0) in findMapping()
77 return _glfw.mappings + i; in findMapping()
242 const char* name = _glfw.platform.getMappingName(); in parseMapping()
261 _glfw.platform.updateGamepadGUID(mapping->guid); in parseMapping()
428 if (_glfw in _glfwInputJoystick()
[all...]
H A Dnull_window.c174 if (_glfw.null.focusedWindow == window) in _glfwDestroyWindowNull()
175 _glfw.null.focusedWindow = NULL; in _glfwDestroyWindowNull()
332 if (_glfw.null.focusedWindow == window) in _glfwIconifyWindowNull()
334 _glfw.null.focusedWindow = NULL; in _glfwIconifyWindowNull()
381 return _glfw.null.xcursor >= window->null.xpos && in _glfwWindowHoveredNull()
382 _glfw.null.ycursor >= window->null.ypos && in _glfwWindowHoveredNull()
383 _glfw.null.xcursor <= window->null.xpos + window->null.width - 1 && in _glfwWindowHoveredNull()
384 _glfw.null.ycursor <= window->null.ypos + window->null.height - 1; in _glfwWindowHoveredNull()
441 if (_glfw.null.focusedWindow == window) in _glfwHideWindowNull()
443 _glfw in _glfwHideWindowNull()
[all...]
H A Dwin32_platform.h276 #define XInputGetCapabilities _glfw.win32.xinput.GetCapabilities
277 #define XInputGetState _glfw.win32.xinput.GetState
281 #define DirectInput8Create _glfw.win32.dinput8.Create
291 #define SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware_
292 #define ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx_
293 #define EnableNonClientDpiScaling _glfw.win32.user32.EnableNonClientDpiScaling_
294 #define SetProcessDpiAwarenessContext _glfw.win32.user32.SetProcessDpiAwarenessContext_
295 #define GetDpiForWindow _glfw.win32.user32.GetDpiForWindow_
296 #define AdjustWindowRectExForDpi _glfw.win32.user32.AdjustWindowRectExForDpi_
297 #define GetSystemMetricsForDpi _glfw
[all...]
H A Dposix_time.c42 _glfw.timer.posix.clock = CLOCK_REALTIME; in _glfwPlatformInitTimer()
43 _glfw.timer.posix.frequency = 1000000000; in _glfwPlatformInitTimer()
48 _glfw.timer.posix.clock = CLOCK_MONOTONIC; in _glfwPlatformInitTimer()
55 clock_gettime(_glfw.timer.posix.clock, &ts); in _glfwPlatformGetTimerValue()
56 return (uint64_t) ts.tv_sec * _glfw.timer.posix.frequency + (uint64_t) ts.tv_nsec; in _glfwPlatformGetTimerValue()
61 return _glfw.timer.posix.frequency; in _glfwPlatformGetTimerFrequency()
H A Dinternal.h220 #define eglGetConfigAttrib _glfw.egl.GetConfigAttrib
221 #define eglGetConfigs _glfw.egl.GetConfigs
222 #define eglGetDisplay _glfw.egl.GetDisplay
223 #define eglGetError _glfw.egl.GetError
224 #define eglInitialize _glfw.egl.Initialize
225 #define eglTerminate _glfw.egl.Terminate
226 #define eglBindAPI _glfw.egl.BindAPI
227 #define eglCreateContext _glfw.egl.CreateContext
228 #define eglDestroySurface _glfw.egl.DestroySurface
229 #define eglDestroyContext _glfw
[all...]
H A Dwin32_window.c240 SetCursor(_glfw.win32.blankCursor); in updateCursorImage()
253 _glfw.win32.capturedCursorWindow = window; in captureCursor()
261 _glfw.win32.capturedCursorWindow = NULL; in releaseCursor()
294 _glfw.win32.disabledCursorWindow = window; in disableCursor()
296 &_glfw.win32.restoreCursorPosX, in disableCursor()
297 &_glfw.win32.restoreCursorPosY); in disableCursor()
313 _glfw.win32.disabledCursorWindow = NULL; in enableCursor()
316 _glfw.win32.restoreCursorPosX, in enableCursor()
317 _glfw.win32.restoreCursorPosY); in enableCursor()
445 if (!_glfw in acquireMonitor()
[all...]
H A Dwl_monitor.c101 for (int i = 0; i < _glfw.monitorCount; i++) in outputHandleDone()
103 if (_glfw.monitors[i] == monitor) in outputHandleDone()
118 for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) in outputHandleScale()
171 struct wl_output* output = wl_registry_bind(_glfw.wl.registry, in _glfwAddOutputWayland()
184 wl_proxy_set_tag((struct wl_proxy*) output, &_glfw.wl.tag); in _glfwAddOutputWayland()
264 if (_glfw.platform.platformID != GLFW_PLATFORM_WAYLAND) in glfwGetWaylandMonitor()

Completed in 23 milliseconds

12