Commit Graph

63 Commits

Author SHA1 Message Date
a1baaaf298 updated to SDL 2.24.0, simplifies Windows High DPI
Although it has an issue where the Drawable Size can't really be determined from SDL anymore with D3D11... So now the D3D11 renderer returns it's backbuffer size, until this issue is resolved in SDL / I learn what the correct thing to do is.
2022-08-21 14:48:46 -07:00
e581065bbb Updating project to run with latest Emscripten 2022-07-30 16:30:13 -07:00
e93da13b4b Fixed D3D11 bug where uniform buffer wasn't aligning to 16-byte boundary
see: https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-packing-rules
2022-06-21 14:26:39 -07:00
89230084d7 fix win32 errors vs2022 2022-06-04 17:50:49 +02:00
410adbfe12 fixed Textures/Samplers potentially using incorrect registers 2022-05-28 09:32:52 -07:00
5a6a53f4bc fix for dpi scale value on linux 2022-03-16 23:05:38 -07:00
9096ed79a7 zero out opengl error log buffers 2022-03-16 02:12:31 -07:00
23db192296 SDL2_Platform::get_clipboard was not freeing 2022-03-16 02:12:10 -07:00
83edcb06c2 platform was missing virtual destructor 2022-02-12 23:15:12 -08:00
99595f265f refactored graphics & streams into single files - easier to maintain & read 2022-02-12 12:19:53 -08:00
b1e33f2627 cleaned up app, renamed internal input update methods 2022-02-12 00:17:21 -08:00
4fcd29b82f forgot to include renderer updates from Texture commit 2022-02-12 00:16:59 -08:00
1caa31032b Refactored Platform into a struct to hold global state better 2022-02-11 20:19:14 -08:00
ddb7d1b372 SDL2 Platform::get_title didn't return the title 2022-02-11 16:19:03 -08:00
edee79b237 cleaned up Calc header, renamed numerics folder to math 2022-02-11 16:03:27 -08:00
cedc57e322 made std::shared_ptr and std::functional optional 2022-02-11 15:20:07 -08:00
f56e3bb2b2 moved Sprite Batcher's default shader to Renderer; no longer a global var 2022-02-10 01:13:20 -08:00
2619d2d9e0 fixed preprocessor typo from renderer refactor 2022-02-10 00:11:58 -08:00
f5e8de0b11 Refactored Graphics to allow Renderer choice at runtime 2022-02-09 18:49:47 -08:00
09f88d293f removing non std::filesystem calls in platform_sdl2 2022-01-25 22:54:38 -08:00
ccd02fa9ef added App::focused and System::open_url apis 2022-01-25 22:50:20 -08:00
5f4a332d14 fixed D3D11 shutdown warnings 2022-01-09 18:31:20 -08:00
d91658aa46 large spatial / numerics refactor to allow double/integer vector types 2021-12-12 20:41:23 -08:00
ba3c60b6cd fixed d3d11 Texture::get_data, which didn't use RowPitch 2021-07-16 15:19:07 -07:00
9eca790f9b removing "backend" from internal namespaces 2021-05-25 21:30:46 -07:00
d7cef352a5 simplifying input backend & input state update 2021-05-19 11:21:08 -07:00
76525f91c5 cleaning up App::config getter and removing App::is_running 2021-05-09 19:40:50 -07:00
81e2de3553 missing opengl backend from last commit 2021-05-09 17:23:19 -07:00
e615b9d7e4 large organizational & cleanup refactor 2021-05-09 17:23:02 -07:00
04f6257b75 various small C++ warning fixes 2021-05-06 21:48:06 -07:00
fb91b77900 fixed a few SDL2 platform details for compiling on non-windows 2021-05-06 20:48:11 -07:00
459d2ad085 fixed win32 backend not getting Alt keyboard presses 2021-04-11 20:56:16 -07:00
78b8140f53 fixed incorrect enum names in SDL2 platform 2021-04-06 17:45:26 -07:00
65f7194e4f refactored FileMode to make more sense 2021-04-05 01:07:16 -07:00
14a53c0f3a fixing SDL2 if can't be found 2021-04-02 10:56:07 -07:00
0c3cac2d08 indentation fixes 2021-03-27 23:29:03 -07:00
1376ef874b fixing win32 file operations for 64 bit integers 2021-03-26 22:48:16 -07:00
3b4f721b64 fixing tab mismaches 2021-03-26 00:58:43 -07:00
e406a9d3c6 added text input to win32 platform backend 2021-03-26 00:56:21 -07:00
0a9f825660 mouse wheel input to win32 platform backend 2021-03-26 00:35:31 -07:00
94f25cea88 removing redundant framebuffer virtual methods 2021-03-24 01:07:49 -07:00
1570e9becf Removing incorrect comment 2021-03-23 19:53:51 -07:00
6fddd34ca5 cleaning up cmake defines; adding a Win32 Platform Backend 2021-03-23 01:56:53 -07:00
a001a61847 fixed SDL2 controller index mismatch
SDL2 added event returns the index, but all other ones return the InstanceID, which I was not aware of! Pretty big error.
2021-03-21 15:49:11 -07:00
d388931dd3 fixed incorrect D3D11 swap chain parameter 2021-03-20 22:23:34 -07:00
4351d77f73 fixing various clang warnings 2021-03-20 22:17:40 -07:00
d73241e8fe replaced log.h with common.h, added easier shorthand for int types 2021-03-20 17:33:04 -07:00
fb21ec869d fixed Texture::get_data for depth buffer textures in d3d11 2021-02-22 21:50:53 -08:00
77f551f65e d3d11 clear fix when no depth buffer is enabled 2021-02-22 15:15:31 -08:00
2de541fb18 fixing d3d11 depth buffers, adding depth buffer clear support 2021-02-21 23:00:37 -08:00