8#include <unordered_map>
13#include <boost/filesystem.hpp>
70 static void FindCellDimensions(
unsigned int& outputWidth,
unsigned int& outputHeight, std::unordered_map<std::uint32_t, std::pair<GlyphMetrics, ImageData>>& fontAtlas);
85 static void CalculateGridDimensions(
unsigned int& outputNumberOfColumns,
unsigned int& outputNumberOfRows, std::unordered_map<std::uint32_t, std::pair<GlyphMetrics, ImageData>>& fontAtlas);
Represents raw 2D image data stored in memory.
Builds texture atlases from collections of images.
void FindCellDimensions(unsigned int &outputWidth, unsigned int &outputHeight)
Computes maximum cell dimensions for the stored images.
bool CreateTextureAtlas(std::map< char, std::pair< unsigned int, unsigned int > > &texAtlasData, ImageData &texAtlasImage)
Creates a texture atlas from the stored image collection.
TextureAtlasMaker(std::map< char, ImageData > images)
Constructs an atlas maker from a collection of images.
std::map< char, ImageData > mImageCollection
static const Color sDefaultPaletteBackgroundColor
void CalculateGridDimensions(unsigned int &outputNumberOfColumns, unsigned int &outputNumberOfRows)
Calculates grid dimensions for the stored images.
~TextureAtlasMaker()=default
Represents a color with red, green, blue, and alpha channels.