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