Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
tessellator.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_TESSELLATOR_C_TESSELLATOR_H_
6#define FLUTTER_IMPELLER_TESSELLATOR_C_TESSELLATOR_H_
7
8#include <cstdint>
9
11
12#ifdef _WIN32
13#define IMPELLER_API __declspec(dllexport)
14#else
15#define IMPELLER_API __attribute__((visibility("default")))
16#endif
17
18extern "C" {
19
20namespace impeller {
21
23 float* points;
24 uint32_t length;
25};
26
28
30
32
34
35IMPELLER_API void CubicTo(PathBuilder* builder,
36 Scalar x1,
37 Scalar y1,
38 Scalar x2,
39 Scalar y2,
40 Scalar x3,
41 Scalar y3);
42
43IMPELLER_API void Close(PathBuilder* builder);
44
46 int fill_type,
47 Scalar tolerance);
48
50
51} // namespace impeller
52}
53
54#endif // FLUTTER_IMPELLER_TESSELLATOR_C_TESSELLATOR_H_
#define IMPELLER_API
Definition tessellator.h:15
double y
double x
float Scalar
Definition scalar.h:18
struct Vertices * Tessellate(PathBuilder *builder, int fill_type, Scalar tolerance)
PathBuilder * CreatePathBuilder()
void DestroyPathBuilder(PathBuilder *builder)
void DestroyVertices(Vertices *vertices)
void MoveTo(PathBuilder *builder, Scalar x, Scalar y)
void LineTo(PathBuilder *builder, Scalar x, Scalar y)
void CubicTo(PathBuilder *builder, Scalar x1, Scalar y1, Scalar x2, Scalar y2, Scalar x3, Scalar y3)
void Close(PathBuilder *builder)