Simulant
21.12-1275
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
|
Public Member Functions | |
Viewport (const Viewport &rhs)=default | |
Viewport & | operator= (const Viewport &rhs)=default |
Viewport (ViewportType type, const Color &color=smlt::Color::black()) | |
Viewport (Ratio x, Ratio y, Ratio width, Ratio height, const Color &color=smlt::Color::black()) | |
Ratio | x () const |
Ratio | y () const |
Ratio | width () const |
Ratio | height () const |
uint32_t | width_in_pixels (const RenderTarget &target) const |
uint32_t | height_in_pixels (const RenderTarget &target) const |
ViewportType | type () const |
void | set_color (const smlt::Color &color) |
const Color & | color () const |