Adonthell  0.4
win_ttf.h
1 /*
2  $Id: win_ttf.h,v 1.3 2008/01/19 16:04:00 ksterker Exp $
3 
4  (C) Copyright 2004 Kai Sterker
5  Part of the Adonthell Project http://adonthell.linuxgames.com
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details
13 */
14 
15 #ifndef WIN_TTF_H
16 #define WIN_TTF_H
17 
18 #include <SDL/SDL_ttf.h>
19 #include "win_font.h"
20 
21 class win_ttf : public win_font
22 {
23 public:
24  win_ttf (const char *color, const string & file);
25  ~win_ttf ();
26 
27  bool load (const string & file);
28  bool in_table (u_int16 tmp);
29  image & operator[] (u_int16);
30 
31 private:
32  SDL_Color Color;
33  static TTF_Font *ttf;
34  static u_int32 refcount;
35 };
36 
37 #endif // WIN_TTF_H
38