Commit graph

29 commits

Author SHA1 Message Date
Clownacy
baf88b0d4b Convert cursors to RGBA
...instead of colour-keyed RGB. Less goofing-around for the user.
2020-09-27 17:16:58 +01:00
Clownacy
c12149b96e Fix a weird old typo 2020-09-13 19:35:31 +01:00
Clownacy
b065882f24 More size_t 2020-09-10 17:42:18 +01:00
Clownacy
0bdbb4f6bb Made some message-printing code more consistent 2020-09-10 15:39:10 +01:00
Clownacy
84d6b50bc2 Remove platform backend dependency on core engine
The backends need to have no dependency on the engine, otherwise
there'll be conflicts when we do stuff like include `window.h` in a
file that also happens to include "WindowsWrapper.h" somewhere.
2020-09-08 03:52:23 +01:00
Clownacy
bdcb1f3a3e Remove Organya dependency from platform backend 2020-09-08 03:36:11 +01:00
Clownacy
da5d7982c6 Improve SDL2 event handling accuracy
Now the event loop doesn't run constantly when the window isn't
focussed. This should match the original WinAPI code's behaviour.
2020-07-13 17:31:30 +01:00
Clownacy
a392034fd6 Fix input lag in SDL2 backend
If you spam keyboard inputs, they'll eventually lag behind. This was
caused by improperly porting the WinAPI logic to SDL2 and CSE2's
fancy backend-abstraction system.
2020-07-13 00:19:27 +01:00
Gabriel Ravier
81edd4db52 src: Restored SDL.h includes to conform to project style of including SDL2
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-07-02 14:59:55 +02:00
Gabriel Ravier
32c8795ead src: Cleaned up includes to only (and always) include what we use
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-07-01 18:26:22 +02:00
Gabriel Ravier
564d42dbd2 src: Change from using asprintf-based code to using std::string-based code
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-29 18:33:22 +02:00
Gabriel Ravier
32a879ca58 src: Removed MAX_PATH and made the path/string handling better in general (ported over from supportPathsAboveFilenameMax)
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-29 00:14:30 +02:00
Clownacy
48935eb10d Fix Windows builds when path contains accent char 2020-06-27 19:34:09 +01:00
Clownacy
dacd34072a Fix everything after the last commit 2020-05-06 22:52:11 +01:00
Clownacy
616b9cda9e Rearrange shader files
The old way just kind of mashed two approaches together.
2020-05-06 22:40:10 +01:00
Clownacy
40464a9fc0 Move-around Backend files
Hoping to introduce some degree of grouping
2020-04-03 14:42:11 +01:00
Clownacy
ef00bbcdd4 Get window icon working in GLFW
Amazingly, this actually works in SDL2, so now they both use this
method.
2020-04-02 22:03:08 +01:00
Clownacy
00ee155176 Fixes and a comment 2020-04-01 21:58:02 +01:00
Clownacy
0182ab6eb3 Get drag-and-drop working again 2020-04-01 21:43:04 +01:00
Clownacy
add0627f03 Restore custom cursor support 2020-04-01 21:36:46 +01:00
Clownacy
f23117bbdc Overhaul how window icon loading works
Now most of it has been moved out of the backends.
2020-04-01 21:20:26 +01:00
Clownacy
878cac3b3f Implement mouse-hiding in fullscreen 2020-04-01 21:05:05 +01:00
Clownacy
49f7887930 More cleanup 2020-04-01 16:27:55 +01:00
Clownacy
ff70664604 Cleanup and fixes 2020-04-01 16:11:34 +01:00
Clownacy
c4aa8e28bb More refactoring 2020-04-01 14:57:07 +01:00
Clownacy
5dbca99e19 Extremely horrible terrible nightmare refactoring
Working on ridding CSE2 of its hard SDL2 dependency.

For now, I have a rudimentary GLFW3 backend.
2020-03-31 21:56:10 +01:00
Clownacy
63e75089d6 Split SDL2 code from Game.cpp 2020-03-31 16:32:50 +01:00
Clownacy
584ea57c5d Split SDL2 code from Profile.cpp and TextScr.cpp 2020-03-31 16:28:28 +01:00
Clownacy
3a5a5044b1 Split SDL2 code from Main.cpp 2020-03-31 16:07:34 +01:00