| 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 26 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 27 of file geometry.h.

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

## Member Data Documentation

## ◆ mode

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

Definition at line 45 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 44 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 42 of file geometry.h.

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

## ◆ vertex_buffer

VertexBuffer impeller::GeometryResult::vertex_buffer

Definition at line 43 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