diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc9ae6..4e5e97d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,24 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [Version 1.8.0] - 2023-02-07 + +### Added + +- Not updating outputs when sources did not change. +- Added _scalings_. +- Added extrude modes _mirror_ and _repeat_. +- Added pack methods _rows_ and _columns_. +- Added output of _inputFilename_. + +### Changed + +- Removed -- commandline argument. + +### Fixed + +- Fixed debug output of vertices when rotated. + ## [Version 1.7.0] - 2023-01-26 ### Added @@ -68,6 +86,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fixed -- commandline arguments. - Fixed sample cpp.template. +[version 1.8.0]: https://github.com/houmain/spright/compare/1.7.0...1.8.0 [version 1.7.0]: https://github.com/houmain/spright/compare/1.6.0...1.7.0 [version 1.6.0]: https://github.com/houmain/spright/compare/1.5.0...1.6.0 [version 1.5.0]: https://github.com/houmain/spright/compare/1.4.0...1.5.0 diff --git a/README.md b/README.md index 277b228..7864c77 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ The following table contains a list of all definitions, with the subject each af | padding |output | [pixels], [pixels] | Sets the space between two sprites / the space between a sprite and the texture's border. | duplicates |output | dedupe-mode | Sets how identical sprites should be processed:
- _keep_ : Disable duplicate detection (default).
- _share_ : Identical sprites should share pixels on the output texture.
- _drop_ : Duplicates should be dropped. | alpha |output | alpha-mode
[color] | Sets an operation depending on the pixels' alpha values:
- _keep_ : Keep source color and alpha.
- _clear_ : Set color of fully transparent pixels to black.
- _bleed_ : Set color of fully transparent pixels to their nearest non-fully transparent pixel's color.
- _premultiply_ : Premultiply colors with alpha values.
- _colorkey_ : Replace fully transparent pixels with the specified _color_ and make all others opaque. -| scalings |output | ([scale-filter] scale)+ | Specifies one or more factors for which a respectively scaled output should be generated, with an optional explicit scale-filter:
- _box_: A trapezoid with 1-pixel wide ramps.
- _triangle_: A triangle function (same results as bilinear texture filtering).
- _cubicspline_: A cubic b-spline (gaussian-esque).
- _catmullrom_: An interpolating cubic spline.
- _mitchell_: Mitchell-Netrevalli filter with B=1/3, C=1/3. +| scalings |output | ([scale-filter] scale)+ | Specifies one or more factors for which a respectively scaled output should be generated, with an optional explicit scale-filter:
- _box_: A trapezoid with 1-pixel wide ramps.
- _triangle_: A triangle function (same as bilinear texture filtering).
- _cubicspline_: A cubic b-spline (gaussian-esque).
- _catmullrom_: An interpolating cubic spline.
- _mitchell_: Mitchell-Netrevalli filter with B=1/3, C=1/3. | layers |output/input| suffix+ | Specifies the number of layers and their filename suffixes (e.g. "-diffuse", "-normals", ...). Only the first layer is considered when packing, others get identical _rects_. | **input** |- | path | Adds a new input file at _path_. It can contain wildcards (e.g. "sprites/**/*.png") or it can describe an un-/bounded sequence of files (e.g. "frames_{0-}.png, frames_{0001-0013}.png"). | path |input | path | A _path_ which should be prepended to the input's path. diff --git a/src/Definition.cpp b/src/Definition.cpp index ddf1902..cc6a908 100644 --- a/src/Definition.cpp +++ b/src/Definition.cpp @@ -284,7 +284,7 @@ void apply_definition(Definition definition, state.scalings.push_back({ *scale, resize_filter }); } else if (const auto index = index_of(string, - { "default", "box", "bilinear", "cubicspline", + { "default", "box", "triangle", "cubicspline", "catmullrom", "mitchell" }); index >= 0) { resize_filter = static_cast(index); }