source: trunk/src/font.h @ 320

Last change on this file since 320 was 320, checked in by sam, 10 years ago

Display mashed monsterz statistics, up to 12 icons.

  • Property svn:keywords set to Id
File size: 856 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The Font class
13// --------------
14//
15
16#if !defined __DH_FONT_H__
17#define __DH_FONT_H__
18
19#include "entity.h"
20
21class FontData;
22
23class Font : public Entity
24{
25public:
26    Font(char const *path);
27    ~Font();
28
29protected:
30    /* Inherited from Entity */
31    virtual char const *GetName();
32    virtual void TickDraw(float deltams);
33
34public:
35    /* New methods */
36    void Print(int3 pos, char const *str);
37    void PrintBold(int3 pos, char const *str);
38
39private:
40    FontData *data;
41};
42
43#endif // __DH_FONT_H__
44
Note: See TracBrowser for help on using the repository browser.