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> GetTextureCoordinateCoverage() const = 0;
27 };
28 
29 } // namespace impeller
30 
31 #endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:30
A geometry that is created from a vertices object.
virtual std::optional< Rect > GetTextureCoordinateCoverage() const =0
virtual bool HasVertexColors() const =0
virtual bool HasTextureCoordinates() const =0
virtual GeometryResult GetPositionUVColorBuffer(Rect texture_coverage, Matrix effect_transform, const ContentContext &renderer, const Entity &entity, RenderPass &pass) const =0
A 4x4 matrix using column-major storage.
Definition: matrix.h:37