struct Viewport

Defined at line 54 of file ../../src/ui/lib/escher/scene/camera.h

This viewport class is independent of framebuffer size.

All values are specified over the range [0,1].

The class default constructs a viewport over the entire framebuffer.

Public Members

float x
float y
float width
float height

Public Methods

vk::Rect2D vk_rect_2d (uint32_t fb_width, uint32_t fb_height)

Given the framebuffer size, return the corresponding vk::Rect2D

Defined at line 138 of file ../../src/ui/lib/escher/scene/camera.cc