| Flutter Impeller |

vertices_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 #ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_
6 #define FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_
7
8 #include "impeller/entity/geometry/geometry.h"
9
10 namespace impeller {
11
12 /// @brief A geometry that is created from a vertices object.
13 class VerticesGeometry : public Geometry {
14 public:
15 virtual GeometryResult GetPositionUVColorBuffer(
16 Rect texture_coverage,
17 Matrix effect_transform,
18 const ContentContext& renderer,
19 const Entity& entity,
20 RenderPass& pass) const = 0;
21
22 virtual bool HasVertexColors() const = 0;
23
24 virtual bool HasTextureCoordinates() const = 0;
25
26 virtual std::optional<Rect> GetTextureCoordinateCoverage() const = 0;
27 };
28
29 } // namespace impeller
30
31 #endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_
impeller::ContentContext
Definition: content_context.h:122
impeller::Entity
Definition: entity.h:26
impeller::Geometry
Definition: geometry.h:50
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:30
impeller::VerticesGeometry
A geometry that is created from a vertices object.
Definition: vertices_geometry.h:13
impeller::VerticesGeometry::GetTextureCoordinateCoverage
virtual std::optional< Rect > GetTextureCoordinateCoverage() const =0
impeller::VerticesGeometry::HasVertexColors
virtual bool HasVertexColors() const =0
impeller::VerticesGeometry::HasTextureCoordinates
virtual bool HasTextureCoordinates() const =0
impeller::VerticesGeometry::GetPositionUVColorBuffer
virtual GeometryResult GetPositionUVColorBuffer(Rect texture_coverage, Matrix effect_transform, const ContentContext &renderer, const Entity &entity, RenderPass &pass) const =0
geometry.h
impeller
Definition: allocation.cc:12
impeller::GeometryResult
Definition: geometry.h:21
impeller::Matrix
A 4x4 matrix using column-major storage.
Definition: matrix.h:37
impeller::TRect< Scalar >