FTGL: FTBufferGlyph.h Source File

FTGL 2.4.0

FTBufferGlyph.h
Go to the documentation of this file.
1 /*
2 * FTGL - OpenGL font library
3 *
4 * Copyright (c) 2008 Sam Hocevar <sam@hocevar.net>
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 Please use <FTGL/ftgl.h> instead of <FTBufferGlyph.h>.
28 # include <FTGL/ftgl.h>
29 #endif
30
31 #ifndef __FTBufferGlyph__
32 #define __FTBufferGlyph__
33
34 #ifdef __cplusplus
35
36
40 class FTGL_EXPORT FTBufferGlyph : public FTGlyph
41 {
42 public:
49 FTBufferGlyph(FT_GlyphSlot glyph, FTBuffer *buffer);
50
54 virtual ~FTBufferGlyph();
55
63 virtual const FTPoint& Render(const FTPoint& pen, int renderMode);
64 };
65
66 #endif //__cplusplus
67
68 #endif // __FTBufferGlyph__
69
ftgl.h
FTGlyph::Render
virtual const FTPoint & Render(const FTPoint &pen, int renderMode)=0
Renders this glyph at the current pen position.
FTBuffer
FTBuffer is a helper class for pixel buffers.
Definition: FTBuffer.h:45
FTGL_EXPORT
#define FTGL_EXPORT
Definition: ftgl.h:134
FTBufferGlyph
FTBufferGlyph is a specialisation of FTGlyph for memory buffer rendering.
Definition: FTBufferGlyph.h:40
FTPoint
FTPoint class is a basic 3-dimensional point or vector.
Definition: FTPoint.h:42
FTGlyph::FTBufferGlyph
friend class FTBufferGlyph
Definition: FTGlyph.h:71
FTGlyph
FTGlyph is the base class for FTGL glyphs.
Definition: FTGlyph.h:50