Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::geode::GeodeImageResidency Class Reference

One device's resident texture for an image entity. More...

#include "donner/svg/renderer/geode/GeodeResidentImageComponent.h"

Public Member Functions

 GeodeImageResidency (const GeodeImageResidency &)=delete
GeodeImageResidency & operator= (const GeodeImageResidency &)=delete
const GeodeResidentImage * image () const
 The resident texture, or null when none is kept.
const std::shared_ptr< GeodeResidentSlab > & slab () const
 Slab the texture is parked in when it is dropped, or null.
void replace (std::shared_ptr< GeodeResidentSlab > slab, std::shared_ptr< const GeodeResidentImage > image)
 Park the current texture, if any, in its slab and keep image instead, parking future drops in slab.
void reset ()
 Park the current texture, if any, in its slab.

Detailed Description

One device's resident texture for an image entity.

Dropping or replacing the texture parks it in the document's resident slab for that device, which releases it at the first frame boundary no open frame on the device precedes, so a draw an open frame recorded never samples a released texture.

Member Function Documentation

◆ replace()

void donner::geode::GeodeImageResidency::replace ( std::shared_ptr< GeodeResidentSlab > slab,
std::shared_ptr< const GeodeResidentImage > image )
inline

Park the current texture, if any, in its slab and keep image instead, parking future drops in slab.

Parameters
slabThis device's resident slab for the document.
imageTexture to keep, or null to keep none.

The documentation for this class was generated from the following file: