Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > b7784b024bf0aaa96a4797b23fdf5f58 > files > 128

adonthell-debug-0.3.5-1mdv2009.1.x86_64.rpm

/*
   $Id: win_ttf.h,v 1.3 2008/01/19 16:04:00 ksterker Exp $
   
   (C) Copyright 2004 Kai Sterker
   Part of the Adonthell Project http://adonthell.linuxgames.com

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details
*/

#ifndef WIN_TTF_H
#define WIN_TTF_H

#include <SDL/SDL_ttf.h>
#include "win_font.h"

class win_ttf : public win_font
{
public:
    win_ttf (const char *color, const string & file);
    ~win_ttf ();
    
    bool load (const string & file);
  	bool in_table (u_int16 tmp);
    image & operator[] (u_int16);

private:
    SDL_Color Color;
    static TTF_Font *ttf;
    static u_int32 refcount;
};

#endif // WIN_TTF_H