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

#include <geometry.h>

Public Types

enum class  Mode { kNormal , kNonZero , kEvenOdd , 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 class 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.
26 /// The geometry may have overlapping triangles. The geometry should be
27 /// stenciled with the EvenOdd fill rule.
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 };
@ kNormal
Default priority level.
Definition: embedder.h:262

Member Data Documentation

◆ mode

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

Definition at line 38 of file geometry.h.

◆ transform

Matrix impeller::GeometryResult::transform

Definition at line 37 of file geometry.h.

◆ type

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

Definition at line 35 of file geometry.h.

◆ vertex_buffer

VertexBuffer impeller::GeometryResult::vertex_buffer

Definition at line 36 of file geometry.h.


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