1
0
Fork 0
Commit graph

72 commits

Author SHA1 Message Date
e73d1f7f90 source/Platform/Win32/Win32GLContext.cpp: skip goto in createGLContext() 2024-07-05 01:02:59 +02:00
f6c44a223b source/Platform/Win32/Win32Mouse.cpp: in update() call GetActiveWindow() instead of GetCapture()
We want the currently focused window whether it is captured or not.
2023-08-23 20:05:54 +02:00
b300310239 Platform/PlatformApplication: add createGLContext() 2023-08-23 19:43:22 +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
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
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
c1cc476094 source/Platform/Win32/Win32Display.cpp: Tab indentation fix. 2023-02-18 14:03:14 +01:00
9c4c6152c9 source/Platform/Win32/Win32Display.cpp: Whitespace fix. 2022-10-08 17:29:27 +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
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
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
845b93fb48 source/Platform/Win32/Win32Display.cpp: DisplayDecorate::None has changed to DisplayDecorate::Empty 2020-12-28 18:38:27 +01:00
c082700891 include/Spectre/Input/Mouse.h rename Button1,Button2 to XButton1 and XButton2
Button1 and Button2 are defined by Xlib. So lets change our ones to avoid headache.
2020-12-28 18:20:55 +01:00
304e345a79 Platform/Win32/Win32Display: Implementing true fullscreen with enterFullscreen() and exitFullscreen() 2020-12-09 02:46:55 +01:00
ebe3a648c5 Platform/Win32/Win32Display: Implement setDecoration() 2020-12-09 02:46:54 +01:00
3f38286049 source/Platform/Win32/Win32EventQueue.cpp: change OutputDebugString() to Log::debug() 2020-12-05 15:31:48 +01:00
5d433a7b80 source/Platform/Win32/Win32Display.cpp: don't call destroy() on WM_DESTROY as the window is already destroyed if we get this event. 2020-12-05 15:31:48 +01:00
2da0f7e712 Platform/Win32/Win32Display.cpp: change OutputDebugString() to Log::debug() 2020-12-05 15:31:47 +01:00
f0d769c923 Platform/Win32/Win32Display: minor fix. 2020-12-05 15:31:47 +01:00
04db63aa49 Platform/Win32/Win32Display: implement setVisible() 2020-12-05 15:31:47 +01:00
17759992c8 Platform/Win32/Win32Display: implement maximize() and minimize() 2020-12-05 15:31:47 +01:00
d7d8a23dc2 Platform/Win32/Win32Display: implement getPosition() 2020-12-05 15:31:47 +01:00
e64d9cdce0 Platform/Win32/Win32Display: implement grabCursor() 2020-12-05 15:31:47 +01:00
363afe111b source/Platform/Win32/Win32EventQueue.cpp: should not return status from DispatchMessage()
this can falsely signal that we have translated a win32 event to engine event when in fact we have not.
2020-12-05 15:30:45 +01:00
2be3c66a2d Platform/Win32/Win32Display: implement the new setIcon() with pixel array. 2020-11-03 11:29:14 +01:00
2c76d3bc87 source/Platform/Win32/Win32GLContext.cpp: no need to have our own wgl extension loader (fixed in latest glad2) 2020-09-21 18:00:08 +02:00
d8af100691 GLAD WGL: Update to new version. 2020-09-21 17:59:14 +02:00
a96e78bca5 source/Platform/Win32/Win32GLContext.cpp: in createGLContext() check return value from ensureExtensionsLoaded() 2020-09-20 16:46:51 +02:00
e3c01d4897 source/Platform/Win32/Win32GLContext.cpp: make ensureExtensionsLoaded() return bool. 2020-09-20 16:45:58 +02:00
6805e392a7 source/Platform/Win32/Win32GLContext.cpp: in createGLContext() delete temporary context as the last step. 2020-09-20 16:42:44 +02:00
92a561648e
Platform/Win32/Win32Input.cpp: remove Win32InputMsgBuffer 2020-02-15 15:41:53 +01:00
eef2690ada
source/Platform/Win32/Win32Mouse.cpp: in isButtonDown() use SM_SWAPBUTTON to determine if buttons are swapped or not. 2020-02-02 18:58:06 +01:00
24fa1e140e
source/Platform/Win32/Win32Keyboard.cpp: define LAlt and RAlt keys. 2020-02-02 00:42:00 +01:00
3364b921de
include/Spectre/Input/Keyboard.h: remove NumpadEnter (this is usually the same as regular enter). 2020-02-02 00:38:38 +01:00
7c6cf45d3c
include/Spectre/Input/Keyboard.h: Fix CamelCase for some enum values. 2020-02-02 00:34:13 +01:00
fa0fc72eb0
Platform/Win32/Win32Mouse: add getAbsPosition() and update the position variables in update() 2020-02-01 22:31:44 +01:00
290c6643f5
Platform/Win32/Win32Mouse: implement isButtonDown() using GetAsyncKeyState() and remove m_state and m_tracked. 2020-02-01 22:28:37 +01:00