forked from ajstarks/openvg
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathshapes.h
65 lines (64 loc) · 3.14 KB
/
shapes.h
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
#include <VG/openvg.h>
#include <VG/vgu.h>
#include "fontinfo.h"
#if defined(__cplusplus)
extern "C" {
#endif
extern void Translate(VGfloat, VGfloat);
extern void Rotate(VGfloat);
extern void Shear(VGfloat, VGfloat);
extern void Scale(VGfloat, VGfloat);
extern void Text(VGfloat, VGfloat, char *, Fontinfo, int);
extern void TextMid(VGfloat, VGfloat, char *, Fontinfo, int);
extern void TextEnd(VGfloat, VGfloat, char *, Fontinfo, int);
extern VGfloat TextWidth(char *, Fontinfo, int);
extern void Cbezier(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat);
extern void Qbezier(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat);
extern void Polygon(VGfloat *, VGfloat *, VGint);
extern void Polyline(VGfloat *, VGfloat *, VGint);
extern void Rect(VGfloat, VGfloat, VGfloat, VGfloat);
extern void Line(VGfloat, VGfloat, VGfloat, VGfloat);
extern void Roundrect(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat);
extern void Ellipse(VGfloat, VGfloat, VGfloat, VGfloat);
extern void Circle(VGfloat, VGfloat, VGfloat);
extern void Arc(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat);
extern void Image(VGfloat, VGfloat, int, int, char *);
extern void Start(int, int);
extern void End();
extern void SaveEnd(char *);
extern void Background(unsigned int, unsigned int, unsigned int);
extern void BackgroundRGB(unsigned int, unsigned int, unsigned int, VGfloat);
extern void init(int *, int *);
extern void finish();
extern void setfill(VGfloat[4]);
extern void setstroke(VGfloat[4]);
extern void StrokeWidth(VGfloat);
extern void Stroke(unsigned int, unsigned int, unsigned int, VGfloat);
extern void Fill(unsigned int, unsigned int, unsigned int, VGfloat);
extern void RGBA(unsigned int, unsigned int, unsigned int, VGfloat, VGfloat[4]);
extern void RGB(unsigned int, unsigned int, unsigned int, VGfloat[4]);
extern void FillLinearGradient(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat *, int);
extern void FillRadialGradient(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat *, int);
extern void ClipRect(VGint x, VGint y, VGint w, VGint h);
extern void ClipEnd();
extern Fontinfo loadfont(const int *, const int *, const unsigned char *, const int *, const int *, const int *,
const short *, int);
extern void unloadfont(VGPath *, int);
extern void makeimage(VGfloat, VGfloat, int, int, VGubyte *);
extern void saveterm();
extern void restoreterm();
extern void rawterm();
extern void initWindowSize(int x, int y, unsigned int w, unsigned int h);
extern void WindowClear();
extern void WindowOpacity(unsigned int alpha);
extern void WindowPosition(int x, int y);
extern void CbezierOutline(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat);
extern void QbezierOutline(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat);
extern void RectOutline(VGfloat, VGfloat, VGfloat, VGfloat);
extern void RoundrectOutline(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat);
extern void EllipseOutline(VGfloat, VGfloat, VGfloat, VGfloat);
extern void CircleOutline(VGfloat, VGfloat, VGfloat);
extern void ArcOutline(VGfloat, VGfloat, VGfloat, VGfloat, VGfloat, VGfloat);
#if defined(__cplusplus)
}
#endif