diff options
author | Vladimir Menshakov | 2009-09-03 20:59:17 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-09-03 20:59:17 +0000 |
commit | ebe1b94eb1561b566124b7dcbb73cf3b0a659b33 (patch) | |
tree | d4f182bc5b5b46ce5933913a1a8066dc089889ea /engines/teenagent/font.h | |
parent | 9b2104db32d074886daa0ec48624193351d6ed51 (diff) | |
download | scummvm-rg350-ebe1b94eb1561b566124b7dcbb73cf3b0a659b33.tar.gz scummvm-rg350-ebe1b94eb1561b566124b7dcbb73cf3b0a659b33.tar.bz2 scummvm-rg350-ebe1b94eb1561b566124b7dcbb73cf3b0a659b33.zip |
imported teenagent engine sources.
svn-id: r43922
Diffstat (limited to 'engines/teenagent/font.h')
-rw-r--r-- | engines/teenagent/font.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/engines/teenagent/font.h b/engines/teenagent/font.h new file mode 100644 index 0000000000..1012a1cf33 --- /dev/null +++ b/engines/teenagent/font.h @@ -0,0 +1,48 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL: https://www.switchlink.se/svn/teen/font.h $ + * $Id: font.h 173 2009-08-11 08:10:22Z megath $ + */ + +#ifndef TEENAGENT_FONT_H__ +#define TEENAGENT_FONT_H__ + +#include "graphics/surface.h" + +namespace TeenAgent { +class Font { +public: + byte grid_color, color; + + Font(); + void load(int id); + uint render(Graphics::Surface *surface, int x, int y, const Common::String &str, bool grid = false); + uint render(Graphics::Surface *surface, int x, int y, char c); + static void grid(Graphics::Surface *surface, int x, int y, int w, int h, byte color); + + ~Font(); +private: + byte *data; +}; +} + +#endif + |