Simulant  21.12-1275
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | List of all members
smlt::Viewport Class Reference

Public Member Functions

 Viewport (const Viewport &rhs)=default
 
Viewportoperator= (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 Colorcolor () const
 

The documentation for this class was generated from the following files: