1
0
Fork 0
Commit graph

154 commits

Author SHA1 Message Date
2de3bd93f7 Platform/PlatformWindow: remove make() 2023-08-23 15:08:21 +02:00
a8f65e54ac Platform/PlatformApplication: Adding createWindow() 2023-08-23 15:06:54 +02:00
2ac3b5b8cc Platform/PlatformApplication: define getMessageQueue() here as it is not platform specific. 2023-08-22 20:24:59 +02:00
cadbbf9d8b Platform/PlatformWindow: adding getOwner() 2023-08-22 17:51:24 +02:00
1288ef88b8 Platform/PlatformWindow: pass owner in constructor instead of setting the variable directly on the object. it is cleaner. 2023-08-22 17:18:39 +02:00
5a7a5e3f7c source/Platform/Win32/Win32Window.h: fix header guard. 2023-08-22 17:12:36 +02:00
afc0845006 source/Platform/PlatformWindow.h: rename parent to owner as the generic window is not really a parent to the platform one. 2023-08-22 17:10:08 +02:00
45d3bff620 Unix: Rename X11Display to X11Window and make it work again with Spectre/Window/Window 2023-08-22 10:06:19 +02:00
24da7f45e0 Rename Display to Window.
It makes more sense to be consistent and always call it window.
2023-08-22 07:12:47 +02:00
c313c5134f source/Platform/Win32/Win32Keyboard.cpp: Minor style fixes. 2023-08-04 03:43:46 +02:00
7b46a85cec source/Platform/Win32/Win32Keyboard.cpp: Fixing some keycodes that where wrong. 2023-08-04 03:43:26 +02:00
fcc292a40f source/Platform/Win32/Win32Display.cpp: in create() fix a bug where window size was initially not setup correctly causing two resize events. 2023-08-03 15:43:18 +02:00
ea4267ef2d source/Platform/Win32/Win32Display.cpp: Use calculateSize() in setSize() 2023-08-03 15:24:11 +02:00
80591ff6ee source/Platform/Win32/Win32Display: Adding calculateSize() 2023-08-03 15:23:19 +02:00
76aa838e8e source/Platform/Win32/Win32GLContext.cpp: in isActive() make sure this function returns false if m_renderContext is null. 2023-08-02 22:48:40 +02:00
c1f1dd75bd GLContext: remove setSize() and set glViewport() in Display::onReshape() 2023-08-02 22:30:45 +02:00
085d593b66 source/Platform/Unix/X11Display.cpp: implement grabCursor() 2023-08-02 20:30:37 +02:00
d601d95d40 source/Platform/Unix/X11Display.cpp: Tell window to generate pointer events. 2023-08-02 20:30:37 +02:00
2cf035089b source/Platform/Unix/X11Display.cpp: implement fullscreen somewhat correctly :) 2023-08-02 20:30:37 +02:00
186a6e0f14 Unix: Adding FindMode() XRandR helper function. 2023-08-02 20:30:37 +02:00
624871486f source/Platform/Unix/X11Display.cpp: Improve logging. 2023-08-02 20:30:37 +02:00
57d4e44bbe source/Platform/Unix/X11Display.cpp: make getSize() query X11 and dont just return cached value. 2023-08-02 20:30:37 +02:00
ea0edcf07f source/Platform/Unix/GLXContext.h: Whitespace fix. 2023-08-02 20:30:37 +02:00
1854c4cb51 source/Platform/Unix/GLXContext.cpp: Whitespace fix. 2023-08-02 20:30:37 +02:00
35a6b38d16 source/Platform/Unix/X11Mouse.cpp: minor whitespace fix. 2023-08-02 20:30:37 +02:00
53d8248b8c source/Platform/Unix/X11Display.cpp: typofix. 2023-08-02 20:30:37 +02:00
ff5d719fcf source/Platform/Unix/X11Display.cpp: Do not capture Pointer motions. 2023-08-02 20:30:37 +02:00
75a53f635d source/Platform/Unix/X11EventQueue.cpp: Remove ResizeRequest. 2023-08-02 20:30:37 +02:00
c1cc476094 source/Platform/Win32/Win32Display.cpp: Tab indentation fix. 2023-02-18 14:03:14 +01:00
869b41c38a source/Platform/Unix/UnixMisc.cpp: tab indentation fix. 2023-02-18 13:08:03 +01:00
9c4c6152c9 source/Platform/Win32/Win32Display.cpp: Whitespace fix. 2022-10-08 17:29:27 +02:00
0a5eb397c7 Platform/Unix/X11Display: Adding stub for enterFullscreen and exitFullscreen 2022-10-02 23:31:46 +02:00
84f0a83bee source/Platform/Unix/X11Display.cpp: Whitespace fix. 2022-10-02 17:11:27 +02:00
605e0df902 source/Platform/Unix/X11Display.cpp: call setDecoration() in create() 2022-10-02 17:07:14 +02:00
36c6024649 Platform/Unix/X11Display: remove setIcon(const std::string&) as this exists in Generic Display class. 2022-10-02 17:06:02 +02:00
a8fa3981f4 source/Platform/Unix/Xlib.cpp: assert _priv::display in shutdown() 2022-10-02 17:02:10 +02:00
b78ddba11e Platform/Unix/X11Display: implement setDecoration() 2022-10-02 17:01:40 +02:00
c20c79cfd3 Adding source/Platform/Unix/wm_hints.h 2022-10-02 17:00:45 +02:00
1c7cc31b52 source/Platform/Unix/X11Display.cpp: Fix getPosition() as it did not take border width into account. 2022-10-01 16:09:43 +02:00
46bc8eb5d8 Platform/Unix/Xlib: Adding getParentWindow() 2022-10-01 16:09:43 +02:00
f2fc9d46b8 Revert "include/Spectre/Display/DisplayDescription.h: change Empty to None"
This reverts commit 7c23f5dfd9.

`None` is defined in X11.
2022-10-01 16:09:42 +02:00
3a7f91cb07 Merge branch 'fullscreen-api-nonrecreate' into dev 2022-09-13 20:39:02 +02:00
7c23f5dfd9 include/Spectre/Display/DisplayDescription.h: change Empty to None 2022-09-13 19:43:26 +02:00
3c6a842c9d Platform/Win32/Win32Display.cpp: remove fullscreen stuff in create() 2022-09-12 22:44:51 +02:00
c7d380c4b0 source/Platform/PlatformApplication: rename create() to get() and just return a statically allocated implementation.
As we just this throughout the whole program. and platform can be determined at compile time. we might as well allocate it statically.
2022-09-12 21:12:32 +02:00
9621ea19bb source/Platform/Win32/Win32Display.cpp: on x64, windows headers undefine GWL_USERDATA, So we define it again. 2022-09-10 14:02:58 +02:00
8d57b3a72c source/Platform/Win32/Win32Display.cpp: Use SetWindowLongPtr/GetWindowLongPtr as LONG_PTR supports 64bit addresses. 2022-09-10 13:59:40 +02:00
46af40bbb7 source/Platform/PlatformApplication.h: extend NonCopyable 2020-12-29 19:54:49 +01:00
b984f30968 Platform/Win32/Win32Display.cpp: for WM_SIZE event we can use lParam variable to get the size. 2020-12-29 17:45:32 +01:00
d48cc650a8 source/Platform/PlatformApplication.cpp: ApplicationType is defined by some Win32 headers. 2020-12-28 18:41:51 +01:00