Flutter Impeller
cover_geometry.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
#pragma once
6
7
#include "
impeller/entity/geometry/geometry.h
"
8
9
namespace
impeller
{
10
11
/// @brief A geometry that implements "drawPaint" like behavior by covering
12
/// the entire render pass area.
13
class
CoverGeometry
:
public
Geometry
{
14
public
:
15
CoverGeometry
();
16
17
~CoverGeometry
();
18
19
// |Geometry|
20
bool
CoversArea
(
const
Matrix
& transform,
const
Rect
& rect)
const override
;
21
22
private
:
23
// |Geometry|
24
GeometryResult
GetPositionBuffer(
const
ContentContext
& renderer,
25
const
Entity
& entity,
26
RenderPass
& pass)
override
;
27
28
// |Geometry|
29
GeometryVertexType
GetVertexType()
const override
;
30
31
// |Geometry|
32
std::optional<Rect> GetCoverage(
const
Matrix
& transform)
const override
;
33
34
// |Geometry|
35
GeometryResult
GetPositionUVBuffer(
Rect
texture_coverage,
36
Matrix
effect_transform,
37
const
ContentContext
& renderer,
38
const
Entity
& entity,
39
RenderPass
& pass)
override
;
40
41
FML_DISALLOW_COPY_AND_ASSIGN(
CoverGeometry
);
42
};
43
44
}
// namespace impeller
impeller::CoverGeometry::~CoverGeometry
~CoverGeometry()
impeller::GeometryVertexType
GeometryVertexType
Definition:
geometry.h:25
impeller::CoverGeometry::CoversArea
bool CoversArea(const Matrix &transform, const Rect &rect) const override
Determines if this geometry, transformed by the given transform, will completely cover all surface ar...
Definition:
cover_geometry.cc:60
impeller::Entity
Definition:
entity.h:21
geometry.h
impeller::GeometryResult
Definition:
geometry.h:18
impeller::CoverGeometry::CoverGeometry
CoverGeometry()
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition:
render_pass.h:27
impeller::Geometry
Definition:
geometry.h:54
impeller::CoverGeometry
A geometry that implements "drawPaint" like behavior by covering the entire render pass area.
Definition:
cover_geometry.h:13
impeller
Definition:
aiks_context.cc:10
impeller::ContentContext
Definition:
content_context.h:344
impeller::TRect< Scalar >
impeller::Matrix
A 4x4 matrix using column-major storage.
Definition:
matrix.h:36
impeller
entity
geometry
cover_geometry.h
Generated by
1.8.17