template<class ... Layers>
BasicUserInterface class
Base for user interfaces.
Contents
User interface fills up whole screen and consists of planes with specific layers.
Base classes
- class AbstractUserInterface
- Non-templated base for user interfaces.
Constructors, destructors, conversion operators
- BasicUserInterface(const Vector2& size, const Vector2i& screenSize) explicit
- Constructor.
Public functions
- void update()
- Update the interface.
Protected functions
-
void draw(const std::
array<std:: reference_wrapper<AbstractUiShader>, sizeof...(Layers)>& shaders) - Draw the interface using designated shader for each layer.
Function documentation
template<class ... Layers>
Magnum:: Ui:: BasicUserInterface<Layers>:: BasicUserInterface(const Vector2& size,
const Vector2i& screenSize) explicit
Constructor.
Parameters | |
---|---|
size | User interface size |
screenSize | Actual screen size |
All positioning and sizing inside the interface is done in regard to size
, without taking actual screen size into account. This allows to have DPI-independent sizes.
template<class ... Layers>
void Magnum:: Ui:: BasicUserInterface<Layers>:: update()
Update the interface.
Calls BasicPlane::