| Flutter Impeller |

Public Types | Public Attributes | List of all members
impeller::GeometryResult Struct Reference

`#include <geometry.h>`

## Public Types
enum | Mode { Mode::kNormal, Mode::kNonZero, Mode::kEvenOdd, Mode::kPreventOverdraw }

## Public Attributes
PrimitiveType | type = PrimitiveType::kTriangleStrip
VertexBuffer | vertex_buffer
Matrix | transform
Mode | mode = Mode::kNormal

## Detailed Description

Definition at line 20 of file geometry.h.

## Member Enumeration Documentation

## ◆ Mode

enum impeller::GeometryResult::Mode
| strong

Enumerator
kNormal | The geometry has no overlapping triangles.
kNonZero | The geometry may have overlapping triangles. The geometry should be stenciled with the NonZero fill rule.
kEvenOdd | The geometry may have overlapping triangles. The geometry should be stenciled with the EvenOdd fill rule.
kPreventOverdraw | The geometry may have overlapping triangles, but they should not overdraw or cancel each other out. This is a special case for stroke geometry.

Definition at line 21 of file geometry.h.

21 {
22 /// The geometry has no overlapping triangles.
23 kNormal,
24 /// The geometry may have overlapping triangles. The geometry should be
25 /// stenciled with the NonZero fill rule.
26 kNonZero,
27 /// The geometry may have overlapping triangles. The geometry should be
28 /// stenciled with the EvenOdd fill rule.
29 kEvenOdd,
30 /// The geometry may have overlapping triangles, but they should not
31 /// overdraw or cancel each other out. This is a special case for stroke
32 /// geometry.
33 kPreventOverdraw,
34 };

## Member Data Documentation

## ◆ mode

Mode impeller::GeometryResult::mode = Mode::kNormal

Definition at line 39 of file geometry.h.

Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().

## ◆ transform

Matrix impeller::GeometryResult::transform

Definition at line 38 of file geometry.h.

Referenced by impeller::testing::TEST().

## ◆ type

PrimitiveType impeller::GeometryResult::type = PrimitiveType::kTriangleStrip

Definition at line 36 of file geometry.h.

Referenced by impeller::Geometry::ComputePositionGeometry(), impeller::Geometry::ComputePositionUVGeometry(), impeller::ComputeUVGeometryForRect(), impeller::RectGeometry::GetPositionBuffer(), impeller::VerticesGeometry::GetPositionBuffer(), impeller::VerticesGeometry::GetPositionColorBuffer(), impeller::VerticesGeometry::GetPositionUVBuffer(), and impeller::testing::TEST().

## ◆ vertex_buffer

VertexBuffer impeller::GeometryResult::vertex_buffer

Definition at line 37 of file geometry.h.

The documentation for this struct was generated from the following file:

- impeller/entity/geometry/geometry.h

impeller::FillType::kNonZero
@ kNonZero