e5fddf2c67
Fixup merge
2022-02-21 15:55:11 -05:00
5c8b690d66
Merge remote-tracking branch 'origin/master'
2022-02-21 15:54:17 -05:00
6be0616d1e
Use DX12 by default on Windows
2022-02-21 15:53:42 -05:00
ba4d15886f
Protect against MinGW including Windows RT
2022-02-21 15:41:42 -05:00
5401188196
Allow overriding the gfx backend at runtime
...
You can now specify -vulkan, -metal, etc to the SDL backend.
2022-02-21 12:27:29 -05:00
138cbf3f4b
Now try Metal, Vulkan and then finally Dummy in that order
...
This only applies to the SDL backend though, this will be expanded
upon though.
2022-02-21 12:09:43 -05:00
ca57de8f99
Support GFX dummy a little better
...
There's now more checks to prevent crashing when the
mapped buffer is actually null, like when running with the dummy
backend.
2022-02-21 12:09:14 -05:00
9b507aa79a
Fix up macOS build
2022-02-21 11:47:23 -05:00
54c95b9ddd
Link against SDL2::SDL2 if found
2022-02-21 11:09:55 -05:00
a3704eb7a9
Improve surface and gfx context creation
...
This is laying some groundwork for a much better way
of determining the best GFX api to use at runtime, and
making it easier to support more GFX backends in the future.
2022-02-21 11:03:34 -05:00
b996c7a1e4
Add missing shell file
2022-02-21 08:56:29 -05:00
6d9602b12a
When building on Linux, prefer using the SDL2 config module
...
This is shipped by SDL2 itself, so it should be the preferred way
of finding it. Since SDL2 does not ship it in their Windows
development libraries, we still need to use the regular Find module.
2022-02-21 07:53:08 -05:00
a7ee5451fb
Add missing uikit files (oops)
2022-02-20 23:28:18 -05:00
bff540956b
Add initial WebGPU GFX functions
...
This doesn't work yet of course :-)
2022-02-20 20:05:05 -05:00
f96d6da92a
Support better stack traces on web
2022-02-18 17:39:02 -05:00
38933b1ca6
Fix some unreachable errors in web platform
2022-02-18 17:38:41 -05:00
e0eace9f74
Initialize WebGPU properly
2022-02-18 17:19:37 -05:00
79bc598ef9
Fill out web platform backend with a main loop
2022-02-18 16:57:14 -05:00
fe45e382bc
Add simple web backend
2022-02-18 16:36:48 -05:00
dfcade8a29
Move even more common iOS/tvOS files
2022-02-18 15:18:09 -05:00
2771be2a57
Fix tvOS build, move common UIKit stuff into it's own folder
2022-02-18 15:13:16 -05:00
3cdb75a8f6
Enable ProMotion support for the new iPhones
2022-02-18 14:37:36 -05:00
50589e7e77
Touch up main storyboard for iOS
2022-02-18 14:37:02 -05:00
8237eeb05b
Fix Metal backend (finally)
2022-02-18 14:36:38 -05:00
86a51e259d
Only link to GFXMetal when metal is enabled
2022-02-18 08:44:17 -05:00
93c2639539
Enable Metal by default on SDL backend
2022-02-15 11:29:56 -05:00
6935f85351
Start work on converting GFXMetal to metal-cpp
2022-02-15 11:25:13 -05:00
8b9e8c29ef
Use VK_EXT_metal_surface on iOS
2022-02-12 20:52:10 -05:00
b39e539a37
Correctly add resources to iOS app bundle
2022-02-12 20:31:37 -05:00
d1e4e1aff5
Statically link to CoreGraphics and Metal on iOS
2022-02-12 20:27:33 -05:00
e910425dc5
iOS builds now successfully build
2022-02-12 20:24:54 -05:00
e77efa542e
Correctly pass plist into configure_file on iOS
2022-02-12 20:06:31 -05:00
2b5fd7201f
Bring iOS CMake back up to snuff
2022-02-12 19:58:51 -05:00
374d8f7b63
Use SDL_GetBasePath() on macOS
2022-02-07 09:58:13 -05:00
420e8cbea9
Fix ninja multiple dummy generation error
2022-02-03 09:15:04 -05:00
redstrate
ef15b62af1
Fix window sizing not working under SDL
2021-10-14 17:30:04 -04:00
redstrate
d8cf9bd734
Use SDL's relative mouse mode when capturing the mouse
2021-10-14 17:15:11 -04:00
redstrate
e79a98c7d2
Some minor code refactoring
2021-10-14 08:51:58 -04:00
redstrate
5226aa1200
Add hidden window flag, to be in line with how imgui's sdl backend works
2021-10-13 10:55:20 -04:00
redstrate
fd4661088a
Fix HiDPI support
2021-10-12 11:42:10 -04:00
redstrate
7d6ded0d69
Set HiDPI flag for all SDL windows
2021-10-12 11:12:51 -04:00
redstrate
a2f81d7ca7
Allow better DPI handling under SDL, handle external resize events in imgui
2021-10-12 11:06:59 -04:00
redstrate
c6bc56d033
Change window handles into opaque pointers
2021-10-12 10:22:16 -04:00
redstrate
182fbe195a
Add imgui open/save dialog
2021-10-11 13:39:15 -04:00
redstrate
9c8c257c43
Add new console debug window, handle text input under sdl
2021-10-07 17:46:28 -04:00
redstrate
648d2968d4
Update Info.plist
2021-09-13 22:59:56 -04:00
redstrate
f213d3d548
Fix resource path handling on macOS
2021-09-13 17:19:59 -04:00
redstrate
4680579899
Remove macOS Cocoa and Metal backends
2021-09-13 13:47:29 -04:00
redstrate
cb93aaf83d
Call prepare_quit() properly on SDL platform, and return a valid writeable directory
2021-06-01 12:44:16 -04:00
redstrate
b20235a731
Update macOS and Metal backends for the new changes
2021-05-12 10:59:30 -04:00