2
* FTGL - OpenGL font library
4
* Copyright (c) 2001-2004 Henry Maddocks <ftgl@opengl.geek.nz>
5
* Copyright (c) 2008 Sam Hocevar <sam@zoy.org>
6
* Copyright (c) 2008 Sean Morrison <learner@brlcad.org>
8
* Permission is hereby granted, free of charge, to any person obtaining
9
* a copy of this software and associated documentation files (the
10
* "Software"), to deal in the Software without restriction, including
11
* without limitation the rights to use, copy, modify, merge, publish,
12
* distribute, sublicense, and/or sell copies of the Software, and to
13
* permit persons to whom the Software is furnished to do so, subject to
14
* the following conditions:
16
* The above copyright notice and this permission notice shall be
17
* included in all copies or substantial portions of the Software.
19
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
# warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
30
# include <FTGL/ftgl.h>
33
#ifndef __FTOutlineGlyph__
34
#define __FTOutlineGlyph__
40
* FTOutlineGlyph is a specialisation of FTGlyph for creating outlines.
42
class FTGL_EXPORT FTOutlineGlyph : public FTGlyph
46
* Constructor. Sets the Error to Invalid_Outline if the glyphs isn't
49
* @param glyph The Freetype glyph to be processed
50
* @param outset outset distance
51
* @param useDisplayList Enable or disable the use of Display Lists
53
* <code>true</code> turns ON display lists.
54
* <code>false</code> turns OFF display lists.
56
FTOutlineGlyph(FT_GlyphSlot glyph, float outset, bool useDisplayList);
61
virtual ~FTOutlineGlyph();
64
* Render this glyph at the current pen position.
66
* @param pen The current pen position.
67
* @param renderMode Render mode to display
68
* @return The advance distance for this glyph.
70
virtual const FTPoint& Render(const FTPoint& pen, int renderMode);
78
* Create a specialisation of FTGLglyph for creating outlines.
80
* @param glyph The Freetype glyph to be processed
81
* @param outset outset contour size
82
* @param useDisplayList Enable or disable the use of Display Lists
84
* <code>true</code> turns ON display lists.
85
* <code>false</code> turns OFF display lists.
86
* @return An FTGLglyph* object.
88
FTGL_EXPORT FTGLglyph *ftglCreateOutlineGlyph(FT_GlyphSlot glyph, float outset,
93
#endif // __FTOutlineGlyph__