mirror of https://github.com/mosra/magnum.git
Browse Source
Consider this craziness when setting up projection or something similar:
Vector2i framebufferSize;
Float aspectRatio = Float(framebufferSize.x())/framebufferSize.y();
And now, behold, the convenience:
Float aspectRatio = Vector2(framebufferSize).aspectRatio();
pull/23/head
2 changed files with 16 additions and 0 deletions
Loading…
Reference in new issue