FTGL 2.4.0
FTTriangleExtractorGlyph.h
Go to the documentation of this file.
1/*
2 * FTGL - OpenGL font library
3 *
4 * Copyright (c) 2011 Richard Ulrich <richi@paraeasy.ch>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sublicense, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be
15 * included in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 */
25
26#ifndef __ftgl__
27# warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
28# include <FTGL/ftgl.h>
29#endif
30
31#ifndef __FTTriangleExtractorGlyph__
32#define __FTTriangleExtractorGlyph__
33
34#ifdef __cplusplus
35
36#include <vector>
37
43{
44 public:
56 FTTriangleExtractorGlyph(FT_GlyphSlot glyph, float outset, std::vector<float>& triangles);
57
62
70 virtual const FTPoint& Render(const FTPoint& pen, int renderMode);
71};
72
73#define FTPolyGlyph FTPolygonGlyph
74
75#endif //__cplusplus
76
78
91FTGL_EXPORT FTGLglyph *ftglCreateTriangleExtractorGlyph(FT_GlyphSlot glyph, float outset,
92 int useDisplayList);
93
95
96#endif // __FTTriangleExtractorGlyph__
97
struct _FTGLglyph FTGLglyph
Definition FTGlyph.h:134
FTGLglyph * ftglCreateTriangleExtractorGlyph(FT_GlyphSlot glyph, float outset, int useDisplayList)
Create a specialisation of FTGLglyph for creating tessellated polygon glyphs.
FTGlyph is the base class for FTGL glyphs.
Definition FTGlyph.h:51
FTPoint class is a basic 3-dimensional point or vector.
Definition FTPoint.h:43
FTPolygonGlyph is a specialisation of FTGlyph for creating tessellated polygon glyphs.
FTTriangleExtractorGlyph(FT_GlyphSlot glyph, float outset, std::vector< float > &triangles)
Constructor.
virtual ~FTTriangleExtractorGlyph()
Destructor.
virtual const FTPoint & Render(const FTPoint &pen, int renderMode)
Render this glyph at the current pen position.
#define FTGL_BEGIN_C_DECLS
Definition ftgl.h:43
#define FTGL_END_C_DECLS
Definition ftgl.h:44
#define FTGL_EXPORT
Definition ftgl.h:134