Magnum::Platform::AndroidApplication::ViewportEvent class

Viewport event.

Contents

Public functions

auto windowSize() const -> Vector2i
Window size.
auto framebufferSize() const -> Vector2i
Framebuffer size.
auto dpiScaling() const -> Vector2
DPI scaling.

Function documentation

Vector2i Magnum::Platform::AndroidApplication::ViewportEvent::windowSize() const

Window size.

The same as framebufferSize(). See AndroidApplication::windowSize() for possible caveats.

Vector2i Magnum::Platform::AndroidApplication::ViewportEvent::framebufferSize() const

Framebuffer size.

The same as windowSize(). See AndroidApplication::framebufferSize() for possible caveats.

Vector2 Magnum::Platform::AndroidApplication::ViewportEvent::dpiScaling() const

DPI scaling.

Always {1.0f, 1.0f}.