100 Commits
Author SHA1 Message Date
Noel BerryandGitHub da6ef79aa2 Merge pull request #37 from puugz/fix-readme-links
update outdated README links
2023-04-27 10:30:37 -07:00
Noel BerryandGitHub 39685d3ef6 ButtonBinding::zero_out clears press/release state 2023-03-15 17:22:18 -07:00
Noel BerryandGitHub 9fcd76a959 use ::operator new[] to match ::operator delete[] 2023-03-10 10:26:25 -08:00
Noel BerryandGitHub f5db7a37fc clang on macOS didn't like sized ::operator delete
replaced with `::operator delete[]`
2023-03-10 10:17:57 -08:00
Noel BerryandGitHub 746330f763 implemented Platform::dir_explore for macOS 2023-03-10 10:15:29 -08:00
Noel BerryandGitHub 176b11e08e Merge pull request #36 from benjitrosch/remove-platform-abstraction
remove platform abstraction layer
2023-03-08 10:17:17 -08:00
Noel BerryandGitHub 9da7f38269 Merge pull request #35 from benjitrosch/misnamed-include
fixed broken renderer include
2023-03-07 13:38:09 -08:00
Noel Berry 45a5e8839f use constexpr func instead of macro for hex colors 2023-03-05 15:59:58 -08:00
Noel BerryandGitHub 53714a4ad2 adding workflow_dispatch to build workflow 2023-03-04 18:21:08 -08:00
Noel BerryandGitHub dda0b76d93 Merge pull request #34 from benjitrosch/master
Simple github release workflow for CI
2023-03-04 14:13:19 -08:00
Noel BerryandGitHub 72fb034103 Merge pull request #33 from fabtjar/patch-1
Use correct rect overlap check
2023-02-21 17:59:58 -08:00
Noel BerryandGitHub a1f1bd0742 updated license year 2023-01-23 14:41:55 -08:00
Noel BerryandGitHub a0cccca457 fix update function name typo in emscripten 2023-01-03 22:21:57 -08:00
Noel BerryandGitHub 1b02339f63 disable audio SSE intrinsics
found this to be a problem when compiling with clang on M1 macs, so just disabling for the time being
2023-01-02 13:16:13 -08:00
Noel BerryandGitHub 90cb51110d small fix to previous string commit 2022-12-05 20:03:46 -08:00
Noel Berry 916ddc2020 adding a few utility methods to blah string 2022-12-05 19:18:03 -08:00
Noel BerryandGitHub 1e2a009778 removing workflows for now, will revisit later 2022-12-02 18:56:55 -08:00
Noel BerryandGitHub 05743b7dfc Merge pull request #31 from SushilRagoonath/CI
Ci
2022-12-02 13:54:26 -08:00
Noel Berry 3fc3938b22 updated readme example code 2022-11-22 22:52:34 -08:00
Noel Berry 5e7c2bec90 update to SDL 2.26 2022-11-22 22:51:38 -08:00
Noel Berry c58eb0142e remove App::content_scale;App::get_backbuffer_size 2022-11-22 22:51:28 -08:00
Noel Berry 4d7f7a993a added audio enabled flag 2022-11-20 19:32:38 -08:00
Noel BerryandGitHub b161457c66 fix include typo 2022-11-20 01:23:01 -08:00
Noel Berry 2c45b8b2f2 removing platform abstract class, use ifdef instead 2022-11-19 17:53:21 -08:00
Noel Berry 1b41632991 audio tweaks so it still loads on windows w/o sdl2 2022-11-19 16:40:56 -08:00
Noel Berry c89535e328 restructuring internal namespaces & function calls 2022-11-19 16:15:31 -08:00
Noel BerryandGitHub 2437d5841f Merge pull request #25 from RandyGaul/master
Integrate cute_sound.h
2022-11-19 15:56:53 -08:00
Noel BerryandGitHub 7821b0fcf5 Merge pull request #26 from puugz/fix-typos
fix typos
2022-11-19 11:53:48 -08:00
Noel BerryandGitHub 20a6d9411d fix incorrect pixel offset in asset packer trim 2022-10-28 12:54:01 -07:00
Noel c204842d2c adding zero_out to input bindings 2022-10-22 23:18:52 -07:00
Noel 30d7f2ee66 fixing c standard lib includes 2022-10-22 23:18:34 -07:00
Noel Berry a5f9701ce6 fix to String::contains 2022-10-04 18:23:51 -07:00
Noel Berry 36b0d266b1 fixed String::contains 2022-10-03 00:31:00 -07:00
Noel Berry f06c38ff3e added bool Rect::contains(Rect) 2022-10-03 00:30:49 -07:00
Noel Berry 93a231db4d bit of calc organization 2022-10-03 00:30:27 -07:00
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 05b58706d7 clarified what Input::register_binding does. It returns a handle! 2022-08-21 17:39:58 -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 BerryandGitHub 1ef5a9c6ad slightly nicer BLAH_ASSERT macro 2022-08-21 12:25:36 -07:00
Noel e581065bbb Updating project to run with latest Emscripten 2022-07-30 16:30:13 -07:00
Noel Berry 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
Noel BerryandGitHub 6e7e730243 Merge pull request #21 from SushilRagoonath/master
orange not defined
2022-07-18 10:26:17 -07:00
Noel BerryandGitHub 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
Noel BerryandGitHub ee4a2c4e7f Merge pull request #19 from SushilRagoonath/master
fix win32 errors vs2022
2022-06-05 14:29:38 -07:00
Noel d2703e5050 added NonPremultiplied BlendMode 2022-05-28 09:38:38 -07:00
Noel 410adbfe12 fixed Textures/Samplers potentially using incorrect registers 2022-05-28 09:32:52 -07:00
Noel 0628e0dce5 added BLAH_ASSERT_FMT for formatted messages 2022-05-28 09:30:07 -07:00
Noel 79af2944f3 added optional CMake vars for SDL2 in case you load it yourself 2022-05-28 09:29:30 -07:00
Noel Berry b2bcf66a37 fixed cmakelists requiring newline after if statement 2022-03-17 00:57:54 -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 d482840cfe Merge branch 'master' of https://github.com/NoelFB/blah 2022-03-15 20:16:35 -07:00
Noel Berry 78f5fc9388 removed Batch TextAlign in favour of Vec2 Justify 2022-03-15 20:16:33 -07:00
Noel Berry 05391f0b3d added Rect::inflate(x, y) 2022-03-15 20:16:02 -07:00
Noel BerryandGitHub fc55cacaac Optional toggles in CMake really set compile defs 2022-02-15 10:35:44 -08:00
Noel Berry cbb194e516 clang didn't like constexpr is_big/little_endian checks 2022-02-12 23:15:51 -08:00
Noel Berry 83edcb06c2 platform was missing virtual destructor 2022-02-12 23:15:12 -08:00
Noel Berry 7477cda527 added default Additive BlendMode 2022-02-12 23:15:04 -08:00
Noel Berry 8add71003c added App::is_running() getter 2022-02-12 23:14:35 -08:00
Noel Berry 9beb7eff58 Color::to_hex_rgb had an incorrect declaration appended to it 2022-02-12 12:30:51 -08:00
Noel Berry f1e45b129c Font::create could return incorrect value type 2022-02-12 12:30:05 -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 9c7d8a4418 various memory cleanup, move/copy simplifications 2022-02-12 00:18:08 -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 4c04fdd72f clarified Aseprite state, removed unnecessary copy/move code 2022-02-12 00:16:11 -08:00
Noel Berry d559f1c8ee added Texture::get/set data for Color* 2022-02-12 00:15:07 -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 068d0778c2 added Time::get_ticks() to poll for an immediate value 2022-02-11 16:07:07 -08:00
Noel Berry c52258ddcd Stopwatch uses Platform::ticks() 2022-02-11 16:03:41 -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 0c809f8085 made stream.read/write explicit instead of using a template 2022-02-11 15:19:35 -08:00
Noel Berry 51e80ec6a2 spritefont uses a binary search instead of std::unordered_map 2022-02-11 15:18:10 -08:00
Noel BerryandGitHub c13759f362 clarified note on shader abstraction 2022-02-10 12:26:47 -08:00
Noel Berry 611aa0b502 fixed accidental delete on app-close 2022-02-10 01:15:30 -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 BerryandGitHub 012dae8699 reorganized readme, fixed a few typos 2022-02-09 23:48:05 -08:00
Noel Berry f5e8de0b11 Refactored Graphics to allow Renderer choice at runtime 2022-02-09 18:49:47 -08:00
Noel BerryandGitHub ae6a2f12d4 fixed Vec3f::normal 2022-02-01 19:48:01 -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 BerryandGitHub 4620b1bd70 Fixed readme CMake version needed (3.12 to 3.14) 2022-01-09 19:20:13 -08:00
Noel BerryandGitHub ae98f9cbf2 Simplifying SDL2 include 2022-01-09 19:18:51 -08:00
Noel BerryandGitHub 92b7c7c747 updated readme to reflect cmake changes 2022-01-09 18:40:30 -08:00
Noel BerryandGitHub 5f4a332d14 fixed D3D11 shutdown warnings 2022-01-09 18:31:20 -08:00
Noel Berry c8afa3f699 Vec2::normal accounts for zero-length 2022-01-09 14:32:50 -08:00
Noel Berry 832c8f4283 simplifying Input enums 2022-01-09 14:32:35 -08:00
Noel Berry 53ebb40ffd fixed packer's off-by-one error with padding 2022-01-09 13:51:23 -08:00
Noel Berry 168424039c fixed missing vec3/vec4 constructors 2022-01-09 13:50:50 -08:00
Noel Berry 2893680ef8 changing CMake vars to have a BLAH prefix 2022-01-09 13:50:16 -08:00
Noel BerryandGitHub 4ad55298a5 fixed typo in readme example code 2022-01-06 01:41:09 -08:00
Noel BerryandGitHub db8f54e2f9 CMake to 3.14, replaced FetchContent_GetProperties 2022-01-04 20:31:39 -08:00
Noel BerryandGitHub 91503a5520 Updated LICENSE year 2022-01-04 14:23:51 -08:00
Noel BerryandGitHub 3b6686b3ef Updated default SDL2 cmake FetchContent to 2.0.18 2022-01-04 14:23:17 -08:00
Noel Berry 1ee2fbab3d string internal set method has additional safeguard for bad data 2021-12-18 02:48:51 -08:00