Commit Graph

52 Commits

Author SHA1 Message Date
01e64f5163 Fix logic in last commit. 2019-10-26 19:26:51 +02:00
3159f588ad Implemented support for input image format RGB8. 2019-10-26 18:19:28 +02:00
9cbc2ac85b Removed the texture_added signal/vmethod calls from TextureMerger::set_textures, because has_method always returns false in that context. 2019-10-23 17:17:45 +02:00
1e0da8f335 Added an ERR_FAIL_COND into TexturePacker::add_texture. Aléso fixed an issue from the previous few commits with variables in scope in TextureMerger. 2019-10-23 17:10:57 +02:00
5d28f6fc1e Now automatic merge in TextureMerger will create your atlases on the next update (_process). Also now it works even if you manipulate the textures directly with the API. 2019-10-23 16:54:28 +02:00
cb177e1d3f Added a texture_removed signal, and _texture_removed vmethod. The unref_texture, and unref_texture_index functions now return wether the texture actually got removed.
Also fixed missing PropertyInfo from the texture_added signal.
2019-10-23 16:30:41 +02:00
9de8c209f1 texture_added and _texture_added will only be called if an addition actually occurs. (Refcount increases won't count as addition). 2019-10-23 16:08:12 +02:00
4bdea3cc56 TextureMerger's set_textures will now clean up textures in the packer properly. 2019-10-23 16:03:59 +02:00
7804575cf6 Both automatic_merge and keep_original_atlases in TextureMerger is false by default now. 2019-10-23 16:01:20 +02:00
ff60ad4207 Added a "texture_added" signal, and the 2 signals are also available as vmethods now. 2019-10-23 16:00:09 +02:00
f65c1ba2ec Changed the saved extension for the importer. 2019-10-22 21:02:12 +02:00
1fbde4fc19 Update README.md 2019-10-22 20:12:43 +02:00
41b82300ae Updated README.md 2019-10-22 20:11:43 +02:00
aa6ab9ce9d Update README.md 2019-10-22 20:01:09 +02:00
0fd27051de Update README.md 2019-10-22 19:55:49 +02:00
ee9998131d Update README.md 2019-10-22 19:55:40 +02:00
dfab12c55d Udpate README.md 2019-10-22 19:55:31 +02:00
de0e117c7e Update README.md 2019-10-22 19:55:21 +02:00
b6530cdf15 Update README.md 2019-10-22 19:54:46 +02:00
92e35aa199 Readme.md. 2019-10-22 16:56:22 +02:00
b39313b237 Fixed bindings, and now the importers work. The Merger can use this Texture type by default. 2019-10-22 15:09:47 +02:00
b0b34add3f Added the new resource, and it's importer to the build, and fixed compile. 2019-10-22 11:53:49 +02:00
b731f18615 Work on an image resource class, and a custom importer. 2019-10-22 04:22:32 +02:00
8d8e20a396 Docs setup. 2019-10-22 02:10:35 +02:00
c9cef93510 Added missing editor_hint check. 2019-10-22 01:07:53 +02:00
63b908afb6 Added "automatic_merge" property, and a "texture_merged" signal. 2019-10-22 01:00:39 +02:00
8f19801eaa Added a variant vector binding to TextureMerger. It will merge all textures on set. Added contains_texture to TexturePacker. Logic fixes in querying textures in TexturePacker. 2019-10-22 00:52:59 +02:00
d94977de50 The merger now won't have the REPEAT texture flag by default. 2019-10-22 00:18:27 +02:00
95fbb4668b Added a TextureMerger Node. 2019-10-22 00:17:11 +02:00
280dabf737 Implemented margins. 2019-10-22 00:03:04 +02:00
1d8256548c Added a background_color property. 2019-10-21 23:42:53 +02:00
6a6b844823 Avoid cast. 2019-10-21 23:26:30 +02:00
4de8140563 Fix small mistake. 2019-10-21 23:25:51 +02:00
87a80781a0 The bins vector is not a class member anymore, it's really unsafe to store it like that without proper updates. Also unnecessary. 2019-10-21 23:22:12 +02:00
37043e7b2d Implemented reference counting. 2019-10-21 23:18:06 +02:00
fe6c61d22d Added clear(). 2019-10-21 23:04:11 +02:00
9718212b9d Removed the TODO comment. 2019-10-21 23:01:46 +02:00
63d9273326 Implemented proper support for adding AtlasTextures. Also implemented support for the keep_original_atlases property. 2019-10-21 22:38:51 +02:00
ec68fea42f Added 3 tweakable properties. (keep_original_atlases is not yet implemented). 2019-10-21 21:29:42 +02:00
b26b97d728 Removed the test method. 2019-10-21 21:15:30 +02:00
54ab3d3bc7 Fix typo. 2019-10-21 21:13:03 +02:00
a0fe53dc24 Renamed MergeTexture to TexturePacker. 2019-10-21 21:11:11 +02:00
171016d075 Renamed the module to texture_packer. 2019-10-21 21:05:02 +02:00
8cd6a1e7e1 MergeTexture works now. 2019-10-21 20:57:39 +02:00
2c7c826558 More work. 2019-10-21 18:33:12 +02:00
5c4aa02eb8 Little work. 2019-10-21 12:18:31 +02:00
d36a770d22 Small experiments, and ran clang-format on the lib. 2019-10-21 00:06:09 +02:00
8629ce4c43 Temporarily added in the example from the library for a few initial tests. 2019-10-20 22:13:45 +02:00
35267a2c5c Let's use the legacy version of rectpack2D. 2019-10-20 21:46:36 +02:00
1eaeafb49a Added the rectpack2D library. (https://github.com/TeamHypersomnia/rectpack2D) 2019-10-20 21:23:33 +02:00