-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathftgl.sip
95 lines (69 loc) · 1.72 KB
/
ftgl.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
%Module FTGL 0
%ModuleHeaderCode
#include <FTGL/ftgl.h>
%End
class FTFont /PyName=Font, Abstract/
{
public:
FTFont( const char* fontFilePath);
bool Attach( const char* fontFilePath) /AutoGen/;
virtual bool FaceSize
( const unsigned int size, const unsigned int res = 72) /AutoGen/;
virtual void Depth( float depth) /AutoGen/;
void UseDisplayList( bool useList) /AutoGen/;
float Ascender() const /AutoGen/;
float Descender() const /AutoGen/;
float LineHeight() const /AutoGen/;
float Advance( const char* string) /AutoGen/;
virtual void Render( const char* string) /AutoGen/;
SIP_PYTUPLE BBox(const char*) /AutoGen/;
%MethodCode
float lowerX, lowerY, lowerZ, upperX, upperY, upperZ;
sipCpp->FTFont::BBox(a0, lowerX, lowerY, lowerZ, upperX, upperY, upperZ);
sipRes = sipBuildResult(&sipIsErr, "(ffffff)", lowerX, lowerY, lowerZ, upperX, upperY, upperZ);
%End
};
class FTGLOutlineFont : FTFont /PyName=OutlineFont/
{
public:
FTGLOutlineFont( const char* fontFilePath);
};
class FTGLPolygonFont : FTFont /PyName=PolygonFont/
{
public:
FTGLPolygonFont( const char* fontFilePath);
};
class FTGLExtrdFont : FTFont /PyName=ExtrdFont/
{
public:
FTGLExtrdFont( const char* fontFilePath);
};
class FTGLBitmapFont : FTFont /PyName=BitmapFont/
{
public:
FTGLBitmapFont( const char* fontFilePath);
};
class FTGLTextureFont : FTFont /PyName=TextureFont/
{
public:
FTGLTextureFont( const char* fontFilePath);
};
class FTGLPixmapFont : FTFont /PyName=PixmapFont/
{
public:
FTGLPixmapFont( const char* fontFilePath);
};
class BBox {
%TypeHeaderCode
#include <BBox.h>
%End
public:
BBox();
void setValuesUsingFont(FTFont* aFont, const char* aString);
float lowerX;
float lowerY;
float lowerZ;
float upperX;
float upperY;
float upperZ;
};