Commit Graph

65 Commits

Author SHA1 Message Date
Noel Berry
dcd3e11b16 Simplify folder sturcture + String refactor
1) Over time the total amount of files has decreased, and so it made sense to just simplify the folder structure and remove all of the subfolders.
2) Refactor the String class to utilize the existing Vector and StackVector classes instead of managing everything itself.
2022-10-01 13:30:15 -07:00
Noel Berry
c94e372e7d added App flags, implemented v-sync and fixed timestep flags 2022-08-21 17:41:29 -07:00
Noel Berry
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
Noel
e581065bbb Updating project to run with latest Emscripten 2022-07-30 16:30:13 -07:00
Noel Berry
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
SushilRagoonath
89230084d7
fix win32 errors vs2022 2022-06-04 17:50:49 +02:00
Noel
410adbfe12 fixed Textures/Samplers potentially using incorrect registers 2022-05-28 09:32:52 -07:00
Noel Berry
5a6a53f4bc fix for dpi scale value on linux 2022-03-16 23:05:38 -07:00
Noel Berry
9096ed79a7 zero out opengl error log buffers 2022-03-16 02:12:31 -07:00
Noel Berry
23db192296 SDL2_Platform::get_clipboard was not freeing 2022-03-16 02:12:10 -07:00
Noel Berry
83edcb06c2 platform was missing virtual destructor 2022-02-12 23:15:12 -08:00
Noel Berry
99595f265f refactored graphics & streams into single files - easier to maintain & read 2022-02-12 12:19:53 -08:00
Noel Berry
b1e33f2627 cleaned up app, renamed internal input update methods 2022-02-12 00:17:21 -08:00
Noel Berry
4fcd29b82f forgot to include renderer updates from Texture commit 2022-02-12 00:16:59 -08:00
Noel Berry
1caa31032b Refactored Platform into a struct to hold global state better 2022-02-11 20:19:14 -08:00
Noel Berry
ddb7d1b372 SDL2 Platform::get_title didn't return the title 2022-02-11 16:19:03 -08:00
Noel Berry
edee79b237 cleaned up Calc header, renamed numerics folder to math 2022-02-11 16:03:27 -08:00
Noel Berry
cedc57e322 made std::shared_ptr and std::functional optional 2022-02-11 15:20:07 -08:00
Noel Berry
f56e3bb2b2 moved Sprite Batcher's default shader to Renderer; no longer a global var 2022-02-10 01:13:20 -08:00
Noel Berry
2619d2d9e0 fixed preprocessor typo from renderer refactor 2022-02-10 00:11:58 -08:00
Noel Berry
f5e8de0b11 Refactored Graphics to allow Renderer choice at runtime 2022-02-09 18:49:47 -08:00
Noel Berry
09f88d293f removing non std::filesystem calls in platform_sdl2 2022-01-25 22:54:38 -08:00
Noel Berry
ccd02fa9ef added App::focused and System::open_url apis 2022-01-25 22:50:20 -08:00
Noel Berry
5f4a332d14
fixed D3D11 shutdown warnings 2022-01-09 18:31:20 -08:00
Noel Berry
d91658aa46 large spatial / numerics refactor to allow double/integer vector types 2021-12-12 20:41:23 -08:00
Noel Berry
ba3c60b6cd fixed d3d11 Texture::get_data, which didn't use RowPitch 2021-07-16 15:19:07 -07:00
Noel Berry
9eca790f9b removing "backend" from internal namespaces 2021-05-25 21:30:46 -07:00
Noel Berry
d7cef352a5 simplifying input backend & input state update 2021-05-19 11:21:08 -07:00
Noel Berry
76525f91c5 cleaning up App::config getter and removing App::is_running 2021-05-09 19:40:50 -07:00
Noel Berry
81e2de3553 missing opengl backend from last commit 2021-05-09 17:23:19 -07:00
Noel Berry
e615b9d7e4 large organizational & cleanup refactor 2021-05-09 17:23:02 -07:00
Noel Berry
04f6257b75 various small C++ warning fixes 2021-05-06 21:48:06 -07:00
Noel Berry
fb91b77900 fixed a few SDL2 platform details for compiling on non-windows 2021-05-06 20:48:11 -07:00
Noel Berry
459d2ad085 fixed win32 backend not getting Alt keyboard presses 2021-04-11 20:56:16 -07:00
Noel Berry
78b8140f53 fixed incorrect enum names in SDL2 platform 2021-04-06 17:45:26 -07:00
Noel Berry
65f7194e4f refactored FileMode to make more sense 2021-04-05 01:07:16 -07:00
Noel Berry
14a53c0f3a fixing SDL2 if can't be found 2021-04-02 10:56:07 -07:00
Noel Berry
0c3cac2d08 indentation fixes 2021-03-27 23:29:03 -07:00
Noel Berry
1376ef874b fixing win32 file operations for 64 bit integers 2021-03-26 22:48:16 -07:00
Noel Berry
3b4f721b64 fixing tab mismaches 2021-03-26 00:58:43 -07:00
Noel Berry
e406a9d3c6 added text input to win32 platform backend 2021-03-26 00:56:21 -07:00
Noel Berry
0a9f825660 mouse wheel input to win32 platform backend 2021-03-26 00:35:31 -07:00
Noel Berry
94f25cea88 removing redundant framebuffer virtual methods 2021-03-24 01:07:49 -07:00
Noel Berry
1570e9becf
Removing incorrect comment 2021-03-23 19:53:51 -07:00
Noel Berry
6fddd34ca5 cleaning up cmake defines; adding a Win32 Platform Backend 2021-03-23 01:56:53 -07:00
Noel Berry
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
Noel Berry
d388931dd3 fixed incorrect D3D11 swap chain parameter 2021-03-20 22:23:34 -07:00
Noel Berry
4351d77f73 fixing various clang warnings 2021-03-20 22:17:40 -07:00
Noel Berry
d73241e8fe replaced log.h with common.h, added easier shorthand for int types 2021-03-20 17:33:04 -07:00
Noel Berry
fb21ec869d fixed Texture::get_data for depth buffer textures in d3d11 2021-02-22 21:50:53 -08:00