aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include/GrAPI.h
blob: b660e8d869059206be7681ae5a49c12189dd5dc3 (plain)
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


class GrAPI {
public:

    void setRenderTarget(GrRenderTarget* target);

    void setMatrix(const GrMatrix&);

    void setClip(rect, bool aa);
    void setClip(rect[], bool aa);
    void setClip(path, bool aa);
    void setClip(rect, texture/key, state, matrix);
    void setClip(path, texture/key, state, matrix);
    
    void setColor(color);
    void setTexture(texture/key, sampler, const GrMatrix* = NULL);
    void setBlend(src, dst);
    
    void drawRect(const GrRect&, stroke, join);
    void drawOval(const GrRect&, stroke);
    void drawRoundRect(const GrRect&, GrScalar ovalW, GrScalar ovalH, stroke);
    void drawPath(const GrPathIter&, GrPathFill);
    void drawVertices(...);
    void drawGlyphs(const uint16_t[], int count, const GrPoint[], GrFontScaler*);

///

    void save();
    void restore();
    void concatMatrix(const GrMatrix&);
    void concatClipRect(const GrRect&);
    void concatClipPath(const GrPathIter&, bool aa);

};