 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_ENTITY_ENTITY_H_
6 #define FLUTTER_IMPELLER_ENTITY_ENTITY_H_
69 uint32_t clip_depth = 0);
95 const std::optional<Rect>& current_clip_coverage)
const;
97 bool ShouldRender(
const std::optional<Rect>& clip_coverage)
const;
99 void SetContents(std::shared_ptr<Contents> contents);
101 const std::shared_ptr<Contents>&
GetContents()
const;
143 std::shared_ptr<Contents> contents_;
145 uint32_t clip_depth_ = 0u;
146 uint32_t new_clip_depth_ = 1u;
152 #endif // FLUTTER_IMPELLER_ENTITY_ENTITY_H_
Matrix GetShaderTransform(const RenderPass &pass) const
Get the vertex shader transform used for drawing this Entity.
void SetClipDepth(uint32_t clip_depth)
static constexpr BlendMode kLastPipelineBlendMode
float GetShaderClipDepth() const
uint32_t GetNewClipDepth() const
void SetBlendMode(BlendMode blend_mode)
static constexpr Scalar kDepthEpsilon
Capture & GetCapture() const
const Matrix & GetTransform() const
Get the global transform matrix for this Entity.
static bool IsBlendModeDestructive(BlendMode blend_mode)
Returns true if the blend mode is "destructive", meaning that even fully transparent source colors wo...
void IncrementStencilDepth(uint32_t increment)
static Entity FromSnapshot(const Snapshot &snapshot, BlendMode blend_mode=BlendMode::kSourceOver, uint32_t clip_depth=0)
Create an entity that can be used to render a given snapshot.
void SetCapture(Capture capture) const
void SetContents(std::shared_ptr< Contents > contents)
bool CanInheritOpacity() const
bool ShouldRender(const std::optional< Rect > &clip_coverage) const
bool Render(const ContentContext &renderer, RenderPass &parent_pass) const
bool SetInheritedOpacity(Scalar alpha)
static constexpr BlendMode kLastAdvancedBlendMode
Represents a texture and its intended draw transform/sampler configuration.
const std::shared_ptr< Contents > & GetContents() const
BlendMode GetBlendMode() const
void SetNewClipDepth(uint32_t clip_depth)
Render passes encode render commands directed as one specific render target into an underlying comman...
uint32_t GetClipDepth() const
std::optional< Color > AsBackgroundColor(ISize target_size) const
std::optional< Rect > GetCoverage() const
void SetTransform(const Matrix &transform)
Set the global transform matrix for this Entity.
Contents::ClipCoverage GetClipCoverage(const std::optional< Rect > ¤t_clip_coverage) const
Scalar DeriveTextScale() const
A 4x4 matrix using column-major storage.