void SetCameraTransform(Matrix matrix)
void SetGeometry(std::shared_ptr< Geometry > geometry)
Set the geometry that this contents will use to render.
void SetEffectTransform(Matrix matrix)
Set the effect transform for this color source.
const std::shared_ptr< Geometry > & GetGeometry() const
Get the geometry that this contents will use to render.
void SetNode(std::shared_ptr< scene::Node > node)
~SceneContents() override
std::shared_ptr< Context > GetContext() const
std::shared_ptr< RenderTargetAllocator > GetRenderTargetCache() const
bool Render(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
std::optional< Rect > GetCoverage(const Entity &entity) const override
Get the screen space bounding rectangle that this contents affects.
bool Render(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
static RenderTarget CreateOffscreenMSAA(const Context &context, RenderTargetAllocator &allocator, ISize size, const std::string &label="Offscreen MSAA", AttachmentConfigMSAA color_attachment_config=kDefaultColorAttachmentConfigMSAA, std::optional< AttachmentConfig > stencil_attachment_config=kDefaultStencilAttachmentConfig)
void SetTexture(std::shared_ptr< Texture > texture)