nCine::ScreenViewport class

Viewport that renders directly to the screen.

The final viewport in the chain, drawing to the default framebuffer instead of a texture. It is created and driven by Application, which resizes it to follow the window.

Base classes

class Viewport
Render target with its own scene root, camera and render queue.

Constructors, destructors, conversion operators

ScreenViewport()
Creates the screen viewport.
ScreenViewport(const ScreenViewport&) deleted

Public functions

auto operator=(const ScreenViewport&) -> ScreenViewport& deleted
void Resize(std::int32_t width, std::int32_t height)
Changes the size, viewport rectangle and projection matrix of the screen viewport.