1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-25 14:08:34 +01:00
Commit graph

174 commits

Author SHA1 Message Date
Ell
914b0d9c2d - Improved DataTextureAtlas parsing
- Added data and copy instructions to DataTextureAtlas
2022-09-14 10:40:52 +02:00
Ell
0a696941dc cleaned up code 2022-08-20 11:39:28 +02:00
Ell
b2898a8eae Made RuntimeTexturePacker restore texture region name and pivot when packing 2022-08-03 10:37:59 +02:00
Ell
b012c65990 Allow data texture atlas pivots and offsets to be negative 2022-08-02 23:56:18 +02:00
Ell
72647a2edf Fixed data texture atlases not allowing most characters in their region names 2022-08-02 23:02:34 +02:00
Ell
711f60a97e Updated demos and templates to MonoGame 3.8.1 2022-07-25 18:23:16 +02:00
Ell
e673ccea61 fixed a missing using directive in MLEM.FNA 2022-07-18 20:46:59 +02:00
Ell
ba1058748e Allow specifying multiple names for a DataTextureAtlas region 2022-07-18 20:41:19 +02:00
Ell
5d7d238630 added MLEM.FNA 2022-06-24 14:01:26 +02:00
Ell
aabb1ed5df added .editorconfig 2022-06-17 18:23:47 +02:00
Ell
59af00c89a Code cleanup, and marked AStar.InfiniteCost as obsolete 2022-06-15 11:38:11 +02:00
Ell
16053d9d04 further improve runtime texture packer performance by caching the first possible position for a request of a given size 2022-05-28 21:21:25 +02:00
Ell
61770d59b1 further improve RuntimeTexturePacker performance by only checking against already packed textures 2022-05-27 11:41:21 +02:00
Ell
93a82bcf36 cache UniformTextureAtlas texture straight away when checking for transparency 2022-05-27 11:19:29 +02:00
Ell
fdf04a7e77 allow ignoring transparent regions when packing a UniformTextureAtlas 2022-05-27 11:16:16 +02:00
Ell
cb496f613f Improve RuntimeTexturePacker performance by checking against packed textures in the same order as packing 2022-05-27 11:02:33 +02:00
Ell
b9f2de8290 Made RuntimeTexturePacker padding be per request and improve performance by caching texture data 2022-05-25 13:18:25 +02:00
Ell
f0f1d7f8ed added runtime texture region padding and other improvements 2022-05-25 12:37:51 +02:00
Ell
61439aa521 made the MLEM.Data description more descriptive 2022-05-10 16:06:45 +02:00
Ell
874be1fd6e Fixed SoundEffectReader incorrectly claiming it could read ogg and mp3 files 2022-05-10 15:58:47 +02:00
Ell
acd15fea14 improved Ui and Data package descriptions 2022-05-10 15:42:20 +02:00
Ell
47b58b1942 Premultiply textures when using RawContentManager 2022-05-07 21:39:36 +02:00
Ell
c7f021e62d Marked CopyExtensions as obsolete 2022-01-23 21:18:13 +01:00
Ell
9ccb3536a0 improved MLEM.Data description 2022-01-21 00:21:48 +01:00
Ell
04fab568f8 Make Newtonsoft.Json dependency optional for MLEM.Data 2022-01-02 22:51:52 +01:00
Ell
b2b34abcd0 Rethrow exceptions when no RawContentManager readers could be constructed 2022-01-02 22:49:39 +01:00
Ell
29bbd61f8b reformat and cleanup 2021-12-28 14:56:11 +01:00
Ell
2d3ce30ff2 reflect lidgren deprecation in descriptions 2021-12-03 12:55:34 +01:00
Ell
0c881e374b Marked features related to Lidgren.Network as obsolete 2021-12-03 12:52:26 +01:00
Ell
636522bc3e resolved some documentation warnings 2021-11-30 11:46:06 +01:00
Ell
444b5c6afb copy base documentation for a lot of docfx unresolvable sources 2021-11-22 19:25:18 +01:00
Ell
4e3d5705a4 removed utility scripts 2021-11-11 02:17:31 +01:00
Ell
9ef5c35e52 Set GraphicsResource Name when loading assets using RawContentManager 2021-11-08 23:46:59 +01:00
Ell
b22d2d4d22 slight GenericDataHolder (and extensions) improvements and reversions 2021-11-07 00:46:35 +01:00
Ell
39138446ea added some more utility to JsonTypeSafeWrapper and revert SetData changes 2021-11-07 00:23:48 +01:00
Ell
ae559adf26 remove "see href" from xml docs since some IDEs can't display that 2021-11-06 23:42:23 +01:00
Ell
8e83cc06a6 Added JsonTypeSafeWrapper and JsonTypeSafeGenericDataHolder 2021-11-06 23:38:21 +01:00
Ell
115b05beaa Allow RuntimeTexturePacker to automatically dispose submitted textures when packing 2021-11-01 16:00:13 +01:00
Ell
e40d97c45e suppress NU1701 warning for mlem.data 2021-10-29 00:04:23 +02:00
Ell
d05262e8a6 added DynamicEnum tests and switched to using Activator for instance creation 2021-10-28 22:14:43 +02:00
Ell
65908688f1 Use TitleContainer for opening streams where possible 2021-10-16 20:22:06 +02:00
Ell
a140e85300 fixed Docs casing in readme path 2021-09-24 04:50:42 +02:00
Ell
a53939837f added package readmes 2021-09-24 04:47:39 +02:00
Ell
e620ed0d87 don't allow adding a flag with value 0 using AddFlag 2021-09-22 21:32:34 +02:00
Ell
81dcbfb9a1 Fixed DynamicEnum AddFlag going into an infinite loop 2021-09-22 20:33:11 +02:00
Ell
05e320d4f4 don't use new caches for HasFlag and HasAnyFlag 2021-09-05 16:26:05 +02:00
Ell
54e3c98029 Improved DynamicEnum caching 2021-09-05 16:18:26 +02:00
Ell
51833d523d Improved CopyExtensions construction speed 2021-08-05 03:59:14 +02:00
Ell
0c45f2d8e6 properly document DataTextureAtlas 2021-08-02 15:15:33 +02:00
Ell
e11eb459b8 only offset DataTextureAtlas pivot if it is specified 2021-07-31 04:04:04 +02:00
Ell
57f8e56c38 Improved RawContentManager's reader loading and added better exception handling 2021-07-27 16:40:42 +02:00
Ell
abac738123 Removed LINQ Any and All usage in various methods to improve memory usage 2021-07-18 22:18:46 +02:00
Ell
9a0b8ef846 cleaned up formatting 2021-07-12 03:16:19 +02:00
Ell
27fc5a74d9 added the ability to specify a coordinate offset in data texture atlases 2021-07-12 03:14:05 +02:00
Ell
19893855dc added the changelog to the website 2021-07-01 05:00:59 +02:00
Ell
fe9b3830f8 (finally) added a changelog 2021-06-28 15:38:30 +02:00
Ell
07eb6ac36f fixed RawContentManager crashing with dynamic assemblies present 2021-06-20 17:35:56 +02:00
Ell
dd09f0af25 added HasAnyFlag and improved memory performance of HasFlag in DynamicEnum
Some checks reported errors
Ellpeck/MLEM/pipeline/head Something is wrong with the build of this commit
2021-06-11 20:22:25 +02:00
Ell
fda4097aa5 reverted the last commit, and invalidated DynamicEnum caches when new values are added 2021-06-11 20:05:32 +02:00
Ell
7ed969d1af Moved DynamicEnum to its own library 2021-06-11 19:46:51 +02:00
Ell
b0d146849d added dynamic enum json converter 2021-06-08 14:45:46 +02:00
Ell
e0a9971bdb added DynamicEnum to MLEM.Data 2021-06-08 13:32:01 +02:00
Ell
1123b815b3 updated some package declarations to clean up warnings 2021-04-22 19:59:35 +02:00
Ell
cf9bcc7ae4 updated to MonoGame 8 and added support for opening the on-screen keyboard to TextInputWrapper 2021-04-22 19:26:07 +02:00
Ell
35af9eee25 fixed some number parsing not using invariant culture 2021-03-28 06:20:27 +02:00
Ell
602f19a2a8 some minor code style and format improvements 2021-03-24 22:44:39 +01:00
Ell
281cce8fba updated remaining dependencies 2021-03-24 22:31:58 +01:00
Ell
a0609e66eb use the known type in StaticJsonConverter 2021-03-13 03:20:38 +01:00
Ell
abcdcd21cc added StaticJsonConverter 2021-03-13 03:15:39 +01:00
Ell
81d4fb2dd4 also made additional data non-relative for data texture atlas 2021-02-14 18:09:38 +01:00
Ell
c8fd2a4c17 allow storing additional coordinates in a DataTextureAtlas 2021-02-14 18:05:38 +01:00
Ell
8e06e54325 Removed JsonExtensions 2021-02-13 17:25:46 +01:00
Ell
94c9d45a43 don't auto-dispose the texture 2021-02-11 01:36:22 +01:00
Ell
b34172d043 made the texture packer disposable and resettable 2021-02-11 01:35:27 +01:00
Ell
2cf912255d allow the texture packer to forcibly be square or a power of two 2021-02-11 01:09:07 +01:00
Ell
c85666502c allow pausing, resuming and applying 3d to the sound effect instance handler and move it to its own file 2021-01-24 19:43:47 +01:00
Ell
e2cb125356 allow extending the max width of a runtime texture packer 2021-01-18 01:25:20 +01:00
Ell
db54ea7b5e added a runtime texture packer 2020-12-20 00:11:10 +01:00
Ell
294a29b46e fixed incorrect texture offset 2020-12-19 23:14:51 +01:00
Ell
c7430dd7ed fixed pivot calculation being incorrect for data texture atlases with an offset 2020-12-19 23:09:26 +01:00
Ell
47cc589042 allow data texture atlases to have an underlying texture region 2020-12-19 22:57:17 +01:00
Ell
3044a2bc81 allow using a custom json serializer for LoadJson 2020-11-22 16:57:44 +01:00
Ell
6e7720295f throw in ContentExtensions when a json file is not found 2020-11-21 22:49:22 +01:00
Ell
fd9ad777c2 some fixes related to the branch name change 2020-11-07 00:58:43 +01:00
Ell
75d8a556eb made CopyExtensions be able to fall back to a generic constructor if none is found 2020-11-01 15:36:56 +01:00
Ell
62f9b86c1d added a json extension to mlem.data for easy json property modification 2020-11-01 00:48:44 +01:00
Ell
99a49c6c81 use the required binding flags for the copy constructor too 2020-10-25 20:16:10 +01:00
Ellpeck
500025090f added a CopyConstructor attribute to CopyExtensions 2020-10-25 20:11:15 +01:00
Ell
f68e55ebfd moved DataTextureAtlas to MLEM.Data 2020-10-25 01:45:01 +02:00
Ell
aaeda825e0 fixed some documentation issues 2020-10-06 20:14:57 +02:00
Ell
6a383e200b a small rebranding 2020-09-28 20:53:39 +02:00
Ell
2342eb093a Fixed some content readers not being tried for RawContentManager 2020-09-17 01:59:08 +02:00
Ell
3b382a46cf moved raw content handling to MLEM.Data 2020-09-16 23:39:01 +02:00
Ell
534194b3ea allow loading other json file extensions in MLEM.Data by default 2020-09-16 23:24:03 +02:00
Ellpeck
3a1b73934b Allow copying to exclude certain fields 2020-08-01 00:22:29 +02:00
Ellpeck
0529e2c921 throw if no parameterless constructor was found 2020-07-31 20:58:25 +02:00
Ellpeck
c697d60609 shorten CopyExtensions.DeepCopyInto 2020-07-31 20:26:42 +02:00
Ellpeck
cb369dec75 Added DeepCopy 2020-07-31 20:24:59 +02:00
Ellpeck
ba24707b18 added object copying to MLEM.Data 2020-07-31 19:07:22 +02:00
Ellpeck
e80eb17b22 fixed incorrect icon link 2020-07-29 14:41:46 +02:00