Euphoria
|
viewportdef.cc
Go to the documentation of this file.
Definition: argparse.cc:45
float determine_extend_scale(float scale, float height, int window_height)
Definition: viewportdef.cc:45
@ screen
Definition: rect.h:125
static Recti from_width_height(int width, int height)
Definition: rect.cc:573
Recti set_bottom_left_to_copy(int new_left, int new_bottom) const
Definition: rect.cc:867
Definition: viewportdef.h:9
ViewportDefinition(const Recti &screen, float w, float h)
Definition: viewportdef.cc:99
static ViewportDefinition from_fit_with_black_bars(float width, float height, int window_width, int window_height)
The viewport is scaled, with aspect in mind, and centered.
Definition: viewportdef.cc:10
static ViewportDefinition from_screen_pixel(int window_width, int window_height)
The viewport matches the screen pixel by pixel.
Definition: viewportdef.cc:84
static ViewportDefinition from_extend(float width, float height, int window_width, int window_height)
The viewports height or width is extended to match the screen.
Definition: viewportdef.cc:55