 |
Flutter Impeller
|
|
Go to the documentation of this file.
19 .vertex_buffer = host_buffer.Emplace(
20 rect_.
GetPoints().data(), 8 *
sizeof(
float),
alignof(
float)),
25 .prevent_overdraw =
false,
30 GeometryResult RectGeometry::GetPositionUVBuffer(
Rect texture_coverage,
31 Matrix effect_transform,
32 const ContentContext& renderer,
34 RenderPass& pass)
const {
36 renderer, entity, pass);
43 std::optional<Rect> RectGeometry::GetCoverage(
const Matrix& transform)
const {
const Matrix & GetTransform() const
Get the global transform matrix for this Entity.
constexpr TRect TransformBounds(const Matrix &transform) const
Creates a new bounding box that contains this transformed rectangle.
const Matrix & GetOrthographicTransform() const
bool IsAxisAlignedRect() const override
constexpr std::array< TPoint< T >, 4 > GetPoints() const
Get the points that represent the 4 corners of this rectangle. The order is: Top left,...
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...
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()