Encapsulates OpenGl Viewport. More...
#include <display.h>
Public Member Functions | |
void | Activate () const |
void | ActivateAndScissor () const |
GLfloat | aspect () const |
bool | Contains (int x, int y) const |
Viewport | Inset (int i) const |
Viewport | Inset (int horiz, int vert) const |
GLint | r () const |
void | Scissor () const |
GLint | t () const |
Viewport () | |
Viewport (GLint l, GLint b, GLint w, GLint h) | |
Static Public Member Functions | |
static void | DisableScissor () |
Public Attributes | |
GLint | b |
GLint | h |
GLint | l |
GLint | w |
pangolin::Viewport::Viewport | ( | ) | [inline] |
pangolin::Viewport::Viewport | ( | GLint | l, |
GLint | b, | ||
GLint | w, | ||
GLint | h | ||
) | [inline] |
void pangolin::Viewport::Activate | ( | ) | const |
Definition at line 434 of file display.cpp.
void pangolin::Viewport::ActivateAndScissor | ( | ) | const |
Definition at line 445 of file display.cpp.
GLfloat pangolin::Viewport::aspect | ( | ) | const [inline] |
bool pangolin::Viewport::Contains | ( | int | x, |
int | y | ||
) | const |
Definition at line 458 of file display.cpp.
void pangolin::Viewport::DisableScissor | ( | ) | [static] |
Definition at line 453 of file display.cpp.
Viewport pangolin::Viewport::Inset | ( | int | i | ) | const |
Definition at line 463 of file display.cpp.
Viewport pangolin::Viewport::Inset | ( | int | horiz, |
int | vert | ||
) | const |
Definition at line 468 of file display.cpp.
GLint pangolin::Viewport::r | ( | ) | const [inline] |
void pangolin::Viewport::Scissor | ( | ) | const |
Definition at line 439 of file display.cpp.
GLint pangolin::Viewport::t | ( | ) | const [inline] |
GLint pangolin::Viewport::b |
GLint pangolin::Viewport::h |
GLint pangolin::Viewport::l |
GLint pangolin::Viewport::w |