Skip to main content

ViewportKey Struct

A passkey used to establish a parent-child relationship between a RenderTarget and a Viewport. More...

Declaration

struct helios::rendering::ViewportKey { ... }

Friends Index

classhelios::rendering::RenderTarget

Private Constructors Index

ViewportKey ()=default

Description

A passkey used to establish a parent-child relationship between a RenderTarget and a Viewport.

This struct uses the passkey idiom to restrict the calling of `Viewport::setRenderTarget` to friend classes (specifically `helios::rendering::RenderTarget`), ensuring that the ownership hierarchy is managed correctly.

See Also

`Viewport::setRenderTarget`

See Also

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2893r3.html#passkey-idiom

Definition at line 42 of file Viewport.ixx.

Friends

helios::rendering::RenderTarget

Definition at line 44 of file Viewport.ixx.

Private Constructors

ViewportKey()

helios::rendering::ViewportKey::ViewportKey ()
default

Definition at line 45 of file Viewport.ixx.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.