FTGL
2.1.3~rc5
src
FTGL
FTTextureGlyph.h
Go to the documentation of this file.
1
/*
2
* FTGL - OpenGL font library
3
*
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>
7
*
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:
15
*
16
* The above copyright notice and this permission notice shall be
17
* included in all copies or substantial portions of the Software.
18
*
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.
26
*/
27
28
#ifndef __ftgl__
29
# warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
30
# include <
FTGL/ftgl.h
>
31
#endif
32
33
#ifndef __FTTextureGlyph__
34
#define __FTTextureGlyph__
35
36
#ifdef __cplusplus
37
38
43
class
FTGL_EXPORT
FTTextureGlyph
:
public
FTGlyph
44
{
45
public
:
59
FTTextureGlyph
(FT_GlyphSlot glyph,
int
id
,
int
xOffset,
int
yOffset,
60
int
width,
int
height);
61
65
virtual
~
FTTextureGlyph
();
66
74
virtual
const
FTPoint
&
Render
(
const
FTPoint
& pen,
int
renderMode);
75
};
76
77
#endif //__cplusplus
78
79
FTGL_BEGIN_C_DECLS
80
92
FTGL_EXPORT
FTGLglyph
*
ftglCreateTextureGlyph
(FT_GlyphSlot glyph,
int
id
,
93
int
xOffset,
int
yOffset,
94
int
width,
int
height);
95
96
FTGL_END_C_DECLS
97
98
#endif // __FTTextureGlyph__
99
ftgl.h
FTGlyph::Render
virtual const FTPoint & Render(const FTPoint &pen, int renderMode)=0
Renders this glyph at the current pen position.
FTGlyph::FTTextureGlyph
friend class FTTextureGlyph
Definition:
FTGlyph.h:76
FTGL_EXPORT
#define FTGL_EXPORT
Definition:
ftgl.h:107
FTPoint
FTPoint class is a basic 3-dimensional point or vector.
Definition:
FTPoint.h:42
ftglCreateTextureGlyph
FTGLglyph * ftglCreateTextureGlyph(FT_GlyphSlot glyph, int id, int xOffset, int yOffset, int width, int height)
Create a specialisation of FTGLglyph for creating pixmaps.
FTGL_END_C_DECLS
#define FTGL_END_C_DECLS
Definition:
ftgl.h:44
FTGL_BEGIN_C_DECLS
#define FTGL_BEGIN_C_DECLS
Definition:
ftgl.h:43
FTGLglyph
struct _FTGLglyph FTGLglyph
Definition:
FTGlyph.h:133
FTTextureGlyph
FTTextureGlyph is a specialisation of FTGlyph for creating texture glyphs.
Definition:
FTTextureGlyph.h:43
FTGlyph
FTGlyph is the base class for FTGL glyphs.
Definition:
FTGlyph.h:50
Generated by
1.8.13