summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/rltiles/tool/tile_page.h
blob: c63ae43a5a509b5141519a4d7577d379fca4ca09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef TILE_PAGE_H
#define TILE_PAGE_H

#include <vector>
#include <string>

class tile;

class tile_page
{
public:
    tile_page();
    virtual ~tile_page();

    bool place_images();
    bool write_image(const char *filename);

    int find(const std::string &enumname) const;
    bool add_synonym(const std::string &enumname, const std::string &syn);
    void add_variation(int var_idx, int base_idx, int colour);

    std::vector<tile*> m_tiles;
    std::vector<unsigned int> m_counts;
    std::vector<int> m_texcoords;
    std::vector<int> m_offsets;

protected:
    int m_width;
    int m_height;
};

#endif