![]() |
LibCarna Version 3.4.0
|
Represents an acquisition of the video resources from a particular GeometryFeature. This acquisition realizes the RAII idiom. More...
#include <GeometryFeature.hpp>
Public Member Functions | |
virtual | ~ManagedInterface () noexcept(false) |
Releases the video resources previously acquired from the managing geometryFeature. | |
Public Attributes | |
GeometryFeature & | geometryFeature |
References the GeometryFeature that manages the video resources that this object interfaces. | |
Protected Member Functions | |
ManagedInterface (GeometryFeature &gf) | |
Acquires the video resources from gf. | |
Represents an acquisition of the video resources from a particular GeometryFeature. This acquisition realizes the RAII idiom.
Definition at line 112 of file GeometryFeature.hpp.
|
explicitprotected |
Acquires the video resources from gf.
The instantiated ManagedInterface
object is only valid within the current OpenGL context. Delete the object in order to release the acquired resources. Usually the resources are uploaded to video memory when they are first acquired, and deleted from video memory when the last acquisition is released. This depends on whether the resources are sharable across OpenGL contexts.
|
virtual |
Releases the video resources previously acquired from the managing geometryFeature.
Reimplemented in LibCarna::base::Material::ManagedInterface.
GeometryFeature& LibCarna::base::GeometryFeature::ManagedInterface::geometryFeature |
References the GeometryFeature
that manages the video resources that this object interfaces.
Definition at line 143 of file GeometryFeature.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen