coastline 0.0.4
Loading...
Searching...
No Matches
iconfile.h File Reference
#include <cstdint>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for iconfile.h:

Go to the source code of this file.

Classes

struct  coastline::IconEntry
 One image of an icon file. More...
struct  coastline::IconPixels
 An image of an icon as 8-bit RGBA texels. More...
struct  coastline::IconSize
 The size of an image of the icon of the game, from the name of its PNG file. More...

Namespaces

namespace  coastline

Functions

std::optional< IconSize > coastline::ParseIconName (std::string_view name)
 Read the size of an image of the icon from the name the import gives its PNG file.
std::string coastline::IconName (const IconSize &size)
 Give the name of the PNG file of an image of the icon.
std::vector< IconEntry > coastline::ListIconImages (std::span< const std::uint8_t > icon)
 List the images of an icon file.
std::optional< IconPixels > coastline::DecodeIconBitmap (std::span< const std::uint8_t > image)
 Decode an icon image that is a device-independent bitmap: the colours, then the AND mask that makes a pixel transparent.