 |
Flutter Impeller
|
|
Go to the documentation of this file.
21 .vertex_buffer = host_buffer.Emplace(
22 rect_.
GetPoints().data(), 8 *
sizeof(
float),
alignof(
float)),
28 .prevent_overdraw =
false,
33 GeometryResult RectGeometry::GetPositionUVBuffer(
Rect texture_coverage,
34 Matrix effect_transform,
35 const ContentContext& renderer,
39 renderer, entity, pass);
46 std::optional<Rect> RectGeometry::GetCoverage(
const Matrix& transform)
const {
constexpr TRect TransformBounds(const Matrix &transform) const
Creates a new bounding box that contains this transformed rectangle.
constexpr std::array< TPoint< T >, 4 > GetPoints() const
Get the points that represent the 4 corners of this rectangle. The order is: Top left,...
const Matrix & GetTransformation() const
ISize GetRenderTargetSize() const
constexpr bool IsTranslationScaleOnly() const
Returns true if the matrix has a scale-only basis and is non-projective. Note that an identity matrix...
@ kNone
Does not use the index buffer.
constexpr bool Contains(const TPoint< Type > &p) const
Render passes encode render commands directed as one specific render target into an underlying comman...
static constexpr Matrix MakeOrthographic(TSize< T > size)
bool CoversArea(const Matrix &transform, const Rect &rect) const override
Determines if this geometry, transformed by the given transform, will completely cover all surface ar...
GeometryResult ComputeUVGeometryForRect(Rect source_rect, Rect texture_coverage, Matrix effect_transform, const ContentContext &renderer, const Entity &entity, RenderPass &pass)
A 4x4 matrix using column-major storage.
HostBuffer & GetTransientsBuffer()