5 #ifndef FLUTTER_IMPELLER_ENTITY_ENTITY_H_
6 #define FLUTTER_IMPELLER_ENTITY_ENTITY_H_
112 void SetContents(std::shared_ptr<Contents> contents);
114 const std::shared_ptr<Contents>&
GetContents()
const;
184 std::shared_ptr<Contents> contents_;
186 uint32_t clip_depth_ = 1u;
void SetTransform(const Matrix &transform)
Set the global transform matrix for this Entity.
std::optional< Rect > GetCoverage() const
bool SetInheritedOpacity(Scalar alpha)
@ kSubpassPrependSnapshotTransform
@ kSubpassAppendSnapshotTransform
const std::shared_ptr< Contents > & GetContents() const
Matrix GetShaderTransform(const RenderPass &pass) const
void SetClipDepth(uint32_t clip_depth)
BlendMode GetBlendMode() const
void SetContents(std::shared_ptr< Contents > contents)
void SetBlendMode(BlendMode blend_mode)
static constexpr BlendMode kLastAdvancedBlendMode
static constexpr Scalar kDepthEpsilon
bool Render(const ContentContext &renderer, RenderPass &parent_pass) const
std::optional< Color > AsBackgroundColor(ISize target_size) const
const Matrix & GetTransform() const
Get the global transform matrix for this Entity.
static constexpr BlendMode kLastPipelineBlendMode
uint32_t GetClipDepth() const
static bool IsBlendModeDestructive(BlendMode blend_mode)
Returns true if the blend mode is "destructive", meaning that even fully transparent source colors wo...
static Entity FromSnapshot(const Snapshot &snapshot, BlendMode blend_mode=BlendMode::kSrcOver)
Create an entity that can be used to render a given snapshot.
Entity & operator=(Entity &&)
float GetShaderClipDepth() const
Render passes encode render commands directed as one specific render target into an underlying comman...
A 4x4 matrix using column-major storage.
Represents a texture and its intended draw transform/sampler configuration.