Skip to content

Commit

Permalink
libgui: Added a variant of GLState::setViewport()
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 2e8c883 commit dcca461
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/libs/gui/include/de/graphics/glstate.h
Expand Up @@ -157,6 +157,7 @@ class LIBGUI_PUBLIC GLState
GLState &setDefaultTarget();
GLState &setViewport(Rectanglei const &viewportRect);
GLState &setViewport(Rectangleui const &viewportRect);
inline GLState &setViewport(Vec2ui const &size) { return setViewport(Rectangleui::fromSize(size)); }

/**
* Sets a viewport using coordinates that have been normalized within the
Expand Down

0 comments on commit dcca461

Please sign in to comment.