Euphoria
|
viewporthandler.cc
Go to the documentation of this file.
Definition: argparse.cc:45
Definition: button.h:15
@ fit_with_black_bars
@ screen_pixel
@ extend
@ black
static Rectf from_width_height(float width, float height)
Definition: rect.cc:98
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
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
Definition: viewport.h:10
Definition: init.h:13
mat4f get_ortho_projection(float width, float height) const
Definition: init.cc:61
Definition: shader.h:51
Definition: viewporthandler.h:20
void set_size(int width, int height)
Definition: viewporthandler.cc:110
ViewportHandler(render::Init *i, Rectf *s)
Definition: viewporthandler.cc:95
std::vector< ShaderProgram * > shaders
Definition: viewporthandler.h:22
core::Viewport get_full_viewport() const
Definition: viewporthandler.cc:146