Porytiles
Loading...
Searching...
No Matches
tile_extractors.hpp File Reference
Include dependency graph for tile_extractors.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  porytiles
 

Functions

template<typename PixelType >
std::vector< PixelTile< PixelType > > porytiles::extract_tiles_from_image (const Image< PixelType > &img, std::size_t tile_offset, std::size_t tile_count, std::size_t tiles_per_row=16)
 Extracts a subset of 8x8 tiles from a tileset image at a specific offset.
 
template<typename PixelType >
std::vector< PixelTile< PixelType > > porytiles::extract_tiles_from_image (const Image< PixelType > &img)
 Extracts all 8x8 tiles from an image in row-major order.
 
template<typename PixelType >
PixelTile< PixelType > porytiles::extract_single_tile (const Image< PixelType > &img, std::size_t tile_idx, std::size_t tiles_per_row=metatile::metatiles_per_row *metatile::tiles_per_side)
 Extracts a single tile from an image at a given tile index.