Commit Graph
100 Commits
Author SHA1 Message Date
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
Noel Berry 10c1c39419 fixed missing <cstring> #include for vector.h 2021-12-18 02:48:06 -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 8f9c6aa9ff Sprite Batcher has fields for optional texture/sampler uniform names 2021-08-06 16:03:44 -07:00
Noel Berry ba3c60b6cd fixed d3d11 Texture::get_data, which didn't use RowPitch 2021-07-16 15:19:07 -07:00
Noel BerryandGitHub 7f1ef67d0c Merge pull request #11 from Tarun-Ramaswamy/fix-readme-invalid-links
Fixed invalid links in README.
2021-06-03 12:45:49 -07:00
Noel Berry 5ba620c066 cleaning up color struct 2021-05-25 21:31:18 -07:00
Noel Berry 6f0ac3e8c2 removing pointless forward declaration 2021-05-25 21:30:58 -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 b7e318e420 Mat3x2 tweaks 2021-05-19 11:20:22 -07:00
Noel Berry 78f6f66bff catching null strings in Str::starts_with/ends_with 2021-05-19 11:20:08 -07:00
Noel Berry b68729850b cleanup pass on numerics 2021-05-11 02:27:00 -07:00
Noel Berry 991cfcad82 adding more App windowing methods 2021-05-09 19:46: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 c51d397ccc cleaning up file / memory streams 2021-05-09 19:30:01 -07:00
Noel Berry 2447490033 simplifying input calls & state 2021-05-09 18:37:31 -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 e65752f30b Image move operator fix 2021-05-09 15:08:59 -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 60f3939ff7 added resize method to bufferstream 2021-05-06 20:47:52 -07:00
Noel Berry 5f9df4beee cleaned up Calc template functions 2021-05-06 20:47:40 -07:00
Noel Berry 6f2cf82b8e added std::hash for custom string type for use in unordered_map etc 2021-05-06 20:47:22 -07:00
Noel BerryandGitHub e79ece2db3 Merge pull request #10 from shortgecko/patch-1
Update README.md
2021-04-26 13:48:52 -07:00
Noel Berry cf1771926d fixed StackVector copy/move assignment operators 2021-04-24 22:47:44 -07:00
Noel Berry 682cc12780 fixed packer sub rectangle 2021-04-11 22:07:46 -07:00
Noel Berry 0f04ff0803 packer can optionally pack a source rectangle of an image
useful for packing tilesets
2021-04-11 20:57:09 -07:00
Noel Berry 459d2ad085 fixed win32 backend not getting Alt keyboard presses 2021-04-11 20:56:16 -07:00
Noel Berry e55e84f149 fixed Mat3x2 == operator 2021-04-09 22:57:31 -07:00
Noel Berry 63c2493fd3 fixed Str::replace 2021-04-09 22:57:20 -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 9e8a181fd2 RectI::overlap_rect fix 2021-04-05 01:06:21 -07:00
Noel Berry c6b5e98deb implemented batch push_layer and pop_layer properly 2021-04-03 22:27:23 -07:00
Noel Berry aa6efb23b1 added RectI::overlap_rect 2021-04-03 22:24:51 -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 bd9736df03 simplified texture and framebuffer create methods 2021-03-24 00:56:43 -07:00
Noel BerryandGitHub 1570e9becf Removing incorrect comment 2021-03-23 19:53:51 -07:00
Noel Berry 742c990b91 spacing 2021-03-23 15:47:34 -07:00
Noel BerryandGitHub 88ce95c411 Merge pull request #8 from bradms/master
SDL2 downloaded from the web
2021-03-23 15:45:37 -07:00
Noel BerryandGitHub 6c13753c64 Merge branch 'master' into master 2021-03-23 15:45:19 -07:00
Noel Berry 6fddd34ca5 cleaning up cmake defines; adding a Win32 Platform Backend 2021-03-23 01:56:53 -07:00
Noel BerryandGitHub d34a55e2ac fixed old variable name in readme example 2021-03-22 17:04:53 -07:00
Noel Berry 9e3f745a38 removed drawing folder; moved to graphics 2021-03-22 16:53:27 -07:00