Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
cf2glue.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* cf2glue.h */
4 /* */
5 /* Adobe's code for shared stuff (specification only). */
6 /* */
7 /* Copyright 2007-2013 Adobe Systems Incorporated. */
8 /* */
9 /* This software, and all works of authorship, whether in source or */
10 /* object code form as indicated by the copyright notice(s) included */
11 /* herein (collectively, the "Work") is made available, and may only be */
12 /* used, modified, and distributed under the FreeType Project License, */
13 /* LICENSE.TXT. Additionally, subject to the terms and conditions of the */
14 /* FreeType Project License, each contributor to the Work hereby grants */
15 /* to any individual or legal entity exercising permissions granted by */
16 /* the FreeType Project License and this section (hereafter, "You" or */
17 /* "Your") a perpetual, worldwide, non-exclusive, no-charge, */
18 /* royalty-free, irrevocable (except as stated in this section) patent */
19 /* license to make, have made, use, offer to sell, sell, import, and */
20 /* otherwise transfer the Work, where such license applies only to those */
21 /* patent claims licensable by such contributor that are necessarily */
22 /* infringed by their contribution(s) alone or by combination of their */
23 /* contribution(s) with the Work to which such contribution(s) was */
24 /* submitted. If You institute patent litigation against any entity */
25 /* (including a cross-claim or counterclaim in a lawsuit) alleging that */
26 /* the Work or a contribution incorporated within the Work constitutes */
27 /* direct or contributory patent infringement, then any patent licenses */
28 /* granted to You under this License for that Work shall terminate as of */
29 /* the date such litigation is filed. */
30 /* */
31 /* By using, modifying, or distributing the Work you indicate that you */
32 /* have read and understood the terms and conditions of the */
33 /* FreeType Project License as well as those provided in this section, */
34 /* and you accept them fully. */
35 /* */
36 /***************************************************************************/
37 
38 
39 #ifndef __CF2GLUE_H__
40 #define __CF2GLUE_H__
41 
42 
43 /* common includes for other modules */
44 #include "cf2error.h"
45 #include "cf2fixed.h"
46 #include "cf2arrst.h"
47 #include "cf2read.h"
48 
49 
51 
52 
53  /* rendering parameters */
54 
55  /* apply hints to rendered glyphs */
56 #define CF2_FlagsHinted 1
57  /* for testing */
58 #define CF2_FlagsDarkened 2
59 
60  /* type for holding the flags */
62 
63 
64  /* elements of a glyph outline */
65  typedef enum CF2_PathOp_
66  {
67  CF2_PathOpMoveTo = 1, /* change the current point */
68  CF2_PathOpLineTo = 2, /* line */
69  CF2_PathOpQuadTo = 3, /* quadratic curve */
70  CF2_PathOpCubeTo = 4 /* cubic curve */
71 
72  } CF2_PathOp;
73 
74 
75  /* a matrix of fixed point values */
76  typedef struct CF2_Matrix_
77  {
84 
85  } CF2_Matrix;
86 
87 
88  /* these typedefs are needed by more than one header file */
89  /* and gcc compiler doesn't allow redefinition */
90  typedef struct CF2_FontRec_ CF2_FontRec, *CF2_Font;
91  typedef struct CF2_HintRec_ CF2_HintRec, *CF2_Hint;
92 
93 
94  /* A common structure for all callback parameters. */
95  /* */
96  /* Some members may be unused. For example, `pt0' is not used for */
97  /* `moveTo' and `pt3' is not used for `quadTo'. The initial point `pt0' */
98  /* is included for each path element for generality; curve conversions */
99  /* need it. The `op' parameter allows one function to handle multiple */
100  /* element types. */
101 
102  typedef struct CF2_CallbackParamsRec_
103  {
108 
110 
112 
113 
114  /* forward reference */
117 
118  /* callback function pointers */
119  typedef void
120  (*CF2_Callback_Type)( CF2_OutlineCallbacks callbacks,
121  const CF2_CallbackParams params );
122 
123 
125  {
130 
131  CF2_Int windingMomentum; /* for winding order detection */
132 
135  };
136 
137 
139 
140 
141 #endif /* __CF2GLUE_H__ */
142 
143 
144 /* END */
#define CF2_Int
Definition: cf2types.h:65
int FT_Error
Definition: fttypes.h:296
CF2_F16Dot16 d
Definition: cf2glue.h:81
struct CF2_Matrix_ CF2_Matrix
CF2_F16Dot16 ty
Definition: cf2glue.h:83
struct CF2_FontRec_ * CF2_Font
Definition: cf2glue.h:90
void(* CF2_Callback_Type)(CF2_OutlineCallbacks callbacks, const CF2_CallbackParams params)
Definition: cf2glue.h:120
#define FT_END_HEADER
Definition: ftheader.h:54
CF2_Callback_Type quadTo
Definition: cf2glue.h:128
CF2_F16Dot16 a
Definition: cf2glue.h:78
struct CF2_CallbackParamsRec_ * CF2_CallbackParams
struct CF2_OutlineCallbacksRec_ * CF2_OutlineCallbacks
Definition: cf2glue.h:115
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
CF2_PathOp_
Definition: cf2glue.h:65
CF2_Callback_Type cubeTo
Definition: cf2glue.h:129
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
CF2_F16Dot16 b
Definition: cf2glue.h:79
CF2_Int CF2_RenderingFlags
Definition: cf2glue.h:61
struct CF2_CallbackParamsRec_ CF2_CallbackParamsRec
CF2_F16Dot16 c
Definition: cf2glue.h:80
enum CF2_PathOp_ CF2_PathOp
CF2_Callback_Type lineTo
Definition: cf2glue.h:127
FT_Int32 CF2_F16Dot16
Definition: cf2types.h:69
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
CF2_F16Dot16 tx
Definition: cf2glue.h:82
GLenum const GLfloat * params
CF2_Callback_Type moveTo
Definition: cf2glue.h:126
struct CF2_HintRec_ * CF2_Hint
Definition: cf2glue.h:91