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,
51 void NormalizeIndices();
55 std::vector<Point> vertices_;
56 std::vector<Color> colors_;
57 std::vector<Point> texture_coordinates_;
58 std::vector<uint16_t> indices_;
Render passes encode render commands directed as one specific render target into an underlying comman...
A geometry that is created from a vertices object.
bool HasTextureCoordinates() const
std::optional< Rect > GetCoverage(const Matrix &transform) const override
std::optional< Rect > GetTextureCoordinateCoverge() const
GeometryResult GetPositionUVColorBuffer(Rect texture_coverage, Matrix effect_transform, const ContentContext &renderer, const Entity &entity, RenderPass &pass) const
GeometryResult GetPositionBuffer(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
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)
~VerticesGeometry()=default
bool HasVertexColors() const
Optional< SkRect > bounds
PODArray< SkColor > colors
PrimitiveType
Decides how backend draws pixels based on input vertices.
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
A 4x4 matrix using column-major storage.