Euphoria
|
viewportdef.h
Go to the documentation of this file.
Definition: argparse.cc:45
Definition: rect.h:125
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