Magnum::Platform::AbstractXApplication::Configuration class

Configuration.

Contents

Public functions

auto title() const -> std::string
Window title.
auto setTitle(std::string title) -> Configuration&
Set window title.
auto size() const -> Vector2i
Window size.
auto setSize(const Vector2i& size) -> Configuration&
Set window size.
auto version() const -> GL::Version deprecated
Context version.
auto setVersion(GL::Version version) -> Configuration& deprecated
Set context version.

Function documentation

Configuration& Magnum::Platform::AbstractXApplication::Configuration::setTitle(std::string title)

Set window title.

Returns Reference to self (for method chaining)

Default is "Magnum X Application".

Configuration& Magnum::Platform::AbstractXApplication::Configuration::setSize(const Vector2i& size)

Set window size.

Returns Reference to self (for method chaining)

Default is {800, 600}.

GL::Version Magnum::Platform::AbstractXApplication::Configuration::version() const

Context version.

Configuration& Magnum::Platform::AbstractXApplication::Configuration::setVersion(GL::Version version)

Set context version.