Porytiles
Loading...
Searching...
No Matches
shape_group_metadata.hpp File Reference
#include <cstddef>
#include <map>
#include <vector>
#include "porytiles/domain/models/rgba32.hpp"
#include "porytiles/domain/models/shape_group.hpp"
#include "porytiles/domain/packing/models/packable_tile.hpp"
Include dependency graph for shape_group_metadata.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  porytiles::ShapeGroupMetadata
 Metadata that maps PackableTile IDs to shape group membership for sharing-aware packing. More...
 

Namespaces

namespace  porytiles
 

Functions

ShapeGroupMetadata porytiles::build_shape_group_metadata (const std::vector< ShapeGroup< Rgba32 > > &shape_groups, const std::vector< PackableTile::Id > &combined_index_to_id)
 Builds ShapeGroupMetadata from shape groups and a combined-index-to-ID mapping.