Commit Graph

194 Commits (d1e9d5daef5058d26b4e890bc4688ef8e3aae330)

Author SHA1 Message Date
Brett 889f24d402 logging 2.0 is almost at first working build 2023-07-21 03:32:42 -04:00
Brett 58ba957b1d working on logging 2.0. Format defined, custom tags added. 2023-07-20 22:38:17 -04:00
Brett 7033474455 memory\!, working on logging! 2023-07-20 21:44:52 -04:00
Brett 15cca07286 fix mat4x4 scale op 2023-07-11 18:35:29 -04:00
Brett fc8aa8204a fix bug in useless string buffer (use += on std::string, faster) 2023-07-11 17:50:40 -04:00
Brett f15a89328f add string writing support to string buffer 2023-07-10 19:08:23 -04:00
Brett d883adaf5c Change toString() to str() to better replicate the std 2023-07-10 18:55:20 -04:00
Brett 5426aa8359 add template for string buffer 2023-07-10 18:54:04 -04:00
Brett d06c7ebeb6 String buffer 2023-07-10 18:45:43 -04:00
Brett a1331db389 blt logging 2023-06-26 21:33:42 -04:00
Brett 2ad00c8895 hopefully finally fix vectors 2023-04-21 21:39:34 -04:00
Brett b088565d35 fix negation 2023-04-21 21:37:11 -04:00
Brett 548b036ad5 move from private to protected 2023-04-21 21:35:52 -04:00
Brett 2d8e410a5c add extra templates 2023-04-21 21:35:11 -04:00
Brett 4b0226929b add return statement to matrix class 2023-04-21 21:04:19 -04:00
Brett 94624bddec Merge remote-tracking branch 'refs/remotes/tpgc/main' 2023-04-08 12:44:49 -04:00
Brett 5116981057 add prefix to LOG_LEVEL 2023-04-08 12:44:31 -04:00
Paragon-Win a6a2ee966c Fix windows! 2023-04-07 00:02:21 -04:00
Brett 89df343e4f fix most warnings 2023-04-05 17:21:19 -04:00
Brett 289af13171 fix incorrect translate function 2023-04-01 02:55:00 -04:00
Brett 7e87d303f4 Merge remote-tracking branch 'refs/remotes/tpgc/main' 2023-03-30 21:49:09 -04:00
Brett 4ec0a1d614 Minor change to test jenkins 2023-03-30 21:48:31 -04:00
Brett bd4f07d866 add restrictions to vector template 2023-03-29 13:12:17 -04:00
Brett 8ec6cf10e5 vector 2023-03-15 15:26:58 -04:00
Brett 680d958c9f inline function 2023-03-15 15:25:15 -04:00
Brett 96d122e09e namespace 2023-03-15 15:24:03 -04:00
Brett 1177d20be1 basis 2023-03-15 15:22:28 -04:00
Brett 3101eeae4a equality 2023-03-14 18:20:10 -04:00
Brett e6298271e4 const 2023-03-14 18:05:24 -04:00
Brett 86820b779d fix normalize 2023-03-14 18:04:53 -04:00
Brett b51a5363b2 fix 2023-03-14 18:02:20 -04:00
Brett cc80e71a2a logging vectors 2023-03-14 18:01:05 -04:00
Brett a3643e4cca f_equal 2023-03-14 17:30:22 -04:00
Brett edfca12b18 projection 2023-03-10 17:24:00 -05:00
Brett 4b4f95af81 cross product 2023-03-10 17:01:44 -05:00
Brett 225a8de7de Add rotation matrix 2023-03-10 16:52:15 -05:00
Brett e0cee0d344 normalize 2023-03-08 23:49:57 -05:00
Brett 1770113f1f Add test for matrix, works fine, generic template as well 2023-03-08 21:33:34 -05:00
Brett 5db2224f93 matrix multiplcation with vector 2023-03-08 21:26:42 -05:00
Brett b62d4bfe78 update vector and fix profile memory usage 2023-03-06 21:29:04 -05:00
Brett d50e13dcb6 add warning to round 2023-03-05 17:21:40 -05:00
Brett c025299ee4 rounding 2023-03-05 17:21:14 -05:00
Brett 62d929171c fromBytes 2023-03-05 17:06:07 -05:00
Brett 831a485209 unbdo 2023-03-05 13:01:38 -05:00
Brett 063a679278 pt 2023-03-05 13:00:24 -05:00
Brett 2b60b2621f nullptr_initalizer 2023-03-05 12:57:57 -05:00
Brett 48e126214b update queues for better stl complience 2023-03-05 12:00:45 -05:00
Brett bd89abb2f3 random tests 2023-03-04 22:38:25 -05:00
Brett 5d493a6493 cleanup printing
remove the needless addition of \n to the end of lines
2023-03-04 11:52:54 -05:00
Brett 643053c409 Ignore negative values by default 2023-03-04 11:46:37 -05:00
Brett 811cdff8d1 refactor profiler
code is now much more clean
	-removed ugly nested loops
	-used functions to reduce code clutter and duplcation
removed redundant functions
cleaned up sort and improved names
2023-03-04 11:42:24 -05:00
Brett 8592ad6d92 fix memory issue? 2023-03-03 10:41:38 -05:00
Brett 61ae482e5d fix linker error 2023-03-01 00:05:26 -05:00
Brett b77638436e fast functions of common math (untested!) 2023-02-28 23:50:13 -05:00
Brett b2666dc39e fix transpose 2023-02-28 23:43:56 -05:00
Brett cd4e4581ae move math.h to math subdir, update version to 5.0 2023-02-28 23:33:39 -05:00
Brett 1cd889ff05 fix missing namespace in vectors 2023-02-28 23:31:39 -05:00
Brett 1d7775a742 fix missing template parameters in new vector 2023-02-28 23:30:16 -05:00
Brett e1ace0d64d fix transposed matrix operators 2023-02-28 23:23:00 -05:00
Brett 7ff48d4916 cleanup math
-Moved matrix and vectors into their own file
-math.h now includes all math components
-math moved into sub-folder
-matrix class updated
-new vector types added
2023-02-28 23:20:56 -05:00
Brett c1f3f7f2b8 Trying 2023-02-16 00:13:26 -05:00
Brett bd5a2b9277 revert 2023-02-16 00:08:39 -05:00
Brett fa8b67b6c9 fix average 2023-02-16 00:06:36 -05:00
Brett 08524cd280 averagizer 2023-02-16 00:03:01 -05:00
Brett 596c75dc6f add ortho matrix 2023-02-15 00:41:06 -05:00
Brett 0aab8d789c Add option to ignore negatives 2023-02-14 22:32:23 -05:00
Brett 70a8e3b2ff Add historical intervals to the profiler print (disabled by default) 2023-02-14 22:28:58 -05:00
Brett ed3dfb3dc3 Introduce scoped intervals 2023-02-14 22:22:48 -05:00
Brett 001b6ae46a Add history to intervals 2023-02-14 22:06:30 -05:00
Brett e50cc74bf3 Added dot product 2023-02-11 15:25:28 -05:00
Brett 128fc2f9dc Fix system namespace 2023-02-11 12:53:32 -05:00
Brett f64535671d fix perspective matrix 2023-02-11 12:09:15 -05:00
Brett 1147d02c20 Another perspective change 2023-02-11 12:07:03 -05:00
Brett a01d5eba90 adjusting the perpsective formula 2023-02-11 12:05:47 -05:00
Brett 5ecb127519 Fix issue with loader.h linking 2023-02-10 17:54:27 -05:00
Brett 20ce0e2e9b Fix perspective calc 2023-02-08 23:21:25 -05:00
Brett ba35e4645b Perspective in math.h 2023-02-08 23:01:01 -05:00
Brett cf48035378 shader processing 2023-02-08 22:30:20 -05:00
Brett cbc703b852 Cleaned up logging and added file location + line number 2023-02-08 17:22:27 -05:00
Brett f1cb6f05f5 flush 2023-02-08 14:12:21 -05:00
Brett b4548166c3 Finally fully fix logging issue
-buffer size is now calculated
-overflows have been fixed
-temporary buffer is allocated on the heap.
2023-02-08 13:40:28 -05:00
Brett 3109ec13c0 vectors and matrix 2023-02-07 22:34:10 -05:00
Brett d25cdd9de0 minor warning fix 2023-02-06 21:54:01 -05:00
Brett 12a5985916 Push V0.3.2a 2023-01-29 23:36:42 -05:00
Brett 38e6abe4e3 Writing and Reading buffers 2023-01-29 22:27:48 -05:00
Brett 060e1a8efb Tables now have names 2023-01-29 17:10:36 -05:00
Brett 483713b265 tests cleanup, NBT UTF
The UTF8 implementaion is ripped from openjdk-source's java source code, adapted by me for c++
2023-01-29 15:24:33 -05:00
Brett 33b0b7bbbb Cleanup + making way for NBT! 2023-01-27 10:45:18 -05:00
Brett f68f23ae30 Update 0.3a!
Added table format (TODO: add title to table!)
printing of profiler
ordered table printing to come
TODO: add old table print back, default to table print!
2023-01-27 00:49:44 -05:00
Brett 8ec971f8ce Printing 2023-01-26 12:21:19 -05:00
Brett e58f20d16e Better profiler 2023-01-26 00:59:36 -05:00
Brett bc4bf76be7 Add stream version of the logging macros 2023-01-24 23:01:34 -05:00
Brett 51a1468cf0 Console logging 2023-01-24 17:56:48 -05:00
Brett 4562171205 Logging macros now print new line even if the supplied string does not include one.
this is done because the use of macros does not support complex line outputs and therefore there will never be a case where \n is not desired.
2023-01-24 15:19:44 -05:00
Brett 6816ddaf7a Logging is now working with all types + formatting
Can provide raw data types like ints, long, float, byte, double etc. Will be printed out as a full line. This cannot be avoided as writing requires the prefix, which cannot be calculated via discrete macro calls. At least not easily.
Performance of the logging needs to be tested
plus writing to filesystem is required.
2023-01-24 15:16:47 -05:00
Brett 5e1deefe48 Add time to the log output 2023-01-23 23:53:37 -05:00
Brett d025b0595c Logging works for the most part, more features need to be added 2023-01-23 17:52:32 -05:00
Brett cf96536468 Logging begin 2023-01-23 10:15:37 -05:00
Brett dee1c92532 string contains functions as well 2023-01-22 18:08:50 -05:00
Brett 69ab5d7079 Added some std::string functions from c++ 20 2023-01-22 17:54:24 -05:00