Commit Graph

57 Commits

Author SHA1 Message Date
Relintai 604c330188 Added a new getter. 2019-11-08 09:18:55 +01:00
Relintai 2b901b0731 Fix android build. 2019-10-31 02:15:58 +01:00
Relintai 0dd28a6525 Now the initial width and height of the main texture will be set properly even if the first added texture is an AtlasTexture. 2019-10-30 20:32:08 +01:00
Relintai e865e55db0 Added TextureLayerMerger. 2019-10-30 20:24:50 +01:00
Relintai 3597ba1e3d Small improvement to README.md, also typo fixes. 2019-10-28 01:28:37 +01:00
Relintai 01e64f5163 Fix logic in last commit. 2019-10-26 19:26:51 +02:00
Relintai 3159f588ad Implemented support for input image format RGB8. 2019-10-26 18:19:28 +02:00
Relintai 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
Relintai 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
Relintai 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
Relintai 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
Relintai 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
Relintai 4bdea3cc56 TextureMerger's set_textures will now clean up textures in the packer properly. 2019-10-23 16:03:59 +02:00
Relintai 7804575cf6 Both automatic_merge and keep_original_atlases in TextureMerger is false by default now. 2019-10-23 16:01:20 +02:00
Relintai ff60ad4207 Added a "texture_added" signal, and the 2 signals are also available as vmethods now. 2019-10-23 16:00:09 +02:00
Relintai f65c1ba2ec Changed the saved extension for the importer. 2019-10-22 21:02:12 +02:00
Relintai 1fbde4fc19 Update README.md 2019-10-22 20:12:43 +02:00
Relintai 41b82300ae Updated README.md 2019-10-22 20:11:43 +02:00
Relintai aa6ab9ce9d Update README.md 2019-10-22 20:01:09 +02:00
Relintai 0fd27051de Update README.md 2019-10-22 19:55:49 +02:00
Relintai ee9998131d Update README.md 2019-10-22 19:55:40 +02:00
Relintai dfab12c55d Udpate README.md 2019-10-22 19:55:31 +02:00
Relintai de0e117c7e Update README.md 2019-10-22 19:55:21 +02:00
Relintai b6530cdf15 Update README.md 2019-10-22 19:54:46 +02:00
Relintai 92e35aa199 Readme.md. 2019-10-22 16:56:22 +02:00
Relintai 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
Relintai b0b34add3f Added the new resource, and it's importer to the build, and fixed compile. 2019-10-22 11:53:49 +02:00
Relintai b731f18615 Work on an image resource class, and a custom importer. 2019-10-22 04:22:32 +02:00
Relintai 8d8e20a396 Docs setup. 2019-10-22 02:10:35 +02:00
Relintai c9cef93510 Added missing editor_hint check. 2019-10-22 01:07:53 +02:00
Relintai 63b908afb6 Added "automatic_merge" property, and a "texture_merged" signal. 2019-10-22 01:00:39 +02:00
Relintai 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
Relintai d94977de50 The merger now won't have the REPEAT texture flag by default. 2019-10-22 00:18:27 +02:00
Relintai 95fbb4668b Added a TextureMerger Node. 2019-10-22 00:17:11 +02:00
Relintai 280dabf737 Implemented margins. 2019-10-22 00:03:04 +02:00
Relintai 1d8256548c Added a background_color property. 2019-10-21 23:42:53 +02:00
Relintai 6a6b844823 Avoid cast. 2019-10-21 23:26:30 +02:00
Relintai 4de8140563 Fix small mistake. 2019-10-21 23:25:51 +02:00
Relintai 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
Relintai 37043e7b2d Implemented reference counting. 2019-10-21 23:18:06 +02:00
Relintai fe6c61d22d Added clear(). 2019-10-21 23:04:11 +02:00
Relintai 9718212b9d Removed the TODO comment. 2019-10-21 23:01:46 +02:00
Relintai 63d9273326 Implemented proper support for adding AtlasTextures. Also implemented support for the keep_original_atlases property. 2019-10-21 22:38:51 +02:00
Relintai ec68fea42f Added 3 tweakable properties. (keep_original_atlases is not yet implemented). 2019-10-21 21:29:42 +02:00
Relintai b26b97d728 Removed the test method. 2019-10-21 21:15:30 +02:00
Relintai 54ab3d3bc7 Fix typo. 2019-10-21 21:13:03 +02:00
Relintai a0fe53dc24 Renamed MergeTexture to TexturePacker. 2019-10-21 21:11:11 +02:00
Relintai 171016d075 Renamed the module to texture_packer. 2019-10-21 21:05:02 +02:00
Relintai 8cd6a1e7e1 MergeTexture works now. 2019-10-21 20:57:39 +02:00
Relintai 2c7c826558 More work. 2019-10-21 18:33:12 +02:00