| 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 19 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 20 of file geometry.h.

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

## Member Data Documentation

## ◆ mode

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

Definition at line 38 of file geometry.h.

Referenced by impeller::ColorSourceContents::DrawGeometry(), impeller::VerticesSimpleBlendContents::Render(), impeller::testing::TEST(), and impeller::testing::TEST_P().

## ◆ transform

Matrix impeller::GeometryResult::transform

Definition at line 37 of file geometry.h.

Referenced by impeller::ColorSourceContents::DrawGeometry(), impeller::VerticesSimpleBlendContents::Render(), and impeller::testing::TEST().

## ◆ type

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

Definition at line 35 of file geometry.h.

Referenced by impeller::Geometry::ComputePositionGeometry(), impeller::ColorSourceContents::DrawGeometry(), impeller::RectGeometry::GetPositionBuffer(), impeller::VerticesGeometry::GetPositionBuffer(), impeller::VerticesGeometry::GetPositionUVColorBuffer(), impeller::VerticesSimpleBlendContents::Render(), and impeller::testing::TEST().

## ◆ vertex_buffer

VertexBuffer impeller::GeometryResult::vertex_buffer

Definition at line 36 of file geometry.h.

Referenced by impeller::ColorSourceContents::DrawGeometry(), and impeller::VerticesSimpleBlendContents::Render().

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

- impeller/entity/geometry/geometry.h

impeller::FillType::kNonZero
@ kNonZero