source: trunk/src/font.h @ 154

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

Refactor stuff.

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