34 void SetColors(std::vector<Color> colors);
48 const std::vector<Color>&
GetColors()
const;
59 Rect ComputeBoundingBox()
const;
61 std::shared_ptr<Texture> texture_;
62 std::vector<Rect> texture_coords_;
63 std::vector<Color> colors_;
64 std::vector<Matrix> transforms_;
66 std::optional<Rect> cull_rect_;
69 mutable std::optional<Rect> bounding_box_cache_;
const SamplerDescriptor & GetSamplerDescriptor() const
const std::vector< Rect > & GetTextureCoordinates() const
bool Render(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
std::optional< Rect > GetCoverage(const Entity &entity) const override
Get the area of the render pass that will be affected when this contents is rendered.
void SetTransforms(std::vector< Matrix > transforms)
const std::vector< Color > & GetColors() const
void SetAlpha(Scalar alpha)
void SetTexture(std::shared_ptr< Texture > texture)
void SetSamplerDescriptor(SamplerDescriptor desc)
void SetBlendMode(BlendMode blend_mode)
void SetCullRect(std::optional< Rect > cull_rect)
const std::vector< Matrix > & GetTransforms() const
~AtlasContents() override
void SetColors(std::vector< Color > colors)
std::shared_ptr< Texture > GetTexture() const
void SetTextureCoordinates(std::vector< Rect > texture_coords)