This commit just changes our saving API (i.e. the GimpSaveProcedure class) to take an array of drawables as argument instead of a single drawable. It actually doesn't matter much for exporting as the whole API seems more or less bogus there and all formats plug-ins mostly care only whether they will merge/flatten all visible layers (the selected ones don't really matter) or if the format supports layers of some sort. It may be worth later strengthening a bit this whole logics, and maybe allow partial exports for instance. As for saving, it was not even looking at the passed GimpDrawable either and was simply re-querying the active layer anyway. Note that I don't implement the multi-selection saving in XCF yet in this commit. I only updated the API. The reason is that the current commit won't be backportable to gimp-2-10 because it is an API break. On the other hand, the code to save multi-selection can still be backported even though the save() API will only pass a single drawable (as I said anyway, this argument was mostly bogus until now, hence it doesn't matter much for 2.10 logics). |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| color.c | ||
| color.h | ||
| COPYING | ||
| dds.c | ||
| dds.h | ||
| ddsread.c | ||
| ddsread.h | ||
| ddswrite.c | ||
| ddswrite.h | ||
| dxt.c | ||
| dxt.h | ||
| dxt_tables.h | ||
| endian_rw.h | ||
| imath.h | ||
| LICENSE | ||
| LICENSE.nvtt | ||
| Makefile.am | ||
| meson.build | ||
| mipmap.c | ||
| mipmap.h | ||
| misc.c | ||
| misc.h | ||
| README | ||
| README.dxt | ||
| TODO | ||
| vec.h | ||
DDS plugin for The GIMP
(C) 2004-2012 Shawn Kirst <skirst@gmail.com>,
with parts (C) 2003 Arne Reuter <homepage@arnereuter.de> where specified.
==========================================
This is a plugin for GIMP version 2.4.x. It allows you to load and save
images in Direct Draw Surface (DDS) format.
Features
==========================================
* Load/Save DDS files using DXT texture compression
* Automatic mipmap generation on save
* Load mipmaps into separate layers
* Load cube map faces and volume map slices into separate layers
* Cube and volume map saving
* Pixel conversion selection for custom formats (RGBA4, R5G6B5, RGB10A2, etc.)
* Load/save DDS files, optionally using DirectX texture compression (DXT)
* Optional automatic mipmap generation when saving
* Load mipmaps into separate layers
* Load cube map faces and volume map slices into separate layers
* Save cube maps and volume maps with automatic mipmap generation support
* Save image with a custom pixel format
* Non-power-of-two image loading and saving support with automatic mipmap generation support
* Compliant with DirectX 10 compressed formats
Installation
==========================================
See the file INSTALL for installation instructions