Magnum::Ui::BaseLayerGL::Shared class

Shared state for the OpenGL implementation of the base layer.

Contains shader instances. In order to update or draw the layer it's expected that setStyle() was called, in case BaseLayerSharedFlag::Textured is enabled additionally it's expected that setTexture() was called on the layer as well.

Base classes

class Magnum::Ui::BaseLayer::Shared
Shared state for the base layer.

Constructors, destructors, conversion operators

Shared(const Configuration& configuration) explicit
Constructor.
Shared(NoCreateT) explicit noexcept
Construct without creating the contents.

Function documentation

Magnum::Ui::BaseLayerGL::Shared::Shared(NoCreateT) explicit noexcept

Construct without creating the contents.

Doesn't touch any GL state. Move over a created instance to make it useful. Passing a non-created instance to the BaseLayerGL constructor has undefined behavior and will likely crash.