Commit Graph

283 Commits

Author SHA1 Message Date
30d7f2ee66 fixing c standard lib includes 2022-10-22 23:18:34 -07:00
a5f9701ce6 fix to String::contains 2022-10-04 18:23:51 -07:00
36b0d266b1 fixed String::contains 2022-10-03 00:31:00 -07:00
f06c38ff3e added bool Rect::contains(Rect) 2022-10-03 00:30:49 -07:00
93a231db4d bit of calc organization 2022-10-03 00:30:27 -07:00
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
c94e372e7d added App flags, implemented v-sync and fixed timestep flags 2022-08-21 17:41:29 -07:00
05b58706d7 clarified what Input::register_binding does. It returns a handle! 2022-08-21 17:39:58 -07:00
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
1ef5a9c6ad slightly nicer BLAH_ASSERT macro 2022-08-21 12:25:36 -07:00
e581065bbb Updating project to run with latest Emscripten 2022-07-30 16:30:13 -07:00
f68e4cd8ed added pressed() check for Stick & Axis bindings
Shorthand for checking the individual buttons in the stuck or axis
2022-07-29 10:11:36 -07:00
6e7e730243 Merge pull request #21 from SushilRagoonath/master
orange not defined
2022-07-18 10:26:17 -07:00
a7f2fa565c orange not defined 2022-07-18 19:09:54 +02: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
ee4a2c4e7f Merge pull request #19 from SushilRagoonath/master
fix win32 errors vs2022
2022-06-05 14:29:38 -07:00
89230084d7 fix win32 errors vs2022 2022-06-04 17:50:49 +02:00
d2703e5050 added NonPremultiplied BlendMode 2022-05-28 09:38:38 -07:00
410adbfe12 fixed Textures/Samplers potentially using incorrect registers 2022-05-28 09:32:52 -07:00
0628e0dce5 added BLAH_ASSERT_FMT for formatted messages 2022-05-28 09:30:07 -07:00
79af2944f3 added optional CMake vars for SDL2 in case you load it yourself 2022-05-28 09:29:30 -07:00
b2bcf66a37 fixed cmakelists requiring newline after if statement 2022-03-17 00:57:54 -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
d482840cfe Merge branch 'master' of https://github.com/NoelFB/blah 2022-03-15 20:16:35 -07:00
78f5fc9388 removed Batch TextAlign in favour of Vec2 Justify 2022-03-15 20:16:33 -07:00
05391f0b3d added Rect::inflate(x, y) 2022-03-15 20:16:02 -07:00
fc55cacaac Optional toggles in CMake really set compile defs 2022-02-15 10:35:44 -08:00
cbb194e516 clang didn't like constexpr is_big/little_endian checks 2022-02-12 23:15:51 -08:00
83edcb06c2 platform was missing virtual destructor 2022-02-12 23:15:12 -08:00
7477cda527 added default Additive BlendMode 2022-02-12 23:15:04 -08:00
8add71003c added App::is_running() getter 2022-02-12 23:14:35 -08:00
9beb7eff58 Color::to_hex_rgb had an incorrect declaration appended to it 2022-02-12 12:30:51 -08:00
f1e45b129c Font::create could return incorrect value type 2022-02-12 12:30:05 -08:00
99595f265f refactored graphics & streams into single files - easier to maintain & read 2022-02-12 12:19:53 -08:00
9c7d8a4418 various memory cleanup, move/copy simplifications 2022-02-12 00:18:08 -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
4c04fdd72f clarified Aseprite state, removed unnecessary copy/move code 2022-02-12 00:16:11 -08:00
d559f1c8ee added Texture::get/set data for Color* 2022-02-12 00:15:07 -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
068d0778c2 added Time::get_ticks() to poll for an immediate value 2022-02-11 16:07:07 -08:00
c52258ddcd Stopwatch uses Platform::ticks() 2022-02-11 16:03:41 -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
0c809f8085 made stream.read/write explicit instead of using a template 2022-02-11 15:19:35 -08:00
51e80ec6a2 spritefont uses a binary search instead of std::unordered_map 2022-02-11 15:18:10 -08:00
c13759f362 clarified note on shader abstraction 2022-02-10 12:26:47 -08:00