supertux
Public Member Functions | Static Public Member Functions | List of all members
Viewport Class Referencefinal

Public Member Functions

 Viewport (const Rect &rect, const Vector &scale)
 
Rect get_rect () const
 The size of the viewport in window coordinates.
 
Vector get_scale () const
 The amount by which the content of the viewport is scaled.
 
int get_screen_width () const
 The width of the resulting logical screen.
 
int get_screen_height () const
 The height of the resulting logical screen.
 
Size get_screen_size () const
 The size of the resulting logical screen.
 
Vector to_logical (int physical_x, int physical_y) const
 Converts window coordinates into logical screen coordinates.
 
bool needs_clear_screen () const
 True if the logical screen doens't cover the whole window.
 

Static Public Member Functions

static Viewport from_size (const Size &target_size, const Size &desktop_size)
 

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