1
0
Fork 0
Commit graph

431 commits

Author SHA1 Message Date
ca46bd0ef7 adding .clang-format 2024-06-22 19:50:05 +02:00
0596e1ba3b .gitignore: adding LSP files 2024-06-22 19:49:55 +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
ea763a9f38 Spectre/Window/GLContext: remove static create() method. 2023-08-23 19:45:01 +02:00
f35658a971 source/Window/GLWindow.cpp: use PlatformApplication::createGLContext() instead of GLContext::create() 2023-08-23 19:43:59 +02:00
b300310239 Platform/PlatformApplication: add createGLContext() 2023-08-23 19:43:22 +02:00
b1ccea1397 Spectre/Window/Window: refactor out GLContext specific code to its own class (GLWindow) 2023-08-23 19:32:23 +02:00
2de3bd93f7 Platform/PlatformWindow: remove make() 2023-08-23 15:08:21 +02:00
f5db354aec source/Window/Window.cpp: call PlatformApplication::createWindow() instead of PlatformWindow::make() 2023-08-23 15:07:51 +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
4380f1ed01 include/Spectre/System/Event.h: Change "None" to "Unkown" as None is a macro in X11 2023-08-22 20:02:12 +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
a3c63e6e96 remove examples/display/main.cpp 2023-08-22 17:10:44 +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
96f6725428 include/Spectre/Math/Matrix3.inl: make Identity work for all template specializations. not just float. 2023-08-22 10:02:07 +02:00
8901257bb6 Rename DisplayExample to WindowExample 2023-08-22 07:17:51 +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
416a71f744 Spectre/Math: Adding Vector2UnProject() 2023-08-21 07:05:34 +02:00
813c0dab17 source/System/Log.cpp: make sure the writer is flushed after we write a line. 2023-08-20 21:07:13 +02:00
7b0cf72ac4 Spectre/System/Log/FileWriter: Implement flush() 2023-08-20 21:06:39 +02:00
8dbb0e0211 include/Spectre/System/Log/Writer.h: Adding flush() 2023-08-20 21:05:51 +02:00
0f7a4bbabc include/Spectre/Math/Transform.h: Adding inverse() 2023-08-18 17:54:37 +02:00
d8db86e40c include/Spectre/Math/Matrix3.h: Add inverse() 2023-08-18 17:54:37 +02:00
910bad0fb7 source/Math/Transform.cpp: Style fixes. 2023-08-18 17:54:37 +02:00
6e8f060882 include/Spectre/Math/Matrix3.h: Adding multiplication and division scalar operations. 2023-08-04 03:48:03 +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
60333f6d02 include/Spectre/Display/Display.h: Adding getSize() 2023-08-02 22:18:33 +02:00
f240d14052 examples/input/InputExample.cpp: Also test mouse grab. 2023-08-02 20:34:38 +02:00
962c18fcac examples/input/InputExample: Adding support for Event based mouse movement. 2023-08-02 20:32:46 +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
8ff2a3d37f engine.cmake: sort unix files abit. 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