Merge from development branch heightmap to main.
[scorched3d.git] / src / client / GLEXT / GLFont2dFreeType.h
blob5910d68ef2c1f46b495c7c23356b1309c16660d0
1 ////////////////////////////////////////////////////////////////////////////////
2 // Scorched3D (c) 2000-2003
3 //
4 // This file is part of Scorched3D.
5 //
6 // Scorched3D is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // Scorched3D is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with Scorched3D; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 ////////////////////////////////////////////////////////////////////////////////
21 #ifndef _GLFONT2DFREETYPE_H_
22 #define _GLFONT2DFREETYPE_H_
24 #include <GLEXT/GLFont2dStorage.h>
25 #include <ft2build.h>
26 #include <freetype/freetype.h>
27 #include <freetype/ftglyph.h>
28 #include <freetype/ftoutln.h>
29 #include <freetype/fttrigon.h>
30 #include <string>
32 class GLFont2dFreeType
34 public:
35 GLFont2dFreeType();
36 ~GLFont2dFreeType();
38 bool createFont(const std::string &typeFace, unsigned int h, bool makeShadow);
39 bool createCharacter(unsigned int ch, GLFont2dStorage::CharEntry *character);
41 protected:
42 bool makeShadow_;
44 FT_Library library_;
46 // The Object In Which FreeType Holds Information On A Given
47 // Font Is Called A "face".
48 FT_Face face_;
51 #endif /* _GLFONT2DFREETYPE_H_ */