1
0
Fork 0
Commit graph

50 commits

Author SHA1 Message Date
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
48b501e355 source/Platform/PlatformDisplay.h: add setVisible() to the interface 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
70f73c1d52 source/Platform/PlatformDisplay.h: add getPosition() to the intreface 2020-12-05 15:31:47 +01:00
33270d9f7b source/Platform/PlatformDisplay.h: add minimize() and maximize() to the interface 2020-12-05 15:31:47 +01:00
e64d9cdce0 Platform/Win32/Win32Display: implement grabCursor() 2020-12-05 15:31:47 +01:00
0a1c18548d source/Platform/PlatformDisplay.h: add grabCursor() to the interface. 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
60653509fa source/Platform/PlatformDisplay.h: change setIcon() parameters to take a pixel array instead of filename 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
c7c1ff68fd
Platform/Win32: remove Win32MsgBuffer 2020-02-01 16:43:10 +01:00
3c209ba01b
Platform/Win32/Win32Mouse: skip Win32MsgBuffer and handle event directly in handleMessage() 2020-02-01 15:50:09 +01:00
2e9701a15b
Platform/Win32/Win32Keyboard: implement isKeyDown() using GetAsyncKeyState() and remove m_bufState and m_focus. 2020-02-01 15:50:08 +01:00
390be8f740
Platform/Win32/Win32Keyboard: skip Win32MsgBuffer and handle event directly in handleMessage() 2020-02-01 15:50:06 +01:00
10198484e7
System/SystemEvent: Merge with Input/InputEvent into just Event. 2020-02-01 15:49:59 +01:00
858e721451
source/Platform/PlatformEventQueue.h: need to forward declare sp::SysEvent 2020-02-01 15:49:57 +01:00
ffb97d2b3a
source/Platform/Win32/Win32Display.cpp: No need to include Spectre/System/SystemEvent.h 2020-02-01 15:49:56 +01:00
24c3f14c8c
include/Spectre/Input/InputEvent.h: Move Key::Type to Keyboard class 2020-02-01 15:49:53 +01:00
762d26f368
include/Spectre/Input/InputEvent.h: Move MouseButton::Type to Mouse class. 2020-02-01 15:49:52 +01:00
f526b598e2
source/Platform/PlatformApplication.h: remove update(). platform event queue is handled in MessageQueue class. 2020-02-01 15:49:49 +01:00
e6718e7ef1
Adding source/Platform/PlatformEventQueue.h 2020-02-01 15:49:45 +01:00
da76c4b4d1
Adding Win32EventQueue 2020-02-01 15:49:42 +01:00
2a111a237d
Move OpenGL headers from API to implementation.
We don't want to expose any OpenGL functions to client code. Because if we do, there is a chance we break client code if we switch implementation (Direct3D).
2020-01-03 20:30:08 +01:00
4df668e68f
Minor formating fixes. 2019-12-29 22:26:05 +01:00
6f53b0c069
source/Platform/Win32/Win32Display.cpp: in setSize() add cast to silence compiler warnings. 2019-12-29 22:16:54 +01:00
9835082b67
source/Platform/Win32/Win32GLContext.cpp: minor fixes to log strings. 2019-12-24 20:29:13 +01:00
a39069cdb9
GL/WGL: Upgrade to glad2 2019-12-24 20:29:16 +01:00
3b27db9435
include/Spectre/System/Log.h: implement a static "Log" class instead of just a function. 2019-11-10 14:56:56 +01:00
e10daeaaa6
Move everything from global namespace to "sp" namespace
When writing the X11 (linux) implementation there was a problem with X11 defining a "Display" type and we also have a Display class in the engine.

So to fix that problem and minimize the risk for running into other name conflicts. We move everything from global namespace.
2019-09-30 19:10:17 +02:00
a1804cd3df source/Platform/Win32/Win32GLContext.cpp: use GLAD 2018-05-14 16:27:18 +02:00
e2195c1d49 Adding GLAD files. 2018-05-14 12:01:33 +02:00
9e1f6271cd source/Platform/Win32/Win32GLContext.cpp: forcing 3.2 Core context. 2018-02-28 11:58:41 +01:00
2da2601149 GLContext: Remove bpp parameter from create()
Hardcode to 32 bits for now.
2016-02-17 13:28:32 +01:00
edfc5298e1 Initial commit 2016-01-10 09:26:43 +01:00