ownership
ownership: TextureOwnership | undefined
The ownership of the texture. If undefined
, the texture's lifetime will be controlled by the first RenderGraphic with which it
becomes associated, such that disposing of the graphic will also dispose of the texture.
Applications typically create textures for use with Decorators, which recreate their graphics quite frequently.
Ideally, the decorator will take ownership of the texture by specifying "external" and disposing of the texture when it is no longer needed,
rather than recreating the texture every time it creates its decoration graphics.
Defined in
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.