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

Resident textures of an entity that draws a decoded raster image (LoadedImageComponent), one per device that draws it. More...

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

Public Attributes

GeodePerDevice< GeodeImageResidency > devices
 Resident texture per drawing device.

Detailed Description

Resident textures of an entity that draws a decoded raster image (LoadedImageComponent), one per device that draws it.

Installed lazily by RendererGeode::drawImage on the image's source entity, and removed by the LoadedImageComponent update and destroy listener, so new pixels or a removed image drop the texture. Every draw also compares the kept texture's revision and size with the image being drawn and uploads again on a mismatch, which covers a direct pixel edit that marks a new revision without a signal.

Member Data Documentation

◆ devices

GeodePerDevice<GeodeImageResidency> donner::geode::GeodeResidentImageComponent::devices

Resident texture per drawing device.


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