libtcod
Loading...
Searching...
No Matches
tileset.hpp File Reference

Tileset module. More...

#include <array>
#include <filesystem>
#include <memory>
#include "error.hpp"
#include "tileset.h"

Go to the source code of this file.

Classes

struct  tcod::TilesetDeleter
class  tcod::Tileset
 A C++ Tileset container. More...

Namespaces

namespace  tcod
 The libtcod namespace.

Typedefs

typedef std::unique_ptr< TCOD_Tileset, TilesetDeletertcod::TilesetPtr
 A unique pointer to a TCOD_Tileset.

Functions

template<typename ArrayType>
auto tcod::load_tilesheet (const std::filesystem::path &path, const std::array< int, 2 > &columns_rows, const ArrayType &charmap) -> Tileset
 Load a tilesheet from a PNG file.

Detailed Description

Tileset module.