6645549da4
Fix bug in SDL platform code that could result in things crashing
...
The current app is now properly set, which is used in the model compiler
for example in its app_main.
2022-05-21 17:47:53 -04:00
7a53ce8db4
Don't use a dummy vulkan window when initializing SDL backend
2022-04-04 09:36:11 -04:00
33680efe7b
Appease MSVC
2022-03-04 19:17:07 -05:00
7f479b0e0b
Properly copy data on macOS
...
This also fixes cfg init failing on macOS
2022-02-22 09:34:00 -05:00
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
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
8237eeb05b
Fix Metal backend (finally)
2022-02-18 14:36:38 -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
redstrate
d8cf9bd734
Use SDL's relative mouse mode when capturing the mouse
2021-10-14 17:15:11 -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
cb93aaf83d
Call prepare_quit() properly on SDL platform, and return a valid writeable directory
2021-06-01 12:44:16 -04:00
redstrate
fe81222ea7
SDL backend now provides an accurate delta time
2021-05-11 17:38:09 -04:00
redstrate
2ddc1e1794
Fix up SDL2 mouse and key handling for imgui
2021-05-11 17:05:29 -04:00
redstrate
f539ddcc3f
Add system theme detection on Windows/SDL2
2021-05-11 16:11:23 -04:00
redstrate
4cd63997ce
Specifying -1 in your window positions will make SDL center the window
2021-04-20 12:57:59 -04:00
redstrate
28dbc34d51
Add more SDL keycodes, fix focus issue when using imgui viewports
2021-04-20 01:14:33 -04:00
redstrate
e46e6f512b
Fix multiple windows on SDL
2021-04-20 00:48:42 -04:00
redstrate
e01a31eb13
Use new SDL backend on Windows, fix numerous SDL problems as well
2021-04-20 00:23:14 -04:00
redstrate
744123763f
Begin work on converting to the new class naming scheme and the new prism namespace
2021-04-19 12:06:44 -04:00
redstrate
f0a1dc2f20
Add experimental SDL backend for Linux
2021-03-01 14:40:02 -05:00