summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-title.h
blob: a483bdbc155800a6714d6bd344ac0797946f83eb (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
#ifdef USE_TILE_LOCAL
#ifndef TILEREG_TITLE_H
#define TILEREG_TITLE_H

#include "tilebuf.h"
#include "tilereg.h"

class TitleRegion : public ControlRegion
{
public:
    TitleRegion(int width, int height, FontWrapper *font);

    virtual void render();
    virtual void clear() {};
    virtual void run();

    virtual int handle_mouse(MouseEvent &event) { return 0; }

    void update_message(string message);

protected:
    virtual void on_resize() {}

    GenericTexture m_img;
    VertBuffer m_buf;
    FontBuffer m_font_buf;
};

#endif
#endif