 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_
6 #define FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_
22 std::vector<uint16_t> indices,
23 std::vector<Point> texture_coordinates,
24 std::vector<Color> colors,
59 void NormalizeIndices();
63 std::vector<Point> vertices_;
64 std::vector<Color> colors_;
65 std::vector<Point> texture_coordinates_;
66 std::vector<uint16_t> indices_;
74 #endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_
A geometry that is created from a vertices object.
VerticesGeometry(std::vector< Point > vertices, std::vector< uint16_t > indices, std::vector< Point > texture_coordinates, std::vector< Color > colors, Rect bounds, VerticesGeometry::VertexMode vertex_mode)
GeometryResult GetPositionUVBuffer(Rect texture_coverage, Matrix effect_transform, const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
PrimitiveType
Decides how backend draws pixels based on input vertices.
bool HasVertexColors() const
GeometryResult GetPositionColorBuffer(const ContentContext &renderer, const Entity &entity, RenderPass &pass)
GeometryVertexType GetVertexType() const override
std::optional< Rect > GetCoverage(const Matrix &transform) const override
Render passes encode render commands directed as one specific render target into an underlying comman...
GeometryResult GetPositionBuffer(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
bool HasTextureCoordinates() const
A 4x4 matrix using column-major storage.
std::optional< Rect > GetTextureCoordinateCoverge() const
~VerticesGeometry()=default