TileInfo

Represents TileInfo that can be embedded into TGA and PNG files, also can be stored in other files.

Constructors

this
this(ubyte[] source, uint totalWidth, uint totalHeight)

Automatically generates itself from a bytestream.

this
this(ubyte tileWidth, ubyte tileHeight, uint totalWidth, uint totalHeight)

Creates a new instance from scratch.

Members

Functions

serialize
ubyte[] serialize()

Serializes itself into a bytestream.

Static variables

IDENTIFIER_PNG
enum char[4] IDENTIFIER_PNG;

Identifier for PNG ancillary chunk

IDENTIFIER_TGA
enum ushort IDENTIFIER_TGA;

Identifier for TGA developer extension

Structs

Header
struct Header

Header used for shared information.

IndexF
struct IndexF

Index used for individual info for each tile in the file.

IndexM
struct IndexM

Index used for individual info for each tile in memory.

Variables

header
Header header;

Header that stores all common data.

indexes
IndexM[] indexes;

Index for each tile in the file, even for "unused" tiles.

Meta