![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Core/GL/Types.h>
Structure describing an OpenGL viewport. More...
Structure describing an OpenGL viewport.
Public Member Functions | |
| Viewport (int x, int y, int width, int height) | |
| vec2i | offset () const |
| Return the offset of the viewport as vec2i. | |
| vec2i | size () const |
| Return the dimensions of the viewport as vec2i. | |
| vec2i | center () const |
| Returns the center of the viewport as rounded vec2i. | |
| bool | includesPoint (const vec2i &point) const |
| Returns if point is inside the viewport. | |
| void | retrieve () |
| Retrieve the current viewport setting from the OpenGL state. | |
| void | set () const |
| Set the OpenGL viewport to this instance's settings. | |
| bool | operator== (const Viewport &rhs) const |
| bool | operator!= (const Viewport &rhs) const |