|
Porytiles
|
#include <cstddef>#include <map>#include <vector>#include "porytiles/domain/models/canonical_shape_tile.hpp"#include "porytiles/domain/models/pixel_tile.hpp"#include "porytiles/domain/models/shape_group.hpp"#include "porytiles/domain/models/shape_mask.hpp"#include "porytiles/domain/models/shape_tile.hpp"#include "porytiles/domain/models/supports_transparency.hpp"Go to the source code of this file.
Namespaces | |
| namespace | porytiles |
Functions | |
| template<SupportsTransparency PixelType, typename TransparencyPredicate > | |
| ShapeTile< PixelType > | porytiles::shape_tile_from_pixel_tile (const PixelTile< PixelType > &pixel_tile, TransparencyPredicate is_transparent_pred) |
| Converts a PixelTile to a ShapeTile by grouping pixels by color into ShapeMasks. | |
| template<SupportsTransparency PixelType> requires requires(const PixelType &c) { c.is_transparent(c); } | |
| std::vector< ShapeGroup< PixelType > > | porytiles::analyze_shape_groups (const std::vector< PixelTile< PixelType > > &tiles, const PixelType &extrinsic) |
| Analyzes a collection of pixel tiles and groups them by canonical shape for tile sharing analysis. | |