simple rectangle used to specify gl viewport
#include <viewport.hpp>
Public Member Functions | |
viewport (int x=0, int y=0, int width=0, int height=0) | |
void | set (int x, int y, int width, int height) |
int | border () const |
float | x () const |
float | y () const |
float | width () const |
float | height () const |
float | aspect_ratio () const |
Definition at line 35 of file viewport.hpp.
renderstack::viewport::viewport | ( | int | x = 0 , |
|
int | y = 0 , |
|||
int | width = 0 , |
|||
int | height = 0 | |||
) |
void renderstack::viewport::set | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) |
int renderstack::viewport::border | ( | ) | const [inline] |
Definition at line 43 of file viewport.hpp.
float renderstack::viewport::x | ( | ) | const [inline] |
Definition at line 44 of file viewport.hpp.
float renderstack::viewport::y | ( | ) | const [inline] |
Definition at line 45 of file viewport.hpp.
float renderstack::viewport::width | ( | ) | const [inline] |
Definition at line 46 of file viewport.hpp.
float renderstack::viewport::height | ( | ) | const [inline] |
Definition at line 47 of file viewport.hpp.
float renderstack::viewport::aspect_ratio | ( | ) | const [inline] |
Definition at line 48 of file viewport.hpp.