source: trunk/src/font.h @ 149

Last change on this file since 149 was 149, checked in by sam, 11 years ago

Get the timer to talk milliseconds instead of seconds.

  • Property svn:keywords set to Id
File size: 630 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Font class
8// --------------
9//
10
11#if !defined __DH_FONT_H__
12#define __DH_FONT_H__
13
14#include "entity.h"
15
16class FontData;
17
18class Font : public Entity
19{
20public:
21    Font(char const *path);
22    ~Font();
23
24protected:
25    /* Inherited from Entity */
26    virtual Group GetGroup();
27    virtual void TickRender(float deltams);
28
29public:
30    /* New methods */
31    char const *GetName();
32
33    void Print(int x, int y, char const *str);
34    void PrintBold(int x, int y, char const *str);
35
36private:
37    FontData *data;
38};
39
40#endif // __DH_FONT_H__
41
Note: See TracBrowser for help on using the repository browser.