1
0
Fork 0
Commit graph

110 commits

Author SHA1 Message Date
34b78a7a4d source/Platform/Unix/X11EventQueue.cpp: log "WM_DESTROY_WINDOW" message. 2020-10-16 19:39:27 +02:00
62156a8685 source/Platform/Unix/X11Display.cpp: call XSetWMProtocols with "WM_DELETE_WINDOW" flag. 2020-10-16 19:39:27 +02:00
776904ee9a Platform/Unix/X11SharedDisplay: adding getAtom() 2020-10-16 19:39:27 +02:00
fa97552e23 source/Platform/Unix/UnixEventQueue.cpp: implement a poll method (only log events for now) 2020-10-16 19:39:27 +02:00
dd17868b89 source/Platform/Unix/X11Display.cpp: in create() set the attr.event_mask to include some interesting events. 2020-10-16 19:39:27 +02:00
9131aa2d2d source/Platform/Unix/GLXContext: Initial implementation 2020-10-16 19:39:27 +02:00
06f5ef5f86 source/Platform/Unix/X11Display.cpp: Initial implementation 2020-10-16 19:39:27 +02:00
389d75f3d8 Adding source/Platform/Unix/X11SharedDisplay.cpp 2020-10-16 19:39:27 +02:00
c35fd2e287 Adding glad GLX 2020-10-16 19:39:27 +02:00
38d333862a source/Platform/Unix: stub implementation 2020-10-16 19:39:26 +02:00
1a6cee0b25 Spectre/System/Log: adding debug method. 2020-10-13 18:07:29 +02:00
f86a1ae90c Merge branch 'maint-platform' into dev 2020-09-24 17:17:12 +02:00
18880ef17e source/Game.cpp: minor fixes. 2020-09-24 16:33:30 +02:00
976ddecd10 source/Game.cpp: in run() exit if graphics could not be initialized. 2020-09-23 16:56:28 +02:00
2a1851efb5 Game: remove setup() method. do setup in run() instead. 2020-09-23 16:55:42 +02:00
d58c49421e source/Graphics/OpenGL.cpp: in init() return false if display fails to be created. 2020-09-23 12:41:22 +02:00
0f08f10a0d source/Game.cpp: don't need to call setClearColor() here. it is done as part of the graphics module setup. 2020-09-23 00:00:31 +02: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
afc1491718 Merge branch '6-abstract-filesystem' into dev 2020-09-17 09:50:06 +02:00
92a561648e
Platform/Win32/Win32Input.cpp: remove Win32InputMsgBuffer 2020-02-15 15:41:53 +01:00
a4a691fd48
Math/Transform.cpp: use transform/scale/ratation functions from Math.h 2020-02-14 23:31:15 +01:00
a6e6b915e6
Math/Math: Remove getTranslate(), getUpVector() and getForwardVector() as they are not used. 2020-02-12 19:54:52 +01:00
532c6dafaf
Math/Math: translate/scale functions should not accept vectors, but rather individual parameters.
This is "low level" functions. Used by other math classes/functions.
2020-02-12 19:42:50 +01:00
18ea713445
Math/Transform.cpp: minor fixes. 2020-02-12 19:29:02 +01:00
76d175ffd9
Math/Transform: rename multiply() to combine() 2020-02-12 19:27:41 +01:00
1194128627
Math/Transform.cpp: indent fixes. 2020-02-12 19:20:20 +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
cdaed77bf7
Input: remove InputEvent and InputListener and related code. Those are handled in System/Event 2020-02-01 15:50: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
e75d373933
Game: call MessageHandler::onEvent() 2020-02-01 15:50:05 +01:00
81b64e18d4
Game: add getMessageHandler() method. 2020-02-01 15:50:03 +01:00
a30fd37032
System/MessageHandler: Make this class useful by implementing EventListener and also add a vector of listeners with register/unregister methods. 2020-02-01 15:50:02 +01:00
cd32d0b7c2
Adding System/EventListener 2020-02-01 15:50:01 +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
4d54968f83
Display/Display: No need to include System/SystemEvent. 2020-02-01 15:49:55 +01:00
24c3f14c8c
include/Spectre/Input/InputEvent.h: Move Key::Type to Keyboard class 2020-02-01 15:49:53 +01:00