blob: b660e8d869059206be7681ae5a49c12189dd5dc3 [file] [log] [blame]
reed@google.comac10a2d2010-12-22 21:39:39 +00001
2
3class GrAPI {
4public:
5
6 void setRenderTarget(GrRenderTarget* target);
7
8 void setMatrix(const GrMatrix&);
9
10 void setClip(rect, bool aa);
11 void setClip(rect[], bool aa);
12 void setClip(path, bool aa);
13 void setClip(rect, texture/key, state, matrix);
14 void setClip(path, texture/key, state, matrix);
15
16 void setColor(color);
17 void setTexture(texture/key, sampler, const GrMatrix* = NULL);
18 void setBlend(src, dst);
19
20 void drawRect(const GrRect&, stroke, join);
21 void drawOval(const GrRect&, stroke);
22 void drawRoundRect(const GrRect&, GrScalar ovalW, GrScalar ovalH, stroke);
23 void drawPath(const GrPathIter&, GrPathFill);
24 void drawVertices(...);
25 void drawGlyphs(const uint16_t[], int count, const GrPoint[], GrFontScaler*);
26
27///
28
29 void save();
30 void restore();
31 void concatMatrix(const GrMatrix&);
32 void concatClipRect(const GrRect&);
33 void concatClipPath(const GrPathIter&, bool aa);
34
35};
36
37